aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2003-07-04 01:55:50 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2003-07-04 01:55:50 +0000
commit5f1989e65d23624efdbf26bde56f375e3caa6a22 (patch)
treed40d3df53a09947e306cecdd4c52164ae5ff60fc /gcc/c-common.c
parent54c378f0438b6a1d718ef626389fff2ca91a0f9f (diff)
downloadgcc-5f1989e65d23624efdbf26bde56f375e3caa6a22.zip
gcc-5f1989e65d23624efdbf26bde56f375e3caa6a22.tar.gz
gcc-5f1989e65d23624efdbf26bde56f375e3caa6a22.tar.bz2
c-aux-info.c: Include toplev.h after c-tree.h.
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. From-SVN: r68910
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 9e03765..6513ca8 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -26,7 +26,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "intl.h"
#include "tree.h"
#include "flags.h"
-#include "toplev.h"
#include "output.h"
#include "c-pragma.h"
#include "rtl.h"
@@ -42,6 +41,11 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "langhooks.h"
#include "tree-inline.h"
#include "c-tree.h"
+/* In order to ensure we use a common subset of valid specifiers
+ (between the various C family frontends) in this file, we restrict
+ ourselves to the generic specifier set. */
+#undef GCC_DIAG_STYLE
+#include "toplev.h"
cpp_reader *parse_in; /* Declared in c-pragma.h. */