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").