re PR middle-end/38616 (Wrong code when -O3 or -O2 -fstack-protector used)

2009-01-11  Matthias Klose  <doko@ubuntu.com>

        PR middle-end/38616
        * gcc.dg/pr38616.c: New test.

From-SVN: r143277
This commit is contained in:
Matthias Klose 2009-01-11 17:38:22 +00:00 committed by Matthias Klose
parent 06bbcf59db
commit 2ab5ef3ed7
2 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-01-11 Matthias Klose <doko@ubuntu.com>
PR middle-end/38616
* gcc.dg/pr38616.c: New test.
2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
* gcc.dg/graphite/block-3.c: Fix compile error on 32bit.

View File

@ -0,0 +1,13 @@
/* PR middle-end/38616 */
/* { dg-do run } */
/* { dg-options "-O2 -fstack-protector" } */
#include <stdio.h>
#define BUFFER "1234567890abcdefghijklmno"
int main (void)
{
char buffer[1024]="";
sprintf (buffer, "%s", BUFFER);
return strcmp (buffer, BUFFER);
}