From 928eb3809f3473fe601bf5f917790b642a120132 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Wed, 20 Oct 1993 21:15:44 +0000 Subject: [PATCH] (rest_of_decl_compilation): Use ASM_FINISH_DECLARE_OBJECT unconditionally, but define it as no-op by default. From-SVN: r5833 --- gcc/toplev.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/toplev.c b/gcc/toplev.c index aa0cbd4a9e2..aa6ed31ed76 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2218,6 +2218,12 @@ rest_of_decl_compilation (decl, asmspec, top_level, at_end) { /* Declarations of variables, and of functions defined elsewhere. */ +/* The most obvious approach, to put an #ifndef around where + this macro is used, doesn't work since it's inside a macro call. */ +#ifndef ASM_FINISH_DECLARE_OBJECT +#define ASM_FINISH_DECLARE_OBJECT(FILE, DECL, TOP, END) +#endif + /* Forward declarations for nested functions are not "external", but we need to treat them as if they were. */ if (TREE_STATIC (decl) || DECL_EXTERNAL (decl) @@ -2239,10 +2245,8 @@ rest_of_decl_compilation (decl, asmspec, top_level, at_end) && (DECL_INITIAL (decl) == 0 || DECL_INITIAL (decl) == error_mark_node))) assemble_variable (decl, top_level, at_end, 0); -#ifdef ASM_FINISH_DECLARE_OBJECT ASM_FINISH_DECLARE_OBJECT (asm_out_file, decl, top_level, at_end); -#endif }); else if (DECL_REGISTER (decl) && asmspec != 0) {