sim: warnings: disable -Wenum-conversion fow now [PR sim/29752]

The cgen code mixes virtual insn enums with insn enums, and there isn't
an obvious (to me) way to unravel this atm, so disable the warning.

sim/lm32/decode.c:45:5: error:
	implicit conversion from enumeration type 'CGEN_INSN_VIRTUAL_TYPE'
	to different enumeration type 'CGEN_INSN_TYPE' (aka 'enum cgen_insn_type')
	[-Werror,-Wenum-conversion]
   45 |   { VIRTUAL_INSN_X_INVALID, LM32BF_INSN_X_INVALID, LM32BF_SFMT_EMPTY },
      |   ~ ^~~~~~~~~~~~~~~~~~~~~~

Bug: https://sourceware.org/PR29752
This commit is contained in:
Mike Frysinger
2023-12-06 21:16:17 -07:00
parent d2ee8bb694
commit a729245526
2 changed files with 4 additions and 0 deletions

1
sim/configure vendored
View File

@@ -15842,6 +15842,7 @@ build_warnings="$build_warnings
-Wold-style-declaration
-Wold-style-definition
-Wpointer-sign
-Wno-enum-conversion
"
case "${host}" in

View File

@@ -64,6 +64,9 @@ build_warnings="$build_warnings
-Wold-style-declaration
-Wold-style-definition
-Wpointer-sign
dnl The cgen virtual insn logic involves enum conversions.
dnl Disable until we can figure out how to make this work.
-Wno-enum-conversion
"
case "${host}" in