Re: asm conflict question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Richard Bonomo <bonomo@xxxxxxxxxxxx> 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.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux