Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Dec 2002 00:15:40 -0800
From:      "David O'Brien" <obrien@freebsd.org>
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>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021203081540.GA62842>