[Bug tree-optimization/69820] [6 Regression] Test miscompiled with -O3 option

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 15 18:10:00 GMT 2016


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.


More information about the Gcc-bugs mailing list