Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Oct 2013 16:21:20 +0000
From:      Bruce Cran <bruce@cran.org.uk>
To:        Tijl Coosemans <tijl@coosemans.org>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Code segfaults with clang -O1, works with gcc49 and clang -O2
Message-ID:  <52713200.3000005@cran.org.uk>
In-Reply-To: <20131030143301.623be910@kalimero.tijl.coosemans.org>
References:  <5270D99C.6070901@cran.org.uk> <20131030143301.623be910@kalimero.tijl.coosemans.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52713200.3000005>