Since hard-float is not implemented for cores that only support thumb1
(and not thumb2) this test fails for configurations using hard float but
older -mcpu settings.
gcc/testsuite/ChangeLog:
* g++.dg/inherit/thunk10.C: Skip test for arm_hf_eabi if -mthumb
doesn't generate thumb2 instructions.
Tested x86_64-linux, and armv7l-linux-gnueabihf with
RUNTESTFLAGS='--target_board=unix\{,-mcpu=cortex-a9\}
No change for x86_64, for ARM this test goes from:
PASS: 8
UNRESOLVED: 4
FAIL: 4
to
UNSUPPORTED: 4
PASS: 8
OK for trunk?
commit ce743e1768c75445a9bf8e49d1116b4a7ce99cfc
Author: Jonathan Wakely <[email protected]>
Date: Fri Oct 2 11:30:51 2020
testsuite: Fix FAIL for older ARM cores
Since hard-float is not implemented for cores that only support thumb1
(and not thumb2) this test fails for configurations using hard float but
older -mcpu settings.
gcc/testsuite/ChangeLog:
* g++.dg/inherit/thunk10.C: Skip test for arm_hf_eabi if -mthumb
doesn't generate thumb2 instructions.
diff --git a/gcc/testsuite/g++.dg/inherit/thunk10.C
b/gcc/testsuite/g++.dg/inherit/thunk10.C
index 702067749fa..0188436b6cd 100644
--- a/gcc/testsuite/g++.dg/inherit/thunk10.C
+++ b/gcc/testsuite/g++.dg/inherit/thunk10.C
@@ -1,4 +1,5 @@
/* { dg-options "-mthumb" { target arm*-*-* } } */
+/* { dg-skip-if "hf needs thumb2" { arm_hf_eabi && { ! arm_thumb2_ok } } } */
/* { dg-do run } */
/* { dg-timeout 100 } */