public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/ARM/heads/morello)] aarch64: Remove -ansi from morello.exp
@ 2022-05-05 12:05 Matthew Malcomson
  0 siblings, 0 replies; only message in thread
From: Matthew Malcomson @ 2022-05-05 12:05 UTC (permalink / raw)
  To: gcc-cvs

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-05 12:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-05 12:05 [gcc(refs/vendors/ARM/heads/morello)] aarch64: Remove -ansi from morello.exp Matthew Malcomson

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).