This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: lib{atomic, itm}/configure.tgt uses -mcpu=v9 as default for sparc
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Carlos Sánchez de La Lama <csanchezdll at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 02 Jun 2014 12:59:52 +0200
- Subject: Re: lib{atomic, itm}/configure.tgt uses -mcpu=v9 as default for sparc
- Authentication-results: sourceware.org; auth=none
- References: <daz8upf8y2z dot fsf at sdf dot lonestar dot org>
> # 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.
IIRC both libraries require the V9 architecture to work properly/efficiently.
--
Eric Botcazou