1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/gcc/4.3.2/150-sparc64-bsd.patch Sun Nov 13 18:24:36 2011 +0100
1.3 @@ -0,0 +1,30 @@
1.4 +Original patch from gentoo: gentoo/src/patchsets/gcc/4.3.1/gentoo/14_all_gcc-sparc64-bsd.patch
1.5 +diff -durN gcc-4.3.1.orig/gcc/config/sparc/freebsd.h gcc-4.3.1/gcc/config/sparc/freebsd.h
1.6 +--- gcc-4.3.1.orig/gcc/config/sparc/freebsd.h 2007-08-02 12:49:31.000000000 +0200
1.7 ++++ gcc-4.3.1/gcc/config/sparc/freebsd.h 2008-06-10 14:57:54.000000000 +0200
1.8 +@@ -25,9 +25,22 @@
1.9 + /* FreeBSD needs the platform name (sparc64) defined.
1.10 + Emacs needs to know if the arch is 64 or 32-bits. */
1.11 +
1.12 +-#undef CPP_CPU64_DEFAULT_SPEC
1.13 +-#define CPP_CPU64_DEFAULT_SPEC \
1.14 +- "-D__sparc64__ -D__sparc_v9__ -D__sparcv9 -D__arch64__"
1.15 ++#undef FBSD_TARGET_CPU_CPP_BUILTINS
1.16 ++#define FBSD_TARGET_CPU_CPP_BUILTINS() \
1.17 ++ do \
1.18 ++ { \
1.19 ++ if (TARGET_ARCH64) \
1.20 ++ { \
1.21 ++ builtin_define ("__sparc64__"); \
1.22 ++ builtin_define ("__sparc_v9__"); \
1.23 ++ builtin_define ("__sparcv9"); \
1.24 ++ } \
1.25 ++ else \
1.26 ++ builtin_define ("__sparc"); \
1.27 ++ builtin_define ("__sparc__"); \
1.28 ++ } \
1.29 ++ while (0)
1.30 ++
1.31 +
1.32 + #define LINK_SPEC "%(link_arch) \
1.33 + %{!mno-relax:%{!r:-relax}} \