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: Compiling GCC With a C++ Compiler (g++)


On Tue, 12 Oct 2004 19:13:10 -0400, Phil Edwards <phil@codesourcery.com> wrote:
> 
> Until we can agree that we should be able to use C++ in the compiler, this
> thrashing around trying to make the source acceptable in both languages
> is just going to produce heat and noise.

Note that the issue is not about using C++ constructs
in the compiler, but being able to bootstrap using a C++
compiler (thus using only those constructs in GCC that
are kosher in both C and C++).

I thought we had agreed to that:

http://gcc.gnu.org/ml/gcc/2004-07/msg00601.html

In July of this year, there were a flurry of patches
from Bernardo Innocenti and Gabriel Dos Reis allowing
GCC to be bootstrapped using a C++ compiler:

http://gcc.gnu.org/ml/gcc-patches/2004-07/authors.html#02252
http://gcc.gnu.org/ml/gcc-patches/2004-07/authors.html#02300

We shouldn't be undoing their hard work if we can
help it.

In this particular case, we can probably resolve this 
issue by removing "const" from tree_string but adding
"(const char *)" to the definition of TREE_STRING_POINTER
so that for "properly behaving" clients of a STRING_CST,
it is still a constant.

Ranjit.


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