Landing: 3862e2cf5d03

Project / Subsystem

gcc / gcc/fold-const

Date

2026-01-16

Author

Daniel Barboza

Commit

3862e2cf5d033bf6070b40b3f2c6b2bfb8942592

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/fold-const
patch_id
commit_hash
3862e2cf5d033bf6070b40b3f2c6b2bfb8942592
source_type
github
headline
Remove code related to deferring -Wstrict-overflow warnings.
tldr
The compiler no longer defers `-Wstrict-overflow` warnings, since they are no longer issued.
author
Daniel Barboza
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • optimization
  • constant folding
  • deprecated
  • warning
discussion_id_link
bugzilla_pr
date
2026-01-16T00:00:00.000Z

The code for deferring -Wstrict-overflow warnings has been removed from the fold-const.cc file. This includes removing the fold_defer_overflow_warnings counter, associated helper functions, and related logic in various compiler passes. Since -Wstrict-overflow is now a no-op, this code is no longer needed. This change simplifies the compiler and removes dead code.