On Fri, 11 Aug 2017, Martin Sebor wrote: > > (An optional warning for different information in different declarations > > is reasonable enough. Actually in glibc it would be useful to have a > > warning for a different but related case - two functions both declared, > > later one defined as an alias of another, but the declarations don't have > > the same attributes. I'm pretty sure there are cases where the internal > > declaration of __foo is missing attributes present on the public > > declaration of foo. But such a warning for aliases is only appropriate > > for attributes that are properties of the function, not attributes that > > are properties of particular names for it - __foo may well be a hidden > > symbol where foo isn't.) > > That does sound useful. With the last pushed declaration now > available to the attribute handlers it should be fairly easy > to detect this problem in handle_alias_ifunc_attribute. I'd > be happy to look into implementing it after I'm done with this > patch. Can you please open a bug to request it?
Bug 81824 filed. -- Joseph S. Myers jos...@codesourcery.com