summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/gas/output-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/binutils/gas/output-file.c')
-rw-r--r--contrib/binutils/gas/output-file.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/contrib/binutils/gas/output-file.c b/contrib/binutils/gas/output-file.c
index 552aac1..a7df72f 100644
--- a/contrib/binutils/gas/output-file.c
+++ b/contrib/binutils/gas/output-file.c
@@ -45,11 +45,11 @@ output_file_create (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);
}
bfd_set_format (stdoutput, bfd_object);
@@ -69,14 +69,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
@@ -86,9 +86,9 @@ output_file_close (filename)
#ifndef BFD_ASSEMBLER
void
output_file_append (where, length, filename)
- char *where;
- long length;
- char *filename;
+ char *where ATTRIBUTE_UNUSED;
+ long length ATTRIBUTE_UNUSED;
+ char *filename ATTRIBUTE_UNUSED;
{
abort ();
}
@@ -116,7 +116,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);
}
}
@@ -127,7 +127,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);
}
stdoutput = NULL; /* Trust nobody! */
@@ -145,8 +145,8 @@ output_file_append (where, length, filename)
if (ferror (stdoutput))
/* if ( EOF == (putc( *where, stdoutput )) ) */
{
- as_perror ("Failed to emit an object byte", filename);
- as_fatal ("Can't continue");
+ as_perror (_("Failed to emit an object byte"), filename);
+ as_fatal (_("Can't continue"));
}
}
}
OpenPOWER on IntegriCloud