DWARY
authorJason Merrill <merrill@gnu.org>
Thu, 3 Oct 1996 23:37:38 +0000 (23:37 +0000)
committerJason Merrill <merrill@gnu.org>
Thu, 3 Oct 1996 23:37:38 +0000 (23:37 +0000)
From-SVN: r12894

gcc/toplev.c

index 3373f7625b66a9efa261ef014767d485dbe17436..7ad7d220ebfc3ccc426c80f474814679936379a9 100644 (file)
@@ -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;