diff options
author | Nathaniel Shead <nathanieloshead@gmail.com> | 2025-07-25 08:21:55 +1000 |
---|---|---|
committer | Nathaniel Shead <nathanieloshead@gmail.com> | 2025-07-27 10:07:14 +1000 |
commit | 68ddec92d4066328c127fdaa28ccadf10a738446 (patch) | |
tree | f2d4de66c308d31e224d3e6928ca79149d331cf7 /contrib/gcc-changelog/git_commit.py | |
parent | 11518c841dda4d417573e41ded69bd1469ad6d1f (diff) | |
download | gcc-68ddec92d4066328c127fdaa28ccadf10a738446.zip gcc-68ddec92d4066328c127fdaa28ccadf10a738446.tar.gz gcc-68ddec92d4066328c127fdaa28ccadf10a738446.tar.bz2 |
c++/modules: Stream some missing lang_type flags
I noticed that trivial relocation didn't work in modules yet, and there
are a couple of other flags that seem potentially useful we weren't
streaming. This streams those flags and adds a comment to cp-tree.h in
the hope that people will remember about modules when adding more!
As a drive-by improvement, update gcc_assert with gcc_checking_assert in
lang_type_bools streaming.
gcc/cp/ChangeLog:
* cp-tree.h (struct lang_type): Add comment mentioning modules.
* module.cc (trees_out::lang_type_bools): Stream new flags, use
gcc_checking_assert.
(trees_in::lang_type_bools): Likewise.
gcc/testsuite/ChangeLog:
* g++.dg/modules/class-11_a.H: New test.
* g++.dg/modules/class-11_b.C: New test.
Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Reviewed-by: Patrick Palka <ppalka@redhat.com>
Diffstat (limited to 'contrib/gcc-changelog/git_commit.py')
0 files changed, 0 insertions, 0 deletions