[LLVMdev] [LLVMDev] trouble building gcc-frontend from source

Dale Johannesen dalej at apple.com
Sun Mar 15 15:47:07 PDT 2009


On Mar 15, 2009, at 12:40 PM, Duncan Sands wrote:

> Hi,
>
>> Glad that works for you, but it means that if the 32-bit cost
>> computation overflows, we won't be told about it.   I think the right
>> thing is to make sure the computation saturates at 30 bits instead of
>> overflowing.  Am I going to talk myself into overloading operator+ ?
>
> is this problem really real?  Or has LLVM been miscompiled?
> The two people who have reported this were running very similar
> systems with broken compiler versions...

Ah.  Probably not a real problem then; I was quite surprised it  
overflowed 30 bits, although it's certainly possible in theory.  I  
haven't seen any costs that come anywhere close to overflowing.  A  
broken host compiler would explain it nicely, I missed that.




More information about the llvm-dev mailing list