From owner-freebsd-current Sat Oct 5 18:23:15 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA25873 for current-outgoing; Sat, 5 Oct 1996 18:23:15 -0700 (PDT) Received: from fly.HiWAAY.net (root@fly.HiWAAY.net [204.214.4.2]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id SAA25862 for ; Sat, 5 Oct 1996 18:23:07 -0700 (PDT) Received: from bonsai.hiwaay.net by fly.HiWAAY.net; (8.7.5/1.1.8.2/21Sep95-1003PM) id UAA00296; Sat, 5 Oct 1996 20:22:56 -0500 (CDT) Message-ID: <325709DE.1F567D97@hiwaay.net> Date: Sat, 05 Oct 1996 20:22:38 -0500 From: Steve Price X-Mailer: Mozilla 2.02 (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: current@freebsd.org Subject: compiling -current with -Dlint Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Has anybody tried to compile src/lib/csu/i386/crt0.c with -Dlint lately? I just did to get rid of the warning messages about "'sccsid' defined but not used" (I **hate** seeing bogus warning messages) while make'ing world and here is what I saw. cc -Dlint -O2 -m486 -Wall -pipe -fno-strength-reduce -DLIBC_SCCS -fno-omit-frame-pointer -c -DCRT0 -DDYNAMIC /usr/src/lib/csu/i386/crt0.c -o crt0.o /usr/src/lib/csu/i386/crt0.c: In function `start': /usr/src/lib/csu/i386/crt0.c:150: `initcode' undeclared (first use this function) /usr/src/lib/csu/i386/crt0.c:150: (Each undeclared identifier is reported only once /usr/src/lib/csu/i386/crt0.c:150: for each function it appears in.) *** Error code 1 Stop. Here is the offending code (from ctr0.c): #ifdef lint kfp = 0; initcode = initcode = 0; #else /* not lint */ /* just above the saved frame pointer */ asm ("lea 4(%%ebp), %0" : "=r" (kfp) ); #endif /* not lint */ It doesn't appear from 'cvs log' output that the crt0.c file has changed recently. Any startup code gurus know where initcode is/was declared? Or can it safely be removed? TIA, Steve