the problem about difference between gcc2.7 and gcc2.96

ma, yi mikema@cc.gatech.edu
Sat Oct 13 18:27:00 GMT 2001


Dear all,

I have a software that can been compiled and run well under redhat 5.2 (gcc 2.7). However I can not compile it now under redhat7.1(gcc 2.96). I don't know why! 

 The error is: 

  i586-msrs.h:122: Can't find a register in class 'AREG' while reloading
'asm'

the  error happened in the lines below:

/* In a minimal tight loop with no unrolling, a micro benchmark shows this
   as requiring 16 cycles */
extern __inline__ void
read_tsc(uint64 *dst)
{
        __asm__ __volatile__("rdtsc" 
                             : "=a" (*(uint32 *)dst), "=d" (*(((uint32 *)dst) + 1))
                             :
                             : "eax", "edx");
}           

  About the software, there are many other problems under gcc 2.96. I don't
  know why. can you give me some suggestion or solution to solve this
  problem?Thank you very much!

Best Regards,

Ma



More information about the Gcc-help mailing list