maryammo wrote:

> LanguageExtensions.rst.

As far as I see, the `-fno-builtin` option only affects standard library 
functions (memcpy, strlen, etc.). Compiler/target-specific builtins don't 
interact with `-fno-builtin`.

In Builtins.cpp, the -fno-builtin-foo unregistration code checks 
`isPredefinedLibFunction(ID)` (which determines whether this builtin is a 
predefined libc/libm function such as mallo; has the 'f' attribute) before 
clearing the builtin ID. __cs* are not predefined lib functions.

https://github.com/llvm/llvm-project/pull/202362
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to