public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/23538] gfortran hangs on old cray fortran 66 program
       [not found] <bug-23538-10129@http.gcc.gnu.org/bugzilla/>
@ 2005-11-02 21:18 ` tkoenig at gcc dot gnu dot org
  2006-01-10  2:46 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 15+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2005-11-02 21:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from tkoenig at gcc dot gnu dot org  2005-11-02 21:17 -------
g77 gets confused by the errors, then bails out:

$ g77 d2ds.f
$ g77 d2ds.f 2>&1 | tail
              2
Argument #4 of `maxval' is one type at (2) but is some other type at (1) [info
-f g77 M GLOBALS]
d2ds.f:831: warning:
         call maxval (0,0,sig,eps,ijk,valmax,locval,slab)
              1
d2ds.f:1159: (continued):
         call maxval (1,0,sig,eps,ijk,valmax,locval,slab)
              2
Argument #5 of `maxval' is one type at (2) but is some other type at (1) [info
-f g77 M GLOBALS]
d2ds.f:795: confused by earlier errors, bailing out


-- 

tkoenig at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |19292
              nThis|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23538


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug fortran/23538] gfortran hangs on old cray fortran 66 program
       [not found] <bug-23538-10129@http.gcc.gnu.org/bugzilla/>
  2005-11-02 21:18 ` [Bug fortran/23538] gfortran hangs on old cray fortran 66 program tkoenig at gcc dot gnu dot org
@ 2006-01-10  2:46 ` pinskia at gcc dot gnu dot org
  2006-06-04 10:19 ` fxcoudert at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-10  2:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pinskia at gcc dot gnu dot org  2006-01-10 02:46 -------
0x0004ae5c in gfc_match_common () at
/Users/pinskia/src/gcc/alias/gcc/gcc/fortran/match.c:2284
2284              while (tail->common_next)
(gdb) 
2285                tail = tail->common_next;


tail and tail->common_next is the same now, which means we get an infinite
loop.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |compile-time-hog


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23538



^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug fortran/23538] gfortran hangs on old cray fortran 66 program
       [not found] <bug-23538-10129@http.gcc.gnu.org/bugzilla/>
  2005-11-02 21:18 ` [Bug fortran/23538] gfortran hangs on old cray fortran 66 program tkoenig at gcc dot gnu dot org
  2006-01-10  2:46 ` pinskia at gcc dot gnu dot org
@ 2006-06-04 10:19 ` fxcoudert at gcc dot gnu dot org
  2006-11-06 19:15 ` aldot at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 15+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-06-04 10:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from fxcoudert at gcc dot gnu dot org  2006-06-04 10:18 -------
I agree with Steve's comment that a maximal number of errors should be allowed,
after which the compiler should bail out.


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu dot
                   |                            |org
OtherBugsDependingO|19292                       |
              nThis|                            |
           Keywords|                            |diagnostic
   Last reconfirmed|2005-08-23 21:18:45         |2006-06-04 10:18:54
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23538


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug fortran/23538] gfortran hangs on old cray fortran 66 program
       [not found] <bug-23538-10129@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2006-06-04 10:19 ` fxcoudert at gcc dot gnu dot org
@ 2006-11-06 19:15 ` aldot at gcc dot gnu dot org
  2006-11-06 19:41 ` aldot at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 15+ messages in thread
From: aldot at gcc dot gnu dot org @ 2006-11-06 19:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from aldot at gcc dot gnu dot org  2006-11-06 19:14 -------
Should there be a default (I currently default to 100) for -ferror-count?

I did choose to add one single check into gfc_warning_check, so we don't
immediately bail out if the error count did exceed the given limit. Is this
enough or is it better to instrument all of the error code to instantaneously
bail if the limit is reached?

For the testcase, trunk currently ICE like so, fwiw:

Error: END DO statement expected at (1)
d2ds.f:1718:

      subroutine stravg                                                 
     1
Error: Unclassifiable statement at (1)

Program received signal SIGSEGV, Segmentation fault.
0x0000000000442fd4 in gfc_match_common ()
    at ../../../src/gcc-4.3/gcc/fortran/match.c:2349
2349              while (tail->common_next)
(gdb) bt
#0  0x0000000000442fd4 in gfc_match_common ()
    at ../../../src/gcc-4.3/gcc/fortran/match.c:2349
#1  0x000000000044ecc0 in match_word (str=0xa47600 "common", 
    subr=0x442e26 <gfc_match_common>, old_locus=0x7fffffd75220)
    at ../../../src/gcc-4.3/gcc/fortran/parse.c:65
#2  0x000000000044f164 in decode_statement ()
    at ../../../src/gcc-4.3/gcc/fortran/parse.c:193
#3  0x00000000004502ef in next_fixed ()


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23538


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug fortran/23538] gfortran hangs on old cray fortran 66 program
       [not found] <bug-23538-10129@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2006-11-06 19:15 ` aldot at gcc dot gnu dot org
@ 2006-11-06 19:41 ` aldot at gcc dot gnu dot org
  2006-11-10 17:35 ` aldot at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 15+ messages in thread
From: aldot at gcc dot gnu dot org @ 2006-11-06 19:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from aldot at gcc dot gnu dot org  2006-11-06 19:41 -------
Mine.

Will regtest when i get to a machine with TeX installed.


-- 

aldot at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aldot at gcc dot gnu dot org
         AssignedTo|unassigned at gcc dot gnu   |aldot at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-06-04 10:18:54         |2006-11-06 19:41:39
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23538


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug fortran/23538] gfortran hangs on old cray fortran 66 program
       [not found] <bug-23538-10129@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2006-11-06 19:41 ` aldot at gcc dot gnu dot org
@ 2006-11-10 17:35 ` aldot at gcc dot gnu dot org
  2007-03-05 18:57 ` brooks at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 15+ messages in thread
From: aldot at gcc dot gnu dot org @ 2006-11-10 17:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from aldot at gcc dot gnu dot org  2006-11-10 17:34 -------
untake it since Brooks was faster in testing it.

See http://gcc.gnu.org/ml/fortran/2006-11/msg00221.html
that added -fmax-errors


-- 

aldot at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|aldot at gcc dot gnu dot org|unassigned at gcc dot gnu
                   |                            |dot org
             Status|ASSIGNED                    |NEW


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23538


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug fortran/23538] gfortran hangs on old cray fortran 66 program
       [not found] <bug-23538-10129@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2006-11-10 17:35 ` aldot at gcc dot gnu dot org
@ 2007-03-05 18:57 ` brooks at gcc dot gnu dot org
  2007-03-05 20:20 ` brooks at gcc dot gnu dot org
  2007-03-09 22:22 ` brooks at gcc dot gnu dot org
  8 siblings, 0 replies; 15+ messages in thread
From: brooks at gcc dot gnu dot org @ 2007-03-05 18:57 UTC (permalink / raw)
  To: gcc-bugs



-- 

brooks at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |brooks at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-11-06 19:41:39         |2007-03-05 18:57:17
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23538


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug fortran/23538] gfortran hangs on old cray fortran 66 program
       [not found] <bug-23538-10129@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2007-03-05 18:57 ` brooks at gcc dot gnu dot org
@ 2007-03-05 20:20 ` brooks at gcc dot gnu dot org
  2007-03-09 22:22 ` brooks at gcc dot gnu dot org
  8 siblings, 0 replies; 15+ messages in thread
From: brooks at gcc dot gnu dot org @ 2007-03-05 20:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from brooks at gcc dot gnu dot org  2007-03-05 20:20 -------
As of now, -fmax-errors has been backported to 4.2; it was committed to trunk
some months ago.  This at least masks this bug.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23538


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug fortran/23538] gfortran hangs on old cray fortran 66 program
       [not found] <bug-23538-10129@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2007-03-05 20:20 ` brooks at gcc dot gnu dot org
@ 2007-03-09 22:22 ` brooks at gcc dot gnu dot org
  8 siblings, 0 replies; 15+ messages in thread
From: brooks at gcc dot gnu dot org @ 2007-03-09 22:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from brooks at gcc dot gnu dot org  2007-03-09 22:21 -------
Since this isn't a regression, the fix won't be backported to 4.1; thus, I'm
closing this as fixed.


-- 

brooks at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23538


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug fortran/23538] gfortran hangs on old cray fortran 66 program
  2005-08-23 21:03 [Bug fortran/23538] New: " dir at lanl dot gov
                   ` (4 preceding siblings ...)
  2005-08-24 18:05 ` kargl at gcc dot gnu dot org
@ 2005-08-24 20:51 ` dir at lanl dot gov
  5 siblings, 0 replies; 15+ messages in thread
From: dir at lanl dot gov @ 2005-08-24 20:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dir at lanl dot gov  2005-08-24 20:46 -------
Most of the other non-standard elements are considered extensions by Lahey.

Looking at the error output - I think that one "simple ?" change would clear up
much of the trouble. If the gfortran is processing a routine and it hits a error
on an 'end' statement and that 'end' is followed by a 'subroutine' or 'function'
declaration, reset things so that gfortran is done processing errors in the last
routine and start processing the new routine. It is really weird to see a
correct subroutine declaration statement error.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23538


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug fortran/23538] gfortran hangs on old cray fortran 66 program
  2005-08-23 21:03 [Bug fortran/23538] New: " dir at lanl dot gov
                   ` (3 preceding siblings ...)
  2005-08-24 13:51 ` dir at lanl dot gov
@ 2005-08-24 18:05 ` kargl at gcc dot gnu dot org
  2005-08-24 20:51 ` dir at lanl dot gov
  5 siblings, 0 replies; 15+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-08-24 18:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From kargl at gcc dot gnu dot org  2005-08-24 17:54 -------
Changing the * in the format statements and the encode/decode statements
may help prevent gfortran from getting stuck, but there are several other
nonstandard statements in the code.

To deal with gfortran getting stuck, I think the simplest solution is to
introduce a -ferror-count=N option where gfortran will die with a fatal
error after N error messages have been emitted.  This, of course, only
papers over the problem, but redesigning gfortran's error handling/reporting
is going to be a really big effort.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23538


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug fortran/23538] gfortran hangs on old cray fortran 66 program
  2005-08-23 21:03 [Bug fortran/23538] New: " dir at lanl dot gov
                   ` (2 preceding siblings ...)
  2005-08-23 21:45 ` kargl at gcc dot gnu dot org
@ 2005-08-24 13:51 ` dir at lanl dot gov
  2005-08-24 18:05 ` kargl at gcc dot gnu dot org
  2005-08-24 20:51 ` dir at lanl dot gov
  5 siblings, 0 replies; 15+ messages in thread
From: dir at lanl dot gov @ 2005-08-24 13:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dir at lanl dot gov  2005-08-24 12:56 -------
I got a simular program to compile and run with lahey fortran by changing the
all the * in the format statements to ' and the encode and decode statements to
character read and write statements. I ran this through gfortran ,just, to get
an estimate of how much work it would be to get it running again.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23538


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug fortran/23538] gfortran hangs on old cray fortran 66 program
  2005-08-23 21:03 [Bug fortran/23538] New: " dir at lanl dot gov
  2005-08-23 21:18 ` [Bug fortran/23538] " dir at lanl dot gov
  2005-08-23 21:22 ` kargl at gcc dot gnu dot org
@ 2005-08-23 21:45 ` kargl at gcc dot gnu dot org
  2005-08-24 13:51 ` dir at lanl dot gov
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 15+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-08-23 21:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From kargl at gcc dot gnu dot org  2005-08-23 21:38 -------
Can you compile this code with any modern compiler?  I used
fsplit to split the code into a set of files that contains
exactly one subprogram per file.  Of the 54 *.f files that I
get from fsplit, only 25 of those files can be compiled by
g77.  Oddly, gfortran can compile 28 of the 54 files.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23538


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug fortran/23538] gfortran hangs on old cray fortran 66 program
  2005-08-23 21:03 [Bug fortran/23538] New: " dir at lanl dot gov
  2005-08-23 21:18 ` [Bug fortran/23538] " dir at lanl dot gov
@ 2005-08-23 21:22 ` kargl at gcc dot gnu dot org
  2005-08-23 21:45 ` kargl at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 15+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-08-23 21:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From kargl at gcc dot gnu dot org  2005-08-23 21:18 -------
Confirmed.

gfortran's error reporting and recovery mechanism appears to lead
to hopeless confusion within the scanner/parser whereby it gets
stuck in an infinite loop.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-23 21:18:45
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23538


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug fortran/23538] gfortran hangs on old cray fortran 66 program
  2005-08-23 21:03 [Bug fortran/23538] New: " dir at lanl dot gov
@ 2005-08-23 21:18 ` dir at lanl dot gov
  2005-08-23 21:22 ` kargl at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 15+ messages in thread
From: dir at lanl dot gov @ 2005-08-23 21:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dir at lanl dot gov  2005-08-23 21:03 -------
Created an attachment (id=9570)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9570&action=view)
old program that hangs gfortran


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23538


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2007-03-09 22:22 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-23538-10129@http.gcc.gnu.org/bugzilla/>
2005-11-02 21:18 ` [Bug fortran/23538] gfortran hangs on old cray fortran 66 program tkoenig at gcc dot gnu dot org
2006-01-10  2:46 ` pinskia at gcc dot gnu dot org
2006-06-04 10:19 ` fxcoudert at gcc dot gnu dot org
2006-11-06 19:15 ` aldot at gcc dot gnu dot org
2006-11-06 19:41 ` aldot at gcc dot gnu dot org
2006-11-10 17:35 ` aldot at gcc dot gnu dot org
2007-03-05 18:57 ` brooks at gcc dot gnu dot org
2007-03-05 20:20 ` brooks at gcc dot gnu dot org
2007-03-09 22:22 ` brooks at gcc dot gnu dot org
2005-08-23 21:03 [Bug fortran/23538] New: " dir at lanl dot gov
2005-08-23 21:18 ` [Bug fortran/23538] " dir at lanl dot gov
2005-08-23 21:22 ` kargl at gcc dot gnu dot org
2005-08-23 21:45 ` kargl at gcc dot gnu dot org
2005-08-24 13:51 ` dir at lanl dot gov
2005-08-24 18:05 ` kargl at gcc dot gnu dot org
2005-08-24 20:51 ` dir at lanl dot gov

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).