Landing: 4c5a290ae5ab

Project / Subsystem

gcc / gcc/fold-const.cc

Date

2026-01-17

Author

Daniel Barboza

Commit

4c5a290ae5ab612941b6313d429978b9b19e48eb

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/fold-const.cc
patch_id
commit_hash
4c5a290ae5ab612941b6313d429978b9b19e48eb
source_type
github
headline
Remove strict_overflow_p Flag from tree_expr_nonzero_warnv_p
tldr
The strict_overflow_p flag was removed from tree_expr_nonzero_warnv_p, which simplifies code and removes a call to fold_overflow_warn.
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 tree_expr_nonzero_warnv_p. This change allows the existing tree_expr_nonzero_p to be removed, as it becomes redundant. The function tree_expr_nonzero_warnv_p is then renamed to tree_expr_nonzero_p without changing the API or behavior for existing callers, ultimately removing a call to fold_overflow_warn(). This is part of a larger effort to deprecate the -Wstrict-overflow warning.