https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99828

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic,
                   |                            |missed-optimization

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
The issue is that we do not "merge" the attributes and the memcpy
definition lacks the always_inline attribute, somehow
expand_call_inline then picks up the decl with the attribute set.

I'd argue the 1.i TU is clearly invalid in taking the address of memcpy,
but we don't diagnose this.

How we manage to pick up the attribute in 3.i during WPA / LTRANS remains to be
analyzed.  But the "fix" is in the kernel.

Reply via email to