Makefile.in (C_TREE_H): Update dependencies.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sat, 23 Jul 2005 15:22:46 +0000 (15:22 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sat, 23 Jul 2005 15:22:46 +0000 (15:22 +0000)
* Makefile.in (C_TREE_H): Update dependencies.
* c-tree.h: Include toplev.h.
* diagnostic.h (diagnostic_set_info): Add format attribute.
* rtl-error.c (diagnostic_for_asm): Likewise.

From-SVN: r102309

gcc/ChangeLog
gcc/Makefile.in
gcc/c-tree.h
gcc/diagnostic.h
gcc/rtl-error.c

index 73d386b..36588ee 100644 (file)
@@ -1,3 +1,10 @@
+2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * Makefile.in (C_TREE_H): Update dependencies.
+       * c-tree.h: Include toplev.h.
+       * diagnostic.h (diagnostic_set_info): Add format attribute.
+       * rtl-error.c (diagnostic_for_asm): Likewise.
+
 2005-07-23  Chao-ying Fu  <fu@mips.com>
 
        * config/mips/mips-dsp.md: New file.
index 1cbdf68..703c185 100644 (file)
@@ -741,7 +741,7 @@ TIMEVAR_H = timevar.h timevar.def
 INSN_ATTR_H = insn-attr.h $(srcdir)/insn-addr.h $(srcdir)/varray.h
 C_COMMON_H = c-common.h $(SPLAY_TREE_H) $(CPPLIB_H) $(GGC_H)
 C_PRAGMA_H = c-pragma.h $(CPPLIB_H)
-C_TREE_H = c-tree.h $(C_COMMON_H)
+C_TREE_H = c-tree.h $(C_COMMON_H) toplev.h $(DIAGNOSTIC_H)
 SYSTEM_H = system.h hwint.h $(srcdir)/../include/libiberty.h
 PREDICT_H = predict.h predict.def
 CPPLIB_H = $(srcdir)/../libcpp/include/line-map.h \
index 3266cec..0894317 100644 (file)
@@ -23,6 +23,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
 #define GCC_C_TREE_H
 
 #include "c-common.h"
+#include "toplev.h"
 #include "diagnostic.h"
 
 /* struct lang_identifier is private to c-decl.c, but langhooks.c needs to
index ec2df12..e44d680 100644 (file)
@@ -181,8 +181,10 @@ extern void diagnostic_report_current_module (diagnostic_context *);
 extern void diagnostic_report_current_function (diagnostic_context *);
 extern void diagnostic_report_diagnostic (diagnostic_context *,
                                          diagnostic_info *);
+#ifdef ATTRIBUTE_GCC_DIAG
 extern void diagnostic_set_info (diagnostic_info *, const char *, va_list *,
-                                location_t, diagnostic_t);
+                                location_t, diagnostic_t) ATTRIBUTE_GCC_DIAG(2,0);
+#endif
 extern char *diagnostic_build_prefix (diagnostic_info *);
 
 /* Pure text formatting support functions.  */
index 3a950b2..4f5a096 100644 (file)
@@ -34,7 +34,7 @@ Boston, MA 02110-1301, USA.  */
 #include "diagnostic.h"
 
 static location_t location_for_asm (rtx);
-static void diagnostic_for_asm (rtx, const char *, va_list *, diagnostic_t);
+static void diagnostic_for_asm (rtx, const char *, va_list *, diagnostic_t) ATTRIBUTE_GCC_DIAG(2,0);
 
 /* Figure the location of the given INSN.  */
 static location_t