Date: Sat, 05 Oct 1996 20:22:38 -0500 From: Steve Price <sprice@hiwaay.net> To: current@freebsd.org Subject: compiling -current with -Dlint Message-ID: <325709DE.1F567D97@hiwaay.net>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?325709DE.1F567D97>
