From patchwork Tue Jun 28 16:39:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 71133 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1693543qgy; Tue, 28 Jun 2016 09:42:38 -0700 (PDT) X-Received: by 10.66.165.145 with SMTP id yy17mr3524338pab.116.1467132158893; Tue, 28 Jun 2016 09:42:38 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id u2si34377213pax.197.2016.06.28.09.42.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jun 2016 09:42:38 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-71220-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-71220-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-71220-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=pFdSe 9/fw/0R488OeHSHYXyGNvnBji2cxPlBlH5iOB4x8Fcekx0vJcLvXxZjnQ/qYpR4N C3nP48gu/vseR7+USKWJj8EU0BRHKJIMSM9dmRWhVC71/HgJ73Ns7PeH4tlPKTWB KszAYVOyiS7cbgE3MeAuzdT3BHO72Q+sndi9Mw= 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=k14SEl2OEjDhdnb97EIe2df6vsnDSat6GaFbHyBHR06 ndOVUc5WwGAR3PmpnmglgXz5+YYDA+n1uYAUfDOutP4UUcx583Y1+VTo5qJjkW5q Jw9K393I58ieLz1O3XSLlAmf+9e0Q+5btgUmJ6XXaGaFHs28xwvvmgr7sRoR+B24 = Received: (qmail 21671 invoked by alias); 28 Jun 2016 16:42:10 -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 21561 invoked by uid 89); 28 Jun 2016 16:42:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: na01-bn1-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 12/23] [AARCH64] Add ILP32 to makefiles Date: Tue, 28 Jun 2016 19:39:27 +0300 Message-ID: <1467131978-669-13-git-send-email-ynorov@caviumnetworks.com> In-Reply-To: <1467131978-669-1-git-send-email-ynorov@caviumnetworks.com> References: <1467131978-669-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-ClientProxiedBy: AM5PR0901CA0015.eurprd09.prod.outlook.com (10.164.186.153) To DM3PR07MB2250.namprd07.prod.outlook.com (10.164.33.148) X-MS-Office365-Filtering-Correlation-Id: 81501140-f646-447f-5065-08d39f731d31 X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2250; 2:dKmFS85zJRuv1djOb2UBjhnpuyKv7vBg4pCXdyiljSt8g9MqYjVZFvUcLiGmUh6G8L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dEm4Kal7HlxJ2KsdiPHSa3JOX0h5Yp9dYZWR+BTp2HG4AWCoTKS4d4P6iUZfZxq09s+OazKGlHmcS5gq1DaHA/Ze7aIhNd+5aJBEiz8pS/MRwwrwlFGD1ZywkwGC4GBArx5bPnsq+x6BQ6MDxDBUfiGWHGrxqrLDmgSyhrH6+JcKTI8Xd54K53B3j9sV6EMLRShxsACA0ffB4g4eYdGsYnAk6ccUucGeshZZERIVjRaPdwLRhIo73Tj9iQdAhc+kZ2wziJl2Xj6AIyiwOE7G/l6E9dIJZExXkBBJE9UHAnc1iwfI7u9obKsoA2lU= 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:DM3PR07MB2250; BCL:0; PCL:0; RULEID:; SRVR:DM3PR07MB2250; X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2250; 4:BGbnXUUgvnJFoJIAzFLJx7S0VsVRNqjMhis7ckloUQcTfoLO/PstwePg/2X/RDKgUJj4b9QIO8zNTy5HcAFV9uRiEmfLfrCwksCmQXWcv1M4RRow/89HHKhJPdfiX5GLmxkVmsfz5ogTSnCqCCyJUX2N04zTLz8x+1bxE9mjm1rrPZJUsW4xFeYCEfbH4K8KY0Tij07VT1DyjjZXXK0eF+0ZZlDIgABqSJTWMXLMWwjy449QAr2kTEQkXepF1kKksUGExdIQltBtiRDr05QBoMoT6YOGdsoHUce5zqOxijq3EEDgzJHsr/Gn9OzbfohTQ7HseUX3hnBsiddixU4Ql5ZBhZ+/Y8Z5n+0lCh+t1LdIjiVjygeKmaRqnyQQAC8s X-Forefront-PRVS: 0987ACA2E2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(189002)(199003)(42186005)(3846002)(6116002)(2950100001)(107886002)(77096005)(81156014)(81166006)(8676002)(586003)(48376002)(66066001)(47776003)(189998001)(92566002)(5003940100001)(76506005)(68736007)(50466002)(36756003)(76176999)(50986999)(229853001)(7736002)(33646002)(305945005)(4326007)(7846002)(4001430100002)(5001770100001)(50226002)(105586002)(2906002)(19580405001)(97736004)(19580395003)(106356001)(101416001)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM3PR07MB2250; 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; DM3PR07MB2250; 23:8sU0SIjNNolIAVo1iA5h7nUJbIyPNyqqBMzod4ScY?= =?us-ascii?Q?x760vEYGXnvJWX8UuGgqgBIq5Zgq7y/XHDywpMWHhV9hb7FFnTMVp50b5VOY?= =?us-ascii?Q?nxLn3kqdo+sOlada0OP/GzYlEXIn5BoDHIUmIuRbDN7DY21jvXW0QqofXFk9?= =?us-ascii?Q?s5sLFHCj71WZQeXSAVghy9pJhpL4pLXVvqN/e0VfzcPI2VnxyqCkCPJ7d8YD?= =?us-ascii?Q?zkYDow3wwhU++YI9IQLFffOjNskF7qv59B/C6wKi2qAWoCWVGdgOyKbHOVs+?= =?us-ascii?Q?Ay9kBNWP9So8hdM5HAiHsTqb1hTMsHMVJEuJuH/gZ5HZNmIz51uhmEgV1eGx?= =?us-ascii?Q?SaqJ54YFlf9wCqbycYZjreCYeWNrbRkjhlFMnP4a/pIZcZmMjsQwoQk1IOnW?= =?us-ascii?Q?+YS9r1EiQ9Tuoj6XaLGJBFUydv7g194ahQFCOKLwvON8TtYbnFVIH3sa2Lyg?= =?us-ascii?Q?GkL/OeUD6uR5ZK6a3CrB72nzVxdpBDDDLr3fRMXghiFfPBpgThz7TT4gWEai?= =?us-ascii?Q?q7kSTCpwxlnSJovFJhObHsZUbCeMX6UsyXeS/6p1c6Np+NuuwkPPrbY7Kijk?= =?us-ascii?Q?0eQtRdZ3I7X2Yr7OTWqz9G5H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ijoRDxZzoJQfjywnm/1M6RWXMpa4iwqS6MuZJanL2H+exTqS6dnuX9PrfFiIn775VKFfX2pHhkTXxFkJrSQ/YeLCXA2strHXz9ZMm9ERcMCwgMDONQ==; 24:A5jLjy/pDq+s0SOnWwIM1BDuDEb4XdftCbYmpF/Rq8r9SXDhcqN8WS4tMDBmuVsOJDCMyBvDznK2SOKBmaQSOQ1DaxVdK8OPsQeO8W1VIBY=; 7:XmoiuvCsINxWS5Nt5DrI5PQaZQUsS7daD3SOyvyhIe+TnUOfSNOLEInxaGJWK7zDtkNFG/JX/X2rafyv2Cy2+0QdHw7c1Sa6hg7mkO+pScEHpkHS1+YdnPfuerSYsHZDHiv4QV3mAuG/O9ugQTiq8QLpacZgf01DMeBRT4pRbs5qVjTEsb0vSBTr+uTTaT2e2l+2p9N2Ks9c+Ex2t4WggGJ5YO8+WBVIeV0ALHm14JyBpRGWmR+HLO8cv7S+QllYjk6um6wp4DMoC0hBEapm2A== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2016 16:41:54.5735 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR07MB2250 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__