aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYap Zhi Heng <yapzhhg@gmail.com>2025-04-04 19:37:03 +0800
committerPhilip Herron <philip.herron@embecosm.com>2025-04-16 11:03:05 +0000
commita59e57efe221ef6296a8b5fcb5290733e15a3d20 (patch)
treee96723632243f968427521deab67e31fc7f5a3bf
parent654d79b98a67834fb33a51d05c452a1ff729e1d3 (diff)
downloadgcc-a59e57efe221ef6296a8b5fcb5290733e15a3d20.zip
gcc-a59e57efe221ef6296a8b5fcb5290733e15a3d20.tar.gz
gcc-a59e57efe221ef6296a8b5fcb5290733e15a3d20.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.cc3
-rw-r--r--gcc/rust/typecheck/rust-tyty.h1
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 51c1ae7..2f0b86a 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 cd7bf24..e1370e0 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,
// ...
};