summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorsisyphus <sisyphus@cpan.org>2022-07-03 16:53:25 +1000
committerTony Cook <tony@develop-help.com>2022-07-07 10:43:43 +1000
commit07e16c7421986e429b574d610d937b89a88ef2db (patch)
tree1717ab3614ac36352ca0b7d523488eba87110d2a /win32
parent14e63e090b821d302d1b7a73f75378385d253289 (diff)
downloadperl-07e16c7421986e429b574d610d937b89a88ef2db.tar.gz
win32/vmem.h - memory alignment needed for gcc-12
Add comment & refer to https://github.com/Perl/perl5/issues/19824
Diffstat (limited to 'win32')
-rw-r--r--win32/vmem.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/win32/vmem.h b/win32/vmem.h
index de1a31a90b..898e63b8d1 100644
--- a/win32/vmem.h
+++ b/win32/vmem.h
@@ -70,6 +70,12 @@ inline void MEMODSlx(char *str, long x)
#ifdef _USE_LINKED_LIST
class VMem;
+/*
+ * Address an alignment issue with x64 mingw-w64 ports of gcc-12 and
+ * (presumably) later. We do the same thing again 16 lines further down.
+ * See https://github.com/Perl/perl5/issues/19824
+ */
+
#if defined(__MINGW64__) && __GNUC__ > 11
typedef struct _MemoryBlockHeader* PMEMORY_BLOCK_HEADER __attribute__ ((aligned(16)));
#else