On Sat, Feb 13, 2016 at 07:17:35PM +0100, Matthieu Herrb wrote: > So, here is a patch that should let libGL to build again on > alpha. I've not done a full clean xenocara build with it yet though, > given how slow my alpha is. > > In addition to the non-existent sync operation, I had to force 2 files > to build with -O0. > > There is a lot of Makefile.in churn since I did some autotools > hackery...
Any idea which of the -O1 options triggers it? According to gcc(1): -O turns on the following optimization flags: -fdefer-pop -fdelayed-branch -fguess-branch-probability -fcprop-registers -fif-conversion -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants So alpha is in the same situation mips64 was then? Going by /sys/arch/alpha/include/atomic.h there are atomics, which sync builtins does gcc not implement on alpha?