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: Lazy default attributes


> 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.


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