This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Warning/error in opcodes/arc-nps400-tbl.h


Hi Andrew,

When building with clang, I see these errors:

/home/emaisin/src/binutils-gdb/opcodes/arc-nps400-tbl.h:983:53: error: implicit conversion from enumeration type 'insn_subclass_t' to different enumeration type 'insn_class_t' [-Werror,-Wenum-conversion]
{ "exc", 0x48060c21, 0xf80fbfff, ARC_OPCODE_ARC700, NONE, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, BRAKET, NPS_XA, COLON, NPS_R_SRC2_3B, BRAKETdup }, { C_DI14, C_NPS_F }},
~                                                   ^~~~
/home/emaisin/src/binutils-gdb/opcodes/arc-nps400-tbl.h:986:53: error: implicit conversion from enumeration type 'insn_subclass_t' to different enumeration type 'insn_class_t' [-Werror,-Wenum-conversion]
{ "exc", 0x48060c61, 0xf80fbfff, ARC_OPCODE_ARC700, NONE, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, BRAKET, NPS_SD, COLON, NPS_R_SRC2_3B, BRAKETdup }, { C_DI14, C_NPS_F }},
~                                                   ^~~~
/home/emaisin/src/binutils-gdb/opcodes/arc-nps400-tbl.h:989:53: error: implicit conversion from enumeration type 'insn_subclass_t' to different enumeration type 'insn_class_t' [-Werror,-Wenum-conversion]
{ "exc", 0x48060c81, 0xf80fbfff, ARC_OPCODE_ARC700, NONE, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, BRAKET, NPS_XD, COLON, NPS_R_SRC2_3B, BRAKETdup }, { C_DI14, C_NPS_F }},
~                                                   ^~~~
/home/emaisin/src/binutils-gdb/opcodes/arc-nps400-tbl.h:992:53: error: implicit conversion from enumeration type 'insn_subclass_t' to different enumeration type 'insn_class_t' [-Werror,-Wenum-conversion]
{ "exc", 0x48060c01, 0xf80fbfff, ARC_OPCODE_ARC700, NONE, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, BRAKET, NPS_R_SRC2_3B, BRAKETdup }, { C_DI14, C_NPS_F }},
~                                                   ^~~~

The errors seem legit.  Can it be fixed?

Thanks!

Simon


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]