[RFC] noipa attribute (was Re: How to avoid constant propagation into functions?)
Richard Biener
rguenther@suse.de
Fri Dec 16 09:47:00 GMT 2016
On Thu, 15 Dec 2016, Florian Weimer wrote:
> * Jakub Jelinek:
>
> > + if (lookup_attribute ("used", attributes) == NULL)
> > + attributes = tree_cons (get_identifier ("used"), NULL, attributes);
>
> Attribute âusedâ seems different to me from the rest. Based on the
> documentation, I wouldn't expect it to have any action-at-a-distance
> effect, just that an out-of-line copy is always emitted. It will
> disable unused-function warnings, too, I think.
Yes, technically cloning on "known" callgraph paths is still possible
with 'used' functions.
More information about the Gcc
mailing list