aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.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/c-decl.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/c-decl.c')
-rw-r--r--gcc/c-decl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 495425b..eb29b17 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -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