Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Sep 2005 15:32:53 -0400
From:      John Baldwin <jhb@FreeBSD.org>
To:        current@FreeBSD.org
Cc:        powerpc@FreeBSD.org, alpha@FreeBSD.org
Subject:   [PATCH] Cleanup asm constraints in atomic operations
Message-ID:  <200509021532.54579.jhb@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
alc@ brought to my attention a while back that while gcc allows one to use the 
'+' constraint modifier to collapse identical input and output operands that 
are in registers, it is only allowed for registers and not for memory 
operands.  The patch below removes uses of the '+' modifier in conjunction 
with memory operands in the atomic operations for alpha, amd64, i386, and 
powerpc.  Please test and let me know if there are any regressions.

-- 
John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org



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