https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96628
Rafaël Kooi <rafael_andreas at hotmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rafael_andreas at hotmail dot com Summary|Feature request: |Feature request: |__attribute__((no_builtin(F |__attribute__((no_builtin(" |oo))) |Foo"))) --- Comment #1 from Rafaël Kooi <rafael_andreas at hotmail dot com> --- Clang supports __attribute__((no_builtin("memset"))) for things like implementing memset in a CRT. This is preferable over using -fno-builtin cause it disables all builtins, which is not optimal when it comes to possible optimizations. I also wasn't able to find out how to disable a specific builtin from the commandline, which could be used as a workaround by just splitting functionally up into more files. Right now my CRT project doesn't work with GCC on Windows because of reliance on this attribute, msvc ABI, and SEH support, but I would like to be able to also compile it with GCC for portability reasons and this would be a big step.