summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 17318e25c44..9cbd513fca2 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -3201,6 +3201,9 @@ rest_of_compilation (decl)
goto exit_rest_of_compilation;
}
+ /* Emit code to get eh context, if needed. */
+ emit_eh_context ();
+
/* Add an unwinder for exception handling, if needed.
This must be done before we finalize PIC code. */
emit_unwinder ();