diff options
author | Steven Bosscher <s.bosscher@student.tudelft.nl> | 2003-01-26 15:40:22 +0100 |
---|---|---|
committer | Andreas Jaeger <aj@gcc.gnu.org> | 2003-01-26 15:40:22 +0100 |
commit | 35d8c8e21f5752ba6e9836ecaa4d173ef7f3a57e (patch) | |
tree | 1ad40e789d391d8f3140aebb5c259c027424f6a7 /gcc/toplev.c | |
parent | e5fcbd77a60d3f80b11bfe32ecd17a1fb491024a (diff) | |
download | gcc-35d8c8e21f5752ba6e9836ecaa4d173ef7f3a57e.zip gcc-35d8c8e21f5752ba6e9836ecaa4d173ef7f3a57e.tar.gz gcc-35d8c8e21f5752ba6e9836ecaa4d173ef7f3a57e.tar.bz2 |
avr.h, [...]: Undefine ASM_FINISH_DECLARE_OBJECT before defining it.
2003-01-26 Steven Bosscher <s.bosscher@student.tudelft.nl>
* 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
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 14 |
1 files changed, 5 insertions, 9 deletions
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 |