This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR19262 more than thirty-nine continuation lines should issue a std-warn
- From: FX Coudert <fxcoudert at gmail dot com>
- To: Jerry DeLisle <jvdelisle at verizon dot net>
- Cc: Fortran List <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 23 Sep 2006 08:43:36 +0200
- Subject: Re: [Patch, fortran] PR19262 more than thirty-nine continuation lines should issue a std-warn
- References: <4514D181.4060905@verizon.net>
The F95 standard 3.3.1.4 says the number shall not exceed 39. F2003
changes this to 255. I have set the limit to default to 255. If -
pedantic is given, it is set to 39.
As others have already said, it's probably not the behaviour we want.
We'd like the limit to be 39 if -std=f95, 255 if -std=f2003, and
probably no limit if -std=gnu, don't we? Furthermore, an error should
be issued if -pedantic and a warning otherwise.
I think it would be best if you used the gfc_notification_std
function, which returns SILENT, WARNING or ERROR. See error.c:
/* Whether, for a feature included in a given standard set (GFC_STD_*),
we should issue an error or a warning, or be quiet. */
FX