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


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 optimization, on the same
middle-end structure, is valid in one language and not in another,
that would suggest a problem with the implementation.


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