From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27472 invoked by alias); 17 Mar 2012 20:11:40 -0000 Received: (qmail 27460 invoked by uid 22791); 17 Mar 2012 20:11:36 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_QE X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 17 Mar 2012 20:11:22 +0000 From: "matt at use dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/52610] New: mpfr fails to compile when specifying CFLAGS="-O3 -mcpu=leon" Date: Sat, 17 Mar 2012 20:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: matt at use dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-03/txt/msg01464.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52610 Bug #: 52610 Summary: mpfr fails to compile when specifying CFLAGS="-O3 -mcpu=leon" Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: target AssignedTo: unassigned@gcc.gnu.org ReportedBy: matt@use.net 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 [...] make [...] libtool: compile: gcc -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_LOCALE_H=1 -DHAVE_WCHAR_H=1 -DHAVE_STDARG=1 -DHAVE_SYS_TIME_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_STDINT_H=1 -DHAVE_VA_COPY=1 -DHAVE_SETLOCALE=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_LONG_LONG=1 -DHAVE_INTMAX_T=1 -DMPFR_HAVE_INTMAX_MAX=1 -DMPFR_HAVE_FESETROUND=1 -DHAVE_DENORMS=1 -DHAVE_FLOOR=1 -DHAVE_CEIL=1 -DMPFR_USE_THREAD_SAFE=1 -DLT_OBJDIR=\".libs/\" -DHAVE_ATTRIBUTE_MODE=1 -DHAVE___GMPN_ROOTREM=1 -DHAVE___GMPN_SBPI1_DIVAPPR_Q=1 -I. -I/opt/gcc-4.7.0/include -O3 -mcpu=leon -flto -MT cmp.lo -MD -MP -MF .deps/cmp.Tpo -c cmp.c -fPIC -DPIC -o .libs/cmp.o /tmp/ccjJFPW2.s: Assembler messages: /tmp/ccjJFPW2.s:241: Error: Hardware capability "mul32" not enabled for "smul". make[2]: *** [cmp.lo] Error 1 When I try to add -Av8 to CFLAGS, I get this error: :0:1: error: missing '(' after predicate 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.