diff options
author | Jeff Law <jlaw@ventanamicro.com> | 2024-06-09 09:17:55 -0600 |
---|---|---|
committer | Jeff Law <jlaw@ventanamicro.com> | 2024-06-09 09:17:55 -0600 |
commit | 932c6f8dd8859afb13475c2de466bd1a159530da (patch) | |
tree | 55c748baa1e3df829344b17cc3fd39a76a051c24 /gcc/ada | |
parent | 8bb6b2f4ae19c3aab7d7a5e5c8f5965f89d90e01 (diff) | |
download | gcc-932c6f8dd8859afb13475c2de466bd1a159530da.zip gcc-932c6f8dd8859afb13475c2de466bd1a159530da.tar.gz gcc-932c6f8dd8859afb13475c2de466bd1a159530da.tar.bz2 |
[committed] [RISC-V] Fix false-positive uninitialized variable
Andreas noted we were getting an uninit warning after the recent constant
synthesis changes. Essentially there's no way for the uninit analysis code to
know the first entry in the CODES array is a UNKNOWN which will set X before
its first use.
So trivial initialization with NULL_RTX is the obvious fix.
Pushed to the trunk.
gcc/
* config/riscv/riscv.cc (riscv_move_integer): Initialize "x".
Diffstat (limited to 'gcc/ada')
0 files changed, 0 insertions, 0 deletions