Commit 89418a92 by Brendan Kehoe

toplev.c (rest_of_compilation): Make sure that the unwinder RTL is saved.

	* toplev.c (rest_of_compilation): Make sure that the unwinder RTL
	is saved.

From-SVN: r13289
parent 664041e6
...@@ -2954,12 +2954,9 @@ rest_of_compilation (decl) ...@@ -2954,12 +2954,9 @@ rest_of_compilation (decl)
goto exit_rest_of_compilation; goto exit_rest_of_compilation;
} }
/* From now on, allocate rtl in current_obstack, not in saveable_obstack. /* Add an unwinder for exception handling, if needed.
Note that that may have been done above, in save_for_inline_copying. This must be done before we finalize PIC code. */
The call to resume_temporary_allocation near the end of this function emit_unwinder ();
goes back to the usual state of affairs. */
rtl_in_current_obstack ();
#ifdef FINALIZE_PIC #ifdef FINALIZE_PIC
/* If we are doing position-independent code generation, now /* If we are doing position-independent code generation, now
...@@ -2970,8 +2967,14 @@ rest_of_compilation (decl) ...@@ -2970,8 +2967,14 @@ rest_of_compilation (decl)
FINALIZE_PIC; FINALIZE_PIC;
#endif #endif
/* Add an unwinder for exception handling, if needed. */ /* From now on, allocate rtl in current_obstack, not in saveable_obstack.
emit_unwinder (); Note that that may have been done above, in save_for_inline_copying.
The call to resume_temporary_allocation near the end of this function
goes back to the usual state of affairs. This must be done after
we've built up any unwinders for exception handling, and done
the FINALIZE_PIC work, if necessary. */
rtl_in_current_obstack ();
insns = get_insns (); insns = get_insns ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment