AArch64: Replace C initializers with memset
authorTamar Christina <tamar.christina@arm.com>
Mon, 8 Oct 2018 12:33:42 +0000 (13:33 +0100)
committerTamar Christina <tamar.christina@arm.com>
Mon, 8 Oct 2018 12:42:37 +0000 (13:42 +0100)
commit780f601cf3bfd2eb141c2ea32b673b5bd0956a33
tree940363d630ed34855a082dda1cf11430253c40ff
parent80f3ac5d61a5d01d7cf951de0e24ecdc71c545cb
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}.
opcodes/ChangeLog
opcodes/aarch64-opc.c
This page took 0.023858 seconds and 4 git commands to generate.