diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-07-08 19:46:43 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2016-08-08 08:03:50 -0700 |
commit | 2f9a8d443cfd8d4b7305e1a57feb2bc8a93e4953 (patch) | |
tree | c95d5da5e4704b68d348fe17608fe8ccec9229fa | |
parent | f00a9fb9cbf9cf6aceeefedb028402b2576f5736 (diff) | |
download | gcc-hjl/iamcu/improve.tar.gz |
IA MCU run-time doesn't support TLShjl/iamcu/improve
Return 0 in check_effective_target_tls_native and
check_effective_target_tls_emulated for IA MCU target.
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 10 |
1 files 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*] } { |