This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
ICE's with -fgimple
- From: Prathamesh Kulkarni <prathamesh dot kulkarni at linaro dot org>
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, Richard Biener <rguenther at suse dot de>
- Date: Sun, 18 Dec 2016 17:54:03 +0530
- Subject: ICE's with -fgimple
- Authentication-results: sourceware.org; auth=none
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