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: Preserving tree node fields for access in LTO?


On Mon, Jul 27, 2015 at 7:14 PM, Uday Khedker <uday@cse.iitb.ac.in> wrote:
>
> We have added a new field (bool ptr_arith in struct tree_base) to the tree
> node. We are assigning values to this field in a gimple pass in non-LTO mode
> and would like to access them in LTO mode in our ipa passes. It appears that
> all fields of tree node are not preserved in LTO mode. Is there any way to
> tell GCC that a given field should be preserved so that it can be accessed
> in LTO mode?

You have to explicitely add the streaming to tree-streamer-{in,out}.c

Richard.

> Thanks and regards,
>
> Uday.
>
> ------------------------------------------------------------------------
> Dr. Uday Khedker, Professor
> Department of Computer Science & Engg.
> IIT Bombay, Powai, Mumbai 400 076, India.
> Email :          uday@cse.iitb.ac.in
> Homepage:        http://www.cse.iitb.ac.in/~uday
> Phone :           91 (22) 2572 2545 x 7717, 91 (22) 2576 7717 (Direct)
>
>


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