Subject: bin/8553: gcc reported line number too big
To: None <>
From: None <>
List: netbsd-bugs
Date: 10/04/1999 13:05:45
>Number:         8553
>Category:       bin
>Synopsis:       gcc reported line number too big
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct  4 13:05:01 1999
>Originator:     Ignatios Souvatzis
	Little Devil Worshippers, noninc.
>Release:        gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release); source date is August 27th, 1999
System: NetBSD jocelyn 1.4K NetBSD 1.4K (ISDN13) #22: Sun Sep 26 21:52:29 MEST 1999 is@jocelyn:/build2/i4b/ISDN13 amiga


cc started to report wrong line numbers a while ago. See below for example
originally reported by Thorsten Frueauf in PR 8541. As I've seen this with
other files also, here's a report:

jocelyn GENERIC !% make COPTS=-DDEBUG sbic.o
cc  -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Wno-main -DDEBUG -m68060 -Wa,-m68030 -Wa,-m68851 -msoft-float -I. -I/sys/arch -I/sys -nostdinc -DDRACO -DM68060 -DM060SP -DM68040 -DFPSP -DM68030 -DM68020 -DFPU_EMULATE -DNS -DLKM -DNKMEMCLUSTERS="0x100" -DDIAGNOSTIC -DMAXUSERS=8 -D_KERNEL -Damiga -DFPCOPROC  -c /sys/arch/amiga/dev/sbic.c
cc1: warnings being treated as errors
/sys/arch/amiga/dev/sbic.c: In function `sbic_dump':
/sys/arch/amiga/dev/sbic.c:2934: warning: format argument is not a pointer (arg 4)
*** Error code 1

jocelyn GENERIC !% wc -l /sys/arch/amiga/dev/sbic.c
    2905 /sys/arch/amiga/dev/sbic.c
# scratch head, start vi, look, find the real buggy lines:
   2863         printf("%s@%p regs %p asr %x csr %x\n", dev->sc_dev.dv_xname,
   2864             dev, regs, asr, csr);

	make kernel with sbic driver and -DDEBUG, which doesn't compile.
	Wonder why the line number reported is NOT in the file...
	no idea.