aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorNathaniel Shead <nathanieloshead@gmail.com>2024-03-29 13:53:54 +1100
committerNathaniel Shead <nathanieloshead@gmail.com>2024-04-10 11:40:32 +1000
commit0774240b4df9a9bc48ce33a9625788e402498f5a (patch)
treee743ff4b4ff399e598a17adce6482b829bd66be9 /libgcc
parentea665f90260acb3ffd2e39fcd2e200e702ee0ead (diff)
downloadgcc-0774240b4df9a9bc48ce33a9625788e402498f5a.zip
gcc-0774240b4df9a9bc48ce33a9625788e402498f5a.tar.gz
gcc-0774240b4df9a9bc48ce33a9625788e402498f5a.tar.bz2
c++: Keep DECL_SAVED_TREE of cdtor instantiations in modules [PR104040]
A template instantiation still needs to have its DECL_SAVED_TREE so that its definition is emitted into the CMI. This way it can be emitted in the object file of any importers that use it, in case it doesn't end up getting emitted in this TU. This is true even for maybe-in-charge functions, because we don't currently stream the clones directly but instead regenerate them from this function. PR c++/104040 gcc/cp/ChangeLog: * semantics.cc (expand_or_defer_fn_1): Keep DECL_SAVED_TREE for all vague linkage cdtors with modules. gcc/testsuite/ChangeLog: * g++.dg/modules/pr104040_a.C: New test. * g++.dg/modules/pr104040_b.C: New test. Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com> Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions