-mno-long-calls for arm/no_unique_address tests
authorAlexandre Oliva <oliva@adacore.com>
Fri, 1 Jan 2021 00:38:24 +0000 (21:38 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Fri, 1 Jan 2021 04:40:40 +0000 (01:40 -0300)
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.

gcc/testsuite/g++.target/arm/no_unique_address_1.C
gcc/testsuite/g++.target/arm/no_unique_address_2.C

index 038aa00a499e9f590a9df41f10d71f53eef737ac..40fc68b3745212ea9e23f27de6fdc7d4b51a1adc 100644 (file)
@@ -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 "**" "" "" } } */
 
index 8be5de2539a38ae6f6f539e93b4d4ace7654b60a..b66b4d004965b8aa211b9b2e73b081a53cccb18a 100644 (file)
@@ -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 "**" "" "" } } */