This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/24578] New: compiler emits call to floorf() instead of floor()
- From: "ds at schleef dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Oct 2005 00:43:57 -0000
- Subject: [Bug c/24578] New: compiler emits call to floorf() instead of floor()
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Compiling the following code on MIPS emits a function call to floorf (not
floor). This is a problem when one's libc does not contain a floorf function.
void func (float *dest, float *src)
{
*dest = floor (*src);
}
Compile using 'mipsel-linux-uclibc-gcc -O2 -save-temps -c it.c'.
--
Summary: compiler emits call to floorf() instead of floor()
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ds at schleef dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24578