Compiler optimizing variables in inline assembly
Cody Rigney
codyrigney92@gmail.com
Thu Feb 27 13:18:00 GMT 2014
> On Fri, Feb 21, 2014 at 10:02 AM, Andrew Haley <aph@redhat.com> wrote:
>> It's hard for me to give a 100% answer to that one, but GCC has an
>> idea what memory is reachable from every pointer. So, this won't
>> clobber memory that's unreachable or has a different type from that
>> pointer. It probably doesn't matter.
>>
Doing "=m" (*a) in the output operand worked! And so did "memory" to
the clobber list. Thanks!
More information about the Gcc-help
mailing list