This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/72750] Not possible to use -fno-builtin to suppress optimization of some standard functions like atoi
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 29 Jul 2016 20:18:31 +0000
- Subject: [Bug c/72750] Not possible to use -fno-builtin to suppress optimization of some standard functions like atoi
- Auto-submitted: auto-generated
- References: <bug-72750-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72750
--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
This is not a bug. You could make the file using atoi declare it itself
rather than including <stdlib.h> (because the type of atoi doesn't involve
any types from standard headers, doing so is valid). Or, again, separate
the use of atoi into a separate file and use -fno-inline for that file.