summaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-05-15 22:53:21 +0930
committerAlan Modra <amodra@gmail.com>2023-05-17 11:21:43 +0930
commit3318d80021140659fab083bc03cf6b0cc54a139d (patch)
tree999d535b9b13472bca6658f75e16b49276185c41 /gas
parentf5b7a67f8d0ffcb76a6185a531d87a2f010b1bbc (diff)
downloadbinutils-gdb-3318d80021140659fab083bc03cf6b0cc54a139d.tar.gz
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')
-rw-r--r--gas/compress-debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/compress-debug.c b/gas/compress-debug.c
index 174c70e65d5..28b8b003f2e 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;