* [Bug middle-end/17926] infinite loop in LAPACK test at -Os and -O2
2004-10-10 23:49 [Bug middle-end/17926] New: infinite loop in LAPACK test at -Os and -O2 tobi at gcc dot gnu dot org
@ 2004-10-10 23:50 ` tobi at gcc dot gnu dot org
2004-10-10 23:51 ` tobi at gcc dot gnu dot org
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-10-10 23:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tobi at gcc dot gnu dot org 2004-10-10 23:50 -------
Created an attachment (id=7319)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7319&action=view)
LAPACK source file which shows the infinite loop
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17926
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/17926] infinite loop in LAPACK test at -Os and -O2
2004-10-10 23:49 [Bug middle-end/17926] New: infinite loop in LAPACK test at -Os and -O2 tobi at gcc dot gnu dot org
2004-10-10 23:50 ` [Bug middle-end/17926] " tobi at gcc dot gnu dot org
@ 2004-10-10 23:51 ` tobi at gcc dot gnu dot org
2004-10-10 23:52 ` tobi at gcc dot gnu dot org
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-10-10 23:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tobi at gcc dot gnu dot org 2004-10-10 23:51 -------
Created an attachment (id=7320)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7320&action=view)
output of objdump -s
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17926
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/17926] infinite loop in LAPACK test at -Os and -O2
2004-10-10 23:49 [Bug middle-end/17926] New: infinite loop in LAPACK test at -Os and -O2 tobi at gcc dot gnu dot org
2004-10-10 23:50 ` [Bug middle-end/17926] " tobi at gcc dot gnu dot org
2004-10-10 23:51 ` tobi at gcc dot gnu dot org
@ 2004-10-10 23:52 ` tobi at gcc dot gnu dot org
2004-10-10 23:56 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-10-10 23:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tobi at gcc dot gnu dot org 2004-10-10 23:52 -------
(In reply to comment #0)
> The relevant parts form the loop looks something like this:
> 40 CONTINUE
> IF( NDONE.LT.IM ) THEN
> OLDNCL = NCLUS
> NCLUS = 0
> LSBDPT = 1 - LSBDPT
> DO 150 I = 1, OLDNCL
> ....
^^^^ nothing ommitted here
> 150 CONTINUE
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17926
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/17926] infinite loop in LAPACK test at -Os and -O2
2004-10-10 23:49 [Bug middle-end/17926] New: infinite loop in LAPACK test at -Os and -O2 tobi at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-10-10 23:52 ` tobi at gcc dot gnu dot org
@ 2004-10-10 23:56 ` pinskia at gcc dot gnu dot org
2004-10-11 0:01 ` tobi at gcc dot gnu dot org
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-10 23:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-10 23:56 -------
Does -fno-ivopts help?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17926
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/17926] infinite loop in LAPACK test at -Os and -O2
2004-10-10 23:49 [Bug middle-end/17926] New: infinite loop in LAPACK test at -Os and -O2 tobi at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-10-10 23:56 ` pinskia at gcc dot gnu dot org
@ 2004-10-11 0:01 ` tobi at gcc dot gnu dot org
2004-10-11 0:09 ` tobi at gcc dot gnu dot org
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-10-11 0:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tobi at gcc dot gnu dot org 2004-10-11 00:01 -------
One more thing I should add: I have a patch in tree which makes gfortran output
sensible debug information for loops. This patch has been already posted
http://gcc.gnu.org/ml/fortran/2004-10/msg00073.html
I actually wrote that patch to be able to debug this problem, so you might find
it helpful as well :-)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17926
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/17926] infinite loop in LAPACK test at -Os and -O2
2004-10-10 23:49 [Bug middle-end/17926] New: infinite loop in LAPACK test at -Os and -O2 tobi at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-10-11 0:01 ` tobi at gcc dot gnu dot org
@ 2004-10-11 0:09 ` tobi at gcc dot gnu dot org
2004-10-11 0:12 ` tobi at gcc dot gnu dot org
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-10-11 0:09 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tobi at gcc dot gnu dot org 2004-10-11 00:09 -------
(In reply to comment #4)
> Does -fno-ivopts help?
Yes. recompiling slarrv.f with '-Os -fno-ivopts -g' fixed this.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17926
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/17926] infinite loop in LAPACK test at -Os and -O2
2004-10-10 23:49 [Bug middle-end/17926] New: infinite loop in LAPACK test at -Os and -O2 tobi at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-10-11 0:09 ` tobi at gcc dot gnu dot org
@ 2004-10-11 0:12 ` tobi at gcc dot gnu dot org
2004-10-11 0:28 ` [Bug middle-end/17926] [4.0 Regression] " pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-10-11 0:12 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tobi at gcc dot gnu dot org 2004-10-11 00:12 -------
BTW, afaics it is surprising that -fno-ivopts fixes this, as the infinite loop
problem had been present even before Paul rewrote code generation for loops to
allow better loop optimization.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17926
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/17926] [4.0 Regression] infinite loop in LAPACK test at -Os and -O2
2004-10-10 23:49 [Bug middle-end/17926] New: infinite loop in LAPACK test at -Os and -O2 tobi at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-10-11 0:12 ` tobi at gcc dot gnu dot org
@ 2004-10-11 0:28 ` pinskia at gcc dot gnu dot org
2004-10-26 22:34 ` rakdver at gcc dot gnu dot org
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-11 0:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-11 00:28 -------
Zdenek could you look into this since -fno-ivopts makes it works?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |rakdver at gcc dot gnu dot
| |org
Summary|infinite loop in LAPACK test|[4.0 Regression] infinite
|at -Os and -O2 |loop in LAPACK test at -Os
| |and -O2
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17926
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/17926] [4.0 Regression] infinite loop in LAPACK test at -Os and -O2
2004-10-10 23:49 [Bug middle-end/17926] New: infinite loop in LAPACK test at -Os and -O2 tobi at gcc dot gnu dot org
` (7 preceding siblings ...)
2004-10-11 0:28 ` [Bug middle-end/17926] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-10-26 22:34 ` rakdver at gcc dot gnu dot org
2004-10-27 16:27 ` tobi at gcc dot gnu dot org
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2004-10-26 22:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rakdver at gcc dot gnu dot org 2004-10-26 22:34 -------
Tobias, would it be possible to get a smaller testcase?
Ideally a runnable one, but if it would be too much trouble, at least one from
that as much of irrelevant code as possible is removed, while still preserving
the misscompilation? I am not very familiar with fortran, so it would be quite
difficult for me :-(
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17926
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/17926] [4.0 Regression] infinite loop in LAPACK test at -Os and -O2
2004-10-10 23:49 [Bug middle-end/17926] New: infinite loop in LAPACK test at -Os and -O2 tobi at gcc dot gnu dot org
` (8 preceding siblings ...)
2004-10-26 22:34 ` rakdver at gcc dot gnu dot org
@ 2004-10-27 16:27 ` tobi at gcc dot gnu dot org
2004-11-08 23:25 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-10-27 16:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tobi at gcc dot gnu dot org 2004-10-27 16:27 -------
I'll see if I can reduce it a little.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17926
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/17926] [4.0 Regression] infinite loop in LAPACK test at -Os and -O2
2004-10-10 23:49 [Bug middle-end/17926] New: infinite loop in LAPACK test at -Os and -O2 tobi at gcc dot gnu dot org
` (9 preceding siblings ...)
2004-10-27 16:27 ` tobi at gcc dot gnu dot org
@ 2004-11-08 23:25 ` pinskia at gcc dot gnu dot org
2004-11-11 20:14 ` rakdver at gcc dot gnu dot org
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-08 23:25 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |17742
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17926
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/17926] [4.0 Regression] infinite loop in LAPACK test at -Os and -O2
2004-10-10 23:49 [Bug middle-end/17926] New: infinite loop in LAPACK test at -Os and -O2 tobi at gcc dot gnu dot org
` (10 preceding siblings ...)
2004-11-08 23:25 ` pinskia at gcc dot gnu dot org
@ 2004-11-11 20:14 ` rakdver at gcc dot gnu dot org
2004-11-11 20:17 ` pinskia at gcc dot gnu dot org
2004-11-27 6:13 ` pinskia at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2004-11-11 20:14 UTC (permalink / raw)
To: gcc-bugs
--
Bug 17926 depends on bug 17742, which changed state.
Bug 17742 Summary: [4.0 Regression] C Optimization error with -O1 on i686
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17742
What |Old Value |New Value
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17926
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/17926] [4.0 Regression] infinite loop in LAPACK test at -Os and -O2
2004-10-10 23:49 [Bug middle-end/17926] New: infinite loop in LAPACK test at -Os and -O2 tobi at gcc dot gnu dot org
` (11 preceding siblings ...)
2004-11-11 20:14 ` rakdver at gcc dot gnu dot org
@ 2004-11-11 20:17 ` pinskia at gcc dot gnu dot org
2004-11-27 6:13 ` pinskia at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-11 20:17 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-11 20:16 -------
Can you try this again as PR 17742 is now fixed?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17926
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/17926] [4.0 Regression] infinite loop in LAPACK test at -Os and -O2
2004-10-10 23:49 [Bug middle-end/17926] New: infinite loop in LAPACK test at -Os and -O2 tobi at gcc dot gnu dot org
` (12 preceding siblings ...)
2004-11-11 20:17 ` pinskia at gcc dot gnu dot org
@ 2004-11-27 6:13 ` pinskia at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-27 6:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-27 06:13 -------
This is also fixed now.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17926
^ permalink raw reply [flat|nested] 15+ messages in thread