as error output not -j64 safe

Alan Modra amodra@gmail.com
Fri May 16 08:51:00 GMT 2014


On Thu, May 15, 2014 at 04:13:24PM -0700, Mike Stump wrote:
> --- a/binutils/gas/messages.c
> +++ b/binutils/gas/messages.c
> @@ -219,13 +219,12 @@ as_bad_internal (char *file, unsigned int line, char *buffer)
>    if (file)
>      {
>        if (line != 0)
> -       fprintf (stderr, "%s:%u: ", file, line);
> +       fprintf (stderr, "%s:%u: %s %s\n", file, line, _("Error:"), buffer);
>        else
> -       fprintf (stderr, "%s: ", file);
> +       fprintf (stderr, "%s: %s %s\n", file, _("Error:"), buffer);
>      }
> -  fprintf (stderr, _("Error: "));
> -  fputs (buffer, stderr);
> -  (void) putc ('\n', stderr);
> +  else
> +    fprintf (stderr, "%s %s\n", _("Error:"), buffer);
>  #ifndef NO_LISTING
>    listing_error (buffer);
>  #endif

OK.  Please also fix as_warn_internal similarly to the above.  There
are quite a few more cases of the same problem in this file, if you
care to look..

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list