PR78353: Fix testcases
authorChristophe Lyon <christophe.lyon@linaro.org>
Mon, 24 Feb 2020 13:01:52 +0000 (13:01 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Mon, 24 Feb 2020 13:04:02 +0000 (13:04 +0000)
Skip the test if arm7a is not supported at link time. This is the case
if the toolchain targets an M-profile CPU by default and does not have
A-profile multilib: the link step fails because it tries to mix
M-profile startup files with A-profile testcase.

2020-02-24  Christophe Lyon  <christophe.lyon@linaro.org>

PR lto/78353
* gcc.target/arm/pr78353-1.c: Add arm_arch_v7a_multilib effective
target.
* gcc.target/arm/pr78353-2.c: Likewise.

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/pr78353-1.c
gcc/testsuite/gcc.target/arm/pr78353-2.c

index 9ca2d75189c3da5e110077e68b79560da2c483ff..5a6f34d918e8ad5bdc9f468296a4362cbce63a46 100644 (file)
@@ -1,3 +1,10 @@
+2020-02-24  Christophe Lyon  <christophe.lyon@linaro.org>
+
+       PR lto/78353
+       * gcc.target/arm/pr78353-1.c: Add arm_arch_v7a_multilib effective
+       target.
+       * gcc.target/arm/pr78353-2.c: Likewise.
+
 2020-02-24  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/93582
index aec0fb0cbfdb891fe30462267209061a051a37dd..a107e300269d7603408be88d9feed26e903ee08d 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do link }  */
+/* { dg-require-effective-target arm_arch_v7a_multilib } */
 /* { dg-options "-march=armv7-a -mthumb -O2 -flto -Wa,-mimplicit-it=always" }  */
 
 int main(int x)
index 18a90e8834e055f15753dced5cfa1caf49a009ad..2589e6135aa0f2014c7d846203d234ff1b277fb0 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do link }  */
+/* { dg-require-effective-target arm_arch_v7a_multilib } */
 /* { dg-options "-march=armv7-a -mthumb -O2 -flto -Wa,-mimplicit-it=always,-mthumb" }  */
 
 int main(int x)