summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2003-12-15 10:34:01 +0000
committerobrien <obrien@FreeBSD.org>2003-12-15 10:34:01 +0000
commit0a1e7b39d8f8fb403c4ac7ce06bba58f8957c36d (patch)
treec0488e10abaa617cc1d78ee64545c33eb103310f /contrib
parent58652b52677893698d3dff4274cb4ca4b558c991 (diff)
downloadFreeBSD-src-0a1e7b39d8f8fb403c4ac7ce06bba58f8957c36d.zip
FreeBSD-src-0a1e7b39d8f8fb403c4ac7ce06bba58f8957c36d.tar.gz
Consistently define __LP64__ on all our 64-bit platforms.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/gcc/config/alpha/freebsd.h3
-rw-r--r--contrib/gcc/config/i386/freebsd64.h8
-rw-r--r--contrib/gcc/config/sparc/freebsd.h8
3 files changed, 18 insertions, 1 deletions
diff --git a/contrib/gcc/config/alpha/freebsd.h b/contrib/gcc/config/alpha/freebsd.h
index 4bfe666..f7c5703 100644
--- a/contrib/gcc/config/alpha/freebsd.h
+++ b/contrib/gcc/config/alpha/freebsd.h
@@ -27,10 +27,11 @@ Boston, MA 02111-1307, USA. */
the GCC option `-posix', and PIC issues as on all FreeBSD platforms, we must
deal with the Alpha's FP issues. */
-#undef FBSD_TARGET_CPU_CPP_BUILTINS
+#undef FBSD_TARGET_CPU_CPP_BUILTINS
#define FBSD_TARGET_CPU_CPP_BUILTINS() \
do \
{ \
+ builtin_define ("__LP64__"); \
if (flag_pic) \
{ \
builtin_define ("__PIC__"); \
diff --git a/contrib/gcc/config/i386/freebsd64.h b/contrib/gcc/config/i386/freebsd64.h
index 82e3814..548b092 100644
--- a/contrib/gcc/config/i386/freebsd64.h
+++ b/contrib/gcc/config/i386/freebsd64.h
@@ -25,6 +25,14 @@ 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 \
+ { \
+ 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. */
diff --git a/contrib/gcc/config/sparc/freebsd.h b/contrib/gcc/config/sparc/freebsd.h
index 36f2f2a..39d4310 100644
--- a/contrib/gcc/config/sparc/freebsd.h
+++ b/contrib/gcc/config/sparc/freebsd.h
@@ -27,6 +27,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. */
OpenPOWER on IntegriCloud