diff options
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 7 |
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); |