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]

Re: gimple


On Thu, Mar 27, 2008 at 19:55, Dasarath Weeratunge <dasarath@gmail.com> wrote:
> Is it possible to map simplified source statements back to the
>  original source code in GCC?

Yes, using the debugging information associated with every statement.
Every statement has the file and line number of the original
statement.  See EXPR_FILENAME and EXPR_LINENO.

>  If this is not possible is it possible to stop the simplification
>  altogether and just retain the original
>  source tree in say DECL_SAVED_TREE(...) ? I tried removing tree
>  lowering passes but gcc still
>  seems to simplify the source.

No.  This is not possible.


Diego.


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