mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-25 11:10:56 +08:00
re PR target/48900 (unnecessary duplicate __tls_get_addr calls)
PR target/48900 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use const0_rtx as the arg to the dummy __tls_get_addr libcall. From-SVN: r173488
This commit is contained in:
parent
e194de64ac
commit
1fc1b66d4a
@ -1,3 +1,9 @@
|
||||
2011-05-06 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR target/48900
|
||||
* config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
|
||||
const0_rtx as the arg to the dummy __tls_get_addr libcall.
|
||||
|
||||
2011-05-06 Uros Bizjak <ubizjak@gmail.com>
|
||||
|
||||
* config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
|
||||
|
@ -6407,10 +6407,11 @@ rs6000_legitimize_tls_address (rtx addr, enum tls_model model)
|
||||
|
||||
if (model == TLS_MODEL_GLOBAL_DYNAMIC)
|
||||
{
|
||||
r3 = gen_rtx_REG (Pmode, 3);
|
||||
tga = rs6000_tls_get_addr ();
|
||||
emit_library_call_value (tga, dest, LCT_CONST, Pmode, 1, r3, Pmode);
|
||||
emit_library_call_value (tga, dest, LCT_CONST, Pmode,
|
||||
1, const0_rtx, Pmode);
|
||||
|
||||
r3 = gen_rtx_REG (Pmode, 3);
|
||||
if (DEFAULT_ABI == ABI_AIX && TARGET_64BIT)
|
||||
insn = gen_tls_gd_aix64 (r3, got, addr, tga, const0_rtx);
|
||||
else if (DEFAULT_ABI == ABI_AIX && !TARGET_64BIT)
|
||||
@ -6427,11 +6428,12 @@ rs6000_legitimize_tls_address (rtx addr, enum tls_model model)
|
||||
}
|
||||
else if (model == TLS_MODEL_LOCAL_DYNAMIC)
|
||||
{
|
||||
r3 = gen_rtx_REG (Pmode, 3);
|
||||
tga = rs6000_tls_get_addr ();
|
||||
tmp1 = gen_reg_rtx (Pmode);
|
||||
emit_library_call_value (tga, tmp1, LCT_CONST, Pmode, 1, r3, Pmode);
|
||||
emit_library_call_value (tga, tmp1, LCT_CONST, Pmode,
|
||||
1, const0_rtx, Pmode);
|
||||
|
||||
r3 = gen_rtx_REG (Pmode, 3);
|
||||
if (DEFAULT_ABI == ABI_AIX && TARGET_64BIT)
|
||||
insn = gen_tls_ld_aix64 (r3, got, tga, const0_rtx);
|
||||
else if (DEFAULT_ABI == ABI_AIX && !TARGET_64BIT)
|
||||
|
Loading…
x
Reference in New Issue
Block a user