This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Optimize (void) stpcpy (s1, s2) and (void) mempcpy (s1,s2)
Jakub Jelinek <firstname.lastname@example.org> writes:
> On Mon, May 05, 2003 at 09:12:46AM -0700, Zack Weinberg wrote:
>> > * gcc.c-torture/execute/string-opt-18.c (main): Add 3 new tests.
>> this doesn't appear to test that the optimization actually happens,
>> can you work out a test that does?
> It does. If this optimization doesn't happen, stpcpy (resp. mempcpy)
> function is called as opposed to strcpy/memcpy.
> The test #ifdef __OPTIMIZE__ provides implementation for stpcpy/mempcpy
> which simply abort.
Ah, ok, I should have looked at the whole file. Go ahead, then.