https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82429
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Well, it matches the behavior of the stpcpy function in strict mode: If you try: char *stpcpy (char *, const char *); char *foo (char *p) { return stpcpy (p, "abcd"); } char *bar (char *p) { return __builtin_stpcpy (p, "abcd"); } then in strict mode only bar will be optimized into memcpy or (inlined memcpy), while foo will call stpcpy.