Landing: a49c114c7b3e
Project / Subsystem
gcc / gcc/widening_mul
Date
2026-08-04
Author
Jakub Jelinek
Commit
a49c114c7b3edd33a6ff2e50e6276ca1fbe8ad83
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc/widening_mul
- patch_id
- —
- commit_hash
- a49c114c7b3edd33a6ff2e50e6276ca1fbe8ad83
- source_type
- github
- headline
- Fixes ICE in widening multiplication optimization.
- tldr
- Prevents compiler crash when optimizing certain vector-related multiplication checks.
- author
- Jakub Jelinek
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • gcc
- • compiler bug
- • integer
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-04T00:00:00.000Z
An Integer Compiler (ICE) in the maybe_optimize_guarding_check function, used during widening multiplication optimizations, has been fixed. The issue occurred when the function was called multiple times within a loop, leading to a buffer overflow in a vector used to store multiplication statements. The fix replaces quick_push with safe_push for adding elements to this vector, preventing the overflow and subsequent crash.