[Bug c++/40720] New: Optimizer Bug: bad register name

mckelvey at maskull dot com gcc-bugzilla@gcc.gnu.org
Sat Jul 11 17:36:00 GMT 2009

Code compiles fine w/o O3. Recent SVN. I'm unsure how to proceed, as temp files
will be very large. I don't know where to begin making a smaller testcase.
Please advise.

uname -a
CYGWIN_NT-5.1 MCKELVEY-XP 1.7.0(0.210/5/3) 2009-06-18 12:51 i686 Cygwin

g++ -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: /cygdrive/e/Home/cvsroot/gcc/configure --verbose
--enable-threads --disable-nls --enable-checking=release
--disable-win32-registry --enable-languages=c,c++
Thread model: posix
gcc version 4.5.0 20090705 (experimental) (GCC) 

alias CONFIGURECVS='/cygdrive/e/Home/cvsroot/gcc/configure     --verbose
--enable-threads --disable-nls --enable-checking=release    
--disable-win32-registry --enable-languages=c,c++ 2>&1 | tee clog'

alias BUILD='nice make CFLAGS='\'''\'' BOOT_CFLAGS='\'''\'' LIBCFLAGS='\''-g
-O'\''     CXXFLAGS='\''-O'\'' LIBCXXFLAGS='\''-g -O'\''     bootstrap 2>&1 |
tee log'

g++ -c  -O3 -DNDEBUG      -DUSE_MUTEX=1 -findirect-inlining -Winline
-pedantic-errors -Werror -ansi -fno-common -Wall -Wold-style-cast -Wsign-promo
-Wpointer-arith -Wundef -Wwrite-strings -Winvalid-pch -Woverloaded-virtual
-Wcast-qual -Wextra -Wredundant-decls -Wshadow -Wcast-align -Wcomment
-fstrict-aliasing -Winit-self -Wmissing-include-dirs -Wswitch-default
-Wswitch-enum -Wlogical-op -Wconversion -Wsign-conversion
-Wmissing-declarations -Wdeprecated -ftree-switch-conversion -Wuninitialized
-Wparentheses -Wunused -MMD      -fimplicit-templates -I. -I.. -o test054.o
/cygdrive/c/DOCUME~1/Owner/LOCALS~1/Temp/cchrs5yb.s: Assembler messages:
/cygdrive/c/DOCUME~1/Owner/LOCALS~1/Temp/cchrs5yb.s:77000: Warning: end of file
not at end of a line; newline inserted
/cygdrive/c/DOCUME~1/Owner/LOCALS~1/Temp/cchrs5yb.s:77764: Error: bad register
name `%'

File cchrs5yb.s no longer exists.

           Summary: Optimizer Bug: bad register name
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mckelvey at maskull dot com
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin


More information about the Gcc-bugs mailing list