diff options
author | Tamar Christina <tamar.christina@arm.com> | 2018-10-08 13:33:42 +0100 |
---|---|---|
committer | Tamar Christina <tamar.christina@arm.com> | 2018-10-08 13:42:37 +0100 |
commit | 780f601cf3bfd2eb141c2ea32b673b5bd0956a33 (patch) | |
tree | 940363d630ed34855a082dda1cf11430253c40ff /opcodes/ChangeLog | |
parent | 80f3ac5d61a5d01d7cf951de0e24ecdc71c545cb (diff) | |
download | gdb-780f601cf3bfd2eb141c2ea32b673b5bd0956a33.zip gdb-780f601cf3bfd2eb141c2ea32b673b5bd0956a33.tar.gz gdb-780f601cf3bfd2eb141c2ea32b673b5bd0956a33.tar.bz2 |
AArch64: Replace C initializers with memset
Clang doesn't accept {0} as a valid C struct initializer under their implementation
of -Wmissing-field-initializers. This makes using C initializers a bit tricky.
Instead I'm changing the code to use memset instead, which at least GCC inlines and
generates the same code for. This also seems to be the idiom used in binutils for
most targets.
opcodes/
* aarch64-opc.c (verify_constraints): Use memset instead of {0}.
Diffstat (limited to 'opcodes/ChangeLog')
-rw-r--r-- | opcodes/ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 27ca2da..6407047 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2018-10-08 Tamar Christina <tamar.christina@arm.com> + + * aarch64-opc.c (verify_constraints): Use memset instead of {0}. + 2018-10-05 H.J. Lu <hongjiu.lu@intel.com> * i386-dis.c (rm_table): Add enclv. |