From bugzilla-daemon at llvm.org Mon Mar 1 07:22:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 07:22:29 -0600 (CST) Subject: [LLVMbugs] [Bug 6447] New: Building C++ app fails with link error Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6447 Summary: Building C++ app fails with link error Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P5 Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: jpakkane at gmail.com CC: llvmbugs at cs.uiuc.edu I try to build Cuneiform OCR system with clang but it fails. Here's how to duplicate using the latest bzr: bzr branch lp:cuneiform-linux cf cd cf mkdir builddir cd builddir CC=/path/to/clang CXX=/path/to/clang++ cmake -DCMAKE_BUILD_TYPE=debug .. make Eventually you get this error: Linking CXX executable ../../cuneiform ../Kern/cpage/libcpage.so.0.9.0: undefined reference to `BLOCK::~BLOCK()' collect2: ld returned 1 exit status But BLOCK::~BLOCK is defined in cuneiform_src/Kern/cpage/sources/cpp/block.h: class BLOCK: public DATA { [stuff removed] public: BLOCK(); virtual ~BLOCK(); and its (empty) implementation is in the corresponding block.cpp: BLOCK::~BLOCK() { } And this file even gets included in the CMakeLists.txt. The same code does work with GCC, MinGW, and MSVC. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 09:08:21 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 09:08:21 -0600 (CST) Subject: [LLVMbugs] [Bug 6448] New: clang -fsyntax-only fails on something g++ accepts Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6448 Summary: clang -fsyntax-only fails on something g++ accepts Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rdivacky at freebsd.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Blocks: 6266 when compiling the attached: pes delta$ g++ -fsyntax-only ext-inst.cc && echo success success pes delta$ clang++ -fsyntax-only ext-inst.cc && echo success ext-inst.cc:20:171: error: '_CharT' does not refer to a value ...= (_Rope_RopeLeaf<_CharT, _Alloc>*)this; __l->_Rope_RopeLeaf<_CharT, _Alloc>::~_Rope_RopeLeaf(); ... ^ ext-inst.cc:19:31: note: declared at template void _Rope_RopeRep<_CharT, _Alloc>:: ... ^ ext-inst.cc:20:424: error: '_CharT' does not refer to a value ...= (_Rope_RopeConcatenation<_CharT, _Alloc>*)this; __c->_Rope_RopeConcatenation<_CharT, _Alloc>:: ... ^ ext-inst.cc:19:31: note: declared at template void _Rope_RopeRep<_CharT, _Alloc>:: ... ^ ext-inst.cc:20:682: error: '_CharT' does not refer to a value ..._Alloc>*)this; __f->_Rope_RopeFunction<_CharT, _Alloc>::~_Rope_RopeFunction(); _F_deallocate(__f, ... ^ ext-inst.cc:19:31: note: declared at template void _Rope_RopeRep<_CharT, _Alloc>:: ... ^ ext-inst.cc:20:935: error: '_CharT' does not refer to a value ...__ss = (_Rope_RopeSubstring<_CharT, _Alloc>*)this; __ss->_Rope_RopeSubstring<_CharT, _Alloc>:: ... ^ ext-inst.cc:19:31: note: declared at template void _Rope_RopeRep<_CharT, _Alloc>:: ... ^ 8 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 llvm.org Mon Mar 1 09:28:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 09:28:11 -0600 (CST) Subject: [LLVMbugs] [Bug 6449] New: clang -fsyntax-only fails on something g++ accepts [2] Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6449 Summary: clang -fsyntax-only fails on something g++ accepts [2] Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rdivacky at freebsd.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Blocks: 6266 pes delta$ g++ -fsyntax-only locale-inst.cc && echo yes yes pes delta$ clang++ -fsyntax-only locale-inst.cc && echo yes locale-inst.cc:27:95: error: redefinition of 'intl' template const bool moneypunct_byname<_CharT, _Intl>::intl; ^ locale-inst.cc:29:22: note: in instantiation of static data member 'std::moneypunct_byname::intl' requested here template class moneypunct_byname; ^ locale-inst.cc:23:88: note: previous definition is here template const bool moneypunct<_CharT, _Intl>::intl; ^ 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 llvm.org Mon Mar 1 09:46:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 09:46:20 -0600 (CST) Subject: [LLVMbugs] [Bug 6450] New: LiveIntervals code doesn't properly identify unspillable registers. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6450 Summary: LiveIntervals code doesn't properly identify unspillable registers. Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: mwb.cde at googlemail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4342) --> (http://llvm.org/bugs/attachment.cgi?id=4342) LiveInterval patch - add no_spill field The spiller code in LiveIntervalAnalysis.cpp and Spiller.cpp asserts when passed a register with infinite weight even if the register is a valid choice for spilling. Registers that can't be spilled, because they are generated by the spiller for a register placed on the stack, are identified by setting their interval weight to HUGE_VALF (== inf). This makes them indistinguishable from normal registers that have infinite weight, which can occur with deeply nested loops such as generated by the test case for bug 5846. The attached LiveIntervals patch adds boolean field no_spill to class LiveInterval, to indicate whether the interval represents a spillable register, and updates the spiller code to set and test the field. It does not change the setting and testing of the interval weight except to remove the assertions so this patch should not affect any existing code. The patch has been tested for the CodeGen component. The RegAllocLinScan patch is a partial, untested change to RegAllocLinearScan to make use of the no_spill field when trying to find a register to spill. It gets the test-case for bug 5846 to compile but is only meant as an example of use and has not been tested. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 09:57:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 09:57:38 -0600 (CST) Subject: [LLVMbugs] [Bug 6376] Assertion failed: ((Result || isa(D)) && "Unable to find instantiation of declaration!"), function FindInstantiatedDecl, file SemaTemplateInstantiateDecl.cpp, line 2306. In-Reply-To: References: Message-ID: <20100301155738.97D182A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6376 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Douglas Gregor 2010-03-01 09:57:37 CST --- Fixed in r97444. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 12:00:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 12:00:16 -0600 (CST) Subject: [LLVMbugs] [Bug 6335] TargetLowering::SimplifyDemandedBits incorrectly handles vector types on Truncate In-Reply-To: References: Message-ID: <20100301180016.E921D2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6335 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Dan Gohman 2010-03-01 12:00:16 CST --- Thanks for the report and patch. I applied a fix to trunk in r97461. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 12:21:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 12:21:19 -0600 (CST) Subject: [LLVMbugs] [Bug 5825] c++ parser infinite loop In-Reply-To: References: Message-ID: <20100301182119.2A4AB2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5825 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED CC| |rjmccall at apple.com Resolution| |FIXED --- Comment #4 from John McCall 2010-03-01 12:21:18 CST --- Fixed in r97462. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 13:00:24 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 13:00:24 -0600 (CST) Subject: [LLVMbugs] [Bug 6375] Assertion failed: (Result && "declaration was not instantiated in this scope!") In-Reply-To: References: Message-ID: <20100301190024.406072A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6375 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from Douglas Gregor 2010-03-01 13:00:23 CST --- Fixed in r97471. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 13:03:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 13:03:53 -0600 (CST) Subject: [LLVMbugs] [Bug 6448] clang -fsyntax-only fails on something g++ accepts In-Reply-To: References: Message-ID: <20100301190353.B7FDF2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6448 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Douglas Gregor 2010-03-01 13:03:53 CST --- In all of these cases, the code is ill-formed because it is missing a "template" keyword after the "->". We should produce a better diagnostic, but that's PR5404. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 13:12:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 13:12:25 -0600 (CST) Subject: [LLVMbugs] [Bug 6449] clang -fsyntax-only fails on something g++ accepts [2] In-Reply-To: References: Message-ID: <20100301191225.229C32A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6449 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2010-03-01 13:12:24 CST --- Fixed in r97478. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 13:24:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 13:24:46 -0600 (CST) Subject: [LLVMbugs] [Bug 2194] Wrong NoAlias from Andersens alias analysis in combination with loop-reduce In-Reply-To: References: Message-ID: <20100301192446.BAA692A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=2194 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WONTFIX --- Comment #2 from Chris Lattner 2010-03-01 13:24:46 CST --- I just removed anders-aa from mainline. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 13:25:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 13:25:00 -0600 (CST) Subject: [LLVMbugs] [Bug 2451] Anders pass asserts on extractelement/insertelement In-Reply-To: References: Message-ID: <20100301192500.7DC362A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=2451 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #4 from Chris Lattner 2010-03-01 13:25:00 CST --- I just removed anders-aa from mainline. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 13:25:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 13:25:42 -0600 (CST) Subject: [LLVMbugs] [Bug 3323] AliasAnalysis pass removed before function pass can use it In-Reply-To: References: Message-ID: <20100301192542.19E832A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3323 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #4 from Chris Lattner 2010-03-01 13:25:41 CST --- I just removed anders-aa from mainline, so this doesn't repro. If it remains a problem we can investigate in the future. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 13:34:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 13:34:54 -0600 (CST) Subject: [LLVMbugs] [Bug 6451] New: Missing diagnostics for jump crossing initialization Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6451 Summary: Missing diagnostics for jump crossing initialization Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: dgregor at apple.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The jump diagnostics need to learn that we can't jump past an initialization in C++: terfin:clang dgregor$ cat t.C struct X { X(); }; void f() { goto later; X x; later: ; } terfin:clang dgregor$ clang -fsyntax-only t.C terfin:clang dgregor$ g++ -fsyntax-only t.C t.C: In function ?void f()?: t.C:8: error: jump to label ?later? t.C:6: error: from here t.C:7: error: crosses initialization of ?X x? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 14:23:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 14:23:26 -0600 (CST) Subject: [LLVMbugs] [Bug 6452] New: Prevent an input structure from being copied to the stack Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6452 Summary: Prevent an input structure from being copied to the stack Product: libraries Version: 2.6 Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: Register Allocator AssignedTo: unassignedbugs at nondot.org ReportedBy: llvm at henning-thielemann.de CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4347) --> (http://llvm.org/bugs/attachment.cgi?id=4347) an example where values are copied from an input struct to the stack, although they could remain in the input struct I have a function definition like define i32 @_fun1(%param* noalias, i32, float* noalias) that reads parameters from a struct type %param and writes results to a float array of size with type i32. Now LLVM generates code that first copies all parameters to the stack. This is correct in all circumstances but in my application I can warrant that the parameter struct and the float array do not overlap and thus the parameters could always be fetched directly from the parameter struct. But maybe this isn't even a bug but a feature, because LLVM expects faster memory access if all temporarily needed values are at one place (on the stack)? Maybe this is related to http://llvm.org/bugs/show_bug.cgi?id=1819 http://llvm.org/bugs/show_bug.cgi?id=1821 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 14:45:32 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 14:45:32 -0600 (CST) Subject: [LLVMbugs] [Bug 6453] New: LSR produces invalid IR Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6453 Summary: LSR produces invalid IR Product: libraries Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: Loop Optimizer AssignedTo: unassignedbugs at nondot.org ReportedBy: stoklund at 2pi.dk CC: llvmbugs at cs.uiuc.edu This cropped up during a bugpoint session: $ Release/bin/opt -loop-reduce -verify LoopReduce.ll -o /dev/null Instruction does not dominate all uses! %lsr.iv.next5 = add i32 %lsr.iv4, %lsr.iv2 ; [#uses=2] %tmp9 = sub i32 %lsr.iv.next5, %tmp8 ; [#uses=1] Broken module found, compilation aborted! 0 opt 0x000000010041ca92 PrintStackTrace(void*) + 34 1 opt 0x000000010041d27c SignalHandler(int) + 652 2 libSystem.B.dylib 0x00007fff8160deaa _sigtramp + 26 3 libSystem.B.dylib 0x00007fff5fbfeec0 _sigtramp + 3730772016 4 opt 0x00000001003e33b1 (anonymous namespace)::Verifier::runOnFunction(llvm::Function&) + 2049 5 opt 0x00000001003b7f10 llvm::FPPassManager::runOnFunction(llvm::Function&) + 512 6 opt 0x00000001003b806b llvm::FPPassManager::runOnModule(llvm::Module&) + 75 7 opt 0x00000001003b97ce llvm::MPPassManager::runOnModule(llvm::Module&) + 478 8 opt 0x00000001003b9983 llvm::PassManagerImpl::run(llvm::Module&) + 147 9 opt 0x00000001003b9a0d llvm::PassManager::run(llvm::Module&) + 13 10 opt 0x00000001000465d7 main + 2951 11 opt 0x000000010003caa8 start + 52 Stack dump: 0. Program arguments: Release/bin/opt -loop-reduce -verify LoopReduce.ll -o /dev/null 1. Running pass 'Function Pass Manager' on module 'LoopReduce.ll'. 2. Running pass 'Module Verifier' on function '@_ZNK15PolynomialSpaceILi3EE13compute_indexEjRA3_j' 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 llvm.org Mon Mar 1 14:53:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 14:53:02 -0600 (CST) Subject: [LLVMbugs] [Bug 6454] New: clang -fsyntax-only fails on something g++ accepts [3] Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6454 Summary: clang -fsyntax-only fails on something g++ accepts [3] Product: clang Version: unspecified Platform: PC OS/Version: FreeBSD Status: NEW Severity: enhancement Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rdivacky at freebsd.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com pes delta$ g++ -fsyntax-only ext-inst.cc && echo success success pes delta$ clang++ -fsyntax-only ext-inst.cc && echo success ext-inst.cc:9:5: warning: control reaches end of non-void function [-Wreturn-type] } ^ ext-inst.cc:37:41: error: use of undeclared identifier '_Data_allocate' _CharT* __new_data = (_CharT*) _Data_allocate(_S_rounded_up_size(__old_len + __len)); ^ 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 llvm.org Mon Mar 1 14:56:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 14:56:02 -0600 (CST) Subject: [LLVMbugs] [Bug 6455] New: Clear most significant 32 bits in the elements <2 x i64> efficiently Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6455 Summary: Clear most significant 32 bits in the elements <2 x i64> efficiently Product: libraries Version: 2.6 Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: llvm at henning-thielemann.de CC: llvmbugs at cs.uiuc.edu I wanted to write a multiplication of two <2 x i 64> vectors that could be implemented by pmuludq. (See http://llvm.org/bugs/show_bug.cgi?id=6399) I cleared the upper 32 bits of the vector elements of the factors before doing the multiplication, in order to show LLVM that pmuludq can be used instead of a full <2 x i 64> multiplication. (I was not sure whether LLVM understands this hint.) However I found that clearing the upper 32 bits is sometimes compiled to quite inefficient code depending on how I write it. The first two of the following implementations lead to inefficient code, and might be replaced automatically by the last one. define <2 x i64> @_clearupper2xi64a(<2 x i64>) { %x0 = extractelement <2 x i64> %0, i32 0 %x1 = extractelement <2 x i64> %0, i32 1 %trunc0 = trunc i64 %x0 to i32 %trunc1 = trunc i64 %x1 to i32 %ext0 = zext i32 %trunc0 to i64 %ext1 = zext i32 %trunc1 to i64 %v0 = insertelement <2 x i64> undef, i64 %ext0, i32 0 %v1 = insertelement <2 x i64> %v0, i64 %ext1, i32 1 ret <2 x i64> %v1 } define <2 x i64> @_clearupper2xi64b(<2 x i64>) { %x32 = bitcast <2 x i64> %0 to <4 x i32> %r0 = insertelement <4 x i32> %x32, i32 zeroinitializer, i32 1 %r1 = insertelement <4 x i32> %r0, i32 zeroinitializer, i32 3 %r = bitcast <4 x i32> %r1 to <2 x i64> ret <2 x i64> %r } define <2 x i64> @_clearupper2xi64c(<2 x i64>) { %r = and <2 x i64> , %0 ret <2 x i64> %r } They are compiled to: .align 16 .globl _clearupper2xi64a .type _clearupper2xi64a, at function _clearupper2xi64a: # @_clearupper2xi64a .Leh_func_begin7: .LBB7_0: pushl %ebp .Llabel14: movl %esp, %ebp .Llabel15: andl $-16, %esp xorps %xmm1, %xmm1 movss %xmm0, %xmm1 movhlps %xmm0, %xmm0 movd %xmm0, %eax movd %eax, %xmm2 movaps %xmm1, %xmm0 movlhps %xmm2, %xmm0 movl %ebp, %esp popl %ebp ret .size _clearupper2xi64a, .-_clearupper2xi64a .Leh_func_end7: .align 16 .globl _clearupper2xi64b .type _clearupper2xi64b, at function _clearupper2xi64b: # @_clearupper2xi64b .Leh_func_begin8: .LBB8_0: pushl %ebp .Llabel16: movl %esp, %ebp .Llabel17: andl $-16, %esp movaps %xmm0, %xmm1 pslldq $8, %xmm1 shufps $226, %xmm0, %xmm1 xorl %eax, %eax movd %eax, %xmm0 movaps %xmm1, %xmm2 movss %xmm0, %xmm2 movaps %xmm1, %xmm0 shufps $36, %xmm2, %xmm0 movl %ebp, %esp popl %ebp ret .size _clearupper2xi64b, .-_clearupper2xi64b .Leh_func_end8: .section .rodata.cst16,"aM", at progbits,16 .align 16 .LCPI9_0: # constant <4 x i32> .long 4294967295 # 0xFFFFFFFF .zero 4 .long 4294967295 # 0xFFFFFFFF .zero 4 .text .align 16 .globl _clearupper2xi64c .type _clearupper2xi64c, at function _clearupper2xi64c: # @_clearupper2xi64c .Leh_func_begin9: .LBB9_0: pushl %ebp .Llabel18: movl %esp, %ebp .Llabel19: andl $-16, %esp pand .LCPI9_0, %xmm0 movl %ebp, %esp popl %ebp ret .size _clearupper2xi64c, .-_clearupper2xi64c .Leh_func_end9: -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 14:56:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 14:56:23 -0600 (CST) Subject: [LLVMbugs] [Bug 6454] clang -fsyntax-only fails on something g++ accepts [3] In-Reply-To: References: Message-ID: <20100301205623.0F9B52A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6454 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Douglas Gregor 2010-03-01 14:56:22 CST --- Clang is correct here. There are no type-dependent arguments in the call to _Data_allocate, so name lookup fails at template definition 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 llvm.org Mon Mar 1 15:00:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 15:00:19 -0600 (CST) Subject: [LLVMbugs] [Bug 6451] Missing diagnostics for jump crossing initialization In-Reply-To: References: Message-ID: <20100301210019.EB1B62A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6451 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2010-03-01 15:00:19 CST --- Implemented here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20100301/028039.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 llvm.org Mon Mar 1 15:01:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 15:01:05 -0600 (CST) Subject: [LLVMbugs] [Bug 6450] LiveIntervals code doesn't properly identify unspillable registers. In-Reply-To: References: Message-ID: <20100301210105.D273C2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6450 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Jakob Stoklund Olesen 2010-03-01 15:01:05 CST --- Fixed in r97496 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 15:01:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 15:01:41 -0600 (CST) Subject: [LLVMbugs] [Bug 5846] Linear Scan Runs Out of Registers In-Reply-To: References: Message-ID: <20100301210141.B53D32A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5846 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |stoklund at 2pi.dk Resolution| |FIXED --- Comment #2 from Jakob Stoklund Olesen 2010-03-01 15:01:41 CST --- Fixed in r97496 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 15:06:34 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 15:06:34 -0600 (CST) Subject: [LLVMbugs] [Bug 5933] bogus unused variable warning after error In-Reply-To: References: Message-ID: <20100301210634.5D0252A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5933 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #9 from Chris Lattner 2010-03-01 15:06:33 CST --- Fixed here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20100301/028040.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 llvm.org Mon Mar 1 15:18:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 15:18:01 -0600 (CST) Subject: [LLVMbugs] [Bug 6456] New: clang -fsyntax-only fails on something g++ accepts [4] Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6456 Summary: clang -fsyntax-only fails on something g++ accepts [4] Product: clang Version: unspecified Platform: PC OS/Version: FreeBSD Status: NEW Severity: enhancement Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rdivacky at freebsd.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com pes delta$ cat locale-inst.cc namespace std __attribute__ ((__visibility__ ("default"))) { class locale { class facet; }; class locale::facet { }; struct ctype_base { }; } namespace std __attribute__ ((__visibility__ ("default"))) { template class __ctype_abstract_base : public locale::facet, public ctype_base { }; inline template class __ctype_abstract_base; } pes delta$ g++ -fsyntax-only locale-inst.cc && echo yes yes pes delta$ clang++ -fsyntax-only locale-inst.cc && echo yes locale-inst.cc:13:18: error: expected unqualified-id inline template class __ctype_abstract_base; ^ 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 llvm.org Mon Mar 1 15:18:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 15:18:27 -0600 (CST) Subject: [LLVMbugs] [Bug 6317] Clang gets confused with nested classes and friend declarations In-Reply-To: References: Message-ID: <20100301211827.4E9132A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6317 Chandler Carruth changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #5 from Chandler Carruth 2010-03-01 15:18:26 CST --- Fixed in r97499, sorry for delays. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 15:20:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 15:20:04 -0600 (CST) Subject: [LLVMbugs] [Bug 6376] Assertion failed: ((Result || isa(D)) && "Unable to find instantiation of declaration!"), function FindInstantiatedDecl, file SemaTemplateInstantiateDecl.cpp, line 2306. In-Reply-To: References: Message-ID: <20100301212004.86AC22A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6376 Andrius Morkunas changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #4274|0 |1 is obsolete| | Status|RESOLVED |REOPENED Resolution|FIXED | AssignedTo|unassignedclangbugs at nondot. |hinokind at gmail.com |org | --- Comment #6 from Andrius Morkunas 2010-03-01 15:20:03 CST --- Created an attachment (id=4351) --> (http://llvm.org/bugs/attachment.cgi?id=4351) preprocessed file This was failing with the same assert before, now fails with updated assert: $ clang assert8v2.cc Assertion failed: ((Result || isa(D) || D->isInvalidDecl() || cast(ParentDC)->isInvalidDecl()) && "Unable to find instantiation of declaration!"), function FindInstantiatedDecl, file SemaTemplateInstantiateDecl.cpp, line 2337. Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-unknown-freebsd8.0 -S -disable-free -main-file-name assert8v2.cc -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.1 -fmessage-length 157 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-3UXV1F.s -x c++ assert8v2.cc 1. systemimagelist.cpp:44:66: current parser token 'Iterator' clang: error: compiler command failed due to signal 6 (use -v to see invocation) $ clang --version clang version 1.1 (trunk 97498) Target: x86_64-segfault-freebsd8.0 Thread model: posix -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 15:22:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 15:22:17 -0600 (CST) Subject: [LLVMbugs] [Bug 4946] tblgen generating insane function in cellspu dag isel In-Reply-To: References: Message-ID: <20100301212217.D41AA2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4946 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #10 from Chris Lattner 2010-03-01 15:22:17 CST --- Fixed by the new isel, 2.7 won't have 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 llvm.org Mon Mar 1 15:25:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 15:25:00 -0600 (CST) Subject: [LLVMbugs] [Bug 5424] Sink SelectAddr into Emit_* functions In-Reply-To: References: Message-ID: <20100301212500.E72BA2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5424 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #4 from Chris Lattner 2010-03-01 15:25:00 CST --- The new isel doesn't have this code at all: problem defined 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 llvm.org Mon Mar 1 15:26:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 15:26:00 -0600 (CST) Subject: [LLVMbugs] [Bug 5708] X86ISelDAGToDAG.ii is very to slow compile with llvm-g++ In-Reply-To: References: Message-ID: <20100301212600.230782A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5708 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Chris Lattner 2010-03-01 15:25:59 CST --- Fixed: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100301/097068.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 llvm.org Mon Mar 1 15:38:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 15:38:04 -0600 (CST) Subject: [LLVMbugs] [Bug 1401] Targets should model flags explicitly In-Reply-To: References: Message-ID: <20100301213804.4C05E2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=1401 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Chris Lattner 2010-03-01 15:38:03 CST --- I don't see a point of keeping this bug around anymore. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 15:39:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 15:39:26 -0600 (CST) Subject: [LLVMbugs] [Bug 3624] Tablegen incorrectly transoforming a pattern In-Reply-To: References: Message-ID: <20100301213926.97C512A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3624 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |INVALID --- Comment #6 from Chris Lattner 2010-03-01 15:39:26 CST --- The relevant code is not used in mainline anymore, welcome to the brave new isel world. :) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 15:41:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 15:41:29 -0600 (CST) Subject: [LLVMbugs] [Bug 6456] clang -fsyntax-only fails on something g++ accepts [4] In-Reply-To: References: Message-ID: <20100301214129.8219D2A6C133@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6456 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Douglas Gregor 2010-03-01 15:41:29 CST --- Clang is doing the right thing here; the "inline" is spurious. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 15:41:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 15:41:53 -0600 (CST) Subject: [LLVMbugs] [Bug 5993] infinite loop in backend on scheduling mem-to-mem In-Reply-To: References: Message-ID: <20100301214153.91C932A6C131@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5993 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #8 from Chris Lattner 2010-03-01 15:41:53 CST --- The new isel shouldn't make cyclic dags for stuff like 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 llvm.org Mon Mar 1 16:09:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 16:09:46 -0600 (CST) Subject: [LLVMbugs] [Bug 2590] TableGen generates different output on different platforms In-Reply-To: References: Message-ID: <20100301220946.3FD882A6C135@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=2590 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #8 from Chris Lattner 2010-03-01 16:09:45 CST --- Fixed: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100301/097095.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 llvm.org Mon Mar 1 16:07:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 16:07:08 -0600 (CST) Subject: [LLVMbugs] [Bug 1401] Targets should model flags explicitly In-Reply-To: References: Message-ID: <20100301220708.F2AD72A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=1401 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |gohman at apple.com Resolution|FIXED | --- Comment #6 from Dan Gohman 2010-03-01 16:07:08 CST --- MVT::Flag is over-conservative. It's still desirable to replace it with more precise physreg modeling. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 17:15:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 17:15:37 -0600 (CST) Subject: [LLVMbugs] [Bug 6382] use of undeclared label In-Reply-To: References: Message-ID: <20100301231537.622C62A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6382 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-03-01 17:15:37 CST --- Fixed in r97518. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 17:32:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 17:32:57 -0600 (CST) Subject: [LLVMbugs] [Bug 4885] Warnings from compiling llvm with icc In-Reply-To: References: Message-ID: <20100301233257.896F32A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4885 Erick Tryzelaar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #17 from Erick Tryzelaar 2010-03-01 17:32:56 CST --- It's been a while since I tried to compile llvm with icc, and it turns out that it rebroke. I'll close this and file some new bugs. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 17:49:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 17:49:45 -0600 (CST) Subject: [LLVMbugs] [Bug 6376] Assertion failed: ((Result || isa(D)) && "Unable to find instantiation of declaration!"), function FindInstantiatedDecl, file SemaTemplateInstantiateDecl.cpp, line 2306. In-Reply-To: References: Message-ID: <20100301234945.E2E9F2A6C131@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6376 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #9 from Douglas Gregor 2010-03-01 17:49:45 CST --- Nice bug. Fixed again in r97524. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 19:00:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 19:00:44 -0600 (CST) Subject: [LLVMbugs] [Bug 4791] PassMananger can't use alternate AliasAnalysis with GVN In-Reply-To: References: Message-ID: <20100302010044.A0F6F2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4791 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|DUPLICATE | --- Comment #2 from Dan Gohman 2010-03-01 19:00:44 CST --- With 3323 being associated with -anders-aa, this bug is no longer a duplicate. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 19:13:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 19:13:15 -0600 (CST) Subject: [LLVMbugs] [Bug 6457] New: Clang fails to model explicitly created temporaries correctly Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6457 Summary: Clang fails to model explicitly created temporaries correctly Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: chandlerc at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The summary is based on the discussion with John and Doug about the cause of a rather mysterious diagnostic for entirely valid C++ code. Here is the test case chandlerc at osiris build % cat t.cc template struct X { explicit X(T* p = 0) { }; }; template struct Y { Y(int, const T& x); }; struct A { }; template struct B { B() : y(0, X()) { } Y > y; }; B b; chandlerc at osiris build % ./bin/clang -fsyntax-only t.cc t.cc:6:9: error: no matching constructor for initialization of 'Y >' B() : y(0, X()) { } ^ t.cc:9:8: note: in instantiation of member function 'B::B' requested here B b; ^ t.cc:2:34: note: candidate constructor not viable: no known conversion from 'struct A *' to 'struct X const' for 2nd argument template struct Y { Y(int, const T& x); }; ^ t.cc:2:30: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 2 were provided template struct Y { Y(int, const T& x); }; ^ 4 diagnostics generated. After some digging and discussion, the root cause of the problem is that we are somehow no longer building CXXTemporaryObjectExpr objects to represent explict calls to constructors, and instead are building a CXXConstructCall, which as Doug said, should actually be called CXXImplicitConstructCall or some such. In fact, we never construct CXXTemporaryObjectExprs any more, probably a bad sign. ;] -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 19:18:55 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 19:18:55 -0600 (CST) Subject: [LLVMbugs] [Bug 1754] Bunch of small memory leaks in LLVM In-Reply-To: References: Message-ID: <20100302011855.9490C2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=1754 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |gohman at apple.com Resolution| |FIXED --- Comment #3 from Dan Gohman 2010-03-01 19:18:54 CST --- The problems have been fixed; llc is now valgrind-clean on the testcase. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 19:30:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 19:30:19 -0600 (CST) Subject: [LLVMbugs] [Bug 6383] use of undeclared identifier In-Reply-To: References: Message-ID: <20100302013019.16D122A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6383 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-03-01 19:30:18 CST --- Fixed in r97534. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 19:36:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 19:36:39 -0600 (CST) Subject: [LLVMbugs] [Bug 5812] clang fails to find dependent base class when it's referenced via Derived:: In-Reply-To: References: Message-ID: <20100302013639.B30112A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5812 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #1 from Douglas Gregor 2010-03-01 19:36:39 CST --- This is working as of r97535. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 20:00:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 20:00:02 -0600 (CST) Subject: [LLVMbugs] [Bug 6453] LSR produces invalid IR In-Reply-To: References: Message-ID: <20100302020002.8C6882A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6453 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Dan Gohman 2010-03-01 20:00:02 CST --- Fixed in r97537. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 20:16:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 20:16:54 -0600 (CST) Subject: [LLVMbugs] [Bug 6438] many functions that call SelectionDAG::ComputeMaskedBits are broken with respect to vectors In-Reply-To: References: Message-ID: <20100302021654.EA9EB2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6438 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Dan Gohman 2010-03-01 20:16:54 CST --- Patch applied to trunk in 97538. In the future, please send "diff -u" patches, such as those produced by svn diff or diff -u. 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 llvm.org Mon Mar 1 20:19:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 20:19:20 -0600 (CST) Subject: [LLVMbugs] [Bug 6334] x86 cannot select sign_extend_inreg on vector types In-Reply-To: References: Message-ID: <20100302021920.66F2D2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6334 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |gohman at apple.com Resolution| |WORKSFORME --- Comment #1 from Dan Gohman 2010-03-01 20:19:20 CST --- The testcase works for me, x86 and x86-64, with and without -disable-mmx. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 1 21:36:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 21:36:09 -0600 (CST) Subject: [LLVMbugs] [Bug 4380] __builtin_object_size In-Reply-To: References: Message-ID: <20100302033609.8E3412A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4380 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #10 from Eric Christopher 2010-03-01 21:36:09 CST --- Fixed 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 llvm.org Mon Mar 1 23:07:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 23:07:27 -0600 (CST) Subject: [LLVMbugs] [Bug 6388] AC_HUGE_VAL_CHECK overwrite CXXFLAGS In-Reply-To: References: Message-ID: <20100302050727.A197B2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6388 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Eric Christopher 2010-03-01 23:07:27 CST --- Applied thusly: [ghostwheel:~/sources/llvm] echristo% svn ci configure autoconf/m4/huge_val.m4 Sending autoconf/m4/huge_val.m4 Sending configure Transmitting file data .. Committed revision 97548. 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 llvm.org Mon Mar 1 23:17:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Mar 2010 23:17:48 -0600 (CST) Subject: [LLVMbugs] [Bug 6267] Documentation path is weird In-Reply-To: References: Message-ID: <20100302051748.69C2D2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6267 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #5 from Eric Christopher 2010-03-01 23:17:48 CST --- Fixed with this commit: [ghostwheel:~/sources/llvm] echristo% svn ci configure autoconf/configure.ac Sending autoconf/configure.ac Sending configure Transmitting file data .. Committed revision 97549. 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 llvm.org Tue Mar 2 00:27:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 00:27:07 -0600 (CST) Subject: [LLVMbugs] [Bug 5309] incorrect __SOFTFP__ breaks build on ARM In-Reply-To: References: Message-ID: <20100302062707.8971C2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5309 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |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 llvm.org Tue Mar 2 03:47:06 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 03:47:06 -0600 (CST) Subject: [LLVMbugs] [Bug 6458] New: clang++ emits T while g++ emits U symbol Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6458 Summary: clang++ emits T while g++ emits U symbol Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rdivacky at freebsd.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com pes delta$ clang++ -c locale-inst.cc && nm locale-inst.o | grep _M_compare .... warnings .... 4 diagnostics generated. 0000000000000000 T _ZNKSt7collateIcE10_M_compareEPKcS2_ pes delta$ g++ -c locale-inst.cc && nm locale-inst.o | grep _M_compare U _ZNKSt7collateIcE10_M_compareEPKcS2_ -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 06:25:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 06:25:45 -0600 (CST) Subject: [LLVMbugs] [Bug 5309] incorrect __SOFTFP__ breaks build on ARM In-Reply-To: References: Message-ID: <20100302122545.474462A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5309 Xerxes R?nby changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |xerxes at zafena.se Resolution|FIXED | --- Comment #3 from Xerxes R?nby 2010-03-02 06:25:44 CST --- this change broke the armv5tejl (softfloat) buildbot http://llvm.org/viewvc/llvm-project/?view=rev&revision=97554 can we redesign this to work with SOFTFP machines as well? llvm[3]: Compiling ARMJITInfo.cpp for Debug build /tmp/ccA22Bpb.s: Assembler messages: /tmp/ccA22Bpb.s:26: Error: selected processor does not support `fstmfdd sp!,{d0,d1,d2,d3,d4,d5,d6,d7}' /tmp/ccA22Bpb.s:31: Error: selected processor does not support `fldmfdd sp!,{d0,d1,d2,d3,d4,d5,d6,d7}' make[3]: *** [/wd/buildbot/llvm-arm-linux/llvm/lib/Target/ARM/Debug/ARMJITInfo.o] Error 1 make[3]: Leaving directory `/wd/buildbot/llvm-arm-linux/llvm/lib/Target/ARM' make[2]: *** [ARM/.makeall] 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 llvm.org Tue Mar 2 07:28:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 07:28:41 -0600 (CST) Subject: [LLVMbugs] [Bug 5309] incorrect __SOFTFP__ breaks build on ARM In-Reply-To: References: Message-ID: <20100302132841.D50FA2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5309 Xerxes R?nby changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #5 from Xerxes R?nby 2010-03-02 07:28:41 CST --- Fix pushed hopefully this resolves all VFP and SOFTFP variants. http://llvm.org/viewvc/llvm-project?view=rev&revision=97564 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 09:25:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 09:25:25 -0600 (CST) Subject: [LLVMbugs] [Bug 6459] New: Assertion failed: (DD->getOperatorDelete() && "operator delete missing - EmitDtorEpilogue"), function EmitDtorEpilogue, file CGClass.cpp, line 1116. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6459 Summary: Assertion failed: (DD->getOperatorDelete() && "operator delete missing - EmitDtorEpilogue"), function EmitDtorEpilogue, file CGClass.cpp, line 1116. Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ich at az2000.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com [ 28%] Building CXX object CMakeFiles/openlierox.dir/src/common/CWorm.o Assertion failed: (DD->getOperatorDelete() && "operator delete missing - EmitDtorEpilogue"), function EmitDtorEpilogue, file CGClass.cpp, line 1116. 0 clang 0x00edd1a0 main + 15560074 1 clang 0x00edd60a main + 15561204 2 libSystem.B.dylib 0x954282bb _sigtramp + 43 3 libSystem.B.dylib 0xffffffff _sigtramp + 1790803311 4 libSystem.B.dylib 0x9549c23a raise + 26 5 libSystem.B.dylib 0x954a8679 abort + 73 6 libSystem.B.dylib 0x9549d3db __assert_rtn + 101 7 clang 0x0013ffa6 main + 1285008 8 clang 0x0014096c main + 1287510 9 clang 0x001f35e4 main + 2019790 10 clang 0x00134bf7 main + 1239009 11 clang 0x001fbc7e main + 2054248 12 clang 0x001fbdd4 main + 2054590 13 clang 0x001fc02c main + 2055190 14 clang 0x002133a6 main + 2150288 15 clang 0x0001f3fc main + 102374 16 clang 0x00220154 main + 2202942 17 clang 0x0003f784 main + 234350 18 clang 0x0003f674 main + 234078 19 clang 0x00020f3b main + 109349 20 clang 0x00002a14 _mh_execute_header + 6676 21 clang 0x000064ff main + 233 22 clang 0x00001936 _mh_execute_header + 2358 23 clang 0x00000033 _mh_execute_header + 18446744073709547571 Stack dump: 0. Program arguments: /Users/az/Programmierung/CppIDE/llvm-src/Debug/bin/clang -cc1 -triple i386-apple-darwin9.0.0 -S -disable-free -main-file-name CWorm.cpp -pic-level 1 -mdisable-fp-elim -target-cpu yonah -g -resource-dir /Users/az/Programmierung/CppIDE/llvm-src/Debug/lib/clang/1.1 -DDEBUG=1 -D_AI_DEBUG -D SYSTEM_DATA_DIR="/usr/share/games" -I/Users/az/Programmierung/openlierox/./optional-includes/generated -I/Users/az/Programmierung/openlierox/./include -I/Users/az/Programmierung/openlierox/./src -I/Users/az/Programmierung/openlierox/./libs/pstreams -I/usr/include/libxml2 -I/usr/local/include/libxml2 -I/Users/az/Programmierung/openlierox/./libs/breakpad/src -I/Users/az/Programmierung/openlierox/./libs/hawknl/include -I/Users/az/Programmierung/openlierox/./libs/libzip -I/Users/az/Programmierung/openlierox/./libs/lua -I/Users/az/Programmierung/openlierox/./build/Xcode/include -I/Users/az/Programmierung/openlierox/./build/Xcode/freealut/include -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/SDL_image.framework/Headers -I/Library/Frameworks/SDL_mixer.framework/Headers -I/Library/Frameworks/UnixImageIO.framework/Headers -I/Library/Frameworks/GD.framework/Headers -F ./build/Xcode -F/Library/Frameworks -Wall -fmessage-length 84 -pthread -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/P9/P9wWY+Z8HDeOPixVmDZ0J++++TI/-Tmp-/cc-mmfFCw.s -x c++ /Users/az/Programmierung/openlierox/src/common/CWorm.cpp 1. parser at end of file 2. Per-file LLVM IR generation 3. /Users/az/Programmierung/openlierox/src/common/CWorm.cpp:42:15: Generating code for declaration 'CWorm::SkinDynDrawer::~SkinDynDrawer' clang: error: compiler command failed due to signal 6 (use -v to see invocation) make[2]: *** [CMakeFiles/openlierox.dir/src/common/CWorm.o] Error 250 make[1]: *** [CMakeFiles/openlierox.dir/all] Error 2 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 llvm.org Tue Mar 2 09:49:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 09:49:36 -0600 (CST) Subject: [LLVMbugs] [Bug 6460] New: Codegen aborts Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6460 Summary: Codegen aborts Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com ./llvm-build/Debug/bin/clang -cc1 -S test.ii clang: /usr/local/google/home/espindola/llvm/llvm/include/llvm/Support/Casting.h:200: typename llvm::cast_retty::ret_type llvm::cast(const Y&) [with X = clang::VarDecl, Y = const clang::NamedDecl*]: Assertion `isa(Val) && "cast() argument of incompatible type!"' 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 llvm.org Tue Mar 2 10:47:24 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 10:47:24 -0600 (CST) Subject: [LLVMbugs] [Bug 6461] New: wrong error: functions that differ only in their return type cannot be overloaded Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6461 Summary: wrong error: functions that differ only in their return type cannot be overloaded Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ich at az2000.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com In file included from /Users/az/Programmierung/openlierox/src/common/Process.cpp:83: /Users/az/Programmierung/openlierox/./libs/pstreams/pstream.h:1742:28: error: functions that differ only in their return type cannot be overloaded basic_pstreambuf::wpipe() ^ /Users/az/Programmierung/openlierox/./libs/pstreams/pstream.h:221:7: note: previous declaration is here wpipe(); ^ The bug is, that the first occurance is only the declaration and the second one the definition of the declaration. The code seems correct and valid to me. Also, all versions of GCC I have tried so far (I think GCC 3.4, several 4.*) accept this 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 llvm.org Tue Mar 2 10:53:12 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 10:53:12 -0600 (CST) Subject: [LLVMbugs] [Bug 6462] New: wrong(?) error: member 'rdbuf' found in multiple base classes of different types Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6462 Summary: wrong(?) error: member 'rdbuf' found in multiple base classes of different types Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ich at az2000.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com /Users/az/Programmierung/openlierox/src/common/Process.cpp:96:9: error: member 'rdbuf' found in multiple base classes of different types if(p->rdbuf()) p->rdbuf()->kill(); ^ In file included from /Users/az/Programmierung/openlierox/src/common/Process.cpp:11: In file included from /Users/az/Programmierung/openlierox/./include/Process.h:13: In file included from /usr/include/c++/4.0.0/iostream:43: In file included from /usr/include/c++/4.0.0/ostream:43: In file included from /usr/include/c++/4.0.0/ios:49: /usr/include/c++/4.0.0/bits/basic_ios.h:306:7: note: member found by ambiguous name lookup rdbuf() const ^ In file included from /Users/az/Programmierung/openlierox/src/common/Process.cpp:83: /Users/az/Programmierung/openlierox/./libs/pstreams/pstream.h:315:7: note: member found by ambiguous name lookup rdbuf() const; ^ I am not exactly sure about this. Maybe the clang error is valid. The point is that all GCC versions I have tried so far accept it. And I think ICC 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 llvm.org Tue Mar 2 10:55:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 10:55:30 -0600 (CST) Subject: [LLVMbugs] [Bug 1675] instcombine neg(zext(bool)) to sext(bool) In-Reply-To: References: Message-ID: <20100302165530.93A822A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=1675 Alastair Lynn changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |arplynn at gmail.com Resolution| |FIXED --- Comment #3 from Alastair Lynn 2010-03-02 10:55:30 CST --- All of these transformations are now done apart from select bool X, -1, 0 -> sext from bool where the reverse is 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 llvm.org Tue Mar 2 11:03:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 11:03:19 -0600 (CST) Subject: [LLVMbugs] [Bug 6463] New: crash in clang::Type::getTypeClass() Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6463 Summary: crash in clang::Type::getTypeClass() Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ich at az2000.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Process: clang [94528] Path: /Users/az/Programmierung/CppIDE/llvm-src/Debug/bin/clang Identifier: clang Version: ??? (???) Code Type: X86 (Native) Parent Process: clang++ [94527] Interval Since Last Report: 5899 sec Crashes Since Last Report: 2 Per-App Interval Since Last Report: 0 sec Per-App Crashes Since Last Report: 2 Date/Time: 2010-03-02 18:02:27.652 +0100 OS Version: Mac OS X 10.5.8 (9L30) Report Version: 6 Anonymous UUID: C99325D9-953E-44CB-A0FE-88CB8BF0B517 Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000008 Crashed Thread: 0 Application Specific Information: Stack dump: 0. Program arguments: /Users/az/Programmierung/CppIDE/llvm-src/Debug/bin/clang -cc1 -triple i386-apple-darwin9.0.0 -S -disable-free -main-file-name test.cpp -pic-level 1 -mdisable-fp-elim -target-cpu yonah -resource-dir /Users/az/Programmierung/CppIDE/llvm-src/Debug/lib/clang/1.1 -fmessage-length 84 -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/P9/P9wWY+Z8HDeOPixVmDZ0J++++TI/-Tmp-/cc-iGRXbn.s -x c++ test.cpp 1. test.cpp:8:32: current parser token '{' Thread 0 Crashed: 0 clang 0x0005f7ed clang::Type::getTypeClass() const + 9 1 clang 0x0009f99d clang::TypeLoc::getTypeLocClass() const + 77 2 clang 0x0058183e clang::TypeLocVisitor<(anonymous namespace)::NextLoc, clang::TypeLoc>::Visit(clang::TypeLoc) + 24 3 clang 0x0057d3f5 clang::TypeLoc::getNextTypeLocImpl(clang::TypeLoc) + 31 4 clang 0x004e610a clang::TypeLoc::getNextTypeLoc() const + 26 5 clang 0x0035257e clang::TypeLocBuilder::pushImpl(clang::QualType, unsigned long) + 50 6 clang 0x00358409 clang::TypenameTypeLoc clang::TypeLocBuilder::push(clang::QualType) + 79 7 clang 0x0035141d (anonymous namespace)::CurrentInstantiationRebuilder::TransformTypenameType(clang::TypeLocBuilder&, clang::TypenameTypeLoc, clang::QualType) + 727 8 clang 0x0035af56 clang::TreeTransform<(anonymous namespace)::CurrentInstantiationRebuilder>::TransformType(clang::TypeLocBuilder&, clang::TypeLoc, clang::QualType) + 2248 9 clang 0x0035b0ad clang::TreeTransform<(anonymous namespace)::CurrentInstantiationRebuilder>::TransformType(clang::TypeSourceInfo*, clang::QualType) + 161 10 clang 0x0035b1b0 clang::TreeTransform<(anonymous namespace)::CurrentInstantiationRebuilder>::TransformType(clang::QualType, clang::QualType) + 178 11 clang 0x0035113d clang::Sema::RebuildTypeInCurrentInstantiation(clang::QualType, clang::SourceLocation, clang::DeclarationName) + 141 12 clang 0x0026d48a clang::Sema::HandleDeclarator(clang::Scope*, clang::Declarator&, clang::ASTMultiPtr<&(clang::ActionBase::DeleteTemplateParams(void*))>, bool) + 696 13 clang 0x00347455 clang::Sema::ActOnStartOfFunctionTemplateDef(clang::Scope*, clang::ASTMultiPtr<&(clang::ActionBase::DeleteTemplateParams(void*))>, clang::Declarator&) + 307 14 clang 0x005d5f03 clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&) + 773 (Parser.cpp:674) 15 clang 0x005ce67f clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::SourceLocation&, clang::AccessSpecifier) + 1273 (ParseTemplate.cpp:256) 16 clang 0x005cf415 clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 1009 (ParseTemplate.cpp:155) 17 clang 0x005cf500 clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 178 (ParseTemplate.cpp:32) 18 clang 0x005992d8 clang::Parser::ParseDeclaration(unsigned int, clang::SourceLocation&, clang::CXX0XAttributeList) + 330 19 clang 0x005d5281 clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList) + 2067 (Parser.cpp:478) 20 clang 0x005d54b6 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 296 (Parser.cpp:368) 21 clang 0x00220082 clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&, bool, bool, clang::CodeCompleteConsumer*) + 426 22 clang 0x0003f784 clang::ASTFrontendAction::ExecuteAction() + 266 23 clang 0x0003f674 clang::FrontendAction::Execute() + 260 24 clang 0x00020f3b clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 851 25 clang 0x00002a14 cc1_main(char const**, char const**, char const*, void*) + 1292 26 clang 0x000064ff main + 233 (driver.cpp:179) 27 clang 0x00001936 start + 54 Thread 0 crashed with X86 Thread State (32-bit): eax: 0x00000000 ebx: 0x00581832 ecx: 0xbfffd42f edx: 0x00000000 edi: 0x00347322 esi: 0x03839e98 ebp: 0xbfffd398 esp: 0xbfffd390 ss: 0x0000001f efl: 0x00010286 eip: 0x0005f7ed cs: 0x00000017 ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037 cr2: 0x00000008 Binary Images: 0x1000 - 0x10acfdb +clang ??? (???) /Users/az/Programmierung/CppIDE/llvm-src/Debug/bin/clang 0x8fe00000 - 0x8fe2db43 dyld 97.1 (???) <458eed38a009e5658a79579e7bc26603> /usr/lib/dyld 0x90dcc000 - 0x90dd0fff libmathCommon.A.dylib ??? (???) /usr/lib/system/libmathCommon.A.dylib 0x9250c000 - 0x92569ffb libstdc++.6.dylib ??? (???) <04b812dcec670daa8b7d2852ab14be60> /usr/lib/libstdc++.6.dylib 0x953bb000 - 0x95522ff3 libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib 0x959c5000 - 0x959ccfe9 libgcc_s.1.dylib ??? (???) /usr/lib/libgcc_s.1.dylib 0xffff0000 - 0xffff1780 libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 11:19:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 11:19:51 -0600 (CST) Subject: [LLVMbugs] [Bug 6457] Clang fails to model explicitly created temporaries correctly In-Reply-To: References: Message-ID: <20100302171951.4C4852A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6457 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Douglas Gregor 2010-03-02 11:19:50 CST --- Fixed in r97568. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 11:22:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 11:22:31 -0600 (CST) Subject: [LLVMbugs] [Bug 6459] Assertion failed: (DD->getOperatorDelete() && "operator delete missing - EmitDtorEpilogue"), function EmitDtorEpilogue, file CGClass.cpp, line 1116. In-Reply-To: References: Message-ID: <20100302172231.15E6A2A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6459 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #4 from Douglas Gregor 2010-03-02 11:22:30 CST --- *** This bug has been marked as a duplicate of bug 6294 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 11:32:10 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 11:32:10 -0600 (CST) Subject: [LLVMbugs] [Bug 4398] passManager should always call releaseMemory to avoid use-after-free bugs In-Reply-To: References: Message-ID: <20100302173210.5B0042A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4398 T?r?k Edwin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from T?r?k Edwin 2010-03-02 11:32:09 CST --- (In reply to comment #5) > The patch is applied, right? Is this bug fixed? I should've closed the bug after applying the patch, thanks for reminding. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 11:53:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 11:53:43 -0600 (CST) Subject: [LLVMbugs] [Bug 5786] Assertion failed: (!E->isValueDependent() && "Should not see value dependent exprs!") In-Reply-To: References: Message-ID: <20100302175343.16F742A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5786 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-03-02 11:53:42 CST --- Fixed in r97570 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 12:26:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 12:26:57 -0600 (CST) Subject: [LLVMbugs] [Bug 6311] clang++ -fsyntax-only crash In-Reply-To: References: Message-ID: <20100302182657.5CFD12A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6311 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #2 from Douglas Gregor 2010-03-02 12:26:56 CST --- We fixed problems in this area a week or two ago; this is no longer crashing. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 12:30:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 12:30:48 -0600 (CST) Subject: [LLVMbugs] [Bug 6430] Ran out of registers during register allocation for vfwprintf In-Reply-To: References: Message-ID: <20100302183048.43E9F2A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6430 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #1 from Jakob Stoklund Olesen 2010-03-02 12:30:47 CST --- I cannot reproduce with TOT. Please verify, or provide the failing command. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 12:33:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 12:33:40 -0600 (CST) Subject: [LLVMbugs] [Bug 6260] -regalloc=linearscan -O0 crash - assertion "Ran out of registers during register allocation!" In-Reply-To: References: Message-ID: <20100302183340.03CB22A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6260 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #4 from Jakob Stoklund Olesen 2010-03-02 12:33:39 CST --- This no longer reproduces on TOT. 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 llvm.org Tue Mar 2 12:49:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 12:49:45 -0600 (CST) Subject: [LLVMbugs] [Bug 6064] Assertion failure synthesizing an implicitly defined copy constructor In-Reply-To: References: Message-ID: <20100302184945.055A42A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6064 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #1 from Douglas Gregor 2010-03-02 12:49:44 CST --- This seems to be fixed 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 llvm.org Tue Mar 2 12:53:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 12:53:15 -0600 (CST) Subject: [LLVMbugs] [Bug 6350] Compiler assert on valid code In-Reply-To: References: Message-ID: <20100302185315.472A42A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6350 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Douglas Gregor 2010-03-02 12:53:14 CST --- This is the same assertion as 6100 on very, very similar code. *** This bug has been marked as a duplicate of bug 6100 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 13:07:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 13:07:38 -0600 (CST) Subject: [LLVMbugs] [Bug 6430] Ran out of registers during register allocation for vfwprintf In-Reply-To: References: Message-ID: <20100302190738.21CE52A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6430 Sergey Yakoushkin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #2 from Sergey Yakoushkin 2010-03-02 13:07:37 CST --- llc ./bugpoint-reduced-simplified.bc -relocation-model=pic -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 13:12:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 13:12:19 -0600 (CST) Subject: [LLVMbugs] [Bug 6464] New: Assertion failed: (D->isOutOfLine()) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6464 Summary: Assertion failed: (D->isOutOfLine()) Product: clang Version: trunk Platform: Other OS/Version: FreeBSD Status: NEW Severity: normal Priority: P5 Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: hinokind at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4362) --> (http://llvm.org/bugs/attachment.cgi?id=4362) testcase $ cat assert12.cc template class foo {} bool foo::bar( a ) $ clang assert12.cc assert12.cc:1:32: error: expected ';' after class template class foo {} ^ ; assert12.cc:2:10: error: use of undeclared identifier 'X' bool foo::bar( a ) ^ assert12.cc:2:14: error: definition or redeclaration of 'bar' cannot name the global scope bool foo::bar( a ) ~~^ assert12.cc:2:14: error: no member named 'bar' in the global namespace bool foo::bar( a ) ~~^ Assertion failed: (D->isOutOfLine()), function ActOnCXXEnterDeclInitializer, file SemaDeclCXX.cpp, line 5743. Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-segfault-freebsd8.0 -S -disable-free -main-file-name assert12.cc -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.1 -fmessage-length 157 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-eEcJ7Z.s -x c++ assert12.cc 1. assert12.cc:2:19: current parser token 'a' clang: error: compiler command failed due to signal 6 (use -v to see invocation) $ clang --version clang version 1.1 (trunk 97574) Target: x86_64-segfault-freebsd8.0 Thread model: posix -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 13:15:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 13:15:09 -0600 (CST) Subject: [LLVMbugs] [Bug 6301] template instantiation limit too low? In-Reply-To: References: Message-ID: <20100302191509.C92D82A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6301 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-03-02 13:15:09 CST --- GCC uses a default template depth of 500. I've changed Clang to do the same in r97579. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 13:25:12 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 13:25:12 -0600 (CST) Subject: [LLVMbugs] [Bug 6465] New: DAGCombiner/SelectionDAG are not safe when using vectors Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6465 Summary: DAGCombiner/SelectionDAG are not safe when using vectors Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: micah.villmow at amd.com CC: llvmbugs at cs.uiuc.edu Akin to Bugs 6438/6335 there is a mismatch when passing in arguments to certain functions that expect the bitsize between the scalar components to be equivalent. However the calling function passes in the bitsize of the vector instead of the scalartype. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 14:36:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 14:36:46 -0600 (CST) Subject: [LLVMbugs] [Bug 6466] New: Assertion failed: (BaseType->isPointerType()) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6466 Summary: Assertion failed: (BaseType->isPointerType()) Product: clang Version: trunk Platform: Other OS/Version: FreeBSD Status: NEW Keywords: crash-on-invalid Severity: normal Priority: P5 Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: hinokind at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4364) --> (http://llvm.org/bugs/attachment.cgi?id=4364) testcase $ clang assert13.cc <...> Assertion failed: (BaseType->isPointerType()), function BuildMemberReferenceExpr, file SemaExpr.cpp, line 2544. Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-segfault-freebsd8.0 -S -disable-free -main-file-name assert13.cc -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.1 -fmessage-length 157 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-0JIKY1.s -x c++ assert13.cc 1. parser at end of file 2. assert13.cc:66:18: instantiating function definition 'MinimalModeMultiParadigm::HashAndTreeMaps::ProtoMap::relate' 3. assert13.cc:55:18: instantiating function definition 'MinimalModeMultiParadigm::HashAndTreeMaps::dynamicset >::operator[]' 4. assert13.cc:31:17: instantiating function definition 'MinimalModeMultiParadigm::HashAndTreeMaps::Tree, Handle>::member' 5. assert13.cc:35:22: instantiating function definition 'MinimalModeMultiParadigm::HashAndTreeMaps::Tree, Handle>::splay' 6. assert13.cc:47:22: instantiating function definition 'MinimalModeMultiParadigm::HashAndTreeMaps::Node >::splay' clang: error: compiler command failed due to signal 6 (use -v to see invocation) $ clang --version clang version 1.1 (trunk 97574) Target: x86_64-segfault-freebsd8.0 Thread model: posix -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 14:40:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 14:40:38 -0600 (CST) Subject: [LLVMbugs] [Bug 6467] New: JIT lazy compilation causes invalid value Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6467 Summary: JIT lazy compilation causes invalid value Product: libraries Version: 2.6 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P5 Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: senorblanco at chromium.org CC: llvmbugs at cs.uiuc.edu -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 15:42:32 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 15:42:32 -0600 (CST) Subject: [LLVMbugs] [Bug 6353] clang emits U symbol while gcc emits W one In-Reply-To: References: Message-ID: <20100302214232.556622A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6353 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #29 from Rafael ?vila de Esp?ndola 2010-03-02 15:42:32 CST --- Trying again... -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 16:00:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 16:00:51 -0600 (CST) Subject: [LLVMbugs] [Bug 6468] New: 97592: -fblocks codegen with template reference arg crash Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6468 Summary: 97592: -fblocks codegen with template reference arg crash Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: major Priority: P5 Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: raila at illinois.edu CC: llvmbugs at cs.uiuc.edu The following snippet crashes with arg type template reference, but works without arg type template reference: #include #include template class range { public: T _i; range(T i) {_i = i;}; T get() {return _i;}; }; int main() { // works void (^bl)(range ) = ^(range i){printf("Hello Blocks %d\n", i.get()); }; //crashes in godegen? void (^bl2)(range& ) = ^(range& i){printf("Hello Blocks %d\n", i.get()); }; return 0; } Here is the backtrace: clang: ASTContext.cpp:3805: void clang::ASTContext::getObjCEncodingForTypeImpl(clang::QualType, std::string&, bool, bool, const clang::FieldDecl*, bool, bool): Assertion `0 && "@encode for type not implemented!"' failed. Program received signal SIGABRT, Aborted. 0x00000039410326c5 in raise () from /lib64/libc.so.6 (gdb) bt #0 0x00000039410326c5 in raise () from /lib64/libc.so.6 #1 0x0000003941033ea5 in abort () from /lib64/libc.so.6 #2 0x000000394102b7b5 in __assert_fail () from /lib64/libc.so.6 #3 0x0000000000931aec in clang::ASTContext::getObjCEncodingForTypeImpl (this=0x20fc3a0, T=..., S="v16@?0", ExpandPointedToStructures=true, ExpandStructures=true, FD=0x0, OutermostType=true, EncodingProperty=false) at ASTContext.cpp:3805 #4 0x000000000093059f in clang::ASTContext::getObjCEncodingForType (this=0x20fc3a0, T=..., S="v16@?0", Field=0x0) at ASTContext.cpp:3510 #5 0x000000000092fb73 in clang::ASTContext::getObjCEncodingForBlock (this=0x20fc3a0, Expr=0x218ee50, S="v16@?0") at ASTContext.cpp:3314 #6 0x0000000000661939 in clang::CodeGen::CodeGenFunction::BuildDescriptorBlockDecl (this=0x7fffffffb4f0, BE=0x218ee50, BlockHasCopyDispose=false, Size=..., Ty=0x0, NoteForHelper=0x0) at CGBlocks.cpp:57 #7 0x00000000006621b2 in clang::CodeGen::CodeGenFunction::BuildBlockLiteralTmp (this=0x7fffffffb4f0, BE=0x218ee50) at CGBlocks.cpp:199 #8 0x00000000005edce6 in (anonymous namespace)::ScalarExprEmitter::VisitBlockExpr (this=0x7fffffffa460, BE=0x218ee50) at CGExprScalar.cpp:1841 #9 0x00000000005ef0f8 in clang::StmtVisitor<::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt *) (this=0x7fffffffa460, S=0x218ee50) at /home/raila/dpc++/clang/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/StmtNodes.def:152 #10 0x00000000005edd47 in clang::CodeGen::CodeGenFunction::EmitScalarExpr (this=0x7fffffffb4f0, E=0x218ee50, IgnoreResultAssign=false) at CGExprScalar.cpp:1855 #11 0x00000000005b350d in clang::CodeGen::CodeGenFunction::EmitLocalBlockVarDecl (this=0x7fffffffb4f0, D=...) at CGDecl.cpp:527 #12 0x00000000005b14c7 in clang::CodeGen::CodeGenFunction::EmitBlockVarDecl (this=0x7fffffffb4f0, D=...) at CGDecl.cpp:78 #13 0x00000000005b13be in clang::CodeGen::CodeGenFunction::EmitDecl (this=0x7fffffffb4f0, D=...) at CGDecl.cpp:55 #14 0x000000000062d69b in clang::CodeGen::CodeGenFunction::EmitDeclStmt (this=0x7fffffffb4f0, S=...) at CGStmt.cpp:632 #15 0x000000000062bd0a in clang::CodeGen::CodeGenFunction::EmitSimpleStmt (this=0x7fffffffb4f0, S=0x218ee80) at CGStmt.cpp:129 #16 0x000000000062b8b8 in clang::CodeGen::CodeGenFunction::EmitStmt (this=0x7fffffffb4f0, S=0x218ee80) at CGStmt.cpp:43 #17 0x000000000062bf2d in clang::CodeGen::CodeGenFunction::EmitCompoundStmt (this=0x7fffffffb4f0, S=..., GetLast=false, AggLoc=0x0, isAggVol=false) at CGStmt.cpp:160 #18 0x000000000062bce7 in clang::CodeGen::CodeGenFunction::EmitSimpleStmt (this=0x7fffffffb4f0, S=0x218ef00) at CGStmt.cpp:128 #19 0x000000000062b8b8 in clang::CodeGen::CodeGenFunction::EmitStmt (this=0x7fffffffb4f0, S=0x218ef00) at CGStmt.cpp:43 #20 0x000000000065b9c9 in clang::CodeGen::CodeGenFunction::EmitFunctionBody (this=0x7fffffffb4f0, Args=...) at CodeGenFunction.cpp:252 #21 0x000000000065c05c in clang::CodeGen::CodeGenFunction::GenerateCode (this=0x7fffffffb4f0, GD=..., Fn=0x2146fa0) at CodeGenFunction.cpp:314 #22 0x000000000055ad86 in clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition (this=0x21194b0, GD=...) at CodeGenModule.cpp:1259 #23 0x0000000000558fb5 in clang::CodeGen::CodeGenModule::EmitGlobalDefinition (this=0x21194b0, GD=...) at CodeGenModule.cpp:690 #24 0x0000000000558d30 in clang::CodeGen::CodeGenModule::EmitGlobal (this=0x21194b0, GD=...) at CodeGenModule.cpp:661 #25 0x000000000055c901 in clang::CodeGen::CodeGenModule::EmitTopLevelDecl (this=0x21194b0, D=0x218bc30) at CodeGenModule.cpp:1704 #26 0x0000000000555e0d in (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl (this=0x20fe450, DG=...) at ModuleBuilder.cpp:65 #27 0x0000000000418a1e in (anonymous namespace)::BackendConsumer::HandleTopLevelDecl (this=0x21052d0, D=...) at CodeGenAction.cpp:142 #28 0x0000000000672ee3 in clang::ParseAST (PP=..., Consumer=0x21052d0, Ctx=..., PrintStats=false, CompleteTranslationUnit=true, CompletionConsumer=0x0) at ParseAST.cpp:72 #29 0x0000000000433d92 in clang::ASTFrontendAction::ExecuteAction (this=0x20eefa0) at FrontendAction.cpp:219 #30 0x0000000000433a20 in clang::FrontendAction::Execute (this=0x20eefa0) at FrontendAction.cpp:149 #31 0x000000000041e0bc in clang::CompilerInstance::ExecuteAction (this=0x7fffffffd7e0, Act=...) at CompilerInstance.cpp:509 #32 0x0000000000408446 in cc1_main (ArgBegin=0x7fffffffe0e8, ArgEnd=0x7fffffffe1d0, Argv0=0x7fffffffe45c "/home/raila/dpc++/clang/llvm/Debug/bin/clang", MainAddr=0x40c0dc) at cc1_main.cpp:268 #33 0x000000000040cfbe in main (argc=31, argv=0x7fffffffe0d8) at driver.cpp:179 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 16:32:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 16:32:59 -0600 (CST) Subject: [LLVMbugs] [Bug 6469] New: llvm-as asserts on invalid IR involving trailing comma with a misleading message Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6469 Summary: llvm-as asserts on invalid IR involving trailing comma with a misleading message Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: minor Priority: P5 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matti.niemenmaa+llvmbugs at iki.fi CC: llvmbugs at cs.uiuc.edu The invalid IR below causes llvm-as from trunkish (r97475) to assert with the following message: While deleting: i32 %x Use still stuck around after Def is destroyed: = add i32 %x, %x ; [#uses=0] Use still stuck around after Def is destroyed: = add i32 %x, %x ; [#uses=0] llvm-as: src/llvm/trunk/lib/VMCore/Value.cpp:75: virtual llvm::Value::~Value(): Assertion `use_empty() && "Uses remain when a value is destroyed!"' failed. Stack dump: 0. Program arguments: llvm-as 0 define void @f() { %x = add i32 undef, undef %y = add i32 %x, %x, ret void } The problem is obviously the trailing comma on the %y line. Appending an extraneous comma to other kinds of instructions will cause the same assertion to fire. The following causes it to print just "llvm-as:" before exiting: define void @f() { %x = load i32* undef, ret void } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 16:42:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 16:42:44 -0600 (CST) Subject: [LLVMbugs] [Bug 6470] New: Assertion failed: (false && "Ran out of registers during register allocation!") Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6470 Summary: Assertion failed: (false && "Ran out of registers during register allocation!") Product: libraries Version: trunk Platform: Other OS/Version: FreeBSD Status: NEW Severity: normal Priority: P5 Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: hinokind at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4367) --> (http://llvm.org/bugs/attachment.cgi?id=4367) testcase i386-only, -O1 and above $ cat assert14.c int main() { static char foo[2][8]; char *x=&foo[0][0]; char *y=&foo[1][0]; asm volatile( "add %1, %%""esi"" \n\t" : : "g" (x), "g" (y) : "%""eax", "%""ecx", "%""edx", "%""esi", "%""edi" ); } $ clang -m32 -O1 assert14.c Assertion failed: (false && "Ran out of registers during register allocation!"), function assignRegOrStackSlotAtInterval, file RegAllocLinearScan.cpp, line 1179. Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple i386-segfault-freebsd8.0 -S -disable-free -main-file-name assert14.c -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4 -resource-dir /usr/local/lib/clang/1.1 -O1 -fmessage-length 157 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-ZQW8dV.s -x c assert14.c 1. parser at end of file 2. Code generation 3. Running pass 'Linear Scan Register Allocator' on function '@main' clang: error: compiler command failed due to signal 6 (use -v to see invocation) $ clang --version clang version 1.1 (trunk 97589) Target: x86_64-segfault-freebsd8.0 Thread model: posix -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 16:46:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 16:46:48 -0600 (CST) Subject: [LLVMbugs] [Bug 6471] New: Missing destructor definition prevents bootstrap on ELF systems Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6471 Summary: Missing destructor definition prevents bootstrap on ELF systems Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com When compiling Instructions.ii with clang it is missing a strong definition of the destructor _ZN4llvm16UnaryInstructionD2Ev This prevents bootstrapping clang on ELF systems. I have delta running and will add a testcase shortly. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 16:48:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 16:48:37 -0600 (CST) Subject: [LLVMbugs] [Bug 6472] New: clang segfault Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6472 Summary: clang segfault Product: clang Version: trunk Platform: Other OS/Version: FreeBSD Status: NEW Keywords: crash-on-invalid Severity: normal Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: hinokind at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=4368) --> (http://llvm.org/bugs/attachment.cgi?id=4368) testcase $ cat segv3.cc class { friend class foo::bar; $ clang segv3.cc segv3.cc:1:22: error: use of undeclared identifier 'foo' class { friend class foo::bar; ^ Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-segfault-freebsd8.0 -S -disable-free -main-file-name segv3.cc -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.1 -fmessage-length 157 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-uguqgU.s -x c++ segv3.cc 1. segv3.cc:1:30: current parser token ';' 2. segv3.cc:1:1: parsing struct/union/class body clang: error: compiler command failed due to signal 11 (use -v to see invocation) $ clang --version clang version 1.1 (trunk 97589) Target: x86_64-segfault-freebsd8.0 Thread model: posix -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 17:51:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 17:51:28 -0600 (CST) Subject: [LLVMbugs] [Bug 6473] New: __attribute__ weakref broken Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6473 Summary: __attribute__ weakref broken Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: sorokin at rain.ifmo.ru CC: llvmbugs at cs.uiuc.edu ivan at ivan-desktop:~/d/llvm-build/Debug/bin$ g++ 3.cpp ivan at ivan-desktop:~/d/llvm-build/Debug/bin$ ./clang++ 3.cpp /tmp/cc-Ex8nJJ.o:(.gnu.linkonce.r._ZZ18__gthread_active_pvE20__gthread_active_ptr+0x0): undefined reference to `pthread_cancel' collect2: ld returned 1 exit status clang: error: linker command failed with exit code 1 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 21:40:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 21:40:46 -0600 (CST) Subject: [LLVMbugs] [Bug 6471] Missing destructor definition prevents bootstrap on ELF systems In-Reply-To: References: Message-ID: <20100303034046.39D4F2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6471 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from John McCall 2010-03-02 21:40:45 CST --- This is a general bug in the derived-to-base destructor alias optimization. We're doing the optimization even when we only have a declaration of the target destructor in this translation unit ? which is to say, we're emitting an alias to an unresolved symbol, which isn't representable in any object file format I know of. Apparently the symptom is that alias just gets dropped at some point. Fixed in r97637. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 22:39:03 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 22:39:03 -0600 (CST) Subject: [LLVMbugs] [Bug 6462] wrong(?) error: member 'rdbuf' found in multiple base classes of different types In-Reply-To: References: Message-ID: <20100303043903.A48332A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6462 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Douglas Gregor 2010-03-02 22:39:03 CST --- Fixed in r97640. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 2 23:43:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Mar 2010 23:43:11 -0600 (CST) Subject: [LLVMbugs] [Bug 4953] Integrate calling convention into Clang function types In-Reply-To: References: Message-ID: <20100303054311.032BC2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4953 Charles Davis changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED CC| |cdavis at mymail.mines.edu Resolution| |FIXED --- Comment #7 from Charles Davis 2010-03-02 23:43:10 CST --- Bug should be fixed 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 llvm.org Wed Mar 3 02:42:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 02:42:37 -0600 (CST) Subject: [LLVMbugs] [Bug 6426] Structure layout is not correct in big endian. In-Reply-To: References: Message-ID: <20100303084237.DC7692A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6426 hwalin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #6 from hwalin 2010-03-03 02:42:36 CST --- This is an invalid bug caused by incorrect LowerCall function. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 3 02:58:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 02:58:45 -0600 (CST) Subject: [LLVMbugs] [Bug 6474] New: clang -fsyntax-only fails on something g++ accepts [3] Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6474 Summary: clang -fsyntax-only fails on something g++ accepts [3] Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rdivacky at freebsd.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com pes delta$ g++ -fsyntax-only globals_io.cc && echo success success pes delta$ clang++ -fsyntax-only globals_io.cc && echo success globals_io.cc:24:8: warning: control reaches end of non-void function [-Wreturn-type] } ^ globals_io.cc:25:80: error: explicit specialization of 'xsputn' after instantiation template<> inline std::streamsize stdio_sync_filebuf::xsputn(const wchar_t* __s, ... ^ globals_io.cc:23:80: note: implicit instantiation first required here template<> inline std::streamsize stdio_sync_filebuf::xsgetn(wchar_t* __s, ... ^ 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 llvm.org Wed Mar 3 04:22:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 04:22:16 -0600 (CST) Subject: [LLVMbugs] [Bug 6475] New: Inline asm bug with atomic_exchange_and_add Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6475 Summary: Inline asm bug with atomic_exchange_and_add Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P5 Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: gonsolo at gmail.com CC: llvmbugs at cs.uiuc.edu Clang fails to compile the following reduce testcase: inline int atomic_exchange_and_add( int * pw, int dv ) { int r; __asm__ __volatile__ ( "lock\n\t" "xadd %1, %0": "=m"( *pw ), "=r"( r ): "m"( *pw ), "1"( dv ): "memory", "cc" ); return r; } void release() { int use_count_; if( atomic_exchange_and_add( &use_count_, -1 ) == 1 ) { } } with the following error: Stack dump: 0. Program arguments: /home/gonzo/bin/clang -cc1 -triple i386-pc-linux-gnu -S -disable-free -disable-llvm-verifier -main-file-name bla3.cc -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4 -resource-dir /home/gonzo/lib/clang/1.1 -fmessage-length 177 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-zTnd86.s -x c++ bla3.cc 1. parser at end of file 2. Code generation 3. Running pass 'X86 DAG->DAG Instruction Selection' on function '@_Z23atomic_exchange_and_addPii' clang: error: compiler command failed due to signal 11 (use -v to see invocation) This is clang version 02ebc and llvm version eb6e04 on Ubuntu 9.10. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 3 05:52:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 05:52:42 -0600 (CST) Subject: [LLVMbugs] [Bug 6476] New: ARM JIT hits UNREACHABLE using -mattr=+v6t2 and -mattr=+v7a Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6476 Summary: ARM JIT hits UNREACHABLE using -mattr=+v6t2 and -mattr=+v7a Product: libraries Version: trunk Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P5 Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: xerxes at zafena.se CC: llvmbugs at cs.uiuc.edu Expected output when runing lli on hello.ll (here using -mattr=+v6) xerxes at xerxes:/sd/llvm-configure/test/ExecutionEngine/Output$ lli -mattr=+v6 < hello.ll.tmp.bc Hello World Actual output using -mattr=+v6t2 xerxes at xerxes:/sd/llvm-configure/test/ExecutionEngine/Output$ lli -mattr=+v6t2 < hello.ll.tmp.bc ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /media/disk/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:554! 0 libLLVM-2.7svn.so 0x408bf75c Stack dump: 0. Program arguments: lli -mattr=+v6t2 1. Running pass 'ARM Machine Code Emitter' on function '@main' Aborted The same happens using -mattr=+v7a xerxes at xerxes:/sd/llvm-configure/test/ExecutionEngine/Output$ lli -mcpu=generic -mattr=+v7a < hello.ll.tmp.bc ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /media/disk/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:554! 0 libLLVM-2.7svn.so 0x408bf75c Stack dump: 0. Program arguments: lli -mcpu=generic -mattr=+v7a 1. Running pass 'ARM Machine Code Emitter' on function '@main' Aborted -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 3 05:59:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 05:59:33 -0600 (CST) Subject: [LLVMbugs] [Bug 6476] ARM JIT hits UNREACHABLE using -mattr=+v6t2 and -mattr=+v7a In-Reply-To: References: Message-ID: <20100303115933.14BDD2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6476 Xerxes R?nby changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from Xerxes R?nby 2010-03-03 05:59:32 CST --- *** This bug has been marked as a duplicate of bug 6265 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 3 08:46:12 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 08:46:12 -0600 (CST) Subject: [LLVMbugs] [Bug 6477] New: Goto over object definition causes build error Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6477 Summary: Goto over object definition causes build error Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: jpakkane at gmail.com CC: llvmbugs at cs.uiuc.edu When you compile the attached file with clang++, it gives this error: gototest.cxx:5:5: error: illegal goto into protected scope goto ED_END; ^ gototest.cxx:6:18: note: jump bypasses variable initialization std::fstream f; If you comment out line 6, everything works. This is a regression, as svn checkout from a couple of days ago worked just fine. The same code compiles on g++ and MSVC 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 llvm.org Wed Mar 3 08:53:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 08:53:04 -0600 (CST) Subject: [LLVMbugs] [Bug 6478] New: ARM CodeGen Running pass 'Prolog/Epilog Insertion & Frame Finalization' on function '@"java.lang.String::getChars"' Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6478 Summary: ARM CodeGen Running pass 'Prolog/Epilog Insertion & Frame Finalization' on function '@"java.lang.String::getChars"' Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: xerxes at zafena.se CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4375) --> (http://llvm.org/bugs/attachment.cgi?id=4375) Testcase java.lang.String::getChars.ll The attached testcase triggers this bug using LLVM IR produced using OpenJDK Shark JIT when compiling java.lang.String::getChars xerxes at xerxes-J464X:~$ llvm-as < java.lang.String::getChars.ll | llc -march=arm .syntax unified .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .file "" llc: /home/xerxes/llvm/include/llvm/CodeGen/MachineFrameInfo.h:289: int64_t llvm::MachineFrameInfo::getObjectOffset(int) const: Assertion `!isDeadObjectIndex(ObjectIdx) && "Getting frame offset for a dead object?"' failed. 0 libLLVM-2.7svn.so 0x01cb5e96 1 libLLVM-2.7svn.so 0x01cb5d0b 2 libpthread.so.0 0x004ee2b8 3 libc.so.6 0x0074fa42 abort + 386 4 libc.so.6 0x00745748 __assert_fail + 248 5 libLLVM-2.7svn.so 0x013a70aa llvm::MachineFrameInfo::getStackSize() const + 0 6 libLLVM-2.7svn.so 0x014c8b91 llvm::ARMBaseRegisterInfo::emitPrologue(llvm::MachineFunction&) const + 1415 7 libLLVM-2.7svn.so 0x016f9d78 llvm::PEI::insertPrologEpilogCode(llvm::MachineFunction&) + 70 8 libLLVM-2.7svn.so 0x016f8043 llvm::PEI::runOnMachineFunction(llvm::MachineFunction&) + 427 9 libLLVM-2.7svn.so 0x016b8cdb llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 87 10 libLLVM-2.7svn.so 0x01864115 llvm::FPPassManager::runOnFunction(llvm::Function&) + 301 11 libLLVM-2.7svn.so 0x01863e54 llvm::FunctionPassManagerImpl::run(llvm::Function&) + 90 12 libLLVM-2.7svn.so 0x01863af6 llvm::FunctionPassManager::run(llvm::Function&) + 140 13 llc 0x080590bb main + 3024 14 libc.so.6 0x00738bd6 __libc_start_main + 230 15 llc 0x08057bb1 Stack dump: 0. Program arguments: llc -march=arm 1. Running pass 'Prolog/Epilog Insertion & Frame Finalization' on function '@"java.lang.String::getChars"' Avbruten (SIGABRT) (minnesutskrift skapad) This are a regression since LLVM 2.6 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 3 09:25:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 09:25:14 -0600 (CST) Subject: [LLVMbugs] [Bug 6479] New: zero extending i1 to i32 on x86 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6479 Summary: zero extending i1 to i32 on x86 Product: new-bugs Version: 2.6 Platform: PC OS/Version: Windows NT Status: NEW Severity: enhancement Priority: P5 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: pete.cooper at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4377) --> (http://llvm.org/bugs/attachment.cgi?id=4377) intermediate test file This curently generates a redundant zero extension as movzbl %al, %eax andl $1, %eax which can just be andl $1, %eax I've written a new pattern for X86InstrInfo.td which removes the unused mov but i wasn't sure where in that file to put it so i'm not attaching it as a patch def : Pat<(i32 (and (i32 (anyext GR8 :$src)), (i32 1))), (AND32ri (SUBREG_TO_REG (i32 0), GR8:$src, x86_subreg_8bit), 1)>; Can someone please verify if i've done the right thing here. I get the right result which is always a good start. Also, i've only seen this case (mask with 1) be output, but would it be better to match any constant in the 1-255 range here, and if it is worth it, could someone please tell me how that would be written. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 3 09:29:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 09:29:11 -0600 (CST) Subject: [LLVMbugs] [Bug 6480] New: ARM Codegen asserts Running pass 'Control Flow Optimizer' on function '@"java.lang.String::getChars"' Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6480 Summary: ARM Codegen asserts Running pass 'Control Flow Optimizer' on function '@"java.lang.String::getChars"' Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: xerxes at zafena.se CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4378) --> (http://llvm.org/bugs/attachment.cgi?id=4378) bugpoint-reduced-simplified.bc the reduced bugpoint-reduced-simplified.bc from PR6478 hits a new bug so im filing a new bugreport. Testcase xerxes at xerxes-J464X:~$ llc < bugpoint-reduced-simplified.bc -march=arm .syntax unified .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .file "" llc: /home/xerxes/llvm/lib/CodeGen/RegisterScavenging.cpp:193: void llvm::RegScavenger::forward(): Assertion `SubUsed && "Using an undefined register!"' failed. 0 libLLVM-2.7svn.so 0x01893e96 1 libLLVM-2.7svn.so 0x01893d0b 2 libpthread.so.0 0x003142b8 3 libc.so.6 0x00181a42 abort + 386 4 libc.so.6 0x00177748 __assert_fail + 248 5 libLLVM-2.7svn.so 0x01305741 llvm::RegScavenger::forward() + 1181 6 libLLVM-2.7svn.so 0x010fca19 llvm::RegScavenger::forward(llvm::ilist_iterator) + 105 7 libLLVM-2.7svn.so 0x0121bcf4 llvm::BranchFolder::SplitMBBAt(llvm::MachineBasicBlock&, llvm::ilist_iterator) + 358 8 libLLVM-2.7svn.so 0x0121cb16 llvm::BranchFolder::CreateCommonTailOnlyBlock(llvm::MachineBasicBlock*&, unsigned int) + 488 9 libLLVM-2.7svn.so 0x0121d152 llvm::BranchFolder::TryTailMergeBlocks(llvm::MachineBasicBlock*, llvm::MachineBasicBlock*) + 1468 10 libLLVM-2.7svn.so 0x0121d566 llvm::BranchFolder::TailMergeBlocks(llvm::MachineFunction&) + 428 11 libLLVM-2.7svn.so 0x0121b254 llvm::BranchFolder::OptimizeFunction(llvm::MachineFunction&, llvm::TargetInstrInfo const*, llvm::TargetRegisterInfo const*, llvm::MachineModuleInfo*) + 650 12 libLLVM-2.7svn.so 0x0121a982 13 libLLVM-2.7svn.so 0x01296cdb llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 87 14 libLLVM-2.7svn.so 0x01442115 llvm::FPPassManager::runOnFunction(llvm::Function&) + 301 15 libLLVM-2.7svn.so 0x01441e54 llvm::FunctionPassManagerImpl::run(llvm::Function&) + 90 16 libLLVM-2.7svn.so 0x01441af6 llvm::FunctionPassManager::run(llvm::Function&) + 140 17 llc 0x080590bb main + 3024 18 libc.so.6 0x0016abd6 __libc_start_main + 230 19 llc 0x08057bb1 Stack dump: 0. Program arguments: llc -march=arm 1. Running pass 'Control Flow Optimizer' on function '@"java.lang.String::getChars"' Avbruten (SIGABRT) (minnesutskrift skapad) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 3 11:02:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 11:02:00 -0600 (CST) Subject: [LLVMbugs] [Bug 6481] New: instcombine incorrectly generates undefs with icmp Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6481 Summary: instcombine incorrectly generates undefs with icmp Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: arplynn at gmail.com CC: llvmbugs at cs.uiuc.edu Take the example of: define i1 @cond() nounwind readnone { entry: %cmp = icmp slt i8 undef, -128 ret i1 %cmp } instcombine turns this into ret i1 undef. This is not valid: there is no i8 value for which the condition is 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 llvm.org Wed Mar 3 11:38:03 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 11:38:03 -0600 (CST) Subject: [LLVMbugs] [Bug 6482] New: llvm-link asserts with "Type mismatch in constant table!" depending on linking order Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6482 Summary: llvm-link asserts with "Type mismatch in constant table!" depending on linking order Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: major Priority: P5 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matti.niemenmaa+llvmbugs at iki.fi CC: llvmbugs at cs.uiuc.edu The attached two bitcode files are both individually fine, but llvm-link from trunk (r97652) asserts if one links them in the order 'one.bc' 'two.bc': $ llvm-link one.bc two.bc >/dev/null llvm-link: src/llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp:203: llvm::Constant* llvm::BitcodeReaderValueList::getConstantFwdRef(unsigned int, const llvm::Type*): Assertion `Ty == V->getType() && "Type mismatch in constant table!"' failed. Stack dump: 0. Program arguments: llvm-link one.bc two.bc Doing it in the other order is fine though: $ llvm-link two.bc one.bc | llvm-dis | wc -l 1267 llvm-link from LLVM 2.6 copes fine regardless of the order, but it does produce different output for the two cases. (Not necessarily unexpected?) I think that this is the same problem that is preventing me from bugpointing a misoptimization: bugpoint dies in the same way when it starts splitting the testcase. Using the 'delta' tool for several CPU-hours I managed to bring 'two.bc' down from over a megabyte to the current 43K, but it's still a bit big; I hope it's not so big as to make finding the problem unduly difficult. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 3 11:51:10 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 11:51:10 -0600 (CST) Subject: [LLVMbugs] [Bug 6483] New: Assertion failure (Expected a direct reference binding!) with boost Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6483 Summary: Assertion failure (Expected a direct reference binding!) with boost Product: clang Version: trunk Platform: Other OS/Version: FreeBSD Status: NEW Severity: normal Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: whitehorn at wisc.edu CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=4381) --> (http://llvm.org/bugs/attachment.cgi?id=4381) Test case When building headers similar to the attached reduced test case, I get an assertion failure inside clang: [nwhitehorn at comporellon /usr/home/nwhitehorn]$ clang++ test.cpp Assertion failed: (ICS->UserDefined.After.ReferenceBinding && ICS->UserDefined.After.DirectBinding && "Expected a direct reference binding!"), function CheckReferenceInit, file /home/nwhitehorn/llvm/llvm-src/tools/clang/lib/Sema/SemaDeclCXX.cpp, line 4550. Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-unknown-freebsd9.0 -S -disable-free -main-file-name test.cpp -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.1 -fmessage-length 78 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-4u7iDn.s -x c++ test.cpp 1. parser at end of file 2. test.cpp:35:7: instantiating function definition 'boost::archive::portable_binary_oarchive_impl >::portable_binary_oarchive_impl' 3. /usr/local/include/boost/archive/basic_binary_oarchive.hpp:124:5: instantiating function definition 'boost::archive::basic_binary_oarchive::basic_binary_oarchive' 4. /usr/local/include/boost/archive/detail/common_oarchive.hpp:66:5: instantiating function definition 'boost::archive::detail::common_oarchive::common_oarchive' 5. /usr/local/include/boost/archive/detail/common_oarchive.hpp:34:18: instantiating function definition 'boost::archive::detail::common_oarchive::vsave' 6. /usr/local/include/boost/archive/detail/interface_oarchive.hpp:63:15: instantiating function definition 'boost::archive::detail::interface_oarchive::operator<<' clang: error: compiler command failed due to signal 6 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 3 13:17:49 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 13:17:49 -0600 (CST) Subject: [LLVMbugs] [Bug 6477] Goto over object definition causes build error In-Reply-To: References: Message-ID: <20100303191749.BFEFE2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6477 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Chris Lattner 2010-03-03 13:17:49 CST --- I'm not sure what you mean, this is definitely invalid C++ code and gcc 4.2 rejects it: $ gcc gototest.cxx gototest.cxx: In function ?int main(int, char**)?: gototest.cxx:8: error: jump to label ?ED_END? gototest.cxx:5: error: from here gototest.cxx:6: error: crosses initialization of ?std::fstream f? We recently started enforcing this requirement. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 3 13:46:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 13:46:36 -0600 (CST) Subject: [LLVMbugs] [Bug 6481] instcombine incorrectly generates undefs with icmp In-Reply-To: References: Message-ID: <20100303194636.ECE392A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6481 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2010-03-03 13:46:36 CST --- You're right, fixed in r97659 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 llvm.org Wed Mar 3 14:16:18 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 14:16:18 -0600 (CST) Subject: [LLVMbugs] [Bug 6444] Alpha Backend fails to compile _floatdisf with internal compiler error. In-Reply-To: References: Message-ID: <20100303201618.06FD72A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6444 Andrew Lenharth 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 llvm.org Wed Mar 3 15:53:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 15:53:04 -0600 (CST) Subject: [LLVMbugs] [Bug 6475] Inline asm bug with atomic_exchange_and_add In-Reply-To: References: Message-ID: <20100303215304.C5D972A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6475 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #14 from Chris Lattner 2010-03-03 15:53:04 CST --- Fixed here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20100301/028107.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 llvm.org Wed Mar 3 15:54:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 15:54:42 -0600 (CST) Subject: [LLVMbugs] [Bug 6484] New: Improve diagnostic when there is an extraneous '}' Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6484 Summary: Improve diagnostic when there is an extraneous '}' Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Keywords: quality-of-implementation Severity: enhancement Priority: P5 Component: parser AssignedTo: unassignedclangbugs at nondot.org ReportedBy: dgregor at apple.com CC: llvmbugs at cs.uiuc.edu terfin:clang dgregor$ cat t2.c void foo() { } } terfin:clang dgregor$ clang t2.c t2.c:2:1: error: expected external declaration } ^ 1 diagnostic generated. We can do better, with something like "extraneous closing brace ('}') at the top level". -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 3 16:55:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 16:55:31 -0600 (CST) Subject: [LLVMbugs] [Bug 5820] clang can't disambiguate calls to method in base class in diamond-shaped heirarchy, even though the call is qualified In-Reply-To: References: Message-ID: <20100303225531.3A5052A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5820 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Douglas Gregor 2010-03-03 16:55:30 CST --- Implemented in r97674. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 3 16:57:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 16:57:36 -0600 (CST) Subject: [LLVMbugs] [Bug 6458] clang++ emits T while g++ emits U symbol In-Reply-To: References: Message-ID: <20100303225736.5EEED2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6458 John McCall 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 llvm.org Wed Mar 3 17:01:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 17:01:53 -0600 (CST) Subject: [LLVMbugs] [Bug 6485] New: Diagnostic for using non-POD type with va_start needs improvement Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6485 Summary: Diagnostic for using non-POD type with va_start needs improvement Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: trivial Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rideau3 at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com coppro at overthere:~$ clang -x c++ - #include struct foo { virtual void bar(); }; void baz (foo f, ...) { va_list v; va_start(v, f); } // END OF TESTCASE :7:3: error: cannot pass object of non-POD type 'struct foo' through variadic function; call will abort at runtime [-Wnon-pod-varargs] va_start(v, f); ^ :7:15: note: instantiated from: va_start(v, f); ^ 1 diagnostic generated. // END OF OUTPUT GCC does not issue a diagnostic here, however, it is good that clang do so ([support.runtime]/3). The diagnostic could bear improvement, however - prehaps to something along the lines of "cannot use va_start on a parameter of non-POD type 'struct foo'". -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 3 18:24:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 18:24:29 -0600 (CST) Subject: [LLVMbugs] [Bug 6465] DAGCombiner/SelectionDAG are not safe when using vectors In-Reply-To: References: Message-ID: <20100304002429.686EA2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6465 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |gohman at apple.com Resolution| |FIXED --- Comment #2 from Dan Gohman 2010-03-03 18:24:29 CST --- The DAGCombiner.cpp part looks fine; I committed that in r97692. The SelectionDAG.cpp part does not look right. There had been some confusion about this in the tree, but now the type operand to vector SIGN_EXTEND_INREG is also vector. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 3 22:00:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 22:00:04 -0600 (CST) Subject: [LLVMbugs] [Bug 6486] New: likely integer wrong code bug Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6486 Summary: likely integer wrong code bug Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu The -O1 result looks wrong. Seen using r97717. regehr at john-home:~/volatile/bugs/tmp272$ clang -O0 small.c -o small -w regehr at john-home:~/volatile/bugs/tmp272$ ./small 1 regehr at john-home:~/volatile/bugs/tmp272$ clang -O1 small.c -o small -w regehr at john-home:~/volatile/bugs/tmp272$ ./small 0 regehr at john-home:~/volatile/bugs/tmp272$ cat small.c #include int g_43 = 0; int *g_92[2]; int **const g_177 = &g_92[1]; static int func_55 (void) { g_43 = 1; return 1; } int main(void) { (0 <= (0 != g_177)) && func_55(); printf ("%d\n", g_43); return 0; } regehr at john-home:~/volatile/bugs/tmp272$ clang -v clang version 1.1 (trunk) Target: i386-pc-linux-gnu Thread model: posix -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 3 22:11:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 22:11:29 -0600 (CST) Subject: [LLVMbugs] [Bug 6487] New: ice: Cannot create empty or backwards range Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6487 Summary: ice: Cannot create empty or backwards range Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu Seen on Ubuntu 9.10 on x64 using clang r97662. [regehr at gamow tmp273]$ clang -O2 small.c clang: /tmp/z/compiler-build/llvm-r97662/include/llvm/CodeGen/LiveInterval.h:231: llvm::LiveRange::LiveRange(llvm::SlotIndex, llvm::SlotIndex, llvm::VNInfo*): Assertion `S < E && "Cannot create empty or backwards range"' failed. 0 clang 0x000000000117320f 1 clang 0x00000000011739fd 2 libpthread.so.0 0x00007f11e745e190 3 libc.so.6 0x00007f11e67644b5 gsignal + 53 4 libc.so.6 0x00007f11e6767f50 abort + 384 5 libc.so.6 0x00007f11e675d481 __assert_fail + 241 6 clang 0x0000000000e5263f 7 clang 0x0000000000e4db7b 8 clang 0x0000000000e4fa69 9 clang 0x0000000000e5036f 10 clang 0x0000000000e50e8e 11 clang 0x0000000000e51d6c 12 clang 0x00000000010fd596 13 clang 0x00000000010fd771 14 clang 0x00000000010fd99e 15 clang 0x0000000000413436 16 clang 0x0000000000413a75 17 clang 0x00000000005f8544 18 clang 0x0000000000416c09 19 clang 0x00000000004095ce 20 clang 0x000000000040c36b main + 1771 21 libc.so.6 0x00007f11e674fabd __libc_start_main + 253 22 clang 0x0000000000407149 Stack dump: 0. Program arguments: /tmp/z/compiler-install/llvm-gcc-r97662-install/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name small.c -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir /tmp/z/compiler-install/llvm-gcc-r97662-install/lib/clang/1.1 -O2 -fmessage-length 85 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-IZAtF0.s -x c small.c 1. parser at end of file 2. Code generation 3. Running pass 'Simple Register Coalescing' on function '@int325' clang: error: compiler command failed due to signal 6 (use -v to see invocation) [regehr at gamow tmp273]$ cat small.c static unsigned char foo (unsigned char ui1, unsigned char ui2) { return ui2 == 0 ? : (ui1 % ui2); } static unsigned bar (unsigned ui1, unsigned ui2) { return ui2 ? ui1 : (ui1 / ui2); } int safe (int); short g_5; short *g_37 = &g_5; void int325 (int * p_66) { short l_71 = 7L; if (*p_66 & safe (foo (bar (l_71, *g_37), l_71)), 1) { } } [regehr at gamow tmp273]$ clang -v clang version 1.1 (trunk) Target: x86_64-unknown-linux-gnu Thread model: posix -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 3 22:24:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 22:24:46 -0600 (CST) Subject: [LLVMbugs] [Bug 6488] New: request for a bit more verbosity from "clang -v" Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6488 Summary: request for a bit more verbosity from "clang -v" Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu As a bug reporter it would make my life easier (and hopefully yours!) if "clang -v" reported: - svn rev - a flag indicating if there are local modifications - configure options (or at least indicating Debug vs Release) 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 llvm.org Wed Mar 3 22:35:21 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Mar 2010 22:35:21 -0600 (CST) Subject: [LLVMbugs] [Bug 6489] New: ice: Cannot find live range Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6489 Summary: ice: Cannot find live range Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu Seen with clang r97662 on x64 Linux. [regehr at gamow tmp274]$ clang -O small.c -c clang: SimpleRegisterCoalescing.cpp:2315: bool llvm::SimpleRegisterCoalescing::JoinIntervals(llvm::LiveInterval&, llvm::LiveInterval&, bool&): Assertion `lr && "Cannot find live range"' failed. 0 clang 0x000000000117320f 1 clang 0x00000000011739fd 2 libpthread.so.0 0x00007f2c03fe0190 3 libc.so.6 0x00007f2c032e64b5 gsignal + 53 4 libc.so.6 0x00007f2c032e9f50 abort + 384 5 libc.so.6 0x00007f2c032df481 __assert_fail + 241 6 clang 0x0000000000e4b97c 7 clang 0x0000000000e4eacd 8 clang 0x0000000000e5036f 9 clang 0x0000000000e50e8e 10 clang 0x0000000000e51d6c 11 clang 0x00000000010fd596 12 clang 0x00000000010fd771 13 clang 0x00000000010fd99e 14 clang 0x0000000000413436 15 clang 0x0000000000413a75 16 clang 0x00000000005f8544 17 clang 0x0000000000416c09 18 clang 0x00000000004095ce 19 clang 0x000000000040c36b main + 1771 20 libc.so.6 0x00007f2c032d1abd __libc_start_main + 253 21 clang 0x0000000000407149 Stack dump: 0. Program arguments: /tmp/z/compiler-install/llvm-gcc-r97662-install/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name small.c -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir /tmp/z/compiler-install/llvm-gcc-r97662-install/lib/clang/1.1 -O2 -fmessage-length 85 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-T2FARQ.s -x c small.c 1. parser at end of file 2. Code generation 3. Running pass 'Simple Register Coalescing' on function '@func_56' clang: error: compiler command failed due to signal 6 (use -v to see invocation) [regehr at gamow tmp274]$ cat small.c int qux (int, int); static short foo (short left, unsigned int right) { return 0; } static unsigned char bar (unsigned char ui1, unsigned char ui2) { return (ui2 == 0) ? ((ui1)) : (ui1 / ui2); } static unsigned baz (unsigned ui1, unsigned ui2) { return (ui2 == 0) ? ((ui1)) : (ui1 % ui2); } struct S0 { }; int g_4[4][5]; int g_44 = 0xC733F7CFL; int *g_87 = 0; int **g_86 = (&g_87); int ***g_85[1]; int *volatile g_116 = (&g_4[0][1]); unsigned g_124 = -9L; int g_140 = 6L; struct S0 g_158[8] = { }; struct S0 *g_160 = (&g_158[2]); short g_306 = 0xFF2FL; unsigned char g_312 = 1L; const int func_35 (int ***p_36, unsigned p_37, int p_38, int p_39, unsigned p_40); void func_56 (long p_57, int ***p_58) { signed char l_299 = 0xF5L; const int *l_303 = (&g_4[0][1]); const int **l_302 = (&l_303); const int ***l_301[10][3]; int ***l_304[10]; int ***l_305[5]; unsigned l_307 = -3L; int l_308[3]; int l_309 = -2L; unsigned short l_310 = 0x04DFL; int l_311[6][4]; short l_313 = 0x1479L; unsigned long l_314 = -10L; int l_315 = 0L; struct S0 **l_316 = (&g_160); unsigned long l_317 = 0L; unsigned char l_318 = 0L; int i; for (i = 0; i < 3; i++) l_308[i] = 9L; (l_318) = func_35 (p_58, l_299, (**l_302), func_35 (l_304[8], (g_4[2][3]), func_35 (l_305[4], (((qux ((*g_116), (***l_301[1][1]))) > 0xF8A779C4L) >= func_35 (g_85[0], (g_124), func_35 ((&g_86), (g_44), (p_57), (*l_303), (p_57)), (g_306), (g_140))), ((bar ((qux ((l_307), l_308[0])), 5L)) >= (baz ((qux ((p_57), (l_309))), -1L))), (l_310), ((l_311[4][1] | (~(***l_301[1][2]))) == (foo (((g_312) & (l_313)), (l_314))))), l_315, (0 != l_316)), (l_317)); } [regehr at gamow tmp274]$ clang -v clang version 1.1 (trunk) Target: x86_64-unknown-linux-gnu Thread model: posix -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 00:55:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 00:55:29 -0600 (CST) Subject: [LLVMbugs] [Bug 6486] likely integer wrong code bug In-Reply-To: References: Message-ID: <20100304065529.C7A092A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6486 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Nick Lewycky 2010-03-04 00:55:29 CST --- Fixed in r97721, http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100301/097244.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 llvm.org Thu Mar 4 01:00:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 01:00:58 -0600 (CST) Subject: [LLVMbugs] [Bug 6490] New: Negative array dimensions allowed in template instantiations Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6490 Summary: Negative array dimensions allowed in template instantiations Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rideau3 at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com coppro at overthere:~$ clang -x c++ - #include template struct bar { int i [sizeof(T)-2]; }; int main () { bar b; printf("%d\n", sizeof(b.i)); }; coppro at overthere:~$ ./a.out -4 coppro at overthere:~$ -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 01:12:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 01:12:25 -0600 (CST) Subject: [LLVMbugs] [Bug 6491] New: asmparser should check types on constant forward refs Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6491 Summary: asmparser should check types on constant forward refs Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: LLVM assembly language parser AssignedTo: unassignedbugs at nondot.org ReportedBy: nicholas at mxc.ca CC: llvmbugs at cs.uiuc.edu The .ll parser does not reject this code: %fptr = type { i64(i64*)* } @x = constant %fptr { i64(i64*)* @foo } define void @foo() { unreachable } and produces a module where @foo is defined 'i64 @foo(i64*) { unreachable }'. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 01:59:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 01:59:17 -0600 (CST) Subject: [LLVMbugs] [Bug 5291] JITEmitter holds iterator across set insert() In-Reply-To: References: Message-ID: <20100304075917.27D592A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5291 Jeffrey Yasskin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED AssignedTo|dalej at apple.com |jyasskin at google.com --- Comment #1 from Jeffrey Yasskin 2010-03-04 01:59:16 CST --- Fixed by r97720. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 02:26:10 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 02:26:10 -0600 (CST) Subject: [LLVMbugs] [Bug 6492] New: NAN not a constant Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6492 Summary: NAN not a constant Product: clang Version: unspecified Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: enhancement Priority: P5 Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: holm at liacs.nl CC: llvmbugs at cs.uiuc.edu I have tested this on the clang build distributed with Snow Leopard, so if it has already been fixed sorry in advance. Using the NAN macro from math.h results in this diagnostics: nantest.c:2:11: error: initializer element is not a compile-time constant float x = NAN; ^~~ /usr/include/architecture/i386/math.h:66:25: note: instantiated from: #define NAN __builtin_nanf("0x7fc00000") /* Constant ... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 diagnostic generated. where nantest.c contains the following: --------------- #include float x = NAN; --------------- This works fine in GCC, but not in Clang and seem to be in violation of C99 7.12:5: The macro NAN is defined if and only if the implementation supports quiet NaNs for the float type. It expands to a _constant expression_ of type float representing a quiet NaN. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 02:27:18 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 02:27:18 -0600 (CST) Subject: [LLVMbugs] [Bug 6493] New: LLVM-GCC fails on simple case Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6493 Summary: LLVM-GCC fails on simple case Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: major Priority: P5 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: zhousheng00 at gmail.com CC: llvmbugs at cs.uiuc.edu Seems operation on argument of 2d array of templated class will fail llvm-gcc for example: template class T { public: int V; }; T<4> test(T<4> a[4][8]) { return a[3][3]; } Tested with ToT LLVM-GCC, got test.cpp: In function \u2018T<4> test(T<4> (*)[8])\u2019: test.cpp:7: 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 llvm.org Thu Mar 4 02:37:34 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 02:37:34 -0600 (CST) Subject: [LLVMbugs] [Bug 6492] NAN not a constant In-Reply-To: References: Message-ID: <20100304083734.14FD82A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6492 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from John McCall 2010-03-04 02:37:33 CST --- Yes, this has been fixed since then. Thanks for filing the 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 llvm.org Thu Mar 4 04:04:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 04:04:25 -0600 (CST) Subject: [LLVMbugs] [Bug 6447] Building C++ app fails with link error In-Reply-To: References: Message-ID: <20100304100425.66D202A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6447 jpakkane at gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from jpakkane at gmail.com 2010-03-04 04:04:24 CST --- That patch fixed this error 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 llvm.org Thu Mar 4 11:54:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 11:54:47 -0600 (CST) Subject: [LLVMbugs] [Bug 6430] Ran out of registers during register allocation for vfwprintf In-Reply-To: References: Message-ID: <20100304175447.2DD282A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6430 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |WORKSFORME --- Comment #6 from Jakob Stoklund Olesen 2010-03-04 11:54:46 CST --- This is probably fixed. It doesn't reproduce on 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 llvm.org Thu Mar 4 12:08:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 12:08:57 -0600 (CST) Subject: [LLVMbugs] [Bug 6490] Negative array dimensions allowed in template instantiations In-Reply-To: References: Message-ID: <20100304180857.C6D5A2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6490 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from Douglas Gregor 2010-03-04 12:08:57 CST --- (In reply to comment #1) > I don't think this is a bug. > > sizeof returns size_t, which is an unsigned integral type, so sizeof(char)-2 > gives an unsigned result, meaning the bug summary is wrong. > > The displayed result is perfectly reasonable too. size_t(-1) * 4, thanks to > twos-complement, gives the same bit pattern as size_t(-1 * 4), and since you > omitted the unsigned modifier on the format to printf, you're printing > int(size_t(-4)), giving -4. Right, the argument is unsigned, not negative. There is a bugg here, which is that we're not diagnosing array overflow, which is here: http://llvm.org/bugs/show_bug.cgi?id=1889 *** This bug has been marked as a duplicate of bug 1889 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 12:19:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 12:19:01 -0600 (CST) Subject: [LLVMbugs] [Bug 6473] __attribute__ weakref is broken In-Reply-To: References: Message-ID: <20100304181901.D44582A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6473 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #9 from Rafael ?vila de Esp?ndola 2010-03-04 12:19:01 CST --- Fixed in r97733. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 13:35:12 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 13:35:12 -0600 (CST) Subject: [LLVMbugs] [Bug 6494] New: There are no tests for GVIndirectSymbols in the JIT Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6494 Summary: There are no tests for GVIndirectSymbols in the JIT Product: libraries Version: trunk Platform: All OS/Version: All Status: NEW Severity: major Priority: P5 Component: Target-Independent JIT AssignedTo: evan.cheng at apple.com ReportedBy: jyasskin at google.com CC: llvmbugs at cs.uiuc.edu I added an abort() to both the MR.isIndirectSymbol() branch in JITEmitter::finishFunction and JITResolverState::getGlobalToIndirectSymMap(), and `make check-lit` passed anyway at r97723. This makes it hard to ensure that other changes keep it working. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 13:51:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 13:51:05 -0600 (CST) Subject: [LLVMbugs] [Bug 6473] __attribute__ weakref is broken In-Reply-To: References: Message-ID: <20100304195105.2F1B82A6C135@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6473 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #10 from Rafael ?vila de Esp?ndola 2010-03-04 13:51:04 CST --- We are still missing static variables that use a weakref :-( in ---------------------- extern void foo (void); static void bar (void) __attribute__ ((__weakref__("foo"))); static void *const zed = (void *) &bar; int f1(void) { return zed != 0; } int f2(void) { return bar != 0; } --------------------- We correctly avoid producing a undef for bar when compiling f2, but zed is compiled as: @zed = internal constant i8* bitcast (void ()* @bar to i8*), align 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 llvm.org Thu Mar 4 13:54:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 13:54:30 -0600 (CST) Subject: [LLVMbugs] [Bug 6360] Escaped stub can be destroyed prematurely In-Reply-To: References: Message-ID: <20100304195430.5036E2A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6360 Jeffrey Yasskin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #6 from Jeffrey Yasskin 2010-03-04 13:54:29 CST --- (Answered Albert's question offline since it's not related to this bug.) Should be fixed by r97737. Please reopen if it's 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 llvm.org Thu Mar 4 14:27:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 14:27:05 -0600 (CST) Subject: [LLVMbugs] [Bug 6495] New: extern const file-level variable with initializer raises warning Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6495 Summary: extern const file-level variable with initializer raises warning Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: dlowe at bitmuse.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com This should be a warning in C, where a const file-level variable is externally bound. In C++, however, it is internally bound by default. You're supposed to use the extern keyword to bind it externally. Doing so in clang, however, generates the warning. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 14:36:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 14:36:42 -0600 (CST) Subject: [LLVMbugs] [Bug 6496] New: bad Clang diagnostics when signed/unsigned is combined with a typedef Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6496 Summary: bad Clang diagnostics when signed/unsigned is combined with a typedef Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: minor Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: zhanyong.wan at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com It's easy for a user to make the mistake of qualifying an integer typedef with signed or unsigned. Clang's error messages aren't very helpful: $ cat t.cc typedef int Integer; typedef unsigned Integer UnsignedInteger; void Test() { unsigned Integer foo; unsigned bar = (unsigned Integer)-1; } $ clang t.cc t.cc:2:18: error: typedef redefinition with different types ('unsigned int' vs 'int') typedef unsigned Integer UnsignedInteger; ^ t.cc:1:13: note: previous definition is here typedef int Integer; ^ t.cc:2:25: error: invalid token after top level declarator typedef unsigned Integer UnsignedInteger; ^ ; t.cc:5:19: error: expected ';' at end of declaration unsigned Integer foo; ^ ; t.cc:6:28: error: expected ')' unsigned bar = (unsigned Integer)-1; ^ t.cc:6:18: note: to match this '(' unsigned bar = (unsigned Integer)-1; ^ 6 diagnostics generated. I'd expect to see something like "'unsigned' cannot be combined with a typedef ('Integer')." -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 14:42:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 14:42:46 -0600 (CST) Subject: [LLVMbugs] [Bug 6489] ice: Cannot find live range In-Reply-To: References: Message-ID: <20100304204246.C35862A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6489 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Jakob Stoklund Olesen 2010-03-04 14:42:46 CST --- Fixed in r97742 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 15:02:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 15:02:14 -0600 (CST) Subject: [LLVMbugs] [Bug 3153] OCaml binding's Makefile.ocaml creates incorrect symlinks In-Reply-To: References: Message-ID: <20100304210214.F044A2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3153 Erick Tryzelaar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |idadesub at users.sourceforge. | |net Resolution| |FIXED --- Comment #7 from Erick Tryzelaar 2010-03-04 15:02:14 CST --- Finally fixed in r97743! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 15:05:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 15:05:01 -0600 (CST) Subject: [LLVMbugs] [Bug 6480] ARM Codegen asserts Running pass 'Control Flow Optimizer' on function '@"java.lang.String::getChars"' In-Reply-To: References: Message-ID: <20100304210501.B23D72A6C131@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6480 Bob Wilson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Bob Wilson 2010-03-04 15:05:01 CST --- Fixed in svn r97745. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 15:05:35 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 15:05:35 -0600 (CST) Subject: [LLVMbugs] [Bug 6333] SIGSEGV in 'X86 DAG->DAG Instruction Selection' In-Reply-To: References: Message-ID: <20100304210535.69E152A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6333 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Chris Lattner 2010-03-04 15:05:35 CST --- Unfortunately this testcase was broken by recent llvm .bc changes. Can you reduce a new testcase? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 15:22:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 15:22:07 -0600 (CST) Subject: [LLVMbugs] [Bug 3383] Assertion failed: Only trivial vector-to-scalar conversions should get here! In-Reply-To: References: Message-ID: <20100304212207.D7A0A2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3383 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Dan Gohman 2010-03-04 15:22:07 CST --- This now works on TOT. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 15:28:06 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 15:28:06 -0600 (CST) Subject: [LLVMbugs] [Bug 6473] __attribute__ weakref is broken In-Reply-To: References: Message-ID: <20100304212806.97C052A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6473 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #12 from Rafael ?vila de Esp?ndola 2010-03-04 15:28:06 CST --- fixed in r97750 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 15:43:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 15:43:04 -0600 (CST) Subject: [LLVMbugs] [Bug 6478] ARM CodeGen Running pass 'Prolog/Epilog Insertion & Frame Finalization' on function '@"java.lang.String::getChars"' In-Reply-To: References: Message-ID: <20100304214304.B71D52A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6478 Bob Wilson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Bob Wilson 2010-03-04 15:43:04 CST --- Fixed in svn r97755. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 15:45:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 15:45:31 -0600 (CST) Subject: [LLVMbugs] [Bug 6497] New: Assertion failed: (Node2Index[SU->NodeNum] > Node2Index[I->getSUnit()->NodeNum] && "Wrong topological sorting"), function InitDAGTopologicalSorting, file ScheduleDAG.cpp, line 462. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6497 Summary: Assertion failed: (Node2Index[SU->NodeNum] > Node2Index[I->getSUnit()->NodeNum] && "Wrong topological sorting"), function InitDAGTopologicalSorting, file ScheduleDAG.cpp, line 462. Product: libraries Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: enhancement Priority: P5 Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: rdivacky at freebsd.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4392) --> (http://llvm.org/bugs/attachment.cgi?id=4392) testt case on i386 I am getting this assert when compiling the attached with clang -O2 r600_cp.c I believe this is quite recent, it definitely wasnt there on Feb 13th -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 16:00:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 16:00:38 -0600 (CST) Subject: [LLVMbugs] [Bug 6498] New: use .p2align instead of .align Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6498 Summary: use .p2align instead of .align Product: compiler-rt Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: compiler-rt AssignedTo: unassignedbugs at nondot.org ReportedBy: gohman at apple.com CC: llvmbugs at cs.uiuc.edu compiler-rt currently uses .align directives for what appear to be intended as power-of-2 alignment. The .p2align directive should be used instead, as .align means byte alignment on some targets. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 16:32:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 16:32:42 -0600 (CST) Subject: [LLVMbugs] [Bug 6499] New: clang can't produce jit code with glibc Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6499 Summary: clang can't produce jit code with glibc Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: minor Priority: P5 Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: castet.matthieu at free.fr CC: llvmbugs at cs.uiuc.edu clang identify as gcc, but in new glibc header if gcc is detected some function in header are optimized as inline asm. For example select.h contains [1]. This make llvm bytecode not runnable with lli jit : LLVM ERROR: JIT does not support inline asm! [1] #if defined __GNUC__ && __GNUC__ >= 2 # if __WORDSIZE == 64 # define __FD_ZERO_STOS "stosq" # define __FD_SET_BTS "btsq" # define __FD_CLR_BTR "btrq" # define __FD_ISSET_BT "btq" # else # define __FD_ZERO_STOS "stosl" # define __FD_SET_BTS "btsl" # define __FD_CLR_BTR "btrl" # define __FD_ISSET_BT "btl" # endif # define __FD_ZERO(fdsp) \ do { \ int __d0, __d1; \ __asm__ __volatile__ ("cld; rep; " __FD_ZERO_STOS \ : "=c" (__d0), "=D" (__d1) \ : "a" (0), "0" (sizeof (fd_set) \ / sizeof (__fd_mask)), \ "1" (&__FDS_BITS (fdsp)[0]) \ : "memory"); \ } while (0) #else # define __FD_ZERO(set) \ do { \ unsigned int __i; \ fd_set *__arr = (set); \ for (__i = 0; __i < sizeof (fd_set) / sizeof (__fd_mask); ++__i) \ __FDS_BITS (__arr)[__i] = 0; \ } while (0) #endif -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 16:39:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 16:39:05 -0600 (CST) Subject: [LLVMbugs] [Bug 6499] clang can't produce jit code with glibc In-Reply-To: References: Message-ID: <20100304223905.5A7822A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6499 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Chris Lattner 2010-03-04 16:39:04 CST --- The JIT doesn't support inline asm, this is covered by PR1343 *** This bug has been marked as a duplicate of bug 1343 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 17:06:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 17:06:02 -0600 (CST) Subject: [LLVMbugs] [Bug 6500] New: lli -force-interpreter crash with asm inline Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6500 Summary: lli -force-interpreter crash with asm inline Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: Interpreter AssignedTo: unassignedbugs at nondot.org ReportedBy: castet.matthieu at free.fr CC: llvmbugs at cs.uiuc.edu $ cat test.ll ; ModuleID = 'test.bc' 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-n8:16:32" target triple = "i386-unknown-linux-gnu" define i32 @main() nounwind { entry: tail call void asm sideeffect "ff_mlp_firorder_0:", "~{dirflag},~{fpsr},~{flags}"() nounwind ret i32 0 } $ lli -force-interpreter test.bc 0 lli 0x086dfa58 Stack dump: 0. Program arguments: lli -force-interpreter test.bc Segmentation fault -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 17:12:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 17:12:40 -0600 (CST) Subject: [LLVMbugs] [Bug 6500] lli -force-interpreter crash with asm inline In-Reply-To: References: Message-ID: <20100304231240.AA5062A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6500 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |nlewycky at google.com Resolution| |INVALID --- Comment #1 from Nick Lewycky 2010-03-04 17:12:40 CST --- What did you expect, exactly? If you want a clean error + abort() upon trying to interpret inline assembly, please implement it and send the patch to llvm-commits. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 19:11:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 19:11:41 -0600 (CST) Subject: [LLVMbugs] [Bug 6501] New: QOI: arguments passed/required mismatch diagnostic Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6501 Summary: QOI: arguments passed/required mismatch diagnostic Product: clang Version: trunk Platform: Macintosh OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: Semantic Analyzer AssignedTo: unassignedclangbugs at nondot.org ReportedBy: echristo at gmail.com CC: llvmbugs at cs.uiuc.edu It would be useful when emitting a diagnostic for "too many/few arguments to {thing} x" that it provide some numbers of what the expected and seen number of arguments were. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 4 19:25:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 19:25:58 -0600 (CST) Subject: [LLVMbugs] [Bug 6502] New: Clang complains about indirect goto jumping over initializations where GCC doesn't Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6502 Summary: Clang complains about indirect goto jumping over initializations where GCC doesn't Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: chandlerc at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com I know this code is terrifying, but some code generators produce this type of pattern. The rationale for the combined switch and manually built indirect goto table is to turn the goto-based solution off on compilers which don't support it, and on for those that do. I haven't tried to reduce it by de-interleaving them, not sure if that's relevant or not. It might be possible to reduce this further, but this makes it an "interesting" test case without being enormous. % cat t.cc bool f(const unsigned* indices) { static void* const dispatch_table[] = { &&L1, &&LEND, }; for (const unsigned* next = indices; ; ) { goto *dispatch_table[*next]; switch (*(next)) { L1: case 0: { const int foo = 1.0; (void)foo; goto *dispatch_table[*(++next)]; break; } LEND: case 1: return true; } } } % ./bin/clang -fsyntax-only t.cc t.cc:13:9: error: illegal indirect goto in protected scope, unknown effect on scopes goto *dispatch_table[*(++next)]; ^ t.cc:11:19: note: jump bypasses variable initialization const int foo = 1.0; ^ t.cc:6:24: note: jump bypasses variable initialization for (const unsigned* next = indices; ; ) { ^ t.cc:7:5: error: illegal indirect goto in protected scope, unknown effect on scopes goto *dispatch_table[*next]; ^ t.cc:6:24: note: jump bypasses variable initialization for (const unsigned* next = indices; ; ) { ^ t.cc:4:5: error: address taken of label in protected scope, jump to it would have unknown effect on scope &&LEND, ^ t.cc:6:24: note: jump bypasses variable initialization for (const unsigned* next = indices; ; ) { ^ t.cc:3:5: error: address taken of label in protected scope, jump to it would have unknown effect on scope &&L1, ^ t.cc:6:24: note: jump bypasses variable initialization for (const unsigned* next = indices; ; ) { ^ 9 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 llvm.org Thu Mar 4 22:29:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Mar 2010 22:29:13 -0600 (CST) Subject: [LLVMbugs] [Bug 6503] New: ice: replaceAllUses of value with new value of different type! Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6503 Summary: ice: replaceAllUses of value with new value of different type! Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu Created an attachment (id=4394) --> (http://llvm.org/bugs/attachment.cgi?id=4394) failure-inducing input Seen on x86. regehr at john-home:~/volatile/bugs/tmp274$ clang -v clang version 1.1 (trunk) Target: i386-pc-linux-gnu Thread model: posix regehr at john-home:~/volatile/bugs/tmp274$ clang -O2 small.c clang: Value.cpp:317: void llvm::Value::replaceAllUsesWith(llvm::Value*): Assertion `New->getType() == getType() && "replaceAllUses of value with new value of different type!"' failed. 0 clang 0x08edbe18 Stack dump: 0. Program arguments: /home/regehr/z/compiler-install/llvm-gcc-r97760-install/bin/clang -cc1 -triple i386-pc-linux-gnu -S -disable-free -main-file-name small.c -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4 -resource-dir /home/regehr/z/compiler-install/llvm-gcc-r97760-install/lib/clang/1.1 -O2 -fmessage-length 85 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-mau7RF.s -x c small.c 1. parser at end of file 2. Per-function optimization 3. Running pass 'Combine redundant instructions' on function '@int327' clang: error: compiler command failed due to signal 6 (use -v to see invocation) regehr at john-home:~/volatile/bugs/tmp274$ clang small.c -emit-llvm -S regehr at john-home:~/volatile/bugs/tmp274$ opt -O2 small.s -o /dev/null opt: Value.cpp:317: void llvm::Value::replaceAllUsesWith(llvm::Value*): Assertion `New->getType() == getType() && "replaceAllUses of value with new value of different type!"' failed. 0 opt 0x084aaae8 Stack dump: 0. Program arguments: opt -O2 small.s -o /dev/null 1. Running pass 'Combine redundant instructions' on function '@int327' Aborted -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 5 00:20:06 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 00:20:06 -0600 (CST) Subject: [LLVMbugs] [Bug 6497] Assertion failed: (Node2Index[SU->NodeNum] > Node2Index[I->getSUnit()->NodeNum] && "Wrong topological sorting"), function InitDAGTopologicalSorting, file ScheduleDAG.cpp, line 462. In-Reply-To: References: Message-ID: <20100305062006.D6F892A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6497 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Chris Lattner 2010-03-05 00:20:06 CST --- Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100301/097309.html Scary regression, thanks for reporting 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 llvm.org Fri Mar 5 01:59:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 01:59:30 -0600 (CST) Subject: [LLVMbugs] [Bug 6504] New: BitVector's copy assignment triggers debug assert in MSVC2010 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6504 Summary: BitVector's copy assignment triggers debug assert in MSVC2010 Product: libraries Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: critical Priority: P5 Component: Support Libraries AssignedTo: unassignedbugs at nondot.org ReportedBy: ahmedcharles at gmail.com CC: llvmbugs at cs.uiuc.edu MSVC2010 is a bit too aggressive in checking iterators (and pointers) for validity when performing various algorithms in debug mode. This includes verifying that output iterators that are pointers are not null. In the case of std::copy it is conformant to pass a null pointer as an output iterator as long as there are no elements to copy. However, I'd recommend changing this so that std::copy is only called when there are elements to copy. The relevant line is: include/llvm/ADT/BitVector.h:332 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 5 02:26:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 02:26:04 -0600 (CST) Subject: [LLVMbugs] [Bug 6387] [2.7] ice: dag combine assertion In-Reply-To: References: Message-ID: <20100305082604.5B5422A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6387 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #5 from Duncan Sands 2010-03-05 02:26:03 CST --- This seems to have been 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 llvm.org Fri Mar 5 02:34:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 02:34:26 -0600 (CST) Subject: [LLVMbugs] [Bug 6500] lli -force-interpreter crash with asm inline In-Reply-To: References: Message-ID: <20100305083426.E10792A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6500 Matthieu castet changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #2 from Matthieu castet 2010-03-05 02:34:26 CST --- This is a little hard. I don't except random crash from programs. They should catch error and inform the user what he has done wrong. I am not interested in implementing a patch ATM, the purpose of this bug was to be a reminder (from me or other) to implement a proper thing. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 5 02:38:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 02:38:14 -0600 (CST) Subject: [LLVMbugs] [Bug 6505] New: EquivalenceClasses::ECValue's private constructor is inaccessible when combined with a rvalue reference aware STL. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6505 Summary: EquivalenceClasses::ECValue's private constructor is inaccessible when combined with a rvalue reference aware STL. Product: libraries Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: enhancement Priority: P5 Component: Support Libraries AssignedTo: unassignedbugs at nondot.org ReportedBy: ahmedcharles at gmail.com CC: llvmbugs at cs.uiuc.edu EquivalenceClasses::ECValue has an implicit, private constructor which ends up getting called in the following places: include/llvm/ADT/EquivalenceClasses.h:193 include/llvm/ADT/EquivalenceClasses.h:206 Rvalue reference versions of set::find and set::insert will be used to forward the arguments rather than force the construction of the ECValue type within the EquivalenceClasses members. This is meant to be a performance optimization because it results in less constructions of ECValue. The fix which results in the same behavior as today is to explicitly call the ECValue constructor when passing the value to both methods above. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 5 02:45:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 02:45:29 -0600 (CST) Subject: [LLVMbugs] [Bug 6506] New: Ambiguous calls to llvm::next. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6506 Summary: Ambiguous calls to llvm::next. Product: libraries Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: critical Priority: P5 Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: ahmedcharles at gmail.com CC: llvmbugs at cs.uiuc.edu C++0x adds std::next (and std::prev). std::next conflicts with llvm::next when used on a type within the std namespace because of ADL. Explicitly qualifying these calls will result in the ambiguity being resolved, in favor of the llvm:: version. lib/CodeGen/Spiller.cpp:442 lib/CodeGen/Spiller.cpp:443 lib/Transforms/Scalar/LoopStrengthReduce.cpp:2820 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 5 02:48:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 02:48:19 -0600 (CST) Subject: [LLVMbugs] [Bug 6503] ice: replaceAllUses of value with new value of different type! In-Reply-To: References: Message-ID: <20100305084819.198FA2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6503 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Chris Lattner 2010-03-05 02:48:18 CST --- No really, fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100301/097318.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 llvm.org Fri Mar 5 03:02:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 03:02:16 -0600 (CST) Subject: [LLVMbugs] [Bug 6507] New: Forwarding 0 as a pointer using rvalue references doesn't work Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6507 Summary: Forwarding 0 as a pointer using rvalue references doesn't work Product: libraries Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: critical Priority: P5 Component: Core LLVM classes AssignedTo: unassignedbugs at nondot.org ReportedBy: ahmedcharles at gmail.com CC: llvmbugs at cs.uiuc.edu std::pair in c++0x has additional constructor overloads which take rvalue references and forward them to the stored type's constructors. Rvalue references forward 0 as an int rather than as a pointer. nullptr can be used to solve this problem, but since that is not universally supported, static_cast'ing the 0 to the expected pointer type is sufficient. lib/CodeGen/SelectionDAG/TargetLowering.cpp:2402 lib/CodeGen/SelectionDAG/TargetLowering.cpp:2434 lib/Transforms/Utils/PromoteMemoryToRegister.cpp:864 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 5 03:05:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 03:05:38 -0600 (CST) Subject: [LLVMbugs] [Bug 6508] New: Forwarding 0 as a pointer using rvalue references doesn't work Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6508 Summary: Forwarding 0 as a pointer using rvalue references doesn't work Product: clang Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: enhancement Priority: P5 Component: AST AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ahmedcharles at gmail.com CC: llvmbugs at cs.uiuc.edu std::pair in c++0x has additional constructor overloads which take rvalue references and forward them to the stored type's constructors. Rvalue references forward 0 as an int rather than as a pointer. nullptr can be used to solve this problem, but since that is not universally supported, static_cast'ing the 0 to the expected pointer type is sufficient. include/clang/Analysis/ProgramPoint.h:62 include/clang/AST/DeclContextInternals.h:157 lib/AST/DeclBase.cpp:796 lib/AST/DeclBase.cpp:802 lib/AST/Expr.cpp:2160 lib/AST/Expr.cpp:2162 lib/Checker/GRExprEngine.cpp:1872 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 5 03:14:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 03:14:59 -0600 (CST) Subject: [LLVMbugs] [Bug 6509] New: Compile error results in MSVC not compiling llvm. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6509 Summary: Compile error results in MSVC not compiling llvm. Product: libraries Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: critical Priority: P5 Component: Transformation Utilities AssignedTo: unassignedbugs at nondot.org ReportedBy: ahmedcharles at gmail.com CC: llvmbugs at cs.uiuc.edu There is an ifdef section which defines setjmp -> _setjmp. Because this replacement is applied liberally. lib/Transforms/Utils/LowerInvoke.cpp:147 and 156 The most trivial change at this point would be to remove the mmvc specific ifdef's and just not replace the name. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 5 04:13:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 04:13:26 -0600 (CST) Subject: [LLVMbugs] [Bug 6510] New: PM doesn't terminate when processing passes with circular dependency + patch Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6510 Summary: PM doesn't terminate when processing passes with circular dependency + patch Product: libraries Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: Core LLVM classes AssignedTo: unassignedbugs at nondot.org ReportedBy: philipp.legrum at daimler.com CC: llvmbugs at cs.uiuc.edu The LLVM Pass manager gets caught in an infinite recursion when dealing with passes that have a circular dependency ultimately resulting in a stack overflow. I created a patch that tracks the recursive insertion of passes monitoring if the manager inserts a pass that it is currently inserting in an outer invocation of PMTopLevelManager::schedulePass. The modification now aborts more gracefully printing out the cyclic dependency. Patch needs review. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 5 05:53:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 05:53:37 -0600 (CST) Subject: [LLVMbugs] [Bug 6511] New: clang++ tries to invoke g++ Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6511 Summary: clang++ tries to invoke g++ Product: clang Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: blocker Priority: P5 Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: Axel.Naumann at cern.ch CC: llvmbugs at cs.uiuc.edu I have built the current trunk of clang + llvm with MSVC 2008 in debug with CMake. I get c:\ROOT\llvm\AxelTest>clang++ -v t.cxx Target: i686-pc-win32 Thread model: posix "c:/ROOT/llvm/obj/bin/Debug/clang.exe" -cc1 -triple i686-pc-win32 -S -disable-f ree -main-file-name t.cxx -mrelocation-model static -mdisable-fp-elim -mconstruc tor-aliases -v -resource-dir c:/ROOT/llvm/obj/bin/lib/clang/1.1 -fmessage-length 80 -fexceptions -fms-extensions -fgnu-runtime -fdiagnostics-show-option -fcolor -diagnostics -o C:/Users/axel/AppData/Local/Temp/cc-000000.s -x c++ t.cxx clang -cc1 version 1.1 based upon llvm 2.7svn hosted on i686-pc-win32 ignoring nonexistent directory "/usr/local/include" ignoring nonexistent directory "/usr/include" #include "..." search starts here: #include <...> search starts here: c:/ROOT/llvm/obj/bin/lib/clang/1.1/include c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include C:\Program Files\Microsoft SDKs\Windows\v6.0A End of search list. "g++" -v -c -o C:/Users/axel/AppData/Local/Temp/cc-000001.o -x assembler C:/Use rs/axel/AppData/Local/Temp/cc-000000.s clang++: error: unable to execute command: program not executable clang++: error: assembler command failed due to signal 1 (use -v to see invocati on) And yes, clang (without "++") tries to invoke gcc. Is there a configuration step that I have overlooked? Cheers, Axel. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 5 07:11:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 07:11:59 -0600 (CST) Subject: [LLVMbugs] [Bug 6511] clang++ tries to invoke g++ In-Reply-To: References: Message-ID: <20100305131159.385CB2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6511 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |asl at math.spbu.ru Resolution| |INVALID --- Comment #1 from Anton Korobeynikov 2010-03-05 07:11:58 CST --- > And yes, clang (without "++") tries to invoke gcc. Is there a configuration > step that I have overlooked? No. gcc is invoked for assembling / linking of the compiler 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 llvm.org Fri Mar 5 12:03:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 12:03:27 -0600 (CST) Subject: [LLVMbugs] [Bug 6512] New: problem with INSTCOMBINE phi node with loads from different address spaces Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6512 Summary: problem with INSTCOMBINE phi node with loads from different address spaces Product: new-bugs Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P5 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: bixia.zheng at amd.com CC: llvmbugs at cs.uiuc.edu Error message (opt -O3): INSTCOMBINE ITERATION #0 on foo .... IC: Visiting: br label %if.end IC: Visiting: %res.0 = phi i32 [ %tmp2, %if.then ], [ %tmp5, %if.else ] ; [#uses=1] Assertion failed: getType() == V->getType() && "All operands to PHI node must be the same type as the PHI node!", file ....\llvm\include\llvm/Instructions.h, line 1821 Test case: define i32 @foo(i32 addrspace(1)* %pointer1, i32 %flag, i32* %pointer2) nounwind { entry: %retval = alloca i32, align 4 ; [#uses=2] %pointer1.addr = alloca i32 addrspace(1)*, align 4 ; [#uses=2] %flag.addr = alloca i32, align 4 ; [#uses=2] %pointer2.addr = alloca i32*, align 4 ; [#uses=2] %res = alloca i32, align 4 ; [#uses=4] store i32 addrspace(1)* %pointer1, i32 addrspace(1)** %pointer1.addr store i32 %flag, i32* %flag.addr store i32* %pointer2, i32** %pointer2.addr store i32 10, i32* %res %tmp = load i32* %flag.addr ; [#uses=1] %tobool = icmp ne i32 %tmp, 0 ; [#uses=1] br i1 %tobool, label %if.then, label %if.else return: ; preds = %if.end %tmp7 = load i32* %retval ; [#uses=1] ret i32 %tmp7 if.end: ; preds = %if.else, %if.then %tmp6 = load i32* %res ; [#uses=1] store i32 %tmp6, i32* %retval br label %return if.then: ; preds = %entry %tmp1 = load i32 addrspace(1)** %pointer1.addr ; [#uses=1] %arrayidx = getelementptr i32 addrspace(1)* %tmp1, i32 0 ; [#uses=1] %tmp2 = load i32 addrspace(1)* %arrayidx ; [#uses=1] store i32 %tmp2, i32* %res br label %if.end if.else: ; preds = %entry %tmp3 = load i32** %pointer2.addr ; [#uses=1] %arrayidx4 = getelementptr i32* %tmp3, i32 0 ; [#uses=1] %tmp5 = load i32* %arrayidx4 ; [#uses=1] store i32 %tmp5, i32* %res br label %if.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 llvm.org Fri Mar 5 12:09:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 12:09:45 -0600 (CST) Subject: [LLVMbugs] [Bug 6513] New: crash on invalid (enum forward decl in template arg list) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6513 Summary: crash on invalid (enum forward decl in template arg list) Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: minor Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ggreif at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Compile this with clang++: $ cat abc.cpp template class GOVERN> class Role : public FACILITY, protected GOVERN { friend class GOVERN; }; $ /phys/mfs/hc_rap/tools/llvm/Release/bin/clang abc.cpp -o /dev/null abc.cpp:1:16: error: ISO C++ forbids forward references to 'enum' types template class GOVERN> ^ ---> CRASH! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 5 12:13:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 12:13:40 -0600 (CST) Subject: [LLVMbugs] [Bug 6514] New: valid template code rejected (friend decl. misinterpreted) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6514 Summary: valid template code rejected (friend decl. misinterpreted) Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ggreif at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com template class GOVERN> class Role : public GOVERN { friend class GOVERN; }; /* abc.cpp:4:18: error: cannot specialize a template template parameter friend class GOVERN; ^ 1 diagnostic generated. - G++ digests this. - comeau 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 llvm.org Fri Mar 5 12:24:03 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 12:24:03 -0600 (CST) Subject: [LLVMbugs] [Bug 6515] New: gcc compat: __builtin_signbit doesn't appear to be supported Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6515 Summary: gcc compat: __builtin_signbit doesn't appear to be supported Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: minor Priority: P5 Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: srp at srparish.net CC: llvmbugs at cs.uiuc.edu I'm getting the following when trying to build a code base that is typically built with gcc -std=gnu99: error: implicit declaration of function '__builtin_signbit' is invalid in C99 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 5 12:53:50 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 12:53:50 -0600 (CST) Subject: [LLVMbugs] [Bug 6512] problem with INSTCOMBINE phi node with loads from different address spaces In-Reply-To: References: Message-ID: <20100305185350.D9DD72A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6512 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-03-05 12:53:50 CST --- Fixed here, thanks: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100301/097331.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 llvm.org Fri Mar 5 13:27:21 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 13:27:21 -0600 (CST) Subject: [LLVMbugs] [Bug 6502] Clang complains about indirect goto jumping over initializations where GCC doesn't In-Reply-To: References: Message-ID: <20100305192721.CE9CD2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6502 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2010-03-05 13:27:21 CST --- Done here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20100301/028173.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 llvm.org Fri Mar 5 14:22:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 14:22:20 -0600 (CST) Subject: [LLVMbugs] [Bug 6516] New: Assertion failed: (I != FieldInfo.end() && "Unable to find field info") Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6516 Summary: Assertion failed: (I != FieldInfo.end() && "Unable to find field info") Product: clang Version: trunk Platform: Other OS/Version: FreeBSD Status: NEW Severity: normal Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: hinokind at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=4397) --> (http://llvm.org/bugs/attachment.cgi?id=4397) testcase $ clang assert16-min.cc Assertion failed: (I != FieldInfo.end() && "Unable to find field info"), function getLLVMFieldNo, file CodeGenTypes.cpp, line 471. Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-unknown-freebsd8.0 -S -disable-free -main-file-name assert16-min.cc -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.1 -fmessage-length 157 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-t8expo.s -x c++ assert16-min.cc 1. assert16-min.cc:20:38: current parser token ';' 2. assert16-min.cc:6:12: LLVM IR generation of declaration 'kryHash::kryHash' 3. assert16-min.cc:6:12: Generating code for declaration 'kryHash::kryHash' clang: error: compiler command failed due to signal 6 (use -v to see invocation) $ clang --version clang version 1.1 (trunk 97818) Target: x86_64-unknown-freebsd8.0 Thread model: posix -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 5 14:35:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 14:35:37 -0600 (CST) Subject: [LLVMbugs] [Bug 6517] New: Confused scope error on indirect goto Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6517 Summary: Confused scope error on indirect goto Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Compiling the following gives: void jump(void *L) { int I = 1; goto *L; } $ clang -S scope.C scope.C:3:3: error: illegal indirect goto in protected scope, unknown effect on scopes goto *L; ^ scope.C:2:7: note: jump bypasses variable initialization int I = 1; ^ 2 diagnostics generated. This is surely 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 llvm.org Fri Mar 5 14:38:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 14:38:16 -0600 (CST) Subject: [LLVMbugs] [Bug 6517] Confused scope error on indirect goto In-Reply-To: References: Message-ID: <20100305203816.35BEB2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6517 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-03-05 14:38:15 CST --- Fixed in r97826 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 llvm.org Fri Mar 5 16:23:32 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 16:23:32 -0600 (CST) Subject: [LLVMbugs] [Bug 6518] New: Assertion failed: (CD->isUsed()) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6518 Summary: Assertion failed: (CD->isUsed()) Product: clang Version: trunk Platform: Other OS/Version: FreeBSD Status: NEW Severity: normal Priority: P3 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: hinokind at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=4398) --> (http://llvm.org/bugs/attachment.cgi?id=4398) testcase $ clang assert15-min.cc -Wno-return-type Assertion failed: (CD->isUsed()), function GetOrCreateLLVMFunction, file CodeGenModule.cpp, line 796. Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-unknown-freebsd8.0 -S -disable-free -main-file-name assert15-min.cc -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.1 -Wno-return-type -fmessage-length 157 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-8PkM5j.s -x c++ assert15-min.cc 1. parser at end of file 2. Per-file LLVM IR generation 3. assert15-min.cc:28:12: Generating code for declaration 'QDebug::~QDebug' 4. assert15-min.cc:28:22: LLVM IR generation of compound statement ('{}') 5. assert15-min.cc:29:24: LLVM IR generation of compound statement ('{}') 6. assert15-min.cc:30:35: LLVM IR generation of compound statement ('{}') clang: error: compiler command failed due to signal 6 (use -v to see invocation) $ clang --version clang version 1.1 (trunk 97839) Target: x86_64-unknown-freebsd8.0 Thread model: posix -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 5 16:42:22 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 16:42:22 -0600 (CST) Subject: [LLVMbugs] [Bug 6519] New: Support -Xarch_arch option on Darwin Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6519 Summary: Support -Xarch_arch option on Darwin Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: dgregor at apple.com CC: llvmbugs at cs.uiuc.edu Blocks: 5881 Darwin's GCC has a funny scheme where we can pass architecture-specific flags with, e.g., -Xarch_i386 -mmacosx-version-min=10.4 so that -mmacosx-version-min=10.4 will only be passed down the command-line chain for -arch i386. Qt uses 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 llvm.org Fri Mar 5 17:40:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 17:40:16 -0600 (CST) Subject: [LLVMbugs] [Bug 6518] catch blocks not trying to copy-initialize, destruct variable type In-Reply-To: References: Message-ID: <20100305234016.D29E82A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6518 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-03-05 17:40:16 CST --- Fixed in r97853 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 5 20:18:35 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 20:18:35 -0600 (CST) Subject: [LLVMbugs] [Bug 6515] gcc compat: __builtin_signbit doesn't appear to be supported In-Reply-To: References: Message-ID: <20100306021835.D50CA2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6515 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #2 from Eli Friedman 2010-03-05 20:18:35 CST --- Fixed in r97864. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 5 21:34:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 21:34:23 -0600 (CST) Subject: [LLVMbugs] [Bug 6520] New: [inline asm] early clobber + forced register + -O0 == wrong register allocation Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6520 Summary: [inline asm] early clobber + forced register + -O0 == wrong register allocation Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P5 Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: kaffeemonster at googlemail.com CC: llvmbugs at cs.uiuc.edu I build myself a fresh clang today at trunk r97864. I was trying to hunt down another bug, but was first stopped by this one: char *func(void) { char *ret, *p; unsigned long t; asm ( "mov $0xdeafbeef, %1\n\t" "mov $0xcafebabe, %0\n\t" "mov %0, %2\n\t" : /* %0 */ "=&r" (ret), /* %1 */ "=&r" (p), /* %2 */ "=&c" (t) ); return ret; } compiled with: clang -c test.c results in, stripping the prologue/epilogue: 9: b9 ef be af de mov $0xdeafbeef,%ecx e: b8 be ba fe ca mov $0xcafebabe,%eax 13: 89 c1 mov %eax,%ecx as you can see, %2 and %1 get the same register. This only happens when: - there are early clobbers - one variable is forced into a specific register with a constrain - no optimization is used The problem is mainly i need -O0 ATM, because i need working debug info (which is also broken ATM), so i can hunt down another bug (compiled by clang my programm crashes). Greetings Jan -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 5 22:29:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Mar 2010 22:29:25 -0600 (CST) Subject: [LLVMbugs] [Bug 6521] New: decl not getting marked used Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6521 Summary: decl not getting marked used Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: clattner at apple.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com struct Foo { static int count() __attribute__((constructor)) { static int cnt = 0; return ++cnt; } }; int main() { return Foo::count(); } This isn't outputting the body of Foo::count for some reason, and isn't honoring the attribute ctor either. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Mar 6 05:42:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Mar 2010 05:42:14 -0600 (CST) Subject: [LLVMbugs] [Bug 6349] miscompilation of volatile variables in msp430 backend In-Reply-To: References: Message-ID: <20100306114214.B7AEE2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6349 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #15 from Anton Korobeynikov 2010-03-06 05:42:13 CST --- Fixed in http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100301/097373.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 llvm.org Sat Mar 6 06:01:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Mar 2010 06:01:27 -0600 (CST) Subject: [LLVMbugs] [Bug 6522] New: clang emits U symbol for builtin_copysignl while gcc does not Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6522 Summary: clang emits U symbol for builtin_copysignl while gcc does not Product: clang Version: unspecified Platform: PC OS/Version: FreeBSD Status: NEW Severity: enhancement Priority: P5 Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rdivacky at freebsd.org CC: llvmbugs at cs.uiuc.edu pes delta$ cat divxc3.c void foo(float a, float b, float c, float d) { float y = __builtin_copysignl (0, c) * b; } pes delta$ gcc -std=c99 -c divxc3.c && nm divxc3.o | grep copy pes delta$ clang -std=c99 -c divxc3.c && nm divxc3.o | grep copy U copysignl -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Mar 6 10:21:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Mar 2010 10:21:59 -0600 (CST) Subject: [LLVMbugs] [Bug 6523] New: Externally visible global gets wrong name Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6523 Summary: Externally visible global gets wrong name Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com If I build LLVM with g++ and dragonegg with clang++ then I get a link failure because g++ and clang++ disagree over some symbol names: $ clang++ -S -O2 llvm-backend.ii -o - | grep Registry movq $createLinearScanRegisterAllocator, Registry(%rip) $ g++ -S -O2 llvm-backend.ii -o - | grep Registry movq $_ZN4llvm33createLinearScanRegisterAllocatorEv, _ZN4llvm16RegisterRegAlloc8RegistryE(%rip) Reduced testcase follows: namespace std __attribute__ ((__visibility__ ("default"))) { # 202 "/usr/local/include/llvm/OperandTraits.h" 3 4 } namespace llvm { class Pass { }; class FunctionPass : public Pass { }; FunctionPass *createLinearScanRegisterAllocator(); typedef void *(*MachinePassCtor)(); class MachinePassRegistryNode { }; class MachinePassRegistry { MachinePassCtor Default; public: MachinePassRegistryNode *getList() { } void setDefault(MachinePassCtor C) { Default = C; } }; class RegisterRegAlloc : public MachinePassRegistryNode { public: typedef FunctionPass *(*FunctionPassCtor)(); static MachinePassRegistry Registry; static void setDefault(FunctionPassCtor C) { Registry.setDefault((MachinePassCtor)C); } }; } void LazilyInitializeModule(void) { llvm::RegisterRegAlloc::setDefault(llvm::createLinearScanRegisterAllocator); } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Mar 6 10:43:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Mar 2010 10:43:43 -0600 (CST) Subject: [LLVMbugs] [Bug 6524] New: opt -internalize breaks C++ initialization (compiling with clang) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6524 Summary: opt -internalize breaks C++ initialization (compiling with clang) Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P5 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: sveina at gmail.com CC: llvmbugs at cs.uiuc.edu #include int main() { ofstream f; } === Compiling this with clang -c -o works.bc -emit-llvm, it works correctly if then directly llc'd and assembled/linked with gcc. However, if piped through opt -internalize, it segfaults in code called from _init; valgrind reported an access to address 0xE, which sounds to me like something was not dynamically linked which should have been. Any other opt passes work fine, just not -internalize. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Mar 6 11:29:18 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Mar 2010 11:29:18 -0600 (CST) Subject: [LLVMbugs] [Bug 6525] New: possible wrong code bug Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6525 Summary: possible wrong code bug Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu Created an attachment (id=4403) --> (http://llvm.org/bugs/attachment.cgi?id=4403) failure-inducing testcase The -O2 result is definitely the right one. See using r97881 on Ubuntu 9.10 on x86. regehr at john-home:~/volatile/bugs/tmp278$ clang -O2 small.c -o small regehr at john-home:~/volatile/bugs/tmp278$ ./small 0 regehr at john-home:~/volatile/bugs/tmp278$ clang -O3 small.c -o small regehr at john-home:~/volatile/bugs/tmp278$ ./small 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 llvm.org Sat Mar 6 12:01:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Mar 2010 12:01:39 -0600 (CST) Subject: [LLVMbugs] [Bug 6015] Stack Overflow compiling C++ code In-Reply-To: References: Message-ID: <20100306180139.EDE0C2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6015 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Douglas Gregor 2010-03-06 12:01:39 CST --- Anton can't reproduce any more; 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 llvm.org Sat Mar 6 12:48:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Mar 2010 12:48:43 -0600 (CST) Subject: [LLVMbugs] [Bug 6523] Externally visible global gets wrong name In-Reply-To: References: Message-ID: <20100306184843.507922A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6523 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from Chris Lattner 2010-03-06 12:48:42 CST --- This looks like it's the same as PR 6217 but a different directory *** This bug has been marked as a duplicate of bug 6217 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Mar 6 13:30:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Mar 2010 13:30:20 -0600 (CST) Subject: [LLVMbugs] [Bug 6526] New: Optimization bug with clang -O2 (not -O1) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6526 Summary: Optimization bug with clang -O2 (not -O1) Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P5 Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: gonsolo at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4406) --> (http://llvm.org/bugs/attachment.cgi?id=4406) Bitcode that exposes optimization bug The attached bitcode fails when compiled with clang -O2. It runs fine unoptimized and at -O1. I verified the correctness with valgrind with clang++ unoptimized, clang++ -O1 and g++. The error ist: *** glibc detected *** ./opted: free(): invalid pointer: 0x00e797e0 *** ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6[0x910ff1] /lib/tls/i686/cmov/libc.so.6[0x9126f2] /lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0x9157cd] /usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xe466f1] /usr/lib/libstdc++.so.6(_ZdaPv+0x1d)[0xe4674d] /usr/lib/libstdc++.so.6(_ZNSt6locale5_ImplD1Ev+0x7d)[0xde5a8d] /usr/lib/libstdc++.so.6(_ZNSt6localeD1Ev+0x4c)[0xde609c] /usr/lib/libstdc++.so.6(_ZNSt8ios_baseD2Ev+0x61)[0xde3041] ./opted[0x804a7ce] ======= Memory map: ======== 003ab000-003c6000 r-xp 00000000 08:07 64 /lib/ld-2.10.1.so 003c6000-003c7000 r--p 0001a000 08:07 64 /lib/ld-2.10.1.so 003c7000-003c8000 rw-p 0001b000 08:07 64 /lib/ld-2.10.1.so 003ec000-00410000 r-xp 00000000 08:07 144631 /lib/tls/i686/cmov/libm-2.10.1.so 00410000-00411000 r--p 00023000 08:07 144631 /lib/tls/i686/cmov/libm-2.10.1.so 00411000-00412000 rw-p 00024000 08:07 144631 /lib/tls/i686/cmov/libm-2.10.1.so 008a6000-009e4000 r-xp 00000000 08:07 144625 /lib/tls/i686/cmov/libc-2.10.1.so 009e4000-009e5000 ---p 0013e000 08:07 144625 /lib/tls/i686/cmov/libc-2.10.1.so 009e5000-009e7000 r--p 0013e000 08:07 144625 /lib/tls/i686/cmov/libc-2.10.1.so 009e7000-009e8000 rw-p 00140000 08:07 144625 /lib/tls/i686/cmov/libc-2.10.1.so 009e8000-009eb000 rw-p 00000000 00:00 0 00d8e000-00e74000 r-xp 00000000 08:07 235237 /usr/lib/libstdc++.so.6.0.13 00e74000-00e78000 r--p 000e6000 08:07 235237 /usr/lib/libstdc++.so.6.0.13 00e78000-00e79000 rw-p 000ea000 08:07 235237 /usr/lib/libstdc++.so.6.0.13 00e79000-00e80000 rw-p 00000000 00:00 0 00ef5000-00ef6000 r-xp 00000000 00:00 0 [vdso] 00fb5000-00fd1000 r-xp 00000000 08:07 18 /lib/libgcc_s.so.1 00fd1000-00fd2000 r--p 0001b000 08:07 18 /lib/libgcc_s.so.1 00fd2000-00fd3000 rw-p 0001c000 08:07 18 /lib/libgcc_s.so.1 08048000-0804d000 r-xp 00000000 08:07 172256 /home/gonsolo/opted 0804d000-0804e000 r--p 00004000 08:07 172256 /home/gonsolo/opted 0804e000-0804f000 rw-p 00005000 08:07 172256 /home/gonsolo/opted 08bd6000-08bf7000 rw-p 00000000 00:00 0 [heap] b7600000-b7621000 rw-p 00000000 00:00 0 b7621000-b7700000 ---p 00000000 00:00 0 b7795000-b7797000 rw-p 00000000 00:00 0 b77aa000-b77ac000 rw-p 00000000 00:00 0 bfb12000-bfb27000 rw-p 00000000 00:00 0 [stack] Aborted Bugpoint show how to reproduce: *** You can reproduce the problem with: opt bugpoint-reduced-simplified.bc -simplifycfg -domtree -domfrontier -scalarrepl -instcombine -globalopt -ipsccp -deadargelim -instcombine -simplifycfg -basiccg -prune-eh -inline -functionattrs -domtree -domfrontier -scalarrepl -simplify-libcalls -instcombine -jump-threading -simplifycfg -instcombine -tailcallelim -simplifycfg -reassociate -domtree -loops -loopsimplify -domfrontier -loopsimplify -lcssa -loop-rotate -licm -lcssa -loop-unswitch -instcombine -scalar-evolution -loopsimplify -lcssa -iv-users -indvars -loop-deletion -loopsimplify -lcssa -loop-unroll -instcombine -memdep -gvn -memdep -memcpyopt -sccp -instcombine -jump-threading -domtree -memdep -dse -adce -simplifycfg -strip-dead-prototypes -print-used-types -deadtypeelim -constmerge -preverify -domtree -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 llvm.org Sat Mar 6 13:33:06 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Mar 2010 13:33:06 -0600 (CST) Subject: [LLVMbugs] [Bug 5292] postRAscheduler vs. MinGW _alloca In-Reply-To: References: Message-ID: <20100306193306.B28952A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5292 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Anton Korobeynikov 2010-03-06 13:33:06 CST --- Should be fixed in r97884. Please reopen if it's still the 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 llvm.org Sat Mar 6 13:36:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Mar 2010 13:36:46 -0600 (CST) Subject: [LLVMbugs] [Bug 6523] Externally visible global gets wrong name In-Reply-To: References: Message-ID: <20100306193646.BA2C42A6C131@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6523 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|DUPLICATE | --- Comment #3 from Chris Lattner 2010-03-06 13:36:46 CST --- Actually, this isn't a dupe it turns out. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Mar 6 13:38:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Mar 2010 13:38:48 -0600 (CST) Subject: [LLVMbugs] [Bug 6523] Externally visible global gets wrong name In-Reply-To: References: Message-ID: <20100306193848.0EF8E2A6C133@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6523 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #4 from Chris Lattner 2010-03-06 13:38:47 CST --- Fixed here, thanks for the help with the analysis Duncan! http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20100301/028201.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 llvm.org Sat Mar 6 15:37:34 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Mar 2010 15:37:34 -0600 (CST) Subject: [LLVMbugs] [Bug 4138] vmcore recursive type resolution bug In-Reply-To: References: Message-ID: <20100306213734.076AB2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4138 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #11 from Nick Lewycky 2010-03-06 15:37:33 CST --- I'm quite sure this is the same as pr6482 which now has a much smaller testcase. *** This bug has been marked as a duplicate of bug 6482 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Mar 6 17:58:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Mar 2010 17:58:15 -0600 (CST) Subject: [LLVMbugs] [Bug 6527] New: catch reference to incomplete type Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6527 Summary: catch reference to incomplete type Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sorokin at rain.ifmo.ru CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com clang and comeau can't compile this code, but gcc and msvc can. struct T; template void f() { try {} catch(T const &) {} } struct T {}; int main() { f(); return 0; } I don't know is this error of clang or boost. So I report the bug to boost too: https://svn.boost.org/trac/boost/ticket/3983 In any case compatibility with gcc is useful. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Mar 6 18:30:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Mar 2010 18:30:13 -0600 (CST) Subject: [LLVMbugs] [Bug 6528] New: invalid assembly generated with long long on i386 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6528 Summary: invalid assembly generated with long long on i386 Product: new-bugs Version: trunk Platform: PC OS/Version: OpenBSD Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: jsg at openbsd.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4409) --> (http://llvm.org/bugs/attachment.cgi?id=4409) preprocessed file When trying to build several OpenBSD kernel files on i386 with llvm and clang from trunk, assembly is generated that upsets gas, this used to work fine with at least llvm/clang 2.6. "/usr/bin/as" -o ahc_pci.o /tmp/cc-z0wajh.s /tmp/cc-z0wajh.s: Assembler messages: /tmp/cc-z0wajh.s:2120: Error: bignum invalid /tmp/cc-z0wajh.s:2123: Error: bignum invalid /tmp/cc-z0wajh.s:2126: Error: bignum invalid /tmp/cc-z0wajh.s:2129: Error: bignum invalid /tmp/cc-z0wajh.s:2149: Error: bignum invalid /tmp/cc-z0wajh.s:2150: Error: bignum invalid /tmp/cc-z0wajh.s:2152: Error: bignum invalid /tmp/cc-z0wajh.s:2153: Error: bignum invalid /tmp/cc-z0wajh.s:2155: Error: bignum invalid /tmp/cc-z0wajh.s:2156: Error: bignum invalid /tmp/cc-z0wajh.s:2158: Error: bignum invalid /tmp/cc-z0wajh.s:2159: Error: bignum invalid /tmp/cc-z0wajh.s:2161: Error: bignum invalid /tmp/cc-z0wajh.s:2162: Error: bignum invalid /tmp/cc-z0wajh.s:2164: Error: bignum invalid /tmp/cc-z0wajh.s:2165: Error: bignum invalid /tmp/cc-z0wajh.s:2167: Error: bignum invalid /tmp/cc-z0wajh.s:2168: Error: bignum invalid /tmp/cc-z0wajh.s:2170: Error: bignum invalid /tmp/cc-z0wajh.s:2171: Error: bignum invalid /tmp/cc-z0wajh.s:2174: Error: bignum invalid /tmp/cc-z0wajh.s:2234: Error: bignum invalid /tmp/cc-z0wajh.s:2261: Error: bignum invalid /tmp/cc-z0wajh.s:2264: Error: bignum invalid /tmp/cc-z0wajh.s:2267: Error: bignum invalid /tmp/cc-z0wajh.s:2270: Error: bignum invalid /tmp/cc-z0wajh.s:2273: Error: bignum invalid /tmp/cc-z0wajh.s:2275: Error: bignum invalid /tmp/cc-z0wajh.s:2276: Error: bignum invalid /tmp/cc-z0wajh.s:2279: Error: bignum invalid /tmp/cc-z0wajh.s:2282: Error: bignum invalid /tmp/cc-z0wajh.s:2285: Error: bignum invalid /tmp/cc-z0wajh.s:2288: Error: bignum invalid /tmp/cc-z0wajh.s:2291: Error: bignum invalid /tmp/cc-z0wajh.s:2294: Error: bignum invalid /tmp/cc-z0wajh.s:2297: Error: bignum invalid This is lines like .quad -4294967296 GNU assembler version 2.15 (i386-unknown-openbsd4.6) using BFD version 2.15 clang version 1.1 (trunk 97890) Target: i386-unknown-openbsd4.7 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Mar 6 21:59:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Mar 2010 21:59:38 -0600 (CST) Subject: [LLVMbugs] [Bug 6529] New: -g0 should disable debug info Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6529 Summary: -g0 should disable debug info Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu In gcc -g0 disables debug information. In clang it passes -g to "clang -cc1". I found this bug while benchmarking clang. I was surprised it was just a bit faster than 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 llvm.org Sat Mar 6 23:05:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Mar 2010 23:05:48 -0600 (CST) Subject: [LLVMbugs] [Bug 6529] -g0 should disable debug info In-Reply-To: References: Message-ID: <20100307050548.1C0F72A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6529 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Rafael ?vila de Esp?ndola 2010-03-06 23:05:47 CST --- Fixed in r97897. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Mar 6 23:08:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Mar 2010 23:08:00 -0600 (CST) Subject: [LLVMbugs] [Bug 6530] New: Extension: Support platforms with implicit extern "C" system headers Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6530 Summary: Extension: Support platforms with implicit extern "C" system headers Product: clang Version: trunk Platform: PC OS/Version: other Status: NEW Severity: enhancement Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: dgregor at apple.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com GCC has the notion of system headers that are implicitly wrapped in extern "C" blocks, since they were written without regard to C++. Clang may need to support platforms with this requirement in the future, which involves: - Tracking which headers require the implicit extern "C" (already handled by the preprocessor) - Implicitly wrapping extern "C" around these headers when the parser sees them (we aren't doing this) - Allowing C-isms in such headers, e.g., prototype-less functions (which look like zero-parameter functions in C++) can be merged with functions that have prototypes (we aren't doing 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 llvm.org Sat Mar 6 23:11:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Mar 2010 23:11:28 -0600 (CST) Subject: [LLVMbugs] [Bug 6217] boost::shared_ptr miscompile (mangling in implicitly extern c headers) In-Reply-To: References: Message-ID: <20100307051128.7A9B32A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6217 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #25 from Douglas Gregor 2010-03-06 23:11:27 CST --- Fixed in r97899. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Mar 6 23:50:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Mar 2010 23:50:09 -0600 (CST) Subject: [LLVMbugs] [Bug 6294] clang c++ assertion "operator delete missing - EmitDtorEpilogue" In-Reply-To: References: Message-ID: <20100307055009.9CBCF2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6294 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Eli Friedman 2010-03-06 23:50:09 CST --- Fixed in r97900. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Mar 7 06:06:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Mar 2010 06:06:11 -0600 (CST) Subject: [LLVMbugs] [Bug 6531] New: crash with __attribute__ __aligned__ in union (libstdc++ tr1/type_traits) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6531 Summary: crash with __attribute__ __aligned__ in union (libstdc++ tr1/type_traits) Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sorokin at rain.ifmo.ru CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com clang crashes on this code: template struct aligned_storage { union type { unsigned char __data[_Len]; struct __attribute__((__aligned__((_Align)))) { } __align; }; }; clang: /home/ivan/d/llvm/tools/clang/lib/AST/Expr.cpp:1600: ICEDiag CheckICE(const clang::Expr*, clang::ASTContext&): Assertion `!E->isValueDependent() && "Should not see value dependent exprs!"' failed. 0 clang 0x000000000141ceba 1 clang 0x000000000141cd33 2 libpthread.so.0 0x00007f5aef456190 3 libc.so.6 0x00007f5aee75c4b5 gsignal + 53 4 libc.so.6 0x00007f5aee75ff50 abort + 384 5 libc.so.6 0x00007f5aee755481 __assert_fail + 241 6 clang 0x00000000009b8e1d 7 clang 0x00000000009b9d59 8 clang 0x00000000006f0609 9 clang 0x00000000006f29d1 10 clang 0x00000000006f2f88 11 clang 0x00000000006db8e4 12 clang 0x0000000000a47636 13 clang 0x0000000000a3b95b 14 clang 0x0000000000a4889f 15 clang 0x0000000000a498fa 16 clang 0x0000000000a477f7 17 clang 0x0000000000a3b95b 18 clang 0x0000000000a4889f 19 clang 0x0000000000a498fa 20 clang 0x0000000000a477f7 21 clang 0x0000000000a3b95b 22 clang 0x0000000000a60407 23 clang 0x0000000000a60237 24 clang 0x0000000000a5fd63 25 clang 0x0000000000a3828c 26 clang 0x0000000000a32603 27 clang 0x0000000000a31fcd 28 clang 0x00000000006895bb 29 clang 0x00000000004351aa 30 clang 0x0000000000434e38 31 clang 0x000000000041f556 32 clang 0x0000000000408ec7 33 clang 0x000000000040da36 main + 259 34 libc.so.6 0x00007f5aee747abd __libc_start_main + 253 35 clang 0x00000000004079e9 Stack dump: 0. Program arguments: /home/ivan/d/llvm-build/Debug/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name 13.cpp -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir /home/ivan/d/llvm-build/Debug/lib/clang/1.1 -fmessage-length 157 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-XT3UNc.s -x c++ 13.cpp 1. 13.cpp:7:48: current parser token '{' 2. 13.cpp:2:5: parsing struct/union/class body 'aligned_storage' 3. 13.cpp:4:7: parsing struct/union/class body 'aligned_storage::type' clang: error: compiler command failed due to signal 6 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Mar 7 07:16:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Mar 2010 07:16:43 -0600 (CST) Subject: [LLVMbugs] [Bug 6526] Optimization bug with clang -O2 (not -O1) In-Reply-To: References: Message-ID: <20100307131643.8FC582A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6526 gonsolo at gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #7 from gonsolo at gmail.com 2010-03-07 07:16:43 CST --- *** This bug has been marked as a duplicate of bug 6251 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Mar 7 09:19:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Mar 2010 09:19:37 -0600 (CST) Subject: [LLVMbugs] [Bug 6532] New: Dependent name not checked for same-type constraint in conversion-function-id Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6532 Summary: Dependent name not checked for same-type constraint in conversion-function-id Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: schaub-johannes at web.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The Standard requires that (unqualified) lookup in the context of the postfix-expression should find the same type as does a lookup in the scope of the object expression (see 3.4.5[basic.lookup.classref] paragraph 7). Clang does not check this: template struct A { // if we change the typedef to "short", clang // should complain. typedef int foo; operator int() { return 0; } }; template struct B { // this is not found, because B is a dependent base. typedef short foo; }; // makes sure applicable name-lookup // on definition context classifies "foo" // as a type so it matches the syntax. struct TypeNameSugar { typedef int foo; }; template struct C : A, B, TypeNameSugar { void c() { A *p = this; // dependent "p" makes "foo" a dependent name. p->operator foo(); } }; int main() { C().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 llvm.org Sun Mar 7 09:35:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Mar 2010 09:35:53 -0600 (CST) Subject: [LLVMbugs] [Bug 6532] Dependent name not checked for same-type constraint in conversion-function-id In-Reply-To: References: Message-ID: <20100307153553.6DE7E2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6532 Johannes Schaub changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |LATER --- Comment #1 from Johannes Schaub 2010-03-07 09:35:53 CST --- Aww, just looked on the C++ Status page and saw it's a known issue. Wasn't sure i interpreted the stuff right since GCC neither diagnoses. But i guess clang folks know about it - so closing as "Later"! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Mar 7 10:23:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Mar 2010 10:23:33 -0600 (CST) Subject: [LLVMbugs] [Bug 6533] New: SetCC type must be 8-bit integer Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6533 Summary: SetCC type must be 8-bit integer Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu Created an attachment (id=4416) --> (http://llvm.org/bugs/attachment.cgi?id=4416) failure-inducing C code Seen using r97881 on Ubuntu 9.10 on x86. regehr at john-home:~/volatile/bugs/tmp279$ clang -O1 -emit-llvm -S small.c regehr at john-home:~/volatile/bugs/tmp279$ llc small.s llc: X86ISelLowering.cpp:5945: llvm::SDValue llvm::X86TargetLowering::LowerSETCC(llvm::SDValue, llvm::SelectionDAG&): Assertion `Op.getValueType() == MVT::i8 && "SetCC type must be 8-bit integer"' failed. 0 llc 0x08939c58 Stack dump: 0. Program arguments: llc small.s 1. Running pass 'X86 DAG->DAG Instruction Selection' on function '@baz' Aborted -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Mar 7 10:31:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Mar 2010 10:31:59 -0600 (CST) Subject: [LLVMbugs] [Bug 6487] ice: Cannot create empty or backwards range In-Reply-To: References: Message-ID: <20100307163159.2DF772A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6487 John Regehr changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WORKSFORME -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Mar 7 12:00:12 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Mar 2010 12:00:12 -0600 (CST) Subject: [LLVMbugs] [Bug 6534] New: clang does not support -Wno-deprecated Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6534 Summary: clang does not support -Wno-deprecated Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sorokin at rain.ifmo.ru CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Mar 7 12:38:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Mar 2010 12:38:19 -0600 (CST) Subject: [LLVMbugs] [Bug 6534] clang does not support -Wno-deprecated In-Reply-To: References: Message-ID: <20100307183819.318D02A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6534 Ivan Sorokin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Ivan Sorokin 2010-03-07 12:38:18 CST --- http://developer.apple.com/mac/library/documentation/DeveloperTools/gcc-4.0.1/gcc/C_002b_002b-Dialect-Options.html says that it "Do not warn about usage of deprecated features". I've tried several those features and this switch seems to has no 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 llvm.org Sun Mar 7 12:50:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Mar 2010 12:50:47 -0600 (CST) Subject: [LLVMbugs] [Bug 6534] clang does not support -Wno-deprecated In-Reply-To: References: Message-ID: <20100307185047.75F622A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6534 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |FIXED --- Comment #4 from Chris Lattner 2010-03-07 12:50:47 CST --- Implemented in r97919 I hope. Please verify, I have no way to know if it fixes the case you care about. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Mar 7 12:56:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Mar 2010 12:56:07 -0600 (CST) Subject: [LLVMbugs] [Bug 6535] New: "relocation R_X86_64_PC32 against undefined symbol" building C++ shared libraries Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6535 Summary: "relocation R_X86_64_PC32 against undefined symbol" building C++ shared libraries Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sorokin at rain.ifmo.ru CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=4418) --> (http://llvm.org/bugs/attachment.cgi?id=4418) fmt.cpp clang++ -o fmt.o -c -fvisibility-inlines-hidden -fvisibility=hidden -O3 -fPIC fmt.cpp clang++ -o libmrt.so -shared fmt.o -lexpat -lz /usr/bin/ld: fmt.o: relocation R_X86_64_PC32 against undefined symbol `vtable for std::exception@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status clang: error: linker command failed with exit code 1 (use -v to see invocation) g++ works without error -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Mar 7 12:57:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Mar 2010 12:57:25 -0600 (CST) Subject: [LLVMbugs] [Bug 6535] "relocation R_X86_64_PC32 against undefined symbol" building C++ shared libraries In-Reply-To: References: Message-ID: <20100307185725.50A9C2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6535 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from Chris Lattner 2010-03-07 12:57:25 CST --- *** This bug has been marked as a duplicate of bug 5835 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Mar 7 15:56:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Mar 2010 15:56:47 -0600 (CST) Subject: [LLVMbugs] [Bug 6536] New: C++ scope checking too aggressive with struct with trivial constructor Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6536 Summary: C++ scope checking too aggressive with struct with trivial constructor Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Blocks: 5511 Testcase: struct A {}; void a() { goto out; A x; out: return; } gcc accepts this, clang does not; I'm pretty sure it's valid. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Mar 7 16:50:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Mar 2010 16:50:38 -0600 (CST) Subject: [LLVMbugs] [Bug 6537] New: Assertion failure in llvm::checkType: Ty && "Invalid GetElementPtrInst indices for type!" Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6537 Summary: Assertion failure in llvm::checkType: Ty && "Invalid GetElementPtrInst indices for type!" Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: josh at joshtriplett.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4420) --> (http://llvm.org/bugs/attachment.cgi?id=4420) Preprocessed source to demonstrate assertion failure I tried clang on one of my projects, and got an assertion failure. I preprocessed the source and reduced to the minimal command line needed: ~/src/psas/event-driven-fc$ /usr/bin/../lib/clang/1.0/clang-cc -S -o /dev/null sim.i clang-cc: /home/arthur/clang/clang-2.6/llvm-2.6/include/llvm/Instructions.h:368: const llvm::Type* llvm::checkType(const llvm::Type*): Assertion `Ty && "Invalid GetElementPtrInst indices for type!"' failed. 0 clang-cc 0x000000000124122f 1 clang-cc 0x0000000001241a3d 2 libpthread.so.0 0x00007f7ba477b990 3 libc.so.6 0x00007f7ba3892f45 gsignal + 53 4 libc.so.6 0x00007f7ba3895d80 abort + 384 5 libc.so.6 0x00007f7ba388c08a __assert_fail + 234 6 clang-cc 0x00000000004f111c 7 clang-cc 0x00000000004f4027 8 clang-cc 0x00000000004fc9da 9 clang-cc 0x00000000004fdacd 10 clang-cc 0x00000000004fe402 11 clang-cc 0x00000000004f1666 12 clang-cc 0x00000000004fb525 13 clang-cc 0x00000000004fca6e 14 clang-cc 0x00000000004fdacd 15 clang-cc 0x00000000004fe402 16 clang-cc 0x00000000004f1666 17 clang-cc 0x00000000004fb525 18 clang-cc 0x00000000004fc89f 19 clang-cc 0x00000000004fdacd 20 clang-cc 0x00000000004fe402 21 clang-cc 0x00000000004f1666 22 clang-cc 0x00000000004f6858 23 clang-cc 0x00000000004f8121 24 clang-cc 0x00000000004fbf34 25 clang-cc 0x00000000004fdaed 26 clang-cc 0x00000000004fe402 27 clang-cc 0x0000000000543a20 28 clang-cc 0x0000000000549020 29 clang-cc 0x000000000054935b 30 clang-cc 0x0000000000546e8a 31 clang-cc 0x000000000054e5da 32 clang-cc 0x00000000004c750c 33 clang-cc 0x00000000004c7c35 34 clang-cc 0x00000000004c7d98 35 clang-cc 0x00000000004c8091 36 clang-cc 0x0000000000423bc7 37 clang-cc 0x000000000060ae04 38 clang-cc 0x000000000040dc0a 39 clang-cc 0x000000000041103e main + 6014 40 libc.so.6 0x00007f7ba387fabd __libc_start_main + 253 41 clang-cc 0x000000000040b3f9 Stack dump: 0. Program arguments: /usr/bin/../lib/clang/1.0/clang-cc -S -o /dev/null sim.i 1. parser at end of file 2. Per-file LLVM IR generation 3. sim.c:181:1: LLVM IR generation of compound statement ('{}') Aborted Preprocessed source 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 llvm.org Sun Mar 7 17:19:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Mar 2010 17:19:04 -0600 (CST) Subject: [LLVMbugs] [Bug 6537] Assertion failure in llvm::checkType: Ty && "Invalid GetElementPtrInst indices for type!" In-Reply-To: References: Message-ID: <20100307231904.423452A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6537 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #2 from Chris Lattner 2010-03-07 17:19:03 CST --- Hi Josh, Please try clang mainline, we're about to branch for 2.7, so it's in good shape and much has been fixed since 2.6. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Mar 7 17:19:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Mar 2010 17:19:25 -0600 (CST) Subject: [LLVMbugs] [Bug 6483] Assertion failure (Expected a direct reference binding!) with boost In-Reply-To: References: Message-ID: <20100307231925.D9CF72A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6483 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Douglas Gregor 2010-03-07 17:19:25 CST --- Fixed in r97922. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Mar 7 17:25:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Mar 2010 17:25:11 -0600 (CST) Subject: [LLVMbugs] [Bug 6072] Fail to resolve overloaded member function name when target type is base class member pointer In-Reply-To: References: Message-ID: <20100307232511.67A002A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6072 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-03-07 17:25:11 CST --- Fixed in r97923. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Mar 7 17:27:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Mar 2010 17:27:04 -0600 (CST) Subject: [LLVMbugs] [Bug 6463] crash in clang::Type::getTypeClass() In-Reply-To: References: Message-ID: <20100307232704.89B012A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6463 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2010-03-07 17:27:03 CST --- Fixed in r97924. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Mar 7 17:30:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Mar 2010 17:30:16 -0600 (CST) Subject: [LLVMbugs] [Bug 6527] catch reference to incomplete type (boost::signals2) In-Reply-To: References: Message-ID: <20100307233016.CF7D52A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6527 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2010-03-07 17:30:16 CST --- Definitely an error in Boost, but since GCC supports this I've downgraded the error to a warning. Fixed in r97925. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Mar 7 19:43:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Mar 2010 19:43:13 -0600 (CST) Subject: [LLVMbugs] [Bug 6531] [template dependent attr] crash with __attribute__ __aligned__ in union (libstdc++ tr1/type_traits) In-Reply-To: References: Message-ID: <20100308014313.B24872A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6531 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Douglas Gregor 2010-03-07 19:43:13 CST --- *** This bug has been marked as a duplicate of bug 6322 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Mar 7 19:53:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Mar 2010 19:53:29 -0600 (CST) Subject: [LLVMbugs] [Bug 6538] New: Undeclared template names in base class lists cause parse explosions Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6538 Summary: Undeclared template names in base class lists cause parse explosions Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rideau3 at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com coppro at overthere:~$ cat output.cpp struct foo { }; template struct bar : public undeclared { }; struct baz : public foo { }; coppro at overthere:~$ clang output.cpp output.cpp:6:14: error: unknown template name 'undeclared' : public undeclared ^ output.cpp:6:40: error: expected '{' after base class list : public undeclared ^ output.cpp:6:40: error: expected ';' after struct : public undeclared ^ ; output.cpp:6:40: error: expected unqualified-id clang: DeclBase.cpp:444: void clang::Decl::CheckAccessDeclContext() const: Assertion `Access != AS_none && "Access specifier is AS_none inside a record decl"' failed. 0 clang 0x0936e5c6 1 clang 0x0936e43b 2 0x00fcd400 __kernel_sigreturn + 0 3 libc.so.6 0x00d81932 abort + 386 4 libc.so.6 0x00d77648 __assert_fail + 248 5 clang 0x085c203c 6 clang 0x080b8070 7 clang 0x08469ebf 8 clang 0x08311bdc 9 clang 0x0866d304 10 clang 0x08661517 11 clang 0x08658429 12 clang 0x0865885b 13 clang 0x0865820e 14 clang 0x08657adb 15 clang 0x082bff26 16 clang 0x0807462e 17 clang 0x080742c1 18 clang 0x080600d9 19 clang 0x0804e724 20 clang 0x08053571 main + 267 21 libc.so.6 0x00d6ab56 __libc_start_main + 230 22 clang 0x0804d2b1 Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple i386-pc-linux-gnu -S -disable-free -main-file-name output.cpp -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4 -resource-dir /usr/local/lib/clang/1.1 -fmessage-length 167 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-pQ2Cgw.s -x c++ output.cpp 1. output.cpp:9:14: current parser token ':' clang: error: compiler command failed due to signal 6 (use -v to see invocation) coppro at overthere:~$ -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Mar 7 20:52:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Mar 2010 20:52:28 -0600 (CST) Subject: [LLVMbugs] [Bug 6536] C++ scope checking too aggressive with struct with trivial constructor In-Reply-To: References: Message-ID: <20100308025228.4322C2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6536 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Douglas Gregor 2010-03-07 20:52:27 CST --- (In reply to comment #2) > It only gets rejected if you compile it as c++. That said, I think this is a > AST construction bug, the AST looks like this: > > void a() (CompoundStmt 0x1036181c0 > (GotoStmt 0x1036180a0 'out':0x103618070) > (DeclStmt 0x103617050 > 0x1036180f0 "struct A x = > (CXXConstructExpr 0x103618160 'struct A''void (void)')" > (LabelStmt 0x103618070 'out' > (ReturnStmt 0x1036181a0 ))) > > > I'm pretty sure that x should not be initialized. Apparently, it should be initialized in C++0x but not in C++98/03! In C++0x, it appears that we do have an initializer (which calls the trivial default constructor), but that constructor doesn't actually do anything. Fixed for C++98/03 in r97928. Fixing it for '0x isn't a priority now, but I've left a FIXME there as a reminder. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Mar 7 21:03:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Mar 2010 21:03:08 -0600 (CST) Subject: [LLVMbugs] [Bug 6320] Building optimized clang with (gcc built) clang results in link error In-Reply-To: References: Message-ID: <20100308030308.508CF2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6320 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #1 from Douglas Gregor 2010-03-07 21:03:07 CST --- We recently fixed the undefined destructors problem when self-hosting Clang on Linux. Please try again and re-open this bug if it's still broken for you. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 8 01:52:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 01:52:53 -0600 (CST) Subject: [LLVMbugs] [Bug 6539] New: x86 asm earlyclobber not respected Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6539 Summary: x86 asm earlyclobber not respected Product: libraries Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Register Allocator AssignedTo: unassignedbugs at nondot.org ReportedBy: astrange at ithinksw.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4422) --> (http://llvm.org/bugs/attachment.cgi?id=4422) unminimized source Using checker-236 and > ~/checker-236/bin/clang -O3 -mdynamic-no-pic -m32 -fomit-frame-pointer -S cabac_residual.i the first inline asm compiled has its first input and output both assigned to eax: _decode_cabac_residual_internal: ... LBB1_6: ... ## InlineAsm Start movl 4(%edi), %esi movl 0(%edi), %ebx movzbl (%eax) , %eax This is compiled from: static inline int get_cabac_inline(CABACContext *c, uint8_t *const state) { int bit; asm volatile ( "movl 4(%2), %%esi \n\t" "movl 0(%2), %%ebx \n\t" "movzbl (%1) , %0 \n\t" ... : "=&a" (bit) : "r" (state), "r" (c) : "%ecx", "%ebx", "%edx", "%esi", "memory"); bit is an earlyclobber, so it should be assigned eax and nothing else should. This only seems to happen when inlined, so I was unable to minimize it very far. This causes ffmpeg (and therefore anything else including it) to miscompile and crash on x86-32 in the H.264 decoder. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 8 03:37:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 03:37:11 -0600 (CST) Subject: [LLVMbugs] [Bug 6540] New: make check fails as ENABLE_SHARED is not set at all. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6540 Summary: make check fails as ENABLE_SHARED is not set at all. Product: Build scripts Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: cmake AssignedTo: unassignedbugs at nondot.org ReportedBy: grosser at fim.uni-passau.de CC: llvmbugs at cs.uiuc.edu Executing "make check" in my build directory fails with this: ------------------------------------------------------------------------------- Running LLVM regression tests Traceback (most recent call last): File "/home/grosser/Projekte/llvm/git/utils/lit/lit.py", line 5, in lit.main() File "/home/grosser/Projekte/llvm/git/utils/lit/lit/lit.py", line 446, in main testSuiteCache, localConfigCache)[1]) File "/home/grosser/Projekte/llvm/git/utils/lit/lit/lit.py", line 281, in getTestsInSuite testSuiteCache, localConfigCache) File "/home/grosser/Projekte/llvm/git/utils/lit/lit/lit.py", line 230, in getTests ts,path_in_suite = getTestSuite(path, litConfig, testSuiteCache) File "/home/grosser/Projekte/llvm/git/utils/lit/lit/lit.py", line 199, in getTestSuite ts, relative = search(item) File "/home/grosser/Projekte/llvm/git/utils/lit/lit/lit.py", line 183, in search cache[path] = res = search1(path) File "/home/grosser/Projekte/llvm/git/utils/lit/lit/lit.py", line 174, in search1 cfg = TestingConfig.frompath(cfgpath, None, litConfig, mustExist = True) File "/home/grosser/Projekte/llvm/git/utils/lit/lit/TestingConfig.py", line 43, in frompath exec f in cfg_globals File "/home/grosser/Projekte/llvm/build/test/Unit/lit.site.cfg", line 8 config.enable_shared = @ENABLE_SHARED@ ^ SyntaxError: invalid syntax gmake[3]: *** [test/CMakeFiles/check] Error 1 gmake[2]: *** [test/CMakeFiles/check.dir/all] Error 2 gmake[1]: *** [test/CMakeFiles/check.dir/rule] Error 2 gmake: *** [check] Error 2 ------------------------------------------------------------------------------- When config.enable_shared was introduced CMAKE was probably forgotten. Here the interesting change: -------------------- https://llvm.org/svn/llvm-project/llvm/trunk at 97119 Author: Jeffrey Yasskin Date: Thu Feb 25 06:34:33 2010 +0000 Try r96559 for the third time. This time the shared library is only built if --enable-shared is passed to configure. -------------------- -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 8 04:27:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 04:27:11 -0600 (CST) Subject: [LLVMbugs] [Bug 6541] New: clang doesn't pick up architecture dependent headers Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6541 Summary: clang doesn't pick up architecture dependent headers Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: thebeing+llvm at halbordnung.de CC: llvmbugs at cs.uiuc.edu On my Debian 64bit system, some architecture depenent headers live in /usr/include/x86_64-linux-gnu/. While gcc picks those up by default (no "-I"-flag needed), clang doesn't and it would be super nice if it did? Cheers Niels -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 8 05:20:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 05:20:40 -0600 (CST) Subject: [LLVMbugs] [Bug 6542] New: Add support for __gcc_tdiag__ format attribute Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6542 Summary: Add support for __gcc_tdiag__ format attribute Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu GCC makes use of the __gcc_tdiag__ format attribute in its various warning and error output routines. When compiling dragonegg with clang++, this results in lots of warnings like this: 'format' attribute argument not supported: __gcc_tdiag__ extern bool warning (int, const char *, ...) ATTRIBUTE_GCC_DIAG(2,3); This is annoying, because vast numbers of these warnings are output. The same thing happens when compiling GCC with clang. It would be great if clang could recognize this format attribute. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 8 06:23:32 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 06:23:32 -0600 (CST) Subject: [LLVMbugs] [Bug 6543] New: ARM JIT CodeGen asserts while jiting java.awt.EventDispatchThread::pumpOneEventForFilters Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6543 Summary: ARM JIT CodeGen asserts while jiting java.awt.EventDispatchThread::pumpOneEventForFilters Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: xerxes at zafena.se CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4424) --> (http://llvm.org/bugs/attachment.cgi?id=4424) testcase fdumpmain.bc to be JIT codegen with lli on arm Testcase running on ARM linux : lli < fdumpmain.bc lli: /media/disk/llvm/lib/Target/ARM/ARMJITInfo.h:142: void llvm::ARMJITInfo::addJumpTableBaseAddr(unsigned int, intptr_t): Assertion `JTI < JumpTableId2AddrMap.size()' failed. 0 libLLVM-2.7svn.so 0x408bd7a0 Stack dump: 0. Program arguments: lli 1. Running pass 'ARM Machine Code Emitter' on function '@"java.awt.EventDispatchThread::pumpOneEventForFilters"' Aborted JTI are 23 and JumpTableId2AddrMap.size are 12 when hitting the assert using the testcase above. GDB output when jiting the function java.awt.EventDispatchThread::pumpOneEventForFilters using OpenJDK Icedtea6 Shark JIT on ARM gnu-eabi-linux. 627 !b java.awt.EventDispatchThread::pumpOneEventForFilters (244 bytes) XXX JTI 24 JumpTableId2AddrMap.size 12 [Switching to Thread 0x67eaa490 (LWP 30820)] Breakpoint 2, emitInlineJumpTable (this=0xbf260, JTIndex=36) at /media/disk/llvm/lib/Target/ARM/ARMJITInfo.h:146 146 assert(JTI < JumpTableId2AddrMap.size()); Current language: auto; currently c++ (gdb) bt #0 emitInlineJumpTable (this=0xbf260, JTIndex=36) at /media/disk/llvm/lib/Target/ARM/ARMJITInfo.h:146 #1 0x409a12d8 in emitInstruction (this=0xbf260, MI=@0x27c6170) at /media/disk/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:347 #2 0x409a1ae0 in runOnMachineFunction (this=0xbf260, MF=@0x2713118) at /media/disk/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:196 #3 0x40adac00 in llvm::MachineFunctionPass::runOnFunction (this=0xbf260, F=) at /media/disk/llvm/lib/CodeGen/MachineFunctionPass.cpp:27 #4 0x40c48624 in llvm::FPPassManager::runOnFunction (this=0x9dea8, F=@0x2724208) at /media/disk/llvm/lib/VMCore/PassManager.cpp:1350 #5 0x40c487bc in llvm::FunctionPassManagerImpl::run (this=0x9d698, F=@0x2724208) at /media/disk/llvm/lib/VMCore/PassManager.cpp:1301 #6 0x40c48a20 in llvm::FunctionPassManager::run (this=0x9c750, F=@0x2724208) at /media/disk/llvm/lib/VMCore/PassManager.cpp:1231 #7 0x40d22820 in llvm::JIT::runJITOnFunctionUnlocked (this=0x9cfc8, F=0x2910730, locked=@0x29106e8) at /media/disk/llvm/lib/ExecutionEngine/JIT/JIT.cpp:631 #8 0x40d233f4 in llvm::JIT::getPointerToFunction (this=0x9cfc8, F=0x2724208) at /media/disk/llvm/lib/ExecutionEngine/JIT/JIT.cpp:683 #9 0x40495ea4 in SharkCompiler::generate_native_code (this=0x7cde8, entry=0x415fecc0, function=0x2724208, name=0xbfc10 "java.awt.EventDispatchThread::pumpOneEventForFilters") at /media/disk/icedtea6-shark-shared/openjdk/hotspot/src/share/vm/shark/sharkCompiler.cpp:276 #10 0x404964b8 in SharkCompiler::compile_method (this=0x7cde8, env=0x67ea9b48, target=0xd4248, entry_bci=-1) at /media/disk/icedtea6-shark-shared/openjdk/hotspot/src/share/vm/shark/sharkCompiler.cpp:173 #11 0x40295fcc in CompileBroker::invoke_compiler_on_method (task=0xc38f0) at /media/disk/icedtea6-shark-shared/openjdk/hotspot/src/share/vm/compiler/compileBroker.cpp:1545 #12 0x402965a0 in CompileBroker::compiler_thread_loop () at /media/disk/icedtea6-shark-shared/openjdk/hotspot/src/share/vm/compiler/compileBroker.cpp:1397 #13 0x404d0118 in JavaThread::thread_main_inner (this=0xbf9c0) at /media/disk/icedtea6-shark-shared/openjdk/hotspot/src/share/vm/runtime/thread.cpp:1380 #14 0x40436258 in java_start (thread=0xbf9c0) at /media/disk/icedtea6-shark-shared/openjdk/hotspot/src/os/linux/vm/os_linux.cpp:786 #15 0x4005f30c in start_thread () from /lib/vfp/libpthread.so.0 #16 0x40156d38 in clone () from /lib/vfp/libc.so.6 Backtrace stopped: frame did not save the PC The attached testcase fdumpmain.bc was generated by running F->dump() on frame #8. The testcase have an added dummy main stub that allocates some memory and executes the function inorder to make lli accept the ir. the testcase are not expected to run using lli only expected to pass getPointerToFunction without asserting during JIT codegeneration. Since bugpoint/lli cant be run with an option to only run the JIT code generation prevents me from generating a bugpoint-reduced-simplified.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 llvm.org Mon Mar 8 06:46:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 06:46:20 -0600 (CST) Subject: [LLVMbugs] [Bug 6544] New: LLVMSystem cant use ADT/StringMap due to circular dependency with LLVMSupport Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6544 Summary: LLVMSystem cant use ADT/StringMap due to circular dependency with LLVMSupport Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Archive library AssignedTo: unassignedbugs at nondot.org ReportedBy: xerxes at zafena.se CC: llvmbugs at cs.uiuc.edu LLVMSystem cant use ADT/StringMap since ADT/StingMap are part of LLVMSupport and that would create a circular dependency. LLVMSystem needs to use ADT/StringMap in order to add implemenations for sys::getHostCPUFeatures(StringMap &Features) into llvm/lib/System/Host.cpp The correct solution would be to extract all ADT parts from LLVMSupport and make a new library LLVMADT that can be used by both LLVMSystem and LLVMSupport. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 8 07:08:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 07:08:15 -0600 (CST) Subject: [LLVMbugs] [Bug 6545] New: Crashes of clang during compilation/static-analyzer of mupen64plus 1.99.3 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6545 Summary: Crashes of clang during compilation/static-analyzer of mupen64plus 1.99.3 Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: preprocessor AssignedTo: unassignedclangbugs at nondot.org ReportedBy: robert.wohlrab at gmx.de CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4426) --> (http://llvm.org/bugs/attachment.cgi?id=4426) files which caused crashes Path: . URL: http://llvm.org/svn/llvm-project/llvm/trunk Repository Root: http://llvm.org/svn/llvm-project Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8 Revision: 97939 Node Kind: directory Schedule: normal Last Changed Author: johannes Last Changed Rev: 97939 Last Changed Date: 2010-03-08 06:39:50 +0100 (Mon, 08 Mar 2010) Path: tools/clang URL: http://llvm.org/svn/llvm-project/cfe/trunk Repository Root: http://llvm.org/svn/llvm-project Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8 Revision: 97939 Node Kind: directory Schedule: normal Last Changed Author: dgregor Last Changed Rev: 97930 Last Changed Date: 2010-03-08 03:49:35 +0100 (Mon, 08 Mar 2010) Compiled on up-to-date Debian sid amd64 on "Mon, 08 Mar 2010 13:38:28 +0100" -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 8 10:10:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 10:10:01 -0600 (CST) Subject: [LLVMbugs] [Bug 6546] New: Assertion `L->isLCSSAForm()' failed with loop-rotate Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6546 Summary: Assertion `L->isLCSSAForm()' failed with loop-rotate Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4430) --> (http://llvm.org/bugs/attachment.cgi?id=4430) testcase .ll $ opt -loop-rotate lcssa.bc -disable-output opt: llvm/lib/Transforms/Utils/LCSSA.cpp:167: virtual bool::LCSSA::runOnLoop(llvm::Loop*, llvm::LPPassManager&): Assertion `L->isLCSSAForm()' 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 llvm.org Mon Mar 8 10:36:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 10:36:28 -0600 (CST) Subject: [LLVMbugs] [Bug 6544] LLVMSystem cant use ADT/StringMap due to circular dependency with LLVMSupport In-Reply-To: References: Message-ID: <20100308163628.BE31E2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6544 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Chris Lattner 2010-03-08 10:36:28 CST --- libsystem is supposed to be low level enough to not need this. If it needs to return something like this, it can just return either a pointer into a static array (with keys/values) or can fill in a vector. It doesn't need to return a map datastructure, the client can do that. A more elegant API can be vended in libsupport if you desire that builds on the simple API in libsystem. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 8 13:18:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 13:18:13 -0600 (CST) Subject: [LLVMbugs] [Bug 6547] New: return of vector makes llc assert Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6547 Summary: return of vector makes llc assert Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: kalle.raiskila at nokia.com CC: llvmbugs at cs.uiuc.edu Returning a vector that doesn't fit to the ABI-specified return vectors makes llc catch an assert: Compiling this on ARM %0 = type <5 x float> define %0 @cAdd_9( ) { ret %0 undef } gives error: Return operand #4 has unhandled type i32UNREACHABLE executed at .../llvm/lib/CodeGen/SelectionDAG/CallingConvLower.cpp:109! returning just 4 floats works for ARM. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 8 13:29:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 13:29:01 -0600 (CST) Subject: [LLVMbugs] [Bug 6537] Assertion failure in llvm::checkType: Ty && "Invalid GetElementPtrInst indices for type!" In-Reply-To: References: Message-ID: <20100308192901.740152A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6537 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #4 from Chris Lattner 2010-03-08 13:29:00 CST --- Wow, you're right, it isn't fixed. Here's a reduced testcase: typedef union vec3 { struct { double x, y, z; }; double component[3]; } vec3; vec3 vec_noise(vec3 value) { return (vec3) {{ .x = value.x, .y = value.y, .z = value.z, }}; } Thanks for filing 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 llvm.org Mon Mar 8 13:35:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 13:35:39 -0600 (CST) Subject: [LLVMbugs] [Bug 5687] Kaleidoscope tutorial code doesn't build with OCaml 3.11.1 In-Reply-To: References: Message-ID: <20100308193539.824012A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5687 Erick Tryzelaar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |idadesub at users.sourceforge. | |net Resolution| |FIXED --- Comment #1 from Erick Tryzelaar 2010-03-08 13:35:39 CST --- Fixed in r97965! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 8 13:54:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 13:54:15 -0600 (CST) Subject: [LLVMbugs] [Bug 6548] New: DenseSet::iterator doesn't have std iterator traits Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6548 Summary: DenseSet::iterator doesn't have std iterator traits Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Core LLVM classes AssignedTo: unassignedbugs at nondot.org ReportedBy: alenhar2 at uiuc.edu CC: llvmbugs at cs.uiuc.edu DenseMap has difference_type, iterator_category, etc, but DenseSet doesn't. This prevents using set iterators with calls, such as insert, on std containers. Something like the below fixes this (any chance this can be fixed for 2.7?): --- include/llvm/ADT/DenseSet.h (revision 97942) +++ include/llvm/ADT/DenseSet.h (working copy) @@ -55,6 +55,13 @@ class Iterator { typename MapTy::iterator I; public: + typedef typename MapTy::iterator::difference_type difference_type; + typedef ValueT value_type; + typedef value_type *pointer; + typedef value_type &reference; + typedef std::forward_iterator_tag iterator_category; + + Iterator(const typename MapTy::iterator &i) : I(i) {} ValueT& operator*() { return I->first; } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 8 14:24:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 14:24:11 -0600 (CST) Subject: [LLVMbugs] [Bug 6547] return of vector makes llc assert In-Reply-To: References: Message-ID: <20100308202411.9A9502A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6547 Kalle Raiskila changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from Kalle Raiskila 2010-03-08 14:24:11 CST --- So it is... *** 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 llvm.org Mon Mar 8 14:33:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 14:33:30 -0600 (CST) Subject: [LLVMbugs] [Bug 6549] New: DenseSet and DenseMap could use a swap function Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6549 Summary: DenseSet and DenseMap could use a swap function Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P Component: Core LLVM classes AssignedTo: unassignedbugs at nondot.org ReportedBy: alenhar2 at uiuc.edu CC: llvmbugs at cs.uiuc.edu DenseSet::swap and DenseMap::swap don't exist, which makes it hard to use the classes in situations which require efficiently moving map or set contents between objects. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 8 14:46:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 14:46:29 -0600 (CST) Subject: [LLVMbugs] [Bug 6549] DenseSet and DenseMap could use a swap function In-Reply-To: References: Message-ID: <20100308204629.892D32A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6549 Andrew Lenharth changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Andrew Lenharth 2010-03-08 14:46:29 CST --- added in r97974 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 8 14:46:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 14:46:36 -0600 (CST) Subject: [LLVMbugs] [Bug 6548] DenseSet::iterator doesn't have std iterator traits In-Reply-To: References: Message-ID: <20100308204636.177572A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6548 Andrew Lenharth changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Andrew Lenharth 2010-03-08 14:46:35 CST --- added in r97974 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 8 16:42:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 16:42:30 -0600 (CST) Subject: [LLVMbugs] [Bug 6550] New: linker error for std::istream::seekg Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6550 Summary: linker error for std::istream::seekg Product: clang Version: trunk Platform: All OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: tim.dawborn at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Upon trying to use seekg on an istream clang++ produces a linker error. $ cat test.cc #include #include int main(void) { std::ifstream in("/etc/group", std::ios::in); in.seekg(0, std::ifstream::beg); in.close(); return 0; } $ clang++ -o test test.cc /tmp/cc-li0XV7.o: In function `main': test.cc:(.text+0xb7): undefined reference to `std::basic_istream >::seekg(long, std::_Ios_Seekdir)' collect2: ld returned 1 exit status clang: error: linker command failed with exit code 1 (use -v to see invocation) $ -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 8 17:53:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 17:53:54 -0600 (CST) Subject: [LLVMbugs] [Bug 6336] SelectionDAG does not handle scalar second operand to sign_extend_inreg correctly In-Reply-To: References: Message-ID: <20100308235354.99C862A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6336 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #4 from Dan Gohman 2010-03-08 17:53:54 CST --- This patch isn't right. Vector SIGN_EXTEND_INREG is expected to have a vector type for the second operand. A while ago I did try to change it to use a scalar type here, and this change simplified some of the code, however it was problematic because Legalize decides what to do by looking at this type, and on most targets, it needs to do different things for vector and scalar. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 8 18:34:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 18:34:04 -0600 (CST) Subject: [LLVMbugs] [Bug 6551] New: C++ constructors not completely eliminated from function-level static constants Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6551 Summary: C++ constructors not completely eliminated from function-level static constants Product: libraries Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: stoklund at 2pi.dk CC: llvmbugs at cs.uiuc.edu llvm-g++ compiles this into a nice constant table: #include typedef std::pair P; static const P table[] = { P(1,2), P(3,4), P(5,6) }; P f(int n) { return table[n]; } Produces the table: .section __TEXT,__const .align 4 __ZL5table: .long 1 .long 2 .long 3 .long 4 .long 5 .long 6 If the static const table is moved into the function P f(int n) { static const P table[] = { P(1,2), P(3,4), P(5,6) }; return table[n]; } We get horrible dynamic initialization: Llabel3: movl %edi, %ebx cmpb $0, __ZGVZ1fiE5table(%rip) jne LBB1_3 leaq __ZGVZ1fiE5table(%rip), %rdi callq ___cxa_guard_acquire testl %eax, %eax je LBB1_3 leaq __ZGVZ1fiE5table(%rip), %rdi movl $1, __ZZ1fiE5table(%rip) movl $2, __ZZ1fiE5table+4(%rip) movl $3, __ZZ1fiE5table+8(%rip) movl $4, __ZZ1fiE5table+12(%rip) movl $5, __ZZ1fiE5table+16(%rip) movl $6, __ZZ1fiE5table+20(%rip) callq ___cxa_guard_release -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 8 18:45:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 18:45:37 -0600 (CST) Subject: [LLVMbugs] [Bug 6552] New: Assigning fp to a variable results in "Couldn't allocate output reg for constraint '{fp}'!" Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6552 Summary: Assigning fp to a variable results in "Couldn't allocate output reg for constraint '{fp}'!" Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: john at bass-software.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4433) --> (http://llvm.org/bugs/attachment.cgi?id=4433) .ll file which results in a "Couldn't allocate output reg for constraint '{fp}'!" error when compiled to object code. Following C program compiled with llvm-gcc ("--target=arm-unknown-eabi --with-arch=armv4"): --8<-- extern void bar(unsigned int fp); void foo(void) { register unsigned int fp __asm ("fp"); bar(fp); } --8<-- results in following .ll (in attachement as well): --8<-- target datalayout = "e-p:32:32:32-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-n32" target triple = "armv4-unknown-eabi" define arm_aapcscc void @foo() nounwind { entry: %fp = alloca i32 ; [#uses=0] %"alloca point" = bitcast i32 0 to i32 ; [#uses=0] %0 = call i32 asm "", "={fp}"() nounwind ; [#uses=1] call arm_aapcscc void @bar(i32 %0) nounwind br label %return return: ; preds = %entry ret void } --8<-- which results in a "Couldn't allocate output reg for constraint '{fp}'!" error when compiled to object 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 llvm.org Mon Mar 8 19:55:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 19:55:00 -0600 (CST) Subject: [LLVMbugs] [Bug 6546] Assertion `L->isLCSSAForm()' failed with loop-rotate In-Reply-To: References: Message-ID: <20100309015500.4CD6D2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6546 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Dan Gohman 2010-03-08 19:54:59 CST --- Chris convinced me that LCSSA shouldn't try to transform uses in unreachable blocks. I updated the isLCSSA function to be less strict instead. Fixed on trunk in 98033. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 8 21:04:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 21:04:16 -0600 (CST) Subject: [LLVMbugs] [Bug 6429] x86_64 JIT emits PC-relative relocation in non-PC-relative instruction In-Reply-To: References: Message-ID: <20100309030416.C84342A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6429 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #13 from Dan Gohman 2010-03-08 21:04:16 CST --- I was curious how the JIT copes with code like x ? 0.1 : 2.3 because this typically codegens as LCPI(,%rax,8), and it's not possible to encode addresses using the scaled index with RIP. The answer is that the JIT defaults to the large code model, so the symbol gets emitted in a MOV64ri, which bypasses this issue. Given that, the bigger problem here is that that X86InstrInfo.cpp code wasn't aware of the code model. This is now fixed on trunk in r98042. It's also the case that the binary code emitter will need more information (a TargetFlag bit on the MachineOperand?) in order to be able to emit non-PC-relative encodings, but that's a separate issue. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Mar 8 22:45:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Mar 2010 22:45:54 -0600 (CST) Subject: [LLVMbugs] [Bug 6553] New: Difference between clang and g++ in lookup of methods of template base classes Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6553 Summary: Difference between clang and g++ in lookup of methods of template base classes Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: matthias at gamezock.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Blocks: 6023 The folowing code compiles fine with g++, clang++ wants fooNum to be qualified (Foo::fooNum). I'm not sure which compiler handles this case correctly, but this affects boost (a similar construct is used in the OpenSSL backend of the Boost ASIO library). template struct Foo { void fooNum(int newNum) {} }; template struct Bar : public Foo { Bar(int i) { fooNum(getNum()); } int getNum() {return 23;} }; int main() { Bar bar(42); return 0; } g++ does find the fooNum method, as it considers getNum dependent on T, so it also looks in Foo. Just calling 'fooNum(23);' fails with both compilers. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 9 00:19:18 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Mar 2010 00:19:18 -0600 (CST) Subject: [LLVMbugs] [Bug 6554] New: Debug generation broken. Brakes debug bootstrap on linux. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6554 Summary: Debug generation broken. Brakes debug bootstrap on linux. Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu $ valgrind ./clang-debug -cc1 -S -g SelectionDAGISel.ii ==27907== Invalid read of size 1 ==27907== at 0x56AE96: llvm::Value::getValueID() const (Value.h:247) ==27907== by 0x56AF21: bool llvm::isa_impl(llvm::Value const&) (Value.h:338) ==27907== by 0x577AFF: llvm::isa_impl_wrap::doit(llvm::Value const&) (Casting.h:71) ==27907== by 0x57662C: bool llvm::isa_impl_cl::isa(llvm::Value const&) (Casting.h:83) ==27907== by 0xACF97D: bool llvm::isa_impl_cl::isa(llvm::Value*) (Casting.h:101) ==27907== by 0xACD702: bool llvm::isa(llvm::Value* const&) (Casting.h:116) ==27907== by 0x1372464: llvm::MDNode::getMDNode(llvm::LLVMContext&, llvm::Value* const*, unsigned int, llvm::MDNode::FunctionLocalness, bool) (Metadata.cpp:211) ==27907== by 0x137262A: llvm::MDNode::get(llvm::LLVMContext&, llvm::Value* const*, unsigned int) (Metadata.cpp:237) ==27907== by 0x1243ED3: llvm::DIFactory::CreateSubprogram(llvm::DIDescriptor, llvm::StringRef, llvm::StringRef, llvm::StringRef, llvm::DIFile, unsigned int, llvm::DIType, bool, bool, unsigned int, unsigned int, llvm::DIType, bool) (DebugInfo.cpp:925) ==27907== by 0x5B1F40: clang::CodeGen::CGDebugInfo::CreateCXXMemberFunction(clang::CXXMethodDecl const*, llvm::DIFile, llvm::DICompositeType&) (CGDebugInfo.cpp:607) ==27907== by 0x5B210C: clang::CodeGen::CGDebugInfo::CollectCXXMemberFunctions(clang::CXXRecordDecl const*, llvm::DIFile, llvm::SmallVectorImpl&, llvm::DICompositeType&) (CGDebugInfo.cpp:631) ==27907== by 0x5B3220: clang::CodeGen::CGDebugInfo::CreateType(clang::RecordType const*, llvm::DIFile) (CGDebugInfo.cpp:806) ==27907== Address 0x7d8bf48 is 8 bytes inside a block of size 576 free'd ==27907== at 0x4C24D68: free (vg_replace_malloc.c:325) ==27907== by 0x13722DE: llvm::MDNode::destroy() (Metadata.cpp:185) ==27907== by 0x124105C: llvm::DIDerivedType::replaceAllUsesWith(llvm::DIDescriptor&) (DebugInfo.cpp:279) ==27907== by 0x5B359B: clang::CodeGen::CGDebugInfo::CreateType(clang::RecordType const*, llvm::DIFile) (CGDebugInfo.cpp:835) ==27907== by 0x5B474F: clang::CodeGen::CGDebugInfo::CreateType(clang::TagType const*, llvm::DIFile) (CGDebugInfo.cpp:1008) ==27907== by 0x5B5B4C: clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) (CGDebugInfo.cpp:1233) ==27907== by 0x5B56E1: clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) (CGDebugInfo.cpp:1190) ==27907== by 0x5B12B3: clang::CodeGen::CGDebugInfo::CollectRecordFields(clang::RecordDecl const*, llvm::DIFile, llvm::SmallVectorImpl&) (CGDebugInfo.cpp:461) ==27907== by 0x5B31B1: clang::CodeGen::CGDebugInfo::CreateType(clang::RecordType const*, llvm::DIFile) (CGDebugInfo.cpp:803) ==27907== by 0x5B474F: clang::CodeGen::CGDebugInfo::CreateType(clang::TagType const*, llvm::DIFile) (CGDebugInfo.cpp:1008) ==27907== by 0x5B5B4C: clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) (CGDebugInfo.cpp:1233) ==27907== by 0x5B56E1: clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) (CGDebugInfo.cpp:1190) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 9 00:33:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Mar 2010 00:33:39 -0600 (CST) Subject: [LLVMbugs] [Bug 6552] [ARM inline asm] Assigning fp to a variable results in "Couldn't allocate output reg for constraint '{fp}'!" In-Reply-To: References: Message-ID: <20100309063339.1DB662A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6552 Bob Wilson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bob.wilson at apple.com Resolution| |WORKSFORME --- Comment #1 from Bob Wilson 2010-03-09 00:33:38 CST --- Trunk llvm-gcc does not produce that IR. Instead if correctly diagnoses this as an error: test.c: In function 'foo': test.c:5: error: invalid register name for 'fp' The error message is pretty good in this case. You need to specify the name of a specific register in this context and "fp" is not a register name. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 9 00:43:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Mar 2010 00:43:41 -0600 (CST) Subject: [LLVMbugs] [Bug 6552] [ARM inline asm] Assigning fp to a variable results in "Couldn't allocate output reg for constraint '{fp}'!" In-Reply-To: References: Message-ID: <20100309064341.AC0B92A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6552 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #2 from Anton Korobeynikov 2010-03-09 00:43:41 CST --- (In reply to comment #1) > Trunk llvm-gcc does not produce that IR. Instead if correctly diagnoses this > as an error: > > test.c: In function 'foo': > test.c:5: error: invalid register name for 'fp' The error is not shown for me here (arm-eabi cross-compiler) - sound like some apple-local stuff? > The error message is pretty good in this case. You need to specify the name > of a specific register in this context and "fp" is not a register name. No, it is a valid register name per ARM's specification. gcc accepts this code 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 llvm.org Tue Mar 9 01:12:50 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Mar 2010 01:12:50 -0600 (CST) Subject: [LLVMbugs] [Bug 6555] New: 2.7.r97654: Assertion failed: (DataSize == TypeLoc::getFullDataSizeForType(T) && "incorrect data size provided to CreateTypeSourceInfo!") Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6555 Summary: 2.7.r97654: Assertion failed: (DataSize == TypeLoc::getFullDataSizeForType(T) && "incorrect data size provided to CreateTypeSourceInfo!") Product: clang Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: release blocker Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nms+llvm at otdel-1.org CC: llvmbugs at cs.uiuc.edu Script started on Tue Mar 9 10:06:52 2010 $ sh -x cc.sh + cd /usr/home/nms/exiv2/build/src + /usr/local/bin/clang++ -v -DEXV_BUILDING_LIB -DEXV_HAVE_DLL -DEXV_HAVE_STDINT_H -fPIC -I/usr/home/nms/exiv2/build -I/usr/home/nms/exiv2/xmpsdk/include -I/usr/local/include -Wall -Wcast-align -Wpointer-arith -Wformat-security -Wmissing-format-attribute -Woverloaded-virtual -W -o CMakeFiles/exiv2.dir/xmp.cpp.o -c /usr/home/nms/exiv2/src/xmp.cpp clang version 1.1 (trunk) Target: i386-portbld-freebsd9.0 Thread model: posix "/usr/local/bin/clang" -cc1 -triple i386-portbld-freebsd9.0 -S -disable-free -main-file-name xmp.cpp -pic-level 2 -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4 -v -resource-dir /usr/local/lib/clang/1.1 -DEXV_BUILDING_LIB -DEXV_HAVE_DLL -DEXV_HAVE_STDINT_H -I/usr/home/nms/exiv2/build -I/usr/home/nms/exiv2/xmpsdk/include -I/usr/local/include -Wall -Wcast-align -Wpointer-arith -Wformat-security -Wmissing-format-attribute -Woverloaded-virtual -W -fmessage-length 210 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-KcHUk9.s -x c++ /usr/home/nms/exiv2/src/xmp.cpp clang -cc1 version 1.1 based upon llvm 2.7svn hosted on i386-portbld-freebsd9.0 ignoring duplicate directory "/usr/include/c++/4.2" ignoring duplicate directory "/usr/local/include" as it is a non-system directory that duplicates a system directory #include "..." search starts here: #include <...> search starts here: /usr/home/nms/exiv2/build /usr/home/nms/exiv2/xmpsdk/include /usr/local/lib/clang/1.1/include /usr/include/c++/4.2 /usr/include/c++/4.2/backward /usr/local/include /usr/include End of search list. Assertion failed: (DataSize == TypeLoc::getFullDataSizeForType(T) && "incorrect data size provided to CreateTypeSourceInfo!"), function CreateTypeSourceInfo, file ASTContext.cpp, line 1144. Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple i386-portbld-freebsd9.0 -S -disable-free -main-file-name xmp.cpp -pic-level 2 -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4 -v -resource-dir /usr/local/lib/clang/1.1 -DEXV_BUILDING_LIB -DEXV_HAVE_DLL -DEXV_HAVE_STDINT_H -I/usr/home/nms/exiv2/build -I/usr/home/nms/exiv2/xmpsdk/include -I/usr/local/include -Wall -Wcast-align -Wpointer-arith -Wformat-security -Wmissing-format-attribute -Woverloaded-virtual -W -fmessage-length 210 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-KcHUk9.s -x c++ /usr/home/nms/exiv2/src/xmp.cpp 1. /usr/home/nms/exiv2/xmpsdk/include/XMP.incl_cpp:55:48: current parser token ';' clang: error: compiler command failed due to signal 6 (use -v to see invocation) Script done on Tue Mar 9 10:07:01 2010 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 9 03:52:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Mar 2010 03:52:59 -0600 (CST) Subject: [LLVMbugs] [Bug 6556] New: header install doesn't honor DESTDIR Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6556 Summary: header install doesn't honor DESTDIR Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: release blocker Priority: P Component: Headers AssignedTo: unassignedclangbugs at nondot.org ReportedBy: doko at ubuntu.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4441) --> (http://llvm.org/bugs/attachment.cgi?id=4441) patch installation into DESTDIR (used for packaging) doesn't work on the 2.7 branch (20100308), 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 llvm.org Tue Mar 9 03:56:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Mar 2010 03:56:14 -0600 (CST) Subject: [LLVMbugs] [Bug 6557] New: toolalias install doesn't honor DESTDIR Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6557 Summary: toolalias install doesn't honor DESTDIR Product: Build scripts Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: release blocker Priority: P Component: Makefiles AssignedTo: unassignedbugs at nondot.org ReportedBy: doko at ubuntu.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4442) --> (http://llvm.org/bugs/attachment.cgi?id=4442) patch installation into DESTDIR (used for packaging) doesn't work on the 2.7 branch (20100308), 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 llvm.org Tue Mar 9 04:15:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Mar 2010 04:15:28 -0600 (CST) Subject: [LLVMbugs] [Bug 6558] New: Assertion failed... Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6558 Summary: Assertion failed... Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: release blocker Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: Fons.Rademakers at cern.ch CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=4443) --> (http://llvm.org/bugs/attachment.cgi?id=4443) source code exhibiting the bug In the original source the failure is in related code: namespace { static std::map > & G__ifunc_refs() { static std::map > ifunc_refs; return ifunc_refs; } } // unnamed namespace To reproduce compile the attached file using: clang++ -c aap.cxx -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 9 04:27:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Mar 2010 04:27:25 -0600 (CST) Subject: [LLVMbugs] [Bug 6559] New: segfault running indvars Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6559 Summary: segfault running indvars Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4444) --> (http://llvm.org/bugs/attachment.cgi?id=4444) testcase .ll $ opt -indvars indvars_segfault.ll -disable-output Segmentation fault (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 llvm.org Tue Mar 9 05:22:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Mar 2010 05:22:42 -0600 (CST) Subject: [LLVMbugs] [Bug 6560] New: Assertion failure: An asserting value handle still pointed to this value! Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6560 Summary: Assertion failure: An asserting value handle still pointed to this value! Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4445) --> (http://llvm.org/bugs/attachment.cgi?id=4445) testcase .ll $ opt -globalsmodref-aa -loopsimplify -argpromotion -adce value_handle.bc -disable-output While deleting: i8 ({ i8*, i32, i32, i32, i8*, i32, i32, i32, i8*, i8* (i8*, i32, i32)*, void (i8*, i8*)*, i8* }*)* % An asserting value handle still pointed to this value! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 9 06:46:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Mar 2010 06:46:26 -0600 (CST) Subject: [LLVMbugs] [Bug 6561] New: ARM JIT CodeEmitter VMOVDneon "Unhandled instruction encoding format!" Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6561 Summary: ARM JIT CodeEmitter VMOVDneon "Unhandled instruction encoding format!" Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: xerxes at zafena.se CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4446) --> (http://llvm.org/bugs/attachment.cgi?id=4446) dacapo.chart.Datasets::createPointerAgeData.ll.tar.gz Hits unreachable "Unhandled instruction encoding format!" while processing the MI %D10 = VMOVDneon %D9, pred:14, pred:%reg0 jit are running with -mcpu=generic -mattr=+neon,-thumb2,+v6,+vfp2 java -jar dacapio-2006-10-MR2.jar chart .. Breakpoint 2, emitInstruction (this=0xbefd0, MI=@0x8d2048) at /media/disk/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:313 313 llvm_unreachable("Unhandled instruction encoding format!"); Current language: auto; currently c++ (gdb) call MI.dump() %D10 = VMOVDneon %D9, pred:14, pred:%reg0 (gdb) bt #0 emitInstruction (this=0xbefd0, MI=@0x8d2048) at /media/disk/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:313 #1 0x409a48c4 in runOnMachineFunction (this=0xbefd0, MF=@0x4c81a8) at /media/disk/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:196 #2 0x40af5ee0 in llvm::MachineFunctionPass::runOnFunction (this=0xbefd0, F=) at /media/disk/llvm/lib/CodeGen/MachineFunctionPass.cpp:27 #3 0x40c633e0 in llvm::FPPassManager::runOnFunction (this=0x9dc30, F=@0x432d58) at /media/disk/llvm/lib/VMCore/PassManager.cpp:1350 #4 0x40c63578 in llvm::FunctionPassManagerImpl::run (this=0x9da38, F=@0x432d58) at /media/disk/llvm/lib/VMCore/PassManager.cpp:1301 #5 0x40c637dc in llvm::FunctionPassManager::run (this=0x9e048, F=@0x432d58) at /media/disk/llvm/lib/VMCore/PassManager.cpp:1231 #6 0x40d4ea14 in llvm::JIT::runJITOnFunctionUnlocked (this=0x9d9a8, F=0x1de3, locked=@0x4133558c) at /media/disk/llvm/lib/ExecutionEngine/JIT/JIT.cpp:631 #7 0x40d4f5e8 in llvm::JIT::getPointerToFunction (this=0x9d9a8, F=0x432d58) at /media/disk/llvm/lib/ExecutionEngine/JIT/JIT.cpp:683 #8 0x40495ea4 in SharkCompiler::generate_native_code (this=0x926a0, entry=0x415d1000, function=0x432d58, name=0xbf978 "dacapo.chart.Datasets::createPointerAgeData") at /media/disk/icedtea6-shark-shared/openjdk/hotspot/src/share/vm/shark/sharkCompiler.cpp:276 ---Type to continue, or q to quit--- #9 0x404964b8 in SharkCompiler::compile_method (this=0x926a0, env=0x67ed9c48, target=0x448c90, entry_bci=-1) at /media/disk/icedtea6-shark-shared/openjdk/hotspot/src/share/vm/shark/sharkCompiler.cpp:173 #10 0x40295fcc in CompileBroker::invoke_compiler_on_method (task=0x120350) at /media/disk/icedtea6-shark-shared/openjdk/hotspot/src/share/vm/compiler/compileBroker.cpp:1545 #11 0x402965a0 in CompileBroker::compiler_thread_loop () at /media/disk/icedtea6-shark-shared/openjdk/hotspot/src/share/vm/compiler/compileBroker.cpp:1397 #12 0x404d0118 in JavaThread::thread_main_inner (this=0xbf730) at /media/disk/icedtea6-shark-shared/openjdk/hotspot/src/share/vm/runtime/thread.cpp:1380 #13 0x40436258 in java_start (thread=0xbf730) at /media/disk/icedtea6-shark-shared/openjdk/hotspot/src/os/linux/vm/os_linux.cpp:786 #14 0x4005f30c in start_thread () from /lib/vfp/libpthread.so.0 #15 0x40156d38 in clone () from /lib/vfp/libc.so.6 Backtrace stopped: frame did not save the PC (gdb) frame 7 (gdb) call F->dump() ... output of F->dump() LLVM IR in attachment dacapo.chart.Datasets::createPointerAgeData.ll.tar.gz 180Kb (1.7Mb unpacked) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 9 14:02:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Mar 2010 14:02:25 -0600 (CST) Subject: [LLVMbugs] [Bug 6562] New: Crash due to missing destructor Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6562 Summary: Crash due to missing destructor Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: chandlerc at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com % cat t.cc struct X { ~X() {} }; template struct A { struct B { X x; }; struct C : public B { C() : B() { } }; }; % ./bin/clang -fsyntax-only t.cc clang: /home/chandlerc/src/llvm/trunk/tools/clang/lib/AST/DeclCXX.cpp:556: clang::CXXDestructorDecl* clang::CXXRecordDecl::getDestructor(clang::ASTContext&) const: Assertion `I != E && "Did not find a destructor!"' failed. Stack dump: 0. Program arguments: /home/chandlerc/src/llvm/trunk/build/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name t.cc -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir /home/chandlerc/src/llvm/trunk/build/lib/clang/1.1 -fmessage-length 283 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -x c++ t.cc 1. t.cc:6:15: current parser token '{' 2. t.cc:3:1: parsing struct/union/class body 'A' clang: error: compiler command failed due to signal 6 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 9 15:23:22 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Mar 2010 15:23:22 -0600 (CST) Subject: [LLVMbugs] [Bug 6553] Difference between clang and g++ in lookup of methods of template base classes In-Reply-To: References: Message-ID: <20100309212322.E7BB12A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6553 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #4 from Douglas Gregor 2010-03-09 15:23:22 CST --- (In reply to comment #3) > (In reply to comment #2) > > (In reply to comment #0) > > > The folowing code compiles fine with g++, clang++ wants fooNum to be qualified > > > (Foo::fooNum). > > > > > > > In [temp.dep] (14.7.2 in n3000), it says: > > > > In an expression of the form: > > > > postfix-expression ( expression-listopt ) > > > > where the postfix-expression is an unqualified-id but not a template-id, > > the unqualified-id denotes a dependent name if and only if any of the > > expressions in the expression-list is a type-dependent expression > > (14.7.2.2). > > > > 14.6.2 in C++03 has similar wording. > > > > My interpretation of that is that "getNum()" is not dependant, since the empty > > expression list is not type-dependent, and thus "fooNum(getNum())" is also not > > dependant, since its expression list isn't type-dependent. > > I don't think the issue is either of these expressions being dependent (and I > agree getNum() is clearly fine), it's that the base class is dependent. That > means an unqualified name cannot look into the base class and find a member > function. I would expect the fix to be calling "this->fooNum(getNum())" to > clarify that this is a member function call (as opposed to calling a function > at namespace scope). Perhaps there is something that makes this case special > that I'm missing though. Chandler is correct. fooNum() in the base class is not visible, and since getNum() is not type-dependent , fooNum is not a dependent name. GCC is wrong to permit this 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 llvm.org Tue Mar 9 15:32:56 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Mar 2010 15:32:56 -0600 (CST) Subject: [LLVMbugs] [Bug 6554] Debug generation broken. Brakes debug bootstrap on linux. In-Reply-To: References: Message-ID: <20100309213256.419612A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6554 Devang Patel 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 llvm.org Tue Mar 9 17:47:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Mar 2010 17:47:19 -0600 (CST) Subject: [LLVMbugs] [Bug 6559] segfault running indvars In-Reply-To: References: Message-ID: <20100309234719.8E4F32A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6559 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Dan Gohman 2010-03-09 17:47:19 CST --- Fixed on trunk in r98103. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 9 20:23:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Mar 2010 20:23:31 -0600 (CST) Subject: [LLVMbugs] [Bug 6474] Specialization-after-instantiation diagnostic due to implicit virtual member function instantiation In-Reply-To: References: Message-ID: <20100310022331.496002A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6474 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #21 from Rafael ?vila de Esp?ndola 2010-03-09 20:23:30 CST --- I am closing this bug as the original testcase has been fixed. Doug, please open a new bug with the "extern template" issue and assign it to me if 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 llvm.org Tue Mar 9 21:32:49 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Mar 2010 21:32:49 -0600 (CST) Subject: [LLVMbugs] [Bug 6326] Assert when a class friends itself In-Reply-To: References: Message-ID: <20100310033249.906F32A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6326 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from John McCall 2010-03-09 21:32:48 CST --- I believe the problem was with instantiating any sort of type source info for a class template's injected class name. This ended up being remarkably complicated to fix, but it should be done in r98134. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Mar 9 22:00:03 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Mar 2010 22:00:03 -0600 (CST) Subject: [LLVMbugs] [Bug 6563] New: accepts invalid template argument Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6563 Summary: accepts invalid template argument Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com clang accepts the following: --------------------- int *bar; template struct zed {}; void g(zed*) {} ------------------- But that doesn't match the restrictions defined in 14.3.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 llvm.org Wed Mar 10 04:36:56 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 04:36:56 -0600 (CST) Subject: [LLVMbugs] [Bug 6564] New: Assertion failed "Key function changed"... Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6564 Summary: Assertion failed "Key function changed"... Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: Fons.Rademakers at cern.ch CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Compiling the attached file with clang++ -c aap.cxx gives: (proof) [137] clang++ -c aap.cxxAssertion failed: (Entry == ASTRecordLayoutBuilder::ComputeKeyFunction(RD) && "Key function changed!"), function getKeyFunction, file /Users/rdm/llvm/src/tools/clang/lib/AST/ASTContext.cpp, line 1232. 0 clang 0x0000000100d49c5f PrintStackTrace(void*) + 38 1 clang 0x0000000100d4a1ed SignalHandler(int) + 336 2 libSystem.B.dylib 0x00007fff88a66eaa _sigtramp + 26 3 libSystem.B.dylib 000000000000000000 _sigtramp + 2002358640 4 libSystem.B.dylib 0x00007fff88ae2e74 __pthread_markcancel + 0 5 clang 0x00000001004e7a94 clang::ASTContext::getKeyFunction(clang::CXXRecordDecl const*) + 220 6 clang 0x00000001002096ac clang::CodeGen::CodeGenModule::MayDeferGeneration(clang::ValueDecl const*) + 320 7 clang 0x000000010020bddf clang::CodeGen::CodeGenModule::EmitGlobal(clang::CodeGen::GlobalDecl) + 249 8 clang 0x000000010014baed clang::CodeGen::CodeGenModule::EmitCXXConstructors(clang::CXXConstructorDecl const*) + 47 9 clang 0x000000010020c0d5 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 643 10 clang 0x0000000100225252 (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) + 76 11 clang 0x0000000100038e7e (anonymous namespace)::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 144 12 clang 0x00000001003bee15 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool) + 1511 13 clang 0x00000001003be664 clang::Sema::PerformPendingImplicitInstantiations(bool) + 336 14 clang 0x0000000100232c61 clang::Sema::ActOnEndOfTranslationUnit() + 225 15 clang 0x000000010060147b clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 91 16 clang 0x0000000100231e71 clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&, bool, bool, clang::CodeCompleteConsumer*) + 523 17 clang 0x000000010005a2d8 clang::ASTFrontendAction::ExecuteAction() + 256 18 clang 0x000000010005a3c8 clang::FrontendAction::Execute() + 226 19 clang 0x000000010003e114 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 726 20 clang 0x000000010001e15c cc1_main(char const**, char const**, char const*, void*) + 1296 21 clang 0x0000000100022361 main + 252 22 clang 0x000000010001d134 start + 52 Stack dump: 0. Program arguments: /Users/rdm/llvm/inst/bin/clang -cc1 -triple x86_64-apple-darwin10.0.0 -S -disable-free -main-file-name aap.cxx -pic-level 1 -mdisable-fp-elim -munwind-tables -target-cpu core2 -resource-dir /Users/rdm/llvm/inst/lib/clang/1.1 -fmessage-length 80 -stack-protector 1 -fblocks -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/zK/zKJDfZztH5upJbZEL05q7U+++TI/-Tmp-/cc-LvCuEU.s -x c++ aap.cxx 1. parser at end of file 2. math/mathcore/src/FunctorCint.cxx:35:4: instantiating function definition 'ROOT::Math::FunctorCintHandler::FunctorCintHandler' 3. math/mathcore/src/FunctorCint.cxx:35:4: LLVM IR generation of declaration 'ROOT::Math::FunctorCintHandler::FunctorCintHandler' clang: error: compiler command failed due to signal 6 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 10 04:40:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 04:40:29 -0600 (CST) Subject: [LLVMbugs] [Bug 6565] New: Assertion failed: incorrect data size provided to CreateTypeSourceInfo! Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6565 Summary: Assertion failed: incorrect data size provided to CreateTypeSourceInfo! Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: Fons.Rademakers at cern.ch CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com When doing clang++ -c aap.cxx the result will be: Assertion failed: (DataSize == TypeLoc::getFullDataSizeForType(T) && "incorrect data size provided to CreateTypeSourceInfo!"), function CreateTypeSourceInfo, file /Users/rdm/llvm/src/tools/clang/lib/AST/ASTContext.cpp, line 1144. 0 clang 0x0000000100d49c5f PrintStackTrace(void*) + 38 1 clang 0x0000000100d4a1ed SignalHandler(int) + 336 2 libSystem.B.dylib 0x00007fff88a66eaa _sigtramp + 26 3 libSystem.B.dylib 0x00000015002623ec _sigtramp + 2004858204 4 libSystem.B.dylib 0x00007fff88ae2e74 __pthread_markcancel + 0 5 clang 0x00000001004e7d37 clang::ASTContext::CreateTypeSourceInfo(clang::QualType, unsigned int) + 103 6 clang 0x000000010037d6d7 clang::TypeLocBuilder::getTypeSourceInfo(clang::ASTContext&, clang::QualType) + 143 7 clang 0x000000010039ca6c clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformType(clang::TypeSourceInfo*, clang::QualType) + 286 8 clang 0x000000010039e26c clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformType(clang::QualType, clang::QualType) + 178 9 clang 0x00000001003a30c2 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformNestedNameSpecifier(clang::NestedNameSpecifier*, clang::SourceRange, clang::QualType, clang::NamedDecl*) + 934 10 clang 0x00000001003a8841 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformDeclRefExpr(clang::DeclRefExpr*) + 171 11 clang 0x00000001003a8d39 (anonymous namespace)::TemplateInstantiator::TransformDeclRefExpr(clang::DeclRefExpr*) + 173 12 clang 0x0000000100392ab5 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 753 13 clang 0x0000000100397a01 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformImplicitCastExpr(clang::ImplicitCastExpr*) + 63 14 clang 0x00000001003930a0 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 2268 15 clang 0x00000001003983ae clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformCallExpr(clang::CallExpr*) + 98 16 clang 0x0000000100392e9d clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 1753 17 clang 0x0000000100399a79 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformReturnStmt(clang::ReturnStmt*) + 77 18 clang 0x0000000100391b54 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 2066 19 clang 0x000000010039227a clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*, bool) + 178 20 clang 0x00000001003a8ef5 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*) + 55 21 clang 0x0000000100391631 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 751 22 clang 0x00000001003ab710 clang::Sema::SubstStmt(clang::Stmt*, clang::MultiLevelTemplateArgumentList const&) + 200 23 clang 0x00000001003becf6 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool) + 1224 24 clang 0x00000001003a50e7 clang::Sema::InstantiateClassMembers(clang::SourceLocation, clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&, clang::TemplateSpecializationKind) + 461 25 clang 0x00000001003ac638 clang::Sema::InstantiateClassTemplateSpecializationMembers(clang::SourceLocation, clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind) + 92 26 clang 0x000000010036b2f8 clang::Sema::ActOnExplicitInstantiation(clang::Scope*, clang::SourceLocation, clang::SourceLocation, unsigned int, clang::SourceLocation, clang::CXXScopeSpec const&, clang::OpaquePtr<2>, clang::SourceLocation, clang::SourceLocation, clang::ASTTemplateArgsPtr, clang::SourceLocation, clang::AttributeList*) + 2012 27 clang 0x00000001005cd17c clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 2930 28 clang 0x00000001005c0e7d clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 6781 29 clang 0x00000001005fa801 clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::SourceLocation&, clang::AccessSpecifier) + 365 30 clang 0x00000001005fac9b clang::Parser::ParseExplicitInstantiation(clang::SourceLocation, clang::SourceLocation, clang::SourceLocation&) + 65 31 clang 0x00000001005fb17d clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 133 32 clang 0x00000001005c4f4f clang::Parser::ParseDeclaration(unsigned int, clang::SourceLocation&, clang::CXX0XAttributeList) + 331 33 clang 0x00000001006012f5 clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList) + 1985 34 clang 0x0000000100601517 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 247 35 clang 0x0000000100231e71 clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&, bool, bool, clang::CodeCompleteConsumer*) + 523 36 clang 0x000000010005a2d8 clang::ASTFrontendAction::ExecuteAction() + 256 37 clang 0x000000010005a3c8 clang::FrontendAction::Execute() + 226 38 clang 0x000000010003e114 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 726 39 clang 0x000000010001e15c cc1_main(char const**, char const**, char const*, void*) + 1296 40 clang 0x0000000100022361 main + 252 41 clang 0x000000010001d134 start + 52 Stack dump: 0. Program arguments: /Users/rdm/llvm/inst/bin/clang -cc1 -triple x86_64-apple-darwin10.0.0 -S -disable-free -main-file-name aap.cxx -pic-level 1 -mdisable-fp-elim -munwind-tables -target-cpu core2 -resource-dir /Users/rdm/llvm/inst/lib/clang/1.1 -fmessage-length 80 -stack-protector 1 -fblocks -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/zK/zKJDfZztH5upJbZEL05q7U+++TI/-Tmp-/cc-3gn258.s -x c++ aap.cxx 1. math/mathcore/src/TKDTree.cxx:1212:39: current parser token ';' clang: error: compiler command failed due to signal 6 (use -v to see invocation) File compiles fine with g++. Cheers, Fons. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 10 04:48:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 04:48:13 -0600 (CST) Subject: [LLVMbugs] [Bug 6566] New: Assertion failed: should always have a canonical type here Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6566 Summary: Assertion failed: should always have a canonical type here Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: Fons.Rademakers at cern.ch CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Doing clang++ -c aap.cxx fails with: Assertion failed: (Ty.isCanonical() && "should always have a canonical type here"), function getCoerceResult, file /Users/rdm/llvm/src/tools/clang/lib/CodeGen/TargetInfo.cpp, line 1052. 0 clang 0x0000000100d49c5f PrintStackTrace(void*) + 38 1 clang 0x0000000100d4a1ed SignalHandler(int) + 336 2 libSystem.B.dylib 0x00007fff88a66eaa _sigtramp + 26 3 libSystem.B.dylib 0x00007fff88a0bbea tiny_malloc_from_free_list + 1196 4 libSystem.B.dylib 0x00007fff88ae2e74 __pthread_markcancel + 0 5 clang 0x00000001002287d6 (anonymous namespace)::X86_64ABIInfo::getCoerceResult(clang::QualType, llvm::Type const*, clang::ASTContext&) const + 320 6 clang 0x000000010022a060 (anonymous namespace)::X86_64ABIInfo::classifyArgumentType(clang::QualType, clang::ASTContext&, llvm::LLVMContext&, unsigned int&, unsigned int&) const + 860 7 clang 0x000000010022a100 (anonymous namespace)::X86_64ABIInfo::EmitVAArg(llvm::Value*, clang::QualType, clang::CodeGen::CodeGenFunction&) const + 154 8 clang 0x000000010014dbc1 clang::CodeGen::CodeGenFunction::EmitVAArg(llvm::Value*, clang::QualType) + 71 9 clang 0x00000001001963d8 (anonymous namespace)::ScalarExprEmitter::VisitVAArgExpr(clang::VAArgExpr*) + 72 10 clang 0x000000010019bbe5 clang::StmtVisitor<(anonymous namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*) + 3339 11 clang 0x000000010019aad7 (anonymous namespace)::ScalarExprEmitter::EmitCastExpr(clang::CastExpr*) + 3101 12 clang 0x000000010019adb7 (anonymous namespace)::ScalarExprEmitter::VisitCastExpr(clang::CastExpr*) + 87 13 clang 0x000000010019add7 clang::StmtVisitor<(anonymous namespace)::ScalarExprEmitter, llvm::Value*>::VisitImplicitCastExpr(clang::ImplicitCastExpr*) + 29 14 clang 0x000000010019bb1d clang::StmtVisitor<(anonymous namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*) + 3139 15 clang 0x000000010019a070 (anonymous namespace)::ScalarExprEmitter::EmitCastExpr(clang::CastExpr*) + 438 16 clang 0x000000010019adb7 (anonymous namespace)::ScalarExprEmitter::VisitCastExpr(clang::CastExpr*) + 87 17 clang 0x000000010019adf7 clang::StmtVisitor<(anonymous namespace)::ScalarExprEmitter, llvm::Value*>::VisitExplicitCastExpr(clang::ExplicitCastExpr*) + 29 18 clang 0x000000010019ae17 clang::StmtVisitor<(anonymous namespace)::ScalarExprEmitter, llvm::Value*>::VisitCStyleCastExpr(clang::CStyleCastExpr*) + 29 19 clang 0x000000010019bb36 clang::StmtVisitor<(anonymous namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*) + 3164 20 clang 0x000000010019cf80 (anonymous namespace)::ScalarExprEmitter::VisitBinAssign(clang::BinaryOperator const*) + 68 21 clang 0x000000010019b1e3 clang::StmtVisitor<(anonymous namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*) + 777 22 clang 0x000000010019c0fb clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 131 23 clang 0x0000000100178823 clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*, llvm::Value*, bool, bool, bool) + 83 24 clang 0x00000001001da052 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 450 25 clang 0x00000001001dae1a clang::CodeGen::CodeGenFunction::EmitForStmt(clang::ForStmt const&) + 748 26 clang 0x00000001001da142 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 690 27 clang 0x00000001001db710 clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&, bool, llvm::Value*, bool) + 288 28 clang 0x00000001001db92a clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 198 29 clang 0x00000001001d9ede clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 78 30 clang 0x000000010015a668 clang::CodeGen::CodeGenFunction::EmitConstructorBody(llvm::SmallVector, 16u>&) + 356 31 clang 0x0000000100202ee9 clang::CodeGen::CodeGenFunction::GenerateCode(clang::CodeGen::GlobalDecl, llvm::Function*) + 1455 32 clang 0x000000010014c230 clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl const*, clang::CXXCtorType) + 316 33 clang 0x000000010020bc30 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::CodeGen::GlobalDecl) + 460 34 clang 0x000000010020be4f clang::CodeGen::CodeGenModule::EmitGlobal(clang::CodeGen::GlobalDecl) + 361 35 clang 0x000000010014baed clang::CodeGen::CodeGenModule::EmitCXXConstructors(clang::CXXConstructorDecl const*) + 47 36 clang 0x000000010020c0d5 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 643 37 clang 0x0000000100225252 (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) + 76 38 clang 0x0000000100038e7e (anonymous namespace)::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 144 39 clang 0x00000001003bee15 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool) + 1511 40 clang 0x00000001003a50e7 clang::Sema::InstantiateClassMembers(clang::SourceLocation, clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&, clang::TemplateSpecializationKind) + 461 41 clang 0x00000001003ac638 clang::Sema::InstantiateClassTemplateSpecializationMembers(clang::SourceLocation, clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind) + 92 42 clang 0x000000010036b2f8 clang::Sema::ActOnExplicitInstantiation(clang::Scope*, clang::SourceLocation, clang::SourceLocation, unsigned int, clang::SourceLocation, clang::CXXScopeSpec const&, clang::OpaquePtr<2>, clang::SourceLocation, clang::SourceLocation, clang::ASTTemplateArgsPtr, clang::SourceLocation, clang::AttributeList*) + 2012 43 clang 0x00000001005cd17c clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 2930 44 clang 0x00000001005c0e7d clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 6781 45 clang 0x00000001005fa801 clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::SourceLocation&, clang::AccessSpecifier) + 365 46 clang 0x00000001005fac9b clang::Parser::ParseExplicitInstantiation(clang::SourceLocation, clang::SourceLocation, clang::SourceLocation&) + 65 47 clang 0x00000001005fb17d clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 133 48 clang 0x00000001005c4f4f clang::Parser::ParseDeclaration(unsigned int, clang::SourceLocation&, clang::CXX0XAttributeList) + 331 49 clang 0x00000001006012f5 clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList) + 1985 50 clang 0x0000000100601517 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 247 51 clang 0x0000000100231e71 clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&, bool, bool, clang::CodeCompleteConsumer*) + 523 52 clang 0x000000010005a2d8 clang::ASTFrontendAction::ExecuteAction() + 256 53 clang 0x000000010005a3c8 clang::FrontendAction::Execute() + 226 54 clang 0x000000010003e114 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 726 55 clang 0x000000010001e15c cc1_main(char const**, char const**, char const*, void*) + 1296 56 clang 0x0000000100022361 main + 252 57 clang 0x000000010001d134 start + 52 Stack dump: 0. Program arguments: /Users/rdm/llvm/inst/bin/clang -cc1 -triple x86_64-apple-darwin10.0.0 -S -disable-free -main-file-name aap.cxx -pic-level 1 -mdisable-fp-elim -munwind-tables -target-cpu core2 -resource-dir /Users/rdm/llvm/inst/lib/clang/1.1 -fmessage-length 80 -stack-protector 1 -fblocks -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/zK/zKJDfZztH5upJbZEL05q7U+++TI/-Tmp-/cc-1e1TRq.s -x c++ aap.cxx 1. math/matrix/src/TVectorT.cxx:2371:33: current parser token ';' 2. include/TVectorT.h:75:4: LLVM IR generation of declaration 'TVectorT::TVectorT' 3. include/TVectorT.h:75:4: Generating code for declaration 'TVectorT::TVectorT' 4. math/matrix/src/TVectorT.cxx:259:1: LLVM IR generation of compound statement ('{}') clang: error: compiler command failed due to signal 6 (use -v to see invocation) Using g++ succeeds. Cheers, Fons. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 10 04:50:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 04:50:17 -0600 (CST) Subject: [LLVMbugs] [Bug 6567] New: Assertion failed: Cannot get layout of forward declarations! Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6567 Summary: Assertion failed: Cannot get layout of forward declarations! Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: Fons.Rademakers at cern.ch CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Doing clang++ -c aap.cxx fails with: Assertion failed: (D && "Cannot get layout of forward declarations!"), function getASTRecordLayout, file /Users/rdm/llvm/src/tools/clang/lib/AST/ASTContext.cpp, line 1208. 0 clang 0x0000000100d49c5f PrintStackTrace(void*) + 38 1 clang 0x0000000100d4a1ed SignalHandler(int) + 336 2 libSystem.B.dylib 0x00007fff88a66eaa _sigtramp + 26 3 libSystem.B.dylib 0x00007fff88a0bbea tiny_malloc_from_free_list + 1196 4 libSystem.B.dylib 0x00007fff88ae2e74 __pthread_markcancel + 0 5 clang 0x00000001004e7af0 clang::ASTContext::getASTRecordLayout(clang::RecordDecl const*) + 78 6 clang 0x00000001004e8983 clang::ASTContext::getTypeInfo(clang::Type const*) + 2469 7 clang 0x00000001004e8daf clang::ASTContext::getTypeInfo(clang::Type const*) + 3537 8 clang 0x00000001004e8b67 clang::ASTContext::getTypeInfo(clang::Type const*) + 2953 9 clang 0x000000010055db9d clang::ASTContext::getTypeInfo(clang::QualType) + 37 10 clang 0x00000001002974b5 clang::ASTContext::getTypeAlign(clang::QualType) + 29 11 clang 0x00000001004ec91a clang::ASTContext::getTypeAlignInChars(clang::QualType) + 30 12 clang 0x0000000100178c4c clang::CodeGen::CodeGenFunction::CreateMemTemp(clang::QualType, llvm::Twine const&) + 74 13 clang 0x000000010017f061 (anonymous namespace)::AggExprEmitter::VisitCXXExprWithTemporaries(clang::CXXExprWithTemporaries*) + 79 14 clang 0x000000010018179f clang::StmtVisitor<(anonymous namespace)::AggExprEmitter, void>::Visit(clang::Stmt*) + 3587 15 clang 0x00000001001819f7 clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*, llvm::Value*, bool, bool, bool, bool) + 261 16 clang 0x00000001001788d5 clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*, llvm::Value*, bool, bool, bool) + 261 17 clang 0x00000001001da052 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 450 18 clang 0x00000001001db710 clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&, bool, llvm::Value*, bool) + 288 19 clang 0x00000001001db92a clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 198 20 clang 0x00000001001d9ede clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 78 21 clang 0x00000001002019b5 clang::CodeGen::CodeGenFunction::EmitFunctionBody(llvm::SmallVector, 16u>&) + 93 22 clang 0x0000000100202efe clang::CodeGen::CodeGenFunction::GenerateCode(clang::CodeGen::GlobalDecl, llvm::Function*) + 1476 23 clang 0x000000010020b118 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::CodeGen::GlobalDecl) + 840 24 clang 0x000000010020bc89 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::CodeGen::GlobalDecl) + 549 25 clang 0x000000010020be4f clang::CodeGen::CodeGenModule::EmitGlobal(clang::CodeGen::GlobalDecl) + 361 26 clang 0x000000010020c040 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 494 27 clang 0x0000000100225252 (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) + 76 28 clang 0x0000000100038e7e (anonymous namespace)::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 144 29 clang 0x0000000100231e5e clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&, bool, bool, clang::CodeCompleteConsumer*) + 504 30 clang 0x000000010005a2d8 clang::ASTFrontendAction::ExecuteAction() + 256 31 clang 0x000000010005a3c8 clang::FrontendAction::Execute() + 226 32 clang 0x000000010003e114 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 726 33 clang 0x000000010001e15c cc1_main(char const**, char const**, char const*, void*) + 1296 34 clang 0x0000000100022361 main + 252 35 clang 0x000000010001d134 start + 52 Stack dump: 0. Program arguments: /Users/rdm/llvm/inst/bin/clang -cc1 -triple x86_64-apple-darwin10.0.0 -S -disable-free -main-file-name aap.cxx -pic-level 1 -mdisable-fp-elim -munwind-tables -target-cpu core2 -resource-dir /Users/rdm/llvm/inst/lib/clang/1.1 -fmessage-length 80 -stack-protector 1 -fblocks -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/zK/zKJDfZztH5upJbZEL05q7U+++TI/-Tmp-/cc-auCAtO.s -x c++ aap.cxx 1. graf3d/eve/src/TEveStraightLineSet.cxx:111:1: current parser token 'TClass' 2. graf3d/eve/src/TEveStraightLineSet.cxx:94:27: LLVM IR generation of declaration 'TEveStraightLineSet::WriteVizParams' 3. graf3d/eve/src/TEveStraightLineSet.cxx:94:27: Generating code for declaration 'TEveStraightLineSet::WriteVizParams' 4. graf3d/eve/src/TEveStraightLineSet.cxx:95:1: LLVM IR generation of compound statement ('{}') clang: error: compiler command failed due to signal 6 (use -v to see invocation) Using g++ works. Cheers, Fons. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 10 05:01:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 05:01:30 -0600 (CST) Subject: [LLVMbugs] [Bug 6568] New: Assertion failed: Default argument is not yet parsed! Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6568 Summary: Assertion failed: Default argument is not yet parsed! Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: Fons.Rademakers at cern.ch CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=4464) --> (http://llvm.org/bugs/attachment.cgi?id=4464) Source file exhibiting the failed assertion Doing clang++ -c aap.cxx fails: Assertion failed: (!hasUnparsedDefaultArg() && "Default argument is not yet parsed!"), function getDefaultArg, file /Users/rdm/llvm/src/tools/clang/lib/AST/Decl.cpp, line 761. 0 clang 0x0000000100d49c5f PrintStackTrace(void*) + 38 1 clang 0x0000000100d4a1ed SignalHandler(int) + 336 2 libSystem.B.dylib 0x00007fff88a66eaa _sigtramp + 26 3 libSystem.B.dylib 0x00007fff88a0bbea tiny_malloc_from_free_list + 1196 4 libSystem.B.dylib 0x00007fff88ae2e74 __pthread_markcancel + 0 5 clang 0x00000001005257df clang::ParmVarDecl::getDefaultArg() + 75 6 clang 0x00000001003b942c (anonymous namespace)::TemplateDeclInstantiator::VisitParmVarDecl(clang::ParmVarDecl*) + 452 7 clang 0x00000001003b9530 (anonymous namespace)::TemplateDeclInstantiator::SubstFunctionType(clang::FunctionDecl*, llvm::SmallVectorImpl&) + 176 8 clang 0x00000001003b9a4a (anonymous namespace)::TemplateDeclInstantiator::VisitCXXMethodDecl(clang::CXXMethodDecl*, clang::TemplateParameterList*) + 488 9 clang 0x00000001003bcf2c clang::DeclVisitor<(anonymous namespace)::TemplateDeclInstantiator, clang::Decl*>::Visit(clang::Decl*) + 662 10 clang 0x00000001003be0c1 clang::Sema::SubstDecl(clang::Decl*, clang::DeclContext*, clang::MultiLevelTemplateArgumentList const&) + 81 11 clang 0x00000001003a4c6a clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*, clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&, clang::TemplateSpecializationKind, bool) + 1018 12 clang 0x00000001003acce0 clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation, clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind, bool) + 1672 13 clang 0x00000001003c1ef2 clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType, clang::PartialDiagnostic const&, std::pair) + 322 14 clang 0x0000000100274352 clang::Sema::CheckFieldDecl(clang::DeclarationName, clang::QualType, clang::TypeSourceInfo*, clang::RecordDecl*, clang::SourceLocation, bool, clang::Expr*, clang::SourceLocation, clang::AccessSpecifier, clang::NamedDecl*, clang::Declarator*) + 356 15 clang 0x000000010027ebb2 clang::Sema::HandleField(clang::Scope*, clang::RecordDecl*, clang::SourceLocation, clang::Declarator&, clang::Expr*, clang::AccessSpecifier) + 748 16 clang 0x00000001002aaa53 clang::Sema::ActOnCXXMemberDeclarator(clang::Scope*, clang::AccessSpecifier, clang::Declarator&, clang::ASTMultiPtr<&(clang::ActionBase::DeleteTemplateParams(void*))>, void*, void*, bool, bool) + 1113 17 clang 0x00000001005cbc73 clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier, clang::Parser::ParsedTemplateInfo const&) + 3443 18 clang 0x00000001005cc421 clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int, clang::OpaquePtr<0>) + 1105 19 clang 0x00000001005cda1f clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 5141 20 clang 0x00000001005c0e7d clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 6781 21 clang 0x00000001005ff276 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&, clang::AttributeList*, clang::AccessSpecifier) + 118 22 clang 0x00000001005ff689 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::AttributeList*, clang::AccessSpecifier) + 83 23 clang 0x00000001006013d9 clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList) + 2213 24 clang 0x0000000100601517 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 247 25 clang 0x0000000100231e71 clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&, bool, bool, clang::CodeCompleteConsumer*) + 523 26 clang 0x000000010005a2d8 clang::ASTFrontendAction::ExecuteAction() + 256 27 clang 0x000000010005a3c8 clang::FrontendAction::Execute() + 226 28 clang 0x000000010003e114 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 726 29 clang 0x000000010001e15c cc1_main(char const**, char const**, char const*, void*) + 1296 30 clang 0x0000000100022361 main + 252 31 clang 0x000000010001d134 start + 52 Stack dump: 0. Program arguments: /Users/rdm/llvm/inst/bin/clang -cc1 -triple x86_64-apple-darwin10.0.0 -S -disable-free -main-file-name aap.cxx -pic-level 1 -mdisable-fp-elim -munwind-tables -target-cpu core2 -resource-dir /Users/rdm/llvm/inst/lib/clang/1.1 -fmessage-length 80 -stack-protector 1 -fblocks -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/zK/zKJDfZztH5upJbZEL05q7U+++TI/-Tmp-/cc-IGxIQz.s -x c++ aap.cxx 1. /Users/rdm/Dropbox/src/pythia8125/include/SusyLesHouches.h:443:20: current parser token ';' 2. /Users/rdm/Dropbox/src/pythia8125/include/SusyLesHouches.h:32:1: parsing struct/union/class body 'SusyLesHouches' clang: error: compiler command failed due to signal 6 (use -v to see invocation) With g++ it compiles fine. Cheers, Fons. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 10 05:22:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 05:22:08 -0600 (CST) Subject: [LLVMbugs] [Bug 6569] New: clang fails assertion for namespace/friend construct. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6569 Summary: clang fails assertion for namespace/friend construct. Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: bjorn at topel.se CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com namespace.cc: namespace Foo { class Bar; } class Foo::Bar { friend class Friend; }; --- bjoto at bjorn-topels-macbook-pro:~/Source/scratch/simpleclangtest$ ~/pkg/clang+llvm/bin/clang++ -c namespace.cc Assertion failed: (S && "No enclosing scope matching the enclosing namespace."), function ActOnTag, file SemaDecl.cpp, line 4800. 0 clang 0x0000000100f46247 PrintStackTrace(void*) + 38 1 clang 0x0000000100f467d5 SignalHandler(int) + 336 2 libSystem.B.dylib 0x00007fff80c3beaa _sigtramp + 26 3 libSystem.B.dylib 0x00007fff80be0bea tiny_malloc_from_free_list + 1196 4 libSystem.B.dylib 0x00007fff80cb7e74 __pthread_markcancel + 0 5 clang 0x0000000100288c48 clang::Sema::ActOnTag(clang::Scope*, unsigned int, clang::Action::TagUseKind, clang::SourceLocation, clang::CXXScopeSpec const&, clang::IdentifierInfo*, clang::SourceLocation, clang::AttributeList*, clang::AccessSpecifier, clang::ASTMultiPtr<&(clang::ActionBase::DeleteTemplateParams(void*))>, bool&, bool&) + 3876 6 clang 0x00000001005d6bef clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 4705 7 clang 0x00000001005ca1fd clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 6781 8 clang 0x00000001005d4870 clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier, clang::Parser::ParsedTemplateInfo const&) + 1516 9 clang 0x00000001005d57a5 clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int, clang::OpaquePtr<0>) + 1105 10 clang 0x00000001005d6da3 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 5141 11 clang 0x00000001005ca1fd clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 6781 12 clang 0x0000000100608fbe clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&, clang::AttributeList*, clang::AccessSpecifier) + 118 13 clang 0x00000001006093d1 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::AttributeList*, clang::AccessSpecifier) + 83 14 clang 0x000000010060b121 clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList) + 2213 15 clang 0x000000010060b25f clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 247 16 clang 0x000000010023b18f clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&, bool, bool, clang::CodeCompleteConsumer*) + 523 17 clang 0x0000000100060912 clang::ASTFrontendAction::ExecuteAction() + 256 18 clang 0x0000000100060a02 clang::FrontendAction::Execute() + 226 19 clang 0x00000001000454da clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 726 20 clang 0x0000000100025e1c cc1_main(char const**, char const**, char const*, void*) + 1296 21 clang 0x000000010002a0cd main + 252 22 clang 0x0000000100024df4 start + 52 Stack dump: 0. Program arguments: /Users/bjoto/pkg/clang+llvm/bin/clang -cc1 -triple x86_64-apple-darwin10.0.0 -S -disable-free -main-file-name namespace.cc -pic-level 1 -mdisable-fp-elim -munwind-tables -target-cpu core2 -resource-dir /Users/bjoto/pkg/clang+llvm/lib/clang/1.1 -fmessage-length 270 -stack-protector 1 -fblocks -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/Eb/Ebu2gEwcHfeuStO9hJ4SQk+++TI/-Tmp-/cc-oSmG9F.s -x c++ namespace.cc 1. namespace.cc:6:24: current parser token ';' 2. namespace.cc:5:1: parsing struct/union/class body 'Foo::Bar' clang: error: compiler command failed due to signal 6 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 10 06:19:34 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 06:19:34 -0600 (CST) Subject: [LLVMbugs] [Bug 6570] New: Implicit copy-assignment operator hidden by overloaded assignment operator Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6570 Summary: Implicit copy-assignment operator hidden by overloaded assignment operator Product: clang Version: trunk Platform: PC OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ahaczewski at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The test case: class A { }; class B { public: B() {} B(const A& a) { operator = (CONST); operator = (a); } B& operator = (const A& a) { return *this; } static const B CONST; }; And the diagnostics: t3.cc:13:15: error: no viable conversion from 'class B const' to 'class A const' operator = (CONST); ^~~~~ t3.cc:1:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'class B const' to 'class A const' for 1st argument class A { ^ 2 diagnostics generated. GCC compiles it without problems. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 10 11:30:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 11:30:31 -0600 (CST) Subject: [LLVMbugs] [Bug 6571] New: Crash when turning on RTTI and writing your own alias pass using multiple inheritence Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6571 Summary: Crash when turning on RTTI and writing your own alias pass using multiple inheritence Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: ddneff at hotmail.com CC: llvmbugs at cs.uiuc.edu I compiled llvm using REQUIRES_RTTI=1 with gcc 4.3.2 on 64 bit linux and statically linked it into my program. I have my own alias pass that looks like this: class TypeBasedAliasAnalysis : public llvm::ModulePass , public llvm::AliasAnalysis { public: TypeBasedAliasAnalysis() : ModulePass(&ID) {} static char ID; virtual void getAnalysisUsage(llvm::AnalysisUsage &AU) const; virtual bool runOnModule(llvm::Module& module); llvm::AliasAnalysis::AliasResult alias(const llvm::Value *V1, unsigned V1Size, const llvm::Value *V2, unsigned V2Size); ... } It has no other data members and a few other non virtual functions. When I try to use this pass, it ends up calling the wrong function when it tries to call alias in AliasAnalysis::getModRefInfo(StoreInst *s, Value* P, unsigned Size). It ends up calling the Print function of the raw stream class, and bad things result. My other passes that use single inheritence seem to work correctly. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 10 11:50:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 11:50:58 -0600 (CST) Subject: [LLVMbugs] [Bug 6552] [ARM inline asm] Assigning fp to a variable results in "Couldn't allocate output reg for constraint '{fp}'!" In-Reply-To: References: Message-ID: <20100310175058.8D71A2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6552 Bob Wilson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #4 from Bob Wilson 2010-03-10 11:50:58 CST --- This is fixed in llvm-gcc-4.2 svn r98165. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 10 12:21:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 12:21:44 -0600 (CST) Subject: [LLVMbugs] [Bug 6572] New: DAGCombiner.cpp incorrectly calls APInt::getLowBitsSet Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6572 Summary: DAGCombiner.cpp incorrectly calls APInt::getLowBitsSet Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: micah.villmow at amd.com CC: llvmbugs at cs.uiuc.edu ==== //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp#19 - /home/mvillmow/Source/stg/opencl/drivers/opencl/compiler/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp ==== @@ -5344,7 +5344,7 @@ if (SimplifyDemandedBits(Value, APInt::getLowBitsSet( Value.getValueType().getScalarType().getSizeInBits(), - ST->getMemoryVT().getSizeInBits()))) + ST->getMemoryVT().getScalarType().getSizeInBits()))) return SDValue(N, 0); } The problem is that ST->getMemoryVT().getSizeInBits() doesn't match Value.getValueType().getScalarType().getSizeInBits when ST is a vector. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 10 12:34:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 12:34:00 -0600 (CST) Subject: [LLVMbugs] [Bug 6573] New: msp430 backend: arguments passed in wrong registers Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6573 Summary: msp430 backend: arguments passed in wrong registers Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Keywords: miscompilation Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: pagariya at cs.utah.edu CC: llvmbugs at cs.uiuc.edu, regehr at cs.utah.edu Test case: #include int8_t g_8[6][10]; int main(void) { int i, j; for (i = 0; i < 6; i++) { for (j = 0; j < 10; j++) g_8[i][j] = 0x44L; } return 0; } Description: In the above code g_8 is an array of 6x10 bytes, which is initialized to 0x44. At -O2 and -O3, this array is initialized using memset(). C interface to memset(): void* memset(void* ptr, int value, size_t num); Asm interface to memset(): ptr -> reg r15 data -> reg r14 size -> reg r13 Assembly code at -O2 and -O3 for call to memset(): main: mov.w #0, r11 .LBB1_1 mov.w r11, r15 add.w #g_8, r15 mov.w #68, r14 mov.w #0, r13 /* size expected here, passed 0 */ mov.w #10, r12 /* Size passed in r12, ignored */ call #memset add.w #10, r11 cmp.w #60, r11 jne .LBB1_1 mov.w #0, r15 Bug: size argument to memset() should be passed in register r13. Instead it is passed in r12. I am attaching the asm file at -O2. Below are the cmdline options. pagariya at aleph:~/randprog-testing/main/tmp$ clang -ccc-host-triple msp430-elf -I/home/pagariya/res-pagariya/llvm-msp430/msp430/include -nostdinc -v -O2 -S test.c clang version 1.1 (trunk 184) Target: msp430-elf- Thread model: posix "/uusoc/facility/res/embed/users/pagariya/llvm-msp430/bin/clang" -cc1 -triple msp430-elf- -S -disable-free -main-file-name test.c -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -v -nostdinc -resource-dir /uusoc/facility/res/embed/users/pagariya/llvm-msp430/lib/clang/1.1 -I/home/pagariya/res-pagariya/llvm-msp430/msp430/include -O2 -fmessage-length 102 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o test.s -x c test.c clang -cc1 version 1.1 based upon llvm 2.7svn hosted on i386-pc-linux-gnu #include "..." search starts here: #include <...> search starts here: /home/pagariya/res-pagariya/llvm-msp430/msp430/include /uusoc/facility/res/embed/users/pagariya/llvm-msp430/lib/clang/1.1/include End of search list. pagariya at aleph:~/randprog-testing/main/tmp$ uname -a Linux aleph 2.6.24-24-generic #1 SMP Fri Sep 18 16:49:39 UTC 2009 i686 GNU/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 llvm.org Wed Mar 10 12:37:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 12:37:27 -0600 (CST) Subject: [LLVMbugs] [Bug 6574] New: clang silently ignore __attribute__((mode(QI))) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6574 Summary: clang silently ignore __attribute__((mode(QI))) Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: quickslyver at free.fr CC: llvmbugs at cs.uiuc.edu This attribute say that the integer is 8bits length. from gcc torture test: /* { dg-do run } */ extern void abort (void); extern void exit (int); #define small __attribute__((mode(QI))) int int main() { int x, y = 0x400; x = (small) y; /* { dg-bogus "ignored" } */ if (sizeof (small) != sizeof (char)) /* { dg-bogus "ignored" } */ abort (); if (sizeof (x) != sizeof (char) && x == y) abort (); return 0; } generated llvm code without any warning: $clang tests/run/gcc.dg/20011214-1.c -Wall -c -emit-llvm -o - -O0 | llvm-dis ; ModuleID = '' 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-n8:16:32" target triple = "i386-pc-linux-gnu" define i32 @main() nounwind { entry: %retval = alloca i32, align 4 ; [#uses=2] %x = alloca i32, align 4 ; [#uses=1] %y = alloca i32, align 4 ; [#uses=2] store i32 0, i32* %retval store i32 1024, i32* %y %tmp = load i32* %y ; [#uses=1] store i32 %tmp, i32* %x call void @abort() noreturn unreachable return: ; No predecessors! %0 = load i32* %retval ; [#uses=1] ret i32 %0 } declare void @abort() noreturn As we can obviously see: the attribute is ignored -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 10 14:10:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 14:10:31 -0600 (CST) Subject: [LLVMbugs] [Bug 6575] New: Clang fails to compile member initialiser for fields of nested anonymous structs and unions Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6575 Summary: Clang fails to compile member initialiser for fields of nested anonymous structs and unions Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: oliver at apple.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Only fails with -Wall strangely, but here is the minimised case: struct MyClass { MyClass() : m_int(0) {} union { struct { int m_int; }; }; }; g++ -Wall ... is fine clang++ -Wall ... produces: Assertion failed: (PrevMember && "Member not in member list?!"), function ActOnMemInitializers, file SemaDeclCXX.cpp, line 1812. 0 clang 0x00000001010413d2 PrintStackTrace(void*) + 34 1 clang 0x0000000101041c5c SignalHandler(int) + 652 2 libSystem.B.dylib 0x00007fff81febeaa _sigtramp + 26 3 libSystem.B.dylib 0xcac9f0b4e90ceeac _sigtramp + 1728983068 4 libSystem.B.dylib 0x00007fff82067e74 __pthread_markcancel + 0 5 clang 0x00000001002fcffe clang::Sema::ActOnMemInitializers(clang::OpaquePtr<0>, clang::SourceLocation, void**, unsigned int, bool) + 5022 6 clang 0x000000010062587b clang::Parser::ParseConstructorInitializer(clang::OpaquePtr<0>) + 491 7 clang 0x000000010060cb1e clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&) + 110 8 clang 0x0000000100626da9 clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int, clang::OpaquePtr<0>) + 1433 9 clang 0x000000010062883c clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 5916 10 clang 0x0000000100618e11 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 3937 11 clang 0x0000000100666408 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&, clang::AttributeList*, clang::AccessSpecifier) + 152 12 clang 0x000000010066684e clang::Parser::ParseDeclarationOrFunctionDefinition(clang::AttributeList*, clang::AccessSpecifier) + 350 13 clang 0x000000010066691c clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList) + 76 14 clang 0x0000000100667718 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 104 15 clang 0x00000001002799cb clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&, bool, bool, clang::CodeCompleteConsumer*) + 251 16 clang 0x0000000100053bb9 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 393 17 clang 0x0000000100038850 cc1_main(char const**, char const**, char const*, void*) + 2064 18 clang 0x000000010003b5b7 main + 2247 19 clang 0x0000000100036478 start + 52 20 clang 0x000000000000001e start + 4294745050 Stack dump: 0. Program arguments: /Users/oliver/llvm/llvm/Release/bin/clang -cc1 -triple x86_64-apple-darwin10.0.0 -S -disable-free -main-file-name foo.cpp -pic-level 1 -mdisable-fp-elim -munwind-tables -target-cpu core2 -resource-dir /Users/oliver/llvm/llvm/Release/lib/clang/1.1 -Wall -fmessage-length 132 -stack-protector 1 -fblocks -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/3C/3CRLXCBPEeGMkdDv4V76e++++TI/-Tmp-/cc-kQdJL4.s -x c++ foo.cpp 1. foo.cpp:2:26: current parser token '{' 2. foo.cpp:1:1: parsing struct/union/class body 'MyClass' clang: error: compiler command failed due to signal 6 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 10 14:58:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 14:58:09 -0600 (CST) Subject: [LLVMbugs] [Bug 6571] Crash when turning on RTTI and writing your own alias pass using multiple inheritence In-Reply-To: References: Message-ID: <20100310205809.28AFA2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6571 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Chris Lattner 2010-03-10 14:58:08 CST --- You need to implement the getAdjustedAnalysisPointer method, see lib/Analysis/BasicAliasAnalysis.cpp -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 10 15:06:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 15:06:30 -0600 (CST) Subject: [LLVMbugs] [Bug 6572] DAGCombiner.cpp incorrectly calls APInt::getLowBitsSet In-Reply-To: References: Message-ID: <20100310210630.460022A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6572 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Dan Gohman 2010-03-10 15:06:30 CST --- Effective change applied to trunk in 98188. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 10 15:26:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 15:26:11 -0600 (CST) Subject: [LLVMbugs] [Bug 6556] header install doesn't honor DESTDIR In-Reply-To: References: Message-ID: <20100310212611.914682A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6556 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-03-10 15:26:11 CST --- Applied in r98192, 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 llvm.org Wed Mar 10 15:28:06 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 15:28:06 -0600 (CST) Subject: [LLVMbugs] [Bug 6557] toolalias install doesn't honor DESTDIR In-Reply-To: References: Message-ID: <20100310212806.343E02A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6557 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-03-10 15:28:05 CST --- applied in r98193, 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 llvm.org Wed Mar 10 15:33:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 15:33:31 -0600 (CST) Subject: [LLVMbugs] [Bug 6576] New: Missed optimisation to remove unnecessary branches involving mul Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6576 Summary: Missed optimisation to remove unnecessary branches involving mul Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: arplynn at gmail.com CC: llvmbugs at cs.uiuc.edu The following test case: define i32 @mul(i32 %a, i32 %b) nounwind readnone { entry: %cond1 = icmp eq i32 %b, 0 ; [#uses=1] br i1 %cond1, label %exit, label %bb.nph bb.nph: ; preds = %entry %tmp = mul i32 %b, %a ; [#uses=1] ret i32 %tmp exit: ; preds = %entry ret i32 0 } could be reduced to: define i32 @mul(i32 %a, i32 %b) nounwind readnone { entry: %tmp = mul i32 %b, %a ret i32 %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 llvm.org Wed Mar 10 15:43:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 15:43:33 -0600 (CST) Subject: [LLVMbugs] [Bug 6576] Missed optimisation to remove unnecessary branches involving mul In-Reply-To: References: Message-ID: <20100310214333.5AD822A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6576 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |LATER --- Comment #1 from Chris Lattner 2010-03-10 15:43:33 CST --- Moved to the Target independent readme file here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100308/097618.html We typically don't track all the microoptimizations in bugzilla. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 10 17:06:24 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 17:06:24 -0600 (CST) Subject: [LLVMbugs] [Bug 6556] header install doesn't honor DESTDIR In-Reply-To: References: Message-ID: <20100310230624.420502A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6556 Matthias Klose changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #2 from Matthias Klose 2010-03-10 17:06:24 CST --- reopening, this should be fixed on the 2.7 branch as well (but there's no tag yet for 2.7). sorry if reopening the report is the wrong procedure to follow. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 10 17:07:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 17:07:09 -0600 (CST) Subject: [LLVMbugs] [Bug 6557] toolalias install doesn't honor DESTDIR In-Reply-To: References: Message-ID: <20100310230709.48FD72A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6557 Matthias Klose changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #2 from Matthias Klose 2010-03-10 17:07:09 CST --- reopening, this should be fixed on the 2.7 branch as well (but there's no tag yet for 2.7). sorry if reopening the report is the wrong procedure to follow. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 10 17:20:21 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 17:20:21 -0600 (CST) Subject: [LLVMbugs] [Bug 6556] header install doesn't honor DESTDIR In-Reply-To: References: Message-ID: <20100310232021.289952A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6556 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2010-03-10 17:20:20 CST --- I asked for it to get merged into the 2.7 branch, 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 llvm.org Wed Mar 10 17:20:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 17:20:30 -0600 (CST) Subject: [LLVMbugs] [Bug 6557] toolalias install doesn't honor DESTDIR In-Reply-To: References: Message-ID: <20100310232030.8E7612A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6557 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2010-03-10 17:20:30 CST --- I asked for it to get merged into the 2.7 branch, 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 llvm.org Wed Mar 10 17:47:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 17:47:31 -0600 (CST) Subject: [LLVMbugs] [Bug 6533] ice: SetCC type must be 8-bit integer In-Reply-To: References: Message-ID: <20100310234731.250512A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6533 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2010-03-10 17:47:30 CST --- Fixed here, thanks! http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100308/097625.html I'll ask to get it pulled into 2.7 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Mar 10 18:07:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 18:07:28 -0600 (CST) Subject: [LLVMbugs] [Bug 6528] invalid assembly generated with long long on i386 In-Reply-To: References: Message-ID: <20100311000728.393802A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6528 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clattner at apple.com Resolution| |FIXED --- Comment #7 from Chris Lattner 2010-03-10 18:07:27 CST --- This should fix it: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100308/097628.html Please verify that it does, and please verify that it doesn't cause any failures in the regression test suite when run on an openbsd system. If both are ok, then we can ask to pull it into 2.7. Please try to do this in the next day or so, thanks for reporting 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 llvm.org Wed Mar 10 21:02:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Mar 2010 21:02:51 -0600 (CST) Subject: [LLVMbugs] [Bug 6577] New: Assertion `Emitted && "Unable to issue a copy instruction!\n"' Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6577 Summary: Assertion `Emitted && "Unable to issue a copy instruction!\n"' Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: ddneff at hotmail.com CC: llvmbugs at cs.uiuc.edu I am getting an assertion when jitting the code below on x86_64 linux compiled with gcc 4.3.2. It looks like one of the registers is GR64 and the other is FR64. The instruction looks like a conditional move. The LLVM assembly passes through the verifier correctly (at least before I started stripping stuff out to make it a bit more manageable for the bug). /lib/CodeGen/SelectionDAG/InstrEmitter.cpp:292: void llvm::InstrEmitter::AddRegisterOperand(llvm::MachineInstr*, llvm::SDValue, unsigned int, const llvm::TargetInstrDesc*, llvm::DenseMap, llvm::DenseMapInfo >&): Assertion `Emitted && "Unable to issue a copy instruction!\n"' failed. Stack dump: 0. Running pass 'X86 DAG->DAG Instruction Selection' on function '@on4' Aborted Here is the llvm assembly, which was stripped down from a significantly larger program to just the offending function: ; ModuleID = 'Q' %0 = type { i384, i64, i64, i64, i32, i32, i64, i32, i32, i64, i32, i32, i64, i32, i32, i64, i32, i32, i64, i32, i32, i64, i32, i32, i64, i32, i32, i64, i32, i32, i64, i32, i32, i64, i32, i32, i64, i64, i64 } %1 = type { i64, double } %2 = type { i64, i64, [2 x double] } %3 = type { i64, i64, [2 x %1] } %4 = type { double, double, i1, i1 } %5 = type { %GEvent, i1, double, %1, i64, i1, i1, i1, i1, i1 } %6 = type { %GEvent, i1, i1, i64, i1, i1, i1, i1 } %7 = type opaque %GEvent = type %0* @global_subject109_151691824 = internal hidden global %1 zeroinitializer @global_subMeta_0_153989360 = internal hidden global i1 false @global_subject159_147021872 = internal hidden global double 0.000000e+00 @global_subMeta_1_153989392 = internal hidden global i1 false @global_subject167_152731376 = internal hidden global i1 false @global_subMeta_3_153991696 = internal hidden global i1 false @global_subject203_153263040 = internal hidden global %2 zeroinitializer @global_subject207_153163808 = internal hidden global %3 zeroinitializer @global_subject218_153259872.b = internal global i1 false @global_subMeta_7_153997040 = internal hidden global i1 false @global_reflex_ticks = internal hidden global i64 0 @.str = internal constant [6 x i8] c"XXXXX\00" @.str1 = internal constant [52 x i8] c"XXXX~XXXXXXXX=XXXX~XXXXXX=XXXX~XXXXXXXX=P~XXXXXX=A\00" @.str2 = internal constant [52 x i8] cXXXX~XXXXXXXX=XXXX~XXXXXX=XXXX~XXXXXXXX=P~XXXXXX=A\00" @.str3 = internal constant [26 x i8] c"XXXXX~XXXXXX=XXX~XXXXXXXX\00" @.str4 = internal constant [49 x i8] c"XXXXXX-XXXXX~XXXX=XXXXX~XXX-XXXXX=-X~XXX-XXXXX=X\00" define void @on4(%GEvent %VALUE_0) { dependentGraph243.exit: %0 = alloca %5, align 8 %1 = alloca %6, align 8 %subject34_149825680 = alloca %1, align 8 store %1 zeroinitializer, %1* %subject34_149825680 %2 = load i64* @global_reflex_ticks %3 = add i64 %2, 1 store i64 %3, i64* @global_reflex_ticks %4 = load i1* @global_subMeta_3_153991696 %5 = load i1* @global_subject167_152731376 %6 = call %GEvent @OnMerge(%7* inttoptr (i64 154167792 to %7*), %GEvent %VALUE_0) %MyStatusPtr.i = getelementptr inbounds %GEvent %6, i64 0, i32 2 %MyStatus.i = load i64* %MyStatusPtr.i %NewEvent.i = and i64 %MyStatus.i, 1 %7 = icmp ne i64 %NewEvent.i, 0 %subject168_146437360.0 = and i1 %4, %5 %8 = getelementptr inbounds %6* %1, i64 0, i32 0 store %GEvent %6, %GEvent* %8 %9 = getelementptr inbounds %6* %1, i64 0, i32 1 store i1 %7, i1* %9, align 8 %10 = getelementptr inbounds %6* %1, i64 0, i32 2 store i1 true, i1* %10 %11 = getelementptr inbounds %6* %1, i64 0, i32 3 store i64 1, i64* %11 %12 = getelementptr inbounds %6* %1, i64 0, i32 4 store i1 true, i1* %12, align 8 %13 = getelementptr inbounds %6* %1, i64 0, i32 5 store i1 true, i1* %13 %14 = getelementptr inbounds %6* %1, i64 0, i32 6 store i1 true, i1* %14, align 2 %15 = getelementptr inbounds %6* %1, i64 0, i32 7 store i1 true, i1* %15 %brmerge.demorgan = and i1 %4, %subject168_146437360.0 %subject16_153602432.0.i = select i1 %7, %GEvent %6, %GEvent null store i1 true, i1* @global_subMeta_7_153997040 store i1 true, i1* @global_subject218_153259872.b br i1 %brmerge.demorgan, label %on170.i, label %on231.i on170.i: ; preds = %dependentGraph243.exit %16 = call i64 @AbsTimeUSec() %17 = sitofp i64 %16 to double %18 = fmul double %17, 1.000000e-03 %19 = fptosi double %18 to i64 br label %on231.i on231.i: ; preds = %on170.i, %dependentGraph243.exit %20 = phi i64 [ %19, %on170.i ], [ 0, %dependentGraph243.exit ] %subMeta_44_154194224.0.i = phi i1 [ true, %on170.i ], [ false, %dependentGraph243.exit ] br i1 %7, label %on204.i, label %dependentGraph240.exit on204.i: ; preds = %on231.i %MyStatusPtr.i28 = getelementptr inbounds %GEvent %subject16_153602432.0.i, i64 0, i32 2 %MyStatus.i29 = load i64* %MyStatusPtr.i28 %NewEvent.i30 = and i64 %MyStatus.i29, 1 %21 = icmp ne i64 %NewEvent.i30, 0 %LastPtr.i = getelementptr inbounds %GEvent %subject16_153602432.0.i, i64 0, i32 33 %Last.i = load i64* %LastPtr.i %DivisorPtr.i = getelementptr inbounds %GEvent %subject16_153602432.0.i, i64 0, i32 1 %Divisor.i = load i64* %DivisorPtr.i %22 = sitofp i64 %Divisor.i to double %23 = sitofp i64 %Last.i to double %24 = fdiv double %23, %22 %25 = call i64 @UptimeUSec() %26 = load i64* @global_reflex_ticks store i64 %26, i64* getelementptr inbounds (%2* @global_subject203_153263040, i64 0, i32 1) %history_element.i31 = load i64* getelementptr inbounds (%2* @global_subject203_153263040, i64 0, i32 0) %27 = add i64 %history_element.i31, 1 store i64 %27, i64* getelementptr inbounds (%2* @global_subject203_153263040, i64 0, i32 0) %index.i32 = and i64 %history_element.i31, 1 %28 = getelementptr %2* @global_subject203_153263040, i64 0, i32 2, i64 %index.i32 store double %24, double* %28 %29 = insertvalue %1 undef, i64 %25, 0 %30 = insertvalue %1 %29, double 0.000000e+00, 1 br label %dependentGraph240.exit dependentGraph240.exit: ; preds = %on231.i, %on204.i %subject25_153661808.0.i = phi i1 [ %21, %on204.i ], [ false, %on231.i ] %subMeta_43_154193600.0.i = phi i1 [ true, %on204.i ], [ false, %on231.i ] %subject26_153662064.0.i = phi double [ %24, %on204.i ], [ 0.000000e+00, %on231.i ] %subject34_153662224.0.i = phi %1 [ %30, %on204.i ], [ zeroinitializer, %on231.i ] %31 = getelementptr inbounds %5* %0, i64 0, i32 0 store %GEvent %subject16_153602432.0.i, %GEvent* %31 %32 = getelementptr inbounds %5* %0, i64 0, i32 1 store i1 %subject25_153661808.0.i, i1* %32, align 8 %33 = getelementptr inbounds %5* %0, i64 0, i32 2 store double %subject26_153662064.0.i, double* %33 %34 = getelementptr inbounds %5* %0, i64 0, i32 3 store %1 %subject34_153662224.0.i, %1* %34 %35 = getelementptr inbounds %5* %0, i64 0, i32 4 store i64 %20, i64* %35 %36 = getelementptr inbounds %5* %0, i64 0, i32 5 store i1 %7, i1* %36, align 8 %37 = getelementptr inbounds %5* %0, i64 0, i32 6 store i1 %subMeta_43_154193600.0.i, i1* %37 %38 = getelementptr inbounds %5* %0, i64 0, i32 7 store i1 %subMeta_43_154193600.0.i, i1* %38, align 2 %39 = getelementptr inbounds %5* %0, i64 0, i32 8 store i1 %subMeta_43_154193600.0.i, i1* %39 %40 = getelementptr inbounds %5* %0, i64 0, i32 9 store i1 %subMeta_44_154194224.0.i, i1* %40, align 4 store %1 %subject34_153662224.0.i, %1* %subject34_149825680 %41 = load i1* @global_subMeta_1_153989392 %42 = and i1 %brmerge.demorgan, %41 %43 = and i1 %subMeta_44_154194224.0.i, %42 br i1 %43, label %on203, label %on235 on203: ; preds = %dependentGraph240.exit %44 = load double* @global_subject159_147021872 %45 = fmul double %44, 2.000000e-01 %reflex_ticks = load i64* @global_reflex_ticks call void @output_integer(i8* inttoptr (i64 153975296 to i8*), i64 1, i64 %reflex_ticks, i64 %20) %reflex_ticks11 = load i64* @global_reflex_ticks call void @output_float(i8* inttoptr (i64 153975056 to i8*), i64 1, i64 %reflex_ticks11, double %45) %reflex_ticks12 = load i64* @global_reflex_ticks call void @output_flush(i8* inttoptr (i64 153974592 to i8*), i64 1, i64 %reflex_ticks12) br label %on235 on235: ; preds = %dependentGraph240.exit, %on203 %46 = and i1 %subMeta_43_154193600.0.i, %7 %47 = and i1 %subMeta_43_154193600.0.i, %46 %48 = and i1 %subMeta_43_154193600.0.i, %47 %49 = load i1* @global_subMeta_7_153997040 %50 = and i1 %49, %48 br i1 %50, label %hold.i, label %dependentGraph241.exit hold.i: ; preds = %on235 %.b = load i1* @global_subject218_153259872.b %51 = zext i1 %.b to i64 %52 = load i64* @global_reflex_ticks %history_element = load i64* getelementptr inbounds (%2* @global_subject203_153263040, i64 0, i32 1) %history_element15 = load i64* getelementptr inbounds (%2* @global_subject203_153263040, i64 0, i32 0) %53 = icmp eq i64 %52, %history_element %54 = zext i1 %53 to i64 %55 = sub i64 %history_element15, %51 %56 = add i64 %55, %54 %index = and i64 %56, 1 %57 = getelementptr %2* @global_subject203_153263040, i64 0, i32 2, i64 %index %subject = load double* %57 %history_element16 = load i64* getelementptr inbounds (%3* @global_subject207_153163808, i64 0, i32 1) %history_element17 = load i64* getelementptr inbounds (%3* @global_subject207_153163808, i64 0, i32 0) %58 = icmp eq i64 %52, %history_element16 %59 = zext i1 %58 to i64 %60 = sub i64 %history_element17, %51 %61 = add i64 %60, %59 %index18 = and i64 %61, 1 %62 = getelementptr %3* @global_subject207_153163808, i64 0, i32 2, i64 %index18 %subject19 = load %1* %62 %q_equal = fcmp oeq double %subject26_153662064.0.i, %subject %63 = extractvalue %1 %subject19, 1 %64 = getelementptr inbounds %1* %subject34_149825680, i64 0, i32 0 %65 = load i64* %64 %66 = select i1 %q_equal, i64 0, i64 %65 %67 = getelementptr inbounds %1* %subject34_149825680, i64 0, i32 1 %68 = load double* %67 %69 = select i1 %q_equal, double %63, double %68 %70 = select i1 %subject25_153661808.0.i, i64 %66, i64 0 %71 = insertvalue %1 undef, i64 %70, 0 %72 = select i1 %subject25_153661808.0.i, double %69, double %63 %73 = insertvalue %1 %71, double %72, 1 store i1 true, i1* @global_subMeta_0_153989360 store %1 %73, %1* @global_subject109_151691824 store i64 %52, i64* getelementptr inbounds (%3* @global_subject207_153163808, i64 0, i32 1) %74 = add i64 %history_element17, 1 store i64 %74, i64* getelementptr inbounds (%3* @global_subject207_153163808, i64 0, i32 0) %index.i = and i64 %history_element17, 1 %75 = getelementptr %3* @global_subject207_153163808, i64 0, i32 2, i64 %index.i store %1 %73, %1* %75 ret void dependentGraph241.exit: ; preds = %on235 ret void } declare %GEvent @OnMerge(%7*, %GEvent) nounwind declare i64 @AbsTimeUSec() nounwind declare i64 @UptimeUSec() nounwind declare void @output_integer(i8*, i64, i64, i64) nounwind declare void @output_float(i8*, i64, i64, double) nounwind declare void @output_flush(i8*, i64, i64) nounwind -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 11 00:18:50 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Mar 2010 00:18:50 -0600 (CST) Subject: [LLVMbugs] [Bug 6555] 2.7.r97654: Assertion failed: (DataSize == TypeLoc::getFullDataSizeForType(T) && "incorrect data size provided to CreateTypeSourceInfo!") In-Reply-To: References: Message-ID: <20100311061851.042B62A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6555 John McCall 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 llvm.org Thu Mar 11 01:51:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Mar 2010 01:51:20 -0600 (CST) Subject: [LLVMbugs] [Bug 6540] make check fails as ENABLE_SHARED is not set at all. In-Reply-To: References: Message-ID: <20100311075120.D3D182A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6540 Tobias Grosser changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clattner at apple.com, | |grosser at fim.uni-passau.de Resolution| |FIXED --- Comment #10 from Tobias Grosser 2010-03-11 01:51:20 CST --- Committed here. Tanya can you move this to 2.7? Author: grosser Date: Wed Mar 10 12:41:59 2010 New Revision: 98171 URL: http://llvm.org/viewvc/llvm-project?rev=98171&view=rev Log: Fix make check with cmake/lit PR6540: Set the newly introduced variables ENABLE_SHARED and SHLIBPATH_VAR in lit.site.cfg not only in the autoconf build, but also in a cmake one. Modified: llvm/trunk/test/CMakeLists.txt -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 11 02:23:10 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Mar 2010 02:23:10 -0600 (CST) Subject: [LLVMbugs] [Bug 6578] New: clang+ and g++ emits different symbols Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6578 Summary: clang+ and g++ emits different symbols Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rdivacky at freebsd.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com pes delta$ clang++ -c compatibility.cc > /dev/null && nm compatibility.o | grep char_traits .... warnings ..... 0000000000000000 W _ZNSt11char_traitsIcE4eqXXERKcS2_ U _ZNSt11char_traitsIcE4eqXXERKcS2_3 0000000000000000 T _ZNSt21istreambuf_iteratorXXIcSt11char_traitsIcEEppEv U _ZNSt21istreambuf_iteratorXXIcSt11char_traitsIcEEppEv1 0000000000000012 T _ZNSt21istreambuf_iteratorXXIwSt11char_traitsIwEEppEv U _ZNSt21istreambuf_iteratorXXIwSt11char_traitsIwEEppEv2 pes delta$ g++ -c compatibility.cc > /dev/null && nm compatibility.o | grep char_traits 0000000000000000 T _X_ZNSt11char_traitsIcE2eqERKcS2_ 0000000000000000 T _X_ZNSt19istreambuf_iteratorIcSt11char_traitsIcEEppEv 0000000000000000 T _X_ZNSt19istreambuf_iteratorIwSt11char_traitsIwEEppEv 0000000000000000 W _ZNSt11char_traitsIcE4eqXXERKcS2_ 0000000000000000 W _ZNSt21istreambuf_iteratorXXIcSt11char_traitsIcEEppEv 0000000000000000 W _ZNSt21istreambuf_iteratorXXIwSt11char_traitsIwEEppEv -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 11 03:18:56 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Mar 2010 03:18:56 -0600 (CST) Subject: [LLVMbugs] [Bug 5255] clang missing builtins In-Reply-To: References: Message-ID: <20100311091856.7A74D2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5255 John McCall 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 llvm.org Thu Mar 11 04:31:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Mar 2010 04:31:04 -0600 (CST) Subject: [LLVMbugs] [Bug 6579] New: Using clang++ as linker does not feed symbols to c++filt... Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6579 Summary: Using clang++ as linker does not feed symbols to c++filt... Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: Fons.Rademakers at cern.ch CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Example: clang++ -v -g -m64 -o cint/cint/main/cint_tmp cint/cint/main/cppmain.o \ cint/cint/src/g__cfunc.o cint/cint/main/G__setup.o cint/cint/src/Api.o cint/cint/src/BaseCls.o cint/cint/src/CallFunc.o cint/cint/src/Class.o cint/cint/src/DataMbr.o cint/cint/src/FastAllocString.o cint/cint/src/Method.o cint/cint/src/MethodAr.o cint/cint/src/Shadow.o cint/cint/src/Token.o cint/cint/src/Type.o cint/cint/src/Typedf.o cint/cint/src/auxu.o cint/cint/src/bc_assign.o cint/cint/src/bc_autoobj.o cint/cint/src/bc_cfunc.o cint/cint/src/bc_debug.o cint/cint/src/bc_eh.o cint/cint/src/bc_exec.o cint/cint/src/bc_inst.o cint/cint/src/bc_item.o cint/cint/src/bc_parse.o cint/cint/src/bc_reader.o cint/cint/src/bc_type.o cint/cint/src/bc_vtbl.o cint/cint/src/cast.o cint/cint/src/debug.o cint/cint/src/decl.o cint/cint/src/disp.o cint/cint/src/dump.o cint/cint/src/end.o cint/cint/src/error.o cint/cint/src/expr.o cint/cint/src/fread.o cint/cint/src/func.o cint/cint/src/gcoll.o cint/cint/src/global1.o cint/cint/src/global2.o cint/cint/src/ifunc.o cint/cint/src/inherit.o cint/cint/src/init.o cint/cint/src/input.o cint/cint/src/intrpt.o cint/cint/src/loadfile_tmp.o cint/cint/src/macro.o cint/cint/src/malloc.o cint/cint/src/memtest.o cint/cint/src/new.o cint/cint/src/newlink.o cint/cint/src/oldlink.o cint/cint/src/opr.o cint/cint/src/parse.o cint/cint/src/pause.o cint/cint/src/pcode.o cint/cint/src/pragma.o cint/cint/src/quote.o cint/cint/src/random.o cint/cint/src/rflx_gendict.o cint/cint/src/rflx_gensrc.o cint/cint/src/rflx_tools.o cint/cint/src/scrupto.o cint/cint/src/shl.o cint/cint/src/sizeof.o cint/cint/src/struct.o cint/cint/src/stub.o cint/cint/src/tmplt.o cint/cint/src/typedef.o cint/cint/src/val2a.o cint/cint/src/value.o cint/cint/src/var.o cint/cint/src/dict/Apiif.o cint/cint/src/dict/stdstrct.o cint/cint/src/dict/gcc4strm.o cint/cint/src/dict/longif3.o -lm -Wl,-rpath, at loader_path/../lib -ldl gives: Undefined symbols: "__ZTV12G__srcreaderI10G__fstreamE", referenced from: __ZN12G__srcreaderI10G__fstreamEC2Ev in bc_cfunc.o ld: symbol(s) not found clang: error: linker command failed with exit code 1 (use -v to see invocation) The same with g++ gives: Undefined symbols: "vtable for G__srcreader", referenced from: G__srcreader::G__srcreader()in bc_cfunc.o ld: symbol(s) not found collect2: ld returned 1 exit status Notice clang++ uses: /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld while g++ uses: /usr/libexec/gcc/i686-apple-darwin10/4.2.1/collect2 Cheers, Fons. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 11 06:57:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Mar 2010 06:57:38 -0600 (CST) Subject: [LLVMbugs] [Bug 6580] New: lli JIT fails to resolve cbe mangled method names containing . and : Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6580 Summary: lli JIT fails to resolve cbe mangled method names containing . and : Product: new-bugs Version: trunk Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: xerxes at zafena.se CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4477) --> (http://llvm.org/bugs/attachment.cgi?id=4477) bugpoint.safe.ll testcase: llvm-as bugpoint.safe.ll llvm-as bugpoint.test.ll llc -march=c bugpoint.safe.bc -o temporary.c gcc -xc temporary.c -O2 -o ./bugpoint.safe.bc.cbe.c.so -fPIC -shared -fno-strict-aliasing echo "running lli with jit calling functions in bugpoint.safe.bc.cbe.c.so" lli -load ./bugpoint.safe.bc.cbe.c.so < bugpoint.test.bc output: running lli with jit calling functions in bugpoint.safe.bc.cbe.c.so LLVM ERROR: Program used external function '.' which could not be resolved! possitive test to make sure the llvm ir for the testcase are correct: echo "running using only lli with jit" cat bugpoint.safe.ll > combined.ll cat bugpoint.test.ll >> combined.ll llvm-as combined.ll lli < combined.bc expected output: running using only lli with jit Hello Works Hello Works Hello Works Hello Works -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 11 08:08:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Mar 2010 08:08:52 -0600 (CST) Subject: [LLVMbugs] [Bug 6460] Codegen aborts (mangler) In-Reply-To: References: Message-ID: <20100311140852.A2F992A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6460 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #12 from Rafael ?vila de Esp?ndola 2010-03-11 08:08:52 CST --- Fixed in r98254 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 11 09:02:18 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Mar 2010 09:02:18 -0600 (CST) Subject: [LLVMbugs] [Bug 6581] New: Jump table entries emitted twice Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6581 Summary: Jump table entries emitted twice Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: richard at xmos.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4479) --> (http://llvm.org/bugs/attachment.cgi?id=4479) switch.ll Compiling the attached example using llc -march=arm results in the jump table entries being emitted twice, once inside the function just after the jump and again after the function. The jump table entries emitted at the end of the jump are unreferenced. The ARM backend should be switched over to using the new EK_Inline jump table encoding type which indicates the jump table entries at emitted by the target inside the function. This disables emission of the jump table entries after the function. Also see http://lists.cs.uiuc.edu/pipermail/llvmdev/2010-March/030111.html Once this is done I think it should be possible to get rid of the TargetJITInfo::hasCustomJumpTables() hook -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 11 10:59:34 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Mar 2010 10:59:34 -0600 (CST) Subject: [LLVMbugs] [Bug 6582] New: lit test emits .ll file to working dir Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6582 Summary: lit test emits .ll file to working dir Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: mikem.llvm at gmail.com CC: llvmbugs at cs.uiuc.edu lit test/CodeGenCXX/PR6474.cpp emits .ll file to working dir. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 11 11:09:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Mar 2010 11:09:17 -0600 (CST) Subject: [LLVMbugs] [Bug 6583] New: Missing symbol in binary causes undefined symbol error during linking... Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6583 Summary: Missing symbol in binary causes undefined symbol error during linking... Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: Fons.Rademakers at cern.ch CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=4482) --> (http://llvm.org/bugs/attachment.cgi?id=4482) Source file exhibiting the problem To see this behaviour do: $ clang++ -c aap.cxx $ nm aap.o |c++filt |grep G__srcreader 0000000000008006 S G__srcreader::G__srcreader() 000000000000fb60 S __ZN12G__srcreaderI10G__fstreamEC1Ev.eh 000000000000ca22 S G__srcreader::G__srcreader() 0000000000013750 S __ZN12G__srcreaderI10G__fstreamEC2Ev.eh U vtable for G__srcreader The result with g++ is: $ g++ -c aap.cxx $ nm aap.o |c++filt |grep G__srcreader 0000000000009244 S G__srcreader::fgetstream(std::basic_string, std::allocator >&, std::basic_string, std::allocator > const&, int) 000000000000eef8 S __ZN12G__srcreaderI10G__fstreamE10fgetstreamERSsRKSsi.eh 00000000000090e4 S G__srcreader::fgetstream_(std::basic_string, std::allocator >&, std::basic_string, std::allocator > const&, int) 000000000000ee18 S __ZN12G__srcreaderI10G__fstreamE11fgetstream_ERSsRKSsi.eh 0000000000008de6 S G__srcreader::fignoreline() 000000000000ed00 S __ZN12G__srcreaderI10G__fstreamE11fignorelineEv.eh 00000000000094d6 S G__srcreader::fpp_command(int) 000000000000f010 S __ZN12G__srcreaderI10G__fstreamE11fpp_commandEi.eh 000000000000927e S G__srcreader::fappendtoken(std::basic_string, std::allocator >&, int, std::basic_string, std::allocator > const&) 000000000000ef30 S __ZN12G__srcreaderI10G__fstreamE12fappendtokenERSsiRKSs.eh 0000000000006a4e S G__srcreader::fskipcomment(int) 000000000000d4e8 S __ZN12G__srcreaderI10G__fstreamE12fskipcommentEi.eh 0000000000008dd2 S G__srcreader::skipCcomment() 000000000000ecc8 S __ZN12G__srcreaderI10G__fstreamE12skipCcommentEv.eh 0000000000009332 S G__srcreader::fgetquotation(std::basic_string, std::allocator >&, int, int) 000000000000efa0 S __ZN12G__srcreaderI10G__fstreamE13fgetquotationERSsii.eh 0000000000009194 S G__srcreader::fignorestream(std::basic_string, std::allocator > const&, int) 000000000000ee88 S __ZN12G__srcreaderI10G__fstreamE13fignorestreamERKSsi.eh 0000000000006a10 S G__srcreader::fgetc_gettoken() 000000000000d4b0 S __ZN12G__srcreaderI10G__fstreamE14fgetc_gettokenEv.eh 0000000000009034 S G__srcreader::fignorestream_(std::basic_string, std::allocator > const&, int) 000000000000eda8 S __ZN12G__srcreaderI10G__fstreamE14fignorestream_ERKSsi.eh 0000000000008dfa S G__srcreader::fgetstream_core(std::basic_string, std::allocator >&, std::basic_string, std::allocator > const&, int, int, int) 000000000000ed38 S __ZN12G__srcreaderI10G__fstreamE15fgetstream_coreERSsRKSsiii.eh 000000000000920a S G__srcreader::fgetstream_template(std::basic_string, std::allocator >&, std::basic_string, std::allocator > const&, int) 000000000000eec0 S __ZN12G__srcreaderI10G__fstreamE19fgetstream_templateERSsRKSsi.eh 00000000000090aa S G__srcreader::fgetstream_template_(std::basic_string, std::allocator >&, std::basic_string, std::allocator > const&, int) 000000000000ede0 S __ZN12G__srcreaderI10G__fstreamE20fgetstream_template_ERSsRKSsi.eh 000000000000911e S G__srcreader::fignorestream_template(std::basic_string, std::allocator > const&, int) 000000000000ee50 S __ZN12G__srcreaderI10G__fstreamE22fignorestream_templateERKSsi.eh 0000000000008fbe S G__srcreader::fignorestream_template_(std::basic_string, std::allocator > const&, int) 000000000000ed70 S __ZN12G__srcreaderI10G__fstreamE23fignorestream_template_ERKSsi.eh 00000000000069ec S G__srcreader::Init(char const*) 000000000000d478 S __ZN12G__srcreaderI10G__fstreamE4InitEPKc.eh 00000000000099b8 S G__srcreader::Init(G__input_file&) 000000000000f198 S __ZN12G__srcreaderI10G__fstreamE4InitER13G__input_file.eh 000000000000999c S G__srcreader::fgetc() 000000000000f160 S __ZN12G__srcreaderI10G__fstreamE5fgetcEv.eh 0000000000006b34 S G__srcreader::getpos() 000000000000d520 S __ZN12G__srcreaderI10G__fstreamE6getposEv.eh 0000000000008d40 S G__srcreader::setpos(long long) 000000000000eb40 S __ZN12G__srcreaderI10G__fstreamE6setposEx.eh 0000000000008db2 S G__srcreader::putback() 000000000000ec90 S __ZN12G__srcreaderI10G__fstreamE7putbackEv.eh 0000000000006b50 S G__srcreader::setspos(unsigned long) 000000000000d558 S __ZN12G__srcreaderI10G__fstreamE7setsposEm.eh 0000000000008d64 S G__srcreader::storepos(int) 000000000000ebb0 S __ZN12G__srcreaderI10G__fstreamE8storeposEi.eh 000000000000931e S G__srcreader::fgetspace() 000000000000ef68 S __ZN12G__srcreaderI10G__fstreamE9fgetspaceEv.eh 0000000000009700 S G__srcreader::fgettoken(std::basic_string, std::allocator >&, std::basic_string, std::allocator > const&) 000000000000f0f0 S __ZN12G__srcreaderI10G__fstreamE9fgettokenERSsRKSs.eh 0000000000008cfa S G__srcreader::rewindpos() 000000000000ead0 S __ZN12G__srcreaderI10G__fstreamE9rewindposEv.eh 0000000000005758 S G__srcreader::G__srcreader() 000000000000b388 S __ZN12G__srcreaderI10G__fstreamEC1Ev.eh 00000000000075fc S G__srcreader::~G__srcreader() 000000000000dec8 S __ZN12G__srcreaderI10G__fstreamED0Ev.eh 000000000000762e S G__srcreader::~G__srcreader() 000000000000df00 S __ZN12G__srcreaderI10G__fstreamED1Ev.eh 000000000000ac50 S typeinfo for G__srcreader 000000000000ada6 S typeinfo name for G__srcreader 000000000000ab60 S vtable for G__srcreader For clang++ this symbol is undefined: U vtable for G__srcreader Cheers, Fons. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 11 12:20:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Mar 2010 12:20:26 -0600 (CST) Subject: [LLVMbugs] [Bug 6433] x86_64 va_arg codegen asserts on typedef'd floating point types In-Reply-To: References: Message-ID: <20100311182026.49BF22A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6433 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2010-03-11 12:20:25 CST --- Fixed here, I'll ask Tanya to pull it into 2.7: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20100308/028349.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 llvm.org Thu Mar 11 13:34:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Mar 2010 13:34:19 -0600 (CST) Subject: [LLVMbugs] [Bug 4808] Missing warning for unspecified fields in struct initializations In-Reply-To: References: Message-ID: <20100311193419.BD0972A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4808 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from John McCall 2010-03-11 13:34:19 CST --- Committed in r98275, 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 llvm.org Thu Mar 11 13:43:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Mar 2010 13:43:38 -0600 (CST) Subject: [LLVMbugs] [Bug 4807] Missing warning for comparing unsigned value against < 0 or >= 0 In-Reply-To: References: Message-ID: <20100311194338.CCF7D2A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4807 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from John McCall 2010-03-11 13:43:38 CST --- Committed in r98279, 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 llvm.org Thu Mar 11 13:59:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Mar 2010 13:59:01 -0600 (CST) Subject: [LLVMbugs] [Bug 6582] lit test emits .ll file to working dir In-Reply-To: References: Message-ID: <20100311195901.4939E2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6582 mikem.llvm at gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from mikem.llvm at gmail.com 2010-03-11 13:59:01 CST --- Committed in r98267. Thank you. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 11 18:44:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Mar 2010 18:44:30 -0600 (CST) Subject: [LLVMbugs] [Bug 6584] New: -msse3 does not define __SSE3__ Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6584 Summary: -msse3 does not define __SSE3__ Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: m at fritschy.de CC: llvmbugs at cs.uiuc.edu When using -msse3 the macro __SSE3__ is not defined which triggers an error in pmmintrin.h: --------------------------------- % cat > sse3.c #include int main(){} % clang -msse3 sse3.c In file included from sse3.c:1: /home/m/software/llvm/lib/clang/1.1/include/pmmintrin.h:28:2: error: #error "SSE3 instruction set not enabled" #error "SSE3 instruction set not enabled" ^ 1 diagnostic generated. --------------------------------- It does however work when using -msse4. Cheers, Marcus -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 11 21:23:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Mar 2010 21:23:02 -0600 (CST) Subject: [LLVMbugs] [Bug 6585] New: ambiguous expression is parsed as functional cast when in BinaryOperator (Comma) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6585 Summary: ambiguous expression is parsed as functional cast when in BinaryOperator (Comma) Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: mikem.llvm at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=4485) --> (http://llvm.org/bugs/attachment.cgi?id=4485) reduction: foo.cpp The attached code fails to compile with g++: foo.cpp: In function ?void foo()?: foo.cpp:4: error: variable or field ?a? declared void foo.cpp:4: error: expected unqualified-id before ?++? token But does compile with clang++: foo.cpp:4:10: warning: expression result unused [-Wunused-value] void(a),++a; ^ 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 llvm.org Thu Mar 11 23:03:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Mar 2010 23:03:05 -0600 (CST) Subject: [LLVMbugs] [Bug 6578] Explicit template instantiations should have weak linkage In-Reply-To: References: Message-ID: <20100312050305.615FE2A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6578 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2010-03-11 23:03:05 CST --- Fixed in r98328. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 11 23:15:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Mar 2010 23:15:54 -0600 (CST) Subject: [LLVMbugs] [Bug 6578] Explicit template instantiations should have weak linkage In-Reply-To: References: Message-ID: <20100312051554.72DDF2A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6578 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #4 from Douglas Gregor 2010-03-11 23:15:54 CST --- My patch broke bootstrap. Reopening... -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Mar 11 23:26:10 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Mar 2010 23:26:10 -0600 (CST) Subject: [LLVMbugs] [Bug 6586] New: 2.7 Master Bug Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6586 Summary: 2.7 Master Bug Product: new-bugs Version: unspecified Platform: All OS/Version: All Status: NEW Severity: release blocker Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: tonic at nondot.org CC: llvmbugs at cs.uiuc.edu All bugs blocking the 2.7 release. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 12 01:11:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Mar 2010 01:11:43 -0600 (CST) Subject: [LLVMbugs] [Bug 4806] Missing warning for unused expression results with commas In-Reply-To: References: Message-ID: <20100312071143.2A68D2A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4806 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from John McCall 2010-03-12 01:11:42 CST --- "void(a), ++a;" is valid and clang is right to accept it. I think you're right, we shouldn't warn about it here; I see no reason not to treat a functional cast the same as a C-style cast in terms of suppressing unused-value warnings. Committed in r98335. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 12 01:16:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Mar 2010 01:16:38 -0600 (CST) Subject: [LLVMbugs] [Bug 6577] Assertion `Emitted && "Unable to issue a copy instruction!\n"' In-Reply-To: References: Message-ID: <20100312071638.BF2A92A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6577 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Chris Lattner 2010-03-12 01:16:38 CST --- Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100308/097698.html I will ask for this to be pulled into 2.7, 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 llvm.org Fri Mar 12 03:27:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Mar 2010 03:27:29 -0600 (CST) Subject: [LLVMbugs] [Bug 6587] New: llvm-gcc fails to compile clang-emitted .secrel32 assembly directives Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6587 Summary: llvm-gcc fails to compile clang-emitted .secrel32 assembly directives Product: clang Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: A.Mazur at adbglobal.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4487) --> (http://llvm.org/bugs/attachment.cgi?id=4487) Patch for DwarfPrinter (fixes the issue) Using LLVM+clang from trunk on a Win32 platform, clang generates assembly file (with no errors/warnings) which contains .secrel32 directives not in separate lines, but along with other directives. This leads to a compilation error with released llvm-gcc-4.2 and MinGW GCC 3.4.5: > Assembler messages: > Error: junk at end of line, first unrecognized character is `.' clang -v output: "C:/projekty/llvm/llvm/bin/Release/clang.exe" -cc1 -triple i686-pc-win32 -S -disable-free -disable-llvm-verifier -main-file-name -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -v -g -resource-dir C:/projekty/llvm/llvm/bin/lib/clang/1.1 -dependency-file -MT -O0 -Wall -Wno-unused-value -fmessage-length 0 -fms-extensions -fgnu-runtime -fdiagnostics-show-option -o C:/DOCUME~1/A8BA4~1.MAZ/LOCALS~1/Temp/cc-000000.s -x c clang -cc1 version 1.1 based upon llvm 2.7svn hosted on i686-pc-win32 llvm-gcc -v output: "C:/Program Files/llvm-gcc-4.2/bin/llvm-gcc.exe" -Wall -Wno-unused-value -O0 -fno-strict-aliasing -g -v -fno-strict-aliasing -MMD -c -o -x assembler C:/DOCUME~1/A8BA4~1.MAZ/LOCALS~1/Temp/cc-000000.s Using built-in specs. Target: i386-mingw32 Configured with: ../src/configure --build=i386-mingw32 --host=i386-mingw32 --tar get=i386-mingw32 --disable-shared --disable-bootstrap --disable-nls --with-arch= i486 --with-cpu=generic --prefix=c:/proj/llvm/llvm-gcc-4.2/install --enable-llvm =c:/proj/llvm/build --disable-win32-registry --enable-languages=c,c++ --program- prefix=llvm- --disable-sjlj-exceptions Thread model: win32 gcc version 4.2.1 (Based on Apple Inc. build 5649) (LLVM build) as --gstabs -o C:/DOCUME~1/A8BA4~1.MAZ/LOCALS~1/Temp/cc-000000.s as --version output: GNU assembler (GNU Binutils) 2.20 Copyright 2009 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or later. This program has absolutely no warranty. This assembler was configured for a target of `mingw32'. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 12 04:20:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Mar 2010 04:20:29 -0600 (CST) Subject: [LLVMbugs] [Bug 6584] -msse3 does not define __SSE3__ In-Reply-To: References: Message-ID: <20100312102029.8DFBC2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6584 Nuno Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |nunoplopes at sapo.pt Resolution| |FIXED --- Comment #1 from Nuno Lopes 2010-03-12 04:20:29 CST --- fixed in r98342. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 12 05:26:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Mar 2010 05:26:40 -0600 (CST) Subject: [LLVMbugs] [Bug 6588] New: Assertion `RegNo && RegNo < 159 && "Invalid register number!"' failed. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6588 Summary: Assertion `RegNo && RegNo < 159 && "Invalid register number!"' failed. Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: mail at exoticorn.de CC: llvmbugs at cs.uiuc.edu Compiling the attached linked.bc with llc -O0 from trunk failes with the following assertion: dranke at dranke-eee:~/coding/racer/tools/editor$ ~/coding/llvm/Release/bin/llc -O0 build/debug/linked.bc llc: /home/dranke/coding/llvm/lib/Target/X86/AsmPrinter/../X86GenAsmWriter.inc:3262: static const char* llvm::X86ATTInstPrinter::getRegisterName(unsigned int): Assertion `RegNo && RegNo < 159 && "Invalid register number!"' failed. 0 llc 0x08915298 Stack dump: 0. Program arguments: /home/dranke/coding/llvm/Release/bin/llc -O0 build/debug/linked.bc 1. Running pass 'X86 AT&T-Style Assembly Printer' on function '@_ZN8QPainter9drawImageEiiRK6QImageiiii6QFlagsIN2Qt19ImageConversionFlagEE' Aborted (core dumped) I build llvm/llc from: URL: http://llvm.org/svn/llvm-project/llvm/trunk Repository Root: http://llvm.org/svn/llvm-project Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8 Revision: 98339 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 12 05:46:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Mar 2010 05:46:39 -0600 (CST) Subject: [LLVMbugs] [Bug 6522] clang emits U symbol for builtin_copysignl while gcc does not In-Reply-To: References: Message-ID: <20100312114639.3FB8D2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6522 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #26 from Duncan Sands 2010-03-12 05:46:38 CST --- Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100308/097700.html It wasn't clear how to do a testcase, so I'm leaving that to the FreeBSD guys. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 12 06:01:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Mar 2010 06:01:33 -0600 (CST) Subject: [LLVMbugs] [Bug 6589] New: ReturnInst::op_iterator behave bad when #operands=0 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6589 Summary: ReturnInst::op_iterator behave bad when #operands=0 Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: martin at lumai.se CC: llvmbugs at cs.uiuc.edu The ReturnInst at the end of a void function reports 0 from getNumOperands(), but gives iterators where op_begin() != op_end(). The iterators does behave correctly when getNumOperands() == 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 llvm.org Fri Mar 12 06:37:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Mar 2010 06:37:42 -0600 (CST) Subject: [LLVMbugs] [Bug 6590] New: test/CodeGen/X86/bswap-inline-asm.ll fails on FreeBSD 9.0-CURRENT Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6590 Summary: test/CodeGen/X86/bswap-inline-asm.ll fails on FreeBSD 9.0-CURRENT Product: new-bugs Version: unspecified Platform: PC URL: http://https://wwws.clamav.net/bugzilla/show_bug.cgi?i d=1879#c2 OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: edwintorok at gmail.com CC: llvmbugs at cs.uiuc.edu On FreeBSD 9.0-CURRENT LLVM fails 1 test, see the ClamAV bugreport in the URL. The failure is reproducible on upstream LLVM: ******************** TEST 'LLVM :: CodeGen/X86/bswap-inline-asm.ll' FAILED ******************** Script: -- llc < /home/garga/llvm/test/CodeGen/X86/bswap-inline-asm.ll -march=x86-64 > /home/garga/llvm/test/CodeGen/X86/Output/bswap-inline-asm.ll.tmp not grep APP /home/garga/llvm/test/CodeGen/X86/Output/bswap-inline-asm.ll.tmp FileCheck /home/garga/llvm/test/CodeGen/X86/bswap-inline-asm.ll < /home/garga/llvm/test/CodeGen/X86/Output/bswap-inline-asm.ll.tmp -- Exit Code: 1 Command Output (stdout): -- Command 0: "llc" "-march=x86-64" Command 0 Result: 0 Command 0 Output: None Command 0 Stderr: Command 1: "not" "grep" "APP" "/home/garga/llvm/test/CodeGen/X86/Output/bswap-inline-asm.ll.tmp" Command 1 Result: 1 Command 1 Output: #APP #NO_APP #APP #NO_APP #APP #NO_APP #APP #NO_APP Command 1 Stderr: -- Command Output (stderr): -- -- ******************** Testing Time: 272.41s ******************** Failing Tests (1): LLVM :: CodeGen/X86/bswap-inline-asm.ll Expected Passes : 3426 Expected Failures : 19 Unsupported Tests : 1654 Unexpected Failures: 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 llvm.org Fri Mar 12 07:11:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Mar 2010 07:11:58 -0600 (CST) Subject: [LLVMbugs] [Bug 6591] New: llc/lli crashes: 1246 tests failed on Ubuntu hardy lpia Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6591 Summary: llc/lli crashes: 1246 tests failed on Ubuntu hardy lpia Product: new-bugs Version: trunk Platform: PC URL: http://launchpadlibrarian.net/40834252/buildlog_ubuntu -hardy-lpia.clamav_0.96~rc1%2Bdfsg-0ubuntu1~hardy1~ppa 2_FAILEDTOBUILD.txt.gz OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: edwintorok at gmail.com CC: llvmbugs at cs.uiuc.edu Bug originally noticed in ClamAV's buildlogs, reproduced with upstream LLVM: LLVM SVN r97959 ../llvm/configure --enable-optimized --enable-targets=host-only --disable-bindings On Ubuntu hardy, architecture lpia (an i686 with "power saving optimizations") llc/lli crashes a lot with -O2 (works with -O0): Expected Passes : 115 Expected Failures : 17 Unsupported Tests : 757 Unexpected Failures: 1246 I got an Ubuntu lpia chroot like this (on Debian): debootstrap --arch lpia hardy /home/edwin/hardy-lpia/ http://ports.ubuntu.com/ And in /etc/schroot/schroot.conf: [hardy-lpia] description=Ubuntu hardy lpia location=/home/edwin/hardy-lpia priority=3 users=edwin,root groups=edwin,root root-groups=root personality=linux32 type=directory $ Release/bin/llc <..//llvm/test/CodeGen/X86/xor.ll .file "" .text .globl test1 .align 16, 0x90 .type test1, at function test1: # @test1 # BB#0: xorps %xmm0, %xmm0 ret .size test1, .-test1 0 llc 0x087cb364 Stack dump: 0. Program arguments: Release/bin/llc 1. Running pass 'X86 DAG->DAG Instruction Selection' on function '@test2' Segmentation fault Ubuntu hardy lpia has this compiler: gcc -v Using built-in specs. Target: i686-linux-gnulp Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --with-arch=i686 --with-tune=i586 --enable-checking=release --build=i686-linux-gnulp --host=i686-linux-gnulp --target=i686-linux-gnulp Thread model: posix gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7) g++ -v Using built-in specs. Target: i686-linux-gnulp Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --with-arch=i686 --with-tune=i586 --enable-checking=release --build=i686-linux-gnulp --host=i686-linux-gnulp --target=i686-linux-gnulp Thread model: posix gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7) ld -v GNU ld (GNU Binutils for Ubuntu) 2.18.0.20080103 Karmic lpia (and others) built LLVM fine, and all tests passed. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 12 07:24:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Mar 2010 07:24:40 -0600 (CST) Subject: [LLVMbugs] [Bug 6592] New: Fake error concerning: cannot combine with previous 'extern' declaration specifier Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6592 Summary: Fake error concerning: cannot combine with previous 'extern' declaration specifier Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: Fons.Rademakers at cern.ch CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=4489) --> (http://llvm.org/bugs/attachment.cgi?id=4489) Source file exhibiting the problem The attached aap.cxx compiles fine with g++ (and for that matter any other know compiler), but not with clang++. Do: clang++ -c aap.cxx In file included from core/editline/src/TTermManip.cxx:1: In file included from core/editline/src/TTermManip.cxx:12: core/editline/src/TTermManip.h:19:12: error: cannot combine with previous 'extern' declaration specifier extern "C" typedef int (*PutcFunc_t)(int); ^ core/editline/src/TTermManip.h:99:4: error: unknown type name 'PutcFunc_t' PutcFunc_t fPutc; ^ In file included from core/editline/src/TTermManip.cxx:1: core/editline/src/TTermManip.cxx:29:22: error: expected ')' fPutc((PutcFunc_t)DefaultPutchar), ^ core/editline/src/TTermManip.cxx:29:9: note: to match this '(' fPutc((PutcFunc_t)DefaultPutchar), ^ 4 diagnostics generated. No errors compiling with g++. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 12 07:33:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Mar 2010 07:33:57 -0600 (CST) Subject: [LLVMbugs] [Bug 6593] New: False error: use of undeclared identifier 'address' Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6593 Summary: False error: use of undeclared identifier 'address' Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: Fons.Rademakers at cern.ch CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The attached aap.cxx compiles fine with g++ (and for that matter any other know compiler), but not with clang++. Do: clang++ -c aap.cxx In file included from core/base/src/G__Base2.cxx:1: In file included from core/base/src/G__Base2.cxx:18: include/TCollectionProxyInfo.h:217:40: error: use of undeclared identifier 'address' return e->fStart = e->fSize ? address(*c->begin()) : 0; ^ include/TCollectionProxyInfo.h:356:51: note: in instantiation of member function 'ROOT::TCollectionProxyInfo::Pushback > >::resize' requested here T::resize, ^ In file included from core/base/src/G__Base2.cxx:1: core/base/src/G__Base2.cxx:5914:41: note: in instantiation of function template specialization 'ROOT::TCollectionProxyInfo::Generate > > >' requested here instance.AdoptCollectionProxyInfo(TCollectionProxyInfo:... ^ In file included from core/base/src/G__Base2.cxx:1: In file included from core/base/src/G__Base2.cxx:18: include/TCollectionProxyInfo.h:104:20: note: must qualify identifier to find this declaration in dependent base class static void* address(T ref) { ^ include/TCollectionProxyInfo.h:154:29: error: use of undeclared identifier 'address' return e->fStart = address(ref); ^ include/TCollectionProxyInfo.h:358:51: note: in instantiation of member function 'ROOT::TCollectionProxyInfo::Type > >::first' requested here T::first, ^ In file included from core/base/src/G__Base2.cxx:1: core/base/src/G__Base2.cxx:5914:41: note: in instantiation of function template specialization 'ROOT::TCollectionProxyInfo::Generate > > >' requested here instance.AdoptCollectionProxyInfo(TCollectionProxyInfo:... ^ In file included from core/base/src/G__Base2.cxx:1: In file included from core/base/src/G__Base2.cxx:18: include/TCollectionProxyInfo.h:104:20: note: must qualify identifier to find this declaration in dependent base class static void* address(T ref) { ^ include/TCollectionProxyInfo.h:163:17: error: use of undeclared identifier 'address' return address(ref); ^ include/TCollectionProxyInfo.h:359:51: note: in instantiation of member function 'ROOT::TCollectionProxyInfo::Type > >::next' requested here T::next, ^ In file included from core/base/src/G__Base2.cxx:1: core/base/src/G__Base2.cxx:5914:41: note: in instantiation of function template specialization 'ROOT::TCollectionProxyInfo::Generate > > >' requested here instance.AdoptCollectionProxyInfo(TCollectionProxyInfo:... ^ In file included from core/base/src/G__Base2.cxx:1: In file included from core/base/src/G__Base2.cxx:18: include/TCollectionProxyInfo.h:104:20: note: must qualify identifier to find this declaration in dependent base class static void* address(T ref) { ^ include/TCollectionProxyInfo.h:217:40: error: use of undeclared identifier 'address' return e->fStart = e->fSize ? address(*c->begin()) : 0; ^ include/TCollectionProxyInfo.h:356:51: note: in instantiation of member function 'ROOT::TCollectionProxyInfo::Pushback, class std::allocator >, class std::allocator, class std::allocator > > > >::resize' requested here T::resize, ^ In file included from core/base/src/G__Base2.cxx:1: core/base/src/G__Base2.cxx:5972:41: note: in instantiation of function template specialization 'ROOT::TCollectionProxyInfo::Generate, class std::allocator >, class std::allocator, class std::allocator > > > > >' requested here instance.AdoptCollectionProxyInfo(TCollectionProxyInfo:... ^ In file included from core/base/src/G__Base2.cxx:1: In file included from core/base/src/G__Base2.cxx:18: include/TCollectionProxyInfo.h:104:20: note: must qualify identifier to find this declaration in dependent base class static void* address(T ref) { ^ include/TCollectionProxyInfo.h:154:29: error: use of undeclared identifier 'address' return e->fStart = address(ref); ^ include/TCollectionProxyInfo.h:358:51: note: in instantiation of member function 'ROOT::TCollectionProxyInfo::Type, class std::allocator >, class std::allocator, class std::allocator > > > >::first' requested here T::first, ^ In file included from core/base/src/G__Base2.cxx:1: core/base/src/G__Base2.cxx:5972:41: note: in instantiation of function template specialization 'ROOT::TCollectionProxyInfo::Generate, class std::allocator >, class std::allocator, class std::allocator > > > > >' requested here instance.AdoptCollectionProxyInfo(TCollectionProxyInfo:... ^ In file included from core/base/src/G__Base2.cxx:1: In file included from core/base/src/G__Base2.cxx:18: include/TCollectionProxyInfo.h:104:20: note: must qualify identifier to find this declaration in dependent base class static void* address(T ref) { ^ include/TCollectionProxyInfo.h:163:17: error: use of undeclared identifier 'address' return address(ref); ^ include/TCollectionProxyInfo.h:359:51: note: in instantiation of member function 'ROOT::TCollectionProxyInfo::Type, class std::allocator >, class std::allocator, class std::allocator > > > >::next' requested here T::next, ^ In file included from core/base/src/G__Base2.cxx:1: core/base/src/G__Base2.cxx:5972:41: note: in instantiation of function template specialization 'ROOT::TCollectionProxyInfo::Generate, class std::allocator >, class std::allocator, class std::allocator > > > > >' requested here instance.AdoptCollectionProxyInfo(TCollectionProxyInfo:... ^ In file included from core/base/src/G__Base2.cxx:1: In file included from core/base/src/G__Base2.cxx:18: include/TCollectionProxyInfo.h:104:20: note: must qualify identifier to find this declaration in dependent base class static void* address(T ref) { ^ 24 diagnostics generated. No errors compiling with g++. Cheers, Fons. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 12 07:40:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Mar 2010 07:40:40 -0600 (CST) Subject: [LLVMbugs] [Bug 6594] New: False error: template argument for template type parameter must be a type Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6594 Summary: False error: template argument for template type parameter must be a type Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: Fons.Rademakers at cern.ch CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=4491) --> (http://llvm.org/bugs/attachment.cgi?id=4491) Source file exhibiting the problem The attached aap.cxx compiles fine with g++ (and for that matter any other know compiler), but not with clang++. Do: clang++ -c aap.cxx In file included from cint/reflex/src/ClassBuilder.cxx:16: include/Reflex/Builder/ClassBuilder.h:465:63: error: template argument for template type parameter must be a type fClassBuilderImpl.AddFunctionMember(nam, FunctionDistiller... ^ In file included from cint/reflex/src/ClassBuilder.cxx:16: In file included from include/Reflex/Builder/ClassBuilder.h:20: include/Reflex/Builder/TypeBuilder.h:931:20: note: template parameter is declared here template class FunctionDistiller; ^ In file included from cint/reflex/src/ClassBuilder.cxx:16: include/Reflex/Builder/ClassBuilder.h:461:54: warning: unused parameter 'stubFP' [-Wunused-parameter] StubFunction stubFP, ^ include/Reflex/Builder/ClassBuilder.h:462:47: warning: unused parameter 'stubCtx' [-Wunused-parameter] void* stubCtx, ^ include/Reflex/Builder/ClassBuilder.h:463:53: warning: unused parameter 'params' [-Wunused-parameter] const char* params, ^ include/Reflex/Builder/ClassBuilder.h:464:54: warning: unused parameter 'modifiers' [-Wunused-parameter] unsigned int modifiers) { ^ include/Reflex/Builder/ClassBuilder.h:561:63: error: template argument for template type parameter must be a type fClassBuilderImpl.AddFunctionMember(nam, FunctionDistiller... ^ In file included from cint/reflex/src/ClassBuilder.cxx:16: In file included from include/Reflex/Builder/ClassBuilder.h:20: include/Reflex/Builder/TypeBuilder.h:931:20: note: template parameter is declared here template class FunctionDistiller; ^ In file included from cint/reflex/src/ClassBuilder.cxx:16: include/Reflex/Builder/ClassBuilder.h:557:35: warning: unused parameter 'stubFP' [-Wunused-parameter] StubFunction stubFP, ^ include/Reflex/Builder/ClassBuilder.h:558:28: warning: unused parameter 'stubCtx' [-Wunused-parameter] void* stubCtx, ^ include/Reflex/Builder/ClassBuilder.h:559:34: warning: unused parameter 'params' [-Wunused-parameter] const char* params, ^ include/Reflex/Builder/ClassBuilder.h:560:35: warning: unused parameter 'modifiers' [-Wunused-parameter] unsigned int modifiers) { ^ 12 diagnostics generated. (proof) [343] g++ -g -m64 -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -D_REENTRANT -pthread -o cint/reflex/src/ClassBuilder.o -c cint/reflex/src/ClassBuilder.cxx (proof) [344] clang++ -g -m64 -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -D_REENTRANT -pthread -E -o aap.cxx cint/reflex/src/ClassBuilder.cxx (proof) [345] clang++ -c aap clang: error: no such file or directory: 'aap' clang: error: no input files (proof) [346] clang++ -c aap.cxx In file included from cint/reflex/src/ClassBuilder.cxx:1: In file included from cint/reflex/src/ClassBuilder.cxx:16: include/Reflex/Builder/ClassBuilder.h:465:63: error: template argument for template type parameter must be a type fClassBuilderImpl.AddFunctionMember(nam, FunctionDistiller... ^ In file included from cint/reflex/src/ClassBuilder.cxx:1: In file included from cint/reflex/src/ClassBuilder.cxx:16: In file included from include/Reflex/Builder/ClassBuilder.h:20: include/Reflex/Builder/TypeBuilder.h:931:20: note: template parameter is declared here template class FunctionDistiller; ^ In file included from cint/reflex/src/ClassBuilder.cxx:1: In file included from cint/reflex/src/ClassBuilder.cxx:16: include/Reflex/Builder/ClassBuilder.h:561:63: error: template argument for template type parameter must be a type fClassBuilderImpl.AddFunctionMember(nam, FunctionDistiller... ^ In file included from cint/reflex/src/ClassBuilder.cxx:1: In file included from cint/reflex/src/ClassBuilder.cxx:16: In file included from include/Reflex/Builder/ClassBuilder.h:20: include/Reflex/Builder/TypeBuilder.h:931:20: note: template parameter is declared here template class FunctionDistiller; ^ 4 diagnostics generated. No errors compiling with g++. Cheers, Fons. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 12 07:58:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Mar 2010 07:58:48 -0600 (CST) Subject: [LLVMbugs] [Bug 6590] test/CodeGen/X86/bswap-inline-asm.ll fails on FreeBSD 9.0-CURRENT In-Reply-To: References: Message-ID: <20100312135848.8717F2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6590 Benjamin Kramer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |benny.kra at gmail.com Resolution| |FIXED --- Comment #1 from Benjamin Kramer 2010-03-12 07:58:48 CST --- This should be fixed in r98349. http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100308/097702.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 llvm.org Fri Mar 12 08:08:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Mar 2010 08:08:25 -0600 (CST) Subject: [LLVMbugs] [Bug 6595] New: Flase error: conditional expression is ambiguous Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6595 Summary: Flase error: conditional expression is ambiguous Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: Fons.Rademakers at cern.ch CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=4492) --> (http://llvm.org/bugs/attachment.cgi?id=4492) Source file exhibiting the problem The attached aap.cxx compiles fine with g++ (and for that matter any other know compiler), but not with clang++. Do: clang++ -c aap.cxx In file included from net/net/src/TApplicationRemote.cxx:1: net/net/src/TApplicationRemote.cxx:102:24: error: conditional expression is ambiguous; 'class TString' can be converted to 'char const [1]' and vice versa TString user = (pw) ? pw->fUser : ""; ^ ~~~~~~~~~ ~~ 1 diagnostic generated. Compiles fine with g++. Cheers, Fons. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 12 08:34:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Mar 2010 08:34:08 -0600 (CST) Subject: [LLVMbugs] [Bug 6596] New: Assertion failed: (Ctx->isFileContext() && "We should have been looking only at file context here already."), function CppLookupName, file SemaLookup.cpp, line 730. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6596 Summary: Assertion failed: (Ctx->isFileContext() && "We should have been looking only at file context here already."), function CppLookupName, file SemaLookup.cpp, line 730. Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ich at az2000.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com [ 0%] Building CXX object CMakeFiles/openlierox.dir/src/gusanos/game_actions.o Assertion failed: (Ctx->isFileContext() && "We should have been looking only at file context here already."), function CppLookupName, file SemaLookup.cpp, line 730. 0 clang 0x00eec624 main + 15620188 1 clang 0x00eeca8e main + 15621318 2 libSystem.B.dylib 0x9346e2bb _sigtramp + 43 3 libSystem.B.dylib 0xffffffff _sigtramp + 1824071023 4 libSystem.B.dylib 0x934e223a raise + 26 5 libSystem.B.dylib 0x934ee679 abort + 73 6 libSystem.B.dylib 0x934e33db __assert_rtn + 101 7 clang 0x0030feda main + 3182866 8 clang 0x003102f1 main + 3183913 9 clang 0x00233ca0 main + 2281176 10 clang 0x002347ea main + 2284066 11 clang 0x005bbab2 main + 5983466 12 clang 0x005de7c3 main + 6126075 13 clang 0x0059d48d main + 5859013 14 clang 0x005a1113 main + 5874507 15 clang 0x005a14b4 main + 5875436 16 clang 0x005dd0fd main + 6120245 17 clang 0x005a80c5 main + 5903101 18 clang 0x005a13de main + 5875222 19 clang 0x005ce4f4 main + 6059820 20 clang 0x005d2e80 main + 6078648 21 clang 0x005d3553 main + 6080395 22 clang 0x005dde8b main + 6123715 23 clang 0x005a0ce1 main + 5873433 24 clang 0x005dc3c7 main + 6116863 25 clang 0x005dc414 main + 6116940 26 clang 0x005dd1f4 main + 6120492 27 clang 0x005dd332 main + 6120810 28 clang 0x00224288 main + 2217152 29 clang 0x0003fef6 main + 233774 30 clang 0x0003fde6 main + 233502 31 clang 0x0002141b main + 108115 32 clang 0x00003414 _mh_execute_header + 9236 33 clang 0x00006eb1 main + 233 34 clang 0x00002336 _mh_execute_header + 4918 35 clang 0x00000033 _mh_execute_header + 18446744073709547571 Stack dump: 0. Program arguments: /Users/az/Programmierung/CppIDE/llvm-src/Debug/bin/clang -cc1 -triple i386-apple-darwin9.0.0 -S -disable-free -main-file-name game_actions.cpp -pic-level 1 -mdisable-fp-elim -target-cpu yonah -g -resource-dir /Users/az/Programmierung/CppIDE/llvm-src/Debug/lib/clang/1.1 -DDEBUG=1 -D_AI_DEBUG -D SYSTEM_DATA_DIR="/usr/share/games" -I/Users/az/Programmierung/openlierox/./optional-includes/generated -I/Users/az/Programmierung/openlierox/./include -I/Users/az/Programmierung/openlierox/./src -I/Users/az/Programmierung/openlierox/./libs/pstreams -I/usr/include/libxml2 -I/usr/local/include/libxml2 -I/Users/az/Programmierung/openlierox/./libs/breakpad/src -I/Users/az/Programmierung/openlierox/./libs/hawknl/include -I/Users/az/Programmierung/openlierox/./libs/libzip -I/Users/az/Programmierung/openlierox/./libs/lua -I/Users/az/Programmierung/openlierox/./build/Xcode/include -I/Users/az/Programmierung/openlierox/./build/Xcode/freealut/include -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/SDL_image.framework/Headers -I/Library/Frameworks/SDL_mixer.framework/Headers -I/Library/Frameworks/UnixImageIO.framework/Headers -I/Library/Frameworks/GD.framework/Headers -F ./build/Xcode -F/Library/Frameworks -Wall -fmessage-length 99 -pthread -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/P9/P9wWY+Z8HDeOPixVmDZ0J++++TI/-Tmp-/cc-pnjsM0.s -x c++ /Users/az/Programmierung/openlierox/src/gusanos/game_actions.cpp 1. /Users/az/Programmierung/openlierox/src/gusanos/game_actions.cpp:50:23: current parser token 'ActionParamFlags' 2. /Users/az/Programmierung/openlierox/src/gusanos/game_actions.cpp:48:1: parsing function body 'registerGameActions' 3. /Users/az/Programmierung/openlierox/src/gusanos/game_actions.cpp:48:1: in compound statement ('{}') 4. /Users/az/Programmierung/openlierox/src/gusanos/game_actions.cpp:49:2: parsing namespace 'af' clang: error: compiler command failed due to signal 6 (use -v to see invocation) make[2]: *** [CMakeFiles/openlierox.dir/src/gusanos/game_actions.o] Error 250 make[1]: *** [CMakeFiles/openlierox.dir/all] Error 2 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 llvm.org Fri Mar 12 08:52:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Mar 2010 08:52:47 -0600 (CST) Subject: [LLVMbugs] [Bug 6597] New: Assertion failed: (false && "Unhandled type!"), function getTypeInfoLinkage, file CGRTTI.cpp, line 333. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6597 Summary: Assertion failed: (false && "Unhandled type!"), function getTypeInfoLinkage, file CGRTTI.cpp, line 333. Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ich at az2000.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com [ 0%] Building CXX object CMakeFiles/openlierox.dir/src/gusanos/gconsole.o Assertion failed: (false && "Unhandled type!"), function getTypeInfoLinkage, file CGRTTI.cpp, line 333. 0 clang 0x00eec624 main + 15620188 1 clang 0x00eeca8e main + 15621318 2 libSystem.B.dylib 0x9346e2bb _sigtramp + 43 3 libSystem.B.dylib 0xffffffff _sigtramp + 1824071023 4 libSystem.B.dylib 0x934e223a raise + 26 5 libSystem.B.dylib 0x934ee679 abort + 73 6 libSystem.B.dylib 0x934e33db __assert_rtn + 101 7 clang 0x001c53e2 main + 1828378 8 clang 0x001c558c main + 1828804 9 clang 0x001c5403 main + 1828411 10 clang 0x001c58ef main + 1829671 11 clang 0x001c5cfa main + 1830706 12 clang 0x001725b3 main + 1488875 13 clang 0x001603de main + 1414678 14 clang 0x00166c17 main + 1441359 15 clang 0x0018c531 main + 1595241 16 clang 0x0018d807 main + 1600063 17 clang 0x00190380 main + 1611192 18 clang 0x00188b38 main + 1580400 19 clang 0x0019013c main + 1610612 20 clang 0x00187d4b main + 1576835 21 clang 0x001625fa main + 1423410 22 clang 0x001cb7f7 main + 1853999 23 clang 0x001cc3ff main + 1857079 24 clang 0x001cd49a main + 1861330 25 clang 0x001cb662 main + 1853594 26 clang 0x001cd128 main + 1860448 27 clang 0x001cd3b1 main + 1861097 28 clang 0x001cb662 main + 1853594 29 clang 0x001cbc0f main + 1855047 30 clang 0x001cb95e main + 1854358 31 clang 0x001cd128 main + 1860448 32 clang 0x001cd3b1 main + 1861097 33 clang 0x001cb662 main + 1853594 34 clang 0x001f3729 main + 2017633 35 clang 0x001f6411 main + 2029129 36 clang 0x001fead7 main + 2063631 37 clang 0x001fedaf main + 2064359 38 clang 0x001fef51 main + 2064777 39 clang 0x001ff35c main + 2065812 40 clang 0x002170ee main + 2163494 41 clang 0x0001f8dc main + 101140 42 clang 0x0022435a main + 2217362 43 clang 0x0003fef6 main + 233774 44 clang 0x0003fde6 main + 233502 45 clang 0x0002141b main + 108115 46 clang 0x00003414 _mh_execute_header + 9236 47 clang 0x00006eb1 main + 233 48 clang 0x00002336 _mh_execute_header + 4918 49 clang 0x00000033 _mh_execute_header + 18446744073709547571 Stack dump: 0. Program arguments: /Users/az/Programmierung/CppIDE/llvm-src/Debug/bin/clang -cc1 -triple i386-apple-darwin9.0.0 -S -disable-free -main-file-name gconsole.cpp -pic-level 1 -mdisable-fp-elim -target-cpu yonah -g -resource-dir /Users/az/Programmierung/CppIDE/llvm-src/Debug/lib/clang/1.1 -DDEBUG=1 -D_AI_DEBUG -D SYSTEM_DATA_DIR="/usr/share/games" -I/Users/az/Programmierung/openlierox/./optional-includes/generated -I/Users/az/Programmierung/openlierox/./include -I/Users/az/Programmierung/openlierox/./src -I/Users/az/Programmierung/openlierox/./libs/pstreams -I/usr/include/libxml2 -I/usr/local/include/libxml2 -I/Users/az/Programmierung/openlierox/./libs/breakpad/src -I/Users/az/Programmierung/openlierox/./libs/hawknl/include -I/Users/az/Programmierung/openlierox/./libs/libzip -I/Users/az/Programmierung/openlierox/./libs/lua -I/Users/az/Programmierung/openlierox/./build/Xcode/include -I/Users/az/Programmierung/openlierox/./build/Xcode/freealut/include -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/SDL_image.framework/Headers -I/Library/Frameworks/SDL_mixer.framework/Headers -I/Library/Frameworks/UnixImageIO.framework/Headers -I/Library/Frameworks/GD.framework/Headers -F ./build/Xcode -F/Library/Frameworks -Wall -fmessage-length 99 -pthread -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/P9/P9wWY+Z8HDeOPixVmDZ0J++++TI/-Tmp-/cc-mNH5VM.s -x c++ /Users/az/Programmierung/openlierox/src/gusanos/gconsole.cpp 1. parser at end of file 2. Per-file LLVM IR generation 3. /usr/local/include/boost/function/function_base.hpp:420:9: Generating code for declaration 'boost::detail::function::functor_manager (*)(std::list, std::allocator > > const &)>::manage' 4. /usr/local/include/boost/function/function_base.hpp:422:9: LLVM IR generation of compound statement ('{}') 5. /usr/local/include/boost/function/function_base.hpp:424:23: LLVM IR generation of compound statement ('{}') clang: error: compiler command failed due to signal 6 (use -v to see invocation) make[2]: *** [CMakeFiles/openlierox.dir/src/gusanos/gconsole.o] Error 250 make[1]: *** [CMakeFiles/openlierox.dir/all] Error 2 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 llvm.org Fri Mar 12 10:06:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Mar 2010 10:06:19 -0600 (CST) Subject: [LLVMbugs] [Bug 6598] New: duplicate symbol... Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6598 Summary: duplicate symbol... Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: Fons.Rademakers at cern.ch CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=4495) --> (http://llvm.org/bugs/attachment.cgi?id=4495) Source file exhibiting the problem To see this behaviour do: $ g++ -c aap1.cxx (file fails with assert using clang++, bug 6565) $ clang++ -c aap2.cxx $ clang++ -dynamiclib -single_module -undefined dynamic_lookup -g -m64 -o aap.so aap1.o aap2.o -ldl ld: duplicate symbol __ZTS12TMatrixTLazyIfE in aap2.o and aap1.o clang: error: linker command failed with exit code 1 (use -v to see invocation) recompile aap2.cxx with g++ and the issue disappears. Cheers, Fons. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 12 12:11:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Mar 2010 12:11:07 -0600 (CST) Subject: [LLVMbugs] [Bug 6587] llvm-gcc fails to compile clang-emitted .secrel32 assembly directives In-Reply-To: References: Message-ID: <20100312181107.D77B02A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6587 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-03-12 12:11:07 CST --- Great catch, sorry for the breakage, your patch is applied here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100308/097712.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 llvm.org Fri Mar 12 13:18:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Mar 2010 13:18:51 -0600 (CST) Subject: [LLVMbugs] [Bug 6588] Assertion `RegNo && RegNo < 159 && "Invalid register number!"' failed. In-Reply-To: References: Message-ID: <20100312191851.643722A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6588 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Devang Patel 2010-03-12 13:18:50 CST --- Fixed. r98369. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 12 14:27:35 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Mar 2010 14:27:35 -0600 (CST) Subject: [LLVMbugs] [Bug 6601] New: Generic codegen tests that need -march=x86, and fail on ppc Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6601 Summary: Generic codegen tests that need -march=x86, and fail on ppc Product: new-bugs Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: edwintorok at gmail.com CC: llvmbugs at cs.uiuc.edu See http://launchpadlibrarian.net/40883485/buildlog_ubuntu-lucid-powerpc.clamav_0.96~rc1%2Bdfsg-0ubuntu1_FAILEDTOBUILD.txt.gz Some are missing a target, and some have X86, which of course won't work if only the PPC backend is built. The tests should have proper -march, and XFAIL on anything else than they target (or moved to their own target dir). Testing: 0 .. 10. FAIL: LLVM :: CodeGen/Generic/2007-02-16-BranchFold.ll (380 of 2135) ******************** TEST 'LLVM :: CodeGen/Generic/2007-02-16-BranchFold.ll' FAILED ******************** Script: -- llc < /build/buildd/clamav-0.96~rc1+dfsg/libclamav/c++/llvm/test/CodeGen/Generic/2007-02-16-BranchFold.ll -enable-tail-merge=0 | not grep jmp -- Exit Code: 1 Command Output (stdout): -- Command has output on stderr! -- Command Output (stderr): -- llc: error auto-selecting target for module 'No available targets are compatible with this triple, see -version for the available targets.'. Please use the -march option to explicitly pick a target. -- ******************** Testing: 0 .. 10. FAIL: LLVM :: CodeGen/Generic/2007-04-13-SwitchLowerBadPhi.ll (381 of 2135) ******************** TEST 'LLVM :: CodeGen/Generic/2007-04-13-SwitchLowerBadPhi.ll' FAILED ******************** Script: -- llc < /build/buildd/clamav-0.96~rc1+dfsg/libclamav/c++/llvm/test/CodeGen/Generic/2007-04-13-SwitchLowerBadPhi.ll -O0 -- Exit Code: 1 Command Output (stdout): -- Command has output on stderr! -- Command Output (stderr): -- llc: error auto-selecting target for module 'No available targets are compatible with this triple, see -version for the available targets.'. Please use the -march option to explicitly pick a target. -- ******************** Testing: 0 .. 10.. FAIL: LLVM :: CodeGen/Generic/2007-05-05-Personality.ll (388 of 2135) ******************** TEST 'LLVM :: CodeGen/Generic/2007-05-05-Personality.ll' FAILED ******************** Script: -- llc < /build/buildd/clamav-0.96~rc1+dfsg/libclamav/c++/llvm/test/CodeGen/Generic/2007-05-05-Personality.ll -mtriple=i686-pc-linux-gnu -enable-eh -o - | grep zPL -- Exit Code: 1 Command Output (stdout): -- Command has output on stderr! -- Command Output (stderr): -- llc: error auto-selecting target for module 'No available targets are compatible with this triple, see -version for the available targets.'. Please use the -march option to explicitly pick a target. -- ******************** Testing: 0 .. 10.. FAIL: LLVM :: CodeGen/Generic/2007-12-17-InvokeAsm.ll (390 of 2135) ******************** TEST 'LLVM :: CodeGen/Generic/2007-12-17-InvokeAsm.ll' FAILED ******************** Script: -- llc < /build/buildd/clamav-0.96~rc1+dfsg/libclamav/c++/llvm/test/CodeGen/Generic/2007-12-17-InvokeAsm.ll -enable-eh -- Exit Code: 1 Command Output (stdout): -- Command has output on stderr! -- Command Output (stderr): -- llc: error auto-selecting target for module 'No available targets are compatible with this triple, see -version for the available targets.'. Please use the -march option to explicitly pick a target. -- ******************** Testing: 0 .. 10.. FAIL: LLVM :: CodeGen/Generic/2007-11-21-UndeadIllegalNode.ll (391 of 2135) ******************** TEST 'LLVM :: CodeGen/Generic/2007-11-21-UndeadIllegalNode.ll' FAILED ******************** Script: -- llc < /build/buildd/clamav-0.96~rc1+dfsg/libclamav/c++/llvm/test/CodeGen/Generic/2007-11-21-UndeadIllegalNode.ll -o - -- Exit Code: 1 Command Output (stdout): -- Command has output on stderr! -- Command Output (stderr): -- llc: error auto-selecting target for module 'No available targets are compatible with this triple, see -version for the available targets.'. Please use the -march option to explicitly pick a target. -- ******************** Testing: 0 .. 10.. FAIL: LLVM :: CodeGen/Generic/2007-12-31-UnusedSelector.ll (392 of 2135) ******************** TEST 'LLVM :: CodeGen/Generic/2007-12-31-UnusedSelector.ll' FAILED ******************** Script: -- llc < /build/buildd/clamav-0.96~rc1+dfsg/libclamav/c++/llvm/test/CodeGen/Generic/2007-12-31-UnusedSelector.ll -enable-eh -- Exit Code: 1 Command Output (stdout): -- Command has output on stderr! -- Command Output (stderr): -- llc: error auto-selecting target for module 'No available targets are compatible with this triple, see -version for the available targets.'. Please use the -march option to explicitly pick a target. -- ******************** Testing: 0 .. 10.. FAIL: LLVM :: CodeGen/Generic/2008-08-07-PtrToInt-SmallerInt.ll (400 of 2135) ******************** TEST 'LLVM :: CodeGen/Generic/2008-08-07-PtrToInt-SmallerInt.ll' FAILED ******************** Script: -- llc < /build/buildd/clamav-0.96~rc1+dfsg/libclamav/c++/llvm/test/CodeGen/Generic/2008-08-07-PtrToInt-SmallerInt.ll -- Exit Code: 1 Command Output (stdout): -- Command has output on stderr! -- Command Output (stderr): -- llc: error auto-selecting target for module 'No available targets are compatible with this triple, see -version for the available targets.'. Please use the -march option to explicitly pick a target. -- ******************** Testing: 0 .. 10.. FAIL: LLVM :: CodeGen/Generic/2009-11-16-BadKillsCrash.ll (406 of 2135) ******************** TEST 'LLVM :: CodeGen/Generic/2009-11-16-BadKillsCrash.ll' FAILED ******************** Script: -- llc < /build/buildd/clamav-0.96~rc1+dfsg/libclamav/c++/llvm/test/CodeGen/Generic/2009-11-16-BadKillsCrash.ll -- Exit Code: 1 Command Output (stdout): -- Command has output on stderr! -- Command Output (stderr): -- llc: error auto-selecting target for module 'No available targets are compatible with this triple, see -version for the available targets.'. Please use the -march option to explicitly pick a target. -- ******************** Testing: 0 .. 10.. FAIL: LLVM :: CodeGen/Generic/GC/redundant_init.ll (425 of 2135) ******************** TEST 'LLVM :: CodeGen/Generic/GC/redundant_init.ll' FAILED ******************** Script: -- llc < /build/buildd/clamav-0.96~rc1+dfsg/libclamav/c++/llvm/test/CodeGen/Generic/GC/redundant_init.ll -march=x86 | ignore grep {movl..0} | count 0 -- Exit Code: 1 Command Output (stdout): -- Command has output on stderr! -- Command Output (stderr): -- llc: error: invalid target 'x86'. -- ******************** Testing: 0 .. 10.. FAIL: LLVM :: CodeGen/Generic/GC/simple_ocaml.ll (426 of 2135) ******************** TEST 'LLVM :: CodeGen/Generic/GC/simple_ocaml.ll' FAILED ******************** Script: -- llc < /build/buildd/clamav-0.96~rc1+dfsg/libclamav/c++/llvm/test/CodeGen/Generic/GC/simple_ocaml.ll | grep caml.*__frametable llc < /build/buildd/clamav-0.96~rc1+dfsg/libclamav/c++/llvm/test/CodeGen/Generic/GC/simple_ocaml.ll -march=x86 | grep {movl .0} -- Exit Code: 1 Command Output (stdout): -- Command has output on stderr! .globl caml__frametable caml__frametable: -- Command Output (stderr): -- llc: error: invalid target 'x86'. -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. Testing Time: 15.89s ******************** Failing Tests (10): LLVM :: CodeGen/Generic/2007-02-16-BranchFold.ll LLVM :: CodeGen/Generic/2007-04-13-SwitchLowerBadPhi.ll LLVM :: CodeGen/Generic/2007-05-05-Personality.ll LLVM :: CodeGen/Generic/2007-11-21-UndeadIllegalNode.ll LLVM :: CodeGen/Generic/2007-12-17-InvokeAsm.ll LLVM :: CodeGen/Generic/2007-12-31-UnusedSelector.ll LLVM :: CodeGen/Generic/2008-08-07-PtrToInt-SmallerInt.ll LLVM :: CodeGen/Generic/2009-11-16-BadKillsCrash.ll LLVM :: CodeGen/Generic/GC/redundant_init.ll LLVM :: CodeGen/Generic/GC/simple_ocaml.ll Expected Passes : 486 Expected Failures : 15 Unsupported Tests : 1624 Unexpected Failures: 10 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Mar 12 17:57:22 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Mar 2010 17:57:22 -0600 (CST) Subject: [LLVMbugs] [Bug 6603] New: msp430 backend: wrong addressing mode for 'br' instruction Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6603 Summary: msp430 backend: wrong addressing mode for 'br' instruction Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: pagariya at cs.utah.edu CC: llvmbugs at cs.uiuc.edu, regehr at cs.utah.edu Created an attachment (id=4501) --> (http://llvm.org/bugs/attachment.cgi?id=4501) Test case Bug: llvm assembly that contains the branch instruction 'br' uses the indexed addressing mode, instead of direct mode which is intended. Description: Let there be a branch from label A to label B. The code would be: .L_A br #.L_B ... Some code that doesn't fit in the offset range of absolute jump. Hence branch instruction is used. ... .L_B mov #0, r15 ret The msp430x1xx user guide specifies 7 addressing modes for 'br' instruction. The relevant ones are: 1. BR #EXEC ;Branch to label EXEC or direct branch (e.g. #0A4h) ; Core instruction MOV @PC+,PC 2. BR EXEC ; Branch to the address contained in EXEC ; Core instruction MOV X(PC),PC ; Indirect address 3. BR &EXEC ; Branch to the address contained in absolute ; address EXEC ; Core instruction MOV X(0),PC ; Indirect address In the above example, we want to branch to a label (direct addressing mode) and hence we should use the first addressing mode (br #EXEC). For the same purpose, llvm generates code that uses second addressing mode (br EXEC). Branch instructions are emulated as: br dst -> mov.w dst, pc The llvm generated code gets translated to mov.w $off(PC), PC Here offset is an integer corresponding to the jump offset. What actually happens: PC = mem[PC + offset] Desired instruction: PC = PC + offset Fix: Labels for branch instruction should be prefixed with '#' to make it direct addressing mode. I am attaching all the relevant files. The test case is fairly big (55 lines) because 'br' instruction is generated only when the offset is huge. It shouldn't be a problem for this bug though. Cmd line options: pagariya at aleph:~/tmp$ clang -ccc-host-triple msp430-elf -I/home/pagariya/res-pagariya/llvm-msp430/msp430/include -nostdinc -v -O0 -S foo.c clang version 1.1 (trunk 184) Target: msp430-elf- Thread model: posix "/uusoc/facility/res/embed/users/pagariya/llvm-msp430/bin/clang" -cc1 -triple msp430-elf- -S -disable-free -main-file-name foo.c -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -v -nostdinc -resource-dir /uusoc/facility/res/embed/users/pagariya/llvm-msp430/lib/clang/1.1 -I/home/pagariya/res-pagariya/llvm-msp430/msp430/include -O0 -fmessage-length 102 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o foo.s -x c foo.c clang -cc1 version 1.1 based upon llvm 2.7svn hosted on i386-pc-linux-gnu #include "..." search starts here: #include <...> search starts here: /home/pagariya/res-pagariya/llvm-msp430/msp430/include /uusoc/facility/res/embed/users/pagariya/llvm-msp430/lib/clang/1.1/include End of search list. pagariya at aleph:~/tmp$ clang -ccc-host-triple msp430-elf -L/home/pagariya/res-pagariya/llvm-msp430/lib/msp430 -L/home/pagariya/res-pagariya/llvm-msp430/msp430/lib -L/home/pagariya/res-pagariya/llvm-msp430/lib/gcc-lib/msp430/3.2.3 -Wl,-m,msp430x1611 -o foo.elf /home/pagariya/res-pagariya/llvm-msp430/msp430/lib/crt430x1611.o foo-asm.s -lgcc -v clang version 1.1 (trunk 184) Target: msp430-elf- Thread model: posix "/uusoc/facility/res/embed/users/pagariya/llvm-msp430/bin/msp430-as" -o /tmp/cc-tgCJbV.o foo-asm.s "/uusoc/facility/res/embed/users/pagariya/llvm-msp430/bin/msp430-ld" -o foo.elf -L/home/pagariya/res-pagariya/llvm-msp430/lib/msp430 -L/home/pagariya/res-pagariya/llvm-msp430/msp430/lib -L/home/pagariya/res-pagariya/llvm-msp430/lib/gcc-lib/msp430/3.2.3 -m msp430x1611 /home/pagariya/res-pagariya/llvm-msp430/msp430/lib/crt430x1611.o /tmp/cc-tgCJbV.o -lgcc -L../lib/ -lcompiler_rt.Generic -lc pagariya at aleph:~/tmp$ uname -a Linux aleph 2.6.24-24-generic #1 SMP Fri Sep 18 16:49:39 UTC 2009 i686 GNU/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 llvm.org Fri Mar 12 18:00:24 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Mar 2010 18:00:24 -0600 (CST) Subject: [LLVMbugs] [Bug 6604] New: Combine Instructions phase generates bogus offset with some record types Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6604 Summary: Combine Instructions phase generates bogus offset with some record types Product: new-bugs Version: 2.6 Platform: All OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: bugzilla at quickbrownfox.org CC: llvmbugs at cs.uiuc.edu I'm working on a toy compiler for a functional language that uses closures, and I believe LLVM incorrectly optimizes access to the closure fields when they're the result of a function. This started happening when I began compiling to "untyped" LLVM assembly by making liberal use of of the bitcast operator. Here's a minimal example, where I call a function and interpret the result type as record containing a function and its argument. %record = type { i32 (i32)*, i32} declare i8* @mystery(); define i32 @broken() { %1 = call i8* @mystery(); %2 = bitcast i8* %1 to %record*; %funcRef = getelementptr %record* %2, i32 0, i32 0; %func = load i32 (i32)** %funcRef; %argRef = getelementptr %record* %2, i32 0, i32 1; %arg = load i32* %argRef; %res = call i32 %func(i32 %arg); ret i32 %res; } And here's the function after running opt -instcombine: define i32 @broken() { %1 = call i8* @mystery() ; [#uses=2] %funcRef = bitcast i8* %1 to i32 (i32)** ; [#uses=1] %func = load i32 (i32)** %funcRef ; [#uses=1] %argRef = getelementptr i8* %1, i64 8 ; [#uses=1] %2 = bitcast i8* %argRef to i32* ; [#uses=1] %arg = load i32* %2 ; [#uses=1] %res = call i32 %func(i32 %arg) ; [#uses=1] ret i32 %res } Note how the second member of the record is being accessed with a byte offset of 8, instead of 4. * Changing the order of the fields in the record doesn't help. * Declaring @mystery to return a record type directly, instead of bitcasting from i8*, will fix it. * A similar example that takes a { i32, i32 } and adds the fields works fine. So the bug seems to be due to casting a value to a record containing a function pointer, and then accessing the fields of that record. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Mar 13 00:47:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 13 Mar 2010 00:47:30 -0600 (CST) Subject: [LLVMbugs] [Bug 6605] New: ice: Cannot use this version of ReplaceAllUsesWith! Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6605 Summary: ice: Cannot use this version of ReplaceAllUsesWith! Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu Created an attachment (id=4506) --> (http://llvm.org/bugs/attachment.cgi?id=4506) failure-inducing input regehr at john-home:~/volatile/bugs/tmp292$ clang -v clang version 1.1 (trunk 98425) Target: i386-pc-linux-gnu Thread model: posix regehr at john-home:~/volatile/bugs/tmp292$ clang -O2 -c small.c clang: SelectionDAG.cpp:4972: void llvm::SelectionDAG::ReplaceAllUsesWith(llvm::SDNode*, llvm::SDNode*, llvm::SelectionDAG::DAGUpdateListener*): Assertion `(!From->hasAnyUseOfValue(i) || From->getValueType(i) == To->getValueType(i)) && "Cannot use this version of ReplaceAllUsesWith!"' failed. 0 clang 0x08eec968 Stack dump: 0. Program arguments: /home/regehr/z/compiler-install/llvm-gcc-r98425-install/bin/clang -cc1 -triple i386-pc-linux-gnu -S -disable-free -main-file-name small.c -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4 -resource-dir /home/regehr/z/compiler-install/llvm-gcc-r98425-install/lib/clang/1.1 -O2 -fmessage-length 80 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-mrfDfd.s -x c small.c 1. parser at end of file 2. Code generation 3. Running pass 'X86 DAG->DAG Instruction Selection' on function '@func_1' clang: error: compiler command failed due to signal 6 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Mar 13 00:50:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 13 Mar 2010 00:50:20 -0600 (CST) Subject: [LLVMbugs] [Bug 6606] New: ice: replaceAllUses of value with new value of different type! Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6606 Summary: ice: replaceAllUses of value with new value of different type! Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu Created an attachment (id=4507) --> (http://llvm.org/bugs/attachment.cgi?id=4507) failure-inducing input regehr at john-home:~/volatile/bugs/tmp293$ clang -v clang version 1.1 (trunk 97208) Target: i386-pc-linux-gnu Thread model: posix regehr at john-home:~/volatile/bugs/tmp293$ clang -O1 small.c small.c:6:9: warning: expression result unused [-Wunused-value] *l_22 != (0 >= *p_17 | *p_17 == 0); ~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ clang: /home/regehr/llvm/lib/VMCore/Value.cpp:317: void llvm::Value::replaceAllUsesWith(llvm::Value*): Assertion `New->getType() == getType() && "replaceAllUses of value with new value of different type!"' failed. 0 clang 0x091a05d8 Stack dump: 0. Program arguments: /home/regehr/llvm/inst/bin/clang -cc1 -triple i386-pc-linux-gnu -S -disable-free -main-file-name small.c -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4 -resource-dir /home/regehr/llvm/inst/lib/clang/1.1 -O1 -fmessage-length 80 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-iTGLs3.s -x c small.c 1. parser at end of file 2. Per-function optimization 3. Running pass 'Combine redundant instructions' on function '@func_16' clang: error: compiler command failed due to signal 6 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Mar 13 06:00:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 13 Mar 2010 06:00:53 -0600 (CST) Subject: [LLVMbugs] [Bug 6607] New: "Cannot yet select" error Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6607 Summary: "Cannot yet select" error Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: asl at math.spbu.ru CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4509) --> (http://llvm.org/bugs/attachment.cgi?id=4509) testcase Consider the bytecode attached. Running llc yields: $ ./llc bugpoint-reduced-simplified1.bc LLVM ERROR: Cannot yet select: 0x171c420: ch = ValueType:i8 [ID=9] This might be a fallout from isel changes. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Mar 13 11:22:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 13 Mar 2010 11:22:41 -0600 (CST) Subject: [LLVMbugs] [Bug 6608] New: Address of label regression Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6608 Summary: Address of label regression Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: release blocker Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: csdavec at swan.ac.uk CC: llvmbugs at cs.uiuc.edu Compiling GSFormat.m from GNUstep, which formerly worked with clang, I now get assembler errors. The problem appears to be the use of the address-of-label extension. With a reduced test case, I get: $ cat jmptolabel.c int main(int argc, char**argv) { const void *const jump_table[] = { &&lbl1, &&lbl2} ; goto *jump_table[0]; lbl1: return 1; lbl2: return 0; } $ clang -c jmptolabel.c /tmp/cc-4ZYGXk.s: Assembler messages: /tmp/cc-4ZYGXk.s:22: Error: symbol `.LBA4_main_' is already defined clang: error: assembler command failed with exit code 1 (use -v to see invocation) Looking at the generated bitcode, there is one obvious problem: @main.jump_table = internal constant [2 x i8*] [i8* blockaddress(@main, ), i8* blockaddress(@main, )], align 4 ; <[2 x i8*]*> [#uses=1] Obviously, the things are wrong. Looking further down, the error is more subtle. The labels for the two jumps look like this: ;