This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/51676] -Wsuggest-attribute={pure,const} should give line number of declaration, not definition


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51676

--- Comment #3 from Ben Longbons <b.r.longbons at gmail dot com> 2012-01-02 20:27:41 UTC ---
I'm not familiar with GCC internals, but would it be as easy as adding and
using a second field for "first declaration"?

If the first (possibly only) declaration is the definition, then just remember
it.

If there are one or more declarations before the definition, then just remember
the first one.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]