vla-1.c (main): Use result of f1 to avoid optimizing it away if promoted to const.
2011-03-16 Richard Guenther <rguenther@suse.de> * gcc.dg/guality/vla-1.c (main): Use result of f1 to avoid optimizing it away if promoted to const. From-SVN: r171050
This commit is contained in:
parent
4db6d7d79d
commit
51cdce9ab6
|
@ -1,3 +1,8 @@
|
||||||
|
2011-03-16 Richard Guenther <rguenther@suse.de>
|
||||||
|
|
||||||
|
* gcc.dg/guality/vla-1.c (main): Use result of f1 to avoid
|
||||||
|
optimizing it away if promoted to const.
|
||||||
|
|
||||||
2011-03-16 Richard Guenther <rguenther@suse.de>
|
2011-03-16 Richard Guenther <rguenther@suse.de>
|
||||||
|
|
||||||
PR tree-optimization/48149
|
PR tree-optimization/48149
|
||||||
|
|
|
@ -28,9 +28,10 @@ f2 (int i)
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
|
volatile int j;
|
||||||
int i = 5;
|
int i = 5;
|
||||||
asm volatile ("" : "=r" (i) : "0" (i));
|
asm volatile ("" : "=r" (i) : "0" (i));
|
||||||
f1 (i);
|
j = f1 (i);
|
||||||
f2 (i);
|
f2 (i);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue