This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/71625] missing strlen optimization on different array initialization style
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 23 Jun 2016 13:16:53 +0000
- Subject: [Bug middle-end/71625] missing strlen optimization on different array initialization style
- Auto-submitted: auto-generated
- References: <bug-71625-4 at http dot gcc dot gnu dot org/bugzilla/>
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.