From: Jeremy H. <jer...@fr...> - 2010-04-04 04:33:43
|
On Apr 3, 2010, at 12:34, tom fogal wrote: > Vinson Lee <vl...@vm...> writes: >> Leopard uses gcc-4.0, which didn't have built-in support for atomic >> variables. > > u_atomic.h should probably check for a supported compiler; Jeremy, does > the attached patch produce an understandable error instead of a link > error? Yeah, that bails appropriately, but the message should probably be soemthing more like: #error "galium requires a compiler that supports gcc atomics." > In terms of a solution, Jeremy, you could implement PPC assembly for > the few primitives available there. Looks easy for someone who knows > PPC well. I only know MIPS and a splash (more than I'ld like) of X86. Seeing as how ppc is not in any shipping Apple products any more, and it's easy enough to force users to update to gcc-4.2, I think an #error is good enough. |