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