Commit e6e26e59 by Richard Guenther Committed by Richard Biener

re PR c/48731 (regression: __attribute__((flatten)) produces error with function…

re PR c/48731 (regression: __attribute__((flatten)) produces error with function calling variadic functions)

2011-04-26  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/48731
	* gcc.dg/torture/pr48731.c: New testcase.

From-SVN: r172964
parent 0e2a6c2b
2011-04-26 Richard Guenther <rguenther@suse.de>
PR tree-optimization/48731
* gcc.dg/torture/pr48731.c: New testcase.
2011-04-26 Richard Guenther <rguenther@suse.de>
PR testsuite/48753
* gcc.dg/tree-prof/val-prof-2.c: Adjust.
......
/* { dg-do compile } */
#include <stdarg.h>
int blah(int a, ...)
{
va_list va;
va_start(va,a);
if (a == 0)
return -1;
else
{
int i;
for (i = 0; i < a; i++)
va_arg(va,int);
return va_arg(va,int);
}
}
__attribute((flatten))
int blah2(int b, int c)
{
return blah(2, b, c);
}
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