diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 19:41:17 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2024-01-06 23:30:43 -0500 |
commit | 199b67ca043e21b94c965ffe2f3c56f25ee6e234 (patch) | |
tree | efcfe125148d3ff50b807e0c3368af2e8d2e55d4 /cpu | |
parent | 012c1f072f7f1611c86a912f0964e45136ea38cc (diff) | |
download | gdb-199b67ca043e21b94c965ffe2f3c56f25ee6e234.zip gdb-199b67ca043e21b94c965ffe2f3c56f25ee6e234.tar.gz gdb-199b67ca043e21b94c965ffe2f3c56f25ee6e234.tar.bz2 |
sim: cris: change temp var name slightly to avoid shadowing
Rename the temp var to avoid shadowing another one:
.../sim/cris/semcrisv10f-switch.c:11032:22: error: declaration of ‘tmp_tmpb’ shadows a previous local [-Werror=shadow=compatible-local]
11032 | tmp_tmpb = ({ SI tmp_tmpb;
| ^~~~~~~~
.../sim/cris/semcrisv10f-switch.c:11031:24: note: shadowed declaration is here
11031 | tmp_tmpres = ({ SI tmp_tmpb;
| ^~~~~~~~
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/cris.cpu | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpu/cris.cpu b/cpu/cris.cpu index 32a1e2d..5d50307 100644 --- a/cpu/cris.cpu +++ b/cpu/cris.cpu @@ -3668,10 +3668,10 @@ "Perform word-wise swap within each dword" (sequence SI - ((SI tmpb)) - (set tmpb x) - (or (and (sll tmpb 16) #xffff0000) - (and (srl tmpb 16) #xffff))) + ((SI tmpw)) + (set tmpw x) + (or (and (sll tmpw 16) #xffff0000) + (and (srl tmpw 16) #xffff))) ) (define-pmacro (swap-_ x) |