* read.c: Standardize error/warning messages - don't capitalise, no

final period or newline, don't say "ignored" or "zero assumed" for
	as_bad messages.  In some cases, change the wording to that used
	elsewhere for similar messages.
	* app.c, as.c, atof-generic.c, cgen.c, cond.c, depend.c, dwarf2dbg.c,
	  ecoff.c, expr.c, frags.c, input-file.c, input-scrub.c, listing.c,
	  output-file.c, stabs.c, subsegs.c, symbols.c, write.c: Likewise.
	* ecoff.c (ecoff_directive_end): Test for missing name by
	comparing input line pointers rather than reading string.
	(ecoff_directive_ent): Likewise.
	* read.c (s_set): Likewise.
	(s_align): Report a warning rather than an error for
	alignment too large.
	(s_comm): Check for missing symbol name.
	(s_lcomm_internal): Likewise.
	(s_lsym): Likewise.
	(s_globl): Use is_end_of_line instead of looking for '\n'.
	(s_lcomm_internal): Likewise.
	(ignore_rest_of_line): Report a warning rather than an error.
This commit is contained in:
Alan Modra
2001-08-01 01:44:25 +00:00
parent 687aee93dd
commit 0e389e770d
20 changed files with 224 additions and 170 deletions

View File

@@ -45,11 +45,11 @@ output_file_create (name)
char *name;
{
if (name[0] == '-' && name[1] == '\0')
as_fatal (_("Can't open a bfd on stdout %s "), name);
as_fatal (_("can't open a bfd on stdout %s"), name);
else if (!(stdoutput = bfd_openw (name, TARGET_FORMAT)))
{
as_perror (_("FATAL: Can't create %s"), name);
as_perror (_("FATAL: can't create %s"), name);
exit (EXIT_FAILURE);
}
@@ -70,14 +70,14 @@ output_file_close (filename)
if (bfd_close (stdoutput) == 0)
{
bfd_perror (filename);
as_perror (_("FATAL: Can't close %s\n"), filename);
as_perror (_("FATAL: can't close %s\n"), filename);
exit (EXIT_FAILURE);
}
#else
/* Close the bfd without getting bfd to write out anything by itself. */
if (bfd_close_all_done (stdoutput) == 0)
{
as_perror (_("FATAL: Can't close %s\n"), filename);
as_perror (_("FATAL: can't close %s\n"), filename);
exit (EXIT_FAILURE);
}
#endif
@@ -118,7 +118,7 @@ output_file_create (name)
if (stdoutput == NULL)
{
as_perror (_("FATAL: Can't create %s"), name);
as_perror (_("FATAL: can't create %s"), name);
exit (EXIT_FAILURE);
}
}
@@ -129,7 +129,7 @@ output_file_close (filename)
{
if (EOF == fclose (stdoutput))
{
as_perror (_("FATAL: Can't close %s"), filename);
as_perror (_("FATAL: can't close %s"), filename);
exit (EXIT_FAILURE);
}
@@ -151,7 +151,7 @@ output_file_append (where, length, filename)
/* if ( EOF == (putc( *where, stdoutput )) ) */
{
as_perror (_("Failed to emit an object byte"), filename);
as_fatal (_("Can't continue"));
as_fatal (_("can't continue"));
}
}
}