gcc 3.1 bug: flag_no_inline incorrectly set

Anton Blanchard anton@samba.org
Sun Apr 28 03:16:00 GMT 2002


 
> Anton, could you cook up the appropriate ChangeLog entry?
> Please always do this in the future for changes that you submit.
> Thanks.

Sure.

2002-04-27  Anton Blanchard  <anton@samba.org>
	    Alan Modra  <amodra@bigpond.net.au>

	    * c-common.c: (c_common_post_options) A check for
	    function instrumentation was reversed. Fixes -Winline.


--- gcc_3_1_orig/gcc/c-common.c	Sun Apr 28 15:26:13 2002
+++ gcc_3_1/gcc/c-common.c	Sun Apr 28 14:51:27 2002
@@ -4134,7 +4133,7 @@
 
   /* 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;



More information about the Gcc-bugs mailing list