aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-constexpr.cc
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-06-24 15:45:38 +0000
committerGitHub <noreply@github.com>2022-06-24 15:45:38 +0000
commit5bab921fc018bfaae00d2739e5c4e5912673823a (patch)
tree12071edfead5fd90ae6e8b32c35afc5c00547c41 /gcc/rust/backend/rust-constexpr.cc
parentfa57ab9f13601b274160f6d9cda3a83b032906bb (diff)
parent7e6424852e2d2db4955f6be0090244f14380cb8c (diff)
downloadgcc-5bab921fc018bfaae00d2739e5c4e5912673823a.zip
gcc-5bab921fc018bfaae00d2739e5c4e5912673823a.tar.gz
gcc-5bab921fc018bfaae00d2739e5c4e5912673823a.tar.bz2
Merge #1337
1337: Actually set TYPE_PACKED for type_record r=dafaust a=CohenArthur 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. Co-authored-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'gcc/rust/backend/rust-constexpr.cc')
0 files changed, 0 insertions, 0 deletions