(assemble_end_function): Switch back to function section after
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 9 Jun 1997 19:12:58 +0000 (15:12 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 9 Jun 1997 19:12:58 +0000 (15:12 -0400)
outputting constant pool.

From-SVN: r14184

gcc/varasm.c

index 3d4e87afa0bf71c74e1f650400c1ce83cbcd1a0d..29257ddb55d0b8213b66d961cf2e84aaba75c3c9 100644 (file)
@@ -1043,7 +1043,10 @@ assemble_end_function (decl, fnname)
   ASM_DECLARE_FUNCTION_SIZE (asm_out_file, fnname, decl);
 #endif
   if (! CONSTANT_POOL_BEFORE_FUNCTION)
-    output_constant_pool (fnname, decl);
+    {
+      output_constant_pool (fnname, decl);
+      function_section (decl); /* need to switch back */
+    }
 
   /* Output any constants which should appear after the function.  */
   output_after_function_constants ();