[Bug tree-optimization/16867] [3.5 Regression] Inline array initializer miscompilation at -O

mckinlay at redhat dot com gcc-bugzilla@gcc.gnu.org
Tue Aug 3 22:24:00 GMT 2004


------- Additional Comments From mckinlay at redhat dot com  2004-08-03 22:24 -------
FYI making this change in tree-ssa-dce works around the problem:

--- tree-ssa-dce.c      28 Jul 2004 05:13:08 -0000      2.11
+++ tree-ssa-dce.c      3 Aug 2004 22:23:24 -0000
@@ -393,7 +393,6 @@
   for (i = 0; i < NUM_V_MAY_DEFS (v_may_defs); i++)
     {
       tree v_may_def = V_MAY_DEF_RESULT (v_may_defs, i);
-      if (need_to_preserve_store (v_may_def))
        {
          mark_stmt_necessary (stmt, true);
          return;


-- 


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



More information about the Gcc-bugs mailing list