This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/69820] [6 Regression] Test miscompiled with -O3 option
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 Feb 2016 18:10:32 +0000
- Subject: [Bug tree-optimization/69820] [6 Regression] Test miscompiled with -O3 option
- Auto-submitted: auto-generated
- References: <bug-69820-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69820
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 37695
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37695&action=edit
gcc6-pr69820-2.patch
Untested fix for the wrong-code issue. For conversion from bool/_Bool/unsigned
:1 we have pattern recognizer for it, which is essential for correct behavior
(otherwise we get all ones instead of 1 for true), but the various widening
pattern recognizers aren't prepared to deal with those.