Code segfaults with clang -O1, works with gcc49 and clang -O2

Bruce Cran bruce at cran.org.uk
Wed Oct 30 16:21:23 UTC 2013


On 10/30/2013 1:33 PM, Tijl Coosemans wrote:
> Should be: "=c" (*ecx)
>
> But you can also use the '+' modifier and remove the input operands:
>
> : "+a" (*eax), "=b" (*ebx), "+c" (*ecx), "=d" (*edx)
> :
> : "memory"

That fixed it - thanks!

-- 
Bruce Cran


More information about the freebsd-questions mailing list