diff options
author | Richard Henderson <rth@redhat.com> | 2000-10-25 16:58:53 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-10-25 16:58:53 -0700 |
commit | 081b49f1443d4bf4f1ab3718db439719c9f33e8d (patch) | |
tree | 47675c6a612eb3389b5c4fe2b2b99cddbb7c0493 /gcc/reload.c | |
parent | d4f1c1faff4405a94368214cb84694f9bb250c0c (diff) | |
download | gcc-081b49f1443d4bf4f1ab3718db439719c9f33e8d.zip gcc-081b49f1443d4bf4f1ab3718db439719c9f33e8d.tar.gz gcc-081b49f1443d4bf4f1ab3718db439719c9f33e8d.tar.bz2 |
* reload.c (find_reloads_address_part): Kill rtx obstack hackery.
From-SVN: r37062
Diffstat (limited to 'gcc/reload.c')
-rw-r--r-- | gcc/reload.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/gcc/reload.c b/gcc/reload.c index 3fc2bfe..dbf1052 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -5525,18 +5525,7 @@ find_reloads_address_part (x, loc, class, mode, opnum, type, ind_levels) { rtx tem; - /* If this is a CONST_INT, it could have been created by a - plus_constant call in eliminate_regs, which means it may be - on the reload_obstack. reload_obstack will be freed later, so - we can't allow such RTL to be put in the constant pool. There - is code in force_const_mem to check for this case, but it doesn't - work because we have already popped off the reload_obstack, so - rtl_obstack == saveable_obstack is true at this point. */ - if (GET_CODE (x) == CONST_INT) - tem = x = force_const_mem (mode, GEN_INT (INTVAL (x))); - else - tem = x = force_const_mem (mode, x); - + tem = x = force_const_mem (mode, x); find_reloads_address (mode, &tem, XEXP (tem, 0), &XEXP (tem, 0), opnum, type, ind_levels, 0); } @@ -5548,12 +5537,7 @@ find_reloads_address_part (x, loc, class, mode, opnum, type, ind_levels) { rtx tem; - /* See comment above. */ - if (GET_CODE (XEXP (x, 1)) == CONST_INT) - tem = force_const_mem (GET_MODE (x), GEN_INT (INTVAL (XEXP (x, 1)))); - else - tem = force_const_mem (GET_MODE (x), XEXP (x, 1)); - + tem = force_const_mem (GET_MODE (x), XEXP (x, 1)); x = gen_rtx_PLUS (GET_MODE (x), XEXP (x, 0), tem); find_reloads_address (mode, &tem, XEXP (tem, 0), &XEXP (tem, 0), opnum, type, ind_levels, 0); |