[Bug tree-optimization/18487] Warnings for pure and const functions that are not actually pure or const

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 24 19:55:00 GMT 2016


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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|2004-11-14 21:57:50         |2016-10-24
     Ever confirmed|0                           |1

--- Comment #13 from Martin Sebor <msebor at gcc dot gnu.org> ---
Let me confirm this request.  I think diagnosing even just the simple cases
would be worthwhile.  The -Wsuggest-atribute= option isn't perfect either but
it is presumably useful nonetheless, as are many other warnings that are
similarly limited and prone to both false negatives and false positives.


More information about the Gcc-bugs mailing list