From e6855a2d2906226cbaaa5f8653e44e42596771c9 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Thu, 17 May 2001 18:12:27 +0000 Subject: except.h (protect_cleanup_actions): Remove it. * except.h (protect_cleanup_actions): Remove it. (lang_protect_cleanup_actions): Declare it. * except.c (protect_cleanup_actions): Remove it. (lang_protect_cleanup_actions): New variable. (init_eh): Don't make protect_cleanup_actions a GC root. (expand_eh_region_and_cleanup): Call lang_protect_cleanup_actions. (output_function_exception_table): Remove unused `align' variable. * varasm.c (assemble_external): Abort if we have not yet opened the assembly output file. * except.c (cp_protect_cleanup_actions): New function. (init_exception_processing): Don't set protect_cleanup_actions here. Do set lang_protect_cleanup_actions. From-SVN: r42218 --- gcc/varasm.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc/varasm.c') diff --git a/gcc/varasm.c b/gcc/varasm.c index 9b2744a..3e7b295 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -1625,6 +1625,13 @@ void assemble_external (decl) tree decl ATTRIBUTE_UNUSED; { + /* Because most platforms do not define ASM_OUTPUT_EXTERNAL, the + main body of this code is only rarely exercised. To provide some + testing, on all platforms, we make sure that the ASM_OUT_FILE is + open. If it's not, we should not be calling this function. */ + if (!asm_out_file) + abort (); + #ifdef ASM_OUTPUT_EXTERNAL if (DECL_P (decl) && DECL_EXTERNAL (decl) && TREE_PUBLIC (decl)) { -- cgit v1.1