Commit 58aca9d9 by Nathan Sidwell Committed by Nathan Sidwell

invoke.texi (fdump-translation-unit): Delete documentation.

	gcc/
	* doc/invoke.texi (fdump-translation-unit): Delete documentation.
	(fdump-lang): Document 'raw' option.
	* dumpfile.h (TDI_tu): Delete.
	* dumpfile.c (dump_files): Remove translation-unit.
	(FIRST_AUTO_NUMBERED_DUMP): Decrement.
	gcc/cp/
	* cp-objcp-common.c (cp_register_dumps): Register raw dumper.
	* cp-tree.h (raw_dump_id): Declare.
	* decl2.c (raw_dump_id): Define.
	(dump_tu): Use raw_dump_id.
	gcc/c/
	* c-decl.c (c_parse_final_cleanups): Drop TDI_tu handling.

From-SVN: r248333
parent 6aea3c37
2017-05-22 Nathan Sidwell <nathan@acm.org>
* doc/invoke.texi (fdump-translation-unit): Delete documentation.
(fdump-lang): Document 'raw' option.
* dumpfile.h (TDI_tu): Delete.
* dumpfile.c (dump_files): Remove translation-unit.
(FIRST_AUTO_NUMBERED_DUMP): Decrement.
2017-05-22 Georg-Johann Lay <avr@gjlay.de> 2017-05-22 Georg-Johann Lay <avr@gjlay.de>
* config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile" * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
......
2017-05-22 Nathan Sidwell <nathan@acm.org>
* c-decl.c (c_parse_final_cleanups): Drop TDI_tu handling.
2017-05-19 Thomas Schwinge <thomas@codesourcery.com> 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
* c-parser.c (c_parser_omp_clause_default): Handle * c-parser.c (c_parser_omp_clause_default): Handle
......
...@@ -11214,18 +11214,6 @@ c_parse_final_cleanups (void) ...@@ -11214,18 +11214,6 @@ c_parse_final_cleanups (void)
dump_ada_specs (collect_all_refs, NULL); dump_ada_specs (collect_all_refs, NULL);
} }
if (ext_block)
{
tree tmp = BLOCK_VARS (ext_block);
dump_flags_t flags;
FILE * stream = dump_begin (TDI_tu, &flags);
if (stream && tmp)
{
dump_node (tmp, flags & ~TDF_SLIM, stream);
dump_end (TDI_tu, stream);
}
}
/* Process all file scopes in this compilation, and the external_scope, /* Process all file scopes in this compilation, and the external_scope,
through wrapup_global_declarations. */ through wrapup_global_declarations. */
FOR_EACH_VEC_ELT (*all_translation_units, i, t) FOR_EACH_VEC_ELT (*all_translation_units, i, t)
......
2017-05-22 Nathan Sidwell <nathan@acm.org> 2017-05-22 Nathan Sidwell <nathan@acm.org>
* cp-objcp-common.c (cp_register_dumps): Register raw dumper.
* cp-tree.h (raw_dump_id): Declare.
* decl2.c (raw_dump_id): Define.
(dump_tu): Use raw_dump_id.
* config-lang.in (gtfiles): Sort list, break lines. * config-lang.in (gtfiles): Sort list, break lines.
* cp-tree.h (CPTI_TERMINATE, CPTI_CALL_UNEXPECTED): Rename to ... * cp-tree.h (CPTI_TERMINATE, CPTI_CALL_UNEXPECTED): Rename to ...
......
...@@ -359,6 +359,9 @@ cp_register_dumps (gcc::dump_manager *dumps) ...@@ -359,6 +359,9 @@ cp_register_dumps (gcc::dump_manager *dumps)
{ {
class_dump_id = dumps->dump_register class_dump_id = dumps->dump_register
(".class", "lang-class", "lang-class", DK_lang, OPTGROUP_NONE, false); (".class", "lang-class", "lang-class", DK_lang, OPTGROUP_NONE, false);
raw_dump_id = dumps->dump_register
(".raw", "lang-raw", "lang-raw", DK_lang, OPTGROUP_NONE, false);
} }
void void
......
...@@ -5776,6 +5776,7 @@ extern cp_parameter_declarator *no_parameters; ...@@ -5776,6 +5776,7 @@ extern cp_parameter_declarator *no_parameters;
/* Various dump ids. */ /* Various dump ids. */
extern int class_dump_id; extern int class_dump_id;
extern int raw_dump_id;
/* in call.c */ /* in call.c */
extern bool check_dtor_name (tree, tree); extern bool check_dtor_name (tree, tree);
......
...@@ -49,6 +49,9 @@ along with GCC; see the file COPYING3. If not see ...@@ -49,6 +49,9 @@ along with GCC; see the file COPYING3. If not see
#include "c-family/c-ada-spec.h" #include "c-family/c-ada-spec.h"
#include "asan.h" #include "asan.h"
/* Id for dumping the raw trees. */
int raw_dump_id;
extern cpp_reader *parse_in; extern cpp_reader *parse_in;
/* This structure contains information about the initializations /* This structure contains information about the initializations
...@@ -4362,12 +4365,10 @@ static void ...@@ -4362,12 +4365,10 @@ static void
dump_tu (void) dump_tu (void)
{ {
dump_flags_t flags; dump_flags_t flags;
FILE *stream = dump_begin (TDI_tu, &flags); if (FILE *stream = dump_begin (raw_dump_id, &flags))
if (stream)
{ {
dump_node (global_namespace, flags & ~TDF_SLIM, stream); dump_node (global_namespace, flags & ~TDF_SLIM, stream);
dump_end (TDI_tu, stream); dump_end (raw_dump_id, stream);
} }
} }
......
...@@ -550,7 +550,6 @@ Objective-C and Objective-C++ Dialects}. ...@@ -550,7 +550,6 @@ Objective-C and Objective-C++ Dialects}.
-fdump-passes @gol -fdump-passes @gol
-fdump-rtl-@var{pass} -fdump-rtl-@var{pass}=@var{filename} @gol -fdump-rtl-@var{pass} -fdump-rtl-@var{pass}=@var{filename} @gol
-fdump-statistics @gol -fdump-statistics @gol
-fdump-translation-unit@r{[}-@var{n}@r{]} @gol
-fdump-tree-all @gol -fdump-tree-all @gol
-fdump-tree-@var{switch} @gol -fdump-tree-@var{switch} @gol
-fdump-tree-@var{switch}-@var{options} @gol -fdump-tree-@var{switch}-@var{options} @gol
...@@ -12972,7 +12971,7 @@ Dump after function inlining. ...@@ -12972,7 +12971,7 @@ Dump after function inlining.
@opindex fdump-lang @opindex fdump-lang
Control the dumping of language-specific information. The @var{options} Control the dumping of language-specific information. The @var{options}
and @var{filename} portions behave as described in the and @var{filename} portions behave as described in the
`@option{-fdump-tree} option. The following @var{switch} values are @option{-fdump-tree} option. The following @var{switch} values are
accepted: accepted:
@table @samp @table @samp
...@@ -12984,6 +12983,9 @@ Enable all language-specific dumps. ...@@ -12984,6 +12983,9 @@ Enable all language-specific dumps.
Dump class hierarchy information. Virtual table information is emitted Dump class hierarchy information. Virtual table information is emitted
unless '@option{slim}' is specified. This option is applicable to C++ only. unless '@option{slim}' is specified. This option is applicable to C++ only.
@item raw
Dump the raw internal tree data. This option is applicable to C++ only.
@end table @end table
@item -fdump-passes @item -fdump-passes
...@@ -13002,16 +13004,6 @@ whole compilation unit while @samp{-details} dumps every event as ...@@ -13002,16 +13004,6 @@ whole compilation unit while @samp{-details} dumps every event as
the passes generate them. The default with no option is to sum the passes generate them. The default with no option is to sum
counters for each function compiled. counters for each function compiled.
@item -fdump-translation-unit @r{(C++ only)}
@itemx -fdump-translation-unit-@var{options} @r{(C++ only)}
@opindex fdump-translation-unit
Dump a representation of the tree structure for the entire translation
unit to a file. The file name is made by appending @file{.tu} to the
source file name, and the file is created in the same directory as the
output file. If the @samp{-@var{options}} form is used, @var{options}
controls the details of the dump as described for the
@option{-fdump-tree} options.
@item -fdump-tree-all @item -fdump-tree-all
@itemx -fdump-tree-@var{switch} @itemx -fdump-tree-@var{switch}
@itemx -fdump-tree-@var{switch}-@var{options} @itemx -fdump-tree-@var{switch}-@var{options}
......
...@@ -73,11 +73,10 @@ static struct dump_file_info dump_files[TDI_end] = ...@@ -73,11 +73,10 @@ static struct dump_file_info dump_files[TDI_end] =
dump_file_info (".cgraph", "ipa-cgraph", DK_ipa, 0), dump_file_info (".cgraph", "ipa-cgraph", DK_ipa, 0),
dump_file_info (".type-inheritance", "ipa-type-inheritance", DK_ipa, 0), dump_file_info (".type-inheritance", "ipa-type-inheritance", DK_ipa, 0),
dump_file_info (".ipa-clones", "ipa-clones", DK_ipa, 0), dump_file_info (".ipa-clones", "ipa-clones", DK_ipa, 0),
dump_file_info (".tu", "translation-unit", DK_lang, 1),
dump_file_info (".original", "tree-original", DK_tree, 3), dump_file_info (".original", "tree-original", DK_tree, 3),
dump_file_info (".gimple", "tree-gimple", DK_tree, 4), dump_file_info (".gimple", "tree-gimple", DK_tree, 4),
dump_file_info (".nested", "tree-nested", DK_tree, 5), dump_file_info (".nested", "tree-nested", DK_tree, 5),
#define FIRST_AUTO_NUMBERED_DUMP 4 #define FIRST_AUTO_NUMBERED_DUMP 3
dump_file_info (NULL, "lang-all", DK_lang, 0), dump_file_info (NULL, "lang-all", DK_lang, 0),
dump_file_info (NULL, "tree-all", DK_tree, 0), dump_file_info (NULL, "tree-all", DK_tree, 0),
......
...@@ -30,7 +30,6 @@ enum tree_dump_index ...@@ -30,7 +30,6 @@ enum tree_dump_index
TDI_cgraph, /* dump function call graph. */ TDI_cgraph, /* dump function call graph. */
TDI_inheritance, /* dump type inheritance graph. */ TDI_inheritance, /* dump type inheritance graph. */
TDI_clones, /* dump IPA cloning decisions. */ TDI_clones, /* dump IPA cloning decisions. */
TDI_tu, /* dump the whole translation unit. */
TDI_original, /* dump each function before optimizing it */ TDI_original, /* dump each function before optimizing it */
TDI_generic, /* dump each function after genericizing it */ TDI_generic, /* dump each function after genericizing it */
TDI_nested, /* dump each function after unnesting it */ TDI_nested, /* dump each function after unnesting it */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment