public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][AArch64][Testsuite] Fix gcc.target/aarch64/c-output-template-3.c
@ 2015-03-24 15:43 Alan Lawrence
  2015-03-24 17:47 ` Alan Lawrence
  0 siblings, 1 reply; 6+ messages in thread
From: Alan Lawrence @ 2015-03-24 15:43 UTC (permalink / raw)
  To: gcc-patches; +Cc: Marcus Shawcroft, Richard Biener

[-- Attachment #1: Type: text/plain, Size: 608 bytes --]

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.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: fix-c-out-3.patch --]
[-- Type: text/x-patch; name=fix-c-out-3.patch, Size: 374 bytes --]

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)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-04-07 17:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-24 15:43 [PATCH][AArch64][Testsuite] Fix gcc.target/aarch64/c-output-template-3.c Alan Lawrence
2015-03-24 17:47 ` Alan Lawrence
2015-03-25 18:27   ` James Greenhalgh
2015-03-26 11:39     ` Alan Lawrence
2015-04-07 16:59     ` James Greenhalgh
2015-04-07 17:33       ` Alan Lawrence

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).