Landing: e27a905ad03c
Project / Subsystem
gcc / gcc/fold-const.cc
Date
2026-01-17
Author
Daniel Barboza
Commit
e27a905ad03c0e8cbbefb0d94f14dc570ad233f1
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc/fold-const.cc
- patch_id
- —
- commit_hash
- e27a905ad03c0e8cbbefb0d94f14dc570ad233f1
- source_type
- github
- headline
- Remove strict_overflow_p from tree_single_nonzero_warnv_p
- tldr
- The strict_overflow_p flag was removed from tree_single_nonzero_warnv_p and the function was renamed to tree_single_nonzero_p.
- author
- Daniel Barboza
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • constant folding
- • overflow
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-01-17T00:00:00.000Z
The strict_overflow_p flag was removed from the tree_single_nonzero_warnv_p helper function. This helper is part of the larger tree_expr_nonzero_warnv_p function, which aims to eliminate a call to fold_overflow_warning(). As part of the change, the helper was renamed to tree_single_nonzero_p to reflect that it no longer handles overflow warnings directly. This change also impacts c-ubsan.cc, gimple-range-fold.cc, ipa-prop.cc, tree-ssa-phiopt.cc, and value-query.cc.