Landing: d284bf3a1349

Project / Subsystem

gcc / gcc/frange

Date

2026-07-15

Author

Aldy Hernandez

Commit

d284bf3a1349c1bb5e57a71b5d6b46de36f4db13

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/frange
patch_id
commit_hash
d284bf3a1349c1bb5e57a71b5d6b46de36f4db13
source_type
github
headline
Consolidate signed-zero canonicalization of floating-point range endpoints.
tldr
Standardizes how +0.0 and -0.0 are represented in floating-point ranges.
author
Aldy Hernandez
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • gcc
  • floating-point
  • optimization
discussion_id_link
bugzilla_pr
date
2026-07-15T00:00:00.000Z

This change unifies the signed-zero canonicalization for floating-point range endpoints within the frange library. Previously, set() and flush_denormals_to_zero() handled zero endpoints differently, potentially leading to inconsistencies. By ensuring a single representation for zero endpoints, this commit lays the groundwork for more robust handling of signed zeros and simplifies range comparisons.