diff mbox series

Fix TLS thread pointer function names on AIX

Message ID CAGWvnyk3F_EADqWUbLE-2k8gTeby6Jr1RVhJTfhMeYcziwZrJg@mail.gmail.com
State New
Headers show
Series Fix TLS thread pointer function names on AIX | expand

Commit Message

David Edelsohn March 2, 2021, 11:46 p.m. UTC
This patch adds missing periods to the symbol name for TLS helper functions.

Bootstrapped on powerpc-ibm-aix7.2.2.0.

Thanks, David

            * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
            period to symbol name.
            (tls_get_addr_internal<mode>): Same.
diff mbox series


diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index 5ae65fb9f96..a1904b35f7f 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -10013,7 +10013,7 @@  (define_insn "tls_get_tpointer_internal"
        (unspec:SI [(const_int 0)] UNSPEC_TLSTLS))
    (clobber (reg:SI LR_REGNO))]
-  "bla __get_tpointer")
+  "bla .__get_tpointer")

 (define_expand "tls_get_addr<mode>"
   [(set (match_operand:P 0 "gpc_reg_operand")
@@ -10038,7 +10038,7 @@  (define_insn "tls_get_addr_internal<mode>"
    (clobber (reg:CC CR0_REGNO))
    (clobber (reg:P LR_REGNO))]
-  "bla __tls_get_addr")
+  "bla .__tls_get_addr")
 ;; Next come insns related to the calling sequence.