From 35d8c8e21f5752ba6e9836ecaa4d173ef7f3a57e Mon Sep 17 00:00:00 2001 From: Steven Bosscher Date: Sun, 26 Jan 2003 15:40:22 +0100 Subject: avr.h, [...]: Undefine ASM_FINISH_DECLARE_OBJECT before defining it. 2003-01-26 Steven Bosscher * config/avr/avr.h, config/cris/aout.h, config/elfos.h, config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine ASM_FINISH_DECLARE_OBJECT before defining it. * toplev.c (rest_of_decl_compilation): Don't define ASM_FINISH_DECLARE_OBJECT. Only use it if it is defined. (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function parameters for DWARF2 targets because they _are_ used. From-SVN: r61851 --- gcc/toplev.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'gcc/toplev.c') diff --git a/gcc/toplev.c b/gcc/toplev.c index a624920..3ab85ad 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2249,14 +2249,6 @@ rest_of_decl_compilation (decl, asmspec, top_level, at_end) int top_level; int 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 - /* We deferred calling assemble_alias so that we could collect other attributes such as visibility. Emit the alias now. */ { @@ -2284,11 +2276,14 @@ rest_of_decl_compilation (decl, asmspec, top_level, at_end) is seen. But at end of compilation, do output code for them. */ if (at_end || !DECL_DEFER_OUTPUT (decl)) assemble_variable (decl, top_level, at_end, 0); + +#ifdef ASM_FINISH_DECLARE_OBJECT if (decl == last_assemble_variable_decl) { ASM_FINISH_DECLARE_OBJECT (asm_out_file, decl, top_level, at_end); } +#endif timevar_pop (TV_VARCONST); } @@ -2342,7 +2337,8 @@ rest_of_decl_compilation (decl, asmspec, top_level, at_end) void rest_of_type_compilation (type, toplev) -#if defined(DBX_DEBUGGING_INFO) || defined(XCOFF_DEBUGGING_INFO) || defined (SDB_DEBUGGING_INFO) +#if defined (DBX_DEBUGGING_INFO) || defined (XCOFF_DEBUGGING_INFO) \ + || defined (SDB_DEBUGGING_INFO) || defined (DWARF2_DEBUGGING_INFO) tree type; int toplev; #else -- cgit v1.1