This is the mail archive of the gcc-patches@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]

Re: don't "fix" ((void *)0) to 0 (PR 48851)


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.


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