On Apr 3, 2010, at 12:34, tom fogal wrote: > Vinson Lee <v...@vmware.com> 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. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev