[PATCH libdrm] configure.ac: rework compiler builtin atomic tests

2015-11-16 Thread Emil Velikov
Hi Jonathan, On 29 August 2015 at 08:32, Jonathan Gray wrote: > The libdrm autoconf test for atomics uses __sync_val_compare_and_swap with > the address of a function argument which triggers a gcc ICE on sparc64 > with the OpenBSD system compiler. > > Mark Kettenis pointed out that while other ar

[PATCH libdrm] configure.ac: rework compiler builtin atomic tests

2015-08-29 Thread Jonathan Gray
The libdrm autoconf test for atomics uses __sync_val_compare_and_swap with the address of a function argument which triggers a gcc ICE on sparc64 with the OpenBSD system compiler. Mark Kettenis pointed out that while other architectures probably spill the argument onto the stack this is likely not