From owner-freebsd-sparc Tue Dec 3 0:17: 3 2002 Delivered-To: freebsd-sparc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6C9737B401; Tue, 3 Dec 2002 00:17:02 -0800 (PST) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12ED643EC2; Tue, 3 Dec 2002 00:17:02 -0800 (PST) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.6/8.12.2) with ESMTP id gB38Guqe062882; Tue, 3 Dec 2002 00:16:56 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.6/8.12.6/Submit) id gB38FeA2062881; Tue, 3 Dec 2002 00:15:40 -0800 (PST) Date: Tue, 3 Dec 2002 00:15:40 -0800 From: "David O'Brien" To: re@freebsd.org Cc: sparc@freebsd.org Subject: GCC can't decide on what the pre-defined arch symbol should be Message-ID: <20021203081540.GA62842@dragon.nuxi.com> Reply-To: obrien@freebsd.org Mail-Followup-To: David O'Brien , re@freebsd.org, sparc@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Its a mess in the GCC code -- how the %$^# to spell the architecture pre-define. The GCC developers are totally inconsistent -- so lets just got with all permutations. RE@, permission to commit this? It affects only the sparc64 platform. Index: freebsd.h =================================================================== RCS file: /home/ncvs/src/contrib/gcc/config/sparc/freebsd.h,v retrieving revision 1.3 diff -u -r1.3 freebsd.h --- freebsd.h 5 Nov 2002 03:35:56 -0000 1.3 +++ freebsd.h 3 Dec 2002 08:04:58 -0000 @@ -24,7 +24,8 @@ Emacs needs to know if the arch is 64 or 32-bits. */ #undef CPP_CPU64_DEFAULT_SPEC -#define CPP_CPU64_DEFAULT_SPEC "-D__sparc64__ -D__sparc_v9__ -D__arch64__" +#define CPP_CPU64_DEFAULT_SPEC \ + "-D__sparc64__ -D__sparc_v9__ -D__sparcv9 -D__sparc__ -D__arch64__" /* Because we include sparc/sysv4.h. */ #undef CPP_PREDEFINES To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message