c-decl.c (c_expand_body): Call outlining_inline_function when emitting an inline function out of line.

* c-decl.c (c_expand_body): Call outlining_inline_function when
        emitting an inline function out of line.

        * semantics.c (expand_body): Call outlining_inline_function when
        emitting an inline function out of line.

From-SVN: r48479
This commit is contained in:
Jason Merrill 2002-01-02 13:28:43 -05:00 committed by Richard Henderson
parent 54ba1f0dee
commit a420065799
4 changed files with 22 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-01-02 Jason Merrill <jason@redhat.com>
* c-decl.c (c_expand_body): Call outlining_inline_function when
emitting an inline function out of line.
2002-01-02 Richard Henderson <rth@redhat.com>
* dwarf2out.c (limbo_die_node): Add created_for member.

View File

@ -1,6 +1,6 @@
/* Process declarations and variables for C compiler.
Copyright (C) 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2001 Free Software Foundation, Inc.
2001, 2002 Free Software Foundation, Inc.
This file is part of GCC.
@ -6947,6 +6947,11 @@ c_expand_body (fndecl, nested_p, can_defer_p)
timevar_push (TV_EXPAND);
if (DECL_INLINE (fndecl))
/* Do any preparation such as emitting abstract debug info for the
inline before it gets mangled by optimization. */
(*debug_hooks->outlining_inline_function) (fndecl);
if (nested_p)
{
/* Make sure that we will evaluate variable-sized types involved

View File

@ -1,3 +1,8 @@
2002-01-02 Jason Merrill <jason@redhat.com>
* semantics.c (expand_body): Call outlining_inline_function when
emitting an inline function out of line.
2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
PR c++/5116, c++/764 reversion

View File

@ -3,7 +3,7 @@
building RTL. These routines are used both during actual parsing
and during the instantiation of template functions.
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
Written by Mark Mitchell (mmitchell@usa.net) based on code found
formerly in parse.y and pt.c.
@ -2503,6 +2503,11 @@ expand_body (fn)
recorded when we finished processing the function. */
lineno = STMT_LINENO (DECL_SAVED_TREE (fn));
if (DECL_INLINE (fn))
/* Do any preparation such as emitting abstract debug info for the
inline before it gets mangled by optimization. */
(*debug_hooks->outlining_inline_function) (fn);
/* Generate code for the function. */
genrtl_finish_function (fn);