diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2023-05-04 08:35:30 +0200 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.ibm.com> | 2023-05-04 08:37:50 +0200 |
commit | c9819077700c5fc440981c3b14e21225f4c14d01 (patch) | |
tree | eaeb6b4a402663139fe487c157557ee4d1bfe561 /makefile.vms | |
parent | c3b0a240ea7c5c25f523b950f24a2befa6b6ff61 (diff) | |
download | gdb-c9819077700c5fc440981c3b14e21225f4c14d01.zip gdb-c9819077700c5fc440981c3b14e21225f4c14d01.tar.gz gdb-c9819077700c5fc440981c3b14e21225f4c14d01.tar.bz2 |
gas: fix building tc-bpf.c on s390x
char is unsigned on s390x, so there are a lot of warnings like:
gas/config/tc-bpf.c: In function 'get_token':
gas/config/tc-bpf.c:900:14: error: comparison is always false due to limited range of data type [-Werror=type-limits]
900 | if (ch == EOF || len > MAX_TOKEN_SZ)
| ^~
Change its type to int, like in the other similar code.
There is also:
gas/config/tc-bpf.c:735:30: error: 'bpf_endianness' may be used uninitialized in this function [-Werror=maybe-uninitialized]
735 | dst, be ? size[endianness - BPF_BE16] : size[endianness - BPF_LE16]);
| ~~~~~~~~~~~^~~~~~~~~~
-Wmaybe-uninitialized doesn't seem to understand the FSM; just
initialize bpf_endianness to silence it. Add an assertion to
build_bpf_endianness() in order to catch potential bugs.
Diffstat (limited to 'makefile.vms')
0 files changed, 0 insertions, 0 deletions