This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Builtins in `std'
- To: nathan at codesourcery dot com
- Subject: Re: Builtins in `std'
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Wed, 23 May 2001 08:36:22 -0700
- Cc: jakub at redhat dot com, gcc at gcc dot gnu dot org, jason at cygnus dot com, bkoz at nabi dot net, gdr at codesourcery dot com
- Organization: CodeSourcery, LLC
- References: <20010522200302Y.mitchell@codesourcery.com><3B0B7723.D0A7D195@codesourcery.com>
>>>>> "Nathan" == Nathan Sidwell <nathan@codesourcery.com> writes:
Nathan> not others. yeay even with -pedantic. So as a user, I
Nathan> agree.
Good.
Nathan> With my compiler hat on, I find it strange/ugly that we
Nathan> push tons of stuff into the user/library namespace. So,
Nathan> again, I agree.
Good.
Thanks, now we've got three: you, me, Gaby.
Nathan> Sometimes I wish we could just source some special header
Nathan> file at startup which declared the magic things the
Nathan> compiler must know about like std, std::bad_alloc,
Nathan> operator new (size_t), etc. ahh, if only it were lisp,
Nathan> mutter mutter ramble ...
Yes, we did this in another compiler I worked on. It was much
simpler -- even though we did need a lot of `#if' code to handle
different architectures and such. There are a few nasty technical
problems that make it hard to get it completely right, though, and you
basically need to define a preprocessor symbol for every command-line
option that affects your ABI.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com