summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-28 20:15:40 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-28 20:15:40 +0000
commit9dcb7175a2d900c25d2400cbeef6484aadc8f9fc (patch)
tree8a81a16e9131f613fa39d04b543bbb5f21bcedad
parent0e6605c4ba9a8640ffb2a4522287fb4a11b229af (diff)
downloadppe42-gcc-9dcb7175a2d900c25d2400cbeef6484aadc8f9fc.tar.gz
ppe42-gcc-9dcb7175a2d900c25d2400cbeef6484aadc8f9fc.zip
* semantics.c (expand_body) Do emit_associated_thunks before
expansion. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76804 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/semantics.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 2bd3883b0a0..ba306b82ebe 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2004-01-28 Jan Hubicka <jh@suse.cz>
+
+ * semantics.c (expand_body) Do emit_associated_thunks before
+ expansion.
+
2004-01-27 Devang Patel <dpatel@apple.com>
* name-lookup.c: Include "debug.h"
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index deb5b820ed4..4af197be85f 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. */
OpenPOWER on IntegriCloud