Subject: Re: EGCS 1.1 UPDATE rev. 5 / warnings from mac68k kernel
To: None <tech-toolchain@netbsd.org>
From: Erik Bertelsen <erik@mediator.uni-c.dk>
List: tech-toolchain
Date: 08/20/1998 14:28:43
Enclosed you'll find the warnings produced by egcs 1.1 on my current
mac68k kernel with a few remarks...

Except for the one related to sd.c, the warnings mostly look like the
much mentioned (often false) warnings about using unitialized storage.

regards
Erik Bertelsen

cd /home/src/sys/arch/mac68k/compile/Q610/
make -k 
making sure the 68040 FPSP is up to date...
`fpsp.o' is up to date.
cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-main -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc -DHZ="0x3c" -DNKMEMCLUSTERS="0x800" -DNMBCLUSTERS="0x400" -DCOMPAT_43 -DM68040 -DFPSP -DMAXUSERS=16 -D_KERNEL  -Dmc68020 -Dmac68k  -c ../../../../dev/ic/ncr53c9x.c
cc1: warnings being treated as errors
../../../../dev/ic/ncr53c9x.c: In function `ncr53c9x_intr':
../../../../dev/ic/ncr53c9x.c:1360: warning: `ecb' might be used uninitialized in this function
*** Error code 1 (continuing)
cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-main -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc -DHZ="0x3c" -DNKMEMCLUSTERS="0x800" -DNMBCLUSTERS="0x400" -DCOMPAT_43 -DM68040 -DFPSP -DMAXUSERS=16 -D_KERNEL  -Dmc68020 -Dmac68k  -c ../../../../kern/vfs_subr.c
cc1: warnings being treated as errors
../../../../kern/vfs_subr.c: In function `vgonel':
../../../../kern/vfs_subr.c:1305: warning: `_spl_r2' might be used uninitialized in this function
*** Error code 1 (continuing)

This one repeats itself several times, and comes from mac68k/includes/intr.h.
By changing _spl_r to _spl_r2 in one of the macros, I have noticed that
it comes from _splraise (not _spl).




cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-main -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc -DHZ="0x3c" -DNKMEMCLUSTERS="0x800" -DNMBCLUSTERS="0x400" -DCOMPAT_43 -DM68040 -DFPSP -DMAXUSERS=16 -D_KERNEL  -Dmc68020 -Dmac68k  -c ../../../../miscfs/specfs/spec_vnops.c
cc1: warnings being treated as errors
../../../../miscfs/specfs/spec_vnops.c: In function `spec_close':
../../../../miscfs/specfs/spec_vnops.c:547: warning: `devclose' might be used uninitialized in this function
../../../../miscfs/specfs/spec_vnops.c:548: warning: `mode' might be used uninitialized in this function
*** Error code 1 (continuing)
cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-main -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc -DHZ="0x3c" -DNKMEMCLUSTERS="0x800" -DNMBCLUSTERS="0x400" -DCOMPAT_43 -DM68040 -DFPSP -DMAXUSERS=16 -D_KERNEL  -Dmc68020 -Dmac68k  -c ../../../../ufs/ufs/ufs_vnops.c
cc1: warnings being treated as errors
../../../../ufs/ufs/ufs_vnops.c: In function `ufs_readdir':
../../../../ufs/ufs/ufs_vnops.c:1544: warning: `dpstart' might be used uninitialized in this function
../../../../ufs/ufs/ufs_vnops.c:1545: warning: `cookies' might be used uninitialized in this function
../../../../ufs/ufs/ufs_vnops.c:1545: warning: `offstart' might be used uninitialized in this function
../../../../ufs/ufs/ufs_vnops.c:1546: warning: `ncookies' might be used uninitialized in this function
../../../../ufs/ufs/ufs_vnops.c:1566: warning: `_spl_r2' might be used uninitialized in this function
*** Error code 1 (continuing)
cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-main -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc -DHZ="0x3c" -DNKMEMCLUSTERS="0x800" -DNMBCLUSTERS="0x400" -DCOMPAT_43 -DM68040 -DFPSP -DMAXUSERS=16 -D_KERNEL  -Dmc68020 -Dmac68k  -c ../../../../uvm/uvm_aobj.c
cc1: warnings being treated as errors
../../../../uvm/uvm_aobj.c: In function `uao_create':
../../../../uvm/uvm_aobj.c:574: warning: `_spl_r2' might be used uninitialized in this function
*** Error code 1 (continuing)
cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-main -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc -DHZ="0x3c" -DNKMEMCLUSTERS="0x800" -DNMBCLUSTERS="0x400" -DCOMPAT_43 -DM68040 -DFPSP -DMAXUSERS=16 -D_KERNEL  -Dmc68020 -Dmac68k  -c ../../../../uvm/uvm_map.c
cc1: warnings being treated as errors
../../../../uvm/uvm_map.c: In function `uvmspace_fork':
../../../../uvm/uvm_map.c:183: warning: `me' might be used uninitialized in this function
../../../../uvm/uvm_map.c:189: warning: `_spl_r2' might be used uninitialized in this function
*** Error code 1 (continuing)
cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-main -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc -DHZ="0x3c" -DNKMEMCLUSTERS="0x800" -DNMBCLUSTERS="0x400" -DCOMPAT_43 -DM68040 -DFPSP -DMAXUSERS=16 -D_KERNEL  -Dmc68020 -Dmac68k  -c ../../../../uvm/uvm_page.c
cc1: warnings being treated as errors
../../../../uvm/uvm_page.c: In function `uvm_pagealloc_strat':
../../../../uvm/uvm_page.c:853: warning: `pg' might be used uninitialized in this function
../../../../uvm/uvm_page.c:854: warning: `freeq' might be used uninitialized in this function
../../../../uvm/uvm_page.c:958: warning: `pg' might be used uninitialized in this function
*** Error code 1 (continuing)
cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-main -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc -DHZ="0x3c" -DNKMEMCLUSTERS="0x800" -DNMBCLUSTERS="0x400" -DCOMPAT_43 -DM68040 -DFPSP -DMAXUSERS=16 -D_KERNEL  -Dmc68020 -Dmac68k  -c ../../../../dev/scsipi/sd.c
cc1: warnings being treated as errors
../../../../dev/scsipi/sd.c:1041: warning: alignment of `sx' is greater than maximum object file alignment. Using 2.
*** Error code 1 (continuing)

This one I never saw before :-(


making sure the kern library is up to date...
`libkern.o' is up to date.
making sure the compat library is up to date...
`libcompat.a' is up to date.
`all' not remade because of errors.

Compilation finished at Thu Aug 20 14:19:16