This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13855] New: -O2 with -ftracer %m7 register error
- From: "peorth at artificial dot ath dot cx" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jan 2004 12:04:32 -0000
- Subject: [Bug c++/13855] New: -O2 with -ftracer %m7 register error
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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