diff options
author | Janis Johnson <janis187@us.ibm.com> | 2002-05-07 00:18:48 +0000 |
---|---|---|
committer | Janis Johnson <janis@gcc.gnu.org> | 2002-05-07 00:18:48 +0000 |
commit | 5a63e06940f9d67dd50445c5cdaaf48e4250bdaa (patch) | |
tree | 6a6fcad1a0a0bc7ab5bf7d4105bb09ccee379fcb /gcc/reload1.c | |
parent | 4afe395245206ed4085058134148ff2bd0aab1f6 (diff) | |
download | gcc-5a63e06940f9d67dd50445c5cdaaf48e4250bdaa.zip gcc-5a63e06940f9d67dd50445c5cdaaf48e4250bdaa.tar.gz gcc-5a63e06940f9d67dd50445c5cdaaf48e4250bdaa.tar.bz2 |
rtl.h (struct rtx_def): Update comments.
* rtl.h (struct rtx_def): Update comments.
(RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
(RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
RTL_FLAG_CHECK macros with list of expected RTL codes.
* rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
(rtl_check_failed_flag): New.
* reload1.c (reload): Use REG macro before changing rtx to MEM.
(reload_cse_noop_set_p): Check rtx code before using access macro.
* config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
before using access macro.
From-SVN: r53245
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r-- | gcc/reload1.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c index d67bd1e..3974e99 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -1160,9 +1160,9 @@ reload (first, global) { rtx reg = regno_reg_rtx[i]; + REG_USERVAR_P (reg) = 0; PUT_CODE (reg, MEM); XEXP (reg, 0) = addr; - REG_USERVAR_P (reg) = 0; if (reg_equiv_memory_loc[i]) MEM_COPY_ATTRIBUTES (reg, reg_equiv_memory_loc[i]); else @@ -8079,7 +8079,8 @@ reload_cse_simplify (insn) if (!count && reload_cse_noop_set_p (body)) { rtx value = SET_DEST (body); - if (! REG_FUNCTION_VALUE_P (SET_DEST (body))) + if (GET_CODE (body) == REG + && ! REG_FUNCTION_VALUE_P (SET_DEST (body))) value = 0; reload_cse_delete_noop_set (insn, value); return; |