Commit a4200657 by Jason Merrill Committed by Richard Henderson

c-decl.c (c_expand_body): Call outlining_inline_function when emitting an inline…

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
parent 54ba1f0d
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> 2002-01-02 Richard Henderson <rth@redhat.com>
* dwarf2out.c (limbo_die_node): Add created_for member. * dwarf2out.c (limbo_die_node): Add created_for member.
......
/* Process declarations and variables for C compiler. /* Process declarations and variables for C compiler.
Copyright (C) 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 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. This file is part of GCC.
...@@ -6947,6 +6947,11 @@ c_expand_body (fndecl, nested_p, can_defer_p) ...@@ -6947,6 +6947,11 @@ c_expand_body (fndecl, nested_p, can_defer_p)
timevar_push (TV_EXPAND); 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) if (nested_p)
{ {
/* Make sure that we will evaluate variable-sized types involved /* Make sure that we will evaluate variable-sized types involved
......
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> 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
PR c++/5116, c++/764 reversion PR c++/5116, c++/764 reversion
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
building RTL. These routines are used both during actual parsing building RTL. These routines are used both during actual parsing
and during the instantiation of template functions. 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 Written by Mark Mitchell (mmitchell@usa.net) based on code found
formerly in parse.y and pt.c. formerly in parse.y and pt.c.
...@@ -2503,6 +2503,11 @@ expand_body (fn) ...@@ -2503,6 +2503,11 @@ expand_body (fn)
recorded when we finished processing the function. */ recorded when we finished processing the function. */
lineno = STMT_LINENO (DECL_SAVED_TREE (fn)); 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. */ /* Generate code for the function. */
genrtl_finish_function (fn); genrtl_finish_function (fn);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment