1 @c Copyright (C) 2018-2024 Free Software Foundation, Inc.
2 @c This is part of the GCC manual.
3 @c For copying conditions, see the file gcc.texi.
7 Copyright @copyright{} 2017-2024 Free Software Foundation, Inc.
9 Permission is granted to copy, distribute and/or modify this document
10 under the terms of the GNU Free Documentation License, Version 1.3 or
11 any later version published by the Free Software Foundation; with the
12 Invariant Sections being ``GNU General Public License'' and ``Funding
13 Free Software'', the Front-Cover texts being (a) (see below), and with
14 the Back-Cover Texts being (b) (see below). A copy of the license is
15 included in the gfdl(7) man page.
17 (a) The FSF's Front-Cover Text is:
21 (b) The FSF's Back-Cover Text is:
23 You have freedom to copy and modify this GNU Manual, like GNU
24 software. Copies published by the Free Software Foundation raise
25 funds for GNU development.
27 @c Set file name and title for the man page.
29 @settitle Tool for dumping LTO object files.
33 @chapter @command{lto-dump}---Tool for dumping LTO object files.
36 * lto-dump Intro:: Introduction to lto-dump.
37 * Invoking lto-dump:: How to use lto-dump.
41 @section Introduction to @command{lto-dump}
42 @c man begin DESCRIPTION
44 @command{lto-dump} is a tool you can use in conjunction with GCC to
45 dump link time optimization object files.
49 @node Invoking lto-dump
50 @section Invoking @command{lto-dump}
53 Usage: lto-dump @r{[}@var{OPTION}@r{]} ... @var{objfiles}
56 @command{lto-dump} accepts the following options:
60 lto-dump [@option{-list}]
62 [@option{-defined-only}]
63 [@option{-print-value}]
66 [@option{-reverse-sort}]
70 [@option{-type-stats}]
71 [@option{-tree-stats}]
72 [@option{-gimple-stats}]
73 [@option{-dump-level=}]
74 [@option{-dump-body=}]
75 [@option{-help}] @var{lto-dump}
82 Dumps list of details of functions and variables.
85 Dump the demangled output.
88 Dump only the defined symbols.
91 Dump initial values of the variables.
94 Sort the symbols alphabetically.
97 Sort the symbols according to size.
100 Dump the symbols in reverse order.
103 Dump the symbols in order of occurrence.
106 Dump the details of specific symbol.
109 Dump the details of LTO objects.
112 Dump the statistics of tree types.
115 Dump the statistics of trees.
118 Dump the statistics of gimple statements.
121 For deciding the optimization level of body.
124 Dump the specific gimple body.
127 Display the dump tool help.