[llvm-commits] APInt.cpp broken on Cygwin

Aaron Gray aaronngray.lists at googlemail.com
Thu Mar 5 14:59:50 PST 2009


For starters it seems to be the difference between using 'uint32_t' and
'unsigned int'...but looks like more...

GCC 4.2.2 - Cygwin - LLVM SVN :-

llvm[1]: Compiling APInt.cpp for Debug build
/usr/src/llvm/lib/Support/APInt.cpp:45: error: prototype for 'void
llvm::APInt::
initSlowCase(uint32_t, uint64_t, bool)' does not match any in class
'llvm::APInt
'
/usr/src/llvm/include/llvm/ADT/APInt.h:169: error: candidates are: void
llvm::AP
Int::initSlowCase(const llvm::APInt&)
/usr/src/llvm/include/llvm/ADT/APInt.h:166: error:                 void
llvm::AP
Int::initSlowCase(unsigned int, uint64_t, bool)
/usr/src/llvm/lib/Support/APInt.cpp:59: error: prototype for
'llvm::APInt::APInt
(uint32_t, uint32_t, const uint64_t*)' does not match any in class
'llvm::APInt'

/usr/src/llvm/include/llvm/ADT/APInt.h:261: error: candidates are:
llvm::APInt::
APInt()
/usr/src/llvm/include/llvm/ADT/APInt.h:244: error:
llvm::APInt::
APInt(const llvm::APInt&)
/usr/src/llvm/include/llvm/ADT/APInt.h:240: error:
llvm::APInt::
APInt(unsigned int, const char*, unsigned int, uint8_t)
/usr/src/llvm/include/llvm/ADT/APInt.h:228: error:
llvm::APInt::
APInt(unsigned int, unsigned int, const uint64_t*)
/usr/src/llvm/include/llvm/ADT/APInt.h:212: error:
llvm::APInt::
APInt(unsigned int, uint64_t, bool)
/usr/src/llvm/include/llvm/ADT/APInt.h:92: error:
llvm::APInt::A
PInt(uint64_t*, unsigned int)
/usr/src/llvm/lib/Support/APInt.cpp:78: error: prototype for
'llvm::APInt::APInt
(uint32_t, const char*, uint32_t, uint8_t)' does not match any in class
'llvm::A
PInt'
/usr/src/llvm/lib/Support/APInt.cpp:59: error: candidates are:
llvm::APInt::APIn
t(uint32_t, uint32_t, const uint64_t*)
/usr/src/llvm/include/llvm/ADT/APInt.h:261: error:
llvm::APInt::
APInt()
/usr/src/llvm/include/llvm/ADT/APInt.h:244: error:
llvm::APInt::
APInt(const llvm::APInt&)
/usr/src/llvm/include/llvm/ADT/APInt.h:240: error:
llvm::APInt::
APInt(unsigned int, const char*, unsigned int, uint8_t)
/usr/src/llvm/include/llvm/ADT/APInt.h:228: error:
llvm::APInt::
APInt(unsigned int, unsigned int, const uint64_t*)
/usr/src/llvm/include/llvm/ADT/APInt.h:212: error:
llvm::APInt::
APInt(unsigned int, uint64_t, bool)
/usr/src/llvm/include/llvm/ADT/APInt.h:92: error:
llvm::APInt::A
PInt(uint64_t*, unsigned int)
/usr/src/llvm/lib/Support/APInt.cpp:458: error: prototype for 'bool
llvm::APInt:
:operator[](uint32_t) const' does not match any in class 'llvm::APInt'
/usr/src/llvm/include/llvm/ADT/APInt.h:784: error: candidate is: bool
llvm::APIn
t::operator[](unsigned int) const
/usr/src/llvm/lib/Support/APInt.cpp:559: error: prototype for 'llvm::APInt&
llvm
::APInt::set(uint32_t)' does not match any in class 'llvm::APInt'
/usr/src/llvm/include/llvm/ADT/APInt.h:957: error: candidates are:
llvm::APInt&
llvm::APInt::set(unsigned int)
/usr/src/llvm/include/llvm/ADT/APInt.h:942: error:
llvm::APInt&
llvm::APInt::set()
/usr/src/llvm/lib/Support/APInt.cpp:569: error: prototype for 'llvm::APInt&
llvm
::APInt::clear(uint32_t)' does not match any in class 'llvm::APInt'
/usr/src/llvm/include/llvm/ADT/APInt.h:970: error: candidates are:
llvm::APInt&
llvm::APInt::clear(unsigned int)
/usr/src/llvm/include/llvm/ADT/APInt.h:960: error:
llvm::APInt&
llvm::APInt::clear()
/usr/src/llvm/lib/Support/APInt.cpp:582: error: prototype for 'llvm::APInt&
llvm
::APInt::flip(uint32_t)' does not match any in class 'llvm::APInt'
/usr/src/llvm/include/llvm/ADT/APInt.h:986: error: candidates are:
llvm::APInt&
llvm::APInt::flip(unsigned int)
/usr/src/llvm/include/llvm/ADT/APInt.h:973: error:
llvm::APInt&
llvm::APInt::flip()
/usr/src/llvm/lib/Support/APInt.cpp:589: error: prototype for 'uint32_t
llvm::AP
Int::getBitsNeeded(const char*, uint32_t, uint8_t)' does not match any in
class
'llvm::APInt'
/usr/src/llvm/include/llvm/ADT/APInt.h:1058: error: candidate is: static
unsigne
d int llvm::APInt::getBitsNeeded(const char*, unsigned int, uint8_t)
/usr/src/llvm/lib/Support/APInt.cpp:640: error: prototype for 'llvm::APInt
llvm:
:APInt::getHiBits(uint32_t) const' does not match any in class 'llvm::APInt'
/usr/src/llvm/include/llvm/ADT/APInt.h:417: error: candidate is: llvm::APInt
llv
m::APInt::getHiBits(unsigned int) const
/usr/src/llvm/lib/Support/APInt.cpp:645: error: prototype for 'llvm::APInt
llvm:
:APInt::getLoBits(uint32_t) const' does not match any in class 'llvm::APInt'
/usr/src/llvm/include/llvm/ADT/APInt.h:422: error: candidate is: llvm::APInt
llv
m::APInt::getLoBits(unsigned int) const
/usr/src/llvm/lib/Support/APInt.cpp:654: error: prototype for 'uint32_t
llvm::AP
Int::countLeadingZerosSlowCase() const' does not match any in class
'llvm::APInt
'
/usr/src/llvm/include/llvm/ADT/APInt.h:193: error: candidate is: unsigned
int ll
vm::APInt::countLeadingZerosSlowCase() const
/usr/src/llvm/lib/Support/APInt.cpp:654: error: 'uint32_t
llvm::APInt::countLead
ingZerosSlowCase() const' cannot be overloaded
/usr/src/llvm/include/llvm/ADT/APInt.h:193: error: with 'unsigned int
llvm::APIn
t::countLeadingZerosSlowCase() const'
/usr/src/llvm/lib/Support/APInt.cpp: In member function 'uint32_t
llvm::APInt::c
ountLeadingZerosSlowCase() const':
/usr/src/llvm/lib/Support/APInt.cpp:667: error: no matching function for
call to
 'min(uint32_t&, const unsigned int&)'
/usr/src/llvm/lib/Support/APInt.cpp: At global scope:
/usr/src/llvm/lib/Support/APInt.cpp:681: error: prototype for 'uint32_t
llvm::AP
Int::countLeadingOnes() const' does not match any in class 'llvm::APInt'
/usr/src/llvm/include/llvm/ADT/APInt.h:1080: error: candidate is: unsigned
int l
lvm::APInt::countLeadingOnes() const
/usr/src/llvm/lib/Support/APInt.cpp:681: error: 'uint32_t
llvm::APInt::countLead
ingOnes() const' cannot be overloaded
/usr/src/llvm/include/llvm/ADT/APInt.h:1080: error: with 'unsigned int
llvm::API
nt::countLeadingOnes() const'
/usr/src/llvm/lib/Support/APInt.cpp:702: error: prototype for 'uint32_t
llvm::AP
Int::countTrailingZeros() const' does not match any in class 'llvm::APInt'
/usr/src/llvm/include/llvm/ADT/APInt.h:1089: error: candidate is: unsigned
int l
lvm::APInt::countTrailingZeros() const
/usr/src/llvm/lib/Support/APInt.cpp:702: error: 'uint32_t
llvm::APInt::countTrai
lingZeros() const' cannot be overloaded
/usr/src/llvm/include/llvm/ADT/APInt.h:1089: error: with 'unsigned int
llvm::API
nt::countTrailingZeros() const'
/usr/src/llvm/lib/Support/APInt.cpp: In member function 'uint32_t
llvm::APInt::c
ountTrailingZeros() const':
/usr/src/llvm/lib/Support/APInt.cpp:704: error: no matching function for
call to
 'min(uint32_t, const unsigned int&)'
/usr/src/llvm/lib/Support/APInt.cpp:711: error: no matching function for
call to
 'min(uint32_t&, const unsigned int&)'
/usr/src/llvm/lib/Support/APInt.cpp: At global scope:
/usr/src/llvm/lib/Support/APInt.cpp:714: error: prototype for 'uint32_t
llvm::AP
Int::countTrailingOnesSlowCase() const' does not match any in class
'llvm::APInt
'
/usr/src/llvm/include/llvm/ADT/APInt.h:196: error: candidate is: unsigned
int ll
vm::APInt::countTrailingOnesSlowCase() const
/usr/src/llvm/lib/Support/APInt.cpp:714: error: 'uint32_t
llvm::APInt::countTrai
lingOnesSlowCase() const' cannot be overloaded
/usr/src/llvm/include/llvm/ADT/APInt.h:196: error: with 'unsigned int
llvm::APIn
t::countTrailingOnesSlowCase() const'
/usr/src/llvm/lib/Support/APInt.cpp: In member function 'uint32_t
llvm::APInt::c
ountTrailingOnesSlowCase() const':
/usr/src/llvm/lib/Support/APInt.cpp:721: error: no matching function for
call to
 'min(uint32_t&, const unsigned int&)'
/usr/src/llvm/lib/Support/APInt.cpp: At global scope:
/usr/src/llvm/lib/Support/APInt.cpp:724: error: prototype for 'uint32_t
llvm::AP
Int::countPopulationSlowCase() const' does not match any in class
'llvm::APInt'
/usr/src/llvm/include/llvm/ADT/APInt.h:199: error: candidate is: unsigned
int ll
vm::APInt::countPopulationSlowCase() const
/usr/src/llvm/lib/Support/APInt.cpp:724: error: 'uint32_t
llvm::APInt::countPopu
lationSlowCase() const' cannot be overloaded
/usr/src/llvm/include/llvm/ADT/APInt.h:199: error: with 'unsigned int
llvm::APIn
t::countPopulationSlowCase() const'
/usr/src/llvm/lib/Support/APInt.cpp:768: error: 'llvm::APInt
llvm::APIntOps::Rou
ndDoubleToAPInt(double, uint32_t)' should have been declared inside
'llvm::APInt
Ops'
/usr/src/llvm/lib/Support/APInt.cpp:871: error: prototype for 'llvm::APInt&
llvm
::APInt::trunc(uint32_t)' does not match any in class 'llvm::APInt'
/usr/src/llvm/include/llvm/ADT/APInt.h:913: error: candidate is:
llvm::APInt& ll
vm::APInt::trunc(unsigned int)
/usr/src/llvm/lib/Support/APInt.cpp:894: error: prototype for 'llvm::APInt&
llvm
::APInt::sext(uint32_t)' does not match any in class 'llvm::APInt'
/usr/src/llvm/include/llvm/ADT/APInt.h:920: error: candidate is:
llvm::APInt& ll
vm::APInt::sext(unsigned int)
/usr/src/llvm/lib/Support/APInt.cpp:941: error: prototype for 'llvm::APInt&
llvm
::APInt::zext(uint32_t)' does not match any in class 'llvm::APInt'
/usr/src/llvm/include/llvm/ADT/APInt.h:926: error: candidate is:
llvm::APInt& ll
vm::APInt::zext(unsigned int)
/usr/src/llvm/lib/Support/APInt.cpp:960: error: prototype for 'llvm::APInt&
llvm
::APInt::zextOrTrunc(uint32_t)' does not match any in class 'llvm::APInt'
/usr/src/llvm/include/llvm/ADT/APInt.h:936: error: candidate is:
llvm::APInt& ll
vm::APInt::zextOrTrunc(unsigned int)
/usr/src/llvm/lib/Support/APInt.cpp:968: error: prototype for 'llvm::APInt&
llvm
::APInt::sextOrTrunc(uint32_t)' does not match any in class 'llvm::APInt'
/usr/src/llvm/include/llvm/ADT/APInt.h:931: error: candidate is:
llvm::APInt& ll
vm::APInt::sextOrTrunc(unsigned int)
/usr/src/llvm/lib/Support/APInt.cpp:984: error: prototype for 'llvm::APInt
llvm:
:APInt::ashr(uint32_t) const' does not match any in class 'llvm::APInt'
/usr/src/llvm/lib/Support/APInt.cpp:978: error: candidates are: llvm::APInt
llvm
::APInt::ashr(const llvm::APInt&) const
/usr/src/llvm/include/llvm/ADT/APInt.h:672: error:
llvm::APInt l
lvm::APInt::ashr(unsigned int) const
/usr/src/llvm/lib/Support/APInt.cpp:1073: error: prototype for 'llvm::APInt
llvm
::APInt::lshr(uint32_t) const' does not match any in class 'llvm::APInt'
/usr/src/llvm/lib/Support/APInt.cpp:1067: error: candidates are: llvm::APInt
llv
m::APInt::lshr(const llvm::APInt&) const
/usr/src/llvm/include/llvm/ADT/APInt.h:676: error:
llvm::APInt l
lvm::APInt::lshr(unsigned int) const
/usr/src/llvm/lib/Support/APInt.cpp:1140: error: prototype for 'llvm::APInt
llvm
::APInt::shlSlowCase(uint32_t) const' does not match any in class
'llvm::APInt'
/usr/src/llvm/include/llvm/ADT/APInt.h:172: error: candidate is: llvm::APInt
llv
m::APInt::shlSlowCase(unsigned int) const
/usr/src/llvm/lib/Support/APInt.cpp:1194: error: prototype for 'llvm::APInt
llvm
::APInt::rotl(uint32_t) const' does not match any in class 'llvm::APInt'
/usr/src/llvm/lib/Support/APInt.cpp:1190: error: candidates are: llvm::APInt
llv
m::APInt::rotl(const llvm::APInt&) const
/usr/src/llvm/include/llvm/ADT/APInt.h:691: error:
llvm::APInt l
lvm::APInt::rotl(unsigned int) const
/usr/src/llvm/lib/Support/APInt.cpp:1209: error: prototype for 'llvm::APInt
llvm
::APInt::rotr(uint32_t) const' does not match any in class 'llvm::APInt'
/usr/src/llvm/lib/Support/APInt.cpp:1205: error: candidates are: llvm::APInt
llv
m::APInt::rotr(const llvm::APInt&) const
/usr/src/llvm/include/llvm/ADT/APInt.h:694: error:
llvm::APInt l
lvm::APInt::rotr(unsigned int) const
/usr/src/llvm/lib/Support/APInt.cpp:1539: error: prototype for 'void
llvm::APInt
::divide(llvm::APInt, uint32_t, const llvm::APInt&, uint32_t, llvm::APInt*,
llvm
::APInt*)' does not match any in class 'llvm::APInt'
/usr/src/llvm/include/llvm/ADT/APInt.h:163: error: candidate is: static void
llv
m::APInt::divide(llvm::APInt, unsigned int, const llvm::APInt&, unsigned
int, ll
vm::APInt*, llvm::APInt*)
/usr/src/llvm/lib/Support/APInt.cpp: In static member function 'static void
llvm
::APInt::udivrem(const llvm::APInt&, const llvm::APInt&, llvm::APInt&,
llvm::API
nt&)':
/usr/src/llvm/lib/Support/APInt.cpp:1824: error: cannot call member function
'vo
id llvm::APInt::divide(llvm::APInt, uint32_t, const llvm::APInt&, uint32_t,
llvm
::APInt*, llvm::APInt*)' without object
/usr/src/llvm/lib/Support/APInt.cpp: At global scope:
/usr/src/llvm/lib/Support/APInt.cpp:1828: error: prototype for 'void
llvm::APInt
::fromString(uint32_t, const char*, uint32_t, uint8_t)' does not match any
in cl
ass 'llvm::APInt'
/usr/src/llvm/include/llvm/ADT/APInt.h:154: error: candidate is: void
llvm::APIn
t::fromString(unsigned int, const char*, unsigned int, uint8_t)
make[1]: *** [/usr/build/llvm/lib/Support/Debug/APInt.o] Error 1
make[1]: Leaving directory `/usr/build/llvm/lib/Support'
make: *** [all] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090305/7a5e2545/attachment.html>


More information about the llvm-commits mailing list