This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Revert "op.h: Add additional padding to struct opslab to ensure proper alignment"
authorTony Cook <tony@develop-help.com>
Tue, 23 Jun 2020 04:19:43 +0000 (14:19 +1000)
committerKarl Williamson <khw@cpan.org>
Thu, 30 Jul 2020 22:08:59 +0000 (16:08 -0600)
This reverts commit a760468c9355bafaee57e94f13705c0ea925d9ca.

This change is fragile, the next change avoids the need for such
manual padding.

op.h

diff --git a/op.h b/op.h
index b9f6da8..fc21f03 100644 (file)
--- a/op.h
+++ b/op.h
@@ -713,9 +713,6 @@ struct opslab {
                                            units) */
 # ifdef PERL_DEBUG_READONLY_OPS
     bool       opslab_readonly;
-    U8          opslab_padding;         /* padding to ensure that opslab_slots is always */
-# else
-    U16         opslab_padding;         /* located at an offset with 32-bit alignment */
 # endif
     OPSLOT     opslab_slots;           /* slots begin here */
 };