This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Irix6 long doubles implemented wrong? (27_io/ostream_inserter_arith)
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Cc: gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org, oldham at codesourcery dot com, ro at TechFak dot Uni-Bielefeld dot DE, rth at redhat dot com
- Date: 03 Feb 2003 14:36:14 -0200
- Subject: Re: Irix6 long doubles implemented wrong? (27_io/ostream_inserter_arith)
- Organization: GCC Team, Red Hat
- References: <orlm18hyb1.fsf@free.redhat.lsd.ic.unicamp.br><200301261700.MAA15626@caip.rutgers.edu><200301270502.AAA04637@caip.rutgers.edu><orr8az9k7x.fsf@free.redhat.lsd.ic.unicamp.br><200301280219.VAA24441@caip.rutgers.edu><orisw9qn9p.fsf@free.redhat.lsd.ic.unicamp.br><200301281710.MAA00143@caip.rutgers.edu><200301281731.MAA04631@caip.rutgers.edu><15926.49701.3!59482.666471@xayide.TechFak.Uni-Bielefeld.DE><200301290132.UAA12941@caip.rutgers.edu><20030129072657.GB20774@redhat.com><200301300207.VAA11232@caip.rutgers.edu><oru1flo6nz.fsf@free.redhat.lsd.ic.unicamp.br><200302031518.KAA29308@caip.rutgers.edu>
On Feb 3, 2003, "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> wrote:
> Sorry, I'm seeing something different. First looking at fp-bit.c, all
> of the comparison ops (e.g. _eq_f2) call __fpcmp_parts which returns a
> tri-state value. I.e. it's not just L_compare_[sdt]f.
Right, but GCC doesn't really care about the 3 states, only about the
truth conditions being met.
> Second, looking at prepare_float_lib_cmp in optabs.c if the optabs are
> NULL, it'll only swap GE <-> LE and GT <-> LT in both directions. So
> if at least one or the other isn't defined how will it work?
It won't. I believe this should be enough to get you going, though.
> Anyway, I just found FLOAT_LIB_COMPARE_RETURNS_BOOL in tm.texi which,
> judging by the name, appears to be exactly what I need. :-)
Oh. How nice. I didn't realize we had something like this. In fact,
I hadn't realized that our compare functions weren't bool-like before
I looked at them again today :-)
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer