List:Commits« Previous MessageNext Message »
From:Sergei Golubchik Date:November 20 2010 6:46pm
Subject:Re: bzr commit into mysql-5.1-bugteam branch (davi:3513) Bug#57994
View as plain text  
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
Thread
bzr commit into mysql-5.1-bugteam branch (davi:3513) Bug#57994Davi Arnaut20 Nov
Re: bzr commit into mysql-5.1-bugteam branch (davi:3513) Bug#57994Sergei Golubchik20 Nov
  • Re: bzr commit into mysql-5.1-bugteam branch (davi:3513) Bug#57994Davi Arnaut20 Nov
    • Re: bzr commit into mysql-5.1-bugteam branch (davi:3513) Bug#57994Sergei Golubchik20 Nov