lib{atomic, itm}/configure.tgt uses -mcpu=v9 as default for sparc
Carlos Sánchez de La Lama
csanchezdll@gmail.com
Mon Jun 2 09:25:00 GMT 2014
Hi all,
I have seen this in 4.8.2 but seems to be present since 4.7.0 (was added
by revision 184177 in libitm/configure.tgt):
--------
# Map the target cpu to an ARCH sub-directory. At the same time,
# work out any special compilation flags as necessary.
case "${target_cpu}" in
...
sparc)
case " ${CC} ${CFLAGS} " in
*" -m64 "*)
;;
*)
if test -z "$with_cpu"; then
XCFLAGS="${XCFLAGS} -mcpu=v9"
fi
esac
ARCH=sparc
;;
--------
Prevents compilation of gcc-4.8.2 under NetBSD 6.4.1, throws Illegal
Instruction during those lib{atomic, itm} final stage configure.
Removing "-mcpu=v9" allows the build to finalize.
System is a QEMUlated SparcStation 5. Not the best target for testing,
but I understand this is a bug nonetheless.
Thoughts?
Carlos
More information about the Gcc
mailing list