]> gcc.gnu.org Git - gcc.git/commitdiff
dumpfile.h, dumpfile.c: Remove TDI_ada.
authorArnaud Charlet <charlet@gcc.gnu.org>
Thu, 4 Oct 2012 08:51:31 +0000 (10:51 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 4 Oct 2012 08:51:31 +0000 (10:51 +0200)
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

gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-ada-spec.c
gcc/c-family/c.opt
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/dumpfile.c
gcc/dumpfile.h

index e7006437fa62529a4d0fa4558ade082c3c870366..dd6a3b8e0ab0dbd3326d71dff051f5c2c2eb60b4 100644 (file)
@@ -1,3 +1,7 @@
+2012-10-04  Arnaud Charlet  <charlet@adacore.com>
+
+       * dumpfile.h, dumpfile.c: Remove TDI_ada.
+
 2012-10-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
 
        * config/i386/i386.c (ix86_dep_by_shift_count_body) : Add
index c26014ec469706f92fcf6848e259d276c8ea770e..0d112cfe7a7e9c7b04aaf1b903bd4dcd211176d0 100644 (file)
@@ -1,7 +1,13 @@
+2012-10-04  Arnaud Charlet  <charlet@adacore.com>
+
+       * 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.
+
 2012-09-25  Dehao Chen  <dehao@google.com>
 
        PR middle-end/54645
-       * c-family/c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
+       * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
        map when read in the pch.
 
 2012-09-18 Arnaud Charlet  <charlet@adacore.com>
index 1e27e2c1e25f89e7bf09107a27b0fb7d36302e75..4f38a63ad897ca1ed70a21411059c21805929a03 100644 (file)
@@ -2535,7 +2535,6 @@ print_ada_declaration (pretty_printer *buffer, tree t, tree type,
   int is_class = false;
   tree name = TYPE_NAME (TREE_TYPE (t));
   tree decl_name = DECL_NAME (t);
-  bool dump_internal = get_dump_file_info (TDI_ada)->pflags & TDF_RAW;
   tree orig = NULL_TREE;
 
   if (cpp_check && cpp_check (t, IS_TEMPLATE))
@@ -2705,8 +2704,7 @@ print_ada_declaration (pretty_printer *buffer, tree t, tree type,
     }
   else
     {
-      if (!dump_internal
-         && TREE_CODE (t) == VAR_DECL
+      if (TREE_CODE (t) == VAR_DECL
          && decl_name
          && *IDENTIFIER_POINTER (decl_name) == '_')
        return 0;
@@ -2796,8 +2794,7 @@ print_ada_declaration (pretty_printer *buffer, tree t, tree type,
 
       /* If this function has an entry in the dispatch table, we cannot
         omit it.  */
-      if (!dump_internal && !DECL_VINDEX (t)
-         && *IDENTIFIER_POINTER (decl_name) == '_')
+      if (!DECL_VINDEX (t) && *IDENTIFIER_POINTER (decl_name) == '_')
        {
          if (IDENTIFIER_POINTER (decl_name)[1] == '_')
            return 0;
index 6aa53a577441bfc12add314b3c17ab7a5dc1c5f0..b02c515327c23fd91ae7f43bdffacab9a283f262 100644 (file)
@@ -799,6 +799,14 @@ fdollars-in-identifiers
 C ObjC C++ ObjC++
 Permit '$' as an identifier character
 
+fdump-ada-spec
+C ObjC C++ ObjC++ RejectNegative Var(flag_dump_ada_spec)
+Write all declarations as Ada code transitively
+
+fdump-ada-spec-slim
+C ObjC C++ ObjC++ RejectNegative Var(flag_dump_ada_spec_slim)
+Write all declarations as Ada code for the given file only
+
 felide-constructors
 C++ ObjC++ Var(flag_elide_constructors) Init(1)
 
index 770683c6ab57dae537ef172caa842c8be65fc44a..257b752cca4510c6b4ec47c8e73800cebb35683e 100644 (file)
@@ -1,3 +1,8 @@
+2012-10-04  Arnaud Charlet  <charlet@adacore.com>
+
+       * c-decl.c (c_write_global_declarations): Fix handling of
+       -fdump-ada-spec*.
+
 2012-09-30  Sharad Singhai  <singhai@google.com>
 
        * c-decl.c (c_write_global_declarations): Use a different method
index 1b4d764ca4953d6f446278bab66f9c05fbf01983..a4a8108d27919f8fc469f0ba177dd212353aa039 100644 (file)
@@ -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);
index 223e42a0d4c9f434ecbdba7935a9f013645cc831..fe72a9ca7e4d97d01ac974717266e2116adfb97e 100644 (file)
@@ -1,3 +1,8 @@
+2012-10-04  Arnaud Charlet  <charlet@adacore.com>
+        
+        * decl2.c (cp_write_global_declarations): Fix handling of
+        -fdump-ada-spec*.
+
 2012-10-03  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/54777
index 9b1a5a1856dbbbec569a4d541eae1070da5aa886..87e38d3bf6fb5c0dc6af44dd25d047abb30df05b 100644 (file)
@@ -3698,9 +3698,9 @@ cp_write_global_declarations (void)
   cgraph_process_same_body_aliases ();
 
   /* Handle -fdump-ada-spec[-slim] */
-  if (dump_initialized_p (TDI_ada))
+  if (flag_dump_ada_spec || flag_dump_ada_spec_slim)
     {
-      if (get_dump_file_info (TDI_ada)->pflags & TDF_SLIM)
+      if (flag_dump_ada_spec_slim)
        collect_source_ref (main_input_filename);
       else
        collect_source_refs (global_namespace);
index 92d1409be081a37888d0c115ab885415b6062e7d..2f610b6c259e67fb1556a72fdafed09830bfc168 100644 (file)
@@ -57,8 +57,7 @@ static struct dump_file_info dump_files[TDI_end] =
    0, 0, 0, 5},
   {".vcg", "tree-vcg", NULL, NULL, NULL, NULL, NULL, TDF_TREE,
    0, 0, 0, 6},
-  {".ads", "ada-spec", NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0, 7},
-#define FIRST_AUTO_NUMBERED_DUMP 8
+#define FIRST_AUTO_NUMBERED_DUMP 7
 
   {NULL, "tree-all", NULL, NULL, NULL, NULL, NULL, TDF_TREE,
    0, 0, 0, 0},
index cbaf47de4221fa356b77eba88ebd01c2d990310f..87a2c728623b6668b9fb6129890596abb1a4a560 100644 (file)
@@ -37,7 +37,6 @@ enum tree_dump_index
   TDI_nested,                  /* dump each function after unnesting it */
   TDI_vcg,                     /* create a VCG graph file for each
                                   function's flowgraph.  */
-  TDI_ada,                      /* dump declarations in Ada syntax.  */
   TDI_tree_all,                 /* enable all the GENERIC/GIMPLE dumps.  */
   TDI_rtl_all,                  /* enable all the RTL dumps.  */
   TDI_ipa_all,                  /* enable all the IPA dumps.  */
This page took 0.133061 seconds and 5 git commands to generate.