aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/util/rust-lang-item.h
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2024-11-26 18:05:25 +0000
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-21 12:33:04 +0100
commit65b68bed326c6acaa1fd50527d9c1dc61071579f (patch)
treebaf28a2983e792ec415ea1d4267882de39113b7a /gcc/rust/util/rust-lang-item.h
parent80bc600efeb6d2e4342da3e558cd2b5562e78477 (diff)
downloadgcc-65b68bed326c6acaa1fd50527d9c1dc61071579f.zip
gcc-65b68bed326c6acaa1fd50527d9c1dc61071579f.tar.gz
gcc-65b68bed326c6acaa1fd50527d9c1dc61071579f.tar.bz2
gccrs: ensure packed and aligned is applied properly
We cannot apply aligned or packed after layout_type is called you need to set this up first then call it. Fixes Rust-GCC#3260 gcc/rust/ChangeLog: * backend/rust-compile-type.cc (TyTyResolveCompile::visit): call lauout type directly * rust-backend.h (struct_type): add optional layout parameter (union_type): likewise (fill_in_fields): likewise * rust-gcc.cc (struct_type): likewise (union_type): likewise (fill_in_fields): only layout if we required Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/util/rust-lang-item.h')
0 files changed, 0 insertions, 0 deletions