RE: libm -fno-builtin
Wilco Dijkstra <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <DB5PR08MB1030126631B8F7A73D2DE2B0833D0@DB5PR08MB1030.eurprd08.prod.outlook.com> |
Hi, Yes -fno-builtin should not be used indeed as it disables lots of useful optimizations. Removing -fno-builtin should have no negative effects except for eg. memcpy where compilers can recognize an overly simplistic implementation and optimize it to a call to memcpy... I think you will need a -fno-builtin-memcpy when building the size optimized version of libc/string/memcpy.c given it is marked with restrict. I think a config option is overkill. Wilco