[Bug c/64809] New: ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode)

su at cs dot ucdavis.edu gcc-bugzilla@gcc.gnu.org
Tue Jan 27 01:11:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64809

            Bug ID: 64809
           Summary: ICE at -O3 with -g enabled on x86_64-linux-gnu (in
                    32-bit mode)
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu

Created attachment 34586
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34586&action=edit
reduced test case

The attached code causes an ICE when compiled with the current gcc trunk at -O3
with -g enabled on x86_64-linux-gnu in the 32-bit mode (but not in 64-bit
mode). 

This test has been very tough to reduce; the attached (with 6130 bytes) is the
best I was able to get so far. 

This is a regression from 4.9.x. 


$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-trunk/configure --prefix=/usr/local/gcc-trunk
--enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
gcc version 5.0.0 20150126 (experimental) [trunk revision 220102] (GCC) 
$ 
$ rm -f ./a.out 
$ gcc-4.9 -m32 -O3 -g small.c >/dev/null 2>&1
$ ls ./a.out
./a.out
$ rm -f ./a.out
$ gcc-trunk -m32 -O3 small.c >/dev/null 2>&1
$ ls ./a.out
./a.out
$ rm -f ./a.out
$ 
$ 
$ gcc-trunk -m32 -O3 -g small.c > out.txt 2>&1 
$ tail -n 16 out.txt
small.c: In function ‘main’:
small.c:348:1: internal compiler error: Segmentation fault
 main ()
 ^
0xa85e5f crash_signal
    ../../gcc-trunk/gcc/toplev.c:383
0x6afd5b reorder_operands
    ../../gcc-trunk/gcc/cfgexpand.c:5031
0x6bc971 expand_gimple_basic_block
    ../../gcc-trunk/gcc/cfgexpand.c:5091
0x6bdd77 execute
    ../../gcc-trunk/gcc/cfgexpand.c:6003
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
$


More information about the Gcc-bugs mailing list