summaryrefslogtreecommitdiff
path: root/gcc/diagnostic.h
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-10 10:36:27 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-10 10:36:27 +0000
commit73b2a7857cc6c36ee6a8c7be1d91a6bcd50f01f9 (patch)
tree798555e0df33e387c50ea2b5cb4819e17982e2e8 /gcc/diagnostic.h
parent5759ae4daded3ecabad134041587e1cacad0e062 (diff)
downloadgcc-73b2a7857cc6c36ee6a8c7be1d91a6bcd50f01f9.tar.gz
* diagnostic.h: #include location.h
(location_t): Move definition to.. * location.h: ... here. New file. * tree.h: #include location.h (DECL_SOURCE_LOCATION): New macro. (DECL_SOURCE_FILE): Use. (DECL_SOURCE_LINE): Likewise. (struct tree_decl): REplace filename and linenum with locus. * Makefile.in (TREE_H): add location.h (diagnostic.o): Depends on gt-location.h (gt-location.h): Depends on s-gtype git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55364 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r--gcc/diagnostic.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h
index c98b8e13b6e..c4238df6aba 100644
--- a/gcc/diagnostic.h
+++ b/gcc/diagnostic.h
@@ -23,6 +23,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#define GCC_DIAGNOSTIC_H
#include "obstack.h"
+#include "location.h"
/* The type of a text to be formatted according a format specification
along with a list of things. */
@@ -41,16 +42,6 @@ typedef enum
DK_LAST_DIAGNOSTIC_KIND
} diagnostic_t;
-/* The data structure used to record the location of a diagnostic. */
-typedef struct
-{
- /* The name of the source file involved in the diagnostic. */
- const char *file;
-
- /* The line-location in the source file. */
- int line;
-} location_t;
-
/* A diagnostic is described by the MESSAGE to send, the FILE and LINE of
its context and its KIND (ice, error, warning, note, ...) See complete
list in diagnostic.def. */