Bug 13855 - -O2 with -ftracer %m7 register error
Summary: -O2 with -ftracer %m7 register error
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: 3.3.2
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: wrong-code
Depends on:
Blocks:
 
Reported: 2004-01-25 12:04 UTC by Peorth
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target: i686-pc-linux-gnu
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peorth 2004-01-25 12:04:21 UTC
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
Comment 1 Andrew Pinski 2004-01-25 16:02:06 UTC
Can you attach the preprocessed source?
Comment 2 Andrew Pinski 2004-04-15 12:43:21 UTC
No feedback in 3 months (T-10 days).  We can reopen this bug if the needed feedback is 
given.