Hi, Davi!
On Nov 20, Davi Arnaut wrote:
> # At a local mysql-5.1-bugteam repository of davi
>
> 3513 Davi Arnaut 2010-11-20
> Bug#57994: Compiler flag change build error : my_redel.c
>
> -#if defined(HAVE_STPCPY) && MY_GNUC_PREREQ(3, 4)
> +#if defined(HAVE_STPCPY) && MY_GNUC_PREREQ(3, 4) &&
> !defined(__INTEL_COMPILER)
> #define strmov(A,B) __builtin_stpcpy((A),(B))
> #elif defined(HAVE_STPCPY)
> #define strmov(A,B) stpcpy((A),(B))
Why do you need to do anything at all for __builtin_stpcpy ?
I'd expect that if you simply use stpcpy everywhere, the compiler will
be able to use the builtin if appropriate. Automatically.
Regards,
Sergei