diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2020-04-22 13:55:36 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2020-04-22 13:56:51 +0000 |
commit | 4e16452e2900fc79b090794e7b7a5727f1136a4a (patch) | |
tree | 283be9174820942c0e6030ae16f05b67f991c824 | |
parent | e6474e22b212df3201127b1831d76c98dcdfaff3 (diff) | |
download | gcc-4e16452e2900fc79b090794e7b7a5727f1136a4a.zip gcc-4e16452e2900fc79b090794e7b7a5727f1136a4a.tar.gz gcc-4e16452e2900fc79b090794e7b7a5727f1136a4a.tar.bz2 |
testsuite: [arm] Include arm_acle.h in related effective targets
Since arm_acle.h includes stdint.h, its use requires the presence of
the right gnu/stub-*.h, so make sure to include arm_acle.h when
checking the effective targets that generally imply that the testcase
will include it: arm_dsp, arm_crc, arm_coproc[1-4]
This makes several tests unsupported rather than fail.
2020-04-22 Christophe Lyon <christophe.lyon@linaro.org>
gcc/testsuite/
* lib/target-supports.exp (check_effective_target_arm_dsp)
(check_effective_target_arm_crc_ok_nocache)
(check_effective_target_arm_coproc1_ok_nocache)
(check_effective_target_arm_coproc2_ok_nocache)
(check_effective_target_arm_coproc3_ok_nocache)
(check_effective_target_arm_coproc4_ok_nocache): Include
arm_acle.h.
-rw-r--r-- | gcc/testsuite/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 6 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 185a58a..34669b2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,15 @@ 2020-04-22 Christophe Lyon <christophe.lyon@linaro.org> + * lib/target-supports.exp (check_effective_target_arm_dsp) + (check_effective_target_arm_crc_ok_nocache) + (check_effective_target_arm_coproc1_ok_nocache) + (check_effective_target_arm_coproc2_ok_nocache) + (check_effective_target_arm_coproc3_ok_nocache) + (check_effective_target_arm_coproc4_ok_nocache): Include + arm_acle.h. + +2020-04-22 Christophe Lyon <christophe.lyon@linaro.org> + gcc/testsuite/ * lib/target-supports.exp (arm_v8m_main_cde, arm_v8m_main_cde_fp) (arm_v8_1m_main_cde_mve, arm_v8_1m_main_cde_mve_fp): Include diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 9d2634a..a667ddf 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -3731,6 +3731,7 @@ proc check_effective_target_arm_dsp { } { #ifndef __ARM_FEATURE_DSP #error not DSP #endif + #include <arm_acle.h> int i; }] } @@ -4032,6 +4033,7 @@ proc check_effective_target_arm_crc_ok_nocache { } { #if !defined (__ARM_FEATURE_CRC32) #error FOO #endif + #include <arm_acle.h> } "$et_arm_crc_flags"] } @@ -9870,6 +9872,7 @@ proc check_effective_target_arm_coproc1_ok_nocache { } { #if (__thumb__ && !__thumb2__) || __ARM_ARCH < 4 #error FOO #endif + #include <arm_acle.h> }] } @@ -9889,6 +9892,7 @@ proc check_effective_target_arm_coproc2_ok_nocache { } { #if (__thumb__ && !__thumb2__) || __ARM_ARCH < 5 #error FOO #endif + #include <arm_acle.h> }] } @@ -9909,6 +9913,7 @@ proc check_effective_target_arm_coproc3_ok_nocache { } { || (__ARM_ARCH < 6 && !defined (__ARM_ARCH_5TE__)) #error FOO #endif + #include <arm_acle.h> }] } @@ -9928,6 +9933,7 @@ proc check_effective_target_arm_coproc4_ok_nocache { } { #if (__thumb__ && !__thumb2__) || __ARM_ARCH < 6 #error FOO #endif + #include <arm_acle.h> }] } |