Re: Linux 2.1.126pre2ac2

Trond Myklebust (trond.myklebust@fys.uio.no)
20 Oct 1998 16:29:11 +0200


alan@lxorguk.ukuu.org.uk (Alan Cox) writes:

>
> The great egcs -O3 problem is still there. Colin Plumb pinned the bug
> down but his workaround patch stops it working at all in gcc 2.7.2 8(

Have you tried his 'minimum workaround' patch? I had to change his
input line '"I" (5 * 1000020/HZ)' to a "i", but otherwise it seems to
work fine for me.

Cheers,
Trond

--- time.c Sun Oct 18 08:17:30 1998
+++ time.c Sun Oct 18 08:21:55 1998
@@ -563,12 +563,11 @@
"movl %%eax, %%ecx\n\t"
"xorl %%eax, %%eax\n\t"
"movl %1, %%edx\n\t"
- "divl %%ecx\n\t" /* eax= 2^32 / (1 * TSC counts per microsecond) */
+ "divl %%ecx" /* eax= 2^32 / (1 * TSC counts per microsecond) */
/* Return eax for the use of fast_gettimeoffset */
- "movl %%eax, %0\n\t"
- : "=r" (retval)
- : "r" (5 * 1000020/HZ)
- : /* we clobber: */ "ax", "bx", "cx", "dx", "cc", "memory");
+ : "=&a" (retval)
+ : "i" (5 * 1000020/HZ)
+ : /* we clobber: */ "bx", "cx", "dx", "cc", "memory");
return retval;
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/