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]
Other format: [Raw text]

[Bug c/24578] New: compiler emits call to floorf() instead of floor()


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


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