This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Redundant copies of builtin_function()?
- To: Samuel Figueroa <figueroa at apple dot com>
- Subject: Re: Redundant copies of builtin_function()?
- From: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- Date: Wed, 28 Mar 2001 10:30:16 +1000
- Cc: gcc at gcc dot gnu dot org
- References: <200103272207.OAA28077@scv1.apple.com>
On 27-Mar-2001, Samuel Figueroa <figueroa@apple.com> wrote:
> It seems every front end has a separate instance of
> builtin_function(). Shouldn't all of these be coalesced into one
> instance, rather than duplicated in every front end?
IMHO: yes. However, some care is required, because some parts
are language-specific. In particular this bit in the C front-end
is C-specific, because it uses C_DECL_ANTICIPATED:
/* Warn if a function in the namespace for users
is used without an occasion to consider it declared. */
if (name[0] != '_' || name[1] != '_')
C_DECL_ANTICIPATED (decl) = 1;
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
| of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.