From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2049) id 445B63856253; Thu, 5 May 2022 12:05:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 445B63856253 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Matthew Malcomson To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/ARM/heads/morello)] aarch64: Remove -ansi from morello.exp X-Act-Checkin: gcc X-Git-Author: Richard Sandiford X-Git-Refname: refs/vendors/ARM/heads/morello X-Git-Oldrev: 3f926ec0b770180940af9ab769bbf4067663b8a0 X-Git-Newrev: c419df4dfad9c9f117ff9c637ac7e2182b663e70 Message-Id: <20220505120520.445B63856253@sourceware.org> Date: Thu, 5 May 2022 12:05:20 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2022 12:05:20 -0000 https://gcc.gnu.org/g:c419df4dfad9c9f117ff9c637ac7e2182b663e70 commit c419df4dfad9c9f117ff9c637ac7e2182b663e70 Author: Richard Sandiford 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.