summaryrefslogtreecommitdiff
path: root/gcc/rtl-error.h
diff options
context:
space:
mode:
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-30 17:12:36 +0000
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-30 17:12:36 +0000
commitd7091a76ce2d22e8be9c3e2a5d6fd91d1b4ad46d (patch)
tree6809eeec78ac6bc094b49d7b9412573e5f8f762c /gcc/rtl-error.h
parent6f881d7c78736a6d0543547cf41d4a805bc90efb (diff)
downloadgcc-d7091a76ce2d22e8be9c3e2a5d6fd91d1b4ad46d.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161617 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/rtl-error.h')
-rw-r--r--gcc/rtl-error.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/rtl-error.h b/gcc/rtl-error.h
new file mode 100644
index 00000000000..1ff58256b70
--- /dev/null
+++ b/gcc/rtl-error.h
@@ -0,0 +1,24 @@
+/* RTL specific diagnostic subroutines for GCC
+ Copyright (C) 2010 Free Software Foundation, Inc.
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 3, or (at your option)
+any later version.
+
+GCC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING3. If not see
+<http://www.gnu.org/licenses/>. */
+
+#include "rtl.h"
+#include "diagnostic-core.h"
+
+extern void error_for_asm (const_rtx, const char *, ...) ATTRIBUTE_GCC_DIAG(2,3);
+extern void warning_for_asm (const_rtx, const char *, ...) ATTRIBUTE_GCC_DIAG(2,3);