]> Git Repo - qemu.git/commitdiff
target/riscv: Remove redundant declaration pragmas
authorRichard Henderson <[email protected]>
Fri, 9 Aug 2019 15:24:57 +0000 (08:24 -0700)
committerRichard Henderson <[email protected]>
Mon, 19 Aug 2019 15:13:14 +0000 (08:13 -0700)
These are now generated by decodetree itself.

Tested-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Acked-by: Palmer Dabbelt <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
target/riscv/translate.c

index 8d6ab732588d8426b4c3bef7cc9da36f73e4d879..adeddb85f675c1fd54688c1b545c2207ec1b8b40 100644 (file)
@@ -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 */
This page took 0.023429 seconds and 4 git commands to generate.