Commit 2ab5ef3e by Matthias Klose Committed by Matthias Klose

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
parent 06bbcf59
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.
......
/* 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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment