aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-objcp-common.cc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2022-09-28 09:21:14 -0700
committerNathan Sidwell <nathan@acm.org>2022-09-29 04:41:59 -0700
commita1f7f9541c2b20eb44750b9c15cd831c62d67f21 (patch)
tree529824b945287a36edabb58329af0cdbc9444ad3 /gcc/cp/cp-objcp-common.cc
parenta0aafbc324aa90421f0ce99c6f5bbf64ed163da6 (diff)
downloadgcc-a1f7f9541c2b20eb44750b9c15cd831c62d67f21.zip
gcc-a1f7f9541c2b20eb44750b9c15cd831c62d67f21.tar.gz
gcc-a1f7f9541c2b20eb44750b9c15cd831c62d67f21.tar.bz2
c++: import/export NTTP objects
This adds smarts to the module machinery to handle NTTP object VAR_DECLs. Like typeinfo objects, these must be ignored in the symbol table, streamed specially and recreated on stream in. gcc/cp/ PR c++/100616 * module.cc (enum tree_tag): Add tt_nttp_var. (trees_out::decl_node): Handle NTTP objects. (trees_in::tree_node): Handle tt_nttp_var. (depset::hash::add_binding_entry): Skip NTTP objects. gcc/testsuite/ PR c++/100616 * g++.dg/modules/100616_a.H: New. * g++.dg/modules/100616_b.C: New. * g++.dg/modules/100616_c.C: New. * g++.dg/modules/100616_d.C: New.
Diffstat (limited to 'gcc/cp/cp-objcp-common.cc')
0 files changed, 0 insertions, 0 deletions