NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/38956 (rb tree corruption?)



> rb_tree code in subr_lockdebug.c is also problematic?

At least on news68k, the following patch fixes problems
on both kern/subr_lockdebug.c and uvm/uvm_page.c:

---
Index: lib/libkern/Makefile
===================================================================
RCS file: /cvsroot/src/sys/lib/libkern/Makefile,v
retrieving revision 1.88
diff -u -r1.88 Makefile
--- lib/libkern/Makefile        15 Jun 2008 20:34:18 -0000      1.88
+++ lib/libkern/Makefile        21 Jun 2008 18:44:47 -0000
@@ -57,6 +57,9 @@
 
 SRCS+= rb.c
 COPTS.rb.c+=   -Wno-missing-field-initializers
+.if ${MACHINE_ARCH} == "m68k"
+COPTS.rb.c+=   -fno-gcse
+.endif
 
 # Files to clean up
 CLEANFILES+= lib${LIB}.o lib${LIB}.po
---

I have not tracked which gcc or rb.c has the problem though.

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index