Add "memory" and "cc" to the clobbers of atomic instructions in ref.hh
The gcc docs say use "memory" if "your assembler instructions access
memory in an unpredictable fashion". I don't know what that means,
but linux adds "memory" for similar inlines. The gcc docs say use
"cc" if "assembler instruction can alter the condition code
register". I know what that means, but linux doesn't use it.
正在显示
请
注册
或者
登录
后发表评论