public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/14569] New: Gfortran should not warn about truncated comment lines
@ 2004-03-13 10:56 schnetter at aei dot mpg dot de
  2004-03-13 16:13 ` [Bug fortran/14569] [gfortran] " pinskia at gcc dot gnu dot org
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: schnetter at aei dot mpg dot de @ 2004-03-13 10:56 UTC (permalink / raw)
  To: gcc-bugs

Gfortran warns when a comment line in fixed format is longer than 72 (?) 
characters when -Wall is enabled.  Such lines are often caused by CVS $Header$ 
statements, and truncating comment lines does no harm.  There should be an 
easy way to turn this warning off, and warn only about the more severe case of 
truncated lines of code.

-- 
           Summary: Gfortran should not warn about truncated comment lines
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: schnetter at aei dot mpg dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug fortran/14569] [gfortran] should not warn about truncated comment lines
  2004-03-13 10:56 [Bug fortran/14569] New: Gfortran should not warn about truncated comment lines schnetter at aei dot mpg dot de
@ 2004-03-13 16:13 ` pinskia at gcc dot gnu dot org
  2004-04-30 14:44 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (17 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-13 16:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-13 16:13 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|minor                       |enhancement
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2004-03-13 16:13:52
               date|                            |
            Summary|Gfortran should not warn    |[gfortran] should not warn
                   |about truncated comment     |about truncated comment
                   |lines                       |lines
   Target Milestone|---                         |tree-ssa


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


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

* [Bug fortran/14569] [gfortran] should not warn about truncated comment lines
  2004-03-13 10:56 [Bug fortran/14569] New: Gfortran should not warn about truncated comment lines schnetter at aei dot mpg dot de
  2004-03-13 16:13 ` [Bug fortran/14569] [gfortran] " pinskia at gcc dot gnu dot org
@ 2004-04-30 14:44 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
  2004-05-24 19:23 ` pinskia at gcc dot gnu dot org
                   ` (16 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: Tobias dot Schlueter at physik dot uni-muenchen dot de @ 2004-04-30 14:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From Tobias dot Schlueter at physik dot uni-muenchen dot de  2004-04-30 13:43 -------
This is not as easy as it seems, because comments get eaten after the scanner
has truncated overlong lines. This way the scanner needs to know much less about
the source code, it doesn't have to keep track if it is inside a character
string and it doesn't need to keep track of continuation lines. So I don't think
this is worth fixing, but I'll keep this on my list, maybe there's a solution I
couldn't yet think of.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Tobias dot Schlueter at
                   |                            |physik dot uni-muenchen dot
                   |                            |de


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


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

* [Bug fortran/14569] [gfortran] should not warn about truncated comment lines
  2004-03-13 10:56 [Bug fortran/14569] New: Gfortran should not warn about truncated comment lines schnetter at aei dot mpg dot de
  2004-03-13 16:13 ` [Bug fortran/14569] [gfortran] " pinskia at gcc dot gnu dot org
  2004-04-30 14:44 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
@ 2004-05-24 19:23 ` pinskia at gcc dot gnu dot org
  2004-09-27 13:59 ` [Bug fortran/14569] " tobi at gcc dot gnu dot org
                   ` (15 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-24 19:23 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.5.0                       |---


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


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

* [Bug fortran/14569] should not warn about truncated comment lines
  2004-03-13 10:56 [Bug fortran/14569] New: Gfortran should not warn about truncated comment lines schnetter at aei dot mpg dot de
                   ` (2 preceding siblings ...)
  2004-05-24 19:23 ` pinskia at gcc dot gnu dot org
@ 2004-09-27 13:59 ` tobi at gcc dot gnu dot org
  2005-04-15 11:25 ` rguenth at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-09-27 13:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2004-09-27 13:59 -------
A possible solution, which I didn't yet have time to implement: when scanning,
record for each line if it has been truncated, but don't warn. Then, when moving
from line to line (in next_statement), check if the line had been truncated,
warn iff not in comment.

-- 


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


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

* [Bug fortran/14569] should not warn about truncated comment lines
  2004-03-13 10:56 [Bug fortran/14569] New: Gfortran should not warn about truncated comment lines schnetter at aei dot mpg dot de
                   ` (3 preceding siblings ...)
  2004-09-27 13:59 ` [Bug fortran/14569] " tobi at gcc dot gnu dot org
@ 2005-04-15 11:25 ` rguenth at gcc dot gnu dot org
  2005-04-15 11:30 ` rguenth at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-04-15 11:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-04-15 11:25 -------
Another thing is, that the warning shows up as

alwazn:default> gfortran -Wall -Dlinux -ffixed-form -I. -I../../include -o
bounds.o -c bounds.F
Warning: /tmp/cciShzeh.f:1: Line is being truncated
Warning: /tmp/cciShzeh.f:0: Line is being truncated
Warning: /tmp/cciShzeh.f:0: Line is being truncated
Warning: /tmp/cciShzeh.f:101: Line is being truncated
Warning: /tmp/cciShzeh.f:0: Line is being truncated
Warning: /tmp/cciShzeh.f:171: Line is being truncated
Warning: /tmp/cciShzeh.f:0: Line is being truncated
Warning: /tmp/cciShzeh.f:112: Line is being truncated
Warning: /tmp/cciShzeh.f:0: Line is being truncated
Warning: /tmp/cciShzeh.f:0: Line is being truncated
Warning: /tmp/cciShzeh.f:0: Line is being truncated
Warning: /tmp/cciShzeh.f:0: Line is being truncated
Warning: /tmp/cciShzeh.f:0: Line is being truncated
Warning: /tmp/cciShzeh.f:0: Line is being truncated
Warning: /tmp/cciShzeh.f:0: Line is being truncated
Warning: /tmp/cciShzeh.f:0: Line is being truncated
Warning: /tmp/cciShzeh.f:0: Line is being truncated
Warning: /tmp/cciShzeh.f:0: Line is being truncated
Warning: /tmp/cciShzeh.f:0: Line is being truncated
Warning: /tmp/cciShzeh.f:0: Line is being truncated
Warning: /tmp/cciShzeh.f:0: Line is being truncated
Warning: /tmp/cciShzeh.f:0: Line is being truncated
Warning: /tmp/cciShzeh.f:0: Line is being truncated
Warning: /tmp/cciShzeh.f:0: Line is being truncated
Warning: /tmp/cciShzeh.f:0: Line is being truncated
Warning: /tmp/cciShzeh.f:0: Line is being truncated

I.e. it doesn't translate back to the original filename and looks
confusing as line 0 is repeated endlessly.  Of course this seems
to be caused by the same problem.

Testcase for the second problem attached - output is

tmp> gfortran -c t.f -Wall
Warning: t.f:1: Line is being truncated
Warning: t.f:0: Line is being truncated
Warning: t.f:1: Line is being truncated
Warning: t.f:0: Line is being truncated

while it should be

Warning: bounds.F:1: Line is being truncated
Warning: ../../include/hh.inc:1: Line is being truncated
Warning: bounds.F:12: Line is being truncated
Warning: ../../include/hh.inc:1: Line is being truncated

and possibly avoid giving duplicate warnings on files included
multiple times.

Of course I also like the warning being disabled for comment lines.

-- 


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


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

* [Bug fortran/14569] should not warn about truncated comment lines
  2004-03-13 10:56 [Bug fortran/14569] New: Gfortran should not warn about truncated comment lines schnetter at aei dot mpg dot de
                   ` (4 preceding siblings ...)
  2005-04-15 11:25 ` rguenth at gcc dot gnu dot org
@ 2005-04-15 11:30 ` rguenth at gcc dot gnu dot org
  2005-04-15 14:50 ` rguenth at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-04-15 11:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-04-15 11:30 -------
Oh btw, looking into fixing all this.

-- 


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


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

* [Bug fortran/14569] should not warn about truncated comment lines
  2004-03-13 10:56 [Bug fortran/14569] New: Gfortran should not warn about truncated comment lines schnetter at aei dot mpg dot de
                   ` (5 preceding siblings ...)
  2005-04-15 11:30 ` rguenth at gcc dot gnu dot org
@ 2005-04-15 14:50 ` rguenth at gcc dot gnu dot org
  2005-04-15 15:10 ` tobi at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-04-15 14:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-04-15 14:50 -------
Created an attachment (id=8649)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8649&action=view)
proposed patch

Proposed patch attached; it seems, error reporting interferes with warnings,
though.  Or error reporting causes line increment.  Or whatever is going wrong.


F.i we produce for

      SUBROUTINE foo(x,y)
      x =							  4.3	+ 1.2
      END

 In file /tmp/t2.f:2

      x =							  4.3	
								       1
Warning: Line truncated at (1)

but for

      SUBROUTINE foo(x,y)
      x =							  4.3 + 1.2
      END

 In file /tmp/t2.f:2

      x =							  4.3 + 
								      1
Error: Syntax error in expression at (1)


I'm probably missing something obvious.

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


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


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

* [Bug fortran/14569] should not warn about truncated comment lines
  2004-03-13 10:56 [Bug fortran/14569] New: Gfortran should not warn about truncated comment lines schnetter at aei dot mpg dot de
                   ` (6 preceding siblings ...)
  2005-04-15 14:50 ` rguenth at gcc dot gnu dot org
@ 2005-04-15 15:10 ` tobi at gcc dot gnu dot org
  2005-04-15 15:12 ` rguenth at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-04-15 15:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2005-04-15 15:10 -------
I didn't count columns, but why would you be surprised that 
  x = 4.3 +
is not a valid statement?  At least this seems to be the compiler's complaint in
your second example.

-- 


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


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

* [Bug fortran/14569] should not warn about truncated comment lines
  2004-03-13 10:56 [Bug fortran/14569] New: Gfortran should not warn about truncated comment lines schnetter at aei dot mpg dot de
                   ` (7 preceding siblings ...)
  2005-04-15 15:10 ` tobi at gcc dot gnu dot org
@ 2005-04-15 15:12 ` rguenth at gcc dot gnu dot org
  2005-04-15 15:15 ` tobi at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-04-15 15:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-04-15 15:12 -------
I'm surprised that the line truncation warning is omitted in the error case. 
Somewhere in the dark of the parser or error reporter someone advances to the
next line without my notice.

-- 


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


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

* [Bug fortran/14569] should not warn about truncated comment lines
  2004-03-13 10:56 [Bug fortran/14569] New: Gfortran should not warn about truncated comment lines schnetter at aei dot mpg dot de
                   ` (8 preceding siblings ...)
  2005-04-15 15:12 ` rguenth at gcc dot gnu dot org
@ 2005-04-15 15:15 ` tobi at gcc dot gnu dot org
  2005-04-15 15:18 ` tobi at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-04-15 15:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2005-04-15 15:15 -------
The patch is ok.  IIRC I actually tried the exact same thing, except that I used
gfc_warning instead of gfc_warning_now (and indeed the latter makes a lot more
sense).

-- 


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


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

* [Bug fortran/14569] should not warn about truncated comment lines
  2004-03-13 10:56 [Bug fortran/14569] New: Gfortran should not warn about truncated comment lines schnetter at aei dot mpg dot de
                   ` (9 preceding siblings ...)
  2005-04-15 15:15 ` tobi at gcc dot gnu dot org
@ 2005-04-15 15:18 ` tobi at gcc dot gnu dot org
  2005-04-15 15:27 ` tobi at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-04-15 15:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2005-04-15 15:17 -------
(In reply to comment #9)
> I'm surprised that the line truncation warning is omitted in the error case. 
> Somewhere in the dark of the parser or error reporter someone advances to the
> next line without my notice.

Yes, I had just figured out that there's a problem WRT to this.  I guess that
next_statement is not called if the statement is not finished, as is the case
with the expression that is cut in half.


-- 


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


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

* [Bug fortran/14569] should not warn about truncated comment lines
  2004-03-13 10:56 [Bug fortran/14569] New: Gfortran should not warn about truncated comment lines schnetter at aei dot mpg dot de
                   ` (10 preceding siblings ...)
  2005-04-15 15:18 ` tobi at gcc dot gnu dot org
@ 2005-04-15 15:27 ` tobi at gcc dot gnu dot org
  2005-04-15 15:46 ` tobi at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-04-15 15:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2005-04-15 15:27 -------
Yes, this seems to be the case: when the statement matchers don't succeed, they
skip to the next line via gfc_error_recovery, see the bottom of
decode_statement.  therefore the if (gfc_at_eol ()) you changed doesn't trigger.

It looks like we should either have the statment matchers return a new statement
type ST_ERROR, and not advance across the end-of-statement, or code similar to
the code you added to next_statement is needed in gfc_error_recovery or thereabout.

-- 


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


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

* [Bug fortran/14569] should not warn about truncated comment lines
  2004-03-13 10:56 [Bug fortran/14569] New: Gfortran should not warn about truncated comment lines schnetter at aei dot mpg dot de
                   ` (11 preceding siblings ...)
  2005-04-15 15:27 ` tobi at gcc dot gnu dot org
@ 2005-04-15 15:46 ` tobi at gcc dot gnu dot org
  2005-04-15 18:23 ` rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-04-15 15:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2005-04-15 15:46 -------
I just caught that you only sent the patch to gcc-patches@

Fortran patches should be sent to both gcc-patches@ and fortran@gcc.gnu.org, few
of the Fortran people are subscribed to gcc-patches.


-- 


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


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

* [Bug fortran/14569] should not warn about truncated comment lines
  2004-03-13 10:56 [Bug fortran/14569] New: Gfortran should not warn about truncated comment lines schnetter at aei dot mpg dot de
                   ` (12 preceding siblings ...)
  2005-04-15 15:46 ` tobi at gcc dot gnu dot org
@ 2005-04-15 18:23 ` rguenth at gcc dot gnu dot org
  2005-04-15 20:01 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-04-15 18:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-04-15 18:23 -------
Ok, I'm looking into implementing your suggestion.

-- 


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


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

* [Bug fortran/14569] should not warn about truncated comment lines
  2004-03-13 10:56 [Bug fortran/14569] New: Gfortran should not warn about truncated comment lines schnetter at aei dot mpg dot de
                   ` (13 preceding siblings ...)
  2005-04-15 18:23 ` rguenth at gcc dot gnu dot org
@ 2005-04-15 20:01 ` rguenth at gcc dot gnu dot org
  2005-04-15 20:35 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-04-15 20:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-04-15 20:01 -------
It works by not advancing to the next line in gfc_error_recovery.  Final patch at
http://gcc.gnu.org/ml/gcc-patches/2005-04/msg01768.html

-- 


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


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

* [Bug fortran/14569] should not warn about truncated comment lines
  2004-03-13 10:56 [Bug fortran/14569] New: Gfortran should not warn about truncated comment lines schnetter at aei dot mpg dot de
                   ` (14 preceding siblings ...)
  2005-04-15 20:01 ` rguenth at gcc dot gnu dot org
@ 2005-04-15 20:35 ` cvs-commit at gcc dot gnu dot org
  2005-04-15 20:41 ` [Bug fortran/14569] [4.0 only] " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-15 20:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-04-15 20:35 -------
Subject: Bug 14569

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	rguenth@gcc.gnu.org	2005-04-15 20:35:26

Modified files:
	gcc/fortran    : ChangeLog gfortran.h parse.c scanner.c 

Log message:
	2005-04-15  Richard Guenther  <rguenth@gcc.gnu.org>
	
	PR fortran/14569
	* gfortran.h (gfc_linebuf): Add truncated field.
	* parse.c (next_statement): Handle warning for truncated
	lines.
	* scanner.c (load_line): Return if line was truncated.
	No longer warn for truncated lines.  Remove unused parameters.
	(load_file): Store load_line return value to linebuf.
	(gfc_error_recovery): Do not advance line at the end.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.393&r2=1.394
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/gfortran.h.diff?cvsroot=gcc&r1=1.64&r2=1.65
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/parse.c.diff?cvsroot=gcc&r1=1.25&r2=1.26
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/scanner.c.diff?cvsroot=gcc&r1=1.16&r2=1.17



-- 


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


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

* [Bug fortran/14569] [4.0 only] should not warn about truncated comment lines
  2004-03-13 10:56 [Bug fortran/14569] New: Gfortran should not warn about truncated comment lines schnetter at aei dot mpg dot de
                   ` (15 preceding siblings ...)
  2005-04-15 20:35 ` cvs-commit at gcc dot gnu dot org
@ 2005-04-15 20:41 ` pinskia at gcc dot gnu dot org
  2005-04-23 14:09 ` cvs-commit at gcc dot gnu dot org
  2005-04-23 14:10 ` rguenth at gcc dot gnu dot org
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-15 20:41 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|should not warn about       |[4.0 only] should not warn
                   |truncated comment lines     |about truncated comment
                   |                            |lines
   Target Milestone|---                         |4.0.1


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


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

* [Bug fortran/14569] [4.0 only] should not warn about truncated comment lines
  2004-03-13 10:56 [Bug fortran/14569] New: Gfortran should not warn about truncated comment lines schnetter at aei dot mpg dot de
                   ` (16 preceding siblings ...)
  2005-04-15 20:41 ` [Bug fortran/14569] [4.0 only] " pinskia at gcc dot gnu dot org
@ 2005-04-23 14:09 ` cvs-commit at gcc dot gnu dot org
  2005-04-23 14:10 ` rguenth at gcc dot gnu dot org
  18 siblings, 0 replies; 20+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-23 14:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-04-23 14:09 -------
Subject: Bug 14569

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	rguenth@gcc.gnu.org	2005-04-23 14:09:02

Modified files:
	gcc/fortran    : ChangeLog gfortran.h parse.c scanner.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gfortran.dg: wtruncate.f wtruncate.f90 

Log message:
	2005-04-23  Richard Guenther  <rguenth@gcc.gnu.org>
	
	PR fortran/14569
	* gfortran.h (gfc_linebuf): Add truncated field.
	* parse.c (next_statement): Handle warning for truncated lines.
	* scanner.c (load_line): Return if line was truncated.
	No longer warn for truncated lines.  Remove unused parameters.
	(load_file): Store load_line return value to linebuf.
	(gfc_next_char_literal): Reset truncation flag for lines ending
	in a comment for both fixed and free form.
	(gfc_error_recovery): Do not advance line at the end.
	
	* gfortran.dg/wtruncate.f: New testcase.
	* gfortran.dg/wtruncate.f90: New testcase.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.335.2.36&r2=1.335.2.37
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/gfortran.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.58.2.4&r2=1.58.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/parse.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.25&r2=1.25.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/scanner.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.16&r2=1.16.10.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.132&r2=1.5084.2.133
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/wtruncate.f.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/wtruncate.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1



-- 


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


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

* [Bug fortran/14569] [4.0 only] should not warn about truncated comment lines
  2004-03-13 10:56 [Bug fortran/14569] New: Gfortran should not warn about truncated comment lines schnetter at aei dot mpg dot de
                   ` (17 preceding siblings ...)
  2005-04-23 14:09 ` cvs-commit at gcc dot gnu dot org
@ 2005-04-23 14:10 ` rguenth at gcc dot gnu dot org
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-04-23 14:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-04-23 14:10 -------
Applied to 4.0 branch.  Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to fail|                            |4.0.0
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2005-04-23 14:10 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-13 10:56 [Bug fortran/14569] New: Gfortran should not warn about truncated comment lines schnetter at aei dot mpg dot de
2004-03-13 16:13 ` [Bug fortran/14569] [gfortran] " pinskia at gcc dot gnu dot org
2004-04-30 14:44 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2004-05-24 19:23 ` pinskia at gcc dot gnu dot org
2004-09-27 13:59 ` [Bug fortran/14569] " tobi at gcc dot gnu dot org
2005-04-15 11:25 ` rguenth at gcc dot gnu dot org
2005-04-15 11:30 ` rguenth at gcc dot gnu dot org
2005-04-15 14:50 ` rguenth at gcc dot gnu dot org
2005-04-15 15:10 ` tobi at gcc dot gnu dot org
2005-04-15 15:12 ` rguenth at gcc dot gnu dot org
2005-04-15 15:15 ` tobi at gcc dot gnu dot org
2005-04-15 15:18 ` tobi at gcc dot gnu dot org
2005-04-15 15:27 ` tobi at gcc dot gnu dot org
2005-04-15 15:46 ` tobi at gcc dot gnu dot org
2005-04-15 18:23 ` rguenth at gcc dot gnu dot org
2005-04-15 20:01 ` rguenth at gcc dot gnu dot org
2005-04-15 20:35 ` cvs-commit at gcc dot gnu dot org
2005-04-15 20:41 ` [Bug fortran/14569] [4.0 only] " pinskia at gcc dot gnu dot org
2005-04-23 14:09 ` cvs-commit at gcc dot gnu dot org
2005-04-23 14:10 ` rguenth 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).