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 g++: a report


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


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