diff options
author | Nathaniel Shead <nathanieloshead@gmail.com> | 2024-04-11 19:15:35 +1000 |
---|---|---|
committer | Nathaniel Shead <nathanieloshead@gmail.com> | 2024-05-02 16:42:56 +1000 |
commit | 02917ac4528e32d1b2d0da5f45ef5937c56942cd (patch) | |
tree | 74b157618851c1e89e980e448ed7449c9028d3ca /gcc/tree-inline.cc | |
parent | 6c4a745c6910659a75d1881cf3c4128f24b5666f (diff) | |
download | gcc-02917ac4528e32d1b2d0da5f45ef5937c56942cd.zip gcc-02917ac4528e32d1b2d0da5f45ef5937c56942cd.tar.gz gcc-02917ac4528e32d1b2d0da5f45ef5937c56942cd.tar.bz2 |
c++: Don't emit unused GMF partial specializations [PR114630]
The change in r14-8408 to also emit partial specializations in the
global module fragment caused the regression in the linked PR; this
patch fixes this by restricting emitted GM partial specializations to
those that are actually used.
PR c++/114630
gcc/cp/ChangeLog:
* module.cc (depset::hash::add_partial_entities): Mark GM
specializations as unreached.
(depset::hash::find_dependencies): Also reach entities in the
DECL_TEMPLATE_SPECIALIZATIONS list.
gcc/testsuite/ChangeLog:
* g++.dg/modules/partial-3.C: New test.
Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Diffstat (limited to 'gcc/tree-inline.cc')
0 files changed, 0 insertions, 0 deletions