Subject: bin/20545: amd won't build without -O
To: None <gnats-bugs@gnats.netbsd.org>
From: seebs <seebs@vash.cel.plethora.net>
List: netbsd-bugs
Date: 03/02/2003 02:08:02
>Number: 20545
>Category: bin
>Synopsis: amd won't build without -O
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 02 00:09:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: seebs
>Release: NetBSD 1.6P
>Organization:
>Environment:
System: NetBSD vash.cel.plethora.net 1.6P NetBSD 1.6P (VASH) #1: Fri Feb 28 22:14:13 CST 2003 seebs@vash.cel.plethora.net:/usr/src/sys/arch/i386/compile/VASH i386
Architecture: i386
Machine: i386
>Description:
amd won't build without -O. am_utils.h does
#define dlog if (0) dplog
in the case where DEBUG isn't defined.
Unfortunately, unless optimization is enabled, this still produces
code - which, then, won't link unless dplog is available.
>How-To-Repeat:
CFLAGS=-g make build
>Fix:
The code is busted. It should probably have a stub for dplog in
the #ifndef DEBUG case.
>Release-Note:
>Audit-Trail:
>Unformatted: