On 8/13/21 12:31 PM, Jan Hubicka wrote:
Hi.

This is a first part fixing the PR. It makes sense making "naked" functions 
"noipa".
What's missing is IPA MOD pass support where the pass should not optimize fns
with "noipa" attributes.

@Honza: Can you please implement that?

Hmm, I had patch for that somewhere, will do that.

Please do so, I'm going to assign you the PR.


Patch can bootstrap on x86_64-linux-gnu and survives regression tests.

Ready to be installed?

OK, except for..
+      && lookup_attribute_spec (get_identifier ("naked"))
+      &&(lookup_attribute ("noipa", attributes) == NULL))

missing space or extra braces here.  I am not sure how much we play with
NULL_TREE these days.

Sure, I'm going to fix it and push to master.

Martin


Honza
+       attributes = tree_cons (get_identifier ("noipa"), NULL, attributes);
    /* A "noipa" function attribute implies "noinline", "noclone" and "no_icf"
       for those targets that support it.  */
--
2.32.0


Reply via email to