pr79671_0.C (foo): Fix asm constraints.

* g++.dg/lto/pr79671_0.C (foo): Fix asm constraints.

From-SVN: r247550
This commit is contained in:
Uros Bizjak 2017-05-03 16:54:16 +02:00
parent d1b5f5cc3c
commit 4d0e904fbf
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2017-05-03 Uros Bizjak <ubizjak@gmail.com>
* g++.dg/lto/pr79671_0.C (foo): Fix asm constraints.
2017-05-03 Richard Biener <rguenther@suse.de>
* gcc.dg/vect/costmodel/x86_64/costmodel-alignpeel.c: New testcase.
@ -5,7 +9,8 @@
2017-05-03 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/79472
* gcc.dg/tree-ssa/vrp40.c: Add -fno-tree-switch-conversion to dg-options.
* gcc.dg/tree-ssa/vrp40.c: Add -fno-tree-switch-conversion
to dg-options.
* gcc.dg/tree-ssa/vrp113.c: New test.
* gcc.dg/tree-ssa/cswtch-3.c: New test.
* gcc.dg/tree-ssa/cswtch-4.c: New test.

View 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));
return q->i;
}
extern "C" void bar ();