Bug 15511 - Warning about truncated lines does not follow the standard gcc error message format
Summary: Warning about truncated lines does not follow the standard gcc error message ...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.0.0
: P2 enhancement
Target Milestone: 4.0.0
Assignee: Tobias Schlüter
URL:
Keywords: diagnostic, patch
Depends on:
Blocks:
 
Reported: 2004-05-18 11:04 UTC by Erik Schnetter
Modified: 2004-07-10 00:39 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2004-06-21 19:56:31


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Schnetter 2004-05-18 11:04:53 UTC
A (comment) line that is longer than 72 characters in fixed form Fortran leads 
to warnings like 
 
Warning: Line 7816 
of /home/eschnett/Calpha/Cactus/configs/einstein-gcc-debug/build/BSSN_MoL/Sources.f 
is being truncated 
 
which do not follow the usual "file name, line number" format.
Comment 1 Andrew Pinski 2004-05-19 13:28:11 UTC
Confirmed.
Comment 2 Tobias Schlüter 2004-06-21 19:56:31 UTC
Patch here: http://gcc.gnu.org/ml/gcc-patches/2004-06/msg01677.html
Comment 3 GCC Commits 2004-06-21 22:22:39 UTC
Subject: Bug 15511

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	tobi@gcc.gnu.org	2004-06-21 22:22:32

Modified files:
	gcc/fortran    : ChangeLog scanner.c 

Log message:
	PR fortran/15511
	* scanner.c (load_line): Don't truncate preprocessor lines.
	Reformat error message.
	(preprocessor_line): Issue warning in case of malformed
	preprocessor line.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.80&r2=1.81
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/scanner.c.diff?cvsroot=gcc&r1=1.5&r2=1.6

Comment 4 Tobias Schlüter 2004-06-21 22:23:25 UTC
Fixed.