Landing: 07299ccf1077

Project / Subsystem

gcc / fold-const.cc

Date

2026-01-17

Author

Daniel Barboza

Commit

07299ccf1077ac12b6e449aefbd2cbd4196181a7

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
fold-const.cc
patch_id
commit_hash
07299ccf1077ac12b6e449aefbd2cbd4196181a7
source_type
github
headline
fold-const.cc: Remove strict_overflow_p from tree_expr_nonnegative helpers
tldr
The compiler removes the `strict_overflow_p` flag from helper functions used by `tree_expr_nonnegative`, further simplifying the code.
author
Daniel Barboza
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • optimization
  • constant folding
  • refactoring
  • warnings
discussion_id_link
bugzilla_pr
date
2026-01-17T00:00:00.000Z

The compiler removes the strict_overflow_p flag from several helper functions used by tree_expr_nonnegative_warnv_p. This is part of an effort to remove fold_overflow_warn() calls. The strict_overflow_p argument in tree_expr_nonnegative_warnv_p is marked as unused in this commit and functions are renamed to reflect that they no longer handle warnings.