This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/51391] pragma GCC diag ignored then warning of Winline activates -fno-inline
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 03 Dec 2011 03:24:26 +0000
- Subject: [Bug preprocessor/51391] pragma GCC diag ignored then warning of Winline activates -fno-inline
- Auto-submitted: auto-generated
- References: <bug-51391-4@http.gcc.gnu.org/bugzilla/>
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;