]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
loop-iv.c (simplify_using_initial_values): Fix oversight in previous change; avoid...
authorBernd Schmidt <bernd.schmidt@analog.com>
Mon, 26 Feb 2007 23:42:43 +0000 (23:42 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Mon, 26 Feb 2007 23:42:43 +0000 (23:42 +0000)
* loop-iv.c (simplify_using_initial_values): Fix oversight in previous
change; avoid a memory leak when returning early.

From-SVN: r122346

gcc/ChangeLog
gcc/loop-iv.c

index 8388cef151cb8d786c1c6c20f7b9638a16ed66e2..dc22856e0dc41630e91e38813c1da7da2a5353f3 100644 (file)
@@ -1,3 +1,8 @@
+2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
+
+       * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
+       change; avoid a memory leak when returning early.
+       
 2007-02-26  Mark Mitchell  <mark@codesourcery.com>
 
        * c-decl.c (static_ctors): Move to c-common.c.
index 21005d3ff51f3644ad004f0149b5683d72a3fd33..00c82943642e7238268d319d989a1349813bab38 100644 (file)
@@ -1812,7 +1812,10 @@ simplify_using_initial_values (struct loop *loop, enum rtx_code op, rtx *expr)
              return;
            }
          if (for_each_rtx (expr, altered_reg_used, altered))
-           return;
+           {
+             FREE_REG_SET (altered);
+             return;
+           }
        }
 
       if (!single_pred_p (e->src)