https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81151
Bug ID: 81151 Summary: -Wmaybe-uninitialized in insn-emit.c Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Target Milestone: --- Created attachment 41596 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41596&action=edit Test-case Building current GCC with GCC 7.1 produces warning: g++ insn-emit.ii -Wmaybe-uninitialized insn-emit.c: In function ‘rtx_def* gen_roundv16sf2(rtx, rtx)’: insn-emit.c:148125:14: warning: ‘operands[2]’ may be used uninitialized in this function [-Wmaybe-uninitialized] operand2 = operands[2]; ~~~~~~~~~^~~~~~~~~~~~~ insn-emit.c: In function ‘rtx_def* gen_roundv8sf2(rtx, rtx)’: insn-emit.c:148194:14: warning: ‘operands[2]’ may be used uninitialized in this function [-Wmaybe-uninitialized] operand2 = operands[2]; ~~~~~~~~~^~~~~~~~~~~~~ insn-emit.c: In function ‘rtx_def* gen_roundv4sf2(rtx, rtx)’: insn-emit.c:148263:14: warning: ‘operands[2]’ may be used uninitialized in this function [-Wmaybe-uninitialized] operand2 = operands[2]; ~~~~~~~~~^~~~~~~~~~~~~ insn-emit.c: In function ‘rtx_def* gen_roundv8df2(rtx, rtx)’: insn-emit.c:148332:14: warning: ‘operands[2]’ may be used uninitialized in this function [-Wmaybe-uninitialized] operand2 = operands[2]; ~~~~~~~~~^~~~~~~~~~~~~ insn-emit.c: In function ‘rtx_def* gen_roundv4df2(rtx, rtx)’: insn-emit.c:148401:14: warning: ‘operands[2]’ may be used uninitialized in this function [-Wmaybe-uninitialized] operand2 = operands[2]; ~~~~~~~~~^~~~~~~~~~~~~ insn-emit.c: In function ‘rtx_def* gen_roundv2df2(rtx, rtx)’: insn-emit.c:148470:14: warning: ‘operands[2]’ may be used uninitialized in this function [-Wmaybe-uninitialized] operand2 = operands[2]; ~~~~~~~~~^~~~~~~~~~~~~