diff options
author | Alexandre Oliva <oliva@adacore.com> | 2020-12-31 21:38:24 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2021-01-01 01:40:40 -0300 |
commit | a9ff287b11a1c66c960fb3bd561b393c573bbbc2 (patch) | |
tree | 3c66ca4817bad6c7d4b69afb9c2138e636d4e57a | |
parent | 02d2706db342613bf81cf41c3cf89998022d13d4 (diff) | |
download | gcc-a9ff287b11a1c66c960fb3bd561b393c573bbbc2.zip gcc-a9ff287b11a1c66c960fb3bd561b393c573bbbc2.tar.gz gcc-a9ff287b11a1c66c960fb3bd561b393c573bbbc2.tar.bz2 |
-mno-long-calls for arm/no_unique_address tests
The implicit -mlong-calls from our vxworks configurations makes the
tail-call instructions differ from those expected by the
no_unique_address tests in gcc.target/arm.
This patch adds -mno-long-calls to the compilation commands, so that
we generate the expected sequences.
for gcc/testsuite/ChangeLog
* g++.target/arm/no_unique_address_1.C: Add -mno-long-calls.
* g++.target/arm/no_unique_address_2.C: Likewise.
-rw-r--r-- | gcc/testsuite/g++.target/arm/no_unique_address_1.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.target/arm/no_unique_address_2.C | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.target/arm/no_unique_address_1.C b/gcc/testsuite/g++.target/arm/no_unique_address_1.C index 038aa00..40fc68b 100644 --- a/gcc/testsuite/g++.target/arm/no_unique_address_1.C +++ b/gcc/testsuite/g++.target/arm/no_unique_address_1.C @@ -1,5 +1,5 @@ /* { dg-require-effective-target arm_arch_v8a_hard_ok } */ -/* { dg-options "-std=c++11 -O -foptimize-sibling-calls" } */ +/* { dg-options "-std=c++11 -O -foptimize-sibling-calls -mno-long-calls" } */ /* { dg-add-options arm_arch_v8a_hard } */ /* { dg-final { check-function-bodies "**" "" "" } } */ diff --git a/gcc/testsuite/g++.target/arm/no_unique_address_2.C b/gcc/testsuite/g++.target/arm/no_unique_address_2.C index 8be5de2..b66b4d0 100644 --- a/gcc/testsuite/g++.target/arm/no_unique_address_2.C +++ b/gcc/testsuite/g++.target/arm/no_unique_address_2.C @@ -1,5 +1,5 @@ /* { dg-require-effective-target arm_arch_v8a_hard_ok } */ -/* { dg-options "-std=c++17 -O -foptimize-sibling-calls" } */ +/* { dg-options "-std=c++17 -O -foptimize-sibling-calls -mno-long-calls" } */ /* { dg-add-options arm_arch_v8a_hard } */ /* { dg-final { check-function-bodies "**" "" "" } } */ |