This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization breaks atanh call (C on x86 GNU/Linux)
- To: thong at post dot harvard dot edu
- Subject: Re: optimization breaks atanh call (C on x86 GNU/Linux)
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Wed, 9 Feb 2000 01:10:52 +0100
- CC: gcc-bugs at gcc dot gnu dot org
- References: <200002081427.OAA22659@longitude.doc.ic.ac.uk>
> When I try to compile a call to atanh using -O1, the linker crashes
> with the complaint, "undefined reference to `__log1p'". However, if I
> turn off optimization, it compiles and runs fine. I think my math
> library should be ok, because I can call log1p by itself just fine.
Thanks for your bug report. I believe this is not a compiler bug, but
one of the C library. Please have a look at
/usr/include/bits/mathinline.h - this code is only used with -O (which
defines __OPTIMIZE__ to the preprocessor).
Regards,
Martin