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


> If the gcc-in-cxx project succeeds, we will want to write libcpp in
> C++ as well. ?So, although I did not include the changes to make
> libcpp use $(COMPILER), ?I think that making this change at top-level
> is appropriate.

Whatever you can do in the toplevel, you can also do with a shared
macro used in both libcpp and gcc.

> 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.

> Despite that, there is code in gcc which will always be compiled with
> a C compiler--e.g., crtstuff.c (I understand that that may move to
> libgcc eventually, but the one need not be tied to the other).

They are not, crtstuff.c is compiled with GCC_FOR_TARGET.

I'm still leaning towards "no", but it's more like "I haven't seen any
good reason yet" so I'd like to hear from more maintainers.

Paolo


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