Checking for built-in functions from build systems
Jonathan Wakely
jwakely.gcc@gmail.com
Wed Aug 10 21:27:43 GMT 2022
On Wed, 10 Aug 2022, 23:12 Luca Bacci via Gcc, <gcc@gcc.gnu.org> wrote:
>
> 1. Is inlining of built-ins dependant only on the target architecture and
> command-line arguments?
>
No, I think it can depend on the arguments to the built-in as well.
2. If the answer to 1 is yes, could a __is_builtin_inlined (func) macro be
> added to GCC? It should tell whether func is going to be substituted inline
> for the given compiler invocation
I don't think that can work for some built-ins, e.g. in a single
translation unit memcmp can be inlined for constant arguments of small
size, and not inlined for other calls.
More information about the Gcc
mailing list