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

[gcc-4.3-20080125] Bootstrap failure on i386-unknown-openbsd4.2: missing sentinel in function call


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 <ghazi@caip.rutgers.edu>:

> On Sun, 27 Jan 2008, Andrew Pinski wrote:
 >
 > > 2008/1/27 Cauchy Song <dongsheng.song@gmail.com>:
 > > > $ 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                  ghazi@caip.rutgers.edu
 >


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