FRIDAY, OCTOBER 9, 2026
analyzer
analyzer: Move max-macro-alias-depth to analyzer.opt [PR125265]
Analyzer's max-macro-alias-depth option moved to analyzer.opt for better organization.
This commit corrects a misplacement of the --param=analyzer-max-macro-alias-depth option, moving it from gcc/params.opt to gcc/analyzer/analyzer.opt. It also aligns the parameter’s definition with other analyzer parameters for consistency.
In Details
Rectifies an error from a previous commit by moving the analyzer-max-macro-alias-depth parameter definition from params.opt to analyzer.opt. The parameter's definition in analyzer.opt is also realigned with other analyzer-specific parameters by adding 'Param' and removing 'IntegerRange'.
For Context
- analyzer-max-macro-alias-depth
- A GCC internal parameter that controls the maximum depth of aliasing for macro expansions within the static analyzer. Increasing this value may improve analysis accuracy for complex macros but can also increase analysis time and memory consumption.
- analyzer.opt
- A file within the GCC source tree that defines configuration options specifically for the static analyzer component. Parameters listed here are typically related to controlling the behavior and resources used by the analyzer.
- params.opt
- A file in the GCC source tree where general compiler parameters are defined. These parameters often control optimization levels, warning behaviors, or internal compiler limits.