V3 PATCH: cabs vs. IRIX

Gabriel Dos Reis gdr@codesourcery.com
Sun Oct 29 22:04:00 GMT 2000

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

More information about the Gcc-patches mailing list