From 66d62d9f2e6b059be6a018397fba555147133a9a Mon Sep 17 00:00:00 2001 From: Hrishikesh Kulkarni Date: Mon, 6 May 2019 07:23:25 +0000 Subject: Add lto-dump tool. 2019-05-06 Hrishikesh Kulkarni Martin Liska * 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 Martin Liska * 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 From-SVN: r270897 --- gcc/lto/lto-lang.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'gcc/lto/lto-lang.c') diff --git a/gcc/lto/lto-lang.c b/gcc/lto/lto-lang.c index b88ca09..e155ea3 100644 --- a/gcc/lto/lto-lang.c +++ b/gcc/lto/lto-lang.c @@ -789,12 +789,6 @@ static GTY(()) tree registered_builtin_types; /* Language hooks. */ -static unsigned int -lto_option_lang_mask (void) -{ - return CL_LTO; -} - static bool lto_complain_wrong_lang_p (const struct cl_option *option ATTRIBUTE_UNUSED) { -- cgit v1.1