mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 09:38:57 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user