Commit e220f0a4 by Gabriel Dos Reis Committed by Gabriel Dos Reis

cp-tree.h (struct tree_srcloc): Use location_t.

        * cp-tree.h (struct tree_srcloc): Use location_t.
        (SOURCE_LOCUS): New.
        (SRCLOC_FILE, SRCLOC_LINE): Adjust.

From-SVN: r60247
parent 7552fc43
2002-12-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
* cp-tree.h (struct tree_srcloc): Use location_t.
(SOURCE_LOCUS): New.
(SRCLOC_FILE, SRCLOC_LINE): Adjust.
2002-12-17 Jason Merrill <jason@redhat.com> 2002-12-17 Jason Merrill <jason@redhat.com>
* decl.c (finish_function): Also complain about no return in * decl.c (finish_function): Also complain about no return in
......
...@@ -399,13 +399,15 @@ struct tree_wrapper GTY(()) ...@@ -399,13 +399,15 @@ struct tree_wrapper GTY(())
struct z_candidate *z_c; struct z_candidate *z_c;
}; };
#define SRCLOC_FILE(NODE) (((struct tree_srcloc*)SRCLOC_CHECK (NODE))->filename) #define SOURCE_LOCUS(NODE) \
#define SRCLOC_LINE(NODE) (((struct tree_srcloc*)SRCLOC_CHECK (NODE))->linenum) (((struct tree_srcloc*)SRCLOC_CHECK (NODE))->locus)
#define SRCLOC_FILE(NODE) SOURCE_LOCUS (NODE).file
#define SRCLOC_LINE(NODE) SOURCE_LOCUS (NODE).line
struct tree_srcloc GTY(()) struct tree_srcloc GTY(())
{ {
struct tree_common common; struct tree_common common;
const char *filename; location_t locus;
int linenum;
}; };
/* Macros for access to language-specific slots in an identifier. */ /* Macros for access to language-specific slots in an identifier. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment