From mboxrd@z Thu Jan 1 00:00:00 1970 From: "ma, yi" To: Subject: the problem about difference between gcc2.7 and gcc2.96 Date: Sat, 13 Oct 2001 18:27:00 -0000 Message-id: <00e401c1544f$e0d5ebb0$3c323d80@mikema> X-SW-Source: 2001-10/msg00117.html 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