mirror of
https://github.com/verilator/verilator.git
synced 2026-10-08 02:53:12 +02:00
Remove deprecated --structs-packed.
This commit is contained in:
+1
-5
@@ -3827,7 +3827,6 @@ class WidthVisitor final : public VNVisitor {
|
||||
if (unionp->isTagged()) { nodep->v3warn(E_UNSUPPORTED, "Unsupported: tagged union"); }
|
||||
}
|
||||
// UINFOTREE(9, nodep, "", "class-in");
|
||||
if (!nodep->packed() && v3Global.opt.structsPacked()) nodep->packed(true);
|
||||
userIterateChildren(nodep, nullptr); // First size all members
|
||||
nodep->dtypep(nodep);
|
||||
nodep->isFourstate(false);
|
||||
@@ -3835,10 +3834,7 @@ class WidthVisitor final : public VNVisitor {
|
||||
for (AstMemberDType* itemp = nodep->membersp(); itemp;
|
||||
itemp = VN_AS(itemp->nextp(), MemberDType)) {
|
||||
AstNodeDType* const dtp = itemp->subDTypep()->skipRefp();
|
||||
if (nodep->packed()
|
||||
&& !dtp->isIntegralOrPacked()
|
||||
// Historically lax:
|
||||
&& !v3Global.opt.structsPacked())
|
||||
if (nodep->packed() && !dtp->isIntegralOrPacked())
|
||||
itemp->v3error("Unpacked data type "
|
||||
<< dtp->prettyDTypeNameQ()
|
||||
<< " in packed struct/union (IEEE 1800-2023 7.2.1)");
|
||||
|
||||
Reference in New Issue
Block a user