From: Nathan Froyd Date: Fri, 8 Apr 2011 16:48:52 +0000 (+0000) Subject: alpha.c (alpha_emit_xfloating_libcall): Call use_reg. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=44f370bf4c8ad5c0f780f28c88b7df396d9dd140;p=gcc.git alpha.c (alpha_emit_xfloating_libcall): Call use_reg. * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg. * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise. * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise. From-SVN: r172199 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 719f8dd14bd..d19aa6810e1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-04-08 Nathan Froyd + + * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg. + * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise. + * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise. + 2011-04-08 John David Anglin PR target/48366 diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 8aabeb27dd0..5e85e2be471 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -2999,7 +2999,7 @@ alpha_emit_xfloating_libcall (rtx func, rtx target, rtx operands[], } emit_move_insn (reg, operands[i]); - usage = alloc_EXPR_LIST (0, gen_rtx_USE (VOIDmode, reg), usage); + use_reg (&usage, reg); } switch (GET_MODE (target)) diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 30c0d34174d..c088985f673 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -3311,9 +3311,7 @@ sparc_legitimize_tls_address (rtx addr) insn = emit_call_insn (gen_tgd_call64 (o0, sparc_tls_get_addr (), addr, const1_rtx)); } - CALL_INSN_FUNCTION_USAGE (insn) - = gen_rtx_EXPR_LIST (VOIDmode, gen_rtx_USE (VOIDmode, o0), - CALL_INSN_FUNCTION_USAGE (insn)); + use_reg (&CALL_INSN_FUNCTION_USAGE (insn), o0); insn = get_insns (); end_sequence (); emit_libcall_block (insn, ret, o0, addr); @@ -3341,9 +3339,7 @@ sparc_legitimize_tls_address (rtx addr) insn = emit_call_insn (gen_tldm_call64 (o0, sparc_tls_get_addr (), const1_rtx)); } - CALL_INSN_FUNCTION_USAGE (insn) - = gen_rtx_EXPR_LIST (VOIDmode, gen_rtx_USE (VOIDmode, o0), - CALL_INSN_FUNCTION_USAGE (insn)); + use_reg (&CALL_INSN_FUNCTION_USAGE (insn), o0); insn = get_insns (); end_sequence (); emit_libcall_block (insn, temp3, o0, diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index 5623cc1ba40..fe70270df86 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -1872,9 +1872,7 @@ xtensa_call_tls_desc (rtx sym, rtx *retp) emit_insn (gen_tls_arg (arg, sym)); emit_move_insn (a10, arg); call_insn = emit_call_insn (gen_tls_call (a10, fn, sym, const1_rtx)); - CALL_INSN_FUNCTION_USAGE (call_insn) - = gen_rtx_EXPR_LIST (VOIDmode, gen_rtx_USE (VOIDmode, a10), - CALL_INSN_FUNCTION_USAGE (call_insn)); + use_reg (&CALL_INSN_FUNCTION_USAGE (call_insn), a10); insns = get_insns (); end_sequence ();