Commit 972f427b by Alan Modra Committed by Alan Modra

re PR target/24465 (-mminimal-toc miscompilation of __thread vars)

	PR target/24465
	* config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Always
	use r2 for 64-bit tls .got access.

From-SVN: r105725
parent 97191ef9
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-21 Paolo Bonzini <bonzini@gnu.org> 2005-10-21 Paolo Bonzini <bonzini@gnu.org>
* dojump.c (do_jump): Handle side-effecting TRUTH_AND_EXPR and * dojump.c (do_jump): Handle side-effecting TRUTH_AND_EXPR and
......
...@@ -2979,7 +2979,7 @@ rs6000_legitimize_tls_address (rtx addr, enum tls_model model) ...@@ -2979,7 +2979,7 @@ rs6000_legitimize_tls_address (rtx addr, enum tls_model model)
rtx r3, got, tga, tmp1, tmp2, eqv; rtx r3, got, tga, tmp1, tmp2, eqv;
if (TARGET_64BIT) if (TARGET_64BIT)
got = gen_rtx_REG (Pmode, TOC_REGISTER); got = gen_rtx_REG (Pmode, 2);
else else
{ {
if (flag_pic == 1) if (flag_pic == 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment