From: Kyrylo Tkachov Date: Wed, 17 Jan 2018 11:24:52 +0000 (+0000) Subject: [arm] Fix gcc.target/arm/pr40887.c directives X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d83fae9d62cf039af090b078abb4af36e4c71193;p=gcc.git [arm] Fix gcc.target/arm/pr40887.c directives This patch converts gcc.target/arm/pr40887.c to use the proper effective target check and dg-add-options for armv5te so that we avoid situations where we end up trying to compile the test with a Thumb1 hard-float ABI, which makes the compiler complain. This allows the test to pass gracefully for me for my compiler configured with: --with-cpu=cortex-a15 --with-fpu=neon-vfpv4 --with-float=hard --with-mode=thumb * gcc.target/arm/pr40887.c: Add armv5te effective target checks and directives. From-SVN: r256784 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 807752e25fe..43d1a90bf90 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,10 +1,15 @@ +2018-01-17 Kyrylo Tkachov + + * gcc.target/arm/pr40887.c: Add armv5te effective target checks and + directives. + 2018-01-17 Jakub Jelinek PR tree-optimization/83843 * gcc.dg/store_merging_18.c: Don't expect "Merging successful" on arm. * gcc.dg/store_merging_19.c: New test. -2018-01-17 Kyrylo Tkachov +2018-01-17 Kyrylo Tkachov * gcc.target/arm/xor-and.c: Fix armv6 effective target checks and options. diff --git a/gcc/testsuite/gcc.target/arm/pr40887.c b/gcc/testsuite/gcc.target/arm/pr40887.c index 5cabe3ab7fe..5343a7b54a4 100644 --- a/gcc/testsuite/gcc.target/arm/pr40887.c +++ b/gcc/testsuite/gcc.target/arm/pr40887.c @@ -1,5 +1,8 @@ +/* { dg-do compile } */ /* { dg-skip-if "need at least armv5" { *-*-* } { "-march=armv[234]*" } { "" } } */ -/* { dg-options "-O2 -march=armv5te" } */ +/* { dg-require-effective-target arm_arch_v5te_ok } */ +/* { dg-add-options arm_arch_v5te } */ +/* { dg-options "-O2" } */ /* { dg-final { scan-assembler "blx" } } */ int (*indirect_func)(int x);