aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/semantics.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2002-01-02 13:28:43 -0500
committerRichard Henderson <rth@gcc.gnu.org>2002-01-02 10:28:43 -0800
commita4200657995ab7821e56ddd2688e082328e75b51 (patch)
treedc3b10dbde15efb798eab0e5c64bc291a19ee7c3 /gcc/cp/semantics.c
parent54ba1f0dee5132daad89f2d238141f347fdc9655 (diff)
downloadgcc-a4200657995ab7821e56ddd2688e082328e75b51.zip
gcc-a4200657995ab7821e56ddd2688e082328e75b51.tar.gz
gcc-a4200657995ab7821e56ddd2688e082328e75b51.tar.bz2
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
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r--gcc/cp/semantics.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index b04a13a..06c1ac2 100644
--- a/gcc/cp/semantics.c
+++ b/gcc/cp/semantics.c
@@ -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);