[v3] atomics

Jakub Jelinek jakub@redhat.com
Fri Apr 18 19:04:00 GMT 2008


On Fri, Apr 18, 2008 at 10:51:33AM -0700, David Daney wrote:
> At this point I don't really have an opinion as to how to fix the 
> problem.  One thought that comes to mind is to change the definition of 
> atomic_flag so that the size of the atomic variable is appropriate for 
> the target architecture (32 bits in the case of MIPS)

Best is to add support for the 8 and 16-bit sync builtins.
See e.g. sparc or s390 backends how it can be done using 32-bit
compare and swap instruction.

	Jakub



More information about the Gcc-patches mailing list