https://gcc.gnu.org/g:1f01624b68fbf9eb8ca82ba0dde7d8ceee9a19dd

commit r17-5075-g1f01624b68fbf9eb8ca82ba0dde7d8ceee9a19dd
Author: Torbjörn SVENSSON <[email protected]>
Date:   Fri Oct 9 06:43:26 2026 +0200

    analyzer: Move max-macro-alias-depth to analyzer.opt [PR125265]
    
    In r17-4966-gbaea2a0be30d84, I added
    --param=analyzer-max-macro-alias-depth= to gcc/params.opt, but I've
    since then learned that the analyzer params should have been defined in
    gcc/analyzer/analyzer.opt.  This patch rectifies my misstake.
    
    I've also aligned the definition of
    --param=analyzer-max-macro-alias-depth= with other analyzer params
    (adding "Param" and removing "IntegerRange").
    
            PR analyzer/125265
    
    gcc/ChangeLog:
    
            * params.opt (analyzer-max-macro-alias-depth): Move to...
    
    gcc/analyzer/ChangeLog:
    
            * analyzer.opt: ...here.  Align parameter definition.
    
    Signed-off-by: Torbjörn SVENSSON <[email protected]>

Diff:
---
 gcc/analyzer/analyzer.opt | 4 ++++
 gcc/params.opt            | 4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gcc/analyzer/analyzer.opt b/gcc/analyzer/analyzer.opt
index 4fa66641205e..175a28644702 100644
--- a/gcc/analyzer/analyzer.opt
+++ b/gcc/analyzer/analyzer.opt
@@ -34,6 +34,10 @@ The maximum number of constraints per state.
 Common Joined UInteger Var(param_analyzer_max_infeasible_edges) Init(10) Param
 The maximum number of infeasible edges to reject before declaring a diagnostic 
as infeasible.
 
+-param=analyzer-max-macro-alias-depth=
+Common Joined UInteger Var(param_analyzer_max_macro_alias_depth) Init(8) Param
+Maximum number of macro aliases to follow when resolving named constants in 
the analyzer; zero disables alias following.
+
 -param=analyzer-max-recursion-depth=
 Common Joined UInteger Var(param_analyzer_max_recursion_depth) Init(2) Param
 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.
diff --git a/gcc/params.opt b/gcc/params.opt
index 0dee27cfcee9..29a5c7018a80 100644
--- a/gcc/params.opt
+++ b/gcc/params.opt
@@ -30,10 +30,6 @@ Loops iterating at least selected number of iterations get 
loop alignment.
 Common Joined UInteger Var(param_align_threshold) Init(100) IntegerRange(1, 
65536) Param Optimization
 Select fraction of the maximal frequency of executions of basic block in 
function given basic block get alignment.
 
--param=analyzer-max-macro-alias-depth=
-Common Joined UInteger Var(param_analyzer_max_macro_alias_depth) Init(8) 
IntegerRange(0, 255)
-Maximum number of macro aliases to follow when resolving named constants in 
the analyzer; zero disables alias following.
-
 -param=asan-globals=
 Common Joined UInteger Var(param_asan_globals) Init(1) IntegerRange(0, 1) Param
 Enable asan globals protection.

Reply via email to