diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-31 19:39:10 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-31 19:39:10 +0000 |
commit | 25999090d2a15993c4a8ae4304d3b71bdb09a3a1 (patch) | |
tree | 0b67c4cdc852a2b9c74808c3b360549b5fc234f0 /gcc/local-alloc.c | |
parent | cbf917f503de0669e51f020f075f454f3c2ab7b5 (diff) | |
download | ppe42-gcc-25999090d2a15993c4a8ae4304d3b71bdb09a3a1.tar.gz ppe42-gcc-25999090d2a15993c4a8ae4304d3b71bdb09a3a1.zip |
1999-08-31 12:20 -0700 Zack Weinberg <zack@bitmover.com>
* rtl.h (RTL_CHECK1, RTL_CHECK2): New macros which type- and
bounds- check RTL accesses if --enable-checking.
(RTVEC_ELT): Bounds check if --enable-checking.
(XWINT, XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE,
XBBDEF): Use RTL_CHECK1/RTL_CHECK2 as appropriate.
(XVECEXP, XVECLEN): Define in terms of XVEC, RTVEC_ELT, and
GET_NUM_ELEM.
(X0WINT, X0INT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
X0BBDEF, X0ADVFLAGS): New macros for accessing '0' slots of RTXes.
(ADDR_DIFF_VEC_FLAGS): Use X0ADVFLAGS.
(NOTE_SOURCE_FILE): Use X0STR.
(NOTE_BLOCK_NUMBER, NOTE_EH_HANDLER, LABEL_NUSES,
MEM_ALIAS_SET): Use X0INT.
(NOTE_RANGE_INFO, NOTE_LIVE_INFO, NOTE_BASIC_BLOCK,
JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF, CONTAINING_INSN):
Use X0EXP.
* real.h (CONST_DOUBLE_CHAIN): Use X0EXP.
* rtl.c (copy_rtx, copy_most_rtx): Copy '0' slots with X0WINT.
(rtl_check_failed_bounds, rtl_check_failed_type1,
rtl_check_failed_type2, rtvec_check_failed_bounds): New
functions.
(fancy_abort): Fix comment.
* cse.c (canon_hash): Read CONST_DOUBLE data slots with XWINT.
(cse_insn): Decrement LABEL_NUSES for jump target before
deleting jump insn.
* emit-rtl.c (gen_rtx_CONST_DOUBLE): Use X0EXP for slot 1.
* final.c (alter_subreg): Compute regno before changing x to
REG; set REGNO(x) after changing it.
* flow.c (count_basic_blocks): Use XWINT to inspect EH_REGION
notes containing CONST_INTs.
(delete_eh_regions): Use NOTE_EH_HANDLER.
* function.c (put_reg_into_stack): Make reg a MEM before
initializing it.
(fixup_var_refs_insns): Save REG_NOTES (insn) in case we
delete insn.
(gen_mem_addressof): Make reg a MEM before initializing it.
* integrate.c (copy_rtx_and_substitute): Copy '0' slots with
X0WINT.
* local-alloc.c (update_equiv_regs): Zap REG_NOTES before
deleting an insn, not after.
(block_alloc): Only look at PATTERN(insn) if we have to, and
only if it's format class 'i'.
* loop.c (check_dbra_loop): Check bl->biv->add_val is a
CONST_INT before using its INTVAL.
* print-rtl.c (print_rtx): Use X0STR.
* regmove.c (fixup_match_1): Don't look at PATTERN of
non-class-'i' insn chain elements.
* reload.c (loc_mentioned_in_p): Take address of
in->fld[1].rtx directly.
* reload1.c (reload): Change reg to a MEM before initializing
it.
* varasm.c (mark_constant_pool): Skip CONST_DOUBLES, which
have no names.
* config/i386/i386.md (decrement_and_branch_if_zero): Fix typo.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29008 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/local-alloc.c')
-rw-r--r-- | gcc/local-alloc.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c index 89e3f495d26..dcee4992c5a 100644 --- a/gcc/local-alloc.c +++ b/gcc/local-alloc.c @@ -971,11 +971,11 @@ update_equiv_regs () emit_insn_before (copy_rtx (PATTERN (equiv_insn)), insn); REG_NOTES (PREV_INSN (insn)) = REG_NOTES (equiv_insn); + REG_NOTES (equiv_insn) = 0; PUT_CODE (equiv_insn, NOTE); NOTE_LINE_NUMBER (equiv_insn) = NOTE_INSN_DELETED; NOTE_SOURCE_FILE (equiv_insn) = 0; - REG_NOTES (equiv_insn) = 0; if (block < 0) REG_BASIC_BLOCK (regno) = 0; @@ -1071,8 +1071,6 @@ block_alloc (b) insn = BLOCK_HEAD (b); while (1) { - register rtx body = PATTERN (insn); - if (GET_CODE (insn) != NOTE) insn_number++; @@ -1083,6 +1081,9 @@ block_alloc (b) register rtx r0, r1; int combined_regno = -1; int i; +#ifndef REGISTER_CONSTRAINTS + register rtx body = PATTERN (insn); +#endif this_insn_number = insn_number; this_insn = insn; @@ -1184,11 +1185,11 @@ block_alloc (b) can only be in the same register as the output, give priority to an equivalence found from that insn. */ int may_save_copy - = ((SET_DEST (body) == r0 && SET_SRC (body) == r1) #ifdef REGISTER_CONSTRAINTS - || (r1 == recog_operand[i] && must_match_0 >= 0) + = (r1 == recog_operand[i] && must_match_0 >= 0); +#else + = (SET_DEST (body) == r0 && SET_SRC (body) == r1); #endif - ); if (GET_CODE (r1) == REG || GET_CODE (r1) == SUBREG) win = combine_regs (r1, r0, may_save_copy, |