aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-decl.c
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2012-10-04 10:51:31 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2012-10-04 10:51:31 +0200
commit3b78de5632a6612d5b443345ae728060fed71a13 (patch)
treea694463ed7d1b4928ebd657f78a634e247a46cdb /gcc/c/c-decl.c
parentaef3607fef6a00ff80b36cc096f5f29db2c964e1 (diff)
downloadgcc-3b78de5632a6612d5b443345ae728060fed71a13.zip
gcc-3b78de5632a6612d5b443345ae728060fed71a13.tar.gz
gcc-3b78de5632a6612d5b443345ae728060fed71a13.tar.bz2
dumpfile.h, dumpfile.c: Remove TDI_ada.
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*. From-SVN: r192067
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 1b4d764..a4a8108 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);