aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>2018-01-17 11:24:52 +0000
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>2018-01-17 11:24:52 +0000
commitd83fae9d62cf039af090b078abb4af36e4c71193 (patch)
treebef51fb254475018d4f7d7e53118f3f14a5b3d94 /gcc
parentb67d554cc2cc01ff69abf2301f1c5ca05ae9b86f (diff)
downloadgcc-d83fae9d62cf039af090b078abb4af36e4c71193.zip
gcc-d83fae9d62cf039af090b078abb4af36e4c71193.tar.gz
gcc-d83fae9d62cf039af090b078abb4af36e4c71193.tar.bz2
[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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gcc.target/arm/pr40887.c5
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 807752e..43d1a90 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,10 +1,15 @@
+2018-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
+ * gcc.target/arm/pr40887.c: Add armv5te effective target checks and
+ directives.
+
2018-01-17 Jakub Jelinek <jakub@redhat.com>
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 <kyrylo.tkachov@arm.com>
+2018-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* 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 5cabe3a..5343a7b 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);