public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug sim/31181] New: sim: cris: decode unused base_insn variable warnings
@ 2023-12-19  2:34 vapier at gentoo dot org
  2023-12-19  3:13 ` [Bug sim/31181] " hp at sourceware dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: vapier at gentoo dot org @ 2023-12-19  2:34 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31181

            Bug ID: 31181
           Summary: sim: cris: decode unused base_insn variable warnings
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sim
          Assignee: unassigned at sourceware dot org
          Reporter: vapier at gentoo dot org
                CC: hp at bitrange dot com, vapier at gentoo dot org
  Target Milestone: ---

can't figure out what needs to change in the sources to fix the generated code

  CC       cris/decodev32.o
../../../sim/cris/decodev32.c: In function ‘crisv32f_decode’:
../../../sim/cris/decodev32.c:4526:20: error: unused variable ‘insn’
[-Werror=unused-variable]
 4526 |     CGEN_INSN_WORD insn = base_insn;
      |                    ^~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:3959: cris/decodev32.o] Error 1

  CC       cris/decodev10.o
../../../sim/cris/decodev10.c: In function ‘crisv10f_decode’:
../../../sim/cris/decodev10.c:3857:20: error: unused variable ‘insn’
[-Werror=unused-variable]
 3857 |     CGEN_INSN_WORD insn = base_insn;
      |                    ^~~~
../../../sim/cris/decodev10.c:4949:20: error: unused variable ‘insn’
[-Werror=unused-variable]
 4949 |     CGEN_INSN_WORD insn = base_insn;
      |                    ^~~~
../../../sim/cris/decodev10.c:5357:20: error: unused variable ‘insn’
[-Werror=unused-variable]
 5357 |     CGEN_INSN_WORD insn = base_insn;
      |                    ^~~~
../../../sim/cris/decodev10.c:5645:20: error: unused variable ‘insn’
[-Werror=unused-variable]
 5645 |     CGEN_INSN_WORD insn = base_insn;
      |                    ^~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:3959: cris/decodev10.o] Error 1

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-12-22 15:47 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-19  2:34 [Bug sim/31181] New: sim: cris: decode unused base_insn variable warnings vapier at gentoo dot org
2023-12-19  3:13 ` [Bug sim/31181] " hp at sourceware dot org
2023-12-19 10:09 ` vapier at gentoo dot org
2023-12-19 23:35 ` hp at sourceware dot org
2023-12-20  3:19 ` vapier at gentoo dot org
2023-12-20 15:58 ` hp at sourceware dot org
2023-12-21  1:10 ` tromey at sourceware dot org
2023-12-21  1:50 ` hp at sourceware dot org
2023-12-21  4:12 ` vapier at gentoo dot org
2023-12-21 15:59 ` hp at sourceware dot org
2023-12-21 17:22 ` vapier at gentoo dot org
2023-12-21 17:32 ` hp at sourceware dot org
2023-12-21 17:41 ` hp at sourceware dot org
2023-12-22  1:19 ` vapier at gentoo dot org
2023-12-22 15:47 ` vapier at gentoo dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).