Bootstrap Fixes Uninitialized Variable Error in Tree Vectorization
The compiler now initializes a variable in the tree vectorization code to avoid a build failure with certain compiler flags (-Werror=maybe-uninitialized).
The GCC build was failing in --enable-checking=release mode due to a potentially uninitialized variable stride_step in tree-vect-stmts.cc. This commit explicitly initializes stride_step to prevent this error, ensuring a successful build even with stricter compiler flags. This avoids intermittent build failures related to code size and uninitialized variable analysis.
In Details
The -Werror=maybe-uninitialized flag can cause build failures due to limit hits in uninitialized variable analysis. This commit addresses PR bootstrap/125318 by explicitly initializing stride_step in vectorizable_load to avoid this issue, ensuring a more robust bootstrap process.
For Context
During the GCC build process, the compiler is built using a previous version of itself (or another compiler). This process is called bootstrapping. This commit addresses an issue that caused the build to fail when stricter compiler flags were enabled, which perform more thorough checks for potential errors. The fix initializes a variable to prevent a false positive warning about it potentially being used before being assigned a value, ensuring a smoother build process.