[Bug middle-end/60121] gcc does not warn an obvious out-of-bound array access at -O0 and -O1
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Feb 9 06:39:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60121
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
No. VRP isn't really a cheap pass and for -O0 the most important thing is
compile time speed. GCC has never guaranteed the same warnings between
optimization levels, for frontend warnings it is sometimes possible to have the
same warnings, but for middle-end warnings it is not possible and never a goal.
Think say about uninitialized warnings, some of them heavily depend on which
functions are inlined and which are not.
More information about the Gcc-bugs
mailing list