This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/19443] log10 statement does not work properly in gfortran
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2005 13:38:09 -0000
- Subject: [Bug fortran/19443] log10 statement does not work properly in gfortran
- References: <20050114125627.19443.mgilbert@airborne.nrl.navy.mil>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-14 13:38 -------
Hmm, try this (if might be that log10f is broken):
#include <math.h>
#include <stdio.h>
int main(void)
{
float t = 1.0e-5;
printf("%f\n", 10*log10f(t));
return 0;
}
If this does not link (try -lm), otherwise I don't know where the bug is.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19443