Binutils 2.47 fails to build with warning 'exp.X_op' may be used uninitialized

"R. Diez via Binutils" <[email protected]>
Newsgroups gmane.comp.gnu.binutils
Message-ID <[email protected]>
Hi all:

Binutils 2.47 fails to build with this error message:

-------8<-------8<-------

   CCLD     as-new
/home/rdiez/blah.../binutils-2.47/gas/config/tc-arm.c: In function 'parse_immediate.constprop':
/home/rdiez/blah.../binutils-2.47/gas/config/tc-arm.c:5198:10: error: 'exp.X_op' may be used uninitialized [-Werror=maybe-uninitialized]
  5198 |   if (exp.X_op != O_constant)
       |          ^
/home/rdiez/blah.../binutils-2.47/gas/config/tc-arm.c:5195:15: note: 'exp' declared here
  5195 |   expressionS exp;
       |               ^
lto1: all warnings being treated as errors

-------8<-------8<-------

Is this a known issue? The older Binutils 2.46.1 builds fine in the same setup.

Regards,
   rdiez
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.