From owner-freebsd-bugs Wed Jan 9 18:20: 7 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id F2C3F37B400 for ; Wed, 9 Jan 2002 18:20:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0A2K3667352; Wed, 9 Jan 2002 18:20:03 -0800 (PST) (envelope-from gnats) Date: Wed, 9 Jan 2002 18:20:03 -0800 (PST) Message-Id: <200201100220.g0A2K3667352@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Bruce Evans Subject: Re: kern/33117: empty struct md_coredump in pcb.h and user.h violates strict ansi Reply-To: Bruce Evans Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR kern/33117; it has been noted by GNATS. From: Bruce Evans To: Sheldon Hearn Cc: , Subject: Re: kern/33117: empty struct md_coredump in pcb.h and user.h violates strict ansi Date: Thu, 10 Jan 2002 13:15:53 +1100 (EST) On Wed, 9 Jan 2002, Sheldon Hearn wrote: > On Wed, 09 Jan 2002 15:22:21 +0100, Marc Olzheim wrote: > > > > Won't an absent u_md break gcore(1)? See src/usr.bin/gcore/md-sparc.c. > > > > If it would be compiled with -ansi, it probably would, but gcore is not > > compiled with -ansi... > > Bruce, what say you with regards to the suggestion to exclude the u_md > definition in user.h in the __STRICT_ANSI__ case? This would be wrong, especially on arches where u_md is nonempty because the kernel will supply user structs with u_md in them. The problem is moot in -current since u_md went away. struct mdproc has also become nonempty on i386's, but there is now an empty struct mdthread to break compiling with -ansi at least in the kernel (-pedantic is also needed for breakage; -ansi alone works and this is tested a lot since the kernel is always compiled with it). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message