diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 1999-12-22 02:03:28 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 1999-12-22 02:03:28 +0000 |
commit | 6a36d46ee42451dd25d6495e1ef185c428a97b9b (patch) | |
tree | 6cc7f686c5c65c4a220b57e75c0166f02259941f | |
parent | f4d206c6214a6e25029ee5e448289ca6d6e89ca8 (diff) | |
download | src-6a36d46ee42451dd25d6495e1ef185c428a97b9b.tar.gz src-6a36d46ee42451dd25d6495e1ef185c428a97b9b.zip |
* Support a non-default sized `long' data type. This allows one to easily
build the compiler with a 64-bit longs on the i386.
* Comment an important dependancy.
* Fix some style nits
Submitted by: bde
Notes
Notes:
svn path=/head/; revision=54987
-rw-r--r-- | gnu/usr.bin/cc/Makefile.inc | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/gnu/usr.bin/cc/Makefile.inc b/gnu/usr.bin/cc/Makefile.inc index fb844a361287..a2f02627d69a 100644 --- a/gnu/usr.bin/cc/Makefile.inc +++ b/gnu/usr.bin/cc/Makefile.inc @@ -18,17 +18,19 @@ OUT_FILE= ${GCC_ARCH}.c OUT_OBJ= ${GCC_ARCH} target= ${MACHINE_ARCH}-unknown-freebsd -# These architectures are Cygnus's default for enabling Haifa -.if (${GCC_ARCH} == "alpha") || (${GCC_ARCH} == "sparc") -USE_EGCS_HAIFA=1 +# These architectures are Cygnus's default for enabling Haifa. +.if ${GCC_ARCH} == "alpha" || ${GCC_ARCH} == "sparc" +USE_EGCS_HAIFA= 1 .endif version!= sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${GCCDIR}/version.c -#version!= sed -e 's/.*\(egcs-[0-9\.]*\).*/\1/' < ${GCCDIR}/version.c CFLAGS+= -DFREEBSD_NATIVE -DIN_GCC -DHAVE_CONFIG_H CFLAGS+= -DDEFAULT_TARGET_VERSION=\"$(version)\" CFLAGS+= -DDEFAULT_TARGET_MACHINE=\"$(target)\" +.if defined(LONG_TYPE_SIZE) +CFLAGS+= -DLONG_TYPE_SIZE=${LONG_TYPE_SIZE} +.endif .if defined(USE_EGCS_HAIFA) CFLAGS+= -DHAIFA @@ -37,7 +39,7 @@ CFLAGS+= -DHAIFA # If hw.machine_arch doesn't match ${MACHINE_ARCH}, then we're cross # compiling. gcc needs to know about this, so we set the -DCROSS_COMPILE # define. -__M!=/sbin/sysctl -b hw.machine_arch +__M!= /sbin/sysctl -b hw.machine_arch .if ${__M} != ${MACHINE_ARCH} CFLAGS+= -DCROSS_COMPILE .endif @@ -46,6 +48,8 @@ CFLAGS+= -DCROSS_COMPILE CFLAGS+= -I${.OBJDIR}/../cc_tools .endif CFLAGS+= -I${.CURDIR}/../cc_tools +# This must go after the -I for cc_tools to resolve ambiguities for hash.h +# correctly. CFLAGS+= -I${GCCDIR} -I${GCCDIR}/config .if exists(${.OBJDIR}/../cc_drv) |