public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/17704] New: Inifinite recursion in tree-scalar-evolution with -Os
@ 2004-09-27 20:40 tobi at gcc dot gnu dot org
2004-09-27 20:45 ` [Bug tree-optimization/17704] " pinskia at gcc dot gnu dot org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-09-27 20:40 UTC (permalink / raw)
To: gcc-bugs
(may be related to PR 17552)
following reduced testcase from LAPACK shows an infinite recursion in
tree-scalar-evolution:
GO TO 50
20 CONTINUE
CALL SSWAP( L, A, 1, A, 1 )
GO TO ( 40, 80 )IEXC
40 CONTINUE
50 CONTINUE
DO 70 J = L, 1, -1
DO 60 I = 1, L
60 CONTINUE
GO TO 20
70 CONTINUE
80 CONTINUE
K = K + 1
IF( A.NE.ZERO )
$ GO TO 110
100 CONTINUE
GO TO 20
110 CONTINUE
DO 150 J = K, L
150 CONTINUE
RETURN
END
[tobi@marktplatz tests]$ gfortran -Os sgebal.f
gfortran: Internal error: Segmentation fault (program f951)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
The segfault depends on the exact command line options passed to f951, taking
those from gfortran -v -Os sgebal.f gives:
[tobi@marktplatz tests]$ gdb /home/tobi/usr/libexec/gcc/i686-pc-linux-gnu/4.0.0/f951
GNU gdb Red Hat Linux (6.0post-0.20040223.19rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db
library "/lib/tls/libthread_db.so.1".
(gdb) run sgebal.f -ffixed-form -quiet -dumpbase sgebal.f -mtune=pentiumpro
-auxbase sgebal -Os -version -o /tmp/cczMhYu9.s
Starting program: /home/tobi/usr/libexec/gcc/i686-pc-linux-gnu/4.0.0/f951
sgebal.f -ffixed-form -quiet -dumpbase sgebal.f -mtune=pentiumpro -auxbase
sgebal -Os -version -o /tmp/cczMhYu9.s
Error while mapping shared library sections:
: Success.
Error while reading shared library symbols:
: No such file or directory.
Error while reading shared library symbols:
: No such file or directory.
Error while reading shared library symbols:
: No such file or directory.
GNU F95 version 4.0.0 20040923 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 4.0.0 20040923 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Program received signal SIGSEGV, Segmentation fault.
0x08415322 in follow_ssa_edge (loop=0x980cdb8, def=0xf6ee8700,
halting_phi=0xf6ee8700, evolution_of_loop=0xfe35d088)
at ../../gcc-clean/gcc/tree-scalar-evolution.c:1479
1479 if (!loop_phi_node_p (def))
(gdb) bt
#0 0x08415322 in follow_ssa_edge (loop=0x980cdb8, def=0xf6ee8700,
halting_phi=0xf6ee8700, evolution_of_loop=0xfe35d088)
at ../../gcc-clean/gcc/tree-scalar-evolution.c:1479
#1 0x08415390 in follow_ssa_edge (loop=0x980cdb8, def=0xf6ee8740,
halting_phi=0xf6ee8700, evolution_of_loop=0xfe35d188)
at ../../gcc-clean/gcc/tree-scalar-evolution.c:1365
#2 0x08415d01 in follow_ssa_edge_in_rhs (loop=0x980cdb8, rhs=Variable "rhs" is
not available.
)
at ../../gcc-clean/gcc/tree-scalar-evolution.c:1148
#3 0x08415301 in follow_ssa_edge (loop=0x980cdb8, def=0xf6edf510,
halting_phi=0xf6ee8700, evolution_of_loop=0xfe35d188)
at ../../gcc-clean/gcc/tree-scalar-evolution.c:1509
#4 0x08415390 in follow_ssa_edge (loop=0x980cdb8, def=0xf6ee86c0,
halting_phi=0xf6ee8700, evolution_of_loop=0xfe35d1e8)
at ../../gcc-clean/gcc/tree-scalar-evolution.c:1365
#5 0x084155da in follow_ssa_edge (loop=0x980cdb8, def=0xf6ee8740,
halting_phi=0xf6ee8700, evolution_of_loop=0xfe35d2e8)
at ../../gcc-clean/gcc/tree-scalar-evolution.c:1365
#6 0x08415d01 in follow_ssa_edge_in_rhs (loop=0x980cdb8, rhs=Variable "rhs" is
not available.
)
at ../../gcc-clean/gcc/tree-scalar-evolution.c:1148
#7 0x08415301 in follow_ssa_edge (loop=0x980cdb8, def=0xf6edf510,
halting_phi=0xf6ee8700, evolution_of_loop=0xfe35d2e8)
at ../../gcc-clean/gcc/tree-scalar-evolution.c:1509
#8 0x08415390 in follow_ssa_edge (loop=0x980cdb8, def=0xf6ee86c0,
halting_phi=0xf6ee8700, evolution_of_loop=0xfe35d348)
at ../../gcc-clean/gcc/tree-scalar-evolution.c:1365
#9 0x084155da in follow_ssa_edge (loop=0x980cdb8, def=0xf6ee8740,
halting_phi=0xf6ee8700, evolution_of_loop=0xfe35d448)
at ../../gcc-clean/gcc/tree-scalar-evolution.c:1365
#10 0x08415d01 in follow_ssa_edge_in_rhs (loop=0x980cdb8, rhs=Variable "rhs" is
not available.
)
at ../../gcc-clean/gcc/tree-scalar-evolution.c:1148
#11 0x08415301 in follow_ssa_edge (loop=0x980cdb8, def=0xf6edf510,
halting_phi=0xf6ee8700, evolution_of_loop=0xfe35d448)
at ../../gcc-clean/gcc/tree-scalar-evolution.c:1509
#12 0x08415390 in follow_ssa_edge (loop=0x980cdb8, def=0xf6ee86c0,
halting_phi=0xf6ee8700, evolution_of_loop=0xfe35d4a8)
at ../../gcc-clean/gcc/tree-scalar-evolution.c:1365
#13 0x084155da in follow_ssa_edge (loop=0x980cdb8, def=0xf6ee8740,
halting_phi=0xf6ee8700, evolution_of_loop=0xfe35d5a8)
at ../../gcc-clean/gcc/tree-scalar-evolution.c:1365
#14 0x08415d01 in follow_ssa_edge_in_rhs (loop=0x980cdb8, rhs=Variable "rhs" is
not available.
)
at ../../gcc-clean/gcc/tree-scalar-evolution.c:1148
#15 0x08415301 in follow_ssa_edge (loop=0x980cdb8, def=0xf6edf510,
halting_phi=0xf6ee8700, evolution_of_loop=0xfe35d5a8)
at ../../gcc-clean/gcc/tree-scalar-evolution.c:1509
#16 0x08415390 in follow_ssa_edge (loop=0x980cdb8, def=0xf6ee86c0,
halting_phi=0xf6ee8700, evolution_of_loop=0xfe35d608)
etc.
--
Summary: Inifinite recursion in tree-scalar-evolution with -Os
Product: gcc
Version: unknown
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tobi at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux
GCC target triplet: i686-pc-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17704
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/17704] Inifinite recursion in tree-scalar-evolution with -Os
2004-09-27 20:40 [Bug tree-optimization/17704] New: Inifinite recursion in tree-scalar-evolution with -Os tobi at gcc dot gnu dot org
@ 2004-09-27 20:45 ` pinskia at gcc dot gnu dot org
2004-09-27 20:47 ` [Bug tree-optimization/17704] Infinite " bangerth at dealii dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-27 20:45 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |17520, 17550, 17552
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17704
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/17704] Infinite recursion in tree-scalar-evolution with -Os
2004-09-27 20:40 [Bug tree-optimization/17704] New: Inifinite recursion in tree-scalar-evolution with -Os tobi at gcc dot gnu dot org
2004-09-27 20:45 ` [Bug tree-optimization/17704] " pinskia at gcc dot gnu dot org
@ 2004-09-27 20:47 ` bangerth at dealii dot org
2004-09-27 20:49 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bangerth at dealii dot org @ 2004-09-27 20:47 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|Inifinite recursion in tree-|Infinite recursion in tree-
|scalar-evolution with -Os |scalar-evolution with -Os
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17704
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/17704] Infinite recursion in tree-scalar-evolution with -Os
2004-09-27 20:40 [Bug tree-optimization/17704] New: Inifinite recursion in tree-scalar-evolution with -Os tobi at gcc dot gnu dot org
2004-09-27 20:45 ` [Bug tree-optimization/17704] " pinskia at gcc dot gnu dot org
2004-09-27 20:47 ` [Bug tree-optimization/17704] Infinite " bangerth at dealii dot org
@ 2004-09-27 20:49 ` pinskia at gcc dot gnu dot org
2004-09-27 20:55 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-27 20:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-27 20:49 -------
The patch in PR 17520 most likely fixes the problem here and many other places.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |spop at gcc dot gnu dot org
Target Milestone|--- |4.0.0
Version|unknown |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17704
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/17704] Infinite recursion in tree-scalar-evolution with -Os
2004-09-27 20:40 [Bug tree-optimization/17704] New: Inifinite recursion in tree-scalar-evolution with -Os tobi at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-09-27 20:49 ` pinskia at gcc dot gnu dot org
@ 2004-09-27 20:55 ` pinskia at gcc dot gnu dot org
2004-09-27 20:59 ` tobi at gcc dot gnu dot org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-27 20:55 UTC (permalink / raw)
To: gcc-bugs
--
Bug 17704 depends on bug 17550, which changed state.
Bug 17550 Summary: [4.0 Regression] cc1 hangs in endless loop
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17550
What |Old Value |New Value
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17704
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/17704] Infinite recursion in tree-scalar-evolution with -Os
2004-09-27 20:40 [Bug tree-optimization/17704] New: Inifinite recursion in tree-scalar-evolution with -Os tobi at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-09-27 20:55 ` pinskia at gcc dot gnu dot org
@ 2004-09-27 20:59 ` tobi at gcc dot gnu dot org
2004-09-27 21:31 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-09-27 20:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tobi at gcc dot gnu dot org 2004-09-27 20:59 -------
(In reply to comment #1)
> The patch in PR 17520 most likely fixes the problem here and many other places.
Unfortunately, it doesn't. The bug persists with essentially the same backtrace.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17704
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/17704] Infinite recursion in tree-scalar-evolution with -Os
2004-09-27 20:40 [Bug tree-optimization/17704] New: Inifinite recursion in tree-scalar-evolution with -Os tobi at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-09-27 20:59 ` tobi at gcc dot gnu dot org
@ 2004-09-27 21:31 ` pinskia at gcc dot gnu dot org
2004-09-27 22:07 ` [Bug tree-optimization/17704] [4.0 Regression] " pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-27 21:31 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn|17520, 17550 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17704
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/17704] [4.0 Regression] Infinite recursion in tree-scalar-evolution with -Os
2004-09-27 20:40 [Bug tree-optimization/17704] New: Inifinite recursion in tree-scalar-evolution with -Os tobi at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-09-27 21:31 ` pinskia at gcc dot gnu dot org
@ 2004-09-27 22:07 ` pinskia at gcc dot gnu dot org
2004-10-07 21:32 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-27 22:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-27 22:07 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-09-27 22:07:24
date| |
Summary|Infinite recursion in tree- |[4.0 Regression] Infinite
|scalar-evolution with -Os |recursion in tree-scalar-
| |evolution with -Os
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17704
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/17704] [4.0 Regression] Infinite recursion in tree-scalar-evolution with -Os
2004-09-27 20:40 [Bug tree-optimization/17704] New: Inifinite recursion in tree-scalar-evolution with -Os tobi at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-09-27 22:07 ` [Bug tree-optimization/17704] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-10-07 21:32 ` pinskia at gcc dot gnu dot org
2004-10-07 22:54 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-07 21:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-07 21:32 -------
This looks more like a dup of bug 17560.
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |17560
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17704
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/17704] [4.0 Regression] Infinite recursion in tree-scalar-evolution with -Os
2004-09-27 20:40 [Bug tree-optimization/17704] New: Inifinite recursion in tree-scalar-evolution with -Os tobi at gcc dot gnu dot org
` (7 preceding siblings ...)
2004-10-07 21:32 ` pinskia at gcc dot gnu dot org
@ 2004-10-07 22:54 ` pinskia at gcc dot gnu dot org
2004-10-16 16:46 ` rakdver at gcc dot gnu dot org
2004-10-17 19:16 ` reichelt at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-07 22:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-07 22:54 -------
Reduced testcase:
GO TO 50
20 IF (IEXC.EQ.2)
$ GO TO 80
50 IF (IEXC.GT.0)
$ GO TO 20
80 K = K + 1
IF( IEXC.EQ.0)
$ GO TO 20
DO 150 J = K, IEXC
150 CONTINUE
RETURN
END
Here is a C testcase which makes this a dup of bug 17560:
void MAIN__ ()
{
int k;
int j;
int iexc;
goto L50;
L20: if (iexc == 2) goto L80;
L50: if (iexc > 0) goto L20;
L80: k++;
if (iexc == 0) goto L20;
for(j=k;j<iexc;j++) ;
}
*** This bug has been marked as a duplicate of 17560 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17704
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/17704] [4.0 Regression] Infinite recursion in tree-scalar-evolution with -Os
2004-09-27 20:40 [Bug tree-optimization/17704] New: Inifinite recursion in tree-scalar-evolution with -Os tobi at gcc dot gnu dot org
` (8 preceding siblings ...)
2004-10-07 22:54 ` pinskia at gcc dot gnu dot org
@ 2004-10-16 16:46 ` rakdver at gcc dot gnu dot org
2004-10-17 19:16 ` reichelt at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2004-10-16 16:46 UTC (permalink / raw)
To: gcc-bugs
--
Bug 17704 depends on bug 17560, which changed state.
Bug 17560 Summary: [4.0 Regression] Infinite recursion in tree-scalar-evolution with -Os
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17560
What |Old Value |New Value
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17704
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/17704] [4.0 Regression] Infinite recursion in tree-scalar-evolution with -Os
2004-09-27 20:40 [Bug tree-optimization/17704] New: Inifinite recursion in tree-scalar-evolution with -Os tobi at gcc dot gnu dot org
` (9 preceding siblings ...)
2004-10-16 16:46 ` rakdver at gcc dot gnu dot org
@ 2004-10-17 19:16 ` reichelt at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-10-17 19:16 UTC (permalink / raw)
To: gcc-bugs
--
Bug 17704 depends on bug 17552, which changed state.
Bug 17552 Summary: [4.0 Regression] Infinite recursion in analyze_scalar_evolution
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17552
What |Old Value |New Value
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17704
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2004-10-17 19:16 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-27 20:40 [Bug tree-optimization/17704] New: Inifinite recursion in tree-scalar-evolution with -Os tobi at gcc dot gnu dot org
2004-09-27 20:45 ` [Bug tree-optimization/17704] " pinskia at gcc dot gnu dot org
2004-09-27 20:47 ` [Bug tree-optimization/17704] Infinite " bangerth at dealii dot org
2004-09-27 20:49 ` pinskia at gcc dot gnu dot org
2004-09-27 20:55 ` pinskia at gcc dot gnu dot org
2004-09-27 20:59 ` tobi at gcc dot gnu dot org
2004-09-27 21:31 ` pinskia at gcc dot gnu dot org
2004-09-27 22:07 ` [Bug tree-optimization/17704] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-10-07 21:32 ` pinskia at gcc dot gnu dot org
2004-10-07 22:54 ` pinskia at gcc dot gnu dot org
2004-10-16 16:46 ` rakdver at gcc dot gnu dot org
2004-10-17 19:16 ` reichelt 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).