From patchwork Wed Oct 15 13:39:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Renlin Li X-Patchwork-Id: 399994 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 7AE211400AB for ; Thu, 16 Oct 2014 00:39:37 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:content-type; q=dns; s=default; b=cG1bw6mQO/orQssNSNuSDPk6izeeYg5aVo+a5Ektu61 kxmS9jVsT06L8gFVu/w6IlB+NIKIBoInK4OhCijN1VX3+Vey9EvE6Q4Mf5nuFFfn MqM5FIrUdOiZm0Gwc2w8hzHVsEc17zvPzjzUJ/uCtrFH9oxBs5QE6PSLookLt+k4 = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:content-type; s=default; bh=a/+25gZGVSDnNObTxm/nv1+3aDE=; b=UsCpXSpypG9/SMzlP dXN8khcpdCS2tavjov4lctPQKkmMrAHfmNMWGZHUJo4UuPT5SNxxIMfBDHRrgJYa fuSMrXrE3YtlINYCsOB3Av78ILeEXiI2TaIvfxdbrdfEuznuJz2JMAE1iH47NQI8 GjhPYznUVOn5mqTaItg1nSIoF0= Received: (qmail 11082 invoked by alias); 15 Oct 2014 13:39:30 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 11072 invoked by uid 89); 15 Oct 2014 13:39:30 -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, SPF_PASS autolearn=ham version=3.3.2 X-HELO: service87.mimecast.com Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 15 Oct 2014 13:39:29 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Wed, 15 Oct 2014 14:39:26 +0100 Received: from [10.1.203.158] ([10.1.255.212]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 15 Oct 2014 14:39:25 +0100 Message-ID: <543E790C.9060300@arm.com> Date: Wed, 15 Oct 2014 14:39:24 +0100 From: Renlin Li User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" CC: Ramana Radhakrishnan , Marcus Shawcroft Subject: [PATCH][AARCH64][02]Add ACLE 2.0 predefined macros: More macros which are unconditional X-MC-Unique: 114101514392611901 X-IsSubscribed: yes Hi all, This patch is part of a series of patches that implement ACLE 2.0 predefined macros support for AArch64. aarch64-none-elf target has been tested on the model, no regression. Is it Okay to commit? Kind regards! Renlin Li gcc/ChangeLog: 2014-10-15 Renlin Li * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add __ARM_64BIT_STATE, __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV, __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T. From d71e98ad2337faaad86780bd7e6ead0b398129ae Mon Sep 17 00:00:00 2001 From: Renlin Li Date: Tue, 14 Oct 2014 16:23:19 +0100 Subject: [PATCH 3/8] More marcos which are unconditional Change-Id: I98d47fbb4d6e4ded6b73766d8f00e16526dae09a --- gcc/config/aarch64/aarch64.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h index 241bb98..b00e7f4 100644 --- a/gcc/config/aarch64/aarch64.h +++ b/gcc/config/aarch64/aarch64.h @@ -26,7 +26,15 @@ #define TARGET_CPU_CPP_BUILTINS() \ do \ { \ - builtin_define ("__aarch64__"); \ + builtin_define ("__aarch64__"); \ + builtin_define ("__ARM_64BIT_STATE"); \ + builtin_define ("__ARM_ARCH_ISA_A64"); \ + builtin_define ("__ARM_FEATURE_CLZ"); \ + builtin_define ("__ARM_FEATURE_IDIV"); \ + builtin_define ("__ARM_FEATURE_UNALIGNED"); \ + builtin_define ("__ARM_PCS_AAPCS64"); \ + builtin_define_with_int_value \ + ("__ARM_SIZEOF_WCHAR_T", WCHAR_TYPE_SIZE / 8); \ if (TARGET_BIG_END) \ { \ builtin_define ("__AARCH64EB__"); \ -- 1.7.9.5