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]

Re: Patch for current_function_cannot_inline



  In message <199806060546.WAA01164@yorick.cygnus.com>you write:
  > In C++, an inline function effectively has only one definition, so any
  > static variables must also be commonized if the function is inlined.  This
  > is more trouble than it's worth to deal with, so we disable inlining of
  > such functions.  Which needs a backend flag to prevent -O3 from biting me.
  > 
  > 1998-06-05  Jason Merrill  <jason@yorick.cygnus.com>
  > 
  > 	* function.c: Define current_function_cannot_inline.
  > 	(push_function_context_to): Save it.
  > 	(pop_function_context_from): Restore it.
  > 	* function.h (struct function): Provide it a home.
  > 	* output.h: Declare it.
  > 	* integrate.c (function_cannot_inline_p): Check it.
Seems good to me. 

jeff


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