http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60325
Bug ID: 60325 Summary: ICE in ipa_modify_formal_parameters, at ipa-prop.c compiling g++.dg/cilk-plus/CK/lambda_spawns.cc with LTO-profiledbootstrap build Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: ubizjak at gmail dot com Created attachment 32205 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32205&action=edit Preprocessed source When configured --with-build-config=bootstrap-lto, gcc version 4.9.0 20140223 ICEs a couple of cilk-plus c++ testcases, bith 32bit and 64bit x86_64-pc-linux-gnu targets: FAIL: g++.dg/cilk-plus/CK/lambda_spawns.cc -O3 -fcilkplus (internal compiler error) FAIL: g++.dg/cilk-plus/CK/lambda_spawns.cc -O3 -fcilkplus (test for excess errors) UNRESOLVED: g++.dg/cilk-plus/CK/lambda_spawns.cc -O3 -fcilkplus compilation failed to produce executable FAIL: g++.dg/cilk-plus/CK/lambda_spawns_tplt.cc -O3 -fcilkplus (internal compiler error) FAIL: g++.dg/cilk-plus/CK/lambda_spawns_tplt.cc -O3 -fcilkplus (test for excess errors) UNRESOLVED: g++.dg/cilk-plus/CK/lambda_spawns_tplt.cc -O3 -fcilkplus compilation failed to produce executable FAIL: g++.dg/cilk-plus/CK/lambda_spawns.cc -g -O2 -fcilkplus (internal compiler error) FAIL: g++.dg/cilk-plus/CK/lambda_spawns.cc -g -O2 -fcilkplus (test for excess errors) UNRESOLVED: g++.dg/cilk-plus/CK/lambda_spawns.cc -g -O2 -fcilkplus compilation failed to produce executable FAIL: g++.dg/cilk-plus/CK/lambda_spawns_tplt.cc -g -O2 -fcilkplus (internal compiler error) FAIL: g++.dg/cilk-plus/CK/lambda_spawns_tplt.cc -g -O2 -fcilkplus (test for excess errors) UNRESOLVED: g++.dg/cilk-plus/CK/lambda_spawns_tplt.cc -g -O2 -fcilkplus compilation failed to produce executable $ /ssd/uros/gcc-build-profiled/gcc/cc1plus -std=c++11 -fcilkplus -O2 -quiet lambda_spawns.ii lambda_spawns.cc: In function ‘<built-in>’: lambda_spawns.cc:236:1: internal compiler error: in ipa_modify_formal_parameters, at ipa-prop.c:3516 0x9f4bc8 ipa_modify_formal_parameters(tree_node*, vec<ipa_parm_adjustment, va_heap, vl_ptr>) /home/uros/gcc-svn/trunk/gcc/ipa-prop.c:3516 0x114f0b7 modify_function /home/uros/gcc-svn/trunk/gcc/tree-sra.c:4861 0x114f0b7 ipa_early_sra /home/uros/gcc-svn/trunk/gcc/tree-sra.c:5009 0x114f0b7 (anonymous namespace)::pass_early_ipa_sra::execute() [clone .lto_priv.1931] /home/uros/gcc-svn/trunk/gcc/tree-sra.c:5065 Please submit a full bug report, ... #2 0x00000000009f4bc9 in ipa_modify_formal_parameters(tree_node*, vec<ipa_parm_adjustment, va_heap, vl_ptr>) (fndecl=0x7ffff170b400, adjustments=...) at /home/uros/gcc-svn/trunk/gcc/ipa-prop.c:3516 #3 0x000000000114f0b8 in modify_function (adjustments=..., node=<optimized out>) at /home/uros/gcc-svn/trunk/gcc/tree-sra.c:4861 #4 ipa_early_sra () at /home/uros/gcc-svn/trunk/gcc/tree-sra.c:5009 #5 (anonymous namespace)::pass_early_ipa_sra::execute() [clone .lto_priv.1931] () at /home/uros/gcc-svn/trunk/gcc/tree-sra.c:5065 #6 0x0000000000e025bb in execute_one_pass(opt_pass*) () at /home/uros/gcc-svn/trunk/gcc/passes.c:2229 #7 0x0000000000ebc2fb in execute_pass_list (pass=0x1db9d60) at /home/uros/gcc-svn/trunk/gcc/passes.c:2282 #8 execute_pass_list(opt_pass*) () at /home/uros/gcc-svn/trunk/gcc/passes.c:2283 #9 0x0000000000e2a7dd in do_per_function_toporder(void (*)(void*), void*) () at /home/uros/gcc-svn/trunk/gcc/passes.c:1630 #10 0x0000000000e0131c in execute_ipa_pass_list(opt_pass*) () at /home/uros/gcc-svn/trunk/gcc/passes.c:2613 (gdb) list 3511 { 3512 last_parm_void = (TREE_VALUE (tree_last (old_arg_types)) 3513 == void_type_node); 3514 otypes = ipa_get_vector_of_formal_parm_types (orig_type); 3515 if (last_parm_void) 3516 gcc_assert (oparms.length () + 1 == otypes.length ()); 3517 else 3518 gcc_assert (oparms.length () == otypes.length ()); 3519 } 3520 else Please note, that the compiler is built with "gmake profiledbootstrap".