This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Fwd: FreeBSD 5's new typedef system]


To:   Mike Barcroft <mike@FreeBSD.org>, David O'Brien <obrien@FreeBSD.org>
Date: Wed, 04 Sep 2002 10:19:18 -0700

your email bounces:

Bruce Korb wrote:
> > If you have any questions or need shell access let me know.
> 
> OK.  I don't understand what you are asking for.
> I assume you need adjustments in the fixinc stuff.
> What, exactly?  What isn't working?
> 
> Mike Barcroft wrote:
> >
> > We've recently changed the way FreeBSD does typedefs in 5-CURRENT (our
> > development branch), and GCC's internal versions of stdarg.h and
> > stddef.h need to be updated to take this into account.  I'm hoping
> > that by providing the details of what's changed on our end, you'll be
> > able to see to it that GCC catches up.
> >
> > Before we had <machine/ansi.h> with:
> > #define _BSD_FOO_T_ int;
> >
> > and headers would do something like:
> > #include <machine/ansi.h>
> > ...
> > #ifdef _BSD_FOO_T_
> > typedef _BSD_FOO_T_ foo_t;
> > #undef _BSD_FOO_T_
> > #endif
> >
> > Our new system has <sys/_types.h> with:
> > typedef int __foo_t;
> >
> > and headers do something like:
> > #include <sys/_types.h>
> > ...
> > #ifndef _FOO_T_DECLARED
> > typedef __foo_t foo_t;
> > #define _FOO_T_DECLARED
> > #endif
> >
> > (machine/ansi.h has been removed, so it's no longer safe to depend on
> > its existence.)
> >
> > The manifest constant __FreeBSD_version in <sys/param.h> was
> > incremented to 500039 to mark the change, but it's probably okay to
> > depend on the FreeBSD major version 5, since this branch hasn't been
> > released yet.  It will be called 5.0-RELEASE when it is released.
> >
> > If you have any questions or need shell access let me know.
> >
> > Best regards,
> > Mike Barcroft


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]