This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: optimization breaks atanh call (C on x86 GNU/Linux)


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]