patches/gcc/4.4.4/170-sparc64-bsd.patch
branch1.7
changeset 1949 838fb48dcd00
parent 1948 d341be24dc68
child 1951 583c6e1510f5
     1.1 --- a/patches/gcc/4.4.4/170-sparc64-bsd.patch	Sun May 16 19:41:53 2010 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,31 +0,0 @@
     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 -
     1.6 -diff -durN gcc-4.4.4.orig/gcc/config/sparc/freebsd.h gcc-4.4.4/gcc/config/sparc/freebsd.h
     1.7 ---- gcc-4.4.4.orig/gcc/config/sparc/freebsd.h	2007-08-02 12:49:31.000000000 +0200
     1.8 -+++ gcc-4.4.4/gcc/config/sparc/freebsd.h	2010-05-16 19:12:00.000000000 +0200
     1.9 -@@ -25,9 +25,22 @@
    1.10 - /* FreeBSD needs the platform name (sparc64) defined.
    1.11 -    Emacs needs to know if the arch is 64 or 32-bits.  */
    1.12 - 
    1.13 --#undef  CPP_CPU64_DEFAULT_SPEC
    1.14 --#define CPP_CPU64_DEFAULT_SPEC \
    1.15 --  "-D__sparc64__ -D__sparc_v9__ -D__sparcv9 -D__arch64__"
    1.16 -+#undef  FBSD_TARGET_CPU_CPP_BUILTINS
    1.17 -+#define FBSD_TARGET_CPU_CPP_BUILTINS()                  \
    1.18 -+  do                                                    \
    1.19 -+    {                                                   \
    1.20 -+      if (TARGET_ARCH64)                                \
    1.21 -+        {                                               \
    1.22 -+          builtin_define ("__sparc64__");               \
    1.23 -+          builtin_define ("__sparc_v9__");              \
    1.24 -+          builtin_define ("__sparcv9");                 \
    1.25 -+        }                                               \
    1.26 -+      else                                              \
    1.27 -+        builtin_define ("__sparc");                     \
    1.28 -+      builtin_define ("__sparc__");                     \
    1.29 -+    }                                                   \
    1.30 -+  while (0)
    1.31 -+
    1.32 - 
    1.33 - #define LINK_SPEC "%(link_arch)						\
    1.34 -   %{!mno-relax:%{!r:-relax}}						\