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

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 22 07:17:00 GMT 2015


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

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
And then there is the case of endless loops in such functions (either
unconditional, or ones the compiler is not able to detect), exit calls, both
either directly in the const/pure function or in some function it calls.  So in
all, I'm afraid such a warning would diagnose only the most trivial cases.



More information about the Gcc-bugs mailing list