]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cp/decl2.c
2012-09-30 Sharad Singhai <singhai@google.com>
[thirdparty/gcc.git] / gcc / cp / decl2.c
index 4cff0516d776060e0fede79ea70f9104fbbbb9db..9b1a5a1856dbbbec569a4d541eae1070da5aa886 100644 (file)
@@ -3698,9 +3698,9 @@ cp_write_global_declarations (void)
   cgraph_process_same_body_aliases ();
 
   /* Handle -fdump-ada-spec[-slim] */
-  if (dump_enabled_p (TDI_ada))
+  if (dump_initialized_p (TDI_ada))
     {
-      if (get_dump_file_info (TDI_ada)->flags & TDF_SLIM)
+      if (get_dump_file_info (TDI_ada)->pflags & TDF_SLIM)
        collect_source_ref (main_input_filename);
       else
        collect_source_refs (global_namespace);