[Bug gas/31464] GCC 6.4 failed to build binutils

2024-03-08 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31464

H.J. Lu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
   Target Milestone|--- |2.43
 Resolution|--- |FIXED

--- Comment #2 from H.J. Lu  ---
Fixed.

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


[Bug gas/31464] GCC 6.4 failed to build binutils

2024-03-08 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=31464

--- Comment #1 from Sourceware Commits  ---
The master branch has been updated by H.J. Lu :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=03fa0c63d3a5944afcf031ecf0b433b2985e6eeb

commit 03fa0c63d3a5944afcf031ecf0b433b2985e6eeb
Author: H.J. Lu 
Date:   Fri Mar 8 08:08:02 2024 -0800

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.

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