This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 1/2] Untangle stddef.h a little
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Maya Rashish <coypu at sdf dot org>
- Cc: <gcc-patches at gcc dot gnu dot org>, <gerald at pfeifer dot com>
- Date: Tue, 19 Jun 2018 15:31:55 +0000
- Subject: Re: [PATCH 1/2] Untangle stddef.h a little
- References: <20180204073846.GA17915@SDF.ORG>
On Sun, 4 Feb 2018, Maya Rashish wrote:
> Of the currently supported BSDs:
> - FreeBSD, doesn't have ansi.h or define _MACHINE_ANSI_H anywhere
> in its other headers since the long-gone 5.x release.
> - OpenBSD, DragonflyBSD don't have ansi.h either.
> - NetBSD, sole remaining with ansi.h
>
> Replace all the ifdef macros to be ifdef __NetBSD__ as it's the
> sole remaining user.
>
> Whether it is appropriate to make per-OS choices here is debatable,
> but this change allows for further future cleanup.
>
> This enables using the headers on netbsd archs that use different
> include guards for ansi.h, like ARM.
These two patches are OK, please commit.
(GCC officially removed support for FreeBSD versions before FreeBSD 5 with
r260852 | gerald | 2018-05-28 23:20:15 +0000 (Mon, 28 May 2018) | 5 lines
* config.gcc: Identify FreeBSD 3.x and 4.x as unsupported.
* config/freebsd-spec.h (FBSD_LIB_SPEC): Only consider FreeBSD 5
and later.
<https://gcc.gnu.org/ml/gcc-patches/2018-05/msg01409.html>.)
--
Joseph S. Myers
joseph@codesourcery.com