public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/52610] mpfr fails to compile when specifying CFLAGS="-O3 -mcpu=leon" Date: Sun, 18 Mar 2012 08:16:00 -0000 [thread overview] Message-ID: <bug-52610-4-Sw1X4CR6QP@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-52610-4@http.gcc.gnu.org/bugzilla/> 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} \
next prev parent reply other threads:[~2012-03-18 8:14 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-03-17 20:33 [Bug target/52610] New: " matt at use dot net 2012-03-17 21:09 ` [Bug target/52610] " mikpe at it dot uu.se 2012-03-18 8:16 ` ebotcazou at gcc dot gnu.org [this message] 2012-03-18 9:32 ` ebotcazou at gcc dot gnu.org 2012-03-24 18:48 ` ebotcazou at gcc dot gnu.org 2012-03-24 18:50 ` ebotcazou at gcc dot gnu.org 2012-03-24 19:15 ` ebotcazou at gcc dot gnu.org 2012-03-24 20:59 ` matt at use dot net 2012-04-23 15:21 ` matt at use dot net
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-52610-4-Sw1X4CR6QP@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).