diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2010-11-02 16:07:04 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2010-11-02 16:07:04 +0000 |
commit | 3451f439c522889250a40e308848521c9cdded0b (patch) | |
tree | 3fcdb34a70da09c2eba528210e55ec839080187b /gcc | |
parent | eefe143bec25f803c2961ee246d3695e61f368fc (diff) | |
download | gcc-3451f439c522889250a40e308848521c9cdded0b.zip gcc-3451f439c522889250a40e308848521c9cdded0b.tar.gz gcc-3451f439c522889250a40e308848521c9cdded0b.tar.bz2 |
re PR target/46131 (Some TLS execution tests fail on Tru64 UNIX with emutls)
PR target/46131
* lib/target-supports.exp (add_options_for_tls): Pass -pthread for
*-*-osf*.
From-SVN: r166198
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d1af154..44a575c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + PR target/46131 + * lib/target-supports.exp (add_options_for_tls): Pass -pthread for + *-*-osf*. + 2010-11-02 Richard Guenther <rguenther@suse.de> PR tree-optimization/46184 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 87b234d..f387d7e 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -613,6 +613,11 @@ proc check_effective_target_pcc_bitfield_type_matters { } { # Add to FLAGS all the target-specific flags needed to use thread-local storage. proc add_options_for_tls { flags } { + # Tru64 UNIX uses emutls, which relies on a couple of pthread functions + # which only live in libpthread, so always pass -pthread for TLS. + if { [istarget *-*-osf*] } { + return "$flags -pthread" + } # On Solaris 8 and 9, __tls_get_addr/___tls_get_addr only lives in # libthread, so always pass -pthread for native TLS. # Need to duplicate native TLS check from |