Subject: bin/20545: amd won't build without -O
To: None <>
From: seebs <>
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
>Originator:     seebs
>Release:        NetBSD 1.6P
System: NetBSD 1.6P NetBSD 1.6P (VASH) #1: Fri Feb 28 22:14:13 CST 2003 i386
Architecture: i386
Machine: i386
	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.

	CFLAGS=-g make build

	The code is busted.  It should probably have a stub for dplog in
	the #ifndef DEBUG case.