[patch, fortran] Remove closing periods from error messages.

Brooks Moses brooks.moses@codesourcery.com
Wed Nov 15 21:37:00 GMT 2006


According to the GNU error-message standards, error messages should not 
end with periods.  GFortran has a dozen or so errors and warnings that 
violate this rule, which I found with the following grep patterns:

   grep -A3 'gfc_error' * | grep '\."'
   grep -A3 'gfc_warn' * | grep '\."'

Whether or not this rule is appropriate for the verbose error messages 
of the form that GFortran emits (as opposed to the terse single-line 
ones envisioned by the GNU standards) is debatable, I think, but in any 
case it's probably best to be consistent.  Thus, the attached patch at 
least applies consistency.

---------------------------------------------------------------------
2006-11-15  Brooks Moses  <brooks.moses@codesourcery.com>

	* data.c: Remove trailing periods from error messages.
	* decl.c: Likewise.
	* expr.c: Likewise.
	* io.c: Likewise.
	* match.c: Likewise.
	* module.c: Likewise.
	* options.c: Likewise.
	* resolve.c: Likewise.
	* symbol.c: Likewise.
	* trans-io.c: Likewise.

---------------------------------------------------------------------

Regression tested on i686-pc-linux-gnu.  Ok for trunk?

- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error-periods.diff
Type: text/x-patch
Size: 7379 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20061115/05702d3c/attachment.bin>


More information about the Gcc-patches mailing list