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]
Other format: [Raw text]

DECL_SOURCE_LINE of else


Hi,
I am creating a plugin which parses the generic tree and inserts a function call in a if/else clause.
The function writes which lineno gets executed to stdout.
I wish to get the line number for the if statement and for the else statement. (and not the body. eg ELSE_CLAUSE).

My problem is that while I can get the line number for the  if condition (eg. DECL_SOURCE_LINE(if_cond)),
is it also possible to get the precise line number for the 'else' label?

/Lars



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