Index: include/llvm/Config/alloca.h =================================================================== RCS file: /var/cvs/llvm/llvm/include/llvm/Config/alloca.h,v retrieving revision 1.6 diff -u -r1.6 alloca.h --- include/llvm/Config/alloca.h 22 Sep 2004 15:28:32 -0000 1.6 +++ include/llvm/Config/alloca.h 28 Sep 2004 10:07:11 -0000 @@ -24,7 +24,8 @@ * (notably FreeBSD) defined alloca() there. */ #ifdef _MSC_VER -/* noop on Visual C++ */ +# include +# define alloca _alloca #elif defined(HAVE_ALLOCA_H) #include #elif defined(__MINGW_H) && defined(HAVE_MALLOC_H) Index: lib/Support/IsInf.cpp =================================================================== RCS file: /var/cvs/llvm/llvm/lib/Support/IsInf.cpp,v retrieving revision 1.3 diff -u -r1.3 IsInf.cpp --- lib/Support/IsInf.cpp 1 Sep 2004 22:55:35 -0000 1.3 +++ lib/Support/IsInf.cpp 28 Sep 2004 10:07:11 -0000 @@ -24,6 +24,9 @@ // apparently this has been a problem with Solaris for years. # include static int isinf(double x) { return !finite(x) && x==x; } +#elif HAVE__FINITE_IN_FLOAT_H +# include +static int isinf(double x) { return !_finite(x); } #else # error "Don't know how to get isinf()" #endif Index: lib/Support/IsNAN.cpp =================================================================== RCS file: /var/cvs/llvm/llvm/lib/Support/IsNAN.cpp,v retrieving revision 1.2 diff -u -r1.2 IsNAN.cpp --- lib/Support/IsNAN.cpp 1 Sep 2004 22:55:35 -0000 1.2 +++ lib/Support/IsNAN.cpp 28 Sep 2004 10:07:11 -0000 @@ -19,6 +19,9 @@ #elif HAVE_STD_ISNAN_IN_CMATH # include using std::isnan; +#elif HAVE__ISNAN_IN_FLOAT_H +# include +static int isnan(double x) { return _isnan(x); } #else # error "Don't know how to get isnan()" #endif