This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
the problem about difference between gcc2.7 and gcc2.96
- To: <gcc-help at gcc dot gnu dot org>
- Subject: the problem about difference between gcc2.7 and gcc2.96
- From: "ma,yi" <mikema at cc dot gatech dot edu>
- Date: Sat, 13 Oct 2001 21:30:59 -0400
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