]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/std-name-hint.h
Add C++ library interface data
authorUlrich Drepper <drepper@gmail.com>
Thu, 20 Oct 2022 08:50:23 +0000 (10:50 +0200)
committerUlrich Drepper <drepper@gmail.com>
Thu, 20 Oct 2022 08:56:29 +0000 (10:56 +0200)
commita2e28389354495a532eb4b7124106b21236f4f72
tree0e4eae544effc17c0dbc537bb96cd56cbe5fd336
parent53e6d7a3102409f0f2a5a9ffbfbeaa62c135d991
Add C++ library interface data

This patch adds a CSV file with information about the API of the
standard C++ library.  This information can be used in multiple ways.
So far there are two use cases:

- to generate the module export list for the standard C++ library
- to create the name hints to compiler emits when symbols in the
  std namespace are not found

Adding more uses can be easily done by potentially adding more columns
to the CSV file and adding to the Python script which generates the
output file.

contrib/
2022-10-18  Jonathan Wakely   <jwakely@redhat.com>
    Ulrich Drepper  <drepper@redhat.com>

* gcc_update: Add rule for gcc/cp/std-name-hint.gperf.

gcc/cp/
2022-10-18  Jonathan Wakely   <jwakely@redhat.com>
    Ulrich Drepper  <drepper@redhat.com>

* Make-lang.in: Add rules to generate std-name-hint.gperf.  Adjust
rule to generate std-name-hint.h to allow chain rule.
* std-name-hint.h: Regenerated.
* std-name-hint.gperf: This file is now generated.
* cxxapi-data.csv: New file.  CSV file with C++ API data.
* gen-cxxapi-file.py: New file.  Generate std-name-hint.gperf
and module export source (in future).
contrib/gcc_update
gcc/cp/Make-lang.in
gcc/cp/cxxapi-data.csv [new file with mode: 0644]
gcc/cp/gen-cxxapi-file.py [new file with mode: 0644]
gcc/cp/std-name-hint.gperf
gcc/cp/std-name-hint.h