This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Compiling GCC with g++: a report
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Florian Weimer <fw at deneb dot enyo dot de>
- Cc: gcc at gcc dot gnu dot org, jason at redhat dot com, mark at codesourcery dot com, dberlin at dberlin dot org
- Date: 24 May 2005 11:11:06 +0200
- Subject: Re: Compiling GCC with g++: a report
- References: <m364xapix6.fsf@merlin.cs.tamu.edu> <87acml6pld.fsf@deneb.enyo.de>
Florian Weimer <fw@deneb.enyo.de> writes:
| * Gabriel Dos Reis:
|
| > The first resistance seems to come from the pervasive use of the implicit
| > conversion void* -> T*, mostly with storage allocating functions.
|
| This can be worked around on the C++ side, see the example code below.
| It's a kludge, but it's not too bad IMHO.
Yes. However, if we were to use C++ in the source code, I know of a
few numbers of ways to make the exsting code far better :-)
However, the idea is to have the *C* source code through a C++
compiler -- for a number of reasons, for starter using C++ in
GCC is not on the table.
(And the implicit conversion is still unable to catch the various
wrong codes I repported earlier and the confusion about xcalloc).
-- Gaby