This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C inlines that are also builtins.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]