Following Richard Biener's patch at
https://gcc.gnu.org/ml/gcc-patches/2015-03/msg01064.html (r221532),
gcc.target/aarch64/c-output-template-3.c fails with:
c-output-template-3.c: In function 'test':
c-output-template-3.c:7:5: error: impossible constraint in 'asm'
__asm__ ("@ %c0" : : "S" (&test + 4));
This patch fixes the test by changing options to -O in a similar manner to
Richard's fixes to gcc.dg/pr15347.c and c-c++-common/pr19807-1.c.
Ok for trunk?
Cheers, Alan
gcc/testsuite/ChangeLog:
gcc.target/aarch64/c-output-template.c: Add -O, remove
-Wno-pointer-arith.
diff --git a/gcc/testsuite/gcc.target/aarch64/c-output-template-3.c b/gcc/testsu
index c28837c..8bde4cb 100644
--- a/gcc/testsuite/gcc.target/aarch64/c-output-template-3.c
+++ b/gcc/testsuite/gcc.target/aarch64/c-output-template-3.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-Wno-pointer-arith" } */
+/* { dg-options "-O" } */
void
test (void)