public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "peorth at artificial dot ath dot cx" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/13855] New: -O2 with -ftracer %m7 register error
Date: Sun, 25 Jan 2004 12:04:00 -0000	[thread overview]
Message-ID: <20040125120420.13855.peorth@artificial.ath.cx> (raw)

When compiling the latest version of KDE 3.2 beta (and CVS) using GCC 3.3.2 
(20031218, though also happened with previous 'stable' versions of GCC 3.3.2) 
with -ftracer, an error complaining about the invalid %m7 register is output.
This doesn't happen without -ftracer, or by using -O1 instead of -O2.
This is using the latest stable version of binutils as well, though same error 
happened with previous versions.


Error:
/bin/sh ../libtool --silent --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I..
/dcop -I../kio/kssl -I../dcop -I../libltdl -I../kdefx -I../kdecore -I../kdeui 
-I../kio -I../kio/kio -I../kio/kfile -I.. -I/usr/qt/3/include 
-I/usr/X11R6/include -I/usr/kde/3.2/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  
-Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith 
-Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align 
-Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -O2 -march=pentium3 -msse 
-mmmx -mfpmath=sse,387 -pipe -funroll-loops -maccumulate-outgoing-args 
-fprefetch-loop-arrays -foptimize-sibling-calls -freduce-all-givs 
-fmove-all-movables -fomit-frame-pointer -ftracer -Wformat-security 
-Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT 
-DQT_NO_TRANSLATION -c -o kstyle.lo `test -f 'kstyle.cpp' || echo './'`kstyle.
cpp
{standard input}: Assembler messages:
{standard input}:7092: Error: bad register name `%m7'
make[2]: *** [kimageeffect.lo] Error 1
make[2]: *** Waiting for unfinished jobs....

works:
/bin/sh ../libtool --silent --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I..
/dcop -I../kio/kssl -I../dcop -I../libltdl -I../kdefx -I../kdecore -I../kdeui 
-I../kio -I../kio/kio -I../kio/kfile -I.. -I/usr/qt/3/include 
-I/usr/X11R6/include -I/usr/kde/3.2/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  
-Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith 
-Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align 
-Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -O2 -march=pentium3 -msse 
-mmmx -mfpmath=sse,387 -pipe -funroll-loops -maccumulate-outgoing-args 
-fprefetch-loop-arrays -foptimize-sibling-calls -freduce-all-givs 
-fmove-all-movables -fomit-frame-pointer -Wformat-security 
-Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT 
-DQT_NO_TRANSLATION -c -o kstyle.lo `test -f 'kstyle.cpp' || echo './'`kstyle.
cpp

gcc -v output:
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs
Configured with: /var/tmp/portage/gcc-3.3.2-r5/work/gcc-3.3.2/configure 
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3 
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include 
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3 
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man 
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shared 
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib 
--enable-languages=c,c++,f77,objc,java --enable-threads=posix --enable-long-long 
--disable-checking --enable-cstdio=stdio --enable-clocale=generic 
--enable-__cxa_atexit --enable-version-specific-runtime-libs 
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3 
--with-local-prefix=/usr/local --enable-shared --enable-nls 
--without-included-gettext --x-includes=/usr/X11R6/include 
--x-libraries=/usr/X11R6/lib --enable-interpreter --enable-java-awt=xlib 
--with-x --disable-multilib
Thread model: posix
gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)
i686 Pentium III (Coppermine) GenuineIntel GNU/Linux

-- 
           Summary: -O2 with -ftracer %m7 register error
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: peorth at artificial dot ath dot cx
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13855


             reply	other threads:[~2004-01-25 12:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-25 12:04 peorth at artificial dot ath dot cx [this message]
2004-01-25 16:02 ` [Bug optimization/13855] " pinskia at gcc dot gnu dot org
2004-01-25 18:11 ` dhazeghi at yahoo dot com
2004-04-15 12:48 ` pinskia at gcc dot gnu dot org

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=20040125120420.13855.peorth@artificial.ath.cx \
    --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: link
Be 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).