Avoid no-stack-protector-attr fails on hppa*-*-*.
[official-gcc.git] / gcc / analyzer / analyzer.opt
blob089d71e52258abcb5fffbaa4ff65e5bcadc7c17c
1 ; analyzer.opt -- Options for the analyzer.
3 ; Copyright (C) 2019-2021 Free Software Foundation, Inc.
5 ; This file is part of GCC.
7 ; GCC is free software; you can redistribute it and/or modify it under
8 ; the terms of the GNU General Public License as published by the Free
9 ; Software Foundation; either version 3, or (at your option) any later
10 ; version.
11
12 ; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 ; WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 ; FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15 ; for more details.
16
17 ; You should have received a copy of the GNU General Public License
18 ; along with GCC; see the file COPYING3.  If not see
19 ; <http://www.gnu.org/licenses/>.
21 ; See the GCC internals manual for a description of this file's format.
23 ; Please try to keep this file in ASCII collating order.
25 -param=analyzer-bb-explosion-factor=
26 Common Joined UInteger Var(param_analyzer_bb_explosion_factor) Init(5) Param
27 The maximum number of 'after supernode' exploded nodes within the analyzer per supernode, before terminating analysis.
29 -param=analyzer-max-enodes-per-program-point=
30 Common Joined UInteger Var(param_analyzer_max_enodes_per_program_point) Init(8) Param
31 The maximum number of exploded nodes per program point within the analyzer, before terminating analysis of that point.
33 -param=analyzer-max-constraints=
34 Common Joined UInteger Var(param_analyzer_max_constraints) Init(20) Param
35 The maximum number of constraints per state.
37 -param=analyzer-max-recursion-depth=
38 Common Joined UInteger Var(param_analyzer_max_recursion_depth) Init(2) Param
39 The maximum number of times a callsite can appear in a call stack within the analyzer, before terminating analysis of a call that would recurse deeper.
41 -param=analyzer-max-svalue-depth=
42 Common Joined UInteger Var(param_analyzer_max_svalue_depth) Init(13) Param
43 The maximum depth of a symbolic value, before approximating the value as unknown.
45 -param=analyzer-min-snodes-for-call-summary=
46 Common Joined UInteger Var(param_analyzer_min_snodes_for_call_summary) Init(10) Param
47 The minimum number of supernodes within a function for the analyzer to consider summarizing its effects at call sites.
49 -param=analyzer-max-enodes-for-full-dump=
50 Common Joined UInteger Var(param_analyzer_max_enodes_for_full_dump) Init(200) Param
51 The maximum depth of exploded nodes that should appear in a dot dump before switching to a less verbose format.
53 Wanalyzer-double-fclose
54 Common Var(warn_analyzer_double_fclose) Init(1) Warning
55 Warn about code paths in which a stdio FILE can be closed more than once.
57 Wanalyzer-double-free
58 Common Var(warn_analyzer_double_free) Init(1) Warning
59 Warn about code paths in which a pointer can be freed more than once.
61 Wanalyzer-exposure-through-output-file
62 Common Var(warn_analyzer_exposure_through_output_file) Init(1) Warning
63 Warn about code paths in which sensitive data is written to a file.
65 Wanalyzer-file-leak
66 Common Var(warn_analyzer_file_leak) Init(1) Warning
67 Warn about code paths in which a stdio FILE is not closed.
69 Wanalyzer-free-of-non-heap
70 Common Var(warn_analyzer_free_of_non_heap) Init(1) Warning
71 Warn about code paths in which a non-heap pointer is freed.
73 Wanalyzer-malloc-leak
74 Common Var(warn_analyzer_malloc_leak) Init(1) Warning
75 Warn about code paths in which a heap-allocated pointer leaks.
77 Wanalyzer-mismatching-deallocation
78 Common Var(warn_analyzer_mismatching_deallocation) Init(1) Warning
79 Warn about code paths in which the wrong deallocation function is called.
81 Wanalyzer-possible-null-argument
82 Common Var(warn_analyzer_possible_null_argument) Init(1) Warning
83 Warn about code paths in which a possibly-NULL value is passed to a must-not-be-NULL function argument.
85 Wanalyzer-possible-null-dereference
86 Common Var(warn_analyzer_possible_null_dereference) Init(1) Warning
87 Warn about code paths in which a possibly-NULL pointer is dereferenced.
89 Wanalyzer-unsafe-call-within-signal-handler
90 Common Var(warn_analyzer_unsafe_call_within_signal_handler) Init(1) Warning
91 Warn about code paths in which an async-signal-unsafe function is called from a signal handler.
93 Wanalyzer-null-argument
94 Common Var(warn_analyzer_null_argument) Init(1) Warning
95 Warn about code paths in which NULL is passed to a must-not-be-NULL function argument.
97 Wanalyzer-null-dereference
98 Common Var(warn_analyzer_null_dereference) Init(1) Warning
99 Warn about code paths in which a NULL pointer is dereferenced.
101 Wanalyzer-shift-count-negative
102 Common Var(warn_analyzer_shift_count_negative) Init(1) Warning
103 Warn about code paths in which a shift with negative count is attempted.
105 Wanalyzer-shift-count-overflow
106 Common Var(warn_analyzer_shift_count_overflow) Init(1) Warning
107 Warn about code paths in which a shift with count >= width of type is attempted.
109 Wanalyzer-stale-setjmp-buffer
110 Common Var(warn_analyzer_stale_setjmp_buffer) Init(1) Warning
111 Warn about code paths in which a longjmp rewinds to a jmp_buf saved in a stack frame that has returned.
113 Wanalyzer-tainted-array-index
114 Common Var(warn_analyzer_tainted_array_index) Init(1) Warning
115 Warn about code paths in which an unsanitized value is used as an array index.
117 Wanalyzer-use-after-free
118 Common Var(warn_analyzer_use_after_free) Init(1) Warning
119 Warn about code paths in which a freed value is used.
121 Wanalyzer-use-of-pointer-in-stale-stack-frame
122 Common Var(warn_analyzer_use_of_pointer_in_stale_stack_frame) Init(1) Warning
123 Warn about code paths in which a pointer to a stale stack frame is used.
125 Wanalyzer-write-to-const
126 Common Var(warn_analyzer_write_to_const) Init(1) Warning
127 Warn about code paths which attempt to write to a const object.
129 Wanalyzer-write-to-string-literal
130 Common Var(warn_analyzer_write_to_string_literal) Init(1) Warning
131 Warn about code paths which attempt to write to a string literal.
133 Wanalyzer-too-complex
134 Common Var(warn_analyzer_too_complex) Init(0) Warning
135 Warn if the code is too complicated for the analyzer to fully explore.
137 fanalyzer-checker=
138 Common Joined RejectNegative Var(flag_analyzer_checker)
139 Restrict the analyzer to run just the named checker.
141 fanalyzer-fine-grained
142 Common Var(flag_analyzer_fine_grained) Init(0)
143 Avoid combining multiple statements into one exploded edge.
145 fanalyzer-feasibility
146 Common Var(flag_analyzer_feasibility) Init(1)
147 Verify that paths are feasible when emitting diagnostics.
149 fanalyzer-show-duplicate-count
150 Common Var(flag_analyzer_show_duplicate_count) Init(0)
151 Issue a note when diagnostics are deduplicated.
153 fanalyzer-state-purge
154 Common Var(flag_analyzer_state_purge) Init(1)
155 Purge unneeded state during analysis.
157 fanalyzer-state-merge
158 Common Var(flag_analyzer_state_merge) Init(1)
159 Merge similar-enough states during analysis.
161 fanalyzer-transitivity
162 Common Var(flag_analyzer_transitivity) Init(0)
163 Enable transitivity of constraints during analysis.
165 fanalyzer-call-summaries
166 Common Var(flag_analyzer_call_summaries) Init(0)
167 Approximate the effect of function calls to simplify analysis.
169 fanalyzer-verbose-edges
170 Common Var(flag_analyzer_verbose_edges) Init(0)
171 Emit more verbose descriptions of control flow in diagnostics.
173 fanalyzer-verbose-state-changes
174 Common Var(flag_analyzer_verbose_state_changes) Init(0)
175 Emit more verbose descriptions of state changes in diagnostics.
177 fanalyzer-verbosity=
178 Common Joined UInteger Var(analyzer_verbosity) Init(2)
179 Control which events are displayed in diagnostic paths.
181 fdump-analyzer
182 Common RejectNegative Var(flag_dump_analyzer)
183 Dump various analyzer internals to SRCFILE.analyzer.txt.
185 fdump-analyzer-stderr
186 Common RejectNegative Var(flag_dump_analyzer_stderr)
187 Dump various analyzer internals to stderr.
189 fdump-analyzer-callgraph
190 Common RejectNegative Var(flag_dump_analyzer_callgraph)
191 Dump analyzer-specific call graph information to a SRCFILE.callgraph.dot file.
193 fdump-analyzer-exploded-graph
194 Common RejectNegative Var(flag_dump_analyzer_exploded_graph)
195 Dump the analyzer exploded graph to a SRCFILE.eg.dot file.
197 fdump-analyzer-exploded-nodes
198 Common RejectNegative Var(flag_dump_analyzer_exploded_nodes)
199 Emit diagnostics showing the location of nodes in the exploded graph.
201 fdump-analyzer-exploded-nodes-2
202 Common RejectNegative Var(flag_dump_analyzer_exploded_nodes_2)
203 Dump a textual representation of the exploded graph to SRCFILE.eg.txt.
205 fdump-analyzer-exploded-nodes-3
206 Common RejectNegative Var(flag_dump_analyzer_exploded_nodes_3)
207 Dump a textual representation of the exploded graph to SRCFILE.eg-ID.txt.
209 fdump-analyzer-json
210 Common RejectNegative Var(flag_dump_analyzer_json)
211 Dump analyzer-specific data to a SRCFILE.analyzer.json.gz file.
213 fdump-analyzer-state-purge
214 Common RejectNegative Var(flag_dump_analyzer_state_purge)
215 Dump state-purging information to a SRCFILE.state-purge.dot file.
217 fdump-analyzer-supergraph
218 Common RejectNegative Var(flag_dump_analyzer_supergraph)
219 Dump the analyzer supergraph to a SRCFILE.supergraph.dot file.
221 ; This comment is to ensure we retain the blank line above.