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-20080125/gcc/read-rtl.c:790: error: missing sentinel in
 > > > function call
 > >
 > > We have:
 > >   result = concat ("(", cond1, ") && (", cond2, ")", NULL);
 > >
 > >
 > > So I think this is a bug in openbsd's headers.
 > > Andrew Pinski
 >
 >
 > It would be helpful to receive preprocessed source code with the compiler
 > options to trigger the bug.  See http://gcc.gnu.org/bugs.html#report
 > for details on what to send, and what not to send, in a proper bug report.
 >
 > As Andrew pointed out, since the concat call here is NULL terminated, the
 > problem is likely not in GCC sources.  But the .i file would show for
 > sure.
 >
 >                 Thanks,
 >                 --Kaveh
 > --
 > Kaveh R. Ghazi                  [EMAIL PROTECTED]
 >

Reply via email to