* semantics.c (expand_body) Do emit_associated_thunks before
authorJan Hubicka <jh@suse.cz>
Wed, 28 Jan 2004 20:15:40 +0000 (21:15 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 28 Jan 2004 20:15:40 +0000 (20:15 +0000)
expansion.

From-SVN: r76804

gcc/cp/ChangeLog
gcc/cp/semantics.c

index 2bd3883b0a01eb4b3e46f1e2c26a51dc582ce2d4..ba306b82ebe0e7f2448c583fda01198c1bdac133 100644 (file)
@@ -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"
index deb5b820ed4a317d06494a1a814f69a4e422daa3..4af197be85f7ff67351b91ad56c1dd8f6c6550a7 100644 (file)
@@ -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.  */