The results of the egcs testsuite are documented in the file
`test-summary' in the same directory as this file. Other known problems
are dscribed here.

Combining C and C++ code
------------------------

When combining code generated by different front ends, make sure these
front ends are of the same set. I.e. if you want to combine code
generated by `c++' with C code, use `egcc' to compile the C code rather
than `cc'. When configuring sources, use 
        CC=egcc ./configure <configure options>         # bash
        setenv CC egcc ./configure <options>            # csh
When calling make, use `make CC=egcc'.


Problems with math functions
----------------------------

Dirk Eddelbuettel (edd@debian.org) writes:
 >
 > [ Headers trimmed, this is only FYI and not in direct relation to
 > #27416. Also CC'ed to doko whom I had asked for help for the other bug.]
 >
 > Two days ago, John Eaton managed to debug Octave's exp(-Inf) bug, using gdb
 > on my computer. When the inline code in /usr/include/__math.h is turned off
 > by defining -D__NO_MATH_INLINES=1, the bug disappears. We can measure no
 > performance penalty from doing so.
 >
 > The same trick works as well for this bug, which is why I thought I'd pass
 > this along to you guys.
 >
 > edd@sonny:/tmp> cat asinh.c
 > #include <stdlib.h>
 > #include <math.h>
 >
 > int main()
 > {
 >   double z = 3;
 >
 >   printf("glib result asinh(%f)=%f\n", -z, asinh(-z));
 >   printf("glib result asinh(%f)=%f\n", z, asinh(z));
 >   exit(0);
 > }
 > edd@sonny:/tmp> egcc -O6 -D__NO_MATH_INLINES=1 -o asinh asinh.c -lm
 > edd@sonny:/tmp> ./asinh
 > glib result asinh(-3.000000)=-1.818446
 > glib result asinh(3.000000)=1.818446
 > edd@sonny:/tmp> egcc -O6 -o asinh asinh.c -lm
 > edd@sonny:/tmp> ./asinh
 > glib result asinh(-3.000000)=NaN
 > glib result asinh(3.000000)=1.818446
