diff options
author | Alan Modra <amodra@gmail.com> | 2023-05-15 22:53:21 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-05-17 11:21:43 +0930 |
commit | 3318d80021140659fab083bc03cf6b0cc54a139d (patch) | |
tree | 999d535b9b13472bca6658f75e16b49276185c41 /gas/compress-debug.c | |
parent | f5b7a67f8d0ffcb76a6185a531d87a2f010b1bbc (diff) | |
download | gdb-3318d80021140659fab083bc03cf6b0cc54a139d.zip gdb-3318d80021140659fab083bc03cf6b0cc54a139d.tar.gz gdb-3318d80021140659fab083bc03cf6b0cc54a139d.tar.bz2 |
gcc-4.5 build fixes
Trying to build binutils with an older gcc currently fails. Working
around these gcc bugs is not onerous so let's fix them.
bfd/
* elf32-csky.c (csky_elf_size_dynamic_sections): Don't type-pun
pointer.
* elf32-rl78.c (rl78_compute_complex_reloc): Rename "stat"
variable to "status".
gas/
* compress-debug.c (compress_finish): Supply all fields in
ZSTD_inBuffer initialisation.
include/
* xtensa-dynconfig.h (xtensa_isa_internal): Delete unnecessary
forward declaration.
opcodes/
* loongarch-opc.c: Supply all fields of zero struct initialisation
in various opcode tables.
Diffstat (limited to 'gas/compress-debug.c')
-rw-r--r-- | gas/compress-debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/compress-debug.c b/gas/compress-debug.c index 174c70e..28b8b00 100644 --- a/gas/compress-debug.c +++ b/gas/compress-debug.c @@ -100,7 +100,7 @@ compress_finish (bool use_zstd, void *ctx, char **next_out, { #if HAVE_ZSTD ZSTD_outBuffer ob = { *next_out, *avail_out, 0 }; - ZSTD_inBuffer ib = { 0 }; + ZSTD_inBuffer ib = { 0, 0, 0 }; size_t ret = ZSTD_compressStream2 (ctx, &ob, &ib, ZSTD_e_end); *out_size = ob.pos; *next_out += ob.pos; |