This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Contributing new gcc targets: i386-*-dragonfly and x86-64-*-dragonfly
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: John Marino <gnugcc at marino dot st>
- Cc: <gcc-patches at gcc dot gnu dot org>, Jonathan Wakely <jwakely dot gcc at gmail dot com>, Gerald Pfeifer <gerald at pfeifer dot com>, <manu at gcc dot gnu dot org>, "Eric Botcazou (gnu.org)" <ebotcazou at gcc dot gnu dot org>
- Date: Fri, 2 May 2014 17:49:16 +0000
- Subject: Re: Contributing new gcc targets: i386-*-dragonfly and x86-64-*-dragonfly
- Authentication-results: sourceware.org; auth=none
- References: <5352D100 dot 9040108 at marino dot st> <Pine dot LNX dot 4 dot 64 dot 1405012259450 dot 16441 at digraph dot polyomino dot org dot uk> <5362DC9B dot 8090709 at marino dot st>
On Fri, 2 May 2014, John Marino wrote:
> So given the track record (building itself, building base, building
> 21,000 software ports) over a couple of years I think any issues this
> could have caused would have been seen and identified by now.
These issues aren't generally obvious (given that the ISO C conformance
modes aren't used that often, and when they are that doesn't mean the
application is using POSIX types for something else).
> > (I don't know what the FreeBSD <sys/_types.h> defines, but it at least
> > seems possible from the name that it is only defining things in the
> > implementation namespace, with the public <sys/types.h> being what then
> > includes <sys/_types.h> and does "typedef __foo_t foo_t;" or similar to
> > provide the public POSIX types that aren't in ISO C.)
>
> Here are the headers in question:
> http://grok.dragonflybsd.org/xref/freebsd/sys/sys/_types.h
That seems OK for <stddef.h> inclusion, as long as the <machine/_types.h>
is OK.
> http://grok.dragonflybsd.org/xref/dragonfly/sys/sys/types.h
That's definitely not correct to include in <stddef.h>; it defines lots of
types outside the ISO C namespace.
--
Joseph S. Myers
joseph@codesourcery.com