Landing: 71386cc67c02

Project / Subsystem

gcc / fold-const.cc

Date

2026-01-17

Author

Daniel Barboza

Commit

71386cc67c02feff09990b2d9e004810bd3900fd

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
fold-const.cc
patch_id
commit_hash
71386cc67c02feff09990b2d9e004810bd3900fd
source_type
github
headline
fold-const.cc: Remove strict_overflow_p from tree_unary_nonnegative
tldr
The compiler removes the `strict_overflow_p` flag from `tree_unary_nonnegative` and updates related code in `gimple-fold.cc`.
author
Daniel Barboza
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • optimization
  • constant folding
  • refactoring
  • warnings
  • Gimple
discussion_id_link
bugzilla_pr
date
2026-01-17T00:00:00.000Z

The compiler removes the strict_overflow_p flag from tree_unary_nonnegative_warnv_p, which is then renamed to tree_unary_nonnegative_p. Related changes are also made in gimple-fold.cc including modification of gimple_assign_nonnegative_warnv_p. Some test cases that checked for warnings are also removed.