compiler question
D. Peter Siddons
siddons at bnl.gov
Thu Dec 2 02:00:38 UTC 2004
I just switched to gcc3.3.5 (m68k Coldfire project). Code which used to
compile with gcc3.2.3 now fails in the following fragment:
unsigned char *gethwaddr(int a){
register long __result __asm__ ("%d0") = 12;
register long __a __asm__ ("%d1") = (long)a;
__asm__ __volatile__ ("trap #2" \
: "=g" (__result) \
: "0" (__result), "d" (__a) \
: "%d0");
return (unsigned char *)(__result);
}
The error given is:
error: asm-specifier for variable `__result' conflicts with asm clobber list
Anyone know what it means?
Pete.
More information about the users
mailing list