patches/gcc/4.4.3/170-sparc64-bsd.patch
changeset 1752 2a0656d9c905
parent 1611 e2516bba8fe5
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/4.4.3/170-sparc64-bsd.patch	Sun Jan 24 22:53:51 2010 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +diff -durN gcc-4.4.0.orig/gcc/config/sparc/freebsd.h gcc-4.4.0/gcc/config/sparc/freebsd.h
     1.5 +--- gcc-4.4.0.orig/gcc/config/sparc/freebsd.h	2007-08-02 12:49:31.000000000 +0200
     1.6 ++++ gcc-4.4.0/gcc/config/sparc/freebsd.h	2009-05-27 21:38:16.000000000 +0200
     1.7 +@@ -25,9 +25,22 @@
     1.8 + /* FreeBSD needs the platform name (sparc64) defined.
     1.9 +    Emacs needs to know if the arch is 64 or 32-bits.  */
    1.10 + 
    1.11 +-#undef  CPP_CPU64_DEFAULT_SPEC
    1.12 +-#define CPP_CPU64_DEFAULT_SPEC \
    1.13 +-  "-D__sparc64__ -D__sparc_v9__ -D__sparcv9 -D__arch64__"
    1.14 ++#undef  FBSD_TARGET_CPU_CPP_BUILTINS
    1.15 ++#define FBSD_TARGET_CPU_CPP_BUILTINS()                  \
    1.16 ++  do                                                    \
    1.17 ++    {                                                   \
    1.18 ++      if (TARGET_ARCH64)                                \
    1.19 ++        {                                               \
    1.20 ++          builtin_define ("__sparc64__");               \
    1.21 ++          builtin_define ("__sparc_v9__");              \
    1.22 ++          builtin_define ("__sparcv9");                 \
    1.23 ++        }                                               \
    1.24 ++      else                                              \
    1.25 ++        builtin_define ("__sparc");                     \
    1.26 ++      builtin_define ("__sparc__");                     \
    1.27 ++    }                                                   \
    1.28 ++  while (0)
    1.29 ++
    1.30 + 
    1.31 + #define LINK_SPEC "%(link_arch)						\
    1.32 +   %{!mno-relax:%{!r:-relax}}						\