From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 104615 invoked by alias); 16 Jan 2019 15:57:49 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 104596 invoked by uid 89); 16 Jan 2019 15:57:48 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.9 required=5.0 tests=BAYES_00,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=infinite, recursion, craft X-HELO: EUR01-VE1-obe.outbound.protection.outlook.com Received: from mail-eopbgr140073.outbound.protection.outlook.com (HELO EUR01-VE1-obe.outbound.protection.outlook.com) (40.107.14.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 16 Jan 2019 15:57:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lHuJiIG0HZk5B8LKQ6EWYJ16JZ+vOfC8JW045p71a+g=; b=Ue+qoAkZzDHcjtLQQeIiea5D3KYDIcOp6gWJc1cAgV9sGA0DBx7VrOHtmZ3rWISVgETivZZCIlYauSRE2o158tuRgHp3rtK1rQNEHH+IK8FoopuX7TzUvMfzRFbYyoeWXykpjVOgyL7JN36CjIcOhQblrFkBV/WCTnoAtjodV68= Received: from AM4PR0802MB2129.eurprd08.prod.outlook.com (10.172.216.148) by AM4PR0802MB2196.eurprd08.prod.outlook.com (10.172.217.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1537.25; Wed, 16 Jan 2019 15:57:43 +0000 Received: from AM4PR0802MB2129.eurprd08.prod.outlook.com ([fe80::5d0e:5d40:2f35:2aa3]) by AM4PR0802MB2129.eurprd08.prod.outlook.com ([fe80::5d0e:5d40:2f35:2aa3%9]) with mapi id 15.20.1537.018; Wed, 16 Jan 2019 15:57:43 +0000 From: Alan Hayward To: "gdb-patches@sourceware.org" CC: nd , Alan Hayward Subject: [PATCH 0/2] AArch64 AAPCS: Improve argument passing Date: Wed, 16 Jan 2019 15:57:00 -0000 Message-ID: <20190116155734.53824-1-alan.hayward@arm.com> authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alan.Hayward@arm.com; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2019-01/txt/msg00371.txt.bz2 This series improves the AAPCS argument passing on AArch64 (where small structures are passed via float registers instead of on the stack). The first patch ensures empty structures in C++ are dealt with correctly. The second deals with static struct members. It replaces the patch "AArch64: Prevent infinite recursion when checking AAPCS types", as the test failure is covered by the above. However that patch may still be required in the future if I can craft a valid test case for it. This patch adds a new test and expands an exisiting test. When run on x86_64, many of the new test cases fail with: amd64-tdep.c:958: internal-error: CORE_ADDR amd64_push_arguments(regcache*, int, value**, CORE_ADDR, function_call_return_method): Assertion `!"Unexpected register class."' failed I had a look, but I don't know enough about the x86 argument passing. Alan. Alan Hayward (2): AArch64 AAPCS: Empty structs have non zero size in C++ AArch64 AAPCS: Ignore static members gdb/aarch64-tdep.c | 16 ++ .../gdb.base/infcall-nested-structs.exp | 42 +++- .../gdb.cp/infcall-nested-static-structs.cc | 222 ++++++++++++++++++ .../gdb.cp/infcall-nested-static-structs.exp | 173 ++++++++++++++ 4 files changed, 441 insertions(+), 12 deletions(-) create mode 100644 gdb/testsuite/gdb.cp/infcall-nested-static-structs.cc create mode 100644 gdb/testsuite/gdb.cp/infcall-nested-static-structs.exp --=20 2.17.2 (Apple Git-113)