This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Regarding line no and artificial nodes
- From: "ritesh goel" <goel_ritesh at rediffmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: 15 Oct 2002 18:41:28 -0000
- Subject: Regarding line no and artificial nodes
- Reply-to: "ritesh goel" <goel_ritesh at rediffmail dot com>
I am makking use gcc version 3.0 with -fdump-translation-unit for
making C++ frontend ,
I want the line numbers of each node came from user source while
dumping . In the tree nodes i am getting the line number for decl
(declaration) nodes and stmt nodes , but not for expr nodes . So
if one statement is in more than one line , i am not able to get
the accurate line no for that expression is there any way to get
the line number for expression nodes .
and also gcc is marking the compiler generated decl-nodes as
artificial but not to stmt and expr nodes . Is there any way to
mark compiler genearted stmt and expr nodes as artificial .
thanx and regards
ritesh