From: Bernd Schmidt Date: Thu, 6 Nov 2014 17:20:05 +0000 (+0000) Subject: Allow a port to use pseudos as call args; don't put them in the fusage. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=11717c64bf8b17397a6267638833ae6fca606a07;p=gcc.git Allow a port to use pseudos as call args; don't put them in the fusage. * expr.c (use_reg_mode): Just return for pseudo registers. From-SVN: r217198 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4e9a739f0ec..085f0b1ec2a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2014-11-06 Bernd Schmidt + * expr.c (use_reg_mode): Just return for pseudo registers. + * combine.c (try_combine): Don't allow a call as one of the source insns. diff --git a/gcc/expr.c b/gcc/expr.c index f824cef3894..203e28f56d1 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -2342,7 +2342,10 @@ copy_blkmode_to_reg (machine_mode mode, tree src) void use_reg_mode (rtx *call_fusage, rtx reg, machine_mode mode) { - gcc_assert (REG_P (reg) && REGNO (reg) < FIRST_PSEUDO_REGISTER); + gcc_assert (REG_P (reg)); + + if (!HARD_REGISTER_P (reg)) + return; *call_fusage = gen_rtx_EXPR_LIST (mode, gen_rtx_USE (VOIDmode, reg), *call_fusage);