New gcc testsuite case

Richard Earnshaw rearnsha@arm.com
Fri Jun 30 03:03:00 GMT 2000


Actually, I think there should be a second (reversed) loop as well...


void
bar (struct a * b)
{
  int i;

  for (i = 0; i < 1000; i++)
    {
      b->x = b;
      b--;
    }
}


> Hi Guys,
> 
>   I would like approval to add the following gcc compile testcase.
>   This test triggers a bug in the current ARM backend (for which a
>   patch is being reviewed).
> 
> Cheers
> 	Nick
> 
> 
> 2000-06-29  Nick Clifton  <nickc@cygnus.com>
> 
> 	* gcc.c-torture/compile/20000629-1.c: New test.
> 
> Index: gcc/testsuite/gcc.c-torture/compile/20000629-1.c
> ===================================================================
> RCS file: 20000629-1.c
> diff -N 20000629-1.c
> *** /dev/null	Tue May  5 13:32:27 1998
> --- 20000629-1.c	Thu Jun 29 11:27:03 2000
> ***************
> *** 0 ****
> --- 1,16 ----
> + struct a
> + {
> +   struct a * x;
> + };
> + 
> + void
> + foo (struct a * b)
> + {
> +   int i;
> + 
> +   for (i = 0; i < 1000; i++)
> +     {
> +       b->x = b;
> +       b++;
> +     }
> + }




More information about the Gcc-patches mailing list