[cfe-dev] interesting clang issue with "floor"

reed kotler rkotler at mips.com
Fri Jul 26 18:05:23 PDT 2013


I'm chasing down another issue with floor in llvm but noticed this 
strange behavior:

Consider the following code:

extern double floor(double);
extern double floor_(double);

double x = 1.5;
double y, y_;

void foo() {

   double y = floor(x);
   double y_ = floor_(x);
}


  /local/llvmpb_config/install/bin/clang floor1.c -o floor1.llc 
-emit-llvm -S

The attributes for floor and floor_ are different.









More information about the cfe-dev mailing list