------- Comment #1 from fxcoudert at gcc dot gnu dot org 2005-12-12 15:43 ------- More info: when linked dynamically, the csqrt() function called is the libgfortran one ([1] csqrt(z = <bad address 0x8071f56>), line 708 in "c99_functions.c") which gives bad results.
When linked statically, I don't know what happens, but the csqrt() called doesn't have no debug info (says dbx), which probably means it isn't the libgfortran one. Amazing, since libgfortran/config.h does not define HAVE_CSQRT... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25370