From: Bernd Schmidt Date: Mon, 26 Feb 2007 23:42:43 +0000 (+0000) Subject: loop-iv.c (simplify_using_initial_values): Fix oversight in previous change; avoid... X-Git-Tag: releases/gcc-4.3.0~6590 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=48982394521bb1a742a11aa5c17a25a9acd96639;p=thirdparty%2Fgcc.git loop-iv.c (simplify_using_initial_values): Fix oversight in previous change; avoid a memory leak when returning early. * loop-iv.c (simplify_using_initial_values): Fix oversight in previous change; avoid a memory leak when returning early. From-SVN: r122346 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8388cef151cb..dc22856e0dc4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-02-27 Bernd Schmidt + + * loop-iv.c (simplify_using_initial_values): Fix oversight in previous + change; avoid a memory leak when returning early. + 2007-02-26 Mark Mitchell * c-decl.c (static_ctors): Move to c-common.c. diff --git a/gcc/loop-iv.c b/gcc/loop-iv.c index 21005d3ff51f..00c82943642e 100644 --- a/gcc/loop-iv.c +++ b/gcc/loop-iv.c @@ -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)