aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2010-06-30 17:12:36 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2010-06-30 17:12:36 +0000
commit0cbd999369498655f6832bbf9e0c8001a5226411 (patch)
tree6809eeec78ac6bc094b49d7b9412573e5f8f762c /gcc/rtl.h
parentb1570cac5432acd5b92b2c258675842966653d22 (diff)
downloadgcc-0cbd999369498655f6832bbf9e0c8001a5226411.zip
gcc-0cbd999369498655f6832bbf9e0c8001a5226411.tar.gz
gcc-0cbd999369498655f6832bbf9e0c8001a5226411.tar.bz2
toplev.h (_fatal_insn_not_found, [...]): Move declarations to rtl.h.
2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org> * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations to rtl.h. (error_for_asm, warning_for_asm): Move declarations to rtl-error.h. * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here. * rtl-error.h: New. * regrename.c: Do not include toplev.h. Include rtl-error.h. * rtl-error.c: Likewise. * reload.c: Likewise. * recog.c: Likewise. * sel-sched.c: Likewise. * function.c: Likewise. * reg-stack.c: Likewise. * cfgrtl.c: Likewise. * reload1.c: Likewise. * final.c: Include rtl-error. * Makefile.in: Adjust dependencies. From-SVN: r161617
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 6be88d1..02f74f5 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -2440,4 +2440,17 @@ extern int curr_insn_locator (void);
extern bool optimize_insn_for_size_p (void);
extern bool optimize_insn_for_speed_p (void);
+/* rtl-error.c */
+extern void _fatal_insn_not_found (const_rtx, const char *, int, const char *)
+ ATTRIBUTE_NORETURN;
+extern void _fatal_insn (const char *, const_rtx, const char *, int, const char *)
+ ATTRIBUTE_NORETURN;
+
+#define fatal_insn(msgid, insn) \
+ _fatal_insn (msgid, insn, __FILE__, __LINE__, __FUNCTION__)
+#define fatal_insn_not_found(insn) \
+ _fatal_insn_not_found (insn, __FILE__, __LINE__, __FUNCTION__)
+
+
+
#endif /* ! GCC_RTL_H */