|
From: | Laurent Michel |
Subject: | [Lightning] Fix for Apple? |
Date: | Tue, 10 Jun 2008 14:26:42 -0400 |
As I port on the head revision of lightning, I did get a problem with this: #ifdef __APPLE__ /* Stack must stay 16-byte aligned: */ # define jit_prepare_i(ni) (((ni & 0x3) \ ? SUBLir(4 * ((((ni) + 3) & ~(0x3)) - (ni)), JIT_SP) \ : (void)0), \ _jitl.argssize += (((ni) + 3) & ~(0x3))) #define jit_allocai(n) \ jit_allocai_internal ((n), (_jitl.alloca_slack - (n)) & 15) #else # define jit_prepare_i(ni) (_jitl.argssize += (ni)) #define jit_allocai(n) \ jit_allocai_internal ((n), 0) #endif It won't compile (with Apple's g++) on apple because of the (void)0 bit in the prepare_i macro. I changed it to #ifdef __APPLE__ /* Stack must stay 16-byte aligned: */ # define jit_prepare_i(ni) (((ni & 0x3) \ ? SUBLir(4 * ((((ni) + 3) & ~(0x3)) - (ni)), JIT_SP) \ : (int)0), \ _jitl.argssize += (((ni) + 3) & ~(0x3))) #define jit_allocai(n) \ jit_allocai_internal ((n), (_jitl.alloca_slack - (n)) & 15) #else # define jit_prepare_i(ni) (_jitl.argssize += (ni)) #define jit_allocai(n) \ jit_allocai_internal ((n), 0) #endif -- Laurent |
smime.p7s
Description: S/MIME cryptographic signature
[Prev in Thread] | Current Thread | [Next in Thread] |