This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PR80416
- From: Richard Biener <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 13 Apr 2017 13:01:25 +0200 (CEST)
- Subject: [PATCH] Fix PR80416
- Authentication-results: sourceware.org; auth=none
The following hopefully fixes asm constraints (works for ia64 now,
still works on x86_64).
Richard.
2017-04-13 Richard Biener <rguenther@suse.de>
PR testsuite/80416
* g++.dg/torture/pr79671.C: Fix asm constraints.
Index: gcc/testsuite/g++.dg/torture/pr79671.C
===================================================================
--- gcc/testsuite/g++.dg/torture/pr79671.C (revision 246899)
+++ gcc/testsuite/g++.dg/torture/pr79671.C (working copy)
@@ -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;
}