diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2008-07-09 06:45:21 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2008-07-09 06:45:21 +0000 |
commit | 8ad97cfca7405266d280412da3f57800926c5b9d (patch) | |
tree | 6954eaaa696c6bf48cf413495c59ff795a740dc2 /gcc/genemit.c | |
parent | 588021c0e8ef99701465aee44d7a18135bc1bbee (diff) | |
download | gcc-8ad97cfca7405266d280412da3f57800926c5b9d.tar.gz |
genattrtab.c (insert_right_side, [...]): Avoid C++ keywords.
* genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
keywords.
* genemit.c (gen_insn): Likewise.
* gengtype.c (note_def_vec): Likewise.
* gengtype.h (note_def_vec): Likewise.
* genoutput.c (struct data, output_insn_data, process_template,
gen_expand, gen_split, note_constraint): Likewise.
* genrecog.c (new_decision, add_to_sequence, factor_tests,
make_insn_sequence): Likewise.
* gensupport.c (record_insn_name): Likewise.
From-SVN: r137653
Diffstat (limited to 'gcc/genemit.c')
-rw-r--r-- | gcc/genemit.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/genemit.c b/gcc/genemit.c index caf808e99c9..35e5691b94f 100644 --- a/gcc/genemit.c +++ b/gcc/genemit.c @@ -357,17 +357,17 @@ gen_insn (rtx insn, int lineno) for (j = i + 1; j < XVECLEN (insn, 1); j++) { - rtx old = XEXP (XVECEXP (p->pattern, 1, j), 0); - rtx new = XEXP (XVECEXP (insn, 1, j), 0); + rtx old_rtx = XEXP (XVECEXP (p->pattern, 1, j), 0); + rtx new_rtx = XEXP (XVECEXP (insn, 1, j), 0); - /* OLD and NEW are the same if both are to be a SCRATCH + /* OLD and NEW_INSN are the same if both are to be a SCRATCH of the same mode, or if both are registers of the same mode and number. */ - if (! (GET_MODE (old) == GET_MODE (new) - && ((GET_CODE (old) == MATCH_SCRATCH - && GET_CODE (new) == MATCH_SCRATCH) - || (REG_P (old) && REG_P (new) - && REGNO (old) == REGNO (new))))) + if (! (GET_MODE (old_rtx) == GET_MODE (new_rtx) + && ((GET_CODE (old_rtx) == MATCH_SCRATCH + && GET_CODE (new_rtx) == MATCH_SCRATCH) + || (REG_P (old_rtx) && REG_P (new_rtx) + && REGNO (old_rtx) == REGNO (new_rtx))))) break; } |