c-decl.c (c_expand_body): Call outlining_inline_function when emitting an inline...
authorJason Merrill <jason@redhat.com>
Wed, 2 Jan 2002 18:28:43 +0000 (13:28 -0500)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 2 Jan 2002 18:28:43 +0000 (10:28 -0800)
        * 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

gcc/ChangeLog
gcc/c-decl.c
gcc/cp/ChangeLog
gcc/cp/semantics.c

index be53b578111ccdeb5062f13f9e3b38432e9dad0b..bade580d427431ee5425994dd9b2e9456d0215a2 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * dwarf2out.c (limbo_die_node): Add created_for member.
index 495425b2994a03a876c3c3c5cca53df57be98cbb..eb29b170a5c86f51447f57859ef52608bb6ffd01 100644 (file)
@@ -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
index a5f99e6076cec6116e6cb8ae64bab9c6b35d6c82..4bfd77c10cdb61614f9ebc007588555d6a05c4e3 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        PR c++/5116, c++/764 reversion
index b04a13aee76fb843fd3f9d7e3dab70b3ec82f4dd..06c1ac21c33634a242e8c47b0d3259f5925b9e70 100644 (file)
@@ -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);