This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Lazy default attributes
- To: jsm28 at cam dot ac dot uk (Joseph S. Myers)
- Subject: Re: Lazy default attributes
- From: Joern Rennecke <amylaar at redhat dot com>
- Date: Thu, 5 Jul 2001 16:05:48 +0100 (BST)
- Cc: gcc at gcc dot gnu dot org
> I'd like to implement lazy default attributes: rather than pre-adding
> certain format attributes to a list of names, or declaring exit and abort
> as builtins just to get the noreturn attributes, I'd like to arrange for
> the relevant attributes to be added when the function gets declared
> (explicitly or implicitly) with a compatible type. Some questions:
If there are a lot of symbols being declared - and that's the case when
we care about compilation time - you'll spend much more time in checking
every symbol for being in the list that should get default attributes,
than if you just set up definitions at the start.