From 2f9a8d443cfd8d4b7305e1a57feb2bc8a93e4953 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 8 Jul 2015 19:46:43 -0700 Subject: IA MCU run-time doesn't support TLS Return 0 in check_effective_target_tls_native and check_effective_target_tls_emulated for IA MCU target. --- gcc/testsuite/lib/target-supports.exp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 9c5194d0d9a..24fc5552b24 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -784,8 +784,9 @@ proc check_effective_target_tls {} { proc check_effective_target_tls_native {} { # VxWorks uses emulated TLS machinery, but with non-standard helper - # functions, so we fail to automatically detect it. - if { [istarget *-*-vxworks*] } { + # functions, so we fail to automatically detect it. IA MCU run-time + # doesn't support TLS. + if { [istarget *-*-vxworks*] || [istarget *-*-elfiamcu] } { return 0 } @@ -799,6 +800,11 @@ proc check_effective_target_tls_native {} { # Return 1 if *emulated* thread local storage (TLS) is supported, 0 otherwise. proc check_effective_target_tls_emulated {} { + # IA MCU run-time doesn't support TLS. + if { [istarget *-*-elfiamcu] } { + return 0 + } + # VxWorks uses emulated TLS machinery, but with non-standard helper # functions, so we fail to automatically detect it. if { [istarget *-*-vxworks*] } { -- cgit v1.2.1