Rafael EspĂndola
2006-Sep-05 13:05 UTC
[LLVMdev] bug in llvm-gcc implementation of long long
> does it work in ordinary gcc? I recall I had a problem with this in an earlier version of gcc, maybe they still haven't > fixed it.I have just compiled revision 102 without --enable-llvm and the resulting code correctly sets edx to 0. Time to try gdb. Rafael
Rafael EspĂndola
2006-Sep-05 14:39 UTC
[LLVMdev] bug in llvm-gcc implementation of long long
> Time to try gdb.The problem was a cast of a 32 bits signed number to a 64 unsigned number. A patch is attached. I am currently trying a bootstrap to make sure this doesn't brake anything. Rafael -------------- next part -------------- A non-text attachment was scrubbed... Name: gcc-long-long.patch Type: application/octet-stream Size: 1090 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060905/666abdb3/attachment.obj>
On Tue, 5 Sep 2006, [UTF-8] Rafael Esp?ndola wrote:>> Time to try gdb. > The problem was a cast of a 32 bits signed number to a 64 unsigned > number. A patch is attached. I am currently trying a bootstrap to make > sure this doesn't brake anything.Interesting. I wonder why that wasn't getting triggered for me. Perhaps the signedness of HOST_WIDE_INT changes or something? In any case, I've applied your patch, including the one to match the arm target triple. Thanks! -Chris -- http://nondot.org/sabre/ http://llvm.org/
Apparently Analagous Threads
- [LLVMdev] bug in llvm-gcc implementation of long long
- [LLVMdev] bug in llvm-gcc implementation of long long
- [LLVMdev] bug in llvm-gcc implementation of long long
- [LLVMdev] bug in llvm-gcc implementation of long long
- select method on ActiveRecord::Relation brakes enumeration