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 middle-end/71625] missing strlen optimization on different array initialization style


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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2016-06-23
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1
      Known to fail|                            |4.9.3, 5.3.0, 6.1.0, 7.0

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
I'm working on a patch that among other things transforms the CONSTRUCTOR node
created for an array initializer to STRING_CST, as suggested by Richard in bug
71303 that this one is a duplicate of, to help fold strlen results for constant
arguments (this also affects C++ constexpr where it would be useful to be able
to call strlen).  Let me confirm this one since it has more discussion and
close the other as a dupe.

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