static void (*const __CTOR_LIST__[1]) (void) __attribute__ ((section(".ctors"))) = { (void (*) (void)) -1 };
void __libc_global_ctors (void) { run_hooks (__CTOR_LIST__); } ICEs with 4.1 with -fprofile-arcs: gcc -S bug-292513.3.min.i -fprofile-arcs bug-292513.3.min.i: In function '_GLOBAL__I_0___libc_global_ctors': bug-292513.3.min.i:7: internal compiler error: in named_section_real, at varasm.c:419 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.opensuse.org> for instructions. and is rejected with 4.2 and trunk with -fprofile-arcs bug-292513.3.min.i: In function '_GLOBAL__I_0___libc_global_ctors': bug-292513.3.min.i:1: error: __CTOR_LIST__ causes a section type conflict bug-292513.3.min.i: At top level: bug-292513.3.min.i:1: error: __CTOR_LIST__ causes a section type conflict this is both a regression to 4.0 which happily accepts the code with -fprofile-arcs. Possibly related to PR31490. -- Summary: [4.1/4.2/4.3 Regression] ICE in named_section_real, at varasm.c:419 Product: gcc Version: 4.1.3 Status: UNCONFIRMED Keywords: ice-on-valid-code, rejects-valid Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rguenth at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33216