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
This commit is contained in:
parent
aef3607fef
commit
3b78de5632
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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},
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user