Add lto-dump tool.
commit66d62d9f2e6b059be6a018397fba555147133a9a
authorHrishikesh Kulkarni <hrishikeshparag@gmail.com>
Mon, 6 May 2019 07:23:25 +0000 (6 07:23 +0000)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 6 May 2019 07:23:25 +0000 (6 07:23 +0000)
treefab164b40d0f06c1e3b883ed151202724aa28fd7
parenta79420f995764129dc40d1abcbf8ce75a0b0f906
Add lto-dump tool.

2019-05-06  Hrishikesh Kulkarni  <hrishikeshparag@gmail.com>
    Martin Liska  <mliska@suse.cz>

* Makefile.in: Add lto-dump.texi.
* cgraph.h: Add new functions get_visibility_string and
get_symtab_type_string.
* doc/gcc.texi: Include lto-dump section.
* doc/lto-dump.texi: New file.
* dumpfile.c (dump_switch_p_1): Use parse_dump_option.
(parse_dump_option): Factor out this function.
* dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
(parse_dump_option): Export the function.
* symtab.c (symtab_node::get_visibility_string): New function.
(symtab_node::get_symtab_type_string): Likewise.
2019-05-06  Hrishikesh Kulkarni  <hrishikeshparag@gmail.com>
    Martin Liska  <mliska@suse.cz>

* Make-lang.in: Add lto_dump-related definition.
* config-lang.in: Likewise.
* lang.opt: Add new language LTODump and options related
to LTO dump tool.
* lto-common.c (lto_read_decls): Support type statistics dump.
(lto_file_read): Likewise for object files.
* lto-dump.c: New file.
* lto-lang.c (lto_option_lang_mask): Move from ..
* lto.c (lto_option_lang_mask): .. here.
* lto.h (lto_option_lang_mask): New declaration.

Co-Authored-By: Martin Liska <mliska@suse.cz>
From-SVN: r270897
17 files changed:
gcc/ChangeLog
gcc/Makefile.in
gcc/cgraph.h
gcc/doc/gcc.texi
gcc/doc/lto-dump.texi [new file with mode: 0644]
gcc/dumpfile.c
gcc/dumpfile.h
gcc/lto/ChangeLog
gcc/lto/Make-lang.in
gcc/lto/config-lang.in
gcc/lto/lang.opt
gcc/lto/lto-common.c
gcc/lto/lto-dump.c [new file with mode: 0644]
gcc/lto/lto-lang.c
gcc/lto/lto.c
gcc/lto/lto.h
gcc/symtab.c