From 2b77deccd9ded4565364a242f9bb17d6fe2285c8 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 3 Oct 1996 23:37:38 +0000 Subject: [PATCH] DWARY From-SVN: r12894 --- gcc/toplev.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/gcc/toplev.c b/gcc/toplev.c index 3373f7625b6..7ad7d220ebf 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2520,6 +2520,7 @@ compile_file (name) and definitions which have not yet been forced out. */ if (write_symbols == DWARF_DEBUG + && DECL_RTL (decl) != 0 && (TREE_CODE (decl) != FUNCTION_DECL || !DECL_INITIAL (decl))) TIMEVAR (symout_time, dwarfout_file_scope_decl (decl, 1)); #endif @@ -2751,6 +2752,10 @@ rest_of_type_compilation (type, toplev) if (write_symbols == SDB_DEBUG) TIMEVAR (symout_time, sdbout_symbol (TYPE_STUB_DECL (type), !toplev)); #endif +#ifdef DWARF_DEBUGGING_INFO + if (write_symbols == DWARF_DEBUG) + TIMEVAR (symout_time, dwarfout_file_scope_decl (TYPE_STUB_DECL (type), 0)); +#endif } /* This is called from finish_function (within yyparse) @@ -3969,15 +3974,6 @@ main (argc, argv, envp) warning ("-Wuninitialized is not supported without -O"); } -#if defined(DWARF_DEBUGGING_INFO) - if (write_symbols == DWARF_DEBUG - && strcmp (language_string, "GNU C++") == 0) - { - warning ("-g option not supported for C++ on systems using the DWARF debugging format"); - write_symbols = NO_DEBUG; - } -#endif /* defined(DWARF_DEBUGGING_INFO) */ - #ifdef OVERRIDE_OPTIONS /* Some machines may reject certain combinations of options. */ OVERRIDE_OPTIONS; -- 2.30.2