This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/31058] bogus array overflow warnings in unrolled loops
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Mar 2007 20:54:50 -0000
- Subject: [Bug middle-end/31058] bogus array overflow warnings in unrolled loops
- References: <bug-31058-12049@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from rguenth at gcc dot gnu dot org 2007-03-07 20:54 -------
Sorry, but I don't agree a bit with you. It doesn't have as much false
positives
as other warnings in -Wall. And I think a warning for the testcase in comment
#3
is ok -- the code looks very suspicious. Also the testcase in comment #3 has
"unreachable" code produced by the programmer, while for the testcase in
comment
#1 the compiler inserts the unreachable code (and it can either avoid it in
this
particular case or set TREE_NO_WARNING on the array accesses it produces).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31058