File tree Expand file tree Collapse file tree 2 files changed +8
-21
lines changed Expand file tree Collapse file tree 2 files changed +8
-21
lines changed Original file line number Diff line number Diff line change @@ -2560,22 +2560,7 @@ You probably want to be using L<C</INT2PTR>> instead.
2560
2560
# endif
2561
2561
#endif
2562
2562
2563
- /* On MS Windows,with 64-bit mingw-w64 compilers, we
2564
- need to attend to a __float128 alignment issue if
2565
- USE_QUADMATH is defined. Otherwise we simply:
2566
- typedef NVTYPE NV
2567
- 32-bit mingw.org compilers might also require
2568
- aligned(32) - at least that's what I found with my
2569
- Math::Foat128 module. But this is as yet untested
2570
- here, so no allowance is being made for mingw.org
2571
- compilers at this stage. -- sisyphus January 2021
2572
- */
2573
- #if (defined(USE_LONG_DOUBLE) || defined(USE_QUADMATH)) && defined(__MINGW64__)
2574
- /* 64-bit build, mingw-w64 compiler only */
2575
- typedef NVTYPE NV __attribute__ ((aligned (8 )));
2576
- #else
2577
- typedef NVTYPE NV;
2578
- #endif
2563
+ typedef NVTYPE NV;
2579
2564
2580
2565
#ifdef I_IEEEFP
2581
2566
# include < ieeefp.h>
Original file line number Diff line number Diff line change @@ -71,12 +71,14 @@ inline void MEMODSlx(char *str, long x)
71
71
class VMem ;
72
72
73
73
/*
74
- * Address an alignment issue with x64 mingw-w64 ports of gcc-12 and
75
- * (presumably) later. We do the same thing again 16 lines further down.
76
- * See https://github.com/Perl/perl5/issues/19824
74
+ * Address an alignment issue with x64 mingw-w64 ports of gcc.
75
+ * (We do the same thing again a little further down.)
76
+ * See https://github.com/Perl/perl5/issues/19824.
77
+ * Later modified as a result of discussions in
78
+ * https://github.com/Perl/perl5/issues/22577
77
79
*/
78
80
79
- #if defined(__MINGW64__) && __GNUC__ > 11
81
+ #if defined(__MINGW64__)
80
82
typedef struct _MemoryBlockHeader * PMEMORY_BLOCK_HEADER __attribute__ ((aligned(16 )));
81
83
#else
82
84
typedef struct _MemoryBlockHeader * PMEMORY_BLOCK_HEADER;
@@ -87,7 +89,7 @@ typedef struct _MemoryBlockHeader {
87
89
PMEMORY_BLOCK_HEADER pPrev;
88
90
VMem *owner;
89
91
90
- #if defined(__MINGW64__) && __GNUC__ > 11
92
+ #if defined(__MINGW64__)
91
93
} MEMORY_BLOCK_HEADER __attribute__ ((aligned(16 ))), *PMEMORY_BLOCK_HEADER;
92
94
#else
93
95
} MEMORY_BLOCK_HEADER, *PMEMORY_BLOCK_HEADER;
You can’t perform that action at this time.
0 commit comments