diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-04-13 11:25:08 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-04-13 14:38:06 -0400 |
commit | febb368c894f53bd9bf0b198e0143eac02391053 (patch) | |
tree | 0db434c0bcf1fac3eeb1fa519ded38f4432e7f91 /gdb/sparc64-netbsd-nat.c | |
parent | f5e760500601b297906aa1657040e8f167c80549 (diff) | |
download | gdb-febb368c894f53bd9bf0b198e0143eac02391053.zip gdb-febb368c894f53bd9bf0b198e0143eac02391053.tar.gz gdb-febb368c894f53bd9bf0b198e0143eac02391053.tar.bz2 |
gdb: fix clang build failure in msymbol_is_mips
Building with clang++-14, I see:
CXX mips-tdep.o
/home/smarchi/src/binutils-gdb/gdb/mips-tdep.c:453:12: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
return !(MSYMBOL_TARGET_FLAG_MIPS16 (msym)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/smarchi/src/binutils-gdb/gdb/mips-tdep.h:54:2: note: expanded from macro 'MSYMBOL_TARGET_FLAG_MIPS16'
(sym)->target_flag_1 ()
^
/home/smarchi/src/binutils-gdb/gdb/mips-tdep.c:453:12: note: cast one or both operands to int to silence this warning
/home/smarchi/src/binutils-gdb/gdb/mips-tdep.h:54:2: note: expanded from macro 'MSYMBOL_TARGET_FLAG_MIPS16'
(sym)->target_flag_1 ()
^
That's since commit e165fcef1e7 ("gdb: remove MSYMBOL_TARGET_FLAG_{1,2}
macros"). Fix this by using the boolean || rather than the bitwise |,
since the new methods return bool values. No change in behavior
expected.
Change-Id: Ia82664135aa25db64c29c92f5c1141859d345bf7
Diffstat (limited to 'gdb/sparc64-netbsd-nat.c')
0 files changed, 0 insertions, 0 deletions