This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Java frontend question: Purpose of DECL_END_SOURCE_LINE?


I'm making a patch to eliminate DECL_FRAME_SIZE, and I noticed that this
macro is in use by the Java frontend; it's used to define another macro
DECL_END_SOURCE_LINE.  However, a quick grep shows that this macro is only
set, never used:

bernds@darkstar:~/work/newco/egcs/gcc > grep -A1 DECL_END_SOURCE java/*
grep: java/CVS: Is a directory
java/ChangeLog: (DECL_END_SOURCE_LINE): Likewise.
java/ChangeLog- (DECL_INHERITED_SOURCE_LINE): Likewise.
--
java/parse.h:#define DECL_END_SOURCE_LINE(DECL)       DECL_FRAME_SIZE (DECL)
java/parse.h-#define DECL_INHERITED_SOURCE_LINE(DECL) DECL_FIELD_SIZE (DECL)
--
java/parse.y:               DECL_END_SOURCE_LINE (ctxp->current_parsed_class) =
java/parse.y-                 EXPR_WFL_ADD_COL ($2.location, 1);
--
java/parse.y:               DECL_END_SOURCE_LINE (ctxp->current_parsed_class) =
java/parse.y-                 EXPR_WFL_ADD_COL ($3.location, 1);
--
java/parse.y:               DECL_END_SOURCE_LINE (current_function_decl) =
java/parse.y-                 EXPR_WFL_ADD_COL ($2.location, 1);
--
java/parse.y:               DECL_END_SOURCE_LINE (current_function_decl) =
java/parse.y-                 EXPR_WFL_ADD_COL ($1.location, 1);

[matches in parse.c deleted]

What's the point of this macro (the same problem applies to
DECL_INHERITED_SOURCE_LINE as well)?


Bernd


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]