Landing: b64700dec403
Project / Subsystem
gcc / libstdc++
Date
2026-05-28
Author
Patrick Palka
Commit
b64700dec403f9b2b605df295e43c73b3185d0f5
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libstdc++
- patch_id
- —
- commit_hash
- b64700dec403f9b2b605df295e43c73b3185d0f5
- source_type
- github
- headline
- libstdc++: Fix -fno-exceptions support in testsuite_allocator.h
- tldr
- The libstdc++ testsuite now correctly handles code compiled without exception support by using __try/__catch blocks.
- author
- Patrick Palka
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • libstdc++
- • exceptions
- • testsuite
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-28T00:00:00.000Z
The libstdc++ testsuite now supports compilation with the -fno-exceptions flag. The testsuite_allocator.h header was modified to use __try and __catch instead of try and catch blocks, which are unavailable when exceptions are disabled. This allows the testsuite to run correctly in environments where exception handling is not enabled.