From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 104837 invoked by alias); 23 Jun 2019 19:17:26 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 104829 invoked by uid 89); 23 Jun 2019 19:17:25 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_COUK autolearn=ham version=3.3.1 spammy=uppercase, defines, HX-Spam-Relays-External:ESMTPA X-HELO: smtp1.wavenetuk.net Received: from smtp.wavenetuk.net (HELO smtp1.wavenetuk.net) (195.26.36.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 23 Jun 2019 19:17:24 +0000 Received: from euterpe-sie.home (host81-138-1-83.in-addr.btopenworld.com [81.138.1.83]) by smtp1.wavenetuk.net (Postfix) with ESMTPA id 97A861201563; Sun, 23 Jun 2019 20:17:21 +0100 (BST) From: Iain Sandoe Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: [Darwin, PPC, committed] Emit uppercase versions of ppc defines. Message-Id: <505B74B8-1231-4C27-9E03-380C7AF4EFE6@sandoe.co.uk> Date: Sun, 23 Jun 2019 19:17:00 -0000 Cc: segher Boessenkool To: GCC Patches X-SW-Source: 2019-06/txt/msg01399.txt.bz2 Emit __PPC__ (32b) and __PPC64__ (64bit) as per the other members of the PowerPC port. Darwin has always emitted __ppc__ and __ppc64__ but some testcases rely on the upper case variants. tested on powerpc-darwin9, applied to mainline. thanks Iain 2019-06-23 Iain Sandoe * config/rs6000/darwin.h: (__PPC__, __PPC64__): New. diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h index ee949f2..2df617d 100644 --- a/gcc/config/rs6000/darwin.h +++ b/gcc/config/rs6000/darwin.h @@ -54,7 +54,9 @@ do \ { \ if (!TARGET_64BIT) builtin_define ("__ppc__"); \ + if (!TARGET_64BIT) builtin_define ("__PPC__"); \ if (TARGET_64BIT) builtin_define ("__ppc64__"); \ + if (TARGET_64BIT) builtin_define ("__PPC64__"); \ builtin_define ("__POWERPC__"); \ builtin_define ("__NATURAL_ALIGNMENT__"); \ darwin_cpp_builtins (pfile); \