aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/fstack-protector-strong.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/fstack-protector-strong.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/fstack-protector-strong.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/fstack-protector-strong.c b/gcc-4.9/gcc/testsuite/gcc.dg/fstack-protector-strong.c
index 7c232fff2..5a5cf98a7 100644
--- a/gcc-4.9/gcc/testsuite/gcc.dg/fstack-protector-strong.c
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/fstack-protector-strong.c
@@ -1,9 +1,10 @@
/* Test that stack protection is done on chosen functions. */
-/* { dg-do compile { target i?86-*-* x86_64-*-* rs6000-*-* s390x-*-* } } */
+/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -fstack-protector-strong" } */
#include<string.h>
+#include<stdlib.h>
extern int g0;
extern int* pg0;
@@ -109,7 +110,7 @@ foo8 ()
int
foo9 ()
{
- char* p = __builtin_alloca (100);
+ char* p = alloca (100);
return goo ((int *)(p + 50));
}