This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: asm conflict question
Richard Bonomo <bonomo@sal.wisc.edu> 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
register.
[I think old (2.x) versions of gcc would allow clobbers to duplicate
write-specs, but newer ones don't.]
-Miles
--
(\(\
(^.^)
(")")
*This is the cute bunny virus, please copy this into your sig so it can spread.