]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Local symbols do not get module manglings
authorNathan Sidwell <nathan@acm.org>
Wed, 6 Apr 2022 13:37:12 +0000 (06:37 -0700)
committerNathan Sidwell <nathan@acm.org>
Fri, 13 May 2022 14:18:52 +0000 (07:18 -0700)
commit0ee9a62ef4b718ce7a66051f768c2bf5e1b62263
tree9e941fa106bf0b71c2fa471b2d336215cd952e68
parentaf34279921f4bb95b07c0be7fce9baeffafcb53d
c++: Local symbols do not get module manglings

Internal-linkage entity mangling is entirely implementation defined --
there's no ABI issue.  Let's not mangle in any module attachment to
them, it makes the symbols unnecessarily longer.

gcc/cp/
* mangle.cc (maybe_write_module): Check external linkage.
gcc/testsuite/
* g++.dg/modules/mod-sym-4.C: New.
gcc/cp/mangle.cc
gcc/testsuite/g++.dg/modules/mod-sym-4.C [new file with mode: 0644]