aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2022-10-20 10:50:23 +0200
committerUlrich Drepper <drepper@gmail.com>2022-10-20 10:56:29 +0200
commita2e28389354495a532eb4b7124106b21236f4f72 (patch)
tree0e4eae544effc17c0dbc537bb96cd56cbe5fd336 /contrib
parent53e6d7a3102409f0f2a5a9ffbfbeaa62c135d991 (diff)
downloadgcc-a2e28389354495a532eb4b7124106b21236f4f72.zip
gcc-a2e28389354495a532eb4b7124106b21236f4f72.tar.gz
gcc-a2e28389354495a532eb4b7124106b21236f4f72.tar.bz2
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).
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/gcc_update1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/gcc_update b/contrib/gcc_update
index dd8b6d0..18c7ec4 100755
--- a/contrib/gcc_update
+++ b/contrib/gcc_update
@@ -95,6 +95,7 @@ gcc/config/rs6000/fusion.md: gcc/config/rs6000/genfusion.pl
# And then, language-specific files
gcc/cp/cfns.h: gcc/cp/cfns.gperf
gcc/cp/std-name-hint.h: gcc/cp/std-name-hint.gperf
+gcc/cp/std-name-hint.gperf: gcc/cp/cxxapi-data.csv
# testsuite
# Without this, _Pragma3.c can have a false negative.
gcc/testsuite/gcc.dg/cpp/_Pragma3.c: gcc/testsuite/gcc.dg/cpp/mi1c.h