summaryrefslogtreecommitdiffstats
path: root/gcc/c-tree.h
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-28 23:15:55 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-28 23:15:55 +0000
commit9f19e0f996b256efee6e846a02600879f1072b82 (patch)
treebbef9c35e3335826695cecc5a96f08d7e888cedd /gcc/c-tree.h
parent6ad8abad783af88a9591b967932a810347637b4e (diff)
downloadppe42-gcc-9f19e0f996b256efee6e846a02600879f1072b82.tar.gz
ppe42-gcc-9f19e0f996b256efee6e846a02600879f1072b82.zip
gcc/ChangeLog:
* c-common.h (GCC_DIAG_STYLE): Define earlier in the file, before including diagnostic-core.h. (c_cpp_error): New prototype moved from c-tree.h. Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG. * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define. (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead. (c_cpp_error): Prototype moved to c-common.h. * Makefile.in: Update dependency for C_COMMON_H. cp/ChangeLog: * cp-tree.h (ATTRIBUTE_GCC_CXXDIAG): Remove. Require that this file is included before c-common.h. Define GCC_DIAG_STYLE before including diagnostic-core.h and toplev.h. (pedwarn_cxx98): Use ATTRIBUTE_GCC_DIAG. * pt.c: Include cp-tree.h before c-common.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160007 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r--gcc/c-tree.h18
1 files changed, 3 insertions, 15 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h
index 6d8394ac067..30b5274841a 100644
--- a/gcc/c-tree.h
+++ b/gcc/c-tree.h
@@ -601,20 +601,8 @@ extern bool c_override_global_bindings_to_false;
extern void c_finish_incomplete_decl (tree);
extern void c_write_global_declarations (void);
-/* In order for the format checking to accept the C frontend
- diagnostic framework extensions, you must include this file before
- toplev.h, not after. */
-#if GCC_VERSION >= 4001
-#define ATTRIBUTE_GCC_CDIAG(m, n) __attribute__ ((__format__ (GCC_DIAG_STYLE, m ,n))) ATTRIBUTE_NONNULL(m)
-#else
-#define ATTRIBUTE_GCC_CDIAG(m, n) ATTRIBUTE_NONNULL(m)
-#endif
-
-extern void pedwarn_c90 (location_t, int opt, const char *, ...) ATTRIBUTE_GCC_CDIAG(3,4);
-extern void pedwarn_c99 (location_t, int opt, const char *, ...) ATTRIBUTE_GCC_CDIAG(3,4);
-
-extern bool c_cpp_error (cpp_reader *, int, int, location_t, unsigned int,
- const char *, va_list *)
- ATTRIBUTE_GCC_CDIAG(6,0);
+/* In c-errors.c */
+extern void pedwarn_c90 (location_t, int opt, const char *, ...) ATTRIBUTE_GCC_DIAG(3,4);
+extern void pedwarn_c99 (location_t, int opt, const char *, ...) ATTRIBUTE_GCC_DIAG(3,4);
#endif /* ! GCC_C_TREE_H */
OpenPOWER on IntegriCloud