"Andrew Pinski" <[EMAIL PROTECTED]> writes:
> On Jan 30, 2008 7:38 PM, Dongsheng Song <[EMAIL PROTECTED]> 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.
>
On Jan 30, 2008 7:55 PM, Dongsheng Song <[EMAIL PROTECTED]> wrote:
> But the current xgcc in gcc 4.3 building issue the warning yet.
Yes because the header defines NULL incorrectly. Which was the whole
issue in the first place.
-- Pinski
But the current xgcc in gcc 4.3 building issue the warning yet.
2008/1/31, Andrew Pinski <[EMAIL PROTECTED]>:
> On Jan 30, 2008 7:38 PM, Dongsheng Song <[EMAIL PROTECTED]> wrote:
> > See: http://www.linuxonly.nl/docs/2/0_Page_1.html
>
>
> It says:
> This is because NULL is not of the right type:
On Jan 30, 2008 7:38 PM, Dongsheng Song <[EMAIL PROTECTED]> 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 abo
See: http://www.linuxonly.nl/docs/2/0_Page_1.html
It's very clear, you should use a type cast:
result = concat ("(", cond1, ") && (", cond2, ")", (char *)NULL);
instead of:
result = concat ("(", cond1, ") && (", cond2, ")", NULL);
Dongsheng
2008/1/29, Kaveh R. GHAZI <[EMAIL PROTECTED]
On Sun, 27 Jan 2008, Andrew Pinski wrote:
> 2008/1/27 Cauchy Song <[EMAIL PROTECTED]>:
> > $ uname -mrsp
> > OpenBSD 4.2 i386 Intel(R) Pentium(R) M processor 1.73GHz ("GenuineIntel"
> > 686-class)
>
> > ../../gcc-4.3-20080125/gcc/read-rtl.c: In function 'join_c_conditions':
> > ../../gcc-4.3-20080
gcc-4.2.3-RC-20080125 is OK, so it's a regress.
2008/1/28, Andrew Pinski <[EMAIL PROTECTED]>:
> 2008/1/27 Cauchy Song <[EMAIL PROTECTED]>:
> > $ uname -mrsp
> > OpenBSD 4.2 i386 Intel(R) Pentium(R) M processor 1.73GHz ("GenuineIntel"
> > 686-class)
>
> > ../../gcc-4.3-20080125/gcc/read-rtl.c: In f
2008/1/27 Cauchy Song <[EMAIL PROTECTED]>:
> $ uname -mrsp
> OpenBSD 4.2 i386 Intel(R) Pentium(R) M processor 1.73GHz ("GenuineIntel"
> 686-class)
> ../../gcc-4.3-20080125/gcc/read-rtl.c: In function 'join_c_conditions':
> ../../gcc-4.3-20080125/gcc/read-rtl.c:790: error: missing sentinel in
> fun
$ uname -mrsp
OpenBSD 4.2 i386 Intel(R) Pentium(R) M processor 1.73GHz ("GenuineIntel"
686-class)
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd4.2/3.3.5/specs
Configured with:
Thread model: single
gcc version 3.3.5 (propolice)
$ bash ../gcc-4.3-20080125/configure --prefix=/usr