diff mbox series

[pushed] aarch64: Add -funwind-tables to some tests

Message ID mptzfyhkf6g.fsf@arm.com
State New
Headers show
Series [pushed] aarch64: Add -funwind-tables to some tests | expand

Commit Message

Richard Sandiford Dec. 10, 2023, 7:53 p.m. UTC
The .cfi scans in these tests failed for *-elf targets because
those targets don't enable .eh_frame info by default.

Tested on aarch64-linux-gnu and aarch64_be-elf, pushed to trunk.

Richard


gcc/testsuite/
	* gcc.target/aarch64/sme/call_sm_switch_1.c: Add -funwind-tables.
	* gcc.target/aarch64/sme/call_sm_switch_3.c: Likewise.
	* gcc.target/aarch64/sme/call_sm_switch_5.c: Likewise.
---
 gcc/testsuite/gcc.target/aarch64/sme/call_sm_switch_1.c | 2 +-
 gcc/testsuite/gcc.target/aarch64/sme/call_sm_switch_3.c | 2 +-
 gcc/testsuite/gcc.target/aarch64/sme/call_sm_switch_5.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.target/aarch64/sme/call_sm_switch_1.c b/gcc/testsuite/gcc.target/aarch64/sme/call_sm_switch_1.c
index a2de55773af..98922aaeae0 100644
--- a/gcc/testsuite/gcc.target/aarch64/sme/call_sm_switch_1.c
+++ b/gcc/testsuite/gcc.target/aarch64/sme/call_sm_switch_1.c
@@ -1,4 +1,4 @@ 
-// { dg-options "-O -fomit-frame-pointer -fno-optimize-sibling-calls" }
+// { dg-options "-O -fomit-frame-pointer -fno-optimize-sibling-calls -funwind-tables" }
 // { dg-final { check-function-bodies "**" "" } }
 
 void ns_callee ();
diff --git a/gcc/testsuite/gcc.target/aarch64/sme/call_sm_switch_3.c b/gcc/testsuite/gcc.target/aarch64/sme/call_sm_switch_3.c
index ed999d08560..4250fe7984c 100644
--- a/gcc/testsuite/gcc.target/aarch64/sme/call_sm_switch_3.c
+++ b/gcc/testsuite/gcc.target/aarch64/sme/call_sm_switch_3.c
@@ -1,4 +1,4 @@ 
-// { dg-options "-O -fomit-frame-pointer -fno-optimize-sibling-calls" }
+// { dg-options "-O -fomit-frame-pointer -fno-optimize-sibling-calls -funwind-tables" }
 // { dg-final { check-function-bodies "**" "" } }
 
 __attribute__((aarch64_vector_pcs)) void ns_callee ();
diff --git a/gcc/testsuite/gcc.target/aarch64/sme/call_sm_switch_5.c b/gcc/testsuite/gcc.target/aarch64/sme/call_sm_switch_5.c
index be9b5cc0410..e3d9bc274d8 100644
--- a/gcc/testsuite/gcc.target/aarch64/sme/call_sm_switch_5.c
+++ b/gcc/testsuite/gcc.target/aarch64/sme/call_sm_switch_5.c
@@ -1,4 +1,4 @@ 
-// { dg-options "-O -fomit-frame-pointer -fno-optimize-sibling-calls" }
+// { dg-options "-O -fomit-frame-pointer -fno-optimize-sibling-calls -funwind-tables" }
 // { dg-final { check-function-bodies "**" "" } }
 
 #include <arm_sve.h>