public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/27173] New: ICE with -O -ftrapv
@ 2006-04-14 20:20 bagnara at cs dot unipr dot it
2006-04-14 20:22 ` [Bug middle-end/27173] " bagnara at cs dot unipr dot it
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: bagnara at cs dot unipr dot it @ 2006-04-14 20:20 UTC (permalink / raw)
To: gcc-bugs
The attached program causes an ICE when compiled with both -O and -ftrapv:
$ g++ -O -ftrapv -c Linear_System.ii
g++: Internal error: Segmentation fault (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: ICE with -O -ftrapv
Product: gcc
Version: 4.0.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bagnara at cs dot unipr dot it
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27173
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/27173] ICE with -O -ftrapv
2006-04-14 20:20 [Bug middle-end/27173] New: ICE with -O -ftrapv bagnara at cs dot unipr dot it
@ 2006-04-14 20:22 ` bagnara at cs dot unipr dot it
2006-04-14 21:17 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: bagnara at cs dot unipr dot it @ 2006-04-14 20:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from bagnara at cs dot unipr dot it 2006-04-14 20:22 -------
Created an attachment (id=11274)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11274&action=view)
Testcase that allows to reproduce the problem
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27173
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/27173] ICE with -O -ftrapv
2006-04-14 20:20 [Bug middle-end/27173] New: ICE with -O -ftrapv bagnara at cs dot unipr dot it
2006-04-14 20:22 ` [Bug middle-end/27173] " bagnara at cs dot unipr dot it
@ 2006-04-14 21:17 ` pinskia at gcc dot gnu dot org
2006-04-19 20:07 ` [Bug middle-end/27173] [4.0 regression] " reichelt at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-14 21:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-04-14 21:17 -------
Reducing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27173
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/27173] [4.0 regression] ICE with -O -ftrapv
2006-04-14 20:20 [Bug middle-end/27173] New: ICE with -O -ftrapv bagnara at cs dot unipr dot it
2006-04-14 20:22 ` [Bug middle-end/27173] " bagnara at cs dot unipr dot it
2006-04-14 21:17 ` pinskia at gcc dot gnu dot org
@ 2006-04-19 20:07 ` reichelt at gcc dot gnu dot org
2006-05-03 10:56 ` reichelt at gcc dot gnu dot org
2007-02-03 16:51 ` gdr at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-19 20:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from reichelt at gcc dot gnu dot org 2006-04-19 20:07 -------
Confirmed.
Reduced testcase (compile with "-O -ftrapv"):
==================================
char *p, *q;
inline int foo(int i)
{
return (p - q) + i;
}
void bar()
{
int n, i;
for (n = 7; n-- > 0; )
for (i = n; i-- > 0; )
if (i)
p += -foo(i-1);
}
==================================
The testcase eats more than 2 GB of memory within seconds.
This happens with C and C++ frontend.
The bug only affects the 4.0 branch.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |monitored
Known to fail| |4.0.1 4.0.3
Known to work| |3.4.6 4.1.0
Last reconfirmed|0000-00-00 00:00:00 |2006-04-19 20:07:03
date| |
Summary|ICE with -O -ftrapv |[4.0 regression] ICE with -O
| |-ftrapv
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27173
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/27173] [4.0 regression] ICE with -O -ftrapv
2006-04-14 20:20 [Bug middle-end/27173] New: ICE with -O -ftrapv bagnara at cs dot unipr dot it
` (2 preceding siblings ...)
2006-04-19 20:07 ` [Bug middle-end/27173] [4.0 regression] " reichelt at gcc dot gnu dot org
@ 2006-05-03 10:56 ` reichelt at gcc dot gnu dot org
2007-02-03 16:51 ` gdr at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-03 10:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from reichelt at gcc dot gnu dot org 2006-05-03 10:56 -------
The testcase in comment #3 only crashes on x86_64-unknown-linux-gnu,
but not on i686-pc-linux-gnu.
The testcase below crashes on both archs:
===================================
char *p, *q;
inline int foo(int i)
{
int j = (p - q) + i;
return -j;
}
void bar()
{
int n, i;
for (n = 7; n-- > 0; )
for (i = n; i-- > 0; )
if (i)
p += foo(i-1);
}
===================================
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27173
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/27173] [4.0 regression] ICE with -O -ftrapv
2006-04-14 20:20 [Bug middle-end/27173] New: ICE with -O -ftrapv bagnara at cs dot unipr dot it
` (3 preceding siblings ...)
2006-05-03 10:56 ` reichelt at gcc dot gnu dot org
@ 2007-02-03 16:51 ` gdr at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 16:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from gdr at gcc dot gnu dot org 2007-02-03 16:51 -------
Fixed in GC-4.1.0.
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|4.0.4 |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27173
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-02-03 16:51 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-14 20:20 [Bug middle-end/27173] New: ICE with -O -ftrapv bagnara at cs dot unipr dot it
2006-04-14 20:22 ` [Bug middle-end/27173] " bagnara at cs dot unipr dot it
2006-04-14 21:17 ` pinskia at gcc dot gnu dot org
2006-04-19 20:07 ` [Bug middle-end/27173] [4.0 regression] " reichelt at gcc dot gnu dot org
2006-05-03 10:56 ` reichelt at gcc dot gnu dot org
2007-02-03 16:51 ` gdr at gcc dot gnu dot org
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).