https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106907
Jeevitha <jeevitha at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |linkw at gcc dot gnu.org --- Comment #8 from Jeevitha <jeevitha at gcc dot gnu.org> --- Static analyser cppcheck says: gcc/config/rs6000/rs6000.cc:7668:16: style: Redundant initialization for 'new_addr'. The initialized value is overwritten before it is read. [redundantInitialization] new_addr = gen_rtx_PLUS (Pmode, XEXP (mem, 0), elt); ^ rs6000.cc:7663:20: note: new_addr is initialized rtx new_addr = gen_reg_rtx (Pmode); ^ rs6000.cc:7668:16: note: new_addr is overwritten new_addr = gen_rtx_PLUS (Pmode, XEXP (mem, 0), elt); ^ In above issue new_addr was initialized at line no : 7663 which was overwritten before it reads at line no : 7668