Commit dd787b0c by Rainer Orth Committed by Rainer Orth

Use __builtin_alloca in gcc.dg/fstack-protector-strong.c

	* gcc.dg/fstack-protector-strong.c: Don't include <stdlib.h>.
	(alloca): Remove declaration.
	(foo9): Replace alloca by __builtin_alloca.

From-SVN: r198883
parent 1a288768
2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* gcc.dg/fstack-protector-strong.c: Don't include <stdlib.h>.
(alloca): Remove declaration.
(foo9): Replace alloca by __builtin_alloca.
2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
* testsuite/gcc.c-torture/compile/limits-externdecl.c [target avr-*-*]:
......
......@@ -4,9 +4,6 @@
/* { dg-options "-O2 -fstack-protector-strong" } */
#include<string.h>
#include<stdlib.h>
extern void *alloca(__SIZE_TYPE__);
extern int g0;
extern int* pg0;
......@@ -112,7 +109,7 @@ foo8 ()
int
foo9 ()
{
char* p = alloca (100);
char* p = __builtin_alloca (100);
return goo ((int *)(p + 50));
}
......
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