diff options
author | Nathaniel Shead <nathanieloshead@gmail.com> | 2024-10-24 18:10:52 +1100 |
---|---|---|
committer | Nathaniel Shead <nathanieloshead@gmail.com> | 2024-10-25 08:38:00 +1100 |
commit | 6aba48a8cc128e54ee243d451ac9a843ff41c4f9 (patch) | |
tree | 6379c1e242a9ab4a1c0f76b060a81d2ecdb8ded9 /gcc/tree-vectorizer.cc | |
parent | 29efc621b7c66ec67d10fc87cddbb3f1ab709fb2 (diff) | |
download | gcc-6aba48a8cc128e54ee243d451ac9a843ff41c4f9.zip gcc-6aba48a8cc128e54ee243d451ac9a843ff41c4f9.tar.gz gcc-6aba48a8cc128e54ee243d451ac9a843ff41c4f9.tar.bz2 |
c++/modules: Propagate some missing flags on type definitions
Noticed while testing my fix for PR c++/113814. Not all of these are
easily testable but I've tested a couple that were straight-forward.
For consistency also adds a new TYPE_WARN_IF_NOT_ALIGN_RAW flag to match
the decl version Nathan added.
gcc/cp/ChangeLog:
* module.cc (trees_in::read_class_def): Propagate some missing
flags from the streamed-in definition.
gcc/ChangeLog:
* tree.h (TYPE_WARN_IF_NOT_ALIGN_RAW): New accessor.
(TYPE_WARN_IF_NOT_ALIGN): Use it.
(SET_TYPE_WARN_IF_NOT_ALIGN): Likewise.
gcc/testsuite/ChangeLog:
* g++.dg/modules/class-10_a.H: New test.
* g++.dg/modules/class-10_b.C: New test.
Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Diffstat (limited to 'gcc/tree-vectorizer.cc')
0 files changed, 0 insertions, 0 deletions