------- Comment #4 from rguenth at gcc dot gnu dot org  2009-10-09 09:50 -------
r152542 works for me (on native i?86).

0>>> COPY D.1540_28 = 13
1>>> COND 1 = D.1540_28 eq_expr 13
1>>> COND 0 = D.1540_28 ne_expr 13
1>>> COND 1 = D.1540_28 le_expr 13
1>>> COND 1 = D.1540_28 ge_expr 13
LKUP STMT D.1539_90 = D.1538_61 plus_expr 1
          D.1539_90 = D.1538_61 + 1;
LKUP STMT D.1540_91 = outbuffer[D.1539_90]
          D.1540_91 = outbuffer[D.1539_90];
LKUP STMT D.1540_91 ne_expr 13
          if (D.1540_91 != 13)
<<<< COND 1 = D.1540_28 ge_expr 13
<<<< COND 1 = D.1540_28 le_expr 13
<<<< COND 0 = D.1540_28 ne_expr 13
<<<< COND 1 = D.1540_28 eq_expr 13
<<<< COND <<< Unknown tree: plus_nomod_expr
  13
   >>>
 = D.1540_28 le_expr 13

there seems to be some memory corruption going on.


==5807== Invalid read of size 4
==5807==    at 0x866C135: remove_local_expressions_from_table
(tree-ssa-dom.c:825)
==5807==    by 0x86702B6: dom_opt_leave_block (tree-ssa-dom.c:1763)
==5807==    by 0x8A91AE8: walk_dominator_tree (domwalk.c:205)
==5807==    by 0x866B61E: tree_ssa_dominator_optimize (tree-ssa-dom.c:651)
==5807==    by 0x84A273A: execute_one_pass (passes.c:1514)
==5807==    by 0x84A28DA: execute_pass_list (passes.c:1563)
==5807==    by 0x84A28F6: execute_pass_list (passes.c:1564)
==5807==    by 0x86017C7: tree_rest_of_compilation (tree-optimize.c:392)
==5807==    by 0x881B1B9: cgraph_expand_function (cgraphunit.c:1160)
==5807==    by 0x881B36A: cgraph_expand_all_functions (cgraphunit.c:1219)
==5807==    by 0x881B97C: cgraph_optimize (cgraphunit.c:1460)
==5807==    by 0x881AEA7: cgraph_finalize_compilation_unit (cgraphunit.c:1089)
==5807==  Address 0x45659c8 is 0 bytes inside a block of size 40 free'd
==5807==    at 0x4024866: free (vg_replace_malloc.c:325)
==5807==    by 0x866B1E0: free_expr_hash_elt (tree-ssa-dom.c:553)
==5807==    by 0x8B86FBF: htab_remove_elt_with_hash (hashtab.c:710)
==5807==    by 0x866C1DA: remove_local_expressions_from_table
(tree-ssa-dom.c:836)
==5807==    by 0x86702B6: dom_opt_leave_block (tree-ssa-dom.c:1763)
==5807==    by 0x8A91AE8: walk_dominator_tree (domwalk.c:205)
==5807==    by 0x866B61E: tree_ssa_dominator_optimize (tree-ssa-dom.c:651)
==5807==    by 0x84A273A: execute_one_pass (passes.c:1514)
==5807==    by 0x84A28DA: execute_pass_list (passes.c:1563)
==5807==    by 0x84A28F6: execute_pass_list (passes.c:1564)
==5807==    by 0x86017C7: tree_rest_of_compilation (tree-optimize.c:392)
==5807==    by 0x881B1B9: cgraph_expand_function (cgraphunit.c:1160)


... etc, and a lot more follow.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal


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

Reply via email to