OSDN Git Service

tcg: Fix prototypes for tcg_out_vec_op and tcg_out_op
authorMiroslav Rezanina <mrezanin@redhat.com>
Fri, 12 Mar 2021 12:14:18 +0000 (13:14 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 17 Mar 2021 15:04:45 +0000 (09:04 -0600)
commit5e8892db93f3fb6a7221f2d47f3c952a7e489737
treeb4092fa3f64770f3fad4dd1172ac1bedbf24ef51
parent98f9b467b025f58e0cb1c8b0ae91b9b0d51ca85f
tcg: Fix prototypes for tcg_out_vec_op and tcg_out_op

There are two different versions of prototype for tcg_out_op and
tcg_out_vec_op functions:

1) using const TCGArg *args and const int *const_args arguments
2) using const TCGArg args[TCG_MAX_OP_ARGS] and const int
   const_args[TCG_MAX_OP_ARGS] aguments.

This duality causes warnings on GCC 11 and prevents build using
--enable-werror.  As second version provides more information,
unify functions prototypes to this variant.

Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
Message-Id: <20210312121418.139093-1-mrezanin@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/aarch64/tcg-target.c.inc
tcg/i386/tcg-target.c.inc
tcg/mips/tcg-target.c.inc
tcg/ppc/tcg-target.c.inc
tcg/riscv/tcg-target.c.inc
tcg/s390/tcg-target.c.inc
tcg/tcg.c
tcg/tci/tcg-target.c.inc