[testsuite] fix loop index for gcc.dg/webizer.c

Jeff Law law@redhat.com
Tue Jan 15 22:02:00 GMT 2013


On 01/15/2013 02:57 PM, Janis Johnson wrote:
> Execution of test gcc.dg/webizer.c fails with a segfault for
> powerpc-eabi with the GNU simulator.  The test has an array of size 2
> and accesses that array with indices of 1 and 2.  This patch fixes the
> bounds of the loop index.
>
> Tested on powerpc-none-eabi; OK for trunk?
Based on:


http://gcc.gnu.org/ml/gcc-patches/2012-10/msg01259.html

I think the the loop variables are fairly important.  I think we're less 
likely to perturb the test by increasing the size of the array.

Jeff



More information about the Gcc-patches mailing list