diff options
author | Pedro Alves <palves@redhat.com> | 2017-10-04 14:20:51 +0100 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-10-05 12:03:47 +1030 |
commit | 2ca7de3746be7484aa5affceafa1ad2e1d789381 (patch) | |
tree | 3b828944d881259232614619db2108122a203880 /bfd/ChangeLog | |
parent | 7d36e2799141d206651410c68080f40b88809a3b (diff) | |
download | gdb-2ca7de3746be7484aa5affceafa1ad2e1d789381.zip gdb-2ca7de3746be7484aa5affceafa1ad2e1d789381.tar.gz gdb-2ca7de3746be7484aa5affceafa1ad2e1d789381.tar.bz2 |
bfd_set_input_error
A downside to the 2017-10-04 PR22245 fix is that bfd_set_error can now
silently accept invalid errors if/when someone passes the a value of
the wrong enumeration type, which previously would be caught by the
-Wenum-conversion warning.
PR 22245
* bfd.c (bfd_set_error): Revert 2017-10-04 change. Remove
ellipsis parameter. Split out bfd_error_on_input code to..
(bfd_set_input_error): .. New function.
* archive.c (_bfd_write_archive_contents): Use bfd_set_input_error.
* vms-lib.c (_bfd_vms_lib_write_archive_contents): Likewise.
* bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c221cdb..4e52880 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,13 @@ +2017-10-05 Pedro Alves <palves@redhat.com> + + PR 22245 + * bfd.c (bfd_set_error): Revert 2017-10-04 change. Remove + ellipsis parameter. Split out bfd_error_on_input code to.. + (bfd_set_input_error): .. New function. + * archive.c (_bfd_write_archive_contents): Use bfd_set_input_error. + * vms-lib.c (_bfd_vms_lib_write_archive_contents): Likewise. + * bfd-in2.h: Regenerate. + 2017-10-05 Alan Modra <amodra@gmail.com> * elflink.c (elf_link_input_bfd): Correct ctor/dtor in init_array/ |