target-supports.exp (check_effective_target_trampolines): Add MSP430 to the list...
authorNick Clifton <nickc@redhat.com>
Tue, 17 Sep 2013 12:54:11 +0000 (12:54 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Tue, 17 Sep 2013 12:54:11 +0000 (12:54 +0000)
* 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
gcc/testsuite/lib/target-supports.exp

index 7ae7ea1eddb430ae6b3f7ab21ab223deb1d701e1..48f625635f2f5b03070e095df7336985f2ddf471 100644 (file)
@@ -1,3 +1,13 @@
+2013-09-17  Nick Clifton  <nickc@redhat.com>
+
+       * 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  <ebotcazou@adacore.com>
 
        * gnat.dg/opt27.adb: New test.
index 0905821587badd14f8e4b9bcb61bafd23cf898df..e6e9d7795f0e6a0a1440b43874007df33eff683b 100644 (file)
@@ -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;}