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]

Re: Redundant copies of builtin_function()?


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.


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