re PR testsuite/80416 (FAIL: g++.dg/torture/pr79671.C -O2 execution test)
authorRichard Biener <rguenther@suse.de>
Thu, 13 Apr 2017 11:17:38 +0000 (11:17 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 13 Apr 2017 11:17:38 +0000 (11:17 +0000)
2017-04-13  Richard Biener  <rguenther@suse.de>

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

From-SVN: r246902

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr79671.C

index 3c33b0f..f15ba03 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        PR debug/80321
index 9460585..d3c6f9b 100644 (file)
@@ -13,7 +13,7 @@ int __attribute__((noinline)) foo()
   new (&x) B (0);
   y = x;
   B *q = reinterpret_cast <B *>(&y);
-  asm volatile ("" : "=r" (q) : "r" (q));
+  asm volatile ("" : "=r" (q) : "0" (q));
   return q->i;
 }