aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2012-04-23 06:33:27 +0000
committerDimitry Andric <dim@FreeBSD.org>2012-04-23 06:33:27 +0000
commitdb3212b37546201ce99d16cce3867ca5f6a895f9 (patch)
treea45275c2c0772c68766c3273f6de09003c4343e6 /lib
parentc606eab4584c07c714e93951e4a408a1ce704579 (diff)
downloadsrc-db3212b37546201ce99d16cce3867ca5f6a895f9.tar.gz
src-db3212b37546201ce99d16cce3867ca5f6a895f9.zip
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
Notes
Notes: svn path=/head/; revision=234596
Diffstat (limited to 'lib')
-rw-r--r--lib/clang/clang.build.mk6
-rw-r--r--lib/csu/powerpc/Makefile3
2 files changed, 1 insertions, 8 deletions
diff --git a/lib/clang/clang.build.mk b/lib/clang/clang.build.mk
index 7437a1df7b90..a14918dc5e6a 100644
--- a/lib/clang/clang.build.mk
+++ b/lib/clang/clang.build.mk
@@ -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\"
diff --git a/lib/csu/powerpc/Makefile b/lib/csu/powerpc/Makefile
index 123391e12a55..bf4c7b15c422 100644
--- a/lib/csu/powerpc/Makefile
+++ b/lib/csu/powerpc/Makefile
@@ -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}