Landing: 0b9e5f95108c
Project / Subsystem
gcc / libstdc++
Date
2026-07-02
Author
Nathan Myers
Commit
0b9e5f95108c44a57b3713329af35fdd04a5e744
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libstdc++
- patch_id
- —
- commit_hash
- 0b9e5f95108c44a57b3713329af35fdd04a5e744
- source_type
- github
- headline
- libstdc++: Fix allocate_at_least test for small alignments
- tldr
- Test for allocate_at_least now accommodates alignments down to 1, fixing failures on platforms with small default allocators.
- author
- Nathan Myers
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • libstdc++
- • testsuite
- • allocator
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-02T00:00:00.000Z
A test for the P0401 allocate_at_least function failed on the cris-elf target due to its default allocator having an alignment of 4. This change modifies the test to correctly handle alignments as low as 1, removing assumptions about short int and ensuring broader compatibility.