Boost Users :
Subject: Re: [Boost-users] Context and coroutine for ARM
Date: 2017-05-13 18:58:10
> I am a bit surprised the code compiled on Pi, but I think they fixed that somehow in their own branch of gcc (since its version is 4.9.2-10)
> pi_at_rpi1 ~ $ g++ -v
> gcc version 4.9.2 (Raspbian 4.9.2-10)
Try `gcc -dM - -E < /dev/null | grep __GCC_ATOMIC_INT_LOCK_FREE`, it should output 2 in you Pi, and output 1 when using your cross-compiler.
And ATOMIC_INT_LOCK_FREE is defined to be __GCC_ATOMIC_INT_LOCK_FREE, so the code compiles.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net