aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-08-24 14:35:20 +0930
committerAlan Modra <amodra@gmail.com>2023-08-24 15:54:39 +0930
commit81656b43f153df328776bc122d573d5790bbe0e8 (patch)
treea091447b17d8fbbdeee731e2c31842606b7fb442 /opcodes
parent6aadf8a04d162feb2afe3c41f5b36534d661d447 (diff)
downloadgdb-81656b43f153df328776bc122d573d5790bbe0e8.zip
gdb-81656b43f153df328776bc122d573d5790bbe0e8.tar.gz
gdb-81656b43f153df328776bc122d573d5790bbe0e8.tar.bz2
kvx: workaround gcc-4.5 bug
kvx-dis.c:1078:10: error: missing initializer kvx-dis.c:1078:10: error: (near initialization for 'dec.nb_ops') * kvx-dis.c (print_insn_kvx): Init dec with memset. (decode_prologue_epilogue_bundle): Likewise.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/kvx-dis.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/opcodes/kvx-dis.c b/opcodes/kvx-dis.c
index e63430a..7fef4c7 100644
--- a/opcodes/kvx-dis.c
+++ b/opcodes/kvx-dis.c
@@ -1075,7 +1075,8 @@ print_insn_kvx (bfd_vma memaddr, struct disassemble_info *info)
/* Check for extension to right iff this is not the end of bundle. */
- struct decoded_insn dec = { 0 };
+ struct decoded_insn dec;
+ memset (&dec, 0, sizeof dec);
if (!invalid_bundle && (found = decode_insn (memaddr, insn, &dec)))
{
int ch;
@@ -1248,7 +1249,8 @@ decode_prologue_epilogue_bundle (bfd_vma memaddr,
insn_t *insn = &bundle_insn[idx_insn];
int is_add = 0, is_get = 0, is_a_peb_insn = 0, is_copyd = 0;
- struct decoded_insn dec = { 0 };
+ struct decoded_insn dec;
+ memset (&dec, 0, sizeof dec);
if (!decode_insn (memaddr, insn, &dec))
continue;