From: Yap Zhi Heng Date: Fri, 4 Apr 2025 11:37:03 +0000 (+0800) Subject: gccrs: Update comments in repr parsing code X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=afdb4a46262ba527823ea9bbe10ffb5859a31ebd;p=thirdparty%2Fgcc.git gccrs: Update comments in repr parsing code gcc/rust/ChangeLog: * typecheck/rust-tyty.h: Remove extra redundant comment. * typecheck/rust-hir-type-check-base.cc: Update comment on repr handling. Signed-off-by: Yap Zhi Heng --- diff --git a/gcc/rust/typecheck/rust-hir-type-check-base.cc b/gcc/rust/typecheck/rust-hir-type-check-base.cc index 2ee0d0833e8..14b8ab8635e 100644 --- a/gcc/rust/typecheck/rust-hir-type-check-base.cc +++ b/gcc/rust/typecheck/rust-hir-type-check-base.cc @@ -308,7 +308,8 @@ TypeCheckBase::parse_repr_options (const AST::AttrVec &attrs, location_t locus) repr.pack = 0; repr.align = 0; - // FIXME handle non-integer repr types.... + // Default repr for enums is isize, but we now check for other repr in the + // attributes. bool ok = context->lookup_builtin ("isize", &repr.repr); rust_assert (ok); diff --git a/gcc/rust/typecheck/rust-tyty.h b/gcc/rust/typecheck/rust-tyty.h index 9897c30fc27..03096837752 100644 --- a/gcc/rust/typecheck/rust-tyty.h +++ b/gcc/rust/typecheck/rust-tyty.h @@ -719,7 +719,6 @@ public: ALIGN, PACKED, // TRANSPARENT, - // PACKED, // SIMD, // ... };