[arm] Fix gcc.target/arm/pr79058.c

Message ID 5A61C0AB.6050006@foss.arm.com
State New
Headers show
Series
  • [arm] Fix gcc.target/arm/pr79058.c
Related show

Commit Message

Kyrill Tkachov Jan. 19, 2018, 9:55 a.m.
Hi all,

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.

Committing to trunk.
Thanks,
Kyrill

2018-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

     * gcc.target/arm/pr79058.c: Add arm_arm_ok check and -marm to options.

Patch

diff --git a/gcc/testsuite/gcc.target/arm/pr79058.c b/gcc/testsuite/gcc.target/arm/pr79058.c
index f2841f514df36c2f56f23cb690d56a9a13fb9184..54a1d8aa0072de8387973285a1a9a9adb91abf9f 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;