[Bug tree-optimization/71625] missing strlen optimization on different array initialization style

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jul 30 17:51:00 GMT 2018


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot gnu.org

--- Comment #15 from Martin Sebor <msebor at gcc dot gnu.org> ---
Testing a patch for the constant case:

  const char a[] = { 'a', 'b', 'c', 0 };

  int f (void)
  {
    return __builtin_strlen (a);
  }


More information about the Gcc-bugs mailing list