| Summary: | [patch] empty struct md_coredump in pcb.h and user.h violates strict ansi | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | marcolz <marcolz> | ||||
| Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | 4.5-PRERELEASE | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
marcolz
2001-12-23 19:30:00 UTC
On Sun, 23 Dec 2001 20:17:56 +0100, Marc Olzheim wrote:
> Put the struct inside a #if ! defined __STRICT_ANSI__:
Won't an absent u_md break gcore(1)? See src/usr.bin/gcore/md-sparc.c.
Ciao,
Sheldon.
> 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...
Marc
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?
Ciao,
Sheldon.
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 This can be closed. State Changed From-To: open->closed struct md_coredump was killed more than two years ago: sys/sys/user.h rev. 1.51 sys/i386/include/pcb.h rev. 1.48 |