[Bug preprocessor/51391] pragma GCC diag ignored then warning of Winline activates -fno-inline

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Dec 3 03:24:00 GMT 2011


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;



More information about the Gcc-bugs mailing list