http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55848
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2013-01-02 CC| |hubicka at gcc dot gnu.org, | |rguenth at gcc dot gnu.org Target Milestone|--- |4.8.0 Summary|internal compiler error: |[4.8 Regression] internal |verify_cgraph_node failed |compiler error: |(with `-flto' and |verify_cgraph_node failed |`-fopenmp') |(with `-flto' and | |`-fopenmp') Ever Confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> 2013-01-02 15:11:05 UTC --- Confirmed. The ICE is lto1: error: edge points to wrong declaration: <function_decl 0x7fc05f843f00 omp_get_thread_num type <function_type 0x7fc05f84a2a0 type <integer_type 0x7fc05f7165e8 int public SI size <integer_cst 0x7fc05f71a0a0 constant 32> unit size <integer_cst 0x7fc05f71a0c0 constant 4> align 32 symtab 0 alias set -1 canonical type 0x7fc05f7165e8 precision 32 min <integer_cst 0x7fc05f71a040 -2147483648> max <integer_cst 0x7fc05f71a060 2147483647> pointer_to_this <pointer_type 0x7fc05f71e2a0>> QI size <integer_cst 0x7fc05f705ee0 constant 8> unit size <integer_cst 0x7fc05f705f00 constant 1> align 8 symtab 0 alias set -1 canonical type 0x7fc05f84a348 arg-types <tree_list 0x7fc05f7106b8 value <void_type 0x7fc05f716bd0 void>> pointer_to_this <pointer_type 0x7fc05f84a888>> addressable used nothrow public external QI file t.ii line 4 col 14 align 8 context <translation_unit_decl 0x7fc05f721e60 D.2381>> Instead of: <function_decl 0x7fc05f7b7100 __builtin_omp_get_thread_num type <function_type 0x7fc05f7253f0 type <integer_type 0x7fc05f7165e8 int public SI size <integer_cst 0x7fc05f71a0a0 constant 32> unit size <integer_cst 0x7fc05f71a0c0 constant 4> align 32 symtab 0 alias set -1 canonical type 0x7fc05f7165e8 precision 32 min <integer_cst 0x7fc05f71a040 -2147483648> max <integer_cst 0x7fc05f71a060 2147483647> pointer_to_this <pointer_type 0x7fc05f71e2a0>> QI size <integer_cst 0x7fc05f705ee0 constant 8> unit size <integer_cst 0x7fc05f705f00 constant 1> align 8 symtab 0 alias set -1 canonical type 0x7fc05f7253f0 arg-types <tree_list 0x7fc05f7106b8 value <void_type 0x7fc05f716bd0 void>>> readonly addressable nothrow public external built-in QI file <built-in> line 0 col 0 align 8 built-in BUILT_IN_NORMAL:BUILT_IN_OMP_GET_THREAD_NUM attributes <tree_list 0x7fc05f7b5c30>> _Z1fv.2384/0 (f) @0x7fc05f70ea68 Type: function Visibility: force_output prevailing_def_ironly References: Referring: Read from file: /tmp/cclvzgQr.ltrans0.o Availability: available Function flags: analyzed body finalized Called by: _Z1gv._omp_fn.0.2380.2377/4 (1.00 per call) Calls: snprintf/3 (1.00 per call) omp_get_thread_num/2 (1.00 per call) lto1: internal compiler error: verify_cgraph_node failed 0x6344ed verify_cgraph_node(cgraph_node*) /space/rguenther/src/svn/trunk/gcc/cgraph.c:2582 0x62d71c verify_symtab_node(symtab_node_def*) /space/rguenther/src/svn/trunk/gcc/symtab.c:681 0x62d783 verify_symtab() /space/rguenther/src/svn/trunk/gcc/symtab.c:698 0x63bfd1 compile() /space/rguenther/src/svn/trunk/gcc/cgraphunit.c:1973 0x59db35 lto_main() /space/rguenther/src/svn/trunk/gcc/lto/lto.c:3390