This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: C inlines that are also builtins.
- From: Sergey Organov <sorganov at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 09 Nov 2015 22:36:52 +0300
- Subject: Re: C inlines that are also builtins.
- Authentication-results: sourceware.org; auth=none
- References: <n1q58n$63o$1 at ger dot gmane dot org> <5640CDDB dot 7000702 at redhat dot com>
Andrew Haley <aph@redhat.com> writes:
> On 11/09/2015 12:57 PM, Sergey Organov wrote:
>> Is it a bug of feature? If the latter, what is the way for a library to
>> provide generic inline functions that might happen to be GCC builtins?
>
> -fno-builtin
Thanks, that's obvious, but the point is to create (library) headers
that will correctly compile with GCC even when no -fno-builtin is given.
The only way I currently see is to declare these function "static
inline", but that has it's own drawbacks.
So, once again, isn't it a bug in GCC?
-- Sergey.