This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/81356] __builtin_strcpy is not good for copying an empty string on aarch64
- From: "rearnsha at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 08 Jul 2017 11:13:33 +0000
- Subject: [Bug tree-optimization/81356] __builtin_strcpy is not good for copying an empty string on aarch64
- Auto-submitted: auto-generated
- References: <bug-81356-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81356
Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-07-08
Component|target |tree-optimization
Ever confirmed|0 |1
--- Comment #1 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
Confirmed, but this should be done either as a tree optimization or in the
builtin expansion. The back-end mem copying expansions can't know this is a
null-terminated string.