This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: don't "fix" ((void *)0) to 0 (PR 48851)
- From: Mike Stump <mikestump at comcast dot net>
- To: Jonathan Gray <jsg at openbsd dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 25 Oct 2011 13:10:44 -0700
- Subject: Re: don't "fix" ((void *)0) to 0 (PR 48851)
- References: <20111023014833.GA16555@mail.netspace.net.au>
On Oct 22, 2011, at 6:48 PM, Jonathan Gray wrote:
> fixincludes was changing the definition of
> NULL on OpenBSD from
>
> #ifndef NULL
> #ifdef __GNUG__
> #define NULL __null
> #else
> #define NULL ((void *)0)
> #endif
> #endif
>
> to
>
> #ifndef NULL
> #ifdef __GNUG__
> #define NULL __null
> #else
> #define NULL 0
> #endif
> #endif
>
> Posting the proposed fix from Mike in PR 48851 here as asked
> as he doesn't have the environment to regenerate fixincl.x
I've checked in the fix, seems trivial enough.
> 2011-10-23 Mike Stump <mikestump@comcast.net>
>
> * inclhack.def (void_null): New bypass.
> * fixincl.x: Regenerate.