From 57caa638af543fe30bd9456b448b8a03b6b4b970 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Mon, 14 Sep 1992 14:33:07 +0000 Subject: [PATCH] *** empty log message *** From-SVN: r2119 --- gcc/reload1.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/gcc/reload1.c b/gcc/reload1.c index 8eee024c7f0..6f972f43b37 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -364,13 +364,20 @@ init_reload () /* See if reg+reg is a valid (and offsettable) address. */ - tem = gen_rtx (PLUS, Pmode, - gen_rtx (REG, Pmode, FRAME_POINTER_REGNUM), - gen_rtx (REG, Pmode, FRAME_POINTER_REGNUM)); - /* This way, we make sure that reg+reg is an offsettable address. */ - tem = plus_constant (tem, 4); + for (i = 0; i < FIRST_PSEUDO_REGSTER; i++) + { + tem = gen_rtx (PLUS, Pmode, + gen_rtx (REG, Pmode, FRAME_POINTER_REGNUM), + gen_rtx (REG, Pmode, i)); + /* This way, we make sure that reg+reg is an offsettable address. */ + tem = plus_constant (tem, 4); - double_reg_address_ok = memory_address_p (QImode, tem); + if (memory_address_p (QImode, tem)) + { + double_reg_address_ok = 1; + break; + } + } /* Initialize obstack for our rtl allocation. */ gcc_obstack_init (&reload_obstack); -- 2.30.2