From: Michael Zolotukhin Date: Wed, 22 May 2013 07:48:13 +0000 (+0000) Subject: read-rtl.c (copy_rtx_for_iterators): Continue applying iterators while it has any... X-Git-Tag: releases/gcc-4.9.0~5774 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c0602ab82fb900a92cdeb0b09dfbf16a993aaf7b;p=thirdparty%2Fgcc.git read-rtl.c (copy_rtx_for_iterators): Continue applying iterators while it has any effect. * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators while it has any effect. From-SVN: r199177 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c43d82034fc7..663bfb269339 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-05-22 Michael Zolotukhin + + * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators + while it has any effect. + 2013-05-21 Easwaran Raman PR tree-optimization/57322 diff --git a/gcc/read-rtl.c b/gcc/read-rtl.c index cd58b1f82381..2b76c1b9db2d 100644 --- a/gcc/read-rtl.c +++ b/gcc/read-rtl.c @@ -380,7 +380,7 @@ apply_iterator_to_string (const char *string) static rtx copy_rtx_for_iterators (rtx original) { - const char *format_ptr; + const char *format_ptr, *p; int i, j; rtx x; @@ -397,12 +397,14 @@ copy_rtx_for_iterators (rtx original) switch (format_ptr[i]) { case 'T': - XTMPL (x, i) = apply_iterator_to_string (XTMPL (x, i)); + while (XTMPL (x, i) != (p = apply_iterator_to_string (XTMPL (x, i)))) + XTMPL (x, i) = p; break; case 'S': case 's': - XSTR (x, i) = apply_iterator_to_string (XSTR (x, i)); + while (XSTR (x, i) != (p = apply_iterator_to_string (XSTR (x, i)))) + XSTR (x, i) = p; break; case 'e':