aboutsummaryrefslogtreecommitdiff
path: root/gcc/diagnostic.h
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@codesourcery.com>2002-07-10 10:36:27 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2002-07-10 10:36:27 +0000
commite6986399dce0b228feb187326e67f08c8008e37c (patch)
tree798555e0df33e387c50ea2b5cb4819e17982e2e8 /gcc/diagnostic.h
parent99248579810c9a0dba0daaf12d4a04892b9f52e9 (diff)
downloadgcc-e6986399dce0b228feb187326e67f08c8008e37c.zip
gcc-e6986399dce0b228feb187326e67f08c8008e37c.tar.gz
gcc-e6986399dce0b228feb187326e67f08c8008e37c.tar.bz2
diagnostic.h: #include location.h
* 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 From-SVN: r55364
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 c98b8e1..c4238df 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. */