]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: Fix x86 build with GCC 6.4
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 8 Mar 2024 16:08:02 +0000 (08:08 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 8 Mar 2024 16:08:02 +0000 (08:08 -0800)
commit03fa0c63d3a5944afcf031ecf0b433b2985e6eeb
tree722d0e416b775b8fce175f36adcecc85de17b128
parente9b738dfbdc504589e1a365ce32981f4b23c22c3
gas: Fix x86 build with GCC 6.4

Add "()" to silence GCC 6.4:

.../gas/config/tc-i386.c: In function ‘x86_ginsn_lea’:
.../gas/config/tc-i386.c:5738:19: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
   if (!i.base_reg != (!i.index_reg || i.index_reg->reg_num == RegIZ))
                   ^~
cc1: all warnings being treated as errors

PR gas/31464
* config/tc-i386.c (x86_ginsn_lea): Add "()" to silence GCC 6.4.
gas/config/tc-i386.c