Always do output_function_exception_table before assemble_end_function.

From-SVN: r163974
This commit is contained in:
Richard Henderson 2010-09-07 14:45:00 -07:00 committed by Richard Henderson
parent fa9a71936a
commit 182a0c1121
2 changed files with 8 additions and 9 deletions

View File

@ -1,3 +1,8 @@
2010-09-07 Richard Henderson <rth@redhat.com>
* final.c (rest_of_handle_final): Unconditionally do
output_function_exception_table before assemble_end_function.
2010-09-07 Jan Hubicka <jh@suse.cz> 2010-09-07 Jan Hubicka <jh@suse.cz>
* tree-inline.c (tree_inlinable_function_p): Do not test DECL_REPLACEABLE_P. * tree-inline.c (tree_inlinable_function_p): Do not test DECL_REPLACEABLE_P.

View File

@ -4240,19 +4240,13 @@ rest_of_handle_final (void)
final (get_insns (), asm_out_file, optimize); final (get_insns (), asm_out_file, optimize);
final_end_function (); final_end_function ();
#ifdef TARGET_UNWIND_INFO /* The IA-64 ".handlerdata" directive must be issued before the ".endp"
/* ??? The IA-64 ".handlerdata" directive must be issued before directive that closes the procedure descriptor. Similarly, for x64 SEH.
the ".endp" directive that closes the procedure descriptor. */ Otherwise it's not strictly necessary, but it doesn't hurt either. */
output_function_exception_table (fnname); output_function_exception_table (fnname);
#endif
assemble_end_function (current_function_decl, fnname); assemble_end_function (current_function_decl, fnname);
#ifndef TARGET_UNWIND_INFO
/* Otherwise, it feels unclean to switch sections in the middle. */
output_function_exception_table (fnname);
#endif
user_defined_section_attribute = false; user_defined_section_attribute = false;
/* Free up reg info memory. */ /* Free up reg info memory. */