summaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1997-06-09 19:12:58 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1997-06-09 19:12:58 +0000
commite96a60f8d180a06fb0d052bd1997255e36bfef32 (patch)
treea38a0caa4b40fac74070e42be1eea336f5f50896 /gcc/varasm.c
parent1f42ecdca83655d00e3e92746b776758c6d163d1 (diff)
downloadgcc-e96a60f8d180a06fb0d052bd1997255e36bfef32.tar.gz
(assemble_end_function): Switch back to function section after
outputting constant pool. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14184 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 3d4e87afa0b..29257ddb55d 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -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 ();