Message ID | 20110805220625.GA17775@intel.com |
---|---|
State | New |
Headers | show |
On Fri, Aug 5, 2011 at 3:06 PM, H.J. Lu <hongjiu.lu@intel.com> wrote: > Hi, > > I checked in this patch to add a testcase for PR middle-end/47364. > > H.J. > --- > Index: gcc.target/i386/pr47364-1.c > =================================================================== > --- gcc.target/i386/pr47364-1.c (revision 0) > +++ gcc.target/i386/pr47364-1.c (revision 0) > @@ -0,0 +1,12 @@ > +/* { dg-do compile } */ > +/* { dg-options "-O" } */ > + > +static unsigned char foo[256]; > + > +arc4_init(void) > +{ > + int n; > + > + for (n = 0; n < 256; n++) > + foo[n] = n; > +} This testcase looks like it could go into c-torture/compile directory instead of a target specific directory. Thanks, Andrew Pinski
On Fri, Aug 5, 2011 at 3:10 PM, Andrew Pinski <pinskia@gmail.com> wrote: > On Fri, Aug 5, 2011 at 3:06 PM, H.J. Lu <hongjiu.lu@intel.com> wrote: >> Hi, >> >> I checked in this patch to add a testcase for PR middle-end/47364. >> >> H.J. >> --- >> Index: gcc.target/i386/pr47364-1.c >> =================================================================== >> --- gcc.target/i386/pr47364-1.c (revision 0) >> +++ gcc.target/i386/pr47364-1.c (revision 0) >> @@ -0,0 +1,12 @@ >> +/* { dg-do compile } */ >> +/* { dg-options "-O" } */ >> + >> +static unsigned char foo[256]; >> + >> +arc4_init(void) >> +{ >> + int n; >> + >> + for (n = 0; n < 256; n++) >> + foo[n] = n; >> +} > > This testcase looks like it could go into c-torture/compile directory > instead of a target specific directory. > I moved them to gcc.c-torture/compile.
Index: gcc.target/i386/pr47364-1.c =================================================================== --- gcc.target/i386/pr47364-1.c (revision 0) +++ gcc.target/i386/pr47364-1.c (revision 0) @@ -0,0 +1,12 @@ +/* { dg-do compile } */ +/* { dg-options "-O" } */ + +static unsigned char foo[256]; + +arc4_init(void) +{ + int n; + + for (n = 0; n < 256; n++) + foo[n] = n; +} Index: ChangeLog =================================================================== --- ChangeLog (revision 177486) +++ ChangeLog (working copy) @@ -1,3 +1,8 @@ +2011-08-05 H.J. Lu <hongjiu.lu@intel.com> + + PR middle-end/47364 + * gcc.dg/torture/pr47364-1.c: New. + 2011-08-05 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/37221