From: Jan Hubicka Date: Wed, 2 Jul 2003 06:14:50 +0000 (+0200) Subject: cgraphunit.c (cgraph_finalize_unit): Set current_function_decl before calling tree_in... X-Git-Tag: releases/gcc-3.4.0~5238 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0184bd46b030b4024e07d8e93e87c4b9b7b9f7e6;p=thirdparty%2Fgcc.git cgraphunit.c (cgraph_finalize_unit): Set current_function_decl before calling tree_inlinable_function_p. * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl before calling tree_inlinable_function_p. From-SVN: r68819 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 537735db5457..0b7a46145c4c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka + + * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl + before calling tree_inlinable_function_p. + 2003-07-02 Rainer Orth * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5 diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index f9e2ff6c2f82..a904eb544eaf 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -165,6 +165,7 @@ cgraph_finalize_compilation_unit () if (lang_hooks.callgraph.lower_function) (*lang_hooks.callgraph.lower_function) (decl); + current_function_decl = node->decl; if (!node->needed && !DECL_COMDAT (node->decl)) node->local.can_inline_once = tree_inlinable_function_p (decl, 1); else