]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
freebsd.h (FBSD_TARGET_CPU_CPP_BUILTINS): Add __LP64__.
authorDavid O'Brien <obrien@FreeBSD.org>
Tue, 16 Dec 2003 10:54:58 +0000 (10:54 +0000)
committerLoren J. Rittle <ljrittle@gcc.gnu.org>
Tue, 16 Dec 2003 10:54:58 +0000 (10:54 +0000)
* config/alpha/freebsd.h (FBSD_TARGET_CPU_CPP_BUILTINS): Add __LP64__.
* config/sparc/freebsd.h (FBSD_TARGET_CPU_CPP_BUILTINS): Likewise.
* config/i386/freebsd64.h (FBSD_TARGET_CPU_CPP_BUILTINS): Conditionally
add __LP64__.

From-SVN: r74684

gcc/ChangeLog
gcc/config/alpha/freebsd.h
gcc/config/i386/freebsd64.h
gcc/config/sparc/freebsd.h

index 1fa5eb20e0070466203d7495a2d58246c9c7bbeb..5b0216b6229dba80277803eaf1f2493f1ffff3c4 100644 (file)
@@ -1,3 +1,10 @@
+2003-12-16  David O'Brien  <obrien@FreeBSD.org>
+
+       * config/alpha/freebsd.h (FBSD_TARGET_CPU_CPP_BUILTINS): Add __LP64__.
+       * config/sparc/freebsd.h (FBSD_TARGET_CPU_CPP_BUILTINS): Likewise.
+       * config/i386/freebsd64.h (FBSD_TARGET_CPU_CPP_BUILTINS): Conditionally
+       add __LP64__.
+
 2003-12-16  Hartmut Penner  <hpenner@de.ibm.com>
 
        * altivec.h (vec_cmple, vec_all_numeric): Fix typo.
index f809c62012e380f71f39420da2982c56d1329ddc..149ce06582215ce7740d3aa7a4ff4fd61f3e8578 100644 (file)
@@ -29,6 +29,7 @@ Boston, MA 02111-1307, USA.  */
 #define FBSD_TARGET_CPU_CPP_BUILTINS()         \
   do                                           \
     {                                          \
+      builtin_define ("__LP64__");             \
       if (flag_pic)                            \
        {                                       \
          builtin_define ("__PIC__");           \
index 12ca062301d02b3423ccea2348b085eb5ce2cb0d..4a660341b07083425530b433a59f1ba520942069 100644 (file)
@@ -23,6 +23,17 @@ Boston, MA 02111-1307, USA.  */
 #undef  TARGET_VERSION
 #define TARGET_VERSION fprintf (stderr, " (FreeBSD/x86-64 ELF)");
 
+#undef  FBSD_TARGET_CPU_CPP_BUILTINS
+#define FBSD_TARGET_CPU_CPP_BUILTINS()                 \
+  do                                                   \
+    {                                                  \
+      if (TARGET_64BIT)                                        \
+      {                                                        \
+       builtin_define ("__LP64__");                    \
+      }                                                        \
+    }                                                  \
+  while (0)
+
 /* Provide a LINK_SPEC appropriate for the FreeBSD/x86-64 ELF target.
    This is a copy of LINK_SPEC from <i386/freebsd.h> tweaked for
    the x86-64 target.  */
index b2809ddb7cf500e2252cf7f903b587bafa88fd3a..21f3da2183fd0387e775b21b0b9f3ccc8e27a689 100644 (file)
@@ -25,6 +25,14 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #define CPP_CPU64_DEFAULT_SPEC \
   "-D__sparc64__ -D__sparc_v9__ -D__sparcv9 -D__sparc__ -D__arch64__"
 
+#undef  FBSD_TARGET_CPU_CPP_BUILTINS
+#define FBSD_TARGET_CPU_CPP_BUILTINS()         \
+  do                                           \
+    {                                          \
+      builtin_define ("__LP64__");             \
+    }                                          \
+  while (0)
+
 /* Because we include sparc/sysv4.h.  */
 #undef  CPP_PREDEFINES
 /* Do not define it here, we now use TARGET_OS_CPP_BUILTINS.  */