diff options
author | Nick Clifton <nickc@redhat.com> | 2017-06-15 12:44:23 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-06-15 12:44:23 +0100 |
commit | 63634bb4a107877dd08b6282e28e11cfd1a1649e (patch) | |
tree | 6566f5749b96f77642d39e778a41b5d103e55434 | |
parent | 63323b5b23bd83fa7b04ea00dff593c933e9b0e3 (diff) | |
download | gdb-63634bb4a107877dd08b6282e28e11cfd1a1649e.zip gdb-63634bb4a107877dd08b6282e28e11cfd1a1649e.tar.gz gdb-63634bb4a107877dd08b6282e28e11cfd1a1649e.tar.bz2 |
Avoid a possible compiler bug by using a static buffer instead of a stack local buffer.
PR binutils/21582
* ieee.c (ieee_object_p): Use a static buffer to avoid compiler
bugs.
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/ieee.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f39dd09..7cbd761 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,11 @@ 2017-06-15 Nick Clifton <nickc@redhat.com> + PR binutils/21582 + * ieee.c (ieee_object_p): Use a static buffer to avoid compiler + bugs. + +2017-06-15 Nick Clifton <nickc@redhat.com> + PR binutils/21579 * vms-alpha.c (_bfd_vms_slurp_etir): Extend check of cmd_length. @@ -1873,7 +1873,7 @@ ieee_object_p (bfd *abfd) char *processor; unsigned int part; ieee_data_type *ieee; - unsigned char buffer[300]; + static unsigned char buffer[300]; ieee_data_type *save = IEEE_DATA (abfd); bfd_size_type amt; |