From: Jason Merrill Date: Wed, 2 Jan 2002 18:28:43 +0000 (-0500) Subject: c-decl.c (c_expand_body): Call outlining_inline_function when emitting an inline... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a4200657995ab7821e56ddd2688e082328e75b51;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index be53b578111..bade580d427 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-01-02 Jason Merrill + + * c-decl.c (c_expand_body): Call outlining_inline_function when + emitting an inline function out of line. + 2002-01-02 Richard Henderson * dwarf2out.c (limbo_die_node): Add created_for member. diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 495425b2994..eb29b170a5c 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 diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index a5f99e6076c..4bfd77c10cd 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2002-01-02 Jason Merrill + + * semantics.c (expand_body): Call outlining_inline_function when + emitting an inline function out of line. + 2002-01-02 Nathan Sidwell PR c++/5116, c++/764 reversion diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index b04a13aee76..06c1ac21c33 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);