Gcc builtin review: strcpy, stpcpy, strcat, stpcat?
Joseph Myers
joseph@codesourcery.com
Thu May 28 17:02:00 GMT 2015
On Mon, 25 May 2015, Ondøej BĂlka wrote:
> You should expoit that stpcpy returns end of string so gcc should
> replace
>
> strcpy (x,y)
> return strlen (x)
>
> with
>
> return stpcpy (x,y) - x
Subject to namespace issues (we could agree that __stpcpy is a stable ABI
- won't become a compat symbol - so that GCC can safely generate calls to
it).
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list