Force -O1 compilation when targeted for ia64. GCC 4 generates
bad code at -O2. Since this is likely caused by the low-level optimizer, testing TARGET_ARCH rather than MACHINE_ARCH should handle ia64 cross-compilation as well. With this work-around in place, we can release using the current GCC and Binutils code at the default optimization level on ia64. Approved by: re (kensmith)
This commit is contained in:
parent
e06a060ed3
commit
af025ea9a7
@ -4,6 +4,10 @@
|
||||
|
||||
.PATH: ${SRCDIR}/ld
|
||||
|
||||
.if ${TARGET_ARCH} == "ia64"
|
||||
CFLAGS+= -O1
|
||||
.endif
|
||||
|
||||
PROG= ld
|
||||
SCRIPTDIR= /usr/libdata/ldscripts
|
||||
SRCS+= ldcref.c ldctor.c ldemul.c ldemul-list.h ldexp.c ldfile.c \
|
||||
|
Loading…
Reference in New Issue
Block a user