https://sourceware.org/bugzilla/show_bug.cgi?id=22397
--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The binutils-2_29-branch branch has been updated by Alan Modra
<amo...@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3f0c3363d614793edcf27ec21bf54f287a9f1117

commit 3f0c3363d614793edcf27ec21bf54f287a9f1117
Author: Alan Modra <amo...@gmail.com>
Date:   Sun Nov 5 16:22:55 2017 +1030

    PR22397, BFD internal error when message locale isn't C

    This adds positional parameter support to the bfd error handler,
    something that was lost 2017-04-13 when _doprnt was added with commit
    c08bb8dd.  The number of format args is now limited to 9, which is
    sufficient for current _bfd_error_handler messages.  If someone
    exceeds 9 args they get the joy of modifying this code to support more
    args (shouldn't be too difficult).

        PR 22397
        * bfd.c (union _bfd_doprnt_args): New.
        (PRINT_TYPE): Add FIELD arg.  Take value from args.
        (_bfd_doprnt): Replace ap parameter with args.  Adjust all
        PRINT_TYPE invocations and reading of format args to suit.
        Move "%%" handling out of switch handling args.  Support
        positional parameters.
        (_bfd_doprnt_scan): New function.
        (error_handler_internal): Call _bfd_doprnt_scan and read args.

    (cherry picked from commit 7167fe4c70ea74f1bb74a6130bb7e6bf5ca354ee)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to