Landing: 5d657f6bbb18

Project / Subsystem

gcc / testsuite

Date

2026-04-29

Author

Jakub Jelinek

Commit

5d657f6bbb1853350fa29f037fe04ab8fefcea92

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
testsuite
patch_id
commit_hash
5d657f6bbb1853350fa29f037fe04ab8fefcea92
source_type
github
headline
testsuite: Add plugin to verify bits/std.cc exports
tldr
A new GCC plugin verifies that all necessary symbols from `bits/std.cc` are exported, preventing omissions in the standard library's module interface.
author
Jakub Jelinek
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • testsuite
  • plugin
  • modules
  • libstdc++
discussion_id_link
bugzilla_pr
date
2026-04-29T00:00:00.000Z

This commit introduces a new GCC plugin to verify that all necessary symbols from bits/std.cc are exported. The plugin identifies symbols within the std namespace and its children that are not exported from the module and are not deprecated. The plugin helps to prevent accidental omissions of symbols from the standard library’s module interface. New test cases are added for C++20, C++23, and C++26 to ensure the correct behavior of the plugin across different language standards.