Landing: 306f4aef1409
Project / Subsystem
gcc / libstdc++
Date
2026-07-17
Author
Tomasz Kamiński
Commit
306f4aef140910bfc803fe9c894b12615b35aac7
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libstdc++
- patch_id
- —
- commit_hash
- 306f4aef140910bfc803fe9c894b12615b35aac7
- source_type
- github
- headline
- libstdc++: Use __FLT_EVAL_METHOD__ for piecewise distribution tests
- tldr
- Adapts random distribution tests to account for floating-point evaluation methods.
- author
- Tomasz Kamiński
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • libstdc++
- • testing
- • floating-point
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-17T00:00:00.000Z
Tests for piecewise_constant_distribution and piecewise_linear_distribution in libstdc++ now correctly account for the effects of __FLT_EVAL_METHOD__. This macro controls the precision with which intermediate floating-point expressions are evaluated. By guarding the relevant test invocations with checks against this macro, the tests avoid spurious failures caused by differing floating-point evaluation strategies across compilation environments.