This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Checking for the Programming Language inside GCC
- From: Joe Buck <Joe dot Buck at synopsys dot COM>
- To: "Shobaki, Ghassan" <Ghassan dot Shobaki at amd dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Tue, 28 Apr 2009 11:13:12 -0700
- Subject: Re: Checking for the Programming Language inside GCC
- References: <912DA18E911D8B418824641EF1541F3C0D5AFC@ssvlexmb2.amd.com>
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.