From patchwork Wed Oct 15 13:44:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Renlin Li X-Patchwork-Id: 399995 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 437B11400B0 for ; Thu, 16 Oct 2014 00:44:19 +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=wpPIO5cAvcfOmHKaBHF7YREbcTlLq1vhyjxIwr1A8LR h4f6o849eXPaxrLKgpNLQY1hX4tMk3/ES8excw2kpJGZrujIrIUBnnHIG9pfeymQ VmjXTz4JRV4jokJzWUqyQDNFuSFg9pQntcuOXvVavNZY12qRhssOSEc31daX+Zyc = 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=sedZQ9FaFbOOUKvr//Y5xUHcnLs=; b=IC96rOIfH0U3aXGwG ffHx2whexNJ8XYOcTYBSo0WrXj2ufE4KVD23buLHUe5dphNyLmN8bz0aePlBwXit dQHOrJc5NOAfinHPfGDJ5dcXw0mZBPaAly4+eCHQ5W+3U2HaQuxN95MwN3XFKmUY NIR3Ze0AFRzXtochZ/kGfw6Uq4= Received: (qmail 15698 invoked by alias); 15 Oct 2014 13:44:12 -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 15687 invoked by uid 89); 15 Oct 2014 13:44:11 -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:44:10 +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:44:08 +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:44:07 +0100 Message-ID: <543E7A27.3000804@arm.com> Date: Wed, 15 Oct 2014 14:44:07 +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: Marcus Shawcroft , Ramana Radhakrishnan Subject: [PATCH][AARCH64][03]Add ACLE 2.0 predefined macros: Define __ARM_SIZEOF_MINIMAL_ENUM macro X-MC-Unique: 114101514440802901 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): Define __ARM_SIZEOF_MINIMAL_ENUM. From 245195ce760cee97dd8e91e0178963b696000eed Mon Sep 17 00:00:00 2001 From: Renlin Li Date: Tue, 14 Oct 2014 16:24:10 +0100 Subject: [PATCH 4/8] add __ARM_SIZEOF_MINIMAL_ENUM Change-Id: I0407fd6ce7f0f0107f02c81fef6c89100dd3afff --- gcc/config/aarch64/aarch64.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h index b00e7f4..9f39f68 100644 --- a/gcc/config/aarch64/aarch64.h +++ b/gcc/config/aarch64/aarch64.h @@ -35,6 +35,9 @@ builtin_define ("__ARM_PCS_AAPCS64"); \ builtin_define_with_int_value \ ("__ARM_SIZEOF_WCHAR_T", WCHAR_TYPE_SIZE / 8); \ + builtin_define_with_int_value \ + ("__ARM_SIZEOF_MINIMAL_ENUM", \ + flag_short_enums? 1 : 4); \ if (TARGET_BIG_END) \ { \ builtin_define ("__AARCH64EB__"); \ -- 1.7.9.5