asm conflict question

Miles Bader miles@gnu.org
Wed Aug 9 15:31:00 GMT 2006


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.



More information about the Gcc-help mailing list