From owner-freebsd-questions Fri May 17 20:06:05 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id UAA15092 for questions-outgoing; Fri, 17 May 1996 20:06:05 -0700 (PDT) Received: from xs1.simplex.nl (xs1.simplex.NL [193.78.46.10]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id UAA15077 for ; Fri, 17 May 1996 20:06:02 -0700 (PDT) X-Organisation-1: Simplex Networking Amsterdam X (Inter)Network X-Organisation-2: Kruislaan 419-38a 1098 VA Amsterdam X Solutions & X-Organisation-3: tel:+31(20)-6932433 fax:+31(20)-6685486 X Access Provider Received: (from uucp@localhost) by xs1.simplex.nl (8.7.5/8.7.3-RS) with UUCP id FAA01038; Sat, 18 May 1996 05:05:58 +0200 (MET DST) Received: (from plm@localhost) by plm.simplex.nl (8.7.5/8.7.3) id SAA04818; Fri, 17 May 1996 18:48:19 +0200 (MET DST) Date: Fri, 17 May 1996 18:48:19 +0200 (MET DST) Message-Id: <199605171648.SAA04818@plm.simplex.nl> From: Peter Mutsaers To: nate@sri.MT.net CC: freebsd-questions@FreeBSD.org In-reply-to: <199605170437.WAA25870@rocky.sri.MT.net> (message from Nate Williams on Thu, 16 May 1996 22:37:54 -0600) Subject: Re: make world with gcc version 2.7.2 or pgcc 2.7.2.9? Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk >> On Thu, 16 May 1996 22:37:54 -0600 you wrote: >> Did anyone try to rebuild everything, including the kernel, with gcc >> version 2.7.2 or pgcc, and with -O2 or higher? NW> I believe Kaleb Keithley rebuilt X with one of them and it didn't work. NW> This implies to me it's a compiler bug, as there are quite a few known NW> optimizer bugs in gcc 2.7.2 for the x86, and at least one generic NW> optimizer bug that was posted on gnu.gcc.bug. The generic bug was, I think, shown by this example: #include int A[3]; unsigned int b = 3; void printit(void) { int i; for(i = 0; i < b; i++) fprintf(stdout, "A[%d] = %d\n", i, A[i]); } int main() { int i; for(i = 0; i < b; i++) *(A+i) = i - 3; printit(); return 0; } gcc 2.7.2 doesn't show correct results. gcc 2.7.2.9 (the current pgcc release) has this fixed however. It also has fixed the x86 bug that made it necessary when using -O2 or higher to add -fno-strength-reduce. NW> 'probably bogus' and faster code. Since there are known bugs, NW> given a system the size of FreeBSD the possibility of the bug NW> being tickled *somewhere* is high. And, given that the speedups NW> for stock gcc aren't stupendous (unlike pgcc which can be quite NW> high, but the code generation is suspect in many cases) it's not NW> worth it. Hmm. Do the pentium patches introduce new bugs? -- ______________________________________________________________________ Peter Mutsaers | Abcoude (Utrecht), | "Quod licet bovis, plm@simplex.nl | the Netherlands | non licet Jovi."