On 9/10/23 00:09, Brian Cain wrote:
Of the changes in this commit, the changes in `HELPER(commit_hvx_stores)()`
are less obvious.  They are required because of some macro invocations like
SCATTER_OP_WRITE_TO_MEM().

e.g.:

     In file included from ../target/hexagon/op_helper.c:31:
     ../target/hexagon/mmvec/macros.h:205:18: error: declaration of ‘i’ shadows 
a previous local [-Werror=shadow=compatible-local]
       205 |         for (int i = 0; i < sizeof(MMVector); i += sizeof(TYPE)) { 
\
           |                  ^
     ../target/hexagon/op_helper.c:157:17: note: in expansion of macro 
‘SCATTER_OP_WRITE_TO_MEM’
       157 |                 SCATTER_OP_WRITE_TO_MEM(uint16_t);
           |                 ^~~~~~~~~~~~~~~~~~~~~~~
     ../target/hexagon/op_helper.c:135:9: note: shadowed declaration is here
       135 |     int i;
           |         ^
     In file included from ../target/hexagon/op_helper.c:31:
     ../target/hexagon/mmvec/macros.h:204:19: error: declaration of ‘ra’ 
shadows a previous local [-Werror=shadow=compatible-local]
       204 |         uintptr_t ra = GETPC(); \
           |                   ^~
     ../target/hexagon/op_helper.c:160:17: note: in expansion of macro 
‘SCATTER_OP_WRITE_TO_MEM’
       160 |                 SCATTER_OP_WRITE_TO_MEM(uint32_t);
           |                 ^~~~~~~~~~~~~~~~~~~~~~~
     ../target/hexagon/op_helper.c:134:15: note: shadowed declaration is here
       134 |     uintptr_t ra = GETPC();
           |               ^~

Reviewed-by: Matheus Tavares Bernardino <quic_mathb...@quicinc.com>
Signed-off-by: Brian Cain <bc...@quicinc.com>
---
  target/hexagon/imported/alu.idef |  6 +++---
  target/hexagon/mmvec/macros.h    |  2 +-
  target/hexagon/op_helper.c       |  9 +++------
  target/hexagon/translate.c       | 10 +++++-----
  4 files changed, 12 insertions(+), 15 deletions(-)

No change since v2:
https://lore.kernel.org/qemu-devel/45707b6e-6835-421f-e89b-6c1b0c50e...@linaro.org/

Please carry reviewer tags so we don't re-review patches.

Again,
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>


Reply via email to