From 3318d80021140659fab083bc03cf6b0cc54a139d Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 15 May 2023 22:53:21 +0930 Subject: 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. --- gas/compress-debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gas') 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; -- cgit v1.2.1