Landing: 2cb78d1a0e5b

Project / Subsystem

gcc / libstdc++

Date

2026-09-09

Author

Tomasz Kamiński

Commit

2cb78d1a0e5bd0d831690296df0bc35128ae009c

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
libstdc++
patch_id
—
commit_hash
2cb78d1a0e5bd0d831690296df0bc35128ae009c
source_type
github
headline
libstdc++: Consolidate piecewise distribution configuration macros.
tldr
C++ standard library simplifies configuration for piecewise distributions by merging related macros.
author
Tomasz Kamiński
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • libstdc++
  • • c++
  • • configuration
discussion_id_link
—
bugzilla_pr
—
date
2026-09-09T00:00:00.000Z

GCC’s libstdc++ has consolidated configuration defines related to piecewise distributions in the C++ standard library. Previously, separate macros _GLIBCXX_USE_OLD_PIECEWISE_DISTRIBUTIONS and _GLIBCXX_USE_RESULT_TYPE_FOR_PIECEWISE_DENSITIES were used, leading to non-orthogonal behavior where one could override the other. This change introduces a single macro, _GLIBCXX_USE_NEW_PIECEWISE_DISTRIBUTIONS, to manage this configuration, simplifying the code and better reflecting the intended behavior of these distribution types.