aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-06 21:16:17 -0700
committerMike Frysinger <vapier@gentoo.org>2023-12-07 06:00:25 -0700
commita72924552626025ad0ad032edc7f02ea345fd2b5 (patch)
tree6c1ab2dd0130b2753e134d1249a0315e6f22ddc6 /sim
parentd2ee8bb694500c9e460283f9078b7cc53362dc95 (diff)
downloadgdb-a72924552626025ad0ad032edc7f02ea345fd2b5.zip
gdb-a72924552626025ad0ad032edc7f02ea345fd2b5.tar.gz
gdb-a72924552626025ad0ad032edc7f02ea345fd2b5.tar.bz2
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
Diffstat (limited to 'sim')
-rwxr-xr-xsim/configure1
-rw-r--r--sim/m4/sim_ac_option_warnings.m43
2 files changed, 4 insertions, 0 deletions
diff --git a/sim/configure b/sim/configure
index 79a21e8..7ed9834 100755
--- a/sim/configure
+++ b/sim/configure
@@ -15842,6 +15842,7 @@ build_warnings="$build_warnings
-Wold-style-declaration
-Wold-style-definition
-Wpointer-sign
+-Wno-enum-conversion
"
case "${host}" in
diff --git a/sim/m4/sim_ac_option_warnings.m4 b/sim/m4/sim_ac_option_warnings.m4
index e453d88..52beee8 100644
--- a/sim/m4/sim_ac_option_warnings.m4
+++ b/sim/m4/sim_ac_option_warnings.m4
@@ -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