This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/45219] New: [4.6 Regression] ICE: SIGSEGV in dominated_by_p (dominance.c:973) with -O2 -fprofile-generate


Command line:
$ gcc -O2 -fprofile-generate testcase.c

Valgrind output:
==8227== Invalid read of size 8
==8227==    at 0x60BB4B: dominated_by_p (dominance.c:973)
==8227==    by 0x950317: dse_enter_block (tree-ssa-dse.c:198)
==8227==    by 0xF18CC6: walk_dominator_tree (domwalk.c:188)
==8227==    by 0x94F9F2: tree_ssa_dse (tree-ssa-dse.c:429)
==8227==    by 0x7BD50B: execute_one_pass (passes.c:1564)
==8227==    by 0x7BD7A4: execute_pass_list (passes.c:1619)
==8227==    by 0x7BD7B6: execute_pass_list (passes.c:1620)
==8227==    by 0x8FF355: tree_rest_of_compilation (tree-optimize.c:452)
==8227==    by 0xAB6505: cgraph_expand_function (cgraphunit.c:1643)
==8227==    by 0xAB9389: cgraph_optimize (cgraphunit.c:1722)
==8227==    by 0xAB997A: cgraph_finalize_compilation_unit (cgraphunit.c:1185)
==8227==    by 0x4DF88E: c_write_global_declarations (c-decl.c:9698)
==8227==  Address 0x20 is not stack'd, malloc'd or (recently) free'd
==8227== 
testcase.c: In function 'foo':
testcase.c:12:5: 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:
r162940 - crash
r162456 - OK


-- 
           Summary: [4.6 Regression] ICE: SIGSEGV in dominated_by_p
                    (dominance.c:973) with -O2 -fprofile-generate
           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
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]