This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/14569] should not warn about truncated comment lines
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Apr 2005 11:25:31 -0000
- Subject: [Bug fortran/14569] should not warn about truncated comment lines
- References: <20040313105621.14569.schnetter@aei.mpg.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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