diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-05-31 11:32:43 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-05-31 11:32:43 +0000 |
commit | 6bbbfabda899809777793a2bbbc04ba14d93a19f (patch) | |
tree | 19f08203aa0dd2e5025ee49ce20a5795fa5c3437 /gcc/testsuite/gcc.dg | |
parent | 85c0fb926f46f1dce691d622a1b741b54b486d7c (diff) | |
download | gcc-6bbbfabda899809777793a2bbbc04ba14d93a19f.tar.gz |
Fix gcc.dg/shrink-wrap-alloca.c
* gcc.dg/shrink-wrap-alloca.c: Use __builtin_alloca.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199533 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/shrink-wrap-alloca.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.dg/shrink-wrap-alloca.c b/gcc/testsuite/gcc.dg/shrink-wrap-alloca.c index 9e69ca16645..fbe6f4fd20d 100644 --- a/gcc/testsuite/gcc.dg/shrink-wrap-alloca.c +++ b/gcc/testsuite/gcc.dg/shrink-wrap-alloca.c @@ -1,13 +1,11 @@ /* { dg-do compile } */ /* { dg-options "-O2 -g" } */ -extern int * alloca (int); - int *p; void test (int a) { if (a > 0) - p = alloca (4); + p = __builtin_alloca (4); } |