asm conflict question

Miles Bader
Wed Aug 9 15:31:00 GMT 2006

Richard Bonomo <> writes:
>     __asm__ volatile ("tfr     cc,b" : "=d" (__Status) : : "d", "b"); \
> error: asm-specifier for variable `__Status' conflicts with asm clobber list

What if you just remove "d" from the clobber list?  There's no point to
having it there anyway as the compiler knows you're writing the

[I think old (2.x) versions of gcc would allow clobbers to duplicate
write-specs, but newer ones don't.]

*This is the cute bunny virus, please copy this into your sig so it can spread.

More information about the Gcc-help mailing list