This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: New gcc testsuite case
- To: Nick Clifton <nickc at cygnus dot com>
- Subject: Re: New gcc testsuite case
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Fri, 30 Jun 2000 11:03:23 +0100
- Cc: gcc-patches at gcc dot gnu dot org
- Cc: rearnsha at arm dot com
- Organization: ARM Ltd.
- Reply-To: rearnsha at arm dot com
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++;
> + }
> + }