Command line:
$ g++ -findirect-inlining testcase.C

Valgrind output:
$ valgrind -q --trace-children=yes
/mnt/svn/gcc-trunk/binary-162056-lto-fortran-checking-yes-rtl-df/bin/g++
-findirect-inlining testcase.C
==4614== Invalid read of size 2
==4614==    at 0xA692A8: walk_aliased_vdefs_1.constprop.42
(tree-ssa-alias.c:1707)
==4614==    by 0xA6996D: walk_aliased_vdefs (tree-ssa-alias.c:1748)
==4614==    by 0xBF454A: is_parm_modified_before_call (ipa-prop.c:658)
==4614==    by 0xBF687B: ipa_compute_jump_functions_for_edge (ipa-prop.c:696)
==4614==    by 0xBF7ABC: ipa_analyze_node (ipa-prop.c:901)
==4614==    by 0xBF40C7: analyze_function (ipa-inline.c:2072)
==4614==    by 0xBF4181: inline_generate_summary (ipa-inline.c:2120)
==4614==    by 0x8F16D5: execute_ipa_summary_passes (passes.c:1426)
==4614==    by 0xBE9B90: cgraph_optimize (cgraphunit.c:1869)
==4614==    by 0xBE9E0A: cgraph_finalize_compilation_unit (cgraphunit.c:1171)
==4614==    by 0x588C0C: cp_write_global_declarations (decl2.c:3924)
==4614==    by 0x9DDA45: toplev_main (toplev.c:997)
==4614==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4614== 
testcase.C: In function 'void call_dummy(f_ptr)':
testcase.C:10: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.

Tested revisions:
r162056 - crash
r161659 - crash
r161170 - OK
r159696 - OK
4.5 r160526 - OK


-- 
           Summary: [4.6 Regression] ICE: SIGSEGV in
                    walk_aliased_vdefs_1.constprop.42 (tree-ssa-
                    alias.c:1707) with -findirect-inlining
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz


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

Reply via email to