public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Matthew Malcomson <matmal01@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/vendors/ARM/heads/morello)] aarch64: Remove -ansi from morello.exp
Date: Thu,  5 May 2022 12:05:20 +0000 (GMT)	[thread overview]
Message-ID: <20220505120520.445B63856253@sourceware.org> (raw)

https://gcc.gnu.org/g:c419df4dfad9c9f117ff9c637ac7e2182b663e70

commit c419df4dfad9c9f117ff9c637ac7e2182b663e70
Author: Richard Sandiford <richard.sandiford@arm.com>
Date:   Thu Apr 7 13:25:21 2022 +0100

    aarch64: Remove -ansi from morello.exp
    
    morello.exp was passing -ansi by default, but this doesn't seem
    appropriate for CHERI testing, since CHERI is explicitly an
    extension to C and C++.
    
    Without this patch, many of my later ones would need to pass
    an explicit -std flag.

Diff:
---
 gcc/testsuite/gcc.target/aarch64/morello/access-csp.c               | 1 -
 gcc/testsuite/gcc.target/aarch64/morello/debug-literal-capability.c | 1 +
 gcc/testsuite/gcc.target/aarch64/morello/morello.exp                | 2 +-
 gcc/testsuite/gcc.target/aarch64/morello/no-frame-chain-unwind.c    | 2 +-
 gcc/testsuite/gcc.target/aarch64/morello/pointer-arith-1.c          | 2 +-
 gcc/testsuite/gcc.target/aarch64/morello/pointer-arith-2.c          | 2 +-
 gcc/testsuite/gcc.target/aarch64/morello/unwinding.c                | 2 +-
 7 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/gcc/testsuite/gcc.target/aarch64/morello/access-csp.c b/gcc/testsuite/gcc.target/aarch64/morello/access-csp.c
index fc2c4b5ed00..ed53c3ecd07 100644
--- a/gcc/testsuite/gcc.target/aarch64/morello/access-csp.c
+++ b/gcc/testsuite/gcc.target/aarch64/morello/access-csp.c
@@ -1,3 +1,2 @@
 /* { dg-do compile } */
-/* { dg-additional-options "-std=gnu99" } */
 register char * stack_ptr asm ("sp");
diff --git a/gcc/testsuite/gcc.target/aarch64/morello/debug-literal-capability.c b/gcc/testsuite/gcc.target/aarch64/morello/debug-literal-capability.c
index fc36680930a..e740a8b35be 100644
--- a/gcc/testsuite/gcc.target/aarch64/morello/debug-literal-capability.c
+++ b/gcc/testsuite/gcc.target/aarch64/morello/debug-literal-capability.c
@@ -1,6 +1,7 @@
 /* { dg-do assemble } */
 /* { dg-additional-options "-Wno-int-to-pointer-cast" } */
 extern int *val;
+int other(int *);
 __attribute__ ((noinline))
 int foo(int *x)
 {
diff --git a/gcc/testsuite/gcc.target/aarch64/morello/morello.exp b/gcc/testsuite/gcc.target/aarch64/morello/morello.exp
index f0440fbd4f0..47f5f32228e 100644
--- a/gcc/testsuite/gcc.target/aarch64/morello/morello.exp
+++ b/gcc/testsuite/gcc.target/aarch64/morello/morello.exp
@@ -41,7 +41,7 @@ set-torture-options "$C_TORTURE_OPTIONS"
 
 # Main loop.
 gcc-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cCS\]]] \
-    "" "$capability_flags -ansi"
+    "" "$capability_flags"
 
 torture-finish
 # All done.
diff --git a/gcc/testsuite/gcc.target/aarch64/morello/no-frame-chain-unwind.c b/gcc/testsuite/gcc.target/aarch64/morello/no-frame-chain-unwind.c
index 74b3532f628..95965c0e224 100644
--- a/gcc/testsuite/gcc.target/aarch64/morello/no-frame-chain-unwind.c
+++ b/gcc/testsuite/gcc.target/aarch64/morello/no-frame-chain-unwind.c
@@ -1,5 +1,5 @@
 /* { dg-do run } */
-/* { dg-additional-options "-fomit-frame-pointer -fasynchronous-unwind-tables -Wno-int-conversion -std=gnu99" } */
+/* { dg-additional-options "-fomit-frame-pointer -fasynchronous-unwind-tables -Wno-int-conversion" } */
 
 /* Testing the unwinder for PureCap when there is no frame chain.
    This tests the following:
diff --git a/gcc/testsuite/gcc.target/aarch64/morello/pointer-arith-1.c b/gcc/testsuite/gcc.target/aarch64/morello/pointer-arith-1.c
index 117d5010d64..7812c0e856a 100644
--- a/gcc/testsuite/gcc.target/aarch64/morello/pointer-arith-1.c
+++ b/gcc/testsuite/gcc.target/aarch64/morello/pointer-arith-1.c
@@ -1,5 +1,5 @@
 /* { dg-do assemble } */
-/* { dg-additional-options "-std=gnu11 -save-temps" } */
+/* { dg-additional-options "-save-temps" } */
 /* { dg-final { check-function-bodies "**" ""  { {-O[123s]} } } } */
 /* { dg-skip-if "" { *-*-* } { "-mfake-capability" } { "" } }  */
 
diff --git a/gcc/testsuite/gcc.target/aarch64/morello/pointer-arith-2.c b/gcc/testsuite/gcc.target/aarch64/morello/pointer-arith-2.c
index 480b7267d02..1db5c627b75 100644
--- a/gcc/testsuite/gcc.target/aarch64/morello/pointer-arith-2.c
+++ b/gcc/testsuite/gcc.target/aarch64/morello/pointer-arith-2.c
@@ -1,5 +1,5 @@
 /* { dg-do assemble } */
-/* { dg-additional-options "-std=gnu11 -save-temps" } */
+/* { dg-additional-options "-save-temps" } */
 /* { dg-final { check-function-bodies "**" ""  { {-O[123s]} } } } */
 /* { dg-skip-if "" { *-*-* } { "*" } { "-mfake-capability" } }  */
 
diff --git a/gcc/testsuite/gcc.target/aarch64/morello/unwinding.c b/gcc/testsuite/gcc.target/aarch64/morello/unwinding.c
index 5ab22ea8090..8ba34ea9925 100644
--- a/gcc/testsuite/gcc.target/aarch64/morello/unwinding.c
+++ b/gcc/testsuite/gcc.target/aarch64/morello/unwinding.c
@@ -1,5 +1,5 @@
 /* { dg-do run } */
-/* { dg-additional-options "-fasynchronous-unwind-tables -Wno-int-conversion -std=gnu99" } */
+/* { dg-additional-options "-fasynchronous-unwind-tables -Wno-int-conversion" } */
 /* { dg-skip-if "" { *-*-* } { "-fomit-frame-pointer" } { "" } }  */
 
 /* Testing the unwinder for PureCap.


                 reply	other threads:[~2022-05-05 12:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20220505120520.445B63856253@sourceware.org \
    --to=matmal01@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /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).