Commit 3d6cc50a by Rainer Orth Committed by Rainer Orth

Fix gcc.dg/shrink-wrap-alloca.c

	* gcc.dg/shrink-wrap-alloca.c: Use __builtin_alloca.

From-SVN: r199533
parent ccc20e5c
2013-05-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* gcc.dg/shrink-wrap-alloca.c: Use __builtin_alloca.
2013-05-31 Marek Polacek <polacek@redhat.com> 2013-05-31 Marek Polacek <polacek@redhat.com>
PR tree-optimization/57478 PR tree-optimization/57478
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -g" } */ /* { dg-options "-O2 -g" } */
extern int * alloca (int);
int *p; int *p;
void void
test (int a) test (int a)
{ {
if (a > 0) if (a > 0)
p = alloca (4); p = __builtin_alloca (4);
} }
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