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]

RFD: language hooks in GIMPLE / lang_flag?


As was discussed at the summit, we'd like to get rid of global language callbacks so that we can
safely inline from different source languages.
AFAICS, this can be archived by using the space occupied by the lang_flags to store a language
tag in each tree node.
I.e., while the frontend does processes the source, we use the language hook from that frontend,
but once everything is converted to GIMPLE, each tree node is tagged with the source language,
and language hooks are looked up using this language hook in the tree node that defines the context
for which langiage-specific information is needed.


This assumes that after conversion to GIMPLE, we don't need any more lang_flags. Is that true?


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