This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch for current_function_cannot_inline
- To: Jason Merrill <jason at cygnus dot com>
- Subject: Re: Patch for current_function_cannot_inline
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 08 Jun 1998 03:01:44 -0600
- cc: egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
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