init_priority

Phil Edwards pedwards@disaster.jaj.com
Thu Dec 21 14:21:00 GMT 2000


On Thu, Dec 21, 2000 at 02:11:08PM -0800, Joe Buck wrote:
> 
> > If I'm missing something obvious, someone please tell me.  What I have
> > in mind is something like this patch (the #if conditionals are just
> > placeholders):
> 
> Please don't warn about redundant -f options.
> 
> *Many* of the -f options are on by default, and no message is given to
> the user if they include them.  This is a good thing, in general, because
> the default value of -f switches is sometimes flipped by new versions
> of the compiler.

I agree with you; that isn't exactly the case here.


> Warning that -finit-priority won't work is a good thing, though.

Right; it isn't that -finit-priority is "redundant"; it's that it has
zero effect.  Same goes for -fno-init-priority; you can't turn it off.
They're altogether ignored.

In addition to documenting the effects of the attribute itself, I'd like to
remove the mention of the -f options from the manual, since the description
has become false.


-- 
pedwards at disaster dot jaj dot com  |  pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools.  Fools are protected by more capable fools.


More information about the Gcc mailing list