http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51391
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-03 03:24:26 UTC --- Because there is code to explicitly turn off the warning for -O0 but not when using the pragma: /* Inlining does not work if not optimizing, so force it not to be done. */ opts->x_warn_inline = 0; opts->x_flag_no_inline = 1;