Revert r234356 for now, as it leads to run-time problems on 32-bit

PowerPC.  Note this will break world.

Reported by:	andreast
Pointy hat to:	dim
This commit is contained in:
Dimitry Andric 2012-04-23 06:33:27 +00:00
parent c606eab458
commit db3212b375
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=234596
3 changed files with 1 additions and 9 deletions

View File

@ -34,7 +34,6 @@ CFLAGS+= -include osreldate.h
.if ${MACHINE_CPUARCH} == "powerpc"
TGTOBJS= crtsavres.o
SRCS+= crtsavres.asm
CFLAGS+= -mlongcall
.endif
.if ${MACHINE_CPUARCH} == "sparc64"
TGTOBJS= crtfastmath.o

View File

@ -11,12 +11,6 @@ CFLAGS+=-I${LLVM_SRCS}/include -I${CLANG_SRCS}/include \
# LLVM is not strict aliasing safe as of 12/31/2011
CFLAGS+= -fno-strict-aliasing
# Work around an issue on 32-bit PowerPC, where the clang executable can get
# too big, causing 'relocation truncated to fit' errors at link time.
.if ${MACHINE_ARCH} == "powerpc"
CFLAGS+=-mlongcall
.endif
TARGET_ARCH?= ${MACHINE_ARCH}
CFLAGS+=-DLLVM_DEFAULT_TARGET_TRIPLE=\"${TARGET_ARCH:C/amd64/x86_64/}-unknown-freebsd10.0\"

View File

@ -6,8 +6,7 @@ SRCS= crt1.c crti.S crtn.S
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
OBJS+= Scrt1.o gcrt1.o
CFLAGS+= -I${.CURDIR}/../common \
-I${.CURDIR}/../../libc/include \
-mlongcall
-I${.CURDIR}/../../libc/include
all: ${OBJS}