This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30398] memmove for string operations
- From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jan 2007 22:07:20 -0000
- Subject: [Bug fortran/30398] memmove for string operations
- References: <bug-30398-10391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from tkoenig at gcc dot gnu dot org 2007-01-06 22:07 -------
(In reply to comment #0)
> The compiler should be able to detect that s and c
> are not aliased, so a call to memcpy instead of memmove
> could be issued.
Or, even better, the memmove/memcpy could be ommitted completely,
by using the variable directly as the target.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30398