This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: inlining default


Jason Merrill wrote:-

> It looks like if (!optimize && flag_instrument_function_entry_exit), we
> will end up trying to do RTL inlining and fail.

Could you elaborate?  I don't see how the f_i_f_e_e = 1 case is
different from current CVS.  The code in question becomes

  if (flag_no_inline == -1)
    {
      if (optimize == 0)
	{
	  flag_no_inline = 1;
	  warn_inline = 0;
	}
      else
	flag_no_inline = 0;
    }

  if (optimize == 0 && warn_uninitialized == 1)
    warning ("-Wuninitialized is not supported without -O");

which, since flag_no_inline is -1 at the start, just

      if (optimize == 0)
	{
	  flag_no_inline = 1;
	  warn_inline = 0;
	}
      else
	flag_no_inline = 0;

  if (optimize == 0 && warn_uninitialized == 1)
    warning ("-Wuninitialized is not supported without -O");

which is a rearranged version of what is in CVS, since flag_no_inline
defaults to 0 in CVS.  Or have I misunderstood?

Neil.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]