diff options
author | Mark Wielaard <mark@klomp.org> | 2022-06-19 01:27:19 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2022-06-19 01:27:19 +0200 |
commit | 7e6424852e2d2db4955f6be0090244f14380cb8c (patch) | |
tree | b1974e6f010013a11e2bf77eb6b29dfbd748e51d /gcc/rust/backend/rust-constexpr.cc | |
parent | c0f11672d760513256997f325da678016d13f677 (diff) | |
download | gcc-7e6424852e2d2db4955f6be0090244f14380cb8c.zip gcc-7e6424852e2d2db4955f6be0090244f14380cb8c.tar.gz gcc-7e6424852e2d2db4955f6be0090244f14380cb8c.tar.bz2 |
Actually set TYPE_PACKED for type_record
When bootstrapping with --enable-checking=no you'll get:
gcc/rust/backend/rust-compile-type.cc: In member function
‘virtual void Rust::Compile::TyTyResolveCompile::visit(const Rust::TyTy::ADTType&)’:
gcc/tree.h:2312:59: error: statement has no effect [-Werror=unused-value]
2312 | #define TYPE_PACKED(NODE) (TYPE_CHECK (NODE)->base.u.bits.packed_flag)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
gcc/rust/backend/rust-compile-type.cc:315:7:
note: in expansion of macro ‘TYPE_PACKED’
315 | TYPE_PACKED (type_record);
| ^~~~~~~~~~~
We need to actually set a value for the packed_flag.
Diffstat (limited to 'gcc/rust/backend/rust-constexpr.cc')
0 files changed, 0 insertions, 0 deletions