On Mon, 18 Nov 2019 09:58:19 PST (-0800), l...@redhat.com wrote:
On 11/18/19 6:17 AM, Martin Liška wrote:
Hi.
The patch is about yet another bootstrap -Wmaybe-uninitialized warning.
I've just tested that on risv64 cross compiler with latest trunk.
Ready to be installed?
Thanks,
Martin
gcc/ChangeLog:
2019-11-18 Martin Liska <mli...@suse.cz>
PR bootstrap/92540
* config/riscv/riscv.c (riscv_address_insns): Initialize
addr in order to remove boostrap -Wmaybe-uninitialized
error.
OK. I had this internally, but haven't had time to analyze if the
warnings was a false positive or not.
It's always initialized: the only path by which riscv_classify_address()
doesn't initialize it is on an error, but riscv_classify_insns() handles that
correctly -- well, at least without accessing an uninitialized variable, that
implicit 3 is a bit ugly...
Thanks for fixing this!