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 tree-optimization/18487] Warnings for pure and const functions that are not actually pure or const


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.


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