summaryrefslogtreecommitdiff
path: root/gcc/c/c-decl.c
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-04 08:51:31 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-04 08:51:31 +0000
commitef34afc19c54b5ba436c4439906f2c0f7ee817ec (patch)
treea694463ed7d1b4928ebd657f78a634e247a46cdb /gcc/c/c-decl.c
parentbd565b14d771c0ace8e64dbec0c28d5095ddb078 (diff)
downloadgcc-ef34afc19c54b5ba436c4439906f2c0f7ee817ec.tar.gz
2012-10-04 Arnaud Charlet <charlet@adacore.com>
* dumpfile.h, dumpfile.c: Remove TDI_ada. c-family/ * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW. * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition out of dumpfile.h. c/ * c-decl.c (c_write_global_declarations): Fix handling of -fdump-ada-spec*. cp/ * decl2.c (cp_write_global_declarations): Fix handling of -fdump-ada-spec*. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192067 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c/c-decl.c')
-rw-r--r--gcc/c/c-decl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c
index 1b4d764ca49..a4a8108d279 100644
--- a/gcc/c/c-decl.c
+++ b/gcc/c/c-decl.c
@@ -10079,10 +10079,10 @@ c_write_global_declarations (void)
gcc_assert (!current_scope);
/* Handle -fdump-ada-spec[-slim]. */
- if (dump_initialized_p (TDI_ada))
+ if (flag_dump_ada_spec || flag_dump_ada_spec_slim)
{
/* Build a table of files to generate specs for */
- if (get_dump_file_info (TDI_ada)->pflags & TDF_SLIM)
+ if (flag_dump_ada_spec_slim)
collect_source_ref (main_input_filename);
else
for_each_global_decl (collect_source_ref_cb);