diff options
author | Richard Henderson <rth@cygnus.com> | 1999-09-03 15:23:11 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1999-09-03 15:23:11 -0700 |
commit | 83ab38394c997f79c65461de172700f1a0955be8 (patch) | |
tree | 264ee0a18e36e4a7ca076fd4562a9b3d755bc933 /gcc/rtlanal.c | |
parent | 02aadb7a10e8314ac6752427757d4bff29906e92 (diff) | |
download | gcc-83ab38394c997f79c65461de172700f1a0955be8.zip gcc-83ab38394c997f79c65461de172700f1a0955be8.tar.gz gcc-83ab38394c997f79c65461de172700f1a0955be8.tar.bz2 |
flow.c (propagate_block): Use XEXP not SET_DEST for a USE.
* flow.c (propagate_block): Use XEXP not SET_DEST for a USE.
(recompute_reg_usage): Likewise.
* rtlanal.c (find_regno_fusage): Likewise.
* rtl.c (rtl_check_failed_code1): New function.
(rtl_check_failed_code2): New.
* rtl.h (RTL_CHECK1, RTL_CHECK2, RTVEC_ELT): Parenthesize args.
(RTL_CHECKC1, RTL_CHECKC2): New.
(XC*): New accessor macros.
(NOTE_*, LABEL_NAME, LABEL_NUSES, ADDRESSOF_REGNO): Use them.
(ADDRESSOF_DECL, JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF): Likewise.
(CONTAINING_INSN, REGNO, INTVAL, SUBREG_REG, SUBREG_WORD): Likewise.
(ASM_OPERANDS_*, MEM_ALIAS_SET, SET_SRC, SET_DEST): Likewise.
(TRAP_*, RANGE_INFO_*): Likewise.
From-SVN: r29089
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r-- | gcc/rtlanal.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 8403afe..d1b2322 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -1495,18 +1495,16 @@ find_regno_fusage (insn, code, regno) return 0; for (link = CALL_INSN_FUNCTION_USAGE (insn); link; link = XEXP (link, 1)) - { - register int regnote; - register rtx op; - - if (GET_CODE (op = XEXP (link, 0)) == code - && GET_CODE (SET_DEST (op)) == REG - && (regnote = REGNO (SET_DEST (op))) <= regno - && regnote - + HARD_REGNO_NREGS (regnote, GET_MODE (SET_DEST (op))) - > regno) - return 1; - } + { + register int regnote; + register rtx op, reg; + + if (GET_CODE (op = XEXP (link, 0)) == code + && GET_CODE (reg = XEXP (op, 0)) == REG + && (regnote = REGNO (reg)) <= regno + && regnote + HARD_REGNO_NREGS (regnote, GET_MODE (reg)) > regno) + return 1; + } return 0; } |