This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

powerpc-eabi-gcc does not recognize "XER" register anymore?


Hello,

since installing gcc-2.95.3, gcc can not handle the "XER" register anymore
when I specify it as spilled in an inline asm construct:

#define C_CALL_VOLATILE_REG
"0","3","4","5","6","7","8","9","10","11","12","cr0","cr1","cr5","cr6","cr7","ctr","xer"

#define OS_SYSCALL1(a,trap) asm volatile \
           ("mr 3,%0; li 10,%1; sc"::"r"(a),"n"(trap)\
           : C_CALL_VOLATILE_REG )

../include/foo.h:119:unknown register name `xer' in `asm'

gcc-2.95.2 and the snapshots 20000417 and 20000619 work fine - why was this
changed? How do I tell the compiler now that XER may change during the asm?

cu
Michael
-- 
In the beginning there was nothing, which exploded.

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]