From de81ffd4c7ab97a0019857b0d9b7dd7f7721c583 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Wed, 28 Jan 2004 21:15:40 +0100 Subject: * semantics.c (expand_body) Do emit_associated_thunks before expansion. From-SVN: r76804 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/semantics.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 2bd3883..ba306b8 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2004-01-28 Jan Hubicka + + * semantics.c (expand_body) Do emit_associated_thunks before + expansion. + 2004-01-27 Devang Patel * name-lookup.c: Include "debug.h" diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index deb5b82..4af197b 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -2885,6 +2885,9 @@ expand_body (tree fn) /* ??? When is this needed? */ saved_function = current_function_decl; + /* Emit any thunks that should be emitted at the same time as FN. */ + emit_associated_thunks (fn); + timevar_push (TV_INTEGRATION); optimize_function (fn); timevar_pop (TV_INTEGRATION); @@ -2895,9 +2898,6 @@ expand_body (tree fn) extract_interface_info (); - /* Emit any thunks that should be emitted at the same time as FN. */ - emit_associated_thunks (fn); - /* If this function is marked with the constructor attribute, add it to the list of functions to be called along with constructors from static duration objects. */ -- cgit v1.1