This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/78731] Possible bug with switch when optimization is turned on.
- From: "wilson at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 09 Dec 2016 04:35:13 +0000
- Subject: [Bug tree-optimization/78731] Possible bug with switch when optimization is turned on.
- Auto-submitted: auto-generated
- References: <bug-78731-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78731
--- Comment #2 from Jim Wilson <wilson at gcc dot gnu.org> ---
The compiler is failing in jump threading as called by dom2. Jeff's 2015-09-30
patch is triggering in dom1, and changing the CFG just enough to prevent the
jump threading bug from triggering. So it isn't a proper fix.
Disabling it, and bisecting again, I found bug 67892, another patch from Jeff,
which looks like a proper fix. However, there is a problem. The bug was
reported against gcc 5, fixed in gcc 6, and then closed, but is still broken in
gcc 5. I think it is in the wrong state. Presumably, it should still be open,
and then fixed in gcc 5 if reasonably safe, or documented as a known bug that
we won't fix in gcc 5.