This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: g++ memory bug.
- To: mrs at wrs dot com (Mike Stump)
- Subject: Re: g++ memory bug.
- From: Jason Merrill <jason at cygnus dot com>
- Date: 11 Jan 1999 22:47:34 -0800
- Cc: Theodore dot Papadopoulo at sophia dot inria dot fr, egcs-patches at cygnus dot com, mark at markmitchell dot com, Jose dot Gomes at sophia dot inria dot fr
- References: <199901120137.RAA01055@kankakee.wrs.com>
This situation is similar to the one for synthesized methods, though there
the user doesn't have any ability to prevent them from being inline. So I
ended up piggybacking on -finline-functions:
if (DECL_ARTIFICIAL (fndecl))
{
/* Do we really *want* to inline this synthesized method? */
int save_fif = flag_inline_functions;
flag_inline_functions = 1;
/* Turn off DECL_INLINE for the moment so function_cannot_inline_p
will check our size. */
DECL_INLINE (fndecl) = 0;
rest_of_compilation (fndecl);
flag_inline_functions = save_fif;
}
These two issues should use the same mechanism, though I would welcome a
cleaner one than my hack above.
Jason