This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Converting to ISO C89
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: aoliva at redhat dot com, zack at codesourcery dot com
- Cc: gcc at gcc dot gnu dot org, gdr at integrable-solutions dot net, mark at codesourcery dot com, tromey at redhat dot com
- Date: Sat, 5 Apr 2003 20:59:36 -0500 (EST)
- Subject: Re: Converting to ISO C89
- References: <200303250642.h2P6gZ4r025932@doubledemon.codesourcery.com> <m3llz3btqx.fsf@uniton.integrable-solutions.net> <1048612019.25895.7.camel@doubledemon.codesourcery.com> <200303251752.MAA08671@caip.rutgers.edu> <or8yuopmoo.fsf@free.redhat.lsd.ic.unicamp.br> <87d6k0h3cm.fsf@egil.codesourcery.com> <orznn4o10a.fsf@free.redhat.lsd.ic.unicamp.br>
> From: Alexandre Oliva <aoliva at redhat dot com>
>
> On Apr 5, 2003, Zack Weinberg <zack at codesourcery dot com> wrote:
>
> > Alexandre Oliva <aoliva at redhat dot com> writes:
>
> >> It's not that simple, unfortunately. Without libstdc++, there's not
> >> much of C++ any language can possibly use.
>
> > This is true, but I think Kaveh's patches are worthwhile anyway.
>
> No dispute here. I don't even know what patches you're talking about
> (I'm lagging behind in gcc-patches :-(
Alex - you're right about libstdc++ and how crucial it is for most C++
programs. However, the original motivation for this was Tom's posting
here: http://gcc.gnu.org/ml/gcc/2003-03/msg00146.html
If you read down near the bottom, you'll see that he mentions the C++
features he expected to use, namely "classes, destructors, and
exceptions." He makes no mention of libstdc++ or STL, etc. (Of
course, he may have simply left it out by mistake. Tom?)
BTW, I found another use for being able to build cc1plus natively.
I've been seeing an error in the the sparc64-solaris2 testsuite run in
g++.dg/parse/stack1.C:
http://gcc.gnu.org/ml/gcc-testresults/2003-04/msg00268.html
I couldn't debug it cause gdb doesn't seem to work on sparc64. And I
can't reproduce the bug in a cross-compiler where gdb does work. So
being able to compile cc1plus with native cc and use native dbx is a
bonus I hadn't counted on. :-)
--Kaveh
--
Kaveh R. Ghazi ghazi at caip dot rutgers dot edu