diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-04 01:55:50 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-04 01:55:50 +0000 |
commit | 695790443d9086ea902babc63b12e29e306bd0e6 (patch) | |
tree | d40d3df53a09947e306cecdd4c52164ae5ff60fc /gcc/c-semantics.c | |
parent | bfa20f71a67fa4aedad2885e97021dfd5993bdd0 (diff) | |
download | gcc-695790443d9086ea902babc63b12e29e306bd0e6.tar.gz |
gcc:
* c-aux-info.c: Include toplev.h after c-tree.h.
* c-common.c: Likewise.
(GCC_DIAG_STYLE): Undef.
* c-semantics.c (GCC_DIAG_STYLE): Define.
* c-tree.h (GCC_DIAG_STYLE): Likewise.
* diagnostic.h (inform): Move prototype to toplev.h.
* jump.c: Include diagnostic.h before toplev.h.
* toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
(warning, error, fatal_error, pedwarn, sorry, inform,
error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
cp:
* cp-tree.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_CXXDIAG): Define.
(cp_error_at, cp_warning_at, cp_pedwarn_at): Mark with
ATTRIBUTE_GCC_CXXDIAG.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68910 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r-- | gcc/c-semantics.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c index e292d9f8579..4e27bec22b2 100644 --- a/gcc/c-semantics.c +++ b/gcc/c-semantics.c @@ -31,6 +31,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "varray.h" #include "c-common.h" #include "except.h" +/* In order for the format checking to accept the C frontend + diagnostic framework extensions, you must define this token before + including toplev.h. */ +#define GCC_DIAG_STYLE __gcc_cdiag__ #include "toplev.h" #include "flags.h" #include "ggc.h" |