summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-02 06:14:50 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-02 06:14:50 +0000
commite8bdbc3dbd93f8de0b305be9abd64a5a2913192d (patch)
treec2cb4b199e5d0afe18182d9464f71ba116938713 /gcc
parent6f1525a3085540d54f1ed211554452dcfe1a23e9 (diff)
downloadgcc-e8bdbc3dbd93f8de0b305be9abd64a5a2913192d.tar.gz
* cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
before calling tree_inlinable_function_p. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68819 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/cgraphunit.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 537735db545..0b7a46145c4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
+
+ * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
+ before calling tree_inlinable_function_p.
+
2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index f9e2ff6c2f8..a904eb544ea 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