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: Checking for the Programming Language inside GCC


Shobaki, Ghassan wrote:

> In some optimization passes it may be useful to know the programming
> language that we are compiling. Is there a way to get that information
> in the middle end and back end?

Hmm.  I would rather that the amount of language-specific optimization
were kept to an absolute minimum.  I maintain the Java front-end, and
the fact that the optimizers I use work the same way for C makes me
very happy.  I wouldn't do it if I were you.  Better to find a way to
describe what you need to do in a langauge-independent form.

Andrew.


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