Date: Mon, 13 Jul 92 19:21:20 +0100 From: Dieter Buerssner To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: patch for go32 1.07 The following patch seems to speed up compiling by a factor of 2. It is very simple and it might even be really stupid. It works for me anyway. Maybe somebody want's to try it out. I'd appreciate any comments. Dieter. Dieter Buerssner (B\"ur\ss{}ner) -- buers AT dg1 DOT chemie DOT uni-konstanz DOT de Universitaet Konstanz -- Fakultaet Chemie -- Postfach 5560 7750 Konstanz -- Germany -- +49-7531-882021 diff -c go32/valloc.c gn/valloc.c *** go32/valloc.c Tue Jul 7 17:29:18 1992 --- gn/valloc.c Mon Jul 13 10:16:16 1992 *************** *** 186,194 **** case VA_640: if (pn_lo_next <= pn_lo_last) { - #if TOPLINEINFO mem_avail -= 4; mem_used += 4; valloc_update_status(); #endif return pn_lo_next++; --- 186,194 ---- case VA_640: if (pn_lo_next <= pn_lo_last) { mem_avail -= 4; mem_used += 4; + #if TOPLINEINFO valloc_update_status(); #endif return pn_lo_next++; *************** *** 206,214 **** { if ((pn = vcpi_alloc()) != 0) { - #if TOPLINEINFO mem_avail -= 4; mem_used += 4; valloc_update_status(); #endif map[pn>>3] |= 1 << (pn&7); --- 206,214 ---- { if ((pn = vcpi_alloc()) != 0) { mem_avail -= 4; mem_used += 4; + #if TOPLINEINFO valloc_update_status(); #endif map[pn>>3] |= 1 << (pn&7); *************** *** 219,227 **** { if (pn_hi_next <= pn_hi_last) { - #if TOPLINEINFO mem_avail -= 4; mem_used += 4; valloc_update_status(); #endif return pn_hi_next++; --- 219,227 ---- { if (pn_hi_next <= pn_hi_last) { mem_avail -= 4; mem_used += 4; + #if TOPLINEINFO valloc_update_status(); #endif return pn_hi_next++; *************** *** 229,237 **** } if (pn_lo_next <= pn_lo_last) { - #if TOPLINEINFO mem_avail -= 4; mem_used += 4; valloc_update_status(); #endif return vcpi_pt[pn_lo_next++] >> 12; --- 229,237 ---- } if (pn_lo_next <= pn_lo_last) { mem_avail -= 4; mem_used += 4; + #if TOPLINEINFO valloc_update_status(); #endif return vcpi_pt[pn_lo_next++] >> 12; *************** *** 250,258 **** void vfree() { - #if TOPLINEINFO mem_avail += 4; mem_used -= 4; valloc_update_status(); #endif } --- 250,258 ---- void vfree() { mem_avail += 4; mem_used -= 4; + #if TOPLINEINFO valloc_update_status(); #endif }