Landing: 34c81df45aea
Project / Subsystem
gcc / fold-const.cc
Date
2026-01-17
Author
Daniel Barboza
Commit
34c81df45aea8e13d64a02721beb46a3b97ae3d6
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- fold-const.cc
- patch_id
- —
- commit_hash
- 34c81df45aea8e13d64a02721beb46a3b97ae3d6
- source_type
- github
- headline
- fold-const.cc: Remove fold_overflow_warning()
- tldr
- The compiler no longer uses `fold_overflow_warning()` and `pointer_may_wrap_p` in constant folding.
- author
- Daniel Barboza
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • warnings
- • constant folding
- • overflow
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-01-17T00:00:00.000Z
The compiler removes fold_overflow_warning() calls within fold-const.cc, which avoids generating warnings for strict overflow in constant folding. The associated helper function pointer_may_wrap_p no longer has any call sites and is removed as well. This change also removes some now-unnecessary test cases.