aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-09-16 02:55:26 +0000
committerRichard Stallman <rms@gnu.org>1992-09-16 02:55:26 +0000
commitfcc415d4592f5ea52f5e90fc7f58557b7bd1d12a (patch)
tree23c237fec705276a3bae9f9f15f8254f2e2d31e7 /gcc
parent04b5ab57e5c30c79476b89791b2c8d09e73a93e7 (diff)
downloadgcc-fcc415d4592f5ea52f5e90fc7f58557b7bd1d12a.zip
gcc-fcc415d4592f5ea52f5e90fc7f58557b7bd1d12a.tar.gz
gcc-fcc415d4592f5ea52f5e90fc7f58557b7bd1d12a.tar.bz2
(rest_of_decl_compilation): Call `dwarfout_file_scope_decl' immediately for...
(rest_of_decl_compilation): Call `dwarfout_file_scope_decl' immediately for actual *definitions* of file-scope variables (and file-scope typedefs too). From-SVN: r2135
Diffstat (limited to 'gcc')
-rw-r--r--gcc/toplev.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 061edbf..184ce04 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -2072,6 +2072,13 @@ rest_of_decl_compilation (decl, asmspec, top_level, at_end)
&& TREE_CODE (decl) == TYPE_DECL)
TIMEVAR (symout_time, sdbout_symbol (decl, 0));
#endif
+#ifdef DWARF_DEBUGGING_INFO
+ if (write_symbols == DWARF_DEBUG
+ && top_level
+ && (TREE_CODE (decl) == TYPE_DECL
+ || (TREE_CODE (decl) == VAR_DECL && DECL_INITIAL (decl))))
+ TIMEVAR (symout_time, dwarfout_file_scope_decl (decl, 0));
+#endif
}
/* Called after finishing a record, union or enumeral type. */