[gcc-4.3-20080125] Bootstrap failure on i386-unknown-openbsd4.2: missing sentinel in function call
Dongsheng Song
dongsheng.song@gmail.com
Thu Jan 31 04:05:00 GMT 2008
But the current xgcc in gcc 4.3 building issue the warning yet.
2008/1/31, Andrew Pinski <pinskia@gmail.com>:
> On Jan 30, 2008 7:38 PM, Dongsheng Song <dongsheng.song@gmail.com> wrote:
> > See: http://www.linuxonly.nl/docs/2/0_Page_1.html
>
>
> It says:
> This is because NULL is not of the right type: it is defined as
> integer 0 instead of a pointer with the value 0.
>
> Except that is wrong from what the C99 standard says about the NULL macro:
> The macros are
> NULL
> which expands to an implementation-defined null pointer constant
>
> So no casting is needed as it is already a pointer type if we follow
> the C99 standard (I think C90 says the same thing except I don't have
> C90 in front of me).
>
> Thanks,
>
> Andrew Pinski
>
More information about the Gcc
mailing list