ironport/shrapnel — Issue #6: Darwin/OSX 10.6.8 with default gcc builds swap.c:wrap0 incorrectly.
Author: samrushing
Created: 2011-12-16 23:27:43+00:00
State: open

My hack that checks for __llvm__ doesn't appear to work with pre-Lion gcc.
That gcc reports itself as:

gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)

But requires the 16-byte offset, not the 8-byte offset.
Perhaps it's not llvm that distinguishes the different offset, but the platform?

This leads to the immediate segfault. Anyone have a pre-Lion machine to test this on?