From: Cyril H. <ch...@su...> - 2010-11-02 11:35:30
|
Hi! > - Log ----------------------------------------------------------------- > commit 66563a75aab15b2cee95e2e296543a9a2b9a3e25 > Author: Garrett Cooper <yan...@gm...> > Date: Mon Nov 1 23:36:33 2010 -0700 > > Use glibc builtin to avoid -O2 gcc optimization bugs. > > In recent copies of gcc (v4.3.4) -O2 optimization makes the current > atomic_add function malfunction for some reason (need to refer to > glibc changes for more details). To avoid these sorts of problems > in the future, it is better to make use of the glibc builtin. > > Signed-off-by: Gowrishankar <gow...@in...> > Signed-off-by: Darren Hart <dv...@us...> > Tested-by: Gowrishankar <gow...@in...> > > ----------------------------------------------------------------------- Just for clarity, this is gcc buildin, see: http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Atomic-Builtins.html And the malfunction was caused by incorrect gcc inline assembler. -- Cyril Hrubis ch...@su... |