error compiling sched.c with current 2.6 bk
Joel Schopp
jschopp at austin.ibm.com
Wed Oct 15 05:22:44 EST 2003
It's caused by a gcc bug. Not sure when/if it got fixed as I am too
lazy to upgrade gcc right now. Below is a patch which will work
around the problem.
diff -Nru a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h
--- a/include/linux/compiler-gcc.h Sun Sep 21 16:49:47 2003
+++ b/include/linux/compiler-gcc.h Tue Sep 30 11:01:51 2003
@@ -13,5 +13,5 @@
shouldn't recognize the original var, and make assumptions about it */
#define RELOC_HIDE(ptr, off) \
({ unsigned long __ptr; \
- __asm__ ("" : "=g"(__ptr) : "0"(ptr)); \
+ __asm__ ("" : "=r"(__ptr) : "0"(ptr)); \
(typeof(ptr)) (__ptr + (off)); })
** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc64-dev
mailing list