build failure in aarch64-opc.c on macOS

Tom Tromey tom@tromey.com
Fri Oct 5 14:31:00 GMT 2018


Hi.  A recent patch caused opcodes to fail to build on macOS (High
Sierra) using the version of clang I have installed (Apple's clang-902).

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../binutils-gdb/opcodes -I. -I../../binutils-gdb/opcodes -I../bfd -I../../binutils-gdb/opcodes/../include -I../../binutils-gdb/opcodes/../bfd -I./../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT aarch64-opc.lo -MD -MP -MF .deps/aarch64-opc.Tpo -c ../../binutils-gdb/opcodes/aarch64-opc.c -o aarch64-opc.o
../../binutils-gdb/opcodes/aarch64-opc.c:4674:35: error: missing field
      'qualifier' initializer [-Werror,-Wmissing-field-initializers]
          aarch64_opnd_info blk_pred = {0}, inst_pred = {0};
                                         ^
../../binutils-gdb/opcodes/aarch64-opc.c:4674:52: error: missing field
      'qualifier' initializer [-Werror,-Wmissing-field-initializers]
          aarch64_opnd_info blk_pred = {0}, inst_pred = {0};
                                                          ^

thanks,
Tom



More information about the Binutils mailing list