This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc abusive builtins ?
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: phi gcc <phi dot gcc at gmail dot com>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 30 Nov 2017 07:47:24 -0600
- Subject: Re: gcc abusive builtins ?
- Authentication-results: sourceware.org; auth=none
- References: <CADieKztz0sSBgajQS45RktLyOodWFzXQ7fRLTh-zMSSJT6WFbg@mail.gmail.com>
Hi,
On Thu, Nov 30, 2017 at 02:36:33PM +0100, phi gcc wrote:
> NC$ cc -c c.c
> c.c:2:5: warning: conflicting types for built-in function 'exp2'
> int exp2(){return(7);}
> ^~~~
>
> It's all sounds like gcc got its own idea about what I am trying to
> do, I don't include math.h on purpose, yet I got some magic builtins ?
>
> Is there a pragma I I could stuff in my own .h where exp2() is
> exported, I can't temper the Makefile.
-fno-builtin-exp2. Or just ignore the warning.
Segher