setgcc x86 gcc4
You will also need to add -march=i686 to the makefiles or you will get a linker error for __sync_sub_and_fetch_4
#elif __HAIKU__ #define AS_HAIKU // Only x86-32 is currently supported by Haiku, but they do plan to support // x86-64 and PowerPC in the future, so should go ahead and check the platform // for future compatibility #if defined(i386) && !defined(__LP64__) #define AS_X86 #define THISCALL_RETURN_SIMPLE_IN_MEMORY #define CDECL_RETURN_SIMPLE_IN_MEMORY #define STDCALL_RETURN_SIMPLE_IN_MEMORY #else #define AS_MAX_PORTABILITY #endif #define AS_POSIX_THREADS #if !( ( (__GNUC__ == 4) && (__GNUC_MINOR__ >= 1) || __GNUC__ > 4) ) // Only with GCC 4.1 was the atomic instructions available #define AS_NO_ATOMIC #endif
All tests pass.