Revert to libgcc for sparc64.

I've had a report of a sparc64 system where cc1 generates illegal
instructions. We still have to diagnose this properly, but instead of
hosing all sparc64 boxes out there, fall back to libgcc to prevent more
damage.

Reported by:	Florian Smeets
This commit is contained in:
Ed Schouten 2010-11-12 15:52:27 +00:00
parent 7f39c0011f
commit 585d4a8062
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=215185
2 changed files with 9 additions and 3 deletions

View File

@ -15,6 +15,10 @@ MK_SSP= no
.include "${.CURDIR}/../../usr.bin/cc/Makefile.tgt"
.if ${TARGET_CPUARCH} == "sparc64"
LIB= gcc
.endif
.PATH: ${GCCDIR}/config/${GCC_CPU} ${GCCDIR}/config ${GCCDIR}
CFLAGS+= -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED \

View File

@ -147,11 +147,13 @@ SRCS+= ${file}.c
. endif
.endfor
.if ${MK_INSTALLLIB} != "no"
.if ${MACHINE_CPUARCH} != "sparc64"
. if ${MK_INSTALLLIB} != "no"
SYMLINKS+=libcompiler_rt.a ${LIBDIR}/libgcc.a
.endif
.if ${MK_PROFILE} != "no"
. endif
. if ${MK_PROFILE} != "no"
SYMLINKS+=libcompiler_rt_p.a ${LIBDIR}/libgcc_p.a
. endif
.endif
.include <bsd.lib.mk>