diff options
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/decl2.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 376cbf671fb..2fa9565a201 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2012-09-30 Sharad Singhai <singhai@google.com> + + * decl2.c (cp_write_global_declarations): Use a different method + to determine if the dump has ben initialized. + 2012-09-29 Paolo Carlini <paolo.carlini@oracle.com> PR c++/54738 diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 4cff0516d77..9b1a5a1856d 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -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); |