From: Alan Lawrence <alan.lawrence@arm.com>
To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Cc: Marcus Shawcroft <Marcus.Shawcroft@arm.com>,
Richard Biener <richard.guenther@gmail.com>
Subject: [PATCH][AArch64][Testsuite] Fix gcc.target/aarch64/c-output-template-3.c
Date: Tue, 24 Mar 2015 15:43:00 -0000 [thread overview]
Message-ID: <5511862D.3010406@arm.com> (raw)
[-- 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)
next reply other threads:[~2015-03-24 15:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-24 15:43 Alan Lawrence [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5511862D.3010406@arm.com \
--to=alan.lawrence@arm.com \
--cc=Marcus.Shawcroft@arm.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=richard.guenther@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).