https://gcc.gnu.org/g:ee3453db4c83bf90c7fe5244771c0467fcf3ec26
commit ee3453db4c83bf90c7fe5244771c0467fcf3ec26 Author: Alexandre Oliva <ol...@adacore.com> Date: Thu May 15 05:11:11 2025 -0300 [testsuite] [arm] add -mno-long-calls Various arm tests, specifically epilog-1.c and fp16-aapcs-*.c, need -mno-long-calls to match the expected asm outputs on targets that default to -mlong-calls. fp16-aapcs-2.c has that flag already. for gcc/testsuite/ChangeLog * gcc.target/arm/epilog-1.c: Add -mno-long-calls. * gcc.target/arm/fp16-aapcs-1.c: Likewise. * gcc.target/arm/fp16-aapcs-3.c: Likewise. * gcc.target/arm/fp16-aapcs-4.c: Likewise. Diff: --- gcc/testsuite/gcc.target/arm/epilog-1.c | 2 +- gcc/testsuite/gcc.target/arm/fp16-aapcs-1.c | 2 +- gcc/testsuite/gcc.target/arm/fp16-aapcs-3.c | 2 +- gcc/testsuite/gcc.target/arm/fp16-aapcs-4.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/gcc.target/arm/epilog-1.c b/gcc/testsuite/gcc.target/arm/epilog-1.c index a15164564606..70aa12c63ff6 100644 --- a/gcc/testsuite/gcc.target/arm/epilog-1.c +++ b/gcc/testsuite/gcc.target/arm/epilog-1.c @@ -1,6 +1,6 @@ /* Register liveness information from epilgoue enables peephole optimization. */ /* { dg-do compile } */ -/* { dg-options "-mthumb -Os" } */ +/* { dg-options "-mthumb -Os -mno-long-calls" } */ /* { dg-require-effective-target arm_thumb2_ok } */ /* { dg-final { check-function-bodies "**" "" } } */ diff --git a/gcc/testsuite/gcc.target/arm/fp16-aapcs-1.c b/gcc/testsuite/gcc.target/arm/fp16-aapcs-1.c index b18d7cda65c8..1139f7b43cfc 100644 --- a/gcc/testsuite/gcc.target/arm/fp16-aapcs-1.c +++ b/gcc/testsuite/gcc.target/arm/fp16-aapcs-1.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target arm_hard_vfp_ok } */ /* { dg-require-effective-target arm_fp16_ok } */ -/* { dg-options "-O2" } */ +/* { dg-options "-O2 -mno-long-calls" } */ /* { dg-add-options arm_fp16_ieee } */ /* { dg-final { check-function-bodies "**" "" "" } } */ diff --git a/gcc/testsuite/gcc.target/arm/fp16-aapcs-3.c b/gcc/testsuite/gcc.target/arm/fp16-aapcs-3.c index 7238ef3a02e0..d3d2a44eeeb7 100644 --- a/gcc/testsuite/gcc.target/arm/fp16-aapcs-3.c +++ b/gcc/testsuite/gcc.target/arm/fp16-aapcs-3.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target arm_hard_vfp_ok } */ /* { dg-require-effective-target arm_fp16_alternative_ok } */ -/* { dg-options "-O2" } */ +/* { dg-options "-O2 -mno-long-calls" } */ /* { dg-add-options arm_fp16_alternative } */ /* { dg-final { check-function-bodies "**" "" "" } } */ diff --git a/gcc/testsuite/gcc.target/arm/fp16-aapcs-4.c b/gcc/testsuite/gcc.target/arm/fp16-aapcs-4.c index 13f08d8afa32..af67c26e89ac 100644 --- a/gcc/testsuite/gcc.target/arm/fp16-aapcs-4.c +++ b/gcc/testsuite/gcc.target/arm/fp16-aapcs-4.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-require-effective-target arm_fp16_alternative_ok } */ -/* { dg-options "-mfloat-abi=softfp -O2" } */ +/* { dg-options "-mfloat-abi=softfp -O2 -mno-long-calls" } */ /* { dg-add-options arm_fp16_alternative } */ /* { dg-skip-if "incompatible float-abi" { arm*-*-* } { "-mfloat-abi=hard" } } */ /* { dg-final { check-function-bodies "**" "" "" } } */