From patchwork Tue Jun 21 05:06:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 70519 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1832225qgy; Mon, 20 Jun 2016 22:14:46 -0700 (PDT) X-Received: by 10.66.220.7 with SMTP id ps7mr25709509pac.77.1466486086860; Mon, 20 Jun 2016 22:14:46 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id d196si37851573pfd.10.2016.06.20.22.14.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jun 2016 22:14:46 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-70825-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of libc-alpha-return-70825-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-70825-patch=linaro.org@sourceware.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-type; q=dns; s=default; b=VSCzF MQmqvnwUFVLh0lVmxBvmZ5f6pT8kdqZgMF7e+wtYCbDPEYqC7pgUume2/WeiKCJw nlu+guJJqsi1aSxmczE+RD1VUoWU2igG2uedpPMK8BBGc2YxyhVShyOengkX6Y3O 0rXtHshdSEgs0kVqjr/UVpSYCUQwO5yuR+aEpc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-type; s=default; bh=f+BPR8tfwb3 28ZviD3wh/FIsMsM=; b=RAEj4obWBDk+K1NIYsojHw8hUwbf2kyJ96+YdsCTqwS KbQmU4ajOUBORT3SLnsCyiYJ03DRuRH3uLeN10Ri/SF0twEMOkViu9rkDAn7z2Jt 6senqLLmlh7I1oT+zV32dB8iB9zSwHq7lCTBGm3zpkvP2qSOhDbfSHPRubh12uZ4 = Received: (qmail 23077 invoked by alias); 21 Jun 2016 05:13:32 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 19945 invoked by uid 89); 21 Jun 2016 05:13:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=2321, ifeq X-HELO: na01-bl2-obe.outbound.protection.outlook.com Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; From: Yury Norov To: , CC: , , , , , , , , , Andrew Pinski , Yury Norov Subject: [PATCH 14/27] [AARCH64] Add ILP32 to makefiles Date: Tue, 21 Jun 2016 08:06:58 +0300 Message-ID: <1466485631-3532-16-git-send-email-ynorov@caviumnetworks.com> In-Reply-To: <1466485631-3532-1-git-send-email-ynorov@caviumnetworks.com> References: <1466485631-3532-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-ClientProxiedBy: HE1PR03CA0023.eurprd03.prod.outlook.com (10.163.170.161) To DM3PR07MB2252.namprd07.prod.outlook.com (10.164.33.150) X-MS-Office365-Filtering-Correlation-Id: 16237674-40a8-45d7-4a06-08d399925bcf X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2252; 2:zGyc7j0pwF7tIdS9Xn1ogIniLQjFCoDHv5jdB/k4e48D0qVazrAzwdZFN6F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NvfDKayAkBHbkwCLgaaTOHLOJUnXesW669Y+lJpCTEYmFBNhsoHLgi1JANqItHub7lt2XjgKQa1tI8JxposyfKf5au1rhpgUjND72L6929jY9NDKqjCAXwkJNCyH0JzAemw0sij/8L3OCOckRfxoD1HfugJu+Eqn7ZkIRr2QqCHDMlFfKiUq4H5vfYGQkKXGqNTKSGU/KvmQttfgn88WE99AXZ0W1/8tFETCQB7j8IDeQSF6rcIiyqAKcpuSDN9W9Zv7dBnkhQp2PRkFEn7oYdn/x23C6F1shw/pnEbT3SuHPT/iMARbKyuDQLN/FqUDE3RNKmLBYjjw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:DM3PR07MB2252; BCL:0; PCL:0; RULEID:; SRVR:DM3PR07MB2252; X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2252; 4:Chqmu7Rki7ObozhD2dMekFKSaBZN8iVn05/SGhJ84WvEyMyJq3vrJjJGalSO2hpql3+W57WUZRbTwBwZb/HzO88ZA9tOdCtWRfMkbbt8WnKpskcY+w2cRiwTUZmUFe2wjTDXd/F/zUcmBVaa+Fves9dDesDpGnPp2ktLgCTu5WE1Gg/u7+wIw3wWe0Fli5QaYvqPKgkx5HvJrQwfKvjr9fXIC/IFgAjwmMcwfIGSaZYg6gl0MWCoaWNNHZO92Eb1mBG4WpNoRCq6MxMGgpZRXUVoRcl803l+yyXidEl+Ee0OV3fdTN2yg+4q5MYUOYienafgD2/u3Twxss82A5COqIocs2FON1JXbPZXvay45g6/aK39jYWZKvuXZqZsv7ah X-Forefront-PRVS: 098076C36C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(189002)(199003)(47776003)(50466002)(2950100001)(92566002)(8676002)(76506005)(229853001)(76176999)(48376002)(77096005)(81166006)(7736002)(66066001)(68736007)(33646002)(81156014)(97736004)(50986999)(101416001)(36756003)(42186005)(586003)(50226002)(7846002)(107886002)(3846002)(6116002)(189998001)(106356001)(4326007)(4001430100002)(19580405001)(19580395003)(5003940100001)(105586002)(5001770100001)(2906002)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM3PR07MB2252; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM3PR07MB2252; 23:BMwlnaRRhBjUU38E4748l0EACnte52szqWWXePiUX?= =?us-ascii?Q?tUiTfkAdRP+fTibQRsLHJQgYW+2BRcvXwSaMmXqOIs5rEYORMh6XlC2M3OV1?= =?us-ascii?Q?pebRc5lb3b38lBDRO4XFsD9EBENJMyfcjOP4fjL6LCB8uhP6Zc8royWmIgPU?= =?us-ascii?Q?eimKfDMMofTXQE94wqTjEdgXFi0gzB7FLYpRbk3sj9NAAJh5Aaiij6JnV2Ug?= =?us-ascii?Q?pCtt+fPviUxtJqKcCOwdTjUKnhiCo8YLOQo1gkKe5x0vQYoW0+erOg+wBu+H?= =?us-ascii?Q?vZB4Nc+8rKxRTuJtMejAbWXvLHW5S2co1IXkX45Ysciqi91zalHzzrPv4lop?= =?us-ascii?Q?OvkXwfLVTuO4UtmTw7ao4a5MSLDHHHmKFlaayOhXlkWDZxEO54R3MTtLgXD0?= =?us-ascii?Q?6y6UDETiL9sg2y9WPJEmNEC0TljyNFIZjlW1GKv2bF6wC3NcKyQCIfkPK+wv?= =?us-ascii?Q?dshvVK8pdUhJhAIaVNAjnEocGv4n3fUaqQeQpiopTwLGJZwHNwPjIMu1cedy?= =?us-ascii?Q?FPnwF8rGSw+t4A/ZWfrDVhFHU0yMVSZ6VYYTsCphUZZROa8n25FFXVU2u/wa?= =?us-ascii?Q?ug6keuuOVWfU0F7YO4raemtjqgKQxJ7ZbYOLpAWe3NgS6LoM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wggMgvvBi4cALpp+pBF86KnjePCE7s37pD39Q==; 24:d8/Lj1aHheyHsiH7g98xp12eDwJNWC/XEH63IYSsTWdTnDErdNanpkc8dzwP8gnAAu5wd+N9uekAVRJSNd76vvjuY17Qi2zqDb5hkAidVJ8=; 7:l7qAcgWk81/MrMXYk8VOOQf5t3uVDzG2ffKKhwfHifynhahC2jO+MvoauGyeH9xx2KfPP1EVPx74BtpFkwX2m6m0/qGggQRs0gNfRpmLARklEvKXfPvuITQixBxL9DfSk+iGUETfxEO0KkocdilvXjsBDq/ZgJ5ur/ZAtiobh9Sp/u9JXCRpVdSFa9+PGEkidio4KOchpmpVMWGHgzVuB9KkRK6hNrjWVUZqKHAWzBRzvU0XvTXWg9Scxnflhu/t SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2016 05:10:26.9134 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR07MB2252 From: Andrew Pinski This patch adds ilp32 and ilp32_be as abi variants to the aarch64 linux makefile. * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-variants): Add ilp32 and ilp32_be. (abi-lp64-options): Add defining of LP64 and undef of ILP32 macros. (abi-lp64-condition): Check word size macro also. (abi-lp64_be-options): Add defining of LP64 and undef of ILP32 macros. (abi-lp64_be-condition): Check word size macro also. (abi-ilp32-options): Define. (abi-ilp32-condition): Likewise. (abi-ilp32_be-options): Define. (abi-ilp32_be-condition): Likewise. Signed-off-by: Yury Norov --- sysdeps/unix/sysv/linux/aarch64/Makefile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) -- 2.7.4 diff --git a/sysdeps/unix/sysv/linux/aarch64/Makefile b/sysdeps/unix/sysv/linux/aarch64/Makefile index 6b4e620..67619f5 100644 --- a/sysdeps/unix/sysv/linux/aarch64/Makefile +++ b/sysdeps/unix/sysv/linux/aarch64/Makefile @@ -23,13 +23,21 @@ endif abi-variants := lp64 abi-variants += lp64_be +abi-variants += ilp32 +abi-variants += ilp32_be ifeq (,$(filter $(default-abi),$(abi-variants))) Unknown ABI, must be one of $(abi-variants) endif -abi-lp64-options := -U__AARCH64EB__ -abi-lp64-condition := !defined __AARCH64EB__ +abi-lp64-options := -U__AARCH64EB__ -D__LP64__ -U__ILP32__ +abi-lp64-condition := __WORDSIZE == 64 && !defined __AARCH64EB__ -abi-lp64_be-options := -D__AARCH64EB__ -abi-lp64_be-condition := defined __AARCH64EB__ +abi-lp64_be-options := -D__AARCH64EB__ -D__LP64__ -U__ILP32__ +abi-lp64_be-condition := __WORDSIZE == 64 && defined __AARCH64EB__ + +abi-ilp32-options := -U__AARCH64EB__ -U__LP64__ -D__ILP32__ +abi-ilp32-condition := __WORDSIZE == 32 && !defined __AARCH64EB__ + +abi-ilp32_be-options := -D__AARCH64EB__ -U__LP64__ -D__ILP32__ +abi-ilp32_be-condition := __WORDSIZE == 32 && defined __AARCH64EB__