This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: V3 PATCH: cabs vs. IRIX
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: V3 PATCH: cabs vs. IRIX
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 30 Oct 2000 07:05:04 +0100
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at sources dot redhat dot com
- Organization: CodeSourcery, LLC
- References: <20001029144006V.mitchell@codesourcery.com>
Mark Mitchell <mark@codesourcery.com> writes:
| This patch (not checked in, requesting approval) fixes the cabs thing
| on IRIX. The problem is that this function is defined in libm on IRIX
| and prototyped in math.h. That leads to a clash with complex-stub.h
| and (because the prototype is different) doesn't let us call the
| function from within abs(complex<FLOAT>).
Mark, this is fine.
| This patch fixes it, but is sort-of ugly. To some extent, dealing
| with lots of systems makes for some inevitable ugliness, but maybe
| someone can do better?
Maybe, but for the time your version will do.
It is just awful to use the complex stuff defined by different OSes
because there is not (yet) any standard.
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com