http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52610
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot | |gnu.org --- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-03-18 08:13:53 UTC --- > error when compiling MPFR 3.1.0: > debian-sparc:~/src/mpfr-3.1.0# CFLAGS="-O3 -mcpu=leon -flto" CXXFLAGS="-O3 > -mcpu=v8 -flto" LDFLAGS="-flto -O3 -mcpu=v8" ./configure > --prefix=/opt/gcc-4.7.0 --with-gnu-as --with-gnu-ld --with-gmp=/opt/gcc-4.7.0 You have a strange mix of options -mcpu=leon/-mcpu=v8 here. > When I try to add -Av8 to CFLAGS, I get this error: > <command-line>:0:1: error: missing '(' after predicate Sure, -Av8 is an assembler option, not a compiler option. > I have a qemu-sparc virtual machine based on Debian/Sarge I can provide that > reproduces the problem. I'll work on attaching a pre-processed example. Try this: Index: config/sparc/sparc.h =================================================================== --- config/sparc/sparc.h (revision 185503) +++ config/sparc/sparc.h (working copy) @@ -328,6 +328,7 @@ extern enum cmodel sparc_cmodel; %{mcpu=sparclite:-Asparclite} \ %{mcpu=sparclite86x:-Asparclite} \ %{mcpu=f930:-Asparclite} %{mcpu=f934:-Asparclite} \ +%{mcpu=leon:-Av8} \ %{mcpu=v8:-Av8} \ %{mv8plus:-Av8plus} \ %{mcpu=v9:-Av9} \