Landing: 240bfe82a1f9

Project / Subsystem

gcc / internal-fn

Date

2026-09-25

Author

Jakub Jelinek

Commit

240bfe82a1f937a9b0be9877754a3d23567d5ec9

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
internal-fn
patch_id
—
commit_hash
240bfe82a1f937a9b0be9877754a3d23567d5ec9
source_type
github
headline
Fix .MUL_OVERFLOW expansion for non-mode precision arguments
tldr
Correctly expands built-in multiplication overflow checks for arguments with non-standard precision.
author
Jakub Jelinek
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • integer
  • • optimization
  • • builtin
discussion_id_link
—
bugzilla_pr
—
date
2026-09-25T00:00:00.000Z

This commit fixes an issue in the expansion of the .MUL_OVERFLOW built-in function when arguments do not conform to standard precision modes. Previously, the code assumed uniform precision, leading to incorrect results for types like _BitInt. The fix ensures proper handling of value ranges for these non-standard types, particularly when mixed with signed or unsigned values.