diff options
author | Richard Stallman <rms@gnu.org> | 1993-10-20 21:15:44 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-10-20 21:15:44 +0000 |
commit | 928eb3809f3473fe601bf5f917790b642a120132 (patch) | |
tree | 510e0ca4eacd3fb0fee62520ec3b434926ba5e38 /gcc | |
parent | 3fda2ab14c2a2e54309fb06165a661bf947283c1 (diff) | |
download | gcc-928eb3809f3473fe601bf5f917790b642a120132.zip gcc-928eb3809f3473fe601bf5f917790b642a120132.tar.gz gcc-928eb3809f3473fe601bf5f917790b642a120132.tar.bz2 |
(rest_of_decl_compilation): Use ASM_FINISH_DECLARE_OBJECT
unconditionally, but define it as no-op by default.
From-SVN: r5833
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/toplev.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index aa0cbd4..aa6ed31 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) { |