This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/77421] Bugs found in GCC with the help of PVS-Studio
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 31 Aug 2016 17:13:46 +0000
- Subject: [Bug other/77421] Bugs found in GCC with the help of PVS-Studio
- Auto-submitted: auto-generated
- References: <bug-77421-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77421
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Oh one more I missed. alter_output_for_subst_insn in gensupport.c has:
if (alt < 2 || *insn_out == '*' || *insn_out != '@')
return insn_out;
The second condition is redundant, since if it's == '*' then it's also != '@'
The fix isn't obvious.