[Bug lto/45949] New: ICE: SIGSEGV in gimple_default_def (tree-dfa.c:538) with -flto/-fwhopr on invalid code

zsojka at seznam dot cz gcc-bugzilla@gcc.gnu.org
Fri Oct 8 22:58:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45949

           Summary: ICE: SIGSEGV in gimple_default_def (tree-dfa.c:538)
                    with -flto/-fwhopr on invalid code
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


Created attachment 22004
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22004
reduced testcase (from g++.dg/template/cond2.C)

Command line:
$ gcc -O2 -flto pr45949.C
or
$ gcc -O2 -fwhopr pr45949.C

Related valgrind output:
pr45949.C: In instantiation of 'int test(c<(0 ?  : X)>*) [with int X = 2]':
pr45949.C:2:24:   instantiated from here
pr45949.C:2:24: error: omitted middle operand to '?:' operand cannot be mangled
==22144== Invalid read of size 8
==22144==    at 0xA1125D: gimple_default_def (tree-dfa.c:538)
==22144==    by 0xC132FB: ipa_analyze_node (ipa-prop.c:1282)
==22144==    by 0xC05E2A: ipcp_generate_summary (ipa-cp.c:1538)
==22144==    by 0x8FC6B5: execute_ipa_summary_passes (passes.c:1423)
==22144==    by 0xC048C7: cgraph_optimize (cgraphunit.c:1718)
==22144==    by 0xC04AA9: cgraph_finalize_compilation_unit (cgraphunit.c:1020)
==22144==    by 0x58736C: cp_write_global_declarations (decl2.c:3928)
==22144==    by 0x9E74E3: toplev_main (toplev.c:946)
==22144==    by 0x657BBBC: (below main) (in /lib64/libc-2.11.2.so)
==22144==  Address 0x40 is not stack'd, malloc'd or (recently) free'd
==22144== 
pr45949.C:7:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.



More information about the Gcc-bugs mailing list