aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/expand
diff options
context:
space:
mode:
authoryxj-github-437 <2457369732@qq.com>2025-01-16 08:36:15 +0800
committerJason Merrill <jason@redhat.com>2025-01-24 11:54:34 -0500
commit3469d0f6eaa6251882364ba304a3f67327f46a84 (patch)
treea4de9a370ecc9b43b59b67585420500ab09eeea6 /gcc/rust/expand
parent4d18acf8023ba0495007aa7a6f36d5509a51760b (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
c++/modules: Fix linkage checks for exported using-declsHEADtrunkmaster
This patch attempts to fix an error when build module std. The reason for the error is __builtin_va_list (aka struct __va_list) has internal linkage. so mark this builtin type as TREE_PUBLIC to make struct __va_list has external linkage. g++ -fmodules -std=c++23 -fsearch-include-path bits/std.cc -c std.cc:3642:14:error: exporting ‘typedef __gnuc_va_list va_list’ that does not have external linkage 3642 | using std::va_list; | ^~~~~~~ <built-in>: note: ‘struct __va_list’ declared here with internal linkage gcc/ChangeLog: * config/aarch64/aarch64.cc (aarch64_build_builtin_va_list): Mark __builtin_va_list as TREE_PUBLIC. * config/arm/arm.cc (arm_build_builtin_va_list): Likewise. gcc/testsuite/ChangeLog: * g++.dg/modules/builtin-8.C: New test. Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'gcc/rust/expand')
0 files changed, 0 insertions, 0 deletions