From 716120a70a1bae9f403454944ac14ddf07059bb7 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 14 Nov 2000 11:23:38 +0100 Subject: reload1.c (emit_input_reload_insns): Honour forcing of constants into memory by PREFERRED_RELOAD_CLASS NO_REGS. * reload1.c (emit_input_reload_insns): Honour forcing of constants into memory by PREFERRED_RELOAD_CLASS NO_REGS. From-SVN: r37450 --- gcc/ChangeLog | 5 +++++ gcc/reload1.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ace6a89..e4dbb19 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-11-14 Jakub Jelinek + + * reload1.c (emit_input_reload_insns): Honour forcing of constants + into memory by PREFERRED_RELOAD_CLASS NO_REGS. + 2000-11-14 Michael Matz * dominance.c: New file. diff --git a/gcc/reload1.c b/gcc/reload1.c index 5441494..926d796 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -6441,7 +6441,10 @@ emit_input_reload_insns (chain, rl, old, j) && ((reg_equiv_memory_loc [REGNO (SUBREG_REG (oldequiv))] != 0) || (reg_equiv_constant - [REGNO (SUBREG_REG (oldequiv))] != 0)))) + [REGNO (SUBREG_REG (oldequiv))] != 0))) + || (CONSTANT_P (oldequiv) + && PREFERRED_RELOAD_CLASS (oldequiv, + REGNO_REG_CLASS (REGNO (reloadreg))) == NO_REGS)) real_oldequiv = rl->in; gen_reload (reloadreg, real_oldequiv, rl->opnum, rl->when_needed); -- cgit v1.1