diff options
author | Richard Henderson | 2019-08-09 17:24:57 +0200 |
---|---|---|
committer | Richard Henderson | 2019-08-19 17:13:14 +0200 |
commit | 59a3a1c0c211640e18b058a1b0444154c4eb6f99 (patch) | |
tree | 9bb24aed3f643e011c48cce170ffa32b2a56f86c /target/riscv/translate.c | |
parent | decodetree: Suppress redundant declaration warnings (diff) | |
download | qemu-59a3a1c0c211640e18b058a1b0444154c4eb6f99.tar.gz qemu-59a3a1c0c211640e18b058a1b0444154c4eb6f99.tar.xz qemu-59a3a1c0c211640e18b058a1b0444154c4eb6f99.zip |
target/riscv: Remove redundant declaration pragmas
These are now generated by decodetree itself.
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Acked-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/riscv/translate.c')
-rw-r--r-- | target/riscv/translate.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/target/riscv/translate.c b/target/riscv/translate.c index 8d6ab73258..adeddb85f6 100644 --- a/target/riscv/translate.c +++ b/target/riscv/translate.c @@ -708,26 +708,9 @@ static bool gen_shift(DisasContext *ctx, arg_r *a, #include "insn_trans/trans_rvd.inc.c" #include "insn_trans/trans_privileged.inc.c" -/* - * Auto-generated decoder. - * Note that the 16-bit decoder reuses some of the trans_* functions - * initially declared by the 32-bit decoder, which results in duplicate - * declaration warnings. Suppress them. - */ -#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE -# pragma GCC diagnostic push -# pragma GCC diagnostic ignored "-Wredundant-decls" -# ifdef __clang__ -# pragma GCC diagnostic ignored "-Wtypedef-redefinition" -# endif -#endif - +/* Include the auto-generated decoder for 16 bit insn */ #include "decode_insn16.inc.c" -#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE -# pragma GCC diagnostic pop -#endif - static void decode_opc(DisasContext *ctx) { /* check for compressed insn */ |