This is the mail archive of the gcc-patches@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: PATCH RFA: Use $(COMPILER) to build objects


On May 25, 2009, Paolo Bonzini <bonzini@gnu.org> wrote:

>> It's true that today the code is in the C/C++ common subset. ÂHowever,
>> if the gcc-in-cxx project succeeds, the code will move to C++.

> ... and then you'll have a patch replacing CC with CXX.  But while
> it's the common subset, I don't see anything wrong with having CC
> being a C++ compiler given you provided a rather explicit command-line
> option to do so.

I think it's important to keep this setting with a separate, especially
for combined binutils+gcc+gdb trees, unless binutils and gdb et al were
to follow suit.  That's mainly because the top-level Makefile overrides
lots of variables in lower Makefile, so even if GCC's Makefile were to
set CC=the-c++-compiler, it would still use whatever the top level's
notion of CC is.  And that's actually as it should be, because CC is to
be overridable in the make command line, and it changes from one stage
to another.

Nevertheless, I kind of dislike COMPILER as the macro name.  It's long
and kind of misleading, for, you know, there are compilers for various
languages other than C and C++ :-)

How about CXC?

-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer


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