Microblaze: -Wmaybe-uninitialized
Nick Clifton
nickc@redhat.com
Mon Sep 6 09:49:00 GMT 2021
Hi Jan-Benedict,
> Building current GAS (0b99a66053fa1e93a984f75a7a3d5343c74882fb) with
> an up-to-date GCC results in maybe-uninitialized warnings that seem to
> be legit for --target=microblaze-{linux,elf}, ie.:
> [all 2021-09-03 18:17:32] config/tc-microblaze.c: In function 'md_assemble':
> [all 2021-09-03 18:17:32] config/tc-microblaze.c:1170:27: error: 'immed' may be used uninitialized [-Werror=maybe-uninitialized]
> [all 2021-09-03 18:17:32] 1170 | if (immed != (immed % 32))
Fair enough. I have checked in a quick patch to initialise the variable.
Cheers
Nick
More information about the Binutils
mailing list