Skip to content

Commit 7c8abe1

Browse files
committed
Extended GCC < 4.9 workaround to all GCC < 5 to solve GHA failures
1 parent be15104 commit 7c8abe1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎include/boost/interprocess/offset_ptr.hpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,9 @@ namespace ipcdetail {
317317
{
318318
typedef pointer_offset_caster<void*, OffsetType> caster_t;
319319
BOOST_ASSERT(ptr != 0);
320-
#if defined(BOOST_GCC) && (BOOST_GCC < 40900)
321-
//GCC 4.8.1 miscompiles the bare difference of the two addresses at -O1
322-
//and above. GCC 4.7 and 4.9 are not affected.
320+
#if defined(BOOST_GCC) && (BOOST_GCC < 50000)
321+
//GCC 4.8 and 4.9 miscompile the bare difference of the two addresses at -O1
322+
//and above . GCC 5 and later are not affected.
323323
OffsetType ptr_off = caster_t(ptr).offset();
324324
__asm__("" : "+r"(ptr_off));
325325
const OffsetType offset = ptr_off - caster_t(this_ptr).offset();

0 commit comments

Comments
 (0)