[Bug tree-optimization/83444] [5/6/7/8 Regression] missing strlen optimization on a member array of a local struct

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 18 16:18:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83444

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-12-18
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42904
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42904&action=edit
gcc8-pr83444.patch

The problem is we fold strlen (x) != 0 to *x != 0 early, and then don't handle
that during the strlen pass.


More information about the Gcc-bugs mailing list