[gcc(refs/users/guojiufu/heads/guojiufu-branch)] PR78353: Fix testcases

Jiu Fu Guo guojiufu@gcc.gnu.org
Wed Mar 11 02:14:17 GMT 2020


https://gcc.gnu.org/g:e03069be127cbc9d134d3f6b3c41461fed630444

commit e03069be127cbc9d134d3f6b3c41461fed630444
Author: Christophe Lyon <christophe.lyon@linaro.org>
Date:   Mon Feb 24 13:01:52 2020 +0000

    PR78353: Fix testcases
    
    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.

Diff:
---
 gcc/testsuite/ChangeLog                  | 7 +++++++
 gcc/testsuite/gcc.target/arm/pr78353-1.c | 1 +
 gcc/testsuite/gcc.target/arm/pr78353-2.c | 1 +
 3 files changed, 9 insertions(+)

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 9ca2d75189c..5a6f34d918e 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/gcc.target/arm/pr78353-1.c b/gcc/testsuite/gcc.target/arm/pr78353-1.c
index aec0fb0cbfd..a107e300269 100644
--- a/gcc/testsuite/gcc.target/arm/pr78353-1.c
+++ b/gcc/testsuite/gcc.target/arm/pr78353-1.c
@@ -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)
diff --git a/gcc/testsuite/gcc.target/arm/pr78353-2.c b/gcc/testsuite/gcc.target/arm/pr78353-2.c
index 18a90e8834e..2589e6135aa 100644
--- a/gcc/testsuite/gcc.target/arm/pr78353-2.c
+++ b/gcc/testsuite/gcc.target/arm/pr78353-2.c
@@ -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)


More information about the Gcc-cvs mailing list