From 80b21c416cf7ae760b8a96b0971414d026feb03b Mon Sep 17 00:00:00 2001 From: Kyrylo Tkachov Date: Fri, 19 Jan 2018 09:58:37 +0000 Subject: [PATCH] [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 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.target/arm/pr79058.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 114870541f5..d86316ee909 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2018-01-19 Kyrylo Tkachov + + * gcc.target/arm/pr79058.c: Add arm_arm_ok check and -marm to options. + 2018-01-18 John David Anglin * 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 f2841f514df..54a1d8aa007 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; -- 2.30.2