"The optimize attribute should be used for debugging purposes only. It is not suitable in production code. "
https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attribute...
https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attribute...
Definition of macro: https://sourceware.org/git/?p=glibc.git;a=blob;f=include/lib...
Use: https://sourceware.org/git/?p=glibc.git;a=blob;f=string/memm...
For a bunch of other places -fno-builtin-* seems to be used.