This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ICE's with -fgimple


Hi,
I observed a couple of similar ICE's with -fgimple for a function
having  startwith.

eg:
void __GIMPLE (startwith ("ccp1")) foo ()
{
  return;
}

Compiling with -fgimple -O works fine however removing -O causes the
following ICE:
foo.c:7:1: internal compiler error: in expand, at cgraphunit.c:2054
 }
 ^
0x7d4b5c cgraph_node::expand()
../../gcc/gcc/cgraphunit.c:2054
0x7d5852 output_in_order
../../gcc/gcc/cgraphunit.c:2244
0x7d5bfd symbol_table::compile()
../../gcc/gcc/cgraphunit.c:2488
0x7d86e2 symbol_table::compile()
../../gcc/gcc/cgraphunit.c:2558
0x7d86e2 symbol_table::finalize_compilation_unit()

The following ICE is observed when startwith is set to some of the
later passes even with -O,
starting with fre3 like vrp1, pre, strlen (but few passes after fre3
like thread1, dce2 don't cause ICE).

foo.c: In function ‘foo’:
foo.c:7:1: internal compiler error: in expand, at cgraphunit.c:2054
 }
 ^
0x7d4b5c cgraph_node::expand()
../../gcc/gcc/cgraphunit.c:2054
0x7d6217 expand_all_functions
../../gcc/gcc/cgraphunit.c:2137
0x7d6217 symbol_table::compile()
../../gcc/gcc/cgraphunit.c:2494
0x7d86e2 symbol_table::compile()
../../gcc/gcc/cgraphunit.c:2558
0x7d86e2 symbol_table::finalize_compilation_unit()
../../gcc/gcc/cgraphunit.c:2584

Thanks,
Prathamesh


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]