summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authoraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-26 14:40:22 +0000
committeraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-26 14:40:22 +0000
commit06b9f7dcf9ff90ad68b7799ee8afe85374c1bf06 (patch)
tree1ad40e789d391d8f3140aebb5c259c027424f6a7 /gcc/toplev.c
parentbefaf436af84ed695be33782d7eb5daa67394583 (diff)
downloadgcc-06b9f7dcf9ff90ad68b7799ee8afe85374c1bf06.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61851 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index a62492009d8..3ab85ad97f8 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