diff options
author | Yap Zhi Heng <yapzhhg@gmail.com> | 2025-04-04 19:37:03 +0800 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-04-28 16:18:53 +0200 |
commit | afdb4a46262ba527823ea9bbe10ffb5859a31ebd (patch) | |
tree | 08479232f3d50963b77e67d20af53f15a9d9f296 | |
parent | 491ac170145d4155370d9a8742333b34310fe886 (diff) | |
download | gcc-afdb4a46262ba527823ea9bbe10ffb5859a31ebd.zip gcc-afdb4a46262ba527823ea9bbe10ffb5859a31ebd.tar.gz gcc-afdb4a46262ba527823ea9bbe10ffb5859a31ebd.tar.bz2 |
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 <yapzhhg@gmail.com>
-rw-r--r-- | gcc/rust/typecheck/rust-hir-type-check-base.cc | 3 | ||||
-rw-r--r-- | gcc/rust/typecheck/rust-tyty.h | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/typecheck/rust-hir-type-check-base.cc b/gcc/rust/typecheck/rust-hir-type-check-base.cc index 2ee0d08..14b8ab8 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 9897c30..0309683 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, // ... }; |