Landing: 5e914c4f7574

Project / Subsystem

gcc / libstdc++

Date

2026-07-21

Author

Tomasz Kamiński

Commit

5e914c4f75743dab1ad31718e1dc846d5f6fe284

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
libstdc++
patch_id
commit_hash
5e914c4f75743dab1ad31718e1dc846d5f6fe284
source_type
github
headline
libstdc++: Use 2*epsilon step for piecewise_constant_distribution tests.
tldr
Adjusted `piecewise_constant_distribution` tests in libstdc++ to use a 2*epsilon step.
author
Tomasz Kamiński
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • libstdc++
  • testsuite
  • random
  • floating-point
discussion_id_link
bugzilla_pr
date
2026-07-21T00:00:00.000Z

The libstdc++ testsuite for piecewise_constant_distribution now uses a step size of 2 * epsilon() instead of a smaller value. This change ensures test consistency across different architectures, specifically resolving issues on powerpc64le-unknown-linux-gnu where floating-point precision differences previously caused failures.