[Bug c/49653] Undefined reference to inlined function with -O0,-std=c99
gary at intrepid dot com
gcc-bugzilla@gcc.gnu.org
Wed Jul 6 19:21:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49653
--- Comment #5 from Gary Funck <gary at intrepid dot com> 2011-07-06 19:21:26 UTC ---
Would the following make sense as an enhancement, and still be standards
conforming?
RFE: If compiling in C99 mode at -O0 (optimization disabled), compile functions
declared as "inline" as if they were instead declared "static".
In this way, if a user makes use of inlined functions, but decides to
re-compile his program at -O0 (in C99 mode) he doesn't have to resort to using
work-arounds (such as compiling with -Dinline=static").
More information about the Gcc-bugs
mailing list