[Bug middle-end/60121] gcc does not warn an obvious out-of-bound array access at -O0 and -O1

su at cs dot ucdavis.edu gcc-bugzilla@gcc.gnu.org
Sun Feb 9 00:18:00 GMT 2014


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

--- Comment #5 from Zhendong Su <su at cs dot ucdavis.edu> ---
(In reply to Andrew Pinski from comment #4)
> Actually the reason for the warning is due to LIM pulling the out of bounds
> access out of the loop, the same reason why bug 60115 fails.  It is just
> showing the bug a different way.
> 
> *** This bug has been marked as a duplicate of bug 60115 ***

Andrew, you completely lost me ...  

Please note that this warning issue affects ALL earlier versions of GCC too,
but 60115 only for the current 4.8 branch and the main trunk. 

Please check the report carefully. Thanks.



More information about the Gcc-bugs mailing list