mirror_qemu/target/hexagon/imported
Brian Cain 20c34a9216 target/hexagon: fix some occurrences of -Wshadow=local
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_mathbern@quicinc.com>
Signed-off-by: Brian Cain <bcain@quicinc.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20231008220945.983643-3-bcain@quicinc.com>
2023-10-18 16:56:17 -07:00
..
mmvec hexagon: spelling fixes 2023-09-08 13:08:52 +03:00
allext.idef Hexagon HVX (target/hexagon) import semantics 2021-11-03 16:01:36 -05:00
allext_macros.def Hexagon HVX (target/hexagon) import macro definitions 2021-11-03 16:01:28 -05:00
allextenc.def Hexagon HVX (target/hexagon) import instruction encodings 2021-11-03 16:01:36 -05:00
allidefs.def Hexagon HVX (target/hexagon) import semantics 2021-11-03 16:01:36 -05:00
alu.idef target/hexagon: fix some occurrences of -Wshadow=local 2023-10-18 16:56:17 -07:00
branch.idef Hexagon (target/hexagon) Add v73 scalar instructions 2023-05-18 12:40:51 -07:00
compare.idef Hexagon (target/hexagon) cleanup ternary operators in semantics 2021-05-01 08:31:43 -07:00
encode.def Hexagon HVX (target/hexagon) import instruction encodings 2021-11-03 16:01:36 -05:00
encode_pp.def Hexagon (target/hexagon) Add v73 scalar instructions 2023-05-18 12:40:51 -07:00
encode_subinsn.def
float.idef Hexagon (target/hexagon) add F2_sfinvsqrta 2021-05-01 08:31:43 -07:00
iclass.def
ldst.idef Hexagon (target/hexagon) Add v68 scalar instructions 2023-05-18 12:40:51 -07:00
macros.def hexagon: spelling fixes 2023-09-08 13:08:52 +03:00
mpy.idef
shift.idef Hexagon (target/hexagon) CABAC decode bin 2021-05-01 16:06:11 -07:00
subinsns.idef Hexagon (target/hexagon) add instruction attributes from archlib 2022-09-30 11:25:37 -07:00
system.idef