]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/24465 (-mminimal-toc miscompilation of __thread vars)
authorAlan Modra <amodra@bigpond.net.au>
Fri, 21 Oct 2005 07:48:26 +0000 (07:48 +0000)
committerAlan Modra <amodra@gcc.gnu.org>
Fri, 21 Oct 2005 07:48:26 +0000 (17:18 +0930)
PR target/24465
* config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Always
use r2 for 64-bit tls .got access.

From-SVN: r105728

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index d74b16a343b24a2a896df5b96090ccbece774226..0b7a125f2005fb663ca014672a292c01dc311059 100644 (file)
@@ -1,3 +1,9 @@
+2005-10-21  Alan Modra  <amodra@bigpond.net.au>
+
+       PR target/24465
+       * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Always
+       use r2 for 64-bit tls .got access.
+
 2005-10-19  Paolo Bonzini  <bonzini@gnu.org>
 
        * dojump.c (do_jump): Revert the last patch as it breaks Ada.
index c914ac116ea233721c59154c2bd0617bdea6aa6b..7c9f02d5decf9dafd8c561cf05885172b658e903 100644 (file)
@@ -2989,7 +2989,7 @@ rs6000_legitimize_tls_address (rtx addr, enum tls_model model)
       rtx r3, got, tga, tmp1, tmp2, eqv;
 
       if (TARGET_64BIT)
-       got = gen_rtx_REG (Pmode, TOC_REGISTER);
+       got = gen_rtx_REG (Pmode, 2);
       else
        {
          if (flag_pic == 1)