On Wed, Nov 14, 2012 at 5:41 AM, Paulo Matos <pma...@broadcom.com> wrote: > Hi, > > There's a function in lto-streamer-out.c which determines if a tree is > streamable. > This is lto_is_streamable? I have a LANG_TYPE that I want to stream and > adding to that function: > #ifdef TARGET_MYPORT > if (code == LANG_TYPE) > return true; > #endif > > sorts the problem out but my question is, why do we need to exclude > is_lang_specific(expr) from > streamable trees and is there a workaround to allow this without changing the > core?
Because the LTO streamer only (well, mostly) deals with language-independent tree expressions. In the PPH branch we added support for streaming C++ trees. This makes use of the streaming call back mechanism you see in streamer-hooks.[ch], but you need to implement your own streaming if you want to write out language nodes. Diego.