From: Jan Beulich Date: Mon, 19 Apr 2021 13:41:35 +0000 (+0200) Subject: arm64: add two initializers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe1640ff8ecc95beeab88f9aa6141bbeec149485;p=binutils-gdb.git arm64: add two initializers Old enough gcc can't cope and would warn about the variables potentially remaining uninitialized. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 452a96b335b..5dc51cd21b0 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,9 @@ +2021-04-19 Jan Beulich + + * aarch64-asm.c (encode_asimd_fcvt): Add initializer for + "qualifier". + (convert_mov_to_movewide): Add initializer for "value". + 2021-04-16 Przemyslaw Wirkus * aarch64-opc.c: Add RME system registers. diff --git a/opcodes/aarch64-asm.c b/opcodes/aarch64-asm.c index fa1612c0130..7cc81465ff7 100644 --- a/opcodes/aarch64-asm.c +++ b/opcodes/aarch64-asm.c @@ -1335,7 +1335,7 @@ encode_asimd_fcvt (aarch64_inst *inst) { aarch64_insn value; aarch64_field field = {0, 0}; - enum aarch64_opnd_qualifier qualifier; + enum aarch64_opnd_qualifier qualifier = AARCH64_OPND_QLF_NIL; switch (inst->opcode->op) { @@ -1893,7 +1893,7 @@ convert_mov_to_movewide (aarch64_inst *inst) { int is32; uint32_t shift_amount; - uint64_t value; + uint64_t value = ~(uint64_t)0; switch (inst->opcode->op) {