This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/36108] [4.4 Regression]: revision 134865 breaks gcc bootstrap
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 May 2008 12:48:05 -0000
- Subject: [Bug bootstrap/36108] [4.4 Regression]: revision 134865 breaks gcc bootstrap
- References: <bug-36108-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from hjl dot tools at gmail dot com 2008-05-02 12:48 -------
A simple testcase:
bash-3.2$ cat x.c
int foo [10];
int
bar (int i)
{
if (8 == 8)
return foo [1];
else
return foo [-1];
}
bash-3.2$ ./xgcc -B./ -O2 x.c -c -Wall -Werror
cc1: warnings being treated as errors
x.c: In function ?bar?:
x.c:9: error: array subscript is negative
bash-3.2$
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36108