This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATH: inline does not work with -O3 specified
- From: Herman ten Brugge <Haj dot Ten dot Brugge at net dot HCC dot nl>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 24 Jun 2002 21:14:04 +0100 (WEST)
- Subject: PATH: inline does not work with -O3 specified
Hello,
I notieced a problem in the current mainline release. The inlining does not
work when -O3 specified. The typo is in c-common.c (See patch below).
I do not have write permission so can not make the change after aproval.
Herman.
2002-24-06 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
* c-common.c: (c_common_post_options): Correct typo that disables
inlining at -O3.
--- c-common.c.org Mon Jun 24 20:51:43 2002
+++ c-common.c Mon Jun 24 20:51:45 2002
@@ -4279,7 +4279,7 @@ c_common_post_options ()
/* Use tree inlining if possible. Function instrumentation is only
done in the RTL level, so we disable tree inlining. */
- if (! flag_instrument_function_entry_exit)
+ if (flag_instrument_function_entry_exit)
{
if (!flag_no_inline)
flag_no_inline = 1;