Landing: 04aefdc47fd6

Project / Subsystem

gcc / simplify-rtx

Date

2026-10-02

Author

Tamar Christina

Commit

04aefdc47fd6baeff572f5087d6c30f5d7c2a575

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
simplify-rtx
patch_id
—
commit_hash
04aefdc47fd6baeff572f5087d6c30f5d7c2a575
source_type
github
headline
simplify-rtx: Avoid -Wuninitialized false positive
tldr
Fixes a false positive -Wuninitialized warning during profiled bootstraps by improving analysis of conditional initializations.
author
Tamar Christina
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • compiler
  • • warning
  • • bootstrap
discussion_id_link
—
bugzilla_pr
—
date
2026-10-02T00:00:00.000Z

This commit resolves a false positive -Wuninitialized warning that occurred during profiled bootstraps in GCC’s simplify-rtx pass. The warning stemmed from the compiler’s analyzer failing to recognize that a variable foo would be initialized if a specific condition (is_a <.., &foo>) passed. The fix rewrites the check to avoid an out-parameter, thus eliminating the spurious warning.