Re: Checking for the Programming Language inside GCC

2009-04-28 Thread Richard Guenther
On Tue, Apr 28, 2009 at 7:50 PM, Shobaki, Ghassan wrote: > Hi, > > 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? There is no way that should be used in new code. Rich

Re: Checking for the Programming Language inside GCC

2009-04-28 Thread Tobias Burnus
Basile STARYNKEVITCH wrote: > 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? > > I am not sure that would be a good idea. In fact you are su

Re: Checking for the Programming Language inside GCC

2009-04-28 Thread Joe Buck
On Tue, Apr 28, 2009 at 10:50:52AM -0700, 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? Is that really a good idea? If a particular optimizat

Re: Checking for the Programming Language inside GCC

2009-04-28 Thread Andrew Haley
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

Re: Checking for the Programming Language inside GCC

2009-04-28 Thread Basile STARYNKEVITCH
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? I am not sure that would be a good idea. In fact you are suggesting that the intermediate represen

Checking for the Programming Language inside GCC

2009-04-28 Thread Shobaki, Ghassan
Hi, 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? Thanks in advance! -Ghassan