Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jan 2002 18:20:03 -0800 (PST)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/33117: empty struct md_coredump in pcb.h and user.h violates strict ansi 
Message-ID:  <200201100220.g0A2K3667352@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/33117; it has been noted by GNATS.

From: Bruce Evans <bde@zeta.org.au>
To: Sheldon Hearn <sheldonh@starjuice.net>
Cc: <bde@FreeBSD.org>, <FreeBSD-gnats-submit@FreeBSD.org>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201100220.g0A2K3667352>