summaryrefslogtreecommitdiff
path: root/gcc/rtl.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1999-09-03 15:23:11 -0700
committerRichard Henderson <rth@gcc.gnu.org>1999-09-03 15:23:11 -0700
commit83ab38394c997f79c65461de172700f1a0955be8 (patch)
tree264ee0a18e36e4a7ca076fd4562a9b3d755bc933 /gcc/rtl.c
parent02aadb7a10e8314ac6752427757d4bff29906e92 (diff)
downloadgcc-83ab38394c997f79c65461de172700f1a0955be8.tar.gz
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/rtl.c')
-rw-r--r--gcc/rtl.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc/rtl.c b/gcc/rtl.c
index e183b050354..4b14dabf5cc 100644
--- a/gcc/rtl.c
+++ b/gcc/rtl.c
@@ -986,6 +986,33 @@ rtl_check_failed_type2 (r, n, c1, c2, file, line, func)
fancy_abort (file, line, func);
}
+void
+rtl_check_failed_code1 (r, code, file, line, func)
+ rtx r;
+ enum rtx_code code;
+ const char *file;
+ int line;
+ const char *func;
+{
+ error ("RTL check: expected code `%s', have `%s'",
+ GET_RTX_NAME (code), GET_RTX_NAME (GET_CODE (r)));
+ fancy_abort (file, line, func);
+}
+
+void
+rtl_check_failed_code2 (r, code1, code2, file, line, func)
+ rtx r;
+ enum rtx_code code1, code2;
+ const char *file;
+ int line;
+ const char *func;
+{
+ error ("RTL check: expected code `%s' or `%s', have `%s'",
+ GET_RTX_NAME (code1), GET_RTX_NAME (code2),
+ GET_RTX_NAME (GET_CODE (r)));
+ fancy_abort (file, line, func);
+}
+
/* XXX Maybe print the vector? */
void
rtvec_check_failed_bounds (r, n, file, line, func)