Commit 43a3aa03 by Richard Biener Committed by Richard Biener

re PR testsuite/80416 (FAIL: g++.dg/torture/pr79671.C -O2 execution test)

2017-04-13  Richard Biener  <rguenther@suse.de>

	PR testsuite/80416
	* g++.dg/torture/pr79671.C: Fix asm constraints.

From-SVN: r246902
parent 031fbdb9
2017-04-13 Richard Biener <rguenther@suse.de>
PR testsuite/80416
* g++.dg/torture/pr79671.C: Fix asm constraints.
2017-04-13 Jakub Jelinek <jakub@redhat.com> 2017-04-13 Jakub Jelinek <jakub@redhat.com>
PR debug/80321 PR debug/80321
......
...@@ -13,7 +13,7 @@ int __attribute__((noinline)) foo() ...@@ -13,7 +13,7 @@ int __attribute__((noinline)) foo()
new (&x) B (0); new (&x) B (0);
y = x; y = x;
B *q = reinterpret_cast <B *>(&y); B *q = reinterpret_cast <B *>(&y);
asm volatile ("" : "=r" (q) : "r" (q)); asm volatile ("" : "=r" (q) : "0" (q));
return q->i; return q->i;
} }
......
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