summaryrefslogtreecommitdiff
path: root/opcodes/aarch64-asm.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2021-04-19 15:41:35 +0200
committerJan Beulich <jbeulich@suse.com>2021-04-19 15:41:35 +0200
commitfe1640ff8ecc95beeab88f9aa6141bbeec149485 (patch)
treeddc8121d420da9b49c678a42cbd27f77eef2d114 /opcodes/aarch64-asm.c
parent392e0bcc0e4088ff6c31ed43a6232e709bf52751 (diff)
downloadbinutils-gdb-fe1640ff8ecc95beeab88f9aa6141bbeec149485.tar.gz
arm64: add two initializers
Old enough gcc can't cope and would warn about the variables potentially remaining uninitialized.
Diffstat (limited to 'opcodes/aarch64-asm.c')
-rw-r--r--opcodes/aarch64-asm.c4
1 files changed, 2 insertions, 2 deletions
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)
{