public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/26368] New: [build, sh-elf] Werror errors
@ 2020-08-10 21:56 vries at gcc dot gnu.org
  2020-08-18  8:45 ` [Bug build/26368] " vries at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: vries at gcc dot gnu.org @ 2020-08-10 21:56 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 26368
           Summary: [build, sh-elf] Werror errors
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

...
$ grep error: -B1 mbuild/sh-elf/Build.log
./ppi.c: In function 'ppi_insn':
./ppi.c:59:38: error: suggest parentheses around '-' inside '>>'
[-Werror=parentheses]
--
                                  ~~~~^~~
./ppi.c:90:61: error: suggest parentheses around '-' inside '>>'
[-Werror=parentheses]
--
                                                          ~~~^~~
./ppi.c:105:46: error: suggest parentheses around '-' inside '<<'
[-Werror=parentheses]
--
                                           ~~~^~~
./ppi.c:217:47: error: suggest parentheses around arithmetic in operand of '|'
[-Werror=parentheses]
--
                                               ^
./ppi.c:252:47: error: suggest parentheses around arithmetic in operand of '|'
[-Werror=parentheses]
--
                                               ^
./ppi.c:544:38: error: suggest parentheses around '-' inside '>>'
[-Werror=parentheses]
--
                                  ~~~~^~~~
./ppi.c:583:62: error: suggest parentheses around '-' inside '>>'
[-Werror=parentheses]
--
                                                           ~~~^~~~
./ppi.c:598:47: error: suggest parentheses around '-' inside '<<'
[-Werror=parentheses]
--
                                            ~~~^~~~
./ppi.c:1241:41: error: suggest parentheses around arithmetic in operand of '|'
[-Werror=parentheses]
--
./code.c: In function 'sim_resume':
src/sim/sh/interp.c:672:46: error: value computed is not used
[-Werror=unused-value]
--
         ^~~~~
src/sim/sh/interp.c:672:46: error: value computed is not used
[-Werror=unused-value]
--
         ^~~~~
src/sim/sh/interp.c:672:46: error: value computed is not used
[-Werror=unused-value]
--
         ^~~~~
./code.c:465:28: error: suggest parentheses around '-' in operand of '&'
[-Werror=parentheses]
--
                             ^~~
src/sim/sh/interp.c:231:40: error: suggest parentheses around arithmetic in
operand of '|' [-Werror=parentheses]
--
         ^~~~~~
src/sim/sh/interp.c:231:40: error: suggest parentheses around arithmetic in
operand of '|' [-Werror=parentheses]
--
         ^~~~~~
src/sim/sh/interp.c:231:40: error: suggest parentheses around arithmetic in
operand of '|' [-Werror=parentheses]
--
         ^~~~~~
src/sim/sh/interp.c:231:40: error: suggest parentheses around arithmetic in
operand of '|' [-Werror=parentheses]
--
src/sim/sh/interp.c: In function 'sim_open':
src/sim/sh/interp.c:2432:10: error: assignment discards 'const' qualifier from
pointer target type [-Werror=discarded-qualifiers]
--
src/sim/sh/interp.c: In function 'ppi_insn':
./ppi.c:875:21: error: assuming signed overflow does not occur when assuming
that (X + c) < X is always false [-Werror=strict-overflow]
--
                 ~~~~^~~~
./ppi.c:849:21: error: assuming signed overflow does not occur when assuming
that (X - c) > X is always false [-Werror=strict-overflow]
--
                 ~~~~^~~~
./ppi.c:823:21: error: assuming signed overflow does not occur when assuming
that (X + c) < X is always false [-Werror=strict-overflow]
--
                 ~~~~^~~~
./ppi.c:797:21: error: assuming signed overflow does not occur when assuming
that (X - c) > X is always false [-Werror=strict-overflow]
--
src/sim/sh/interp.c: In function 'set_sr':
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
   ^~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
src/sim/sh/interp.c: In function 'sh_reg_store':
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
       ^~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
       ^~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
       ^~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
       ^~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
       ^~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
       ^~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
       ^~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
       ^~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
       ^~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
       ^~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
src/sim/sh/interp.c: In function 'sh_reg_fetch':
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                   ^~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
             ^~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                   ^~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
             ^~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
             ^~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
             ^~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
             ^~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
             ^~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
src/sim/sh/interp.c: In function 'sim_resume':
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                     ^~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                               ^~~~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                     ^~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                               ^~~~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                     ^~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                               ^~~~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                     ^~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                               ^~~~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                     ^~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                               ^~~~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                     ^~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                               ^~~~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                     ^~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                               ^~~~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                     ^~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                               ^~~~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                      ^~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                                ^~~~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                      ^~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                                ^~~~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                      ^~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                                ^~~~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                      ^~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                                ^~~~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                      ^~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                                ^~~~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
         ^~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                      ^~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                                ^~~~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                      ^~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                                ^~~~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                      ^~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
                                                ^~~~~~~~~
src/sim/sh/interp.c:435:44: error: array subscript is above array bounds
[-Werror=array-bounds]
--
In file included from src/sim/sh/interp.c:1526:0:
./ppi.c:1178:28: error: 'res' may be used uninitialized in this function
[-Werror=maybe-uninitialized]
--
       ^~~
./ppi.c:1004:18: error: 'i' may be used uninitialized in this function
[-Werror=maybe-uninitialized]
...

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

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

* [Bug build/26368] [build, sh-elf] Werror errors
  2020-08-10 21:56 [Bug build/26368] New: [build, sh-elf] Werror errors vries at gcc dot gnu.org
@ 2020-08-18  8:45 ` vries at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: vries at gcc dot gnu.org @ 2020-08-18  8:45 UTC (permalink / raw)
  To: gdb-prs

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

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrew.burgess at embecosm dot com

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

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

end of thread, other threads:[~2020-08-18  8:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-10 21:56 [Bug build/26368] New: [build, sh-elf] Werror errors vries at gcc dot gnu.org
2020-08-18  8:45 ` [Bug build/26368] " vries at gcc dot gnu.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).