Andrew Haley <aph@xxxxxxxxxx> 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.