From bugzilla-daemon at cs.uiuc.edu Sun Mar 1 03:16:15 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 1 Mar 2009 03:16:15 -0600 Subject: [LLVMbugs] [Bug 3693] New: Assertion failed: (ATI != AbstractTypeMap.end() && " Abstract type not in AbstractTypeMap?"), function MoveConstantToNewSlot, file Constants.cpp, line 1196. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3693 Summary: Assertion failed: (ATI != AbstractTypeMap.end() && "Abstract type not in AbstractTypeMap?"), function MoveConstantToNewSlot, file Constants.cpp, line 1196. Product: tools Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P2 Component: llvm-ld AssignedTo: unassignedbugs at nondot.org ReportedBy: rdivacky at freebsd.org CC: llvmbugs at cs.uiuc.edu I am hitting this assert when trying to llvm-ld FreeBSD kernel. this is the backtrace. I can upload tar of all the .bc files if needed. this is on i386 (gdb) bt #0 0x288343db in kill () from /lib/libc.so.7 #1 0x2860d2d7 in raise () from /lib/libthr.so.3 #2 0x288321ec in abort () from /lib/libc.so.7 #3 0x28819106 in __assert () from /lib/libc.so.7 #4 0x084938c5 in llvm::ValueMap >, llvm::StructType, llvm::ConstantStruct, true>::MoveConstantToNewSlot (this=0x28bfbce0, C=0x2d8506b4, I={_M_node = 0x2d3d0c70}) at Constants.cpp:1195 #5 0x08480aa9 in llvm::ConstantStruct::replaceUsesOfWithOnConstant (this=0x2d8506b4, From=0x2af04e20, To=0x2bdfe400, U=0x2d85066c) at Constants.cpp:2581 #6 0x08510e19 in llvm::Value::uncheckedReplaceAllUsesWith (this=0x2af04e20, New=0x2bdfe400) at Value.cpp:306 #7 0x08496114 in llvm::ConvertConstantType::convert (OldC=0x2af04e20, NewTy=0x2d8eb7f0) at Constants.cpp:1575 #8 0x084961f1 in llvm::ValueMap::refineAbstractType (this=0x28922880, OldTy=0x2d7665b0, NewTy=0x2d8eb7f0) at Constants.cpp:1223 #9 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d7665b0, NewType=0x2d8eb7f0) at Type.cpp:1421 #10 0x0850bd38 in llvm::TypeMap::RefineAbstractType (this=0x28908460, Ty=0x2d7665b0, OldType=0x2d7b1540, NewType=0x2d8c0300) at Type.cpp:916 #11 0x084f9a6f in llvm::PointerType::refineAbstractType (this=0x2d7665b0, OldType=0x2d7b1540, NewType=0x2d8c0300) at Type.cpp:1510 #12 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d7b1540, NewType=0x2d8c0300) at Type.cpp:1421 #13 0x0850d59b in llvm::TypeMap::RefineAbstractType (this=0x28908d60, Ty=0x2d7b1540, OldType=0x2d6df430, NewType=0x2d89f070) at Type.cpp:916 #14 0x084f9baf in llvm::FunctionType::refineAbstractType (this=0x2d7b1540, OldType=0x2d6df430, NewType=0x2d89f070) at Type.cpp:1457 #15 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d6df430, NewType=0x2d89f070) at Type.cpp:1421 #16 0x0850bd38 in llvm::TypeMap::RefineAbstractType (this=0x28908460, Ty=0x2d6df430, OldType=0x2d318880, NewType=0x2d7a0940) at Type.cpp:916 #17 0x084f9a6f in llvm::PointerType::refineAbstractType (this=0x2d6df430, OldType=0x2d318880, NewType=0x2d7a0940) at Type.cpp:1510 #18 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d318880, NewType=0x2d7a0940) at Type.cpp:1421 #19 0x0850c56f in llvm::TypeMap::RefineAbstractType (this=0x28908be0, Ty=0x2d318880, OldType=0x2d7e8ca0, NewType=0x2d89f0d0) at Type.cpp:952 #20 0x084f9abf in llvm::StructType::refineAbstractType (this=0x2d318880, OldType=0x2d7e8ca0, NewType=0x2d89f0d0) at Type.cpp:1497 #21 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d7e8ca0, NewType=0x2d89f0d0) at Type.cpp:1421 #22 0x0850bd38 in llvm::TypeMap::RefineAbstractType (this=0x28908460, Ty=0x2d7e8ca0, OldType=0x2d862a80, NewType=0x2d863ec0) at Type.cpp:916 #23 0x084f9a6f in llvm::PointerType::refineAbstractType (this=0x2d7e8ca0, OldType=0x2d862a80, NewType=0x2d863ec0) at Type.cpp:1510 #24 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d862a80, NewType=0x2d863ec0) at Type.cpp:1421 #25 0x0850c56f in llvm::TypeMap::RefineAbstractType (this=0x28908be0, Ty=0x2d862a80, OldType=0x2d884b80, NewType=0x2d8eb790) at Type.cpp:952 #26 0x084f9abf in llvm::StructType::refineAbstractType (this=0x2d862a80, OldType=0x2d884b80, NewType=0x2d8eb790) at Type.cpp:1497 #27 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d884b80, NewType=0x2d8eb790) at Type.cpp:1421 #28 0x0850bd38 in llvm::TypeMap::RefineAbstractType (this=0x28908460, Ty=0x2d884b80, OldType=0x2d850100, NewType=0x2d850f00) at Type.cpp:916 #29 0x084f9a6f in llvm::PointerType::refineAbstractType (this=0x2d884b80, OldType=0x2d850100, NewType=0x2d850f00) at Type.cpp:1510 #30 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d850100, NewType=0x2d850f00) at Type.cpp:1421 #31 0x0850c56f in llvm::TypeMap::RefineAbstractType (this=0x28908be0, Ty=0x2d850100, OldType=0x2d884970, NewType=0x2d8eb730) at Type.cpp:952 ---Type to continue, or q to quit--- #32 0x084f9abf in llvm::StructType::refineAbstractType (this=0x2d850100, OldType=0x2d884970, NewType=0x2d8eb730) at Type.cpp:1497 #33 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d884970, NewType=0x2d8eb730) at Type.cpp:1421 #34 0x0850bd38 in llvm::TypeMap::RefineAbstractType (this=0x28908460, Ty=0x2d884970, OldType=0x2d84c220, NewType=0x2d881ee0) at Type.cpp:916 #35 0x084f9a6f in llvm::PointerType::refineAbstractType (this=0x2d884970, OldType=0x2d84c220, NewType=0x2d881ee0) at Type.cpp:1510 #36 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d84c220, NewType=0x2d881ee0) at Type.cpp:1421 #37 0x0850d7ae in llvm::TypeMap::RefineAbstractType (this=0x28908d60, Ty=0x2d84c220, OldType=0x2d7b3c40, NewType=0x2d88faf0) at Type.cpp:952 #38 0x084f9baf in llvm::FunctionType::refineAbstractType (this=0x2d84c220, OldType=0x2d7b3c40, NewType=0x2d88faf0) at Type.cpp:1457 #39 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d7b3c40, NewType=0x2d88faf0) at Type.cpp:1421 #40 0x0850bf45 in llvm::TypeMap::RefineAbstractType (this=0x28908460, Ty=0x2d7b3c40, OldType=0x2d894400, NewType=0x2d894e00) at Type.cpp:952 #41 0x084f9a6f in llvm::PointerType::refineAbstractType (this=0x2d7b3c40, OldType=0x2d894400, NewType=0x2d894e00) at Type.cpp:1510 #42 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d894400, NewType=0x2d894e00) at Type.cpp:1421 #43 0x0850c56f in llvm::TypeMap::RefineAbstractType (this=0x28908be0, Ty=0x2d894400, OldType=0x2d8b0380, NewType=0x2d8f6dc0) at Type.cpp:952 #44 0x084f9abf in llvm::StructType::refineAbstractType (this=0x2d894400, OldType=0x2d8b0380, NewType=0x2d8f6dc0) at Type.cpp:1497 #45 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d8b0380, NewType=0x2d8f6dc0) at Type.cpp:1421 #46 0x0850c56f in llvm::TypeMap::RefineAbstractType (this=0x28908be0, Ty=0x2d8b0380, OldType=0x2d7bd100, NewType=0x2d89f460) at Type.cpp:952 #47 0x084f9abf in llvm::StructType::refineAbstractType (this=0x2d8b0380, OldType=0x2d7bd100, NewType=0x2d89f460) at Type.cpp:1497 #48 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d7bd100, NewType=0x2d89f460) at Type.cpp:1421 #49 0x0850bf45 in llvm::TypeMap::RefineAbstractType (this=0x28908460, Ty=0x2d7bd100, OldType=0x2d7b3d30, NewType=0x2d89f1c0) at Type.cpp:952 #50 0x084f9a6f in llvm::PointerType::refineAbstractType (this=0x2d7bd100, OldType=0x2d7b3d30, NewType=0x2d89f1c0) at Type.cpp:1510 #51 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d7b3d30, NewType=0x2d89f1c0) at Type.cpp:1421 #52 0x0850bf45 in llvm::TypeMap::RefineAbstractType (this=0x28908460, Ty=0x2d7b3d30, OldType=0x2d863680, NewType=0x2d863f80) at Type.cpp:952 #53 0x084f9a6f in llvm::PointerType::refineAbstractType (this=0x2d7b3d30, OldType=0x2d863680, NewType=0x2d863f80) at Type.cpp:1510 #54 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d863680, NewType=0x2d863f80) at Type.cpp:1421 #55 0x0850c56f in llvm::TypeMap::RefineAbstractType (this=0x28908be0, Ty=0x2d863680, OldType=0x2d8b05c0, NewType=0x2d8cb340) at Type.cpp:952 #56 0x084f9abf in llvm::StructType::refineAbstractType (this=0x2d863680, OldType=0x2d8b05c0, NewType=0x2d8cb340) at Type.cpp:1497 #57 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d8b05c0, NewType=0x2d8cb340) at Type.cpp:1421 #58 0x0850c362 in llvm::TypeMap::RefineAbstractType (this=0x28908be0, Ty=0x2d8b05c0, OldType=0x2d861d80, NewType=0x2d8c29c0) at Type.cpp:916 #59 0x084f9abf in llvm::StructType::refineAbstractType (this=0x2d8b05c0, OldType=0x2d861d80, NewType=0x2d8c29c0) at Type.cpp:1497 #60 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d861d80, NewType=0x2d8c29c0) at Type.cpp:1421 #61 0x0850c362 in llvm::TypeMap::RefineAbstractType (this=0x28908be0, Ty=0x2d861d80, OldType=0x2d890220, NewType=0x2d8eb9d0) at Type.cpp:916 #62 0x084f9abf in llvm::StructType::refineAbstractType (this=0x2d861d80, OldType=0x2d890220, NewType=0x2d8eb9d0) at Type.cpp:1497 #63 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d890220, NewType=0x2d8eb9d0) at Type.cpp:1421 #64 0x0850bd38 in llvm::TypeMap::RefineAbstractType (this=0x28908460, Ty=0x2d890220, OldType=0x2d88fdc0, NewType=0x2d8e6760) at Type.cpp:916 ---Type to continue, or q to quit--- #65 0x084f9a6f in llvm::PointerType::refineAbstractType (this=0x2d890220, OldType=0x2d88fdc0, NewType=0x2d8e6760) at Type.cpp:1510 #66 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d88fdc0, NewType=0x2d8e6760) at Type.cpp:1421 #67 0x08299ca6 in ResolveTypes (DestTy=0x2d88fdc0, SrcTy=0x2d8e6760) at LinkModules.cpp:62 #68 0x0829c4e3 in LinkTypes (Dest=0x28908310, Src=0x2af0c040, Err=0xbfbfbd24) at LinkModules.cpp:284 #69 0x0829cbca in llvm::Linker::LinkModules (Dest=0x28908310, Src=0x2af0c040, ErrorMsg=0xbfbfbd24) at LinkModules.cpp:1258 #70 0x0829735d in llvm::Linker::LinkInModule (this=0xbfbfbd10, Src=0x2af0c040, ErrorMsg=0xbfbfbd24) at Linker.h:247 #71 0x082967d4 in llvm::Linker::LinkInFile (this=0xbfbfbd10, File=@0xbfbfbc00, is_native=@0xbfbfbbf2) at LinkItems.cpp:199 #72 0x08296ee8 in llvm::Linker::LinkInItems (this=0xbfbfbd10, Items=@0xbfbfbcdc, NativeItems=@0xbfbfbd04) at LinkItems.cpp:45 #73 0x0826bf1d in main (argc=727, argv=0xbfbfbe58, envp=0xbfbfc9b8) at llvm-ld.cpp:546 (gdb) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 1 04:46:16 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 1 Mar 2009 04:46:16 -0600 Subject: [LLVMbugs] [Bug 3690] Assertion failed: (StackTop == 0 && " Stack should be empty after a call!"), function handleSpecialFP, file X86FloatingPoint.cpp, line 952. In-Reply-To: Message-ID: <200903011046.n21AkGhk016340@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3690 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |asl at math.spbu.ru Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #4 from Anton Korobeynikov 2009-03-01 04:46:11 --- As far as I can understand Chris' position: this is effectively "wontfix" until will happen in some apple-produced code. There are bunch of examples in bugzilla, when such sort of assertions happen for non-darwin targets (e.g. win64, linux, now - freebsd). The only solution - is to alter sources not to use inline FP math even if this causes serious performance regression (for example, during libm compilation, when inline fp math seems to be the only sane way to support atan, etc). *** This bug has been marked as a duplicate of bug 879 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 1 10:24:37 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 1 Mar 2009 10:24:37 -0600 Subject: [LLVMbugs] [Bug 3694] New: missing instcombine for GEP 0, X, Y, Z of bitcast of Ty* to [ 0 x Ty]* Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3694 Summary: missing instcombine for GEP 0,X,Y,Z of bitcast of Ty* to [0 x Ty]* Product: new-bugs Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu test/FrontendC/2007-03-27-VarLengthArray.c now compiles to define i32 @e(i32 %m, i32 %n) nounwind { entry: %0 = alloca i32, i32 %n, align 4 ; [#uses=2] %1 = bitcast i32* %0 to [0 x i32]* ; <[0 x i32]*> [#uses=1] call void @f(i32* %0) nounwind %2 = getelementptr [0 x i32]* %1, i32 0, i32 %m ; [#uses=1] %3 = load i32* %2, align 4 ; [#uses=1] ret i32 %3 } The bitcast could be eliminated by stripping the first index off the GEP. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 1 11:13:08 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 1 Mar 2009 11:13:08 -0600 Subject: [LLVMbugs] [Bug 3509] InitListExpr's getLocStart() incorrect In-Reply-To: Message-ID: <200903011713.n21HD8Zc029091@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3509 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2009-03-01 11:13:08 --- This is fixed here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090223/013272.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 1 12:20:23 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 1 Mar 2009 12:20:23 -0600 Subject: [LLVMbugs] [Bug 3695] New: llvm-gcc -S different from llvm-gcc -emit-llvm | llc Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3695 Summary: llvm-gcc -S different from llvm-gcc -emit-llvm | llc Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: nicholas at mxc.ca CC: llvmbugs at cs.uiuc.edu I'm not sure what's causing this discrepancy. I have a tiny function: # cat x.c int foo(double x) { return (int)x; } which produces large amounts of x87 stack gunk when built with llvm-gcc: # llvm-gcc -O2 x.c -S -o - [...] foo: pushl %ebp movl %esp, %ebp subl $6, %esp fldl 8(%ebp) fnstcw -6(%ebp) movw -6(%ebp), %ax movw $3199, -6(%ebp) fldcw -6(%ebp) movw %ax, -6(%ebp) fistpl -4(%ebp) fldcw -6(%ebp) movl -4(%ebp), %eax addl $6, %esp popl %ebp ret wait, using x87 stack? I configured llvm-gcc --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu. Surely it could do better than that. # llvm-gcc -O2 x.c -c -o - -emit-llvm | llc -o - [...] foo: cvttsd2si 4(%esp), %eax ret Much better. Why didn't llvm-gcc do that? What target triple is llvm-gcc emitting anyways? # llvm-gcc -O2 x.c -S -o - -emit-llvm ; ModuleID = 'x.c' target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32" target triple = "i386-pc-linux-gnu" define i32 @foo(double %x) nounwind readnone { entry: %0 = fptosi double %x to i32 ; [#uses=1] ret i32 %0 } i386-pc-linux-gnu?! If you say so. Is llc ignoring the target triple? Or is llvm-gcc setting something in the codegen that turns SSE support off? Let's try that: # llvm-gcc -O2 x.c -c -o - -emit-llvm | llc -o - -mattr=-sse [...] foo: subl $6, %esp fldl 10(%esp) fnstcw (%esp) movw (%esp), %ax movw $3199, (%esp) fldcw (%esp) movw %ax, (%esp) fistpl 2(%esp) fldcw (%esp) movl 2(%esp), %eax addl $6, %esp ret Note that it's *not the same*. The code directly emitted by llvm-gcc showed push/mov pair in the prologue, while this skips straight to the subl. What on Earth is going on? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 1 12:50:21 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 1 Mar 2009 12:50:21 -0600 Subject: [LLVMbugs] [Bug 3696] New: The FreeBSD source tree does not fully compile with Clang Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3696 Summary: The FreeBSD source tree does not fully compile with Clang Product: clang Version: unspecified Platform: PC URL: http://wiki.freebsd.org/BuildingFreeBSDWithClang OS/Version: FreeBSD Status: NEW Severity: normal Priority: P2 Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ed at 80386.nl CC: llvmbugs at cs.uiuc.edu Depends on: 3603,3671,3678,3679,3681,3682,3686,3687,3688,3690,3691 I'm creating this bug report, so we can keep track of all the reports that need to be resolved before we can fully compile FreeBSD with Clang. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 1 13:04:33 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 1 Mar 2009 13:04:33 -0600 Subject: [LLVMbugs] [Bug 3695] llvm-gcc -S different from llvm-gcc -emit-llvm | llc In-Reply-To: Message-ID: <200903011904.n21J4XEX000816@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3695 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |asl at math.spbu.ru Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Anton Korobeynikov 2009-03-01 13:04:33 --- That's correct behaviour: 1. llc's defaults are different from the llvm-gcc (for example - frame pointer elimination is by default on in llc, but not in llvm-gcc) 2. llc automatically detects CPU features, llvm-gcc by default-not, ... -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 1 18:20:28 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 1 Mar 2009 18:20:28 -0600 Subject: [LLVMbugs] [Bug 3672] Syntax error not rejected with -pedantic-errors In-Reply-To: Message-ID: <200903020020.n220KSNB010783@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3672 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Douglas Gregor 2009-03-01 18:20:27 --- Fixed here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090223/013292.html Thanks! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 1 20:09:30 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 1 Mar 2009 20:09:30 -0600 Subject: [LLVMbugs] [Bug 3697] New: [PATCH] Updated header includes for GCC 4.4 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3697 Summary: [PATCH] Updated header includes for GCC 4.4 Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Basic AssignedTo: unassignedclangbugs at nondot.org ReportedBy: salimma at fedoraproject.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2633) --> (http://llvm.org/bugs/attachment.cgi?id=2633) gcc-4.4 patch for clang GCC 4.4's g++ is now even stricter about header inclusion than GCC 4.4, and clang does not currently compile out of the box. The attached patch includes the necessary headers (cstdio, stdint.h) to get clang to compile. Note: this really affects *all* of clang, I'm guessing the "Basic" component. Should there be a "general" component? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 2 03:59:27 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 2 Mar 2009 03:59:27 -0600 Subject: [LLVMbugs] [Bug 3698] New: Clang ignores leading dot in symbol name Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3698 Summary: Clang ignores leading dot in symbol name Product: clang Version: unspecified Platform: PC URL: http://svn.freebsd.org/viewvc/base/head/lib/libc/gmon/gm on.c?view=markup OS/Version: FreeBSD Status: NEW Severity: normal Priority: P2 Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ed at 80386.nl CC: llvmbugs at cs.uiuc.edu Blocks: 3696 When compiling the attached code with GCC, nm will show the following: U .foo 0000000000000000 T main If we compile the same code with LLVM, we get: U foo 0000000000000000 T main This causes FreeBSD's libc to load correctly. If libc is compiled with LLVM, except gmon.c, libc seems to work properly. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 2 06:39:48 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 2 Mar 2009 06:39:48 -0600 Subject: [LLVMbugs] [Bug 3694] missing instcombine for GEP 0, X, Y, Z of bitcast of Ty* to [0 x Ty ]* In-Reply-To: Message-ID: <200903021239.n22CdmwZ014603@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3694 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Duncan Sands 2009-03-02 06:39:33 --- Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090302/074464.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 2 07:15:22 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 2 Mar 2009 07:15:22 -0600 Subject: [LLVMbugs] [Bug 3699] New: Clang test prefers FreeBSD's /usr/include/mmintrin. h over LLVM's Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3699 Summary: Clang test prefers FreeBSD's /usr/include/mmintrin.h over LLVM's Product: clang Version: unspecified Platform: PC URL: http://google1.osuosl.org:8011/builders/clang-x86_64- freebsd/builds/3/steps/test-clang/logs/failure%20log OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Basic AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ed at 80386.nl CC: llvmbugs at cs.uiuc.edu On FreeBSD, /usr/include/mmintrin.h is GNU's version of the header file. This causes mmintrin-test.c to fail to compile. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 2 07:17:34 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 2 Mar 2009 07:17:34 -0600 Subject: [LLVMbugs] [Bug 3700] New: Test string-init.c fails if `store' is in the path name. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3700 Summary: Test string-init.c fails if `store' is in the path name. Product: clang Version: unspecified Platform: PC URL: http://google1.osuosl.org:8011/builders/clang-x86_64- freebsd/builds/3/steps/test-clang/logs/failure%20log OS/Version: FreeBSD Status: NEW Severity: normal Priority: P2 Component: Basic AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ed at 80386.nl CC: llvmbugs at cs.uiuc.edu The FreeBSD buildbot uses /store/home/buildbot/llvm to store the source code. The string-init.c test fails, because it greps for `store', which always matches a pathname in the output. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 2 11:29:38 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 2 Mar 2009 11:29:38 -0600 Subject: [LLVMbugs] [Bug 3695] llc ignores target triple subtarget In-Reply-To: Message-ID: <200903021729.n22HTcgE024750@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3695 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gohman at apple.com Status|VERIFIED |REOPENED OS/Version|Linux |All Platform|PC |All Resolution|INVALID | Summary|llvm-gcc -S different from |llc ignores target triple |llvm-gcc -emit-llvm | llc |subtarget --- Comment #3 from Dan Gohman 2009-03-02 11:29:29 --- Nick's observation about the target-triple seems valid. Normally, target triple information in a module should override auto-detected information. It seems that llc is ignoring the hardware subtarget aspect of the target triple. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 2 12:43:19 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 2 Mar 2009 12:43:19 -0600 Subject: [LLVMbugs] [Bug 3701] New: optimization bug at -O2 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3701 Summary: optimization bug at -O2 Product: clang Version: unspecified Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P2 Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rdivacky at freebsd.org CC: llvmbugs at cs.uiuc.edu hi.. when compiling the attached test case I am getting attached asm output. here's a snippet of it: if (pq->curr == xfer) { /* we are currently scheduled for callback */ USB_BUS_UNLOCK(xfer->xroot->bus); return (1); } /* we are not pending */ USB_BUS_UNLOCK(xfer->xroot->bus); return (0); (in the actual test case this is run through ccc -E so it's expanded) this is translated to this asm via "ccc -O2 -S -ffreestanding usb.c" (note that the -O2 is important) to this (snippet): (1) cmpq %rbx, 56(%rax) #APP movl %fs:0,%rax #NO_APP movq 104(%rbx), %rcx movq 296(%rcx), %rcx movl $4, %edx #APP (2) lock ; cmpxchgl %edx,736(%rcx) ; sete %al ; 1: # atomic_cmpset_int note that the result of the cmpq at (1) is never used. and this cmpq corresponds to the "if (pq->curr == xfer)" above. thus 1 is always returned. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 2 13:25:28 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 2 Mar 2009 13:25:28 -0600 Subject: [LLVMbugs] [Bug 3695] llc ignores target triple subtarget In-Reply-To: Message-ID: <200903021925.n22JPS87030232@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3695 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID --- Comment #5 from Dan Gohman 2009-03-02 13:25:26 --- Ok, thanks for clarifying. So pentium4-pc-linux-gnu is invalid, for example. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 2 13:36:37 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 2 Mar 2009 13:36:37 -0600 Subject: [LLVMbugs] [Bug 3702] New: Assertion failed: (isFile() && "Not a file SLocEntry!"), function getFile, file /usr/src-local/llvm/tools/clang/lib/Basic/../../ include/clang/Basic/SourceManager.h, line 237. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3702 Summary: Assertion failed: (isFile() && "Not a file SLocEntry!"), function getFile, file /usr/src- local/llvm/tools/clang/lib/Basic/../../include/clang/Bas ic/SourceManager.h, line 237. Product: new-bugs Version: unspecified Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: pawel.worach at gmail.com CC: llvmbugs at cs.uiuc.edu # ccc -c SLocEntry.c Assertion failed: (isFile() && "Not a file SLocEntry!"), function getFile, file /usr/src-local/llvm/tools/clang/lib/Basic/../../include/clang/Basic/SourceManager.h, line 237. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 2 14:24:55 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 2 Mar 2009 14:24:55 -0600 Subject: [LLVMbugs] [Bug 3700] Test string-init.c fails if `store' is in the path name. In-Reply-To: Message-ID: <200903022024.n22KOtT4000497@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3700 Ed Schouten changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 2 15:00:01 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 2 Mar 2009 15:00:01 -0600 Subject: [LLVMbugs] [Bug 3702] Assertion failed: (isFile() && "Not a file SLocEntry!"), function getFile, file /usr/src-local/llvm/tools/clang/lib/Basic/../../ include/clang/Basic/SourceManager.h, line 237. In-Reply-To: Message-ID: <200903022100.n22L012J001830@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3702 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Chris Lattner 2009-03-02 15:00:00 --- Fix here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090302/013323.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 2 16:17:44 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 2 Mar 2009 16:17:44 -0600 Subject: [LLVMbugs] [Bug 3699] Clang's executable name resolution doesn't work on FreeBSD In-Reply-To: Message-ID: <200903022217.n22MHiXQ005301@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3699 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Chris Lattner 2009-03-02 16:17:43 --- Awesome, applied: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090302/074495.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 2 16:20:42 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 2 Mar 2009 16:20:42 -0600 Subject: [LLVMbugs] [Bug 3697] [PATCH] Updated header includes for GCC 4.4 In-Reply-To: Message-ID: <200903022220.n22MKgdI005464@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3697 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2009-03-02 16:20:42 --- No need to apologize! your patch looks great, applied here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090302/013333.html Thanks! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 2 17:28:32 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 2 Mar 2009 17:28:32 -0600 Subject: [LLVMbugs] [Bug 3581] -strip-debug does not remove all debug info. In-Reply-To: Message-ID: <200903022328.n22NSWME008596@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3581 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Devang Patel 2009-03-02 17:28:32 --- Fixed. rev. 65889 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 2 17:51:11 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 2 Mar 2009 17:51:11 -0600 Subject: [LLVMbugs] [Bug 3703] New: Analysis not updated after running a CallGraphSCCPass. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3703 Summary: Analysis not updated after running a CallGraphSCCPass. Product: new-bugs Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: jlerouge at apple.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2643) --> (http://llvm.org/bugs/attachment.cgi?id=2643) Testcase to reproduce the problem. The attached Hello.cpp file illustrates my problem. Replace the original Hello.cpp on the LLVM tree with that one, build and then run (assuming you are on Darwin): $ ./Debug/bin/opt --debug-pass=Structure --load LLVMHello.dylib -mysccpass -hello -f -o t2.bc t.bc Pass Arguments: -myanalysis -basiccg -mysccpass -hello -preverify -domtree -verify Target Data Layout ModulePass Manager My Analysis Basic CallGraph Construction Call Graph SCC Pass Manager My SCCPass Hello World Pass FunctionPass Manager Preliminary module verification Dominator Tree Construction Module Verifier Bitcode Writer -- Done running MyAnalysis -- Done running MySCCPass -- Done running Hello As you can see above, MyAnalysis is not re-run after MySCCPass, even though MySCCPass is not marking the analysis as beeing preserved. I was expecting it would be re-run so Hello can start with a valid analysis. Thanks, Julien -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 2 22:16:54 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 2 Mar 2009 22:16:54 -0600 Subject: [LLVMbugs] [Bug 3704] New: llvm-ld release built can' t correctly link bc which contains debug information Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3704 Summary: llvm-ld release built can't correctly link bc which contains debug information Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: major Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: dodohack at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2644) --> (http://llvm.org/bugs/attachment.cgi?id=2644) 2 llvm IR the debug built of llvm can link 2 bc with debug information correctly. but the release built of llvm can't do it correctly. llvm is built with gcc 4.2 and llvm is 2.5 prerelease version. the attached file is 2 llvm IR which will cause these error message: [hwalin at earth temp]$ /temp/llvm-2.5-obj/Release/bin/llvm-ld environ.bc util.bc Value still in symbol table! Type = '{ } *' Name = 'c3' Value still in symbol table! Type = 'i32 *' Name = 'a' Value still in symbol table! Type = 'i32 *' Name = 'b' Value still in symbol table! Type = 'i32 *' Name = 'c' Value still in symbol table! Type = 'i32' Name = 'alloca point' Value still in symbol table! Type = '{ } *' Name = 'argv' Value still in symbol table! Type = 'i8 * * *' Name = 'argv_addr' Value still in symbol table! Type = 'i32' Name = 'retval10' Value still in symbol table! Type = '{ } *' Name = 'argc' Value still in symbol table! Type = 'i32 *' Name = 'retval' Value still in symbol table! Type = '{ } *' Name = 'a5' Value still in symbol table! Type = '{ } *' Name = 'b4' Value still in symbol table! Type = 'i32 *' Name = 'argc_addr' llvm-ld: /temp/llvm-2.5/lib/VMCore/ValueSymbolTable.cpp:29: llvm::ValueSymbolTable::~ValueSymbolTable(): Assertion `vmap.empty() && "Values remain in symbol table!"' failed. 0 llvm-ld 0x0834c8a7 1 libc.so.6 0x00baff91 abort + 257 2 libc.so.6 0x00ba793e __assert_fail + 238 3 llvm-ld 0x082eeb6a ????????? [hwalin at earth temp]$ -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 2 22:55:30 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 2 Mar 2009 22:55:30 -0600 Subject: [LLVMbugs] [Bug 3687] Assertion failed: ((i >= FTy->getNumParams() || FTy-> getParamType(i) == Params[i]->getType()) && " Calling a function with a bad signature!"), function init, file Instructions.cpp, line 294. In-Reply-To: Message-ID: <200903030455.n234tUZO020073@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3687 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sharparrow1 at yahoo.com Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Eli Friedman 2009-03-02 22:55:30 --- Fixed in r65925. A rather nasty bug... -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 2 23:40:02 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 2 Mar 2009 23:40:02 -0600 Subject: [LLVMbugs] [Bug 3705] New: x86 backend fails to generate code on this bitcode file Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3705 Summary: x86 backend fails to generate code on this bitcode file Product: tools Version: 2.4 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: llc AssignedTo: unassignedbugs at nondot.org ReportedBy: haohui.mai at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2645) --> (http://llvm.org/bugs/attachment.cgi?id=2645) Test case The X86 backend reports ``Couldn't allocate output reg for constraint 'A'!'' on the attached bitcode file. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 3 00:41:44 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 3 Mar 2009 00:41:44 -0600 Subject: [LLVMbugs] [Bug 3691] Support for complex modes missing In-Reply-To: Message-ID: <200903030641.n236fiIP015110@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3691 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Eli Friedman 2009-03-03 00:41:43 --- Fixed in r65935. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 3 03:49:59 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 3 Mar 2009 03:49:59 -0600 Subject: [LLVMbugs] [Bug 3706] New: Assertion failed: (RegMap[RegOnTop] < StackTop), function moveToTop, file X86FloatingPoint.cpp, line 129. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3706 Summary: Assertion failed: (RegMap[RegOnTop] < StackTop), function moveToTop, file X86FloatingPoint.cpp, line 129. Product: new-bugs Version: unspecified Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: pawel.worach at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2646) --> (http://llvm.org/bugs/attachment.cgi?id=2646) Pre-processed source After bug #3691 was fixed this is the next problem in libgcc. ccc -c -O2 -pipe -march=nocona -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -DHAVE_GTHR_DEFAULT -I/usr/src/gnu/lib/libgcc/../../../contrib/gcclibs/include -I/usr/src/gnu/lib/libgcc/../../../contrib/gcc/config -I/usr/src/gnu/lib/libgcc/../../../contrib/gcc -I. -I/usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools -fstack-protector -fvisibility=hidden -DHIDE_EXPORTS -fPIC -DL_mulxc3 -o _mulxc3.o /usr/src/gnu/lib/libgcc/../../../contrib/gcc/libgcc2.c Assertion failed: (RegMap[RegOnTop] < StackTop), function moveToTop, file X86FloatingPoint.cpp, line 129. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 3 05:55:52 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 3 Mar 2009 05:55:52 -0600 Subject: [LLVMbugs] [Bug 3687] Assertion failed: ((i >= FTy->getNumParams() || FTy-> getParamType(i) == Params[i]->getType()) && " Calling a function with a bad signature!"), function init, file Instructions.cpp, line 294. In-Reply-To: Message-ID: <200903031155.n23BtqrB003797@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3687 Pawel Worach changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #3 from Pawel Worach 2009-03-03 05:55:46 --- Hmm, with this fix the error now turned up in another place in the FreeBSD source tree, sendmail's mail.local. ccc -O2 -pipe -march=nocona -I/usr/src/libexec/mail.local/../../contrib/sendmail/include -I. -I/usr/obj/usr/src/tmp/usr/include -fstack-protector -c /usr/src/libexec/mail.local/../../contrib/sendmail/mail.local/mail.local.c In file included from /usr/src/libexec/mail.local/../../contrib/sendmail/mail.local/mail.local.c:29: /usr/obj/usr/src/tmp/usr/include/unistd.h:363:43: warning: 'format' attribute argument not supported: __printf0__ void setproctitle(const char *_fmt, ...) __printf0like(1, 2); ^ /usr/obj/usr/src/tmp/usr/include/sys/cdefs.h:354:21: note: instantiated from: __attribute__((__format__ (__printf0__, fmtarg, firstvararg))) ^ Assertion failed: ((i >= FTy->getNumParams() || FTy->getParamType(i) == Params[i]->getType()) && "Calling a function with a bad signature!"), function init, file Instructions.cpp, line 294. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 3 06:57:08 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 3 Mar 2009 06:57:08 -0600 Subject: [LLVMbugs] [Bug 3707] New: Inefficient loop codegen Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3707 Summary: Inefficient loop codegen Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: jturner at minnow-lang.org CC: llvmbugs at cs.uiuc.edu Compiling this with the llvm-gcc toolchain (through opt and llc) : include int main() { int loop = 1000000000; int timeout; timeoutloop: timeout = 2000; /* asm("nop;"); */ loopto: if (--timeout == 0) goto timeoutloop; if (--loop != 0) goto loopto; printf("Timeout: %i\n", timeout); return 0; } Yields this asm as output (I'm using OS X): .text .align 4,0x90 .globl _main _main: subl $12, %esp movl $1999, %eax xorl %ecx, %ecx movl $1999, %edx .align 4,0x90 LBB1_1: ## loopto cmpl $1, %eax leal -1(%eax), %eax cmove %edx, %eax incl %ecx cmpl $999999999, %ecx jne LBB1_1 ## loopto LBB1_2: ## bb1 movl %eax, 4(%esp) movl $LC, (%esp) call _printf xorl %eax, %eax addl $12, %esp ret .section __TEXT,__cstring,cstring_literals LC: ## LC .asciz "Timeout: %i\n" .subsections_via_symbols Which runs in 1.7s on this machine. Uncommenting the 'asm("nop")' in the C code above instead yields this output: .text .align 4,0x90 .globl _main _main: subl $12, %esp movl $1000000000, %eax .align 4,0x90 LBB1_1: ## loopto.thread movl %eax, %ecx ## InlineAsm Start nop; ## InlineAsm End movl $4294967295, %edx jmp LBB1_3 ## bb LBB1_2: ## loopto decl %eax incl %edx cmpl $1998, %edx je LBB1_1 ## loopto.thread LBB1_3: ## bb cmpl $1, %eax jne LBB1_2 ## loopto LBB1_4: ## bb1 subl %ecx, %eax addl $1999, %eax movl %eax, 4(%esp) movl $LC, (%esp) call _printf xorl %eax, %eax addl $12, %esp ret .section __TEXT,__cstring,cstring_literals LC: ## LC .asciz "Timeout: %i\n" .subsections_via_symbols Which runs in 1.0s. The trivialized loop runs slower than the non-trivialized one. Evan Chang points out on the LLVM mailing list: "The main issue is incl updates the EFLAGS condition code register. But llvm x86 isn't taking advantage of that. This is a known issue, hopefully someone will find the time to implement before 2.6. The second issue is the leal -1 can be turned (back) into a decl. Combine that with the optimization previously described, it can eliminate the first cmpl." Another possibility is the use of cmove in this case is slower than a jz to a branch that resets %eax. Modifying the original asm source above: .text .align 4,0x90 .globl _main _main: subl $12, %esp movl $1999, %eax xorl %ecx, %ecx movl $1999, %edx jmp LBB1_1 .align 4,0x90 LBB1_3: movl %edx, %eax jmp LBB1_4 LBB1_1: ## loopto cmpl $1, %eax leal -1(%eax), %eax jz LBB1_3 LBB1_4: incl %ecx cmpl $999999999, %ecx jnz LBB1_1 ## loopto jmp LBB1_2 LBB1_2: ## bb1 movl %eax, 4(%esp) movl $LC, (%esp) call _printf xorl %eax, %eax addl $12, %esp ret .section __TEXT,__cstring,cstring_literals LC: ## LC .asciz "Timeout: %i\n" .subsections_via_symbols Which also runs in 1.0s. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 3 08:26:28 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 3 Mar 2009 08:26:28 -0600 Subject: [LLVMbugs] [Bug 3708] New: Fortran support in the online demo Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3708 Summary: Fortran support in the online demo Product: Website Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: enhancement Priority: P2 Component: General Website AssignedTo: unassignedbugs at nondot.org ReportedBy: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu It would be neat to offer Fortran as a language choice in the online demo. This might even be trivial to do! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 3 10:02:14 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 3 Mar 2009 10:02:14 -0600 Subject: [LLVMbugs] [Bug 3709] New: Clang miscompiles crtend. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3709 Summary: Clang miscompiles crtend. Product: clang Version: unspecified Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P2 Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ed at 80386.nl CC: llvmbugs at cs.uiuc.edu Blocks: 3696 Created an attachment (id=2649) --> (http://llvm.org/bugs/attachment.cgi?id=2649) Reduced testcase When compiling the attached code without any optimization on x86_64, Clang generates the following: 0000000000000000 <__do_global_ctors_aux>: 0: 55 push %rbp 1: 48 89 e5 mov %rsp,%rbp 4: 48 83 ec 10 sub $0x10,%rsp 8: 48 8d 04 25 00 00 00 lea 0x0,%rax f: 00 10: 48 b9 f8 ff ff ff ff mov $0xfffffffffffffff8,%rcx 17: ff ff ff 1a: 48 01 c8 add %rcx,%rax 1d: 48 89 45 f8 mov %rax,0xfffffffffffffff8(%rbp) 21: 48 8b 45 f8 mov 0xfffffffffffffff8(%rbp),%rax 25: 48 8b 00 mov (%rax),%rax 28: b9 ff ff ff ff mov $0xffffffff,%ecx 2d: 89 c9 mov %ecx,%ecx 2f: 48 39 c8 cmp %rcx,%rax 32: 74 20 je 54 <__do_global_ctors_aux+0x54> 34: 48 8b 45 f8 mov 0xfffffffffffffff8(%rbp),%rax 38: 48 8b 00 mov (%rax),%rax 3b: ff d0 callq *%eax 3d: 48 8b 45 f8 mov 0xfffffffffffffff8(%rbp),%rax 41: 48 b9 f8 ff ff ff ff mov $0xfffffffffffffff8,%rcx 48: ff ff ff 4b: 48 01 c8 add %rcx,%rax 4e: 48 89 45 f8 mov %rax,0xfffffffffffffff8(%rbp) 52: eb cd jmp 21 <__do_global_ctors_aux+0x21> 54: 48 83 c4 10 add $0x10,%rsp 58: 5d pop %rbp 59: c3 retq If we turn on the optimizer, we get: 0000000000000000 <__do_global_ctors_aux>: 0: 55 push %rbp 1: 48 89 e5 mov %rsp,%rbp 4: 30 c0 xor %al,%al 6: 66 data16 7: 66 data16 8: 66 data16 9: 90 nop a: 66 data16 b: 66 data16 c: 90 nop d: 66 data16 e: 66 data16 f: 90 nop 10: f6 d0 not %al 12: a8 01 test $0x1,%al 14: b0 00 mov $0x0,%al 16: 75 f8 jne 10 <__do_global_ctors_aux+0x10> 18: 5d pop %rbp 19: c3 retq GCC generates the following code when using -O: 0000000000000000 <__do_global_ctors_aux>: 0: 53 push %rbx 1: 48 8b 05 00 00 00 00 mov 0(%rip),%rax # 8 <__do_global_ctors_aux+0x8> 8: 48 83 f8 ff cmp $0xffffffffffffffff,%rax c: 74 18 je 26 <__do_global_ctors_aux+0x26> e: bb 00 00 00 00 mov $0x0,%ebx 13: ff d0 callq *%eax 15: 48 8b 83 00 00 00 00 mov 0x0(%rbx),%rax 1c: 48 83 eb 08 sub $0x8,%rbx 20: 48 83 f8 ff cmp $0xffffffffffffffff,%rax 24: 75 ed jne 13 <__do_global_ctors_aux+0x13> 26: 5b pop %rbx 27: c3 retq -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 3 11:16:39 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 3 Mar 2009 11:16:39 -0600 Subject: [LLVMbugs] [Bug 3710] New: llvm-gcc fails to build: Assertion `Cost == C && " Cost exceeds InlineCost precision"' failed Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3710 Summary: llvm-gcc fails to build: Assertion `Cost == C && "Cost exceeds InlineCost precision"' failed Product: Build scripts Version: 2.5 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Makefiles AssignedTo: unassignedbugs at nondot.org ReportedBy: jeffhao at umich.edu CC: llvmbugs at cs.uiuc.edu I've installed llvm 2.5 and was trying to make the new llvm-gcc from source for 2.5. LLVM installed, llvm-gcc errors out with the message: cc1: /x/jeffhao/llvm/llvm/include/llvm/Transforms/Utils/InlineCost.h:44: llvm::InlineCost::InlineCost(int, int): Assertion `Cost == C && "Cost exceeds InlineCost precision"' failed. ../../llvm-gcc4.2-2.5.source/gcc/libgcov.c:644: internal compiler error: Aborted This is using the new 2.5 releases of both llvm and llvm-gcc on a 64-bit Intel Quad Core running Red Hat el5 with kernel version 2.6. I used these 2 commands to generate the error: ../llvm-gcc4.2-2.5.source/configure --prefix=/x/jeffhao/llvm/llvm-gcc/install --program-prefix=llvm- --enable-llvm=/x/jeffhao/llvm/llvm-objects --enable-languages=c,c++ --enable-checking --disable-shared make Here's the end of the output captured after configuring and making llvm-gcc: /x/jeffhao/llvm/llvm-gcc/objects/./gcc/xgcc -B/x/jeffhao/llvm/llvm-gcc/objects/./gcc/ -B/x/jeffhao/llvm/llvm-gcc/install/x86_64-unknown-linux-gnu/bin/ -B/x/jeffhao/llvm/llvm-gcc/install/x86_64-unknown-linux-gnu/lib/ -isystem /x/jeffhao/llvm/llvm-gcc/install/x86_64-unknown-linux-gnu/include -isystem /x/jeffhao/llvm/llvm-gcc/install/x86_64-unknown-linux-gnu/sys-include -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../llvm-gcc4.2-2.5.source/gcc -I../../llvm-gcc4.2-2.5.source/gcc/. -I../../llvm-gcc4.2-2.5.source/gcc/../include -I../../llvm-gcc4.2-2.5.source/gcc/../libcpp/include -I../../llvm-gcc4.2-2.5.source/gcc/../libdecnumber -I../libdecnumber -I/x/jeffhao/llvm/llvm-objects/include -I/x/jeffhao/llvm/llvm/include -fexceptions -c ../../llvm-gcc4.2-2.5.source/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o cc1: /x/jeffhao/llvm/llvm/include/llvm/Transforms/Utils/InlineCost.h:44: llvm::InlineCost::InlineCost(int, int): Assertion `Cost == C && "Cost exceeds InlineCost precision"' failed. ../../llvm-gcc4.2-2.5.source/gcc/unwind-dw2.c:1527: internal compiler error: Aborted Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make[4]: *** [libgcc/./unwind-dw2.o] Error 1 make[4]: Leaving directory `/x/jeffhao/llvm/llvm-gcc/objects/gcc' make[3]: *** [stmp-multilib] Error 2 make[3]: Leaving directory `/x/jeffhao/llvm/llvm-gcc/objects/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/x/jeffhao/llvm/llvm-gcc/objects' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/x/jeffhao/llvm/llvm-gcc/objects' make: *** [all] Error 2 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 3 11:56:46 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 3 Mar 2009 11:56:46 -0600 Subject: [LLVMbugs] [Bug 3711] New: 8-byte vectors on ppc32 assert Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3711 Summary: 8-byte vectors on ppc32 assert Product: new-bugs Version: unspecified Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: dalej at apple.com CC: llvmbugs at cs.uiuc.edu llvm-gcc -O1 20050607-1.c Assertion failed: (false && "Unknown type action!"), function ExpandRes_BIT_CONVERT, file LegalizeTypesGeneric.cpp, line 44. extern void abort (void); typedef int V2SI __attribute__ ((vector_size (8))); int main (void) { #if (__INT_MAX__ == 2147483647) \ && (__LONG_LONG_MAX__ == 9223372036854775807LL) if (((int)(long long)(V2SI){ 2, 2 }) != 2) abort (); #endif return 0; } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 3 13:39:07 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 3 Mar 2009 13:39:07 -0600 Subject: [LLVMbugs] [Bug 3712] New: Clang doesn' t predefine __OPTIMIZE__ and __PIC__ etc correctly Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3712 Summary: Clang doesn't predefine __OPTIMIZE__ and __PIC__ etc correctly Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: preprocessor AssignedTo: unassignedclangbugs at nondot.org ReportedBy: clattner at apple.com CC: llvmbugs at cs.uiuc.edu There __OPTIMIZE__ should be set when -Ox is specified, and __PIC__ should follow the -fpic /-fPIC settings appropriately. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 3 14:31:30 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 3 Mar 2009 14:31:30 -0600 Subject: [LLVMbugs] [Bug 3705] x86 backend fails to generate code on this bitcode file In-Reply-To: Message-ID: <200903032031.n23KVU6g029629@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3705 Haohui Mai changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Haohui Mai 2009-03-03 14:31:30 --- I tested it with trunk today. It seems work. Sorry for bothering. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 3 18:29:43 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 3 Mar 2009 18:29:43 -0600 Subject: [LLVMbugs] [Bug 3715] New: llvm-gcc fails to build on Fedora Linux x86_86 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3715 Summary: llvm-gcc fails to build on Fedora Linux x86_86 Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Keywords: build-problem, portability Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: postmodern.mod3 at gmail.com CC: llvmbugs at cs.uiuc.edu While attempting to compile llvm-gcc on my x86_64 Fedora Linux machine I noticed that it was trying to find /usr/include/gnu/stubs-32.h instead of using the existing /usr/include/gnu/stubs-64.h header file. # ../llvm-gcc4.2-2.5.source/configure --enable-llvm=`pwd`/../llvm-2.5 --program-prefix=llvm- --enable-languages=c,c++ --host=x86_64-redhat-linux --build=x86_64-redhat-linux # make ... make GCC_FOR_TARGET="/usr/local/src/llvm-gcc4.2-2.5.build/./gcc/xgcc -B/usr/local/src/llvm-gcc4.2-2.5.build/./gcc/ -B/usr/local/x86_64-redhat-linux/bin/ -B/usr/local/x86_64-redhat-linux/lib/ -isystem /usr/local/x86_64-redhat-linux/include -isystem /usr/local/x86_64-redhat-linux/sys-include" \ AR_FOR_TARGET="ar" \ AR_CREATE_FOR_TARGET="ar rc" \ AR_EXTRACT_FOR_TARGET="ar x" \ AR_FLAGS_FOR_TARGET="" \ CC="gcc" CFLAGS="-g -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -fno-common " \ BUILD_PREFIX="" \ BUILD_PREFIX_1="" \ LANGUAGES="" \ LIBGCC2_CFLAGS="-O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -m32 " \ LIBGCC2_STATIC_CFLAGS="" \ MULTILIB_CFLAGS=" -m32" T=32/ 32/crtbegin.o 32/crtend.o 32/crtbeginS.o 32/crtendS.o 32/crtbeginT.o 32/crtfastmath.o make[5]: Entering directory `/usr/local/src/llvm-gcc4.2-2.5.build/gcc' /usr/local/src/llvm-gcc4.2-2.5.build/./gcc/xgcc -B/usr/local/src/llvm-gcc4.2-2.5.build/./gcc/ -B/usr/local/x86_64-redhat-linux/bin/ -B/usr/local/x86_64-redhat-linux/lib/ -isystem /usr/local/x86_64-redhat-linux/include -isystem /usr/local/x86_64-redhat-linux/sys-include -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I32 -I../../llvm-gcc4.2-2.5.source/gcc -I../../llvm-gcc4.2-2.5.source/gcc/32 -I../../llvm-gcc4.2-2.5.source/gcc/../include -I../../llvm-gcc4.2-2.5.source/gcc/../libcpp/include -I../../llvm-gcc4.2-2.5.source/gcc/../libdecnumber -I../libdecnumber -I/usr/local/src/llvm-gcc4.2-2.5.build/../llvm-2.5/include -I/usr/local/src/llvm-2.5/include -m32 -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-omit-frame-pointer -fno-asynchronous-unwind-tables \ -c ../../llvm-gcc4.2-2.5.source/gcc/crtstuff.c -DCRT_BEGIN \ -o 32/crtbegin.o In file included from /usr/include/features.h:359, from /usr/include/stdio.h:28, from ../../llvm-gcc4.2-2.5.source/gcc/tsystem.h:90, from ../../llvm-gcc4.2-2.5.source/gcc/crtstuff.c:68: /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory make[5]: *** [32/crtbegin.o] Error 1 make[5]: Leaving directory `/usr/local/src/llvm-gcc4.2-2.5.build/gcc' make[4]: *** [extra32] Error 2 make[4]: Leaving directory `/usr/local/src/llvm-gcc4.2-2.5.build/gcc' make[3]: *** [stmp-multilib] Error 2 make[3]: Leaving directory `/usr/local/src/llvm-gcc4.2-2.5.build/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/usr/local/src/llvm-gcc4.2-2.5.build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/usr/local/src/llvm-gcc4.2-2.5.build' make: *** [all] Error 2 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 3 19:42:54 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 3 Mar 2009 19:42:54 -0600 Subject: [LLVMbugs] [Bug 3701] codegen does not propagate clobbers onto INLINEASM node for flags In-Reply-To: Message-ID: <200903040142.n241gsFZ010032@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3701 Evan Cheng changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #17 from Evan Cheng 2009-03-03 19:42:53 --- Fixed. http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090302/074602.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 3 20:25:03 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 3 Mar 2009 20:25:03 -0600 Subject: [LLVMbugs] [Bug 3716] New: Implement warning on poorly packed structures Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3716 Summary: Implement warning on poorly packed structures Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: Semantic Analyzer AssignedTo: unassignedclangbugs at nondot.org ReportedBy: daniel at zuster.org CC: llvmbugs at cs.uiuc.edu It would be nice if clang had a warning for structures which could be packed better to save space. For example: -- struct s0 { int32 a; int16 b; int32 c; int16 d; }; -- could be repacked to take 12 bytes instead of 16. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 00:24:39 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 00:24:39 -0600 Subject: [LLVMbugs] [Bug 3686] Assertion failed: (0 && " Do not know how to promote this operator's operand!"), function PromoteIntegerOperand, file LegalizeIntegerTypes.cpp, line 666. In-Reply-To: Message-ID: <200903040624.n246Odu3021257@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3686 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Eli Friedman 2009-03-04 00:24:39 --- Fixed in r66021. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 00:29:54 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 00:29:54 -0600 Subject: [LLVMbugs] [Bug 3708] Fortran support in the online demo In-Reply-To: Message-ID: <200903040629.n246Tskb021933@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3708 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Duncan Sands 2009-03-04 00:29:54 --- Fixed in CVS commit 1.96. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 00:49:31 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 00:49:31 -0600 Subject: [LLVMbugs] [Bug 3666] X86 backend converts calls to constant addresses to indirect calls. In-Reply-To: Message-ID: <200903040649.n246nViv022821@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3666 Evan Cheng changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Evan Cheng 2009-03-04 00:49:31 --- Fixed. Revision 66024. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 01:37:46 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 01:37:46 -0600 Subject: [LLVMbugs] [Bug 3717] New: Bugpoint crashes on the following bitcode files. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3717 Summary: Bugpoint crashes on the following bitcode files. Product: tools Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: bugpoint AssignedTo: unassignedbugs at nondot.org ReportedBy: haohui.mai at gmail.com CC: llvmbugs at cs.uiuc.edu Bugpoint asserted out when it is trying to simplify the code. It exits with the following messages: invalid llvm.dbg.declare intrinsic call call void @llvm.dbg.declare(%struct.dev_archdata* null, %struct.dev_archdata* bitcast (%llvm.dbg.variable.type* @llvm.dbg.variable4233 to %struct.dev_archdata*)) nounwind Broken module found, compilation aborted! 0 bugpoint 0x0847857e 1 libc.so.6 0xb7de3098 abort + 392 2 bugpoint 0x0843077c Aborted (core dumped) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 01:42:48 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 01:42:48 -0600 Subject: [LLVMbugs] [Bug 3718] New: LLC crashes with the following bitcode file Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3718 Summary: LLC crashes with the following bitcode file Product: tools Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: llc AssignedTo: unassignedbugs at nondot.org ReportedBy: haohui.mai at gmail.com CC: llvmbugs at cs.uiuc.edu LLC crashes with the attached bitcode file. The attachment is a reduced version from bugpoint, but bugpoint also crashed on this file. The original file is generated with llvm-gcc-4.2 (with llvm 2.5), with -O0 -g enabled. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 02:12:37 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 02:12:37 -0600 Subject: [LLVMbugs] [Bug 3719] New: File uploading functionality doesn't work on demo page Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3719 Summary: File uploading functionality doesn't work on demo page Product: Website Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: General Website AssignedTo: unassignedbugs at nondot.org ReportedBy: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu If I try to upload and compile a file using the demo page, it recognizes the language but doesn't actually do anything. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 02:32:04 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 02:32:04 -0600 Subject: [LLVMbugs] [Bug 3710] llvm-gcc fails to build: Assertion `Cost == C && " Cost exceeds InlineCost precision"' failed In-Reply-To: Message-ID: <200903040832.n248W40F029056@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3710 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #3 from Duncan Sands 2009-03-04 02:32:04 --- gcc 4.1 is know to be broken, see http://llvm.org/docs/GettingStarted.html#brokengcc Here's an extract: GCC 4.1.1: GCC fails to build LLVM with template concept check errors compiling some files. At the time of this writing, GCC mainline (4.2) did not share the problem. GCC 4.1.1 on X86-64/amd64: GCC miscompiles portions of LLVM when compiling llvm itself into 64-bit code. LLVM will appear to mostly work but will be buggy, e.g. failing portions of its testsuite. GCC 4.1.2 on OpenSUSE: Seg faults during libstdc++ build and on x86_64 platforms compiling md5.c gets a mangled constant. GCC 4.1.2 (20061115 (prerelease) (Debian 4.1.1-21)) on Debian: Appears to miscompile parts of LLVM 2.4. One symptom is ValueSymbolTable complaining about symbols remaining in the table on destruction. GCC 4.1.2 20071124 (Red Hat 4.1.2-42): Suffers from the same symptoms as the previous one. It appears to work with ENABLE_OPTIMIZED=0 (the default). Please try a different version of gcc, like gcc 4.2. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 02:33:43 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 02:33:43 -0600 Subject: [LLVMbugs] [Bug 3687] Assertion failed: ((i >= FTy->getNumParams() || FTy-> getParamType(i) == Params[i]->getType()) && " Calling a function with a bad signature!"), function init, file Instructions.cpp, line 294. In-Reply-To: Message-ID: <200903040833.n248Xhsu029137@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3687 Ed Schouten changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ed at 80386.nl Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #8 from Ed Schouten 2009-03-04 02:33:43 --- Yes, bug seems to be fixed now. Thanks a lot! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 05:09:58 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 05:09:58 -0600 Subject: [LLVMbugs] [Bug 3719] File uploading functionality doesn't work on demo page In-Reply-To: Message-ID: <200903041109.n24B9wbd013711@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3719 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Duncan Sands 2009-03-04 05:09:09 --- Fixed in CVS commit 1.97. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 09:28:19 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 09:28:19 -0600 Subject: [LLVMbugs] [Bug 3720] New: Scalar replacement introduces store with incorrect alignment Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3720 Summary: Scalar replacement introduces store with incorrect alignment Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: richard at xmos.com CC: llvmbugs at cs.uiuc.edu When the scalar replacement pass replaces a structure which is the source of a llvm.memcpy then it replaces the memcpy with stores. It does not seem to be taking into account the alignment of the memcpy when setting the alignment of these stores. running opt -scalar-repl on the following: %struct.st = type <{ i16 }> define void @f(i8* %p) nounwind { entry: %s = alloca %struct.st, align 4 ; <%struct.st*> [#uses=2] %0 = getelementptr %struct.st* %s, i32 0, i32 0 ; [#uses=1] store i16 1, i16* %0, align 4 %s1 = bitcast %struct.st* %s to i8* ; [#uses=1] call void @llvm.memcpy.i32(i8* %p, i8* %s1, i32 2, i32 1) ret void } declare void @llvm.memcpy.i32(i8* nocapture, i8* nocapture, i32, i32) nounwind Results in the following output: %struct.st = type <{ i16 }> define void @f(i8* %p) nounwind { entry: %p1 = bitcast i8* %p to %struct.st* ; <%struct.st*> [#uses=1] %p1.0 = getelementptr %struct.st* %p1, i32 0, i32 0 ; [#uses=1] store i16 1, i16* %p1.0 ret void } declare void @llvm.memcpy.i32(i8* nocapture, i8* nocapture, i32, i32) nounwind This is invalid - if %p isn't 16bit aligned then the store will be misaligned and this may trap depending on the target. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 10:32:54 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 10:32:54 -0600 Subject: [LLVMbugs] [Bug 3721] New: LLC generates undefined labels Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3721 Summary: LLC generates undefined labels Product: tools Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: llc AssignedTo: unassignedbugs at nondot.org ReportedBy: haohui.mai at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2653) --> (http://llvm.org/bugs/attachment.cgi?id=2653) test case LLC is broken at revision 66035, but it works at revision 66001. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 11:10:25 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 11:10:25 -0600 Subject: [LLVMbugs] [Bug 3722] New: LLVM doesn't store data initialized with zero in BSS Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3722 Summary: LLVM doesn't store data initialized with zero in BSS Product: clang Version: unspecified Platform: PC OS/Version: FreeBSD Status: NEW Severity: enhancement Priority: P2 Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ed at 80386.nl CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2654) --> (http://llvm.org/bugs/attachment.cgi?id=2654) Testcase The attached application is only 6 KB when compiled with GCC, but 104 KB when compiled with Clang. This is because the array at the top is initialized with zeroes. GCC puts it in BSS, while Clang does not. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 11:32:07 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 11:32:07 -0600 Subject: [LLVMbugs] [Bug 3698] Clang doesn't support 'asm renaming' of symbols In-Reply-To: Message-ID: <200903041732.n24HW7rK029278@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3698 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel at zuster.org Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Daniel Dunbar 2009-03-04 11:32:06 --- Fixed here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090302/013424.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 12:40:19 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 12:40:19 -0600 Subject: [LLVMbugs] [Bug 3709] Clang miscompiles crtend. In-Reply-To: Message-ID: <200903041840.n24IeJpT032031@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3709 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #7 from Chris Lattner 2009-03-04 12:40:19 --- The problem here is that __CTOR_END__ has magic semantics that the compiler doesn't know about, and is marked static. The proper way to tell the compiler "don't touch" is to use __attribute__((used)), and doing so fixes the problem. Please use something like this: static func_ptr __attribute__((used)) __CTOR_END__[1] __attribute__((section(".ctors"), aligned(sizeof(func_ptr)))) = { (func_ptr) 0 }; -Chris -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 13:17:12 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 13:17:12 -0600 Subject: [LLVMbugs] [Bug 3724] New: JIT Memory Manager causes false error with any RWX memory region fragmentation Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3724 Summary: JIT Memory Manager causes false error with any RWX memory region fragmentation Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Keywords: quality-of-implementation Severity: normal Priority: P2 Component: Target-Independent JIT AssignedTo: unassignedbugs at nondot.org ReportedBy: eric.yew at gmail.com CC: llvmbugs at cs.uiuc.edu The JIT memory manager always returns the head of the FreeMemoryList in response to a block allocation request from JITEmitter (JITMemoryManager.cpp:303) This can cause a "JIT: Ran out of space for generated machine code" error whenever there's any fragmentation in the MemoryManger RWX region, even if there's a huge amount of free space left. Consider a multi-threaded application, where Thread A allocates a 100-byte block at the beginning of the RWX region, then Thread B allocates a 100-byte block directly after A's block. Thread A then frees its machine code block. This would leave: | <--100B Free--> | <--100B Alloc(Thread B)--> | <--15+MB Free Space--> | ^ Head of free list Now, whenever anything else tries to allocate a JIT region, the Memory Manager will always return the first (empty) 100B block. If this isn't big enough, however, the current behavior of the JITEmitter is to abort with a "JIT: Ran out of space for generated machine code" error (JITEmitter.cpp:893). I know there's a //FIXME in there, but even when the JITEmitter requests another allocation, the JIT MemoryManager will still return the head block. Proposed Fix: Since the allocation size is unknown at alloc time, the JIT MemoryManager should return the largest available block in the FreeMemoryList on any allocation. I have a patch locally that implements this behavior and corrects the problem. There is of course a performance penalty for this, but in my application, in practice, the free list never grows beyond a handful of entries despite being accessed asynchronously by many threads. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 13:17:35 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 13:17:35 -0600 Subject: [LLVMbugs] [Bug 3722] LLVM doesn't store data initialized with zero in BSS In-Reply-To: Message-ID: <200903041917.n24JHZG9001422@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3722 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel at zuster.org Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Daniel Dunbar 2009-03-04 13:17:35 --- Driver bug; fixed here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090302/013434.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 13:21:20 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 13:21:20 -0600 Subject: [LLVMbugs] [Bug 3720] Scalar replacement introduces store with incorrect alignment In-Reply-To: Message-ID: <200903041921.n24JLKOs001673@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3720 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2009-03-04 13:21:19 --- Fixed: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090302/074633.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 14:23:13 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 14:23:13 -0600 Subject: [LLVMbugs] [Bug 3726] New: [PATCH] ISO C++ fixes for GCC 4.4 / glibc Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3726 Summary: [PATCH] ISO C++ fixes for GCC 4.4 / glibc Product: libraries Version: 2.5 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: System Library AssignedTo: unassignedbugs at nondot.org ReportedBy: salimma at fedoraproject.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2659) --> (http://llvm.org/bugs/attachment.cgi?id=2659) Patch for Unix/Signals.inc The new version of glibc (2.9.90 on Rawhide), when used in combination with the upcoming gcc 4.4, introduces some changes to the signatures of string-handling functions: if the input is const, the return value is now also const. This affects one file in LLVM 2.5 -- Signals.inc. Patch attached. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 15:00:50 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 15:00:50 -0600 Subject: [LLVMbugs] [Bug 3726] [PATCH] ISO C++ fixes for GCC 4.4 / glibc In-Reply-To: Message-ID: <200903042100.n24L0oJT005903@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3726 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gohman at apple.com Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Dan Gohman 2009-03-04 15:00:50 --- *** This bug has been marked as a duplicate of bug 3535 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 15:05:14 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 15:05:14 -0600 Subject: [LLVMbugs] [Bug 3727] New: [PATCH] llvm-config's Makefile: change sed's delimiter Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3727 Summary: [PATCH] llvm-config's Makefile: change sed's delimiter Product: Build scripts Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Makefiles AssignedTo: unassignedbugs at nondot.org ReportedBy: salimma at fedoraproject.org CC: llvmbugs at cs.uiuc.edu llvm-config's Makefile uses sed with a delimiter of comma to build the final version of the script. This causes problems when building in, e.g., Fedora, since some compiler options passed by default contain commas, e.g.: -Wp,-D_FORTIFY_SOURCE=2 We have carried this patch since llvm 2.1, but for some reason the patch has never been upstreamed. If this could be applied, we could drop it from our tree. (Also, if someone could ping the Ocaml binding maintainer, this bug: http://llvm.org/bugs/show_bug.cgi?id=3153 has a patch that applies to LLVM 2.4 and 2.5) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 16:11:19 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 16:11:19 -0600 Subject: [LLVMbugs] [Bug 3728] New: Assertion failure in llvm::ARMTargetLowering:: LowerOperation Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3728 Summary: Assertion failure in llvm::ARMTargetLowering::LowerOperation Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: bharadwajy at gmail.com CC: llvmbugs at cs.uiuc.edu I encountered the following assertion during compilation using x86_64->arm cross compiler that I built. llvm rev no: 66050. Please find bugpoint-reduced-simplified.ll attached. Thanks. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 17:20:19 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 17:20:19 -0600 Subject: [LLVMbugs] [Bug 3729] New: Regression: llvm 2.5 does not build on PPC 64-bit Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3729 Summary: Regression: llvm 2.5 does not build on PPC 64-bit Product: libraries Version: 2.5 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Backend: PowerPC AssignedTo: unassignedbugs at nondot.org ReportedBy: salimma at fedoraproject.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2661) --> (http://llvm.org/bugs/attachment.cgi?id=2661) Log describing the setting-up of the build chroot Fedora packages llvm for Intel (ix86 and x86_64) and PPC (32-bit and 64-bit). 2.4 builds fine, but updating the package spec to build llvm-2.5 (no change is made apart for applying an extra patch needed to build using GCC 4.4 / glibc), attempts to build on PPC64 now fails: http://koji.fedoraproject.org/koji/taskinfo?taskID=1221676 llvm[2]: ======= Finished Linking Release Executable tblgen (without symbols) make[2]: Leaving directory `/builddir/build/BUILD/llvm-2.5/utils/TableGen' make[1]: Leaving directory `/builddir/build/BUILD/llvm-2.5/utils' make[1]: Entering directory `/builddir/build/BUILD/llvm-2.5/lib/VMCore' llvm[1]: Building Intrinsics.gen.tmp from Intrinsics.td tblgen: IntrinsicEmitter.cpp:137: void EmitTypeForValueType(std::ostream&, llvm::MVT::SimpleValueType): Assertion `false && "Unsupported ValueType!"' failed. make[1]: *** [/builddir/build/BUILD/llvm-2.5/lib/VMCore/Release/Intrinsics.gen.tmp] Aborted make[1]: Leaving directory `/builddir/build/BUILD/llvm-2.5/lib/VMCore' make: *** [all] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.55THay (%build) Full logs attached, as this is a temporary build and the logs will be purged in a few days. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 17:31:43 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 17:31:43 -0600 Subject: [LLVMbugs] [Bug 3729] llvm 2.5 does not build on PPC 64-bit (GCC 4.4, glibc 2.9.90) In-Reply-To: Message-ID: <200903042331.n24NVh3u012442@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3729 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 21:18:40 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 21:18:40 -0600 Subject: [LLVMbugs] [Bug 3688] crash with incomplete tag type as return/ parameter type for function declaration In-Reply-To: Message-ID: <200903050318.n253IelM020733@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3688 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Eli Friedman 2009-03-04 21:18:40 --- Fixed in r66128. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 4 22:30:49 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 4 Mar 2009 22:30:49 -0600 Subject: [LLVMbugs] [Bug 3730] New: llvm-gcc crash with incomplete enum type Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3730 Summary: llvm-gcc crash with incomplete enum type Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu Testcase: enum y b(void); struct x {enum y (*test)(void);} z = {b}; enum y {AAA,BBB}; int a() { return z.test(); } cc1: Instructions.cpp:2164: static llvm::Instruction::CastOps llvm::CastInst::getCastOpcode(const llvm::Value*, bool, const llvm::Type*, bool): Assertion `SrcTy->isFirstClassType() && DestTy->isFirstClassType() && "Only first class types are castable!"' failed. : In function ???a???: :4: internal compiler error: Aborted Another similar testcase: enum y b(void); struct x {enum y (*test)(void);} z = {b}; enum y {AAA,BBB}; enum y b(void) { return BBB; } cc1: Function.cpp:164: llvm::Function::Function(const llvm::FunctionType*, llvm::GlobalValue::LinkageTypes, const std::string&, llvm::Module*): Assertion `FunctionType::isValidReturnType(getReturnType()) && !isa(getReturnType()) && "invalid return type"' failed. : In function ???b???: :4: internal compiler error: Aborted These are contrived testcases I came up with while comparing the output of llvm-gcc and clang for incomplete function types, so probably not a serious issue, but it might be worth looking at. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 5 00:42:50 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 5 Mar 2009 00:42:50 -0600 Subject: [LLVMbugs] [Bug 3731] New: clang x86-32 doesn't implement ABI properly on Linux Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3731 Summary: clang x86-32 doesn't implement ABI properly on Linux Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: daniel at zuster.org CC: llvmbugs at cs.uiuc.edu This is something of a meta bug; there are a number of differences in the ABI between Darwin and Linux (and presumably FreeBSD, etc.) on x86-32. We should make sure that the gcc compat test suite passes on Linux for x86-32; and do some reasonable ABITest runs as well. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 5 00:52:45 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 5 Mar 2009 00:52:45 -0600 Subject: [LLVMbugs] [Bug 3732] New: LLC instruction scheduler misbehaves on X86 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3732 Summary: LLC instruction scheduler misbehaves on X86 Product: tools Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: llc AssignedTo: unassignedbugs at nondot.org ReportedBy: haohui.mai at gmail.com CC: llvmbugs at cs.uiuc.edu Here is the test case: ; ModuleID = '' declare i32 @foo() define i32 @bar(i32* %flags) { entry: %flags.addr = load i32* %flags, align 4 ; [#uses=1] %0 = call fastcc i32 @foo() nounwind ; [#uses=1] call void asm sideeffect "push $0 ; popf", "imr,~{dirflag},~{fpsr},~{flags},~{cc},~{memory}"(i32 %flags.addr) nounwind %1 = icmp eq i32 %0, 0 ; [#uses=1] br i1 %1, label %bb1, label %bb2 bb1: ; preds = %entry ret i32 1 bb2: ; preds = %entry ret i32 2 } Here is the generated assembly: bar: .Leh_func_begin1: .Llabel1: pushl %esi subl $8, %esp movl 16(%esp), %eax movl (%eax), %esi call foo movl %esi, 4(%esp) testl %eax, %eax #APP push 4(%esp) ; popf #NO_APP jne .LBB1_3 # bb2 The POPF instruction is going to change the condition code register, which means the branch is determined by the contents of %flags rather than the icmp instruction. The scheduler puts the TESTL instruction after the popf instructions. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 5 02:01:12 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 5 Mar 2009 02:01:12 -0600 Subject: [LLVMbugs] [Bug 3734] New: Access to many passes missing from C API. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3734 Summary: Access to many passes missing from C API. Product: new-bugs Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: lennart at augustsson.net CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2663) --> (http://llvm.org/bugs/attachment.cgi?id=2663) Tar file with new additional C API functions. The C API does not give access to enough transformation passes to build any kind of interesting optimization pipeline. The included tar file contains more of them (still not all). The tar file contains two new files, and overwrites two old files. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 5 03:31:28 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 5 Mar 2009 03:31:28 -0600 Subject: [LLVMbugs] [Bug 3688] crash with incomplete tag type as return/ parameter type for function declaration In-Reply-To: Message-ID: <200903050931.n259VR30012878@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3688 Ed Schouten changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ed at 80386.nl Status|RESOLVED |REOPENED Resolution|FIXED | -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 5 03:54:10 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 5 Mar 2009 03:54:10 -0600 Subject: [LLVMbugs] [Bug 3735] New: Two different crashes inside Clang when compiling unions with floats and integers . Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3735 Summary: Two different crashes inside Clang when compiling unions with floats and integers. Product: clang Version: unspecified Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P2 Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ed at 80386.nl CC: llvmbugs at cs.uiuc.edu Blocks: 3696 Created an attachment (id=2666) --> (http://llvm.org/bugs/attachment.cgi?id=2666) Reduced testcase The attached code crashes with the following error: Assertion failed: ((Accum == NoClass || Accum == Integer || Accum == SSE || Accum == SSEUp) && "Invalid accumulated classification during merge."), function merge, file CGCall.cpp, line 478. When void *k is removed from the struct, you get the following error: Assertion failed: (0 && "Invalid classification for hi word."), function classifyArgumentType, file CGCall.cpp, line 879. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 5 11:19:15 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 5 Mar 2009 11:19:15 -0600 Subject: [LLVMbugs] [Bug 3736] New: llc chokes on unhandled vector types Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3736 Summary: llc chokes on unhandled vector types Product: libraries Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P2 Component: Backend: PowerPC AssignedTo: unassignedbugs at nondot.org ReportedBy: arplynn at gmail.com CC: llvmbugs at cs.uiuc.edu With the following testcase: define <16 x float> @mm(<16 x float> %a, <16 x float> %b) nounwind readnone { entry: ret <16 x float> zeroinitializer } llc crashes as follows: Return operand #1 has unhandled type v4f32 0 llc 0x00a02724 std::_Rb_tree, std::less, std::allocator >::insert_unique(llvm::sys::Path const&) + 7652 1 libSystem.B.dylib 0x9693a99c _sigtramp + 68 Abort trap -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 5 11:49:27 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 5 Mar 2009 11:49:27 -0600 Subject: [LLVMbugs] [Bug 3736] llc chokes on unhandled vector types In-Reply-To: Message-ID: <200903051749.n25HnRMr004154@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3736 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Chris Lattner 2009-03-05 11:49:27 --- *** This bug has been marked as a duplicate of bug 2660 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 5 11:56:16 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 5 Mar 2009 11:56:16 -0600 Subject: [LLVMbugs] [Bug 1627] [PowerPC] Miscompilation of float selection including NaNs In-Reply-To: Message-ID: <200903051756.n25HuGFx004578@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=1627 Dale Johannesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Dale Johannesen 2009-03-05 11:56:15 --- Yes, although we generate compare-and-branch instead of trying to do something clever. As far as I know all the problems with floating point compares are fixed on PPC. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 5 12:43:18 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 5 Mar 2009 12:43:18 -0600 Subject: [LLVMbugs] [Bug 3737] New: clang rejects "__label__" Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3737 Summary: clang rejects "__label__" Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Semantic Analyzer AssignedTo: unassignedclangbugs at nondot.org ReportedBy: kremenek at apple.com CC: llvmbugs at cs.uiuc.edu gcc happily eats the following: void foo(void) { __label__ bad; int x; } clang not so much: $ clang t.c t.c:6:3: error: expected expression __label__ bad; ^ 1 diagnostic generated. Not only does clang reject this, but the error message is suboptimal. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 5 12:44:09 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 5 Mar 2009 12:44:09 -0600 Subject: [LLVMbugs] [Bug 3737] clang rejects "__label__" In-Reply-To: Message-ID: <200903051844.n25Ii9lS007052@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3737 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Chris Lattner 2009-03-05 12:44:08 --- *** This bug has been marked as a duplicate of bug 3429 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 5 13:00:20 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 5 Mar 2009 13:00:20 -0600 Subject: [LLVMbugs] [Bug 3738] New: stack protector produces invalid IR in test/CodeGen/Generic /stack-protector.ll Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3738 Summary: stack protector produces invalid IR in test/CodeGen/Generic/stack-protector.ll Product: libraries Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: gohman at apple.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2667) --> (http://llvm.org/bugs/attachment.cgi?id=2667) a hack to add Verifier passes While debugging an unrelated problem, I added Verifier passes to run after the late codegen phases. This is turning up invalid IR in test/CodeGen/Generic/stack-protector.ll To reproduce, apply the attached patch, which adds the Verifier passes, and run make check. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 5 14:36:29 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 5 Mar 2009 14:36:29 -0600 Subject: [LLVMbugs] [Bug 3739] New: x86-64 generates incorrect asm in function prolog/ epilog trying to save XMM registers Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3739 Summary: x86-64 generates incorrect asm in function prolog/epilog trying to save XMM registers Product: libraries Version: 2.5 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: craig at ni.com CC: evan.cheng at apple.com, asl at math.spbu.ru, dalej at apple.com, llvmbugs at cs.uiuc.edu, nicolas at capens.net Depends on: 2801 On Win64, registers XMM6 - XMM15 are considered non-volatile and should be callee-saved. The bug this bug is a clone of (#2801) attempted to fix this, but the patch suggested as the fix was only partially submitted; it added the XMM registers to X86RegisterInfo::getCalleeSavesRegs(), but that's all. The X86 function prolog/epilog code does not know how to save/restore XMM registers and tries to emit a PUSH XMMn instruction, which is invalid; it emits bad assembly. (When jitting, it encodes a push of a GP register instead.) For example: target triple = "x86_64-pc-windows" declare extern_weak i32 @foo() define i32 @func() { entry: %r = call i32 @foo() nounwind ret i32 %r } % llvm-as < test.ll | llc -x86-asm-syntax=att (I can't stand Intel asm syntax, so even though this is a Win64 target I try to lessen the pain) _text segment 'DATA' align 16 .globl _func _func: $label1: pushq %xmm15 pushq %xmm14 pushq %xmm13 pushq %xmm12 pushq %xmm11 pushq %xmm10 pushq %xmm9 pushq %xmm8 pushq %xmm7 pushq %xmm6 pushq %rsi pushq %rdi subq $88, %rsp call _foo addq $88, %rsp popq %rdi popq %rsi popq %xmm6 popq %xmm7 popq %xmm8 popq %xmm9 popq %xmm10 popq %xmm11 popq %xmm12 popq %xmm13 popq %xmm14 popq %xmm15 ret ---- Note also that not only does the prolog/epilog emit incorrect instructions for dealing with XMM*, it also shouldn't be bothering to save/restore the registers in the first place since they are not used in the function. (In PEI::calculateCalleeSavedRegisters(), the Fn.getRegInfo().isPhysRegUsed(Reg) call always returns true for all the XMM registers if the Function being emitted has any call instructions.) The part of the patch attached to #2801 which was not applied did attempt to generate direct writes/reads to the stack for XMM registers instead of push/pop, but still doesn't ensure alignment correctly. +++ This bug was initially created as a clone of Bug #2801 +++ The x86-64 ABI specifies that XMM6 to XMM15 are non-volatile, and should be preserved by the callee as needed. It appears that LLVM currently doesn't do this, causing unpredictable behavior with floating-point calculations. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 5 16:38:56 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 5 Mar 2009 16:38:56 -0600 Subject: [LLVMbugs] [Bug 3732] LLC instruction scheduler misbehaves on X86 In-Reply-To: Message-ID: <200903052238.n25Mcutk016993@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3732 Haohui Mai changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from Haohui Mai 2009-03-05 16:38:55 --- It does not work on revision 66001, but it works on 66208. Thank you. *** This bug has been marked as a duplicate of bug 3701 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 5 16:47:08 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 5 Mar 2009 16:47:08 -0600 Subject: [LLVMbugs] [Bug 3607] crash on bitfield with incomplete type In-Reply-To: Message-ID: <200903052247.n25Ml8Ek017421@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3607 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2009-03-05 16:47:07 --- Fixed: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090302/013526.html GCC's warning is bogus: 'e0' has an unknown width. We now produce: t.c:3:11: error: field has incomplete type 'enum e0' enum e0 f : 1; ^ -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 5 18:11:25 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 5 Mar 2009 18:11:25 -0600 Subject: [LLVMbugs] [Bug 3740] New: Odd missed optimization Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3740 Summary: Odd missed optimization Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu This is seen using r66136 on x86 on Ubuntu Hardy. The code below should compile into "return 0", but fails to. If the line of code in func_1() is pasted into main(), everything gets optimized properly. regehr at john-home:~/volatile/tmp141$ cat small2.c #include #include #define safe_lshift_macro_int32_t_s_s(left,right) \ (((((int32_t)(left)) < ((int32_t)0)) \ || (((int)(right)) < ((int32_t)0)) \ || (((int)(right)) >= sizeof(int32_t)*CHAR_BIT) \ || (((int32_t)(left)) > ((INT32_MAX) >> ((int)(right))))) \ ? ((int32_t)(left)) \ : (((int32_t)(left)) << ((int)(right)))) static int32_t safe_lshift_func_int32_t_s_s(int32_t _left, int _right) { return safe_lshift_macro_int32_t_s_s(_left,_right); } static uint8_t g_6; static void func_1 (void); static void func_1 (void) { g_6 = safe_lshift_func_int32_t_s_s (g_6, g_6); } int main (void) { func_1 (); return g_6; } regehr at john-home:~/volatile/tmp141$ llvm-gcc -O6 small2.c -S --emit-llvm -o - ; ModuleID = 'small2.c' target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32" target triple = "i386-pc-linux-gnu" @g_6 = internal global i8 0 ; [#uses=2] define i32 @main() nounwind { entry: %0 = load i8* @g_6, align 1 ; [#uses=2] %1 = zext i8 %0 to i32 ; [#uses=5] %2 = icmp ugt i8 %0, 31 ; [#uses=1] br i1 %2, label %func_1.exit, label %bb6.i.i bb6.i.i: ; preds = %entry %3 = lshr i32 2147483647, %1 ; [#uses=1] %4 = icmp slt i32 %3, %1 ; [#uses=1] %5 = select i1 %4, i32 0, i32 %1 ; [#uses=1] %..i = shl i32 %1, %5 ; [#uses=1] br label %func_1.exit func_1.exit: ; preds = %entry, %bb6.i.i %6 = phi i32 [ %..i, %bb6.i.i ], [ %1, %entry ] ; [#uses=2] %7 = trunc i32 %6 to i8 ; [#uses=1] store i8 %7, i8* @g_6, align 1 %8 = and i32 %6, 255 ; [#uses=1] ret i32 %8 } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 5 19:42:49 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 5 Mar 2009 19:42:49 -0600 Subject: [LLVMbugs] [Bug 3738] stack protector produces invalid IR in test/CodeGen/Generic/ stack-protector.ll In-Reply-To: Message-ID: <200903060142.n261gngk024110@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3738 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bill Wendling 2009-03-05 19:42:48 --- Fixed here: http://llvm.org/viewvc/llvm-project?rev=66234&view=rev -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 5 20:18:06 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 5 Mar 2009 20:18:06 -0600 Subject: [LLVMbugs] [Bug 718] bugpoint crashes on stripped bc files In-Reply-To: Message-ID: <200903060218.n262I6m1025489@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=718 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gohman at apple.com Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Dan Gohman 2009-03-05 20:18:06 --- Instead of looking up the function by name, bugpoint can use CloneModule's ValueMap to look up the new function. Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090302/074736.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 6 08:29:10 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 6 Mar 2009 08:29:10 -0600 Subject: [LLVMbugs] [Bug 3741] New: Scalar replacement of Aggregates doesn't handle "byval" parameters. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3741 Summary: Scalar replacement of Aggregates doesn't handle "byval" parameters. Product: new-bugs Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: fvbommel at wxs.nl CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2674) --> (http://llvm.org/bugs/attachment.cgi?id=2674) A testcase. Only three loads and three stores should be produced after opt -instcombine -scalarrepl. Consider the following C code: ----- typedef struct Type { long a, b, c; } Type; Type foo(Type t) { // Type u = t; // #define t u t.a += t.b; t.b += t.c; return t; } ----- Compiling this with llvm-gcc (-O0) and running 'opt -instcombine -scalarrepl' over it produces the attached bitcode. Note that the first two stores (to t.a and t.b) are completely redundant and would obviously have been deleted if 't' had been represented as an alloca instead of a byval parameter. (What's more, running 'opt -std-compile-opts' instead only deletes one of them; -dse removes the store to t.b but not the one to t.a) I've tested this theory by uncommenting the first two lines in foo() to tell llvm-gcc to copy the parameter to an alloca and use that instead. This change produces only three stores (as opposed to the original 5) after 'opt -instcombine -scalarrepl'. I think this should be remedied by having scalar replacement of aggregates treat byval parameters identical to allocas, since they have the exact same properties except that they can't be deleted and don't have an undef value before first being stored to. (Or if that wouldn't work because of type issues, by introducing a pass that does for byval parameters what scalarrepl does for allocas) (There are also 7 loads in the original bitcode as opposed to 3 in the alloca'ing one, but with '-std-compile-opts' the 4 extra ones are removed by -gvn) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 6 09:13:26 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 6 Mar 2009 09:13:26 -0600 Subject: [LLVMbugs] [Bug 3443] recent regression: undeclared function isn' t infered the right type In-Reply-To: Message-ID: <200903061513.n26FDPxH032286@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3443 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dgregor at apple.com Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Douglas Gregor 2009-03-06 09:13:20 --- This code is ill-formed, and Clang is doing the right thing. GCC produces a warning (normal mode) or an error (with -ansi), EDG produces an error (always). -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 6 10:09:49 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 6 Mar 2009 10:09:49 -0600 Subject: [LLVMbugs] [Bug 3742] New: Missing warning: "noreturn function does return" Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3742 Summary: Missing warning: "noreturn function does return" Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Semantic Analyzer AssignedTo: unassignedclangbugs at nondot.org ReportedBy: daniel at zuster.org CC: llvmbugs at cs.uiuc.edu -- void t1() __attribute__((noreturn)); void t1() {} -- -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 6 10:53:10 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 6 Mar 2009 10:53:10 -0600 Subject: [LLVMbugs] [Bug 3734] Access to many passes missing from C API. In-Reply-To: Message-ID: <200903061653.n26GrA7P003325@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3734 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2009-03-06 10:53:09 --- Thanks! http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090302/074763.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 6 11:52:14 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 6 Mar 2009 11:52:14 -0600 Subject: [LLVMbugs] [Bug 3735] Two different crashes inside Clang when compiling unions with floats and integers . In-Reply-To: Message-ID: <200903061752.n26HqEEE006004@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3735 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Daniel Dunbar 2009-03-06 11:52:14 --- Fixed here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090302/013554.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 6 12:38:19 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 6 Mar 2009 12:38:19 -0600 Subject: [LLVMbugs] [Bug 3688] GNU extension: support forward declarations of enums In-Reply-To: Message-ID: <200903061838.n26IcJA2029500@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3688 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #10 from Douglas Gregor 2009-03-06 12:38:06 --- I thought our support for forward declaration of enums was worse off. Fixed the remaining Sema issue here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090302/013558.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 6 16:45:36 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 6 Mar 2009 16:45:36 -0600 Subject: [LLVMbugs] [Bug 2821] clang rejects ANSI C style prototype + K&R style definition In-Reply-To: Message-ID: <200903062245.n26Mja91007080@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=2821 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #6 from Douglas Gregor 2009-03-06 16:45:34 --- Fixed here by implementing the GNU C semantics: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090302/013568.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 6 17:25:48 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 6 Mar 2009 17:25:48 -0600 Subject: [LLVMbugs] [Bug 3743] New: -mmacosx-version-min inappropriate for Mac OS X 10.4.11 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3743 Summary: -mmacosx-version-min inappropriate for Mac OS X 10.4.11 Product: Build scripts Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: blocker Priority: P2 Component: Makefiles AssignedTo: unassignedbugs at nondot.org ReportedBy: scooter.phd at gmail.com CC: llvmbugs at cs.uiuc.edu The values for "-mmacosx-version-min" need to be carefully chosen, since they vary from OSX version to version. On OSX 10.4.11, for example, "-mmacosx-version-min" can only take on the following values (quoted from the gcc man page): -mmacosx-version-min=version The earliest version of MacOS X that this executable will run on is version. Typical values of version include 10.1, 10.2, and 10.3.9. The default for this option is to make choices that seem to be most useful. Currently, this value for this flag is a blocker when compiling for 10.4.11 (yes, there are still a few of us out there who are mandated to use this OS version.) Compilation output follows: =========================== % make VERBOSE=1 for dir in lib/System lib/Support utils lib/VMCore lib tools/llvm-config tools docs; do \ if [ ! -f $dir/Makefile ]; then \ /Users/scottm/play/llvm/branches/llvm-spu/autoconf/mkinstalldirs $dir; \ /bin/cp /Users/scottm/play/llvm/branches/llvm-spu/$dir/Makefile $dir/Makefile; \ fi; \ (make -C $dir all ) || exit 1; \ done llvm[1]: Compiling Alarm.cpp for Debug build if g++ -I/Users/scottm/play/llvm/branches/llvm-spu/include -I/Users/scottm/play/llvm/branches/llvm-spu/lib/System -I/Users/scottm/play/llvm/branches/llvm-spu/obj/i686-apple-darwin/include -I/Users/scottm/play/llvm/branches/llvm-spu/obj/i686-apple-darwin/lib/System -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fno-exceptions -fno-common -Woverloaded-virtual -mmacosx-version-min=`sw_vers -productVersion` -Wall -W -Wwrite-strings -Wunused -Wno-unused-parameter -c -MMD -MP -MF "/Users/scottm/play/llvm/branches/llvm-spu/obj/i686-apple-darwin/lib/System/Debug/Alarm.d.tmp" -MT "/Users/scottm/play/llvm/branches/llvm-spu/obj/i686-apple-darwin/lib/System/Debug/Alarm.o" -MT "/Users/scottm/play/llvm/branches/llvm-spu/obj/i686-apple-darwin/lib/System/Debug/Alarm.d" /Users/scottm/play/llvm/branches/llvm-spu/lib/System/Alarm.cpp -o /Users/scottm/play/llvm/branches/llvm-spu/obj/i686-apple-darwin/lib/System/Debug/Alarm.o ; \ then /bin/mv -f "/Users/scottm/play/llvm/branches/llvm-spu/obj/i686-apple-darwin/lib/System/Debug/Alarm.d.tmp" "/Users/scottm/play/llvm/branches/llvm-spu/obj/i686-apple-darwin/lib/System/Debug/Alarm.d"; else /bin/rm "/Users/scottm/play/llvm/branches/llvm-spu/obj/i686-apple-darwin/lib/System/Debug/Alarm.d.tmp"; exit 1; fi :1: error: Unknown value '10.4.11' of -mmacosx-version-min make[1]: *** [/Users/scottm/play/llvm/branches/llvm-spu/obj/i686-apple-darwin/lib/System/Debug/Alarm.o] Error 1 make: *** [all] Error 1 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 6 17:29:15 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 6 Mar 2009 17:29:15 -0600 Subject: [LLVMbugs] [Bug 3680] anonymous union: invalid error & poor diagnostic In-Reply-To: Message-ID: <200903062329.n26NTFbh008915@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3680 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Douglas Gregor 2009-03-06 17:29:15 --- I've improved the error message a bit here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090302/013572.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 6 18:41:50 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 6 Mar 2009 18:41:50 -0600 Subject: [LLVMbugs] [Bug 3744] New: Field Idx out of range! Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3744 Summary: Field Idx out of range! Product: new-bugs Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: wendling at apple.com CC: llvmbugs at cs.uiuc.edu This code is causing problems: $ cat t2.i struct Empty {}; struct Union { union { int zero_arr[0]; } contents; }; static inline void Foo(struct Union *u) { int *array = u->contents.zero_arr; } static void Bar(struct Union *u) { Foo(u); } $ llvm-gcc -c t2.i Assertion failed: (MemberIndex < StructTy->getNumContainedTypes() && "Field Idx out of range!"), function EmitLV_COMPONENT_REF, file ../../llvm-gcc.src/gcc/llvm-convert.cpp, line 5993. t2.i: In function ???Foo???: t2.i:7: internal compiler error: Abort trap Please submit a full bug report, with preprocessed source if appropriate. See for instructions. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 6 21:27:10 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 6 Mar 2009 21:27:10 -0600 Subject: [LLVMbugs] [Bug 3671] clang fails parse stdio.h from (gentoo) glibc-2.6.1 In-Reply-To: Message-ID: <200903070327.n273RA5T017911@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3671 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sharparrow1 at yahoo.com Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Eli Friedman 2009-03-06 21:27:09 --- CodeGen looks fine; there isn't really anything special to handle. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 7 00:26:21 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 7 Mar 2009 00:26:21 -0600 Subject: [LLVMbugs] [Bug 3746] New: Crash in isel with GEP of function pointer Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3746 Summary: Crash in isel with GEP of function pointer Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu Testcase: define void @a() { getelementptr i32()* null, i32 1 ret void } Run through llvm-as | llc, gives the following: llc: /home/eli/llvm/lib/Target/TargetData.cpp:468: unsigned char llvm::TargetData::getAlignment(const llvm::Type*, bool) const: Assertion `Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"' failed. Possibly the verifier should catch this... but there are regression tests that depend on GEPs of unsized types (!). In any case, crashing isn't nice. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 7 00:30:54 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 7 Mar 2009 00:30:54 -0600 Subject: [LLVMbugs] [Bug 3747] New: Crash in llvm-as with void field in struct Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3747 Summary: Crash in llvm-as with void field in struct Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu Testcase: %x = type {void} Run through llvm-as: llvm-as: /home/eli/llvm/lib/VMCore/Type.cpp:346: llvm::StructType::StructType(const std::vector >&, bool): Assertion `Types[i] != Type::VoidTy && "Void type for structure field!!"' failed. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 7 04:52:53 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 7 Mar 2009 04:52:53 -0600 Subject: [LLVMbugs] [Bug 3748] New: ImplicitValueExpr appears inside MemberExpr. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3748 Summary: ImplicitValueExpr appears inside MemberExpr. Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Semantic Analyzer AssignedTo: unassignedclangbugs at nondot.org ReportedBy: bolzoni at cs.unipr.it CC: llvmbugs at cs.uiuc.edu, bagnara at cs.unipr.it Test case: code.c ---> struct S2{ void* d; }; unsigned f() { return __builtin_offsetof (struct S2, d); } ---< ---> $ clang -ast-dump code.c (CompoundStmt 0x1fb2100 (ReturnStmt 0x1fb3240 (ImplicitCastExpr 0x1fb3200 'unsigned int' (UnaryOperator 0x1fb31c0 'unsigned long' prefix '__builtin_offsetof' (MemberExpr 0x1fb3180 <, col:42> 'void *' .d 0x1fb2fe0 (UnaryOperator 0x1fb4310 <> 'struct S2' prefix '*' (ImplicitValueInitExpr 0x1fb3110 <> 'struct S2 *'))))))) typedef struct __va_list_tag __builtin_va_list[1]; Read top-level variable decl: 'S2' unsigned int f() ---< The last two lines of the f definition's compound statement should not be there. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 7 09:12:34 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 7 Mar 2009 09:12:34 -0600 Subject: [LLVMbugs] [Bug 3749] New: linker adds spurious use to appending globals Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3749 Summary: linker adds spurious use to appending globals Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Keywords: miscompilation Severity: major Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: kamm-removethis at incasoftware.de CC: llvmbugs at cs.uiuc.edu When linking two modules containing appending globals with uses=0 with llvm::Linker, the resulting global will have a uses count of one. The cause for the extra use is found in LinkModules.cpp:1168, where a ConstantExpr::getBitCast(NG, G1->getType()) is created as a replacement for previous uses of G1 - even if there weren't any. This bug is significant as the nonzero use count stops LLVM from processing magic global constants such as llvm.global_ctors. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 7 09:19:05 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 7 Mar 2009 09:19:05 -0600 Subject: [LLVMbugs] [Bug 3750] New: FreeBSD's ld-elf. so miscompiles when array is marked as static Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3750 Summary: FreeBSD's ld-elf.so miscompiles when array is marked as static Product: clang Version: unspecified Platform: PC URL: http://svn.freebsd.org/viewvc/base/head/libexec/rtld- elf/rtld.c?view=markup OS/Version: FreeBSD Status: NEW Severity: normal Priority: P2 Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ed at 80386.nl CC: llvmbugs at cs.uiuc.edu Blocks: 3696 Created an attachment (id=2678) --> (http://llvm.org/bugs/attachment.cgi?id=2678) LLVM IR of rtld.c We're having this issue with Clang, which we cannot reduce to a simple test case. This is why we're just filing a bug report and hoping you folks know the answer or can tell us how to track down the cause of the issue. Notice we slightly changed the code to use __attribute__((__weak__)) instead of #pragma weak (see 3679). When rtld is compiled with Clang using -O or -O2, applications that use the dynamic linker will die on startup: ld-elf.so.1: assert failed: rtld.c:1199 This can be solved by compiling rtld with -O0 or marking the `exports' array in the file as __used. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 7 09:41:35 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 7 Mar 2009 09:41:35 -0600 Subject: [LLVMbugs] [Bug 3751] New: SourceLocation of -> or . Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3751 Summary: SourceLocation of -> or . Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P2 Component: AST AssignedTo: unassignedclangbugs at nondot.org ReportedBy: bolzoni at cs.unipr.it CC: llvmbugs at cs.uiuc.edu, bagnara at cs.unipr.it The only public code of clang::MemberExpr concerning SourceLocations or SourceRanges is (constructor a part): ----> virtual SourceLocation getExprLoc() const { return MemberLoc; } SourceLocation getMemberLoc() const { return MemberLoc; } virtual SourceRange getSourceRange() const { return SourceRange(getBase()->getLocStart(), MemberLoc); } ----< It seems there is no way to get the source location of . or -> , I think it is a simple oversight. Would it be possible to add this feature? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 7 13:24:14 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 7 Mar 2009 13:24:14 -0600 Subject: [LLVMbugs] [Bug 3751] SourceLocation of -> or . In-Reply-To: Message-ID: <200903071924.n27JOE6j023821@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3751 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kremenek at apple.com Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Ted Kremenek 2009-03-07 13:24:12 --- I believe that MemberExpr::getMemberLoc() returns the location of '.' or '->' -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 7 14:36:27 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 7 Mar 2009 14:36:27 -0600 Subject: [LLVMbugs] [Bug 3752] New: @encode() codegen does not match GCC Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3752 Summary: @encode() codegen does not match GCC Product: clang Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: devlists at shadowlab.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2681) --> (http://llvm.org/bugs/attachment.cgi?id=2681) Simple test case GCC use to returns the same string pointer for all @encode() directive with the same type, and so it's possible (using GCC) to compare @encode() values using the '==' operator. Actually, clang returns a different pointer for each @encode directive. The SenTestingKit distributed with Xcode rely on this behavior in the Unit Tests Assertions macros, and so, some test failed when they are compiled using clang. ------------ encode.m ---------------- #include int main(int argc, char **argv) { if (@encode(id) != @encode(id)) fprintf(stderr, "types do not match !!!\n"); return 0; } ---------------------------------- [MacBook:~/Desktop]% gcc -o encode encode.m [MacBook:~/Desktop]% ./encode [MacBook:~/Desktop]% ccc -o encode encode.m [MacBook:~/Desktop]% ./encode types do not match !!! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 7 15:04:55 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 7 Mar 2009 15:04:55 -0600 Subject: [LLVMbugs] [Bug 3753] New: clang should warn about comparison with string literal Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3753 Summary: clang should warn about comparison with string literal Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Semantic Analyzer AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu Constructs like the following should emit a warning a comparison with a string literal is almost certainly a mistake. Comparing addresses of string literals within the same file is probably safe, and comparing addresses across files is likely to work, but most uses are probably not intentional. First draft of wording: warning: result of comparison with pointer to string literal is unspecified. I was considering putting in a suggestion to use strcmp or something like that, but it's hard to come up with wording that concise and doesn't sound insulting to experienced programmers. Examples: >From a mailing list message: if (@encode(__typeof__(a1)) != @encode(__typeof__(a2))) { ... } One example from thousands of results from a Google Code Search for !=" : if (!a->name.isEmpty() && a->type!="void") { ... } gcc has a similar warning when -Wall is used, but they apparently missed the case of @encode. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 7 18:51:01 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 7 Mar 2009 18:51:01 -0600 Subject: [LLVMbugs] [Bug 3752] @encode() codegen does not match GCC In-Reply-To: Message-ID: <200903080051.n280p17v001141@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3752 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Eli Friedman 2009-03-07 18:50:51 --- Yes, I already "fixed" this in r66346. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 7 19:33:34 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 7 Mar 2009 19:33:34 -0600 Subject: [LLVMbugs] [Bug 3750] FreeBSD's ld-elf.so miscompiles when array is marked as static In-Reply-To: Message-ID: <200903080133.n281XYCs002248@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3750 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #13 from Chris Lattner 2009-03-07 19:33:32 --- This is not a compiler bug. The code also fails at -O0 if the exports array is manually marked const. The reason for this that marking it const drops it into a readonly section, which gets put after the text section. Because the global contains pointers to other globals in it, it gets relocation entries for them. Apparently the code in rtld.c cannot handle text relocations in RTLD itself, which is the assertion that fires. Using attribute(used) is a good workaround, but explicitly putting an attribute(section) on it to pin it to the data section might be even better. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 7 20:18:43 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 7 Mar 2009 20:18:43 -0600 Subject: [LLVMbugs] [Bug 3754] New: FunctionAttrs pass marks function with MallocInst as readnone Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3754 Summary: FunctionAttrs pass marks function with MallocInst as readnone Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Interprocedural Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: nicholas at mxc.ca CC: llvmbugs at cs.uiuc.edu $ cat m3.ll define i32 @foo_malloc(i32 %n) nounwind noinline { entry: %0 = icmp eq i32 %n, 0 ; [#uses=1] %iftmp.0.0 = select i1 %0, i32 1, i32 %n ; [#uses=1] %1 = malloc i8, i32 %iftmp.0.0 ; [#uses=1] %2 = ptrtoint i8* %1 to i32 ; [#uses=1] ret i32 %2 } $ llvm-as < m3.ll | opt -functionattrs -stats -disable-output ===-------------------------------------------------------------------------=== ... Statistics Collected ... ===-------------------------------------------------------------------------=== 1 functionattrs - Number of functions marked readnone That's wrong as can be seen from this C program: #include int foo_malloc(unsigned n) __attribute__((noinline)); int foo_malloc(unsigned n) { return malloc(n ? n : 1); } int main(void) { void *x, *y; x = foo_malloc(10); y = foo_malloc(10); return x == y; } The malloc instruction does write to memory, but it's sorta a secret special "new memory" pointer that no other pointer in LLVM can see. :) I'm filing this bug instead of just fixing it because I'm not sure what the fix out to be. Make FunctionAttrs treat MallocInst specially? Set MallocInst->mayWriteToMemory() to true? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 8 00:57:07 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 8 Mar 2009 00:57:07 -0600 Subject: [LLVMbugs] [Bug 3751] SourceLocation of -> or . In-Reply-To: Message-ID: <200903080657.n286v7Fb013164@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3751 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 8 05:28:32 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 8 Mar 2009 05:28:32 -0500 Subject: [LLVMbugs] [Bug 3750] FreeBSD's ld-elf.so crashes on startup: data not stored in .data .rel.ro. In-Reply-To: Message-ID: <200903081028.n28ASWtd022906@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3750 Ed Schouten changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | Summary|FreeBSD's ld-elf.so |FreeBSD's ld-elf.so crashes |miscompiles when array is |on startup: data not stored |marked as static |in .data.rel.ro. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 8 07:05:02 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 8 Mar 2009 07:05:02 -0500 Subject: [LLVMbugs] [Bug 3750] FreeBSD's ld-elf.so crashes on startup: data not stored in .data .rel.ro. In-Reply-To: Message-ID: <200903081205.n28C52mA026089@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3750 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID --- Comment #15 from Anton Korobeynikov 2009-03-08 07:04:56 --- (In reply to comment #14) > It seems GCC stores the array in .data.rel.ro, while LLVM puts it in .rodata. > It seems GCC does this because of -fpic. Putting stuff into .data.rel.ro is just an optimization hint for linker, we don't support it nowadays. Semantically it does not make any difference between .rodata and .data.rel.ro. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 8 09:30:56 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 8 Mar 2009 09:30:56 -0500 Subject: [LLVMbugs] [Bug 3756] New: __attribute__((always_inline)) and __builtin_constant_p Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3756 Summary: __attribute__((always_inline)) and __builtin_constant_p Product: tools Version: 2.5 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: llvm-gcc AssignedTo: unassignedbugs at nondot.org ReportedBy: madcoder at debian.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2683) --> (http://llvm.org/bugs/attachment.cgi?id=2683) the sample source llvm-gcc doesn't fold __builtin_constant_p inside __attribute__((always_inline)) functions. The example is simple, in our code we have: __attribute__((always_inline)) static inline void ifree(void *mem, mem_flags_t flags) { if (__builtin_constant_p(mem)) { if (mem == NULL) return; } if (__builtin_constant_p(flags)) { switch (flags & MEM_POOL_MASK) { case MEM_LIBC: free(mem); return; default: break; } } __ifree(mem, flags); } We have lots of calls that look like: ifree(some_pointer, MEM_LIBC), and gcc properly does constant folding. but llvm-gcc does not. Attached are a C file, the .S file generated by gcc and the .S file generated by llvm, where you can see that the former sees it should use a straight free() call, and the latter calls __ifree. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 8 10:36:44 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 8 Mar 2009 10:36:44 -0500 Subject: [LLVMbugs] [Bug 3748] ImplicitValueExpr appears inside MemberExpr. In-Reply-To: Message-ID: <200903081536.n28FaiuI000748@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3748 bolzoni changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from bolzoni 2009-03-08 10:36:43 --- If it is intended, fine. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 8 13:38:52 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 8 Mar 2009 13:38:52 -0500 Subject: [LLVMbugs] [Bug 3757] New: partial specialization doesn't preserve attributes on call Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3757 Summary: partial specialization doesn't preserve attributes on call Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Interprocedural Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: nicholas at mxc.ca CC: llvmbugs at cs.uiuc.edu The partial specialization pass doesn't preserve attributes on the call or invoke instruction. That means things like tail call, but also all the readnone/readonly noalias, sret, etc. This could cause a miscompilation for anyone using partial specialization. There's logic to copy attributes properly inside of DeadArgumentElimination.cpp RemoveDeadStuffFromFunction(F) but it looks non-trivial to refactor. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 8 13:48:08 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 8 Mar 2009 13:48:08 -0500 Subject: [LLVMbugs] [Bug 3758] New: SmallVector::grow/swap should be shared for POD T's Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3758 Summary: SmallVector::grow/swap should be shared for POD T's Product: libraries Version: 1.0 Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Core LLVM classes AssignedTo: unassignedbugs at nondot.org ReportedBy: clattner at apple.com CC: llvmbugs at cs.uiuc.edu Looking at the exported symbol map of a couple of tools, I see a ton of things like this: llvm::SmallVectorImpl::grow(unsigned long) llvm::SmallVectorImpl::grow(unsigned long) llvm::SmallVectorImpl::grow(unsigned long) llvm::SmallVectorImpl::grow(unsigned long) llvm::SmallVectorImpl::grow(unsigned long) llvm::SmallVectorImpl::grow(unsigned long) llvm::SmallVectorImpl::grow(unsigned long) llvm::SmallVectorImpl::grow(unsigned long) llvm::SmallVectorImpl::operator=(llvm::SmallVectorImpl const&) These are all POD types, and there is no reason for them to all get their own copy of these (somewhat large) methods. We only need to instantiate grow/swap etc when T requires copy ctors etc. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 8 14:41:08 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 8 Mar 2009 14:41:08 -0500 Subject: [LLVMbugs] [Bug 3753] clang should warn about comparison with string literal In-Reply-To: Message-ID: <200903081941.n28Jf8tH008537@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3753 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2009-03-08 14:41:08 --- Mainline gcc has a similar warning, so I chose wording similar to it (but with an explicit suggestion to use strcmp, something a newbie may not realize). Implemented here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090302/013626.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 8 15:02:52 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 8 Mar 2009 15:02:52 -0500 Subject: [LLVMbugs] [Bug 3759] New: Assertion `i < getNumOperands() && "getOperand() out of range!"' failed. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3759 Summary: Assertion `i < getNumOperands() && "getOperand() out of range!"' failed. Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: castet.matthieu at free.fr CC: llvmbugs at cs.uiuc.edu Hi, I am trying to build ffmpeg with clang/llvm using r66380. But I got "getOperand() out of range!" assertion on some files [1][2]. I don't know what you need to investigate the issue (I failed to create a small testcase and -debug produce very large data). To reproduce the problem : $ svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg $ cd ffmpeg $ ./configure --cc=ccc --enable-gpl --cpu=athlon-xp $ clang -S -disable-free --relocation-model=static --unwind-tables=0 --fmath-errno=0 -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -I. -I./ffmpeg -g -O3 -Wundef -std=c99 -o /tmp/tmpiqN2l-.s -x c ./libavcodec/motion_est.c ( using $ make should also show the problem) [1] $clang -S -disable-free --relocation-model=static --unwind-tables=0 --fmath-errno=0 -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -I. -I/home/mat/appli/ffmpeg -g -O3 -Wundef -std=c99 -o /tmp/tmpiqN2l-.s -x c /home/mat/appli/ffmpeg/libavcodec/motion_est.c clang: /mnt/data/tmp/llvm/llvm/include/llvm/CodeGen/MachineInstr.h:129: llvm::MachineOperand& llvm::MachineInstr::getOperand(unsigned int): Assertion `i < getNumOperands() && "getOperand() out of range!"' failed. 0 clang 0x08ddf9ee 1 clang 0x08ddff95 2 0xb7f8d400 __kernel_sigreturn + 0 3 libc.so.6 0xb7d07008 abort + 392 4 libc.so.6 0xb7cfe5ce __assert_fail + 238 5 clang 0x08492b22 6 clang 0x08b26f6b 7 clang 0x08b2be55 8 clang 0x08b2e18d 9 clang 0x08adc532 10 clang 0x0848bbf2 11 clang 0x08d6420c 12 clang 0x08d64cfa 13 clang 0x08d64e83 14 clang 0x0807ee8c 15 clang 0x0807ef8a 16 clang 0x082117ba 17 clang 0x080c64a6 18 clang 0x080c8799 main + 2016 19 libc.so.6 0xb7cf0775 __libc_start_main + 229 20 clang 0x080664f1 Stack dump: 0. Program arguments: clang -S -disable-free --relocation-model=static --unwind-tables=0 --fmath-errno=0 -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -I. -I/home/mat/appli/ffmpeg -g -O3 -Wundef -std=c99 -o /tmp/tmpiqN2l-.s -x c /home/mat/appli/ffmpeg/libavcodec/motion_est.c -regalloc=local 1. parser at end of file 2. Code generation 3. Running pass 'Linear Scan Register Allocator' on function '@sad_hpel_motion_search' Abandon [2] (gdb) r -S -disable-free --relocation-model=static --unwind-tables=0 --fmath-errno=0 -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -I. -I/home/mat/appli/ffmpeg -g -O3 -Wundef -std=c99 -o /tmp/tmpiqN2l-.s -x c /home/mat/appli/ffmpeg/libavcodec/motion_est.c Starting program: /mnt/data/tmp/llvm/llvm/Debug/bin/clang -S -disable-free --relocation-model=static --unwind-tables=0 --fmath-errno=0 -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -I. -I/home/mat/appli/ffmpeg -g -O3 -Wundef -std=c99 -o /tmp/tmpiqN2l-.s -x c /home/mat/appli/ffmpeg/libavcodec/motion_est.c [Thread debugging using libthread_db enabled] clang: /mnt/data/tmp/llvm/llvm/include/llvm/CodeGen/MachineInstr.h:129: llvm::MachineOperand& llvm::MachineInstr::getOperand(unsigned int): Assertion `i < getNumOperands() && "getOperand() out of range!"' failed. [New Thread 0xb7cf86d0 (LWP 17051)] Program received signal SIGABRT, Aborted. [Switching to Thread 0xb7cf86d0 (LWP 17051)] 0xb7fad424 in __kernel_vsyscall () (gdb) bt #0 0xb7fad424 in __kernel_vsyscall () #1 0xb7d25640 in raise () from /lib/i686/cmov/libc.so.6 #2 0xb7d27008 in abort () from /lib/i686/cmov/libc.so.6 #3 0xb7d1e5ce in __assert_fail () from /lib/i686/cmov/libc.so.6 #4 0x08492b22 in llvm::MachineInstr::getOperand (this=0x9ede350, i=21) at /mnt/data/tmp/llvm/llvm/include/llvm/CodeGen/MachineInstr.h:129 #5 0x08b26f6b in hasLaterNon2AddrUse (MI=@0x9ede350, i=21, VirtReg=1720) at VirtRegMap.cpp:1328 #6 0x08b2be55 in RewriteMBB (this=0x9cce658, MBB=@0xaf0946c, VRM=@0xad47b90, Spills=@0xbfbc82d8, RegKills=@0xbfbc836c, KillOps=@0xbfbc8360) at VirtRegMap.cpp:1658 #7 0x08b2e18d in runOnMachineFunction (this=0x9cce658, MF=@0xb795818, VRM=@0xad47b90) at VirtRegMap.cpp:605 #8 0x08adc532 in runOnMachineFunction (this=0xa0bd390, fn=@0xb795818) at RegAllocLinearScan.cpp:315 #9 0x0848bbf2 in llvm::MachineFunctionPass::runOnFunction (this=0xa0bd390, F=@0x9c570d8) at /mnt/data/tmp/llvm/llvm/include/llvm/CodeGen/MachineFunctionPass.h:42 #10 0x08d6420c in llvm::FPPassManager::runOnFunction (this=0xa0ab860, F=@0x9c570d8) at PassManager.cpp:1327 #11 0x08d64cfa in llvm::FunctionPassManagerImpl::run (this=0xa0ab060, F=@0x9c570d8) at PassManager.cpp:1284 #12 0x08d64e83 in llvm::FunctionPassManager::run (this=0xa07d3b0, F=@0x9c570d8) ---Type to continue, or q to quit--- at PassManager.cpp:1236 #13 0x0807ee8c in EmitAssembly (this=0x9a80f10) at Backend.cpp:420 #14 0x0807ef8a in HandleTranslationUnit (this=0x9a80f10, TU=@0x9a82700) at Backend.cpp:151 #15 0x082117ba in clang::ParseAST (PP=@0x9a80ac8, Consumer=0x9a80f10, TU=0x9a82700, PrintStats=false) at ParseAST.cpp:75 #16 0x080c64a6 in ProcessInputFile (PP=@0x9a80ac8, PPF=@0xbfbc8f7c, InFile=@0x9a84b98, PA=EmitAssembly) at clang.cpp:1387 #17 0x080c8799 in main (argc=22, argv=0xbfbc90d4) at clang.cpp:1586 (gdb) p this No symbol "this" in current context. (gdb) up 3 #3 0xb7d1e5ce in __assert_fail () from /lib/i686/cmov/libc.so.6 (gdb) up #4 0x08492b22 in llvm::MachineInstr::getOperand (this=0x9ede350, i=21) at /mnt/data/tmp/llvm/llvm/include/llvm/CodeGen/MachineInstr.h:129 129 assert(i < getNumOperands() && "getOperand() out of range!"); (gdb) p this $1 = (class llvm::MachineInstr * const) 0x9ede350 (gdb) p *this $2 = {> = {Prev = 0xae8a5f8, Next = 0x9ede400}, TID = 0x9130e84, NumImplicitOps = 0, Operands = { >> = { _M_impl = {> = {<__gnu_cxx::new_allocator> = {}, }, _M_start = 0xbf16a70, _M_finish = 0xbf16c14, _M_end_of_storage = 0xbf16cf0}}, }, MemOperands = { >> = { _M_impl = { >> = {<__gnu_cxx::new_allocator >> = {}, }, _M_node = {_M_next = 0x9ede36c, _M_prev = 0x9ede36c}}}, }, Parent = 0xaf0946c, debugLoc = {Idx = 4294967295}} -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 8 23:45:30 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 8 Mar 2009 23:45:30 -0500 Subject: [LLVMbugs] [Bug 3743] -mmacosx-version-min inappropriate for Mac OS X 10.4.11 In-Reply-To: Message-ID: <200903090445.n294jUPN005969@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3743 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2009-03-08 23:45:26 --- Fixed: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090302/074858.html Please verify. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 8 23:47:47 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 8 Mar 2009 23:47:47 -0500 Subject: [LLVMbugs] [Bug 3746] Crash in isel with GEP of function pointer In-Reply-To: Message-ID: <200903090447.n294ll8M006072@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3746 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2009-03-08 23:47:46 --- Fixed: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090302/074859.html Opaque is specifically allowed because it is theoretically possible for the opaque types to be resolved with llvm-link, and this is a pseudo-feature for languages that want to lazily define their object model this way. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 8 23:49:27 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 8 Mar 2009 23:49:27 -0500 Subject: [LLVMbugs] [Bug 3760] New: simple loop pessimized by -std-compile-opts Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3760 Summary: simple loop pessimized by -std-compile-opts Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Loop Optimizer AssignedTo: unassignedbugs at nondot.org ReportedBy: nicholas at mxc.ca CC: gohman at apple.com, llvmbugs at cs.uiuc.edu This simple program: define void @test(i32 %x, i32** %y) { entry: br label %loop loop: ; preds = %loop, %entry %tmp = phi i32 [ 0, %entry ], [ %tmp1, %loop ] ; [#uses=1] %tmp1 = add i32 %tmp, 1 ; [#uses=2] %my = malloc i32 ; [#uses=1] %z = getelementptr i32** %y, i32 %tmp store i32* %my, i32** %z %done = icmp eq i32 %tmp1, %x ; [#uses=1] br i1 %done, label %out, label %loop out: ; preds = %loop ret void } is rewritten to use i64 induction variable and then zext/sext/trunc is added all over to fix it up. On x86 the resulting .s is much worse. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 8 23:51:02 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 8 Mar 2009 23:51:02 -0500 Subject: [LLVMbugs] [Bug 3760] simple loop pessimized by -std-compile-opts In-Reply-To: Message-ID: <200903090451.n294p2k8006363@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3760 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Chris Lattner 2009-03-08 23:51:01 --- Try adding a x86-32 target triple. Without it, the optimizer defaults to optimizing for sparc 64. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 8 23:51:28 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 8 Mar 2009 23:51:28 -0500 Subject: [LLVMbugs] [Bug 3747] Crash in llvm-as with void field in struct In-Reply-To: Message-ID: <200903090451.n294pSDW006393@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3747 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2009-03-08 23:51:27 --- This (and several other problems with void) is fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090302/074860.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 9 00:46:01 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 9 Mar 2009 00:46:01 -0500 Subject: [LLVMbugs] [Bug 3744] Crash on index into zero element struct In-Reply-To: Message-ID: <200903090546.n295k1PO009475@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3744 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Summary|Field Idx out of range! |Crash on index into zero | |element struct --- Comment #2 from Chris Lattner 2009-03-09 00:46:01 --- Fixed, patch here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090309/074868.html testcase here: test/FrontendC/2009-03-08-ZeroEltStructCrash.c -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 9 00:52:36 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 9 Mar 2009 00:52:36 -0500 Subject: [LLVMbugs] [Bug 3749] linker adds spurious use to appending globals In-Reply-To: Message-ID: <200903090552.n295qasX009756@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3749 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Chris Lattner 2009-03-09 00:52:36 --- Ah, this should fix it. Please verify. http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090309/074870.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 9 01:18:44 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 9 Mar 2009 01:18:44 -0500 Subject: [LLVMbugs] [Bug 3676] ADT/hash_map raises warning on g++ 4.3 In-Reply-To: Message-ID: <200903090618.n296IiGj010760@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3676 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Nick Lewycky 2009-03-09 01:18:44 --- Fixed by commits: 66398 66400 66406 66407 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 9 03:53:56 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 9 Mar 2009 03:53:56 -0500 Subject: [LLVMbugs] [Bug 3761] New: inefficient codegen of x86 brcond/ select emits unnecessary comparison instructions Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3761 Summary: inefficient codegen of x86 brcond/select emits unnecessary comparison instructions Product: libraries Version: 2.5 Platform: PC URL: http://pastie.org/private/fofieg4h6gegqqkvxzynnq OS/Version: All Status: NEW Keywords: code-quality, quality-of-implementation Severity: enhancement Priority: P2 Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: just.s0m3.guy+llvmbugzilla at gmail.com CC: llvmbugs at cs.uiuc.edu The custom lowering code for BRCOND and SELECT in the X86 target backend (X86ISelLowering.cpp) seems to always insert a comparison instruction. This is not always necessary. If the conditional branch directly follows the arithmetic operation, which sets the EFLAGS (such as ADD, SUB,...), which are applicable to the specific condition which must be checked, there is no reason to emit an additional comparison. In the worst case, the additional comparison causes register moves and copy-to-registers to be emitted, further bloating the output code. For example, take the following c function: //branchtest.c: int main(){ int x = 1; int y = 10; x = x + y; if(x>0) return 1; else return 2; } Using llvm-gcc4.2-2.5 (release), the following llvm code is generated: //branchtest.bc (gcc -c --emit-llvm branching.c -o branching.bc; llvm-dis < branching.bc) ; ModuleID = '' target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" target triple = "x86_64-unknown-linux-gnu" define i32 @main() nounwind { entry: %retval = alloca i32 ; [#uses=2] %y = alloca i32 ; [#uses=2] %x = alloca i32 ; [#uses=4] %0 = alloca i32 ; [#uses=3] %"alloca point" = bitcast i32 0 to i32 ; [#uses=0] store i32 1, i32* %x, align 4 store i32 10, i32* %y, align 4 %1 = load i32* %x, align 4 ; [#uses=1] %2 = load i32* %y, align 4 ; [#uses=1] %3 = add i32 %1, %2 ; [#uses=1] store i32 %3, i32* %x, align 4 %4 = load i32* %x, align 4 ; [#uses=1] %5 = icmp sgt i32 %4, 0 ; [#uses=1] br i1 %5, label %bb, label %bb1 bb: ; preds = %entry store i32 1, i32* %0, align 4 br label %bb2 bb1: ; preds = %entry store i32 2, i32* %0, align 4 br label %bb2 bb2: ; preds = %bb1, %bb %6 = load i32* %0, align 4 ; [#uses=1] store i32 %6, i32* %retval, align 4 br label %return return: ; preds = %bb2 %retval3 = load i32* %retval ; [#uses=1] ret i32 %retval3 } The problem occurs when trying to compile this to native x86, using llc: /branching.s (llc -march=x86 -f branching.bc): .file "branching/branching.bc" .text .align 16 .globl main .type main, at function main: subl $16, %esp movl $1, 4(%esp) movl $10, 8(%esp) movl 4(%esp), %eax addl $10, %eax movl %eax, 4(%esp) testl %eax, %eax <==== this test is unnecessary. the preceding addl sets the flags correctly jg .LBB1_4 # bb .LBB1_1: # bb1 movl $2, (%esp) .LBB1_2: # bb2 movl (%esp), %eax movl %eax, 12(%esp) .LBB1_3: # return movl 12(%esp), %eax addl $16, %esp ret .LBB1_4: # bb movl $1, (%esp) jmp .LBB1_2 # bb2 .size main, .-main .section .note.GNU-stack,"", at progbits Furthermore, it is unclear how exactly the desired functionality should be implemented, as there don't appear to be an working examples. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 9 04:29:49 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 9 Mar 2009 04:29:49 -0500 Subject: [LLVMbugs] [Bug 3762] New: Constant folding methods need the iterator treatment Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3762 Summary: Constant folding methods need the iterator treatment Product: new-bugs Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2686) --> (http://llvm.org/bugs/attachment.cgi?id=2686) testcase .ll When built with expensive checks, opt -globalopt paq8p.bc -disable-output barfs due to taking the address of the first element of an empty vector. It happens here: 2216 if (Constant *C = ConstantFoldCall(Callee, &Formals[0], 2217 Formals.size())) { This kind of problem was fixed elsewhere by introducing methods that take iterators. It looks like the constant methods need the same treatment. The above code would then become if (Constant *C = ConstantFoldCall(Callee, Formals.begin(), Formals.end()) { -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 9 06:28:37 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 9 Mar 2009 06:28:37 -0500 Subject: [LLVMbugs] [Bug 3763] New: Assertion failed: (getMinSignedBits() <= 64 && " Too many bits for int64_t"), function getSExtValue Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3763 Summary: Assertion failed: (getMinSignedBits() <= 64 && "Too many bits for int64_t"), function getSExtValue Product: libraries Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P2 Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: ed at 80386.nl CC: llvmbugs at cs.uiuc.edu Blocks: 3696 Created an attachment (id=2687) --> (http://llvm.org/bugs/attachment.cgi?id=2687) Testcase When compiling the attached code with -O2, you get the following error: Assertion failed: (getMinSignedBits() <= 64 && "Too many bits for int64_t"), function getSExtValue, file llvm/include/llvm/ADT/APInt.h, line 1051. Stack dump: 0. Program arguments: clang -S -disable-free --relocation-model=static --disable-fp-elim --unwind-tables=0 --fmath-errno=1 -O2 -o - -x c test.c 1. parser at end of file 2. Code generation 3. Running pass 'X86 DAG->DAG Instruction Selection' on function '@evUTCTime' -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 9 07:45:13 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 9 Mar 2009 07:45:13 -0500 Subject: [LLVMbugs] [Bug 3764] New: A redefinition of a pre-processor macro fails Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3764 Summary: A redefinition of a pre-processor macro fails Product: new-bugs Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: rich at pennware.com CC: llvmbugs at cs.uiuc.edu The clang pre-processor complains about the attached file. According to the standard, the two definitions are identical. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 9 11:14:29 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 9 Mar 2009 11:14:29 -0500 Subject: [LLVMbugs] [Bug 3765] New: SourceLocation of ? and : in clang::ConditionalOperator Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3765 Summary: SourceLocation of ? and : in clang::ConditionalOperator Product: clang Version: unspecified Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: AST AssignedTo: unassignedclangbugs at nondot.org ReportedBy: bolzoni at cs.unipr.it CC: llvmbugs at cs.uiuc.edu, bagnara at cs.unipr.it The clang::ConditionalOperator class does not seem to provide a way to get the location of the operator's tokens themselves. Would it possible add the member functions that return the location of `?' and `:'? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 9 14:01:03 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 9 Mar 2009 14:01:03 -0500 Subject: [LLVMbugs] [Bug 3706] regalloc issue causes crash in fp stackifier In-Reply-To: Message-ID: <200903091901.n29J13PK015849@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3706 Evan Cheng changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Evan Cheng 2009-03-09 14:01:02 --- Fixed. http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090309/074886.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 9 15:22:53 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 9 Mar 2009 15:22:53 -0500 Subject: [LLVMbugs] [Bug 3763] Assertion failed: (getMinSignedBits() <= 64 && " Too many bits for int64_t"), function getSExtValue In-Reply-To: Message-ID: <200903092022.n29KMrK8018838@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3763 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2009-03-09 15:22:53 --- Fixed: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090309/074891.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 9 15:33:55 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 9 Mar 2009 15:33:55 -0500 Subject: [LLVMbugs] [Bug 3764] A redefinition of a pre-processor macro fails In-Reply-To: Message-ID: <200903092033.n29KXtEN019319@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3764 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2009-03-09 15:33:55 --- Fixed, thanks! http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090309/013657.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 9 16:19:33 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 9 Mar 2009 16:19:33 -0500 Subject: [LLVMbugs] [Bug 3767] New: static initializer-based registration mechanism not portable Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3767 Summary: static initializer-based registration mechanism not portable Product: new-bugs Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu Throughout the code, LLVM uses statically initialized variables with the expectation that they will run before main. One example is registering the possible backends, and the other is registering command line flags. Quoth the Standard: It is implementation-defined whether or not the dynamic initialization (8.5, 9.4, 12.1, 12.6.1) of an object of namespace scope is done before the first statement of main. If the initialization is deferred to some point in time after the first statement of main, it shall occur before the first use of any function or object defined in the same translation unit as the object to be initialized. This mean that a static initializer need not execute until another function in the TU is called. This comes up in MSVC++ and Windows. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 9 16:34:31 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 9 Mar 2009 16:34:31 -0500 Subject: [LLVMbugs] [Bug 3724] JIT Memory Manager causes false error with any RWX memory region fragmentation In-Reply-To: Message-ID: <200903092134.n29LYVoh021946@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3724 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Chris Lattner 2009-03-09 16:34:31 --- Applied, thanks! http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090309/074923.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 9 16:44:25 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 9 Mar 2009 16:44:25 -0500 Subject: [LLVMbugs] [Bug 3768] New: Clang does -D__STDC_HOSTED__=1, even if -ffreestanding is passed. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3768 Summary: Clang does -D__STDC_HOSTED__=1, even if -ffreestanding is passed. Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: preprocessor AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ed at 80386.nl CC: llvmbugs at cs.uiuc.edu Blocks: 3696 Unlike GCC, Clang always defines -D__STDC_HOSTED__=1, even if -ffreestanding is passed to the compiler. GCC defines -D__STDC_HOSTED__=0 in this case, which seems to be the way it has to be done. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 9 16:50:50 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 9 Mar 2009 16:50:50 -0500 Subject: [LLVMbugs] [Bug 3768] Clang does -D__STDC_HOSTED__=1, even if -ffreestanding is passed . In-Reply-To: Message-ID: <200903092150.n29LooND022596@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3768 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2009-03-09 16:50:50 --- Fixed, thanks! http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090309/013670.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 9 17:53:09 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 9 Mar 2009 17:53:09 -0500 Subject: [LLVMbugs] [Bug 3769] New: Crash with dot syntax on class methods Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3769 Summary: Crash with dot syntax on class methods Product: clang Version: unspecified Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P2 Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: catfish.man at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2693) --> (http://llvm.org/bugs/attachment.cgi?id=2693) Test file r66472 crashes on the attached preprocessed file. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 9 18:27:37 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 9 Mar 2009 18:27:37 -0500 Subject: [LLVMbugs] [Bug 3759] regalloc crash (inline asm related?) In-Reply-To: Message-ID: <200903092327.n29NRbRj026526@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3759 Evan Cheng changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Evan Cheng 2009-03-09 18:27:37 --- This is fixed by r66428. Please verify. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 9 19:01:34 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 9 Mar 2009 19:01:34 -0500 Subject: [LLVMbugs] [Bug 3769] Crash with dot syntax on class methods In-Reply-To: Message-ID: <200903100001.n2A01Y4J027799@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3769 snaroff at apple.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #3 from snaroff at apple.com 2009-03-09 19:01:33 --- This doesn't crash for me. What platform? switches? Need more info to debug... [steve-naroffs-imac-2:~/llvm/tools/clang] snaroff% cat crash.m @interface Test {} + (Test *)crash; @end @implementation Test - (void)cachesPath { static Test *cachesPath; if (!cachesPath) { Test *crash = Test.crash; } } @end [steve-naroffs-imac-2:~/llvm/tools/clang] snaroff% ../../Debug/bin/clang crash.m crash.m:5:1: warning: incomplete implementation @implementation Test ^ crash.m:5:1: warning: method definition for 'crash' not found 2 diagnostics generated. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 9 21:44:23 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 9 Mar 2009 21:44:23 -0500 Subject: [LLVMbugs] [Bug 3743] -mmacosx-version-min inappropriate for Mac OS X 10.4.11 In-Reply-To: Message-ID: <200903100244.n2A2iNWh000383@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3743 Scott Michel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #2 from Scott Michel 2009-03-09 21:44:23 --- That gets the build a little farther. Now "-exported_symbol" is the next thing build breaker. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 10 00:14:25 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 10 Mar 2009 00:14:25 -0500 Subject: [LLVMbugs] [Bug 3771] New: [PATCH] EXEEXT missing in tool install, causes llvm-gcc configure error in cygwin Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3771 Summary: [PATCH] EXEEXT missing in tool install, causes llvm-gcc configure error in cygwin Product: Build scripts Version: 2.5 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Makefiles AssignedTo: unassignedbugs at nondot.org ReportedBy: baffo32 at gmail.com CC: llvmbugs at cs.uiuc.edu, baffo32 at gmail.com Patch for llvm/Makefile.rules Although the binaries compiled by the llvm makefiles are given .exe extensions on Windows, the extension is stripped when they are installed. The gcc front-end package then refuses to configure against this installed llvm path because the gcc configure script uses $(EXEEXT) when checking for llc. Adding $(EXEEXT) to installed tool paths (as it already is for built tool paths) in the llvm suite resolves this. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 10 01:43:35 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 10 Mar 2009 01:43:35 -0500 Subject: [LLVMbugs] [Bug 3682] clang inline asm crash with + operand constraint In-Reply-To: Message-ID: <200903100643.n2A6hZxO008223@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3682 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2009-03-10 01:43:35 --- Fixed with many patches, culminating in: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090309/013710.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 10 08:34:58 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 10 Mar 2009 08:34:58 -0500 Subject: [LLVMbugs] [Bug 3773] New: Wrong encoding of a call instruction when JITing on x86 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3773 Summary: Wrong encoding of a call instruction when JITing on x86 Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: nicolas.geoffray at lip6.fr CC: llvmbugs at cs.uiuc.edu The following (useless and bugous) .ll program: define void @main() { start: call void inttoptr (i64 0 to void ()*)() ret void } Generates a wrong code when jitting on linux/x86 (and probably darwin/x86). With llvm-svn, the result is: JIT: Finished CodeGen of [0xb6d4f010] Function: main: 12 bytes of text, 0 relocations JIT: Disassembled code: b6d4f010: sub $0x4, %esp b6d4f013: inc (%eax) b6d4f015: add %al, (%eax) b6d4f017: invalid JIT: Binary code: JIT: 00000000: ff04ec83 00000000 c304c483 With llvm-2.5, the result was: JIT: Finished CodeGen of [0xb6d42010] Function: main: 11 bytes of text, 0 relocations JIT: Disassembled code: b6d42010: sub $0x4, %esp b6d42013: xor %eax, %eax b6d42015: call %eax b6d42017: add $0x4, %esp b6d4201a: ret JIT: Binary code: JIT: 00000000: 3104ec83 83d0ffc0 c304c4 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 10 09:11:01 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 10 Mar 2009 09:11:01 -0500 Subject: [LLVMbugs] [Bug 3774] New: clang: ANALYZER_STORE_MODEL=region cast failures Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3774 Summary: clang: ANALYZER_STORE_MODEL=region cast failures Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: edwintorok at gmail.com CC: llvmbugs at cs.uiuc.edu I tested ANALYZER_STORE_MODEL=region, and I got some failures (with the default store model I get no failures). I know this feature is not yet ready, if you'd rather not receive bugreports about it yet, please tell me. $ grep clang: /tmp/scan-build-2009-03-10-3/failures/*.stderr.txt|cut -f2- -d:|sort -u clang: APInt.cpp:441: llvm::APInt llvm::APInt::operator+(const llvm::APInt&) const: Assertion `BitWidth == RHS.BitWidth && "Bit widths must be the same"' failed. clang: GRExprEngine.cpp:2835: clang::SVal clang::GRExprEngine::EvalBinOp(clang::BinaryOperator::Opcode, clang::SVal, clang::SVal): Assertion `Op == BinaryOperator::Add || Op == BinaryOperator::Sub' failed. clang: /home/edwin/llvm-svn/llvm/include/llvm/ADT/APSInt.h:226: llvm::APSInt llvm::APSInt::operator+(const llvm::APSInt&) const: Assertion `IsUnsigned == RHS.IsUnsigned && "Signedness mismatch!"' failed. clang: /home/edwin/llvm-svn/llvm/include/llvm/Support/Casting.h:199: typename llvm::cast_retty::ret_type llvm::cast(const Y&) [with X = clang::ElementRegion, Y = const clang::MemRegion*]: Assertion `isa(Val) && "cast() argument of incompatible type!"' failed. clang: /home/edwin/llvm-svn/llvm/include/llvm/Support/Casting.h:199: typename llvm::cast_retty::ret_type llvm::cast(const Y&) [with X = clang::nonloc::CompoundVal, Y = clang::SVal]: Assertion `isa(Val) && "cast() argument of incompatible type!"' failed. clang: RegionStore.cpp:562: virtual clang::SVal::RegionStoreManager::getSizeInElements(const clang::GRState*, const clang::MemRegion*): Assertion `0 && "Other regions are not supported yet."' failed. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 10 09:50:46 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 10 Mar 2009 09:50:46 -0500 Subject: [LLVMbugs] [Bug 3775] New: GVN Asserts on Attached Code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3775 Summary: GVN Asserts on Attached Code Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Scalar Optimizations AssignedTo: criswell at uiuc.edu ReportedBy: criswell at uiuc.edu CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2696) --> (http://llvm.org/bugs/attachment.cgi?id=2696) Reduced test case from 254.gap. The GVN pass attempts to set the name of a CallInst that has type void. It hits the following assertion: /home/vadve/criswell/src/llvm22/lib/VMCore/Value.cpp:175: void llvm::Value::setName(const char*, unsigned int): Assertion `getType() != Type::VoidTy && "Cannot assign a name to void values!"' failed. 0 bugpoint 0x087de3eb 1 bugpoint 0x087de94f 2 libc.so.6 0x0093b918 3 libc.so.6 0x0093d289 abort + 233 4 libc.so.6 0x00934da1 __assert_fail + 257 5 bugpoint 0x08781478 llvm::Value::setName(char const*, unsigned int) + 164 6 bugpoint 0x08781870 llvm::Value::setName(std::string const&) + 70 7 bugpoint 0x084baa7e 8 bugpoint 0x084bf9bb 9 bugpoint 0x0875e26a llvm::FPPassManager::runOnFunction(llvm::Function&) + 296 10 bugpoint 0x0875e42a llvm::FPPassManager::runOnModule(llvm::Module&) + 122 11 bugpoint 0x0875cbdb llvm::MPPassManager::runOnModule(llvm::Module&) + 243 12 bugpoint 0x0875e726 llvm::PassManagerImpl::run(llvm::Module&) + 124 13 bugpoint 0x0875e78b llvm::PassManager::run(llvm::Module&) + 39 14 bugpoint 0x083e6e0a llvm::BugDriver::runPassesAsChild(std::vector > const&) + 616 15 bugpoint 0x083b6bc6 llvm::BugDriver::run() + 52 16 bugpoint 0x083f159e main + 384 17 libc.so.6 0x00928df3 __libc_start_main + 211 18 bugpoint 0x083b6441 __gxx_personality_v0 + 325 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 10 10:05:29 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 10 Mar 2009 10:05:29 -0500 Subject: [LLVMbugs] [Bug 3775] GVN Asserts on Attached Code In-Reply-To: Message-ID: <200903101505.n2AF5TMe003727@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3775 John T. Criswell changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from John T. Criswell 2009-03-10 10:05:29 --- Fixed in Revision 66542. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 10 11:29:08 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 10 Mar 2009 11:29:08 -0500 Subject: [LLVMbugs] [Bug 3769] Crash with dot syntax on class methods In-Reply-To: Message-ID: <200903101629.n2AGT8EG006928@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3769 snaroff at apple.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #8 from snaroff at apple.com 2009-03-10 11:29:07 --- valgrind says everything is o.k. I *am* able to reproduce this when I run with "-S". Will investigate. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 10 11:31:42 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 10 Mar 2009 11:31:42 -0500 Subject: [LLVMbugs] [Bug 3478] raw_ostream should not buffer stderr In-Reply-To: Message-ID: <200903101631.n2AGVgm4007023@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3478 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Daniel Dunbar 2009-03-10 11:31:42 --- Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090309/074966.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 10 12:16:44 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 10 Mar 2009 12:16:44 -0500 Subject: [LLVMbugs] [Bug 3743] -mmacosx-version-min inappropriate for Mac OS X 10.4.11 In-Reply-To: Message-ID: <200903101716.n2AHGiRB008722@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3743 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2009-03-10 12:16:43 --- This should fix it: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090309/074969.html If there are other problems, please open distinct bugzillas for each issue, thanks. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 10 12:34:37 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 10 Mar 2009 12:34:37 -0500 Subject: [LLVMbugs] [Bug 3776] New: want ability to control DejaGNU testing from command line Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3776 Summary: want ability to control DejaGNU testing from command line Product: new-bugs Version: unspecified Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: enhancement Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: stuart at apple.com CC: llvmbugs at cs.uiuc.edu When hack^H^H^H^Hcrafting tests for GCC, it was very useful to have DejaGNU run only my new test, without the rest of the testsuite (large and slow). While the LLVM DejaGNU testsuite is currently smaller than GCCs, it's now big enough to be a burden when writing new tests. And we should make it easy to write and debug new tests. :-) In the GCC tree, one could say % make check RUNTESTFLAGS="something.exp=my-new-test-2.c" and DejaGNU would run only the test named "my-new-test-2.c". I don't know why the LLVM analogue doesn't work for me. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 10 12:56:26 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 10 Mar 2009 12:56:26 -0500 Subject: [LLVMbugs] [Bug 3776] want ability to control DejaGNU testing from command line In-Reply-To: Message-ID: <200903101756.n2AHuQXL010036@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3776 Stuart Hastings changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Stuart Hastings 2009-03-10 12:56:25 --- (In reply to comment #1) > cd llvm/test; > make TESTSUITE=subdir Yes! > make TESTONE=path Yes, if I also say "check-one"! > do these work for you? While it would be great to support globbing so I can run a set of related tests, this is plenty good enough for now. Thank you for pointing out what I missed (I see these are documented!) Closing. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 10 13:07:33 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 10 Mar 2009 13:07:33 -0500 Subject: [LLVMbugs] [Bug 3769] Crash with dot syntax on class methods In-Reply-To: Message-ID: <200903101807.n2AI7XEB010600@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3769 Fariborz Jahanian changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #10 from Fariborz Jahanian 2009-03-10 13:07:32 --- (In reply to comment #9) > > (gdb) run crash.m -S > Starting program: /Users/snaroff/llvm/Debug/bin/clang crash.m -S > > Program received signal EXC_BAD_ACCESS, Could not access memory. > Reason: KERN_PROTECTION_FAILURE at address: 0x00000004 > 0x0013d161 in clang::Stmt::getStmtClass (this=0x0) at Stmt.h:152 > warning: Source file is more recent than executable. > 152 StmtClass getStmtClass() const { return sClass; } > (gdb) where > #0 0x0013d161 in clang::Stmt::getStmtClass (this=0x0) at Stmt.h:152 > #1 0x00166311 in clang::Expr::classof (T=0x0) at Expr.h:268 > #2 0x00242f5d in llvm::isa_impl (Val=@0x0) at > Casting.h:54 > #3 0x00167ed5 in llvm::isa_impl_wrap clang::Stmt const>::doit (Val=@0x0) at Casting.h:71 > #4 0x00242f75 in llvm::isa_impl_cl::isa (Val=@0x0) > at Casting.h:83 > #5 0x00167eed in llvm::isa_impl_cl::isa (Val=0x0) > at Casting.h:101 > #6 0x00242f8f in llvm::isa (Val=@0x2308cec) at > Casting.h:116 > #7 0x00242fac in llvm::cast (Val=@0x2308cec) at > Casting.h:199 > #8 0x00266626 in clang::ObjCKVCRefExpr::getBase (this=0x2308cd0) at > ExprObjC.h:284 > #9 0x00096066 in clang::CodeGen::CodeGenFunction::EmitObjCPropertyGet > (this=0xbfffea50, Exp=0x2308cd0) at CGObjC.cpp:333 > #10 0x0007810d in clang::CodeGen::CodeGenFunction::EmitLoadOfKVCRefLValue > (this=0xbfffea50, LV={LVType = clang::CodeGen::LValue::KVCRef, V = 0x20, > {VectorIdx = 0x2308cd0, VectorElts = 0x2308cd0, BitfieldData = {StartBit = > 36048, Size = 560, IsSigned = 142}, PropertyRefExpr = 0x2308cd0, KVCRefExpr = > 0x2308cd0}, Volatile = false, Restrict = false, Ivar = false, NonGC = false, > ObjCType = 0}, ExprType={Value = {Value = 36734832}}) at CGExpr.cpp:337 > #11 0x0007b3af in clang::CodeGen::CodeGenFunction::EmitLoadOfLValue > (this=0xbfffea50, LV={LVType = clang::CodeGen::LValue::KVCRef, V = 0x20, > {VectorIdx = 0x2308cd0, VectorElts = 0x2308cd0, BitfieldData = {StartBit = > 36048, Size = 560, IsSigned = 142}, PropertyRefExpr = 0x2308cd0, KVCRefExpr = > 0x2308cd0}, Volatile = false, Restrict = false, Ivar = false, NonGC = false, > ObjCType = 0}, ExprType={Value = {Value = 36734832}}) at CGExpr.cpp:263 > #12 0x00090bb0 in (anonymous namespace)::ScalarExprEmitter::EmitLoadOfLValue > (this=0xbfffe398, LV={LVType = clang::CodeGen::LValue::KVCRef, V = 0x20, > {VectorIdx = 0x2308cd0, VectorElts = 0x2308cd0, BitfieldData = {StartBit = > 36048, Size = 560, IsSigned = 142}, PropertyRefExpr = 0x2308cd0, KVCRefExpr = > 0x2308cd0}, Volatile = false, Restrict = false, Ivar = false, NonGC = false, > ObjCType = 0}, T={Value = {Value = 36734832}}) at CGExprScalar.cpp:65 > #13 0x00090c53 in (anonymous namespace)::ScalarExprEmitter::EmitLoadOfLValue > (this=0xbfffe398, E=0x2308cd0) at CGExprScalar.cpp:73 > #14 0x00090eec in (anonymous namespace)::ScalarExprEmitter::VisitObjCKVCRefExpr > (this=0xbfffe398, E=0x2308cd0) at CGExprScalar.cpp:154 > #15 0x000948d1 in clang::StmtVisitor<(anonymous namespace)::ScalarExprEmitter, > llvm::Value*>::Visit (this=0xbfffe398, S=0x2308cd0) at StmtNodes.def:130 > #16 0x0008eee7 in clang::CodeGen::CodeGenFunction::EmitScalarExpr > (this=0xbfffea50, E=0x2308cd0) at CGExprScalar.cpp:1339 > #17 0x00076cbd in clang::CodeGen::CodeGenFunction::EmitLocalBlockVarDecl > (this=0xbfffea50, D=@0x2308c80) at CGDecl.cpp:321 > #18 0x000775ca in clang::CodeGen::CodeGenFunction::EmitBlockVarDecl > (this=0xbfffea50, D=@0x2308c80) at CGDecl.cpp:74 > #19 0x00077716 in clang::CodeGen::CodeGenFunction::EmitDecl (this=0xbfffea50, > D=@0x2308c80) at CGDecl.cpp:47 > #20 0x000bcfb8 in clang::CodeGen::CodeGenFunction::EmitDeclStmt > (this=0xbfffea50, S=@0x2308d00) at CGStmt.cpp:500 > #21 0x000bf149 in clang::CodeGen::CodeGenFunction::EmitStmt (this=0xbfffea50, > S=0x2308d00) at CGStmt.cpp:80 > #22 0x000c051e in clang::CodeGen::CodeGenFunction::EmitCompoundStmt > (this=0xbfffea50, S=@0x2308d20, GetLast=false, AggLoc=0x0, isAggVol=false) at > CGStmt.cpp:144 > #23 0x000c0745 in clang::CodeGen::CodeGenFunction::EmitSimpleStmt > (this=0xbfffea50, S=0x2308d20) at CGStmt.cpp:110 > #24 0x000bef04 in clang::CodeGen::CodeGenFunction::EmitStmt (this=0xbfffea50, > S=0x2308d20) at CGStmt.cpp:43 > #25 0x000c0344 in clang::CodeGen::CodeGenFunction::EmitIfStmt (this=0xbfffea50, > S=@0x2308d50) at CGStmt.cpp:286 > #26 0x000bf0ae in clang::CodeGen::CodeGenFunction::EmitStmt (this=0xbfffea50, > S=0x2308d50) at CGStmt.cpp:74 > #27 0x000c051e in clang::CodeGen::CodeGenFunction::EmitCompoundStmt > (this=0xbfffea50, S=@0x2308d70, GetLast=false, AggLoc=0x0, isAggVol=false) at > CGStmt.cpp:144 > #28 0x000c0745 in clang::CodeGen::CodeGenFunction::EmitSimpleStmt > (this=0xbfffea50, S=0x2308d70) at CGStmt.cpp:110 > #29 0x000bef04 in clang::CodeGen::CodeGenFunction::EmitStmt (this=0xbfffea50, > S=0x2308d70) at CGStmt.cpp:43 > #30 0x0009767c in clang::CodeGen::CodeGenFunction::GenerateObjCMethod > (this=0xbfffea50, OMD=0x2308990) at CGObjC.cpp:134 > #31 0x000cc38d in clang::CodeGen::CodeGenModule::EmitTopLevelDecl > (this=0x280f000, D=0x2308990) at CodeGenModule.cpp:1269 > #32 0x000daea7 in (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl > (this=0x2304710, D=0x2308990) at ModuleBuilder.cpp:72 > #33 0x00014438 in (anonymous namespace)::BackendConsumer::HandleTopLevelDecl > (this=0x23045b0, D=0x2308990) at Backend.cpp:132 > #34 0x00178b2a in clang::ParseAST (PP=@0x2304300, Consumer=0x23045b0, > TU=0x23053b0, PrintStats=false) at ParseAST.cpp:71 > #35 0x0004ff85 in ProcessInputFile (PP=@0x2304300, PPF=@0xbffff7ec, > InFile=@0x2302610, PA=EmitAssembly) at clang.cpp:1387 > #36 0x0005085c in main (argc=3, argv=0xbffff8cc) at clang.cpp:1586 > (gdb) > ir gen fixed in tot at: http://llvm.org/viewvc/llvm-project?view=rev&revision=66556 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 10 14:03:44 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 10 Mar 2009 14:03:44 -0500 Subject: [LLVMbugs] [Bug 3727] [PATCH] llvm-config's Makefile: change sed's delimiter In-Reply-To: Message-ID: <200903101903.n2AJ3i59013060@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3727 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gohman at apple.com Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Dan Gohman 2009-03-10 14:03:35 --- Thanks. I applied my patch, as it's slightly more general. http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090309/074978.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 10 15:40:24 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 10 Mar 2009 15:40:24 -0500 Subject: [LLVMbugs] [Bug 3777] New: zext+gep should be optimized away by codegen Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3777 Summary: zext+gep should be optimized away by codegen Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: edwintorok at gmail.com CC: llvmbugs at cs.uiuc.edu I noticed that there is a zext from i8 to i64 for the GEP index, and codegen turns that into a movzbl. This is the LLVM IR snippet: %8 = load i8* %7, align 1 ; [#uses=1] %9 = zext i8 %8 to i64 ; [#uses=1] %10 = getelementptr [256 x i32]* @hex_chars, i64 0, i64 %9 ; [#uses=1] %11 = load i32* %10, align 4 ; [#uses=2] Which gets codegened into: movzbl (%rdi,%rax), %ecx movl hex_chars(,%rcx,4), %ecx I think the movzbl is not necessary, and it could simply be a movb into %cl, since the code already assumes that %rcx's upper bits are 0. BTW, I don't see the upper bits of rcx set in the attached assembly code. The code works though, so I must be missing something: what guarantees that we can use %rcx to index when we only loaded into %ecx? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 10 17:10:48 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 10 Mar 2009 17:10:48 -0500 Subject: [LLVMbugs] [Bug 3777] zext+gep should be optimized away by codegen In-Reply-To: Message-ID: <200903102210.n2AMAmWt020025@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3777 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gohman at apple.com Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Dan Gohman 2009-03-10 17:10:46 --- The movzbl here clears the entire contents of %rcx. See the "Implicit zero extend" section of http://www.x86-64.org/documentation/assembly.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 10 18:25:40 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 10 Mar 2009 18:25:40 -0500 Subject: [LLVMbugs] [Bug 3779] New: sign extension bahaviour is different from gcc Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3779 Summary: sign extension bahaviour is different from gcc Product: tools Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: llc AssignedTo: rafael.espindola at gmail.com ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu Compiling ---------------------- short x; void g(int); short h(void); short f(void) { g(h()); return x; } -------------------- with gcc produces ----------------------------- call h movswl %ax,%edi call g movw x(%rip), %ax ---------------------------- Note that only the caller does sign extension with llvm we have ------------------------------- call h movswl %ax, %edi call g movswl x, %eax ------------------------------ Note that both caller and callee do sign extension. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 10 18:45:05 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 10 Mar 2009 18:45:05 -0500 Subject: [LLVMbugs] [Bug 3310] declaration of vars with undefined structured type is rejected In-Reply-To: Message-ID: <200903102345.n2ANj5CH023554@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3310 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Douglas Gregor 2009-03-10 18:44:57 --- Should be fixed by: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090309/013735.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 10 19:23:32 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 10 Mar 2009 19:23:32 -0500 Subject: [LLVMbugs] [Bug 3258] Crash in IRGen with invalid asm In-Reply-To: Message-ID: <200903110023.n2B0NWYv025167@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3258 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Chris Lattner 2009-03-10 19:23:32 --- Fixed: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090309/013744.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 10 22:59:48 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 10 Mar 2009 22:59:48 -0500 Subject: [LLVMbugs] [Bug 3644] clang rejects redefinition of extern inline function In-Reply-To: Message-ID: <200903110359.n2B3xmh8032685@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3644 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from Chris Lattner 2009-03-10 22:59:47 --- Closing as a dupe, will move this testcase there. *** This bug has been marked as a duplicate of bug 3341 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 10 23:09:35 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 10 Mar 2009 23:09:35 -0500 Subject: [LLVMbugs] [Bug 3751] SourceLocation of -> or . In-Reply-To: Message-ID: <200903110409.n2B49Z2s000694@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3751 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |DUPLICATE --- Comment #6 from Chris Lattner 2009-03-10 23:09:34 --- *** This bug has been marked as a duplicate of bug 3765 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 10 23:13:33 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 10 Mar 2009 23:13:33 -0500 Subject: [LLVMbugs] [Bug 3756] __attribute__((always_inline)) and __builtin_constant_p In-Reply-To: Message-ID: <200903110413.n2B4DXcf000965@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3756 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #6 from Chris Lattner 2009-03-10 23:13:33 --- Unfortunately, this will never be fixed in either llvm-gcc or clang. __builtin_constant_p is a "best effort" constant folding tester, which is allowed to fail. You should never write code that assumes that __builtin_constant_p can't fail (if you need that, just don't use __builtin_constant_p). It would be interesting and useful to bring this up on the glibc list to see if they are willing to fix their headers. Barring that, if this is really important to you, please raise the issue on the llvmdev list. We will need IR extensions to support this among other things. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 11 08:16:31 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 11 Mar 2009 08:16:31 -0500 Subject: [LLVMbugs] [Bug 3784] New: PHIElimination incorrect in presence of exception handling Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3784 Summary: PHIElimination incorrect in presence of exception handling Product: new-bugs Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2700) --> (http://llvm.org/bugs/attachment.cgi?id=2700) testcase .ll This commit r66140 | evancheng | 2009-03-05 07:31:26 +0100 (Thu, 05 Mar 2009) | 2 lines Do not split edges to EH landing pads. It will cause code size explosion. broke several tests in the Ada testsuite by exposing a latent bug in PHIElimination. The basic problem is that the PHIElimination pass inserts register copies at the end of basic blocks, which means after any invoke instruction. But if the phi is in a landing pad then the copy needs to be made before the invoke call, not after. Probably the pass should just skip phi's that occur in landing pads. In the testcase you can see this in the basic block bb2. In the machine function, register %reg1027 is used in the landing pad (lpad) in a phi node. Here is bb2 before phi elimination. The CALLpcrel32 is the invoke, which causes execution to branch to lpad. bb2: 0x9ee7a98, LLVM BB @0x9ec35c0, ID#4: Predecessors according to CFG: 0x9ee7a48 (#3) %reg1027 = MOV32rr %reg1025 EH_LABEL 5 ADJCALLSTACKDOWN32 8, %ESP, %EFLAGS, %ESP %reg1063 = MOV32rr %ESP MOV32mi %reg1063, 1, %reg0, 4, 35, Mem:ST(4,4) [Stack + 4] MOV32mi %reg1063, 1, %reg0, 0, , Mem:ST(4,4) [Stack + 0] CALLpcrel32 , ... ADJCALLSTACKUP32 8, 0, %ESP, %EFLAGS, %ESP EH_LABEL 6 JMP mbb Successors according to CFG: 0x9ee7ae8 (#5) 0x9ee8448 (#37) And here it is after phi elimination. Phi elimination has inserted a copy of %reg1027 to %reg1099 at the end of the basic block, but it occurs too late: the value is needed in the landing pad so the copy needs to occur before the call. bb2: 0x991ea48, LLVM BB @0x98fa5c0, ID#4: Predecessors according to CFG: 0x991e9f8 (#3) %reg1027 = MOV32rr %reg1025 EH_LABEL 5 ADJCALLSTACKDOWN32 8, %ESP, %EFLAGS, %ESP %reg1063 = MOV32rr %ESP MOV32mi %reg1063, 1, %reg0, 4, 35, Mem:ST(4,4) [Stack + 4] MOV32mi %reg1063, 1, %reg0, 0, , Mem:ST(4,4) [Stack + 0] CALLpcrel32 , %EAX, %ECX, %EDX, %FP0, %FP1, %FP2, %FP3, %FP4, %FP5, %FP6, %ST0, %MM0, %MM1, %MM2, %MM3, %MM4, %MM5, %MM6, %MM7, %XMM0, %XMM1, %XMM2, %XMM3, %XMM4, %XMM5, %XMM6, %XMM7, %XMM8, %XMM9, %XMM10, %XMM11, %XMM12, %XMM13, %XMM14, %XMM15, %EFLAGS, %ESP ADJCALLSTACKUP32 8, 0, %ESP, %EFLAGS, %ESP EH_LABEL 6 %reg1099 = MOV32rr %reg1027 JMP mbb Successors according to CFG: 0x991ea98 (#5) 0x991f3f8 (#37) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 11 09:51:41 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 11 Mar 2009 09:51:41 -0500 Subject: [LLVMbugs] [Bug 3785] New: Buffer overflow in test/CodeGen/ARM/pr3502.ll Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3785 Summary: Buffer overflow in test/CodeGen/ARM/pr3502.ll Product: new-bugs Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu valgrind reports ==7022== Invalid read of size 1 ==7022== at 0xA50357: llvm::ARMTargetAsmInfo::getInlineAsmLength(char const*) const (ARMTargetAsmInfo.cpp:175) ==7022== by 0xA3610D: llvm::ARMInstrInfo::GetInstSizeInBytes(llvm::MachineInstr const*) const (ARMInstrInfo.cpp:929) ==7022== by 0x9D1736: (anonymous namespace)::ARMConstantIslands::InitialFunctionScan(llvm::MachineFunction&, std::vector > const&) (ARMConstantIslandPass.cpp:368) ==7022== by 0x9D2011: (anonymous namespace)::ARMConstantIslands::runOnMachineFunction(llvm::MachineFunction&) (ARMConstantIslandPass.cpp:242) ==7022== by 0x8959A0: llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (MachineFunctionPass.h:42) ==7022== by 0x109F58F: llvm::FPPassManager::runOnFunction(llvm::Function&) (PassManager.cpp:1324) ==7022== by 0x10A00C2: llvm::FunctionPassManagerImpl::run(llvm::Function&) (PassManager.cpp:1281) ==7022== by 0x10A0223: llvm::FunctionPassManager::run(llvm::Function&) (PassManager.cpp:1233) ==7022== by 0x81395F: main (llc.cpp:319) ==7022== Address 0x5df0ae6 is 0 bytes after a block of size 30 alloc'd ==7022== at 0x4C2794E: malloc (vg_replace_malloc.c:177) ==7022== by 0xA4FB4B: llvm::ARMTargetAsmInfo::getInlineAsmLength(char const*) const (ARMTargetAsmInfo.cpp:165) ==7022== by 0xA3610D: llvm::ARMInstrInfo::GetInstSizeInBytes(llvm::MachineInstr const*) const (ARMInstrInfo.cpp:929) ==7022== by 0x9D1736: (anonymous namespace)::ARMConstantIslands::InitialFunctionScan(llvm::MachineFunction&, std::vector > const&) (ARMConstantIslandPass.cpp:368) ==7022== by 0x9D2011: (anonymous namespace)::ARMConstantIslands::runOnMachineFunction(llvm::MachineFunction&) (ARMConstantIslandPass.cpp:242) ==7022== by 0x8959A0: llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (MachineFunctionPass.h:42) ==7022== by 0x109F58F: llvm::FPPassManager::runOnFunction(llvm::Function&) (PassManager.cpp:1324) ==7022== by 0x10A00C2: llvm::FunctionPassManagerImpl::run(llvm::Function&) (PassManager.cpp:1281) ==7022== by 0x10A0223: llvm::FunctionPassManager::run(llvm::Function&) (PassManager.cpp:1233) ==7022== by 0x81395F: main (llc.cpp:319) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 11 11:14:49 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 11 Mar 2009 11:14:49 -0500 Subject: [LLVMbugs] [Bug 3785] Buffer overflow in test/CodeGen/ARM/pr3502.ll In-Reply-To: Message-ID: <200903111614.n2BGEnEo004167@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3785 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2009-03-11 11:14:48 --- Fixed: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090309/075037.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 11 11:55:56 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 11 Mar 2009 11:55:56 -0500 Subject: [LLVMbugs] [Bug 3786] New: Support ignoring #line directives (or report both locations ) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3786 Summary: Support ignoring #line directives (or report both locations) Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: preprocessor AssignedTo: unassignedclangbugs at nondot.org ReportedBy: daniel at zuster.org CC: llvmbugs at cs.uiuc.edu Silly users, first they want something then they don't want it! When dealing with preprocessed input file sometimes I really want to know the *actual* location of the diagnostic, not the #line modified location. Reporting both in a diagnostic seems reasonable, but if that is too verbose then at least a command line option to turn off #line handling would be great. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 11 12:05:37 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 11 Mar 2009 12:05:37 -0500 Subject: [LLVMbugs] [Bug 3341] clang gets confused by redefinition of extern inline functions. In-Reply-To: Message-ID: <200903111705.n2BH5bDE006325@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3341 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #4 from Daniel Dunbar 2009-03-11 12:05:36 --- Our handling of inline is wrong in many places; I don't see a need to have more than one bug tracking this. *** This bug has been marked as a duplicate of bug 2933 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 11 12:20:23 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 11 Mar 2009 12:20:23 -0500 Subject: [LLVMbugs] [Bug 3786] Support ignoring #line directives (or report both locations) In-Reply-To: Message-ID: <200903111720.n2BHKNDt007015@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3786 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #2 from Chris Lattner 2009-03-11 12:20:22 --- Is there a gcc option for this? If not, I'd recommend running the .i file through clang -E -P to strip the line markers. alternatively use "sed '/^# /d' < in.i > out.i -Chris -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 11 14:50:15 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 11 Mar 2009 14:50:15 -0500 Subject: [LLVMbugs] [Bug 3787] New: llvm-gcc crash Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3787 Summary: llvm-gcc crash Product: tools Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: llvm-gcc AssignedTo: unassignedbugs at nondot.org ReportedBy: castet.matthieu at free.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2702) --> (http://llvm.org/bugs/attachment.cgi?id=2702) preproccesed file that crash llvm Hi, with llvm-gcc from svn, I got on x86 llvm-gcc -std=c99 -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wundef -O3 -fno-math-errno -c -o utils.o utils.c /data/build/userspace/ffmpeg/libavformat/utils.c: In function 'parse_date': /data/build/userspace/ffmpeg/libavformat/utils.c:3015: warning: cast discards qualifiers from pointer target type /data/build/userspace/ffmpeg/libavformat/utils.c: At top level: /data/build/userspace/ffmpeg/libavformat/utils.c:3311: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 11 14:57:43 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 11 Mar 2009 14:57:43 -0500 Subject: [LLVMbugs] [Bug 3788] New: asm inline : support casting on input operand Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3788 Summary: asm inline : support casting on input operand Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Semantic Analyzer AssignedTo: unassignedclangbugs at nondot.org ReportedBy: castet.matthieu at free.fr CC: llvmbugs at cs.uiuc.edu Hi : $ cat /tmp/p.c int foo() { int a; asm("nop" : : "m"((int)(a)) ); } $ ./llvm/tools/clang/tools/ccc/ccc /tmp/p.c -c -o /tmp/p.o /tmp/p.c:6:10: error: invalid lvalue in asm input for constraint 'm' : "m"((int)(a)) ^~~~~~~~ 1 diagnostic generated. The casting should be the same thing than doing : int foo() { int a; int tmp = a; asm("nop" : : "m"(tmp) ); } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 11 15:31:47 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 11 Mar 2009 15:31:47 -0500 Subject: [LLVMbugs] [Bug 3788] asm inline : support casting on input operand In-Reply-To: Message-ID: <200903112031.n2BKVldr015332@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3788 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Chris Lattner 2009-03-11 15:31:46 --- I'm sorry, but this is a bug that we don't want to be compatible with. "m" operands require that you be able to take the address of the operand. (int)x is an rvalue, and x is an lvalue. We need an lvalue. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 11 15:50:33 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 11 Mar 2009 15:50:33 -0500 Subject: [LLVMbugs] [Bug 3789] New: code misscompilation Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3789 Summary: code misscompilation Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Backend: C AssignedTo: unassignedbugs at nondot.org ReportedBy: castet.matthieu at free.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2704) --> (http://llvm.org/bugs/attachment.cgi?id=2704) preprocessed source code Hi, when building ffmpeg with clang/llvm I hit a file miss-compilation. I attached the preprocessed version of the file. Look in svq1_encode_plane function. There is 2 call to av_log. One in case of error inside the 2 loop (followed by return -1) and another one at the end of the last loop. Now lest generate bytecode : $ clang -S -emit-llvm -disable-free --relocation-model=static --unwind-tables=0 --fmath-errno=0 -g -O3 -Wundef -std=c99 -o /tmp/tmpW7pW3F.ll -x c svq1encp.c Search for av_log in svq1_encode_plane function, and you will find that both av_log are followed by return -1. So the "for (y = 0; y < block_height; y++) {" loop run only one time and return with -1. That very wrong. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 11 15:55:39 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 11 Mar 2009 15:55:39 -0500 Subject: [LLVMbugs] [Bug 3790] New: binary output in stacktrace Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3790 Summary: binary output in stacktrace Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: edwintorok at gmail.com CC: llvmbugs at cs.uiuc.edu I just crashed one of my passes, and the stacktrace contains some binary stuff (the module's bc?). Is that intended? I can write a testcase if needed, but I think it should be reproducible with a simple assertion failure anywhere. opt: FoldingSet.cpp:162: void** GetBucketPtr(void*): Assertion `(Ptr & 1) && "Not a bucket pointer"' failed. 0 opt 0x000000000071abff 1 opt 0x000000000071b0e1 2 libc.so.6 0x00007ffab4108190 3 libc.so.6 0x00007ffab4108105 gsignal + 53 4 libc.so.6 0x00007ffab4109623 abort + 387 5 libc.so.6 0x00007ffab4101149 __assert_fail + 233 6 opt 0x0000000000705f65 7 opt 0x0000000000705f85 llvm::FoldingSetIteratorImpl::advance() + 21 8 opt 0x00000000005c58b5 9 opt 0x00000000005c5290 10 opt 0x00000000006bb157 llvm::PMDataManager::removeDeadPasses(llvm::Pass*, char const*, llvm::PassDebuggingString) + 375 11 opt 0x00000000006bfa9b llvm::FPPassManager::runOnFunction(llvm::Function&) + 283 12 opt 0x00000000006bfd22 llvm::FPPassManager::runOnModule(llvm::Module&) + 66 13 opt 0x00000000006bd17d llvm::MPPassManager::runOnModule(llvm::Module&) + 301 14 opt 0x00000000006bde86 llvm::PassManagerImpl::run(llvm::Module&) + 134 15 opt 0x000000000040b701 main + 1537 16 libc.so.6 0x00007ffab40f45a6 __libc_start_main + 230 17 opt 0x0000000000400249 Stack dump: 0. Running pass 'Function Pass Manager' on module 'Static2/x.bc'. 1. Running pass 'bitvalue propagation' on module '????????????`???`??????1??????0???P+???C???+??????k???Pj???Pj??????j???hiep@@??????P??????Hj???@~?????????00g??????c??????i??????j???@??????@??????@??????Pk???Pk??????k???P??????P???????????????(k???@~??????q1?????????k???P,??????v Q??? Q??? S??????v???0Q??? Q??? S??????v???|??? l???(l???`l?????????r??????b??????l???`U???A~???2???l??????l??????l???indvars????????????@??????`U???P??????xl???@~???@0e???@?????????m??????m???Pm??????}???pt???4?????????l???@~???1`?????????}???@pn???@0??????!P}??????U??? q???JB????????????z???`??????P???????????? ?????? ??????`z???p1??????01 Static2/x.bc????????????????????????@OB??????????????????????????????`n??????????????????????????????b??? E???????????????????????????I 2D$??????????????????????????? !??? ??? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 11 17:43:36 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 11 Mar 2009 17:43:36 -0500 Subject: [LLVMbugs] [Bug 3791] New: llvm-gcc crashes while compiling mplayer's libmpcodecs/ vf_fspp.c with -O2 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3791 Summary: llvm-gcc crashes while compiling mplayer's libmpcodecs/vf_fspp.c with -O2 Product: libraries Version: 2.5 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Backend: C AssignedTo: unassignedbugs at nondot.org ReportedBy: bero at arklinux.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2705) --> (http://llvm.org/bugs/attachment.cgi?id=2705) file triggering the crash Using llvm-gcc (2.5) to compile the preprocessed source I'm attaching results in $ llvm-gcc -O2 -o vf_fspp.o -c vf_fspp.i In file included from ./libavutil/common.h:280, from ./libavutil/internal.h:39, from libmpcodecs/vf_fspp.c:56: ./libavutil/mem.h:51: warning: 'alloc_size' attribute directive ignored ./libavutil/mem.h:65: warning: 'alloc_size' attribute directive ignored ./libavutil/mem.h:85: warning: 'alloc_size' attribute directive ignored llvm-gcc: Internal error: Segmentation fault (program cc1) Please submit a full bug report. See for instructions. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 11 18:02:05 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 11 Mar 2009 18:02:05 -0500 Subject: [LLVMbugs] [Bug 3666] X86 backend converts calls to constant addresses to indirect calls. In-Reply-To: Message-ID: <200903112302.n2BN25lX021489@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3666 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #3 from Dan Gohman 2009-03-11 18:02:04 --- 66024 was reverted. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 12 11:35:26 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 12 Mar 2009 11:35:26 -0500 Subject: [LLVMbugs] [Bug 2322] clang overflows the stack with many case statements In-Reply-To: Message-ID: <200903121635.n2CGZQZg005957@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=2322 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2009-03-12 11:35:26 --- I fixed this a while back with the case de-recursivication. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 12 11:37:28 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 12 Mar 2009 11:37:28 -0500 Subject: [LLVMbugs] [Bug 2583] Source location not tracked for nested macros In-Reply-To: Message-ID: <200903121637.n2CGbSVD006042@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=2583 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Chris Lattner 2009-03-12 11:37:27 --- This was fixed awhile ago, we now produce: t.c:16:3: error: no member named 'abc' FOO(BAR(m)->abc); // diagnostics not so clear ^~~~~~~~~~~~~~~~ t.c:16:15: note: instantiated from: FOO(BAR(m)->abc); // diagnostics not so clear ~~~ ^ t.c:18:11: error: no member named 'abc' BAR(m)->abc; // ok ~~~~~~ ^ t.c:20:15: error: no member named 'abc' foo(bar(m)->abc); // best ~~~~~~ ^ 3 diagnostics generated. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 12 12:23:20 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 12 Mar 2009 12:23:20 -0500 Subject: [LLVMbugs] [Bug 3790] binary output in stacktrace In-Reply-To: Message-ID: <200903121723.n2CHNKMP007686@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3790 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #8 from Chris Lattner 2009-03-12 12:23:19 --- Patch looks great, thanks! http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090309/075145.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 12 12:25:46 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 12 Mar 2009 12:25:46 -0500 Subject: [LLVMbugs] [Bug 3794] New: i386 inline asm does not respect gcc = m memory operand constraint Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3794 Summary: i386 inline asm does not respect gcc =m memory operand constraint Product: new-bugs Version: unspecified Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: db at db.net CC: asl at math.spbu.ru, llvmbugs at cs.uiuc.edu, ed at 80386.nl, rdivacky at freebsd.org, pawel.worach at gmail.com Created an attachment (id=2707) --> (http://llvm.org/bugs/attachment.cgi?id=2707) testcase distilled down from libgcc2.c "A memory operand is allowed, with any kind of address that the machine sup- ports in general." from the gcc manual. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 12 12:37:10 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 12 Mar 2009 12:37:10 -0500 Subject: [LLVMbugs] [Bug 3794] i386 inline asm does not respect gcc = m memory operand constraint In-Reply-To: Message-ID: <200903121737.n2CHbApC008184@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3794 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Chris Lattner 2009-03-12 12:37:09 --- This is a bug in the source code that we would really not like to support in Clang. Please fix the code by removing the cast: an "=" constraint requires an lvalue, and a cast is not an lvalue. *** This bug has been marked as a duplicate of bug 3788 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 12 13:17:12 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 12 Mar 2009 13:17:12 -0500 Subject: [LLVMbugs] [Bug 3773] Wrong encoding of a call instruction when JITing on x86 In-Reply-To: Message-ID: <200903121817.n2CIHCa7009594@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3773 Evan Cheng changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Evan Cheng 2009-03-12 13:17:11 --- Fixed. http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090309/075148.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 12 13:29:49 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 12 Mar 2009 13:29:49 -0500 Subject: [LLVMbugs] [Bug 3795] New: ARM assertion failure for simple first class aggregate Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3795 Summary: ARM assertion failure for simple first class aggregate Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Keywords: compile-fail Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: tomas.l.olsen at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2708) --> (http://llvm.org/bugs/attachment.cgi?id=2708) test case for arm codegen failure The attached test case fails to compile for ARM with llc: $ llvm-as foo.ll $ llc -march=arm foo.bc llc: ValueTypes.cpp:167: static llvm::MVT llvm::MVT::getMVT(const llvm::Type*, bool): Assertion `0 && "Unknown type!"' failed. 0 llc 0x0887357d 1 0xb8066400 __kernel_sigreturn + 0 2 libc.so.6 0xb7dcf0c8 abort + 392 3 libc.so.6 0xb7dc66ee __assert_fail + 238 4 llc 0x08829e31 llvm::MVT::getMVT(llvm::Type const*, bool) + 801 5 llc 0x082a9273 llvm::ARMTargetLowering::isLegalAddressingMode(llvm::TargetLowering::AddrMode const&, llvm::Type const*) const + 275 6 llc 0x08725cc9 7 llc 0x0872637d 8 llc 0x08725a12 9 llc 0x087267e8 10 llc 0x08728223 11 llc 0x087292f5 12 llc 0x08814671 llvm::FPPassManager::runOnFunction(llvm::Function&) + 417 13 llc 0x08814a47 llvm::FunctionPassManagerImpl::run(llvm::Function&) + 119 14 llc 0x08814bf5 llvm::FunctionPassManager::run(llvm::Function&) + 69 15 llc 0x08131e4b main + 4187 16 libc.so.6 0xb7db96c5 __libc_start_main + 229 17 llc 0x08130301 Aborted The problematic code seems to be the variable GEP on line 15. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 12 18:56:25 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 12 Mar 2009 18:56:25 -0500 Subject: [LLVMbugs] [Bug 3666] X86 backend converts calls to constant addresses to indirect calls. In-Reply-To: Message-ID: <200903122356.n2CNuPp2022448@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3666 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #4 from Dan Gohman 2009-03-12 18:56:24 --- This is now fixed. http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090309/075148.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 13 04:48:20 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 13 Mar 2009 04:48:20 -0500 Subject: [LLVMbugs] [Bug 3796] New: Inclusions to generated header files are impractical for building LLVM sources externally Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3796 Summary: Inclusions to generated header files are impractical for building LLVM sources externally Product: Build scripts Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Makefiles AssignedTo: unassignedbugs at nondot.org ReportedBy: ed at 80386.nl CC: llvmbugs at cs.uiuc.edu Blocks: 3696 I've been working on some BSD Makefiles for LLVM and Clang, to figure out how hard it is to integrate Clang into the FreeBSD base system. So far things have been pretty easy, but there is one thing that makes working with the LLVM source tree harder than it needs to be. Throughout the source tree, we have some inclusions that look like this: #include "llvm/Intrinsics.gen" #include "llvm/Config/config.h" #include "llvm/ADT/iterator.h" #include "llvm/Support/DataTypes.h" The disadvantage of these inclusions is that they have quite a list of directories in front of them, which means if you want to store a (read-only) fresh copy of the LLVM source tree, you have to reproduce this directory structure as well. If it just used "Intrinsics.gen", "config.h", "iterator.h" and "DataTypes.h", we could just store all these files in a single directory. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 13 05:02:33 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 13 Mar 2009 05:02:33 -0500 Subject: [LLVMbugs] [Bug 3796] Inclusions to generated header files are impractical for building LLVM sources externally In-Reply-To: Message-ID: <200903131002.n2DA2XJW020447@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3796 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel at zuster.org Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #1 from Daniel Dunbar 2009-03-13 05:02:32 --- I can't say I completely understand your issue, but regardless we aren't going to change that. Our include scheme is quite nice for knowing where things are and for only needing to supply a small set of include options to the compiler. I'm not exactly sure how you are doing your out of tree build, but it is very possible to do it in a way which doesn't have problems with this. I do it all the time! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 13 05:08:27 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 13 Mar 2009 05:08:27 -0500 Subject: [LLVMbugs] [Bug 3797] New: initializer element is not a compile-time constant ( address of variable) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3797 Summary: initializer element is not a compile-time constant (address of variable) Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Semantic Analyzer AssignedTo: unassignedclangbugs at nondot.org ReportedBy: philippe.coucaud at nxp.com CC: llvmbugs at cs.uiuc.edu Revision 66878 The following code is rejected by clang ("initializer element is not a compile-time constant"): > cat controls.c typedef struct { int first_def; } BAR; static int foo; BAR table[] = { {(int)&foo} }; > gcc -fsyntax-only controls.c > clang -fsyntax-only controls.c controls.c:7:15: error: initializer element is not a compile-time constant BAR table[] = { {(int)&foo} }; ^~~~~~~~~~~~~~~ 1 diagnostic generated. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 13 09:56:48 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 13 Mar 2009 09:56:48 -0500 Subject: [LLVMbugs] [Bug 3799] New: llvm-gcc frontend debug info crash at -O0 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3799 Summary: llvm-gcc frontend debug info crash at -O0 Product: new-bugs Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2710) --> (http://llvm.org/bugs/attachment.cgi?id=2710) preprocessed source $llvm-gcc -c -g -O0 seh_init.i seh_init.c: In function '__gnat_install_SEH_handler': seh_init.c:231: internal compiler error: tree check: expected block, have return_expr in EmitFunction, at llvm-convert.cpp:739 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 13 10:41:13 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 13 Mar 2009 10:41:13 -0500 Subject: [LLVMbugs] [Bug 3788] asm inline : support casting on input operand In-Reply-To: Message-ID: <200903131541.n2DFfDG1032748@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3788 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #3 from Chris Lattner 2009-03-13 10:41:12 --- I'm considering adding support for making the inline asm code ignore casts to the exact same type, but would make this an error by default requiring some funny option to enable it. Would that fix this problem? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 13 11:32:34 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 13 Mar 2009 11:32:34 -0500 Subject: [LLVMbugs] [Bug 3797] initializer element is not a compile-time constant ( address of variable) In-Reply-To: Message-ID: <200903131632.n2DGWYGZ002474@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3797 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dgregor at apple.com Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Douglas Gregor 2009-03-13 11:32:33 --- Clang is doing the right thing, because this code is ill-formed. GCC 4.2 also rejects it: gcc -fsyntax-only foo.c foo.c:7: warning: cast from pointer to integer of different size foo.c:7: error: initializer element is not constant foo.c:7: error: (near initialization for ???table[0].first_def???) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 13 12:39:04 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 13 Mar 2009 12:39:04 -0500 Subject: [LLVMbugs] [Bug 3788] asm inline : support casting on input operand In-Reply-To: Message-ID: <200903131739.n2DHd4Le006416@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3788 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #7 from Chris Lattner 2009-03-13 12:38:57 --- Implemented here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090309/013929.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 13 13:40:35 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 13 Mar 2009 13:40:35 -0500 Subject: [LLVMbugs] [Bug 3800] New: asm inline : Ran out of registers at -O0 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3800 Summary: asm inline : Ran out of registers at -O0 Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Register Allocator AssignedTo: unassignedbugs at nondot.org ReportedBy: castet.matthieu at free.fr CC: llvmbugs at cs.uiuc.edu Hi, when compiling asm inline at -O0, we can hit easily the "Ran out of registers" case. $ cat /tmp/toto.c #include void ff_h264_idct_dc_add_mmx2(uint8_t *dst, int16_t *block, int stride) { __asm__ volatile( "movd %0, %%mm2 \n\t" "movd %1, %%mm3 \n\t" "movd %2, %%mm4 \n\t" "movd %3, %%mm5 \n\t" "movd %%mm2, %0 \n\t" "movd %%mm3, %1 \n\t" "movd %%mm4, %2 \n\t" "movd %%mm5, %3 \n\t" :"+m"(*(uint32_t*)(dst+0*stride)), "+m"(*(uint32_t*)(dst+1*stride)), "+m"(*(uint32_t*)(dst+2*stride)), "+m"(*(uint32_t*)(dst+3*stride)) ); } $ ccc -c -o /tmp/toto.o /tmp/toto.c Ran out of registers during register allocation! Please check your inline asm statement for invalid constraints: INLINEASM , 36, %EDI, 1, %reg0, 0, 36, %EBX, 1, %reg0, 0, 36, %EAX, 1, %reg0, 0, 36, %EDX, 1, %reg0, 0, 36, %ECX, 1, %reg0, 0, 36, %ESI, 1, %reg0, 0, 36, %EDI, 1, %reg0, 0, 36, %reg1070, 1, %reg0, 0, 14, %EFLAGS -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 13 13:51:07 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 13 Mar 2009 13:51:07 -0500 Subject: [LLVMbugs] [Bug 3799] llvm-gcc frontend debug info crash at -O0 In-Reply-To: Message-ID: <200903131851.n2DIp7VU009294@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3799 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Devang Patel 2009-03-13 13:51:07 --- Fixed. Rev 66925. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 13 16:08:10 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 13 Mar 2009 16:08:10 -0500 Subject: [LLVMbugs] [Bug 3721] LLC generates undefined labels In-Reply-To: Message-ID: <200903132108.n2DL8Ap3014439@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3721 Haohui Mai changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Haohui Mai 2009-03-13 16:08:09 --- I think it is fixed in the trunk now. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 13 16:34:33 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 13 Mar 2009 16:34:33 -0500 Subject: [LLVMbugs] [Bug 3801] New: non- PIC-aware assembler code in X86 jit Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3801 Summary: non- PIC-aware assembler code in X86 jit Product: libraries Version: trunk Platform: PC URL: http://www.nabble.com/Bug-in-X86CompilationCallback_SSE- to22445736.html OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: czoccolo at gmail.com CC: llvmbugs at cs.uiuc.edu X86CompilationCallback_SSE wrapper for X86CompilationCallback2 (and possibly others) is not setting up properly for the PIC invocation. Dump of assembler code for function X86CompilationCallback_SSE: 0xb74544f8 : push %ebp 0xb74544f9 : mov %esp,%ebp 0xb74544fb : push %eax 0xb74544fc : push %edx 0xb74544fd : push %ecx 0xb74544fe : and $0xfffffff0,%esp 0xb7454501 : sub $0x40,%esp 0xb7454504 : movaps %xmm0,(%esp) 0xb7454508 : movaps %xmm1,0x10(%esp) 0xb745450d : movaps %xmm2,0x20(%esp) 0xb7454512 : movaps %xmm3,0x30(%esp) 0xb7454517 : sub $0x10,%esp 0xb745451a : mov 0x4(%ebp),%eax 0xb745451d : mov %eax,0x4(%esp) 0xb7454521 : mov %ebp,(%esp) 0xb7454524 : call 0xb729e348 0xb7454529 : add $0x10,%esp 0xb745452c : movaps 0x30(%esp),%xmm3 0xb7454531 : movaps 0x20(%esp),%xmm2 0xb7454536 : movaps 0x10(%esp),%xmm1 0xb745453b : movaps (%esp),%xmm0 0xb745453f : mov %ebp,%esp 0xb7454541 : sub $0xc,%esp 0xb7454544 : pop %ecx 0xb7454545 : pop %edx 0xb7454546 : pop %eax 0xb7454547 : pop %ebp 0xb7454548 : ret This bug is uncovered only when the pointer to the compilation callback is handed to a function residing in a different .so library, and called from there (e.g. if called from python's ctypes ffi). A possible way to patch it is to rely on compiler to generate the correct code for the call, using inline assembler just to save/restore registers. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 13 17:59:40 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 13 Mar 2009 17:59:40 -0500 Subject: [LLVMbugs] [Bug 3784] PHIElimination incorrect in presence of exception handling In-Reply-To: Message-ID: <200903132259.n2DMxeH8018600@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3784 Evan Cheng changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Evan Cheng 2009-03-13 17:59:39 --- Fixed. http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090309/075246.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 13 19:23:57 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 13 Mar 2009 19:23:57 -0500 Subject: [LLVMbugs] [Bug 3802] New: VMCore:Constants.cpp:2080 asserts on int vector shifting Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3802 Summary: VMCore:Constants.cpp:2080 asserts on int vector shifting Product: libraries Version: 2.4 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Core LLVM classes AssignedTo: unassignedbugs at nondot.org ReportedBy: micah.villmow at amd.com CC: llvmbugs at cs.uiuc.edu OpenCL requires vector based shifts with integers but the constants.cpp file in vmcore currently asserts if the LHS type is not a scalar integer. @@ -2074,11 +2074,11 @@ break; case Instruction::Shl: case Instruction::LShr: case Instruction::AShr: assert(C1->getType() == C2->getType() && "Op types should be identical!"); < assert(C1->getType()->isInteger() && -> assert(C1->getType()->isIntOrIntVector() && "Tried to create a shift operation on a non-integer type!"); break; default: break; } The fix is very simple, but I don't have any tests or enough knowledge about this area of llvm to know if this is the only thing that needs to be changed. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 13 21:02:04 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 13 Mar 2009 21:02:04 -0500 Subject: [LLVMbugs] [Bug 3803] New: Cannot bootstrap llvm-gcc on Tiger (with Xcode 2.5 tools) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3803 Summary: Cannot bootstrap llvm-gcc on Tiger (with Xcode 2.5 tools) Product: tools Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P2 Component: llvm-gcc AssignedTo: unassignedbugs at nondot.org ReportedBy: ggreif at gmail.com CC: llvmbugs at cs.uiuc.edu I have already worked around a "vproc.h not found" problem, but this one seems hard (stage2 configure fails): configure:2085: $? = 0 configure:2087: /Users/ggreif/obj/./prev-gcc/xgcc -B/Users/ggreif/obj/./prev-gcc/ -B/Users/ggreif/obj/../install/i686-apple-darwin8/bin/ -v &5 Reading specs from /Users/ggreif/obj/./prev-gcc/specs Target: i686-apple-darwin8 Configured with: /Users/ggreif/llvm-gcc/configure --with-gxx-include-dir=/usr/include/c++/4.0.0 --build=i686-apple-darwin8 --host=i686-apple-darwin8 --target=i686-apple-darwin8 --pr\ efix=/Users/ggreif/obj/../install --enable-llvm=/Users/ggreif/llvm --enable-languages=c,c++ --with-arch=nocona --with-tune=generic --disable-multilib : (reconfigured) /Users/ggreif/\ llvm-gcc/configure --with-gxx-include-dir=/usr/include/c++/4.0.0 --build=i686-apple-darwin8 --host=i686-apple-darwin8 --target=i686-apple-darwin8 --prefix=/Users/ggreif/obj/../insta\ ll --enable-llvm=/Users/ggreif/llvm --enable-languages=c,c++ --with-arch=nocona --with-tune=generic --disable-multilib --disable-gcov Thread model: posix gcc version 4.2.1 (Based on Apple Inc. build 5641) (LLVM build) configure:2090: $? = 0 configure:2113: checking for C compiler default output file name configure:2116: /Users/ggreif/obj/./prev-gcc/xgcc -B/Users/ggreif/obj/./prev-gcc/ -B/Users/ggreif/obj/../install/i686-apple-darwin8/bin/ -g -O2 -mdynamic-no-pic conftest.c >&5 ERROR: No debug map or DWARF data was found to link.configure:2119: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | | int | main () -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 14 03:10:02 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 14 Mar 2009 03:10:02 -0500 Subject: [LLVMbugs] [Bug 3804] New: llvm 2.5 fails to build lli on ia64 and mips Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3804 Summary: llvm 2.5 fails to build lli on ia64 and mips Product: tools Version: 2.5 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: lli AssignedTo: unassignedbugs at nondot.org ReportedBy: aloiret at debian.org CC: llvmbugs at cs.uiuc.edu Hi, Here is the summary for Debian builds on various supported architectures: https://buildd.debian.org/~luk/status/package.php?p=llvm The build fails for ia64 (see https://buildd.debian.org/fetch.cgi?pkg=llvm&arch=ia64&ver=2.5-2&stamp=1236955281&file=log&as=raw) and mips (see https://buildd.debian.org/fetch.cgi?pkg=llvm&arch=mips&ver=2.5-2&stamp=1236961034&file=log&as=raw), do you know how to fix this, and if it is fixed in trunk? Thanks, Arthur. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 14 04:50:50 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 14 Mar 2009 04:50:50 -0500 Subject: [LLVMbugs] [Bug 3806] New: LSR is not APInt-aware Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3806 Summary: LSR is not APInt-aware Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Loop Optimizer AssignedTo: unassignedbugs at nondot.org ReportedBy: asl at math.spbu.ru CC: llvmbugs at cs.uiuc.edu It seems, that LoopStrengthReduce is not using APInt's in some places. However, code after optimizers contains, for example, i128's, which leads to numerous assertions. Attached is reduction from Qt: llc: /home/asl/proj/llvm/src/include/llvm/ADT/APInt.h:1051: int64_t llvm::APInt::getSExtValue() const: Assertion `getMinSignedBits() <= 64 && "Too many bits for int64_t"' failed. (gdb) bt #0 0x00007f3412312535 in raise () from /lib/libc.so.6 #1 0x00007f34123139e0 in abort () from /lib/libc.so.6 #2 0x00007f341230b8bf in __assert_fail () from /lib/libc.so.6 #3 0x0000000000855c2a in llvm::APInt::getSExtValue (this=0x177b0d8) at /home/asl/proj/llvm/src/include/llvm/ADT/APInt.h:1051 #4 0x0000000000855c49 in llvm::ConstantInt::getSExtValue (this=0x177b0a0) at /home/asl/proj/llvm/src/include/llvm/Constants.h:84 #5 0x0000000000f91658 in CheckForIVReuse (this=0x17595c0, HasBaseReg=false, AllUsesAreAddresses=false, AllUsesAreOutsideLoop=false, Stride=@0x177b910, IV=@0x7fff1b3f5940, Ty=0x173cd40, UsersToProcess=@0x7fff1b3f5980) at /home/asl/proj/llvm/src/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1322 #6 0x0000000000f941f0 in StrengthReduceStridedIVUsers (this=0x17595c0, Stride=@0x177b910, Uses=@0x177b918, L=0x1774c90) at /home/asl/proj/llvm/src/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1889 #7 0x0000000000f95eb4 in runOnLoop (this=0x17595c0, L=0x1774c90, LPM=@0x175ace0) at /home/asl/proj/llvm/src/lib/Transforms/Scalar/LoopStrengthReduce.cpp:2630 #8 0x0000000000ff52f3 in llvm::LPPassManager::runOnFunction (this=0x175ace0, F=@0x173d1d0) at /home/asl/proj/llvm/src/lib/Analysis/LoopPass.cpp:224 #9 0x00000000010a7348 in llvm::FPPassManager::runOnFunction (this=0x1750ca0, F=@0x173d1d0) at /home/asl/proj/llvm/src/lib/VMCore/PassManager.cpp:1324 #10 0x00000000010a78bd in llvm::FunctionPassManagerImpl::run (this=0x1743d60, F=@0x173d1d0) at /home/asl/proj/llvm/src/lib/VMCore/PassManager.cpp:1281 #11 0x00000000010a7a1e in llvm::FunctionPassManager::run (this=0x7fff1b3f6060, F=@0x173d1d0) at /home/asl/proj/llvm/src/lib/VMCore/PassManager.cpp:1233 #12 0x000000000080c63a in main (argc=2, argv=0x7fff1b3f6298) at /home/asl/proj/llvm/src/tools/llc/llc.cpp:319 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 14 07:31:50 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 14 Mar 2009 07:31:50 -0500 Subject: [LLVMbugs] [Bug 3807] New: deadarg elimination produces bogus IR Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3807 Summary: deadarg elimination produces bogus IR Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: asl at math.spbu.ru CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2712) --> (http://llvm.org/bugs/attachment.cgi?id=2712) Reduced testcase Currently, WebKit build is broken due to bug in deadargelim, which produces bogus IR: ./opt bugpoint-reduced-simplified.bc -deadargelim Basic Block does not have terminator! label %invcont2 0 opt 0x0000000000a5fd42 1 opt 0x0000000000a60290 2 libc.so.6 0x00007fd31fb595a0 3 libc.so.6 0x00007fd31fb59535 gsignal + 53 4 libc.so.6 0x00007fd31fb5a9e0 abort + 272 5 opt 0x0000000000a0f0c7 6 opt 0x00000000009ea500 llvm::FPPassManager::runOnFunction(llvm::Function&) + 256 7 opt 0x00000000009ea668 llvm::FPPassManager::runOnModule(llvm::Module&) + 82 8 opt 0x00000000009e9007 llvm::MPPassManager::runOnModule(llvm::Module&) + 203 9 opt 0x00000000009ea963 llvm::PassManagerImpl::run(llvm::Module&) + 111 10 opt 0x00000000009ea9c5 llvm::PassManager::run(llvm::Module&) + 33 11 opt 0x00000000006ee5b6 main + 3946 12 libc.so.6 0x00007fd31fb464a4 __libc_start_main + 244 13 opt 0x00000000006de319 Stack dump: 0. Running pass 'Function Pass Manager' on module 'bugpoint-reduced-simplified.bc'. 1. Running pass 'Preliminary module verification' on function '@_ZN7WebCore16SVGRootInlineBox36computePerCharacterLayoutInformationEv' -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 14 11:57:50 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 14 Mar 2009 11:57:50 -0500 Subject: [LLVMbugs] [Bug 3808] New: ccc ignores -x assembler-with-cpp rev. 66921 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3808 Summary: ccc ignores -x assembler-with-cpp rev. 66921 Product: new-bugs Version: unspecified Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: db at db.net CC: asl at math.spbu.ru, llvmbugs at cs.uiuc.edu, ed at 80386.nl, rdivacky at freebsd.org, pawel.worach at gmail.com Created an attachment (id=2713) --> (http://llvm.org/bugs/attachment.cgi?id=2713) asm that works on gcc but not ccc ccc does not run the preprocessor when asked for asm with rev 66921 rev 66623 is known to work. ccc -c -x assembler-with-cpp testcase.s testcase.s: Assembler messages: testcase.s:4: Error: junk `(end)' after expression cc -c -x assembler-with-cpp testcase.s (no error) cc -c testcase.s testcase.s: Assembler messages: testcase.s:4: Error: junk `(end)' after expression -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 14 12:11:51 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 14 Mar 2009 12:11:51 -0500 Subject: [LLVMbugs] [Bug 3802] VMCore:Constants.cpp:2080 asserts on int vector shifting In-Reply-To: Message-ID: <200903141711.n2EHBpNK000757@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3802 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gohman at apple.com Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Dan Gohman 2009-03-14 12:11:50 --- Your patch looks good; I applied it, and added support for folding vector shift constants. Thanks! http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090309/075260.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 14 19:12:13 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 14 Mar 2009 19:12:13 -0500 Subject: [LLVMbugs] [Bug 3808] ccc ignores -x assembler-with-cpp rev. 66921 In-Reply-To: Message-ID: <200903150012.n2F0CDGH014876@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3808 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Daniel Dunbar 2009-03-14 19:12:13 --- Fixed here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090309/013988.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 15 01:39:23 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 15 Mar 2009 01:39:23 -0500 Subject: [LLVMbugs] [Bug 3810] New: [irgen[ O(N^2) algorithm in deferred decl generation Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3810 Summary: [irgen[ O(N^2) algorithm in deferred decl generation Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: daniel at zuster.org CC: llvmbugs at cs.uiuc.edu -- ddunbar at frank:tmp$ cat bad.py import sys print 'extern int g0();' print print 'static int f0() { return g0(); }' N = int(sys.argv[1]) for i in range(1, N+1): print 'static int f%d() { return f%d(); }' % (i, i-1) print print 'int g1() { return f%d(); }' % N ddunbar at frank:tmp$ python bad.py 1000 > t.c && time clang -emit-llvm-only t.c real 0m0.595s user 0m0.592s sys 0m0.000s ddunbar at frank:tmp$ python bad.py 2000 > t.c && time clang -emit-llvm-only t.c real 0m1.770s user 0m1.760s sys 0m0.004s ddunbar at frank:tmp$ python bad.py 4000 > t.c && time clang -emit-llvm-only t.c real 0m6.439s user 0m6.212s sys 0m0.036s -- -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 15 03:53:16 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 15 Mar 2009 03:53:16 -0500 Subject: [LLVMbugs] [Bug 3811] New: support #pragma align Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3811 Summary: support #pragma align Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Semantic Analyzer AssignedTo: unassignedclangbugs at nondot.org ReportedBy: daniel at zuster.org CC: llvmbugs at cs.uiuc.edu clang should support #pragma align. It would be nice to have an option to warn about unsupported pragmas, as well. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 15 06:34:28 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 15 Mar 2009 06:34:28 -0500 Subject: [LLVMbugs] [Bug 3813] New: MachO and ELF Writers/ MachineCodeEmitters are hard-coded into LLVMTargetMachine Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3813 Summary: MachO and ELF Writers/MachineCodeEmitters are hard-coded into LLVMTargetMachine Product: libraries Version: 2.5 Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: just.s0m3.guy+llvmbugzilla at gmail.com CC: llvmbugs at cs.uiuc.edu Currently, the MachO and ELF Writers and MachineCodeEmitters are hard-coded into LLVMTargetMachine and llc. In other words, the 'object file generation' capabilities of the Common Code Generator are not generic. LLVMTargetMachine::addPassesToEmitFile explicitly checks whether the derived backend TargetMachine implements one of getMachOWriterInfo or getELFWriterInfo, and returns a corresponding FileModel enum value. llc's main function uses the resulting FileModel value to determine which of the {AddMachOWriter,AddELFWriter} functions to call. This is limiting for a number of reasons: 1. If a given platform (e.g. x86) may support both MachO and ELF, MachO will be selected, as it is checked first. This is bad behaviour, it should be up to the user to decide which object format he wants. 2. Extension of the object file generation capabilities to include new object file formats is difficult, and requires modifications to LLVM code (not just a plugin). I suggest transforming the {getMachOWriterInfo, getELFWriterInfo} functions (on TargetMachine) into a single (templated?) getObjectFileWriterInfo function. Additionally a addObjectFileWriter member should be added to TargetMachine, taking the place of the static {AddMachOWriter, AddELFWriter} functions. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 15 06:49:13 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 15 Mar 2009 06:49:13 -0500 Subject: [LLVMbugs] [Bug 3814] New: clang is very noisy by default on projects using gettext Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3814 Summary: clang is very noisy by default on projects using gettext Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Semantic Analyzer AssignedTo: unassignedclangbugs at nondot.org ReportedBy: daniel at zuster.org CC: kremenek at apple.com, llvmbugs at cs.uiuc.edu clang is very noisy by default on projects using gettext, because the format string literal warning is on by default, and it warns about code like -- printf(_("some string"), ...); -- where _ is a macro for some gettext function. How crude would it be to recognize this pattern explicitly? I.e. printf of a direct call of a function taking a single literal string and returning a const char*. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 15 06:51:47 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 15 Mar 2009 06:51:47 -0500 Subject: [LLVMbugs] [Bug 3815] New: spurious warning on constant conversion Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3815 Summary: spurious warning on constant conversion Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Semantic Analyzer AssignedTo: unassignedclangbugs at nondot.org ReportedBy: daniel at zuster.org CC: llvmbugs at cs.uiuc.edu -- ddunbar at frank:tmp$ cat t.c int f0(int i) { switch (i) { default: return 0; case 0x958458f6: return 1; } } ddunbar at frank:tmp$ clang t.c t.c:4:8: warning: overflow converting case value to switch condition type (2508478710 to -1786488586) case 0x958458f6: return 1; ^ 1 diagnostic generated. -- -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 15 06:54:24 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 15 Mar 2009 06:54:24 -0500 Subject: [LLVMbugs] [Bug 3816] New: duplicate notes should be suppressed Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3816 Summary: duplicate notes should be suppressed Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Semantic Analyzer AssignedTo: unassignedclangbugs at nondot.org ReportedBy: daniel at zuster.org CC: clattner at apple.com, llvmbugs at cs.uiuc.edu Duplicate notes can be very noisy and should be suppressed: -- ddunbar at frank:tmp$ cat t.c #include extern const char *g0(const char*); #define _ g0 void f0(void) { printf(_("hello")); printf(_("cruel")); printf(_("world")); } ddunbar at frank:tmp$ clang t.c t.c:5:10: warning: format string is not a string literal (potentially insecure) printf(_("hello")); ^~~~~~~~~~ t.c:3:11: note: instantiated from: #define _ g0 ^~ t.c:6:10: warning: format string is not a string literal (potentially insecure) printf(_("cruel")); ^~~~~~~~~~ t.c:3:11: note: instantiated from: #define _ g0 ^~ t.c:7:10: warning: format string is not a string literal (potentially insecure) printf(_("world")); ^~~~~~~~~~ t.c:3:11: note: instantiated from: #define _ g0 ^~ 3 diagnostics generated. -- -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 15 07:06:45 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 15 Mar 2009 07:06:45 -0500 Subject: [LLVMbugs] [Bug 3817] New: crash in redefinition using typeof same function Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3817 Summary: crash in redefinition using typeof same function Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Semantic Analyzer AssignedTo: unassignedclangbugs at nondot.org ReportedBy: daniel at zuster.org CC: llvmbugs at cs.uiuc.edu clang emits and error and crashes on the following code gcc accepts: -- void *f0(unsigned a0, ...); extern __typeof (f0) f1 __attribute__((__sentinel__)); extern __typeof (f1) f1 __attribute__((__sentinel__)); -- This blocks glib-2.18.4. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 15 07:27:57 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 15 Mar 2009 07:27:57 -0500 Subject: [LLVMbugs] [Bug 3818] New: [irgen] missing alias definition Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3818 Summary: [irgen] missing alias definition Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: daniel at zuster.org CC: llvmbugs at cs.uiuc.edu Bad: -- ddunbar at frank:tmp$ cat t.c extern int g0; int g1 = 0; extern int g0 __attribute((alias("g1"))); ddunbar at frank:tmp$ ccc -c t.c && nm t.o 00000000 B g1 ddunbar at frank:tmp$ gcc -c t.c && nm t.o 00000000 B g0 00000000 B g1 -- This blocks glib-2.18.4. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 16 04:36:07 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 16 Mar 2009 04:36:07 -0500 Subject: [LLVMbugs] [Bug 3445] Making TargetData optional for passes In-Reply-To: Message-ID: <200903160936.n2G9a7Y4031107@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3445 varth changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from varth 2009-03-16 04:36:05 --- *** This bug has been marked as a duplicate of bug 760 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 16 17:59:19 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 16 Mar 2009 17:59:19 -0500 Subject: [LLVMbugs] [Bug 3823] New: llvm-gcc segmentation fault during build of libstdc++ Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3823 Summary: llvm-gcc segmentation fault during build of libstdc++ Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: edwintorok at gmail.com CC: llvmbugs at cs.uiuc.edu Since a while I am seeing conftest segmentation fault in syslog, and I finally tracked down the reason to the libstdc++ build of llvm-gcc (both 32 -and 64-bit mode, hence 2 segfaults). Everything seems to proceed normally, and I do get a working llvm-gcc, but this segfault shouldn't be happening. I tried compiling the failing testcase with gcc, and it fails there as well (see below). Mar 16 23:23:59 debian kernel: [47931.114089] conftest[22732]: segfault at 80 ip 00002ae820d67c2a sp 00007fff89f88d40 error 4 in +libc-2.9.so[2ae820d3d000+149000] Mar 16 23:24:27 debian kernel: [47959.425016] conftest[1497]: segfault at 40 ip 00000000555bfb6a sp 00000000ff945910 error 4 in +libc-2.9.so[5559c000+151000] llvm-svn/obj42/x86_64-unknown-linux-gnu/32/libstdc++-v3/config.log: configure:5712: checking for unistd.h configure:5728: /home/edwin/llvm-svn/obj42/./gcc/xgcc -B/home/edwin/llvm-svn/obj42/./gcc/ -B/home/edwin/llvm-svn/obj42/../install/x86_64-unknown-linux-gnu/bin/ -B/home/edwin/llvm-svn/obj42/../install/x86_64-unknown-linux-gnu/lib/ -isystem /home/edwin/llvm-svn/obj42/../install/x86_64-unknown-linux-gnu/include -isystem /home/edwin/llvm-svn/obj42/../install/x86_64-unknown-linux-gnu/sys-include -m32 -c -O2 -g -O2 conftest.c >&5 configure:5734: $? = 0 configure:5738: test -z || test ! -s conftest.err configure:5741: $? = 0 configure:5744: test -s conftest.o configure:5747: $? = 0 configure:5758: result: yes configure:5881: /home/edwin/llvm-svn/obj42/./gcc/xgcc -B/home/edwin/llvm-svn/obj42/./gcc/ -B/home/edwin/llvm-svn/obj42/../install/x86_64-unknown-linux-gnu/bin/ -B/home/edwin/llvm-svn/obj42/../install/x86_64-unknown-linux-gnu/lib/ -isystem /home/edwin/llvm-svn/obj42/../install/x86_64-unknown-linux-gnu/include -isystem /home/edwin/llvm-svn/obj42/../install/x86_64-unknown-linux-gnu/sys-include -m32 -o conftest -O2 -g -O2 conftest.c >&5 configure:5884: $? = 0 configure:5886: ./conftest ../../../../llvm-gcc4.2/libstdc++-v3/configure: line 5887: 13888 Segmentation fault ./conftest$ac_exeext configure:5889: $? = 139 configure: program exited with status 139 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "package-unused" | #define PACKAGE_TARNAME "libstdc++" | #define PACKAGE_VERSION "version-unused" | #define PACKAGE_STRING "package-unused version-unused" | #define PACKAGE_BUGREPORT "" | #ifdef __cplusplus | extern "C" void exit (int) throw (); | #endif | #define _GLIBCXX_HOSTED 1 | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | /* end confdefs.h. */ | | #define _GNU_SOURCE 1 | #include | #include | #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) | extern __typeof(newlocale) __newlocale; | extern __typeof(duplocale) __duplocale; | extern __typeof(strcoll_l) __strcoll_l; | #endif | int main() | { | const char __one[] = "??uglein Augmen"; | const char __two[] = "??uglein"; | int i; | int j; | __locale_t loc; | __locale_t loc_dup; | loc = __newlocale(1 << LC_ALL, "de_DE", 0); | loc_dup = __duplocale(loc); | i = __strcoll_l(__one, __two, loc); | j = __strcoll_l(__one, __two, loc_dup); | return 0; | } | llvm-svn/obj42/x86_64-unknown-linux-gnu/libstdc++-v3/config.log: configure:5881: /home/edwin/llvm-svn/obj42/./gcc/xgcc -B/home/edwin/llvm-svn/obj42/./gcc/ -B/home/edwin/llvm-svn/obj42/../install/x86_64-unknown-linux-gnu/bin/ -B/home/edwin/llvm-svn/obj42/../install/x86_64-unknown-linux-gnu/lib/ -isystem /home/edwin/llvm-svn/obj42/../install/x86_64-unknown-linux-gnu/include -isystem /home/edwin/llvm-svn/obj42/../install/x86_64-unknown-linux-gnu/sys-include -o conftest -O2 -g -O2 conftest.c >&5 configure:5884: $? = 0 configure:5886: ./conftest /home/edwin/llvm-svn/llvm-gcc4.2/libstdc++-v3/configure: line 5887: 3251 Segmentation fault ./conftest$ac_exeext configure:5889: $? = 139 configure: program exited with status 139 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "package-unused" | #define PACKAGE_TARNAME "libstdc++" | #define PACKAGE_VERSION "version-unused" | #define PACKAGE_STRING "package-unused version-unused" | #define PACKAGE_BUGREPORT "" | #ifdef __cplusplus | extern "C" void exit (int) throw (); | #endif | #define _GLIBCXX_HOSTED 1 | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | /* end confdefs.h. */ | | #define _GNU_SOURCE 1 | #include | #include | #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) | extern __typeof(newlocale) __newlocale; | extern __typeof(duplocale) __duplocale; | extern __typeof(strcoll_l) __strcoll_l; | #endif | int main() | { | const char __one[] = "??uglein Augmen"; | const char __two[] = "??uglein"; | int i; | int j; | __locale_t loc; | __locale_t loc_dup; | loc = __newlocale(1 << LC_ALL, "de_DE", 0); | loc_dup = __duplocale(loc); | i = __strcoll_l(__one, __two, loc); | j = __strcoll_l(__one, __two, loc_dup); | return 0; | } | Problem is that loc is NULL (I don't have de_DE locale), and then duplocale segfaults. This only occurs when bootstrapping llvm-gcc, no such segmentation fault occurs when bootstrapping gcc-4.4. Is this a bug in configure, or something enabled more locales than it was supposed to? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 16 19:56:07 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 16 Mar 2009 19:56:07 -0500 Subject: [LLVMbugs] [Bug 3815] spurious warning on constant conversion In-Reply-To: Message-ID: <200903170056.n2H0u76c001129@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3815 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #4 from Daniel Dunbar 2009-03-16 19:56:06 --- I see; I didn't actually realize this particular case was implementation defined. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 17 00:54:01 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 17 Mar 2009 00:54:01 -0500 Subject: [LLVMbugs] [Bug 3789] code misscompilation In-Reply-To: Message-ID: <200903170554.n2H5s16W012224@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3789 Anders Carlsson changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andersca at mac.com Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Anders Carlsson 2009-03-17 00:54:00 --- http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090316/014033.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 17 06:07:51 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 17 Mar 2009 06:07:51 -0500 Subject: [LLVMbugs] [Bug 3826] New: InstComb assert with vector shift and no MMX generated Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3826 Summary: InstComb assert with vector shift and no MMX generated Product: new-bugs Version: unspecified Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: nicolas at capens.net CC: llvmbugs at cs.uiuc.edu The IR code below asserts in ValueTracking.cpp:566 (the first line of llvm::ComputeNumSignBits) when using an instruction combining optimization pass: define internal void @0(<4 x i16>*, <4 x i16>*) { %3 = alloca <4 x i16>* ; <<4 x i16>**> [#uses=2] %4 = alloca <4 x i16>* ; <<4 x i16>**> [#uses=2] store <4 x i16>* %0, <4 x i16>** %4 store <4 x i16>* %1, <4 x i16>** %3 %5 = load <4 x i16>** %3 ; <<4 x i16>*> [#uses=1] %6 = load <4 x i16>* %5, align 1 ; <<4 x i16>> [#uses=1] %7 = lshr <4 x i16> %6, ; <<4 x i16>> [#uses=1] %8 = load <4 x i16>** %4 ; <<4 x i16>*> [#uses=1] store <4 x i16> %7, <4 x i16>* %8, align 1 ret void } The assert is about a cast to an incompatible type; as far as I can tell the function doesn't expect a vector as the second argument of lshr. Furthermore, this generates very inefficient scalar code with four x86 shr instrutions, while it's supposed to be a perfect match for the MMX psrlw instruction. I suspect it doesn't work for any MMX/SSE vector shift. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 17 09:29:45 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 17 Mar 2009 09:29:45 -0500 Subject: [LLVMbugs] [Bug 3829] New: Trivial piece of code misbehaves badly on FreeBSD Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3829 Summary: Trivial piece of code misbehaves badly on FreeBSD Product: clang Version: unspecified Platform: PC OS/Version: FreeBSD Status: NEW Severity: major Priority: P2 Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ed at 80386.nl CC: llvmbugs at cs.uiuc.edu Blocks: 3696 Created an attachment (id=2720) --> (http://llvm.org/bugs/attachment.cgi?id=2720) Testcase When the attached code is compiled with Clang using -O or higher, something strange happens. I suspect it's malloc() being called with an impossible value. hashtabnew() when compiled with -O0: 0000000000000000 : 0: 55 push %rbp 1: 48 89 e5 mov %rsp,%rbp 4: 48 83 ec 30 sub $0x30,%rsp 8: 48 89 f0 mov %rsi,%rax b: 89 f9 mov %edi,%ecx d: 89 4d f4 mov %ecx,0xfffffffffffffff4(%rbp) 10: 48 89 45 e8 mov %rax,0xffffffffffffffe8(%rbp) 14: 8b 45 f4 mov 0xfffffffffffffff4(%rbp),%eax 17: 83 e8 01 sub $0x1,%eax 1a: 48 63 c0 movslq %eax,%rax 1d: 48 b9 08 00 00 00 00 mov $0x8,%rcx 24: 00 00 00 27: 48 0f af c1 imul %rcx,%rax 2b: 48 89 45 d8 mov %rax,0xffffffffffffffd8(%rbp) 2f: 48 8b 45 d8 mov 0xffffffffffffffd8(%rbp),%rax 33: 48 89 c7 mov %rax,%rdi 36: e8 00 00 00 00 callq 3b 3b: 48 89 45 e0 mov %rax,0xffffffffffffffe0(%rbp) 3f: 48 8b 45 e0 mov 0xffffffffffffffe0(%rbp),%rax 43: 48 8b 4d e8 mov 0xffffffffffffffe8(%rbp),%rcx 47: 48 89 08 mov %rcx,(%rax) 4a: 48 8b 45 e0 mov 0xffffffffffffffe0(%rbp),%rax 4e: 48 89 45 f8 mov %rax,0xfffffffffffffff8(%rbp) 52: 48 8b 45 f8 mov 0xfffffffffffffff8(%rbp),%rax 56: 48 83 c4 30 add $0x30,%rsp 5a: 5d pop %rbp 5b: c3 retq 5c: 66 data16 5d: 66 data16 5e: 66 data16 5f: 90 nop hashtabnew() when compiled with -O1: 0000000000000000 : 0: 55 push %rbp 1: 48 89 e5 mov %rsp,%rbp 4: 53 push %rbx 5: 48 83 ec 08 sub $0x8,%rsp 9: 48 89 f3 mov %rsi,%rbx c: 81 c7 ff ff ff 1f add $0x1fffffff,%edi 12: 89 f8 mov %edi,%eax 14: 48 89 c7 mov %rax,%rdi 17: 48 c1 e7 03 shl $0x3,%rdi 1b: e8 00 00 00 00 callq 20 20: 48 89 18 mov %rbx,(%rax) 23: 48 83 c4 08 add $0x8,%rsp 27: 5b pop %rbx 28: 5d pop %rbp 29: c3 retq 2a: 66 data16 2b: 66 data16 2c: 90 nop 2d: 66 data16 2e: 66 data16 2f: 90 nop -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 17 13:41:09 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 17 Mar 2009 13:41:09 -0500 Subject: [LLVMbugs] [Bug 1362] alignment on malloc instruction is not codegened correctly In-Reply-To: Message-ID: <200903171841.n2HIf9Xr021100@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=1362 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #9 from Chris Lattner 2009-03-17 13:41:07 --- *** This bug has been marked as a duplicate of bug 715 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 17 14:36:43 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 17 Mar 2009 14:36:43 -0500 Subject: [LLVMbugs] [Bug 3829] Trivial piece of code misbehaves badly on FreeBSD/amd64 In-Reply-To: Message-ID: <200903171936.n2HJahiB024029@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3829 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Chris Lattner 2009-03-17 14:36:40 --- After several false starts, fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090316/075318.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 17 17:57:20 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 17 Mar 2009 17:57:20 -0500 Subject: [LLVMbugs] [Bug 3547] llvm2.5prerelease: configure requires flex In-Reply-To: Message-ID: <200903172257.n2HMvKd6000322@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3547 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nlewycky at google.com Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from Nick Lewycky 2009-03-17 17:57:19 --- 2.5 was released without this patch. When released, 2.6 will not require flex except for llvm-test. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 17 18:45:09 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 17 Mar 2009 18:45:09 -0500 Subject: [LLVMbugs] [Bug 3779] sign extension bahaviour is different from gcc In-Reply-To: Message-ID: <200903172345.n2HNj9vw002251@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3779 Rafael ??vila de Esp??ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #20 from Rafael ??vila de Esp??ndola 2009-03-17 18:45:08 --- Fixed on rev 67132. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 17 18:58:52 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 17 Mar 2009 18:58:52 -0500 Subject: [LLVMbugs] [Bug 3806] LSR is not APInt-aware In-Reply-To: Message-ID: <200903172358.n2HNwq8G002922@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3806 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Chris Lattner 2009-03-17 18:58:51 --- Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090316/075342.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 17 19:32:05 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 17 Mar 2009 19:32:05 -0500 Subject: [LLVMbugs] [Bug 3807] deadarg elimination produces bogus IR In-Reply-To: Message-ID: <200903180032.n2I0W5F7004084@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3807 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2009-03-17 19:32:05 --- Fixed thanks: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090316/075347.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 18 06:13:45 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 18 Mar 2009 06:13:45 -0500 Subject: [LLVMbugs] [Bug 3831] New: miscompilation with loop index splitting and shorts Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3831 Summary: miscompilation with loop index splitting and shorts Product: libraries Version: 2.5 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Loop Optimizer AssignedTo: unassignedbugs at nondot.org ReportedBy: jay.foad at antixlabs.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2724) --> (http://llvm.org/bugs/attachment.cgi?id=2724) source file With the attached source file I get: $ llvm-gcc -emit-llvm -c loop.c ; lli loop.o ; echo $? 0 which is correct: f() returns 0 because there is no j in [0..q] such that p + j == i (with i = 1, q = 2, p = 3). At -O2 I get: $ llvm-gcc -O2 -emit-llvm -c loop.c ; lli loop.o ; echo $? 3 which is wrong. The disassembly of f() (inlined into g()) is: define i32 @g(i16 zeroext %i) nounwind readonly { entry: %0 = zext i16 %i to i32 ; [#uses=2] %1 = load i32* @q, align 4 ; [#uses=1] %lisplit2 = icmp ugt i32 %0, %1 ; [#uses=1] br i1 %lisplit2, label %bb2.i, label %bb1.i bb1.i: ; preds = %entry %2 = mul i32 %0, 3 ; [#uses=1] ret i32 %2 bb2.i: ; preds = %entry ret i32 0 } so it's going to return (unsigned int)i > q ? 0 : (unsigned int)i * 3 This seems wrong because now there is absolutely no mention of p! I assume, because of the %lisplit2 variable, that this is something to do with loop index splitting. If I replace "short" with "int" throughout the source file, the bug goes away. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 18 09:07:20 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 18 Mar 2009 09:07:20 -0500 Subject: [LLVMbugs] [Bug 3833] New: asm-with-cpp vs.# comments Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3833 Summary: asm-with-cpp vs.# comments Product: clang Version: unspecified Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: preprocessor AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pawel.worach at gmail.com CC: llvmbugs at cs.uiuc.edu Looks like # comments in asm-with-cpp sources on a line by themselves get parsed like preprocessing directives. 0>root at one /tmp# cat t.S /* * Trampoline used to call read from within boot1. */ nread: xor %ax,%ax # Sector offset in partition nread.1: mov $MEM_BUF,%bx # Transfer buffer add 0x8(%si),%ax # Get mov 0xa(%si),%cx # LBA push %cs # Read from callw xread.1 # disk jnc return # If success, return mov $msg_read,%si # Otherwise, set the error # message and fall through to # the error routine 0>root at one /tmp# clang -E -o /dev/null t.S t.S:12:52: error: invalid preprocessing directive # message and fall through to ^ t.S:13:52: error: invalid preprocessing directive # the error routine ^ 2 diagnostics generated. 1>root at one /tmp# gcc -E -o /dev/null t.S 0>root at one /tmp# -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 18 10:42:05 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 18 Mar 2009 10:42:05 -0500 Subject: [LLVMbugs] [Bug 3834] New: x86 long double APInt <-> APFloat conversion wrong Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3834 Summary: x86 long double APInt <-> APFloat conversion wrong Product: new-bugs Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2727) --> (http://llvm.org/bugs/attachment.cgi?id=2727) testcase .ll On x86-linux, as the following testcase shows, converting an x86 long double to an i80 or vice-versa gives the wrong result. The bits seem to be displaced from their correct positions, perhaps an endianness problem? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 18 11:33:49 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 18 Mar 2009 11:33:49 -0500 Subject: [LLVMbugs] [Bug 3826] InstComb assert with vector shift In-Reply-To: Message-ID: <200903181633.n2IGXnAr017452@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3826 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Summary|InstComb assert with vector |InstComb assert with vector |shift and no MMX generated |shift --- Comment #4 from Chris Lattner 2009-03-18 11:33:48 --- Crash fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090316/075388.html Please include detailed information on how to reproduce the problem when you file a bug (e.g. saying to run instcombine on it). I don't think that the X86 backend has full support for vector shift matching. This is "documented" in lib/Target/X86/README-UNIMPLEMENTED.txt. If you're interested, it should be straight-forward to add. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 18 13:21:45 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 18 Mar 2009 13:21:45 -0500 Subject: [LLVMbugs] [Bug 3835] New: miscompilation of constant function returning a struct Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3835 Summary: miscompilation of constant function returning a struct Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: castet.matthieu at free.fr CC: llvmbugs at cs.uiuc.edu clang translate the C function "AVExtFloat av_dbl2ext(double d) __attribute__((const));" to "void @av_dbl2ext(%struct.AVExtFloat* noalias sret, double) readnone". But the handling of the const argument is wrong : the struct is pass as argument for output. So the function is no more const. Compiling the attached test case at -O3 remove the call to av_dbl2ext because of that. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 18 14:51:21 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 18 Mar 2009 14:51:21 -0500 Subject: [LLVMbugs] [Bug 3835] miscompilation of constant function returning a struct In-Reply-To: Message-ID: <200903181951.n2IJpLSm026108@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3835 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Daniel Dunbar 2009-03-18 14:51:20 --- Fixed here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090316/014134.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 18 16:00:47 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 18 Mar 2009 16:00:47 -0500 Subject: [LLVMbugs] [Bug 3833] asm-with-cpp vs.# comments In-Reply-To: Message-ID: <200903182100.n2IL0lfW029386@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3833 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2009-03-18 16:00:46 --- Fixed in r67236 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 18 17:07:34 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 18 Mar 2009 17:07:34 -0500 Subject: [LLVMbugs] [Bug 3837] New: llvm::sys::Path API is flawed Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3837 Summary: llvm::sys::Path API is flawed Product: libraries Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: System Library AssignedTo: unassignedbugs at nondot.org ReportedBy: daniel at zuster.org CC: llvmbugs at cs.uiuc.edu The llvm::sys::Path API has a number of flaws. Some but not all of these may be a matter of personal preference. :) 1. getBasename() is a poor name; it looks and sounds like basename() but is not basename(). 2. Appending a component to an empty path adds a separator. This is inconvenient, and I don't think useful. 3. Path should expose a method to create a temporary file in the platforms temporary file directory. It should include a method to include temporary files by name; such a method isn't safe but some clients require it. 4. Path::exists is a liar, just because a program can't access a path doesn't mean it doesn't exist. The Python path module implements a portable OS path interface which in my experience is quite clean and easy to use. I would recommend it as a reference. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 18 21:56:15 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 18 Mar 2009 21:56:15 -0500 Subject: [LLVMbugs] [Bug 3683] Testcase failure: CodeGen/Generic/vector-casts.ll In-Reply-To: Message-ID: <200903190256.n2J2uFnu009757@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3683 Mon P Wang changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Mon P Wang 2009-03-18 21:56:15 --- Added support to unary op to split a widen vector by extracting the valid part of the widen vector and do the split. Fixed in r67175. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 18 22:00:19 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 18 Mar 2009 22:00:19 -0500 Subject: [LLVMbugs] [Bug 3711] 8-byte vectors on ppc32 assert In-Reply-To: Message-ID: <200903190300.n2J30JI3009991@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3711 Mon P Wang changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Mon P Wang 2009-03-18 22:00:18 --- Fixed in r67175. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 18 23:03:29 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 18 Mar 2009 23:03:29 -0500 Subject: [LLVMbugs] [Bug 2561] flexible array member initializers generate error In-Reply-To: Message-ID: <200903190403.n2J43Tlr012223@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=2561 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #8 from Chris Lattner 2009-03-18 23:03:28 --- Doug's sema work seems to have fixed this! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 19 01:49:15 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 19 Mar 2009 01:49:15 -0500 Subject: [LLVMbugs] [Bug 3838] New: TableGen failures should include useful contextual information Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3838 Summary: TableGen failures should include useful contextual information Product: libraries Version: 2.5 Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: Transformation Utilities AssignedTo: unassignedbugs at nondot.org ReportedBy: just.s0m3.guy+llvmbugzilla at gmail.com CC: llvmbugs at cs.uiuc.edu Currently, when you have an error in a .td file, TableGen fails completely silently in most cases. Sometimes it outputs the 'pattern' which caused the error. When TableGen fails, it should report the reason for the failure, along with a line number and file name for the error source. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 19 01:51:48 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 19 Mar 2009 01:51:48 -0500 Subject: [LLVMbugs] [Bug 3839] New: TableGen should allow inclusion of c header files Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3839 Summary: TableGen should allow inclusion of c header files Product: libraries Version: 2.5 Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: Transformation Utilities AssignedTo: unassignedbugs at nondot.org ReportedBy: just.s0m3.guy+llvmbugzilla at gmail.com CC: llvmbugs at cs.uiuc.edu Currently, many 'enums' must be kept manually in sync between .td files and c++ header files. It would be very useful if TableGen would allow c/cpp header files to be included, and allow enum or constant names to be used in record definitions. For example, instruction opcodes and condition codes. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 19 03:16:44 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 19 Mar 2009 03:16:44 -0500 Subject: [LLVMbugs] [Bug 3840] New: [sema] invalid conflicting types error Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3840 Summary: [sema] invalid conflicting types error Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Semantic Analyzer AssignedTo: unassignedclangbugs at nondot.org ReportedBy: daniel at zuster.org CC: clattner at apple.com, llvmbugs at cs.uiuc.edu, dgregor at apple.com clang rejects the following code it should accept; this is a regression since one or two days ago. -- ddunbar at frank:tmp$ cat t.c void f0 (unsigned short a0); extern __typeof (f0) f1; extern __typeof (f1) f1; ddunbar at frank:tmp$ clang t.c t.c:3:22: error: conflicting types for 'f1' extern __typeof (f1) f1; ^ t.c:2:22: note: previous declaration is here extern __typeof (f0) f1; ^ 2 diagnostics generated. -- -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 19 03:33:05 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 19 Mar 2009 03:33:05 -0500 Subject: [LLVMbugs] [Bug 3818] [irgen] missing alias definition In-Reply-To: Message-ID: <200903190833.n2J8X53Y032662@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3818 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Daniel Dunbar 2009-03-19 03:33:03 --- Fixed here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090316/014210.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 19 03:49:41 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 19 Mar 2009 03:49:41 -0500 Subject: [LLVMbugs] [Bug 3841] New: clang's stdint.h is found before platform stdint.h Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3841 Summary: clang's stdint.h is found before platform stdint.h Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: preprocessor AssignedTo: unassignedclangbugs at nondot.org ReportedBy: daniel at zuster.org CC: llvmbugs at cs.uiuc.edu Is this intentional? This breaks glib, in the following roundabout fashion: -- ddunbar at frank:tmp$ echo "#include " | clang -E -x c - | grep flexarr char name __flexarr; ddunbar at frank:tmp$ echo "#include " | gcc -E -x c - | grep flexarr -- (__flexarr is a define coming from sys/cdefs.h) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 19 04:37:57 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 19 Mar 2009 04:37:57 -0500 Subject: [LLVMbugs] [Bug 3842] New: PrologEpilogInserter:: replaceFrameIndices reads past first instruction in basic block when FrameSetupOpode is first instruction in basic block Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3842 Summary: PrologEpilogInserter::replaceFrameIndices reads past first instruction in basic block when FrameSetupOpode is first instruction in basic block Product: libraries Version: 2.5 Platform: PC OS/Version: All Status: NEW Severity: major Priority: P2 Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: just.s0m3.guy+llvmbugzilla at gmail.com CC: llvmbugs at cs.uiuc.edu If the first instruction in a given basic block is either the FrameSetupOpcode or the FrameDestroyOpcode, the replaceFrameIndices method of the PEI class fails. This only occurs on x86/ARM/... when reservedCallFrames are not available. Before the call to TRI.eliminateFramePseudoInstr, the method attempts to store a reference to the current point in the instruction stream by getting the previous instruction. If there are no instructions prior the Frame*Opcode, this crashes with an assertion in llvm::ilist_iterator: llc: .../llvm/include/llvm/ADT/ilist.h:173: llvm::ilist_iterator& llvm::ilist_iterator::operator--() [with NodeTy = llvm::MachineInstr]: Assertion `Traits::getNext(NodePtr) && "--'d off the beginning of an ilist!"' failed. 0 llc 0x00000000010ec0ef 1 llc 0x00000000010ec41d 2 libc.so.6 0x0000000000032270 3 libc.so.6 0x00000000000321e5 gsignal + 53 4 libc.so.6 0x0000000000033703 abort + 387 5 libc.so.6 0x000000000002b229 __assert_fail + 233 6 llc 0x00000000004c2baf llvm::ilist_iterator::operator--() + 127 7 llc 0x00000000004c5cfb llvm::ilist_iterator llvm::prior >(llvm::ilist_iterator) + 27 8 llc 0x0000000000d8e9b6 9 llc 0x0000000000d8d522 10 llc 0x00000000004b22a1 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 65 11 llc 0x0000000001038aaa llvm::FPPassManager::runOnFunction(llvm::Function&) + 346 12 llc 0x0000000001039224 llvm::FunctionPassManagerImpl::run(llvm::Function&) + 164 13 llc 0x000000000103935e llvm::FunctionPassManager::run(llvm::Function&) + 190 14 llc 0x0000000000412c20 main + 3808 15 libc.so.6 0x000000000001e5c6 __libc_start_main + 230 16 llc 0x0000000000410559 atan + 241 The following test case illustrates this issue: [code] #include void test(char* const m) { printf(m); } int main() { while(1) test("test"); } [/code] To induce this failure with the x86 backend, modify X86RegisterInfo::hasReservedCallFrame to always return false. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From pl at imm.dtu.dk Thu Mar 19 07:57:37 2009 From: pl at imm.dtu.dk (Per Larsen) Date: Thu, 19 Mar 2009 13:57:37 +0100 Subject: [LLVMbugs] Problems with AutoRegen.sh under Ubuntu 8.10 Message-ID: <1237467457.19571.9.camel@per-desktop> Hi, I'm trying to set up a sample project outside the llvm folder hierarchy which should be possible according to http://llvm.org/docs/Projects.html Unfortunately, I've run into a few problems while following the guide. First of all, my systems version of autoconf is 2.61 but the version check in AutoRegen.sh will only accept versions 2.5x even though 2.61 is a later version. Secondly, the code which prompts for the location of the llvm distribution runs in an endless loop without collecting input - thus making it impossible for the user to enter a directory name. I'm attaching a patch with the changes I've made to llvm/projects/sample/AutoRegen.sh to make it work as expected. Regards Per Larsen Ph.D. student DTU Informatics Technical University of Denmark dtu Department of Informatics and Mathematical Modeling Richard Petersens Plads Building 322 2800 kgs. Lyngby Direct +45 45253745 pl at imm.dtu.dk www.imm.dtu.dk -------------- next part -------------- A non-text attachment was scrubbed... Name: AutoRegen.patch Type: text/x-patch Size: 414 bytes Desc: not available Url : http://lists.cs.uiuc.edu/pipermail/llvmbugs/attachments/20090319/f16d7b63/attachment.bin From bugzilla-daemon at cs.uiuc.edu Thu Mar 19 12:16:03 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 19 Mar 2009 12:16:03 -0500 Subject: [LLVMbugs] [Bug 3842] PrologEpilogInserter:: replaceFrameIndices reads past first instruction in basic block when FrameSetupOpode is first instruction in basic block In-Reply-To: Message-ID: <200903191716.n2JHG3KB021901@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3842 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2009-03-19 12:16:02 --- Fixed: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090316/075436.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 19 13:06:49 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 19 Mar 2009 13:06:49 -0500 Subject: [LLVMbugs] [Bug 2545] THUMB_DIV_MOD_BODY problem with standard arm assembler when building llvm-gcc frontend In-Reply-To: Message-ID: <200903191806.n2JI6ncR024600@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=2545 Misha Brukman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |brukman+llvm at gmail.com Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Misha Brukman 2009-03-19 13:06:48 --- Submitted Adam's patch with LLVM LOCAL markers; this was reviewed as well by Dale Johannesen on llvm-dev. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 19 13:17:16 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 19 Mar 2009 13:17:16 -0500 Subject: [LLVMbugs] [Bug 3840] [sema] invalid conflicting types error In-Reply-To: Message-ID: <200903191817.n2JIHGGd025326@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3840 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Douglas Gregor 2009-03-19 13:17:15 --- Fixed here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090316/014216.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 19 13:18:42 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 19 Mar 2009 13:18:42 -0500 Subject: [LLVMbugs] [Bug 3817] bad handling of "functions without prototype" In-Reply-To: Message-ID: <200903191818.n2JIIghq025420@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3817 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Douglas Gregor 2009-03-19 13:18:41 --- Almost! We really need to check (explicitly) whether the function type we have came from a typedef, because both K&R definitions and functions with prototypes will have 'R' be a FunctionProtoType. Fix committed here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090316/014216.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 19 13:45:37 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 19 Mar 2009 13:45:37 -0500 Subject: [LLVMbugs] [Bug 3845] New: Stale MachineInstruction pointer reference in replaceFrameIndices can cause certain frameindices to not be replaced Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3845 Summary: Stale MachineInstruction pointer reference in replaceFrameIndices can cause certain frameindices to not be replaced Product: libraries Version: 2.5 Platform: PC OS/Version: All Status: NEW Severity: major Priority: P2 Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: just.s0m3.guy+llvmbugzilla at gmail.com CC: llvmbugs at cs.uiuc.edu During traversal of the instruction iterator in order to locate and replace CallFramePseudo Instructions and instructions bearing FrameIndices, the replaceFrameIndices function stores a pointer to the current MachineInstr. (line 516 in http://llvm.org/viewvc/llvm-project/llvm/tags/RELEASE_25/lib/CodeGen/PrologEpilogInserter.cpp?annotate=65926) It then possibly performs the CallFramePseudoInstr elimination, possibly removing the instruction pointed to from the basic block. (Lines 524 to 542). It then loops over all operands of the MachineInstr pointed to by the stored pointer, in order to find and replace frame indices. (lines 546 to 569). This is a stale pointer. This stored pointer is no longer valid. A new pointer should be retrieved from the current iterator location. When the stale pointer is used, a sequence in which a frameindex appears in the instruction immediately following a CallFramePseudoInstr can result in the frameindex not being replaced, causing it to continue to exist all the way through to the AsmPrinter pass. To fix this issue, simply mov the assignment at line 516 to line 546. (Note also that the Register Scavenger is updated using this stale pointer as well - line 576). -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 19 13:55:47 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 19 Mar 2009 13:55:47 -0500 Subject: [LLVMbugs] [Bug 3846] New: PrologEpilogInserter:: replaceFrameIndices reads past last instruction in basic block Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3846 Summary: PrologEpilogInserter::replaceFrameIndices reads past last instruction in basic block Product: libraries Version: 2.5 Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: just.s0m3.guy+llvmbugzilla at gmail.com CC: llvmbugs at cs.uiuc.edu This bug is similar to bug 3842. In certain cases, the replaceFrameIndices walks off the end of the instruction iterator at line 573 of http://llvm.org/viewvc/llvm-project/llvm/tags/RELEASE_25/lib/CodeGen/PrologEpilogInserter.cpp?annotate=65926, due to an unchecked ++I. The solution is to check that I is not the end of the block before incrementing. I.e. replace line 573 with: if (DoIncr && BB->end != I) ++I; -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 19 17:02:17 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 19 Mar 2009 17:02:17 -0500 Subject: [LLVMbugs] [Bug 3645] clang incorrectly rejects "static int a; extern int a; " In-Reply-To: Message-ID: <200903192202.n2JM2HuH004072@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3645 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2009-03-19 17:02:16 --- Fixed here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090316/014230.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 19 19:36:25 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 19 Mar 2009 19:36:25 -0500 Subject: [LLVMbugs] [Bug 3618] misdiagnosis of scalar initializer for flexible array In-Reply-To: Message-ID: <200903200036.n2K0aP8j010211@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3618 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2009-03-19 19:36:24 --- Fixed here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090316/014241.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 20 00:03:32 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 20 Mar 2009 00:03:32 -0500 Subject: [LLVMbugs] [Bug 3839] TableGen should allow inclusion of c header files In-Reply-To: Message-ID: <200903200503.n2K53WJY023729@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3839 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #1 from Chris Lattner 2009-03-20 00:03:32 --- Sorry, but this would require building an entire C front-end into tblgen for this to work reasonably. I recommend defining these enums in the .td file and using a tblgen backend to produce the C header. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 20 00:08:58 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 20 Mar 2009 00:08:58 -0500 Subject: [LLVMbugs] [Bug 3846] PrologEpilogInserter:: replaceFrameIndices reads past last instruction in basic block In-Reply-To: Message-ID: <200903200508.n2K58w01024019@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3846 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2009-03-20 00:08:57 --- Applied here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090316/075474.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 20 00:26:51 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 20 Mar 2009 00:26:51 -0500 Subject: [LLVMbugs] [Bug 3847] New: excessive amount of startup time is spent in ld Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3847 Summary: excessive amount of startup time is spent in ld Product: tools Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: llvm-ar AssignedTo: unassignedbugs at nondot.org ReportedBy: daniel at zuster.org CC: llvmbugs at cs.uiuc.edu Even with the recent work to use an export map, LLVM tools are still spending an unreasonable amount of time in the dynamic linker on Linux. Over 2 million instructions just to print an error message: -- ddunbar at frank:tmp$ valgrind --tool=callgrind ~/llvm/Release-Asserts/bin/llvm-ar ==31810== Callgrind, a call-graph generating cache profiler. ==31810== Copyright (C) 2002-2008, and GNU GPL'd, by Josef Weidendorfer et al. ==31810== Using LibVEX rev 1884, a library for dynamic binary translation. ==31810== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP. ==31810== Using valgrind-3.4.1-Debian, a dynamic binary instrumentation framework. ==31810== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al. ==31810== For more details, rerun with: -v ==31810== ==31810== For interactive control, run 'callgrind_control -h'. llvm-ar: Not enough positional command line arguments specified! Must specify at least 2 positional arguments: See: /home/ddunbar/llvm/Release-Asserts/bin/llvm-ar --help ==31810== ==31810== Events : Ir ==31810== Collected : 2178896 ==31810== ==31810== I refs: 2,178,896 -- Here is the tools link line: -- g++ -I/home/ddunbar/llvm.trunk/include -I/home/ddunbar/llvm.trunk/tools/llvm-ar -DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O3 -fomit-frame-pointer -fPIC -Woverloaded-virtual -pedantic -Wall -W -Wwrite-strings -Wno-long-long -Wunused -Wno-unused-parameter -O3 -Wl,-R -Wl,/home/ddunbar/llvm.trunk/Release-Asserts/bin -Wl,-export-dynamic -L/home/ddunbar/llvm.trunk/Release-Asserts/lib -L/home/ddunbar/llvm.trunk/Release-Asserts/lib -Wl,--version-script=/home/ddunbar/llvm.trunk/autoconf/ExportMap.map -o /home/ddunbar/llvm.trunk/Release-Asserts/bin/llvm-ar /home/ddunbar/llvm.trunk/tools/llvm-ar/Release-Asserts/llvm-ar.o \ -lLLVMArchive -lLLVMBitReader -lLLVMCore -lLLVMSupport -lLLVMSystem -lpthread -ldl -lm -lelf -- and nm shows 2644 external symbols: -- ddunbar at frank:tmp$ nm --extern-only ~/llvm/Release-Asserts/bin/llvm-ar | wc -l 2644 -- -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 20 00:34:15 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 20 Mar 2009 00:34:15 -0500 Subject: [LLVMbugs] [Bug 3847] excessive amount of startup time is spent in ld In-Reply-To: Message-ID: <200903200534.n2K5YF3s025258@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3847 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Daniel Dunbar 2009-03-20 00:34:13 --- Ok, apparently this is just general C++ lameness on Linux. Gross. The mind boggles: -- ddunbar at frank:tmp$ cat t.c int main() { return 0; } ddunbar at frank:tmp$ gcc t.c && valgrind --tool=callgrind ./a.out ==22836== Callgrind, a call-graph generating cache profiler. ==22836== Copyright (C) 2002-2008, and GNU GPL'd, by Josef Weidendorfer et al. ==22836== Using LibVEX rev 1884, a library for dynamic binary translation. ==22836== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP. ==22836== Using valgrind-3.4.1-Debian, a dynamic binary instrumentation framework. ==22836== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al. ==22836== For more details, rerun with: -v ==22836== ==22836== For interactive control, run 'callgrind_control -h'. ==22836== ==22836== Events : Ir ==22836== Collected : 125977 ==22836== ==22836== I refs: 125,977 ddunbar at frank:tmp$ g++ t.c && valgrind --tool=callgrind ./a.out ==22845== Callgrind, a call-graph generating cache profiler. ==22845== Copyright (C) 2002-2008, and GNU GPL'd, by Josef Weidendorfer et al. ==22845== Using LibVEX rev 1884, a library for dynamic binary translation. ==22845== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP. ==22845== Using valgrind-3.4.1-Debian, a dynamic binary instrumentation framework. ==22845== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al. ==22845== For more details, rerun with: -v ==22845== ==22845== For interactive control, run 'callgrind_control -h'. ==22845== ==22845== Events : Ir ==22845== Collected : 1369136 ==22845== ==22845== I refs: 1,369,136 -- -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 20 02:00:47 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 20 Mar 2009 02:00:47 -0500 Subject: [LLVMbugs] [Bug 3848] New: ParseAST() had side effects on signal handlers Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3848 Summary: ParseAST() had side effects on signal handlers Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: AST AssignedTo: unassignedclangbugs at nondot.org ReportedBy: alexei.svitkine at gmail.com CC: llvmbugs at cs.uiuc.edu I'm not sure when this started to happen, but it didn't used to be the case before, but happens with current TOT. After calling ParseAST(), the signal handlers that my process had set using the signal() system call are no longer called. For instance, in the following sequence: signal(SIGBUS, gotsig); signal(SIGSEGV, gotsig); int z=*(int*)0; clang::ParseAST(...); My signal handler gets called. However in: signal(SIGBUS, gotsig); signal(SIGSEGV, gotsig); clang::ParseAST(...); int z=*(int*)0; It does not. Calling ParseAST() should not have this side-effect. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 20 03:30:48 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 20 Mar 2009 03:30:48 -0500 Subject: [LLVMbugs] [Bug 3849] New: in clang -E output Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3849 Summary: in clang -E output Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: preprocessor AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rdivacky at freebsd.org CC: llvmbugs at cs.uiuc.edu clang prints in clang -E output which perl does not like. witten /tmp# clang-driver -E void.c # 1 "void.c" # 1 "void.c" 1 # 1 "" 1 # 1 "void.c" 2 main() { } perl makedep script strips off known things like this: $sed \ -e '1d' \ -e '/^#.*/d' \ -e '/^#.*/d' \ -e '/^#.*/d' \ -e '/^#.*/d' \ -e '/^#.*/d' \ -e '/^#.*"-"/d' \ -e '/^#.*"\/.*\/"/d' \ -e '/: file path prefix .* never used$/d' \ -e 's#\.[0-9][0-9]*\.c#'"$file.c#" \ -e 's/^[ ]*#[ ]*line/#/' \ -e '/^# *[0-9][0-9]* *[".\/]/!d' \ -e 's/^.*"\(.*\)".*$/'$filebase'\$(OBJ_EXT): \1/' \ -e 's/^# *[0-9][0-9]* \(.*\)$/'$filebase'\$(OBJ_EXT): \1/' \ -e 's|: \./|: |' \ -e 's|\.c\.c|.c|' $uwinfix .cout .cerr the is not there. chris suggests it's the same as -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 20 12:13:44 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 20 Mar 2009 12:13:44 -0500 Subject: [LLVMbugs] [Bug 3850] New: clang: wrong diagnostic for typedefed union Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3850 Summary: clang: wrong diagnostic for typedefed union Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: edwintorok at gmail.com CC: llvmbugs at cs.uiuc.edu Testcase (preprocessed source attached) #define _GNU_SOURCE #include #include #include int foo(int fd, const struct sockaddr_in *sin) { return connect(fd, (const struct sockaddr*)sin, sizeof(struct sockaddr_in)); } $ clang foo.c foo.c:7:24: warning: passing 'struct sockaddr const *' discards qualifiers, expected '__CONST_SOCKADDR_ARG' (aka 'void *const') return connect(fd, (const struct sockaddr*)sin, sizeof(struct sockaddr_in)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 diagnostic generated. Without _GNU_SOURCE no diagnostic is generated. However __CONST_SOCKADDR_ARG is a typedefed union, and I don't see why it is not compatible, when one of its members is __const struct sockaddr *, which is exactly the type passed as parameter, and its certeainly not a void*. extern int connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len); typedef union { __const struct sockaddr *__restrict __sockaddr__; __const struct sockaddr_at *__restrict __sockaddr_at__; __const struct s ockaddr_ax25 *__restrict __sockaddr_ax25__; __const struct sockaddr_dl *__restrict __sockaddr_dl__; __const struct sockaddr_eon *__restric t __sockaddr_eon__; __const struct sockaddr_in *__restrict __sockaddr_in__; __const struct sockaddr_in6 *__restrict __sockaddr_in6__; __co nst struct sockaddr_inarp *__restrict __sockaddr_inarp__; __const struct sockaddr_ipx *__restrict __sockaddr_ipx__; __const struct sockadd r_iso *__restrict __sockaddr_iso__; __const struct sockaddr_ns *__restrict __sockaddr_ns__; __const struct sockaddr_un *__restrict __socka ddr_un__; __const struct sockaddr_x25 *__restrict __sockaddr_x25__; } __CONST_SOCKADDR_ARG __attribute__ ((__transparent_union__)); -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 20 15:15:27 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 20 Mar 2009 15:15:27 -0500 Subject: [LLVMbugs] [Bug 3851] New: misscompilation : INSTCOMBINE ITERATION generating undef ashr Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3851 Summary: misscompilation : INSTCOMBINE ITERATION generating undef ashr Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Global Analyses AssignedTo: unassignedbugs at nondot.org ReportedBy: castet.matthieu at free.fr CC: llvmbugs at cs.uiuc.edu $ cat mm2.c #include #define FILTER_SHIFT 15 int foo(int32_t val) { short dst; val = (val + (1<<(FILTER_SHIFT-1)))>>FILTER_SHIFT; dst = (unsigned)(val + 32768) > 65535 ? (val>>31) ^ 32767 : val; printf("%x\n", dst); } int main() { foo(0xb6a00000); } Building with clang, at -O0 it generate ffff8000 at -O3 it generate 7fff It seems to be because of : INSTCOMBINE ITERATION #0 on foo IC: Old = %shr4 = ashr i32 %shr, 31 ; [#uses=1] New = = ashr i32 %add, 32 ; [#uses=0] [...] IC: DCE: %shr48 = lshr i32 undef, 32 ; [#uses=0] IC: DCE: %shr4 = ashr i32 %add, 32 ; [#uses=0] where does the "ashr i32 %add, 32" comes from ? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 20 16:33:52 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 20 Mar 2009 16:33:52 -0500 Subject: [LLVMbugs] [Bug 3852] New: symbol relocation; llvm-gcc V. gcc Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3852 Summary: symbol relocation; llvm-gcc V. gcc Product: tools Version: 2.5 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: llvm-gcc AssignedTo: unassignedbugs at nondot.org ReportedBy: omineo at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2745) --> (http://llvm.org/bugs/attachment.cgi?id=2745) tarball with driver source/asm/llvm bc/binary for the file with the "bad" symbols I've compiled a module using llvm-gcc-4.2/llvm-2.5 and I've noticed that there are few symbols that are marked R_X86_64_PLT32 instead of R_X86_64_PC32. However, the same sources when compiled with gcc-4.1.2-8 do not have any R_X86_64_PLT32 typed symbols at all. The same set of flags are being used in both the cases, so I'm not sure why some symbols are getting tagged with R_X86_64_PLT32. More information: - All the files in the module include the following pragma: #pragma GCC visibility push(hidden) - the flags used for compilation (gcc-specific) -fno-strict-aliasing -fno-working-directory -gdwarf-2 -g3 -O2 -Wall -Werror -Wstrict-prototypes -fPIE -falign-functions=4 -falign-jumps=4 -falign-loops=4 -ffreestanding -fno-common -fno-omit-frame-pointer -fno-strength-reduce -march=x86-64 -mcmodel=small -minline-all-stringops -mno-red-zone -nostartfiles -nostdlib -Werror -Wno-unused-value -Wno-pointer-sign -Wno-strict-prototypes - Platform: x86-64/Ubuntu - Attachments: - tarball with driver source/asm/llvm bc for the file with the "bad" symbols Please let me know if you need more information. I could not really find much information about PLT/GOT and visibility and how the symbols are affected by them. So, I may be wrong and this might not be a bug. But, I'm just wondering about the difference in the symbols generated by gcc and llvm-gcc. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 20 17:41:30 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 20 Mar 2009 17:41:30 -0500 Subject: [LLVMbugs] [Bug 3851] misscompilation : INSTCOMBINE ITERATION generating undef ashr In-Reply-To: Message-ID: <200903202241.n2KMfUBr003832@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3851 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2009-03-20 17:41:29 --- Fixed: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090316/075497.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 21 00:44:42 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 21 Mar 2009 00:44:42 -0500 Subject: [LLVMbugs] [Bug 3838] TableGen failures should include useful contextual information In-Reply-To: Message-ID: <200903210544.n2L5igk3028595@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3838 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #1 from Chris Lattner 2009-03-21 00:44:42 --- You're right, please include examples of specific cases that are problematic. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 21 03:42:17 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 21 Mar 2009 03:42:17 -0500 Subject: [LLVMbugs] [Bug 3855] New: Checks for built-in functions make autoconf upset Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3855 Summary: Checks for built-in functions make autoconf upset Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Semantic Analyzer AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ed at 80386.nl CC: llvmbugs at cs.uiuc.edu Blocks: 3696 I've seen some breakage (zsh, python, etc) where autoconf compiles pieces of code that look like: void snprintf(); int main(int argc, char *argv[]) { snprintf(); } Unfortunately Clang returns the following: test.c:1:6: warning: incompatible redeclaration of library function 'snprintf' will be ignored void snprintf(); ^ test.c:1:6: note: 'snprintf' is a builtin with type 'int (char *, unsigned long, char const *, ...)' test.c:7:11: error: too few arguments to function call snprintf(); ~~~~~~~~ ^ 3 diagnostics generated. This means autoconf thinks snprintf() is not present. It also does this with memmove(), etc. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 21 04:45:50 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 21 Mar 2009 04:45:50 -0500 Subject: [LLVMbugs] [Bug 3810] [irgen[ O(N^2) algorithm in deferred decl generation In-Reply-To: Message-ID: <200903210945.n2L9joZC021843@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3810 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2009-03-21 04:45:47 --- Fixed with many patches, leading up to: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090316/014321.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 21 08:23:26 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 21 Mar 2009 08:23:26 -0500 Subject: [LLVMbugs] [Bug 3856] New: LLVM runs out of memory invoking functions under JIT Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3856 Summary: LLVM runs out of memory invoking functions under JIT Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Keywords: missing-feature Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: alexandre.hardy at gmail.com CC: llvmbugs at cs.uiuc.edu I get the error message: JIT: Ran out of space for generated machine code! I have written an application that generates millions of calls to a function that takes several arguments. The method runFunction creates a new Stub for each call to the function, because the function does not match any common predefined format. Each invocation differs slightly so new stubs are generated continuously. Eventually the JIT compiler is unable to generate more machine code. This problem occurs in LLVM 2.3, 2.4 and 2.5. I have not tried the SVN code. Proposed Solution: runFunction ends with a call to return runFunction(Stub, std::vector(); This line should be replaced by GenericValue ret=runFunction(Stub, std::vector(); freeMachineCodeForFunction(Stub); Stub->removeFromParent(); return ret; Perhaps better alternatives are possible. I am not extremely familiar with LLVM. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 21 13:26:52 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 21 Mar 2009 13:26:52 -0500 Subject: [LLVMbugs] [Bug 3858] New: interpreter doesn't suppose first-class aggregates Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3858 Summary: interpreter doesn't suppose first-class aggregates Product: libraries Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Interpreter AssignedTo: unassignedbugs at nondot.org ReportedBy: nicholas at mxc.ca CC: llvmbugs at cs.uiuc.edu The interpreter can't handle first class aggregates, such as in this example: @foo = global [5 x i8] c"12345" define i32 @main() { store [5 x i8] c"abcde", [5 x i8]* @foo ret i32 0 } The crash is caused when trying to convert the aggregate into a GenericValue. Here's the full stack trace: $ gdb llvm-commit/Debug/bin/lli (gdb) run --force-interpreter test.bc ERROR: Constant unimplemented for type: [5 x i8] [New Thread 0xf7c116d0 (LWP 30996)] Program received signal SIGABRT, Aborted. [Switching to Thread 0xf7c116d0 (LWP 30996)] 0xffffe425 in __kernel_vsyscall () (gdb) bt #0 0xffffe425 in __kernel_vsyscall () #1 0xf7c3e640 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #2 0xf7c40008 in *__GI_abort () at abort.c:88 #3 0x083f4e1d in llvm::ExecutionEngine::getConstantValue (this=0x8b82d18, C=0x8b820bc) at ExecutionEngine.cpp:702 #4 0x083e3844 in llvm::Interpreter::getOperandValue (this=0x8b82d18, V=0x8b820bc, SF=@0x8b83310) at Execution.cpp:1294 #5 0x083e52c8 in llvm::Interpreter::visitStoreInst (this=0x8b82d18, I=@0x8b82528) at Execution.cpp:842 #6 0x083efa0a in llvm::InstVisitor::visitStore ( this=0x8b82d18, I=@0x8b82528) at /home/nicholas/llvm-commit/include/llvm/Instruction.def:132 #7 0x083f01d2 in llvm::InstVisitor::visit ( this=0x8b82d18, I=@0x8b82528) at /home/nicholas/llvm-commit/include/llvm/Instruction.def:132 #8 0x083e88a3 in llvm::Interpreter::run (this=0x8b82d18) at Execution.cpp:1357 #9 0x083ea2a3 in llvm::Interpreter::runFunction (this=0x8b82d18, F=0x8b81620, ArgValues=@0xff8056a0) at Interpreter.cpp:100 #10 0x083f5e1f in llvm::ExecutionEngine::runFunctionAsMain (this=0x8b82d18, Fn=0x8b81620, argv=@0x8b7b684, envp=0xff8058a4) at ExecutionEngine.cpp:376 #11 0x08048f08 in main (argc=3, argv=0xff805894, envp=0xff8058a4) at lli.cpp:179 (gdb) up 5 #5 0x083e52c8 in llvm::Interpreter::visitStoreInst (this=0x8b82d18, I=@0x8b82528) at Execution.cpp:842 842 GenericValue Val = getOperandValue(I.getOperand(0), SF); (gdb) p I.getOperand(0)->dump() [5 x i8] c"abcde" $1 = void (gdb) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 21 19:27:38 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 21 Mar 2009 19:27:38 -0500 Subject: [LLVMbugs] [Bug 3850] clang: bogus transparent union diagnostic In-Reply-To: Message-ID: <200903220027.n2M0RcLO007394@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3850 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sharparrow1 at yahoo.com Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from Eli Friedman 2009-03-21 19:27:37 --- This is a symptom of the fact that the current transparent_union implementation is a hack. *** This bug has been marked as a duplicate of bug 2015 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 21 19:28:15 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 21 Mar 2009 19:28:15 -0500 Subject: [LLVMbugs] [Bug 3849] in clang -E output In-Reply-To: Message-ID: <200903220028.n2M0SFeI007461@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3849 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 22 07:14:22 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 22 Mar 2009 07:14:22 -0500 Subject: [LLVMbugs] [Bug 3860] New: SmallVector::insert(iterator I, InTy From, InTy To) is broken Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3860 Summary: SmallVector::insert(iterator I, InTy From, InTy To) is broken Product: libraries Version: 2.5 Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P2 Component: Support Libraries AssignedTo: unassignedbugs at nondot.org ReportedBy: llvm-bug at catchall.shelter13.net CC: llvmbugs at cs.uiuc.edu SmallVector insert triggers a debug validation failure with MSVC++, because it passes an invalid range to std::copy. Specifially, // Copy the existing elements that get replaced. std::copy(I, OldEnd-NumToInsert, I+NumToInsert); in template iterator insert(iterator I, ItTy From, ItTy To) passes an I > (OldEnd-NumToInsert) to std::copy, which would result in memory corruption at best. Simple test case to trigger it. const char * t = "Cannot load string"; // 01234567890123456789 const char * other = ">> \n"; // 012345 SmallVector test (t, t + 18); SmallVector::iterator it = test.end (); --it; test.insert (it, other, other + 4); Actually, any insert at begin () + N, with N 3..17 fails in that case, including at the end. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 22 14:23:22 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 22 Mar 2009 14:23:22 -0500 Subject: [LLVMbugs] [Bug 3860] SmallVector::insert(iterator I, InTy From, InTy To) is broken In-Reply-To: Message-ID: <200903221923.n2MJNMXd006379@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3860 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2009-03-22 14:23:21 --- Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090316/075518.html Plz verify, thanks! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 22 16:23:08 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 22 Mar 2009 16:23:08 -0500 Subject: [LLVMbugs] [Bug 3200] IRgen crash on alias of inline function In-Reply-To: Message-ID: <200903222123.n2MLN8FC012426@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3200 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2009-03-22 16:23:07 --- Fixed: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090316/014357.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 22 18:30:36 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 22 Mar 2009 18:30:36 -0500 Subject: [LLVMbugs] [Bug 3861] New: X86 only allocates one register for returning i8s, but two for other integer types Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3861 Summary: X86 only allocates one register for returning i8s, but two for other integer types Product: new-bugs Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: fvbommel at wxs.nl CC: llvmbugs at cs.uiuc.edu In X86CallingConv.td, there's the following bit of code at the start of RetCC_X86Common: ----- // Scalar values are returned in AX first, then DX. CCIfType<[i8] , CCAssignToReg<[AL]>>, CCIfType<[i16], CCAssignToReg<[AX, DX]>>, CCIfType<[i32], CCAssignToReg<[EAX, EDX]>>, CCIfType<[i64], CCAssignToReg<[RAX, RDX]>>, ----- There seems to be no reason why there is only a single register for i8 but two for other integer types. It's also inconsistent with the comment preceding it. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 23 00:56:22 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 23 Mar 2009 00:56:22 -0500 Subject: [LLVMbugs] [Bug 3848] ParseAST() had side effects on signal handlers In-Reply-To: Message-ID: <200903230556.n2N5uMKL004309@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3848 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Chris Lattner 2009-03-23 00:56:21 --- Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090323/075526.html I didn't go with your patch because of the overhead of std::map. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 23 06:41:23 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 23 Mar 2009 06:41:23 -0500 Subject: [LLVMbugs] [Bug 3797] initializer element is not a compile-time constant ( address of variable) In-Reply-To: Message-ID: <200903231141.n2NBfNSv032278@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3797 Philippe Coucaud changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #2 from Philippe Coucaud 2009-03-23 06:40:05 --- Douglas, I suspect you are using a 64-bit platform. When using gcc 4.2/4.3.2 on a 32-bit platform I don't get the error. This seems to be confirmed by the following piece of code extracted from the gcc source tree (gcc/varasm.c:initializer_constant_valid_p()): [...] /* Allow (int) &foo provided int is as wide as a pointer. */ if (INTEGRAL_TYPE_P (dest_type) && POINTER_TYPE_P (src_type) && (TYPE_PRECISION (dest_type) >= TYPE_PRECISION (src_type))) return initializer_constant_valid_p (src, endtype); [...] So I think that the initial snippet is not always ill-formed. Deciding whether clang should support this behaviour is of course another question. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 23 09:43:52 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 23 Mar 2009 09:43:52 -0500 Subject: [LLVMbugs] [Bug 3862] New: Invalid operand for inline asm constraint 'I'! Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3862 Summary: Invalid operand for inline asm constraint 'I'! Product: libraries Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P2 Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: ed at 80386.nl CC: llvmbugs at cs.uiuc.edu Blocks: 3696 After some experimenting with cross compilation to the ARM, I'm seeing this compiler error: Invalid operand for inline asm constraint 'I'! I suspect this is the offending macro: #define __with_interrupts_disabled(expr) \ do { \ u_int cpsr_save, tmp; \ \ __asm __volatile( \ "mrs %0, cpsr;" \ "orr %1, %0, %2;" \ "msr cpsr_all, %1;" \ : "=r" (cpsr_save), "=r" (tmp) \ : "I" (I32_bit | F32_bit) \ : "cc" ); \ (expr); \ __asm __volatile( \ "msr cpsr_all, %0" \ : /* no output */ \ : "r" (cpsr_save) \ : "cc" ); \ } while(0) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 23 10:28:40 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 23 Mar 2009 10:28:40 -0500 Subject: [LLVMbugs] [Bug 3863] New: clang should support ARM ABI Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3863 Summary: clang should support ARM ABI Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: daniel at zuster.org CC: llvmbugs at cs.uiuc.edu clang should support the ARM ABI (including va_args). -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 23 11:45:48 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 23 Mar 2009 11:45:48 -0500 Subject: [LLVMbugs] [Bug 3864] New: Infinite recursion in llc (assignRegOrStackSlotAtInterval) on test/CodeGen/X86/illegal-asm.ll Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3864 Summary: Infinite recursion in llc (assignRegOrStackSlotAtInterval) on test/CodeGen/X86/illegal-asm.ll Product: new-bugs Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu New failure in the testsuite, perhaps due to Evan's recent changes in this area? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 23 12:51:00 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 23 Mar 2009 12:51:00 -0500 Subject: [LLVMbugs] [Bug 3855] Checks for built-in functions make autoconf upset In-Reply-To: Message-ID: <200903231751.n2NHp0fB022016@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3855 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Douglas Gregor 2009-03-23 12:50:59 --- Fixed here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090323/014406.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 23 13:25:06 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 23 Mar 2009 13:25:06 -0500 Subject: [LLVMbugs] [Bug 3864] Infinite recursion in llc (assignRegOrStackSlotAtInterval) on test/CodeGen/X86/illegal-asm.ll In-Reply-To: Message-ID: <200903231825.n2NIP6iU023464@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3864 Evan Cheng changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Evan Cheng 2009-03-23 13:25:05 --- Fixed. http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090323/075545.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 23 13:25:46 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 23 Mar 2009 13:25:46 -0500 Subject: [LLVMbugs] [Bug 3391] infinite recursion in RALinScan::assignRegOrStackSlotAtInterval In-Reply-To: Message-ID: <200903231825.n2NIPklU023521@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3391 Evan Cheng changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Evan Cheng 2009-03-23 13:25:46 --- Fixed. http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090323/075545.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 23 13:51:14 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 23 Mar 2009 13:51:14 -0500 Subject: [LLVMbugs] [Bug 2605] Fail to build AsmParser without bison on Win32 In-Reply-To: Message-ID: <200903231851.n2NIpENw024912@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=2605 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2009-03-23 13:51:14 --- the bison asmparser is gone. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 23 16:26:05 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 23 Mar 2009 16:26:05 -0500 Subject: [LLVMbugs] [Bug 3834] x86 long double APInt <-> APFloat conversion wrong In-Reply-To: Message-ID: <200903232126.n2NLQ5fP030965@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3834 Dale Johannesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Dale Johannesen 2009-03-23 16:26:04 --- Fixed here for llvm and llvm-gcc: http://llvm.org/viewvc/llvm-project?view=rev&revision=67562 http://llvm.org/viewvc/llvm-project?view=rev&revision=67563 It's possible clang needs something too but I did a quick scan and didn't see an obvious place. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 23 17:58:36 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 23 Mar 2009 17:58:36 -0500 Subject: [LLVMbugs] [Bug 2866] fast-isel triggers infinite loop in linearscan In-Reply-To: Message-ID: <200903232258.n2NMwago003175@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=2866 Evan Cheng changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Evan Cheng 2009-03-23 17:58:35 --- Fixed. http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090323/075563.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 23 18:20:05 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 23 Mar 2009 18:20:05 -0500 Subject: [LLVMbugs] [Bug 3867] New: PowerPC build of LLVM is failing on Mac OSX 10.4.11 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3867 Summary: PowerPC build of LLVM is failing on Mac OSX 10.4.11 Product: new-bugs Version: unspecified Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: jlerouge at apple.com CC: llvmbugs at cs.uiuc.edu On rev 67548, Mac OS X 10.4.11: $ ./configure --enable-optimized ... $ make VERBOSE=1 ... llvm[3]: Linking Release Loadable Module LLVMHello.dylib g++ -I/Users/buildbot/buildbot/llvm-src/include -I/Users/buildbot/buildbot/llvm-src/lib/Transforms/Hello -I/Users/buildbot/buildbot/llvm/llvm-build/include -I/Users/buildbot/buildbot/llvm/llvm-build/lib/Transforms/Hello -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O3 -fno-exceptions -fno-common -Woverloaded-virtual -mmacosx-version-min=10.4 -pedantic -Wall -W -Wwrite-strings -Wno-long-long -Wunused -Wno-unused-parameter -fstrict-aliasing -Wstrict-aliasing -O3 -module -L/Users/buildbot/buildbot/llvm/llvm-build/Release/lib -L/Users/buildbot/buildbot/llvm/llvm-build/Release/lib -Wl,-flat_namespace -Wl,-undefined -Wl,suppress -Wl,-dylib -mmacosx-version-min=10.4 -o /Users/buildbot/buildbot/llvm/llvm-build/Release/lib/LLVMHello.dylib /Users/buildbot/buildbot/llvm/llvm-build/lib/Transforms/Hello/Release/Hello.o \ /usr/bin/ld: /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../crt1.o LC_LOAD_DYLINKER load command in object file (should not be in an input file to the link editor for the output file type MH_DYLIB) collect2: ld returned 1 exit status make[3]: *** [/Users/buildbot/buildbot/llvm/llvm-build/Release/lib/LLVMHello.dylib] Error 1 make[2]: *** [Hello/.makeall] Error 2 Running the same command with -v: Guess it's related to the removal of libtool ? Thanks, Julien -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 23 19:32:59 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 23 Mar 2009 19:32:59 -0500 Subject: [LLVMbugs] [Bug 3868] New: "initializer element is not a compile-time constant" for " &a + 4" but not "&a[4]" Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3868 Summary: "initializer element is not a compile-time constant" for "&a + 4" but not "&a[4]" Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Semantic Analyzer AssignedTo: unassignedclangbugs at nondot.org ReportedBy: kremenek at apple.com CC: llvmbugs at cs.uiuc.edu Clang allows '&a[4]' to be treated as a compile-time constant but not '&a + 4': $ cat test.c struct foo { unsigned long x; }; extern char a[]; struct foo b = { (unsigned long)&a + 4 }; struct foo c = { (unsigned long)&a[4] }; $ clang test.c test.c:7:16: error: initializer element is not a compile-time constant struct foo b = { ^ I've seen this occur in real C code. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 23 20:06:44 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 23 Mar 2009 20:06:44 -0500 Subject: [LLVMbugs] [Bug 3861] X86 only allocates one register for returning i8s, but two for other integer types In-Reply-To: Message-ID: <200903240106.n2O16i93008933@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3861 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gohman at apple.com Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Dan Gohman 2009-03-23 20:06:44 --- I was convinced that this is ok. Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090323/075568.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 23 20:15:10 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 23 Mar 2009 20:15:10 -0500 Subject: [LLVMbugs] [Bug 3868] "initializer element is not a compile-time constant" for "&a + 4 " but not "&a[4]" In-Reply-To: Message-ID: <200903240115.n2O1FAMZ009366@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3868 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Eli Friedman 2009-03-23 20:15:10 --- Fixed in r67593. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 23 20:38:21 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 23 Mar 2009 20:38:21 -0500 Subject: [LLVMbugs] [Bug 3396] Crash in Sema with non-constant offsetof In-Reply-To: Message-ID: <200903240138.n2O1cL8b011099@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3396 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Eli Friedman 2009-03-23 20:38:20 --- This was fixed in r65622. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 23 20:42:05 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 23 Mar 2009 20:42:05 -0500 Subject: [LLVMbugs] [Bug 3420] clang: unsupported machine mode 'TI' In-Reply-To: Message-ID: <200903240142.n2O1g57K011457@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3420 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Eli Friedman 2009-03-23 20:42:05 --- There's still more work to be done for the mode attribute, but all the given cases now parse without errors. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 23 20:50:26 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 23 Mar 2009 20:50:26 -0500 Subject: [LLVMbugs] [Bug 3184] Elaborated type specifiers in argument lists/return types aren' t declarations In-Reply-To: Message-ID: <200903240150.n2O1oQav012241@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3184 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sharparrow1 at yahoo.com Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #1 from Eli Friedman 2009-03-23 20:50:26 --- Seems to work with trunk clang. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 24 06:02:58 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 24 Mar 2009 06:02:58 -0500 Subject: [LLVMbugs] [Bug 3869] New: Assertion failed when compiling Ruby 1.9.1-p0 on FreeBSD Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3869 Summary: Assertion failed when compiling Ruby 1.9.1-p0 on FreeBSD Product: libraries Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: major Priority: P2 Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: roberto at freebsd.org CC: llvmbugs at cs.uiuc.edu Using llvm from trunk at revision 67301. clang version 1.0 based upon llvm 2.6svn hosted on amd64-portbld-freebsd7.1 Using clang-driver to compile Ruby 1.9.1-p0 from ports (lang/ruby19), I get this while compiling vm.c: clang-driver -O -pipe -O2 -g -Wall -Wno-parentheses -fPIC -I. -I.ext/include/amd64-freebsd7 -I./include -I. -DRUBY_EXPORT -o vm.o -c vm.c In file included from vm.c:16: ./vm_core.h:542:4: warning: 'fastcall' attribute only applies to function types (FUNC_FASTCALL(*rb_insn_func_t))(rb_thread_t *, rb_control_frame_t *); ^ .ext/include/amd64-freebsd7/ruby/config.h:53:42: note: instantiated from: #define FUNC_FASTCALL(x) __attribute__ ((fastcall)) x ^ Assertion failed: (castIsValid(getOpcode(), S, Ty) && "Illegal PtrToInt"), function PtrToIntInst, file Instructions.cpp, line 2463. Stack dump: 0. Program arguments: /local/local/bin/clang -S -disable-free --relocation-model pic --disable-fp-elim --unwind-tables=1 --fmath-errno=1 -DRUBY_EXPORT -I. -I.ext/include/amd64-freebsd7 -I./include -I. -g -O1 -arch x86_64 -o /tmp/cc-yeUTWQ.s -x c vm.c 1. parser at end of file 2. Per-file LLVM IR generation 3. ./vm_exec.c:39:1: LLVM IR generation of compound statement ('{}') *** Error code 250 Stop in /data/work/obj/data/work/ports/lang/ruby19/work/ruby-1.9.1-p0. sed: /data/work/obj/data/work/ports/lang/ruby19/work/ruby-1.9.1-p0/rbconfig.rb: No such file or directory *** Error code 1 Stop in /data/work/ports/lang/ruby19. *** Error code 1 Stop in /data/work/ports/lang/ruby19. I get the same error using the ruby 1.9/trunk -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 24 06:52:16 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 24 Mar 2009 06:52:16 -0500 Subject: [LLVMbugs] [Bug 3870] New: Testsuite not setup for LLVM (and non-Apple Platforms) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3870 Summary: Testsuite not setup for LLVM (and non-Apple Platforms) Product: Test Suite Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: major Priority: P2 Component: DejaGNU AssignedTo: unassignedbugs at nondot.org ReportedBy: rob1weld at aol.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2751) --> (http://llvm.org/bugs/attachment.cgi?id=2751) Result of "make -i check" for 'llvm-gcc' 4.2.1 The Testsuite not setup for LLVM and non-Apple Platforms such as Debian Linux. I obtained the Trunk for LLVM (and it's accompanying gcc 4.2.1) and found various problems compiling it on Debian Lenny 5.0. There are too many patches to create 'llvm-gcc' from FSF's gcc-4_2-branch (dated 20070719) (both "APPLE LOCAL" and "LLVM LOCAL") that it will be difficult to make a direct comparison between 'llvm-gcc' and (un-modified) 'gcc'. It would be better to separate the LLVM and Apple patches from each other so they can be applied to newer versions of FSF's gcc . Your choice of 4.2.1 is really great as it is quite stable but you will have a nightmare trying to "diff and patch" your changes to gcc 4.4 . The biggest problem may be that when you run the Testsuite Mailer ("../llvm-gcc-4.2_trunk/contrib/test_summary") it will send mail to the FSF's gcc mailing list at: gcc-testresults at gcc.gnu.org . That may not be appreciated since your 'gcc' is 4.2.1 (too old) _and_ it is modified. Unless the LLVM people look there they will not even see the Testsuite Results. Along these same lines when your 'llvm-gcc' crashes it says to use http://developer.apple.com/bugreporter as the address to report Bugs (instead of here at http://llvm.org/bugs/ ). Apple only wants Bug Reports for it's _un-modified_ gcc for Apple's Operating Systems (and not LLVM Bug Reports for Linux Platforms such as Debian). I had little luck in getting Ada to compile and so I ommited it from the "--enable-languages=" list (I did read: ../docs/GCCFEBuildInstrs.html ). # uname -a Linux debian 2.6.29-rc8-686 #1 SMP Sat Mar 21 06:26:18 UTC 2009 i686 GNU/Linux # gcc/xgcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../llvm-gcc-4.2_trunk/configure --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --build=i686-pc-linux-gnu --prefix=/mnt/drive2/llvm-gcc/llvm-gcc-4.2_trunk_obj/../install --program-prefix=llvm- --enable-llvm=/mnt/drive2/llvm-gcc/install --enable-languages=c,c++,fortran,java,objc,obj-c++ --enable-multilib --enable-stage1-checking=assert --enable-checking=release --with-arch=k8 --with-gmp=/usr/local --with-mpfr=/usr/local : (reconfigured) ../llvm-gcc-4.2_trunk/configure --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --build=i686-pc-linux-gnu --prefix=/mnt/drive2/llvm-gcc/llvm-gcc-4.2_trunk_obj/../install --program-prefix=llvm- --enable-llvm=/mnt/drive2/llvm-gcc/install --enable-languages=c,c++,fortran,objc,obj-c++ --enable-multilib --enable-stage1-checking=assert --enable-checking=release --with-arch=k8 --with-gmp=/usr/local --with-mpfr=/usr/local Thread model: posix gcc version 4.2.1 (Based on Apple Inc. build 5643) (LLVM build) I am enclosing the Testsuite Results (from "make -i check"). Many of the failures are due to "Testsuite Failures" and not problems with 'llvm-gcc' (mostly due to assuming that 'llvm-gcc' is to be executed on a "*-*-Darwin" Platform). Best of luck with your Project, Rob -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 24 10:38:49 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 24 Mar 2009 10:38:49 -0500 Subject: [LLVMbugs] [Bug 3797] GNU compatibility: address of variable is not a compile-time constant In-Reply-To: Message-ID: <200903241538.n2OFcn2v001584@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3797 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID --- Comment #8 from Chris Lattner 2009-03-24 10:38:47 --- This case (cast of pointer to int on x86-64 machine) should not be accepted. Please see: http://www.srcf.ucam.org/~jsm28/gcc/ for more than you ever wanted to know about constant expressions. The fix is to change the code to cast to long instead of int. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 24 10:59:16 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 24 Mar 2009 10:59:16 -0500 Subject: [LLVMbugs] [Bug 3872] New: parse-noop failure Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3872 Summary: parse-noop failure Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: parser AssignedTo: unassignedclangbugs at nondot.org ReportedBy: daniel at zuster.org CC: llvmbugs at cs.uiuc.edu The following code fails to parse with parse-noop: -- ddunbar at 67-218-107-93:tmp$ cat t.c struct s0 { char c; }; void f0(void) { int len = ((((__builtin_offsetof(struct s0, c))) - 1) & ~(((__builtin_offsetof(struct s0, c))) - 1)); } ddunbar at 67-218-107-93:tmp$ clang -fsyntax-only /tmp/t.c ddunbar at 67-218-107-93:tmp$ clang -fsyntax-only /tmp/t.c -Xclang -parse-noop /tmp/t.c:4:56: error: expected expression ~(((__builtin_offsetof(struct s0, c))) - 1)); ^ 1 diagnostic generated. -- -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 24 12:21:22 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 24 Mar 2009 12:21:22 -0500 Subject: [LLVMbugs] [Bug 3873] New: The check/view/write-graph commands need some Bug repair / Documentation Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3873 Summary: The check/view/write-graph commands need some Bug repair / Documentation Product: tools Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: minor Priority: P2 Component: llvmc AssignedTo: unassignedbugs at nondot.org ReportedBy: rob1weld at aol.com CC: llvmbugs at cs.uiuc.edu # uname -a Linux debian 2.6.29-rc8-686 #1 SMP Sat Mar 21 06:26:18 UTC 2009 i686 GNU/Linux # llvmc --version Low Level Virtual Machine (http://llvm.org/): llvm version 2.6svn DEBUG build with assertions. Built Mar 22 2009(22:49:16). The Documentation on pages: file:/// */llvm-2.5/docs/CompilerDriver.html or file:///mnt/drive2/llvm-gcc/install/docs/llvm/html/CompilerDriver.html is a little short on info about the '-*-graph' commands such as these: # llvmc --help-hidden | grep graph -check-graph - Check the compilation graph for errors -view-graph - Show compilation graph in GhostView -write-graph - Write compilation-graph.dot file If I use '-check-graph' it prints nothing (I guess that is supposed to be good). Since '-check-graph' does not compile and only checks it might be better to print that everything is OK than to be silent. If I use '-view-graph' the result is impressive, but the top is a little squished and the left edge is cutoff a little. The end result is a little less than a "Quality graphic" suitable for presentation. If I use '-write-graph' then 'llvmc' writes a '.dot' file that is zero bytes long, the correct file is stuck in the /tmp directory. # llvmc -v --write-graph -o test_delete test_delete.c Writing '/tmp/llvm_fBIm3t/compilation-graph.dot'... done. debian:/mnt/drive2/llvm-gcc# ls -l compilation-graph.dot -rw-r--r-- 1 root root 0 2009-03-24 09:57 compilation-graph.dot # ls -l /tmp/llvm_fBIm3t/compilation-graph.dot -rw-r--r-- 1 root root 2648 2009-03-24 09:57 /tmp/llvm_fBIm3t/compilation-graph.dot The 'llvmc' program need to properly copy the temporary files into the current directory. It names the Graph "unnamed" so you would need to edit the file manually to combine multiple Graphs. It would be useful if '-write-graph' command accepted a parameter for a filename so you could have more than one Graph per directory. The name used could also apply to the "digraph unnamed {" command used on the first line of the output. Thanks, Rob -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 24 15:33:49 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 24 Mar 2009 15:33:49 -0500 Subject: [LLVMbugs] [Bug 3845] Stale MachineInstruction pointer reference in replaceFrameIndices can cause certain frameindices to not be replaced In-Reply-To: Message-ID: <200903242033.n2OKXnsp017412@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3845 Evan Cheng changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Evan Cheng 2009-03-24 15:33:48 --- Thanks. Fixed. http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090323/075592.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 24 16:21:57 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 24 Mar 2009 16:21:57 -0500 Subject: [LLVMbugs] [Bug 3874] New: infloop in instcombine Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3874 Summary: infloop in instcombine Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu This code triggers an infinite loop if run through opt -instcombine: define i1 @test(i32 %x) { %A = lshr i32 3968, %x %B = and i32 %A, 1 %C = icmp eq i32 %B, 0 ret i1 %C } This is blocking builds of llvm-gcc on Linux. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 24 19:15:02 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 24 Mar 2009 19:15:02 -0500 Subject: [LLVMbugs] [Bug 3872] parse-noop failure In-Reply-To: Message-ID: <200903250015.n2P0F2UW029899@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3872 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dgregor at apple.com Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2009-03-24 19:15:01 --- Fixed here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090323/014486.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 24 19:29:41 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 24 Mar 2009 19:29:41 -0500 Subject: [LLVMbugs] [Bug 3874] infloop in instcombine In-Reply-To: Message-ID: <200903250029.n2P0TfCi031271@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3874 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2009-03-24 19:29:40 --- This should fix it, sorry for the breakage! http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090323/075608.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 24 21:00:08 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 24 Mar 2009 21:00:08 -0500 Subject: [LLVMbugs] [Bug 3877] New: ARM: error when running JIT compiler Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3877 Summary: ARM: error when running JIT compiler Product: libraries Version: 2.5 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: thebohemian at gmx.net CC: llvmbugs at cs.uiuc.edu The IcedTea projects' so called Shark port of the Hotspot JVM uses LLVM. When running a not so trivial application I get the following error: root at beagleboard:~# java -cp bsh.jar bsh.Interpreter Cannot yet select: 0x92b08: i32,ch = AtomicCmpSwap 0x920e4, 0x92860, 0x92ca0, 0xe2d30 <0x36faac:0> alignment=4 Aborted I will later look into this and provide more information but it would be good if you can tell me what is of interest. The message sounds as if something in the implementation is missing. Maybe I can lend a hand to get it done. :) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 25 04:46:57 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 25 Mar 2009 04:46:57 -0500 Subject: [LLVMbugs] [Bug 3880] New: Preprocessor doesn't support GNU extension? Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3880 Summary: Preprocessor doesn't support GNU extension? Product: clang Version: unspecified Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P2 Component: preprocessor AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ed at 80386.nl CC: llvmbugs at cs.uiuc.edu Blocks: 3696 The following code doesn't get preprocessed by Clang properly: #define fail(...) \ foo("Failed" , ## __VA_ARGS__, NULL) int main(int argc, char *argv[]) { fail(); } GCC does accept it and processes it as follows: int main(int argc, char *argv[]) { foo("Failed", NULL); } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 25 12:55:51 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 25 Mar 2009 12:55:51 -0500 Subject: [LLVMbugs] [Bug 3779] sign extension bahaviour is different from gcc In-Reply-To: Message-ID: <200903251755.n2PHtpq2008442@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3779 Evan Cheng changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #21 from Evan Cheng 2009-03-25 12:55:50 --- Turns out this breaks some objective-c code. The objective-c run time expects the signext and zeroext attributes to be honored. The llvm documentation also states these attributes should be honored: "This indicates to the code generator that the parameter or return value should be sign-extended to a 32-bit value by the caller (for a parameter) or the callee (for a return value)." I'm going to shoot first and ask question later. :-) I'll reopen this and revert the patch. It seems to me we need a different approach. 1. If the ABI does not require extension then the frontend should not emit the signext / zeroext attribute. 2. If all the callers are known, then the callers should promote the return values instead. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 25 16:08:51 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 25 Mar 2009 16:08:51 -0500 Subject: [LLVMbugs] [Bug 3880] Preprocessor doesn't support GNU extension? In-Reply-To: Message-ID: <200903252108.n2PL8pjf020997@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3880 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2009-03-25 16:08:43 --- Fixed: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090323/014512.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 25 18:58:19 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 25 Mar 2009 18:58:19 -0500 Subject: [LLVMbugs] [Bug 3787] LICM's AliasSetTracker is holding deleted values In-Reply-To: Message-ID: <200903252358.n2PNwJeW031062@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3787 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Devang Patel 2009-03-25 18:58:18 --- Fixed. Rev. 67719. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Wed Mar 25 19:18:55 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Wed, 25 Mar 2009 19:18:55 -0500 Subject: [LLVMbugs] [Bug 3869] Assertion failed when compiling Ruby 1.9.1-p0 on FreeBSD In-Reply-To: Message-ID: <200903260018.n2Q0ItBS032394@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3869 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Component|Common Code Generator Code |Semantic Analyzer Product|libraries |clang Resolution| |FIXED Version|trunk |unspecified --- Comment #3 from Eli Friedman 2009-03-25 19:18:54 --- Fixed in r67721. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 26 05:40:06 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 26 Mar 2009 05:40:06 -0500 Subject: [LLVMbugs] [Bug 3886] New: Crash when building Xorg/Cairo's pixman Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3886 Summary: Crash when building Xorg/Cairo's pixman Product: libraries Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P2 Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: ed at 80386.nl CC: llvmbugs at cs.uiuc.edu Blocks: 3696 Created an attachment (id=2758) --> (http://llvm.org/bugs/attachment.cgi?id=2758) Reduced testcase cc -O2 -pipe test.c -o test Assertion failed: (isVector() && "Invalid vector type!"), function getVectorNumElements, file /store/home/ed/projects/freebsd-clang/lib/clang/libllvmselectiondag/../../../contrib/llvm/include/llvm/CodeGen/ValueTypes.h, line 343. Stack dump: 0. Program arguments: /usr/bin/clang-cc -S -disable-free --relocation-model static --disable-fp-elim --unwind-tables=1 --fmath-errno=1 -O2 -arch x86_64 -o /tmp/cc-82VMr4.s -x c test.c 1. parser at end of file 2. Code generation 3. Running pass 'X86 DAG->DAG Instruction Selection' on function '@mmxCombineMaskU' -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 26 08:28:54 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 26 Mar 2009 08:28:54 -0500 Subject: [LLVMbugs] [Bug 3887] New: llvm-gcc/gcc/java/lang.c: force_align_functions_log Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3887 Summary: llvm-gcc/gcc/java/lang.c: force_align_functions_log Product: tools Version: trunk Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: llvm-gcc AssignedTo: unassignedbugs at nondot.org ReportedBy: ksherlock at gmail.com CC: llvmbugs at cs.uiuc.edu llvm-gcc/gcc/java/lang.c:378: error: "force_align_functions_log" undeclared (first use in this function) flags.h: /* APPLE LOCAL begin mainline aligned functions 5933878 */ /* Removed extern force_align_functions_log. */ /* APPLE LOCAL end mainline aligned functions 5933878 */ The variable is still referenced in java/lang.c /* Force minimum function alignment if g++ uses the least significant bit of function pointers to store the virtual bit. This is required to keep vtables compatible. */ if (TARGET_PTRMEMFUNC_VBIT_LOCATION == ptrmemfunc_vbit_in_pfn && force_align_functions_log < 1) force_align_functions_log = 1; -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 26 14:03:29 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 26 Mar 2009 14:03:29 -0500 Subject: [LLVMbugs] [Bug 3502] Cross-compile llvm-gcc Linux x86 to arm-linux In-Reply-To: Message-ID: <200903261903.n2QJ3TJB011947@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3502 S.Bharadwaj Yadavalli changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #15 from S.Bharadwaj Yadavalli 2009-03-26 14:03:28 --- This bug comes to life again during compilation of llvm-gcc-4.2! Sorry. svn version : 67763 /build/x86_64-arm/llvm-gcc-4.2/./gcc/xgcc -B/build/x86_64-arm/llvm-gcc-4.2/./gcc/ -B/install/x86_64-arm/llvm-gcc-4.2/arm-none-linux-gnueabi/bin/ -B/install/x86_64-arm/llvm-gcc-4.2/arm-none-linux-gnueabi/lib/ -isystem /install/x86_64-arm/llvm-gcc-4.2/arm-none-linux-gnueabi/include -isystem /install/x86_64-arm/llvm-gcc-4.2/arm-none-linux-gnueabi/sys-include -O2 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../../../src/llvm-gcc-4.2/gcc -I../../../../src/llvm-gcc-4.2/gcc/. -I../../../../src/llvm-gcc-4.2/gcc/../include -I../../../../src/llvm-gcc-4.2/gcc/../libcpp/include -I../../../../src/llvm-gcc-4.2/gcc/../libdecnumber -I../libdecnumber -I/install/x86_64-arm/llvm/include -I/src/llvm/include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -c ../../../../src/llvm-gcc-4.2/gcc/crtstuff.c -DCRT_BEGIN -o crtbegin.o cc1: /src/llvm/lib/CodeGen/RegisterScavenging.cpp:273: void llvm::RegScavenger::forward(): Assertion `(isReserved(Reg) || isUnused(Reg) || IsImpDef || isImplicitlyDefined(Reg) || isLiveInButUnusedBefore(Reg, MI, MBB, TRI, MRI)) && "Re-defining a live register!"' failed. ../../../../src/llvm-gcc-4.2/gcc/crtstuff.c:382: internal compiler error: Aborted I'm attaching the bitcode - called crtbegin.bc. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 26 14:31:53 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 26 Mar 2009 14:31:53 -0500 Subject: [LLVMbugs] [Bug 3890] New: Crash when building py-numeric Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3890 Summary: Crash when building py-numeric Product: libraries Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P2 Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: ed at 80386.nl CC: llvmbugs at cs.uiuc.edu Blocks: 3696 Created an attachment (id=2762) --> (http://llvm.org/bugs/attachment.cgi?id=2762) Test case I have no idea which category should be used to file this bug, so here it goes: cc -O2 -pipe test.c -o test Stack dump: 0. Program arguments: /usr/bin/clang-cc -S -disable-free --relocation-model static --disable-fp-elim --unwind-tables=1 --fmath-errno=1 -O2 -arch x86_64 -o /tmp/cc-AmsTYM.s -x c test.c 1. parser at end of file 2. Per-module optimization passes 3. Running pass 'CallGraph Pass Manager' on module 'test.c'. 4. Running pass 'Loop Pass Manager' on function '@zlascl_' 5. Running pass 'Loop Invariant Code Motion' on basic block '%L10' I couldn't reduce the test case any further... It seems the crash goes away if I remove random pieces of code. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 26 18:49:13 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 26 Mar 2009 18:49:13 -0500 Subject: [LLVMbugs] [Bug 3890] LICM use after free error In-Reply-To: Message-ID: <200903262349.n2QNnDRs029220@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3890 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Devang Patel 2009-03-26 18:49:10 --- Fixed. Rev 67798. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Thu Mar 26 19:37:13 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Thu, 26 Mar 2009 19:37:13 -0500 Subject: [LLVMbugs] [Bug 3892] New: llvm-extract makes all globals internals Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3892 Summary: llvm-extract makes all globals internals Product: new-bugs Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: dalej at apple.com CC: llvmbugs at cs.uiuc.edu llvm-extract makes all globals internals, an effect which is not described in its external documentation but is clearly intentional from its comments. This is not ideal, because (a) it can affect later optimizations, for example lowering an internal that's initialized but not stored into to a constant (b) llc does not emit debug info when llvm.dbg.compile_units or llvm.dbg.subprograms is internal (this is easy to fix if we want to make those names magic, of course) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 27 10:18:46 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 27 Mar 2009 10:18:46 -0500 Subject: [LLVMbugs] [Bug 3890] LICM use after free error In-Reply-To: Message-ID: <200903271518.n2RFIj4b028006@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3890 Ed Schouten changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #9 from Ed Schouten 2009-03-27 10:18:06 --- Commit has been reverted. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From philcolbourn at gmail.com Fri Mar 27 08:35:43 2009 From: philcolbourn at gmail.com (phil colbourn) Date: Sat, 28 Mar 2009 00:35:43 +1100 Subject: [LLVMbugs] LLVM Icon Idea Message-ID: <5d250dd00903270635q69de9d42p58c0b4ae1efc647e@mail.gmail.com> Not sure where to post this... The icon is designed as a square for general purpose use. It it a grid of the four letters :(LLVM) where each letter is made into a shape by 'closing' it :so the L's become right-triangles, the V is an isosceles triangle, and the M is a square with a triangle missing. I choose bright colours on a light background. -- Phil http://www.blaxlandweather.com/ http://philatwarrimoo.blogspot.com "Someone has solved it and uploaded it for free." "If I have nothing to hide, you have no reason to look." -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.cs.uiuc.edu/pipermail/llvmbugs/attachments/20090328/d033273b/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: favicon(5).ico Type: image/x-icon Size: 1406 bytes Desc: not available Url : http://lists.cs.uiuc.edu/pipermail/llvmbugs/attachments/20090328/d033273b/attachment.bin From bugzilla-daemon at cs.uiuc.edu Fri Mar 27 13:30:56 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 27 Mar 2009 13:30:56 -0500 Subject: [LLVMbugs] [Bug 3894] New: clang rejects address of void Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3894 Summary: clang rejects address of void Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Semantic Analyzer AssignedTo: unassignedclangbugs at nondot.org ReportedBy: clattner at apple.com CC: llvmbugs at cs.uiuc.edu Clang rejects this, GCC doesn't: extern void y; void a() { void *x = &y; } t.c:5:11: error: address expression must be an lvalue or a function designator void *x = &y; ^~ -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 27 15:22:21 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 27 Mar 2009 15:22:21 -0500 Subject: [LLVMbugs] [Bug 3895] New: IRGen doesn' t set the calling convention correctly with incomplete function types Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3895 Summary: IRGen doesn't set the calling convention correctly with incomplete function types Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu Testcase (x86-32): struct x; __attribute((stdcall)) int x(struct x); void* y = x; struct x {int x;}; int a() { return x((struct x){1}); } (Found by inspection; I don't know if anything actually does this...) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From isanbard at gmail.com Fri Mar 27 15:42:49 2009 From: isanbard at gmail.com (Bill Wendling) Date: Fri, 27 Mar 2009 13:42:49 -0700 Subject: [LLVMbugs] LLVM Icon Idea In-Reply-To: <5d250dd00903270635q69de9d42p58c0b4ae1efc647e@mail.gmail.com> References: <5d250dd00903270635q69de9d42p58c0b4ae1efc647e@mail.gmail.com> Message-ID: <16e5fdf90903271342s364757aarc6fd89d8e22e73f4@mail.gmail.com> 2009/3/27 phil colbourn : > Not sure where to post this... > > The icon is designed as a square for general purpose use. It it a grid of > the four letters > :(LLVM) where each letter is made into a shape by 'closing' it > :so the L's become right-triangles, the V is an isosceles triangle, and the > M is a square with a triangle missing. > > I choose bright colours on a light background. > Thanks Phil. I kind of like it. It's simple and nicely laid out. :-) -bw From bugzilla-daemon at cs.uiuc.edu Fri Mar 27 15:44:53 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 27 Mar 2009 15:44:53 -0500 Subject: [LLVMbugs] [Bug 3867] PowerPC build of LLVM is failing on Mac OSX 10.4.11 In-Reply-To: Message-ID: <200903272044.n2RKirm7018932@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3867 Julien Lerouge changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Julien Lerouge 2009-03-27 15:44:52 --- Fixed in 67855. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 27 16:34:11 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 27 Mar 2009 16:34:11 -0500 Subject: [LLVMbugs] [Bug 3896] New: Valgrind reports problems in llvm::RegsForValue:: getCopyFromRegs Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3896 Summary: Valgrind reports problems in llvm::RegsForValue::getCopyFromRegs Product: new-bugs Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu Valgrind reports the following for many codegen tests. This one is for test/CodeGen/ARM/2007-08-15-ReuseBug.ll: Conditional jump or move depends on uninitialised value(s) at 0xCB0341: llvm::APInt::countLeadingOnes() const by 0x98279C: (within /usr/local/bin/llc) by 0x98A06E: llvm::SelectionDAGLowering::getValue(llvm::Value const*) by 0x9A2037: llvm::SelectionDAGLowering::visitBinary(llvm::User&, unsigned int) by 0x9B72CB: llvm::SelectionDAGISel::SelectBasicBlock(llvm::BasicBlock*, llvm::ilist_iterator, llvm::ilist_iterator) by 0x9B7617: llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function&, llvm::MachineFunction&, llvm::MachineModuleInfo*, llvm::DwarfWriter*, llvm::TargetInstrInfo const&) by 0x9B8975: llvm::SelectionDAGISel::runOnFunction(llvm::Function&) by 0xC7DC38: llvm::FPPassManager::runOnFunction(llvm::Function&) by 0xC7E655: llvm::FunctionPassManagerImpl::run(llvm::Function&) by 0xC7E80A: llvm::FunctionPassManager::run(llvm::Function&) by 0x5083A0: main And it calculates that the ultimate origin of this was: Uninitialised value was created by a stack allocation at 0x9B2D04: llvm::SelectionDAGISel::ComputeLiveOutVRegInfo() -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 27 16:57:51 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 27 Mar 2009 16:57:51 -0500 Subject: [LLVMbugs] [Bug 3894] gcc compat: clang rejects address of void In-Reply-To: Message-ID: <200903272157.n2RLvplU025593@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3894 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #4 from Eli Friedman 2009-03-27 16:57:50 --- And I forgot that there's already a bug for this... *** This bug has been marked as a duplicate of bug 2524 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Fri Mar 27 18:52:19 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Fri, 27 Mar 2009 18:52:19 -0500 Subject: [LLVMbugs] [Bug 3896] Valgrind reports problems in llvm::RegsForValue::getCopyFromRegs In-Reply-To: Message-ID: <200903272352.n2RNqJuU001367@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3896 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gohman at apple.com Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Dan Gohman 2009-03-27 18:52:18 --- Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090323/075752.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 28 03:50:59 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 28 Mar 2009 03:50:59 -0500 Subject: [LLVMbugs] [Bug 3664] Struct return values inhibit tail call elimination In-Reply-To: Message-ID: <200903280850.n2S8ox1r011626@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3664 Arnold Schwaighofer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Arnold Schwaighofer 2009-03-28 03:50:58 --- Fixed in http://llvm.org/viewvc/llvm-project?view=rev&revision=67934. Ultimately CheckTailCallReturnConstraints in TargetLowering gets to decide whether a call is a tail call. A struct return causes the creation of a MERGE_VALUES node between the CALL and RET node. Due to that node the code in CheckTailCallReturnConstraints assumed the call to not be a tail call. The code is adapted in 67934 to recognize this additional node. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sat Mar 28 23:58:22 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sat, 28 Mar 2009 23:58:22 -0500 Subject: [LLVMbugs] [Bug 3897] New: Can't execute *.bc with lli on Cygwin Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3897 Summary: Can't execute *.bc with lli on Cygwin Product: libraries Version: 2.5 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: vmi at nifty.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2767) --> (http://llvm.org/bugs/attachment.cgi?id=2767) llvm-2.5 patch for cygwin There are two problems. 1> lli test/ExecutionEngine/hello.bc ERROR: Program used external function 'puts' which could not be resolved! Aborted The following problem occurs when the above problem is solved: 2> lli test/ExecutionEngine/hello.bc assertion "Inserted && "Pass registered multiple times!"" failed: file "Pass.cpp", line 149 1st problem: - dlopen(0, ...) is not correctly executed. ---------------------------------------------------------------------- #include #include int main(void) { void *d; int (*f1)(const char *); int (*f2)(const char *); d = dlopen(0, RTLD_LAZY|RTLD_GLOBAL); f1 = dlsym(d, "puts"); f2 = dlsym(0, "puts"); printf("dlopen = %p\nputs(1) = %p\nputs(2) = %p\n", d, f1, f2); if (f1 != 0) f1("Run puts(1)."); if (f2 != 0) f2("Run puts(2)."); return 0; } ---------------------------------------------------------------------- * Linux (Debian Lenny x64) dlopen = 0x7f4d2b17c000 puts(1) = 0x7f4d2aa711c0 puts(2) = 0x7f4d2aa711c0 Run puts(1). Run puts(2). * Cygwin on Windows XP: dlopen = 0x400000 puts(1) = 0x0 puts(2) = 0x610969b4 Run puts(2). I patched to lib/System/DynamicLibrary.cpp. (see attached file) 2nd problem: If run on Cygwin (or MinGW?), the following code is executed: [lib/Target/X86/X86ISelDAGToDAG.cpp] ---------------------------------------------------------------------- /// EmitSpecialCodeForMain - Emit any code that needs to be executed only in /// the main function. void X86DAGToDAGISel::EmitSpecialCodeForMain(MachineBasicBlock *BB, MachineFrameInfo *MFI) { const TargetInstrInfo *TII = TM.getInstrInfo(); if (Subtarget->isTargetCygMing()) BuildMI(BB, DebugLoc::getUnknownLoc(), TII->get(X86::CALLpcrel32)).addExternalSymbol("__main"); } ---------------------------------------------------------------------- However, this brings the following results when execute *.bc with lli: 1) Before executing main of lli, execute __main -> do_do_global_ctors -> constructors of global variables -> ... -> RegisterPass at lib/VMCore/Pass.cpp 2) When executting main of *.bc, re-execute __main -> do_do_global_ctors -> constructors of global variables -> ... -> RegisterPass at lib/VMCore/Pass.cpp -> assert!! I think that I should not execute __main. I patched to lib/Target/X86/X86ISelDAGToDAG.cpp. (see attached file) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 29 04:37:33 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 29 Mar 2009 04:37:33 -0500 Subject: [LLVMbugs] [Bug 3898] New: Incomplete breakdown of soft-float vectors Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3898 Summary: Incomplete breakdown of soft-float vectors Product: libraries Version: trunk Platform: All OS/Version: All Status: NEW Keywords: compile-fail Severity: normal Priority: P2 Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: stoklund at 2pi.dk CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2768) --> (http://llvm.org/bugs/attachment.cgi?id=2768) Test case for XCore backend On a target with soft-float and only i32 registers, a <2 x double> vector is legalized as follows: v2f64 -> 2 x i64 -> 4 x i32 TargetLowering::getVectorTypeBreakdown() misses the last step, and a FORMAL_ARGUMENTS node with two illegal i64 parameters is created. This triggers an assert in XCoreTargetLowering::LowerCCCArguments() I believe this bug only affects the XCore backend, but it is not a bug /in/ the XCore backend. I found it while writing a new Blackfin backend. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 29 05:59:41 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 29 Mar 2009 05:59:41 -0500 Subject: [LLVMbugs] [Bug 3899] New: extractelement crashes with -soft-float Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3899 Summary: extractelement crashes with -soft-float Product: libraries Version: trunk Platform: All OS/Version: All Status: NEW Keywords: compile-fail Severity: normal Priority: P2 Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: stoklund at 2pi.dk CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2770) --> (http://llvm.org/bugs/attachment.cgi?id=2770) Test case for Codegen/Generic The extractelement instruction on a float vector causes crashes when running with -soft-float or with a backend that has no hardware float support. The instruction is lowered to ISD::EXTRACT_VECTOR_ELT, and DAGTypeLegalizer::SoftenFloatResult cannot handle that operator. This triggers an assertion: "Do not know how to soften the result of this operator!" -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 29 06:58:19 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 29 Mar 2009 06:58:19 -0500 Subject: [LLVMbugs] [Bug 3900] New: Support/CommandLine.h: Implicit conversion from external storage fails to compile Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3900 Summary: Support/CommandLine.h: Implicit conversion from external storage fails to compile Product: new-bugs Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: fvbommel at wxs.nl CC: llvmbugs at cs.uiuc.edu $ cat test.cpp #include "llvm/Support/CommandLine.h" using namespace llvm; int storage; static cl::opt optimizeLevel("O", cl::desc("Optimization level"), cl::location(storage)); int getOptLevel() { return optimizeLevel; } $ g++ test.cpp `llvm-config --cxxflags` -c /home/urxae/opt/llvm/include/llvm/Support/CommandLine.h: In member function ???const DataType& llvm::cl::opt_storage::getValue() const [with DataType = int, bool ExternalStorage = true, bool isClass = false]???: /home/urxae/opt/llvm/include/llvm/Support/CommandLine.h:864: instantiated from ???llvm::cl::opt::operator DataType() const [with DataType = int, bool ExternalStorage = true, ParserClass = llvm::cl::parser]??? test.cpp:12: instantiated from here /home/urxae/opt/llvm/include/llvm/Support/CommandLine.h:779: error: passing ???const llvm::cl::opt_storage??? as ???this??? argument of ???void llvm::cl::opt_storage::check() [with DataType = int, bool ExternalStorage = true, bool isClass = false]??? discards qualifiers The obvious fix is to make opt_storage::check() const since it doesn't modify anything. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 29 08:53:28 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 29 Mar 2009 08:53:28 -0500 Subject: [LLVMbugs] [Bug 3899] extractelement crashes with -soft-float In-Reply-To: Message-ID: <200903291353.n2TDrSbb019151@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3899 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Duncan Sands 2009-03-29 08:53:26 --- Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090323/075815.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 29 09:51:44 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 29 Mar 2009 09:51:44 -0500 Subject: [LLVMbugs] [Bug 3901] New: clang: pathnames are not normalized in debug info -> gdb can't find file Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3901 Summary: clang: pathnames are not normalized in debug info -> gdb can't find file Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: edwintorok at gmail.com CC: llvmbugs at cs.uiuc.edu Example: ../../clamav-devel/configure CC=clang The program I compile (ClamAV) has sources in clamscan/, libclamav/, but I build with srcdir != objdir, so all sources are with ../../. clamscan is built inside the clamscan directory for example, so it contains 3 ../ to access the source, however when I run gdb from toplevel it needs only 2 ../ to access it. gcc seems to use absolute pathnames, so it doesn't suffer from this problem, and building objdir != srcdir works without any problems. Results in this: (gdb) b main Breakpoint 1 at 0x4081ea: file ../../../clamav-devel/clamscan/../../../clamav-devel/clamscan/clamscan.c, line 71. (gdb) r Starting program: /home/edwin/clam/git/builds/clang/clamscan/.libs/lt-clamscan [Thread debugging using libthread_db enabled] [New Thread 0x7f79df7186f0 (LWP 11090)] [Switching to Thread 0x7f79df7186f0 (LWP 11090)] Breakpoint 1, main (argc=1, argv=0x7fffe7743ae8) at ../../../clamav-devel/clamscan/../../../clamav-devel/clamscan/clamscan.c:71 71 ../../../clamav-devel/clamscan/../../../clamav-devel/clamscan/clamscan.c: No such file or directory. in ../../../clamav-devel/clamscan/../../../clamav-devel/clamscan/clamscan.c Current language: auto; currently minimal With llvm-gcc or gcc I get: (gdb) b main Breakpoint 1 at 0x408566: file clamscan.c, line 84. (gdb) r Starting program: /home/edwin/clam/git/builds/llvm-gcc/clamscan/.libs/lt-clamscan [Thread debugging using libthread_db enabled] [New Thread 0x7facac5236f0 (LWP 11123)] [Switching to Thread 0x7facac5236f0 (LWP 11123)] Breakpoint 1, main (argc=1, argv=0x7fffb454c8e8) at clamscan.c:84 84 sigemptyset(&sigset); (gdb) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 29 09:59:18 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 29 Mar 2009 09:59:18 -0500 Subject: [LLVMbugs] [Bug 3902] New: clang -ftime-report assertion failure on exit Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3902 Summary: clang -ftime-report assertion failure on exit Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: edwintorok at gmail.com CC: llvmbugs at cs.uiuc.edu Using SVN r67994: $ clang -ftime-report x.c ===-------------------------------------------------------------------------=== Instruction Selection and Scheduling ===-------------------------------------------------------------------------=== Total Execution Time: 0.0000 seconds (0.0001 wall clock) ---Wall Time--- --- Name --- 0.0000 ( 38.4%) DAG Legalization 0.0000 ( 15.9%) Type Legalization 0.0000 ( 14.1%) Instruction Scheduling 0.0000 ( 13.5%) Instruction Selection 0.0000 ( 8.8%) Instruction Creation 0.0000 ( 5.5%) DAG Combining 1 0.0000 ( 2.2%) DAG Combining 2 0.0000 ( 1.2%) Instruction Scheduling Cleanup 0.0001 (100.0%) TOTAL ===-------------------------------------------------------------------------=== ... Pass execution timing report ... ===-------------------------------------------------------------------------=== Total Execution Time: 0.0000 seconds (0.0005 wall clock) ---Wall Time--- --- Name --- 0.0003 ( 63.7%) X86 DAG->DAG Instruction Selection 0.0000 ( 11.3%) X86 AT&T-Style Assembly Printer 0.0000 ( 5.2%) Prolog/Epilog Insertion & Frame Finalization 0.0000 ( 4.3%) Local Register Allocator 0.0000 ( 3.5%) Module Verifier 0.0000 ( 2.2%) Two-Address instruction pass 0.0000 ( 2.0%) Dominator Tree Construction 0.0000 ( 1.2%) Remove dead machine instructions 0.0000 ( 1.1%) Machine Code Deleter 0.0000 ( 0.9%) Basic CallGraph Construction 0.0000 ( 0.6%) Inliner for always_inline functions 0.0000 ( 0.4%) X86 FP_REG_KILL inserter 0.0000 ( 0.3%) Eliminate PHI nodes for register allocation 0.0000 ( 0.3%) X86 FP Stackifier 0.0000 ( 0.3%) Label Folder 0.0000 ( 0.3%) X86 Maximal Stack Alignment Calculator 0.0000 ( 0.3%) Remove unreachable blocks from the CFG 0.0000 ( 0.3%) Delete Garbage Collector Information 0.0000 ( 0.1%) Subregister lowering instruction pass 0.0000 ( 0.1%) Analyze Machine Code For Garbage Collection 0.0000 ( 0.1%) Insert stack protectors 0.0000 ( 0.1%) Lower Garbage Collection Instructions 0.0000 ( 0.1%) Target Data Layout 0.0000 ( 0.1%) Preliminary module verification 0.0005 (100.0%) TOTAL clang-cc: /home/edwin/llvm-svn/llvm/include/llvm/Support/Timer.h:158: llvm::TimerGroup::~TimerGroup(): Assertion `NumTimers == 0 && "TimerGroup destroyed before all contained timers!"' failed. 0 clang-cc 0x0000000000fbf01f 1 clang-cc 0x0000000000fbf409 2 libpthread.so.0 0x00007f196d9137b0 3 libc.so.6 0x00007f196cc3a105 gsignal + 53 4 libc.so.6 0x00007f196cc3b623 abort + 387 5 libc.so.6 0x00007f196cc33149 __assert_fail + 233 6 clang-cc 0x0000000000cba90c llvm::TimerGroup::~TimerGroup() + 124 7 libc.so.6 0x00007f196cc3ccad exit + 157 8 libc.so.6 0x00007f196cc265ad __libc_start_main + 237 9 clang-cc 0x00000000004297a9 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 29 12:19:04 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 29 Mar 2009 12:19:04 -0500 Subject: [LLVMbugs] [Bug 3750] FreeBSD's ld-elf.so crashes on startup: data not stored in .data .rel.ro. In-Reply-To: Message-ID: <200903291719.n2THJ4t1031697@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3750 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |FIXED --- Comment #25 from Anton Korobeynikov 2009-03-29 12:19:00 --- (In reply to comment #24) > Anton, what do you think? Your comment 15 implies that you know something > about this :) Ok. Finally I looked over code again and realized that regardless of relro stuff we emitted things improperly in PIC mode. The following series of commits hopefully should fix it: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090323/075816.html http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090323/075817.html http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090323/075818.html http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090323/075819.html http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090323/075820.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 29 14:29:54 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 29 Mar 2009 14:29:54 -0500 Subject: [LLVMbugs] [Bug 3903] New: error: cannot compile this regparm attribute yet Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3903 Summary: error: cannot compile this regparm attribute yet Product: new-bugs Version: unspecified Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: db at db.net CC: asl at math.spbu.ru, llvmbugs at cs.uiuc.edu, ed at 80386.nl, rdivacky at freebsd.org, pawel.worach at gmail.com Blocks: 3696 as given in test case and Summary, added only to note it blocks 3696 This breaks expat in lib. rev 67026 did compile this, albeit grudgingly. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 29 15:10:10 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 29 Mar 2009 15:10:10 -0500 Subject: [LLVMbugs] [Bug 3900] Support/CommandLine.h: Implicit conversion from external storage fails to compile In-Reply-To: Message-ID: <200903292010.n2TKAALw008716@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3900 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wendling at apple.com Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bill Wendling 2009-03-29 15:10:07 --- Fixed here: http://llvm.org/viewvc/llvm-project?rev=68013&view=rev Thanks! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 29 15:27:01 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 29 Mar 2009 15:27:01 -0500 Subject: [LLVMbugs] [Bug 3904] New: An incorrect asm statement causes an assert. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3904 Summary: An incorrect asm statement causes an assert. Product: new-bugs Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: rich at pennware.com CC: llvmbugs at cs.uiuc.edu The attached program triggers an assert. gcc output: [~/ellcc/ellcc] main% gcc test.c test.c: In function ???main???: test.c:4: error: inconsistent operand constraints in an ???asm??? [~/ellcc/ellcc] main% ellcc output: [~/ellcc/ellcc] main% ./x86-elf-ecc test.c test.c:4:38: error: the matched constraint '0' is defined as '+' and should be '=' typechecking results: errors: 1 warnings: 0 [~/ellcc/ellcc] main% clang output: [~/ellcc/ellcc] main% ~/llvm-build/Debug/bin/clang test.c clang-cc: /home/rich/llvm-trunk-new/lib/VMCore/InlineAsm.cpp:43: llvm::InlineAsm::InlineAsm(const llvm::FunctionType*, const std::string&, const std::string&, bool): Assertion `Verify(Ty, constraints) && "Function type not legal for constraints!"' failed. 0 clang-cc 0x08e3f8e5 1 clang-cc 0x08e3fe17 2 0x00110400 __kernel_sigreturn + 0 3 libc.so.6 0x00bcce28 abort + 392 4 libc.so.6 0x00bc440e __assert_fail + 238 5 clang-cc 0x08d9d47f 6 clang-cc 0x08d9d4d2 7 clang-cc 0x081539fe 8 clang-cc 0x0815462b 9 clang-cc 0x08155a3a 10 clang-cc 0x08155c2f 11 clang-cc 0x081543d9 12 clang-cc 0x0815cfc1 13 clang-cc 0x080d6bb2 14 clang-cc 0x080d6c82 15 clang-cc 0x080d6e5f 16 clang-cc 0x080d710a 17 clang-cc 0x080d2935 18 clang-cc 0x0807c6d6 19 clang-cc 0x0821fff2 20 clang-cc 0x080c6b92 21 clang-cc 0x080c9357 main + 2081 22 libc.so.6 0x00bb66e5 __libc_start_main + 229 23 clang-cc 0x08064d61 Stack dump: 0. Program arguments: /home/rich/llvm-build/Debug/bin/clang-cc -S -disable-free --relocation-model static --disable-fp-elim --unwind-tables=0 --fmath-errno=1 -arch i386 -o /tmp/cc-OQGShO.s -x c test.c 1. parser at end of file 2. test.c:1:5: LLVM IR generation of declaration 'main' 3. test.c:2:1: LLVM IR generation of compound statement ('{}') [~/ellcc/ellcc] main% Probably not what you want. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 29 15:41:14 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 29 Mar 2009 15:41:14 -0500 Subject: [LLVMbugs] [Bug 3905] New: An incorrect asm statement causes an assert in clang. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3905 Summary: An incorrect asm statement causes an assert in clang. Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: rich at pennware.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2774) --> (http://llvm.org/bugs/attachment.cgi?id=2774) An inline asm that causes an assert. The attached file with an incorrect asm statement causes an assertion. gcc output: [~/ellcc/ellcc] main% gcc test.c test.c: In function ???main???: test.c:4: error: matching constraint references invalid operand number test.c:4: error: matching constraint references invalid operand number [~/ellcc/ellcc] main% ellcc output: [~/ellcc/ellcc] main% ./x86-elf-ecc test.c test.c:4:44: error: the matching constraint 'foo' is different than the previous matching constraint typechecking results: errors: 1 warnings: 0 [~/ellcc/ellcc] main% clang output: [~/ellcc/ellcc] main% ~/llvm-build/Debug/bin/clang test.c clang-cc: /home/rich/llvm-trunk-new/lib/VMCore/InlineAsm.cpp:43: llvm::InlineAsm::InlineAsm(const llvm::FunctionType*, const std::string&, const std::string&, bool): Assertion `Verify(Ty, constraints) && "Function type not legal for constraints!"' failed. 0 clang-cc 0x08e3f8e5 1 clang-cc 0x08e3fe17 2 0x00110400 __kernel_sigreturn + 0 3 libc.so.6 0x00bcce28 abort + 392 4 libc.so.6 0x00bc440e __assert_fail + 238 5 clang-cc 0x08d9d47f 6 clang-cc 0x08d9d4d2 7 clang-cc 0x081539fe 8 clang-cc 0x0815462b 9 clang-cc 0x08155a3a 10 clang-cc 0x08155c2f 11 clang-cc 0x081543d9 12 clang-cc 0x0815cfc1 13 clang-cc 0x080d6bb2 14 clang-cc 0x080d6c82 15 clang-cc 0x080d6e5f 16 clang-cc 0x080d710a 17 clang-cc 0x080d2935 18 clang-cc 0x0807c6d6 19 clang-cc 0x0821fff2 20 clang-cc 0x080c6b92 21 clang-cc 0x080c9357 main + 2081 22 libc.so.6 0x00bb66e5 __libc_start_main + 229 23 clang-cc 0x08064d61 Stack dump: 0. Program arguments: /home/rich/llvm-build/Debug/bin/clang-cc -S -disable-free --relocation-model static --disable-fp-elim --unwind-tables=0 --fmath-errno=1 -arch i386 -o /tmp/cc-5iJ1qe.s -x c test.c 1. parser at end of file 2. test.c:1:5: LLVM IR generation of declaration 'main' 3. test.c:2:1: LLVM IR generation of compound statement ('{}') [~/ellcc/ellcc] main% -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 29 19:02:22 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 29 Mar 2009 19:02:22 -0500 Subject: [LLVMbugs] [Bug 3906] New: Remove condprop pass Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3906 Summary: Remove condprop pass Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu Per summary, condprop should be removed. As far as I can tell, simplifycfg knows how to do almost everything condprop knows how to do. condprop knows how to do four things: threading a conditional br on a PHI (dealt with in simplifycfg by FoldCondBranchOnPHI), threading a switch on a PHI (not dealt with in simplifycfg), constant folding terminators (dealt with in simplifycfg by a call to ConstantFoldTerminator), and merging a block with a single successor into that successor (dealt with in simplifycfg by a call to MergeBlockIntoPredecessor). It seems simple enough extend FoldCondBranchOnPHI to deal with switches; after that, condprop won't be doing anything that simplifycfg can't do. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 29 19:03:58 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 29 Mar 2009 19:03:58 -0500 Subject: [LLVMbugs] [Bug 3907] New: Incorrect parsing of Class.property.property syntax Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3907 Summary: Incorrect parsing of Class.property.property syntax Product: clang Version: unspecified Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P2 Component: parser AssignedTo: unassignedclangbugs at nondot.org ReportedBy: catfish.man at gmail.com CC: llvmbugs at cs.uiuc.edu It appears that clang isn't looking for any dot syntax property accesses after the first if the first one is on a class. This code reproduces the issue (GCC doesn't like this either for other reasons, but it works enough to demonstrate the issue): @interface Test {} + (Test*)one; - (int)two; @end int main () { return Test.one.two; } Tested using clang+llvm r68021, new driver. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Sun Mar 29 21:17:21 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Sun, 29 Mar 2009 21:17:21 -0500 Subject: [LLVMbugs] [Bug 3460] Failed assertion when handling LDR_PRE In-Reply-To: Message-ID: <200903300217.n2U2HLFs029399@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3460 Evan Cheng changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Evan Cheng 2009-03-29 21:17:20 --- Ok. Closed. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 30 12:20:26 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 30 Mar 2009 12:20:26 -0500 Subject: [LLVMbugs] [Bug 3909] New: assert in SCEV Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3909 Summary: assert in SCEV Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Keywords: compile-fail Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: kamm-removethis at incasoftware.de CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2777) --> (http://llvm.org/bugs/attachment.cgi?id=2777) test case, generated by the LLVM D compiler and simplified manually Assembling the attached code with 'llc bug.bc' triggers the assert ScalarEvolutionExpressions.h:570: RetVal llvm::SCEVVisitor::visitCouldNotCompute(llvm::SCEVCouldNotCompute*) [with SC = llvm::SCEVExpander, RetVal = llvm::Value*]: Assertion `0 && "Invalid use of SCEVCouldNotCompute!"' failed. with LLVM 2.5. The issue seems to be i64 related: if you replace all i64s with i32s, the code is assembled fine. The backtrace is: 4 libc.so.6 0xb7d01f25 __assert_fail + 245 5 llc 0x08d0fc9a llvm::LoopBase::isLoopInvariant(llvm::Value*) const + 0 6 llc 0x08d10861 llvm::SCEVVisitor::visit(llvm::SCEV*) + 337 7 llc 0x08d0e3fd llvm::SCEVExpander::expand(llvm::SCEV*) + 161 8 llc 0x08d0f0f2 llvm::SCEVExpander::visitAddRecExpr(llvm::SCEVAddRecExpr*) + 1956 9 llc 0x08d10802 llvm::SCEVVisitor::visit(llvm::SCEV*) + 242 10 llc 0x08d0e3fd llvm::SCEVExpander::expand(llvm::SCEV*) + 161 11 llc 0x08d0e46d llvm::SCEVExpander::expandCodeFor(llvm::SCEVHandle, llvm::Instruction*) + 41 12 llc 0x08c854d0 13 llc 0x08c87748 14 llc 0x08ce83af llvm::LPPassManager::runOnFunction(llvm::Function&) + 911 15 llc 0x08d91a0e llvm::FPPassManager::runOnFunction(llvm::Function&) + 258 16 llc 0x08d91f98 llvm::FunctionPassManagerImpl::run(llvm::Function&) + 116 17 llc 0x08d920f1 llvm::FunctionPassManager::run(llvm::Function&) + 137 18 llc 0x08513503 main + 2479 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 30 13:37:43 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 30 Mar 2009 13:37:43 -0500 Subject: [LLVMbugs] [Bug 3890] AliasSetTracker is using invalidated DenseMap iterator In-Reply-To: Message-ID: <200903301837.n2UIbhWW016658@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3890 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #10 from Devang Patel 2009-03-30 13:37:41 --- Fixed. Rev 68047. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 30 13:40:16 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 30 Mar 2009 13:40:16 -0500 Subject: [LLVMbugs] [Bug 3910] New: Many tests failing with ruby 1.9.1(r23098) compiled with clang(r68030) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3910 Summary: Many tests failing with ruby 1.9.1(r23098) compiled with clang(r68030) Product: new-bugs Version: unspecified Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P2 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: roberto at freebsd.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2778) --> (http://llvm.org/bugs/attachment.cgi?id=2778) List of tests failing Ruby 1.9 has an extensive test suite. When compiled with clang r68030, many tests are failing. OS X 10.5.6, clang compiled with gcc-4.0. Ruby 1.9.1 from svn/trunk at revision r23098 compiled with: clang -I. -I../../../.ext/include/i386-darwin9.6.0 -I../../../../include -I../../../../ext/tk/tkutil -DRUBY_EXTCONF_H=\"extconf.h\" -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O -pipe -I/opt/local/include -g -Wall -Wno-unused-parameter -Wno-parentheses -Wno-missing-field-initializers -Wshorten-64-to-32 -Wpointer-arith -Wwrite-strings -o tkutil.o -c ../../../../ext/tk/tkutil/tkutil.c See attached the full listing of the failing tests. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 30 16:54:29 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 30 Mar 2009 16:54:29 -0500 Subject: [LLVMbugs] [Bug 3911] New: Implement -Wmissing-prototypes Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3911 Summary: Implement -Wmissing-prototypes Product: clang Version: unspecified Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: Semantic Analyzer AssignedTo: unassignedclangbugs at nondot.org ReportedBy: dgregor at apple.com CC: llvmbugs at cs.uiuc.edu GCC's -Wmissing-prototypes emits a warning when a global function is defined without a previous prototype. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Mon Mar 30 17:29:59 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Mon, 30 Mar 2009 17:29:59 -0500 Subject: [LLVMbugs] [Bug 3831] miscompilation with loop index splitting and shorts In-Reply-To: Message-ID: <200903302229.n2UMTxZw026393@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3831 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Devang Patel 2009-03-30 17:29:59 --- Fixed. rev. 68071. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 31 05:36:04 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 31 Mar 2009 05:36:04 -0500 Subject: [LLVMbugs] [Bug 3913] New: another miscompilation with -loop-index-split Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3913 Summary: another miscompilation with -loop-index-split Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: jay.foad at antixlabs.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=2779) --> (http://llvm.org/bugs/attachment.cgi?id=2779) test case With the attached test case I get: $ llvm-as -o - tiny2.ll | lli ; echo $? 0 $ llvm-as -o - tiny2.ll | opt -loop-index-split | lli ; echo $? 3 It's optimising: i = 0; do { if (i == 99) BODY; } while (++i != 10); (which never executes BODY) into: if (99 > 0 && 99 != 10) BODY; (which does execute BODY). -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 31 06:54:44 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 31 Mar 2009 06:54:44 -0500 Subject: [LLVMbugs] [Bug 3914] New: Building fail on vc++ 2008 x64 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3914 Summary: Building fail on vc++ 2008 x64 Product: libraries Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Keywords: compile-fail Severity: normal Priority: P2 Component: Archive library AssignedTo: unassignedbugs at nondot.org ReportedBy: yonggangluo at hotmail.com CC: llvmbugs at cs.uiuc.edu Bad bugzilla, why don't just list the Keywords beside the Keywords input box:( Damm design, once i typo the incorrect keywords, always jump to a damm place, and once i get back, all the information is lost! 1>------ Build started: Project: ClangDiagnosticFrontend, Configuration: RelWithDebInfo x64 ------ 1>Building DiagnosticFrontendKinds.inc... 1>Build log was saved at "file://d:\svn\llvm\tools\clang\include\clang\Basic\ClangDiagnosticFrontend.dir\RelWithDebInfo\BuildLog.htm" 1>ClangDiagnosticFrontend - 0 error(s), 0 warning(s) 2>------ Build started: Project: ClangDiagnosticAST, Configuration: RelWithDebInfo x64 ------ 2>Building DiagnosticASTKinds.inc... 3>------ Build started: Project: ClangDiagnosticDriver, Configuration: RelWithDebInfo x64 ------ 3>Building DiagnosticDriverKinds.inc... 3>Build log was saved at "file://d:\svn\llvm\tools\clang\include\clang\Basic\ClangDiagnosticDriver.dir\RelWithDebInfo\BuildLog.htm" 3>ClangDiagnosticDriver - 0 error(s), 0 warning(s) 2>Build log was saved at "file://d:\svn\llvm\tools\clang\include\clang\Basic\ClangDiagnosticAST.dir\RelWithDebInfo\BuildLog.htm" 2>ClangDiagnosticAST - 0 error(s), 0 warning(s) 4>------ Build started: Project: ClangDiagnosticParse, Configuration: RelWithDebInfo x64 ------ 4>Building DiagnosticParseKinds.inc... 5>------ Build started: Project: ClangDiagnosticLex, Configuration: RelWithDebInfo x64 ------ 5>Building DiagnosticLexKinds.inc... 4>Build log was saved at "file://d:\svn\llvm\tools\clang\include\clang\Basic\ClangDiagnosticParse.dir\RelWithDebInfo\BuildLog.htm" 4>ClangDiagnosticParse - 0 error(s), 0 warning(s) 5>Build log was saved at "file://d:\svn\llvm\tools\clang\include\clang\Basic\ClangDiagnosticLex.dir\RelWithDebInfo\BuildLog.htm" 5>ClangDiagnosticLex - 0 error(s), 0 warning(s) 6>------ Build started: Project: ClangDiagnosticCommon, Configuration: RelWithDebInfo x64 ------ 6>Building DiagnosticCommonKinds.inc... 6>Build log was saved at "file://d:\svn\llvm\tools\clang\include\clang\Basic\ClangDiagnosticCommon.dir\RelWithDebInfo\BuildLog.htm" 6>ClangDiagnosticCommon - 0 error(s), 0 warning(s) 7>------ Build started: Project: ClangDiagnosticAnalysis, Configuration: RelWithDebInfo x64 ------ 7>Building DiagnosticAnalysisKinds.inc... 7>Build log was saved at "file://d:\svn\llvm\tools\clang\include\clang\Basic\ClangDiagnosticAnalysis.dir\RelWithDebInfo\BuildLog.htm" 7>ClangDiagnosticAnalysis - 0 error(s), 0 warning(s) 8>------ Build started: Project: clang-cc, Configuration: RelWithDebInfo x64 ------ 9>------ Build started: Project: llc, Configuration: RelWithDebInfo x64 ------ 9>Linking... 8>Linking... 9> Creating library D:\svn\llvm\lib\RelWithDebInfo\llc.lib and object D:\svn\llvm\lib\RelWithDebInfo\llc.exp 8> Creating library D:\svn\llvm\lib\RelWithDebInfo\clang-cc.lib and object D:\svn\llvm\lib\RelWithDebInfo\clang-cc.exp 9>LLVMX86CodeGen.lib(X86JITInfo.obj) : error LNK2019: unresolved external symbol X86CompilationCallback referenced in function "public: virtual void (__cdecl*__cdecl llvm::X86JITInfo::getLazyResolverFunction(void * (__cdecl*)(void *)))(void)" (?getLazyResolverFunction at X86JITInfo@llvm@@UEAAP6AXXZP6APEAXPEAX at Z@Z) 9>D:\svn\llvm\bin\RelWithDebInfo\llc.exe : fatal error LNK1120: 1 unresolved externals 8>clangSema.lib(SemaTemplate.obj) : error LNK2019: unresolved external symbol "public: class clang::TemplateDecl * __cdecl clang::TemplateName::getAsTemplateDecl(void)const " (?getAsTemplateDecl at TemplateName@clang@@QEBAPEAVTemplateDecl at 2@XZ) referenced in function "public: virtual class clang::ActionBase::ActionResult<5,class clang::OpaquePtr<0>,1> __cdecl clang::Sema::ActOnClassTemplateSpecialization(class clang::Scope *,unsigned int,enum clang::Action::TagKind,class clang::SourceLocation,class clang::CXXScopeSpec const &,class clang::OpaquePtr<2>,class clang::SourceLocation,class clang::SourceLocation,class clang::ASTTemplateArgsPtr,class clang::SourceLocation *,class clang::SourceLocation,class clang::AttributeList *,class clang::ASTMultiPtr<&[thunk]: __cdecl clang::ActionBase::`vcall'{24,{flat}}' }'>)" (?ActOnClassTemplateSpecialization at Sema@clang@@UEAA?AV?$ActionResult@$04V?$OpaquePtr@$0A@@clang@@$00 at ActionBase@2 at PEAVScope@2 at IW4TagKind@Action at 2@VSourceLocation at 2@AEBVCXXScopeSpec at 2@V?$OpaquePtr@$01 at 2@22VASTTemplateArgsPtr at 2@PEAV82 at 2PEAVAttributeList@2 at V?$ASTMultiPtr@$1??_9ActionBase at clang@@$BBI at AA@2@@Z) 8>clangAST.lib(Type.obj) : error LNK2019: unresolved external symbol "public: bool __cdecl clang::TemplateName::isDependent(void)const " (?isDependent at TemplateName@clang@@QEBA_NXZ) referenced in function "private: __cdecl clang::TemplateSpecializationType::TemplateSpecializationType(class clang::TemplateName,class clang::TemplateArgument const *,unsigned int,class clang::QualType)" (??0TemplateSpecializationType at clang@@AEAA at VTemplateName@1 at PEBVTemplateArgument@1 at IVQualType@1@@Z) 8>clangAST.lib(Type.obj) : error LNK2019: unresolved external symbol "public: void __cdecl clang::TemplateName::Print(class llvm::raw_ostream &)const " (?Print at TemplateName@clang@@QEBAXAEAVraw_ostream at llvm@@@Z) referenced in function "public: virtual void __cdecl clang::TemplateSpecializationType::getAsStringInternal(class std::basic_string,class std::allocator > &)const " (?getAsStringInternal at TemplateSpecializationType@clang@@UEBAXAEAV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@Z) 8>LLVMX86CodeGen.lib(X86JITInfo.obj) : error LNK2019: unresolved external symbol X86CompilationCallback referenced in function "public: virtual void (__cdecl*__cdecl llvm::X86JITInfo::getLazyResolverFunction(void * (__cdecl*)(void *)))(void)" (?getLazyResolverFunction at X86JITInfo@llvm@@UEAAP6AXXZP6APEAXPEAX at Z@Z) 8>D:\svn\llvm\bin\RelWithDebInfo\clang-cc.exe : fatal error LNK1120: 4 unresolved externals 9>Build log was saved at "file://d:\svn\llvm\tools\llc\llc.dir\RelWithDebInfo\BuildLog.htm" 9>llc - 2 error(s), 0 warning(s) 10>------ Build started: Project: lli, Configuration: RelWithDebInfo x64 ------ 8>Build log was saved at "file://d:\svn\llvm\tools\clang\tools\clang-cc\clang-cc.dir\RelWithDebInfo\BuildLog.htm" 8>clang-cc - 5 error(s), 0 warning(s) 11>------ Build started: Project: HowToUseJIT, Configuration: RelWithDebInfo x64 ------ 10>Linking... 11>Linking... 11> Creating library D:\svn\llvm\lib\RelWithDebInfo\HowToUseJIT.lib and object D:\svn\llvm\lib\RelWithDebInfo\HowToUseJIT.exp 10> Creating library D:\svn\llvm\lib\RelWithDebInfo\lli.lib and object D:\svn\llvm\lib\RelWithDebInfo\lli.exp 11>LLVMX86CodeGen.lib(X86JITInfo.obj) : error LNK2019: unresolved external symbol X86CompilationCallback referenced in function "public: virtual void (__cdecl*__cdecl llvm::X86JITInfo::getLazyResolverFunction(void * (__cdecl*)(void *)))(void)" (?getLazyResolverFunction at X86JITInfo@llvm@@UEAAP6AXXZP6APEAXPEAX at Z@Z) 11>D:\svn\llvm\bin\RelWithDebInfo\HowToUseJIT.exe : fatal error LNK1120: 1 unresolved externals 10>LLVMX86CodeGen.lib(X86JITInfo.obj) : error LNK2019: unresolved external symbol X86CompilationCallback referenced in function "public: virtual void (__cdecl*__cdecl llvm::X86JITInfo::getLazyResolverFunction(void * (__cdecl*)(void *)))(void)" (?getLazyResolverFunction at X86JITInfo@llvm@@UEAAP6AXXZP6APEAXPEAX at Z@Z) 10>D:\svn\llvm\bin\RelWithDebInfo\lli.exe : fatal error LNK1120: 1 unresolved externals 11>Build log was saved at "file://d:\svn\llvm\examples\HowToUseJIT\HowToUseJIT.dir\RelWithDebInfo\BuildLog.htm" 11>HowToUseJIT - 2 error(s), 0 warning(s) 10>Build log was saved at "file://d:\svn\llvm\tools\lli\lli.dir\RelWithDebInfo\BuildLog.htm" 10>lli - 2 error(s), 0 warning(s) 12>------ Build started: Project: Fibonacci, Configuration: RelWithDebInfo x64 ------ 13>------ Build started: Project: BrainF, Configuration: RelWithDebInfo x64 ------ 12>Linking... 13>Linking... 12> Creating library D:\svn\llvm\lib\RelWithDebInfo\Fibonacci.lib and object D:\svn\llvm\lib\RelWithDebInfo\Fibonacci.exp 12>LLVMX86CodeGen.lib(X86JITInfo.obj) : error LNK2019: unresolved external symbol X86CompilationCallback referenced in function "public: virtual void (__cdecl*__cdecl llvm::X86JITInfo::getLazyResolverFunction(void * (__cdecl*)(void *)))(void)" (?getLazyResolverFunction at X86JITInfo@llvm@@UEAAP6AXXZP6APEAXPEAX at Z@Z) 12>D:\svn\llvm\bin\RelWithDebInfo\Fibonacci.exe : fatal error LNK1120: 1 unresolved externals 13> Creating library D:\svn\llvm\lib\RelWithDebInfo\BrainF.lib and object D:\svn\llvm\lib\RelWithDebInfo\BrainF.exp 13>LLVMX86CodeGen.lib(X86JITInfo.obj) : error LNK2019: unresolved external symbol X86CompilationCallback referenced in function "public: virtual void (__cdecl*__cdecl llvm::X86JITInfo::getLazyResolverFunction(void * (__cdecl*)(void *)))(void)" (?getLazyResolverFunction at X86JITInfo@llvm@@UEAAP6AXXZP6APEAXPEAX at Z@Z) 13>D:\svn\llvm\bin\RelWithDebInfo\BrainF.exe : fatal error LNK1120: 1 unresolved externals 12>Build log was saved at "file://d:\svn\llvm\examples\Fibonacci\Fibonacci.dir\RelWithDebInfo\BuildLog.htm" 12>Fibonacci - 2 error(s), 0 warning(s) 13>Build log was saved at "file://d:\svn\llvm\examples\BrainF\BrainF.dir\RelWithDebInfo\BuildLog.htm" 13>BrainF - 2 error(s), 0 warning(s) 14>------ Skipped Build: Project: INSTALL, Configuration: RelWithDebInfo x64 ------ 14>Project not selected to build for this solution configuration ========== Build: 7 succeeded, 6 failed, 59 up-to-date, 1 skipped ========== -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 31 10:22:40 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 31 Mar 2009 10:22:40 -0500 Subject: [LLVMbugs] [Bug 3916] New: #include corner cases Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3916 Summary: #include corner cases Product: clang Version: unspecified Platform: PC OS/Version: NetBSD Status: NEW Severity: normal Priority: P2 Component: preprocessor AssignedTo: unassignedclangbugs at nondot.org ReportedBy: neil at daikokuya.co.uk CC: llvmbugs at cs.uiuc.edu #define EMPTY #include EMPTY should work; it is rejected. The following should also work: #define HEADER limits.h> #include
http://llvm.org/bugs/show_bug.cgi?id=3917 Summary: __LINE__ wrong value Product: clang Version: unspecified Platform: PC OS/Version: NetBSD Status: NEW Severity: normal Priority: P2 Component: preprocessor AssignedTo: unassignedclangbugs at nondot.org ReportedBy: neil at daikokuya.co.uk CC: llvmbugs at cs.uiuc.edu extern char l[\ __LINE__ == 2 ? 1: -1]; as the top two lines of a file should compile. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 31 10:30:54 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 31 Mar 2009 10:30:54 -0500 Subject: [LLVMbugs] [Bug 3918] New: Invalid use of __VA_ARGS__ not diagnosed Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3918 Summary: Invalid use of __VA_ARGS__ not diagnosed Product: clang Version: unspecified Platform: PC OS/Version: NetBSD Status: NEW Severity: normal Priority: P2 Component: preprocessor AssignedTo: unassignedclangbugs at nondot.org ReportedBy: neil at daikokuya.co.uk CC: llvmbugs at cs.uiuc.edu #define VA __VA_ ## ARGS__ int VA; -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 31 10:36:46 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 31 Mar 2009 10:36:46 -0500 Subject: [LLVMbugs] [Bug 3919] New: Missed Constraint 6.10.3p3 (C99) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3919 Summary: Missed Constraint 6.10.3p3 (C99) Product: clang Version: unspecified Platform: PC OS/Version: NetBSD Status: NEW Severity: normal Priority: P2 Component: preprocessor AssignedTo: unassignedclangbugs at nondot.org ReportedBy: neil at daikokuya.co.uk CC: llvmbugs at cs.uiuc.edu #define foo`bar should be rejected with -pedantic-errors, by definition, not just diagnosed. Rules are different in C90, http://www.open-std.org/jtc1/sc22/wg14/www/docs/tc1.htm but it turns out it is a constraint violation there too. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 31 11:36:27 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 31 Mar 2009 11:36:27 -0500 Subject: [LLVMbugs] [Bug 3911] Implement -Wmissing-prototypes In-Reply-To: Message-ID: <200903311636.n2VGaRWu014788@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3911 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2009-03-31 11:36:27 --- Implemented here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090330/014808.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 31 12:37:58 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 31 Mar 2009 12:37:58 -0500 Subject: [LLVMbugs] [Bug 3367] assertion failure: Cannot find callsite to remove! In-Reply-To: Message-ID: <200903311737.n2VHbwRo017082@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3367 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #13 from Devang Patel 2009-03-31 12:37:55 --- I applied your patch. rev. 68120. Thanks! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 31 13:29:21 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 31 Mar 2009 13:29:21 -0500 Subject: [LLVMbugs] [Bug 3920] New: llvmc plugins should be able to access target information Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3920 Summary: llvmc plugins should be able to access target information Product: tools Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: llvmc AssignedTo: foldr at codedgers.com ReportedBy: foldr at codedgers.com CC: asl at math.spbu.ru, llvmbugs at cs.uiuc.edu Plugins should be able to access information about the target OS and architecture - most probably via the 'case' expression. One use case is enabling '-relocation-model=pic' by default only on 64 bit platforms. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 31 15:56:12 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 31 Mar 2009 15:56:12 -0500 Subject: [LLVMbugs] [Bug 3602] ccc: doesn't pass -Wp,-MD, to clang In-Reply-To: Message-ID: <200903312056.n2VKuCCg025687@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3602 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #10 from Daniel Dunbar 2009-03-31 15:56:11 --- I implemented -Wp, and -Xpreprocessor here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090330/014832.html That won't fix the filed test case because clang-cc expects to see a different set of options for dependency files. Using -Wp, to pass *gcc* options to the underlying preprocessor is broken; the build system should use -MD and -MF. Separate bugs should be filed for the other issues mentioned, I am closing this. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 31 16:41:41 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 31 Mar 2009 16:41:41 -0500 Subject: [LLVMbugs] [Bug 3921] New: dominator optimizer/gvn fails to recognize identical tests Message-ID: http://llvm.org/bugs/show_bug.cgi?id=3921 Summary: dominator optimizer/gvn fails to recognize identical tests Product: tools Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: opt AssignedTo: unassignedbugs at nondot.org ReportedBy: echristo at gmail.com CC: llvmbugs at cs.uiuc.edu Here's a simple testcase that shows the problem: extern int a; int foo (void) { if (a == 4) { return 5; } if (a == 5) { return 4; } if (a == 4) { return 5 + a; } if (a == 5) { return 4 + a; } return a; } and the corresponding llvm code (from llvm-gcc -O2): define i32 @foo() nounwind readonly ssp { entry: %0 = load i32* @a, align 4 ; [#uses=5] %1 = icmp eq i32 %0, 4 ; [#uses=2] br i1 %1, label %bb8, label %bb1 bb1: ; preds = %entry %2 = icmp eq i32 %0, 5 ; [#uses=2] br i1 %2, label %bb8, label %bb3 bb3: ; preds = %bb1 br i1 %1, label %bb4, label %bb5 bb4: ; preds = %bb3 %3 = add i32 %0, 5 ; [#uses=1] ret i32 %3 bb5: ; preds = %bb3 br i1 %2, label %bb6, label %bb8 bb6: ; preds = %bb5 %4 = add i32 %0, 4 ; [#uses=1] ret i32 %4 bb8: ; preds = %bb5, %bb1, %entry %.0 = phi i32 [ 5, %entry ], [ 4, %bb1 ], [ %0, %bb5 ] ; [#uses=1] ret i32 %.0 } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at cs.uiuc.edu Tue Mar 31 20:22:52 2009 From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu) Date: Tue, 31 Mar 2009 20:22:52 -0500 Subject: [LLVMbugs] [Bug 3921] dominator optimizer/gvn fails to recognize identical tests In-Reply-To: Message-ID: <200904010122.n311Mqdx003765@zion.cs.uiuc.edu> http://llvm.org/bugs/show_bug.cgi?id=3921 Owen Anderson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Owen Anderson 2009-03-31 20:22:52 --- This is fixed in r68172. Note that GVN doesn't handle his case very generally, since it's not a constant propagator. For instance, if you pass in the IR Eric posted, the GVN will not be able to simplify it. If you start from the original IR, where it re-does the comparison, then it will successfully simplify it. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.