From 4fce5f027cf84b6237b6f7d90b3b00f7ab7ca4d4 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 17 Sep 2013 12:54:11 +0000 Subject: [PATCH] target-supports.exp (check_effective_target_trampolines): Add MSP430 to the list of targets that do not support trampolines. * lib/target-supports.exp (check_effective_target_trampolines): Add MSP430 to the list of targets that do not support trampolines. (check_profiling_available): Add MSP430 to the list of targets that do not support profiling. (check_effective_target_tls_runtime): Add MSP430 to the list of targets that do not support TLS. From-SVN: r202651 --- gcc/testsuite/ChangeLog | 10 ++++++++++ gcc/testsuite/lib/target-supports.exp | 13 ++++++++++--- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7ae7ea1eddb..48f625635f2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,13 @@ +2013-09-17 Nick Clifton + + * lib/target-supports.exp (check_effective_target_trampolines): + Add MSP430 to the list of targets that do not support + trampolines. + (check_profiling_available): Add MSP430 to the list of targets + that do not support profiling. + (check_effective_target_tls_runtime): Add MSP430 to the list of + targets that do not support TLS. + 2013-09-17 Eric Botcazou * gnat.dg/opt27.adb: New test. diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 0905821587b..e6e9d7795f0 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -435,9 +435,10 @@ proc check_effective_target_trampolines { } { return 0 } if { [istarget avr-*-*] + || [istarget msp430-*-*] || [istarget hppa2.0w-hp-hpux11.23] - || [istarget hppa64-hp-hpux11.23] } { - return 0; + || [istarget hppa64-hp-hpux11.23] } { + return 0; } return 1 } @@ -535,6 +536,7 @@ proc check_profiling_available { test_what } { || [istarget mmix-*-*] || [istarget mn10300-*-elf*] || [istarget moxie-*-elf*] + || [istarget msp430-*-*] || [istarget picochip-*-*] || [istarget powerpc-*-eabi*] || [istarget powerpc-*-elf] @@ -652,6 +654,11 @@ proc check_effective_target_tls_emulated {} { # Return 1 if TLS executables can run correctly, 0 otherwise. proc check_effective_target_tls_runtime {} { + # MSP430 runtime does not have TLS support, but just + # running the test below is insufficient to show this. + if { [istarget msp430-*-*] } { + return 0 + } return [check_runtime tls_runtime { __thread int thr = 0; int main (void) { return thr; } @@ -2222,7 +2229,7 @@ proc check_effective_target_arm_v8_vfp_ok {} { # options. proc check_effective_target_arm_hard_vfp_ok { } { - if { [check_effective_target_arm32] + if { [check_effective_target_arm32] && ! [check-flags [list "" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=hard" }]] } { return [check_no_compiler_messages arm_hard_vfp_ok executable { int main() { return 0;}