--- Comment #17 from ed at fxq dot nl 2007-07-04 17:35 ---
Sorry if I'm being a nitpick...
The committed testcase contains a small error; it has an off-by-one bug that
causes a small buffer overflow.
The line:
foo(numbers[i]);
should be replaced with:
foo(numbers[
--- Comment #13 from ed at fxq dot nl 2007-07-04 12:06 ---
Hello Richard,
I can confirm that the patch fixes this regression. I just installed a patch
compiler on my FreeBSD box and I get a proper binary, even when I build it with
'-O2 -ftree-vrp' (just to be sure). Thanks!
--- Comment #11 from ed at fxq dot nl 2007-06-26 11:26 ---
It seems to be solved when using -fno-tree-vrp.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32500
--- Comment #8 from ed at fxq dot nl 2007-06-25 16:52 ---
(In reply to comment #0)
> When the size of the loop is increased (in the attached example, to 6 or
> higher) the problem disappears.
This should read:
> When the size of the array is increased (in the attached example
--- Comment #6 from ed at fxq dot nl 2007-06-25 15:50 ---
Thanks for confirming this. Will the fix in question be part of 4.2.1 as well?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32500
--- Comment #3 from ed at fxq dot nl 2007-06-25 15:36 ---
Created an attachment (id=13785)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13785&action=view)
Generated assembly code
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32500
--- Comment #2 from ed at fxq dot nl 2007-06-25 15:36 ---
Created an attachment (id=13784)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13784&action=view)
GCC intermediate code
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32500
--- Comment #1 from ed at fxq dot nl 2007-06-25 15:35 ---
Created an attachment (id=13783)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13783&action=view)
C source code which triggers the bug
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32500
: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: blocker
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ed at fxq dot nl
GCC build triplet: amd64-undermydesk-freebsd
GCC host triplet: amd64