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=a59e57efe221ef6296a8b5fcb5290733e15a3d20;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 51c1ae78ec0..2f0b86a0a6c 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 cd7bf24585e..e1370e0964d 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, // ... };