public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/36108] [4.4 Regression]: revision 134865 breaks gcc bootstrap
2008-05-02 12:43 [Bug bootstrap/36108] New: [4.4 Regression]: revision 134865 breaks gcc bootstrap hjl dot tools at gmail dot com
@ 2008-05-02 12:43 ` hjl dot tools at gmail dot com
2008-05-02 12:45 ` hjl dot tools at gmail dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-05-02 12:43 UTC (permalink / raw)
To: gcc-bugs
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.4.0
Version|4.3.0 |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36108
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug bootstrap/36108] New: [4.4 Regression]: revision 134865 breaks gcc bootstrap
@ 2008-05-02 12:43 hjl dot tools at gmail dot com
2008-05-02 12:43 ` [Bug bootstrap/36108] " hjl dot tools at gmail dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-05-02 12:43 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1573 bytes --]
Revision 134865:
http://gcc.gnu.org/ml/gcc-patches/2008-04/msg01945.html
breaks gcc bootstrap:
cc1: warnings being treated as errors
/export/gnu/src/gcc/gcc/gcc/real.c: In function real_to_integer2:
/export/gnu/src/gcc/gcc/gcc/real.c:1387: error: array subscript is negative
/export/gnu/src/gcc/gcc/gcc/real.c: In function real_from_integer:
/export/gnu/src/gcc/gcc/gcc/real.c:2066: error: array subscript is negative
make[5]: *** [real.o] Error 1
make[5]: *** Waiting for unfinished jobs....
The code looks like
if ((8 * 8) == (8 * 8))
{
high = t.sig[((128 + (8 * 8)) / (8 * 8))-1];
low = t.sig[((128 + (8 * 8)) / (8 * 8))-2];
}
else
{
((void)(!((8 * 8) == 2*(8 * 8)) ? fancy_abort
("/export/gnu/src/gcc/gcc/gcc/real.c", 1380, __FUNCTION__), 0 : 0));
high = t.sig[((128 + (8 * 8)) / (8 * 8))-1];
high = high << ((8 * 8) - 1) << 1;
high |= t.sig[((128 + (8 * 8)) / (8 * 8))-2];
low = t.sig[((128 + (8 * 8)) / (8 * 8))-3];
low = low << ((8 * 8) - 1) << 1;
low |= t.sig[((128 + (8 * 8)) / (8 * 8))-4];
}
We have
low |= t.sig[((128 + (8 * 8)) / (8 * 8))-4];
which is
low |= t.sig[-1];
But it never reached.
--
Summary: [4.4 Regression]: revision 134865 breaks gcc bootstrap
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: blocker
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjl dot tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36108
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug bootstrap/36108] [4.4 Regression]: revision 134865 breaks gcc bootstrap
2008-05-02 12:43 [Bug bootstrap/36108] New: [4.4 Regression]: revision 134865 breaks gcc bootstrap hjl dot tools at gmail dot com
2008-05-02 12:43 ` [Bug bootstrap/36108] " hjl dot tools at gmail dot com
@ 2008-05-02 12:45 ` hjl dot tools at gmail dot com
2008-05-02 12:48 ` hjl dot tools at gmail dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-05-02 12:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from hjl dot tools at gmail dot com 2008-05-02 12:44 -------
It happens on Linux/Intel64.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36108
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug bootstrap/36108] [4.4 Regression]: revision 134865 breaks gcc bootstrap
2008-05-02 12:43 [Bug bootstrap/36108] New: [4.4 Regression]: revision 134865 breaks gcc bootstrap hjl dot tools at gmail dot com
2008-05-02 12:43 ` [Bug bootstrap/36108] " hjl dot tools at gmail dot com
2008-05-02 12:45 ` hjl dot tools at gmail dot com
@ 2008-05-02 12:48 ` hjl dot tools at gmail dot com
2008-05-02 14:36 ` jv244 at cam dot ac dot uk
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-05-02 12:48 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 441 bytes --]
------- 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug bootstrap/36108] [4.4 Regression]: revision 134865 breaks gcc bootstrap
2008-05-02 12:43 [Bug bootstrap/36108] New: [4.4 Regression]: revision 134865 breaks gcc bootstrap hjl dot tools at gmail dot com
` (2 preceding siblings ...)
2008-05-02 12:48 ` hjl dot tools at gmail dot com
@ 2008-05-02 14:36 ` jv244 at cam dot ac dot uk
2008-05-02 16:02 ` pinskia at gcc dot gnu dot org
2008-05-02 21:35 ` hjl dot tools at gmail dot com
5 siblings, 0 replies; 7+ messages in thread
From: jv244 at cam dot ac dot uk @ 2008-05-02 14:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jv244 at cam dot ac dot uk 2008-05-02 14:35 -------
confirmed on x86_64-unknown-linux-gnu
--
jv244 at cam dot ac dot uk changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-05-02 14:35:43
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36108
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug bootstrap/36108] [4.4 Regression]: revision 134865 breaks gcc bootstrap
2008-05-02 12:43 [Bug bootstrap/36108] New: [4.4 Regression]: revision 134865 breaks gcc bootstrap hjl dot tools at gmail dot com
` (3 preceding siblings ...)
2008-05-02 14:36 ` jv244 at cam dot ac dot uk
@ 2008-05-02 16:02 ` pinskia at gcc dot gnu dot org
2008-05-02 21:35 ` hjl dot tools at gmail dot com
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-05-02 16:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2008-05-02 16:02 -------
See this is why I did not want this warning in the front-end.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |build, diagnostic
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36108
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug bootstrap/36108] [4.4 Regression]: revision 134865 breaks gcc bootstrap
2008-05-02 12:43 [Bug bootstrap/36108] New: [4.4 Regression]: revision 134865 breaks gcc bootstrap hjl dot tools at gmail dot com
` (4 preceding siblings ...)
2008-05-02 16:02 ` pinskia at gcc dot gnu dot org
@ 2008-05-02 21:35 ` hjl dot tools at gmail dot com
5 siblings, 0 replies; 7+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-05-02 21:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from hjl dot tools at gmail dot com 2008-05-02 21:35 -------
Fixed by revision 134889.
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36108
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-05-02 21:35 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-02 12:43 [Bug bootstrap/36108] New: [4.4 Regression]: revision 134865 breaks gcc bootstrap hjl dot tools at gmail dot com
2008-05-02 12:43 ` [Bug bootstrap/36108] " hjl dot tools at gmail dot com
2008-05-02 12:45 ` hjl dot tools at gmail dot com
2008-05-02 12:48 ` hjl dot tools at gmail dot com
2008-05-02 14:36 ` jv244 at cam dot ac dot uk
2008-05-02 16:02 ` pinskia at gcc dot gnu dot org
2008-05-02 21:35 ` hjl dot tools at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).