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

            Bug ID: 67653
           Summary: ICE on valid code on x86_64-linux-gnu: verify_gimple
                    failed
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu
  Target Milestone: ---

The following code causes an ICE when compiled with the current gcc trunk (at
all optimization levels) on x86_64-linux-gnu in both 32-bit and 64-bit modes.

This is a regression from 5.2.x. 


$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/6.0.0/lto-wrapper
Target: x86_64-pc-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 6.0.0 20150920 (experimental) [trunk revision 227943] (GCC) 
$ 
$ gcc-5.2 -c small.c
$    
$ gcc-trunk -c small.c
small.c: In function ‘foo’:
small.c:2:1: error: invalid rhs for gimple memory store
 foo ()
 ^
D.1758

a

D.1758 = a;
small.c:2:1: internal compiler error: verify_gimple failed
0xae6b3d verify_gimple_in_seq(gimple*)
        ../../gcc-trunk/gcc/tree-cfg.c:4766
0x89d765 gimplify_body(tree_node*, bool)
        ../../gcc-trunk/gcc/gimplify.c:9319
0x89daf6 gimplify_function_tree(tree_node*)
        ../../gcc-trunk/gcc/gimplify.c:9408
0x72e427 cgraph_node::analyze()
        ../../gcc-trunk/gcc/cgraphunit.c:636
0x73162b analyze_functions
        ../../gcc-trunk/gcc/cgraphunit.c:1091
0x732568 symbol_table::finalize_compilation_unit()
        ../../gcc-trunk/gcc/cgraphunit.c:2540
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.
$ 


-----------------------------


void
foo ()
{
  __asm__ (""::"m" ((
    {
      static int a;
      a;
    })));
}

Reply via email to