This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]