aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>2018-01-19 09:58:37 +0000
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>2018-01-19 09:58:37 +0000
commit80b21c416cf7ae760b8a96b0971414d026feb03b (patch)
treea5512b16b1a2b58bf8ce922e7fc0c48da18576fa
parent2a3abc862a30fbb76db90bac333d8c4070a03df3 (diff)
downloadgcc-80b21c416cf7ae760b8a96b0971414d026feb03b.zip
gcc-80b21c416cf7ae760b8a96b0971414d026feb03b.tar.gz
gcc-80b21c416cf7ae760b8a96b0971414d026feb03b.tar.bz2
[arm] Fix gcc.target/arm/pr79058.c
This testcase tests 32-bit ARM state functionality, so add the -marm to make it explicit as well as to avoid Thumb1 hard-float errors for certain toolchain configurations. * gcc.target/arm/pr79058.c: Add arm_arm_ok check and -marm to options. From-SVN: r256878
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.target/arm/pr79058.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 1148705..d86316e 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2018-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
+ * gcc.target/arm/pr79058.c: Add arm_arm_ok check and -marm to options.
+
2018-01-18 John David Anglin <danglin@gcc.gnu.org>
* gcc.dg/torture/pr52451.c (main): Skip long double test on
diff --git a/gcc/testsuite/gcc.target/arm/pr79058.c b/gcc/testsuite/gcc.target/arm/pr79058.c
index f2841f5..54a1d8a 100644
--- a/gcc/testsuite/gcc.target/arm/pr79058.c
+++ b/gcc/testsuite/gcc.target/arm/pr79058.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
+/* { dg-require-effective-target arm_arm_ok } */
/* { dg-skip-if "do not override -mcpu" { *-*-* } { "-mcpu=*" } { "-mcpu=arm7tdmi" } } */
-/* { dg-options "-Os -mbig-endian -mcpu=arm7tdmi" } */
+/* { dg-options "-Os -mbig-endian -marm -mcpu=arm7tdmi" } */
enum { NILFS_SEGMENT_USAGE_ACTIVE, NILFS_SEGMENT_USAGE_DIRTY } a;