From bugzilla-daemon at llvm.org Mon Aug 1 00:33:34 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Aug 2011 00:33:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 10547] New: [AVX] still seeing some cannot select crashes with v8i32 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10547 Summary: [AVX] still seeing some cannot select crashes with v8i32 Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6983) --> (http://llvm.org/bugs/attachment.cgi?id=6983) test case See attached test-case; it gives me the following with top-of-tree with llc -mattr=+avx. LLVM ERROR: Cannot select: 0x7f96b0832210: v8i32 = BUILD_VECTOR 0x7f96b0832110, 0x7f96b0832110, 0x7f96b0832110, 0x7f96b0832110, 0x7f96b0832110, 0x7f96b0832110, 0x7f96b0832110, 0x7f96b0832110 [ORD=2] [ID=9] 0x7f96b0832110: i32 = Constant<-1> [ORD=2] [ID=1] 0x7f96b0832110: i32 = Constant<-1> [ORD=2] [ID=1] 0x7f96b0832110: i32 = Constant<-1> [ORD=2] [ID=1] 0x7f96b0832110: i32 = Constant<-1> [ORD=2] [ID=1] 0x7f96b0832110: i32 = Constant<-1> [ORD=2] [ID=1] 0x7f96b0832110: i32 = Constant<-1> [ORD=2] [ID=1] 0x7f96b0832110: i32 = Constant<-1> [ORD=2] [ID=1] 0x7f96b0832110: i32 = Constant<-1> [ORD=2] [ID=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 Mon Aug 1 00:41:01 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Aug 2011 00:41:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 10546] Block capturing self with __weak in ARC In-Reply-To: References: Message-ID: <20110801054101.4C4352A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10546 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Chris Lattner 2011-08-01 00:41:00 CDT --- Hi Remy, Please file feature enhancements for Objective-C against apple's radar tool (though we already have one for this). We have considered adding something like this, but have no plans to in the immediate future. -Chris -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Aug 1 08:53:52 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Aug 2011 08:53:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 10543] Xcode 4.1 clang segfaults compiling synfigstudio In-Reply-To: References: Message-ID: <20110801135352.73EE12A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10543 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #22 from Douglas Gregor 2011-08-01 08:53:51 CDT --- Top-of-tree Clang no longer crashes on this example. Anything related to the Xcode compiler goes through Apple's Radar system. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 1 10:32:41 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Aug 2011 10:32:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 10550] New: [debug output] final instructions are out of order -> debug point jumps around Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10550 Summary: [debug output] final instructions are out of order -> debug point jumps around Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6984) --> (http://llvm.org/bugs/attachment.cgi?id=6984) test case I'm seeing some undesirable behavior where, when generating debugging information, sometimes the point in the debugger will jump forwards and backwards during single stepping, even though the output from our frontend (this is the ispc compiler), is emitting LLVM instructions with a strictly forward-moving/increasing set of source locations. I'm wondering if we're doing something wrong here, or if this points to a bug somewhere in LLVM. I've attached a case that demonstrates this. Specifically, the instructions in the LLVM assembly language for the foo() function have the following metadata items associated with them, in the following order: 5519, 5520, 5522, 5523, 5524, 5525, 5526, 5527, 5528, 5529, 5530, 5531, 5532, 5533, 5534, 5521. These correspond to the source file locations: [4,22], [5,5], [5,11], [5,22], [5,23], [6,14], [6,22], [6,24], [6,26], [8,11], [8,15], [9,9], [9,10], [9,11], [10,12], [10,12]. ([line, column]). However, if I run "llc -O0 debug.ll -o debug.s" with top of tree, the set of source locations indicated in comments jumps from [5,23] to [9,10], and then back to [6,22]. (And if I single-step through this code in gdb, I see the corresponding jump around.) If I dump out the IR after the various passes, it looks like things are still properly ordered after machine function analysis, but then in the output from the next pass, X86 DAG->DAG instruction selection, things have gotten out of order. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 1 14:41:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Aug 2011 14:41:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 10536] Wrong implicit cast on inline asm operands In-Reply-To: References: Message-ID: <20110801194128.2D5762A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10536 Matt Beaumont-Gay changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Matt Beaumont-Gay 2011-08-01 14:41:27 CDT --- (In reply to comment #1) > ... but that is on the input operand? ... Apparently all three of us who looked at this code totally fail at reading inline asm. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 1 14:52:11 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Aug 2011 14:52:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 10547] [AVX] still seeing some cannot select crashes with v8i32 In-Reply-To: References: Message-ID: <20110801195211.9FB322A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10547 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-08-01 14:52:11 CDT --- Hi Matt, Fixed in r136642! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 1 16:06:34 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Aug 2011 16:06:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 10551] New: need alignment checking in isSafeToEliminateVarargsCast Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10551 Summary: need alignment checking in isSafeToEliminateVarargsCast 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: ahatanak at gmail.com CC: llvmbugs at cs.uiuc.edu The detailed description of the problem is here: http://article.gmane.org/gmane.comp.compilers.llvm.devel/42100 A patch is attached that fixes the problem (I have not done testing for targets other than Mips nor do I know if this is the best approach). -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 1 16:41:08 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Aug 2011 16:41:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 10537] Inter-target dependency of shared libraries In-Reply-To: References: Message-ID: <20110801214108.D28402A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10537 Ryuta Suzuki changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Ryuta Suzuki 2011-08-01 16:41:08 CDT --- As of r136646, I confirmed LLVM's CMake build system was brought back to normal. Thanks for the effort of restructuring CMake scripts! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 1 16:55:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Aug 2011 16:55:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 10495] [AVX] "cannot select" ch = store error In-Reply-To: References: Message-ID: <20110801215505.64F3D2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10495 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-08-01 16:55:04 CDT --- Hi, fixed in r136654! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 1 20:08:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Aug 2011 20:08:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 10439] [AVX] seg fault in llc due to infinite loop of SelectionDAGLegalize::LegalizeOp calls In-Reply-To: References: Message-ID: <20110802010822.424D82A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10439 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Bruno Cardoso Lopes 2011-08-01 20:08:21 CDT --- Works on TOT. Probably got solved while I was fixing some other bugs or adding some features. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 1 20:37:49 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 1 Aug 2011 20:37:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 10552] New: Struct Allocation / Return Bug Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10552 Summary: Struct Allocation / Return Bug Product: dragonegg Version: 2.7 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: New Bugs AssignedTo: baldrick at free.fr ReportedBy: bprosnitz at gmail.com CC: llvmbugs at cs.uiuc.edu Consider the following short program: struct S1 { unsigned char f0; volatile unsigned short f1; short f2; }; struct S1 func_9(unsigned short a) { struct S1 b; b.f0 = 1; b.f1 = a; b.f2 = -4; return b; } int main (void) { struct S1 k = func_9(5); printf("f0 = %d\n", k.f0); } In func_9 compiled with dragonegg 2.7, 5 bytes are allocated for struct S1 b (%memtmp2) with the instruction: %memtmp2 = alloca %"struct S1" Yet, 8 bytes are accessed when it is being returned: %retval = load i64* %22 ret i64 %retval In some interpreters like klee, this causes a 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 Tue Aug 2 00:33:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 00:33:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 10553] New: Metadata nodes duplicated by llvm-ld Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10553 Summary: Metadata nodes duplicated by llvm-ld Product: libraries Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: Linker AssignedTo: unassignedbugs at nondot.org ReportedBy: viridia at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6989) --> (http://llvm.org/bugs/attachment.cgi?id=6989) Bitcode file that demonstrates the problem llvm-ld is creating duplicate metadata nodes. To demonstrate the problem, use the bitcode file "ValueRefTest.bc" in the attachment. To see the problem in action: llvm-ld -disable-opt -link-as-library -o - ValueRefTest.bc | llvm-dis | more Search for "main" (with quotes) and you'll see that there are two DW_TAG_subprogram entries for the function. (This appears to happen with all functions, not just "main"). To verify that the duplicate entries are not in the original file, do: llvm-dis -o - ValueRefTest.bc | more The same search will show that there is only one DW_TAG_subprogram entry for "main". -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Aug 2 01:30:35 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 01:30:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 10554] New: [AVX] another 'unknown type for unpckh' crash Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10554 Summary: [AVX] another 'unknown type for unpckh' crash Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6990) --> (http://llvm.org/bugs/attachment.cgi?id=6990) test case See attached test case, which gives me the following crash with llc -mattr=+avx with TOT> Unknown type for unpckh UNREACHABLE executed at X86ISelLowering.cpp:5938! 0 llc 0x00000001045d6872 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6494 1 llc 0x00000001045d6e79 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 8037 2 libsystem_c.dylib 0x00007fff8e320cfa _sigtramp + 26 3 libsystem_c.dylib 000000000000000000 _sigtramp + 18446603338130518816 4 llc 0x00000001045d67d6 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6338 5 llc 0x00000001045c7f39 std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::_M_insert_unique(std::_Rb_tree_iterator >, std::pair const&) + 1707 6 llc 0x0000000104041f24 llvm::X86Subtarget::isTargetELF() const + 296012 7 llc 0x000000010400d867 llvm::X86Subtarget::isTargetELF() const + 81295 8 llc 0x00000001040db52a llvm::DenseMap, llvm::DenseMapInfo >::insert(std::pair const&) + 26290 9 llc 0x00000001040d5061 llvm::DenseMap, llvm::DenseMapInfo >::insert(std::pair const&) + 489 10 llc 0x00000001041e3061 llvm::SelectionDAGBuilder::Case::size() const + 34781 11 llc 0x00000001041e4ce2 llvm::SelectionDAGBuilder::Case::size() const + 42078 12 llc 0x00000001041e593b llvm::SelectionDAGBuilder::Case::size() const + 45239 13 llc 0x00000001042c2e54 llvm::MachineFunctionAnalysis::getPassName() const + 458 14 llc 0x000000010453ea8d llvm::cl::parser::~parser() + 26339 15 llc 0x000000010453a47b llvm::cl::parser::~parser() + 8401 16 llc 0x000000010453e78a llvm::cl::parser::~parser() + 25568 17 llc 0x000000010453fbb1 llvm::cl::parser::~parser() + 30727 18 llc 0x000000010453fc31 llvm::cl::parser::~parser() + 30855 19 llc 0x0000000103cbe3d3 20 llc 0x0000000103cbcc34 Stack dump: 0. Program arguments: /Users/mmp/llvm-dev/bin/llc bugpoint-reduced-simplified.bc -mattr=+avx 1. Running pass 'Function Pass Manager' on module 'bugpoint-reduced-simplified.bc'. 2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@"f_du___REFUf[]REFUd[]Ud"' [1] 64325 illegal hardware instruction ~/llvm-dev/bin/llc bugpoint-reduced-simplified.bc -mattr=+avx -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 2 01:33:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 01:33:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 10555] New: [AVX] cannot select v2i64 = vector_shuffle crash Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10555 Summary: [AVX] cannot select v2i64 = vector_shuffle crash Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6991) --> (http://llvm.org/bugs/attachment.cgi?id=6991) test case With the attached and TOT, I get the following crash with llc -mattr=+avx LLVM ERROR: Cannot select: 0x7ff2fc038710: v2i64 = vector_shuffle 0x7ff2fc037210, 0x7ff2fc038610<1,u> [ID=27] 0x7ff2fc037210: v2i64 = extract_subvector 0x7ff2fc032810, 0x7ff2fc037110 [ID=23] 0x7ff2fc032810: v4i64 = bitcast 0x7ff2fc034410 [ORD=1] [ID=20] 0x7ff2fc034410: v8f32 = BUILD_VECTOR 0x7ff2fc032910, 0x7ff2fc032910, 0x7ff2fc032910, 0x7ff2fc032910, 0x7ff2fc032910, 0x7ff2fc032910, 0x7ff2fc032910, 0x7ff2fc032910 [ID=18] 0x7ff2fc032910: f32 = TargetConstantFP<0.000000e+00> [ID=9] 0x7ff2fc032910: f32 = TargetConstantFP<0.000000e+00> [ID=9] 0x7ff2fc032910: f32 = TargetConstantFP<0.000000e+00> [ID=9] 0x7ff2fc032910: f32 = TargetConstantFP<0.000000e+00> [ID=9] 0x7ff2fc032910: f32 = TargetConstantFP<0.000000e+00> [ID=9] 0x7ff2fc032910: f32 = TargetConstantFP<0.000000e+00> [ID=9] 0x7ff2fc032910: f32 = TargetConstantFP<0.000000e+00> [ID=9] 0x7ff2fc032910: f32 = TargetConstantFP<0.000000e+00> [ID=9] 0x7ff2fc037110: i32 = Constant<2> [ID=12] 0x7ff2fc038610: v2i64 = undef [ID=13] -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 2 01:35:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 01:35:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 10556] New: [AVX] cannot select v4i64 = select error Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10556 Summary: [AVX] cannot select v4i64 = select error Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6992) --> (http://llvm.org/bugs/attachment.cgi?id=6992) test case With TOT and the attached test case, running llc -mattr=+avx, I get the following: LLVM ERROR: Cannot select: 0x7f9d82835210: v4i64 = select 0x7f9d82834110, 0x7f9d82834710, 0x7f9d82834f10 [ID=14] 0x7f9d82834110: i8 = X86ISD::SETCC 0x7f9d82834210, 0x7f9d82833d10 [ID=12] 0x7f9d82834210: i8 = Constant<4> [ID=8] 0x7f9d82833d10: i32 = X86ISD::CMP 0x7f9d82833a10, 0x7f9d82833b10 [ID=10] 0x7f9d82833a10: i32 = undef [ORD=1] [ID=1] 0x7f9d82833b10: i32 = Constant<255> [ORD=1] [ID=2] 0x7f9d82834710: v4i64 = bitcast 0x7f9d82833f10 [ID=13] 0x7f9d82833f10: v8i32 = BUILD_VECTOR 0x7f9d82833e10, 0x7f9d82833e10, 0x7f9d82833e10, 0x7f9d82833e10, 0x7f9d82833e10, 0x7f9d82833e10, 0x7f9d82833e10, 0x7f9d82833e10 [ORD=2] [ID=11] 0x7f9d82833e10: i32 = Constant<0> [ORD=2] [ID=3] 0x7f9d82833e10: i32 = Constant<0> [ORD=2] [ID=3] 0x7f9d82833e10: i32 = Constant<0> [ORD=2] [ID=3] 0x7f9d82833e10: i32 = Constant<0> [ORD=2] [ID=3] 0x7f9d82833e10: i32 = Constant<0> [ORD=2] [ID=3] 0x7f9d82833e10: i32 = Constant<0> [ORD=2] [ID=3] 0x7f9d82833e10: i32 = Constant<0> [ORD=2] [ID=3] 0x7f9d82833e10: i32 = Constant<0> [ORD=2] [ID=3] 0x7f9d82834f10: v4i64 = undef [ID=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 Tue Aug 2 01:37:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 01:37:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 10557] New: [AVX] cannot select v4f64 = fp_extend error Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10557 Summary: [AVX] cannot select v4f64 = fp_extend error Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6993) --> (http://llvm.org/bugs/attachment.cgi?id=6993) test case With the attached, TOT, and llc -mattr=+avx, I get: LLVM ERROR: Cannot select: 0x7ffc63835c10: v4f64 = fp_extend 0x7ffc63833010 [ID=18] 0x7ffc63833010: v4f32 = extract_subvector 0x7ffc63833110, 0x7ffc63832f10 [ID=15] 0x7ffc63833110: v8f32 = BUILD_VECTOR 0x7ffc63836010, 0x7ffc63836010, 0x7ffc63836010, 0x7ffc63836010, 0x7ffc63836010, 0x7ffc63836010, 0x7ffc63836010, 0x7ffc63836010 [ID=12] 0x7ffc63836010: f32 = TargetConstantFP<0.000000e+00> [ID=7] 0x7ffc63836010: f32 = TargetConstantFP<0.000000e+00> [ID=7] 0x7ffc63836010: f32 = TargetConstantFP<0.000000e+00> [ID=7] 0x7ffc63836010: f32 = TargetConstantFP<0.000000e+00> [ID=7] 0x7ffc63836010: f32 = TargetConstantFP<0.000000e+00> [ID=7] 0x7ffc63836010: f32 = TargetConstantFP<0.000000e+00> [ID=7] 0x7ffc63836010: f32 = TargetConstantFP<0.000000e+00> [ID=7] 0x7ffc63836010: f32 = TargetConstantFP<0.000000e+00> [ID=7] 0x7ffc63832f10: i32 = Constant<4> [ID=9] -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 2 01:39:39 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 01:39:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 10558] New: [AVX] cannot select v8f32 = X86ISD::VZEXT_MOVL error Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10558 Summary: [AVX] cannot select v8f32 = X86ISD::VZEXT_MOVL error Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6994) --> (http://llvm.org/bugs/attachment.cgi?id=6994) test case With TOT, the attached, and llc -mattr=+avx, I'm seeing: LLVM ERROR: Cannot select: 0x7f957983f310: v8f32 = X86ISD::VZEXT_MOVL 0x7f957983f210 [ID=39] 0x7f957983f210: v8f32 = insert_subvector 0x7f957983a810, 0x7f957983a710, 0x7f957983b010 [ID=38] 0x7f957983a810: v8f32 = undef [ID=14] 0x7f957983a710: v4f32 = scalar_to_vector 0x7f9579839e10 [ID=37] 0x7f9579839e10: f32,ch = load 0x10f90e598, 0x7f957983bf10, 0x7f957983a310 [ID=36] 0x7f957983bf10: i64 = X86ISD::WrapperRIP 0x7f9579839d10 [ID=33] 0x7f9579839d10: i64 = TargetConstantPool 0 [ID=12] 0x7f957983a310: i64 = undef [ID=11] 0x7f957983b010: i32 = Constant<0> [ORD=11] [ID=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 Tue Aug 2 01:41:03 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 01:41:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 10559] New: [AVX] cannot select v4f64 = sint_to_fp error Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10559 Summary: [AVX] cannot select v4f64 = sint_to_fp error Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6995) --> (http://llvm.org/bugs/attachment.cgi?id=6995) test case With the attached, TOT, and llc -mattr=+avx, I'm seeing: LLVM ERROR: Cannot select: 0x7fef00835110: v4f64 = sint_to_fp 0x7fef00835310 [ID=17] 0x7fef00835310: v4i32 = undef [ID=9] -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 2 01:44:09 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 01:44:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 10560] New: [AVX] assertion failed: ((EltVT.getSizeInBits() >= 64 || (uint64_t)((int64_t)Val >> EltVT.getSizeInBits()) + 1 < 2) && "getConstant with a uint64_t value that doesn't fit in the type!"), function getConstant, file SelectionDAG.cpp, line 916. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10560 Summary: [AVX] assertion failed: ((EltVT.getSizeInBits() >= 64 || (uint64_t)((int64_t)Val >> EltVT.getSizeInBits()) + 1 < 2) && "getConstant with a uint64_t value that doesn't fit in the type!"), function getConstant, file SelectionDAG.cpp, line 916. Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6996) --> (http://llvm.org/bugs/attachment.cgi?id=6996) test case With TOT, the attached, and llc -mattr=+avx, I'm seeing: Assertion failed: ((EltVT.getSizeInBits() >= 64 || (uint64_t)((int64_t)Val >> EltVT.getSizeInBits()) + 1 < 2) && "getConstant with a uint64_t value that doesn't fit in the type!"), function getConstant, file SelectionDAG.cpp, line 916. 0 llc 0x00000001024a5872 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6494 1 llc 0x00000001024a5e79 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 8037 2 libsystem_c.dylib 0x00007fff8e320cfa _sigtramp + 26 3 libsystem_c.dylib 000000000000000000 _sigtramp + 18446603338130518816 4 llc 0x00000001024a57d6 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6338 5 llc 0x00000001024a5828 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6420 6 llc 0x000000010205a8ac void std::__final_insertion_sort(long long*, long long*) + 114396 7 llc 0x0000000101f11642 llvm::X86Subtarget::isTargetELF() const + 297834 8 llc 0x0000000101edc867 llvm::X86Subtarget::isTargetELF() const + 81295 9 llc 0x0000000101faa52a llvm::DenseMap, llvm::DenseMapInfo >::insert(std::pair const&) + 26290 10 llc 0x0000000101fa4061 llvm::DenseMap, llvm::DenseMapInfo >::insert(std::pair const&) + 489 11 llc 0x00000001020b2061 llvm::SelectionDAGBuilder::Case::size() const + 34781 12 llc 0x00000001020b3ce2 llvm::SelectionDAGBuilder::Case::size() const + 42078 13 llc 0x00000001020b493b llvm::SelectionDAGBuilder::Case::size() const + 45239 14 llc 0x0000000102191e54 llvm::MachineFunctionAnalysis::getPassName() const + 458 15 llc 0x000000010240da8d llvm::cl::parser::~parser() + 26339 16 llc 0x000000010240947b llvm::cl::parser::~parser() + 8401 17 llc 0x000000010240d78a llvm::cl::parser::~parser() + 25568 18 llc 0x000000010240ebb1 llvm::cl::parser::~parser() + 30727 19 llc 0x000000010240ec31 llvm::cl::parser::~parser() + 30855 20 llc 0x0000000101b8d3d3 21 llc 0x0000000101b8bc34 Stack dump: 0. Program arguments: /Users/mmp/llvm-dev/bin/llc bugpoint-reduced-simplified.bc -mattr=+avx 1. Running pass 'Function Pass Manager' on module 'bugpoint-reduced-simplified.bc'. 2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@"f_fu___REFUf[]REFUf[]Uf"' [1] 66355 illegal hardware instruction ~/llvm-dev/bin/llc bugpoint-reduced-simplified.bc -mattr=+avx -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 2 01:46:06 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 01:46:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 10561] New: [AVX] cannot select ch = store error Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10561 Summary: [AVX] cannot select ch = store error Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6997) --> (http://llvm.org/bugs/attachment.cgi?id=6997) test case With TOT, the attached, and llc -mattr=+avx, I'm seeing: LLVM ERROR: Cannot select: 0x7ff983832210: ch = store 0x10430c318, 0x7ff983832610, 0x7ff983832010, 0x7ff983832010 [ORD=2] [ID=8] 0x7ff983832610: v16i16 = insert_subvector 0x7ff983832410, 0x7ff983831e10, 0x7ff983832510 [ID=7] 0x7ff983832410: v16i16 = insert_subvector 0x7ff983832310, 0x7ff983831e10, 0x7ff983832110 [ID=6] 0x7ff983832310: v16i16 = undef [ID=4] 0x7ff983831e10: v8i16 = undef [ORD=1] [ID=1] 0x7ff983832110: i32 = Constant<0> [ID=3] 0x7ff983831e10: v8i16 = undef [ORD=1] [ID=1] 0x7ff983832510: i32 = Constant<8> [ID=5] 0x7ff983832010: i64 = undef [ORD=2] [ID=2] 0x7ff983832010: i64 = undef [ORD=2] [ID=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 Aug 2 03:01:53 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 03:01:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 10562] New: [AVX] infinite recursive calls to DenseMap::insert() Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10562 Summary: [AVX] infinite recursive calls to DenseMap::insert() Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6998) --> (http://llvm.org/bugs/attachment.cgi?id=6998) test case With TOT, llc -mattr=+avx, and the attached, I get a crash due to an infinite set of recursive calls to DenseMap::insert() ..... #8554 0x00000001004217a3 in llvm::DenseMap, llvm::DenseMapInfo >::insert () #8555 0x0000000100429d40 in llvm::DenseMap, llvm::DenseMapInfo >::insert () #8556 0x00000001004217a3 in llvm::DenseMap, llvm::DenseMapInfo >::insert () #8557 0x0000000100429d40 in llvm::DenseMap, llvm::DenseMapInfo >::insert () #8558 0x00000001004217a3 in llvm::DenseMap, llvm::DenseMapInfo >::insert () #8559 0x0000000100419061 in llvm::DenseMap, llvm::DenseMapInfo >::insert () #8560 0x0000000100527061 in llvm::SelectionDAGBuilder::Case::size () #8561 0x0000000100528ce2 in llvm::SelectionDAGBuilder::Case::size () #8562 0x000000010052993b in llvm::SelectionDAGBuilder::Case::size () #8563 0x0000000100606e54 in llvm::MachineFunctionAnalysis::getPassName () #8564 0x0000000100882a8d in llvm::cl::parser::~parser () #8565 0x000000010087e47b in llvm::cl::parser::~parser () #8566 0x000000010088278a in llvm::cl::parser::~parser () #8567 0x0000000100883bb1 in llvm::cl::parser::~parser () #8568 0x0000000100883c31 in llvm::cl::parser::~parser () #8569 0x00000001000023d3 in ?? () #8570 0x0000000100000c34 in ?? () -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 2 04:48:53 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 04:48:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 10563] New: APInt::trunc(unsigned int) const: Assertion `width < BitWidth && "Invalid APInt Truncate request"' failed. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10563 Summary: APInt::trunc(unsigned int) const: Assertion `width < BitWidth && "Invalid APInt Truncate request"' failed. Product: libraries Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: nadav.rotem at intel.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=6999) --> (http://llvm.org/bugs/attachment.cgi?id=6999) LL file reproducing the problem llc: APInt.cpp:1007: llvm::APInt llvm::APInt::trunc(unsigned int) const: Assertion `width < BitWidth && "Invalid APInt Truncate request"' failed. 0 llc 0x0000000001549f06 1 llc 0x000000000154a494 2 libpthread.so.0 0x00002aaaaabd4d60 3 libc.so.6 0x00002aaaab274f45 gsignal + 53 4 libc.so.6 0x00002aaaab276340 abort + 272 5 libc.so.6 0x00002aaaab26e486 __assert_fail + 246 6 llc 0x000000000151b6f2 llvm::APInt::trunc(unsigned int) const + 62 7 llc 0x0000000000fa0dca llvm::SelectionDAG::getNode(unsigned int, llvm::DebugLoc, llvm::EVT, llvm::SDValue, llvm::SDValue) + 7784 8 llc 0x0000000000e8809e llvm::X86TargetLowering::LowerUINT_TO_FP_i32(llvm::SDValue, llvm::SelectionDAG&) const + 376 9 llc 0x0000000000eaa470 llvm::X86TargetLowering::LowerUINT_TO_FP(llvm::SDValue, llvm::SelectionDAG&) const + 766 10 llc 0x0000000000ebaccb llvm::X86TargetLowering::LowerOperation(llvm::SDValue, llvm::SelectionDAG&) const + 1045 11 llc 0x000000000104203e (anonymous namespace)::SelectionDAGLegalize::LegalizeOp(llvm::SDValue) + 4088 12 llc 0x00000000010570d3 (anonymous namespace)::SelectionDAGLegalize::LegalizeDAG() + 179 13 llc 0x00000000010571f1 llvm::SelectionDAG::Legalize() + 49 14 llc 0x0000000000ffe7e8 llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 2424 15 llc 0x000000000100054e llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator, llvm::ilist_iterator, bool&) + 230 16 llc 0x0000000001000eb0 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 2400 17 llc 0x000000000100142f llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 849 18 llc 0x000000000114c971 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 85 19 llc 0x0000000001484137 llvm::FPPassManager::runOnFunction(llvm::Function&) + 371 20 llc 0x000000000148432f llvm::FPPassManager::runOnModule(llvm::Module&) + 81 21 llc 0x0000000001483de3 llvm::MPPassManager::runOnModule(llvm::Module&) + 381 22 llc 0x0000000001485598 llvm::PassManagerImpl::run(llvm::Module&) + 116 23 llc 0x00000000014855fb llvm::PassManager::run(llvm::Module&) + 33 24 llc 0x0000000000ab884d main + 2403 25 libc.so.6 0x00002aaaab262304 __libc_start_main + 244 26 llc 0x0000000000ab6f99 Stack dump: 0. Program arguments: ../llc temp.ll -march=x86 -mattr=+sse2,+sse41 -o /dev/null 1. Running pass 'Function Pass Manager' on module 'temp.ll'. 2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@autogen_74349_5000' ; ModuleID = 'bugpoint-reduced-simplified.bc' target triple = "x86_64-unknown-linux-gnu" define void @autogen_74349_5000(i8*, i32*, i64*, i32, i8, i64) { BB: %A4 = alloca <2 x i32> %A3 = alloca <2 x i64> %A2 = alloca <2 x i32> %A1 = alloca <2 x double> %A = alloca <2 x float> %L = load i8* %0 store i8 -1, i8* %0 %E = extractelement <8 x float> undef, i32 3 %E5 = extractelement <32 x float> undef, i32 16 %Shuff = shufflevector <8 x float> undef, <8 x float> undef, <8 x i32> %Shuff6 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff, <8 x i32> %Shuff7 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff, <8 x i32> %I = insertelement <8 x float> %Shuff, float 0x3EC963BF00000000, i32 4 %B = and i8 -1, -1 %PC = bitcast <2 x i32>* %A2 to i32* %S = select i1 true, i32 124099, i32 %3 %L8 = load i8* %0 store i32 0, i32* %PC %E9 = extractelement <8 x float> %Shuff, i32 3 %E10 = extractelement <8 x float> %Shuff, i32 5 %Shuff11 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff, <8 x i32> %Shuff12 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff, <8 x i32> %Shuff13 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff, <8 x i32> %I14 = insertelement <8 x float> %Shuff, float 0x3ED7FC0DA0000000, i32 6 %B15 = xor i64 %5, 171975 %PC16 = bitcast i64* %2 to i64* %S17 = select i1 true, i8 -21, i8 %B %L18 = load i64* %PC16 store i32 -1, i32* %PC %E19 = extractelement <8 x float> %Shuff13, i32 0 %E20 = extractelement <8 x float> %Shuff, i32 2 %Shuff21 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff11, <8 x i32> %Shuff22 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff, <8 x i32> %Shuff23 = shufflevector <8 x float> %Shuff13, <8 x float> %Shuff, <8 x i32> %I24 = insertelement <8 x float> %Shuff, float 0x3ED7FC0DA0000000, i32 3 %FC = fptoui <8 x float> %I14 to <8 x i1> %S25 = select i1 true, i64 408739, i64 %5 %S26 = icmp ult i64 0, 171975 %L27 = load <2 x i32>* %A2 store i32 %3, i32* %PC %E28 = extractelement <8 x float> %Shuff21, i32 4 %E29 = extractelement <8 x float> %Shuff, i32 6 %Shuff30 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff21, <8 x i32> %Shuff31 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff, <8 x i32> %Shuff32 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff, <8 x i32> %I33 = insertelement <8 x float> %Shuff13, float %E29, i32 7 %B34 = sub i32 -1, %3 %FC35 = fptoui double 0x3EEED9227F419BDF to i1 %S36 = select i1 true, double 0x3EE3CB298BF7FCE3, double 0x3EEED9227F419BDF %L37 = load i32* %PC store i32 %B34, i32* %PC %E38 = extractelement <8 x float> %Shuff, i32 4 %E39 = extractelement <8 x float> %Shuff11, i32 6 %Shuff40 = shufflevector <2 x i32> %L27, <2 x i32> %L27, <2 x i32> %Shuff41 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff, <8 x i32> %Shuff42 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff30, <8 x i32> %I43 = insertelement <8 x float> %Shuff, float 0x3ED7FC0DA0000000, i32 3 %B44 = srem i1 false, true %PC45 = bitcast <2 x double>* %A1 to double* %S46 = select i1 true, i64 0, i64 %5 %S47 = icmp slt i1 %FC35, %FC35 %L48 = load double* %PC45 store double %S36, double* %PC45 %E49 = extractelement <8 x float> %I43, i32 7 %E50 = extractelement <8 x float> %Shuff, i32 1 %Shuff51 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff23, <8 x i32> %Shuff52 = shufflevector <2 x i32> %Shuff40, <2 x i32> %L27, <2 x i32> %Shuff53 = shufflevector <2 x i32> %L27, <2 x i32> %L27, <2 x i32> %I54 = insertelement <8 x float> %Shuff51, float %E29, i32 2 %B55 = sub i64 %S46, 171975 %S56 = select i1 %S26, float %E38, float %E19 %S57 = fcmp ord <8 x float> %I54, %Shuff6 %L58 = load i32* %PC store double 0x3EEED9227F419BDF, double* %PC45 %E59 = extractelement <8 x float> %Shuff, i32 0 %E60 = extractelement <2 x i32> %Shuff40, i32 0 %Shuff61 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff12, <8 x i32> %Shuff62 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff, <8 x i32> %Shuff63 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff51, <8 x i32> %I64 = insertelement <8 x float> %Shuff, float %E29, i32 3 %Tr = trunc i16 -1 to i1 %S65 = select i1 true, i32 %S, i32 %B34 %S66 = icmp uge <8 x i1> %S57, %FC %L67 = load double* %PC45 store i32 %L58, i32* %PC %E68 = extractelement <8 x float> %Shuff61, i32 5 %E69 = extractelement <8 x float> %Shuff, i32 7 %Shuff70 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff, <8 x i32> %Shuff71 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff61, <8 x i32> %Shuff72 = shufflevector <2 x i32> %Shuff40, <2 x i32> %L27, <2 x i32> %I73 = insertelement <8 x float> %Shuff70, float 0x3EC963BF00000000, i32 4 %B74 = or i32 -1, %L58 %Tr75 = trunc i32 124099 to i1 %S76 = select i1 true, i8 %S17, i8 %4 %L77 = load i32* %PC store double %S36, double* %PC45 %E78 = extractelement <8 x float> %I43, i32 1 %E79 = extractelement <8 x float> %Shuff, i32 3 %Shuff80 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff51, <8 x i32> %Shuff81 = shufflevector <8 x float> %Shuff51, <8 x float> %I33, <8 x i32> %Shuff82 = shufflevector <2 x i32> %Shuff40, <2 x i32> %L27, <2 x i32> %I83 = insertelement <8 x float> %Shuff, float %E28, i32 0 %B84 = mul <2 x i32> %Shuff40, %L27 %ZE = fpext float %E38 to double %S85 = select i1 %Tr, float %E, float %E38 %S86 = fcmp ole float %E50, %E49 %L87 = load i32* %PC store i8 %L, i8* %0 %E88 = extractelement <8 x float> %I, i32 4 %E89 = extractelement <8 x float> %Shuff32, i32 6 %Shuff90 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff, <8 x i32> %Shuff91 = shufflevector <8 x float> %Shuff, <8 x float> %I73, <8 x i32> %Shuff92 = shufflevector <2 x i32> %Shuff40, <2 x i32> %Shuff82, <2 x i32> %I93 = insertelement <8 x i1> %FC, i1 %S26, i32 3 %B94 = udiv <2 x i32> %Shuff53, %Shuff40 %FC95 = fptosi <8 x float> %Shuff81 to <8 x i1> %S96 = select i1 %S26, double %S36, double 0x3EEED9227F419BDF %S97 = fcmp ogt float %E88, 0x3EC963BF00000000 %L98 = load i8* %0 store i8 %4, i8* %0 %E99 = extractelement <8 x float> %Shuff7, i32 6 %E100 = extractelement <2 x i32> %L27, i32 0 %Shuff101 = shufflevector <2 x i32> %B94, <2 x i32> %Shuff52, <2 x i32> %Shuff102 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff, <8 x i32> %Shuff103 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff63, <8 x i32> %I104 = insertelement <2 x i32> %Shuff101, i32 %B34, i32 1 %B105 = mul <8 x i1> %S57, %FC %BC = bitcast float %E10 to i32 %S106 = select i1 true, i8 -77, i8 -77 %L107 = load i32* %PC store double %S36, double* %PC45 %E108 = extractelement <8 x float> %Shuff51, i32 3 %E109 = extractelement <8 x float> %Shuff21, i32 5 %Shuff110 = shufflevector <8 x float> %Shuff61, <8 x float> %Shuff, <8 x i32> %Shuff111 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff103, <8 x i32> %Shuff112 = shufflevector <8 x float> %Shuff30, <8 x float> %Shuff62, <8 x i32> %I113 = insertelement <8 x float> %Shuff, float %S56, i32 6 %B114 = fdiv float %E38, 0x3ED7FC0DA0000000 %FC115 = uitofp <2 x i32> %Shuff82 to <2 x double> %S116 = select i1 %S47, <2 x i64>* %A3, <2 x i64>* %A3 %S117 = fcmp false <8 x float> %I73, %Shuff21 %L118 = load <2 x i64>* %S116 store double 0x3EC6E36395BE0B46, double* %PC45 %E119 = extractelement <2 x i32> %I104, i32 0 %E120 = extractelement <8 x float> %Shuff, i32 4 %Shuff121 = shufflevector <8 x float> %Shuff80, <8 x float> %Shuff, <8 x i32> %Shuff122 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff112, <8 x i32> %Shuff123 = shufflevector <8 x float> %Shuff110, <8 x float> %Shuff121, <8 x i32> %I124 = insertelement <8 x float> %Shuff21, float %E9, i32 5 %B125 = fsub float %B114, %E49 %Se = sext i1 %B44 to i64 %S126 = select i1 %Tr, float 0x3EDF2BB5C0000000, float %E49 %S127 = icmp eq <8 x i1> %FC, %FC %L128 = load i32* %PC store <2 x i64> %L118, <2 x i64>* %S116 %E129 = extractelement <8 x float> %I73, i32 4 %E130 = extractelement <8 x i1> %FC, i32 6 %Shuff131 = shufflevector <8 x float> %Shuff23, <8 x float> %Shuff30, <8 x i32> %Shuff132 = shufflevector <2 x i32> %Shuff101, <2 x i32> %Shuff40, <2 x i32> undef %Shuff133 = shufflevector <8 x float> %Shuff30, <8 x float> %I83, <8 x i32> %I134 = insertelement <8 x float> %Shuff, float %E49, i32 3 %B135 = frem <8 x float> %I124, %Shuff102 %BC136 = bitcast i64 408739 to double %S137 = select i1 true, float %E79, float 0x3EC963BF00000000 %S138 = icmp ne i32 389819, %3 %L139 = load i8* %0 store double %L67, double* %PC45 %E140 = extractelement <8 x float> %Shuff90, i32 4 %E141 = extractelement <8 x float> %Shuff, i32 6 %Shuff142 = shufflevector <8 x float> %I, <8 x float> %Shuff, <8 x i32> %Shuff143 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff91, <8 x i32> %Shuff144 = shufflevector <8 x float> %Shuff, <8 x float> %I54, <8 x i32> %I145 = insertelement <2 x i32> %Shuff40, i32 389819, i32 1 %B146 = add <8 x i1> %B105, %FC %BC147 = bitcast i32 %B34 to float %S148 = select i1 %FC35, float %E9, float %E38 %S149 = fcmp ule <8 x float> %Shuff70, %Shuff %L150 = load <2 x i64>* %S116 store i8 %4, i8* %0 %E151 = extractelement <8 x float> %Shuff, i32 1 %E152 = extractelement <8 x float> %I43, i32 3 %Shuff153 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff133, <8 x i32> %Shuff154 = shufflevector <2 x i32> %L27, <2 x i32> %L27, <2 x i32> %Shuff155 = shufflevector <8 x float> %Shuff70, <8 x float> %Shuff110, <8 x i32> %I156 = insertelement <8 x i1> %S57, i1 %E130, i32 0 %B157 = frem float %E140, %E141 %S158 = select i1 %E130, i8* %0, i8* %0 %S159 = fcmp uge <8 x float> %Shuff12, %Shuff80 %L160 = load <2 x i64>* %S116 store <2 x i64> %L118, <2 x i64>* %S116 %E161 = extractelement <8 x float> %B135, i32 7 %E162 = extractelement <8 x float> %Shuff, i32 1 %Shuff163 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff102, <8 x i32> %Shuff164 = shufflevector <8 x float> %Shuff21, <8 x float> %Shuff80, <8 x i32> %Shuff165 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff102, <8 x i32> %I166 = insertelement <8 x float> %Shuff51, float %E9, i32 2 %B167 = fdiv float %E38, %E108 %S168 = select i1 %Tr75, float %B114, float 0x3ED76A4E00000000 %S169 = fcmp oge float %S148, %E68 %L170 = load i8* %S158 store i8 %S76, i8* %S158 %E171 = extractelement <8 x float> %Shuff51, i32 2 %E172 = extractelement <2 x i32> %Shuff82, i32 0 %Shuff173 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff122, <8 x i32> %Shuff174 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff, <8 x i32> %Shuff175 = shufflevector <2 x i32> %Shuff40, <2 x i32> %L27, <2 x i32> %I176 = insertelement <8 x float> %Shuff13, float %B157, i32 1 %B177 = shl <8 x i1> %S159, %I156 %L178 = load i8* %S158 store <2 x i64> %L118, <2 x i64>* %S116 %E179 = extractelement <2 x i32> %Shuff154, i32 0 %E180 = extractelement <8 x i1> %FC95, i32 6 %Shuff181 = shufflevector <2 x i32> %Shuff40, <2 x i32> %Shuff92, <2 x i32> %Shuff182 = shufflevector <2 x i32> %B84, <2 x i32> %L27, <2 x i32> %Shuff183 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff, <8 x i32> %I184 = insertelement <8 x float> %Shuff51, float %E151, i32 7 %B185 = add i64 372743, %S46 %FC186 = fptosi <8 x float> %Shuff51 to <8 x i32> %S187 = select i1 %E130, i32 0, i32 0 %S188 = icmp ule i64 171975, %S46 %L189 = load <2 x i64>* %S116 store <2 x float> undef, <2 x float>* %A %E190 = extractelement <8 x float> %Shuff131, i32 5 %E191 = extractelement <8 x float> %Shuff41, i32 7 %Shuff192 = shufflevector <8 x float> %Shuff122, <8 x float> %Shuff173, <8 x i32> %Shuff193 = shufflevector <8 x i1> %S149, <8 x i1> %FC, <8 x i32> %Shuff194 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff153, <8 x i32> %I195 = insertelement <8 x float> %Shuff, float %E88, i32 0 %B196 = lshr i8 -1, %L170 %ZE197 = zext i1 false to i32 %S198 = select i1 %E180, float 0x3ED7FC0DA0000000, float %B157 %L199 = load <2 x i64>* %S116 store double %S36, double* %PC45 %E200 = extractelement <2 x i32> %B84, i32 1 %E201 = extractelement <8 x float> %Shuff21, i32 7 %Shuff202 = shufflevector <8 x float> %Shuff70, <8 x float> %Shuff173, <8 x i32> %Shuff203 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff131, <8 x i32> %Shuff204 = shufflevector <2 x i32> %I104, <2 x i32> %L27, <2 x i32> %I205 = insertelement <8 x i1> %S159, i1 %Tr, i32 4 %ZE206 = zext i32 %L37 to i64 %S207 = select i1 %Tr75, i8 %S106, i8 %L98 %S208 = icmp ult i64 %B15, %B185 %L209 = load <2 x i64>* %S116 store <2 x i64> %L150, <2 x i64>* %S116 %E210 = extractelement <8 x i1> %S159, i32 3 %E211 = extractelement <8 x i1> %S127, i32 5 %Shuff212 = shufflevector <8 x float> %Shuff80, <8 x float> %Shuff, <8 x i32> %Shuff213 = shufflevector <2 x i32> %B84, <2 x i32> %L27, <2 x i32> %Shuff214 = shufflevector <2 x i32> %Shuff213, <2 x i32> %Shuff213, <2 x i32> %I215 = insertelement <8 x float> %Shuff142, float %B157, i32 6 %B216 = srem <2 x i32> %Shuff92, %Shuff132 %ZE217 = zext i8 %L8 to i16 %S218 = select i1 %E130, double %S36, double 0x3EE3CB298BF7FCE3 %S219 = icmp ule i64 25071, %B185 %L220 = load i32* %PC store i8 %L, i8* %0 %E221 = extractelement <8 x float> %Shuff80, i32 2 %E222 = extractelement <8 x float> %Shuff, i32 4 %Shuff223 = shufflevector <8 x float> %Shuff164, <8 x float> %Shuff103, <8 x i32> %Shuff224 = shufflevector <8 x i32> %FC186, <8 x i32> %FC186, <8 x i32> %Shuff225 = shufflevector <8 x float> %Shuff51, <8 x float> %Shuff153, <8 x i32> %I226 = insertelement <8 x i1> %B177, i1 %E130, i32 5 %B227 = fadd <8 x float> %I33, %Shuff102 %BC228 = bitcast i32 0 to float %S229 = select i1 true, float %E, float %E221 %L230 = load i32* %PC store <2 x i64> %L118, <2 x i64>* %S116 %E231 = extractelement <8 x float> %Shuff12, i32 1 %E232 = extractelement <8 x float> %Shuff202, i32 3 %Shuff233 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff, <8 x i32> %Shuff234 = shufflevector <2 x i32> %Shuff92, <2 x i32> %Shuff72, <2 x i32> %Shuff235 = shufflevector <2 x i32> %Shuff40, <2 x i32> %Shuff72, <2 x i32> %I236 = insertelement <8 x float> %I166, float %E19, i32 4 %B237 = sub i64 25071, %B185 %PC238 = bitcast <2 x float>* %A to float* %S239 = select i1 %E180, i64 %S25, i64 %Se %S240 = icmp ult <8 x i1> %I205, %S159 %L241 = load i8* %S158 store float %E190, float* %PC238 %E242 = extractelement <8 x float> %Shuff, i32 7 %E243 = extractelement <8 x float> %Shuff, i32 1 %Shuff244 = shufflevector <8 x float> %Shuff51, <8 x float> %Shuff233, <8 x i32> %Shuff245 = shufflevector <2 x i32> %Shuff213, <2 x i32> %Shuff72, <2 x i32> %Shuff246 = shufflevector <8 x float> %Shuff90, <8 x float> %Shuff, <8 x i32> %I247 = insertelement <8 x float> %Shuff212, float %E190, i32 6 %B248 = fdiv <8 x float> %I24, %Shuff225 %FC249 = fptoui <8 x float> %Shuff63 to <8 x i64> %S250 = select i1 %S219, float %E221, float %E5 %S251 = fcmp olt float %S126, %E99 %L252 = load double* %PC45 store float %E49, float* %PC238 %E253 = extractelement <8 x float> %Shuff7, i32 2 %E254 = extractelement <8 x i64> %FC249, i32 4 %Shuff255 = shufflevector <8 x float> %Shuff164, <8 x float> %Shuff, <8 x i32> %Shuff256 = shufflevector <8 x float> %Shuff11, <8 x float> %Shuff183, <8 x i32> %Shuff257 = shufflevector <2 x i32> %Shuff101, <2 x i32> %L27, <2 x i32> %I258 = insertelement <8 x float> %Shuff, float %E221, i32 1 %Se259 = sext i1 %Tr75 to i32 %S260 = select i1 %S97, float %E78, float %E108 %S261 = fcmp ult <8 x float> %Shuff173, %I83 %L262 = load i8* %S158 store i32 %B34, i32* %PC %E263 = extractelement <8 x float> %Shuff, i32 5 %E264 = extractelement <8 x float> %Shuff110, i32 7 %Shuff265 = shufflevector <8 x float> %Shuff233, <8 x float> %Shuff, <8 x i32> %Shuff266 = shufflevector <8 x float> %Shuff244, <8 x float> %Shuff202, <8 x i32> %Shuff267 = shufflevector <8 x float> %Shuff80, <8 x float> %Shuff212, <8 x i32> %I268 = insertelement <8 x float> %Shuff255, float %E69, i32 0 %ZE269 = fpext float %E231 to double %S270 = select i1 %B44, float %E161, float %E151 %S271 = fcmp oge <8 x float> %Shuff62, %Shuff %L272 = load float* %PC238 store i32 %E172, i32* %PC %E273 = extractelement <8 x float> %Shuff, i32 2 %E274 = extractelement <8 x float> %Shuff80, i32 4 %Shuff275 = shufflevector <8 x float> %I113, <8 x float> %Shuff41, <8 x i32> %Shuff276 = shufflevector <8 x float> %Shuff212, <8 x float> %I134, <8 x i32> %Shuff277 = shufflevector <8 x float> %Shuff110, <8 x float> %Shuff110, <8 x i32> %I278 = insertelement <2 x i32> %I145, i32 %3, i32 1 %FC279 = fptoui float %E232 to i8 %S280 = select i1 %Tr, i64 %B185, i64 %S25 %S281 = fcmp uno double 0x3EE3CB298BF7FCE3, %S218 %L282 = load i8* %S158 store i32 %E172, i32* %PC %E283 = extractelement <2 x i32> %Shuff101, i32 1 %E284 = extractelement <2 x i32> %B216, i32 1 %Shuff285 = shufflevector <2 x double> %FC115, <2 x double> %FC115, <2 x i32> %Shuff286 = shufflevector <2 x double> %Shuff285, <2 x double> %Shuff285, <2 x i32> %Shuff287 = shufflevector <8 x float> %Shuff255, <8 x float> %Shuff102, <8 x i32> %I288 = insertelement <2 x i32> %B216, i32 %B34, i32 0 %B289 = ashr i8 %L262, %L139 %ZE290 = fpext float %E201 to double %S291 = select i1 true, float %S270, float %E242 %S292 = icmp eq <2 x i32> %I278, %Shuff72 %L293 = load double* %PC45 store <2 x i64> %L118, <2 x i64>* %A3 %E294 = extractelement <8 x float> %Shuff202, i32 0 %E295 = extractelement <8 x i1> %S240, i32 2 %Shuff296 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff80, <8 x i32> %Shuff297 = shufflevector <8 x float> %Shuff30, <8 x float> %Shuff233, <8 x i32> %Shuff298 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff41, <8 x i32> %I299 = insertelement <8 x float> %Shuff144, float %E19, i32 3 %BC300 = bitcast i32 %L37 to float %S301 = select i1 %E210, i32 0, i32 %E119 %S302 = fcmp ugt float %E151, %E201 %L303 = load i8* %S158 store <2 x i64> %L118, <2 x i64>* %S116 %E304 = extractelement <8 x i1> %S261, i32 1 %E305 = extractelement <8 x i1> %S127, i32 3 %Shuff306 = shufflevector <8 x i1> %S57, <8 x i1> %S66, <8 x i32> %Shuff307 = shufflevector <2 x i32> %Shuff245, <2 x i32> %Shuff82, <2 x i32> %Shuff308 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff275, <8 x i32> %I309 = insertelement <8 x float> %Shuff265, float %S148, i32 0 %FC310 = fptoui float %E221 to i16 %S311 = select i1 %E130, float 0x3ED76A4E00000000, float %E88 %S312 = fcmp une double %ZE, 0x3EEED9227F419BDF %L313 = load i8* %0 store i64 %E254, i64* %PC16 %E314 = extractelement <8 x float> %Shuff, i32 5 %E315 = extractelement <8 x i1> %S149, i32 7 %Shuff316 = shufflevector <2 x i64> %L209, <2 x i64> %L118, <2 x i32> %Shuff317 = shufflevector <8 x float> %Shuff163, <8 x float> %Shuff287, <8 x i32> %Shuff318 = shufflevector <2 x i64> %L199, <2 x i64> %L150, <2 x i32> %I319 = insertelement <8 x float> %Shuff103, float %E151, i32 0 %FC320 = sitofp i1 %E211 to double %S321 = select i1 %S208, float %S229, float %S250 %S322 = icmp ule <8 x i1> %B177, %FC %L323 = load <2 x i64>* %S116 store float %E9, float* %PC238 %E324 = extractelement <8 x float> %Shuff276, i32 3 %E325 = extractelement <8 x float> %Shuff103, i32 5 %Shuff326 = shufflevector <8 x float> %Shuff212, <8 x float> %Shuff202, <8 x i32> %Shuff327 = shufflevector <2 x i32> %Shuff101, <2 x i32> %Shuff40, <2 x i32> %Shuff328 = shufflevector <8 x float> %Shuff223, <8 x float> %Shuff326, <8 x i32> %I329 = insertelement <8 x float> %Shuff255, float %B114, i32 2 %B330 = udiv i32 %E200, 0 %FC331 = fptosi float %E325 to i32 %S332 = select i1 %FC35, i8 %4, i8 %S76 %S333 = icmp sgt <2 x i64> %L189, %L118 %L334 = load float* %PC238 store i32 0, i32* %PC %E335 = extractelement <2 x i64> %L118, i32 1 %E336 = extractelement <2 x i32> %L27, i32 1 %Shuff337 = shufflevector <8 x float> %Shuff143, <8 x float> %Shuff11, <8 x i32> %Shuff338 = shufflevector <8 x float> %Shuff71, <8 x float> %Shuff142, <8 x i32> %Shuff339 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff153, <8 x i32> %I340 = insertelement <2 x i32> %Shuff214, i32 %E172, i32 0 %B341 = fdiv <8 x float> %I176, %Shuff %ZE342 = fpext float %E120 to double %S343 = select i1 %S302, <2 x i32>* %A2, <2 x i32>* %A2 %S344 = fcmp oeq <8 x float> %I24, %Shuff %L345 = load i32* %PC store i32 %BC, i32* %PC %E346 = extractelement <2 x i32> %Shuff101, i32 1 %E347 = extractelement <8 x float> %Shuff, i32 3 %Shuff348 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff192, <8 x i32> %Shuff349 = shufflevector <2 x i64> %L323, <2 x i64> %L118, <2 x i32> %Shuff350 = shufflevector <8 x float> %Shuff131, <8 x float> %Shuff21, <8 x i32> %I351 = insertelement <2 x i32> %L27, i32 %L230, i32 0 %FC352 = sitofp i32 %E346 to double %S353 = select i1 %FC35, float %S148, float %E273 %S354 = icmp uge <2 x i32> %Shuff182, %Shuff92 %L355 = load <2 x i32>* %S343 store float %S85, float* %PC238 %E356 = extractelement <2 x i64> %Shuff316, i32 0 %E357 = extractelement <8 x float> %I184, i32 6 %Shuff358 = shufflevector <2 x i64> %Shuff349, <2 x i64> %L118, <2 x i32> %Shuff359 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff41, <8 x i32> %Shuff360 = shufflevector <8 x float> %Shuff63, <8 x float> %Shuff233, <8 x i32> %I361 = insertelement <8 x float> %Shuff350, float %S137, i32 3 %S362 = select i1 %S208, double %S96, double %L252 %S363 = icmp uge i1 %S208, %Tr %L364 = load <2 x i64>* %S116 store double %ZE290, double* %PC45 %E365 = extractelement <8 x float> %Shuff70, i32 0 %E366 = extractelement <2 x i32> %Shuff175, i32 0 %Shuff367 = shufflevector <8 x float> %Shuff21, <8 x float> %Shuff110, <8 x i32> %Shuff368 = shufflevector <2 x i64> %Shuff316, <2 x i64> %Shuff316, <2 x i32> %Shuff369 = shufflevector <8 x float> %Shuff275, <8 x float> %Shuff80, <8 x i32> %I370 = insertelement <8 x float> %Shuff, float %E19, i32 7 %PC371 = bitcast i64* %2 to double* %S372 = select i1 %E304, float %E120, float %S353 %S373 = fcmp ogt <8 x float> %Shuff71, %Shuff244 %L374 = load float* %PC238 store <2 x i32> %L27, <2 x i32>* %S343 %E375 = extractelement <2 x i32> %Shuff40, i32 0 %E376 = extractelement <8 x float> %Shuff, i32 0 %Shuff377 = shufflevector <8 x float> %Shuff265, <8 x float> %Shuff153, <8 x i32> %Shuff378 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff110, <8 x i32> %Shuff379 = shufflevector <2 x i64> %L364, <2 x i64> %Shuff316, <2 x i32> %I380 = insertelement <8 x float> %Shuff192, float %S137, i32 5 %S381 = select i1 %S281, double %L252, double 0x3EE3CB298BF7FCE3 %S382 = icmp ugt i8 %FC279, %4 %L383 = load <2 x i32>* %S343 store <2 x i32> %Shuff132, <2 x i32>* %S343 %E384 = extractelement <8 x float> %I370, i32 2 %E385 = extractelement <8 x float> %Shuff21, i32 4 %Shuff386 = shufflevector <2 x i64> %Shuff358, <2 x i64> %Shuff316, <2 x i32> %Shuff387 = shufflevector <8 x float> %Shuff, <8 x float> %Shuff275, <8 x i32> %Shuff388 = shufflevector <2 x i64> %Shuff316, <2 x i64> %Shuff316, <2 x i32> %I389 = insertelement <8 x i1> %S117, i1 %S363, i32 5 %FC390 = uitofp i8 %L8 to float %S391 = select i1 true, i8 %B, i8 %L262 %S392 = icmp uge <2 x i1> %S333, %S292 %L393 = load float* %PC238 store <2 x i64> %L118, <2 x i64>* %S116 %E394 = extractelement <8 x float> %Shuff377, i32 2 %E395 = extractelement <2 x i64> %L150, i32 0 %Shuff396 = shufflevector <2 x i64> %L209, <2 x i64> %L118, <2 x i32> %Shuff397 = shufflevector <2 x i32> %I104, <2 x i32> %I351, <2 x i32> %Shuff398 = shufflevector <8 x i1> %S322, <8 x i1> %S240, <8 x i32> %I399 = insertelement <2 x i64> %Shuff316, i64 %B185, i32 1 %B400 = shl i1 true, %E130 %ZE401 = zext <2 x i32> %I340 to <2 x i64> %S402 = select i1 %S208, float %E191, float %E221 %S403 = icmp ne <2 x i32> %B94, %Shuff40 %L404 = load float* %PC238 store float %BC228, float* %PC238 %E405 = extractelement <8 x float> %Shuff337, i32 4 %E406 = extractelement <2 x i32> %Shuff234, i32 0 %Shuff407 = shufflevector <8 x float> %Shuff337, <8 x float> %Shuff367, <8 x i32> %Shuff408 = shufflevector <2 x i1> %S333, <2 x i1> %S292, <2 x i32> %Shuff409 = shufflevector <8 x float> %Shuff142, <8 x float> %Shuff359, <8 x i32> %I410 = insertelement <8 x float> %Shuff377, float %E365, i32 3 %B411 = sdiv <2 x i32> %L383, %I340 %ZE412 = fpext <8 x float> %Shuff317 to <8 x double> %S413 = select i1 %S47, <2 x double>* %A1, <2 x double>* %A1 %S414 = icmp ult i64 %Se, %B185 store double %L67, double* %PC371 store float %E99, float* %PC238 store <2 x i64> %L118, <2 x i64>* %S116 store <2 x double> %FC115, <2 x double>* %S413 store i32 %E366, i32* %PC 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 Aug 2 04:53:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 04:53:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 10564] New: VerifyNodeCommon(llvm::SDNode*): Assertion `(I->getValueType() == EltVT || (EltVT.isInteger() && I->getValueType().isInteger() && EltVT.bitsLE(I->getValueType()))) && "Wrong operand type!"' failed. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10564 Summary: VerifyNodeCommon(llvm::SDNode*): Assertion `(I->getValueType() == EltVT || (EltVT.isInteger() && I->getValueType().isInteger() && EltVT.bitsLE(I->getValueType()))) && "Wrong operand type!"' failed. Product: new-bugs Version: 2.8 Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: nadav.rotem at intel.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7000) --> (http://llvm.org/bugs/attachment.cgi?id=7000) LL file reproducing the problem llc: SelectionDAG.cpp:776: void VerifyNodeCommon(llvm::SDNode*): Assertion `(I->getValueType() == EltVT || (EltVT.isInteger() && I->getValueType().isInteger() && EltVT.bitsLE(I->getValueType()))) && "Wrong operand type!"' failed. 0 llc 0x0000000001549f06 1 llc 0x000000000154a494 2 libpthread.so.0 0x00002aaaaabd4d60 3 libc.so.6 0x00002aaaab274f45 gsignal + 53 4 libc.so.6 0x00002aaaab276340 abort + 272 5 libc.so.6 0x00002aaaab26e486 __assert_fail + 246 6 llc 0x0000000000f8dea0 7 llc 0x0000000000f8ee00 8 llc 0x0000000000fa1d9a llvm::SelectionDAG::getNode(unsigned int, llvm::DebugLoc, llvm::EVT, llvm::SDValue, llvm::SDValue) + 11832 9 llc 0x0000000000f9a0c8 llvm::SelectionDAG::getNode(unsigned int, llvm::DebugLoc, llvm::EVT, llvm::SDValue const*, unsigned int) + 422 10 llc 0x000000000105101b (anonymous namespace)::SelectionDAGLegalize::ExpandNode(llvm::SDNode*, llvm::SmallVectorImpl&) + 10837 11 llc 0x000000000104215c (anonymous namespace)::SelectionDAGLegalize::LegalizeOp(llvm::SDValue) + 4374 12 llc 0x00000000010570d3 (anonymous namespace)::SelectionDAGLegalize::LegalizeDAG() + 179 13 llc 0x00000000010571f1 llvm::SelectionDAG::Legalize() + 49 14 llc 0x0000000000ffe7e8 llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 2424 15 llc 0x000000000100054e llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator, llvm::ilist_iterator, bool&) + 230 16 llc 0x0000000001000eb0 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 2400 17 llc 0x000000000100142f llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 849 18 llc 0x000000000114c971 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 85 19 llc 0x0000000001484137 llvm::FPPassManager::runOnFunction(llvm::Function&) + 371 20 llc 0x000000000148432f llvm::FPPassManager::runOnModule(llvm::Module&) + 81 21 llc 0x0000000001483de3 llvm::MPPassManager::runOnModule(llvm::Module&) + 381 22 llc 0x0000000001485598 llvm::PassManagerImpl::run(llvm::Module&) + 116 23 llc 0x00000000014855fb llvm::PassManager::run(llvm::Module&) + 33 24 llc 0x0000000000ab884d main + 2403 25 libc.so.6 0x00002aaaab262304 __libc_start_main + 244 26 llc 0x0000000000ab6f99 Stack dump: 0. Program arguments: ../llc temp.ll -march=x86 -mattr=+sse2,+sse41 -o /dev/null 1. Running pass 'Function Pass Manager' on module 'temp.ll'. 2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@autogen_99163_5000' ; ModuleID = 'bugpoint-reduced-simplified.bc' target triple = "x86_64-unknown-linux-gnu" define void @autogen_99163_5000(i8*, i32*, i64*, i32, i8, i64) { BB: %A4 = alloca <2 x float> %A3 = alloca <2 x i64> %A2 = alloca <2 x float> %A1 = alloca <2 x i64> %A = alloca i64 %L = load i8* %0 store i8 %L, i8* %0 %E = extractelement <8 x double> undef, i32 7 %E5 = extractelement <32 x i64> undef, i32 28 %Shuff = shufflevector <8 x i32> undef, <8 x i32> undef, <8 x i32> %Shuff6 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff, <8 x i32> %Shuff7 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff, <8 x i32> %I = insertelement <8 x i32> %Shuff, i32 %3, i32 0 %B = lshr <8 x i32> %I, %Shuff %FC = fptosi float 0x3EC05F0160000000 to i32 %S = select i1 true, double 0x3EC1F26C2D90F718, double 0x3EDB5E9BEDA868A1 %S8 = icmp slt i64 348815, -1 %L9 = load i64* %A store <2 x i64> undef, <2 x i64>* %A3 %E10 = extractelement <8 x i32> %Shuff, i32 0 %E11 = extractelement <8 x i32> %Shuff, i32 2 %Shuff12 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff, <8 x i32> %Shuff13 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff, <8 x i32> %Shuff14 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff, <8 x i32> %I15 = insertelement <8 x i32> %Shuff, i32 289659, i32 3 %B16 = shl <8 x i32> %Shuff7, %Shuff %ZE = fpext float 0x3EC1ED5120000000 to double %S17 = select i1 true, <2 x i64>* %A3, <2 x i64>* %A3 %L18 = load <2 x i64>* %S17 store <2 x i64> %L18, <2 x i64>* %S17 %E19 = extractelement <8 x i32> %Shuff, i32 5 %E20 = extractelement <8 x i32> %Shuff12, i32 7 %Shuff21 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff6, <8 x i32> %Shuff22 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff, <8 x i32> %Shuff23 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff, <8 x i32> %I24 = insertelement <8 x i32> %Shuff, i32 %FC, i32 0 %B25 = lshr <8 x i32> %I24, %Shuff %FC26 = fptosi double %S to i32 %S27 = select i1 true, i32 251363, i32 289659 %S28 = fcmp oeq float 0x3EC1ED5120000000, 0x3ED4F028E0000000 %L29 = load i8* %0 store i8 %L29, i8* %0 %E30 = extractelement <8 x i32> %Shuff, i32 0 %E31 = extractelement <8 x i32> %Shuff12, i32 2 %Shuff32 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff, <8 x i32> %Shuff33 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff, <8 x i32> %Shuff34 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff, <8 x i32> %I35 = insertelement <8 x i32> %B16, i32 %3, i32 3 %B36 = or <8 x i32> %Shuff22, %Shuff %S37 = select i1 %S8, float 0x3ED375A8C0000000, float 0x3ED4F028E0000000 %S38 = fcmp ule float 0x3EC56BD420000000, 0x3EC05F0160000000 %L39 = load <2 x i64>* %S17 store <2 x i64> %L39, <2 x i64>* %S17 %E40 = extractelement <8 x i32> %Shuff, i32 7 %E41 = extractelement <8 x i32> %Shuff, i32 1 %Shuff42 = shufflevector <8 x i32> %Shuff32, <8 x i32> %Shuff, <8 x i32> %Shuff43 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff23, <8 x i32> %Shuff44 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff32, <8 x i32> %I45 = insertelement <8 x i32> %Shuff, i32 %FC, i32 2 %B46 = fdiv float 0x3EC74E3E40000000, 0x3ED4F028E0000000 %FC47 = fptosi float 0x3EC1ED5120000000 to i64 %S48 = select i1 true, float 0x3EDB8215A0000000, float 0x3ED3CB3BE0000000 %S49 = icmp sgt i32 %3, %E10 %L50 = load i8* %0 store <2 x i64> %L18, <2 x i64>* %S17 %E51 = extractelement <8 x i32> %Shuff, i32 2 %E52 = extractelement <8 x i32> %Shuff14, i32 4 %Shuff53 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff, <8 x i32> %Shuff54 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff32, <8 x i32> %Shuff55 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff53, <8 x i32> %I56 = insertelement <8 x i32> %Shuff, i32 251363, i32 5 %B57 = urem i1 true, true %BC = bitcast i32 %E31 to float %S58 = select i1 %B57, i64 %5, i64 %L9 %S59 = icmp ne <8 x i32> %Shuff33, %I24 %L60 = load <2 x i64>* %S17 store i8 %L50, i8* %0 %E61 = extractelement <2 x i64> %L39, i32 0 %E62 = extractelement <2 x i64> %L18, i32 0 %Shuff63 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff32, <8 x i32> %Shuff64 = shufflevector <8 x i32> %B36, <8 x i32> %Shuff, <8 x i32> %Shuff65 = shufflevector <8 x i32> %Shuff, <8 x i32> %B36, <8 x i32> %I66 = insertelement <8 x i32> %Shuff22, i32 %FC26, i32 5 %B67 = fdiv float 0x3EC0F40B00000000, 0x3ED4F028E0000000 %Se = sext i32 %E30 to i64 %S68 = select i1 true, float 0x3EC7544880000000, float %B67 %S69 = icmp eq <8 x i32> %Shuff34, %Shuff %L70 = load <2 x i64>* %S17 store <2 x i64> %L18, <2 x i64>* %S17 %E71 = extractelement <8 x i32> %Shuff, i32 3 %E72 = extractelement <8 x i32> %Shuff32, i32 5 %Shuff73 = shufflevector <8 x i32> %Shuff43, <8 x i32> %Shuff, <8 x i32> %Shuff74 = shufflevector <8 x i1> %S69, <8 x i1> %S59, <8 x i32> %Shuff75 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff63, <8 x i32> %I76 = insertelement <8 x i32> %Shuff, i32 %3, i32 6 %B77 = sdiv i8 %L, %L29 %Se78 = sext <8 x i32> %Shuff44 to <8 x i64> %S79 = select i1 %S38, i32 251363, i32 %FC %S80 = fcmp ole float 0x3EE5065380000000, %S37 %L81 = load <2 x i64>* %S17 store <2 x i64> %L60, <2 x i64>* %S17 %E82 = extractelement <8 x i1> %S69, i32 4 %E83 = extractelement <8 x i32> %Shuff32, i32 6 %Shuff84 = shufflevector <8 x i32> %Shuff12, <8 x i32> %Shuff53, <8 x i32> %Shuff85 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff, <8 x i32> %Shuff86 = shufflevector <2 x i64> %L81, <2 x i64> %L18, <2 x i32> %I87 = insertelement <8 x i32> %Shuff, i32 %E19, i32 3 %B88 = or i1 true, %S49 %Tr = trunc i32 %3 to i16 %S89 = select i1 true, i32 328887, i32 %FC %S90 = fcmp olt double 0x3EC92FFD616245BF, %E %L91 = load <2 x i64>* %S17 store i8 %L, i8* %0 %E92 = extractelement <8 x i32> %Shuff73, i32 0 %E93 = extractelement <2 x i64> %L91, i32 0 %Shuff94 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff63, <8 x i32> %Shuff95 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff53, <8 x i32> %Shuff96 = shufflevector <8 x i1> %S69, <8 x i1> %S59, <8 x i32> %I97 = insertelement <8 x i64> %Se78, i64 130955, i32 3 %FC98 = sitofp <8 x i32> %Shuff34 to <8 x double> %S99 = select i1 %S28, i32 %E83, i32 328887 %S100 = icmp sgt i32 %E11, 289659 %L101 = load <2 x i64>* %S17 store i8 %L29, i8* %0 %E102 = extractelement <8 x i32> %Shuff, i32 0 %E103 = extractelement <8 x i32> %I, i32 2 %Shuff104 = shufflevector <2 x i64> %L39, <2 x i64> %L18, <2 x i32> %Shuff105 = shufflevector <2 x i64> %Shuff104, <2 x i64> %L18, <2 x i32> %Shuff106 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff32, <8 x i32> %I107 = insertelement <8 x i32> %Shuff23, i32 289659, i32 3 %B108 = shl i64 %E62, %FC47 %ZE109 = zext <8 x i32> %Shuff73 to <8 x i64> %S110 = select i1 %S100, double 0x3EC88748A4352AFE, double 0x3EDB5E9BEDA868A1 %S111 = icmp sge <8 x i32> %I35, %Shuff %L112 = load <2 x i64>* %S17 store i8 %L, i8* %0 %E113 = extractelement <8 x i32> %Shuff, i32 4 %E114 = extractelement <8 x i32> %Shuff12, i32 6 %Shuff115 = shufflevector <8 x i32> %Shuff53, <8 x i32> %Shuff, <8 x i32> %Shuff116 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff115, <8 x i32> %Shuff117 = shufflevector <8 x i32> %Shuff32, <8 x i32> %Shuff, <8 x i32> %I118 = insertelement <8 x i32> %Shuff53, i32 %FC, i32 7 %B119 = add <8 x i32> %Shuff95, %I66 %Se120 = sext i16 %Tr to i64 %S121 = select i1 true, float 0x3EC74E3E40000000, float %S37 %S122 = icmp sge i64 %L9, %S58 %L123 = load i8* %0 store i8 %4, i8* %0 %E124 = extractelement <8 x i32> %I15, i32 4 %E125 = extractelement <8 x i32> %B16, i32 6 %Shuff126 = shufflevector <8 x i32> %Shuff32, <8 x i32> %Shuff106, <8 x i32> %Shuff127 = shufflevector <8 x i32> %I66, <8 x i32> %Shuff12, <8 x i32> %Shuff128 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff53, <8 x i32> %I129 = insertelement <8 x i32> %B25, i32 %FC, i32 7 %B130 = add i64 305903, 124639 %BC131 = bitcast i32 251363 to float %S132 = select i1 true, <2 x i64>* %A1, <2 x i64>* %S17 %S133 = icmp ult i32 %E71, %E19 %L134 = load <2 x i64>* %S132 store <2 x i64> %L18, <2 x i64>* %S17 %E135 = extractelement <8 x i32> %Shuff32, i32 4 %E136 = extractelement <8 x i32> %Shuff117, i32 6 %Shuff137 = shufflevector <2 x i64> %L134, <2 x i64> %L134, <2 x i32> %Shuff138 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff, <8 x i32> %Shuff139 = shufflevector <2 x i64> %L60, <2 x i64> %L18, <2 x i32> %I140 = insertelement <8 x i32> %Shuff, i32 %FC, i32 7 %B141 = mul <2 x i64> %Shuff137, %L101 %FC142 = uitofp i64 %B108 to float %S143 = select i1 %S90, i16 11715, i16 %Tr %S144 = icmp ugt <8 x i32> %I56, %Shuff12 %L145 = load <2 x i64>* %S132 store i64 124639, i64* %A %E146 = extractelement <8 x i1> %S59, i32 1 %E147 = extractelement <2 x i64> %B141, i32 1 %Shuff148 = shufflevector <8 x i32> %Shuff7, <8 x i32> %Shuff116, <8 x i32> %Shuff149 = shufflevector <8 x i1> %S111, <8 x i1> %S59, <8 x i32> %Shuff150 = shufflevector <2 x i64> %L81, <2 x i64> %L60, <2 x i32> %I151 = insertelement <8 x i32> %Shuff, i32 %3, i32 0 %Tr152 = fptrunc double %S110 to float %S153 = select i1 %E82, i64 302783, i64 %L9 %L154 = load i8* %0 store <2 x i64> %L18, <2 x i64>* %S132 %E155 = extractelement <8 x i32> %Shuff148, i32 1 %E156 = extractelement <2 x i64> %Shuff139, i32 1 %Shuff157 = shufflevector <8 x i32> %I129, <8 x i32> %I118, <8 x i32> %Shuff158 = shufflevector <2 x i64> %Shuff104, <2 x i64> %L81, <2 x i32> %Shuff159 = shufflevector <2 x i64> %L39, <2 x i64> %L18, <2 x i32> %I160 = insertelement <8 x i32> %Shuff, i32 %S99, i32 4 %Tr161 = trunc i64 %B130 to i32 %S162 = select i1 %S122, i64 -1, i64 %B108 %S163 = icmp slt i32 %FC26, %E51 %L164 = load <2 x i64>* %S17 store <2 x i64> %L134, <2 x i64>* %S17 %E165 = extractelement <8 x i32> %Shuff127, i32 3 %E166 = extractelement <8 x i1> %S69, i32 5 %Shuff167 = shufflevector <8 x i32> %Shuff, <8 x i32> %B25, <8 x i32> %Shuff168 = shufflevector <8 x i32> %Shuff115, <8 x i32> %I140, <8 x i32> %Shuff169 = shufflevector <8 x i32> %Shuff12, <8 x i32> %Shuff94, <8 x i32> %I170 = insertelement <8 x i32> %Shuff126, i32 %S99, i32 6 %B171 = lshr <8 x i32> %Shuff75, %Shuff %PC = bitcast i32* %1 to float* %S172 = select i1 %E82, float* %PC, float* %PC %S173 = icmp sgt <8 x i32> %B25, %Shuff %L174 = load <2 x i64>* %S17 store <2 x i64> %L18, <2 x i64>* %S17 %E175 = extractelement <8 x i32> %Shuff138, i32 6 %E176 = extractelement <2 x i64> %Shuff137, i32 0 %Shuff177 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff73, <8 x i32> %Shuff178 = shufflevector <8 x i32> %Shuff6, <8 x i32> %Shuff32, <8 x i32> %Shuff179 = shufflevector <8 x i32> %Shuff116, <8 x i32> %Shuff, <8 x i32> %I180 = insertelement <8 x i32> %I170, i32 %E71, i32 1 %B181 = ashr i32 %E113, %E135 %Tr182 = trunc <8 x i32> %B16 to <8 x i16> %S183 = select i1 %S49, i8 %L154, i8 %L %S184 = icmp ule i32 251363, %E71 %L185 = load <2 x i64>* %S132 store i8 %L, i8* %0 %E186 = extractelement <8 x i32> %Shuff, i32 6 %E187 = extractelement <8 x i32> %Shuff12, i32 0 %Shuff188 = shufflevector <8 x i32> %Shuff32, <8 x i32> %Shuff73, <8 x i32> %Shuff189 = shufflevector <2 x i64> %Shuff139, <2 x i64> %L70, <2 x i32> undef %Shuff190 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff12, <8 x i32> %I191 = insertelement <8 x i32> %Shuff179, i32 %E186, i32 5 %B192 = fsub float %BC131, %S121 %ZE193 = zext <8 x i32> %I66 to <8 x i64> %S194 = select i1 %E146, i64 %E61, i64 %5 %S195 = icmp ult i32 %S27, %FC %L196 = load float* %PC store <2 x i64> %L112, <2 x i64>* %S132 %E197 = extractelement <8 x i32> %Shuff126, i32 1 %E198 = extractelement <8 x i32> %Shuff115, i32 3 %Shuff199 = shufflevector <8 x i32> %Shuff53, <8 x i32> %Shuff84, <8 x i32> %Shuff200 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff12, <8 x i32> %Shuff201 = shufflevector <8 x i32> %Shuff42, <8 x i32> %Shuff, <8 x i32> %I202 = insertelement <8 x i32> %Shuff53, i32 %E19, i32 4 %B203 = srem <8 x i1> %Shuff74, %S59 %BC204 = bitcast <8 x i32> %I24 to <8 x float> %S205 = select i1 %S133, double 0x3EC1F26C2D90F718, double %S110 %S206 = icmp sgt i32 %E102, 56707 %L207 = load i64* %A store <2 x i64> %Shuff189, <2 x i64>* %A1 %E208 = extractelement <8 x i32> %I45, i32 2 %E209 = extractelement <8 x i1> %S144, i32 4 %Shuff210 = shufflevector <8 x i32> %I191, <8 x i32> %Shuff63, <8 x i32> %Shuff211 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff210, <8 x i32> %Shuff212 = shufflevector <8 x i32> %Shuff199, <8 x i32> %Shuff42, <8 x i32> %I213 = insertelement <8 x i32> %Shuff, i32 %3, i32 5 %B214 = fsub float %B67, %B192 %FC215 = uitofp i32 %E197 to double %S216 = select i1 %S90, i64 61671, i64 %E5 %S217 = icmp ult <8 x i32> %B16, %Shuff94 %L218 = load <2 x i64>* %S132 store <2 x i64> %L18, <2 x i64>* %S132 %E219 = extractelement <2 x i64> %Shuff189, i32 1 %E220 = extractelement <8 x i32> %Shuff32, i32 3 %Shuff221 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff127, <8 x i32> %Shuff222 = shufflevector <8 x i32> %Shuff200, <8 x i32> %Shuff188, <8 x i32> %Shuff223 = shufflevector <8 x i32> %Shuff32, <8 x i32> %Shuff177, <8 x i32> %I224 = insertelement <8 x i32> %I129, i32 %E31, i32 4 %B225 = and <8 x i1> %Shuff74, %S173 %FC226 = uitofp <8 x i32> %Shuff84 to <8 x double> %S227 = select i1 %S38, i32 %E102, i32 %E71 %S228 = icmp slt <2 x i64> %L101, %L60 %L229 = load i8* %0 store i8 %L229, i8* %0 %E230 = extractelement <8 x i32> %Shuff32, i32 3 %E231 = extractelement <8 x i32> %Shuff22, i32 5 %Shuff232 = shufflevector <8 x i32> %Shuff126, <8 x i32> %Shuff32, <8 x i32> %Shuff233 = shufflevector <2 x i64> %L185, <2 x i64> %L18, <2 x i32> %Shuff234 = shufflevector <8 x i32> %Shuff32, <8 x i32> %Shuff63, <8 x i32> %I235 = insertelement <8 x i32> %Shuff, i32 251363, i32 2 %B236 = ashr <8 x i32> %I45, %Shuff %FC237 = sitofp i64 %S194 to float %S238 = select i1 %E166, float 0x3ED4F028E0000000, float %B192 %L239 = load <2 x i64>* %S132 store i8 %L229, i8* %0 %E240 = extractelement <8 x i32> %Shuff64, i32 0 %E241 = extractelement <8 x i1> %Shuff149, i32 2 %Shuff242 = shufflevector <8 x i32> %I118, <8 x i32> %Shuff53, <8 x i32> %Shuff243 = shufflevector <8 x i32> %Shuff44, <8 x i32> %Shuff84, <8 x i32> %Shuff244 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff126, <8 x i32> %I245 = insertelement <8 x i32> %I24, i32 %E71, i32 3 %B246 = or <2 x i64> %L174, %L18 %FC247 = sitofp <8 x i32> %I245 to <8 x float> %S248 = select i1 %S38, i1 %S49, i1 true %S249 = icmp uge i32 %E187, %E19 %L250 = load <2 x i64>* %S132 store <2 x i64> %L18, <2 x i64>* %S132 %E251 = extractelement <2 x i64> %L91, i32 0 %E252 = extractelement <8 x i32> %Shuff199, i32 0 %Shuff253 = shufflevector <8 x i32> %Shuff115, <8 x i32> %Shuff44, <8 x i32> %Shuff254 = shufflevector <8 x i32> %I45, <8 x i32> %Shuff199, <8 x i32> %Shuff255 = shufflevector <8 x i1> %B203, <8 x i1> %S59, <8 x i32> %I256 = insertelement <8 x i32> %Shuff243, i32 %E240, i32 1 %FC257 = uitofp i64 %E61 to float %S258 = select i1 %B57, float %S238, float %B67 %S259 = icmp slt <2 x i64> %Shuff137, %Shuff139 %L260 = load <2 x i64>* %S132 store <2 x i64> %Shuff233, <2 x i64>* %S132 %E261 = extractelement <8 x i32> %Shuff201, i32 5 %E262 = extractelement <8 x i32> %Shuff, i32 7 %Shuff263 = shufflevector <8 x i32> %Shuff53, <8 x i32> %I35, <8 x i32> %Shuff264 = shufflevector <8 x float> %BC204, <8 x float> %BC204, <8 x i32> %Shuff265 = shufflevector <8 x i1> %Shuff74, <8 x i1> %S59, <8 x i32> %I266 = insertelement <8 x i32> %B36, i32 %E135, i32 0 %B267 = shl <2 x i64> %Shuff104, %L18 %BC268 = bitcast <8 x i32> %Shuff212 to <8 x float> %S269 = select i1 %E241, i8 %L123, i8 %L %S270 = icmp slt <8 x i32> %Shuff42, %Shuff148 %L271 = load <2 x i64>* %S17 store <2 x i64> %L18, <2 x i64>* %S132 %E272 = extractelement <2 x i1> %S228, i32 1 %E273 = extractelement <2 x i64> %Shuff150, i32 1 %Shuff274 = shufflevector <8 x i32> %B236, <8 x i32> %Shuff177, <8 x i32> %Shuff275 = shufflevector <2 x i1> %S259, <2 x i1> %S228, <2 x i32> %Shuff276 = shufflevector <8 x i32> %Shuff221, <8 x i32> %Shuff106, <8 x i32> %I277 = insertelement <2 x i64> %Shuff137, i64 %S194, i32 0 %B278 = urem i32 251363, %S89 %S279 = select i1 true, <2 x float>* %A2, <2 x float>* %A2 %S280 = icmp ult <8 x i32> %I151, %Shuff106 %L281 = load <2 x i64>* %S17 store <2 x i64> %L134, <2 x i64>* %S132 %E282 = extractelement <8 x i32> %I202, i32 1 %E283 = extractelement <8 x i32> %Shuff212, i32 3 %Shuff284 = shufflevector <2 x i64> %L260, <2 x i64> %L218, <2 x i32> %Shuff285 = shufflevector <8 x i32> %Shuff13, <8 x i32> %Shuff63, <8 x i32> %Shuff286 = shufflevector <8 x i32> %I107, <8 x i32> %Shuff274, <8 x i32> %I287 = insertelement <8 x i32> %Shuff32, i32 %E135, i32 0 %B288 = udiv <8 x i1> %S217, %S59 %ZE289 = zext i32 %E187 to i64 %S290 = select i1 %E209, i64 348815, i64 %E251 %S291 = icmp ugt <8 x i32> %I170, %Shuff128 %L292 = load <2 x i64>* %S132 store <2 x i64> %L218, <2 x i64>* %S17 %E293 = extractelement <8 x i1> %S291, i32 1 %E294 = extractelement <2 x i64> %L292, i32 1 %Shuff295 = shufflevector <8 x i32> %Shuff14, <8 x i32> %Shuff254, <8 x i32> %Shuff296 = shufflevector <8 x i32> %Shuff65, <8 x i32> %Shuff148, <8 x i32> %Shuff297 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff84, <8 x i32> %I298 = insertelement <2 x i64> %Shuff284, i64 %L9, i32 0 %B299 = sdiv <2 x i64> %L145, %Shuff158 %FC300 = sitofp i64 %E176 to double %S301 = select i1 %S8, i64 %E61, i64 %E176 %S302 = icmp ne i1 %B88, %E241 %L303 = load <2 x i64>* %S17 store <2 x float> undef, <2 x float>* %S279 %E304 = extractelement <8 x i1> %S144, i32 7 %E305 = extractelement <8 x i32> %Shuff263, i32 1 %Shuff306 = shufflevector <8 x i32> %I24, <8 x i32> %Shuff188, <8 x i32> %Shuff307 = shufflevector <8 x i32> %Shuff157, <8 x i32> %Shuff, <8 x i32> %Shuff308 = shufflevector <8 x i32> %B171, <8 x i32> %Shuff148, <8 x i32> %I309 = insertelement <2 x i64> %B141, i64 %FC47, i32 0 %B310 = mul <8 x i32> %B25, %Shuff148 %BC311 = bitcast <2 x i64> %L185 to <2 x double> %S312 = select i1 %S206, float %S37, float %S121 %S313 = icmp eq i32 %E10, %B278 %L314 = load <2 x i64>* %S132 store <2 x i64> %L39, <2 x i64>* %S17 %E315 = extractelement <8 x i32> %Shuff21, i32 2 %E316 = extractelement <8 x i32> %Shuff, i32 4 %Shuff317 = shufflevector <8 x i32> %Shuff7, <8 x i32> %Shuff64, <8 x i32> %Shuff318 = shufflevector <8 x i32> %Shuff, <8 x i32> %I76, <8 x i32> %Shuff319 = shufflevector <8 x i32> %Shuff34, <8 x i32> %I213, <8 x i32> %I320 = insertelement <8 x i32> %Shuff, i32 %S227, i32 5 %B321 = fsub double %S, %FC300 %BC322 = bitcast i64 %E156 to double %S323 = select i1 %S195, i32 56707, i32 %B278 %S324 = icmp ule i32 %B278, %E155 %L325 = load <2 x i64>* %S17 store <2 x i64> %I298, <2 x i64>* %S132 %E326 = extractelement <8 x i32> %I24, i32 3 %E327 = extractelement <8 x i32> %Shuff, i32 5 %Shuff328 = shufflevector <2 x i64> %L18, <2 x i64> %L185, <2 x i32> %Shuff329 = shufflevector <2 x i64> %L134, <2 x i64> %L70, <2 x i32> %Shuff330 = shufflevector <8 x i32> %Shuff42, <8 x i32> %Shuff138, <8 x i32> %I331 = insertelement <8 x i32> %Shuff73, i32 %E71, i32 6 %B332 = udiv <8 x i32> %Shuff177, %Shuff263 %FC333 = uitofp <8 x i32> %Shuff211 to <8 x double> %S334 = select i1 %S100, i64 %S216, i64 %S194 %S335 = icmp ult i32 %B278, %E305 %L336 = load <2 x i64>* %S17 store <2 x float> undef, <2 x float>* %S279 %E337 = extractelement <8 x i32> %B332, i32 7 %E338 = extractelement <8 x double> %FC226, i32 1 %Shuff339 = shufflevector <8 x i32> %Shuff211, <8 x i32> %Shuff73, <8 x i32> %Shuff340 = shufflevector <8 x i32> %Shuff222, <8 x i32> %I235, <8 x i32> %Shuff341 = shufflevector <8 x i64> %ZE193, <8 x i64> %Se78, <8 x i32> %I342 = insertelement <8 x i32> %Shuff, i32 %E155, i32 2 %B343 = sub <8 x i32> %I235, %Shuff106 %FC344 = sitofp i64 %S334 to float %S345 = select i1 true, i64 %S301, i64 %E273 %S346 = icmp sgt <8 x i32> %Shuff306, %Shuff138 %L347 = load i8* %0 store <2 x float> undef, <2 x float>* %S279 %E348 = extractelement <2 x i64> %L145, i32 1 %E349 = extractelement <8 x i32> %Shuff, i32 1 %Shuff350 = shufflevector <8 x i32> %Shuff21, <8 x i32> %I342, <8 x i32> %Shuff351 = shufflevector <8 x i32> %Shuff179, <8 x i32> %Shuff221, <8 x i32> %Shuff352 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff, <8 x i32> %I353 = insertelement <8 x i32> %Shuff75, i32 %E135, i32 2 %B354 = ashr <8 x i1> %S173, %S111 %FC355 = uitofp <8 x i1> %S173 to <8 x float> %S356 = select i1 %S335, double %E, double %S110 %S357 = icmp sgt <8 x i32> %Shuff94, %I287 %L358 = load i8* %0 store <2 x float> undef, <2 x float>* %S279 %E359 = extractelement <8 x i32> %Shuff32, i32 7 %E360 = extractelement <2 x i64> %I298, i32 1 %Shuff361 = shufflevector <8 x i32> %Shuff199, <8 x i32> %Shuff94, <8 x i32> %Shuff362 = shufflevector <8 x i32> %Shuff95, <8 x i32> %I35, <8 x i32> %Shuff363 = shufflevector <2 x i64> %L336, <2 x i64> %Shuff284, <2 x i32> %I364 = insertelement <8 x i32> %Shuff, i32 %S227, i32 6 %B365 = xor i32 %E349, %E40 %S366 = select i1 true, i1 %E241, i1 %B57 %L367 = load <2 x i64>* %S17 store <2 x i64> %L18, <2 x i64>* %S132 %E368 = extractelement <8 x i32> %Shuff, i32 3 %E369 = extractelement <8 x i32> %I202, i32 5 %Shuff370 = shufflevector <8 x i32> %Shuff274, <8 x i32> %Shuff148, <8 x i32> %Shuff371 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff221, <8 x i32> %Shuff372 = shufflevector <8 x i32> %B236, <8 x i32> %Shuff167, <8 x i32> %I373 = insertelement <2 x i64> %L164, i64 %E5, i32 0 %B374 = frem float %S37, %BC131 %S375 = icmp slt <2 x i64> %L112, %I298 %L376 = load <2 x i64>* %S17 store <2 x i64> %L18, <2 x i64>* %S132 %E377 = extractelement <8 x i32> %Shuff, i32 7 %E378 = extractelement <8 x i32> %Shuff148, i32 1 %Shuff379 = shufflevector <8 x i1> %Shuff265, <8 x i1> %S173, <8 x i32> %Shuff380 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff126, <8 x i32> %Shuff381 = shufflevector <8 x i32> %Shuff117, <8 x i32> %Shuff73, <8 x i32> %I382 = insertelement <8 x i32> %Shuff350, i32 %E252, i32 2 %B383 = lshr <8 x i32> %I180, %Shuff %Tr384 = trunc <2 x i64> %L336 to <2 x i16> %S385 = select i1 true, i64 %S194, i64 %S334 %S386 = icmp uge <8 x i32> %Shuff21, %Shuff210 %L387 = load i8* %0 store i8 %L347, i8* %0 %E388 = extractelement <2 x i64> %L303, i32 0 %E389 = extractelement <2 x i64> %L91, i32 0 %Shuff390 = shufflevector <8 x i32> %Shuff, <8 x i32> %Shuff, <8 x i32> %Shuff391 = shufflevector <2 x i64> %Shuff328, <2 x i64> %Shuff363, <2 x i32> %Shuff392 = shufflevector <2 x i64> %L325, <2 x i64> %Shuff391, <2 x i32> %I393 = insertelement <8 x i32> %Shuff106, i32 %E359, i32 1 %B394 = mul <8 x i32> %I24, %Shuff63 %BC395 = bitcast i32 %E114 to float %S396 = select i1 %E304, float 0x3EC05F0160000000, float %FC142 %S397 = icmp sge <2 x i64> %L260, %Shuff139 %L398 = load i8* %0 store <2 x i64> %L18, <2 x i64>* %S132 %E399 = extractelement <8 x float> %FC355, i32 4 %E400 = extractelement <8 x i32> %Shuff361, i32 6 %Shuff401 = shufflevector <2 x i64> %L91, <2 x i64> %Shuff363, <2 x i32> %Shuff402 = shufflevector <2 x i64> %L271, <2 x i64> %L39, <2 x i32> %Shuff403 = shufflevector <8 x i32> %Shuff199, <8 x i32> %Shuff, <8 x i32> %I404 = insertelement <8 x i32> %Shuff14, i32 %E252, i32 7 %B405 = or i32 %E400, %E359 %FC406 = sitofp <2 x i64> %L60 to <2 x double> %S407 = select i1 %S49, i64 302783, i64 %S385 %S408 = fcmp oeq double %BC322, %E338 %L409 = load <2 x i64>* %S132 store <2 x float> undef, <2 x float>* %S279 %E410 = extractelement <8 x i32> %Shuff148, i32 1 %E411 = extractelement <8 x i16> %Tr182, i32 3 %Shuff412 = shufflevector <8 x i32> %Shuff242, <8 x i32> %Shuff23, <8 x i32> %Shuff413 = shufflevector <2 x i64> %B141, <2 x i64> %I277, <2 x i32> %Shuff414 = shufflevector <8 x i1> %S291, <8 x i1> %Shuff96, <8 x i32> %I415 = insertelement <8 x i32> %Shuff, i32 %E19, i32 0 %B416 = or i32 %E51, %E349 %FC417 = fptosi float %S68 to i1 %S418 = select i1 %S122, i1 %S163, i1 true %S419 = icmp slt i32 %E52, %B365 %L420 = load i8* %0 store i8 %L387, i8* %0 %E421 = extractelement <8 x i32> %Shuff177, i32 1 %E422 = extractelement <2 x i64> %Shuff401, i32 1 %Shuff423 = shufflevector <8 x i32> %Shuff126, <8 x i32> %Shuff242, <8 x i32> %Shuff424 = shufflevector <8 x i32> %Shuff148, <8 x i32> %I191, <8 x i32> %Shuff425 = shufflevector <8 x i32> %Shuff94, <8 x i32> %I364, <8 x i32> %I426 = insertelement <8 x i32> %B236, i32 %E113, i32 4 %B427 = srem i64 %E176, %L207 %FC428 = uitofp <8 x i1> %Shuff149 to <8 x float> %S429 = select i1 %S302, i32 %E410, i32 %FC %S430 = icmp ugt <8 x i32> %I, %Shuff store <2 x float> undef, <2 x float>* %S279 store i8 %L420, i8* %0 store i8 %L154, i8* %0 store <2 x float> undef, <2 x float>* %S279 store <2 x i64> %L134, <2 x i64>* %S17 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 Aug 2 07:00:14 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 07:00:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 10565] New: scalarrepl assertion failure: Invalid cast! Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10565 Summary: scalarrepl assertion failure: Invalid cast! Product: new-bugs Version: 2.9 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=7001) --> (http://llvm.org/bugs/attachment.cgi?id=7001) testcase .ll $ opt -scalarrepl pr19108.ll -o /dev/null opt: llvm/lib/VMCore/Instructions.cpp:2065: static llvm::CastInst* llvm::CastInst::Create(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*, const llvm::Twine&, llvm::Instruction*): Assertion `castIsValid(op, S, Ty) && "Invalid cast!"' failed. ... 6 opt 0x0000000000cc3511 llvm::CastInst::Create(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*, llvm::Twine const&, llvm::Instruction*) + 87 7 opt 0x0000000000916375 llvm::IRBuilder >::CreateCast(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*, llvm::Twine const&) + 179 8 opt 0x0000000000914118 llvm::IRBuilder >::CreateBitCast(llvm::Value*, llvm::Type*, llvm::Twine const&) + 56 ... 15 opt 0x0000000000ce537f llvm::FPPassManager::runOnFunction(llvm::Function&) + 431 16 opt 0x0000000000ce55be llvm::FPPassManager::runOnModule(llvm::Module&) + 102 17 opt 0x0000000000ce58ee llvm::MPPassManager::runOnModule(llvm::Module&) + 456 18 opt 0x0000000000ce5de0 llvm::PassManagerImpl::run(llvm::Module&) + 130 19 opt 0x0000000000ce61e7 llvm::PassManager::run(llvm::Module&) + 39 20 opt 0x00000000008772f0 main + 4518 21 libc.so.6 0x00007f894ac7ae1f __libc_start_main + 255 22 opt 0x00000000008686d9 Stack dump: 0. Program arguments: opt -scalarrepl pr19108.ll -o /dev/null 1. Running pass 'Function Pass Manager' on module 'pr19108.ll'. 2. Running pass 'Scalar Replacement of Aggregates (DT)' on function '@_GLOBAL__sub_I_b' Aborted (core dumped) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Aug 2 08:29:13 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 08:29:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 10566] New: Assertion `DefinitionData && "queried property of class with no definition"' failed. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10566 Summary: Assertion `DefinitionData && "queried property of class with no definition"' failed. Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: joerg at NetBSD.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7002) --> (http://llvm.org/bugs/attachment.cgi?id=7002) Failing input Preprocessed input attached. Failure happens with a plain "clang dcopserver.ii". The code gives a warning about "warning: deleting pointer to incomplete type 'DCOPListener' may cause undefined behaviour", which might be related. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 2 11:06:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 11:06:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 10494] [AVX] (Result.getValueType() == Op.getValueType() && "Bad legalization!") assert hits In-Reply-To: References: Message-ID: <20110802160650.B80B52A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10494 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-08-02 11:06:50 CDT --- Fixed in r136691! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 2 11:07:24 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 11:07:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 10567] New: miscompile netcdf-3.6.3, appending extra suffixing underscore Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10567 Summary: miscompile netcdf-3.6.3, appending extra suffixing underscore Product: dragonegg Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: New Bugs AssignedTo: baldrick at free.fr ReportedBy: tabloid.adroit at gmail.com CC: llvmbugs at cs.uiuc.edu Gentoo Linux 32bit. gcc-4.5 branch,llvm-trunk,dragonegg-trunk. I compiled two versions of netcdf-3.6.3 one version is using gcc-4.5 branch + dragonegg trunk the other version is using gcc-4.5 branch only. ~/Install/netcdf/3.6.3dragonegg/lib $ nm libnetcdff.a | grep nf_open 00000390 T nf_open__ U nf_open_ ~/Install/netcdf/3.6.3dragonegg/lib $ nm libnetcdff.so | grep nf_open U nf_open_ 0000ae50 T nf_open__ ~/Install/netcdf/3.6.3dragonegg/lib $ cd ../../3.6.3/lib ~/Install/netcdf/3.6.3/lib $ nm libnetcdff.a | grep nf_open 00000250 T nf_open_ U nf_open_ ~/Install/netcdf/3.6.3/lib $ nm libnetcdff.so | grep nf_open 000097e0 T nf_open_ -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 2 11:12:37 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 11:12:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 10568] New: [MC] x86_64 and relocations with large addend Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10568 Summary: [MC] x86_64 and relocations with large addend 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: joerg at NetBSD.org CC: llvmbugs at cs.uiuc.edu Consider the following input: L: movq $(L + 2147483648),%rax This triggers the 32bit signed integer assertion in ELFObjectWriter.cpp, line 1627. gas produces: 000000000003 00010000000b R_X86_64_32S 0000000000000000 .text + 80000000 as relocation, which makes sense. R_X86_64_32S is the largest width supported as immediate by mov. The addend is a 64bit signed quantity and only the sum of real location of L and addend have to fit into 32bit. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 2 11:18:43 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 11:18:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 10496] [AVX] missing intrinsics for integer min/max instructions In-Reply-To: References: Message-ID: <20110802161843.C7FD62A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10496 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #3 from Bruno Cardoso Lopes 2011-08-02 11:18:43 CDT --- We don't want to duplicate intrinsics, so we just match x86_sse2* to the right sse/avx instruction later. Both VPMINUB and PMINUB for example, are matched from int_x86_sse2_pminu_b. If you check other compilers you will see that they don't define a new builtin for every new AVX encoded 128-bit instruction, we do the same with the builtins and the IR intrinsics. You can use int_x86_sse2_pminu_b in your generated IR, and when specified -mattr=+avx, you get the right instruction. If it happens that some of them won't select the right instruction, then let me know cause it's a bug! We have tests to check all of them though, look at test/CodeGen/X86/avx-intrinsics-x86.ll -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 2 12:57:52 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 12:57:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 10569] New: [ARM disasm] extra newline after sxtab16, uxtab16 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10569 Summary: [ARM disasm] extra newline after sxtab16, uxtab16 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: sliedes at cc.hut.fi CC: llvmbugs at cs.uiuc.edu An extra newline is printed after the instructions sxtab16 and uxtab16: ------------------------------------------------------------ $ echo '0x73 0x98 0x80 0xe6 0 0 0 0' |llvm-mc -arch=arm -disassemble sxtab16 r9, r0, r3, ror #16 andeq r0, r0, r0 ------------------------------------------------------------ Expected result: No blank line between the sxtab16 line and the andeq line. Same for uxtab: ------------------------------------------------------------ $ echo '0x73 0x98 0xc1 0xe6 0 0 0 0' |llvm-mc -arch=arm -disassemble uxtab16 r9, r1, r3, ror #16 andeq r0, r0, r0 ------------------------------------------------------------ -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 2 13:06:02 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 13:06:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 10566] Assertion `DefinitionData && "queried property of class with no definition"' failed. In-Reply-To: References: Message-ID: <20110802180602.4794C2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10566 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Eli Friedman 2011-08-02 13:06:02 CDT --- r136703. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 2 13:35:53 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 13:35:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 10570] New: Machine loops (?) crash: Instruction does not dominate all uses! Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10570 Summary: Machine loops (?) crash: Instruction does not dominate all uses! Product: new-bugs Version: 2.9 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=7004) --> (http://llvm.org/bugs/attachment.cgi?id=7004) testcase .ll $ llc dom.ll -debug-pass=Arguments Pass Arguments: -targetdata -no-aa -tbaa -basicaa -collector-metadata -machinemoduleinfo -preverify -domtree -verify -loops -loop-simplify -scalar-evolution -loop-simplify -iv-users -loop-reduce -gc-lowering -unreachableblockelim -codegenprepare -stack-protector -preverify -verify -loops -branch-prob -opt-phis -dead-mi-elimination -machinedomtree -machine-loops -machinelicm -machine-cse -machine-sink -peephole-opts -unreachable-mbb-elimination -livevars -phi-node-elimination -twoaddressinstruction -processimpdefs -slotindexes -liveintervals -livedebugvars -simple-register-coalescing -calcspillweights -livestacks -virtregmap -edge-bundles -spill-code-placement -stack-slot-coloring -machinelicm -edge-bundles -prologepilog -machinedomtree -machine-loops -machine-loops Instruction does not dominate all uses! %0 = add i64 48, 48 %tmp = add i64 %0, -48 Broken module found, compilation aborted! ... 7 llc 0x000000000149242b llvm::FPPassManager::runOnFunction(llvm::Function&) + 431 8 llc 0x000000000149266a llvm::FPPassManager::runOnModule(llvm::Module&) + 102 9 llc 0x000000000149299a llvm::MPPassManager::runOnModule(llvm::Module&) + 456 10 llc 0x0000000001492e8c llvm::PassManagerImpl::run(llvm::Module&) + 130 11 llc 0x0000000001493293 llvm::PassManager::run(llvm::Module&) + 39 12 llc 0x0000000000a8b2db main + 2617 13 libc.so.6 0x00007faef0fb8e1f __libc_start_main + 255 14 llc 0x0000000000a8a199 Stack dump: 0. Program arguments: llc dom.ll -debug-pass=Arguments 1. Running pass 'Function Pass Manager' on module 'dom.ll'. 2. Running pass 'Module Verifier' on function '@sqlite3DropTriggerPtr' Aborted (core dumped) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Aug 2 13:39:15 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 13:39:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 10563] APInt::trunc(unsigned int) const: Assertion `width < BitWidth && "Invalid APInt Truncate request"' failed. In-Reply-To: References: Message-ID: <20110802183915.AC6DC2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10563 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #1 from Eli Friedman 2011-08-02 13:39:15 CDT --- r136711. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 2 13:48:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 13:48:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 10567] miscompile netcdf-3.6.3, appending extra suffixing underscore In-Reply-To: References: Message-ID: <20110802184858.70C662A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10567 Yuanfang Chen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Aug 2 15:25:39 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 15:25:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 10420] crash in DarwinX86_64AsmBackend::doesSectionRequireSymbols In-Reply-To: References: Message-ID: <20110802202539.16D822A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10420 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #7 from Rafael ?vila de Esp?ndola 2011-08-02 15:25:38 CDT --- Fixed in 136716. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 2 15:44:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 15:44:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 7787] ARM disassembler occasionally drops condition, shift from sbcseq, adcseq, addeq In-Reply-To: References: Message-ID: <20110802204429.BE1402A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7787 Sami Liedes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Sami Liedes 2011-08-02 15:44:29 CDT --- Works in recent 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 Tue Aug 2 15:46:08 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 15:46:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 7832] ARM Disassembler: BLX is variously disassembled as B or BL In-Reply-To: References: Message-ID: <20110802204608.CED622A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7832 Sami Liedes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Sami Liedes 2011-08-02 15:46:08 CDT --- Works in recent 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 Tue Aug 2 16:05:39 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 16:05:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 10571] New: [ARM disasm] some moves to/from PC are disassembled as invalid Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10571 Summary: [ARM disasm] some moves to/from PC are disassembled as invalid 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: sliedes at cc.hut.fi CC: llvmbugs at cs.uiuc.edu The following opcodes are valid ARM instructions but are not recognized by the disassembler (they are all disassembled as invalid): e59ff018 ldr pc, [pc, #24] 01a0e00f moveq lr, pc e1a0f001 mov pc, r1 So these commands output an error message: $ echo '0x18 0xf0 0x9f 0xe5' |llvm-mc -disassemble -arch=arm $ echo '0x0f 0xe0 0xa0 0x01' |llvm-mc -disassemble -arch=arm $ echo '0x01 0xf0 0xa0 0xe1' |llvm-mc -disassemble -arch=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 Tue Aug 2 16:11:42 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 16:11:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 10572] New: [ARM disasm] PC-relative LDR with negative offset is disassembled incorrectly Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10572 Summary: [ARM disasm] PC-relative LDR with negative offset is disassembled incorrectly 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: sliedes at cc.hut.fi CC: llvmbugs at cs.uiuc.edu LLVM disassembles the opcode e51f5134 as ldr r5, [pc, #4404] This cannot be correct, as offsets range from -4095 to 4095. In fact the imm12 value in the opcode is 308 and the U bit is set, so this instruction should be decoded as ldr r5, [pc, #-308] -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 2 17:40:42 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 17:40:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 10573] New: CXXOperatorNames flag overwritten Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10573 Summary: CXXOperatorNames flag overwritten Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: andy.arvanitis at gmail.com CC: llvmbugs at cs.uiuc.edu This flag gets set for the OpenCL language (and possibly others in the future), and then gets overwritten a few lines later. Code is in file lib/Frontend/CompilerInvokation.cpp. Bug is specifically here (last line below): ------- snip --------- // OpenCL has some additional defaults. if (LangStd == LangStandard::lang_opencl) { Opts.OpenCL = 1; Opts.AltiVec = 1; Opts.CXXOperatorNames = 1; <--------- set here Opts.LaxVectorConversions = 1; Opts.DefaultFPContract = 1; } if (LangStd == LangStandard::lang_cuda) Opts.CUDA = 1; // OpenCL and C++ both have bool, true, false keywords. Opts.Bool = Opts.OpenCL || Opts.CPlusPlus; Opts.GNUKeywords = Opts.GNUMode; Opts.CXXOperatorNames = Opts.CPlusPlus; <------ overwritten here ----- snip ------- It should be something like: if (Opts.CPlusPlus) Opts.CXXOperatorNames = 1; I actually submitted a patch for this back in April, but it didn't get picked up. 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 Aug 2 17:53:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 17:53:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 10544] Darwin (10.7) llvm compiler generates bad code when compiling gcc-4.5.4-linaro for OpenWRT router project In-Reply-To: References: Message-ID: <20110802225319.9D0DB2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10544 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |WONTFIX --- Comment #4 from Eli Friedman 2011-08-02 17:53:19 CDT --- Closing per 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 Tue Aug 2 17:59:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 17:59:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 10255] Build of llvm-gcc trunk fails on PPC In-Reply-To: References: Message-ID: <20110802225958.9858B2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10255 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |WONTFIX --- Comment #1 from Eli Friedman 2011-08-02 17:59:57 CDT --- llvm-gcc is dead. Please reopen if you can come up with a bitcode file which reproduces the issue. (See http://llvm.org/docs/HowToSubmitABug.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 Tue Aug 2 18:05:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 18:05:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 10261] tblgen assert when building clang from trunk In-Reply-To: References: Message-ID: <20110802230528.824E02A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10261 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |INVALID --- Comment #6 from Eli Friedman 2011-08-02 18:05:27 CDT --- Looks like there isn't anything left to do here; please file a new bug if there are still any issues 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 Tue Aug 2 19:04:47 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 19:04:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 10295] Problem with preprocessor with keep comments In-Reply-To: References: Message-ID: <20110803000447.6526A2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10295 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #1 from Eli Friedman 2011-08-02 19:04:47 CDT --- r136748. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 2 22:08:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 2 Aug 2011 22:08:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 10574] New: initializer_list should be disabled when generalized initializers are not available Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10574 Summary: initializer_list should be disabled when generalized initializers are not available Product: libc++ Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: All Bugs AssignedTo: hhinnant at apple.com ReportedBy: scshunt at csclub.uwaterloo.ca CC: llvmbugs at cs.uiuc.edu The initializer_list class should be disabled when generalized initializer lists are not available as a language feature. The only way to construct them in a conformant manner is via the language, and code written in C++03 to work around the lack of generalized initializer lists may fail due to their presence. The same code will fail in C++0x, but C++0x provides language features (in particular, default template arguments on functions which allow SFINAE in conversion operators) that allow the code to be limited to containers. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 3 01:16:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Aug 2011 01:16:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 10286] Compiling code using labels as pointers produces s in disassembly In-Reply-To: References: Message-ID: <20110803061619.401D82A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10286 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2011-08-03 01:16:18 CDT --- Fixed in r136768, 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 Aug 3 04:05:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Aug 2011 04:05:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 10575] New: i386 codegen: LLVM ERROR: Access past stack top! Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10575 Summary: i386 codegen: LLVM ERROR: Access past stack top! Product: new-bugs Version: 2.9 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=7010) --> (http://llvm.org/bugs/attachment.cgi?id=7010) testcase .ll $ llc -O0 -mcpu=i386 m_rankMerge.ll LLVM ERROR: Access past stack top! Testcase (also attached): 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-f128:128:128-n8:16:32" target triple = "i386-pc-linux-gnu" define void @__m_rankmerge_MOD_dindexmerge_() nounwind { entry: br label %"20" "20": ; preds = %"23", %entry %0 = phi double [ undef, %entry ], [ %0, %"23" ] %1 = phi double [ 0.000000e+00, %entry ], [ %2, %"23" ] br i1 undef, label %"21", label %"23" "21": ; preds = %"20" ret void "23": ; preds = %"20" %2 = select i1 undef, double %0, double %1 br label %"20" } -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 3 04:06:42 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Aug 2011 04:06:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 10540] llvm-trunk+dragonegg trunk: Cannot pop empty stack! In-Reply-To: References: Message-ID: <20110803090642.C5DE22A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10540 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #9 from Duncan Sands 2011-08-03 04:06:42 CDT --- I was able to reproduce it. It seems to be a bug in the code generators that only happens at -O0 and when targeting the i386 processor. I've opened PR10575 for this. *** This bug has been marked as a duplicate of bug 10575 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 3 11:32:30 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Aug 2011 11:32:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 10511] libclang crash when calling clang_reparseTranslationUnit In-Reply-To: References: Message-ID: <20110803163230.D56182A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10511 Erik Verbruggen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Erik Verbruggen 2011-08-03 11:32:29 CDT --- Fixed in svn revision 136786. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 3 11:33:38 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Aug 2011 11:33:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 10575] i386 codegen: LLVM ERROR: Access past stack top! In-Reply-To: References: Message-ID: <20110803163338.5E5B92A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10575 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Jakob Stoklund Olesen 2011-08-03 11:33:38 CDT --- Fixed in r136787 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 3 13:08:53 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Aug 2011 13:08:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 8346] clang under windows/mingw inserts visible standard library functions into object files In-Reply-To: References: Message-ID: <20110803180853.B5F8C2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8346 vanboxem.ruben at gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #7 from vanboxem.ruben at gmail.com 2011-08-03 13:08:52 CDT --- This has been fixed in the mingw-w64 headers. It was due to the difference in inline semantics of GCC vs Clang. *** This bug has been marked as a duplicate of bug 10155 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 3 13:17:39 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Aug 2011 13:17:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 10576] New: GSL (GNU Scientific Library) tests fail Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10576 Summary: GSL (GNU Scientific Library) tests fail Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: vanboxem.ruben at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7012) --> (http://llvm.org/bugs/attachment.cgi?id=7012) make check -k output This is not a very specific bug report, and will probably span different issues. The toolchain used for testing is located here: http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/rubenvb/4.6.2-1/ (unpack the gcc and clang packages in the same directory, add mingw64/bin to PATH) Using MSYS, I configured and compiled GSL with: /path/to/source/configure --host=x86_64-w64-mingw32 CC=clang make make check make builds everything just like GCC does. make check fails in two respects: - The first test hangs (keeps at 100% of one CPU core, for more than 8 hours). - Several subsequent tests fail, "make check -k" log is attached (after ctrl-C to exit the first test and continue) -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 3 13:29:35 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Aug 2011 13:29:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 10576] GSL (GNU Scientific Library) tests fail In-Reply-To: References: Message-ID: <20110803182935.2CE062A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10576 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |LATER --- Comment #1 from Chris Lattner 2011-08-03 13:29:34 CDT --- Unfortunately, this bug is too vague to be actionable. Please reduce the problem down to something specific. The odds that someone will go out and analyze this without more details for you are very low. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 3 13:46:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Aug 2011 13:46:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 10577] New: Assertion `res.getDeclRefExpr() == lastDR' failed Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10577 Summary: Assertion `res.getDeclRefExpr() == lastDR' failed Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: grzegorz.dabrowski at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com $ clang -v clang version 3.0 (trunk 136787) Target: i386-pc-linux-gnu Thread model: posix $ cat uninitialized.cpp void test() { int x = 1; int y = (int&)x; } $ clang -c -Wuninitialized uninitialized.cpp clang: UninitializedValues.cpp:531: void::TransferFunctions::VisitCastExpr(clang::CastExpr*): Assertion `res.getDeclRefExpr() == lastDR' failed. 0 clang 0x0996c688 Stack dump: 0. Program arguments: /home/stuff/download/SCM/llvm/Release+Asserts/bin/clang -cc1 -triple i386-pc-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name uninitialized.cpp -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.21.0.20110327 -momit-leaf-frame-pointer -coverage-file uninitialized.o -resource-dir /home/stuff/download/SCM/llvm/Release+Asserts/bin/../lib/clang/3.0 -Wuninitialized -fdeprecated-macro -ferror-limit 19 -fmessage-length 158 -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o uninitialized.o -x c++ uninitialized.cpp 1. parser at end of file 2. uninitialized.cpp:2:1: parsing function body 'test' -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Aug 3 15:11:46 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Aug 2011 15:11:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 10578] New: C++ compiler skips parent constructor Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10578 Summary: C++ compiler skips parent constructor Product: clang Version: 2.8 Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: prr at eava.ee CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com If C++ class constructor does not have first level parenthesis, parent class constructor is not executed. Repro: Compile following code with Clang: ///// class CClass1 { public: CClass1() { m_iVal1=1; } int m_iVal1; }; class CClass2 : public CClass1 { public: CClass2() try { m_iVal2=2; } catch(...) { throw; } int m_iVal2; }; int main (int argc, const char * argv[]) { CClass2 *pClass2=new CClass2(); return pClass2!=0; } ///// Expected Results: CClass1 constructor is called and pClass2->m_iVal1 is initialized with value 1; Actual Results: CClass1 constructor is never called and m_iVal1 remains uninitialized. Notes: If CClass2 constructor is rewritten as CClass2() { try { m_iVal2=2; } catch(...) { throw; } } then CClass1 construtor is called. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 3 15:30:57 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Aug 2011 15:30:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 10579] New: Failure to call constructors of template class with Enum template parameter Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10579 Summary: Failure to call constructors of template class with Enum template parameter Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sefi at s-e-f-i.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=7013) --> (http://llvm.org/bugs/attachment.cgi?id=7013) Failing testcase The attached code fails to compile using trunk with the following message: test.cpp:52:15: error: no matching constructor for initialization of 'bitfield_foo' (aka 'basic') bitfield_foo obj; ^ test.cpp:18:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 0 were provided class basic ^ 1 error generated. If I remove the "Enum Size" template parameter or if I remove the forward declaration of the template class, it compiles 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 Wed Aug 3 18:09:18 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Aug 2011 18:09:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 9509] Scheduler crash with patch from r127852 In-Reply-To: References: Message-ID: <20110803230918.ED3C12A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9509 Andrew Trick changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #9 from Andrew Trick 2011-08-03 18:09:17 CDT --- This was left open because of a general problem with spilling into the "red zone" (according to x86 ABI terminology). PR9539 covers that bug, so this one can be closed. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Aug 3 18:22:53 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Aug 2011 18:22:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 10496] [AVX] missing intrinsics for integer min/max instructions In-Reply-To: References: Message-ID: <20110803232253.8C3882A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10496 Matt Pharr changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #5 from Matt Pharr 2011-08-03 18:22:52 CDT --- I still seem to be confused (or something is missing). I'd like to take two <8 x i32> vectors and compute the element-wise minimum of them. My understanding from your explanation below is that the following should work, but llc -mattr=+avx gives me two errors of: Intrinsic prototype has incorrect number of vector elements! <8 x i32> (<8 x i32>, <8 x i32>)* @llvm.x86.sse41.pminsd before crashing. (Note the 'dword' / i32 variants of the integer min/max stuff were introduced in sse4.1.) Help? declare <8 x i32> @llvm.x86.sse41.pminsd(<8 x i32>, <8 x i32>) nounwind readnone define <8 x i32> @m(<8 x i32> %a, <8 x i32> %b) nounwind readnone { %s = call <8 x i32> @llvm.x86.sse41.pminsd(<8 x i32> %a, <8 x i32> %b) ret <8 x i32> %s } -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 3 18:26:37 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Aug 2011 18:26:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 10580] New: [AVX] vector comparisons are scalarized Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10580 Summary: [AVX] vector comparisons are scalarized Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Given define <8 x i1> @foo___ff(<8 x float> %a, <8 x float> %b) nounwind readnone { %bincmp = fcmp olt <8 x float> %a, %b ret <8 x i1> %bincmp } llc -mattr=+avx emits a ton of vector extracts, scalar floating-point compares, and vector inserts to compute the final result. (The same is true of integer compares as well.) It would be nice for it to emit the single corresponding AVX vector compare instruction instead. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Aug 3 18:27:57 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Aug 2011 18:27:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 10581] New: [AVX] vector shifts are scalarized Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10581 Summary: [AVX] vector shifts are scalarized Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Given: define <8 x i32> @foo___ff(<8 x i32> %a, <8 x i32> %b) nounwind readnone { %s = shl <8 x i32> %a, ret <8 x i32> %s } llc -mattr=+avx deconstructs the vector into elements, shifts each one individually, and reconstructs the vector. It'd be nice if it just used the corresponding AVX vector shift instruction for 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 Wed Aug 3 18:38:42 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Aug 2011 18:38:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 10496] [AVX] missing intrinsics for integer min/max instructions In-Reply-To: References: Message-ID: <20110803233842.112DF2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10496 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID --- Comment #6 from Bruno Cardoso Lopes 2011-08-03 18:38:41 CDT --- Hi, I think you're still making confusion! :) There's no pminsd instruction for 256-bit vectors, only re-encoded ones for 128-bit. So, if you want to have min/max for 256-bit, you should issue two @llvm.x86.sse41.pminsd and join the result vectors. This happens because llvm doesn't have native "max" or "min", so if you're using intrinsics, you should use the right ones, because the target independent legalizer won't touch it. AVX2 probably has a max/min 256-bit instruction, but this is future-future work! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 3 19:33:07 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Aug 2011 19:33:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 10527] Assertion `Num < NumOperands && "Invalid child # of SDNode!"' failed In-Reply-To: References: Message-ID: <20110804003307.F39F92A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10527 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |wendling at apple.com Resolution| |FIXED --- Comment #1 from Bill Wendling 2011-08-03 19:33:07 CDT --- Fixed r136853 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 3 19:41:43 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Aug 2011 19:41:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 10582] New: ICE on int main(){int a=0?0:throw 0;} Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10582 Summary: ICE on int main(){int a=0?0:throw 0;} Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: timon.gehr at gmx.ch CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com $ clang -v clang version 3.0 (trunk 133404) Target: x86_64-unknown-linux-gnu Thread model: posix $ echo "int main(){int a=0?0:throw 0;}" > tt.cpp $ clang tt.cpp 0 clang 0x0000000001a9319f 1 clang 0x0000000001a95412 2 libpthread.so.0 0x00007f7f28ca18f0 3 clang 0x00000000019f08bd llvm::Value::getContext() const + 13 4 clang 0x00000000019ad35d llvm::StoreInst::StoreInst(llvm::Value*, llvm::Value*, bool, llvm::Instruction*) + 61 5 clang 0x0000000000848196 clang::CodeGen::CodeGenFunction::EmitStoreOfScalar(llvm::Value*, llvm::Value*, bool, unsigned int, clang::QualType, llvm::MDNode*) + 118 6 clang 0x000000000084b8d8 clang::CodeGen::CodeGenFunction::EmitStoreThroughLValue(clang::CodeGen::RValue, clang::CodeGen::LValue, clang::QualType) + 424 7 clang 0x0000000000833bf3 clang::CodeGen::CodeGenFunction::EmitScalarInit(clang::Expr const*, clang::ValueDecl const*, clang::CodeGen::LValue, bool) + 515 8 clang 0x0000000000834999 clang::CodeGen::CodeGenFunction::EmitExprAsInit(clang::Expr const*, clang::ValueDecl const*, clang::CodeGen::LValue, bool) + 633 9 clang 0x000000000083569d clang::CodeGen::CodeGenFunction::EmitAutoVarInit(clang::CodeGen::CodeGenFunction::AutoVarEmission const&) + 1197 10 clang 0x00000000008385fa clang::CodeGen::CodeGenFunction::EmitAutoVarDecl(clang::VarDecl const&) + 42 11 clang 0x00000000008d1b3f clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt const&) + 127 12 clang 0x00000000008d74b5 clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 101 13 clang 0x00000000008d75a7 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 39 14 clang 0x00000000008daab0 clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) + 272 15 clang 0x00000000008d755f clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 271 16 clang 0x00000000008d75a7 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 39 17 clang 0x00000000008fcd5e clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 702 18 clang 0x00000000007e40d5 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl) + 789 19 clang 0x00000000007e4deb clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 619 20 clang 0x00000000007e519d clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 909 21 clang 0x00000000007e5701 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 449 22 clang 0x00000000007d6e24 23 clang 0x00000000007d6801 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 161 24 clang 0x0000000000917de4 clang::ParseAST(clang::Sema&, bool) + 292 25 clang 0x00000000007d5c54 clang::CodeGenAction::ExecuteAction() + 68 26 clang 0x00000000006bdc03 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 371 27 clang 0x0000000000694d17 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1319 28 clang 0x000000000068ad58 cc1_main(char const**, char const**, char const*, void*) + 760 29 clang 0x0000000000693ba0 main + 7040 30 libc.so.6 0x00007f7f27f7bc4d __libc_start_main + 253 31 clang 0x0000000000689f39 Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name tt.cpp -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.1 -momit-leaf-frame-pointer -resource-dir /usr/local/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length 157 -fcxx-exceptions -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-zmm2Lz.o -x c++ tt.cpp 1. parser at end of file 2. tt.cpp:4:5: LLVM IR generation of declaration 'main' 3. tt.cpp:4:5: Generating code for declaration 'main' 4. tt.cpp:4:11: LLVM IR generation of compound statement ('{}') clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal 2 (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 Aug 3 19:47:24 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Aug 2011 19:47:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 10435] Static Analyzer fails to recognize exit() In-Reply-To: References: Message-ID: <20110804004724.2834C2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10435 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #4 from Ted Kremenek 2011-08-03 19:47:23 CDT --- *** This bug has been marked as a duplicate of bug 2764 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 3 19:50:23 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 3 Aug 2011 19:50:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 10568] [MC] x86_64 and relocations with large addend In-Reply-To: References: Message-ID: <20110804005023.DAC172A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10568 jasonwkim at google.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from jasonwkim at google.com 2011-08-03 19:50:23 CDT --- probably fixed as of 136855 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 4 02:06:54 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Aug 2011 02:06:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 10583] New: Assertion failed: ((isInt<32>(Value) || isUInt<32>(Value)) && "Value does not fit in a 4Byte Reloc" Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10583 Summary: Assertion failed: ((isInt<32>(Value) || isUInt<32>(Value)) && "Value does not fit in a 4Byte Reloc" Product: new-bugs Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: pawel.worach at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7014) --> (http://llvm.org/bugs/attachment.cgi?id=7014) pre-processed locore.s llvm/clang r136864. Regression introduced between r136841 and r136860. Original source from FreeBSD kernel sys/i386/i386/locore.s, pre-processed version attached. % clang -cc1as -triple i386-unknown-freebsd8.2 -filetype obj -o locore.o /tmp/cc-PyWIpA.s Assertion failed: ((isInt<32>(Value) || isUInt<32>(Value)) && "Value does not fit in a 4Byte Reloc"), function ApplyFixup, file /data/buildslave/freebsd-clang-i386/src-llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp, line 109. Stack dump: 0. Program arguments: /data/buildslave/freebsd-clang-i386/obj/obj-llvm.2/Release+Asserts/bin/clang -cc1as -triple i386-unknown-freebsd8.2 -filetype obj -o locore.o /tmp/cc-PyWIpA.s 1. Program arguments: -triple i386-unknown-freebsd8.2 -filetype obj -o locore.o /tmp/cc-PyWIpA.s Abort (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 Thu Aug 4 08:09:56 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Aug 2011 08:09:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 10584] New: Extremely slow compilation spending time in Greedy Register Allocator Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10584 Summary: Extremely slow compilation spending time in Greedy Register Allocator Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Register Allocator AssignedTo: unassignedbugs at nondot.org ReportedBy: joerg at NetBSD.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7015) --> (http://llvm.org/bugs/attachment.cgi?id=7015) Test case for slow register allocator Attached is the test input. Compiling with "clang -O2" takes over 1h here (on a i7) and peaks at 8GB RES. According to -ftime-report, the majority of the time is spend in the following passes: ---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name --- 2717.0700 ( 51.0%) 3.1400 ( 36.3%) 2720.2100 ( 51.0%) 2725.2743 ( 51.0%) Greedy Register Allocator 1458.3400 ( 27.4%) 3.7500 ( 43.4%) 1462.0900 ( 27.4%) 1465.1049 ( 27.4%) Value Propagation 316.5900 ( 5.9%) 0.4300 ( 5.0%) 317.0200 ( 5.9%) 317.5998 ( 5.9%) Simple Register Coalescing Report for the register allocator: ---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name --- 2512.5500 ( 92.5%) 2.9600 ( 94.9%) 2515.5100 ( 92.5%) 2520.2120 ( 92.5%) Spiller 200.5100 ( 7.4%) 0.1400 ( 4.5%) 200.6500 ( 7.4%) 200.9533 ( 7.4%) Global Splitting 1.9700 ( 0.1%) 0.0200 ( 0.6%) 1.9900 ( 0.1%) 1.9189 ( 0.1%) Evict -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 4 09:28:27 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Aug 2011 09:28:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 10585] New: Segmentation fault when linking bc's with same aliases Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10585 Summary: Segmentation fault when linking bc's with same aliases Product: tools Version: trunk Platform: Other OS/Version: All Status: NEW Severity: normal Priority: P Component: llvm-link AssignedTo: unassignedbugs at nondot.org ReportedBy: 6yearold at gmail.com CC: llvmbugs at cs.uiuc.edu I have two identical bitcode files, produced from this code: @zend_error_noreturn = alias weak_odr void (i32, i8*, ...)* @zend_error declare void @zend_error(i32, i8*, ...) When i try to link them with llvm-link or llvm-ld, i get a segmentation fault error. To reproduce: cp 1.bc 2.bc llvm-link 1.bc 2.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 Thu Aug 4 09:37:35 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Aug 2011 09:37:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 10586] New: Obsolete declarations Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10586 Summary: Obsolete declarations Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: dave at boostpro.com CC: llvmbugs at cs.uiuc.edu createMicrosoftMangleContext and createItaniumMangleContext in include/clang/AST/Mangle.h are never implemented anywhere. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 4 10:28:24 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Aug 2011 10:28:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 10587] New: Dragonegg doesn't handle __attribute__((alias(...))) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10587 Summary: Dragonegg doesn't handle __attribute__((alias(...))) Product: dragonegg Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: New Bugs AssignedTo: baldrick at free.fr ReportedBy: gmalecha at eecs.harvard.edu CC: llvmbugs at cs.uiuc.edu With the source file: foo.c ---------- int foo(int x) { return x; } extern typeof(foo) foo2 __attribute((alias("foo"))); compiling with dragonegg results in only foo being defined while compiling with vanilla gcc results in both foo and foo2 being defined. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Aug 4 10:51:15 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Aug 2011 10:51:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 10588] New: New llvm type system breaks types definitions in C backend Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10588 Summary: New llvm type system breaks types definitions in C backend 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: maemarcus at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7017) --> (http://llvm.org/bugs/attachment.cgi?id=7017) axpy Fortran test case Before new type system, C backend was able to generate intermediate typedefs even for anonymous types and use them elsewhere in code, instead of inline definitions. Now, after dragonegg/CBackend have been stabilized with new type system, we see a lot of inline type definitions, that are failing to compile. Please see a simple test case attached. Commands to execute: /opt/llvm/dragonegg/bin/dragonegg-gfortran -c axpy.f90 -ffree-line-length-none -fplugin=/opt/llvm/dragonegg/lib64/dragonegg.so -O0 -S -fplugin-arg-dragonegg-emit-ir -o axpy.f90.bc /opt/llvm/bin/llc -march=c axpy.f90.bc -o axpy.f90.c gcc axpy.f90.c Result: axpy.f90.c:119:35: error: expected identifier or ?(? before ?{? token axpy.f90.c:129:31: error: expected identifier or ?(? before ?{? token axpy.f90.c:169:57: error: expected declaration specifiers or ?...? before ?(? token axpy.f90.c:169:92: error: expected declaration specifiers or ?...? before ?(? token axpy.f90.c:178:16: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{? token axpy.f90.c:179:17: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{? token axpy.f90.c:183:16: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{? token axpy.f90.c:183:44: error: expected identifier or ?(? before ?=? token axpy.f90.c:184:17: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{? token axpy.f90.c:184:46: error: expected identifier or ?(? before ?=? token axpy.f90.c:203:57: error: expected declaration specifiers or ?...? before ?(? token axpy.f90.c:203:92: error: expected declaration specifiers or ?...? before ?(? token -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 4 12:13:41 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Aug 2011 12:13:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 10586] Obsolete declarations In-Reply-To: References: Message-ID: <20110804171341.655D52A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10586 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |LATER --- Comment #1 from Eli Friedman 2011-08-04 12:13:41 CDT --- Please just send a patch to cfe-commits 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 Thu Aug 4 13:32:31 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Aug 2011 13:32:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 10589] New: Emit data for gcov Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10589 Summary: Emit data for gcov Product: libraries Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: Miscellaneous Instrumentation passes AssignedTo: unassignedbugs at nondot.org ReportedBy: Pidgeot18 at gmail.com CC: llvmbugs at cs.uiuc.edu I noticed that clang supports -ftest-coverage and -fprofile-arcs, but the resulting output causes gcov to undergo segmentation faults. It would be good to be able to emit data that gcov is capable of reading. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 4 15:07:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Aug 2011 15:07:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 10590] New: Expanded 'naked' function support and interrupt calling convention Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10590 Summary: Expanded 'naked' function support and interrupt calling convention Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: m_kuklinski at stackheap.com CC: llvmbugs at cs.uiuc.edu It would be useful to have some sort of LocalSize symbol exported for naked functions, which would be value-set with the stack size required of the function. This would allow the stack pointer to be manually set within inline assembly, so that naked functions could be used for C / C++. It would also be useful to have the interrupt calling convention supported on x86 and x86-64 functions. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Aug 4 15:16:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Aug 2011 15:16:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 10590] Expanded 'naked' function support and interrupt calling convention In-Reply-To: References: Message-ID: <20110804201632.B77FC2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10590 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |INVALID --- Comment #1 from Eli Friedman 2011-08-04 15:16:32 CDT --- The behavior of naked functions that have anything other than a single inline assembly statement is undefined; it's essentially impossible to define them safely otherwise. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 4 16:07:48 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Aug 2011 16:07:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 10590] Expanded 'naked' function support and interrupt calling convention In-Reply-To: References: Message-ID: <20110804210748.B11762A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10590 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #3 from Eli Friedman 2011-08-04 16:07:48 CDT --- interrupt calling convention seems reasonable; please file a separate bug. __LOCAL_SIZE is supposed to allow declaring local variables which are subsequently used in the asm? I guess that's not completely ridiculous, but it doesn't really seem useful enough to be worth messing with. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 4 16:08:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Aug 2011 16:08:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 10590] Expanded 'naked' function support and interrupt calling convention In-Reply-To: References: Message-ID: <20110804210819.6961C2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10590 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |WONTFIX -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 4 17:33:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Aug 2011 17:33:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 10591] New: Unable to override calling convention for individual functions when using -mrtd Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10591 Summary: Unable to override calling convention for individual functions when using -mrtd Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: dimitry at andric.com CC: llvmbugs at cs.uiuc.edu When you compile a program with -mrtd, the default calling convention will be switched to stdcall. However, you should be able to override this for individual functions, as stated here: http://gcc.gnu.org/onlinedocs/gcc-4.6.1/gcc/Function-Attributes.html#index-mrtd-2410 "cdecl -- On the Intel 386, the cdecl attribute causes the compiler to assume that the calling function will pop off the stack space used to pass arguments. This is useful to override the effects of the -mrtd switch." However, it looks like clang forces every function to have the stdcall convention, and then errors out whenever you attempt to override it for a particular function: void __attribute__((cdecl)) foo(int i) {} void bar(int i) {} This compiles fine using 'gcc -mrtd -c', but 'clang -mrtd -c' complains: convtest.c:1:21: error: cdecl and stdcall attributes are not compatible void __attribute__((cdecl)) foo(int i) {} ^ 1 error generated. It would be nice if we could get similar behaviour from clang. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Aug 4 17:39:09 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Aug 2011 17:39:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 10481] Assertion: `TLI.getTypeAction(*DAG.getContext(), Node->getValueType(i)) == TargetLowering::TypeLegal && "Unexpected illegal type!"' failed. In-Reply-To: References: Message-ID: <20110804223909.832F52A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10481 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |wendling at apple.com Resolution| |INVALID --- Comment #1 from Bill Wendling 2011-08-04 17:39:08 CDT --- I don't know if what you're trying to do is legal. You're taking a bitcode file compiled for x86_64 and trying to output x86. It can't handle the i64 type in a register, so it's trying to "expand" it into multiple integers. Simplified version: target triple = "x86_64-unknown-linux-gnu" define void @autogen_5860_500() { BB: %Shuff = shufflevector <8 x i64> zeroinitializer, <8 x i64> zeroinitializer, <8 x i32> %B = xor <8 x i64> %Shuff, zeroinitializer br label %CF CF: ; preds = %CF, %BB %S17 = icmp uge <8 x i64> %B, zeroinitializer br i1 undef, label %CF, label %CF39.critedge CF39.critedge: ; preds = %CF %Shuff31.c = shufflevector <8 x i1> %S17, <8 x i1> %S17, <8 x i32> 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 Thu Aug 4 17:41:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Aug 2011 17:41:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 10577] Assertion `res.getDeclRefExpr() == lastDR' failed In-Reply-To: References: Message-ID: <20110804224110.C790A2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10577 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Ted Kremenek 2011-08-04 17:41:10 CDT --- Fixed in r136939. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 4 17:59:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Aug 2011 17:59:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 10481] Assertion: `TLI.getTypeAction(*DAG.getContext(), Node->getValueType(i)) == TargetLowering::TypeLegal && "Unexpected illegal type!"' failed. In-Reply-To: References: Message-ID: <20110804225919.16C222A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10481 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |sharparrow1 at yahoo.com Resolution|INVALID | --- Comment #2 from Eli Friedman 2011-08-04 17:59:18 CDT --- We should be able to handle expanding vectors with 64-bit element types on x86-32; granted, the code to do that might not actually exist, but in theory we have the infrastructure. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 4 19:31:59 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Aug 2011 19:31:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 10553] Metadata nodes duplicated by IR Linker / ValueMapper In-Reply-To: References: Message-ID: <20110805003159.038AC2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10553 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #20 from Devang Patel 2011-08-04 19:31:57 CDT --- I believe this is fixed by r136909+r136910. Can you try 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 Thu Aug 4 19:55:48 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Aug 2011 19:55:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 10583] Assertion failed: ((isInt<32>(Value) || isUInt<32>(Value)) && "Value does not fit in a 4Byte Reloc" In-Reply-To: References: Message-ID: <20110805005548.593522A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10583 jasonwkim at google.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #5 from jasonwkim at google.com 2011-08-04 19:55:47 CDT --- Yikes! okay, looks like the way forward is to relax the assert a bit. I couldn't find a Warn() equivalent of an assert() in wide use so assert stays for now. r136954 probably fixes 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 Thu Aug 4 20:16:01 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Aug 2011 20:16:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 10592] New: cannot compile scalar expression; static_cast const int& to const unsigned& Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10592 Summary: cannot compile scalar expression; static_cast const int& to const unsigned& Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu This testcase: unsigned test(const int &v) { return static_cast(v); } triggers the following irgen-time error: nlewycky at ducttape:~$ llvm/Debug+Asserts/bin/clang cast.cc -c cast.cc:2:40: error: cannot compile this scalar expression yet return static_cast(v); ^ I could swear that's a regression. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 4 22:12:13 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 4 Aug 2011 22:12:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 10593] New: x86/x86-64 Interrupt Calling Convention Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10593 Summary: x86/x86-64 Interrupt Calling Convention Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: m_kuklinski at stackheap.com CC: llvmbugs at cs.uiuc.edu An interrupt calling convention for the compiler for x86 and x86-64 platforms would be useful. It will also promote developers to switch to clang as this feature will simplify interrupts and kernel development. There are several ways it could be implemented, and neither should be very difficult or time consuming. Attribute parameters may be used to specify whether certain registers or groups of registers (general registers, SSE, etc) need to be saved and restored. Register should also be exposed by symbols. These symbols would point to the location on the stack where the registers were saved. These symbols would be read and writable. If a register was not flagged to be saved within the attribute parameter but is read from, it should be saved. If it is written to, it should be saved and then have the new value set, and restored. It could also be implemented in a manner that saves/restores all registers indiscriminately, and they could also be accessed as fields of a struct, with the struct being a parameter, with the parameters address being [rsb-wherever it is]. The attribute could also have the simpler mnemonic "__interrupt". Example assembly for an interrupt function that saves all of the general registers (nothing below this point is set, it is just a suggestion): ; Save registers mov [rsp-0x08], r15 mov [rsp-0x10], r14 mov [rsp-0x18], r13 mov [rsp-0x20], r12 mov [rsp-0x28], r11 mov [rsp-0x30], r10 mov [rsp-0x38], r9 mov [rsp-0x40], r8 mov [rsp-0x48], rdi mov [rsp-0x50], rsi mov [rsp-0x58], rbp mov [rsp-0x60], rsp mov [rsp-0x68], rdx mov [rsp-0x70], rcx mov [rsp-0x78], rbx mov [rsp-0x80], rax ; Save segments. Only fs and gs matter on AMD64. Possible have ds/es savable if specified. mov ax, fs mov [rsp-0x82], ax mov ax, gs mov [rsp-0x84], ax ; Save the stack mov rbp, rsp ; Push the stack sub rsp, + 0x84 ; Execute function ... ; Restore the stack mov rsp, rbp ; Restore segments mov ax, [rsp-0x84] mov gs, ax mov ax, [rsp-0x82] mov fs, ax ; Restore registers mov r15, [rsp-0x08] mov r14, [rsp-0x10] mov r13, [rsp-0x18] mov r12, [rsp-0x20] mov r11, [rsp-0x28] mov r10, [rsp-0x30] mov r9, [rsp-0x38] mov r8, [rsp-0x40] mov rdi, [rsp-0x48] mov rsi, [rsp-0x50] mov rbp, [rsp-0x58] mov rsp, [rsp-0x60] mov rdx, [rsp-0x68] mov rcx, [rsp-0x70] mov rbx, [rsp-0x78] mov rax, [rsp-0x80] ; interrupt return iretq In this example, symbols such as _rax and _rbx (or however they are declared) would point to [rbp-0x80] and [rbp-0x78], respectively. __attribute((interrupt(rax))) void int () { kprintf("rax: %Lu", _rax); _rax = -1; } would output: ; Save registers mov [rsp-0x08], rax ; Save segments. Only fs and gs matter on AMD64 Only fs and gs matter on AMD64. Possible have ds/es savable if specified. mov ax, fs mov [rsp-0x10], ax mov ax, gs mov [rsp-0x18], ax ; Save the stack mov rbp, rsp ; Push the stack sub rsp, + 0x0C ; Execute function ;kprintf mov rax, [rbp-0x08] push rax call kprintf ;rax = -1 mov [rbp-0x08], -1 ; Restore the stack mov rsp, rbp ; Restore segments mov ax, [rsp-0x10] mov gs, ax mov ax, [rsp-0x18] mov fs, ax ; Restore registers mov rax, [rsp-0x08] ; interrupt return iretq with _rax pointing to [rbp-0x08], and the value of register rax being uint64_t(-1) after returning. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 5 01:03:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Aug 2011 01:03:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 10294] Release tarballs are signed with a key that is nowhere to be found In-Reply-To: References: Message-ID: <20110805060329.EE9C22A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10294 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bill Wendling 2011-08-05 01:03:29 CDT --- Should be fixed with r136960. Please give it a shot! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 5 02:46:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Aug 2011 02:46:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 10255] Build of llvm-gcc trunk fails on PPC In-Reply-To: References: Message-ID: <20110805074658.E6B702A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10255 Konstantin Tokarev changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WONTFIX | -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 5 05:05:18 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Aug 2011 05:05:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 10594] New: C99 _Pragma unary operator should not expand into one line Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10594 Summary: C99 _Pragma unary operator should not expand into one line Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: lockalsash at gmail.com CC: llvmbugs at cs.uiuc.edu Current _Pragma expansion method in some cases can produce wrong preprocessed code if comments are not discarded. This testcase can explain the problem much better: int main() { #define MACRO _Pragma("something") MACRO // evil comment test // this line is dead } The result of "clang -E -C" is or "clang -E -CC" is ... int main() { #pragma something // evil comment test // this line is dead } Note that the test line is commented out. The -C option can be used for static code analysis tools. The -CC option is generally used to support lint comments. Proposed code is something like ... int main() { # 3 "main.cpp" #pragma something # 3 "main.cpp" // evil comment test // this line is dead } -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 5 11:37:45 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Aug 2011 11:37:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 10591] Unable to override calling convention for individual functions when using -mrtd In-Reply-To: References: Message-ID: <20110805163745.BDFB22A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10591 Roman Divacky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Roman Divacky 2011-08-05 11:37:45 CDT --- fixed in r136971. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 5 17:23:51 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 5 Aug 2011 17:23:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 10595] New: Friend with templated function parameter ignored Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10595 Summary: Friend with templated function parameter ignored Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: klimek at google.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com In the example code: template class X { friend int operator<<(int, const X&) { return 42; } }; #ifdef SECOND_OVERLOAD struct Y {}; int operator<<(int, const Y&); #endif void f(const X& x1) { 42 << x1; X x2; 42 << x2; } $ clang -c t.cc t.cc:13:6: error: invalid operands to binary expression ('int' and 'const X') 42 << x1; ~~ ^ ~~ 1 error generated. Both cases are accepted by gcc, and the case with 2 overloads is accepted by clang, too: $ clang -DSECOND_OVERLOAD -c t.cc $ g++ -c t.cc $ g++ -DSECOND_OVERLOAD -c t.cc -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 6 01:54:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Aug 2011 01:54:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 10467] Referring to a basic block in another function! In-Reply-To: References: Message-ID: <20110806065412.9D8D72A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10467 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from John McCall 2011-08-06 01:54:11 CDT --- Fixed in r137011. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 6 04:43:46 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Aug 2011 04:43:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 10596] New: LLVM-GCC TRUNK: Fails to build Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10596 Summary: LLVM-GCC TRUNK: Fails to build Product: new-bugs Version: trunk Platform: Sun OS/Version: Solaris Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: javpicorel at gmail.com CC: llvmbugs at cs.uiuc.edu While compiling llvm-gcc trunk using gcc 4.6.1 I get this error: g++ -lstdc++ -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -fno-common -DHAVE_CONFIG_H -o cc1-dummy c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o c-parser.o sol2-c.o c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o dummy-checksum.o \ llvm-main.o tree-browser.o libbackend.a ../libcpp/libcpp.a /export/home/picorel/filesCloud9/llvm-2.9/obj2/Release+Asserts/lib/libLLVMBitReader.a /export/home/picorel/filesCloud9/llvm-2.9/obj2/Release+Asserts/lib/libLLVMipo.a /export/home/picorel/filesCloud9/llvm-2.9/obj2/Release+Asserts/lib/libLLVMBitWriter.a /export/home/picorel/filesCloud9/llvm-2.9/obj2/Release+Asserts/lib/libLLVMSparcCodeGen.a /export/home/picorel/filesCloud9/llvm-2.9/obj2/Release+Asserts/lib/libLLVMSelectionDAG.a /export/home/picorel/filesCloud9/llvm-2.9/obj2/Release+Asserts/lib/libLLVMAsmPrinter.a /export/home/picorel/filesCloud9/llvm-2.9/obj2/Release+Asserts/lib/libLLVMMCParser.a /export/home/picorel/filesCloud9/llvm-2.9/obj2/Release+Asserts/lib/libLLVMCodeGen.a /export/home/picorel/filesCloud9/llvm-2.9/obj2/Release+Asserts/lib/libLLVMScalarOpts.a /export/home/picorel/filesCloud9/llvm-2.9/obj2/Release+Asserts/lib/libLLVMInstCombine.a /export/home/picorel/filesCloud9/llvm-2.9/obj2/Release+Asserts/lib/libLLVMTransformUtils.a /export/home/picorel/filesCloud9/llvm-2.9/obj2/Release+Asserts/lib/libLLVMipa.a /export/home/picorel/filesCloud9/llvm-2.9/obj2/Release+Asserts/lib/libLLVMAnalysis.a /export/home/picorel/filesCloud9/llvm-2.9/obj2/Release+Asserts/lib/libLLVMTarget.a /export/home/picorel/filesCloud9/llvm-2.9/obj2/Release+Asserts/lib/libLLVMCore.a /export/home/picorel/filesCloud9/llvm-2.9/obj2/Release+Asserts/lib/libLLVMSparcInfo.a /export/home/picorel/filesCloud9/llvm-2.9/obj2/Release+Asserts/lib/libLLVMMC.a /export/home/picorel/filesCloud9/llvm-2.9/obj2/Release+Asserts/lib/libLLVMSupport.a ../libcpp/libcpp.a /usr/local/lib/libintl.so -L/usr/local/lib -L/usr/local/ssl/lib -L/usr/openwin/lib /usr/local/lib/libiconv.so -L/usr/local/BerkeleyDB.4.7/lib -lsec -lc -R/usr/local/lib -R/usr/local/ssl/lib -R/usr/openwin/lib -R/usr/lib -R/usr/local/BerkeleyDB.4.2/lib -R/usr/X11R6/lib /usr/local/lib/libiconv.so -L/usr/local/lib -L/usr/openwin/lib -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.7/lib -R/usr/local/lib ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/export/home/picorel/filesCloud9/llvm-2.9/obj2/Release+Asserts/lib -lpthread -lmalloc -lm ld: warning: file /usr/local/lib/libiconv.so: attempted multiple inclusion of file Undefined first referenced symbol in file std::basic_string, std::allocator >::_Rep::_M_set_length_and_sharable(unsigned int) libbackend.a(llvm-backend.o) ld: fatal: Symbol referencing errors. No output written to cc1-dummy collect2: ld returned 1 exit status make: *** [cc1-dummy] Error 1 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 Sat Aug 6 12:08:09 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Aug 2011 12:08:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 10587] Dragonegg doesn't handle __attribute__((alias(...))) In-Reply-To: References: Message-ID: <20110806170809.4BDB92A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10587 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Duncan Sands 2011-08-06 12:08:08 CDT --- Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20110801/125618.html As for the question "From what I can tell, dragonegg doesn't process extern declarations at all, it just adds a var arg function for external symbols. Is that right?": dragonegg only processes external declarations if they are used by something. But when it does process an external declaration it outputs it properly (except for Fortran, where the Fortran frontend is so buggy I gave up and forced all external functions to be declared as varargs). -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 6 12:18:53 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Aug 2011 12:18:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 10597] New: When using -mrtd and -ffreestanding, generated memcpy calls get the wrong calling convention Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10597 Summary: When using -mrtd and -ffreestanding, generated memcpy calls get the wrong calling convention Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: dimitry at andric.com CC: llvmbugs at cs.uiuc.edu When using -mrtd in combination with -ffreestanding, memcpy calls (and possibly some other builtin function calls) get generated with the wrong calling convention. For example, consider the following program (which is meant to get its memcpy implementation from a separate compilation unit): ////////////////////////////////////////////////////////////////////// struct foo { int i[100]; }; void bar(void); void memcpy(void *dst, const void *src, unsigned len); void baz(struct foo *x, struct foo *y) { bar(); memcpy(x, y, sizeof(struct foo)); bar(); *x = *y; // causes memcpy() to be called bar(); } ////////////////////////////////////////////////////////////////////// When you compile this with "-ffreestanding -mrtd", the resulting assembly for the baz() function becomes: ////////////////////////////////////////////////////////////////////// pushl %ebp movl %esp, %ebp pushl %edi pushl %esi subl $16, %esp calll bar movl 12(%ebp), %esi movl %esi, 4(%esp) movl 8(%ebp), %edi movl %edi, (%esp) movl $400, 8(%esp) # imm = 0x190 calll memcpy # (1) subl $12, %esp # (2) calll bar movl %esi, 4(%esp) movl %edi, (%esp) movl $400, 8(%esp) # imm = 0x190 calll memcpy # (3) calll bar addl $16, %esp popl %esi popl %edi popl %ebp ret $8 ////////////////////////////////////////////////////////////////////// The first call to memcpy (1) is generated correctly, subtracting 12 bytes from the stack (2) to compensate for the 12 bytes that will have been popped by the body of the memcpy function. However, the second call to memcpy (3) has been generated by clang itself, and has been assumed to have cdecl calling convention, even if -mrtd is on the command line. E.g. "subl $12, %esp" is not inserted here, and the program will crash more or less spectacularly. When you look at the corresponding .ll file, you will see: ////////////////////////////////////////////////////////////////////// tail call x86_stdcallcc void @bar() nounwind optsize %0 = bitcast %struct.foo* %x to i8* %1 = bitcast %struct.foo* %y to i8* tail call x86_stdcallcc void @memcpy(i8* %0, i8* %1, i32 400) nounwind optsize tail call x86_stdcallcc void @bar() nounwind optsize tail call void @llvm.memcpy.p0i8.p0i8.i32(i8* %0, i8* %1, i32 400, i32 4, i1 false) tail call x86_stdcallcc void @bar() nounwind optsize ////////////////////////////////////////////////////////////////////// So @llvm.memcpy.p0i8.p0i8.i32 is *not* x86_stdcallcc, and it results in a cdecl memcpy call in assembly. (Obviously a workaround is be to explicitly declare memcpy() as cdecl, but that was impossible until bug 10591 was 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 Sat Aug 6 13:34:31 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Aug 2011 13:34:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 10596] LLVM-GCC TRUNK: Fails to build In-Reply-To: References: Message-ID: <20110806183431.B35122A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10596 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |WONTFIX --- Comment #1 from Eli Friedman 2011-08-06 13:34:30 CDT --- llvm-gcc has reached its end of life. Please try clang or dragonegg. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 6 13:39:23 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Aug 2011 13:39:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 10598] New: UndefValue::get() returns the same value Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10598 Summary: UndefValue::get() returns the same value Product: libraries Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: Core LLVM classes AssignedTo: unassignedbugs at nondot.org ReportedBy: viridia at gmail.com CC: llvmbugs at cs.uiuc.edu I thought that the way UndefValue::get() was supposed to work is that it returned a different instance each time you called get() - but what I am seeing is that if I call multiple times with the same type, it returns the same object. I realize that I could be misunderstanding how UndefValue is supposed to work in the new type system - one difficulty that I've been having a lot lately is that when something breaks, I don't know whether the breakage is intentional or not. However, the current behavior doesn't seem very useful, and breaks a lot of my code. I normally use UndefValue to create placeholders in constants which will be filled in later, but with the current behavior all placeholders are the same. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 6 13:59:24 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Aug 2011 13:59:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 10598] UndefValue::get() returns the same value In-Reply-To: References: Message-ID: <20110806185924.958932A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10598 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Chris Lattner 2011-08-06 13:59:24 CDT --- Nothing changed here in the new type system. Constants are uniqued always in LLVM IR, this hasn't changed. -Chris -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Aug 6 23:19:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 6 Aug 2011 23:19:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 10473] New type system: Invalid module not caught by verifier In-Reply-To: References: Message-ID: <20110807041922.7CA202A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10473 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #8 from Chris Lattner 2011-08-06 23:19:21 CDT --- Alrighty, r137028 should do it. There is no need to wait until verification time to explode, your request doesn't make sense. Lets fail fast. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 7 02:55:18 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Aug 2011 02:55:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 10599] New: Segfault Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10599 Summary: Segfault Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pipping at exherbo.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=7021) --> (http://llvm.org/bugs/attachment.cgi?id=7021) delta-reduced input (not valid code but manages to make clang++ crash) pipping at bogus /home/pipping/reduce_3 % clang++ -c -std=c++0x reduce_me3.ii reduce_me3.ii:8:17: error: implicit instantiation of undefined template 'std::basic_string >' std::string user_key; ^ reduce_me3.ii:4:9: note: template is declared here class basic_string; ^ clang: /var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/lib/AST/../../include/clang/AST/DeclCXX.h:522: const struct DefinitionData &clang::CXXRecordDecl::data() const: Assertion `DefinitionData && "queried property of class with no definition"' failed. 0 libLLVM-3.0svn.so 0x00007f6f84da8ddf 1 libLLVM-3.0svn.so 0x00007f6f84da9289 2 libpthread.so.0 0x00007f6f83fb9f10 3 libc.so.6 0x00007f6f832d85c5 gsignal + 53 4 libc.so.6 0x00007f6f832d98c5 abort + 389 5 libc.so.6 0x00007f6f832d1235 __assert_fail + 245 6 clang 0x0000000000c95853 clang::Type::isAggregateType() const + 163 7 clang 0x00000000008d2f44 clang::InitializationSequence::InitializationSequence(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, clang::Expr**, unsigned int) + 788 8 clang 0x00000000008dd21d clang::Sema::PerformCopyInitialization(clang::InitializedEntity const&, clang::SourceLocation, clang::ActionResult, bool) + 173 9 clang 0x0000000000928f57 clang::Sema::PerformMoveOrCopyInitialization(clang::InitializedEntity const&, clang::VarDecl const*, clang::QualType, clang::Expr*, bool) + 695 10 clang 0x0000000000929c10 clang::Sema::ActOnReturnStmt(clang::SourceLocation, clang::Expr*) + 1760 11 clang 0x00000000007506d9 clang::Parser::ParseReturnStatement(clang::ParsedAttributes&) + 393 12 clang 0x000000000074dc65 clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector&, bool) + 1925 13 clang 0x0000000000751df3 clang::Parser::ParseCompoundStatementBody(bool) + 1187 14 clang 0x0000000000752a7e clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) + 174 15 clang 0x0000000000761df1 clang::Parser::ParseLexedMethodDef(clang::Parser::LexedMethod&) + 513 16 clang 0x00000000007617c4 clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&) + 132 17 clang 0x0000000000774ff7 clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int, clang::Decl*) + 1879 18 clang 0x00000000007742d5 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 4677 19 clang 0x0000000000766232 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 2754 20 clang 0x0000000000753fe8 clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::AccessSpecifier) + 696 21 clang 0x0000000000753b63 clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 723 22 clang 0x00000000007537e0 clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 304 23 clang 0x00000000007652f7 clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 327 24 clang 0x000000000075c1db clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 1643 25 clang 0x000000000077116a clang::Parser::ParseInnerNamespace(std::vector >&, std::vector >&, std::vector >&, unsigned int, clang::SourceLocation&, clang::SourceLocation&, clang::ParsedAttributes&, clang::SourceLocation&) + 186 26 clang 0x0000000000770d3e clang::Parser::ParseNamespace(unsigned int, clang::SourceLocation&, clang::SourceLocation) + 3342 27 clang 0x000000000076536a clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 442 28 clang 0x000000000075c1db clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 1643 29 clang 0x000000000075baf4 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 244 30 clang 0x0000000000744cfe clang::ParseAST(clang::Sema&, bool) + 318 31 clang 0x000000000064b1d0 clang::CodeGenAction::ExecuteAction() + 768 32 clang 0x0000000000550f77 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 983 33 clang 0x000000000053bdbb clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2779 34 clang 0x0000000000533e87 cc1_main(char const**, char const**, char const*, void*) + 6135 35 clang 0x0000000000538348 main + 632 36 libc.so.6 0x00007f6f832c4c7d __libc_start_main + 253 37 clang 0x00000000005325c9 Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name reduce_me3.ii -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.1 -momit-leaf-frame-pointer -coverage-file reduce_me3.o -resource-dir /usr/bin/../lib/clang/3.0 -std=c++0x -fdeprecated-macro -ferror-limit 19 -fmessage-length 238 -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o reduce_me3.o -x c++-cpp-output reduce_me3.ii 1. reduce_me3.ii:11:49: current parser token ';' 2. reduce_me3.ii:1:1: parsing namespace 'std' 3. reduce_me3.ii:7:3: parsing struct/union/class body 'MakeFormatStringFetcher' 4. reduce_me3.ii:10:68: parsing function body 'make_format_string_fetcher' 5. reduce_me3.ii:10:68: in compound statement ('{}') clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org and include command line arguments and all diagnostic information. 0 libLLVM-3.0svn.so 0x00007f051cf2dddf 1 libLLVM-3.0svn.so 0x00007f051cf2e289 2 libpthread.so.0 0x00007f051c13ef10 3 clang++ 0x000000000059047a clang::driver::Driver::BuildActions(clang::driver::ToolChain const&, clang::driver::DerivedArgList const&, llvm::SmallVector&) const + 3226 4 clang++ 0x0000000000590e46 clang::driver::Driver::generateCompilationDiagnostics(clang::driver::Compilation&, clang::driver::Command const*) + 246 5 clang++ 0x000000000053a630 main + 9568 6 libc.so.6 0x00007f051b449c7d __libc_start_main + 253 7 clang++ 0x00000000005325c9 Stack dump: 0. Program arguments: clang++ -c -std=c++0x reduce_me3.ii 1. Building compilation actions zsh: segmentation fault clang++ -c -std=c++0x reduce_me3.ii pipping at bogus /home/pipping/reduce_3 % clang version 3.0-a8e0cd8cdecc7e0ba1792e46773b884c6eed4829 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 7 02:56:47 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Aug 2011 02:56:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 10600] New: Segfault Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10600 Summary: Segfault Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pipping at exherbo.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=7022) --> (http://llvm.org/bugs/attachment.cgi?id=7022) delta-reduced input (not valid code but manages to make clang++ crash) pipping at bogus /home/pipping/reduce_2 % clang++ -c reduce_me2.ii reduce_me2.ii:1:32: error: C++ requires a type specifier for all declarations template basic_string(); ^~~~~~~~~~~~ reduce_me2.ii:5:1: error: explicit specialization of non-template struct 'hash' hash > : ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ reduce_me2.ii:6:10: error: unknown template name 'unary_function' public unary_function, size_t> { }; ^ reduce_me2.ii:6:65: error: expected '{' after base class list public unary_function, size_t> { }; ^ reduce_me2.ii:6:65: error: expected ';' after struct public unary_function, size_t> { }; ^ ; reduce_me2.ii:6:65: error: expected unqualified-id reduce_me2.ii:9:7: error: explicit specialization of non-template class 'vector' class vector : ^ ~~~~~~~~~~~~~~~~~~ reduce_me2.ii:10:11: error: unknown template name '__vector_base_common' private __vector_base_common { ^ reduce_me2.ii:11:17: error: too few template arguments for class template 'hash' friend struct hash; ^ reduce_me2.ii:5:1: note: template is declared here hash > : ^ clang: DeclSpec.cpp:511: bool clang::DeclSpec::SetTypeSpecType(TST, clang::SourceLocation, clang::SourceLocation, const char *&, unsigned int &, ParsedType): Assertion `Rep && "no type provided!"' failed. 0 libLLVM-3.0svn.so 0x00007f60eed05ddf 1 libLLVM-3.0svn.so 0x00007f60eed06289 2 libpthread.so.0 0x00007f60edf16f10 3 libc.so.6 0x00007f60ed2355c5 gsignal + 53 4 libc.so.6 0x00007f60ed2368c5 abort + 389 5 libc.so.6 0x00007f60ed22e235 __assert_fail + 245 6 clang 0x0000000000793281 7 clang 0x0000000000774359 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 4809 8 clang 0x0000000000766232 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 2754 9 clang 0x0000000000776242 clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject*) + 1986 10 clang 0x0000000000774e6e clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int, clang::Decl*) + 1486 11 clang 0x00000000007742d5 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 4677 12 clang 0x0000000000766232 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 2754 13 clang 0x0000000000753fe8 clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::AccessSpecifier) + 696 14 clang 0x0000000000753b63 clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 723 15 clang 0x00000000007537e0 clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 304 16 clang 0x00000000007652f7 clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 327 17 clang 0x000000000075c1db clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 1643 18 clang 0x000000000075baf4 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 244 19 clang 0x0000000000744cfe clang::ParseAST(clang::Sema&, bool) + 318 20 clang 0x000000000064b1d0 clang::CodeGenAction::ExecuteAction() + 768 21 clang 0x0000000000550f77 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 983 22 clang 0x000000000053bdbb clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2779 23 clang 0x0000000000533e87 cc1_main(char const**, char const**, char const*, void*) + 6135 24 clang 0x0000000000538348 main + 632 25 libc.so.6 0x00007f60ed221c7d __libc_start_main + 253 26 clang 0x00000000005325c9 Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name reduce_me2.ii -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.1 -momit-leaf-frame-pointer -coverage-file reduce_me2.o -resource-dir /usr/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length 238 -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o reduce_me2.o -x c++-cpp-output reduce_me2.ii 1. reduce_me2.ii:11:29: current parser token ';' 2. reduce_me2.ii:9:1: parsing struct/union/class body 'vector' clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org and include command line arguments and all diagnostic information. 0 libLLVM-3.0svn.so 0x00007fb80a595ddf 1 libLLVM-3.0svn.so 0x00007fb80a596289 2 libpthread.so.0 0x00007fb8097a6f10 3 clang++ 0x000000000059047a clang::driver::Driver::BuildActions(clang::driver::ToolChain const&, clang::driver::DerivedArgList const&, llvm::SmallVector&) const + 3226 4 clang++ 0x0000000000590e46 clang::driver::Driver::generateCompilationDiagnostics(clang::driver::Compilation&, clang::driver::Command const*) + 246 5 clang++ 0x000000000053a630 main + 9568 6 libc.so.6 0x00007fb808ab1c7d __libc_start_main + 253 7 clang++ 0x00000000005325c9 Stack dump: 0. Program arguments: clang++ -c reduce_me2.ii 1. Building compilation actions zsh: segmentation fault clang++ -c reduce_me2.ii pipping at bogus /home/pipping/reduce_2 % clang version 3.0-a8e0cd8cdecc7e0ba1792e46773b884c6eed4829 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 7 10:02:55 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Aug 2011 10:02:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 10601] New: Does Signals.cpp require cxxabi.h? Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10601 Summary: Does Signals.cpp require cxxabi.h? Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Support Libraries AssignedTo: unassignedbugs at nondot.org ReportedBy: oroppas at gmail.com CC: llvmbugs at cs.uiuc.edu Hi, When I tried to have llvm/clang self-hosted with clang++/libc++ pair with -stdlib=libc++, clang++ complained about missing cxxabi.h: [ 1%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Signals.cpp.o In file included from /home/ryuta/devel/llvm/src/llvm/lib/Support/Signals.cpp:30: /home/ryuta/devel/llvm/src/llvm/lib/Support/Unix/Signals.inc:31:10: fatal error: 'cxxabi.h' file not found #include ^ 1 error generated. make[2]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/Signals.cpp.o] Error 1 The search paths of clang++ -stdlib=libc++ are: #include "..." search starts here: #include <...> search starts here: /usr/include/c++/v1 /usr/local/include /usr/bin/../lib/clang/3.0/include /usr/include End of search list. This missing header case makes sense since libc++ doesn't come with cxxabi.h. To see what function declarations from cxxabi.h are needed, I created an empty cxxabi.h in /usr/include/c++/v1 just to circumvent the missing header error. Surprisingly, the compiler did not make a single warning nor error for the empty cxxabi.h, which indicates at least lib/Support/Signal.cpp doesn't need to include cxxabi.h. So, my question is: Does LLVMSupport have an *explicit* dependency on cxxabi? Or does it require cxxabi itself in general? -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 7 11:36:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Aug 2011 11:36:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 10200] dragonegg svn on FSF gcc 4.6.1 produces unresolved symbols In-Reply-To: References: Message-ID: <20110807163612.62D4B2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10200 Jack Howarth changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #10 from Jack Howarth 2011-08-07 11:36:11 CDT --- This problem still exists in dragonegg svn using FSF gcc 4.6.1. Compiling xplor-nih produces unresolved __ZN3CDS11IOExceptionD0Ev symbols in dint-atom.o, etc which doesn't occur with dragonegg svn using FSF gcc 4.5.3. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 7 13:15:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Aug 2011 13:15:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 10602] New: test from valgrind leads to "error in backend: Access past stack top!" Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10602 Summary: test from valgrind leads to "error in backend: Access past stack top!" Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: dimitry at andric.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7030) --> (http://llvm.org/bugs/attachment.cgi?id=7030) Compile with -O2 to trigger "Access past stack top!" When I ran valgrind 3.6.1's test suite under clang, it complained with "fatal error: error in backend: Access past stack top!" when compiling the memcheck/tests/x86/more_x86_fp.c file. I have reduced the testcase to the attached file, just try compiling this with "-O2 -S". Lower optimization levels seem to work ok, although I'm not sure if the produced assembly is correct. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 7 13:16:34 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Aug 2011 13:16:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 10603] New: Segfault Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10603 Summary: Segfault Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pipping at exherbo.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=7031) --> (http://llvm.org/bugs/attachment.cgi?id=7031) delta-reduced input (not valid code but manages to make clang++ crash) pipping at bogus /home/pipping/reduce % clang++ -std=c++0x -c output_conf.ii -o /dev/null output_conf.ii:10:94: error: expected class name template struct __is_nothrow_assignable : public false_type { ^ output_conf.ii:13:15: error: unknown type name 'PaludisEnvironment' Imp(const PaludisEnvironment * const e) : ^ output_conf.ii:13:5: error: C++ requires a type specifier for all declarations Imp(const PaludisEnvironment * const e) : ^~~ output_conf.ii:14:41: error: no member named 'make_shared' in namespace 'std' env(e), predefined_variables(std::make_shared >()) ~~~~~^ clang: SemaTemplateInstantiate.cpp:1245: clang::QualType ::TemplateInstantiator::TransformTemplateTypeParmType(clang::TypeLocBuilder &, clang::TemplateTypeParmTypeLoc): Assertion `Arg.getKind() == TemplateArgument::Type && "Template argument kind mismatch"' failed. 0 libLLVM-3.0svn.so 0x00007fd47afccddf 1 libLLVM-3.0svn.so 0x00007fd47afcd289 2 libpthread.so.0 0x00007fd47a1ddf10 3 libc.so.6 0x00007fd4794fc5c5 gsignal + 53 4 libc.so.6 0x00007fd4794fd8c5 abort + 389 5 libc.so.6 0x00007fd4794f5235 __assert_fail + 245 6 clang 0x000000000098cd48 7 clang 0x0000000000989c63 8 clang 0x000000000099d72f 9 clang 0x000000000099f799 10 clang 0x000000000098bccd 11 clang 0x0000000000989c63 12 clang 0x000000000098d09c 13 clang 0x000000000098d00d clang::Sema::SubstType(clang::QualType, clang::MultiLevelTemplateArgumentList const&, clang::SourceLocation, clang::DeclarationName) + 77 14 clang 0x00000000009a4243 clang::Sema::FindInstantiatedDecl(clang::SourceLocation, clang::NamedDecl*, clang::MultiLevelTemplateArgumentList const&) + 707 15 clang 0x00000000009a747b clang::Sema::FindInstantiatedContext(clang::SourceLocation, clang::DeclContext*, clang::MultiLevelTemplateArgumentList const&) + 59 16 clang 0x00000000009a43c4 clang::Sema::FindInstantiatedDecl(clang::SourceLocation, clang::NamedDecl*, clang::MultiLevelTemplateArgumentList const&) + 1092 17 clang 0x000000000099e8a9 18 clang 0x000000000099bc8c 19 clang 0x000000000098bcaf 20 clang 0x0000000000989c63 21 clang 0x0000000000989b2d clang::Sema::SubstType(clang::TypeSourceInfo*, clang::MultiLevelTemplateArgumentList const&, clang::SourceLocation, clang::DeclarationName) + 77 22 clang 0x000000000093bdd0 23 clang 0x0000000000939114 clang::Sema::CheckTemplateArgumentList(clang::TemplateDecl*, clang::SourceLocation, clang::TemplateArgumentListInfo&, bool, llvm::SmallVectorImpl&) + 1444 24 clang 0x000000000093851d clang::Sema::CheckTemplateIdType(clang::TemplateName, clang::SourceLocation, clang::TemplateArgumentListInfo&) + 397 25 clang 0x000000000093a0bf clang::Sema::ActOnTemplateIdType(clang::CXXScopeSpec&, clang::OpaquePtr, clang::SourceLocation, clang::SourceLocation, clang::ASTTemplateArgsPtr, clang::SourceLocation) + 607 26 clang 0x00000000007566f4 clang::Parser::AnnotateTemplateIdTokenAsType() + 116 27 clang 0x000000000075eba5 clang::Parser::TryAnnotateTypeOrScopeToken(bool) + 1925 28 clang 0x000000000077adaf clang::Parser::ParseCastExpression(bool, bool, bool&, bool) + 511 29 clang 0x0000000000779645 clang::Parser::ParseRHSOfBinaryExpression(clang::ActionResult, clang::prec::Level) + 293 30 clang 0x00000000007794f0 clang::Parser::ParseAssignmentExpression() + 176 31 clang 0x000000000077fc36 clang::Parser::ParseExpressionList(llvm::SmallVectorImpl&, llvm::SmallVectorImpl&, void (clang::Sema::*)(clang::Scope*, clang::Expr*, clang::Expr**, unsigned int), clang::Expr*) + 310 32 clang 0x0000000000777cfd clang::Parser::ParseMemInitializer(clang::Decl*) + 429 33 clang 0x00000000007779a3 clang::Parser::ParseConstructorInitializer(clang::Decl*) + 419 34 clang 0x0000000000761d73 clang::Parser::ParseLexedMethodDef(clang::Parser::LexedMethod&) + 387 35 clang 0x00000000007617c4 clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&) + 132 36 clang 0x0000000000774ff7 clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int, clang::Decl*) + 1879 37 clang 0x00000000007742d5 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 4677 38 clang 0x0000000000766232 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 2754 39 clang 0x0000000000753fe8 clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::AccessSpecifier) + 696 40 clang 0x0000000000753b63 clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 723 41 clang 0x00000000007537e0 clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 304 42 clang 0x00000000007652f7 clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 327 43 clang 0x000000000075c1db clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 1643 44 clang 0x000000000077116a clang::Parser::ParseInnerNamespace(std::vector >&, std::vector >&, std::vector >&, unsigned int, clang::SourceLocation&, clang::SourceLocation&, clang::ParsedAttributes&, clang::SourceLocation&) + 186 45 clang 0x0000000000770d3e clang::Parser::ParseNamespace(unsigned int, clang::SourceLocation&, clang::SourceLocation) + 3342 46 clang 0x000000000076536a clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 442 47 clang 0x000000000075c1db clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 1643 48 clang 0x000000000075baf4 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 244 49 clang 0x0000000000744cfe clang::ParseAST(clang::Sema&, bool) + 318 50 clang 0x000000000064b1d0 clang::CodeGenAction::ExecuteAction() + 768 51 clang 0x0000000000550f77 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 983 52 clang 0x000000000053bdbb clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2779 53 clang 0x0000000000533e87 cc1_main(char const**, char const**, char const*, void*) + 6135 54 clang 0x0000000000538348 main + 632 55 libc.so.6 0x00007fd4794e8c7d __libc_start_main + 253 56 clang 0x00000000005325c9 Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name output_conf.ii -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.1 -momit-leaf-frame-pointer -coverage-file /dev/null -resource-dir /usr/bin/../lib/clang/3.0 -std=c++0x -fdeprecated-macro -ferror-limit 19 -fmessage-length 238 -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /dev/null -x c++-cpp-output output_conf.ii 1. output_conf.ii:14:53: at annotation token 2. output_conf.ii:1:1: parsing namespace 'std' 3. output_conf.ii:10:36: parsing struct/union/class body '__is_nothrow_assignable' clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org and include command line arguments and all diagnostic information. 0 libLLVM-3.0svn.so 0x00007f2a8abdcddf 1 libLLVM-3.0svn.so 0x00007f2a8abdd289 2 libpthread.so.0 0x00007f2a89dedf10 3 clang++ 0x000000000059047a clang::driver::Driver::BuildActions(clang::driver::ToolChain const&, clang::driver::DerivedArgList const&, llvm::SmallVector&) const + 3226 4 clang++ 0x0000000000590e46 clang::driver::Driver::generateCompilationDiagnostics(clang::driver::Compilation&, clang::driver::Command const*) + 246 5 clang++ 0x000000000053a630 main + 9568 6 libc.so.6 0x00007f2a890f8c7d __libc_start_main + 253 7 clang++ 0x00000000005325c9 Stack dump: 0. Program arguments: clang++ -std=c++0x -c output_conf.ii -o /dev/null 1. Building compilation actions zsh: segmentation fault clang++ -std=c++0x -c output_conf.ii -o /dev/null pipping at bogus /home/pipping/reduce % clang version 3.0 git-a8e0cd8cdecc7e0ba1792e46773b884c6eed4829 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 7 13:18:51 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Aug 2011 13:18:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 10604] New: llc takes a long time in 'Induction Variable Users' Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10604 Summary: llc takes a long time in 'Induction Variable Users' Product: new-bugs Version: 2.9 Platform: Other OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: cperciva at freebsd.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7032) --> (http://llvm.org/bugs/attachment.cgi?id=7032) Test case (as minimal as I can make it -- any simplifications make the problem go away). Background: Users of Tarsnap (http://www.tarsnap.com/) have been complaining that builds "hang" on OS X Lion on one particular source file (chunkify.c) if -O2 is enabled; using gcc instead of llvm-gcc makes the problem go away. I don't have an OS X Lion box, but I've installed llvm-gcc4 on a FreeBSD system and while the build doesn't *hang* it does seem that something odd is happening with this file. Environment: # uname -a FreeBSD ip-10-242-186-3 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Jul 8 00:54:56 UTC 2011 root at ip-10-17-33-248:/usr/obj/usr/src/sys/XENHVM amd64 # llvm-gcc --version llvm-gcc (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build) llvm-gcc was installed from the FreeBSD ports tree, which claims that this is version 2.9. Problem: Moving between -O1 and -O2 causes a ~200x slowdown in compilation and a ~50x increase in object file size for the attached C source code: # /usr/bin/time -h llvm-gcc -O1 -c foo.c ; ls -l foo.o 0.05s real 0.04s user 0.01s sys -rw-r--r-- 1 root wheel 1904 Aug 7 18:04 foo.o # /usr/bin/time -h llvm-gcc -O2 -c foo.c ; ls -l foo.o 9.11s real 8.98s user 0.12s sys -rw-r--r-- 1 root wheel 111784 Aug 7 18:04 foo.o Generating llvm intermediate output from llvm-gcc -O2 and then compiling it with llc -O=0 and llc -O=1 shows an even more obvious difference between the produced assembly code: # llvm-gcc -emit-llvm -o foo.bc -O2 -c foo.c # /usr/bin/time -h llc -O=0 foo.bc ; ls -l foo.s 0.01s real 0.00s user 0.00s sys -rw-r--r-- 1 root wheel 6085 Aug 7 18:13 foo.s # /usr/bin/time -h llc -O=1 foo.bc ; ls -l foo.s 8.92s real 8.83s user 0.09s sys -rw-r--r-- 1 root wheel 678772 Aug 7 18:13 foo.s It seems that llc is spending a long time in 'Induction Variable Users': # llc --time-passes -O=1 foo.bc 2>&1 | grep Induction 5.0308 ( 56.7%) 0.0000 ( 0.0%) 5.0308 ( 56.3%) 5.0308 ( 56.3%) Induction Variable Users So I conclude that something in this pass is exploding (in both time and size) and is almost certainly at 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 Sun Aug 7 20:20:52 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 7 Aug 2011 20:20:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 10605] New: Or of load miscompiled at -O0 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10605 Summary: Or of load miscompiled at -O0 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: peter at pcc.me.uk CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7033) --> (http://llvm.org/bugs/attachment.cgi?id=7033) Testcase The attached bitcode file (the function llvm::BitstreamCursor::Read(unsigned int) as compiled by dragonegg) is miscompiled at -O0. Specifically, on an amd64 platform, this instruction: %72 = or i32 %71, %30 is compiled to: orl 16(%rax), %edi i.e. a load-or of the loaded operand, %30: %29 = getelementptr inbounds %struct.BitstreamCursor* %1, i32 0, i32 2 %30 = load i32* %29, align 4 But this is wrong because a value is stored here later in the same basic block: %56 = getelementptr inbounds %struct.BitstreamCursor* %1, i32 0, i32 2 store i32 %55, i32* %56, align 4 I bisected this to r130018. .ll and "llc -O0" output 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 Mon Aug 8 07:01:23 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Aug 2011 07:01:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 10606] New: C++ operator cannot be used as a macro name Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10606 Summary: C++ operator cannot be used as a macro name Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: enhancement Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: eremeev at viva64.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Clang is unable to preprocess a file in the Boost library containing macro with the name 'and'. Example: #include #define and "test" #if defined (and) #endif int main() { printf(and); return 0; } clang output: clang.exe and-test.cpp -E -o and-test.i and-test.cpp:2:9: error: C++ operator 'and' cannot be used as a macro name #define and "test" ^ and-test.cpp:4:14: error: operator 'defined' requires an identifier #if defined (and) ^ 2 errors 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 Aug 8 07:07:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Aug 2011 07:07:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 10606] C++ operator cannot be used as a macro name In-Reply-To: References: Message-ID: <20110808120710.58E732A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10606 Sean Hunt changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |scshunt at csclub.uwaterloo.ca Resolution| |INVALID --- Comment #1 from Sean Hunt 2011-08-08 07:07:09 CDT --- Clang's behavior is correct. Lexically, 'and' is not an identifier but an operator, and one cannot define a macro for an operator. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Aug 8 07:15:53 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Aug 2011 07:15:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 10606] C++ operator cannot be used as a macro name In-Reply-To: References: Message-ID: <20110808121553.5395E2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10606 Paul Eremeeff changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #2 from Paul Eremeeff 2011-08-08 07:15:53 CDT --- (In reply to comment #1) > Clang's behavior is correct. Lexically, 'and' is not an identifier but an > operator, and one cannot define a macro for an operator. This sample is based on code found in Boost library. This code compiles with other compilers (VisualC++ for instance). I think there must be some compatibility in Clang with such specific issues? -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 8 08:28:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Aug 2011 08:28:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 10607] New: JIT No Longer Registers EH Information Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10607 Summary: JIT No Longer Registers EH Information Product: new-bugs Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: csdavec at swan.ac.uk CC: llvmbugs at cs.uiuc.edu I'm seeing problems caused by the JIT no longer registering the EH data that it generates. Looking in lib/ExecutionEngine, nothing seems to be referencing ExceptionTableRegister except the methods that set 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 Mon Aug 8 09:15:35 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Aug 2011 09:15:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 10608] New: False positive - inequality constraints ignored Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10608 Summary: False positive - inequality constraints ignored Product: new-bugs Version: 2.9 Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: clang-bugzilla at macspice.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7036) --> (http://llvm.org/bugs/attachment.cgi?id=7036) A minimal test case. In the attached file the value of the integer 'order' is constrained by test for an inequality. However, this information is apparently not used by clang, as a result the attached demo gives a false positive. This problem occurs commonly when a loop is exited using a condition like 'if (i > j) break;' Charles $ /Developer/usr/bin/clang -v --analyze Apple clang version 2.0 (tags/Apple/clang-139) (based on LLVM 2.9svn) Target: x86_64-apple-darwin10 Thread model: posix $ /Developer/usr/bin/clang -v --analyze /Users/cdhw/Code/clang_bugs/clang_bugs/main.c -o clang: error: argument to '-o' is missing (expected 1 value) Apple clang version 2.0 (tags/Apple/clang-139) (based on LLVM 2.9svn) Target: x86_64-apple-darwin10 Thread model: posix $ /Developer/usr/bin/clang -v --analyze /Users/cdhw/Code/clang_bugs/clang_bugs/main.c -o foo.html Apple clang version 2.0 (tags/Apple/clang-139) (based on LLVM 2.9svn) Target: x86_64-apple-darwin10 Thread model: posix "/Developer/usr/bin/clang" -cc1 -triple x86_64-apple-darwin10.0.0 -analyze -disable-free -disable-llvm-verifier -main-file-name main.c -analyzer-store=region -analyzer-opt-analyze-nested-blocks -analyzer-check-dead-stores -analyzer-check-objc-mem -analyzer-eagerly-assume -analyzer-check-objc-methodsigs -analyzer-check-objc-unused-ivars -analyzer-check-idempotent-operations -analyzer-output plist -w -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 123.2 -v -resource-dir /Developer/usr/bin/../lib/clang/2.0 -ferror-limit 19 -fmessage-length 80 -stack-protector 1 -fblocks -fdiagnostics-show-option -fcolor-diagnostics -o foo.html -x c /Users/cdhw/Code/clang_bugs/clang_bugs/main.c clang -cc1 version 2.0 based upon llvm 2.9svn hosted on x86_64-apple-darwin10 #include "..." search starts here: #include <...> search starts here: /usr/local/include /Developer/usr/bin/../lib/clang/2.0/include /usr/include /System/Library/Frameworks (framework directory) /Library/Frameworks (framework directory) End of search list. /Users/X/Code/clang_bugs/clang_bugs/main.c:17:14: warning: Assigned value is garbage or undefined t[i] = s[i]; ^ ~~~~ 1 warning 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 Aug 8 11:23:33 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Aug 2011 11:23:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 10609] New: poor diagnostic on ambiguous implicit conversion Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10609 Summary: poor diagnostic on ambiguous implicit conversion Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: richard-llvm at metafoo.co.uk CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The following cut-down test case is accepted by g++ and rejected by clang++: template class A { public: T val; operator const T &() const { return val; } }; class B : public A {}; class C : public B { public: enum Value { None, ThingA, ThingB }; operator bool() const { return val != None; } }; bool Check(const C &c) { return C::ThingB == c; } It's not clear to me whether clang is correct in rejecting this; the 'const C lvalue -> const int lvalue -> int rvalue' conversion sequence for the RHS looks like it should be unambiguously the best. Assuming clang is correct, its error message is poor: /home/richards/test.cpp:13:43: error: use of overloaded operator '==' is ambiguous (with operand types 'C::Value' and 'const C') bool Check(const C &c) { return C::ThingB == c; } ~~~~~~~~~ ^ ~ /home/richards/test.cpp:13:43: note: because of ambiguity in conversion of 'const C' to 'float' /home/richards/test.cpp:10:3: note: candidate function operator bool() const { return val != None; } ^ /home/richards/test.cpp:4:3: note: candidate function operator const T &() const { return val; } ^ /home/richards/test.cpp:13:43: note: built-in candidate operator==(int, float) bool Check(const C &c) { return C::ThingB == c; } ^ /home/richards/test.cpp:13:43: note: built-in candidate operator==(int, double) /home/richards/test.cpp:13:43: note: built-in candidate operator==(int, long double) /home/richards/test.cpp:13:43: note: built-in candidate operator==(int, int) /home/richards/test.cpp:13:43: note: built-in candidate operator==(int, long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(int, unsigned long long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(int, unsigned long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(int, unsigned int) /home/richards/test.cpp:13:43: note: built-in candidate operator==(int, long long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned int, long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned int, long long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned int, int) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned int, long double) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned int, double) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned int, float) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long long, unsigned long long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long long, unsigned long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long long, unsigned int) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long long, long long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long long, long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long long, int) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long long, long double) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long long, double) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned long, unsigned long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned long long, unsigned long long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned long long, unsigned long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned long long, unsigned int) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned long long, long long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned long long, long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned long long, int) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned long long, long double) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned long long, double) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned long long, float) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned long, unsigned long long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long, long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned long, unsigned int) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned long, long long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned long, long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned long, int) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned long, long double) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned long, double) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned long, float) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned int, unsigned long long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned int, unsigned long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(unsigned int, unsigned int) /home/richards/test.cpp:13:43: note: built-in candidate operator==(double, float) /home/richards/test.cpp:13:43: note: built-in candidate operator==(double, unsigned long long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(double, unsigned long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(double, unsigned int) /home/richards/test.cpp:13:43: note: built-in candidate operator==(double, long long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(double, long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(double, int) /home/richards/test.cpp:13:43: note: built-in candidate operator==(double, long double) /home/richards/test.cpp:13:43: note: built-in candidate operator==(double, double) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long double, float) /home/richards/test.cpp:13:43: note: built-in candidate operator==(float, unsigned long long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(float, unsigned long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(float, unsigned int) /home/richards/test.cpp:13:43: note: built-in candidate operator==(float, long long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(float, long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(float, int) /home/richards/test.cpp:13:43: note: built-in candidate operator==(float, long double) /home/richards/test.cpp:13:43: note: built-in candidate operator==(float, double) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long, float) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long, unsigned long long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long, unsigned long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long, unsigned int) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long, long long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(float, float) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long, int) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long, long double) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long, double) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long long, float) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long double, unsigned long long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long double, unsigned long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long double, unsigned int) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long double, long long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long double, long) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long double, int) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long double, long double) /home/richards/test.cpp:13:43: note: built-in candidate operator==(long double, double) In particular, this note is wrong: /home/richards/test.cpp:13:43: note: because of ambiguity in conversion of 'const C' to 'float' 'const C' has user-defined conversions to 'const int &' and 'bool', and the conversion to 'float' for both of those is a worse standard conversion sequence than the promotion (or identity conversion) to 'int'. So the ambiguous conversion from 'const C' to 'float' is irrelevant to the problem. /home/richards/test.cpp:10:3: note: candidate function operator bool() const { return val != None; } ^ /home/richards/test.cpp:4:3: note: candidate function operator const T &() const { return val; } ^ In the code from which this testcase was extracted, it is nontrivial to determine what type is produced by this candidate function. It'd be great if clang told us. Finally, the long list of viable functions should be pruned to only list those for which there is no better viable 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 Mon Aug 8 11:34:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Aug 2011 11:34:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 10610] New: PVS-Studio vs Clang Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10610 Summary: PVS-Studio vs Clang Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: karpov at viva64.com CC: llvmbugs at cs.uiuc.edu I checked the Clang project using the PVS-Studio static code analyzer. I just glanced through the code but managed to find a few obviously odd fragments. Below I will cite the analyzer-generated messages I have studied and the corresponding code fragments. I hope this will help to improve the project a bit. P.S. And also see my blog post: http://www.viva64.com/en/b/0108/ --------------------------------------- V501 There are identical sub-expressions 'LBO->hasNoUnsignedWrap ()' to the left and to the right of the '&&' operator. LLVMAnalysis instructionsimplify.cpp 1891 static Value *SimplifyICmpInst(...) { ... case Instruction::Shl: { bool NUW = LBO->hasNoUnsignedWrap() && LBO->hasNoUnsignedWrap(); bool NSW = LBO->hasNoSignedWrap() && RBO->hasNoSignedWrap(); ... } Need: bool NUW = LBO->hasNoUnsignedWrap() && RBO->hasNoUnsignedWrap(); --------------------------------------- V501 There are identical sub-expressions 'FoldMskICmp_Mask_AllZeroes' to the left and to the right of the '|' operator. LLVMInstCombine instcombineandorxor.cpp 505 V501 There are identical sub-expressions 'FoldMskICmp_Mask_NotAllZeroes' to the left and to the right of the '|' operator. LLVMInstCombine instcombineandorxor.cpp 509 static unsigned getTypeOfMaskedICmp(...) { ... result |= (icmp_eq ? (FoldMskICmp_Mask_AllZeroes | FoldMskICmp_Mask_AllZeroes | FoldMskICmp_AMask_Mixed | FoldMskICmp_BMask_Mixed) : (FoldMskICmp_Mask_NotAllZeroes | FoldMskICmp_Mask_NotAllZeroes | FoldMskICmp_AMask_NotMixed | FoldMskICmp_BMask_NotMixed)); ... } --------------------------------------- V523 The 'then' statement is equivalent to the 'else' statement. LLVMInstCombine instcombineandorxor.cpp 1387 static bool CollectBSwapParts(...) { ... // 2) The input and ultimate destinations must line up: if byte 3 of an i32 // is demanded, it needs to go into byte 0 of the result. This means that the // byte needs to be shifted until it lands in the right byte bucket. The // shift amount depends on the position: if the byte is coming from the high // part of the value (e.g. byte 3) then it must be shifted right. If from the // low part, it must be shifted left. unsigned DestByteNo = InputByteNo + OverallLeftShift; if (InputByteNo < ByteValues.size()/2) { if (ByteValues.size()-1-DestByteNo != InputByteNo) return true; } else { if (ByteValues.size()-1-DestByteNo != InputByteNo) return true; } ... } --------------------------------------- V501 There are identical sub-expressions to the left and to the right of the '||' operator: Op1I->hasOneUse () || Op1I->hasOneUse () LLVMInstCombine instcombineandorxor.cpp 2246 Instruction *InstCombiner::visitXor(BinaryOperator &I) { ... if (Op0I && Op1I && Op0I->isShift() && Op0I->getOpcode() == Op1I->getOpcode() && Op0I->getOperand(1) == Op1I->getOperand(1) && (Op1I->hasOneUse() || Op1I->hasOneUse())) { ... } Need: (Op0I->hasOneUse() || Op1I->hasOneUse())) { --------------------------------------- V501 There are identical sub-expressions to the left and to the right of the '==' operator: Src1.FloatVal == Src1.FloatVal LLVMInterpreter execution.cpp 425 V501 There are identical sub-expressions to the left and to the right of the '==' operator: Src2.FloatVal == Src2.FloatVal LLVMInterpreter execution.cpp 426 V501 There are identical sub-expressions to the left and to the right of the '==' operator: Src1.DoubleVal == Src1.DoubleVal LLVMInterpreter execution.cpp 428 V501 There are identical sub-expressions to the left and to the right of the '==' operator: Src2.DoubleVal == Src2.DoubleVal LLVMInterpreter execution.cpp 429 static GenericValue executeFCMP_ORD(GenericValue Src1, GenericValue Src2, Type *Ty) { GenericValue Dest; if (Ty->isFloatTy()) Dest.IntVal = APInt(1,(Src1.FloatVal == Src1.FloatVal && Src2.FloatVal == Src2.FloatVal)); else Dest.IntVal = APInt(1,(Src1.DoubleVal == Src1.DoubleVal && Src2.DoubleVal == Src2.DoubleVal)); return Dest; } Strange... --------------------------------------- V501 There are identical sub-expressions to the left and to the right of the '!=' operator: Src1.FloatVal != Src1.FloatVal LLVMInterpreter execution.cpp 437 V501 There are identical sub-expressions to the left and to the right of the '!=' operator: Src2.FloatVal != Src2.FloatVal LLVMInterpreter execution.cpp 438 V501 There are identical sub-expressions to the left and to the right of the '!=' operator: Src1.DoubleVal != Src1.DoubleVal LLVMInterpreter execution.cpp 440 V501 There are identical sub-expressions to the left and to the right of the '!=' operator: Src2.DoubleVal != Src2.DoubleVal LLVMInterpreter execution.cpp 441 static GenericValue executeFCMP_UNO(GenericValue Src1, GenericValue Src2, Type *Ty) { GenericValue Dest; if (Ty->isFloatTy()) Dest.IntVal = APInt(1,(Src1.FloatVal != Src1.FloatVal || Src2.FloatVal != Src2.FloatVal)); else Dest.IntVal = APInt(1,(Src1.DoubleVal != Src1.DoubleVal || Src2.DoubleVal != Src2.DoubleVal)); return Dest; } --------------------------------------- V501 There are identical sub-expressions to the left and to the right of the '&&' operator: CurChar != '\n' && CurChar != '\n' LLVMMCParser asmlexer.cpp 149 AsmToken AsmLexer::LexLineComment() { // FIXME: This is broken if we happen to a comment at the end of a file, which // was .included, and which doesn't end with a newline. int CurChar = getNextChar(); while (CurChar != '\n' && CurChar != '\n' && CurChar != EOF) CurChar = getNextChar(); ... } Need: while (CurChar != '\n' && CurChar != EOF) or while (CurChar != '\n' && CurChar != '\r' && CurChar != EOF) --------------------------------------- V501 There are identical sub-expressions to the left and to the right of the '||' operator. LLVMSelectionDAG dagcombiner.cpp 7340 bool DAGCombiner::SimplifySelectOps(...) { ... LoadSDNode *LLD = cast(LHS); LoadSDNode *RLD = cast(RHS); ... if ((LLD->hasAnyUseOfValue(1) && (LLD->isPredecessorOf(CondLHS) || LLD->isPredecessorOf(CondRHS))) || (LLD->hasAnyUseOfValue(1) && (LLD->isPredecessorOf(CondLHS) || LLD->isPredecessorOf(CondRHS)))) return false; ... } Can be: if ((LLD->hasAnyUseOfValue(1) && (LLD->isPredecessorOf(CondLHS) || LLD->isPredecessorOf(CondRHS))) || (RLD->hasAnyUseOfValue(1) && (RLD->isPredecessorOf(CondLHS) || RLD->isPredecessorOf(CondRHS)))) return false; --------------------------------------- V501 There are identical sub-expressions '!DAG.isKnownNeverZero (LHS)' to the left and to the right of the '&&' operator. LLVMX86CodeGen x86isellowering.cpp 11635 static SDValue PerformSELECTCombine(...) { ... SDValue LHS = N->getOperand(1); SDValue RHS = N->getOperand(2); ... if (!UnsafeFPMath && !DAG.isKnownNeverZero(LHS) && !DAG.isKnownNeverZero(RHS)) ... if (!UnsafeFPMath && !DAG.isKnownNeverZero(LHS) && !DAG.isKnownNeverZero(LHS)) ... } Can be: !DAG.isKnownNeverZero(LHS) && !DAG.isKnownNeverZero(RHS) --------------------------------------- V523 The 'then' statement is equivalent to the 'else' statement. clangRewrite rewriteobjc.cpp 4181 std::string RewriteObjC::SynthesizeBlockFunc(...) { ... if (convertBlockPointerToFunctionPointer(QT)) QT.getAsStringInternal(ParamStr, Context->PrintingPolicy); else QT.getAsStringInternal(ParamStr, Context->PrintingPolicy); ... } Strange... --------------------------------------- V501 There are identical sub-expressions 'CondResult.isInvalid ()' to the left and to the right of the '||' operator. clangSema semastmt.cpp 899 StmtResult Sema::ActOnDoStmt(...) { ... ExprResult CondResult = CheckBooleanCondition(Cond, DoLoc); if (CondResult.isInvalid() || CondResult.isInvalid()) return StmtError(); ... } --------------------------------------- V501 There are identical sub-expressions 'P->isMemberPointerType ()' to the left and to the right of the '&&' operator. clangSema sematemplatededuction.cpp 3240 Sema::DeduceTemplateArguments(...) { ... if ((P->isPointerType() && A->isPointerType()) || (P->isMemberPointerType() && P->isMemberPointerType())) ... } Need: (P->isMemberPointerType() && A->isMemberPointerType()) --------------------------------------- V519 The 'SignedOverflowBehavior' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 207, 213. FrontendTests langoptions.h 213 LangOptions() { ... SignedOverflowBehavior = SOB_Undefined; AssumeSaneOperatorNew = 1; AccessControl = 1; ElideConstructors = 1; SignedOverflowBehavior = 0; ... } It's not a bug. But ... --------------------------------------- V556 The values of different enum types are compared: switch(ENUM_TYPE_A) { case ENUM_TYPE_B: ... }. LLVMAsmPrinter targetlowering.h 268 V556 The values of different enum types are compared: switch(ENUM_TYPE_A) { case ENUM_TYPE_B: ... }. LLVMAsmPrinter targetlowering.h 270 enum LegalizeAction { Legal, // The target natively supports this operation. Promote, // This operation should be executed in a larger type. Expand, // Try to expand this to other ops, otherwise use a libcall. Custom // Use the LowerOperation hook to implement custom lowering. }; enum LegalizeTypeAction { TypeLegal, // The target natively supports this type. TypePromoteInteger, // Replace this integer with a larger one. TypeExpandInteger, // Split this integer into two of half the size. TypeSoftenFloat, // Convert this float to a same size integer type. TypeExpandFloat, // Split this float into two of half the size. TypeScalarizeVector, // Replace this one-element vector with its element. TypeSplitVector, // Split this vector into two of half the size. TypeWidenVector // This vector should be widened into a larger vector. }; LegalizeTypeAction getTypeAction(LLVMContext &Context, EVT VT) const; EVT getTypeToExpandTo(LLVMContext &Context, EVT VT) const { ... switch (getTypeAction(Context, VT)) { case Legal: return VT; case Expand: ... } --------------------------------------- V524 It is odd that the body of 'clearTopDownPointers' function is fully equivalent to the body of 'clearBottomUpPointers' function (ObjCARC.cpp, line 1318). LLVMScalarOpts objcarc.cpp 1322 MapTy PerPtrTopDown; MapTy PerPtrBottomUp; void clearBottomUpPointers() { PerPtrTopDown.clear(); } void clearTopDownPointers() { PerPtrTopDown.clear(); } Can be: void clearBottomUpPointers() { PerPtrBottomUp.clear(); } --------------------------------------- V519 The 'Src1Name' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 211, 215. LLVMX86AsmPrinter x86instcomments.cpp 215 void llvm::EmitAnyX86InstComments(...) { ... case X86::VPERMILPSri: DecodeVPERMILPSMask(4, MI->getOperand(2).getImm(), ShuffleMask); Src1Name = getRegName(MI->getOperand(0).getReg()); case X86::VPERMILPSYri: DecodeVPERMILPSMask(8, MI->getOperand(2).getImm(), ShuffleMask); Src1Name = getRegName(MI->getOperand(0).getReg()); break; ... } Need break operator. --------------------------------------- V519 The 'ParmOffset' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 3953, 3956. clangAST astcontext.cpp 3956 std::string ASTContext::getObjCEncodingForBlock(const BlockExpr *Expr) const { ... ParmOffset = PtrSize; // Argument types. ParmOffset = PtrSize; ... } It's not a bug. But ... --------------------------------------- -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 8 11:51:56 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Aug 2011 11:51:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 10577] Assertion `res.getDeclRefExpr() == lastDR' failed In-Reply-To: References: Message-ID: <20110808165156.924362A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10577 Grzegorz Dabrowski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #2 from Grzegorz Dabrowski 2011-08-08 11:51:56 CDT --- Unfortunately similar test case causes the same crash: void test() { int x = 1; int y = (float&)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 Aug 8 12:16:08 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Aug 2011 12:16:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 10602] test from valgrind leads to "error in backend: Access past stack top!" In-Reply-To: References: Message-ID: <20110808171608.9418D2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10602 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Jakob Stoklund Olesen 2011-08-08 12:16:08 CDT --- Fixed in r137050. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 8 14:14:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Aug 2011 14:14:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 10611] New: cortex-m3: cannot select sign_extend_inreg Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10611 Summary: cortex-m3: cannot select sign_extend_inreg Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: bagel99 at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7037) --> (http://llvm.org/bugs/attachment.cgi?id=7037) test case llvm-as -o - bug-signext.ll | opt -std-compile-opts -disable-inlining -o - | llc -march=thumb -mcpu=cortex-m3 -mattr=+thumb2 Doesn't fail if opt is not used. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Aug 8 14:49:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Aug 2011 14:49:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 10611] cortex-m3: cannot select sign_extend_inreg In-Reply-To: References: Message-ID: <20110808194950.243B02A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10611 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #1 from Eli Friedman 2011-08-08 14:49:49 CDT --- r137061. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 8 16:31:49 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Aug 2011 16:31:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 10581] [AVX] vector shifts are scalarized In-Reply-To: References: Message-ID: <20110808213149.827232A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10581 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-08-08 16:31:49 CDT --- Hi, Fixed in r137067 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 8 16:43:31 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Aug 2011 16:43:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 10577] Assertion `res.getDeclRefExpr() == lastDR' failed In-Reply-To: References: Message-ID: <20110808214331.EEF372A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10577 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #3 from Ted Kremenek 2011-08-08 16:43:31 CDT --- (In reply to comment #2) > Unfortunately similar test case causes the same crash: > > void test() > { > int x = 1; > int y = (float&)x; > } Fixed in r137068. 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 Aug 8 18:01:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Aug 2011 18:01:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 10188] FPPassManager::runOnModule may return incorrect values In-Reply-To: References: Message-ID: <20110808230132.C1C042A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10188 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |wendling at apple.com Resolution| |FIXED --- Comment #1 from Bill Wendling 2011-08-08 18:01:31 CDT --- Nice catch! Patch applied here r137072. 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 Mon Aug 8 18:36:24 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Aug 2011 18:36:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 10612] New: Cannot run the check project with long path names Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10612 Summary: Cannot run the check project with long path names Product: Test Suite Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: lit AssignedTo: unassignedbugs at nondot.org ReportedBy: aaron at aaronballman.com CC: llvmbugs at cs.uiuc.edu, daniel at zuster.org Attempting to run the check project when llvm is on a path with spaces causes every test to file with an error similar to: 8> Exception during script execution: 8> Traceback (most recent call last): 8> File "C:\Users\Aaron Ballman\Desktop\llvm\llvm\utils\lit\lit\main.py", line 122, in runTest 8> self.litConfig) 8> File "C:\Users\Aaron Ballman\Desktop\llvm\llvm\utils\lit\lit\TestFormats.py", line 129, in execute 8> return TestRunner.executeTclTest(test, litConfig) 8> File "C:\Users\Aaron Ballman\Desktop\llvm\llvm\utils\lit\lit\TestRunner.py", line 528, in executeTclTest 8> res = executeTclScriptInternal(test, litConfig, tmpBase, script, execdir) 8> File "C:\Users\Aaron Ballman\Desktop\llvm\llvm\utils\lit\lit\TestRunner.py", line 324, in executeTclScriptInternal 8> exitCode = executeShCmd(cmd, test.config, cwd, results) 8> File "C:\Users\Aaron Ballman\Desktop\llvm\llvm\utils\lit\lit\TestRunner.py", line 120, in executeShCmd 8> r[2] = open(r[0], r[1]) 8> IOError: [Errno 2] No such file or directory: 'C:/Users/Aaron' Paths should either be escaped, or quoted properly. Note, the full path to llvm on my machine is: "C:\Users\Aaron Ballman\Desktop\llvm" -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Aug 8 19:40:17 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Aug 2011 19:40:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 10592] cannot compile scalar expression; static_cast const int& to const unsigned& In-Reply-To: References: Message-ID: <20110809004017.EBB742A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10592 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Douglas Gregor 2011-08-08 19:40:17 CDT --- Fixed in Clang r137086. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 8 19:49:31 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Aug 2011 19:49:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 10580] [AVX] vector comparisons are scalarized In-Reply-To: References: Message-ID: <20110809004931.230922A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10580 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-08-08 19:49:30 CDT --- Hi Matt, I've added the AVX part of this in r137090. But keep in mind that if you want to generate cmp*ps/pd variants you should sign extended the result, so in the correct testcase is: define <8 x i32> @cmp00(<8 x float> %a, <8 x float> %b) nounwind readnone { %bincmp = fcmp olt <8 x float> %a, %b %s = sext <8 x i1> %bincmp to <8 x i32> ret <8 x i32> %s } -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 8 19:57:48 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Aug 2011 19:57:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 10490] [AVX] Unknown type for unpckh / UNREACHABLE executed at X86ISelLowering.cpp:5756! In-Reply-To: References: Message-ID: <20110809005748.DAAFD2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10490 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Bruno Cardoso Lopes 2011-08-08 19:57:47 CDT --- Works perfectly for me in 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 Mon Aug 8 20:00:08 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Aug 2011 20:00:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 10613] New: calls to old-style functions possibly wrong Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10613 Summary: calls to old-style functions possibly wrong Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ahatanak at gmail.com CC: llvmbugs at cs.uiuc.edu clang seems to treat calls to functions defined in the old-style differently when optimization level is -O0 and -O3: at level -O3, calls to f1 and f2 in main look identical while at level -O3, the pointer to f2 is being cast to a function with ellipsis before it is called. This results in generation of incorrect code for Mips (and possibly for other targets which have different calling conventions for functions that have a variable argument list and those that don't). // oldstl2.c // adapted from gcc.c-torture/execute/960513-1.c #include #include void __attribute__((noinline)) f1(double f, int i) { printf("%f\n", f + i); } void __attribute__((noinline)) f2(f, i) double f; int i; { printf("%f\n", f + i); } int main(int argc, char** argv) { f1(2.0, 1); f2(2.0, 1); return 0; } $ clang oldstl2.c -o oldstl2.ll -emit-llvm -O3 -S ; ModuleID = 'oldstl2.c' target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" target triple = "x86_64-unknown-linux-gnu" @.str = private unnamed_addr constant [4 x i8] c"%f\0A\00", align 1 define void @f1(double %f, i32 %i) nounwind uwtable noinline { entry: %conv = sitofp i32 %i to double %add = fadd double %conv, %f %call = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i64 0, i64 0), double %add) nounwind ret void } declare i32 @printf(i8* nocapture, ...) nounwind define void @f2(double %f, i32 %i) nounwind uwtable noinline { entry: %conv = sitofp i32 %i to double %add = fadd double %conv, %f %call = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i64 0, i64 0), double %add) nounwind ret void } define i32 @main(i32 %argc, i8** nocapture %argv) nounwind uwtable { entry: tail call void @f1(double 2.000000e+00, i32 1) tail call void @f2(double 2.000000e+00, i32 1) nounwind ret i32 0 } $ clang oldstl2.c -o oldstl2.ll -emit-llvm -O0 -S // definition of f1 and f2 omitted. define i32 @main(i32 %argc, i8** %argv) nounwind uwtable { entry: %retval = alloca i32, align 4 %argc.addr = alloca i32, align 4 %argv.addr = alloca i8**, align 8 store i32 0, i32* %retval store i32 %argc, i32* %argc.addr, align 4 store i8** %argv, i8*** %argv.addr, align 8 call void @f1(double 2.000000e+00, i32 1) call void (...)* bitcast (void (double, i32)* @f2 to void (...)*)(double 2.000000e+00, i32 1) ret i32 0 } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Aug 8 20:43:47 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Aug 2011 20:43:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 10558] [AVX] cannot select v8f32 = X86ISD::VZEXT_MOVL error In-Reply-To: References: Message-ID: <20110809014347.042C02A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10558 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-08-08 20:43:46 CDT --- Fixed in r137100 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 8 20:55:26 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 8 Aug 2011 20:55:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 10579] Failure to call constructors of template class with Enum template parameter In-Reply-To: References: Message-ID: <20110809015526.C242B2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10579 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2011-08-08 20:55:26 CDT --- Fixed in Clang r137101. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 00:11:16 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 00:11:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 10614] New: Redundant load of address of array Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10614 Summary: Redundant load of address of array Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: jmuizelaar at mozilla.com CC: llvmbugs at cs.uiuc.edu The following code produces some a redundant leaq of the address of the array #include static unsigned int const PowersOf10[] = {0, 1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000}; uint32_t BiggestPowerTen(uint32_t number, unsigned int number_bits) { unsigned int t = (number_bits); if (number References: Message-ID: <20110809055343.549842A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10559 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-08-09 00:53:43 CDT --- Fixed in r137114 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 04:01:34 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 04:01:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 9954] set_terminate doesn't catch exceptions thrown by constructors invoked through new In-Reply-To: References: Message-ID: <20110809090134.216212A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9954 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bill Wendling 2011-08-09 04:01:33 CDT --- This looks fixed now. Probably due to some of the EH changes John did recently. [Irk:llvm] ./llvm.obj/Debug+Asserts/bin/clang++ a.cpp [Irk:llvm] ./a.out Exception thrown! Abort trap: 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 Tue Aug 9 04:06:35 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 04:06:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 9958] powerpc-darwin8 build: multiply defined _abort In-Reply-To: References: Message-ID: <20110809090635.5136C2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9958 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |wendling at apple.com Resolution| |WONTFIX --- Comment #3 from Bill Wendling 2011-08-09 04:06:34 CDT --- Hi David, We haven't supported PPC on Darwin since 2.6 I believe. So unfortunately, you're kind of on your own. You should try asking on the llvmdev mailing list. You should try removing the 'abort' from Signals.inc and seeing if that helps you out. I'm not sure what else to suggest because I don't have a PPC machine around to help 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 Tue Aug 9 04:15:38 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 04:15:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 10076] Simple mixup of "abs" and "fabs" leads to 65-line cascade of error messages In-Reply-To: References: Message-ID: <20110809091538.85DB52A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10076 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |wendling at apple.com Resolution| |FIXED --- Comment #1 from Bill Wendling 2011-08-09 04:15:37 CDT --- This looks like it's been fixed now: [Irk:llvm] clang++ -c test.cc test.cc:2:21: error: use of undeclared identifier 'abs'; did you mean 'fabs'? int main() { return abs(0); } ^~~ fabs In file included from test.cc:1: In file included from /usr/include/math.h:28: /usr/include/architecture/i386/math.h:334:16: note: 'fabs' declared here extern double fabs( double ); ^ 1 error 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 Tue Aug 9 04:29:23 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 04:29:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 10615] New: SIGFPE (div by 0) in clang::Sema::CheckArrayAccess Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10615 Summary: SIGFPE (div by 0) in clang::Sema::CheckArrayAccess Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Keywords: compile-fail Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: quickslyver at free.fr CC: llvmbugs at cs.uiuc.edu clang -cc1 clang-bug.c Stack dump: 0. Program arguments: temp/llvm-vanilla/llvm-build/bin/clang -cc1 clang-bug.c 1. clang-bug.c:9:42: current parser token ';' 2. clang-bug.c:8:1: parsing function body 'ext2_statfs' 3. clang-bug.c:8:1: in compound statement ('{}') Floatting point exception GDB stack dump: #0 0xb7e81a6a in __udivdi3 () from /lib/libgcc_s.so.1 #1 0x08fef8bd in clang::Sema::CheckArrayAccess(clang::Expr const*, clang::Expr const*, bool, bool) () #2 0x090de9cf in clang::Sema::CheckAdditionOperands(clang::ActionResult&, clang::ActionResult&, clang::SourceLocation, clang::QualType*) () #3 0x090e6d82 in clang::Sema::CreateBuiltinBinOp(clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*) () #4 0x090e8656 in clang::Sema::BuildBinOp(clang::Scope*, clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*) () #5 0x090e8437 in clang::Sema::ActOnBinOp(clang::Scope*, clang::SourceLocation, clang::tok::TokenKind, clang::Expr*, clang::Expr*) () #6 0x08d245fe in clang::Parser::ParseRHSOfBinaryExpression(clang::ActionResult, clang::prec::Level) () #7 0x08d23b18 in clang::Parser::ParseAssignmentExpression() () #8 0x08d23840 in clang::Parser::ParseExpression() () #9 0x08ced9f5 in clang::Parser::ParseReturnStatement(clang::ParsedAttributes&) () #10 0x08ce8e2a in clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector&, bool) () #11 0x08ceadbc in clang::Parser::ParseCompoundStatementBody(bool) () #12 0x08ceec3c in clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) () #13 0x08cfea6a in clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&) () #14 0x08d09c0e in clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int, bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) () #15 0x08cfe072 in clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&, clang::AccessSpecifier) () #16 0x08cfe0e7 in clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::AccessSpecifier) () #17 0x08cfd939 in clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) () #18 0x08cfcee5 in clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) () #19 0x08cda399 in clang::ParseAST(clang::Sema&, bool) () #20 0x08c4620f in clang::ASTFrontendAction::ExecuteAction() () #21 0x08c45e6e in clang::FrontendAction::Execute() () #22 0x08c2b6c9 in clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) () #23 0x08c98755 in clang::ExecuteCompilerInvocation(clang::CompilerInstance*) () #24 0x08bac653 in cc1_main(char const**, char const**, char const*, void*) () #25 0x08ba74e0 in main () With Linux 32bit (Debian Stable) Are you able to reproduce this crash with others platforms ? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Aug 9 07:23:02 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 07:23:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 10616] New: Crash in static analyzer Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10616 Summary: Crash in static analyzer Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: chris at bubblescope.net CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7039) --> (http://llvm.org/bugs/attachment.cgi?id=7039) crashing preprocessed file The attached code crashes the static analyzer, but compiles fine in clang. This file comes from the open source application 'GAP'. The error I recieve is: In file included from ../../src/finfield.c:1: ../../src/finfield.c:1395:45: warning: The left operand to '+' is always 0 vX = ( (1)==0 ? 0 : ( (v)<=(1) ? (1)-(v)+1 : *(sX)-(v)+1 +(1) ) ); ~~~~~~~^ ../../src/finfield.c:1587:51: warning: The left operand to '+' is always 0 vL = ( (1)==0 ? 0 : ( (vL)<=(1) ? (1)-(vL)+1 : *(sX)-(vL)+1 +(1) ) ); ~~~~~~~~^ 0 clang 0x0000000105068902 llvm::SmallVectorImpl::resize(unsigned int) + 1402 1 clang 0x0000000105068e89 llvm::SmallVectorImpl::resize(unsigned int) + 2817 2 libsystem_c.dylib 0x00007fff8e434cfa _sigtramp + 26 3 libsystem_c.dylib 0x00007fd04aa60e00 _sigtramp + 18446743870711709984 4 clang 0x00000001044730cc clang::ento::EnhancedBugReport::registerInitialVisitors(clang::ento::BugReporterContext&, clang::ento::ExplodedNode const*) + 52 5 clang 0x00000001044b8f0f llvm::FoldingSetNodeWrapper::~FoldingSetNodeWrapper() + 38773 6 clang 0x00000001044b23c4 llvm::FoldingSetNodeWrapper::~FoldingSetNodeWrapper() + 11306 7 clang 0x00000001044b7b78 llvm::FoldingSetNodeWrapper::~FoldingSetNodeWrapper() + 33758 8 clang 0x0000000104463e52 clang::ASTContext::getQualifiedType(clang::QualType, clang::Qualifiers) const + 9900 9 clang 0x0000000104464186 clang::ASTContext::getQualifiedType(clang::QualType, clang::Qualifiers) const + 10720 10 clang 0x000000010446444b clang::ASTContext::getQualifiedType(clang::QualType, clang::Qualifiers) const + 11429 11 clang 0x0000000104464723 clang::ASTContext::getQualifiedType(clang::QualType, clang::Qualifiers) const + 12157 12 clang 0x00000001041fca4f llvm::IRBuilder >::CreatePHI(llvm::Type*, unsigned int, llvm::Twine const&) + 895 13 clang 0x000000010401c931 clang::io::Emit64(llvm::raw_ostream&, unsigned long long) + 6177 14 clang 0x0000000104007295 char const** llvm::SmallVectorImpl::insert<__gnu_cxx::__normal_iterator > > >(char const**, __gnu_cxx::__normal_iterator > >, __gnu_cxx::__normal_iterator > >) + 2601 15 clang 0x0000000104001c2b 16 clang 0x00000001040045d8 llvm::formatted_raw_ostream::releaseStream() + 1596 17 clang 0x0000000104001134 Stack dump: 0. Program arguments: /clang/bin//clang -cc1 -triple x86_64-apple-macosx10.7.0 -analyze -disable-free -disable-llvm-verifier -main-file-name out.c -analyzer-store=region -analyzer-opt-analyze-nested-blocks -analyzer-eagerly-assume -analyzer-checker=core -analyzer-checker=deadcode -analyzer-checker=security -analyzer-checker=unix -analyzer-checker=osx -analyzer-output plist -w -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 126.3.2 -resource-dir /clang/bin/../lib/clang/3.0 -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -fblocks -fdiagnostics-show-option -analyzer-output=html -o /var/folders/c2/j2pf8rdj4w1dr624t90z2q700000gn/T/scan-build-2011-08-09-3 -x c out.c 1. parser at end of file scan-build: 0 bugs found. scan-build: The analyzer encountered problems on some source files. scan-build: Preprocessed versions of these sources were deposited in '/var/folders/c2/j2pf8rdj4w1dr624t90z2q700000gn/T/scan-build-2011-08-09-3/failures'. scan-build: Please consider submitting a bug report using these files: scan-build: http://clang.llvm.org/StaticAnalysisUsage.html#filingbugs -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 08:01:48 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 08:01:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 10617] New: C backend emits incorrect declarations/definitions of global arrays Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10617 Summary: C backend emits incorrect declarations/definitions of global arrays Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu (This works in 2.9, but is broken in top-of-tree.) % echo "float foo[4];" | clang -x c++ -c - -emit-llvm -o - | llc -march=c -o - | clang -c -x c - -o /dev/null :112:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern foo { float array[4]; }; ~~~~~~ ^ :112:11: error: expected ';' after top level declarator extern foo { float array[4]; }; ^ ; :122:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern foo { float array[4]; }; ~~~~~~ ^ :122:11: error: expected ';' after top level declarator extern foo { float array[4]; }; ^ ; :126:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] foo { float array[4]; }; ^~~ :126:4: error: expected ';' after top level declarator foo { float array[4]; }; ^ ; 3 warnings and 3 errors 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 Tue Aug 9 11:45:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 11:45:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 10618] New: "addition of default argument makes this a special member" warning slightly incorrect with multiple default arguments Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10618 Summary: "addition of default argument makes this a special member" warning slightly incorrect with multiple default arguments Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: richard-llvm at metafoo.co.uk CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com In the following case, we get a warning for all three default arguments, whereas we should only be warned about 'a' (the others don't make S::S a special member function): struct S { S(int, int, int); }; S::S(int a = 0, int b = 0, int c = 0) {} In the following case, we get a warning for both arguments (correctly) but the warning for the second default argument incorrectly claims that it makes S::S a default constructor (it actually makes it a copy constructor): struct S { S(const S&, int); S(int); }; S::S(const S& = S(0), int = 0) {} => We should only produce a warning on the default argument which makes the member special (for default constructors, the default argument for the first parameter, and for everything else, the default argument for the second parameter). And we should make sure we correctly handle the case where both happen in the same definition. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 12:20:37 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 12:20:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 10619] New: Clang & LLVM trunk: SPARC Solaris 10 u9 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10619 Summary: Clang & LLVM trunk: SPARC Solaris 10 u9 Product: clang Version: trunk Platform: Sun OS/Version: Solaris Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: javpicorel at gmail.com CC: llvmbugs at cs.uiuc.edu LLVM: trunk Clang: trunk Platform: Sparc OS: Solaris 10 u9 ######################################################################## Whatever I compile (simple c program): # llvm-trunk/obj/Release+Asserts/bin/clang test.c -o test clang: warning: unknown platform, assuming -mfloat-abi=soft Stack dump: 0. Program arguments: /export/home/picorel/llvm-trunk/obj/Release+Asserts/bin/clang -cc1 -triple sparc-sun-solaris2.10 -S -disable-free -main-file-name prueba.c -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -msoft-float -target-feature +soft-float -target-linker-version 2.21 -momit-leaf-frame-pointer -resource-dir /export/home/picorel/llvm-trunk/obj/Release+Asserts/bin/../lib/clang/3.0 -ferror-limit 19 -fmessage-length 168 -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-z9aqUt.s -x c prueba.c 1. /usr/include/stdio_impl.h:42:26: current parser token ';' 2. /usr/include/stdio_impl.h:29:1: parsing struct/union body '__FILE' clang: error: unable to execute command: Bus Error (core dumped) [err_drv_command_failure] clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) [err_drv_command_signalled] clang: note: diagnostic msg: Please submit a bug report to http://llvm.org and include command line arguments and all diagnostic information. clang: warning: unknown platform, assuming -mfloat-abi=soft [warn_drv_assuming_mfloat_abi_is] Stack dump: 0. Program arguments: llvm-trunk/obj/Release+Asserts/bin/clang prueba.c -o prueba Bus Error (core dumped) ############################################################ If I want to emit code for llvm: # llvm-trunk/obj/Release+Asserts/bin/clang test.c -o test -emit-llvm clang: warning: unknown platform, assuming -mfloat-abi=soft clang: error: 'sparc-sun-solaris2.10': unable to pass LLVM bit-code files to linker ############################################################# Any help?. Thanks. Regards -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 13:32:36 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 13:32:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 10081] c backend emits multiple definitions of global variables In-Reply-To: References: Message-ID: <20110809183236.2692E2A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10081 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Bill Wendling 2011-08-09 13:32:35 CDT --- Fixed r137134. 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 Aug 9 14:02:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 14:02:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 10620] New: Assertion failure while visiting goto statement in CFG builder Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10620 Summary: Assertion failure while visiting goto statement in CFG builder Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: matthewbg at google.com CC: llvmbugs at cs.uiuc.edu struct S { ~S() {} }; void g(const S& s) { if (true) goto done; const S s2(s); done: ; } When compiling with -Wuninitialized (or any analysis-based warning): #2 0x00007ffff6eb7941 in __assert_fail ( assertion=0x331f02e "F != const_iterator() && \"L iterator is not reachable from F iterator.\"", file=, line=195, function=0x331f076 "int ::LocalScope::const_iterator::distance(LocalScope::const_iterator)") at assert.c:81 #3 0x0000000002ccb3f1 in (anonymous namespace)::LocalScope::const_iterator::distance((anonymous namespace)::LocalScope::const_iterator) () #4 0x0000000002ccb259 in (anonymous namespace)::CFGBuilder::insertAutomaticObjDtors(clang::CFGBlock*, std::reverse_iterator, (anonymous namespace)::LocalScope::const_iterator, (anonymous namespace)::LocalScope::const_iterator, clang::Stmt*) () #5 0x0000000002cd2fda in (anonymous namespace)::CFGBuilder::appendAutomaticObjDtors(clang::CFGBlock*, (anonymous namespace)::LocalScope::const_iterator, (anonymous namespace)::LocalScope::const_iterator, clang::Stmt*) () #6 0x0000000002cd25e9 in (anonymous namespace)::CFGBuilder::addAutomaticObjDtors((anonymous namespace)::LocalScope::const_iterator, (anonymous namespace)::LocalScope::const_iterator, clang::Stmt*) () #7 0x0000000002cd0042 in (anonymous namespace)::CFGBuilder::VisitGotoStmt(clang::GotoStmt*) () -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 14:16:51 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 14:16:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 9152] File takes 1 minute to compile much longer than with gcc or other similar files with llvm In-Reply-To: References: Message-ID: <20110809191651.BDAC22A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9152 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #8 from Eli Friedman 2011-08-09 14:16:51 CDT --- Yes, this can be closed. We're much faster now, and there aren't any hotspots in -ftime-report. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 15:09:16 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 15:09:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 10081] c backend emits multiple definitions of global variables In-Reply-To: References: Message-ID: <20110809200916.80AE12A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10081 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |INVALID --- Comment #4 from Bill Wendling 2011-08-09 15:09:16 CDT --- Doh! The fix wasn't correct. As Eli pointed out, this won't compile with it: static void *x; static void *y = &x; static void *x = &y; void *z = x; The real solution is to compile the program as a C program and not as a C++ program. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 16:22:04 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 16:22:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 10621] New: Static analyzer false positive with IORegistryEntrySearchCFProperty() Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10621 Summary: Static analyzer false positive with IORegistryEntrySearchCFProperty() Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: sean at rogue-research.com CC: llvmbugs at cs.uiuc.edu The static analyzer reports "Incorrect decrement of the reference count of an object that is not owned at this point by the caller" for the snippet below: ------ #import #import int main (void) { CFArrayRef arrayRef = IORegistryEntrySearchCFProperty(0, kIOServicePlane, CFSTR("IOConsoleUsers"), NULL, kIORegistryIterateRecursively); if (arrayRef != NULL) { CFRelease(arrayRef); } return 0; } ------ But the docs for IORegistryEntrySearchCFProperty() say: "Return Value - A CF container is created and returned the caller on success. The caller should release with CFRelease". The API doesn't have Create or Copy in it's name, which I guess is also a bug, and perhaps the root cause of this 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 Tue Aug 9 16:22:11 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 16:22:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 10622] New: invalid defaulted copy constructor if a member is const Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10622 Summary: invalid defaulted copy constructor if a member is const Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Sorry if this is one of the "know to be missing" items, but there seems to be quiet a bit of support for "= default" already. Clang complains when compiling struct foo { const int first; constexpr foo(const foo&) = default; }; void find_or_insert(const foo& __obj) { foo x(__obj); } the error is path_service.ii:3:13: error: constructor for 'foo' must explicitly initialize the const member 'first' constexpr foo(const foo&) = default; ^ path_service.ii:2:13: note: declared here const int first; ^ path_service.ii:6:7: note: implicit default copy constructor for 'foo' first required here foo x(__obj); ^ -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 16:56:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 16:56:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 10623] New: clang should support -Wlarger-than-num warning, like gcc Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10623 Summary: clang should support -Wlarger-than-num warning, like gcc Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sean at rogue-research.com CC: llvmbugs at cs.uiuc.edu Consider the following C99: int main (void) { int foo[300000]; return 0; } compiled with gcc: builder7:~ builder$ gcc -Wlarger-than-300 /Users/builder/Desktop/test.c /Users/builder/Desktop/test.c: In function ?main?: /Users/builder/Desktop/test.c:3: warning: size of ?foo? is 1200000 bytes compiled with clang there is no warning at all. Previously, clang warned that the warning flaw was unknown, making swapping gcc and clang usage with the same warning flags a PITA. rdar://6970318 requested that clang support or ignore the flag. In Options.td, I see the flag is now silently ignored. Better. But I'd like to see this warning supported. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 17:19:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 17:19:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 10554] [AVX] another 'unknown type for unpckh' crash In-Reply-To: References: Message-ID: <20110809221929.EB5B12A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10554 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-08-09 17:19:29 CDT --- Fixed in r137161! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 17:26:07 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 17:26:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 10557] [AVX] cannot select v4f64 = fp_extend error In-Reply-To: References: Message-ID: <20110809222607.9E15E2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10557 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-08-09 17:26:07 CDT --- This was fixed in r137105! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 17:40:13 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 17:40:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 10561] [AVX] cannot select ch = store error In-Reply-To: References: Message-ID: <20110809224013.A2E5D2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10561 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-08-09 17:40:13 CDT --- Fixed in r137166 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 17:48:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 17:48:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 10624] New: llvm-objdump crashes when given bogus file Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10624 Summary: llvm-objdump crashes when given bogus file Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7041) --> (http://llvm.org/bugs/attachment.cgi?id=7041) one byte test case If one inadvertently gives llvm-objdump a file with raw instructions (i.e. not an object file after all), like the attached, one sees this crash. (Not a high priority bug, but filing it in any case.) % llvm-objdump xx.o -disassemble 0 llvm-objdump 0x000000010092e982 1 llvm-objdump 0x000000010092ef89 2 libsystem_c.dylib 0x00007fff86a09cfa _sigtramp + 26 3 libsystem_c.dylib 0x00007fff603f9120 _sigtramp + 18446744073065657408 4 llvm-objdump 0x00000001007c7140 5 llvm-objdump 0x00000001007c49e4 Stack dump: 0. Program arguments: llvm-objdump xx.o -disassemble [1] 38577 segmentation fault llvm-objdump xx.o -disassemble % od -x xx.o 0000000 00c3 0000001 % -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 18:00:39 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 18:00:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 10625] New: [AVX] llvm-objdump incorrectly prints vmovmskps as movmskps Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10625 Summary: [AVX] llvm-objdump incorrectly prints vmovmskps as movmskps Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7042) --> (http://llvm.org/bugs/attachment.cgi?id=7042) bitcode file Given the attached object file (which corresponds to the attached LLVM assembly file run through llc -mattr=+avx x.ll -filetype=obj -o x.o), when the object file is run through llvm-objdump, the following output is printed: % llvm-objdump x.o -disassemble x.o: file format Mach-O 64-bit x86-64 Disassembly of section __TEXT,__text: _foo: 0: c5 fc 50 c0 movmskps %xmm0, %eax 4: c3 ret % I believe that should be a 'vmovmskps', with %ymm0, not %xmm0. (Note that as far as I can tell, the object file generated by llc has the proper encoding for a vmovmskps instruction, so the issue doesn't seem to be that it's being mis-encoded.) -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 18:27:02 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 18:27:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 10626] New: [AVX] encoding issue with vmaskmovps? Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10626 Summary: [AVX] encoding issue with vmaskmovps? Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7044) --> (http://llvm.org/bugs/attachment.cgi?id=7044) reproduction case (The context is that I'm starting to dig into some crashes when running AVX code. I'm still learning how to decipher the AVX instruction encoding, so forgive me if there is an error in this bug report.) Given the attached LLVM assembly file, running llc x.ll -mattr=+avx -o - gives the following text output, which looks right: .section __TEXT,__text,regular,pure_instructions .globl "_f_f___REFUf[]REFUf[]" .align 4, 0x90 "_f_f___REFUf[]REFUf[]": ## @"f_f___REFUf[]REFUf[]" ## BB#0: ## %allocas vmovmskps %ymm0, %eax cmpl $255, %eax jne LBB0_2 ## BB#1: ## %cif_test_all vpcmpeqd %xmm0, %xmm0, %xmm0 vinsertf128 $1, %xmm0, %ymm0, %ymm0 vmovaps %ymm0, (%rdi) ret LBB0_2: ## %cif_mixed_test_all vmaskmovps (%rsi), %ymm0, %ymm1 vaddps %ymm1, %ymm1, %ymm1 vmaskmovps %ymm1, %ymm0, (%rdi) ret However, if I run llc x.ll -mattr=+avx -filetype=obj -o x.o, I run into two problems. First, if I run llvm-objdump on the output, I get a crash: % llvm-objdump -disassemble x.o Unknown Object File Type UNREACHABLE executed at ObjectFile.cpp:62! 0 llvm-objdump 0x0000000100aae292 1 llvm-objdump 0x0000000100aaf0e3 2 libsystem_c.dylib 0x00007fff86a09cfa _sigtramp + 26 3 libsystem_c.dylib 0x00007fff5fbff240 _sigtramp + 18446744073057293664 4 llvm-objdump 0x0000000100aae6b6 5 llvm-objdump 0x0000000100a9aefd 6 llvm-objdump 0x000000010001cf18 7 llvm-objdump 0x0000000100017556 8 llvm-objdump 0x000000010001713b 9 llvm-objdump 0x0000000100016d24 10 llvm-objdump 0x0000000000000003 Stack dump: 0. Program arguments: llvm-objdump -disassemble x.o [1] 39093 illegal hardware instruction llvm-objdump -disassemble x.o If I run the nasm disassembler on the object file, skipping over the ELF headers, I get the following. Note that the vmaskmovps has a strange value for the last parameter, and then the vaddps instruction has been sucked up, presumably because of a misencoding of vmaskmovps. (Note that it's possible that this is a bug in the nasm disassembler, but the llvm-objdump crash maskes me suspicious.) % ndisasm -e 288 x.o 00000000 C5FC50C0 vmovmskps eax,ymm0 00000004 3DFF00 cmp ax,0xff 00000007 0000 add [bx+si],al 00000009 750F jnz 0x1a 0000000B C5F976C0 vpcmpeqd xmm0,xmm0,xmm0 0000000F C4E37D18C001 vinsertf128 ymm0,ymm0,xmm0,byte 0x1 00000015 C5FC2907 vmovaps yword [bx],ymm0 00000019 C3 ret 0000001A C4E27D2C0EC5F4 vmaskmovps ymm1,ymm0,yword [0xf4c5] 00000021 58 pop ax 00000022 C9 leave 00000023 C4E27D2E0F vmaskmovps yword [bx],xmm0,xmm1 00000028 C3 ret -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 18:27:42 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 18:27:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 10556] [AVX] cannot select v4i64 = select error In-Reply-To: References: Message-ID: <20110809232742.595562A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10556 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-08-09 18:27:42 CDT --- Fixed in r137179! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 18:58:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 18:58:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 10627] New: [AVX] cannot select v4i64 = vector_shuffle crash Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10627 Summary: [AVX] cannot select v4i64 = vector_shuffle crash Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu WIth the attached, if I run llc -mattr=+avx with top-of-tree, I'm getting: LLVM ERROR: Cannot select: 0x7fb011035010: v4i64 = vector_shuffle 0x7fb011038c10, 0x7fb011032610<2,3,u,u> [ID=37] 0x7fb011038c10: v4i64 = insert_subvector 0x7fb011038a10, 0x7fb011039410, 0x7fb011038b10 [ID=36] 0x7fb011038a10: v4i64 = insert_subvector 0x7fb011032610, 0x7fb011039010, 0x7fb011031810 [ID=35] 0x7fb011032610: v4i64 = undef [ID=7] 0x7fb011039010: v2i64 = X86ISD::PUNPCKLQDQ 0x7fb011038d10, 0x7fb011038e10 [ID=33] 0x7fb011038d10: v2i64 = scalar_to_vector 0x7fb011031b10 [ID=29] 0x7fb011031b10: i64,ch = load 0x7fb011036910, 0x7fb011036810, 0x7fb011034710 [ID=25] 0x7fb011036810: i64 = FrameIndex<0> [ID=8] 0x7fb011034710: i64 = undef [ID=6] 0x7fb011038e10: v2i64 = scalar_to_vector 0x7fb011034510 [ID=30] 0x7fb011034510: i64,ch = load 0x7fb011036910, 0x7fb011031a10, 0x7fb011034710 [ID=26] 0x7fb011031a10: i64 = or 0x7fb011036810, 0x7fb011035110 [ID=22] 0x7fb011036810: i64 = FrameIndex<0> [ID=8] 0x7fb011035110: i64 = Constant<4> [ID=11] 0x7fb011034710: i64 = undef [ID=6] 0x7fb011031810: i32 = Constant<0> [ORD=1] [ID=1] 0x7fb011039410: v2i64 = X86ISD::PUNPCKLQDQ 0x7fb011039110, 0x7fb011039210 [ID=34] 0x7fb011039110: v2i64 = scalar_to_vector 0x7fb011034f10 [ID=31] 0x7fb011034f10: i64,ch = load 0x7fb011036910, 0x7fb011037610, 0x7fb011034710 [ID=27] 0x7fb011037610: i64 = or 0x7fb011036810, 0x7fb011032110 [ID=21] 0x7fb011036810: i64 = FrameIndex<0> [ID=8] 0x7fb011032110: i64 = Constant<8> [ID=10] 0x7fb011034710: i64 = undef [ID=6] 0x7fb011039210: v2i64 = scalar_to_vector 0x7fb011034b10 [ID=32] 0x7fb011034b10: i64,ch = load 0x7fb011036910, 0x7fb011035210, 0x7fb011034710 [ID=28] 0x7fb011035210: i64 = or 0x7fb011036810, 0x7fb011036a10 [ID=20] 0x7fb011036810: i64 = FrameIndex<0> [ID=8] 0x7fb011036a10: i64 = Constant<12> [ID=9] 0x7fb011034710: i64 = undef [ID=6] 0x7fb011038b10: i32 = Constant<2> [ID=12] 0x7fb011032610: v4i64 = undef [ID=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 Tue Aug 9 18:58:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 18:58:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 10628] New: clang fails test 20071210-1.c with -O2 and -O3 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10628 Summary: clang fails test 20071210-1.c with -O2 and -O3 Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ahatanak at gmail.com CC: llvmbugs at cs.uiuc.edu Execution fails (aborts) when the attached program is compiled with -O2 or -O3. Upon inspection of the produced bitcode, I found the expression in line 62 of the source program evaluates to false, and as a result, abort() is called unconditionally. $ clang gcc-4.4.6/gcc/testsuite/gcc.c-torture/execute/20071210-1.c -O2 -emit-llvm -S -o - define i32 @main() nounwind uwtable { entry: %t = alloca [2 x i8*], align 16 %s = alloca [6 x i32], align 16 %call = call i8** @bar(i8** null, i32* null) %arrayinit.begin = getelementptr inbounds [2 x i8*]* %t, i64 0, i64 0 %arrayidx = getelementptr inbounds i8** %call, i64 2 %tmp1 = load i8** %arrayidx, align 8, !tbaa !0 store i8* %tmp1, i8** %arrayinit.begin, align 16, !tbaa !0 %arrayinit.element = getelementptr inbounds [2 x i8*]* %t, i64 0, i64 1 %arrayidx3 = getelementptr inbounds i8** %call, i64 4 %tmp4 = load i8** %arrayidx3, align 8, !tbaa !0 store i8* %tmp4, i8** %arrayinit.element, align 8, !tbaa !0 %tmp6 = bitcast [6 x i32]* %s to i8* call void @llvm.memcpy.p0i8.p0i8.i64(i8* %tmp6, i8* bitcast ([6 x i32]* @main.s to i8*), i64 24, i32 16, i1 false) %arrayidx7 = getelementptr inbounds [6 x i32]* %s, i64 0, i64 1 %call8 = call i8** @bar(i8** %arrayinit.begin, i32* %arrayidx7) call void @abort() noreturn nounwind unreachable } $ clang gcc-4.4.6/gcc/testsuite/gcc.c-torture/execute/20071210-1.c -O1 -emit-llvm -S -o - define i32 @main() nounwind uwtable { entry: %t = alloca [2 x i8*], align 16 %s = alloca [6 x i32], align 16 %call = call i8** @bar(i8** null, i32* null) %arrayinit.begin = getelementptr inbounds [2 x i8*]* %t, i64 0, i64 0 %arrayidx = getelementptr inbounds i8** %call, i64 2 %tmp1 = load i8** %arrayidx, align 8, !tbaa !0 store i8* %tmp1, i8** %arrayinit.begin, align 16, !tbaa !0 %arrayinit.element = getelementptr inbounds [2 x i8*]* %t, i64 0, i64 1 %arrayidx3 = getelementptr inbounds i8** %call, i64 4 %tmp4 = load i8** %arrayidx3, align 8, !tbaa !0 store i8* %tmp4, i8** %arrayinit.element, align 8, !tbaa !0 %tmp6 = bitcast [6 x i32]* %s to i8* call void @llvm.memcpy.p0i8.p0i8.i64(i8* %tmp6, i8* bitcast ([6 x i32]* @main.s to i8*), i64 24, i32 16, i1 false) %arrayidx7 = getelementptr inbounds [6 x i32]* %s, i64 0, i64 1 %call8 = call i8** @bar(i8** %arrayinit.begin, i32* %arrayidx7) %cmp = icmp eq i8** %call8, null br i1 %cmp, label %lor.lhs.false, label %if.then -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 19:16:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 19:16:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 10629] New: lit.py fails when running all tests on Win7 x64 with Visual Studio 2008 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10629 Summary: lit.py fails when running all tests on Win7 x64 with Visual Studio 2008 Product: clang Version: trunk Platform: PC OS/Version: other Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: johnw at boostpro.com CC: llvmbugs at cs.uiuc.edu Here at BoostPro we run several automated tests of Clang, using OS X and Windows 7, with both Visual Studio 2008 and 2010. Lately we've seen a lot of failures that we are unable to reproduce either in the debugger, by running clang.exe, or by running lit.py directly for the given test. It only fails if we run the full suite. At the end of the message is an example of such a failure. This exact same stack occurs for 0-5 different tests, with that number fluctuating on a daily basis (though usually from the same candidate set). What's *very* odd about all this is that if I manually set a specific PATH in TestRunner.py, I can then get the test to fail when running lit.py for that specific test. Here is what I insert, at line 163, just before the call to "procs.append(subprocess.Popen": > import string > > cfg.environment['PATH'] = \ > string.join([ > 'c:\\src\\llvm\\test\\scripts' > , 'c:\\build\\llvm\\bin\\debug' > , 'c:\\src\\llvm\\test\\scripts' > , 'c:\\gnuwin32\\bin' > , '' > , 'c:\\windows\\system32' > , 'c:\\windows' > , 'c:\\windows\\system32\\wbem' > , 'c:\\windows\\system32\\windowspowershell\\v1.0\\' > , 'c:\\program files (x86)\\microsoft sql server\\90\\tools\\binn\\' > , 'c:\\program files (x86)\\cmake 2.8\\bin' > , 'c:\\program files (x86)\\git\\cmd' > , 'c:\\gnuwin32\\bin' > , 'c:\\program files (x86)\\git\\bin' > , 'c:\\python27' > > , 'c:\\program files (x86)\\microsoft visual studio 9.0\\vc\\bin' > , 'c:\\program files\\microsoft sdks\\windows\\v6.0a\\\\bin' > , 'c:\\program files (x86)\\microsoft visual studio 9.0\\common7\\tools\\bin' > , 'c:\\program files (x86)\\microsoft visual studio 9.0\\common7\\tools' > , 'c:\\program files (x86)\\microsoft visual studio 9.0\\common7\\ide' > , 'c:\\program files (x86)\\html help workshop' > , 'c:\\program files\\microsoft sdks\\windows\\v6.0a\\bin' > , 'c:\\windows\\microsoft.net\\framework\\v2.0.50727' > , 'c:\\program files (x86)\\microsoft visual studio 9.0\\' > , 'c:\\windows\\syswow64' > ], ';') With this PATH, the test always fails and produces the same stack trace. If I remove *any* of these paths, or reduce the length of any of them by _even one character_, the test passes. If blank out the PATH, the test passes. But if I add _any_ characters to any of the pathnames, it still fails. > ******************** > FAIL: Clang :: CodeGenObjC/blocks-5.m (1599 of 3747) > ******************** TEST 'Clang :: CodeGenObjC/blocks-5.m' FAILED ******************** > Script: > -- > C:/build/llvm/bin/Debug/clang.EXE -cc1 -triple x86_64-apple-darwin9 -emit-llvm -fblocks -o C:\build\llvm\tools\clang\test\CodeGenObjC\Output\blocks-5.m.tmp c:\src\llvm\tools\clang\test\CodeGenObjC\blocks-5.m > -- > Exit Code: -3 > Command Output (stdout): > -- > Command 0: "C:/build/llvm/bin/Debug/clang.EXE" "-cc1" "-triple" "x86_64-apple-darwin9" "-emit-llvm" "-fblocks" "-o" "C:\build\llvm\tools\clang\test\CodeGenObjC\Output\blocks-5.m.tmp" "c:\src\llvm\tools\clang\test\CodeGenObjC\blocks-5.m" > Command 0 Result: -3 > Command 0 Output: > Command 0 Stderr: > Stack dump: > 0. Program arguments: C:/build/llvm/bin/Debug/clang.EXE -cc1 -triple x86_64-apple-darwin9 -emit-llvm -fblocks -o C:\build\llvm\tools\clang\test\CodeGenObjC\Output\blocks-5.m.tmp c:\src\llvm\tools\clang\test\CodeGenObjC\blocks-5.m > 1. c:\src\llvm\tools\clang\test\CodeGenObjC\blocks-5.m:35:1: current parser token '-' > 2. c:\src\llvm\tools\clang\test\CodeGenObjC\blocks-5.m:18:1: LLVM IR generation of declaration 'IDEWorkspaceDocument::stateSavingDefaultEditorStatesForURLs' > 3. c:\src\llvm\tools\clang\test\CodeGenObjC\blocks-5.m:18:47: LLVM IR generation of compound statement ('{}') > 4. c:\src\llvm\tools\clang\test\CodeGenObjC\blocks-5.m:19:122: LLVM IR generation of compound statement ('{}') > 01F5676E (0x0028EA48 0x00D3CA3C 0xCCCCCCCC 0x0028E9F4), llvm::PHINode::getBasicBlockIndex()+0078 bytes(s), c:\src\llvm\include\llvm\instructions.h, line 1998+0011 byte(s) > 025BBB0C (0x0028E9F0 0x00D3CB50 0x0028EA48 0x002A0B24), llvm::BasicBlock::replaceSuccessorsPhiUsesWith()+0156 bytes(s), c:\src\llvm\lib\vmcore\basicblock.cpp, line 342+0012 byte(s) > 02518A46 (0x0028E9F0 0x002A0B8C 0x002A0B8C 0x00D3CF6C), llvm::Value::replaceAllUsesWith()+0406 bytes(s), c:\src\llvm\lib\vmcore\value.cpp, line 309 > 028E8579 (0x0028EA48 0x00D3CAE8 0xCCCCCCCC 0x0028E9F0), clang::CodeGen::CodeGenFunction::SimplifyForwardingBlocks()+0121 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgstmt.cpp, line 248 > 028E92E6 (0x0027B228 0x00D3CB50 0x00000009 0xCCCCCCCC), clang::CodeGen::CodeGenFunction::EmitDoStmt()+0406 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgstmt.cpp, line 550 > 028E7E8C (0x0027B228 0x00D3CE64 0xCCCCCCCC 0xCCCCCCCC), clang::CodeGen::CodeGenFunction::EmitStmt()+0572 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgstmt.cpp, line 128+0021 byte(s) > 028E838A (0x00D3CB0C 0x0027B380 0x00000000 0x00000000), clang::CodeGen::CodeGenFunction::EmitCompoundStmt()+0202 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgstmt.cpp, line 205+0014 byte(s) > 028E8163 (0x0027B380 0x00D3CB50 0xCCCCCCCC 0xCCCCCCCC), clang::CodeGen::CodeGenFunction::EmitSimpleStmt()+0147 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgstmt.cpp, line 173+0057 byte(s) > 028E7CA4 (0x0027B380 0x00D3D3E4 0x00D3CE7C 0x0027AE18), clang::CodeGen::CodeGenFunction::EmitStmt()+0084 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgstmt.cpp, line 48+0012 byte(s) > 0292DA9C (0x0027ACA0 0x00D3D378 0x0027ACA0 0x00D3DCD4), clang::CodeGen::CodeGenFunction::GenerateBlockFunction()+1788 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgblocks.cpp, line 996 > 0292AB70 (0x0027B3C8 0x00D3D444 0x00D3D424 0x02926FEC), clang::CodeGen::CodeGenFunction::EmitBlockLiteral()+0176 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgblocks.cpp, line 495+0053 byte(s) > 0292421C (0x0027B3C8 0x0025F330 0xCCCCCCCC 0xCCCCCCCC), `anonymous namespace'::ScalarExprEmitter::VisitBlockExpr()+0028 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgexprscalar.cpp, line 2612 > 02926FEC (0x0027B3C8 0x00D3D444 0x00D3D460 0x02924A79), clang::StmtVisitorBase::Visit()+1468 bytes(s), c:\src\llvm\tools\clang\include\clang\ast\stmtvisitor.h, line 163+0012 byte(s) > 0292558A (0x0027B3C8 0x0025F330 0x00D3DB28 0x00D3DB54), `anonymous namespace'::ScalarExprEmitter::Visit()+0026 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgexprscalar.cpp, line 153 > 02924A79 (0x0027B3C8 0x00000000 0xCCCCCCCC 0xCCCCCCCC), clang::CodeGen::CodeGenFunction::EmitScalarExpr()+0169 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgexprscalar.cpp, line 2735+0028 byte(s) > 028F461C (0x00D3D504 0x0027B3C8 0x00000000 0x00000000), clang::CodeGen::CodeGenFunction::EmitAnyExpr()+0076 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgexpr.cpp, line 111+0017 byte(s) > 028F479B (0x00D3D504 0x0027B3C8 0x0025F350 0x00000000), clang::CodeGen::CodeGenFunction::EmitAnyExprToTemp()+0203 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgexpr.cpp, line 127+0040 byte(s) > 02896822 (0x00D3D6A4 0x0027B3C8 0x0025F350 0x00D3D820), clang::CodeGen::CodeGenFunction::EmitCallArg()+0546 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgcall.cpp, line 1442+0022 byte(s) > 028DE4E7 (0x00D3D6A4 0x0025F3A0 0x0027B408 0x0027B40C), clang::CodeGen::CodeGenFunction::EmitCallArgs()+0519 bytes(s), c:\src\llvm\tools\clang\lib\codegen\codegenfunction.h, line 2412 > 028D5ABC (0x00D3D834 0x0027B3E4 0x00000000 0xCCCCCCCC), clang::CodeGen::CodeGenFunction::EmitObjCMessageExpr()+0844 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgobjc.cpp, line 218 > 0292819C (0x0027B3E4 0x00D3DA48 0xCCCCCCCC 0xCCCCCCCC), `anonymous namespace'::ScalarExprEmitter::VisitObjCMessageExpr()+0124 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgexprscalar.cpp, line 257+0029 byte(s) > 029273B5 (0x0027B3E4 0x00D3D898 0x00D3D8B4 0x02924A79), clang::StmtVisitorBase::Visit()+2437 bytes(s), c:\src\llvm\tools\clang\include\clang\ast\stmtvisitor.h, line 533+0012 byte(s) > 0292558A (0x0027B3E4 0x00D3DA48 0x00D3DB28 0x00D3DB54), `anonymous namespace'::ScalarExprEmitter::Visit()+0026 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgexprscalar.cpp, line 153 > 02924A79 (0x0027B3E4 0x00000001 0xCCCCCCCC 0xCCCCCCCC), clang::CodeGen::CodeGenFunction::EmitScalarExpr()+0169 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgexprscalar.cpp, line 2735+0028 byte(s) > 028F461C (0x00D3D91C 0x0027B3E4 0x00000000 0x00000000), clang::CodeGen::CodeGenFunction::EmitAnyExpr()+0076 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgexpr.cpp, line 111+0017 byte(s) > 028F45AA (0x0027B3E4 0x00D3DA48 0x0000004F 0xCCCCCCCC), clang::CodeGen::CodeGenFunction::EmitIgnoredExpr()+0090 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgexpr.cpp, line 98+0048 byte(s) > 028E7DBF (0x0027B3E4 0x00D3DE68 0xCCCCCCCC 0xCCCCCCCC), clang::CodeGen::CodeGenFunction::EmitStmt()+0367 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgstmt.cpp, line 101 > 028E838A (0x00D3DA04 0x0027B410 0x00000000 0x00000000), clang::CodeGen::CodeGenFunction::EmitCompoundStmt()+0202 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgstmt.cpp, line 205+0014 byte(s) > 028E8163 (0x0027B410 0x00D3DA48 0xCCCCCCCC 0xCCCCCCCC), clang::CodeGen::CodeGenFunction::EmitSimpleStmt()+0147 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgstmt.cpp, line 173+0057 byte(s) > 028E7CA4 (0x0027B410 0x00D3DA64 0xCCCCCCCC 0x000001AE), clang::CodeGen::CodeGenFunction::EmitStmt()+0084 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgstmt.cpp, line 48+0012 byte(s) > 028D68B2 (0x0027ACA0 0x00D3DEC0 0x00D3DE8C 0x0000000E), clang::CodeGen::CodeGenFunction::GenerateObjCMethod()+0098 bytes(s), c:\src\llvm\tools\clang\lib\codegen\cgobjc.cpp, line 376 > 0281784F (0x0027ACA0 0x00D3DE8C 0x00D3DE88 0x00261890), clang::CodeGen::CodeGenModule::EmitTopLevelDecl()+0831 bytes(s), c:\src\llvm\tools\clang\lib\codegen\codegenmodule.cpp, line 2256+0026 byte(s) > 0280E052 (0x0027ACA0 0x00D3DF44 0x00D3DECC 0x00261890), `anonymous namespace'::CodeGeneratorImpl::HandleTopLevelDecl()+0098 bytes(s), c:\src\llvm\tools\clang\lib\codegen\modulebuilder.cpp, line 65+0027 byte(s) > 0280CC92 (0x0027ACA0 0x00D3E070 0x00D3DF50 0x0028DD18), clang::BackendConsumer::HandleTopLevelDecl()+0130 bytes(s), c:\src\llvm\tools\clang\lib\codegen\codegenaction.cpp, line 117+0033 byte(s) > 014815DB (0x0028CE08 0x00000000 0x00D3E078 0x00000000), clang::ParseAST()+0347 bytes(s), c:\src\llvm\tools\clang\lib\parse\parseast.cpp, line 89+0030 byte(s) > 013DE8B9 (0x00D3E0AC 0x00D3E078 0xCCCCCCCC 0xCCCCCCCC), clang::ASTFrontendAction::ExecuteAction()+0233 bytes(s), c:\src\llvm\tools\clang\lib\frontend\frontendaction.cpp, line 403+0031 byte(s) > 0280C677 (0x00D3E108 0x00D3E0B4 0xCCCCCCCC 0xCCCCCCCC), clang::CodeGenAction::ExecuteAction()+0679 bytes(s), c:\src\llvm\tools\clang\lib\codegen\codegenaction.cpp, line 379 > 013DE573 (0x00D3E1A0 0x00D3E1AC 0xCCCCCCCC 0xCCCCCCCC), clang::FrontendAction::Execute()+0243 bytes(s), c:\src\llvm\tools\clang\lib\frontend\frontendaction.cpp, line 323+0015 byte(s) > 013B3501 (0x0036AE90 0x00D3EA64 0x00D3E1AC 0xCCCCCCCC), clang::CompilerInstance::ExecuteAction()+0657 bytes(s), c:\src\llvm\tools\clang\lib\frontend\compilerinstance.cpp, line 615 > 01435CFA (0x003682C0 0x00D3F8B4 0x00D3F470 0x00368D10), clang::ExecuteCompilerInvocation()+0746 bytes(s), c:\src\llvm\tools\clang\lib\frontendtool\executecompilerinvocation.cpp, line 171+0017 byte(s) > 01310735 (0x00D3F478 0x00D3F494 0x00368050 0x013015C8), cc1_main()+0933 bytes(s), c:\src\llvm\tools\clang\tools\driver\cc1_main.cpp, line 159+0014 byte(s) > 013033A3 (0x00000009 0x002407F8 0x00361960 0x88192541), main()+0339 bytes(s), c:\src\llvm\tools\clang\tools\driver\driver.cpp, line 354+0069 byte(s) > 026797F8 (0x00D3F918 0x76B0339A 0x7EFDE000 0x00D3F958), __tmainCRTStartup()+0424 bytes(s), f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c, line 586+0025 byte(s) > 0267963F (0x7EFDE000 0x00D3F958 0x778B9ED2 0x7EFDE000), mainCRTStartup()+0015 bytes(s), f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c, line 403 > 76B0339A (0x7EFDE000 0x77A090F7 0x00000000 0x00000000), BaseThreadInitThunk()+0018 bytes(s) > 778B9ED2 (0x02679630 0x7EFDE000 0x00000000 0x00000000), RtlInitializeExceptionChain()+0099 bytes(s) > 778B9EA5 (0x02679630 0x7EFDE000 0x00000000 0x00000000), RtlInitializeExceptionChain()+0054 bytes(s) > -- -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 19:51:20 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 19:51:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 10588] New llvm type system breaks types definitions in C backend In-Reply-To: References: Message-ID: <20110810005120.A03A42A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10588 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from Chris Lattner 2011-08-09 19:51:20 CDT --- *** This bug has been marked as a duplicate of bug 10617 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 20:28:14 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 20:28:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 2253] loop unroll crashes on example with -unroll-count=2 In-Reply-To: References: Message-ID: <20110810012814.E4E122A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=2253 Andrew Trick changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED CC| |atrick at apple.com Resolution| |FIXED --- Comment #19 from Andrew Trick 2011-08-09 20:28:13 CDT --- Yep, I'm not sure how this was ever working. Fixed in r137190. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 20:30:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 20:30:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 7318] [loop unroll] assertion failure after doing a simple loop unroll In-Reply-To: References: Message-ID: <20110810013050.76D732A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7318 Andrew Trick changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |atrick at apple.com Resolution| |FIXED --- Comment #8 from Andrew Trick 2011-08-09 20:30:49 CDT --- The patch did the right thing in this case, but didn't work in general. I rewrote enough of the unroller to get the llvm test-suite working with unroll-count=4. Fixed in r137190. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 20:54:38 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 20:54:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 10560] [AVX] assertion failed: ((EltVT.getSizeInBits() >= 64 || (uint64_t)((int64_t)Val >> EltVT.getSizeInBits()) + 1 < 2) && "getConstant with a uint64_t value that doesn't fit in the type!"), function getConstant, file SelectionDAG.cpp, line 916. In-Reply-To: References: Message-ID: <20110810015438.DFB8B2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10560 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-08-09 20:54:38 CDT --- Fixed in r137194 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 9 23:28:11 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 23:28:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 9847] mm_malloc.h generates an error In-Reply-To: References: Message-ID: <20110810042811.CF9A12A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9847 Kenta Yoshimura 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 Aug 9 23:35:01 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 9 Aug 2011 23:35:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 10534] LoopUnroll not keeping induction variable canonical in result loop In-Reply-To: References: Message-ID: <20110810043501.B17662A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10534 Andrew Trick changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #22 from Andrew Trick 2011-08-09 23:35:00 CDT --- Fixed in r137203. LoopUnroll now calls SimplifyIndvar to cleanup after itself. Note: The complete fix currently requires -disable-iv-rewrite. But that will be the default mode in a matter of weeks, and the test case requires a nondefault flag anyway. opt -O3 -S FlipBitRun.bc -unroll-count=4 -disable-iv-rewrite define void @FlipBitRun(i32* nocapture %bitmap, i32 %bit_addr, i32 %nbits) nounwind { entry: br label %while.body.3 while.end: ; preds = %while.body.3 ret void while.body.3: ; preds = %entry, %while.body.3 %nbits.addr.02 = phi i32 [ 128, %entry ], [ %dec.3, %while.body.3 ] %bit_addr.addr.01 = phi i32 [ 0, %entry ], [ %inc.3, %while.body.3 ] %shr = lshr i32 %bit_addr.addr.01, 5 %rem = and i32 %bit_addr.addr.01, 28 %shl = shl i32 1, %rem %arrayidx = getelementptr inbounds i32* %bitmap, i32 %shr %tmp6 = load i32* %arrayidx, align 4 %xor = xor i32 %tmp6, %shl %inc3 = and i32 %bit_addr.addr.01, 28 %rem.1 = or i32 %inc3, 1 %shl.1 = shl i32 1, %rem.1 %xor.1 = xor i32 %xor, %shl.1 %inc.14 = and i32 %bit_addr.addr.01, 28 %rem.2 = or i32 %inc.14, 2 %shl.2 = shl i32 1, %rem.2 %xor.2 = xor i32 %xor.1, %shl.2 %dec.3 = add i32 %nbits.addr.02, -4 %inc.25 = and i32 %bit_addr.addr.01, 28 %rem.3 = or i32 %inc.25, 3 %shl.3 = shl i32 1, %rem.3 %xor.3 = xor i32 %xor.2, %shl.3 store i32 %xor.3, i32* %arrayidx, align 4 %inc.3 = add i32 %bit_addr.addr.01, 4 %tobool.3 = icmp eq i32 %dec.3, 0 br i1 %tobool.3, label %while.end, label %while.body.3 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 10 03:29:55 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Aug 2011 03:29:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 10630] New: segfault with precompiled header Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10630 Summary: segfault with precompiled header Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: devlists at shadowlab.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7046) --> (http://llvm.org/bugs/attachment.cgi?id=7046) Test project I'm getting a segfault while trying to compile some code with a precompiled header. This error does not append when trying to compile the file directly, so I cannot attach a preprocessed version. I didn't managed to narrow down the problem as much as I would like, but I managed to get a way to reproduce it though. I'm working on a Mac OS X 10.6.8 / x86_64. To reproduce the error, you can try to compile the attached archive. Uncompress the archive and 'cd' to the uncompressed directory. Edit the compile.sh script to change clang path if needed. run the script. $tar -xzf crash.tgz $cd crash $./compile.sh clang version 3.0 (trunk 137207) Target: x86_64-apple-darwin10.8.0 Thread model: posix 0 clang 0x000000010102caf2 llvm::SmallVectorImpl::resize(unsigned int) + 1258 1 clang 0x000000010102d0f9 llvm::SmallVectorImpl::resize(unsigned int) + 2801 2 libSystem.B.dylib 0x00007fff83ed61ba _sigtramp + 26 3 clang 0x000000010024bac0 clang::Parser::LateParsedMethodDeclaration::~LateParsedMethodDeclaration() + 50018 4 clang 0x00000001000aa0e5 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 43487 5 clang 0x00000001000acc9d clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 54679 6 clang 0x00000001007c1571 clang::Redeclarable::setPreviousDeclaration(clang::FunctionDecl*) + 12169 7 clang 0x00000001007c14d9 clang::Redeclarable::setPreviousDeclaration(clang::FunctionDecl*) + 12017 8 clang 0x00000001007c167d clang::Redeclarable::setPreviousDeclaration(clang::FunctionDecl*) + 12437 9 clang 0x0000000100406ede llvm::APSInt::operator<=(llvm::APSInt const&) const + 24078 10 clang 0x0000000100409c27 llvm::APSInt::operator<=(llvm::APSInt const&) const + 35671 11 clang 0x000000010040a3d7 llvm::APSInt::operator<=(llvm::APSInt const&) const + 37639 12 clang 0x0000000100326672 clang::FunctionDecl::getCallResultType() const + 162998 13 clang 0x000000010024a2a2 clang::Parser::LateParsedMethodDeclaration::~LateParsedMethodDeclaration() + 43844 14 clang 0x0000000100252b14 clang::ParsedAttributes::addNew(clang::IdentifierInfo*, clang::SourceLocation, clang::IdentifierInfo*, clang::SourceLocation, clang::IdentifierInfo*, clang::SourceLocation, clang::AvailabilityChange const&, clang::AvailabilityChange const&, clang::AvailabilityChange const&, clang::SourceLocation, bool, bool) + 20246 15 clang 0x00000001002543b0 clang::ParsedAttributes::addNew(clang::IdentifierInfo*, clang::SourceLocation, clang::IdentifierInfo*, clang::SourceLocation, clang::IdentifierInfo*, clang::SourceLocation, clang::AvailabilityChange const&, clang::AvailabilityChange const&, clang::AvailabilityChange const&, clang::SourceLocation, bool, bool) + 26546 16 clang 0x00000001002558c8 clang::ParsedAttributes::addNew(clang::IdentifierInfo*, clang::SourceLocation, clang::IdentifierInfo*, clang::SourceLocation, clang::IdentifierInfo*, clang::SourceLocation, clang::AvailabilityChange const&, clang::AvailabilityChange const&, clang::AvailabilityChange const&, clang::SourceLocation, bool, bool) + 31946 17 clang 0x0000000100249f44 clang::Parser::LateParsedMethodDeclaration::~LateParsedMethodDeclaration() + 42982 18 clang 0x000000010027f7e5 clang::TemplateIdAnnotation::Allocate(unsigned int) + 20101 19 clang 0x000000010027fc24 clang::TemplateIdAnnotation::Allocate(unsigned int) + 21188 20 clang 0x00000001002805ef clang::TemplateIdAnnotation::Allocate(unsigned int) + 23695 21 clang 0x000000010025666a clang::ParsedAttributes::addNew(clang::IdentifierInfo*, clang::SourceLocation, clang::IdentifierInfo*, clang::SourceLocation, clang::IdentifierInfo*, clang::SourceLocation, clang::AvailabilityChange const&, clang::AvailabilityChange const&, clang::AvailabilityChange const&, clang::SourceLocation, bool, bool) + 35436 22 clang 0x000000010024e99c clang::ParsedAttributes::addNew(clang::IdentifierInfo*, clang::SourceLocation, clang::IdentifierInfo*, clang::SourceLocation, clang::IdentifierInfo*, clang::SourceLocation, clang::AvailabilityChange const&, clang::AvailabilityChange const&, clang::AvailabilityChange const&, clang::SourceLocation, bool, bool) + 3486 23 clang 0x000000010024d514 clang::Parser::LateParsedMethodDeclaration::~LateParsedMethodDeclaration() + 56758 24 clang 0x000000010028021e clang::TemplateIdAnnotation::Allocate(unsigned int) + 22718 25 clang 0x0000000100280992 clang::TemplateIdAnnotation::Allocate(unsigned int) + 24626 26 clang 0x000000010023d13d clang::MSP430InterruptAttr* clang::Decl::getAttr() const + 743 27 clang 0x000000010002ca21 llvm::DenseMap, llvm::DenseMapInfo >::FindAndConstruct(clang::IdentifierInfo const* const&) + 7095 28 clang 0x000000010001782b char const** llvm::SmallVectorImpl::insert<__gnu_cxx::__normal_iterator > > >(char const**, __gnu_cxx::__normal_iterator > >, __gnu_cxx::__normal_iterator > >) + 2655 29 clang 0x000000010001188b llvm::cl::opt >::opt >(char const (&) [17], llvm::cl::value_desc const&, llvm::cl::desc const&, llvm::cl::OptionHidden const&, llvm::cl::LocationClass const&) + 6259 30 clang 0x0000000100014840 llvm::MCRegisterInfo::~MCRegisterInfo() + 1756 31 clang 0x0000000100010de4 llvm::cl::opt >::opt >(char const (&) [17], llvm::cl::value_desc const&, llvm::cl::desc const&, llvm::cl::OptionHidden const&, llvm::cl::LocationClass const&) + 3532 Stack dump: 0. Program arguments: /opt/llvm/stage1/bin/clang -cc1 -triple x86_64-apple-macosx10.6.8 -fsyntax-only -disable-free -main-file-name saplay.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 97.17 -resource-dir /opt/llvm/stage1/bin/../lib/clang/3.0 -include-pch SharedPrefix.pch.pth -U __STRICT_ANSI__ -I include -stdlib=libc++ -O0 -std=c++0x -fdeprecated-macro -ferror-limit 19 -fmessage-length 170 -stack-protector 1 -fblocks -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -x c++ saplay.cpp 1. /usr/include/c++/v1/typeinfo:89:5: current parser token 'size_t' 2. /usr/include/c++/v1/typeinfo:65:1: parsing namespace 'std' 3. /usr/include/c++/v1/typeinfo:68:1: parsing struct/union/class body 'type_info' clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal 2 (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 Aug 10 03:43:48 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Aug 2011 03:43:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 10631] New: Assertion 'isa(Val) && "cast() argument of incompatible type!' on invalid code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10631 Summary: Assertion 'isa(Val) && "cast() argument of incompatible type!' on invalid code Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: chris at bubblescope.net CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The code: templatestruct eval{struct eval{ Causes the following assertion on trunk clang++: clang: /home/caj/clang/llvm-debug/include/llvm/Support/Casting.h:194: typename llvm::cast_retty::ret_type llvm::cast(const Y&) [with X = clang::TagType, Y = clang::QualType, typename llvm::cast_retty::ret_type = const clang::TagType*]: Assertion `isa(Val) && "cast() argument of incompatible type!"' failed. 0 clang 0x000000000299d542 1 clang 0x000000000299d33e 2 libpthread.so.0 0x00007fc1076e5c60 3 libc.so.6 0x00007fc1069d0d05 gsignal + 53 4 libc.so.6 0x00007fc1069d4ab6 abort + 390 5 libc.so.6 0x00007fc1069c97c5 __assert_fail + 245 6 clang 0x000000000134ac9f llvm::cast_retty::ret_type llvm::cast(clang::QualType const&) + 62 7 clang 0x0000000001587ef6 clang::Sema::ActOnTag(clang::Scope*, unsigned int, clang::Sema::TagUseKind, clang::SourceLocation, clang::CXXScopeSpec&, clang::IdentifierInfo*, clang::SourceLocation, clang::AttributeList*, clang::AccessSpecifier, clang::ASTMultiPtr, bool&, bool&, bool, bool, clang::ActionResult, false>) + 6152 8 clang 0x00000000014dab0e clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 5636 9 clang 0x00000000014ccbd1 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 6545 10 clang 0x00000000014dc1cb clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject*) + 1847 11 clang 0x00000000014ddacf clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int, clang::Decl*) + 1911 12 clang 0x00000000014dacd8 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 6094 13 clang 0x00000000014ccbd1 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 6545 14 clang 0x00000000014b2c5a clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::AccessSpecifier) + 420 15 clang 0x00000000014b2a6b clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 975 16 clang 0x00000000014b2607 clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 167 17 clang 0x00000000014c92ac clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 190 18 clang 0x00000000014bd2c4 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 1470 19 clang 0x00000000014bcc57 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 309 20 clang 0x000000000149d718 clang::ParseAST(clang::Sema&, bool) + 452 21 clang 0x00000000011daf75 clang::ASTFrontendAction::ExecuteAction() + 263 22 clang 0x000000000132ac68 clang::CodeGenAction::ExecuteAction() + 948 23 clang 0x00000000011dabd1 clang::FrontendAction::Execute() + 325 24 clang 0x00000000011c01bb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 741 25 clang 0x0000000001192f11 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 909 26 clang 0x0000000001183aff cc1_main(char const**, char const**, char const*, void*) + 957 27 clang 0x000000000118e537 main + 496 28 libc.so.6 0x00007fc1069bbeff __libc_start_main + 255 29 clang 0x00000000011831c9 Stack dump: 0. Program arguments: /llvmdebug/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name t.bashed.27598.cc -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.51.20110409 -momit-leaf-frame-pointer -resource-dir /llvmdebug/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length 0 -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o /tmp/cc-lbTB5U.o -x c++ t.bashed.27598.cc 1. t.bashed.27598.cc:1:35: current parser token '{' 2. t.bashed.27598.cc:1:12: parsing struct/union/class body 'eval' clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Preprocessed source(s) are located at: clang: note: diagnostic msg: /tmp/cc-lV8yFA.ii -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 10 04:54:16 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Aug 2011 04:54:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 10632] New: MC Assembler generates ARM NOP instructions instead of Thumb NOP instructions when aligning Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10632 Summary: MC Assembler generates ARM NOP instructions instead of Thumb NOP instructions when aligning Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: kristof.beyls at gmail.com CC: llvmbugs at cs.uiuc.edu The following assembler file gets mis-assembled: $ cat ArmNopsInThumbCode.s .section __TEXT //,__text,regular,pure_instructions .text .code 16 f: $t: add r0, r0, #1 .align 3 add r0, r0, #2 bx lr When using the following command line: $ build/Debug+Asserts/bin/llvm-mc -arch=thumb -mcpu=arm926ej-s ArmNopsInThumbCode.s -filetype=obj -o ArmNopsInThumbCode.o Disassembling the generated ELF file with GNU objdump shows that ARM NOP instructions were generated instead of Thumb NOP instructions: $ arm-none-eabi-objdump -d ArmNopsInThumbCode.o ArmNopsInThumbCode.o: file format elf32-littlearm Disassembly of section .text: 00000000 : 0: 1c40 adds r0, r0, #1 2: 0000 movs r0, r0 4: 0e1a lsrs r2, r3, #24 6: 0000 movs r0, r0 8: 1c80 adds r0, r0, #2 a: 4770 bx lr The decoded instruction at offsets 2-6 should be 16-bit Thumb NOP instructions. However, when looking at the encoding "0000 0e1a 0000", it seems that the ARM pseudo-NOP instruction (i.e. MOV r0,r0) was encoded. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 10 06:23:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Aug 2011 06:23:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 10633] New: Sequence point warning for assignment and assignment+op mix Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10633 Summary: Sequence point warning for assignment and assignment+op mix Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: joerg at NetBSD.org CC: llvmbugs at cs.uiuc.edu Consider the following input: int x; int f(void) { x = x += 1; return 0; } This should give a warning for undefined behaviour, but clang doesn't currently give one. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 10 10:24:47 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Aug 2011 10:24:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 10512] Error generating constructor for nested anonymous structs In-Reply-To: References: Message-ID: <20110810152447.710BF2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10512 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Douglas Gregor 2011-08-10 10:24:47 CDT --- Fixed in Clang r137212. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 10 11:00:46 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Aug 2011 11:00:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 10200] dragonegg svn on FSF gcc 4.6.1 produces unresolved symbols In-Reply-To: References: Message-ID: <20110810160046.5664F2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10200 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #26 from Duncan Sands 2011-08-10 11:00:45 CDT --- Should be fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20110808/125825.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 Wed Aug 10 11:52:33 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Aug 2011 11:52:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 10622] invalid defaulted copy constructor if a member is const In-Reply-To: References: Message-ID: <20110810165233.2D4572A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10622 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Douglas Gregor 2011-08-10 11:52:32 CDT --- Fixed in Clang r137219. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 10 13:08:14 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Aug 2011 13:08:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 2577] Use static profile info from __builtin_expect in optimizer to improve code In-Reply-To: References: Message-ID: <20110810180814.5D7C92A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=2577 Bob Wilson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Bob Wilson 2011-08-10 13:08:13 CDT --- Sure, we can call it done. We currently only use it for a few things but the infrastructure is in place, along with a few uses. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 10 13:50:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Aug 2011 13:50:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 10615] SIGFPE (div by 0) in clang::Sema::CheckArrayAccess In-Reply-To: References: Message-ID: <20110810185005.80BA42A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10615 Kaelyn Uhrain changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Kaelyn Uhrain 2011-08-10 13:50:05 CDT --- (In reply to comment #3) > The crashing line is "uint64_t ratio = array_typesize / ptrarith_typesize;" in > Sema::CheckArrayAccess. What fun... pointer arithmetic involving a cast to a type with a zero size. Fix to ensure ptrarith_typesize is always at least one (to handle void*) has been submitted as r137234. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 10 16:14:48 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Aug 2011 16:14:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 10634] New: MIPS alignment problem with structs/arrays Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10634 Summary: MIPS alignment problem with structs/arrays 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: andrew.canis at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7051) --> (http://llvm.org/bugs/attachment.cgi?id=7051) prog_link.ld struct.c struct.ll struct.emul.src struct.elf There is an alignment exception for the following code: struct point { char x, y; }; struct str { struct point p[2]; }; // sum up everyithing in a struct point int pointSum(struct point pt) { return pt.x + pt.y; } struct str global; int main() { int result = pointSum(global.p[1]); return result; } When I compile this with the gxemul MIPS emulator I get: ffffffff80030038: 27bdffe0 addiu sp,sp,-32 ffffffff8003003c: afbf001c sw ra,28(sp) [0xffffffffa0007efc] ffffffff80030040: 3c028003 lui v0,0x8003 ffffffff80030044: 24420080 addiu v0,v0,128 ffffffff80030048: 8c440002 lw a0,2(v0) [0xffffffff80030082 = trtab+0x2] [ exception ADEL vaddr=0xffffffff80030082 pc=0xffffffff80030048 ] Where the main function in the disassembled .elf looks like: 80030038
: 80030038: 27bdffe0 addiu sp,sp,-32 8003003c: afbf001c sw ra,28(sp) 80030040: 3c028003 lui v0,0x8003 80030044: 24420080 addiu v0,v0,128 80030048: 8c440002 lw a0,2(v0) 8003004c: 00000000 nop 80030050: 0c00c000 jal 80030000 ... Disassembly of section .scommon: 80030080 : 80030080: 00000000 nop The incorrect instruction appears to be: lw a0,2(v0) Which is trying to load global.p[1] from address 80030082 The address is correct, but isn't aligned to 32-bit so an exception is thrown. Do you any idea what would be causing this problem, or where in the code I could look to fix it? To reproduce: llvm-gcc struct.c -emit-llvm -c -fno-builtin -m32 -malign-double -O0 -fno-inline-functions -o struct.bc ../../llvm/Debug+Asserts/bin/llc struct.bc -march=mipsel -relocation-model=static -mips-ssection-threshold=0 -mcpu=mips1 -o struct.s ../../mips-binutils/bin/mipsel-elf-as struct.s -mips1 -mabi=32 -o struct.o -EL ../../mips-binutils/bin/mipsel-elf-ld -T prog_link_sim.ld -e main struct.o -o struct.elf -EL ../../mips-binutils/bin/mipsel-elf-objdump -d struct.elf > struct.emul.src gxemul -E testmips -e R3000 struct.elf -p 0xffffffff80000180 -i -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Aug 10 16:23:56 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Aug 2011 16:23:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 10635] New: llvm[5]: Building Clang attribute classes with tblgen segmentation fault, compiling with gcc 4.5.1 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10635 Summary: llvm[5]: Building Clang attribute classes with tblgen segmentation fault, compiling with gcc 4.5.1 Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sabujp at gmail.com CC: llvmbugs at cs.uiuc.edu Following the instructions here : http://clang.llvm.org/get_started.html using : ./configure --prefix=/sb/meiler/Linux2/x86_64/llvm/2.9 --enable-shared also had to set: setenv LD_LIBRARY_PATH /sb/meiler/Linux2/x86_64/gcc/4.5.1/lib:/sb/meiler/Linux2/x86_64/gcc/4.5.1/lib64 ...because I got a GLIBCXX_3.4.9 not available error initially at some point during the install (running CENTOS5 which has an older default libstdc++). After I got around that error it seg faulted here: llvm[5]: Building Clang attribute classes with tblgen 0 tblgen 0x000000000055699f 1 tblgen 0x0000000000556d6a 2 libpthread.so.0 0x000000391ae0eb10 3 tblgen 0x0000000000446b70 4 tblgen 0x000000000052d872 5 libc.so.6 0x000000391a21d994 __libc_start_main + 244 6 tblgen 0x0000000000406379 Stack dump: 0. Program arguments: /sb/meiler/Linux2/x86_64/llvm/llvm-2.9/build/Release/bin/tblgen -I /sb/meiler/Linux2/x86_64/llvm/llvm-2.9/tools/clang/include/clang/AST -I /sb/meiler/Linux2/x86_64/llvm/llvm-2.9/include -I /sb/meiler/Linux2/x86_64/llvm/llvm-2.9/include -I /sb/meiler/Linux2/x86_64/llvm/llvm-2.9/lib/Target -gen-clang-attr-classes -o /sb/meiler/Linux2/x86_64/llvm/llvm-2.9/build/tools/clang/include/clang/AST/Release/Attrs.inc.tmp -I /sb/meiler/Linux2/x86_64/llvm/llvm-2.9/tools/clang/include/clang/AST/../../ /sb/meiler/Linux2/x86_64/llvm/llvm-2.9/tools/clang/include/clang/AST/../Basic/Attr.td make[5]: *** [/sb/meiler/Linux2/x86_64/llvm/llvm-2.9/build/tools/clang/include/clang/AST/Release/Attrs.inc.tmp] Segmentation fault make[5]: Leaving directory `/sb/meiler/Linux2/x86_64/llvm/llvm-2.9/build/tools/clang/include/clang/AST' make[4]: *** [all] Error 1 make[4]: Leaving directory `/sb/meiler/Linux2/x86_64/llvm/llvm-2.9/build/tools/clang/include/clang' make[3]: *** [all] Error 1 make[3]: Leaving directory `/sb/meiler/Linux2/x86_64/llvm/llvm-2.9/build/tools/clang/include' make[2]: *** [all] Error 1 make[2]: Leaving directory `/sb/meiler/Linux2/x86_64/llvm/llvm-2.9/build/tools/clang' make[1]: *** [clang/.makeall] Error 2 make[1]: Leaving directory `/sb/meiler/Linux2/x86_64/llvm/llvm-2.9/build/tools' make: *** [all] Error 1 I haven't tried any older versions of gcc/g++ (e.g. 4.2). Has anyone successfully compiled LLVM+clang with gcc/g++ 4.5.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 Wed Aug 10 16:54:04 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Aug 2011 16:54:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 10542] Debug information synthesis during RAGreedy run takes a shockingly long time In-Reply-To: References: Message-ID: <20110810215404.80EB02A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10542 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #19 from Devang Patel 2011-08-10 16:54:02 CDT --- Sped up RAGreedy in r 137250 and reapplied original patch r 137253. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 10 18:08:23 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Aug 2011 18:08:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 10636] New: list of linkage types Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10636 Summary: list of linkage types Product: Documentation Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: General docs AssignedTo: unassignedbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu in http://llvm.org/docs/LangRef.html#linkage the list of linkage types does not include "external" -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 10 18:24:56 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Aug 2011 18:24:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 10637] New: no reliable or complete documentation on bitcode IR Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10637 Summary: no reliable or complete documentation on bitcode IR Product: Documentation Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: General docs AssignedTo: unassignedbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu there should be a bnf and description of the IR for LLVM. even the most basic things are missing. like for example: @i = external global i32 it's easy to guess what this means but there is no syntax definition for a variable in IR i'm looking at http://llvm.org/docs/LangRef.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 Wed Aug 10 18:31:21 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Aug 2011 18:31:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 10629] lit.py fails when running all tests on Win7 x64 with Visual Studio 2008 In-Reply-To: References: Message-ID: <20110810233121.2A9B12A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10629 John Wiegley changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from John Wiegley 2011-08-10 18:31:20 CDT --- That seems to have fixed it, thank you very much! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 10 18:58:52 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Aug 2011 18:58:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 10638] New: [META] Compiling Wine with clang Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10638 Summary: [META] Compiling Wine with clang Product: clang Version: trunk Platform: PC URL: http://www.winehq.org OS/Version: Linux Status: NEW Severity: enhancement Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: austinenglish at gmail.com CC: llvmbugs at cs.uiuc.edu Depends on: 8561,9693,9701,9702,9704,9705,9707,9750,9830,9844 This is a meta-bug for issues compiling wine with Clang. Inspired by bug 4068, bug 6815, and bug 7207. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 10 20:48:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Aug 2011 20:48:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 9693] [MC] Invalid GOTOFF relocation in shared library objects In-Reply-To: References: Message-ID: <20110811014822.3458F2A6C131@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9693 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #8 from Eli Friedman 2011-08-10 20:48:20 CDT --- r137292. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 10 21:17:36 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Aug 2011 21:17:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 10639] New: Dragonegg miscompiles dlls/crypt32/message.c from wine Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10639 Summary: Dragonegg miscompiles dlls/crypt32/message.c from wine Product: dragonegg Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: New Bugs AssignedTo: baldrick at free.fr ReportedBy: austinenglish at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7053) --> (http://llvm.org/bugs/attachment.cgi?id=7053) llvm-preprocessed file Dragonegg can compile wine successfully, aside from http://bugs.winehq.org/show_bug.cgi?id=28050. Running its test suite, however, shows a few problems. This is the first one (8 potential). To reproduce, compile wine with: $ CC=llvm-gcc ./configure $ make then run the test: $ cd dlls/crypt32/tests $ make message.ok this will fail: austin at debian:~/wine-llvmgcc/dlls/crypt32/tests$ make message.ok ../../../tools/runtest -q -P wine -M crypt32.dll -T ../../.. -p crypt32_test.exe.so message.c && touch message.ok message.c:1079: Test failed: unexpected value message.c:1097: Test failed: unexpected value message.c:1116: Test failed: unexpected value message.c:1138: Test failed: unexpected value message.c:1167: Test failed: unexpected value message.c:1190: Test failed: unexpected value make: *** [message.ok] Error 6 compilings crypt32/message.c with gcc, or using -O0 instead works around the issue. I'll attach preprocessed source files from llvm-gcc and gcc (versions below). If more info is needed, please don't hesitate to ask. austin at debian:~/wine-llvmgcc/dlls/crypt32/tests$ llvm-gcc --version gcc-4.5 (Debian 4.5.3-3) 4.5.3 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. austin at debian:~/wine-llvmgcc/dlls/crypt32/tests$ gcc --version gcc (Debian 4.4.6-7) 4.4.6 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 10 21:45:16 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Aug 2011 21:45:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 10640] New: Dragonegg miscompiles dlls/d3dx9_36/tests/math.c from Wine Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10640 Summary: Dragonegg miscompiles dlls/d3dx9_36/tests/math.c from Wine Product: dragonegg Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Keywords: miscompilation Severity: normal Priority: P Component: New Bugs AssignedTo: baldrick at free.fr ReportedBy: austinenglish at gmail.com CC: llvmbugs at cs.uiuc.edu Depends on: 10639 Dragonegg can compile wine successfully, aside from http://bugs.winehq.org/show_bug.cgi?id=28050. Running its test suite, however, shows a few problems. To reproduce, compile wine with: $ CC=llvm-gcc ./configure $ make then run the test: $ cd dlls/d3dx9_36/tests $ make math.ok this will fail: llvm-gcc -c -I. -I. -I../../../include -I../../../include -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits -Wwrite-strings -Wpointer-arith -Wlogical-op -g -O2 -o math.o math.c ../../../tools/winegcc/winegcc -B../../../tools/winebuild --sysroot=../../.. -fasynchronous-unwind-tables asm.o core.o effect.o line.o math.o mesh.o shader.o surface.o texture.o rsrc.res testlist.o -o d3dx9_36_test.exe.so ../../../libs/port/libwine_port.a -ld3dx9 -ld3d9 -luser32 -lgdi32 ../../../tools/runtest -q -P wine -M d3dx9_36.dll -T ../../.. -p d3dx9_36_test.exe.so math.c && touch math.ok fixme:d3dx:D3DXQuaternionLn The quaternion (0.200000, 0.100000, 0.300000, 0.900000) has a norm <1. This should not happen. Windows returns a result anyway. This case is not implemented yet. math.c:2278: Test failed: Got ffff, expected 7fff or 7fff for index 18. math.c:2278: Test failed: Got 7fff, expected ffff or ffff for index 19. make: *** [math.ok] Error 2 compiling math.c with gcc, or using -O0 instead of 01/02 works around the issue. I'll attach preprocessed source files from llvm-gcc and gcc (versions below), as well as a reduced down version of math.c that more clearly shows the problem. If more info is needed, please don't hesitate to ask. austin at debian:~/wine-llvmgcc/dlls/crypt32/tests$ llvm-gcc --version gcc-4.5 (Debian 4.5.3-3) 4.5.3 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. austin at debian:~/wine-llvmgcc/dlls/crypt32/tests$ gcc --version gcc (Debian 4.4.6-7) 4.4.6 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 10 21:50:53 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Aug 2011 21:50:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 10562] [AVX] infinite recursive calls to DenseMap::insert() In-Reply-To: References: Message-ID: <20110811025053.2B7C22A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10562 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-08-10 21:50:52 CDT --- Fixed in r137296 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 10 22:54:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Aug 2011 22:54:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 10320] LLVMX86CodeGen.lib can't be created on 64-bit Visual Studio solution. In-Reply-To: References: Message-ID: <20110811035458.A0D002A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10320 NAKAMURA Takumi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #2 from NAKAMURA Takumi 2011-08-10 22:54:58 CDT --- r137297 can be built. I checked with x64|Release. cmake-2.8.4 and visual studio 2010 sp1 (Japanese) on Windows 7 x64 FYI 12> -- Testing: 5675 tests, 8 threads -- 12> 12> Testing Time: 77.81s 12> Expected Passes : 3972 12> Expected Failures : 21 12> Unsupported Tests : 1682 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 11 01:27:21 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Aug 2011 01:27:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 10605] Or of load miscompiled at -O0 In-Reply-To: References: Message-ID: <20110811062721.A4A582A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10605 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2011-08-11 01:27:21 CDT --- Fixed in r137303, thanks. Scary stuff. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 11 07:50:24 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Aug 2011 07:50:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 10641] New: Assertion "only support multiples of 64-bits" failed while compiling wine Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10641 Summary: Assertion "only support multiples of 64-bits" failed while compiling wine Product: new-bugs Version: 2.9 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 Yes, this really occurred in the wild (while building wine)! In the original code the i160 appears as padding at the end of a struct. $ cat bigint.ll 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-f128:128:128-n8:16:32" target triple = "i386-unknown-linux-gnu" @g = global i160 zeroinitializer $ llc bigint.ll llc: llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp:1633: void EmitGlobalConstantLargeInt(const llvm::ConstantInt*, unsigned int, llvm::AsmPrinter&): Assertion `(BitWidth & 63) == 0 && "only support multiples of 64-bits"' failed. ... 5 libc.so.6 0x00007ff4859f1cbd __assert_fail + 221 llvm::AsmPrinter::EmitGlobalVariable(llvm::GlobalVariable const*) + 553 8 llc 0x0000000000aa45cf llvm::AsmPrinter::doFinalization(llvm::Module&) + 63 9 llc 0x0000000000e278b4 llvm::FPPassManager::doFinalization(llvm::Module&) + 84 10 llc 0x0000000000e2c369 llvm::FPPassManager::runOnModule(llvm::Module&) + 73 11 llc 0x0000000000e2bfcf llvm::MPPassManager::runOnModule(llvm::Module&) + 527 12 llc 0x0000000000e2ccbb llvm::PassManagerImpl::run(llvm::Module&) + 187 13 llc 0x000000000053ceea main + 3210 14 libc.so.6 0x00007ff4859e430d __libc_start_main + 237 15 llc 0x0000000000537d39 Stack dump: 0. Program arguments: llc bigint.ll 1. Running pass 'Function Pass Manager' on module 'bigint.ll'. Aborted (core dumped) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Aug 11 11:18:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Aug 2011 11:18:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 10642] New: Use of return in functions with noreturn Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10642 Summary: Use of return in functions with noreturn Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Keywords: quality-of-implementation Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: joerg at NetBSD.org CC: llvmbugs at cs.uiuc.edu Consider this: #include __attribute__((noreturn)) int foo(void) { exit(1); return 0; } At the moment, this triggers: warning: function 'foo' declared 'noreturn' should not return [-Winvalid-noreturn] I think this warning is bogus and misleading. (1) The return is dead code, but might exist to help more stupid compilers that can't figure out the noreturn property of exit. (2) noreturn on a function with a return value other than void is questionable. A warning for that would be nice. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Aug 11 13:33:07 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Aug 2011 13:33:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 10555] [AVX] cannot select v2i64 = vector_shuffle crash In-Reply-To: References: Message-ID: <20110811183307.9B0232A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10555 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Bruno Cardoso Lopes 2011-08-11 13:33:07 CDT --- Works in TOT. Not sure what revision this got fixed. Probably in some regarding the previous 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 Thu Aug 11 13:59:47 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Aug 2011 13:59:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 10492] [AVX] Assertion failed: ((VT == MVT::v4i32 || VT == MVT::v4f32) && "unsupported shuffle type"), In-Reply-To: References: Message-ID: <20110811185947.B90FF2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10492 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-08-11 13:59:47 CDT --- Fixed in r137324 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 11 14:12:18 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Aug 2011 14:12:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 10643] New: SplitBlock crash with incomplete dominator info Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10643 Summary: SplitBlock crash with incomplete dominator info Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Transformation Utilities AssignedTo: unassignedbugs at nondot.org ReportedBy: nick.sumner at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7059) --> (http://llvm.org/bugs/attachment.cgi?id=7059) Patch against svn trunk SplitBlock can cause an assertion failure when the current pass has stale or incomplete dominator information. This is because it assumes that dominator information is always present. I encountered this when using SplitBlock after UnifyFunctionExitNodes. The attached patch against the trunk fixes the problem for me and incidentally fixes a whitespace bug in SplitBlock at the same 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 Thu Aug 11 15:32:14 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Aug 2011 15:32:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 10644] New: clang considers a method with rvalue reference ambiguous Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10644 Summary: clang considers a method with rvalue reference ambiguous Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com g++ 4.6 with -std=c++0x compiles: struct string { string(const char* __s); }; struct map { int& operator[](const string& __k); int& operator[](const string&& __k); }; void foo() { static map key_map; key_map["line"]; } but clang doesn't: tracked_objects.ii:10:10: error: use of overloaded operator '[]' is ambiguous (with operand types 'map' and 'const char [5]') key_map["line"]; ~~~~~~~^~~~~~~ tracked_objects.ii:5:8: note: candidate function int& operator[](const string& __k); ^ tracked_objects.ii:6:8: note: candidate function int& operator[](const string&& __k); ^ The "string" in the test is a reduction of libstdc++'s std::string. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 11 23:09:34 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Aug 2011 23:09:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 10620] Assertion failure while visiting goto statement in CFG builder In-Reply-To: References: Message-ID: <20110812040934.4F19A2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10620 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |kremenek at apple.com Resolution| |FIXED --- Comment #1 from Ted Kremenek 2011-08-11 23:09:33 CDT --- Fixed: r137422 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 12 03:40:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Aug 2011 03:40:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 10630] segfault with precompiled header In-Reply-To: References: Message-ID: <20110812084058.B31882A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10630 Jean-Daniel Dupas changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Jean-Daniel Dupas 2011-08-12 03:40:57 CDT --- Look like it was fixed by r137383. 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 Aug 12 06:25:00 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Aug 2011 06:25:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 10645] New: Support for sret and thiscall on msvc++ (32) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10645 Summary: Support for sret and thiscall on msvc++ (32) Product: new-bugs Version: 2.9 Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: gleizesd at gmail.com CC: llvmbugs at cs.uiuc.edu Right now if LLVM code calls a method with "X86_thiscall" calling convention (compiled with msvc++) that returns a struct by copy, the program will crash (or will behave incorrectly). When the first parameter is a structure return pointer with "sret" attribute, it should not be put in ECX, and the "this" value will be the second parameter. I modified manually the X86GenCallingConv.inc to bypass the issue, and seems to work correctly. I am not used to the .td syntax :(, but in the X86CallingConv.td, the CC_X86_32_ThisCall should become something like this (?): def CC_X86_32_ThisCall : CallingConv<[ // Promote i8/i16 arguments to i32. CCIfType<[i8, i16], CCPromoteToType>, // The 'nest' parameter, if any, is passed in EAX. CCIfNest>, // Do not pass the sret argument in ECX CCIfSRet>, // The first integer argument is passed in ECX CCIfType<[i32], CCAssignToReg<[ECX]>>, // Otherwise, same as everything else. CCDelegateTo ]>; -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 12 09:18:17 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Aug 2011 09:18:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 10646] New: Support/Unix/TimeValue.inc missing time.h when compiled by clang++ -stdlib=libc++ Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10646 Summary: Support/Unix/TimeValue.inc missing time.h when compiled by clang++ -stdlib=libc++ Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Support Libraries AssignedTo: unassignedbugs at nondot.org ReportedBy: oroppas at gmail.com CC: llvmbugs at cs.uiuc.edu In an attempt to self-host llvm/clang with libc++ instead of libstdc++, I've got the following error (compiled by 'clang++ -stdlib=libc++') [ 0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/TimeValue.cpp.o In file included from /home/ryuta/devel/llvm/src/llvm/lib/Support/TimeValue.cpp:53: /home/ryuta/devel/llvm/src/llvm/lib/Support/Unix/TimeValue.inc:32:5: error: no member named 'asctime_r' in the global namespace ::asctime_r(::localtime(&ourTime), buffer); ~~^ /home/ryuta/devel/llvm/src/llvm/lib/Support/Unix/TimeValue.inc:32:17: error: no member named 'localtime' in the global namespace ::asctime_r(::localtime(&ourTime), buffer); ~~^ 2 errors generated. make[2]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/TimeValue.cpp.o] Error 1 make[1]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2 make: *** [all] Error 2 In Support/Unix/Unix.h there are lines: #ifdef TIME_WITH_SYS_TIME # include # include #else # ifdef HAVE_SYS_TIME_H # include # else # include # endif #endif In the case of linux, HAVE_SYS_TIME_H is defined but it turns out both asctime_r and locatime are defined in time.h rather than sys/time.h. I think we haven't seen this error when libstdc++ was used and it's just a coincidence that libstdc++ has the relevant header(s) which may include time.h. Obviously, libc++ doesn't. Some refactoring of header inclusion in Unix.h might be necessary. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 12 09:42:24 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Aug 2011 09:42:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 10620] Assertion failure while visiting goto statement in CFG builder In-Reply-To: References: Message-ID: <20110812144224.0B66E2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10620 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #2 from Ted Kremenek 2011-08-12 09:42:23 CDT --- I reverted this fix in r137459. Zhongxing correctly pointed out that we should probably be rejecting this code outright. GCC does. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 12 13:56:43 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Aug 2011 13:56:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 10647] New: memcpy called when memory areas of source and destination overlap Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10647 Summary: memcpy called when memory areas of source and destination overlap Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ahatanak at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7062) --> (http://llvm.org/bugs/attachment.cgi?id=7062) source file pr22237 taken from gcc test-suite fails. $ clang pr22237.c pr22237-lib.c main.c -w -O0 -fPIC -lm -o pr22237.x0 $ ./pr22237.x0 Aborted Running gdb reveals that it aborts when the memcpy function defined in pr22237-lib.c finds that dst and src ares are not disjoint: (gdb) #2 0x0000000000400865 in memcpy (dst=0x60104c, src=0x601048, n=256) at pr22237-lib.c:20 20 abort (); (gdb) up #3 0x00000000004007f8 in rp () at pr22237.c:10 10 static inline struct s rp (void) { return *p; } The problem seems to be that function rp calls memcpy to copy *p to %agg.result without checking whether the source and destination areas overlap. (line 44 in pr22237.c) static inline struct s rp (void) { return *p; } $ clang pr22237.c -emit-llvm -S -w -O0 -fPIC -lm -o - ... define internal void @rp(%struct.s* sret %agg.result) nounwind uwtable inlinehint { entry: %tmp = load %struct.s** @p, align 8 %tmp1 = bitcast %struct.s* %agg.result to i8* %tmp2 = bitcast %struct.s* %tmp to i8* call void @llvm.memcpy.p0i8.p0i8.i64(i8* %tmp1, i8* %tmp2, i64 256, i32 1, i1 false) ret void } Note that the test also fails without the memcpy defined in pr22237-lib.c: $ clang pr22237.c main.c -w -O0 -fPIC -lm -o pr22237.x0 $ ./pr22237.x0 Aborted I also studied the assembly code generated with gcc. x86-gcc uses memmove which checks overlaps. mips-gcc uses memcpy but does something equivalent to the following to avoid abortion: tmp = rp() *q = 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 Fri Aug 12 14:55:52 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Aug 2011 14:55:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 10648] New: Flexible array members not initialized properly Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10648 Summary: Flexible array members not initialized properly Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: darkrain654 at yahoo.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7065) --> (http://llvm.org/bugs/attachment.cgi?id=7065) An example of the bug A flexible array member in a struct is only initialized when static or const. The attached example prints garbage when used with an automatic struct or any compound literal or pointer to compound literal, whether the struct is used in the same function or a pointer to it is passed to another function. The assembly code shows the data for the two structs that print correctly, but strangely also has struct "vec2" with the right values even though it's still uninitialized when running the program. The values of the other structs don't appear in the assembly code at all and it looks like it's just copying random junk off the stack. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 12 16:56:33 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Aug 2011 16:56:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 10574] initializer_list should be disabled when generalized initializers are not available In-Reply-To: References: Message-ID: <20110812215633.4EB062A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10574 Howard Hinnant changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Howard Hinnant 2011-08-12 16:56:32 CDT --- Fix Committed revision 137522. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 12 19:44:38 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Aug 2011 19:44:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 10649] New: Missing header "unistd.h" when compiled by 'clang++ -stdlib=libc++' Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10649 Summary: Missing header "unistd.h" when compiled by 'clang++ -stdlib=libc++' Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Target-Independent JIT AssignedTo: unassignedbugs at nondot.org ReportedBy: oroppas at gmail.com CC: llvmbugs at cs.uiuc.edu I've got the following error when self-hosting llvm/clang with libc++: [ 49%] Building CXX object lib/ExecutionEngine/JIT/CMakeFiles/LLVMJIT.dir/Intercept.cpp.o /home/ryuta/devel/llvm/src/llvm/lib/ExecutionEngine/JIT/Intercept.cpp:70:67: error: use of undeclared identifier 'lseek64'; did you mean 'fseeko64'? sys::DynamicLibrary::AddSymbol("\x1lseek64", (void*)(intptr_t)lseek64); ^~~~~~~ fseeko64 /usr/include/stdio.h:811:12: note: 'fseeko64' declared here extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence); ^ 1 error generated. make[2]: *** [lib/ExecutionEngine/JIT/CMakeFiles/LLVMJIT.dir/Intercept.cpp.o] Error 1 make[1]: *** [lib/ExecutionEngine/JIT/CMakeFiles/LLVMJIT.dir/all] Error 2 make: *** [all] Error 2 Having the header unistd.h fixed 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 Fri Aug 12 20:42:27 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Aug 2011 20:42:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 10634] MIPS alignment problem with structs/arrays In-Reply-To: References: Message-ID: <20110813014227.3BAE52A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10634 Akira Hatanaka 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 Fri Aug 12 21:40:15 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 12 Aug 2011 21:40:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 10650] New: assertion in EmitCallExprLValue Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10650 Summary: assertion in EmitCallExprLValue Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com This is the return of bug 10592. The new testcase is: struct Helper { unsigned long id() { return 0; } }; void test(Helper *obj) { int i = static_cast(obj->id()); } which triggers this assertion in codegen: nlewycky at ducttape:~/local/delta-2006.08.03$ clang -cc1 -emit-llvm-only -x c++ -w z.c clang: CGExpr.cpp:2296: clang::CodeGen::LValue clang::CodeGen::CodeGenFunction::EmitCallExprLValue(const clang::CallExpr*): Assertion `E->getCallReturnType()->isReferenceType() && "Can't have a scalar return unless the return type is a " "reference 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 Sat Aug 13 06:44:52 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 13 Aug 2011 06:44:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 10651] New: File takes 8s to compiled with clang but only 74ms to compile with gcc Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10651 Summary: File takes 8s to compiled with clang but only 74ms to compile with gcc Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: stark at mit.edu CC: llvmbugs at cs.uiuc.edu The build times for Postgres are still slower with clang than gcc. On my machine Postgres builds in about 90s with gcc but takes nearly 4 minutes with clang. There is no longer a single offending file but there are a bunch of files that seem to take 5-8s with clang even though they don't take particularly long with gcc. This is true even with -O0. This is the current worst offender but there are 17 files that take 10 times as long or more to build with clang as gcc. These times are after running the two commands repeatedly: $ time gcc -c syscache-preprocessed.c real 0m0.074s user 0m0.050s sys 0m0.040s $ time clang -c syscache-preprocessed.c real 0m7.742s user 0m7.700s sys 0m0.040s -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 13 07:29:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 13 Aug 2011 07:29:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 10652] New: GCC 4.7 & Clang trunk Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10652 Summary: GCC 4.7 & Clang trunk Product: clang Version: trunk Platform: Sun OS/Version: Solaris Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: javpicorel at gmail.com CC: llvmbugs at cs.uiuc.edu Using the gcc trunk (4.7), clang shows and error while compiling a lib 'llvm-trunk/tools/clang/lib/AST/Stmt.cpp', there are a lot of error messages very similar so I'll put only a few of them: In file included from /export/home/picorel/filesCloud9/llvm-trunk/tools/clang/lib/AST/Stmt.cpp:138:0: /export/home/picorel/filesCloud9/llvm-trunk/obj-debug/tools/clang/lib/AST/../../include/clang/AST/StmtNodes.inc: In function 'void check_implementations()': /export/home/picorel/filesCloud9/llvm-trunk/obj-debug/tools/clang/lib/AST/../../include/clang/AST/StmtNodes.inc:15:1: error: no matching function for call to 'implement s_getSourceRange(clang::SourceRange (clang::AsmStmt::*)()const)' /export/home/picorel/filesCloud9/llvm-trunk/obj-debug/tools/clang/lib/AST/../../include/clang/AST/StmtNodes.inc:15:1: note: candidates are: /export/home/picorel/filesCloud9/llvm-trunk/tools/clang/lib/AST/Stmt.cpp:118:27: note: template {anonymous}::good {anonymous}::implements_getSourceRange(clang: :SourceRange (T::*)()) /export/home/picorel/filesCloud9/llvm-trunk/tools/clang/lib/AST/Stmt.cpp:118:27: note: template argument deduction/substitution failed: /export/home/picorel/filesCloud9/llvm-trunk/obj-debug/tools/clang/lib/AST/../../include/clang/AST/StmtNodes.inc:15:1: note: types 'clang::SourceRange (T::)()' and 'cl ang::SourceRange (clang::AsmStmt::)()const' have incompatible cv-qualifiers /export/home/picorel/filesCloud9/llvm-trunk/tools/clang/lib/AST/Stmt.cpp:121:21: note: {anonymous}::bad {anonymous}::implements_getSourceRange(clang::SourceRange (clang ::Stmt::*)()) /export/home/picorel/filesCloud9/llvm-trunk/tools/clang/lib/AST/Stmt.cpp:121:21: note: no known conversion for argument 1 from 'clang::SourceRange (clang::AsmStmt::*) ()const' to 'clang::SourceRange (clang::Stmt::*)()' /export/home/picorel/filesCloud9/llvm-trunk/obj-debug/tools/clang/lib/AST/../../include/clang/AST/StmtNodes.inc:21:1: error: no matching function for call to 'implement s_getSourceRange(clang::SourceRange (clang::BreakStmt::*)()const)' /export/home/picorel/filesCloud9/llvm-trunk/obj-debug/tools/clang/lib/AST/../../include/clang/AST/StmtNodes.inc:21:1: note: candidates are: /export/home/picorel/filesCloud9/llvm-trunk/tools/clang/lib/AST/Stmt.cpp:118:27: note: template {anonymous}::good {anonymous}::implements_getSourceRange(clang: :SourceRange (T::*)()) /export/home/picorel/filesCloud9/llvm-trunk/tools/clang/lib/AST/Stmt.cpp:118:27: note: template argument deduction/substitution failed: /export/home/picorel/filesCloud9/llvm-trunk/obj-debug/tools/clang/lib/AST/../../include/clang/AST/StmtNodes.inc:21:1: note: types 'clang::SourceRange (T::)()' and 'cl ang::SourceRange (clang::BreakStmt::)()const' have incompatible cv-qualifiers /export/home/picorel/filesCloud9/llvm-trunk/tools/clang/lib/AST/Stmt.cpp:121:21: note: {anonymous}::bad {anonymous}::implements_getSourceRange(clang::SourceRange (clang ::Stmt::*)()) /export/home/picorel/filesCloud9/llvm-trunk/tools/clang/lib/AST/Stmt.cpp:121:21: note: no known conversion for argument 1 from 'clang::SourceRange (clang::BreakStmt:: *)()const' to 'clang::SourceRange (clang::Stmt::*)()' /export/home/picorel/filesCloud9/llvm-trunk/obj-debug/tools/clang/lib/AST/../../include/clang/AST/StmtNodes.inc:27:1: error: no matching function for call to 'implement s_getSourceRange(clang::SourceRange (clang::CXXCatchStmt::*)()const)' /export/home/picorel/filesCloud9/llvm-trunk/obj-debug/tools/clang/lib/AST/../../include/clang/AST/StmtNodes.inc:27:1: note: candidates are: /export/home/picorel/filesCloud9/llvm-trunk/tools/clang/lib/AST/Stmt.cpp:118:27: note: template {anonymous}::good {anonymous}::implements_getSourceRange(clang: :SourceRange (T::*)()) /export/home/picorel/filesCloud9/llvm-trunk/tools/clang/lib/AST/Stmt.cpp:118:27: note: template argument deduction/substitution failed: /export/home/picorel/filesCloud9/llvm-trunk/obj-debug/tools/clang/lib/AST/../../include/clang/AST/StmtNodes.inc:27:1: note: types 'clang::SourceRange (T::)()' and 'cl ang::SourceRange (clang::CXXCatchStmt::)()const' have incompatible cv-qualifiers Any idea? Regards -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 13 12:58:00 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 13 Aug 2011 12:58:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 10653] New: Vector INREG_SEXTEND is broken on ARM Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10653 Summary: Vector INREG_SEXTEND is broken on ARM Product: libraries Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: nadav.rotem at intel.com CC: llvmbugs at cs.uiuc.edu In my work on vector-select I found a bug which is exposed when calling PromoteIntOp_SIGN_EXTEND with vector types. In this code an SIGN_EXTEND_INREG ISD node is created. Later, when we attempt to legalize the SIGN_EXTEND_INREG ISD node, we generate vector SHL and SHR code (which is okay). The problem is that the shift amount may be an illegal ARM type. For example, if we want to perform an SIGN_EXTEND_INREG of v8i8 types (legal on arm), we would create a vector (BUILD_VECTOR of i8 scalars). The i8 scalars are illegal. I am not sure what the right fix is. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 13 23:20:24 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 13 Aug 2011 23:20:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 10654] New: Assertion failed: (LHS.isSimple() && "Can only subscript lvalue vectors here!") with ext_vector_type Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10654 Summary: Assertion failed: (LHS.isSimple() && "Can only subscript lvalue vectors here!") with ext_vector_type Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: tonic at nondot.org, llvmbugs at cs.uiuc.edu Testcase: __attribute((ext_vector_type(4))) typedef int extv4; extv4 v; void f(int i) { v.xzwy[i] = 10; } Assertion failed: (LHS.isSimple() && "Can only subscript lvalue vectors here!"), function EmitArraySubscriptExpr, file /Users/efriedma/llvm/tools/clang/lib/CodeGen/CGExpr.cpp, line 1566. There happens to be a similar construct to this in test/CodeGen/volatile.c, although it's on the right-hand side on an assignment there. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Aug 13 23:58:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 13 Aug 2011 23:58:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 10650] assertion in EmitCallExprLValue In-Reply-To: References: Message-ID: <20110814045840.7D66F2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10650 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #1 from Eli Friedman 2011-08-13 23:58:40 CDT --- r137574. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 14 07:23:55 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 14 Aug 2011 07:23:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 10655] New: TypeDecl::TypeForDecl set to 0 for regular TypedefDecl Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10655 Summary: TypeDecl::TypeForDecl set to 0 for regular TypedefDecl Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: bugzilla-clang at sogetthis.com CC: llvmbugs at cs.uiuc.edu For any regular TypedefDecl its TypeDecl::TypeForDecl is set to 0. For builtin typedefs however it seems to be set correctly. example code (run inside a plugin): ----------------------------------- for (clang::DeclContext::decl_iterator declIte = context.getTranslationUnitDecl()->decls_begin(), dEnd = context.getTranslationUnitDecl()->decls_end(); declIte != dEnd; ++declIte) { if (const clang::TypedefDecl* tdD = llvm::dyn_cast(*declIte)) { tdD->print(llvm::errs()); llvm::errs() << "\n"; llvm::errs() << tdD->getTypeForDecl() << "\n\n"; } } yields this output: ------------------- $ cat test.cpp typedef int test; $ clang -cc1 -load ./plugin.so -plugin test test.cpp typedef char *__builtin_va_list 0xc7adc70 typedef int test 0x0 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 14 16:21:21 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 14 Aug 2011 16:21:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 10649] Missing header "unistd.h" when compiled by 'clang++ -stdlib=libc++' In-Reply-To: References: Message-ID: <20110814212121.C56532A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10649 NAKAMURA Takumi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |geek4civic at gmail.com Resolution| |FIXED --- Comment #3 from NAKAMURA Takumi 2011-08-14 16:21:21 CDT --- Fixed in r137567. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 15 07:48:13 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 07:48:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 10656] New: [SSE] v4f64 = insert_subvector crash Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10656 Summary: [SSE] v4f64 = insert_subvector crash Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu With top of tree, the attached gives the following crash when I run it through llc. I believe that this is a recent regression (within the last week), but unfortunately my laptop is so slow that I probably won't be able to binary search to find the change in a reasonable amount of time. (I'll start off a run to do that tonight, though.) SplitVectorResult #0: 0x7ff159833d10: v4f64 = insert_subvector 0x7ff159831210, 0x7ff159831310, 0x7ff159831e10 [ID=0] Do not know how to split the result of this operator! UNREACHABLE executed at LegalizeVectorTypes.cpp:416! 0 llc 0x00000001048fee72 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6494 1 llc 0x00000001048ff479 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 8037 2 libsystem_c.dylib 0x00007fff86a09cfa _sigtramp + 26 3 libsystem_c.dylib 0x0000000104e6ca00 _sigtramp + 18446603342634691872 4 llc 0x00000001048fedd6 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6338 5 llc 0x00000001048f04f9 std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::_M_insert_unique(std::_Rb_tree_iterator >, std::pair const&) + 1707 6 llc 0x000000010447c7df llvm::DenseMap, llvm::DenseMapInfo >::clear() + 134033 7 llc 0x00000001044528a5 llvm::TargetLowering::getNumRegisters(llvm::LLVMContext&, llvm::EVT) const + 30613 8 llc 0x000000010445346b llvm::TargetLowering::getNumRegisters(llvm::LLVMContext&, llvm::EVT) const + 33627 9 llc 0x0000000104506037 llvm::SelectionDAGBuilder::Case::size() const + 32931 10 llc 0x00000001045083e2 llvm::SelectionDAGBuilder::Case::size() const + 42062 11 llc 0x000000010450903b llvm::SelectionDAGBuilder::Case::size() const + 45223 12 llc 0x00000001045e4e54 llvm::MachineFunctionAnalysis::getPassName() const + 458 13 llc 0x0000000104865f8d llvm::cl::parser::~parser() + 26355 14 llc 0x000000010486196b llvm::cl::parser::~parser() + 8401 15 llc 0x0000000104865c8a llvm::cl::parser::~parser() + 25584 16 llc 0x00000001048670b1 llvm::cl::parser::~parser() + 30743 17 llc 0x0000000104867131 llvm::cl::parser::~parser() + 30871 18 llc 0x0000000103fd2fe3 19 llc 0x0000000103fd1834 Stack dump: 0. Program arguments: /Users/mmp/llvm-dev/bin/llc bugpoint-reduced-simplified.ll -o /dev/null 1. Running pass 'Function Pass Manager' on module 'bugpoint-reduced-simplified.ll'. 2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@"f_fu___REFUf[]REFUf[]Uf"' [1] 15054 illegal hardware instruction ~/llvm-dev/bin/llc bugpoint-reduced-simplified.ll -o /dev/null -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Aug 15 08:26:24 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 08:26:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 10657] New: Assertion `CurFn->isDeclaration() && "Function already has body?"' failed Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10657 Summary: Assertion `CurFn->isDeclaration() && "Function already has body?"' failed Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: jirislaby at gmail.com CC: llvmbugs at cs.uiuc.edu I'm using trunk. The topmost clang commit is: commit 7c5109b0322058c1fb80222b71b380b2c7b10d4e Author: Jeffrey Yasskin Date: Sat Aug 13 05:47:04 2011 +0000 Fix C++0x narrowing conversion errors in Clang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk at 137552 91177308-0d34-0410-b5e6-96231b3b80d8 For llvm: commit 7dcd04abe0b0b1dbfb285faea2daece50f9aa502 Author: Bob Wilson Date: Sat Aug 13 05:14:55 2011 +0000 Expand VMOVQQQQ pseudo instructions. Apparently we never added code to expand these pseudo instructions, and in over a year, no one has noticed. Our register allocator must be awesome! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk at 137551 91177308-0d34-0410-b5e6-96231b3b80d8 $ ~/repos/llvm-build/bin/clang -c ../net/ipv4/ip_output.i -o /dev/null -O0 -w clang-3.0: /home/latest/repos/llvm/tools/clang/lib/CodeGen/CodeGenFunction.cpp:254: void clang::CodeGen::CodeGenFunction::StartFunction(clang::GlobalDecl, clang::QualType, llvm::Function*, const clang::CodeGen::CGFunctionInfo&, const clang::CodeGen::FunctionArgList&, clang::SourceLocation): Assertion `CurFn->isDeclaration() && "Function already has body?"' failed. Stack dump: 0. Program arguments: /home/latest/repos/llvm-build/bin/clang-3.0 -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name ip_output.i -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -momit-leaf-frame-pointer -coverage-file /dev/null -resource-dir /home/latest/repos/llvm-build/bin/../lib/clang/3.0 -O0 -w -ferror-limit 19 -fmessage-length 149 -fdiagnostics-show-option -fcolor-diagnostics -o /dev/null -x cpp-output ../net/ipv4/ip_output.i 1. /home/latest/linux1/net/ipv4/ip_output.c:1421:45: current parser token 'extern' 2. /home/latest/linux1/net/ipv4/ip_output.c:1421:30: LLVM IR generation of declaration 'ip_send_check' 3. /home/latest/linux1/net/ipv4/ip_output.c:86:17: Generating code for declaration 'ip_send_check' clang-3: error: unable to execute command: Aborted clang-3: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang-3: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang-3: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 15 09:00:51 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 09:00:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 10644] clang considers a method with rvalue reference ambiguous In-Reply-To: References: Message-ID: <20110815140051.803212A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10644 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2011-08-15 09:00:51 CDT --- Fixed in Clang r137608 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 15 11:04:25 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 11:04:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 10658] New: MCValue::getAssociatedSection() is missing Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10658 Summary: MCValue::getAssociatedSection() is missing Product: new-bugs Version: 2.9 Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: llvm.org at schrieb.de CC: llvmbugs at cs.uiuc.edu MCValue::getAssociatedSection() is declared in include/llvm/MC/MCValue.h but neither implemented there nor in lib/MC/MCValue.cpp When I try to use it (in LLVM 2.9), I get "unresolved symbols". Probably it is simply not implemented? From what I see in SVN-trunk it seems to be still missing. Cheers, Jonas -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 15 11:50:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 11:50:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 10659] New: Missing type in constructor argument list gives poor error message Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10659 Summary: Missing type in constructor argument list gives poor error message Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: fischman at chromium.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com clang r136602 gives uninformative error messages for undeclared types used in constructor arguments. IWBN if instead of the following it actually said something to the effect of "Unknown type: Bar". $ clang++ -c t.cc t.cc:2:10: error: expected ')' Foo(Bar* b) {} ^ t.cc:2:6: note: to match this '(' Foo(Bar* b) {} ^ t.cc:2:15: error: function definition does not declare parameters Foo(Bar* b) {} ^ 2 errors generated. This is t.cc: struct Foo { Foo(Bar* b) {} }; -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 15 12:14:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 12:14:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 10660] New: Assertion failed: (SS.isNotEmpty() && "valid templated tag with no SS and no direct?") Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10660 Summary: Assertion failed: (SS.isNotEmpty() && "valid templated tag with no SS and no direct?") Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: david at rothlis.net CC: llvmbugs at cs.uiuc.edu The following cpp file causes clang to crash: struct A { template <> friend class B; }; $ ~/work/clang/build/Debug+Asserts/bin/clang++ -v clang_crash.cpp clang version 3.0 (http://llvm.org/git/clang.git 9f85d3ecf04764cea18d131dd2f56116d9fcf2c4) Target: x86_64-apple-darwin11.0.1 Thread model: posix "/Users/drothlis/work/clang/build/Debug+Asserts/bin/clang" -cc1 -triple x86_64-apple-macosx10.7.0 -emit-obj -mrelax-all -disable-free -main-file-name clang_crash.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 123.2.1 -v -resource-dir /Users/drothlis/work/clang/build/Debug+Asserts/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length 133 -stack-protector 1 -fblocks -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/v5/zd0hjrsj7mz43nwfqrfdpz640000gn/T/cc-jbgS5R.o -x c++ clang_crash.cpp clang -cc1 version 3.0 based upon llvm 3.0svn hosted on x86_64-apple-darwin11.0.1 ignoring nonexistent directory "/usr/include/c++/4.2.1/i686-apple-darwin10/x86_64" ignoring nonexistent directory "/usr/include/c++/4.0.0" ignoring nonexistent directory "/usr/include/c++/4.0.0/i686-apple-darwin8/" ignoring nonexistent directory "/usr/include/c++/4.0.0/backward" ignoring nonexistent directory "/usr/local/include" #include "..." search starts here: #include <...> search starts here: /usr/include/c++/4.2.1 /usr/include/c++/4.2.1/backward /Users/drothlis/work/clang/build/Debug+Asserts/bin/../lib/clang/3.0/include /usr/include /System/Library/Frameworks (framework directory) /Library/Frameworks (framework directory) End of search list. clang_crash.cpp:2:5: error: extraneous 'template<>' in declaration of class 'B' template <> ^ Assertion failed: (SS.isNotEmpty() && "valid templated tag with no SS and no direct?"), function ActOnTemplatedFriendTag, file /Users/drothlis/work/clang/llvm/tools/clang/lib/Sema/SemaDeclCXX.cpp, line 8324. 0 clang 0x0000000104a65e43 _ZL15PrintStackTracePv + 51 1 clang 0x0000000104a6639d _ZL13SignalHandleri + 333 2 libsystem_c.dylib 0x00007fff8b61dcfa _sigtramp + 26 3 libsystem_c.dylib 0x00007fff62432518 _sigtramp + 18446744073019672632 4 clang 0x0000000104a65d0f raise + 31 5 clang 0x0000000104a65d40 abort + 16 6 clang 0x0000000104a65e0d __assert_rtn + 189 7 clang 0x0000000102d95fa0 clang::Sema::ActOnTemplatedFriendTag(clang::Scope*, clang::SourceLocation, unsigned int, clang::SourceLocation, clang::CXXScopeSpec&, clang::IdentifierInfo*, clang::SourceLocation, clang::AttributeList*, clang::ASTMultiPtr) + 874 8 clang 0x0000000102c21662 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 7106 9 clang 0x0000000102c0ea83 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 10351 10 clang 0x0000000102c1d120 clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject*) + 2654 11 clang 0x0000000102c65ba1 clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::AccessSpecifier) + 155 12 clang 0x0000000102c66a6a clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 1524 13 clang 0x0000000102c6147a clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 250 14 clang 0x0000000102c1cdcc clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject*) + 1802 15 clang 0x0000000102c1f766 clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int, clang::Decl*) + 2750 16 clang 0x0000000102c21aa4 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 8196 17 clang 0x0000000102c0ea83 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 10351 18 clang 0x0000000102c708a5 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&, clang::AccessSpecifier) + 109 19 clang 0x0000000102c70ec4 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::AccessSpecifier) + 94 20 clang 0x0000000102c71d71 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 3711 21 clang 0x0000000102c722b4 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 378 22 clang 0x0000000102bf972b clang::ParseAST(clang::Sema&, bool) + 523 23 clang 0x00000001028a2721 clang::ASTFrontendAction::ExecuteAction() + 371 24 clang 0x0000000102bb299e clang::CodeGenAction::ExecuteAction() + 1238 25 clang 0x00000001028a28b9 clang::FrontendAction::Execute() + 401 26 clang 0x000000010287fa4a clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1082 27 clang 0x000000010284a1d1 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1201 28 clang 0x000000010283ce1f cc1_main(char const**, char const**, char const*, void*) + 1247 29 clang 0x0000000102846d43 main + 643 30 clang 0x000000010283c934 start + 52 Stack dump: 0. Program arguments: /Users/drothlis/work/clang/build/Debug+Asserts/bin/clang -cc1 -triple x86_64-apple-macosx10.7.0 -emit-obj -mrelax-all -disable-free -main-file-name clang_crash.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 123.2.1 -v -resource-dir /Users/drothlis/work/clang/build/Debug+Asserts/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length 133 -stack-protector 1 -fblocks -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/v5/zd0hjrsj7mz43nwfqrfdpz640000gn/T/cc-jbgS5R.o -x c++ clang_crash.cpp 1. clang_crash.cpp:3:19: current parser token ';' 2. clang_crash.cpp:1:1: parsing struct/union/class body 'A' clang: error: unable to execute command: Illegal instruction: 4 clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Preprocessed source(s) are located at: clang: note: diagnostic msg: /var/folders/v5/zd0hjrsj7mz43nwfqrfdpz640000gn/T/cc-ihVRrR.ii -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 15 13:59:18 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 13:59:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 10661] New: clang doesn't warn on missing [super dealloc] call Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10661 Summary: clang doesn't warn on missing [super dealloc] call Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nicolasweber at gmx.de CC: llvmbugs at cs.uiuc.edu tests-MacBook-Pro-2:src test$ cat test.m #include @interface A : NSObject @end @implementation A - (void)dealloc { } @end tests-MacBook-Pro-2:src test$ gcc -Wall -c test.m test.m:8: warning: method possibly missing a [super dealloc] call tests-MacBook-Pro-2:src test$ third_party/llvm-build/Release+Asserts/bin/clang -Wall -c test.m tests-MacBook-Pro-2:src test$ This is a very useful gcc 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 Mon Aug 15 14:07:00 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 14:07:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 10662] New: Incorrect code generation for taking address of a label Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10662 Summary: Incorrect code generation for taking address of a label Product: dragonegg Version: unspecified Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: New Bugs AssignedTo: baldrick at free.fr ReportedBy: feeley at iro.umontreal.ca CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7071) --> (http://llvm.org/bugs/attachment.cgi?id=7071) Compile this program with LLVM gcc and -O1 to exhibit the bug Taking the address of a label, as in &&foo where foo is a label, does not generate correct code. This is used extensively in the C code generated by the Gambit Scheme compiler for implementing tail calls in C with computed gotos, i.e. goto *pc. See attachment for details. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 15 14:35:20 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 14:35:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 10663] New: llvm-link segfault on alias Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10663 Summary: llvm-link segfault on alias Product: new-bugs Version: 2.9 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=7072) --> (http://llvm.org/bugs/attachment.cgi?id=7072) first file - bitboard64.ll $ llvm-link -o /dev/null bitboard64.ll hexxagonboard.ll ... Stack dump: 0. Program arguments: llvm-link -o /dev/null bitboard64.ll hexxagonboard.ll 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 Mon Aug 15 15:11:18 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 15:11:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 10662] Incorrect code generation for taking address of a label In-Reply-To: References: Message-ID: <20110815201118.CAB382A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10662 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |INVALID --- Comment #2 from Eli Friedman 2011-08-15 15:11:18 CDT --- I can reproduce, but it's not an issue with current LLVM; please file issues with Apple developer tools at bugreport.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 Mon Aug 15 16:30:14 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 16:30:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 10165] llvm-mc: floating point load shown as invalid with i386 target In-Reply-To: References: Message-ID: <20110815213016.1A9632A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10165 Kay Tiong Khoo changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Kay Tiong Khoo 2011-08-15 16:30:14 CDT --- Looks like this is fixed as of rev 135913. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 15 16:33:43 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 16:33:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 10664] New: i386-only mode instructions are not shown as invalid in x86_64 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10664 Summary: i386-only mode instructions are not shown as invalid in x86_64 Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: kkhoo at perfwizard.com CC: llvmbugs at cs.uiuc.edu According to the "Intel? 64 and IA-32 Architectures Software Developer?s Manual Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 3-23: AAA?ASCII Adjust After Addition 64-bit: Invalid Using llvm-mc built from trunk revision 135913: $ echo '0x37'| ./llvm-mc -disassemble -triple="i386" aaa $ echo '0x37'| ./llvm-mc -disassemble -triple="x86_64" aaa There are many 32-bit only instructions that are similar to 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 Aug 15 16:47:42 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 16:47:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 10656] [SSE] v4f64 = insert_subvector crash In-Reply-To: References: Message-ID: <20110815214742.E1D972A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10656 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Bruno Cardoso Lopes 2011-08-15 16:47:42 CDT --- Hi Nadav, Yes, sounds right! But better yet is the fact the we don't even need to combine those nodes when avx isn't supported, just because there would be no improvement at all. Just fixed in r137661. Btw, thanks for the revision number, I was already considering a bitsec! :D -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 15 16:56:23 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 16:56:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 10627] [AVX] cannot select v4i64 = vector_shuffle crash In-Reply-To: References: Message-ID: <20110815215623.735FB2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10627 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bruno.cardoso at gmail.com Resolution| |INVALID --- Comment #2 from Bruno Cardoso Lopes 2011-08-15 16:56:23 CDT --- Works for me in 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 Mon Aug 15 18:19:04 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 18:19:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 10665] New: volatile load handling bug Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10665 Summary: volatile load handling bug Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: echristo at gmail.com CC: llvmbugs at cs.uiuc.edu Reopening 3320 for clang: void test(volatile int *a) { // should be a volatile load. a[0]; } and it currently isn't. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 15 18:35:52 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 18:35:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 10666] New: definition not emitted for friend operator overload inside instantiated template class Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10666 Summary: definition not emitted for friend operator overload inside instantiated template class Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu This testcase involves templates, friends and operator overloading: struct Empty {}; template struct Helper { void Method(const Helper &bbox1) { Helper d; } friend void operator<<(Empty &, const Helper &) {} }; void test(Helper helper) { Empty os; os << helper; } Clang does not emit the definition of operator<< (_ZlsR5EmptyRK6HelperIdE to be specific) even though it emits a call to 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 Mon Aug 15 18:37:18 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 18:37:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 10625] [AVX] llvm-objdump incorrectly prints vmovmskps as movmskps In-Reply-To: References: Message-ID: <20110815233718.A10B72A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10625 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Bruno Cardoso Lopes 2011-08-15 18:37:18 CDT --- Fixed in r137684! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 15 18:46:36 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 18:46:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 10667] New: __restrict on methods? Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10667 Summary: __restrict on methods? Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: echristo at gmail.com CC: llvmbugs at cs.uiuc.edu llvm/test/FrontendC++/2007-08-01-RestrictMethod.cpp has this code: class foo { int member[4]; void bar(int * a); }; void foo::bar(int * a) __restrict { member[3] = *a; } that clang rejects: /Volumes/Data/sources/llvm/tools/clang/test/CodeGenCXX/2007-08-01-RestrictMethod.cpp:11:11: error: out-of-line definition of 'bar' does not match any declaration in 'foo' void foo::bar(int * a) __restrict { ~~~~~^ /Volumes/Data/sources/llvm/tools/clang/test/CodeGenCXX/2007-08-01-RestrictMethod.cpp:7:8: note: member declaration nearly matches void bar(int * a); ^ 1 error generated. and llvm-gcc accepts. Not quite sure what we should do for this and whether or not we should accept the 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 Aug 15 18:49:57 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 18:49:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 10665] volatile load handling bug In-Reply-To: References: Message-ID: <20110815234957.17C052A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10665 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |rjmccall at apple.com Resolution| |INVALID --- Comment #3 from John McCall 2011-08-15 18:49:56 CDT --- C++ is different; l-values are not implicitly converted to r-values here. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 15 19:20:42 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 19:20:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 10668] New: GCC 4.X doesn't compile Clang on Sparc Solaris Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10668 Summary: GCC 4.X doesn't compile Clang on Sparc Solaris Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: javpicorel at gmail.com CC: llvmbugs at cs.uiuc.edu Machine: SunOS parsapc12 5.10 Generic_142909-17 sun4u sparc SUNW,Sun-Blade-1000 GCC: Using built-in specs. Target: sparc-sun-solaris2.10 Configured with: ../configure --with-gnu-as --with-as=/usr/local/bin/as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++ --with-gmp=/usr/local --with-mpfr=/usr/local --prefix=/export/home/parsa/tools/gcc4.3.3 Thread model: posix gcc version 4.3.3 (GCC) LLVM: trunk Clang: trunk I've tried GCC 4.3.3, GCC 4.5.3 and GCC 4.7.0 and they misscompile this clang library: /export/home/picorel/filesCloud9/llvm-trunk/obj-debug/tools/clang/lib/AST/ Stmt.cpp This types of errors: /export/home/picorel/filesCloud9/llvm-trunk/obj-debug/tools/clang/lib/AST/../../ include/clang/AST/StmtNodes.inc:15: error: cannot convert 'clang::SourceRange (clang::AsmStmt::*)()const' to 'clang::SourceRange (clang::Stmt::*)()' for argument '1' to '::bad::implements_getSourceRange(clang::SourceRange (clang::Stmt::*) I don't know if this is a clang or gcc problem. Regards -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 15 19:28:09 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 19:28:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 10668] GCC 4.X doesn't compile Clang on Sparc Solaris In-Reply-To: References: Message-ID: <20110816002809.6030E2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10668 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |DUPLICATE --- Comment #1 from Eli Friedman 2011-08-15 19:28:08 CDT --- You already have a bug open about this. *** This bug has been marked as a duplicate of bug 10652 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 15 20:16:48 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 20:16:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 10669] New: regression: not emitting typeinfo Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10669 Summary: regression: not emitting typeinfo Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu This is a regression. In this testcase: class Empty {}; struct Base { virtual ~Base() {} }; struct Derived : public Base { explicit Derived(const Empty&); }; void helper() { Empty *e; Derived d(*e); } we should emit the typeinfo for Base, but we don't. We used to, and gcc does. There's no reason to think that it will be supplied by another translation unit. $ clang x.cc -c -o x.o $ nm x.o 0000000000000000 T _Z6helperv 0000000000000000 W _ZN4BaseD2Ev U _ZN7DerivedC1ERK5Empty 0000000000000000 W _ZN7DerivedD1Ev 0000000000000000 W _ZN7DerivedD2Ev $ clang-old x.cc -c -o x.o $ nm x.o 0000000000000000 r GCC_except_table4 0000000000000028 r GCC_except_table6 U _Unwind_Resume_or_Rethrow 0000000000000000 T _Z6helperv 0000000000000000 W _ZN4BaseD0Ev 0000000000000000 W _ZN4BaseD1Ev 0000000000000000 W _ZN4BaseD2Ev U _ZN7DerivedC1ERK5Empty 0000000000000000 W _ZN7DerivedD0Ev 0000000000000000 W _ZN7DerivedD1Ev 0000000000000000 W _ZN7DerivedD2Ev 0000000000000000 V _ZTI4Base 0000000000000000 V _ZTI7Derived 0000000000000000 V _ZTS4Base 0000000000000000 V _ZTS7Derived 0000000000000000 V _ZTV4Base 0000000000000000 V _ZTV7Derived U _ZTVN10__cxxabiv117__class_type_infoE U _ZTVN10__cxxabiv120__si_class_type_infoE U _ZdlPv U __gxx_personality_v0 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 15 21:03:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 21:03:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 10670] New: Segmentation fault while compiling kvirc Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10670 Summary: Segmentation fault while compiling kvirc Product: clang Version: 2.9 Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: luxo at hotmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com While compiling kvirc 4.0.4 (www.kvirc.net) with clang, there is a segmentation fault. The configure is: CC='clang' CXX='clang++' cmake . ***** the output: [ 40%] Building CXX object src/kvirc/CMakeFiles/kvirc.dir/ui/kvi_ircview_events.cpp.o [ 40%] Building CXX object src/kvirc/CMakeFiles/kvirc.dir/ui/kvi_ircview_gettextline.cpp.o Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple i386-portbld-freebsd8.2 -emit-obj -disable-free -disable-llvm-verifier -main-file-name kvi_ircview_gettextline.cpp -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu i486 -target-linker-version 2.15 -momit-leaf-frame-pointer -resource-dir /usr/local/bin/../lib/clang/2.9 -D _GNU_SOURCE -D QT_NO_STL -D QT_NO_CAST_TO_ASCII -D _REENTRANT -D KDE_DEPRECATED_WARNINGS -D KDE4_CMAKE_TOPLEVEL_DIR_LENGTH=8 -D QT_WEBKIT_LIB -D QT_GUI_LIB -D QT_DBUS_LIB -D QT_XML_LIB -D QT_SQL_LIB -D QT_NETWORK_LIB -D QT_CORE_LIB -D PYTHON_VERSION=2.7.2 -I /usr/local/kde4/include -I /usr/local/kde4/include/KDE -I /usr/local/include/qt4/phonon -I /usr/local/include/qt4/QtXmlPatterns -I /usr/local/include/qt4/QtXml -I /usr/local/include/qt4/QtWebKit -I /usr/local/include/qt4/QtUiTools -I /usr/local/include/qt4/QtTest -I /usr/local/include/qt4/QtSvg -I /usr/local/include/qt4/QtSql -I /usr/local/include/qt4/QtScriptTools -I /usr/local/include/qt4/QtScript -I /usr/local/include/qt4/QtOpenGL -I /usr/local/include/qt4/QtNetwork -I /usr/local/include/qt4/QtMultimedia -I /usr/local/include/qt4/QtHelp -I /usr/local/include/qt4/QtDesigner -I /usr/local/include/qt4/QtDeclarative -I /usr/local/include/qt4/QtDBus -I /usr/local/include/qt4/QtAssistant -I /usr/local/include/qt4/Qt3Support -I /usr/local/include/qt4/QtGui -I /usr/local/include/qt4/QtCore -I /usr/local/include/qt4/Qt -I /usr/local/share/qt4/mkspecs/default -I /usr/local/include/qt4 -I /usr/local/include -I /usr/local/include/python2.7 -I /z/x/tmp/kvirc-4.0.4 -I /z/x/tmp/kvirc-4.0.4/src/kvirc/kernel -I /z/x/tmp/kvirc-4.0.4/src/kvirc/kvs -I /z/x/tmp/kvirc-4.0.4/src/kvirc/module -I /z/x/tmp/kvirc-4.0.4/src/kvirc/sparser -I /z/x/tmp/kvirc-4.0.4/src/kvirc/ui -I /z/x/tmp/kvirc-4.0.4/src/kvirc/../kvilib/tal -I /z/x/tmp/kvirc-4.0.4/src/kvirc/../kvilib/config -I /z/x/tmp/kvirc-4.0.4/src/kvirc/../kvilib/core -I /z/x/tmp/kvirc-4.0.4/src/kvirc/../kvilib/ext -I /z/x/tmp/kvirc-4.0.4/src/kvirc/../kvilib/file -I /z/x/tmp/kvirc-4.0.4/src/kvirc/../kvilib/irc -I /z/x/tmp/kvirc-4.0.4/src/kvirc/../kvilib/net -I /z/x/tmp/kvirc-4.0.4/src/kvirc/../kvilib/system -O3 -ferror-limit 19 -fmessage-length 96 -fcxx-exceptions -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o CMakeFiles/kvirc.dir/ui/kvi_ircview_gettextline.cpp.o -x c++ /z/x/tmp/kvirc-4.0.4/src/kvirc/ui/kvi_ircview_gettextline.cpp 1. parser at end of file 2. Per-module optimization passes 3. Running pass 'CallGraph Pass Manager' on module '/z/x/tmp/kvirc-4.0.4/src/kvirc/ui/kvi_ircview_gettextline.cpp'. 4. Running pass 'Loop Pass Manager' on function '@_ZN10KviIrcView11getTextLineEiPKtP15_KviIrcViewLineb' 5. Running pass 'Rotate Loops' on basic block '%231' clang: error: unable to execute command: Segmentation fault: 11 (core dumped) clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) *** Error code 255 Stop in /z/x/tmp/kvirc-4.0.4. *** Error code 1 Stop in /z/x/tmp/kvirc-4.0.4. *** Error code 1 Stop in /z/x/tmp/kvirc-4.0.4. ***** gdb output: (gdb) bt #0 0x094f7cba in llvm::Value::getContext () #1 0x094f8470 in llvm::ValueHandleBase::AddToUseList () #2 0x091f0da5 in llvm::ValueHandleBase::operator= () #3 0x091f02de in llvm::createLoopRotatePass () #4 0x091f0c39 in llvm::createLoopRotatePass () #5 0x0939666b in llvm::LPPassManager::runOnFunction () #6 0x094e4f6c in llvm::FPPassManager::runOnFunction () #7 0x09350c85 in llvm::CallGraphSCC::ReplaceNode () #8 0x094e4c39 in llvm::MPPassManager::runOnModule () #9 0x094e4d02 in llvm::PassManagerImpl::run () #10 0x094e4d57 in llvm::PassManager::run () #11 0x0838d939 in clang::EmitBackendOutput () #12 0x0838a869 in clang::BackendConsumer::HandleTranslationUnit () #13 0x0850b0eb in clang::ParseAST () #14 0x08273b67 in clang::ASTFrontendAction::ExecuteAction () #15 0x08389ab1 in clang::CodeGenAction::ExecuteAction () #16 0x08273e92 in clang::FrontendAction::Execute () #17 0x0825a983 in clang::CompilerInstance::ExecuteAction () #18 0x0823653d in clang::ExecuteCompilerInvocation () #19 0x0822d10e in cc1_main () #20 0x08235096 in main () -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Aug 15 22:43:49 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 15 Aug 2011 22:43:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 10669] regression: not emitting typeinfo In-Reply-To: References: Message-ID: <20110816034349.46A152A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10669 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #4 from Nick Lewycky 2011-08-15 22:43:48 CDT --- GCC (and old clang) would emit the symbols even though they didn't have to, and this is a bug in user code. Sorry 'bout that! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Aug 16 04:12:25 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 16 Aug 2011 04:12:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 10671] New: Compiling a single file takes several minutes Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10671 Summary: Compiling a single file takes several minutes Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: tobias.hunger at gmx.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=7076) --> (http://llvm.org/bugs/attachment.cgi?id=7076) Problematic file When building the attached file using clang++ -g -O2 -c -o mp_comba.o ./mp_comba.cpp the compile takes several minutes to complete. This seems to be related to the combination of -O2 and -g as both of the following commands complete rather fast: clang++ -O2 -c -o mp_comba.o ./mp_comba.cpp clang++ -g -O1 -c -o mp_comba.o ./mp_comba.cpp The result of this issue is that clang is no longer an option to build Qt or Qt Creator with: In both projects there are several files like this one! This issue is a regression: My last checkout from last month did not have this 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 Tue Aug 16 08:08:08 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 16 Aug 2011 08:08:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 10672] New: Unhelpful error message for out-of-line definition of template class's member function template Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10672 Summary: Unhelpful error message for out-of-line definition of template class's member function template Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: david at rothlis.net CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com For the following invalid C++ code: template struct A { template void f(); }; template void A::f() { } Clang's error message is: test.cpp:6:1: error: too many template parameters in template redeclaration template ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ test.cpp:1:1: note: previous template declaration is here template ^~~~~~~~~~~~~~~~~~~~~ test.cpp:7:12: error: out-of-line definition of 'f' does not match any declaration in 'A' void A::f() { ~~~~~~^ 2 errors generated. GCC's error message is actually much *more* helpful: test.cpp:7: error: prototype for ?void A::f()? does not match any in class ?A? test.cpp:4: error: candidate is: template template void A::f() test.cpp:7: error: template definition of non-template ?void A::f()? in that it shows the desired syntax: template template void A::f() { ... Most people are unlikely to get this syntax right on the first try, so I think the error message is important. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 16 08:46:41 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 16 Aug 2011 08:46:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 10673] New: Add a 'disable-pass=' switch to 'opt'. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10673 Summary: Add a 'disable-pass=' switch to 'opt'. Product: new-bugs Version: 2.9 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: anders.riggelsen at gmail.com CC: llvmbugs at cs.uiuc.edu Component: 'opt' - LLVM optimizer A single optimization pass in 'opt' is giving a third party backend I'm using some problems. It would be a nice addition to add a command line switch to disable specific optimizations after they have been added by the convenience optimization switches like -O1..3, -std-link-opts, -std-compile-opts ect ect... For example the -scalarrepl pass turns [16 x float] into i512 in some places. The Javascript backend 'Emscripten' doesn't like this transformation as it doesn't support that big values. There is currently no way to disable an optimization pass in an easy way. Only workaround: (but horrible) Don't use convenience switches and specify all optimization passes manually - excluding the ones you don't like. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 16 08:55:18 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 16 Aug 2011 08:55:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 10658] MCValue::getAssociatedSection() is missing In-Reply-To: References: Message-ID: <20110816135518.4FC7D2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10658 Rafael ?vila de Esp?ndola 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 Aug 16 09:23:41 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 16 Aug 2011 09:23:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 10674] New: llvm::DAGTypeLegalizer::SetScalarizedVector(llvm::SDValue, llvm::SDValue): Assertion `Result.getValueType() == Op.getValueType().getVectorElementType() && "Invalid type for scalarized vector"' failed. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10674 Summary: llvm::DAGTypeLegalizer::SetScalarizedVector(llvm::SDVa lue, llvm::SDValue): Assertion `Result.getValueType() == Op.getValueType().getVectorElementType() && "Invalid type for scalarized vector"' failed. Product: libraries Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: nadav.rotem at intel.com CC: llvmbugs at cs.uiuc.edu llc: /nfs/iil/disks/cvcc/nrotem/llvm/llvm-head/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp:756: void llvm::DAGTypeLegalizer::SetScalarizedVector(llvm::SDValue, llvm::SDValue): Assertion `Result.getValueType() == Op.getValueType().getVectorElementType() && "Invalid type for scalarized vector"' failed. 0 llc 0x00000000015e002a 1 llc 0x00000000015e05b8 2 libpthread.so.0 0x00002aaaaabd4d60 3 libc.so.6 0x00002aaaab275f45 gsignal + 53 4 libc.so.6 0x00002aaaab277340 abort + 272 5 libc.so.6 0x00002aaaab26f486 __assert_fail + 246 6 llc 0x00000000010e94c1 7 llc 0x0000000001103482 8 llc 0x00000000010ea93f 9 llc 0x00000000010eb2d6 llvm::SelectionDAG::LegalizeTypes() + 50 10 llc 0x000000000108b565 llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 1025 11 llc 0x000000000108d842 llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator, llvm::ilist_iterator, bool&) + 230 12 llc 0x000000000108e1a4 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 2400 13 llc 0x000000000108e723 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 849 14 llc 0x00000000011d8cf1 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 85 15 llc 0x0000000001518db7 llvm::FPPassManager::runOnFunction(llvm::Function&) + 371 16 llc 0x0000000001518fb4 llvm::FPPassManager::runOnModule(llvm::Module&) + 86 17 llc 0x0000000001518a63 llvm::MPPassManager::runOnModule(llvm::Module&) + 381 18 llc 0x000000000151a230 llvm::PassManagerImpl::run(llvm::Module&) + 116 19 llc 0x000000000151a293 llvm::PassManager::run(llvm::Module&) + 33 20 llc 0x0000000000b3737d main + 2403 21 libc.so.6 0x00002aaaab263304 __libc_start_main + 244 22 llc 0x0000000000b35ac9 Stack dump: 0. Program arguments: /nfs/iil/disks/cvcc/nrotem/llvm/llvm-head/build/Debug+Asserts/bin//llc temp.ll -march=x86-64 -mattr=+avx -o /dev/null 1. Running pass 'Function Pass Manager' on module 'temp.ll'. 2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@autogen_13617_5000' ; ModuleID = 'bugpoint-reduced-simplified.bc' target triple = "x86_64-unknown-linux-gnu" define void @autogen_13617_5000(i8*) { BB: %S240 = icmp ule <8 x i8> undef, undef %E330 = extractelement <8 x i1> %S240, i32 4 %S369 = select i1 %E330, i8 undef, i8 -65 store i8 %S369, i8* %0 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 Aug 16 12:01:54 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 16 Aug 2011 12:01:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 10670] Segmentation fault while compiling kvirc In-Reply-To: References: Message-ID: <20110816170154.5E0662A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10670 Benjamin Kramer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #4 from Benjamin Kramer 2011-08-16 12:01:53 CDT --- I can't reproduce the crash here. It was probably fixed since 2.9, please try clang from svn trunk. If you can still reproduce the crash with trunk, feel free to reopen 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 Tue Aug 16 14:53:39 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 16 Aug 2011 14:53:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 10675] New: Cannot check the code out Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10675 Summary: Cannot check the code out Product: Website Version: unspecified Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: General Website AssignedTo: unassignedbugs at nondot.org ReportedBy: mandaris.moore at gmail.com CC: llvmbugs at cs.uiuc.edu I'm trying to check the code out and it isn't working for me. http://llvm.org/svn/llvm-project/llvm/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 Tue Aug 16 15:10:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 16 Aug 2011 15:10:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 10675] Cannot check the code out In-Reply-To: References: Message-ID: <20110816201010.07B032A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10675 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |WORKSFORME --- Comment #1 from Eli Friedman 2011-08-16 15:10:09 CDT --- The server appears to be working; maybe there's something wrong with your connection? See also http://llvm.org/docs/GettingStarted.html#checkout . -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 16 17:16:45 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 16 Aug 2011 17:16:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 10676] New: [x86 disassembler] L bit in VEX prefix is not ignored properly Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10676 Summary: [x86 disassembler] L bit in VEX prefix is not ignored properly Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: kkhoo at perfwizard.com CC: llvmbugs at cs.uiuc.edu According to the "Intel? 64 and IA-32 Architectures Software Developer?s Manual Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 3-42: ADDSD?Add Scalar Double-Precision Floating-Point Values VEX.NDS.LIG.F2.0F.WIG 58 /r "LIG" in the above spec is defined on p. 3-5: If VEX.LIG is present in the opcode column: The VEX.L value is ignored. With llvm-mc trunk revision 135913: $ echo '0xc5 0xf3 0x58 0xc0'| ./llvm-mc -disassemble -triple="x86_64" vaddsd %xmm0, %xmm1, %xmm0 $ echo '0xc5 0xf7 0x58 0xc0'| ./llvm-mc -disassemble -triple="x86_64" vaddps %ymm0, %ymm1, %ymm0 Setting the 'L' bit changed the disassembly from vaddsd to vaddps, but it shouldn't have affected anything according to the docs. Using the 3-byte VEX prefix has the same behavior: $ echo '0xc4 0xc1 0x73 0x58 0xc0'| ./llvm-mc -disassemble -triple="x86_64" vaddsd %xmm8, %xmm1, %xmm0 $ echo '0xc4 0xc1 0x77 0x58 0xc0'| ./llvm-mc -disassemble -triple="x86_64" vaddps %ymm8, %ymm1, %ymm0 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 16 17:24:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 16 Aug 2011 17:24:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 10677] New: Encoding issue with avx SIB dest Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10677 Summary: Encoding issue with avx SIB dest Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: pete.cooper at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7078) --> (http://llvm.org/bugs/attachment.cgi?id=7078) Patch to x86 code emitter and test case Have found an issue with this assembly writing to a memory location vmovaps %xmm3, (%r14,%r11) The Intel spec says it should have the REX.X bit set to 1 to use r11, but the code emitter is not setting VEX.X to 0 (which sets REX.X to 1 as its inverted) I've found the issue is that the switch statement in EmitVEXOpcodePrefix is checking for MRMSrcReg but not MRMDestReg when checking whether to set the VEX.X bit. I'm attaching a patch for this and a patch to the avx encoding test case which has the correct decoding according to binutils objdump. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 16 18:02:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 16 Aug 2011 18:02:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 10533] False positive garbage/undefined report In-Reply-To: References: Message-ID: <20110816230229.CE7442A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10533 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Ted Kremenek 2011-08-16 18:02:29 CDT --- I can reproduce with checker-257. This is indeed now fixed in 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 Tue Aug 16 18:29:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 16 Aug 2011 18:29:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 10678] New: [x86 disassembler] vandpd is not disassembled Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10678 Summary: [x86 disassembler] vandpd is not disassembled Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: kkhoo at perfwizard.com CC: llvmbugs at cs.uiuc.edu >From the "Intel? 64 and IA-32 Architectures Software Developer?s Manual Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 3-67: VEX.NDS.128.66.0F.WIG 54 /r VANDPD xmm1, xmm2, xmm3/m128 VEX.NDS.256.66.0F.WIG 54 /r VANDPD ymm1, ymm2, ymm3/m256 'VANDPD' can be specified with either the 2- or 3-byte VEX prefix (clang on OSX correctly assembles the following): vandpd %xmm2, %xmm1, %xmm3 vandpd %ymm13, %ymm1, %ymm0 The object file shows: C5 F1 54 DA C4 C1 75 54 C5 But using llvm-mc built from trunk revision 135913 produces the wrong output for these byte sequences: $ echo '0xc5 0xf1 0x54 0xda'| ./llvm-mc -disassemble -triple="x86_64" andps %xmm2, %xmm3 $ echo '0xc4 0xc1 0x75 0x54 0xc5'| ./llvm-mc -disassemble -triple="x86_64" andps %xmm13, %xmm0 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 16 20:28:11 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 16 Aug 2011 20:28:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 10679] New: Dragonegg miscompiles dlls/kernel32/tests/debugger.c from Wine Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10679 Summary: Dragonegg miscompiles dlls/kernel32/tests/debugger.c from Wine Product: dragonegg Version: trunk Platform: PC OS/Version: Linux Status: NEW Keywords: miscompilation Severity: normal Priority: P Component: New Bugs AssignedTo: baldrick at free.fr ReportedBy: austinenglish at gmail.com CC: llvmbugs at cs.uiuc.edu Depends on: 10639 Created an attachment (id=7080) --> (http://llvm.org/bugs/attachment.cgi?id=7080) preprocessed gcc and dragonegg files Dragonegg can compile wine successfully, aside from http://bugs.winehq.org/show_bug.cgi?id=28050. Running its test suite, however, shows a few problems. This is the second one (8 potential). To reproduce, compile wine with: $ CC=llvm-gcc ./configure $ make then run the test: $ cd dlls/kernel32/tests $ make debugger.ok this will fail: austin at debian:~/wine-llvmgcc/dlls/kernel32/tests$ make debugger.ok ... debugger.c:412: Test failed: exit code = c000001d debugger.c:480: Tests skipped: "none" debugger test needs user interaction wine: Unhandled illegal instruction at address 0x68776a23 (thread 0025), starting debugger... debugger.c:345: Test failed: wrong exit code : c000001d wine: Unhandled illegal instruction at address 0x68776a23 (thread 0029), starting debugger... wine: Unhandled illegal instruction at address 0x68776a23 (thread 002d), starting debugger... debugger.c:345: Test failed: wrong exit code : c000001d wine: Unhandled illegal instruction at address 0x68776a23 (thread 0031), starting debugger... debugger.c:345: Test failed: wrong exit code : c000001d make: *** [debugger.ok] Error 4 compiling that file with gcc-4.5 with gcc, or using -O0 instead works around the issue. I'll attach preprocessed source files from draognegg and gcc (versions below). If more info is needed, please don't hesitate to ask. austin at debian:~/wine-dragoneggsvn/dlls/kernel32/tests$ svn info ~/src/dragonegg/ Path: /home/austin/src/dragonegg URL: http://llvm.org/svn/llvm-project/dragonegg/trunk Repository Root: http://llvm.org/svn/llvm-project Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8 Revision: 137784 Node Kind: directory Schedule: normal Last Changed Author: baldrick Last Changed Rev: 137718 Last Changed Date: 2011-08-16 07:08:18 -0700 (Tue, 16 Aug 2011) austin at debian:~/wine-dragoneggsvn/dlls/kernel32/tests$ gcc-4.5 --version gcc-4.5 (Debian 4.5.3-5) 4.5.3 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 16 20:44:53 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 16 Aug 2011 20:44:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 10680] New: Dragonegg miscompiles dlls/oleaut32/tests/typelib.c from Wine Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10680 Summary: Dragonegg miscompiles dlls/oleaut32/tests/typelib.c from Wine Product: dragonegg Version: trunk Platform: PC OS/Version: Linux Status: NEW Keywords: miscompilation Severity: normal Priority: P Component: New Bugs AssignedTo: baldrick at free.fr ReportedBy: austinenglish at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7081) --> (http://llvm.org/bugs/attachment.cgi?id=7081) preprocessed gcc and dragonegg files Dragonegg can compile wine successfully, aside from http://bugs.winehq.org/show_bug.cgi?id=28050. Running its test suite, however, shows a few problems. This is the third one (8 potential). To reproduce, compile wine with: $ CC=llvm-gcc ./configure $ make then run the test: $ cd dlls/oleaut32/tests $ make typelib.ok this will fail: austin at debian:~/wine-llvmgcc/dlls/oleaut32/tests$ make typelib.ok typelib.c:753: Test failed: wrong arg2.Hi32 d10 typelib.c:754: Test failed: wrong arg2.Lo64 5555000000000000 typelib.c:755: Test failed: wrong arg3 type 5555 typelib.c:756: Test failed: wrong arg3 value 55555555 typelib.c:873: Test failed: DispCallFunc failed 80020010 compiling that file with gcc-4.5 with gcc, or using -O0 instead works around the issue. I'll attach preprocessed source files from draognegg and gcc (versions below). If more info is needed, please don't hesitate to ask. austin at debian:~/wine-dragoneggsvn/dlls/kernel32/tests$ svn info ~/src/dragonegg/ Path: /home/austin/src/dragonegg URL: http://llvm.org/svn/llvm-project/dragonegg/trunk Repository Root: http://llvm.org/svn/llvm-project Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8 Revision: 137784 Node Kind: directory Schedule: normal Last Changed Author: baldrick Last Changed Rev: 137718 Last Changed Date: 2011-08-16 07:08:18 -0700 (Tue, 16 Aug 2011) austin at debian:~/wine-dragoneggsvn/dlls/kernel32/tests$ gcc-4.5 --version gcc-4.5 (Debian 4.5.3-5) 4.5.3 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 16 20:50:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 16 Aug 2011 20:50:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 10681] New: Dragonegg miscompiles dlls/user32/win.c from Wine Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10681 Summary: Dragonegg miscompiles dlls/user32/win.c from Wine Product: dragonegg Version: trunk Platform: PC OS/Version: Linux Status: NEW Keywords: miscompilation Severity: normal Priority: P Component: New Bugs AssignedTo: baldrick at free.fr ReportedBy: austinenglish at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7082) --> (http://llvm.org/bugs/attachment.cgi?id=7082) preprocessed gcc and dragonegg files Dragonegg can compile wine successfully, aside from http://bugs.winehq.org/show_bug.cgi?id=28050. Running its test suite, however, shows a few problems. This is the fourth one. To reproduce, compile wine with: $ CC=llvm-gcc ./configure $ make then run the test: $ cd dlls/user32/tests $ make win.ok this will fail: austin at debian:~/wine-llvmgcc/dlls/user32/tests$ make win.ok win.c:5032: Test failed: creation failed err 0 win.c:5034: Test failed: invalid rect right 0 win.c:5035: Test failed: invalid rect bottom 0 win.c:5044: Test failed: creation failed err 0 win.c:5046: Test failed: invalid rect right 0 win.c:5048: Test failed: invalid rect bottom 0 compiling dlls/user32/win.c with gcc-4.5 with gcc, or using -O0 instead works around the issue. I'll attach preprocessed source files from draognegg and gcc (versions below). If more info is needed, please don't hesitate to ask. austin at debian:~/wine-dragoneggsvn/dlls/kernel32/tests$ svn info ~/src/dragonegg/ Path: /home/austin/src/dragonegg URL: http://llvm.org/svn/llvm-project/dragonegg/trunk Repository Root: http://llvm.org/svn/llvm-project Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8 Revision: 137784 Node Kind: directory Schedule: normal Last Changed Author: baldrick Last Changed Rev: 137718 Last Changed Date: 2011-08-16 07:08:18 -0700 (Tue, 16 Aug 2011) austin at debian:~/wine-dragoneggsvn/dlls/kernel32/tests$ gcc-4.5 --version gcc-4.5 (Debian 4.5.3-5) 4.5.3 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 16 20:52:27 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 16 Aug 2011 20:52:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 10682] New: [META] Compiling Wine with dragonegg Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10682 Summary: [META] Compiling Wine with dragonegg Product: dragonegg Version: trunk Platform: PC URL: http://www.winehq.org OS/Version: Linux Status: NEW Severity: normal Priority: P Component: New Bugs AssignedTo: baldrick at free.fr ReportedBy: austinenglish at gmail.com CC: llvmbugs at cs.uiuc.edu Depends on: 9702,10639,10640,10679,10680,10681 This is a meta-bug for issues compiling wine with Dragonegg (for issues Wine/Clang, see bug 10638). Inspired by bug 4068, bug 6815, and bug 7207. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 02:20:55 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 02:20:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 10683] New: Clang preprocessor crashes if the file contains "// \" characters Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10683 Summary: Clang preprocessor crashes if the file contains "// \" characters Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: eremeev at viva64.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The Clang preprocessor crashes with signal 1073740791 if the file it is processing contains the following character sequence: // \ The last backslash character('\') here must be followed by a newline character, and the next line after it should be empty. The crash occurs only if the preprocessor had been launched with -C command line option: clang.exe" -E -C "crash.cpp" The crash occurred originally in the file containing the following: if(GetFileAttributes(dirBuffer) == 0xFFFFFFFF) { //if no, i search in \system32\drivers\ ... } This code originally had been successfully preprocessed by Visual C++ preprocessor. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 06:04:00 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 06:04:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 10684] New: MPPassManager::addLowerLevelRequiredPass may crash Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10684 Summary: MPPassManager::addLowerLevelRequiredPass may crash Product: new-bugs Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: release blocker Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: gordon.haak at googlemail.com CC: llvmbugs at cs.uiuc.edu the call 'FPP->add' in line 1635 (revision 137072 of lib/VMCore/PassManager.cpp) may destroy the 'RequiredPass' if such a Pass is already scheduled. This results in a dangling pointer of 'RequiredPass' which is added to the LU container in line 1639. Finally this leads to a core dump. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 07:19:56 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 07:19:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 10685] New: "pragma comment" followed by a comment while clang is started with -C Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10685 Summary: "pragma comment" followed by a comment while clang is started with -C Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: eremeev at viva64.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Starting the Clang preprocessor with -E -C command line options for the following code: #pragma comment (lib, "winmm.lib") //some comment generates this error message: pragma_comment.cpp:1:36: error: pragma comment requires parenthesized identifier and optional string #pragma comment (lib, "winmm.lib") //some comment ^ :2:1: note: expanded from: /*some comment*/ ^ #line 1 "pragma_comment.cpp" #line 1 "pragma_comment.cpp" #line 1 "" #line 1 "" #line 144 "" #line 1 "" #line 1 "" #line 1 "pragma_comment.cpp" 1 error generated. Also, this code is successfully preprocessed by clang without -C switch and by MSVC compiler. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 07:21:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 07:21:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 10686] New: Segfault Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10686 Summary: Segfault Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pipping at exherbo.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=7084) --> (http://llvm.org/bugs/attachment.cgi?id=7084) delta-reduced input (not valid code but manages to make clang++ crash) pipping at bogus /home/pipping/foo % clang++ -c in.ii in.ii:1:102: error: expected ',' or '>' in template-parameter-list namespace Dune { namespace GenericGeometry { template< template< int > class Element, int 3 > ... ^ in.ii:1:104: error: expected unqualified-id namespace Dune { namespace GenericGeometry { template< template< int > class Element, int 3 > ... ^ in.ii:1:802: error: explicit specialization of non-template class 'CodimTable' ...template< int > class Element> class CodimTable< Element, -1 > { friend class CodimTable< ... ^ ~~~~~~~~~~~~~~~ in.ii:1:853: error: too many template arguments for class template 'CodimTable' ...-1 > { friend class CodimTable< Element, 0 >; typedef typename Dune::tuple<> ElementTuple; ... ^ ~~~ in.ii:1:802: note: template is declared here ...} }; template< template< int > class Element> class CodimTable< Element, -1 > { ... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ clang: DeclSpec.cpp:511: bool clang::DeclSpec::SetTypeSpecType(TST, clang::SourceLocation, clang::SourceLocation, const char *&, unsigned int &, ParsedType): Assertion `Rep && "no type provided!"' failed. 0 libLLVM-3.0svn.so 0x00007fea146e1dcf 1 libLLVM-3.0svn.so 0x00007fea146e2279 2 libpthread.so.0 0x00007fea138d9f10 3 libc.so.6 0x00007fea12bf85c5 gsignal + 53 4 libc.so.6 0x00007fea12bf98c5 abort + 389 5 libc.so.6 0x00007fea12bf1235 __assert_fail + 245 6 clang 0x00000000007988c1 7 clang 0x000000000077991c clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 4908 8 clang 0x000000000076b736 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 2710 9 clang 0x000000000077b812 clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject*) + 1986 10 clang 0x000000000077a43c clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int, clang::Decl*) + 1452 11 clang 0x0000000000779895 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 4773 12 clang 0x000000000076b736 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 2710 13 clang 0x0000000000758e68 clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::AccessSpecifier) + 696 14 clang 0x00000000007589e3 clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 723 15 clang 0x0000000000758660 clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 304 16 clang 0x000000000076a827 clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 327 17 clang 0x000000000076106b clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 1643 18 clang 0x00000000007766da clang::Parser::ParseInnerNamespace(std::vector >&, std::vector >&, std::vector >&, unsigned int, clang::SourceLocation&, clang::SourceLocation&, clang::ParsedAttributes&, clang::SourceLocation&) + 218 19 clang 0x000000000077628e clang::Parser::ParseNamespace(unsigned int, clang::SourceLocation&, clang::SourceLocation) + 3342 20 clang 0x000000000076a89a clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 442 21 clang 0x000000000076106b clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 1643 22 clang 0x00000000007766da clang::Parser::ParseInnerNamespace(std::vector >&, std::vector >&, std::vector >&, unsigned int, clang::SourceLocation&, clang::SourceLocation&, clang::ParsedAttributes&, clang::SourceLocation&) + 218 23 clang 0x000000000077628e clang::Parser::ParseNamespace(unsigned int, clang::SourceLocation&, clang::SourceLocation) + 3342 24 clang 0x000000000076a89a clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 442 25 clang 0x000000000076106b clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 1643 26 clang 0x0000000000760984 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 244 27 clang 0x0000000000749b3e clang::ParseAST(clang::Sema&, bool) + 318 28 clang 0x0000000000651c00 clang::CodeGenAction::ExecuteAction() + 768 29 clang 0x0000000000558c17 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 983 30 clang 0x0000000000543aab clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2779 31 clang 0x000000000053bb2c cc1_main(char const**, char const**, char const*, void*) + 6124 32 clang 0x0000000000540008 main + 632 33 libc.so.6 0x00007fea12be4c7d __libc_start_main + 253 34 clang 0x000000000053a279 Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name in.ii -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.1 -momit-leaf-frame-pointer -coverage-file in.o -resource-dir /usr/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length 118 -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o in.o -x c++-cpp-output in.ii 1. in.ii:1:877: current parser token ';' 2. in.ii:1:2: parsing namespace 'Dune' 3. in.ii:1:22: parsing namespace 'GenericGeometry' 4. in.ii:1:796: parsing struct/union/class body 'CodimTable' clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs. pipping at bogus /home/pipping/foo % This is with clang 3.0-git-a47027bbd8443593cec15bd7f1fc0eed38d4f904. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 09:02:01 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 09:02:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 10687] New: IPSCCP crashes on extractvalue Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10687 Summary: IPSCCP crashes on extractvalue 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: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu This is a recent regression; it is the cause of the dragonegg 64 bit buildbot failure. Testcase: define void @foo() { entry: %e = extractvalue { i64, i64 } undef, 1 ret void } To reproduce: $ opt -ipsccp -disable-output XCoreISelLowering.ll opt: llvm/lib/Transforms/Scalar/SCCP.cpp:379: {anonymous}::LatticeVal& {anonymous}::SCCPSolver::getValueState(llvm::Value*): Assertion `!V->getType()->isStructTy() && "Should use getStructValueState"' 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 Wed Aug 17 11:36:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 11:36:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 10688] New: [AVX] cannot select: v8i32 = bit_convert Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10688 Summary: [AVX] cannot select: v8i32 = bit_convert Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7085) --> (http://llvm.org/bugs/attachment.cgi?id=7085) test case If I run llc -mattr=+avx on the attached, using top-of-tree, I'm seeing: LLVM ERROR: Cannot select: 0x101829410: v8i32 = bit_convert 0x101829310 [ID=4] 0x101829310: v8f32 = BUILD_VECTOR 0x101829210, 0x101829210, 0x101829210, 0x101829210, 0x101829210, 0x101829210, 0x101829210, 0x101829210 [ID=3] 0x101829210: f32 = TargetConstantFP<0.000000e+00> [ID=2] 0x101829210: f32 = TargetConstantFP<0.000000e+00> [ID=2] 0x101829210: f32 = TargetConstantFP<0.000000e+00> [ID=2] 0x101829210: f32 = TargetConstantFP<0.000000e+00> [ID=2] 0x101829210: f32 = TargetConstantFP<0.000000e+00> [ID=2] 0x101829210: f32 = TargetConstantFP<0.000000e+00> [ID=2] 0x101829210: f32 = TargetConstantFP<0.000000e+00> [ID=2] 0x101829210: f32 = TargetConstantFP<0.000000e+00> [ID=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 Aug 17 11:38:41 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 11:38:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 10689] New: [AVX] Assertion failed: (Num < NumOperands && "Invalid child # of SDNode!"), Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10689 Summary: [AVX] Assertion failed: (Num < NumOperands && "Invalid child # of SDNode!"), Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7086) --> (http://llvm.org/bugs/attachment.cgi?id=7086) test case With top-of-tree, if I run llc -mattr=+avx on the attached, I get the following crash: Assertion failed: (Num < NumOperands && "Invalid child # of SDNode!"), function getOperand, file /Users/mmp/llvm-dev-src/include/llvm/CodeGen/SelectionDAGNodes.h, line 534. 0 llc 0x000000010b1b8a22 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6494 1 llc 0x000000010b1b9029 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 8037 2 libsystem_c.dylib 0x00007fff86a09cfa _sigtramp + 26 3 libsystem_c.dylib 0x0000000000000010 _sigtramp + 18446603338257490736 4 llc 0x000000010b1b8986 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6338 5 llc 0x000000010b1b89d8 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6420 6 llc 0x000000010ac05a6a llvm::X86Subtarget::isTargetELF() const + 214978 7 llc 0x000000010abe7d35 llvm::X86Subtarget::isTargetELF() const + 92813 8 llc 0x000000010ad13855 std::vector >::reserve(unsigned long) + 3057 9 llc 0x000000010ad12dc1 std::vector >::reserve(unsigned long) + 349 10 llc 0x000000010adbfcad llvm::SelectionDAGBuilder::Case::size() const + 33897 11 llc 0x000000010adc1c92 llvm::SelectionDAGBuilder::Case::size() const + 42062 12 llc 0x000000010adc28eb llvm::SelectionDAGBuilder::Case::size() const + 45223 13 llc 0x000000010ae9e034 llvm::MachineFunctionAnalysis::getPassName() const + 458 14 llc 0x000000010b11f95d llvm::cl::parser::~parser() + 26355 15 llc 0x000000010b11b33b llvm::cl::parser::~parser() + 8401 16 llc 0x000000010b11f65a llvm::cl::parser::~parser() + 25584 17 llc 0x000000010b120a81 llvm::cl::parser::~parser() + 30743 18 llc 0x000000010b120b01 llvm::cl::parser::~parser() + 30871 19 llc 0x000000010a88b9e3 20 llc 0x000000010a88a234 21 llc 0x0000000000000003 Stack dump: 0. Program arguments: /Users/mmp/llvm-dev/bin/llc -mattr=+avx bug.bc 1. Running pass 'Function Pass Manager' on module 'bug.bc'. 2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@"result___REFUf[]"' [1] 61517 illegal hardware instruction ~/llvm-dev/bin/llc -mattr=+avx bug.bc As it turns out, running bugpoint on the attached gives a different crash, which I've reported separately in http://llvm.org/bugs/show_bug.cgi?id=10688 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 11:41:49 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 11:41:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 10690] New: Clang Does Not Supply Correct Linker Flags Under 64bit Slackware Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10690 Summary: Clang Does Not Supply Correct Linker Flags Under 64bit Slackware Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: willdtz at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7087) --> (http://llvm.org/bugs/attachment.cgi?id=7087) Add support for 64bit slackware toolchain Same issue as: http://llvm.org/bugs/show_bug.cgi?id=9731 , but for 64bit slackware not 32bit. Patch attached teaches Clang where slackware64 puts the toolchain so that linking C programs 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 Wed Aug 17 11:42:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 11:42:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 10683] Clang crashes with -C if the file contains a line continuation in a single-line comment In-Reply-To: References: Message-ID: <20110817164210.9FE1E2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10683 Francois Pichet changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |pichet2000 at gmail.com Resolution| |DUPLICATE --- Comment #2 from Francois Pichet 2011-08-17 11:42:10 CDT --- *** This bug has been marked as a duplicate of bug 10153 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 12:26:36 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 12:26:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 10691] New: Segfault Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10691 Summary: Segfault Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pipping at exherbo.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=7088) --> (http://llvm.org/bugs/attachment.cgi?id=7088) delta-reduced input (not valid code but manages to make clang++ crash) pipping at bogus /home/pipping/reduce % clang++ -c -std=c++0x cc-MJgC6J-clean.ii cc-MJgC6J-clean.ii:10:3: error: no template named 'MakeFormatStringFetcher'; did you mean 'MakeMakeFormatStringFetcher'? MakeFormatStringFetcher operator<< (MakeFormatStringFetcher && f, const std::string & s) ^~~~~~~~~~~~~~~~~~~~~~~ MakeMakeFormatStringFetcher cc-MJgC6J-clean.ii:5:10: note: 'MakeMakeFormatStringFetcher' declared here struct MakeMakeFormatStringFetcher ^ cc-MJgC6J-clean.ii:10:47: error: no template named 'MakeFormatStringFetcher'; did you mean 'MakeMakeFormatStringFetcher'? MakeFormatStringFetcher operator<< (MakeFormatStringFetcher && f, const std::string & s) ^~~~~~~~~~~~~~~~~~~~~~~ MakeMakeFormatStringFetcher cc-MJgC6J-clean.ii:5:10: note: 'MakeMakeFormatStringFetcher' declared here struct MakeMakeFormatStringFetcher ^ cc-MJgC6J-clean.ii:10:96: error: no type named 'string' in namespace 'std' MakeFormatStringFetcher operator<< (MakeFormatStringFetcher && f, const std::string & s) ~~~~~^ cc-MJgC6J-clean.ii:12:5: error: no template named 'MakeFormatStringFetcher'; did you mean 'MakeMakeFormatStringFetcher'? MakeFormatStringFetcher result{std::move(f.user_key), f.user_key_version, std::move(f.text)}; ^~~~~~~~~~~~~~~~~~~~~~~ MakeMakeFormatStringFetcher cc-MJgC6J-clean.ii:5:10: note: 'MakeMakeFormatStringFetcher' declared here struct MakeMakeFormatStringFetcher ^ clang: SemaInit.cpp:4119: ExprResult clang::InitializationSequence::Perform(clang::Sema &, const clang::InitializedEntity &, const clang::InitializationKind &, MultiExprArg, clang::QualType *): Assertion `Kind.getKind() == InitializationKind::IK_Copy || Kind.isExplicitCast()' failed. 0 libLLVM-3.0svn.so 0x00007f6afa29adcf 1 libLLVM-3.0svn.so 0x00007f6afa29b279 2 libpthread.so.0 0x00007f6af9492f10 3 libc.so.6 0x00007f6af87b15c5 gsignal + 53 4 libc.so.6 0x00007f6af87b28c5 abort + 389 5 libc.so.6 0x00007f6af87aa235 __assert_fail + 245 6 clang 0x00000000008dd679 clang::InitializationSequence::Perform(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, clang::ASTMultiPtr, clang::QualType*) + 8137 7 clang 0x000000000081fbea clang::Sema::AddInitializerToDecl(clang::Decl*, clang::Expr*, bool, bool) + 2730 8 clang 0x000000000076da61 clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&, clang::Parser::ParsedTemplateInfo const&) + 1809 9 clang 0x000000000076cf36 clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int, bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 1366 10 clang 0x000000000076abe5 clang::Parser::ParseSimpleDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, bool, clang::Parser::ForRangeInit*) + 661 11 clang 0x000000000076a7d2 clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 242 12 clang 0x000000000075298a clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector&, bool) + 1594 13 clang 0x0000000000756c73 clang::Parser::ParseCompoundStatementBody(bool) + 1187 14 clang 0x00000000007578fe clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) + 174 15 clang 0x0000000000762816 clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&) + 1558 16 clang 0x000000000075939f clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::AccessSpecifier) + 2031 17 clang 0x00000000007589e3 clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 723 18 clang 0x0000000000758660 clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 304 19 clang 0x000000000076a827 clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 327 20 clang 0x000000000076106b clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 1643 21 clang 0x00000000007766da clang::Parser::ParseInnerNamespace(std::vector >&, std::vector >&, std::vector >&, unsigned int, clang::SourceLocation&, clang::SourceLocation&, clang::ParsedAttributes&, clang::SourceLocation&) + 218 22 clang 0x000000000077628e clang::Parser::ParseNamespace(unsigned int, clang::SourceLocation&, clang::SourceLocation) + 3342 23 clang 0x000000000076a89a clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 442 24 clang 0x000000000076106b clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 1643 25 clang 0x0000000000760984 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 244 26 clang 0x0000000000749b3e clang::ParseAST(clang::Sema&, bool) + 318 27 clang 0x0000000000651c00 clang::CodeGenAction::ExecuteAction() + 768 28 clang 0x0000000000558c17 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 983 29 clang 0x0000000000543aab clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2779 30 clang 0x000000000053bb2c cc1_main(char const**, char const**, char const*, void*) + 6124 31 clang 0x0000000000540008 main + 632 32 libc.so.6 0x00007f6af879dc7d __libc_start_main + 253 33 clang 0x000000000053a279 Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name cc-MJgC6J-clean.ii -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.1 -momit-leaf-frame-pointer -coverage-file cc-MJgC6J-clean.o -resource-dir /usr/bin/../lib/clang/3.0 -std=c++0x -fdeprecated-macro -ferror-limit 19 -fmessage-length 118 -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o cc-MJgC6J-clean.o -x c++-cpp-output cc-MJgC6J-clean.ii 1. cc-MJgC6J-clean.ii:12:105: current parser token ';' 2. cc-MJgC6J-clean.ii:1:1: parsing namespace 'std' 3. cc-MJgC6J-clean.ii:11:3: parsing function body 'operator<<' 4. cc-MJgC6J-clean.ii:11:3: in compound statement ('{}') clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs. pipping at bogus /home/pipping/reduce % This issue is related to bug #10599 in that it is derived from the same file but reduced differently. The resulting assertion failure and backtrace are different, too. This is with clang 3.0-git-a47027bbd8443593cec15bd7f1fc0eed38d4f904. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 12:29:52 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 12:29:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 10691] Segfault In-Reply-To: References: Message-ID: <20110817172952.663672A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10691 Elias Pipping changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Elias Pipping 2011-08-17 12:29:51 CDT --- Sorry, I'm starting to lose track of those assertion failures. *** This bug has been marked as a duplicate of bug 10403 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 13:11:01 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 13:11:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 10687] IPSCCP crashes on extractvalue In-Reply-To: References: Message-ID: <20110817181101.B60CB2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10687 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Eli Friedman 2011-08-17 13:11:01 CDT --- r137836. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 13:17:41 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 13:17:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 10690] Clang Does Not Supply Correct Linker Flags Under 64bit Slackware In-Reply-To: References: Message-ID: <20110817181741.E8BCB2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10690 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #1 from Eli Friedman 2011-08-17 13:17:41 CDT --- r137839. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 14:34:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 14:34:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 10692] New: Clang Can't Find C++ Headers on Slackware Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10692 Summary: Clang Can't Find C++ Headers on Slackware Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: willdtz at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7089) --> (http://llvm.org/bugs/attachment.cgi?id=7089) Add slackware include paths Clang can't find the C++ headers on slackware, since it hasn't been taught about the correct paths like it has for other distributions. The attached patch adds the required header paths on both 13.37 and -current. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 16:00:16 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 16:00:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 10693] New: mplayer doesn't compile, error during inline asm parsing Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10693 Summary: mplayer doesn't compile, error during inline asm parsing Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: balicki.aleksander at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7091) --> (http://llvm.org/bugs/attachment.cgi?id=7091) Compile log mplayer-1.0_rc4_p20110322 doesn't compile under clang. Generated log attached. This was compiled on Gentoo Linux x86 by using: CC=clang CXX=clang emerge mplayer USE=3dnow 3dnowext X a52 alsa amr ass cdio dga dirac doc dts dv dvd dvdnav enca encode faac faad ftp gif iconv ipv6 jpeg jpeg2k kernel_linux live lzo mad mmx mmxext mp3 network openal opengl osdmenu oss png quicktime rar real rtc schroedinger sdl shm speex sse sse2 theora toolame tremor truetype twolame unicode vidix vorbis vpx win32codecs x264 xanim xinerama xscreensaver xv xvid xvmc -aalib -altivec -aqua -bidi -bindist -bl -bluray -bs2b -cddb -cdparanoia -cpudetection -custom-cpuopts -debug -directfb -dvb -dxr3 -esd -fbcon -ggi -gsm -jack -joystick -ladspa -libcaca -libmpeg2 -lirc -md5sum -mng -mpg123 -nas -nut -pnm -pulseaudio -pvr -radio -rtmp -samba -ssse3 -tga -v4l -v4l2 -vdpau -video_cards_mga -video_cards_s3virge -video_cards_tdfx -video_cards_vesa -zoran -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 16:41:30 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 16:41:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 10694] New: Assertion failed: (FromType->isIntegralOrUnscopedEnumerationType()), function endsWithNarrowing, file SemaInit.cpp, line 2326 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10694 Summary: Assertion failed: (FromType->isIntegralOrUnscopedEnumerationType()), function endsWithNarrowing, file SemaInit.cpp, line 2326 Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: tm at ayena.de CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7092) --> (http://llvm.org/bugs/attachment.cgi?id=7092) Preprocessed sources (/tmp/cc-ZmphkT.ii) zipped LLVM revision: 137864 Clang revision: 137864 Attached are the preprocessed sources; at the end mentioned as /tmp/cc-ZmphkT.ii. Assertion failed: (FromType->isIntegralOrUnscopedEnumerationType()), function endsWithNarrowing, file SemaInit.cpp, line 2326. 0 clang 0x00000001019e6b12 llvm::SmallVectorTemplateBase::grow(unsigned long) + 818 1 clang 0x00000001019e7a93 llvm::SmallVectorTemplateBase::grow(unsigned long) + 4787 2 libSystem.B.dylib 0x00007fff875511ba _sigtramp + 26 3 libSystem.B.dylib 0x00007fff5fbec6d0 _sigtramp + 3630806320 4 clang 0x00000001019e6f92 llvm::SmallVectorTemplateBase::grow(unsigned long) + 1970 5 clang 0x0000000100581b88 llvm::cast_retty >::ret_type llvm::cast >(clang::CanQual const&) + 31704 6 clang 0x000000010058a984 llvm::cast_retty >::ret_type llvm::cast >(clang::CanQual const&) + 68052 7 clang 0x000000010058b939 llvm::cast_retty >::ret_type llvm::cast >(clang::CanQual const&) + 72073 8 clang 0x000000010058bb8d llvm::cast_retty >::ret_type llvm::cast >(clang::CanQual const&) + 72669 9 clang 0x00000001005928ee llvm::cast_retty >::ret_type llvm::cast >(clang::CanQual const&) + 100670 10 clang 0x000000010058c337 llvm::cast_retty >::ret_type llvm::cast >(clang::CanQual const&) + 74631 11 clang 0x000000010058cf30 llvm::cast_retty >::ret_type llvm::cast >(clang::CanQual const&) + 77696 12 clang 0x000000010059415c llvm::cast_retty >::ret_type llvm::cast >(clang::CanQual const&) + 106924 13 clang 0x000000010058834c llvm::cast_retty >::ret_type llvm::cast >(clang::CanQual const&) + 58268 14 clang 0x0000000100447e37 clang::CodeCompletionBuilder::AddTypedTextChunk(char const*) + 119479 15 clang 0x000000010031df67 clang::Parser::LexedMethod::~LexedMethod() + 6551 16 clang 0x0000000100327df2 clang::Parser::LexedMethod::~LexedMethod() + 47138 17 clang 0x000000010033204c clang::Parser::LexedMethod::~LexedMethod() + 88700 18 clang 0x0000000100332135 clang::Parser::LexedMethod::~LexedMethod() + 88933 19 clang 0x000000010036eba2 clang::PragmaOpenCLExtensionHandler::~PragmaOpenCLExtensionHandler() + 11762 20 clang 0x000000010036f7a6 clang::PragmaOpenCLExtensionHandler::~PragmaOpenCLExtensionHandler() + 14838 21 clang 0x000000010036fd59 clang::PragmaOpenCLExtensionHandler::~PragmaOpenCLExtensionHandler() + 16297 22 clang 0x00000001003871ea llvm::SmallVectorTemplateBase::grow(unsigned long) + 49898 23 clang 0x00000001003285ac clang::Parser::LexedMethod::~LexedMethod() + 49116 24 clang 0x00000001003848b8 llvm::SmallVectorTemplateBase::grow(unsigned long) + 39352 25 clang 0x0000000100384d3e llvm::SmallVectorTemplateBase::grow(unsigned long) + 40510 26 clang 0x0000000100389a43 llvm::SmallVectorTemplateBase::grow(unsigned long) + 60227 27 clang 0x000000010033a821 clang::Parser::DeclaratorScopeObj::EnterDeclaratorScope() + 29697 28 clang 0x000000010033b28a clang::Parser::DeclaratorScopeObj::EnterDeclaratorScope() + 32362 29 clang 0x00000001003323e3 clang::Parser::LexedMethod::~LexedMethod() + 89619 30 clang 0x0000000100389528 llvm::SmallVectorTemplateBase::grow(unsigned long) + 58920 31 clang 0x0000000100389e7a llvm::SmallVectorTemplateBase::grow(unsigned long) + 61306 32 clang 0x0000000100318e8b llvm::IRBuilder >::CreateGEP(llvm::Value*, llvm::Value*, llvm::Twine const&) + 859 33 clang 0x00000001002e3d1c llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 3852 34 clang 0x000000010002e871 llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 9649 35 clang 0x000000010000b7b3 llvm::raw_ostream::operator<<(char const*) + 1891 36 clang 0x0000000100001f4c 37 clang 0x000000010000a4fe std::vector >::_M_insert_aux(__gnu_cxx::__normal_iterator > >, std::string const&) + 13598 38 clang 0x0000000100001334 39 clang 0x000000000000008a Stack dump: 0. Program arguments: /Users/tobias/llvm/bin/clang -cc1 -triple x86_64-apple-macosx10.6.8 -emit-obj -disable-free -main-file-name QtUserSearchWindow.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 123.2 -g -coverage-file Swift/QtUI/UserSearch/QtUserSearchWindow.o -resource-dir /Users/tobias/llvm/bin/../lib/clang/3.0 -isystem /Users/tobias/dev/gsoc/swift-jingle/3rdParty/Boost/src -D IDNA_STATIC -D BOOST_FILESYSTEM_VERSION=2 -D BOOST_SYSTEM_NO_DEPRECATED -D BOOST_ALL_NO_LIB -D HAVE_GROWL -D QT_CORE_LIB -D QT_GUI_LIB -I /Library/Frameworks/QtCore.framework/Versions/4/Headers -I /Library/Frameworks/QtGui.framework/Versions/4/Headers -I /Library/Frameworks/QtWebKit.framework/Versions/4/Headers -I . -I . -I 3rdParty/LibIDN/src -I 3rdParty/LibMiniUPnPc/src -I /usr/include/libxml2 -I Swift/QtUI -F/Library/Frameworks -O2 -Wextra -Wall -Wnon-virtual-dtor -Wundef -Wold-style-cast -Wno-long-long -Woverloaded-virtual -Wredundant-decls -W#warnings -Wc++0x-compat -Waddress-of-temporary -Wambiguous-member-template -Warray-bounds -Watomic-properties -Wbind-to-temporary-copy -Wbuiltin-macro-redefined -Wc++-compat -Wc++0x-extensions -Wcomments -Wconditional-uninitialized -Wconstant-logical-operand -Wdeclaration-after-statement -Wdeprecated -Wdeprecated-implementations -Wdeprecated-writable-strings -Wduplicate-method-arg -Wempty-body -Wendif-labels -Wenum-compare -Wformat=2 -Wfour-char-constants -Wgnu -Wincomplete-implementation -Winvalid-noreturn -Winvalid-offsetof -Winvalid-token-paste -Wlocal-type-template-args -Wmethod-signatures -Wmicrosoft -Wmissing-declarations -Wnon-pod-varargs -Wnonfragile-abi2 -Wnull-dereference -Wout-of-line-declaration -Woverlength-strings -Wpacked -Wpointer-arith -Wpointer-sign -Wprotocol -Wreadonly-setter-attrs -Wselector -Wshift-overflow -Wshift-sign-overflow -Wstrict-selector-match -Wsuper-class-method-mismatch -Wtautological-compare -Wtypedef-redefinition -Wundeclared-selector -Wunknown-warning-option -Wunnamed-type-template-args -Wunused-exception-parameter -Wunused-member-function -Wused-but-marked-unused -Wvariadic-macros -fdeprecated-macro -ferror-limit 19 -fmessage-length 202 -stack-protector 1 -fblocks -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o Swift/QtUI/UserSearch/QtUserSearchWindow.o -x c++ Swift/QtUI/UserSearch/QtUserSearchWindow.cpp 1. Swift/QtUI/UserSearch/QtUserSearchWindow.cpp:188:176: current parser token ';' 2. Swift/QtUI/UserSearch/QtUserSearchWindow.cpp:25:1: parsing namespace 'Swift' 3. Swift/QtUI/UserSearch/QtUserSearchWindow.cpp:183:83: parsing function body 'setSearchFields' 4. Swift/QtUI/UserSearch/QtUserSearchWindow.cpp:183:83: in compound statement ('{}') clang: error: unable to execute command: Illegal instruction clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Preprocessed source(s) are located at: clang: note: diagnostic msg: /tmp/cc-ZmphkT.ii scons: *** [Swift/QtUI/UserSearch/QtUserSearchWindow.o] Error 254 scons: building terminated because of errors. make: *** [default] 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 Wed Aug 17 16:47:02 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 16:47:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 9341] ARM: ssat/usat not supported in inline asm In-Reply-To: References: Message-ID: <20110817214702.0AD4B2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9341 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Eli Friedman 2011-08-17 16:47:01 CDT --- Looks like this is fixed with recent ARM asmparser work. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 17:14:16 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 17:14:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 10686] Segfault In-Reply-To: References: Message-ID: <20110817221416.D5AB02A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10686 Elias Pipping changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Elias Pipping 2011-08-17 17:14:16 CDT --- *** This bug has been marked as a duplicate of bug 10600 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 17:15:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 17:15:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 10688] [AVX] cannot select: v8i32 = bit_convert In-Reply-To: References: Message-ID: <20110817221540.3762A2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10688 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Bruno Cardoso Lopes 2011-08-17 17:15:39 CDT --- Hi, Fixed in r137885! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 17:16:06 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 17:16:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 10689] [AVX] Assertion failed: (Num < NumOperands && "Invalid child # of SDNode!"), In-Reply-To: References: Message-ID: <20110817221606.2DA192A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10689 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-08-17 17:16:05 CDT --- This works for me in TOT. I think it just got solved in r137885 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 Wed Aug 17 17:18:13 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 17:18:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 10695] New: clang crashes for trivial inputs with -fprofile-arcs Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10695 Summary: clang crashes for trivial inputs with -fprofile-arcs Product: new-bugs Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: dpatel at apple.com, llvmbugs at cs.uiuc.edu $ clang -x c - -o - -S -fprofile-arcs void foo() {} Assertion failed: (getVersion() <= LLVMDebugVersion10 && "Invalid getCompileUnit!"), function getCompileUnit, file /Volumes/storage/llvm/include/llvm/Analysis/DebugInfo.h, line 462. [...] Bisect points to r137778. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 17:24:30 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 17:24:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 10600] Failed assertion: `Rep && "no type provided!"' In-Reply-To: References: Message-ID: <20110817222430.D3A9A2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10600 Elias Pipping changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE Summary|Segfault |Failed assertion: `Rep && | |"no type provided!"' --- Comment #2 from Elias Pipping 2011-08-17 17:24:30 CDT --- The test case provided in #10402 is slightly different from the one attached to this bug. *** This bug has been marked as a duplicate of bug 10402 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 17:49:56 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 17:49:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 10695] clang crashes for trivial inputs with -fprofile-arcs In-Reply-To: References: Message-ID: <20110817224956.484AE2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10695 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Devang Patel 2011-08-17 17:49:56 CDT --- Fixed. r137890. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 18:15:42 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 18:15:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 10571] [ARM disasm] some moves to/from PC are disassembled as invalid In-Reply-To: References: Message-ID: <20110817231542.996592A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10571 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Eli Friedman 2011-08-17 18:15:42 CDT --- These appear to be fixed with the disassembler rewrite. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 18:17:26 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 18:17:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 10572] [ARM disasm] PC-relative LDR with negative offset is disassembled incorrectly In-Reply-To: References: Message-ID: <20110817231726.809B72A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10572 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Eli Friedman 2011-08-17 18:17:26 CDT --- Fixed with disassembler rewrite. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 18:19:20 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 18:19:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 10696] New: Output note message string is corrupted for err_init_list_variable_narrowing Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10696 Summary: Output note message string is corrupted for err_init_list_variable_narrowing Product: clang Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pichet2000 at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Given test.cpp: struct A { unsigned int a; }; int b = 4; A var = { b }; clang -std=c++0x test.cpp note will be: test.cpp:12:11: note: override this message by inserting an explicit cast A var = { b}; ^ s)atic_cast( ^^^^^^^^^^^^^^^^^^^^^^ | wrong Same result on Windows and MacOSX -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 18:23:59 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 18:23:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 10569] [ARM disasm] extra newline after sxtab16, uxtab16 In-Reply-To: References: Message-ID: <20110817232359.3287E2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10569 Jim Grosbach changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Jim Grosbach 2011-08-17 18:23:58 CDT --- Fixed in r137900. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 17 18:34:03 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 18:34:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 7791] Invalid(?) ldr instruction form is disassembled as eor In-Reply-To: References: Message-ID: <20110817233403.2DF3C2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7791 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #1 from Eli Friedman 2011-08-17 18:34:02 CDT --- This is now correctly gives an "invalid instruction encoding" 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 Wed Aug 17 19:51:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 17 Aug 2011 19:51:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 10671] Compiling a single file takes several minutes In-Reply-To: References: Message-ID: <20110818005128.A9D192A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10671 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Devang Patel 2011-08-17 19:51:28 CDT --- Fixed. r137908. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 18 02:46:46 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 18 Aug 2011 02:46:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 10697] New: assertion failure in ~MCDataFragment() Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10697 Summary: assertion failure in ~MCDataFragment() Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7095) --> (http://llvm.org/bugs/attachment.cgi?id=7095) test case With ToT, if I run: % llc bugpoint-reduced-simplified.bc -mattr=+avx -filetype=obj -o /dev/null on the attached, I get the following crash. Note that the crash only happens with object file output--generating assembly seems fine. Also, if I remove the -mattr=+avx, it is also fine. Assertion failed: (begin() + idx < end()), function operator[], file /Users/mmp/llvm-dev-src/include/llvm/ADT/SmallVector.h, line 154. 0 llc 0x000000010287c8b2 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6494 1 llc 0x000000010287ceb9 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 8037 2 libsystem_c.dylib 0x00007fff86a09cfa _sigtramp + 26 3 libsystem_c.dylib 0x0000000102f0cb80 _sigtramp + 18446603342601793184 4 llc 0x000000010287c816 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6338 5 llc 0x000000010287c868 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6420 6 llc 0x0000000102317a1f void llvm::cl::ValuesClass::apply > >(llvm::cl::opt >&) const + 10049 7 llc 0x000000010282becf llvm::operator<<(llvm::raw_ostream&, llvm::Twine const&) + 4303 8 llc 0x000000010282ecbe llvm::MCDataFragment::~MCDataFragment() + 9246 9 llc 0x00000001023019bb llvm::X86JITInfo::~X86JITInfo() + 15749 10 llc 0x00000001024b0e81 llvm::SmallVectorTemplateBase::grow(unsigned long) + 26063 11 llc 0x000000010226173e llvm::df_iterator, true, llvm::GraphTraits >::toNext() + 552 12 llc 0x0000000102561c64 llvm::MachineFunctionAnalysis::getPassName() const + 458 13 llc 0x00000001027e37cd llvm::cl::parser::~parser() + 26355 14 llc 0x00000001027df1ab llvm::cl::parser::~parser() + 8401 15 llc 0x00000001027e34ca llvm::cl::parser::~parser() + 25584 16 llc 0x00000001027e48f1 llvm::cl::parser::~parser() + 30743 17 llc 0x00000001027e4971 llvm::cl::parser::~parser() + 30871 18 llc 0x0000000101f4e6e3 19 llc 0x0000000101f4cf34 20 llc 0x0000000000000006 Stack dump: 0. Program arguments: /Users/mmp/llvm-dev/bin/llc -mattr=+avx bugpoint-reduced-simplified.bc -filetype=obj -o /dev/null 1. Running pass 'Function Pass Manager' on module 'bugpoint-reduced-simplified.bc'. 2. Running pass 'X86 AT&T-Style Assembly Printer' on function '@"SHEvaluate___Cf<3>UiREFf[]"' [1] 93126 illegal hardware instruction ~/llvm-dev/bin/llc -mattr=+avx bugpoint-reduced-simplified.bc -filetype=obj - -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 18 04:10:31 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 18 Aug 2011 04:10:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 10666] definition not emitted for friend operator overload inside instantiated template class In-Reply-To: References: Message-ID: <20110818091031.C22B62A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10666 Chandler Carruth changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Chandler Carruth 2011-08-18 04:10:30 CDT --- (In reply to comment #2) > FYI, looking at this with nick, I'm struck by the fact that the problem goes > away if we instantiate Helper outside of a method body. (such as an explicit > instantiation immediately following the definition). > > It seems that some aspect of template instantiation as it happens during > delayed method body parsing is responsible for this malfeasance. This was even more interesting than I originally thought. Here is my further reduced test case: template struct S { friend void g1(S s) {} void f1() { S<1> s; } friend void g2(S s) {} }; void test(S<1> s1) { g1(s1); g2(s1); } g1's definition is emitted, g2's isn't!!! =D The reason is that we instantiate the template after processing g1's body, but before processing g2's body. As a consequence, when we go to instantiate g1 and g2's declarations as part of instantiating S<1>, we look for function bodies to determine if these function declarations can be subsequently instantiated more fully. While *if* they have bodies this is true, not having a body doesn't necessarily mean it isn't true. There already was a comment indicating it might be useful to preserve this subsequent instantiation regardless of whether a body is attached, and doing so avoids this entire problem. Testing doesn't reveal any ill effects when a body is *not* in fact involved, so all seems well. I've committed this fix (with accompanying tests) in r137934. If an alternative implementation would be preferred, please chime in on the review and I'll be happy to change it up. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 18 08:07:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 18 Aug 2011 08:07:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 10698] New: #define followed by a comment while clang is started with -C Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10698 Summary: #define followed by a comment while clang is started with -C Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: eremeev at viva64.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com If starting Clang preprocessor with -E -C command line options on the code: #if defined A // some comment ... #endif generates the following error message: definecomment.cpp:1:16: error: token is not a valid binary operator in a preprocessor subexpression #if defined A // some comment ~~~~~~~~~ ^ :2:1: note: expanded from: /* some comment*/ ^ #line 1 "definecomment.cpp" #line 1 "definecomment.cpp" #line 1 "" #line 1 "" #line 144 "" #line 1 "" #line 1 "" #line 1 "definecomment.cpp" 1 error generated. This code creates no issues with MSVC compiler. Starting Clang with only -E switch works fine 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 Thu Aug 18 13:54:52 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 18 Aug 2011 13:54:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 10695] clang crashes for trivial inputs with -fprofile-arcs In-Reply-To: References: Message-ID: <20110818185452.62E042A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10695 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |nlewycky at google.com Resolution|FIXED | --- Comment #3 from Nick Lewycky 2011-08-18 13:54:51 CDT --- This is not fixed: echo 'void f() {}' | clang -x c- -o - -S -fprofile-arcs -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 18 14:08:08 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 18 Aug 2011 14:08:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 10695] clang crashes for trivial inputs with -fprofile-arcs In-Reply-To: References: Message-ID: <20110818190808.BC8132A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10695 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #4 from Nick Lewycky 2011-08-18 14:08:08 CDT --- Sorry, I pasted the wrong repro, it should've been -ftest-coverage. Anyways, fixed in r137972. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 18 15:49:01 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 18 Aug 2011 15:49:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 10699] New: ExtraSource Variable Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10699 Summary: ExtraSource Variable Product: Build scripts Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Makefiles AssignedTo: unassignedbugs at nondot.org ReportedBy: gmalecha at eecs.harvard.edu CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7096) --> (http://llvm.org/bugs/attachment.cgi?id=7096) patch According to the Projects documentation (http://llvm.org/docs/Projects.html) the ExtraSource variable can be used to specify additional source files that should be compiled. This variable does not seem to be used in any LLVM Makefile. This seems like either a bug in the Makefiles or a bug in the documentation. The attached patch appends ExtraSource to the Sources variable. It also creates directories when they don't exist so that ExtraSource can point to files in deeper directories. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 18 16:36:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 18 Aug 2011 16:36:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 10700] New: [x86 disassembler] arpl should not be possible with 64-bit target Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10700 Summary: [x86 disassembler] arpl should not be possible with 64-bit target Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: kkhoo at perfwizard.com CC: llvmbugs at cs.uiuc.edu >From the "Intel? 64 and IA-32 Architectures Software Developer?s Manual Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 3-75: ARPL?Adjust RPL Field of Segment Selector 63 /r "This instruction executes as described in compatibility mode and legacy mode. It is not encodable in 64-bit mode." P. 3-730 shows the encoding in 64-bit mode: MOVSX/MOVSXD?Move with Sign-Extension REX.W** + 63 /r With llvm-mc built from trunk revision 135913: $ echo '0x63 0xc0'| ./llvm-mc -disassemble -triple="x86_64" arpl %ax, %ax With the 64-bit target set, this should have disassembled as 'movsx'. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 18 17:31:31 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 18 Aug 2011 17:31:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 10701] New: Assert failure in DwarfDebug.cpp Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10701 Summary: Assert failure in DwarfDebug.cpp 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: tjablin at cs.princeton.edu CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7097) --> (http://llvm.org/bugs/attachment.cgi?id=7097) Causes llc to assert in DwarfDebug.cpp Running llc test.ll yields an assertion failure in DwarfDebug.cpp. I have run bugpoint to reduce the testcase, but it doesn't help much because the bug is in the metadata. The assertion is: llc: llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:299: llvm::DIE* llvm::DwarfDebug::updateSubprogramScopeDIE(const llvm::MDNode*): Assertion `SPDie && "Unable to find subprogram DIE!"' 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 Thu Aug 18 18:25:18 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 18 Aug 2011 18:25:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 10702] New: [x86 disassembler] crc32 not disassembled correctly Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10702 Summary: [x86 disassembler] crc32 not disassembled correctly Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: kkhoo at perfwizard.com CC: llvmbugs at cs.uiuc.edu >From the "Intel? 64 and IA-32 Architectures Software Developer?s Manual Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 3-236: CRC32 ? Accumulate CRC32 Value F2 0F 38 F0 /r Clang on OSX assembles: crc32 %al, %eax To: F2 0F 38 F0 C0 With llvm-mc built from trunk revision 135913: $ echo '0xf2 0x0f 0x38 0xf0 0xc0'| ./llvm-mc -disassemble -triple="x86_64" :1:1: warning: invalid instruction encoding 0xf2 0x0f 0x38 0xf0 0xc0 ^ :1:21: warning: invalid instruction encoding 0xf2 0x0f 0x38 0xf0 0xc0 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 18 18:54:08 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 18 Aug 2011 18:54:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 9870] Clang and C++ 4.5.2 In-Reply-To: References: Message-ID: <20110818235408.B9ED42A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9870 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Eli Friedman 2011-08-18 18:54:08 CDT --- We don't have INCOMPLETE here, so resolving to INVALID. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Aug 18 19:00:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 18 Aug 2011 19:00:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 10697] assertion failure in ~MCDataFragment() In-Reply-To: References: Message-ID: <20110819000040.2FE332A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10697 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-08-18 19:00:39 CDT --- Fixed in r138012! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 18 19:08:52 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 18 Aug 2011 19:08:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 10703] New: no warning for << versus + precedence confusion Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10703 Summary: no warning for << versus + precedence confusion Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: richard-llvm at metafoo.co.uk CC: llvmbugs at cs.uiuc.edu clang produces no warnings for the following: int x[4] = // ... int k = x[0] << 24 + x[1] << 16 + x[2] << 8 + x[3]; This parses as: int k = x[0] << (24 + x[1]) << (16 + x[2]) << (8 + x[3]); Such a warning would need to be careful to not fire on: std::cout << x[0] << 24 + x[1] << 16 + x[2] << 8 + x[3]; -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 18 21:25:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 18 Aug 2011 21:25:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 10677] Encoding issue with avx SIB dest In-Reply-To: References: Message-ID: <20110819022519.ABE602A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10677 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bruno.cardoso at gmail.com Resolution| |FIXED --- Comment #3 from Bruno Cardoso Lopes 2011-08-18 21:25:19 CDT --- Hi Peter, Thanks for catching this! I've did another implementation but using your idea. Commited in r138029! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 19 00:30:39 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 19 Aug 2011 00:30:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 10678] [x86 disassembler] vandpd/vandps/vandnpd/vandnps disassembled incorrectly In-Reply-To: References: Message-ID: <20110819053039.203AF2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10678 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |craig.topper at gmail.com Resolution| |FIXED --- Comment #4 from Craig Topper 2011-08-19 00:30:38 CDT --- Fixed in r138034. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 19 03:42:15 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 19 Aug 2011 03:42:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 10704] New: Do not automatically use SSE for math when SSE is available Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10704 Summary: Do not automatically use SSE for math when SSE is available Product: dragonegg Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: New Bugs AssignedTo: baldrick at free.fr ReportedBy: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu GCC only uses SSE for floating point math if TARGET_SSE_MATH (there is also a mysterious TARGET_MIX_SSE_I387), even if SSE is otherwise available. Add support for this. This means some changes to the X86 target. I think what is needed is for these tests for whether to use the FP stack to get more complicated: def FPStackf32 : Predicate<"!Subtarget->hasXMM()">; def FPStackf64 : Predicate<"!Subtarget->hasXMMInt()">; Noticed when building wine on an x86-64 machine with -m32: GCC uses the floating point stack for math, while dragonegg uses SSE. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 19 06:29:51 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 19 Aug 2011 06:29:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 10705] New: #pragma include_alias with -fms-extensions option Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10705 Summary: #pragma include_alias with -fms-extensions option Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: eremeev at viva64.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Starting clang with Microsoft Extensions support (-fms-extensions), in file, containing include_alias pragma, for example: #pragma include_alias("stdafx.h", "test.h") #include "stdafx.h" Clang generates the following error: fatal error: 'stdafx.h' file not found. Replacing stdafx.h with test.h fixes the 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 Fri Aug 19 07:20:41 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 19 Aug 2011 07:20:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 10706] New: Stringizing Operator (#) inserts space after macro expansion Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10706 Summary: Stringizing Operator (#) inserts space after macro expansion Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: eremeev at viva64.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The Stringizing Operator (#) inserts space after macro expansion, sometimes making the resulting code uncompileable. For example: #define TRACE_ID(iD) L#iD; const wchar_t *str = TRACE_ID(test); It expands to: const wchar_t *str = L "test";; And then it fails to compile with error "use of undeclared identifier 'L'", while we expected it to expand into the following line, which in turn can be successfully compiled: const wchar_t *str = L"test";; -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Aug 19 10:14:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 19 Aug 2011 10:14:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 10707] New: Caller forgets to adjust stack in varargs stdcall calls Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10707 Summary: Caller forgets to adjust stack in varargs stdcall calls 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: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7098) --> (http://llvm.org/bugs/attachment.cgi?id=7098) testcase .ll With the stdcall calling convention, the caller has to adjust the stack after a call (by the amount of parameters passed). This works fine except when the call is to a varargs function. In that case the stack adjustment doesn't happen! This causes some wine test cases to crash horribly. For example (compiling the attached testcase like this: llc crypt_sha.ll), calll C0 <= Normal call taking no arguments movl 32(%esp), %esi <= No stack adjust - OK because no arguments ... calll C1 <= Normal call with one argument subl $4, %esp <= Stack adjust - yay! ... calll C2 <= Normal call with two arguments subl $8, %esp <= Stack adjust - yay! ... calll C3 <= Normal call with three arguments subl $12, %esp <= Stack adjust - yay! ... calll varg <= Varargs call with no arguments movl %esi, (%esp) <= No stack adjust - OK because no arguments ... calll varg <= Varargs call with one argument movl %edi, 4(%esp) <= No stack adjust - kaboom! ... calll varg <= Varargs call with two arguments movl %ebx, 8(%esp) <= No stack adjust - kaboom! ... calll varg <= Varargs call with three arguments calll C0 <= No stack adjust - kaboom! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 19 17:28:53 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 19 Aug 2011 17:28:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 10708] New: requires comparator to be copy-constructible? Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10708 Summary: requires comparator to be copy-constructible? Product: libc++ Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: All Bugs AssignedTo: hhinnant at apple.com ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu Sort of inspired by discussion around r138098: apparently, current libstdc++ allows the following, but libc++ gives an error: #include class A { public: A(); private: A(const A&); }; void B() { std::set foo; } Strictly speaking, I think this is supposed to be allowed... although I doubt it matters much in practice. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 19 22:04:56 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 19 Aug 2011 22:04:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 10709] New: Miscompilation of checksumming code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10709 Summary: Miscompilation of checksumming code Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Loop Optimizer AssignedTo: unassignedbugs at nondot.org ReportedBy: bhelf at flitterfly.whirpon.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7105) --> (http://llvm.org/bugs/attachment.cgi?id=7105) Test case that shows bug I've got some code that does a (weak) checksum calculation of a data file, which appears to be miscompiled by clang/llvm at -O3. When it's compiled at -O0 the result matches the output of gcc/msvc/suncc/mipspro, and when it's -O3, it's coming up with a different result. I've got a simplified test case that demonstrates this, attached below. The line marked with // $$$ crazy loop is important. If you take out that for statement (even though it's just a 1 iteration loop) the problem goes away. I have no idea what that implies, to be honest. Everything is using unsigned math, so I believe that it's not a problem with undefined signed math behavior. I believe that the hash_string code is working correctly, since the "namesum" value it outputs is consistent between the -O3 and -O0 runs. Using a simplified calculation for that string hash makes the problem go away as well, it appears, so it's still there. This is on linux x86-64, with the current clang and llvm svn trunk checkouts as of 19 Aug 2011. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 20 03:58:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 20 Aug 2011 03:58:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 10710] New: clang++ crashed with assertion failure in SCCP Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10710 Summary: clang++ crashed with assertion failure in SCCP Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: yoshiki at xemacs.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com I was compiling Open Shogi Library (available at http://gps.tanaka.ecc.u-tokyo.ac.jp/cgi-bin/viewvc.cgi/trunk/osl/) revision 4371 with llvm and clang revision 137824 and got the following error. Please let me know if you need more information. clang: /home/yoshiki/llvm/lib/Transforms/Scalar/SCCP.cpp:379: ::LatticeVal&::SCCPSolver::getValueState(llvm::Value*): Assertion `!V->getType()->isStructTy() && "Should use getStructValueState"' failed. 0 clang 0x000000000294929e 1 clang 0x0000000002949091 2 libpthread.so.0 0x00002ac375d29f60 3 libc.so.6 0x00002ac37691b165 gsignal + 53 4 libc.so.6 0x00002ac37691df70 abort + 384 5 libc.so.6 0x00002ac3769142b1 __assert_fail + 241 6 clang 0x00000000025e8668 7 clang 0x00000000025ec239 8 clang 0x00000000025edad6 9 clang 0x0000000002877986 llvm::MPPassManager::runOnModule(llvm::Module&) + 456 10 clang 0x0000000002877e98 llvm::PassManagerImpl::run(llvm::Module&) + 130 11 clang 0x00000000028783ed llvm::PassManager::run(llvm::Module&) + 39 12 clang 0x00000000011d4949 13 clang 0x00000000011d4a69 clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 140 14 clang 0x00000000011d1ae5 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 451 15 clang 0x00000000013507c6 clang::ParseAST(clang::Sema&, bool) + 727 16 clang 0x00000000010733c5 clang::ASTFrontendAction::ExecuteAction() + 263 17 clang 0x00000000011d0e06 clang::CodeGenAction::ExecuteAction() + 986 18 clang 0x0000000001073018 clang::FrontendAction::Execute() + 326 19 clang 0x0000000001057b3d clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 751 20 clang 0x0000000001029705 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1002 21 clang 0x000000000101a3b2 cc1_main(char const**, char const**, char const*, void*) + 945 22 clang 0x0000000001024d31 main + 484 23 libc.so.6 0x00002ac376907c4d __libc_start_main + 253 24 clang 0x0000000001019a79 Stack dump: 0. Program arguments: /home/yoshiki/build/Debug+Asserts/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name binaryIO.cc -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu amdfam10 -target-linker-version 2.20.1 -momit-leaf-frame-pointer -g -coverage-file misc/binaryIO.o -resource-dir /home/yoshiki/build/Debug+Asserts/bin/../lib/clang/3.0 -D OSL_HOME="/home/yoshiki/osl" -D DEBUG -D OSL_SMP -D _REENTRANT -I ../include -O2 -Wno-deprecated -Wall -Wwrite-strings -Wextra -Wstrict-aliasing=2 -Woverloaded-virtual -Wwrite-strings -Wpointer-arith -Wno-unused-parameter -Wno-missing-field-initializers -Werror -Wunused-parameter -fconst-strings -ferror-limit 19 -fmessage-length 178 -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o misc/binaryIO.o -x c++ misc/binaryIO.cc 1. parser at end of file 2. Per-module optimization passes 3. Running pass 'Interprocedural Sparse Conditional Constant Propagation' on module 'misc/binaryIO.cc'. clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Preprocessed source(s) are located at: clang: note: diagnostic msg: /tmp/cc-MCV2rX.ii -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 20 06:41:49 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 20 Aug 2011 06:41:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 10707] Caller forgets to adjust stack in varargs stdcall calls In-Reply-To: References: Message-ID: <20110820114149.9FE1E2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10707 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #9 from Duncan Sands 2011-08-20 06:41:49 CDT --- After investigating further, I think this is a front-end problem. Both clang and llvm-gcc/dragonegg represent a C function "XYZ f()" as being varargs. With the stdcall convention, the code generators thus don't adjust the stack after the call, which is correct for a varargs call. The reason GCC does adjust the stack is that it doesn't consider this to be a varargs call. In the case of a real varargs call (eg: to "XYZ f(int, ...)") GCC does the same as LLVM and doesn't adjust the stack after the call. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 20 06:45:20 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 20 Aug 2011 06:45:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 10711] New: [AVX] integer math ops are scalarized Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10711 Summary: [AVX] integer math ops are scalarized Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Given: define <8 x i32> @foo(<8 x i32> %i, <8 x i32> %j) nounwind readnone { %x = add <8 x i32> %i, %j ret <8 x i32> %x } llc -mattr=+avx extracts each element of the vector and does a scalar add (code below). It would be nice for it to use a pair of SSE paddd instructions instead. % llc -mattr=+avx -o - bug.ll .section __TEXT,__text,regular,pure_instructions .globl _foo .align 4, 0x90 _foo: ## @foo ## BB#0: vextractf128 $1, %ymm1, %xmm2 vpextrd $2, %xmm2, %eax vextractf128 $1, %ymm0, %xmm3 vpextrd $2, %xmm3, %ecx vmovd %xmm2, %esi vmovd %xmm3, %edx addl %esi, %edx addl %eax, %ecx vpextrd $3, %xmm2, %r8d vpextrd $3, %xmm3, %esi vpextrd $3, %xmm1, %edi vpextrd $3, %xmm0, %eax addl %edi, %eax vmovd %ecx, %xmm4 vmovd %edx, %xmm5 addl %r8d, %esi vmovd %esi, %xmm6 vpextrd $1, %xmm2, %edx vpextrd $1, %xmm3, %ecx addl %edx, %ecx vmovd %ecx, %xmm2 vpunpckldq %xmm6, %xmm2, %xmm2 vpunpckldq %xmm4, %xmm5, %xmm4 vmovd %eax, %xmm3 vpextrd $1, %xmm1, %ecx vpextrd $1, %xmm0, %eax addl %ecx, %eax vmovd %eax, %xmm5 vpextrd $2, %xmm1, %ecx vpextrd $2, %xmm0, %eax vpunpckldq %xmm2, %xmm4, %xmm2 vpunpckldq %xmm3, %xmm5, %xmm3 addl %ecx, %eax vmovd %eax, %xmm4 vmovd %xmm1, %ecx vmovd %xmm0, %eax addl %ecx, %eax vmovd %eax, %xmm0 vpunpckldq %xmm4, %xmm0, %xmm0 vpunpckldq %xmm3, %xmm0, %xmm0 vinsertf128 $1, %xmm2, %ymm0, %ymm0 ret -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 20 06:47:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 20 Aug 2011 06:47:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 10712] New: [AVX] integer comparisons are scalarized Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10712 Summary: [AVX] integer comparisons are scalarized Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Given: define <8 x i32> @foo(<8 x i32> %i, <8 x i32> %j) nounwind readnone { %bincmp = icmp slt <8 x i32> %i, %j %x = sext <8 x i1> %bincmp to <8 x i32> ret <8 x i32> %x } llc -mattr=+avx extracts each element of the vector and does a scalar compare (code below). It'd be nice if it emitted two pcmp* instructions instead. % llc -mattr=+avx -o - bug.ll .section __TEXT,__text,regular,pure_instructions .globl _foo .align 4, 0x90 _foo: ## @foo ## BB#0: vextractf128 $1, %ymm0, %xmm2 vextractf128 $1, %ymm1, %xmm3 vpextrd $2, %xmm3, %r8d vpextrd $2, %xmm2, %r9d vmovd %xmm3, %esi vmovd %xmm2, %ecx vpextrd $3, %xmm3, %edx vpextrd $3, %xmm2, %edi movl $-1, %r10d cmpl %edx, %edi movl $0, %edx cmovll %r10d, %edx cmpl %esi, %ecx movl $0, %esi cmovll %r10d, %esi cmpl %r8d, %r9d movl $0, %edi cmovll %r10d, %edi vpextrd $3, %xmm1, %ecx vpextrd $3, %xmm0, %eax cmpl %ecx, %eax movl $0, %ecx cmovll %r10d, %ecx vmovd %edi, %xmm4 vmovd %esi, %xmm5 vmovd %edx, %xmm6 vpextrd $1, %xmm3, %edx vpextrd $1, %xmm2, %esi cmpl %edx, %esi movl $0, %edx cmovll %r10d, %edx vmovd %edx, %xmm2 vpextrd $2, %xmm1, %edx vpextrd $2, %xmm0, %esi cmpl %edx, %esi vpunpckldq %xmm6, %xmm2, %xmm2 vpunpckldq %xmm4, %xmm5, %xmm3 movl $0, %edx cmovll %r10d, %edx vmovd %ecx, %xmm4 vpextrd $1, %xmm1, %ecx vpextrd $1, %xmm0, %esi cmpl %ecx, %esi movl $0, %ecx cmovll %r10d, %ecx vmovd %ecx, %xmm5 vpunpckldq %xmm2, %xmm3, %xmm2 vpunpckldq %xmm4, %xmm5, %xmm3 vmovd %edx, %xmm4 vmovd %xmm1, %ecx vmovd %xmm0, %edx cmpl %ecx, %edx movl $0, %ecx cmovll %r10d, %ecx vmovd %ecx, %xmm0 vpunpckldq %xmm4, %xmm0, %xmm0 vpunpckldq %xmm3, %xmm0, %xmm0 vinsertf128 $1, %xmm2, %ymm0, %ymm0 ret -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 20 07:15:51 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 20 Aug 2011 07:15:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 10713] New: Frontends consider calls to "XYZ foo()" to be var-args, but this is wrong Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10713 Summary: Frontends consider calls to "XYZ foo()" to be var-args, but this is wrong 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: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu Clang/llvm-gcc and dragonegg all consider a call to a function declared without any parameters to be a var-args function call. However this gives the wrong results when using the stdcall calling convention (with stdcall, the callee pops arguments except if it is a varargs function; so any mistake in the "var-argness" of a call is fatal, unlike with the usual C convention where it doesn't make any difference). Consider the following testcase. (The second call to bar is to make the stack adjustments or lack of them clearer in the assembler): #define STDCALL __attribute__((__stdcall__)) void STDCALL foo(); // Var-args or not var-args, that is the question! void STDCALL bar(int); // Definitely not var-args void STDCALL varg(int, ...); // Definitely var-args void g(int x, int y) { foo(x, y); bar(x); varg(x, y); bar(y); } GCC assembler snippets (compiled with: gcc -m32 -O2 -S): call foo subl $8, %esp <= Stack adjust, indicates not var-args! ... call bar subl $4, %esp <= Stack adjust; not var-args ... call varg movl %ebx, (%esp) <= No stack adjust; var-args ... Clang etc assembler snippets: calll foo movl %edi, (%esp) <= No stack adjust, indicates var-args; disagrees with GCC ... calll bar subl $4, %esp <= Stack adjust; not var-args; agrees with GCC ... calll varg movl %esi, (%esp) <= No stack adjust; var-args; agrees with GCC ... This difference seems to be the cause of some crashes when running wine compiled with LLVM. Note that using C++ and declaring foo "void foo(...)" doesn't make any difference: GCC still calls it as if it were not var-args! Digging into the GCC logic, the var-argness of a function type is determined by the stdarg_p predicate (which returns true for var-args). This special cases function types with no parameters (as produced by the C front-end for XYZ foo() and by the C++ front-end for XYZ foo(...)) as not being var-args. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Aug 20 07:57:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 20 Aug 2011 07:57:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 10710] clang++ crashed with assertion failure in SCCP In-Reply-To: References: Message-ID: <20110820125750.A4E822A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10710 Yoshiki Hayashi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Yoshiki Hayashi 2011-08-20 07:57:50 CDT --- Thank you Eli and Duncan. I tried again with revision 138205 and it indeed worked. Bugzilla rejected the pre processed file because the file size was 2271 KB but I can put it to somewhere in case you are still interested in seeing it. Regards, -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 20 23:57:57 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 20 Aug 2011 23:57:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 10714] New: Static const initializer not being initialized causing linking to fail (Spec 9.4.2.3) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10714 Summary: Static const initializer not being initialized causing linking to fail (Spec 9.4.2.3) Product: clang Version: unspecified Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rouzier+o at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The following code fails to linking ========================================= #include static const int a[] = {0,1,2,3,4,5,6,7,8}; template struct int_array; template struct int_array { int x; const static int list[] = {Numbers...}; static void print() { for (const int x : list) { std::cout << x < array_of_ints; int main (int argc, const char * argv[]) { array_of_ints::print(); array_of_ints::print2(); return 0; } ================================================== Error Undefined symbols for architecture x86_64: "__ZN9int_arrayIJLi0ELi1ELi2ELi3ELi4ELi5ELi6ELi7ELi8EEE4listE", referenced from: __ZN9int_arrayIJLi0ELi1ELi2ELi3ELi4ELi5ELi6ELi7ELi8EEE5printEv in cc-JDTbNl.o ld: symbol(s) not found for architecture x86_64 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Aug 21 06:29:08 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 21 Aug 2011 06:29:08 -0500 (CDT) Subject: [LLVMbugs] =?utf-8?b?W0J1ZyAxMDcxNV0gTmV3OiAgTm8g4oCYaGFzX2ZlYXR1?= =?utf-8?q?re=E2=80=99_constant_for_explicit_operator_conversions?= Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10715 Summary: No ?has_feature? constant for explicit operator conversions Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: 691D2C6C-B023-46A5-B1D7-ACCBA4713A87 at uuid-mail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com I couldn?t find a way to test if clang supports explicit operator conversions, i.e. the explicit keyword in front of ?operator bool? and similar. I am working on code where a subset is built with GCC so I need a compatibility macro for this keyword. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 21 09:06:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 21 Aug 2011 09:06:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 8520] Win32/Path.inc: "NUL" is not regular file (clang -o NUL fails) In-Reply-To: References: Message-ID: <20110821140612.0BCEC2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8520 NAKAMURA Takumi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |aaron at aaronballman.com Resolution| |FIXED --- Comment #4 from NAKAMURA Takumi 2011-08-21 09:06:11 CDT --- Fixed in r138213 by Aaron! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 21 09:12:56 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 21 Aug 2011 09:12:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 9099] [META][Win] Testing issues for LLVM on Windows hosts In-Reply-To: References: Message-ID: <20110821141256.904B62A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9099 NAKAMURA Takumi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #1 from NAKAMURA Takumi 2011-08-21 09:12:56 CDT --- The peace comes. :D -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 21 13:11:57 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 21 Aug 2011 13:11:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 10716] New: Configuring without "--build" creates a host tblgen that is used during the build Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10716 Summary: Configuring without "--build" creates a host tblgen that is used during the build Product: Build scripts Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: autoconf AssignedTo: unassignedbugs at nondot.org ReportedBy: vanboxem.ruben at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7106) --> (http://llvm.org/bugs/attachment.cgi?id=7106) config.log without --build argument OS: Fedora 15 GCC: 4.6 When I configure with: /home/ruben/mingw-w64/toolchain/src/LLVM/configure --host=x86_64-w64-mingw32 --build=x86_64-redhat-linux --target=x86_64-w64-mingw32 --with-sysroot=/home/ruben/mingw-w64/toolchain/mingw64mingw64/mingw64 --prefix=/home/ruben/mingw-w64/toolchain/mingw64mingw64/mingw64-clang --enable-optimized --disable-assertions --disable-pthreads CFLAGS= LDFLAGS= Everything is fine, if I configure with: /home/ruben/mingw-w64/toolchain/src/LLVM/configure --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-sysroot=/home/ruben/mingw-w64/toolchain/mingw64mingw64/mingw64 --prefix=/home/ruben/mingw-w64/toolchain/mingw64mingw64/mingw64-clang --enable-optimized --disable-assertions --disable-pthreads CFLAGS= LDFLAGS= tblgen is built for the host, and used as if it were native: llvm[2]: Linking Release executable tblgen (without symbols) llvm[2]: ======= Finished Linking Release Executable tblgen (without symbols) make[2]: Leaving directory `/home/ruben/mingw-w64/toolchain/mingw64mingw64/llvm-clang/utils/TableGen' make[1]: Leaving directory `/home/ruben/mingw-w64/toolchain/mingw64mingw64/llvm-clang/utils' make[1]: Entering directory `/home/ruben/mingw-w64/toolchain/mingw64mingw64/llvm-clang/lib/VMCore' llvm[1]: Building Intrinsics.gen.tmp from Intrinsics.td err:module:import_dll Library libgcc_s_sjlj-1.dll (which is needed by L"Z:\\home\\ruben\\mingw-w64\\toolchain\\mingw64mingw64\\llvm-clang\\Release\\bin\\tblgen.exe") not found err:module:import_dll Library libstdc++-6.dll (which is needed by L"Z:\\home\\ruben\\mingw-w64\\toolchain\\mingw64mingw64\\llvm-clang\\Release\\bin\\tblgen.exe") not found err:module:LdrInitializeThunk Main exe initialization for L"Z:\\home\\ruben\\mingw-w64\\toolchain\\mingw64mingw64\\llvm-clang\\Release\\bin\\tblgen.exe" failed, status c0000135 make[1]: *** [/home/ruben/mingw-w64/toolchain/mingw64mingw64/llvm-clang/lib/VMCore/Release/Intrinsics.gen.tmp] Error 53 make[1]: Leaving directory `/home/ruben/mingw-w64/toolchain/mingw64mingw64/llvm-clang/lib/VMCore' make: *** [all] Error 1 This is mostly my Linux binfmt stuff trying to run a Win32 app through WINE, which is not what should happen. tblgen should be either only built for the detected BUILD platform, or built for both BUILD and HOST platforms, so it can be used during the build and after install. Attached is a config.log that produces the wrong platform tblgen. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 22 02:21:38 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 22 Aug 2011 02:21:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 10717] New: API: isAllOnesValue and getAllOnesValue are not defined for all types Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10717 Summary: API: isAllOnesValue and getAllOnesValue are not defined for all types Product: libraries Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: Core LLVM classes AssignedTo: unassignedbugs at nondot.org ReportedBy: nadav.rotem at intel.com CC: llvmbugs at cs.uiuc.edu We can't use the following API because it is not implemented for all types: if (C->isAllOnesValue()) return Constant::getAllOnesValue(DestTy); I plan to implement this at some point. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 22 05:32:36 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 22 Aug 2011 05:32:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 10663] llvm-link segfault on alias In-Reply-To: References: Message-ID: <20110822103236.34E832A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10663 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Duncan Sands 2011-08-22 05:32:35 CDT --- Thanks for fixing this Jay. I added a testcase in commit 138231. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 22 13:48:04 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 22 Aug 2011 13:48:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 10718] New: ExecutionEngine construction not thread-safe Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10718 Summary: ExecutionEngine construction not thread-safe Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Target-Independent JIT AssignedTo: unassignedbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu, jediknil at belkadan.com It is not safe to construct ExecutionEngines in multiple threads with different LLVMContexts because they will call DynamicLibrary::LoadLibraryPermanently(...) without any locking, and that boils down to a race condition between dlopen and dlerror: DynamicLibrary DynamicLibrary::getPermanentLibrary(const char *filename, std::string *errMsg) { void *handle = dlopen(filename, RTLD_LAZY|RTLD_GLOBAL); if (handle == 0) { if (errMsg) *errMsg = dlerror(); return DynamicLibrary(); } [...] Now, getPermanentLibrary has a lock in it which suggests that it should be handling its own locking. Should the lock merely be shuffled above the dlopen? Earlier verions of DynamicLibrary.h used to have a comment: /// NOTE: This function is not thread safe. removed in r137791. Why? -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 22 15:14:03 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 22 Aug 2011 15:14:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 10719] New: attempting to inline spill CRBITRC:%vreg Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10719 Summary: attempting to inline spill CRBITRC:%vreg Product: libraries Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: Backend: PowerPC AssignedTo: unassignedbugs at nondot.org ReportedBy: rdivacky at freebsd.org CC: llvmbugs at cs.uiuc.edu I added this assert: Index: PPCInstrInfo.cpp =================================================================== --- PPCInstrInfo.cpp (revision 138231) +++ PPCInstrInfo.cpp (working copy) @@ -444,6 +444,7 @@ else if (SrcReg == PPC::CR7LT || SrcReg == PPC::CR7GT || SrcReg == PPC::CR7EQ || SrcReg == PPC::CR7UN) Reg = PPC::CR7; + assert(Reg != 0 && "not a physical register!"); return StoreRegToStackSlot(MF, Reg, isKill, FrameIdx, PPC::CRRCRegisterClass, NewMIs); and the attached is crashing selectOrSplit CRBITRC:%vreg130,9.456929e-04 = [2616d,4352d:0) 0 at 2616d RS_Spill Cascade 0 Inline spilling CRBITRC:%vreg130,9.456929e-04 = [2616d,4352d:0) 0 at 2616d >From original %vreg64,1.191038e-03 = [2208d,4352d:0) 0 at 2208d Tracing value %vreg130:0 at 2616d copy of %vreg131:0 at 2208d hoist in BB#25: %vreg131:0 at 2208d def %vreg131:0 at 2208d %vreg131 = CRSET; CRBITRC:%vreg131 Prefer to spill %vreg131:0 at 2208d Merged spilled regs: SS#0 = [2616d,4352d:0) 0 at invalid spillAroundUses %vreg130 merged orig valno 0: SS#0 = [2208d,4352d:0) 0 at invalid Checking redundant spills for 0 at 2208d in %vreg131,3.750000e-03 = [2208d,2616d:0) 0 at 2208d Merged to stack int: SS#0 = [2208d,4352d:0) 0 at invalid Checking redundant spills for 0 at 2616d in %vreg130,9.456929e-04 = [2616d,4352d:0) 0 at 2616d Assertion failed: (Reg != 0 && "not a physical register!"), function StoreRegToStackSlot, file PPCInstrInfo.cpp, line 447. without the assert it will just crash later on during asm printing of the instruction MFCRpseudo, but the real problem is that we're trying to spill a CRBITRC:%vreg instead of a physical reg. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 22 15:31:31 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 22 Aug 2011 15:31:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 10712] [AVX] integer comparisons are scalarized In-Reply-To: References: Message-ID: <20110822203131.261C02A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10712 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-08-22 15:31:30 CDT --- Fixed in r138270! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 22 16:59:45 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 22 Aug 2011 16:59:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 10678] [x86 disassembler] vandpd/vandps/vandnpd/vandnps disassembled incorrectly In-Reply-To: References: Message-ID: <20110822215945.CF8562A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10678 Kay Tiong Khoo changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #5 from Kay Tiong Khoo 2011-08-22 16:59:45 CDT --- (In reply to comment #4) > Fixed in r138034. Thanks, Craig! I built llvm-mc from r138250, and it looks like the vandpd/vandnpd cases are fixed, but I still see problems with vandps/vandnps: $ echo '0xc5 0xf1 0x54 0x3a'| ./llvm-mc -disassemble -triple="x86_64" vandpd (%rdx), %xmm1, %xmm7 $ echo '0xc5 0xf1 0x55 0x3a'| ./llvm-mc -disassemble -triple="x86_64" vandnpd (%rdx), %xmm1, %xmm7 $ echo '0xc5 0xf0 0x54 0x3a'| ./llvm-mc -disassemble -triple="x86_64" andps (%rdx), %xmm7 $ echo '0xc5 0xf0 0x55 0x3a'| ./llvm-mc -disassemble -triple="x86_64" andnps (%rdx), %xmm7 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 22 21:37:59 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 22 Aug 2011 21:37:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 10712] [AVX] integer comparisons are scalarized In-Reply-To: References: Message-ID: <20110823023759.AC0BC2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10712 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |craig.topper at gmail.com Resolution|FIXED | --- Comment #2 from Craig Topper 2011-08-22 21:37:59 CDT --- The changes as submitted do not support v16i16 and v32i8. Also pcmpgtq and pcmpeqq do not support the VEX encoded form. Also need to add a pattern to make "vextract128f $0" unnecessary if it is used for an operation on v8i16 or v16i8. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 22 21:47:59 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 22 Aug 2011 21:47:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 10720] New: crash: Res && "Invalid argument to GetAddrOfLocalVar(), no decl! Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10720 Summary: crash: Res && "Invalid argument to GetAddrOfLocalVar(), no decl! Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com In: struct pair { int second[4]; pair() ; pair(const pair&) = default; }; struct _List_node { pair _M_data; template _List_node(_Args&&... __args) : _M_data(__args...) { } }; pair mapping; void AddMappingInfo() { const _List_node& __x = mapping; } when running clang -cc1 -S -std=gnu++0x exception_handler.ii -w -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 22 23:37:37 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 22 Aug 2011 23:37:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 10712] [AVX] integer comparisons are scalarized In-Reply-To: References: Message-ID: <20110823043737.92A722A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10712 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #5 from Craig Topper 2011-08-22 23:37:37 CDT --- Committed my patch and test cases in r138321. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 23 05:45:14 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 23 Aug 2011 05:45:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 10721] New: false positive in comparison with cast Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10721 Summary: false positive in comparison with cast Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: mattiase at acm.org CC: llvmbugs at cs.uiuc.edu clang version 3.0 (trunk 138324) Target: x86_64-unknown-linux-gnu Running this through the static analyser: struct S { unsigned long long x; }; int f(struct S *p) { if (p->x != (unsigned)p->x) return 1; else return 2; } yields the warning: clangbug.c:3:14: warning: Both operands to '!=' always have the same value if (p->x != (unsigned)p->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 Tue Aug 23 07:04:39 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 23 Aug 2011 07:04:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 10585] Segmentation fault when linking bc's with same aliases In-Reply-To: References: Message-ID: <20110823120439.1779D2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10585 arrowdodger <6yearold at gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from arrowdodger <6yearold at gmail.com> 2011-08-23 07:04:38 CDT --- It seems, r138230 fixed this. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Aug 23 15:52:51 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 23 Aug 2011 15:52:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 10722] New: clang doesn't report missing @required properties declared in adopted system protocols Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10722 Summary: clang doesn't report missing @required properties declared in adopted system protocols Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: tjw at me.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7111) --> (http://llvm.org/bugs/attachment.cgi?id=7111) test case If you adopt a protocol with @required properties, clang isn't reporting missing implementations of the properties if the adopted protocol was defined in a system header. If you copy the protocol into your own .m file, edit it to avoid name conflicts, then clang does warn about the missing properties. See the attached example, using NSFilePresenter which defines 'presentedItemURL' and 'presentedItemOperationQueue' properties. When adopting NSFilePresenter, no warning is emitted for the missing properties, but copying it into the .m file and renaming stuff does provoke warnings for the 'foo_' prefixed properties. gcc reports warnings for both cases. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 23 15:53:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 23 Aug 2011 15:53:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 10723] New: [x86 disassembler] vcvtps2pd disassembled incorrectly Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10723 Summary: [x86 disassembler] vcvtps2pd disassembled incorrectly Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: kkhoo at perfwizard.com CC: llvmbugs at cs.uiuc.edu >From the "Intel? 64 and IA-32 Architectures Software Developer?s Manual Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 3-259: VEX.128.0F.WIG 5A /r VCVTPS2PD xmm1, xmm2/m64 VEX.256.0F.WIG 5A /r VCVTPS2PD ymm1, xmm2/m128 'VCVTPS2PD' can be specified with either the 2- or 3-byte VEX prefix (clang on OSX correctly assembles the following): vcvtps2pd %xmm0, %ymm0 The object file shows: C5 FC 5A C0 But using llvm-mc built from trunk r138250 produces the wrong output for this byte sequence: $ echo '0xc5 0xfc 0x5a 0xc0'| ./llvm-mc -disassemble -triple="x86_64" cvtps2pd %xmm0, %xmm0 The mnmemonic is missing the leading 'v' and the second operand is not the expected 256-bit ymm register. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 23 16:12:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 23 Aug 2011 16:12:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 10724] New: [x86 disassembler] vcvtsd2si disassembled incorrectly Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10724 Summary: [x86 disassembler] vcvtsd2si disassembled incorrectly Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: kkhoo at perfwizard.com CC: llvmbugs at cs.uiuc.edu >From the "Intel? 64 and IA-32 Architectures Software Developer?s Manual Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 3-264: VEX.LIG.F2.0F.W0 2D /r VCVTSD2SI r32, xmm1/m64 VEX.LIG.F2.0F.W1 2D /r VCVTSD2SI r64, xmm1/m64 'VCVTSD2SI' can be specified with either the 2- or 3-byte VEX prefix (clang on OSX correctly assembles the following): vcvtsd2si %xmm0, %eax vcvtsd2si %xmm0, %rax The object file shows: C5 FB 2D C0 C4 E1 FB 2D C0 But using llvm-mc built from trunk r138250 produces the wrong output for these byte sequences: $ echo '0xc5 0xfb 0x2d 0xc0'| ./llvm-mc -disassemble -triple="x86_64" -x86-asm-syntax=intel cvtsd2si EAX, XMM0 $ echo '0xc5 0xff 0x2d 0xc0'| ./llvm-mc -disassemble -triple="x86_64" -x86-asm-syntax=intel cvtsd2si EAX, XMM0 $ echo '0xc4 0xe1 0xf7 0x2d 0xc0'| ./llvm-mc -disassemble -triple="x86_64" -x86-asm-syntax=intel cvtsd2si RAX, XMM0 The mnemonic is missing the leading 'v' in all of these cases. The mnemonic is correct for the 3-byte VEX prefix with the 'L' bit set: $ echo '0xc4 0xe1 0xfb 0x2d 0xc0'| ./llvm-mc -disassemble -triple="x86_64" -x86-asm-syntax=intel vcvtsd2si RAX, XMM0 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 23 16:17:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 23 Aug 2011 16:17:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 10725] New: error in libstdc++ header: dependent using declaration resolved to type without 'typename' Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10725 Summary: error in libstdc++ header: dependent using declaration resolved to type without 'typename' Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: filcab at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com When trying to compile lldb on FreeBSD, I got this clang error. I created a minimal test-case to show it. G++ compiles it cleanly. The debug constant must be defined, for the error to occur. It also occurs on Apple's Mac OS X Snow Leopard (at least). filcab at aku ~/src> cat a.cpp #include typedef std::map collection; typedef collection::iterator iterator; filcab at aku ~/src> clang++ a.cpp -c -o a.o -D_GLIBCXX_DEBUG In file included from a.cpp:1: In file included from /usr/include/c++/4.2/map:69: In file included from /usr/include/c++/4.2/debug/map:39: /usr/include/c++/4.2/debug/map.h:77:20: error: dependent using declaration resolved to type without 'typename' using _Base::value_compare; ^ a.cpp:4:9: note: in instantiation of template class 'std::__debug::map, std::allocator > >' requested here typedef collection::iterator iterator; ^ /usr/include/c++/4.2/bits/stl_map.h:111:13: note: target of using declaration class value_compare ^ 1 error 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 Tue Aug 23 17:04:51 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 23 Aug 2011 17:04:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 10726] New: Getting Started should reference clang Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10726 Summary: Getting Started should reference clang Product: Website Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Documentation AssignedTo: unassignedbugs at nondot.org ReportedBy: echristo at gmail.com CC: llvmbugs at cs.uiuc.edu http://llvm.org/docs/GettingStarted.html still has llvm-gcc. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Aug 23 17:28:54 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 23 Aug 2011 17:28:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 10648] Flexible array members not initialized properly In-Reply-To: References: Message-ID: <20110823222854.DCD0B2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10648 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Eli Friedman 2011-08-23 17:28:54 CDT --- We don't support the given construct, but clang wasn't properly rejecting it. (clang only supports the GNU flexible array initialization extension on variables with static storage duration.) r138398 fixes the error checking so we give proper error messages. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 23 19:44:17 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 23 Aug 2011 19:44:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 10725] error in libstdc++ header: dependent using declaration resolved to type without 'typename' In-Reply-To: References: Message-ID: <20110824004417.7B9372A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10725 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #4 from Eli Friedman 2011-08-23 19:44:17 CDT --- Okay. BTW, the version of libstdc++ shipped with OSX Lion has a fix for this 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 Wed Aug 24 01:15:15 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 01:15:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 10711] [AVX] integer math ops are scalarized In-Reply-To: References: Message-ID: <20110824061515.26F872A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10711 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |craig.topper at gmail.com Resolution| |FIXED --- Comment #4 from Craig Topper 2011-08-24 01:15:14 CDT --- Fixed in r138427. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 24 07:28:26 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 07:28:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 9732] [Win][mingw] clang cannot not find w64-mingw32 automatically In-Reply-To: References: Message-ID: <20110824122826.0B4AC2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9732 vanboxem.ruben at gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED CC| |vanboxem.ruben at gmail.com Resolution| |WORKSFORME --- Comment #10 from vanboxem.ruben at gmail.com 2011-08-24 07:28:24 CDT --- I have fixed this in cooperation with mingw-w64 people: the definition of inline is adapted to Clang being used. Also: I implemented a relative header search in InitHeaderSearch for mingw-w64, so both i686-w64-mingw32 and x86_64-w64-mingw32 should find their C/C++ headers. See my little explanation here: http://llvm.org/bugs/show_bug.cgi?id=10434 Awaiting a full-blown universal driver solution, this works for people wanting to experiment with clang. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Aug 24 07:29:20 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 07:29:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 10727] New: #import directive in CPP MSVC file Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10727 Summary: #import directive in CPP MSVC file Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: eremeev at viva64.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com #import directive is incorrectly handled in MSVC cpp file by Clang. In MSVC, this directive is used to incorporate information from a type library dll (http://msdn.microsoft.com/en-us/library/8etzzkb6(v=VS.90).aspx), converting its' contents into C++ classes (mostly for COM interfaces) Clang instead handles this directive in Objective-C style, inserting the binary contents of specified dll into its' resulting preprocessor output, although the file being processed is indeed a cpp file (it is explicitly specified through -x command line option) -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 24 07:39:52 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 07:39:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 10728] New: Assertion failure in ARMELFObjectWriter Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10728 Summary: Assertion failure in ARMELFObjectWriter Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: eugeni.stepanov at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7113) --> (http://llvm.org/bugs/attachment.cgi?id=7113) C++ code I get the following assertion from ARMELFObjectWriter compiling the attached program with clang++. $ ./Release+Asserts/bin/clang++ -ccc-host-triple arm-elf -integrated-as -fPIC -x c++ 1.e -c -o 1.o clang: warning: unknown platform, assuming -mfloat-abi=soft clang: include/llvm/MC/MCSymbol.h:111: const llvm::MCSection& llvm::MCSymbol::getSection() const: Assertion `isInSection() && "Invalid accessor!"' failed. 0 clang 0x0000000001af53bf 1 clang 0x0000000001af7632 2 libpthread.so.0 0x00007f36f0e018f0 3 libc.so.6 0x00007f36f00f0a75 gsignal + 53 4 libc.so.6 0x00007f36f00f45c0 abort + 384 5 libc.so.6 0x00007f36f00e9941 __assert_fail + 241 6 clang 0x0000000001a6f217 llvm::ARMELFObjectWriter::ExplicitRelSym(llvm::MCAssembler const&, llvm::MCValue const&, llvm::MCFragment const&, llvm::MCFixup const&, bool) const + 855 7 clang 0x0000000001a7371f llvm::ELFObjectWriter::SymbolToReloc(llvm::MCAssembler const&, llvm::MCValue const&, llvm::MCFragment const&, llvm::MCFixup const&, bool) const + 415 8 clang 0x0000000001a7331f llvm::ELFObjectWriter::RecordRelocation(llvm::MCAssembler const&, llvm::MCAsmLayout const&, llvm::MCFragment const*, llvm::MCFixup const&, llvm::MCValue, unsigned long&) + 159 9 clang 0x0000000001a851fb llvm::MCAssembler::HandleFixup(llvm::MCAsmLayout const&, llvm::MCFragment&, llvm::MCFixup const&) + 123 10 clang 0x0000000001a854f1 llvm::MCAssembler::Finish() + 721 11 clang 0x00000000015e0afe llvm::AsmPrinter::doFinalization(llvm::Module&) + 1262 12 clang 0x0000000001a3c8e4 llvm::FPPassManager::doFinalization(llvm::Module&) + 84 13 clang 0x0000000001a4431f llvm::FPPassManager::runOnModule(llvm::Module&) + 95 14 clang 0x0000000001a43d11 llvm::MPPassManager::runOnModule(llvm::Module&) + 497 15 clang 0x0000000001a43e9b llvm::PassManagerImpl::run(llvm::Module&) + 187 16 clang 0x00000000007c9815 clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 1989 17 clang 0x00000000007c6bfe clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 270 18 clang 0x000000000090a87f clang::ParseAST(clang::Sema&, bool) + 431 19 clang 0x00000000007c5e24 clang::CodeGenAction::ExecuteAction() + 68 20 clang 0x00000000006a69a3 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 371 21 clang 0x000000000068d23e clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1326 22 clang 0x0000000000682d68 cc1_main(char const**, char const**, char const*, void*) + 1000 23 clang 0x000000000068c08b main + 7131 24 libc.so.6 0x00007f36f00dbc4d __libc_start_main + 253 25 clang 0x0000000000681e59 Stack dump: 0. Program arguments: ./Release+Asserts/bin/clang -cc1 -triple armv4t-elf- -emit-obj -mrelax-all -disable-free -main-file-name 1.e -pic-level 2 -mdisable-fp-elim -mconstructor-aliases -target-abi apcs-gnu -target-cpu arm7tdmi -msoft-float -mfloat-abi soft -target-feature +soft-float -target-feature +soft-float-abi -target-feature -neon -target-linker-version 2.20.1 -momit-leaf-frame-pointer -coverage-file 1.o -resource-dir ./Release+Asserts/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length 189 -fno-signed-char -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o 1.o -x c++ 1.e 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module '1.e'. clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 2 (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 Aug 24 07:45:46 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 07:45:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 10729] New: [Meta][Win] Clang MinGW(-w64) test failures Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10729 Summary: [Meta][Win] Clang MinGW(-w64) test failures Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: vanboxem.ruben at gmail.com CC: llvmbugs at cs.uiuc.edu Using GCC 4.6.2 (prerelease) with current LLVM/Clang together with current v2.0-rc1 mingw-w64 crt it is possible to run the clang test suite. To run the test suite, one needs to copy the system headers in /x86_64-w64-mingw32/include to /x86_64-w64-mingw32/include and the libstdc++ headers /include/c++ to /include/c++ so that the produced Clang binaries can find their headers. This report will depend on any bug reports about failing tests in the Clang test suite for mingw-w64. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 24 09:00:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 09:00:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 10730] New: Wrong hiding of virtual function Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10730 Summary: Wrong hiding of virtual function Product: new-bugs Version: unspecified Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: clang2007-inheritance at yahoo.de CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7116) --> (http://llvm.org/bugs/attachment.cgi?id=7116) The code file (main.cpp) If I compile the added file using: clang -c -Wall -pedantic main.cpp I receive the following warnings and errors: main.cpp:17:19: warning: 'CObject::Get' hides overloaded virtual function [-Woverloaded-virtual] virtual CObject* Get(long nIndex) ^ main.cpp:7:21: note: hidden overloaded virtual function 'CRoot::Get' declared here virtual const long Get() ^ main.cpp:28:21: error: too few arguments to function call, expected 1, have 0 std::cout << o.Get() << std::endl; ~~~~~ ^ Warning and Error are both wrong. If you duplicate the method in question from CRoot to CObject the error disappears. The code from the file: #include class CRoot { public: virtual const long Get() { return 1; } }; class CObject : public CRoot { public: virtual CObject* Get(long nIndex) { return this; } }; CObject o; int main() { std::cout << o.Get() << std::endl; return 0; } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Aug 24 09:30:49 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 09:30:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 10731] New: Codegenerator inserts bitcast before landingpad instruction, causing verifier failure Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10731 Summary: Codegenerator inserts bitcast before landingpad instruction, causing verifier failure 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: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7117) --> (http://llvm.org/bugs/attachment.cgi?id=7117) testcase .ll The attached IR verifies OK, but the code generators introduce changes that cause the verifier to reject it (the code generators insert a bitcast between a phi node and the landingpad instruction): $ opt -verify bitcast-insert.ll -disable-output $ llc bitcast-insert.ll LandingPadInst not the first non-PHI instruction in the block. %2 = landingpad { i8*, i32 } personality i32 (i32, i64, i8*, i8*)* @__gxx_personality_v0 cleanup Broken module found, compilation 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 Aug 24 09:38:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 09:38:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 10732] New: Codegen loop pass tries to split critical edge to a landing pad block Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10732 Summary: Codegen loop pass tries to split critical edge to a landing pad block 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: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7118) --> (http://llvm.org/bugs/attachment.cgi?id=7118) testcase .ll The attached testcase verifies OK, but the code generator barfs on it: $ opt -verify loops.ll -disable-output $ llc loops.ll llc: llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp:182: llvm::BasicBlock* llvm::SplitCriticalEdge(llvm::TerminatorInst*, unsigned int, llvm::Pass*, bool): Assertion `!DestBB->isLandingPad() && "Cannot split critical edge to a landing pad block!"' 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 Wed Aug 24 09:58:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 09:58:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 10733] New: Codegen loop strength reduction crash trying to split landing pad critical edge Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10733 Summary: Codegen loop strength reduction crash trying to split landing pad critical edge 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: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7119) --> (http://llvm.org/bugs/attachment.cgi?id=7119) testcase .ll $ llc lsr.ll llc: llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp:182: llvm::BasicBlock* llvm::SplitCriticalEdge(llvm::TerminatorInst*, unsigned int, llvm::Pass*, bool): Assertion `!DestBB->isLandingPad() && "Cannot split critical edge to a landing pad block!"' 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 Wed Aug 24 10:45:06 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 10:45:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 10730] Wrong hiding of virtual function In-Reply-To: References: Message-ID: <20110824154506.71C102A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10730 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |INVALID --- Comment #1 from Eli Friedman 2011-08-24 10:45:06 CDT --- clang's error here is correct, and agrees with every other compiler I have access to at the moment. What gave you the impression clang isn't doing the right thing here? -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 24 12:35:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 12:35:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 10734] New: Assertion failed: (TheCU && "Unable to find compile unit!") Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10734 Summary: Assertion failed: (TheCU && "Unable to find compile unit!") Product: clang Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: filcab at gmail.com CC: llvmbugs at cs.uiuc.edu I can't use clang to build llvm+clang because clang errors out in the configure script with this error. I minimized the flags to the ones that error out. For reference, the configure script executed this line: 0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-unknown-freebsd9.0 -emit-obj -mrelax-all -disable-free -main-file-name conftest.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.1 -momit-leaf-frame-pointer -g -resource-dir /usr/local/bin/../lib/clang/3.0 -ferror-limit 19 -fmessage-length 0 -fdiagnostics-show-option -o /tmp/cc-4H15WK.o -x c conftest.c The configure script was invoked as: $ ../llvm/configure --enable-debug-runtime --enable-debug-symbols CFLAGS=-g --with-llvmcc=clang CC=clang CXX=clang++ filcab at aku ~> cat a.c master* int main () { ; return 0; } filcab at aku ~> clang -cc1 -g -emit-obj -o a a.c master* Assertion failed: (TheCU && "Unable to find compile unit!"), function endFunction, file /home/filcab/src/trunk-llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp, line 1306. Stack dump: 0. Program arguments: clang -cc1 -g -emit-obj -o a a.c 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'a.c'. 4. Running pass 'X86 AT&T-Style Assembly Printer' on function '@main' [1] 19239 abort (core dumped) clang -cc1 -g -emit-obj -o a a.c filcab at aku ~> clang --version 134 ? master* clang version 3.0 (trunk 137311) Target: x86_64-unknown-freebsd9.0 Thread model: posix filcab at aku ~> master* -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 24 12:49:15 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 12:49:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 10734] Assertion failed: (TheCU && "Unable to find compile unit!") In-Reply-To: References: Message-ID: <20110824174915.AC64D2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10734 Filipe Cabecinhas changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Filipe Cabecinhas 2011-08-24 12:49:15 CDT --- Just recompiled llvm+clang (gmake happiness) and it works now, with the trunk revision. Sorry for the noise. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 24 15:39:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 15:39:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 10735] New: clang uses the regparm attribute when deciding templace specializations Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10735 Summary: clang uses the regparm attribute when deciding templace specializations 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 rejects and gcc accepts the following code: template struct nsRunnableMethodTraits { }; //template struct nsRunnableMethodTraits { template struct nsRunnableMethodTraits { typedef int base_type; }; template typename nsRunnableMethodTraits::base_type* NS_NewRunnableMethod(Method method) ; struct C1 { virtual void __attribute__ ((regparm (0))) FinishStream(void) { NS_NewRunnableMethod( &C1::FinishStream); } }; Changing which line make clang accept the 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 Wed Aug 24 16:07:23 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 16:07:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 10731] Codegenerator inserts bitcast before landingpad instruction, causing verifier failure In-Reply-To: References: Message-ID: <20110824210723.4358B2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10731 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Bill Wendling 2011-08-24 16:07:22 CDT --- This should be fixed with r138481. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 24 16:18:09 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 16:18:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 10735] clang uses the regparm attribute when deciding templace specializations In-Reply-To: References: Message-ID: <20110824211809.73ADB2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10735 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #3 from Douglas Gregor 2011-08-24 16:18:08 CDT --- Clang is behaving correctly here. A regparm-attributed member function pointer type is distinct from a non-regparm-attributed member function pointer type, so they'll have different template specializations. GCC's behavior appears to be inconsistent here, because the types are considered equivalent for the purposes of matching template arguments, so the regparm attribute associated with the first instantiation is the one that "sticks", even if subsequent instantiations don't have the regparm 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 Wed Aug 24 17:32:56 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 17:32:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 10736] New: LegalizeVectorTypes fails when attempting to Widen a MERGE_VALUES node Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10736 Summary: LegalizeVectorTypes fails when attempting to Widen a MERGE_VALUES node Product: libraries Version: 2.9 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 Created an attachment (id=7122) --> (http://llvm.org/bugs/attachment.cgi?id=7122) test case that triggers assert When running the test case through a backend that supports natively v4f32 data type, this bitcode file causes an assert as it attempts to widen a v3f32 element of a structure. The problem is that the v3f32 is the result of a MERGE_VALUES SDNode and in DAGTypeLegalizer::WidenVectorResult() there is no case for this node type. This does not cause problems on X86 because it does not support the v4f32 data type needed to widen the node and thus scalarizes the data type. Here is the assert: llc --march=amdil _temp_1_cypress_optimized.bc WidenVectorResult #0: 0x9da2750: v3f32,i32,i32,i32,i32 = merge_values 0x9da1a90, 0x9da1ed0, 0x9da2310, 0x9da24a8, 0x9da2640 [ORD=5] [ID=0] Do not know how to widen the result of this operator! UNREACHABLE executed at ../../../LegalizeVectorTypes.cpp:1244! Aborted I'm not sure how to fix this as even when I implement WidenVecRes_MERGE_VALUES, I still hit asserts in LegalizeTypes with v3f32 issues. Another approach i am working on is having LLVM split instead of widen vec3 nodes, but then I run into asserts based on Lo and Hi results of a split not being the same size. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 24 18:15:03 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 18:15:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 10737] New: Some issues with forward references in classes Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10737 Summary: Some issues with forward references in classes Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com This file should fail to compile but clang accepts it. The name foo will be parsed as a variable and the later definition of foo will not help. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 24 18:17:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 18:17:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 10738] New: Some further issues with forward references Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10738 Summary: Some further issues with forward references Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com My understanding is that the return type cannot be forward referenced but clang allows 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 Wed Aug 24 18:53:53 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 18:53:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 10739] New: friend function visibility error Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10739 Summary: friend function visibility error Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=7125) --> (http://llvm.org/bugs/attachment.cgi?id=7125) friend function visibility error in function bar2, the variable y is not in scope and thus there should be an error but clang accepts 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 Wed Aug 24 19:40:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 19:40:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 10737] Some issues with forward references in classes In-Reply-To: References: Message-ID: <20110825004044.1B9F22A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10737 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #5 from Eli Friedman 2011-08-24 19:40:43 CDT --- (In reply to comment #4) > The bug now is: > > struct A { > void func(foo); > typedef int foo; > }; > > Should compile but does not. That's not a 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 Wed Aug 24 19:41:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 19:41:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 10738] Some further issues with forward references In-Reply-To: References: Message-ID: <20110825004105.D58192A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10738 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |INVALID --- Comment #3 from Eli Friedman 2011-08-24 19:41:05 CDT --- Resolving per comment 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 Aug 24 19:42:30 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 19:42:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 10739] friend function visibility error In-Reply-To: References: Message-ID: <20110825004230.9FCAE2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10739 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |INVALID --- Comment #1 from Eli Friedman 2011-08-24 19:42:30 CDT --- clang correctly rejects the given 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 Wed Aug 24 20:17:04 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 20:17:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 10737] Some issues with forward references in classes In-Reply-To: References: Message-ID: <20110825011704.CD9EA2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10737 reed kotler changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Aug 24 20:21:33 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 20:21:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 10737] Some issues with forward references in classes In-Reply-To: References: Message-ID: <20110825012133.A00532A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10737 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID --- Comment #8 from Eli Friedman 2011-08-24 20:21:33 CDT --- "A name used in the definition of a member function" doesn't apply to your testcase; it doesn't define any functions. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Aug 24 21:33:36 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 21:33:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 10740] New: no diagnostic for uninstantiatable template Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10740 Summary: no diagnostic for uninstantiatable template Product: clang Version: unspecified Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: richard-llvm at metafoo.co.uk CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The following template cannot be instantiated: template struct S { S() { void f(int); f(T(), T()); } }; The block-scope declaration of 'f' disables ADL, so the call to 'f' will never work. clang provides no diagnostic for 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 Wed Aug 24 21:35:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 21:35:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 10741] New: no diagnostic for uninstantiatable template: failed lookup in current instantiation with no dependent base classes not caught Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10741 Summary: no diagnostic for uninstantiatable template: failed lookup in current instantiation with no dependent base classes not caught Product: clang Version: unspecified Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: richard-llvm at metafoo.co.uk CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com clang does not diagnose this uninstantiatable template: template struct S { S() { this->f(); } }; -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 24 21:41:46 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 21:41:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 8580] clang error recovery goes wrong after qualifier mismatch In-Reply-To: References: Message-ID: <20110825024146.2645B2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8580 Richard Smith changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Richard Smith 2011-08-24 21:41:45 CDT --- Only the first error is produced 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 Aug 24 21:42:35 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 21:42:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 8581] Duplicate diagnostic initializing a local variable of type 'void' In-Reply-To: References: Message-ID: <20110825024235.769802A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8581 Richard Smith changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Richard Smith 2011-08-24 21:42:35 CDT --- Only the first error is produced 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 Aug 24 21:43:11 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 21:43:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 10741] no diagnostic for uninstantiatable template: failed lookup in current instantiation with no dependent base classes not caught In-Reply-To: References: Message-ID: <20110825024311.5ABDE2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10741 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Douglas Gregor 2011-08-24 21:43:11 CDT --- This is because we don't implement the "current instantiation" rules for member access expressions properly, which is already covered by PR8368. *** This bug has been marked as a duplicate of bug 8368 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 24 21:44:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 21:44:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 8626] clang++ produces poor diagnostic for function-style cast with no matching constructors In-Reply-To: References: Message-ID: <20110825024410.F2AE22A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8626 Richard Smith 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 Aug 24 23:44:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 24 Aug 2011 23:44:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 10717] API: isAllOnesValue and getAllOnesValue are not defined for all types In-Reply-To: References: Message-ID: <20110825044422.5345E2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10717 Nadav Rotem 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 Thu Aug 25 00:55:52 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 00:55:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 10733] Codegen loop strength reduction crash trying to split landing pad critical edge In-Reply-To: References: Message-ID: <20110825055552.1E9042A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10733 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bill Wendling 2011-08-25 00:55:51 CDT --- Fixed r138550 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 25 00:57:08 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 00:57:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 10732] Codegen loop pass tries to split critical edge to a landing pad block In-Reply-To: References: Message-ID: <20110825055708.BBDED2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10732 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #1 from Bill Wendling 2011-08-25 00:57:08 CDT --- This one might have been the same problem as PR10733. It passes for me now. Please check with the original test case. :-) -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 25 01:58:39 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 01:58:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 10723] [x86 disassembler] vcvtps2pd disassembled incorrectly In-Reply-To: References: Message-ID: <20110825065839.BADA92A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10723 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |craig.topper at gmail.com Resolution| |FIXED --- Comment #2 from Craig Topper 2011-08-25 01:58:39 CDT --- Fixed in r138551. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 25 03:11:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 03:11:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 10678] [x86 disassembler] vandpd/vandps/vandnpd/vandnps disassembled incorrectly In-Reply-To: References: Message-ID: <20110825081150.78BAD2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10678 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #7 from Craig Topper 2011-08-25 03:11:49 CDT --- I believe I've resolved everything mentioned here in r138552 and r138553. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 25 03:53:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 03:53:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 10742] New: [AVX] JIT fails for insertelement operations ("Unknown immediate size" / "Wrong MachineOperand accessor") Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10742 Summary: [AVX] JIT fails for insertelement operations ("Unknown immediate size" / "Wrong MachineOperand accessor") 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: karrenberg at cs.uni-saarland.de CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7126) --> (http://llvm.org/bugs/attachment.cgi?id=7126) Two test functions the JIT fails to compile The JIT fails to compile the two attached test functions under Linux x86-64 with AVX enabled (LLVM svn trunk). llc on the other hand works fine: llc jittest.ll -mcpu=corei7-avx -mattr+avx -o jittest.s The code that instantiates the execution engine looks like this: InitializeNativeTarget(); EngineBuilder eb = EngineBuilder(mod); eb.setEngineKind(EngineKind::JIT); eb.setErrorStr(&errorMessage); eb.setJITMemoryManager(JITMemoryManager::CreateDefaultMemManager()); eb.setOptLevel(CodeGenOpt::Aggressive); eb.setAllocateGVsWithCode(false); eb.setCodeModel(CodeModel::Default); eb.setMCPU("corei7-avx"); std::vector attrs; attrs.push_back("avx"); eb.setMAttrs(attrs); Here is the output of gdb for function 'test': jitTest: /home/karrenberg/proj/llvm-svn/include/llvm/CodeGen/MachineOperand.h:337: int64_t llvm::MachineOperand::getImm() const: Assertion `isImm() && "Wrong MachineOperand accessor"' failed. Program received signal SIGABRT, Aborted. 0x00007ffff6eb8d05 in raise () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) bt #0 0x00007ffff6eb8d05 in raise () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00007ffff6ebcab6 in abort () from /lib/x86_64-linux-gnu/libc.so.6 #2 0x00007ffff6eb17c5 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6 #3 0x00000000004f2572 in llvm::MachineOperand::getImm (this=0x169c2e0) at /home/karrenberg/proj/llvm-svn/include/llvm/CodeGen/MachineOperand.h:337 #4 0x00000000004f0cf8 in (anonymous namespace)::Emitter::emitInstruction (this=0x1689680, MI=..., Desc=0x162d3e0) at X86CodeEmitter.cpp:866 #5 0x00000000004ef8f0 in (anonymous namespace)::Emitter::runOnMachineFunction (this=0x1689680, MF=...) at X86CodeEmitter.cpp:134 #6 0x00000000008011d5 in llvm::MachineFunctionPass::runOnFunction (this=0x1689680, F=...) at MachineFunctionPass.cpp:33 #7 0x0000000000cd0d31 in llvm::FPPassManager::runOnFunction (this=0x165b1e0, F=...) at PassManager.cpp:1513 #8 0x0000000000cd09e8 in llvm::FunctionPassManagerImpl::run (this=0x165bc30, F=...) at PassManager.cpp:1463 #9 0x0000000000cd0693 in llvm::FunctionPassManager::run (this=0x164e910, F=...) at PassManager.cpp:1392 #10 0x00000000004aef18 in llvm::JIT::jitTheFunction (this=0x1658160, F=0x164aee0, locked=...) at JIT.cpp:639 #11 0x00000000004aedf3 in llvm::JIT::runJITOnFunctionUnlocked (this=0x1658160, F=0x164aee0, locked=...) at JIT.cpp:618 #12 0x00000000004af1d0 in llvm::JIT::getPointerToFunction (this=0x1658160, F=0x164aee0) at JIT.cpp:675 Here is the corresponding output for 'test2': jitTest: MCTargetDesc/X86BaseInfo.h:425: unsigned int llvm::X86II::getSizeOfImm(uint64_t): Assertion `0 && "Unknown immediate size"' failed. Program received signal SIGABRT, Aborted. 0x00007ffff6eb8d05 in raise () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) bt #0 0x00007ffff6eb8d05 in raise () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00007ffff6ebcab6 in abort () from /lib/x86_64-linux-gnu/libc.so.6 #2 0x00007ffff6eb17c5 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6 #3 0x00000000004eef78 in llvm::X86II::getSizeOfImm (TSFlags=46263173445) at MCTargetDesc/X86BaseInfo.h:425 #4 0x00000000004f0cd6 in (anonymous namespace)::Emitter::emitInstruction (this=0x1689680, MI=..., Desc=0x16351e0) at X86CodeEmitter.cpp:866 #5 0x00000000004ef8f0 in (anonymous namespace)::Emitter::runOnMachineFunction (this=0x1689680, MF=...) at X86CodeEmitter.cpp:134 #6 0x00000000008011d5 in llvm::MachineFunctionPass::runOnFunction (this=0x1689680, F=...) at MachineFunctionPass.cpp:33 #7 0x0000000000cd0d31 in llvm::FPPassManager::runOnFunction (this=0x165b1e0, F=...) at PassManager.cpp:1513 #8 0x0000000000cd09e8 in llvm::FunctionPassManagerImpl::run (this=0x165bc30, F=...) at PassManager.cpp:1463 #9 0x0000000000cd0693 in llvm::FunctionPassManager::run (this=0x164e910, F=...) at PassManager.cpp:1392 #10 0x00000000004aef18 in llvm::JIT::jitTheFunction (this=0x1658160, F=0x164ad30, locked=...) at JIT.cpp:639 #11 0x00000000004aedf3 in llvm::JIT::runJITOnFunctionUnlocked (this=0x1658160, F=0x164ad30, locked=...) at JIT.cpp:618 #12 0x00000000004af1d0 in llvm::JIT::getPointerToFunction (this=0x1658160, F=0x164ad30) at JIT.cpp:675 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 25 07:00:16 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 07:00:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 10743] New: JIT compiler crashes on bitcode from clang Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10743 Summary: JIT compiler crashes on bitcode from clang Product: new-bugs Version: trunk Platform: PC URL: http://pastebin.com/rLHpyprY OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: Lars.Rasmusson at sics.se CC: llvmbugs at cs.uiuc.edu I have discovered a case where the JIT compiler (ExecutionEnginge::getPointerToFunction(Function*)) aborts with program: /home/larsr/src/llvm/lib/ExecutionEngine/JIT/JIT.cpp:616: void llvm::JIT::runJITOnFunctionUnlocked(llvm::Function*, const llvm::MutexGuard&): Assertion `!isAlreadyCodeGenerating && "Error: Recursive compilation detected!"' failed. Here is example code that breaks the JIT when asking it to get the function "makeit": #include class C { public: C(void); }; C::C(void) { std::cout << "CCC\n"; } extern "C" { void makeit() { C(); } } It crashes when: 1) I have compiled a C++ class into bitcode with clang, and 2) the constructor is declared OUTSIDE the type definition, and 3) I compile WITHOUT optimization. I have attached a script that compiles and runs the code and crashes when the above criteria are met. (Look at it at pastebin http://pastebin.com/rLHpyprY ) I use clang version 3.0 (http://llvm.org/git/clang.git ec5bc81fd55bfcc26fc4bde6d5e33113d94c2209) Target: i386-pc-linux-gnu and Low Level Virtual Machine (http://llvm.org/): llvm version 3.0svn commit 3c0e5dc40f48eaec7c02d30a1da96858f7f46bec Date: Mon Aug 22 10:32:09 2011 +0000 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 25 12:27:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 12:27:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 10742] [AVX] JIT fails for insertelement operations ("Unknown immediate size" / "Wrong MachineOperand accessor") In-Reply-To: References: Message-ID: <20110825172705.28CB92A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10742 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bruno.cardoso at gmail.com Resolution| |WONTFIX --- Comment #1 from Bruno Cardoso Lopes 2011-08-25 12:27:04 CDT --- Hi Ralf, AVX isn't supported in the old JIT. Try MCJIT. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 25 13:45:27 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 13:45:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 10744] New: Can't specify linker to use with the -B flag Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10744 Summary: Can't specify linker to use with the -B flag Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: glotov at chromium.org CC: llvmbugs at cs.uiuc.edu $ clang -B/usr/x86_64-pc-linux-gnu/i686-pc-linux-gnu/binutils-bin/2.20.1-gold/ld test.c uses linker at "/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld" and ignores one specified by -B. To see it, use -v. I think this is because of the following code: In tools/clang/lib/Driver/ToolChains.cpp: llvm::sys::Path LinkerPath(Base + "/../../../../" + GccTriple + "/bin/ld"); if (!llvm::sys::fs::exists(LinkerPath.str(), Exists) && Exists) Linker = LinkerPath.str(); else Linker = GetProgramPath("ld"); So it tries to use the first guess (/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld) linker, and only if not found, it invokes ToolChain::GetProgramPath("ld", true), which calls Driver::GetProgramPath("ld", this, true): In tools/clang/lib/Driver/Driver.cpp: std::string Driver::GetProgramPath(const char *Name, const ToolChain &TC, bool WantFile) const { // Respect a limited subset of the '-Bprefix' functionality in GCC by // attempting to use this prefix when lokup up program paths. for (Driver::prefix_list::const_iterator it = PrefixDirs.begin(), ie = PrefixDirs.end(); it != ie; ++it) { llvm::sys::Path P(*it); P.appendComponent(Name); bool Exists; if (WantFile ? !llvm::sys::fs::exists(P.str(), Exists) && Exists : P.canExecute()) return P.str(); } ... So it does respect -B, but only if the first guess not found. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 25 13:55:55 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 13:55:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 10745] New: runtime/memory usage regression in static analyzer Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10745 Summary: runtime/memory usage regression in static analyzer Product: clang Version: trunk Platform: Other OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: uspoerlein at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7128) --> (http://llvm.org/bugs/attachment.cgi?id=7128) Before/after memory, swap and cpu usage for scan-build Hi, so I'm running regular scan-builds with ToT clang against ToT freebsd. Somewhere between July 27 and July 30 the runtime for these runs increased from about 15h to more than 30h. The memory usage also increased dramatically, resulting in clang being killed due to OOM a couple of times during the run. http://scan.freebsd.your.org/freebsd-head/ the logfile's last-modified dates on that page show you the effective running time (they all start around midnight UTC). I also have cpu/ram/swap usage monitoring on that box (it is partially broken, but it is evident how the cpu/ram usage jumped up at the end of July), see attachment. I don't follow the development closely, but I haven't seen any changes in llvm/tools/clang/tools/scan-build during that timeframe. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 25 14:03:26 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 14:03:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 10746] New: Virtual filesystem Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10746 Summary: Virtual filesystem Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: enhancement Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: xocotl at gmail.com CC: llvmbugs at cs.uiuc.edu It would be nice if Clang had a way to allow users of it to provide a virtual filesystem class to replace the system filesystem calls. For me, the use would be to allow directories and "files" to be provided at runtime by plugins (autogenerated and otherwise, such as #include ). Other uses would be mapping to HTTP and caching the result, to allow #includes from Github or whatnot. If you look at libclang there's already a RemapFiles which works around the lack of VFS support. Please consider this. Thanks James -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 25 16:46:27 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 16:46:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 10414] non-optimal linkage for function local constant In-Reply-To: References: Message-ID: <20110825214627.BA73E2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10414 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #10 from Eric Christopher 2011-08-25 16:46:26 CDT --- Fixed here: [yendi:llvm/tools/clang] echristo% git svn dcommit Committing to https://llvm.org/svn/llvm-project/cfe/trunk ... M lib/CodeGen/CGDecl.cpp M test/CodeGen/2005-02-27-MarkGlobalConstant.c M test/CodeGen/decl.c M test/CodeGen/string-literal-short-wstring.c M test/CodeGen/string-literal.c Committed r138418 M test/CodeGen/string-literal-short-wstring.c M test/CodeGen/decl.c M test/CodeGen/2005-02-27-MarkGlobalConstant.c M test/CodeGen/string-literal.c M lib/CodeGen/CGDecl.cpp r138418 = 54b0e63fe7e792ec5beb4f9384a7943760c04d84 (refs/remotes/origin/master) -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 25 17:00:26 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 17:00:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 10747] New: miscompiled extractelement instruction Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10747 Summary: miscompiled extractelement instruction 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: vargaz at gmail.com CC: llvmbugs at cs.uiuc.edu Testcase: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< define i32 @main() { BB0: %0 = alloca <2 x i64>, align 16 %1 = getelementptr <2 x i64>* %0, i32 0, i32 1 store i64 6, i64* %1 %2 = getelementptr inbounds <2 x i64>* %0, i32 0, i32 0 store i64 1, i64* %2 %3 = ptrtoint <2 x i64>* %0 to i64 %4 = inttoptr i64 %3 to <2 x i64>* %5 = load <2 x i64>* %4, align 1 store i64 4, i64* %1 store i64 3, i64* %2 %6 = extractelement <2 x i64> %5, i32 1 %7 = trunc i64 %6 to i32 ret i32 %7 } >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Compile using: llvm-as -o temp.bc bug.ll && llc -march=x86-64 -o temp.s temp.bc && gcc temp.s && ./a.out This should exit with exit code 6, but it exits with code 4. This is with LLVM HEAD on x86-64. This seems to be caused by revision 131183, i.e.: Author: Nadav Rotem Date: Wed May 11 14:40:50 2011 +0000 Fixes a bug in the DAGCombiner. LoadSDNodes have two values (data, chain). If there is a store after the load node, then there is a chain, which means that there is another user. Thus, asking hasOneUser would fail. Instead we ask hasNUsesOfValue on the 'data' 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 Thu Aug 25 18:19:17 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 18:19:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 10647] memcpy called when memory areas of source and destination overlap In-Reply-To: References: Message-ID: <20110825231917.C6AD02A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10647 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from John McCall 2011-08-25 18:19:17 CDT --- Fixed in r138599. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 25 18:25:01 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 18:25:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 9302] goto out of try block to no-return function generates invalid IR In-Reply-To: References: Message-ID: <20110825232501.DA2662A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9302 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from John McCall 2011-08-25 18:25:00 CDT --- This seems to pass on ToT now, and it looks a lot like something I fixed in r137011. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 25 18:26:07 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 18:26:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 8098] uncaught exception doesn't cause expected behavior In-Reply-To: References: Message-ID: <20110825232607.6EB2D2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8098 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from John McCall 2011-08-25 18:26:06 CDT --- Please try this again with a ToT clang (or wait for 3.0); there have been major improvements in this area within the last few months. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 25 18:41:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 18:41:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 10748] New: clang crashes from gcc torture test limits-declparen.c Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10748 Summary: clang crashes from gcc torture test limits-declparen.c Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7130) --> (http://llvm.org/bugs/attachment.cgi?id=7130) limits-declparen.c ~/build_llvm/install/bin/clang ~/gcc-4.4.6/gcc/testsuite/gcc.c-torture/compile/limits-declparen.c clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Preprocessed source(s) are located at: clang: note: diagnostic msg: /tmp/cc-N0O6eF.i -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Aug 25 18:44:24 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 18:44:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 10749] New: clang crashes from gcc torture test limits-exprparen.c Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10749 Summary: clang crashes from gcc torture test limits-exprparen.c Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7131) --> (http://llvm.org/bugs/attachment.cgi?id=7131) limits-exprparen.c from gcc torture test ~/build_llvm/install/bin/clang ~/gcc-4.4.6/gcc/testsuite/gcc.c-torture/compile/limits-exprparen.c clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Preprocessed source(s) are located at: clang: note: diagnostic msg: /tmp/cc-ZAU6PW.i -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Aug 25 18:49:49 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 18:49:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 10750] New: clang crashes from gcc torture test limits-fndefn.c Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10750 Summary: clang crashes from gcc torture test limits-fndefn.c Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7132) --> (http://llvm.org/bugs/attachment.cgi?id=7132) gcc torture test limits-fdefn.c rkotler at ubuntu-rkotler:~/icpc$ ~/build_llvm/install/bin/clang ~/gcc-4.4.6/gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c clang: /home/rkotler/workspace/llvm/tools/clang/lib/Serialization/../../include/clang/AST/Decl.h:1217: void clang::ParmVarDecl::setScopeInfo(unsigned int, unsigned int): Assertion `ParmVarDeclBits.ParameterIndex == parameterIndex && "truncation!"' failed. 0 clang 0x00000000028f3411 1 clang 0x00000000028f3204 2 libpthread.so.0 0x00007ffc0766d8f0 3 libc.so.6 0x00007ffc0695ca75 gsignal + 53 4 libc.so.6 0x00007ffc069605c0 abort + 384 5 libc.so.6 0x00007ffc06955941 __assert_fail + 241 6 clang 0x0000000001141f72 clang::ParmVarDecl::setScopeInfo(unsigned int, unsigned int) + 182 7 clang 0x0000000001426c1d clang::Sema::ActOnParamDeclarator(clang::Scope*, clang::Declarator&) + 1703 8 clang 0x0000000001373114 clang::Parser::ParseParameterDeclarationClause(clang::Declarator&, clang::ParsedAttributes&, llvm::SmallVector&, clang::SourceLocation&) + 632 9 clang 0x000000000137250e clang::Parser::ParseFunctionDeclarator(clang::SourceLocation, clang::Declarator&, clang::ParsedAttributes&, bool) + 594 10 clang 0x0000000001371e69 clang::Parser::ParseDirectDeclarator(clang::Declarator&) + 2451 11 clang 0x0000000001370f24 clang::Parser::ParseDeclaratorInternal(clang::Declarator&, void (clang::Parser::*)(clang::Declarator&)) + 1090 12 clang 0x0000000001370adb clang::Parser::ParseDeclarator(clang::Declarator&) + 63 13 clang 0x00000000013699a9 clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int, bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 123 14 clang 0x000000000135da43 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&, clang::AccessSpecifier) + 1043 15 clang 0x000000000135dac1 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::AccessSpecifier) + 113 16 clang 0x000000000135d2fd clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 2521 17 clang 0x000000000135c875 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 309 18 clang 0x000000000133b17a clang::ParseAST(clang::Sema&, bool) + 455 19 clang 0x000000000105f1a5 clang::ASTFrontendAction::ExecuteAction() + 263 20 clang 0x00000000011bcab8 clang::CodeGenAction::ExecuteAction() + 968 21 clang 0x000000000105edf6 clang::FrontendAction::Execute() + 326 22 clang 0x0000000001043f83 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 751 23 clang 0x0000000001015f33 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 912 24 clang 0x0000000001006b5c cc1_main(char const**, char const**, char const*, void*) + 987 25 clang 0x0000000001011552 main + 499 26 libc.so.6 0x00007ffc06947c4d __libc_start_main + 253 27 clang 0x00000000010061f9 Stack dump: 0. Program arguments: /home/rkotler/build_llvm/install/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name limits-fndefn.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.1 -momit-leaf-frame-pointer -resource-dir /home/rkotler/build_llvm/install/bin/../lib/clang/3.0 -ferror-limit 19 -fmessage-length 80 -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-yXluyb.o -x c /home/rkotler/gcc-4.4.6/gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c 1. /home/rkotler/gcc-4.4.6/gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c:17:13 : current parser token ',' clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Preprocessed source(s) are located at: clang: note: diagnostic msg: /tmp/cc-elqwy3.i -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Aug 25 18:52:33 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 18:52:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 10751] New: clang crashes from gcc torture test limits-pointer.c Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10751 Summary: clang crashes from gcc torture test limits-pointer.c Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7133) --> (http://llvm.org/bugs/attachment.cgi?id=7133) gcc torture test limits-pointer.c ~/build_llvm/install/bin/clang ~/gcc-4.4.6/gcc/testsuite/gcc.c-torture/compile/limits-pointer.c clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Preprocessed source(s) are located at: clang: note: diagnostic msg: /tmp/cc-q6dAJR.i rkotler at ubuntu-rkotler:~/icpc$ -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 25 18:55:35 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 18:55:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 10752] New: clang crashes from gcc torture test limits-structnest.c Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10752 Summary: clang crashes from gcc torture test limits-structnest.c Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7134) --> (http://llvm.org/bugs/attachment.cgi?id=7134) gcc torture test limits-structnest.c ~/build_llvm/install/bin/clang ~/gcc-4.4.6/gcc/testsuite/gcc.c-torture/compile/limits-structnest.c clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Preprocessed source(s) are located at: clang: note: diagnostic msg: /tmp/cc-QFGutI.i -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Aug 25 19:26:04 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 19:26:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 10753] New: clang crashes from gcc torture test gcc.dg/20020425-1.c Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10753 Summary: clang crashes from gcc torture test gcc.dg/20020425-1.c Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7135) --> (http://llvm.org/bugs/attachment.cgi?id=7135) gcc.dg/20020425-1.c ~/build_llvm/install/bin/clang /home/rkotler/gcc-4.4.6/gcc/testsuite/gcc.dg/20020425-1.c clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Preprocessed source(s) are located at: clang: note: diagnostic msg: /tmp/cc-IL8No6.i -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Aug 25 19:29:34 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 19:29:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 8072] clang passes aliasing storage to sret argument on x86-64 In-Reply-To: References: Message-ID: <20110826002934.DAF562A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8072 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |rjmccall at apple.com Resolution| |FIXED --- Comment #2 from John McCall 2011-08-25 19:29:34 CDT --- Fixed in r138599. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 25 19:29:47 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 19:29:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 10754] New: Analyzer should catch return of local address even when address passed through function Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10754 Summary: Analyzer should catch return of local address even when address passed through function Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: jyasskin at google.com CC: llvmbugs at cs.uiuc.edu Take the following code: int &foo(); long const &nop(long const &l) { return l; } long const *returns_temp_missed() { return &nop(foo()); // temp object created } long const *returns_temp_caught() { long const &lr = foo(); // temp object created. return &lr; } Both returns_temp functions optimize to the same code, but clang --analyze only catches the second one. We've caught two instances of this recently when gcc's DCE pass deleted the initialization of the local variable whose address was returned, and then its -Wuninitialized warning complained, in the calling function, that was used without initialization. Clang should be able to give us a better warning than that. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Aug 25 20:00:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 20:00:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 9146] Possible bug in a stack unwinding mechanism. In-Reply-To: References: Message-ID: <20110826010005.4B0AF2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9146 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from John McCall 2011-08-25 20:00:04 CDT --- This has been fixed 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 Aug 25 21:05:47 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 21:05:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 10755] New: ARM Disassembler crash on invalid input Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10755 Summary: ARM Disassembler crash on invalid input Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: chandlerc at gmail.com CC: resistor at mac.com, llvmbugs at cs.uiuc.edu Found a crashing input for the ARM disassembler. There are many many inputs which hit the same crash, this is just one example. % ./llvm-mc -disassemble -triple thumbv7-unknown-unknown crasher.txt crasher.txt:1:1: warning: potentially undefined instruction encoding 0xff 0xbf 0x6b 0x80 0x00 0x75 ^ iteee al strh r3, [r5, #2] strbUnknown condition code UNREACHABLE executed at lib/Target/ARM/MCTargetDesc/ARMBaseInfo.h:70! This appears to be because in ARMDisassembler.cpp:378 we read a condition code, but don't check for an invalid entry: 374 // If we're in an IT block, base the predicate on that. Otherwise, 375 // assume a predicate of AL. 376 unsigned CC; 377 if (!ITBlock.empty()) { 378 CC = ITBlock.back(); 379 ITBlock.pop_back(); 380 } else 381 CC = ARMCC::AL; I suspect this needs some logic along the lines of what DecodeITCond has, where it checks for 0xF, flags a failure, and sets it to 0xE to avoid crashing. I've added code to just always map 0xF to 0xE here (w/o flagging the error) and the crash for this (and all the other inputs that hit the same assert that I have) go 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 Thu Aug 25 21:13:49 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 21:13:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 10756] New: Regression: Clang crashes when building webkit Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10756 Summary: Regression: Clang crashes when building webkit Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nicolasweber at gmx.de CC: llvmbugs at cs.uiuc.edu $clang --version clang version 3.0 (trunk 138617) Target: x86_64-apple-darwin10.8.0 Thread model: posix $ clang -c foo.ii Assertion failed: ((Record->hasTrivialCopyConstructor() || Record->hasTrivialCopyAssignment()) && "Trying to aggregate-copy a type without a trivial copy " "constructor or assignment operator"), function EmitAggregateCopy, file /Users/thakis/src/chrome-git/src/third_party/llvm/tools/clang/lib/CodeGen/CGExprAgg.cpp, line 1070. 0 clang 0x00000001019f8dd2 PrintStackTrace(void*) + 341 clang 0x00000001019f9c23 SignalHandler(int) + 7072 libSystem.B.dylib 0x00007fff80f0d1ba _sigtramp + 263 libSystem.B.dylib 0x79747261705f6472 _sigtramp + 40170011704 clang 0x000000010001d2a2 __assert_rtn + 665 clang 0x00000001002374dc clang::CodeGen::CodeGenFunction::EmitAggregateCopy(llvm::Value*, llvm::Value*, clang::QualType, bool) + 18526 clang 0x000000010023768c (anonymous namespace)::AggExprEmitter::EmitFinalDestCopy(clang::Expr const*, clang::CodeGen::RValue, bool) + 4287 clang 0x000000010023903b clang::StmtVisitorBase::Visit(clang::Stmt*) + 20438 clang 0x000000010023d48d (anonymous namespace)::AggExprEmitter::VisitCXXBindTemporaryExpr(clang::CXXBindTemporaryExpr*) + 2059 clang 0x0000000100239da5 clang::StmtVisitorBase::Visit(clang::Stmt*) + 547710 clang 0x000000010023db5f (anonymous namespace)::AggExprEmitter::VisitCastExpr(clang::CastExpr*) + 151911 clang 0x00000001002390cb clang::StmtVisitorBase::Visit(clang::Stmt*) + 218712 clang 0x00000001002399da clang::StmtVisitorBase::Visit(clang::Stmt*) + 450613 clang 0x000000010023a81f clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*, clang::CodeGen::AggValueSlot, bool) + 49514 clang 0x000000010024105e clang::CodeGen::CodeGenFunction::EmitCXXConstructExpr(clang::CXXConstructExpr const*, clang::CodeGen::AggValueSlot) + 87815 clang 0x0000000100239e52 clang::StmtVisitorBase::Visit(clang::Stmt*) + 565016 clang 0x000000010023d48d (anonymous namespace)::AggExprEmitter::VisitCXXBindTemporaryExpr(clang::CXXBindTemporaryExpr*) + 20517 clang 0x0000000100239da5 clang::StmtVisitorBase::Visit(clang::Stmt*) + 547718 clang 0x00000001002399da clang::StmtVisitorBase::Visit(clang::Stmt*) + 450619 clang 0x000000010023a81f clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*, clang::CodeGen::AggValueSlot, bool) + 49520 clang 0x000000010024105e clang::CodeGen::CodeGenFunction::EmitCXXConstructExpr(clang::CXXConstructExpr const*, clang::CodeGen::AggValueSlot) + 87821 clang 0x0000000100239e52 clang::StmtVisitorBase::Visit(clang::Stmt*) + 565022 clang 0x000000010023d48d (anonymous namespace)::AggExprEmitter::VisitCXXBindTemporaryExpr(clang::CXXBindTemporaryExpr*) + 20523 clang 0x0000000100239da5 clang::StmtVisitorBase::Visit(clang::Stmt*) + 547724 clang 0x00000001002384dc (anonymous namespace)::AggExprEmitter::VisitAbstractConditionalOperator(clang::AbstractConditionalOperator const*) + 87625 clang 0x00000001002396ed clang::StmtVisitorBase::Visit(clang::Stmt*) + 375726 clang 0x000000010023a81f clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*, clang::CodeGen::AggValueSlot, bool) + 49527 clang 0x000000010023ac8d clang::CodeGen::CodeGenFunction::EmitAggExprToLValue(clang::Expr const*) + 38128 clang 0x000000010023565d clang::CodeGen::CodeGenFunction::EmitConditionalOperatorLValue(clang::AbstractConditionalOperator const*) + 258929 clang 0x000000010022f6ed clang::CodeGen::CodeGenFunction::EmitLValue(clang::Expr const*) + 122930 clang 0x000000010022f44a clang::CodeGen::CodeGenFunction::EmitLValue(clang::Expr const*) + 55431 clang 0x0000000100244ef3 clang::CodeGen::CodeGenFunction::EmitCXXMemberCallExpr(clang::CXXMemberCallExpr const*, clang::CodeGen::ReturnValueSlot) + 65932 clang 0x000000010023003b clang::CodeGen::CodeGenFunction::EmitCallExpr(clang::CallExpr const*, clang::CodeGen::ReturnValueSlot) + 20333 clang 0x000000010025b3f2 (anonymous namespace)::ScalarExprEmitter::VisitCallExpr(clang::CallExpr const*) + 8234 clang 0x000000010026454c clang::StmtVisitorBase::Visit(clang::Stmt*) + 338835 clang 0x000000010026583d clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 14136 clang 0x00000001002276d0 clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*, clang::CodeGen::AggValueSlot, bool) + 8037 clang 0x000000010022802b clang::CodeGen::CodeGenFunction::EmitAnyExprToTemp(clang::Expr const*) + 91 38 clang 0x00000001001db90b clang::CodeGen::CodeGenFunction::EmitCallArg(clang::CodeGen::CallArgList&, clang::Expr const*, clang::QualType) + 443 39 clang 0x0000000100236143 void clang::CodeGen::CodeGenFunction::EmitCallArgs(clang::CodeGen::CallArgList&, clang::FunctionProtoType const*, clang::ConstExprIterator, clang::ConstExprIterator) + 515 40 clang 0x0000000100243cb9 clang::CodeGen::CodeGenFunction::EmitCXXMemberCall(clang::CXXMethodDecl const*, llvm::Value*, clang::CodeGen::ReturnValueSlot, llvm::Value*, llvm::Value*, clang::ConstExprIterator, clang::ConstExprIterator) + 409 41 clang 0x00000001001ecd44 clang::CodeGen::CodeGenFunction::EmitCXXConstructorCall(clang::CXXConstructorDecl const*, clang::CXXCtorType, bool, llvm::Value*, clang::ConstExprIterator, clang::ConstExprIterator) + 452 42 clang 0x0000000100240e1d clang::CodeGen::CodeGenFunction::EmitCXXConstructExpr(clang::CXXConstructExpr const*, clang::CodeGen::AggValueSlot) + 301 43 clang 0x0000000100239e52 clang::StmtVisitorBase::Visit(clang::Stmt*) + 5650 44 clang 0x000000010023d48d (anonymous namespace)::AggExprEmitter::VisitCXXBindTemporaryExpr(clang::CXXBindTemporaryExpr*) + 205 45 clang 0x0000000100239da5 clang::StmtVisitorBase::Visit(clang::Stmt*) + 5477 46 clang 0x000000010023db5f (anonymous namespace)::AggExprEmitter::VisitCastExpr(clang::CastExpr*) + 1519 47 clang 0x00000001002390cb clang::StmtVisitorBase::Visit(clang::Stmt*) + 2187 48 clang 0x000000010023db5f (anonymous namespace)::AggExprEmitter::VisitCastExpr(clang::CastExpr*) + 1519 49 clang 0x00000001002390cb clang::StmtVisitorBase::Visit(clang::Stmt*) + 2187 50 clang 0x00000001002399da clang::StmtVisitorBase::Visit(clang::Stmt*) + 4506 51 clang 0x000000010023a81f clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*, clang::CodeGen::AggValueSlot, bool) + 495 52 clang 0x000000010024105e clang::CodeGen::CodeGenFunction::EmitCXXConstructExpr(clang::CXXConstructExpr const*, clang::CodeGen::AggValueSlot) + 878 53 clang 0x0000000100239e52 clang::StmtVisitorBase::Visit(clang::Stmt*) + 5650 54 clang 0x000000010023a81f clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*, clang::CodeGen::AggValueSlot, bool) + 495 55 clang 0x000000010022778e clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*, clang::CodeGen::AggValueSlot, bool) + 270 56 clang 0x00000001002dac3d clang::CodeGen::CodeGenFunction::EmitExprWithCleanups(clang::ExprWithCleanups const*, clang::CodeGen::AggValueSlot) + 125 57 clang 0x000000010023a0ea clang::StmtVisitorBase::Visit(clang::Stmt*) + 6314 58 clang 0x000000010023a81f clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*, clang::CodeGen::AggValueSlot, bool) + 495 59 clang 0x000000010021529e clang::CodeGen::CodeGenFunction::EmitAutoVarInit(clang::CodeGen::CodeGenFunction::AutoVarEmission const&) + 718 60 clang 0x00000001002168ad clang::CodeGen::CodeGenFunction::EmitVarDecl(clang::VarDecl const&) + 269 61 clang 0x00000001002cf58b clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt const&) + 91 62 clang 0x00000001002d9a87 clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 151 63 clang 0x00000001002d62c0 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 48 64 clang 0x00000001002d981b clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) + 283 65 clang 0x00000001002d9be9 clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 505 66 clang 0x00000001002d62c0 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 48 67 clang 0x00000001003044ed clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 909 68 clang 0x000000010030b680 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl) + 544 69 clang 0x000000010030fa51 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 513 70 clang 0x000000010030fb5a clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 170 71 clang 0x0000000100310cac clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 1068 72 clang 0x0000000100310b5b clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 731 73 clang 0x000000010032525f (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) + 63 74 clang 0x00000001002ff12b clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 155 75 clang 0x0000000100333c82 clang::ParseAST(clang::Sema&, bool) + 338 76 clang 0x00000001002fdb9c clang::CodeGenAction::ExecuteAction() + 60 77 clang 0x00000001000483c1 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 433 78 clang 0x0000000100027e87 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1735 79 clang 0x000000010001e5fc cc1_main(char const**, char const**, char const*, void*) + 652 80 clang 0x0000000100026bce main + 4542 81 clang 0x000000010001d9e4 start + 52 Stack dump: 0. Program arguments: /Users/thakis/src/chrome-git/src/third_party/llvm-build/Release+Asserts/bin/clang -cc1 -triple x86_64-apple-macosx10.6.8 -emit-obj -mrelax-all -disable-free -main-file-name foo.ii -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 97.17 -coverage-file foo.o -resource-dir /Users/thakis/src/chrome-git/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length 213 -stack-protector 1 -fblocks -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o foo.o -x c++-cpp-output foo.ii 1. parser at end of file 2. third_party/WebKit/Source/WebCore/dom/TreeScope.cpp:35:11: LLVM IR generation of declaration 'WebCore' 3. third_party/WebKit/Source/WebCore/dom/TreeScope.cpp:101:28: Generating code for declaration 'WebCore::TreeScope::getImageMap' 4. third_party/WebKit/Source/WebCore/dom/TreeScope.cpp:102:1: LLVM IR generation of compound statement ('{}') -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 25 22:00:45 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 22:00:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 10757] New: clang crashes from gcc torture test g++.dg/cpp0x/defaulted3.C Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10757 Summary: clang crashes from gcc torture test g++.dg/cpp0x/defaulted3.C Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7136) --> (http://llvm.org/bugs/attachment.cgi?id=7136) defaulted3.C rkotler at ubuntu-rkotler:~/icpc$ ~/build_llvm/install/bin/clang++ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/defaulted3.C /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/defaulted3.C:7:34: warning: deleted function definition accepted as a C++0x extension [-Wc++0x-extensions] bool operator==(const A&) = delete; // { dg-error "deleted function" } ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/defaulted3.C:15:9: error: overload resolution selected deleted operator '==' if(a1 == a2) {} // { dg-error "used here" } ~~ ^ ~~ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/defaulted3.C:7:8: note: candidate function [with U = void] has been explicitly deleted bool operator==(const A&) = delete; // { dg-error "deleted function" } ^ 0 clang 0x00000000028f3411 1 clang 0x00000000028f3204 2 libpthread.so.0 0x00007f6db20c68f0 3 libc.so.6 0x00007f6db14a9252 4 libstdc++.so.6 0x00007f6db1c485cc std::string::operator+=(char const*) + 28 5 clang 0x000000000157000e 6 clang 0x0000000001570f8d clang::OverloadCandidateSet::NoteCandidates(clang::Sema&, clang::OverloadCandidateDisplayKind, clang::Expr**, unsigned int, char const*, clang::SourceLocation) + 707 7 clang 0x00000000015750c5 clang::Sema::CreateOverloadedBinOp(clang::SourceLocation, unsigned int, clang::UnresolvedSetImpl const&, clang::Expr*, clang::Expr*) + 4789 8 clang 0x00000000014bba3e clang::Sema::BuildBinOp(clang::Scope*, clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*) + 506 9 clang 0x00000000014bb83c clang::Sema::ActOnBinOp(clang::Scope*, clang::SourceLocation, clang::tok::TokenKind, clang::Expr*, clang::Expr*) + 190 10 clang 0x000000000138396d clang::Parser::ParseRHSOfBinaryExpression(clang::ActionResult, clang::prec::Level) + 2185 11 clang 0x0000000001382ff3 clang::Parser::ParseAssignmentExpression() + 193 12 clang 0x0000000001382dda clang::Parser::ParseExpression() + 24 13 clang 0x000000000138e615 clang::Parser::ParseCXXCondition(clang::ActionResult&, clang::Decl*&, clang::SourceLocation, bool) + 179 14 clang 0x000000000134b142 clang::Parser::ParseParenExprOrCondition(clang::ActionResult&, clang::Decl*&, clang::SourceLocation, bool) + 108 15 clang 0x000000000134b441 clang::Parser::ParseIfStatement(clang::ParsedAttributes&) + 455 16 clang 0x0000000001348e14 clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector&, bool) + 2516 17 clang 0x000000000134aca3 clang::Parser::ParseCompoundStatementBody(bool) + 1113 18 clang 0x000000000134e9c1 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) + 245 19 clang 0x000000000135e4b6 clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&) + 2518 20 clang 0x0000000001369b39 clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int, bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 523 21 clang 0x000000000135da43 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&, clang::AccessSpecifier) + 1043 22 clang 0x000000000135dac1 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::AccessSpecifier) + 113 23 clang 0x000000000135d2fd clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 2521 24 clang 0x000000000135c875 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 309 25 clang 0x000000000133b17a clang::ParseAST(clang::Sema&, bool) + 455 26 clang 0x000000000105f1a5 clang::ASTFrontendAction::ExecuteAction() + 263 27 clang 0x00000000011bcab8 clang::CodeGenAction::ExecuteAction() + 968 28 clang 0x000000000105edf6 clang::FrontendAction::Execute() + 326 29 clang 0x0000000001043f83 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 751 30 clang 0x0000000001015f33 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 912 31 clang 0x0000000001006b5c cc1_main(char const**, char const**, char const*, void*) + 987 32 clang 0x0000000001011552 main + 499 33 libc.so.6 0x00007f6db13a0c4d __libc_start_main + 253 34 clang 0x00000000010061f9 Stack dump: 0. Program arguments: /home/rkotler/build_llvm/install/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name defaulted3.C -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.1 -momit-leaf-frame-pointer -resource-dir /home/rkotler/build_llvm/install/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length 80 -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-GocZBP.o -x c++ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/defaulted3.C 1. /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/defaulted3.C:15:14: current parser token ')' 2. /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/defaulted3.C:12:1: parsing function body 'main' 3. /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/defaulted3.C:12:1: in compound statement ('{}') clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Preprocessed source(s) are located at: clang: note: diagnostic msg: /tmp/cc-OYpoOQ.ii -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 25 22:04:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 22:04:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 10758] New: clang crashes from gcc torture test g++.dg/overload/copy1.C Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10758 Summary: clang crashes from gcc torture test g++.dg/overload/copy1.C Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7137) --> (http://llvm.org/bugs/attachment.cgi?id=7137) copy1.C rkotler at ubuntu-rkotler:~/icpc$ g++ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/copy1.C /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/copy1.C: In function ?B f(const B&)?: /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/copy1.C:19: error: no matching function for call to ?B::B(const B&)? /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/copy1.C:8: note: candidates are: B::B(B&) /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/copy1.C:7: note: B::B(const A&) /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/copy1.C:19: error: initializing argument 1 of ?A::A(B)? rkotler at ubuntu-rkotler:~/icpc$ ~/build_llvm/install/bin/clang++ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/copy1.C clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Preprocessed source(s) are located at: clang: note: diagnostic msg: /tmp/cc-is5Oik.ii -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 25 22:09:06 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 22:09:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 10759] New: clang crashes from gcc torture test g++.dg/overload/defrag1.C Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10759 Summary: clang crashes from gcc torture test g++.dg/overload/defrag1.C Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7138) --> (http://llvm.org/bugs/attachment.cgi?id=7138) defrag1.C rkotler at ubuntu-rkotler:~/icpc$ ~/build_llvm/install/bin/clang++ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:21: error: call to function 'foo' that is neither visible in the template definition nor found by argument-dependent lookup int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:8:3: note: in instantiation of default function argument expression for 'foo' required here foo(0); // { dg-error "default argument" } ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 'foo' should be declared prior to the call site int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:21: error: call to function 'foo' that is neither visible in the template definition nor found by argument-dependent lookup int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 'foo' should be declared prior to the call site int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:21: error: call to function 'foo' that is neither visible in the template definition nor found by argument-dependent lookup int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 'foo' should be declared prior to the call site int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:21: error: call to function 'foo' that is neither visible in the template definition nor found by argument-dependent lookup int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 'foo' should be declared prior to the call site int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:21: error: call to function 'foo' that is neither visible in the template definition nor found by argument-dependent lookup int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 'foo' should be declared prior to the call site int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:21: error: call to function 'foo' that is neither visible in the template definition nor found by argument-dependent lookup int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 'foo' should be declared prior to the call site int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:21: error: call to function 'foo' that is neither visible in the template definition nor found by argument-dependent lookup int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 'foo' should be declared prior to the call site int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:21: error: call to function 'foo' that is neither visible in the template definition nor found by argument-dependent lookup int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 'foo' should be declared prior to the call site int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:21: error: call to function 'foo' that is neither visible in the template definition nor found by argument-dependent lookup int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 'foo' should be declared prior to the call site int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:21: error: call to function 'foo' that is neither visible in the template definition nor found by argument-dependent lookup int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 'foo' should be declared prior to the call site int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:21: error: call to function 'foo' that is neither visible in the template definition nor found by argument-dependent lookup int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 'foo' should be declared prior to the call site int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:21: error: call to function 'foo' that is neither visible in the template definition nor found by argument-dependent lookup int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 'foo' should be declared prior to the call site int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:21: error: call to function 'foo' that is neither visible in the template definition nor found by argument-dependent lookup int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 'foo' should be declared prior to the call site int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:21: error: call to function 'foo' that is neither visible in the template definition nor found by argument-dependent lookup int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 'foo' should be declared prior to the call site int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:21: error: call to function 'foo' that is neither visible in the template definition nor found by argument-dependent lookup int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 'foo' should be declared prior to the call site int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:21: error: call to function 'foo' that is neither visible in the template definition nor found by argument-dependent lookup int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 'foo' should be declared prior to the call site int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:21: error: call to function 'foo' that is neither visible in the template definition nor found by argument-dependent lookup int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 'foo' should be declared prior to the call site int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:21: error: call to function 'foo' that is neither visible in the template definition nor found by argument-dependent lookup int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 'foo' should be declared prior to the call site int foo (T t, int = foo(T())); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:21: error: call to function 'foo' that is neither visible in the template definition nor found by argument-dependent lookup int foo (T t, int = foo(T())); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Preprocessed source(s) are located at: clang: note: diagnostic msg: /tmp/cc-z7OeKm.ii -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 25 22:17:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 22:17:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 10760] New: clang crashes from gcc torture test g++.dg/parse/stack1.C Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10760 Summary: clang crashes from gcc torture test g++.dg/parse/stack1.C Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7139) --> (http://llvm.org/bugs/attachment.cgi?id=7139) stack1.C ~/build_llvm/install/bin/clang++ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/parse/stack1.C clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Preprocessed source(s) are located at: clang: note: diagnostic msg: /tmp/cc-3ljJuh.ii -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 25 22:37:56 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 22:37:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 10761] New: dejagnu test fails to compiler with clang g++.old-deja/g++.pt/ttp42.C Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10761 Summary: dejagnu test fails to compiler with clang g++.old-deja/g++.pt/ttp42.C Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7140) --> (http://llvm.org/bugs/attachment.cgi?id=7140) g++.old-deja/g++.pt/ttp42.C compiler fine with gcc and intel edg based compiler rkotler at ubuntu-rkotler:~/icpc$ ~/build_llvm/install/bin/clang++ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp42.C /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp42.C:2:36: error: declaration of 'T' shadows template parameter template class C> ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp42.C:2:17: note: template parameter is declared here template class C> ^ 1 error 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 Aug 25 22:44:34 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 22:44:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 10762] New: dejagnu test fails to compiler with clang g++.old-deja/g++.pt/ttp42.C Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10762 Summary: dejagnu test fails to compiler with clang g++.old-deja/g++.pt/ttp42.C Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7141) --> (http://llvm.org/bugs/attachment.cgi?id=7141) g++.old-deja/g++.pt/ttp42.C compiles fine with g++ and intel edg based compiler c-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp42.C /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp42.C:2:36: error: declaration of 'T' shadows template parameter template class C> ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp42.C:2:17: note: template parameter is declared here template class C> ^ 1 error 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 Aug 25 22:47:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 22:47:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 10763] New: dejagnu test fails to compiler with clang g++.old-deja/g++.pt/ttp23.C Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10763 Summary: dejagnu test fails to compiler with clang g++.old-deja/g++.pt/ttp23.C Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7142) --> (http://llvm.org/bugs/attachment.cgi?id=7142) g++.old-deja/g++.pt/ttp23.C compiles fine with g++ and intel EDG based compiler rkotler at ubuntu-rkotler:~/icpc$ ~/build_llvm/install/bin/clang++ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp23.C /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp23.C:27:22: error: 'D' is a private member of 'D' int f() { return C::f(); } ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp23.C:13:53: note: constrained by implicitly private inheritance here template class E,class D> class C : E ^~~~ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp23.C:2:25: note: member is declared here template class D ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp23.C:27:22: error: template argument for template template parameter must be a class template int f() { return C::f(); } ^ 2 errors 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 Aug 25 23:00:08 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 23:00:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 10764] New: cp00x feature auto Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10764 Summary: cp00x feature auto Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7143) --> (http://llvm.org/bugs/attachment.cgi?id=7143) auto ~/build_llvm/install/bin/clang++ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/auto10.C /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/auto10.C:10:7: error: type name does not allow storage class to be specified if (auto i = 42L) ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/auto10.C:10:12: error: C++ requires a type specifier for all declarations if (auto i = 42L) ~~~~ ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/auto10.C:16:10: error: type name does not allow storage class to be specified while (auto i = 1) ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/auto10.C:16:15: error: C++ requires a type specifier for all declarations while (auto i = 1) ~~~~ ^ 4 errors 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 Aug 25 23:18:56 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 23:18:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 10765] New: dejagnu test fails to compile g++.dg/ext/vla9.C Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10765 Summary: dejagnu test fails to compile g++.dg/ext/vla9.C Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7144) --> (http://llvm.org/bugs/attachment.cgi?id=7144) vla9.c this compiles with g++ and intel edg based compiler /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/ext/vla9.C:13:12: error: cannot initialize a variable of type 'double (*)[nx][ny]' with an rvalue of type 'double (*)[nx][ny]' double (*x2d)[nx][ny]=(double(*)[nx][ny])x1d; ^ ~~~~~~~~~~~~~~~~~~~~~~ 1 error 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 Aug 25 23:31:38 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 23:31:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 10766] New: clang crashes from gcc dejagnu test g++.dg/template/qualified-id2.C Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10766 Summary: clang crashes from gcc dejagnu test g++.dg/template/qualified-id2.C Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7145) --> (http://llvm.org/bugs/attachment.cgi?id=7145) qualified-id2.C rkotler at ubuntu-rkotler:~/icpc$ ~/build_llvm/install/bin/clang++ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/template/qualified-id2.C clang: /home/rkotler/workspace/llvm/tools/clang/lib/Sema/SemaExpr.cpp:7395: clang::QualType CheckAddressOfOperand(clang::Sema&, clang::Expr*, clang::SourceLocation): Assertion `0 && "Unknown/unexpected decl type"' failed. 0 clang 0x00000000028f3411 1 clang 0x00000000028f3204 2 libpthread.so.0 0x00007fbb9057b8f0 3 libc.so.6 0x00007fbb8f86aa75 gsignal + 53 4 libc.so.6 0x00007fbb8f86e5c0 abort + 384 5 libc.so.6 0x00007fbb8f863941 __assert_fail + 241 6 clang 0x00000000014b926f 7 clang 0x00000000014bbbcd clang::Sema::CreateBuiltinUnaryOp(clang::SourceLocation, clang::UnaryOperatorKind, clang::Expr*) + 313 8 clang 0x00000000014bc704 clang::Sema::BuildUnaryOp(clang::Scope*, clang::SourceLocation, clang::UnaryOperatorKind, clang::Expr*) + 376 9 clang 0x00000000014bc75a clang::Sema::ActOnUnaryOp(clang::Scope*, clang::SourceLocation, clang::tok::TokenKind, clang::Expr*) + 68 10 clang 0x0000000001384825 clang::Parser::ParseCastExpression(bool, bool, bool&, bool) + 3493 11 clang 0x0000000001383a35 clang::Parser::ParseCastExpression(bool, bool, bool) + 59 12 clang 0x0000000001382fcc clang::Parser::ParseAssignmentExpression() + 154 13 clang 0x0000000001350067 clang::Parser::ParseInitializer() + 49 14 clang 0x000000000136a61a clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&, clang::Parser::ParsedTemplateInfo const&) + 1212 15 clang 0x000000000136a15b clang::Parser::ParseDeclarationAfterDeclarator(clang::Declarator&, clang::Parser::ParsedTemplateInfo const&) + 73 16 clang 0x0000000001350e5e clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::AccessSpecifier) + 798 17 clang 0x0000000001350af2 clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 996 18 clang 0x0000000001350677 clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 175 19 clang 0x0000000001369515 clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 193 20 clang 0x000000000135cefa clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 1494 21 clang 0x000000000135c875 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 309 22 clang 0x000000000133b17a clang::ParseAST(clang::Sema&, bool) + 455 23 clang 0x000000000105f1a5 clang::ASTFrontendAction::ExecuteAction() + 263 24 clang 0x00000000011bcab8 clang::CodeGenAction::ExecuteAction() + 968 25 clang 0x000000000105edf6 clang::FrontendAction::Execute() + 326 26 clang 0x0000000001043f83 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 751 27 clang 0x0000000001015f33 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 912 28 clang 0x0000000001006b5c cc1_main(char const**, char const**, char const*, void*) + 987 29 clang 0x0000000001011552 main + 499 30 libc.so.6 0x00007fbb8f855c4d __libc_start_main + 253 31 clang 0x00000000010061f9 Stack dump: 0. Program arguments: /home/rkotler/build_llvm/install/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name qualified-id2.C -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.1 -momit-leaf-frame-pointer -resource-dir /home/rkotler/build_llvm/install/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length 80 -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-fGoVQz.o -x c++ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/template/qualified-id2.C 1. /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/template/qualified-id2.C:12:37: current parser token ';' clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Preprocessed source(s) are located at: clang: note: diagnostic msg: /tmp/cc-noULAG.ii rkotler at ubuntu-rkotler:~/icpc$ -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 25 23:35:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 23:35:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 10678] [x86 disassembler] vandpd/vandps/vandnpd/vandnps disassembled incorrectly In-Reply-To: References: Message-ID: <20110826043550.A755A2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10678 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #8 from Craig Topper 2011-08-25 23:35:50 CDT --- Reopening because I didn't actually fix the cmp 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 Aug 25 23:36:57 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 25 Aug 2011 23:36:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 10767] New: clang fails to compiler g++.dg/torture/pr37146-1.C Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10767 Summary: clang fails to compiler g++.dg/torture/pr37146-1.C Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7146) --> (http://llvm.org/bugs/attachment.cgi?id=7146) pr37146.C /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/torture/pr37146-1.C Seems to be a known issue but I don't know if there is a bug filed for it. r at ubuntu-rkotler:~/icpc$ ~/build_llvm/install/bin/clang++ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/torture/pr37146-1.C /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/torture/pr37146-1.C:17:4: error: cannot compile this conditional operator yet (x ? c.i : c.j) = y; ^~~~~~~~~~~~~ 1 error 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 Fri Aug 26 00:02:04 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 00:02:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 10768] New: dejagnu test fails to compile with clang g++.old-deja/g++.other/externC3.C Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10768 Summary: dejagnu test fails to compile with clang g++.old-deja/g++.other/externC3.C Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7147) --> (http://llvm.org/bugs/attachment.cgi?id=7147) exteraC3.C /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.other/externC3.C compiles fine with g++ and intel edg based compiler rkotler at ubuntu-rkotler:~/icpc$ ~/build_llvm/install/bin/clang++ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.other/externC3.C /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.other/externC3.C:15:3: error: call to 'f' is ambiguous f (); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.other/externC3.C:6:18: note: candidate function extern "C" int f (); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.other/externC3.C:9:16: note: candidate function extern "C" int f () { return 0; } ^ 1 error 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 Fri Aug 26 01:45:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 01:45:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 10755] ARM Disassembler crash on invalid input In-Reply-To: References: Message-ID: <20110826064558.941FE2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10755 Owen Anderson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Owen Anderson 2011-08-26 01:45:58 CDT --- Fixed in r138625. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 02:06:51 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 02:06:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 10769] New: code with shl and bitwise or instructions optimizes wrong Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10769 Summary: code with shl and bitwise or instructions optimizes wrong Product: libraries Version: trunk Platform: Other OS/Version: FreeBSD Status: NEW Severity: release blocker Priority: P Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: yuri at tsoft.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7149) --> (http://llvm.org/bugs/attachment.cgi?id=7149) llvm code illustrating the problem Please compile the attached file mm.ll into executable with and without optimization and observe different results: --with optimization-- llvm-as mm.ll opt -O3 mm.bc > mm-o.bc ; mv mm-o.bc mm.bc llc mm.bc as mm.s -o mm.o gcc -o mm mm.o ./mm ==> Prints: 255 (wrong value) --without optimization-- llvm-as mm.ll llc mm.bc as mm.s -o mm.o gcc -o mm mm.o ./mm ==> Prints: 1 (correct value) When I optimized the function 'func' from mm.ll, it optimizes into the wrong precomputed value 255 which is returned. Optimization should never change the numeric result produced by any code. rev.134967 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 02:11:34 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 02:11:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 10769] code with shl and bitwise or instructions optimizes wrong In-Reply-To: References: Message-ID: <20110826071134.903572A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10769 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |INVALID --- Comment #1 from Eli Friedman 2011-08-26 02:11:34 CDT --- The result of "shl i8 1, 8" is undef. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 02:17:47 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 02:17:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 10769] code with shl and bitwise or instructions optimizes wrong In-Reply-To: References: Message-ID: <20110826071747.73BBE2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10769 Yuri changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | Severity|release blocker |enhancement --- Comment #2 from Yuri 2011-08-26 02:17:47 CDT --- Logically, shl i8 1, 8 should evaluate to 0. That's what happens without optimization in any CPU. Computed by optimizer value should follow what CPUs normally do. It's cleaner and less ambiguous way of 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 Fri Aug 26 02:32:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 02:32:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 10756] Regression: Clang crashes when building webkit In-Reply-To: References: Message-ID: <20110826073205.A7FB72A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10756 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |rjmccall at apple.com Resolution| |FIXED --- Comment #6 from John McCall 2011-08-26 02:32:04 CDT --- Thanks for the report. Fixed in r138627. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 02:33:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 02:33:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 10769] code with shl and bitwise or instructions optimizes wrong In-Reply-To: References: Message-ID: <20110826073340.2A9252A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10769 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED CC| |baldrick at free.fr Resolution| |INVALID --- Comment #3 from Duncan Sands 2011-08-26 02:33:39 CDT --- "Logically, shl i8 1, 8 should evaluate to 0. That's what happens without optimization in any CPU." This simply isn't 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 Fri Aug 26 03:43:17 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 03:43:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 10770] New: Block containing LandingPadInst must be jumped to only by the unwind edge of an invoke. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10770 Summary: Block containing LandingPadInst must be jumped to only by the unwind edge of an invoke. 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: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7150) --> (http://llvm.org/bugs/attachment.cgi?id=7150) testcase .ll The optimizers move code around, breaking landingpad invariants: $ opt -verify bug266.ll -disable-output $ opt -std-compile-opts bug266.ll -disable-output Block containing LandingPadInst must be jumped to only by the unwind edge of an invoke. %14 = landingpad { i8*, i32 } personality i32 (i32, i64, i8*, i8*)* @__gccgo_personality_v0 catch i8* null -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Aug 26 09:08:38 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 09:08:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 10771] New: -Warray-bounds false positive when a cast is involved Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10771 Summary: -Warray-bounds false positive when a cast is involved Product: clang Version: trunk Platform: Macintosh OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sean at rogue-research.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Consider this C++: int main (void) { double foo[4096]; ((char *)(foo))[(sizeof(foo)-1)] = '\0'; return 0; } It outputs: test.cp:4:12: warning: array index of '32767' indexes past the end of an array (that contains 4096 elements) [-Warray-bounds] ((char *)(foo))[(sizeof(foo)-1)] = '\0'; ^ ~~~~~~~~~~~~~ It's a false positive. Note the cast to char*. This is with clang version 3.0 (trunk 138577). -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 09:47:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 09:47:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 10253] cannot compile large Boost.Test testsuites and gives cryptic output (regression) In-Reply-To: References: Message-ID: <20110826144732.CC2062A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10253 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2011-08-26 09:47:32 CDT --- This is working fine for me with top-of-tree Clang. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Aug 26 10:58:53 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 10:58:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 10772] New: llvm-x86_64-linux-vg_leak builder MC tests report invalid instruction encoding Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10772 Summary: llvm-x86_64-linux-vg_leak builder MC tests report invalid instruction encoding Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: atrick at apple.com CC: llvmbugs at cs.uiuc.edu On the linux valgrind builder, the MC tests report invalid instruction encoding for these tests invalid-bfi-arm.txt invalid-cps2p-arm.txt invalid-bcc-thumb.txt invalid-dmb-thumb.txt invalid-dsb-arm.txt invalid-ldc-form-arm.txt invalid-ldrd-arm.txt invalid-ldrt-arm.txt invalid-ldr_pre-arm.txt invalid-ldrrs-arm.txt invalid-mcr-arm.txt invalid-lsl-regform.txt invalid-movti16-arm.txt invalid-movr-arm.txt invalid-movs-arm.txt invalid-movs-lsl-arm.txt invalid-msri-arm.txt invalid-rfeorldmia-arm.txt invalid-rsc-arm.txt invalid-sbfx-arm.txt I suppose this is a platform/build config issue, but it's been failing for longer than I can tell. I'm not sure the builder has had a good run since May. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 11:04:15 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 11:04:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 10773] New: Leaks in TableGen/CStyleComment.td, Include.td, nested-comment.td Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10773 Summary: Leaks in TableGen/CStyleComment.td, Include.td, nested-comment.td Product: tools Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: TableGen AssignedTo: unassignedbugs at nondot.org ReportedBy: atrick at apple.com CC: llvmbugs at cs.uiuc.edu The valgrind builder, llvm-x86_64-linux-vg_leak, reports tablegen leaks in the following test cases: TableGen/CStyleComment.td, Include.td, and nested-comment.td ==31210== 50 (24 direct, 26 indirect) bytes in 1 blocks are definitely lost in loss record 3 of 3 ==31210== at 0x4C26DFA: operator new(unsigned long) (vg_replace_malloc.c:261) ==31210== by 0x555EC3: llvm::StringInit::get(std::string const&) (Record.cpp:573) ==31210== by 0x4B97C1: llvm::Record::Record(std::string const&, llvm::SMLoc, llvm::RecordKeeper&) (in /build/buildbot-llvm/llvm-x86_64-linux-vg_leak/llvm/Debug+Asserts/bin/tblgen) ==31210== by 0x592FFC: llvm::TGParser::ParseDef(llvm::MultiClass*) (TGParser.cpp:1667) ==31210== by 0x595904: llvm::TGParser::ParseObject(llvm::MultiClass*) (TGParser.cpp:2132) The builder has been failing for as long as I can tell (May?). I'm not sure when this first appeared. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 11:10:35 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 11:10:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 10775] New: ADTTests trigger valgrind failures Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10775 Summary: ADTTests trigger valgrind failures Product: Test Suite Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: lit AssignedTo: unassignedbugs at nondot.org ReportedBy: atrick at apple.com CC: llvmbugs at cs.uiuc.edu, daniel at zuster.org Three ADT unit tests are causing problems: ADT/Debug+Asserts/ADTTests/APFloatTest.SemanticsDeath, APFloatTest.StringDecimalDeath, and StringDecimalSignificandDeath. They trigger a slew of valgrind failures (see llvm-x86_64-linux-vg_leak builder). They should either be fixed or excluded from VG testing. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 11:35:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 11:35:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 10776] New: FileCheck error: '-' is empty. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10776 Summary: FileCheck error: '-' is empty. 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: pipping at exherbo.org CC: llvmbugs at cs.uiuc.edu The tests LLVM :: MC/Disassembler/ARM/thumb-printf.txt LLVM :: MC/Disassembler/ARM/thumb-tests.txt LLVM :: MC/Disassembler/ARM/thumb1.txt started failing ~a week ago. Here is the error message: LLVM :: MC/Disassembler/ARM/thumb-printf.txt ^MFAIL: LLVM :: MC/Disassembler/ARM/thumb-printf.txt (3644 of 5624) ******************** TEST 'LLVM :: MC/Disassembler/ARM/thumb-printf.txt' FAILED ******************** Script: -- /var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/Release+Asserts/bin/llvm-mc --disassemble /var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/test/MC/Disassembler/ARM/thumb-printf.txt -triple=thumb-apple-darwin9 | /var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/Release+Asserts/bin/FileCheck /var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/test/MC/Disassembler/ARM/thumb-printf.txt -- Exit Code: 1 Command Output (stderr): -- 0 libLLVM-3.0svn.so 0x00007f07acde835f 1 libLLVM-3.0svn.so 0x00007f07acde8809 2 libpthread.so.0 0x00007f07abfd3f10 3 libLLVM-3.0svn.so 0x00007f07ac73630e llvm::ThumbDisassembler::getInstruction(llvm::MCInst&, unsigned long&, llvm::MemoryObject const&, unsigned long, llvm::raw_ostream&) const + 974 4 llvm-mc 0x00000000004046bc 5 llvm-mc 0x0000000000407cde 6 llvm-mc 0x00000000004078ba 7 libc.so.6 0x00007f07ab2dec7d __libc_start_main + 253 8 llvm-mc 0x00000000004041e9 Stack dump: 0. Program arguments: /var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/Release+Asserts/bin/llvm-mc --disassemble /var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/test/MC/Disassembler/ARM/thumb-printf.txt -triple=thumb-apple-darwin9 FileCheck error: '-' is empty. -- ******************** This is on linux 3.0.3, amd64. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 12:08:11 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 12:08:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 10773] Leaks in TableGen/CStyleComment.td, Include.td, nested-comment.td In-Reply-To: References: Message-ID: <20110826170812.1D36E2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10773 Benjamin Kramer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |benny.kra at gmail.com Resolution| |FIXED --- Comment #2 from Benjamin Kramer 2011-08-26 12:08:11 CDT --- XFAIL'd for valgrind in r138634. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 12:14:00 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 12:14:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 10528] Windows MSVC2010: #include fails with unknown type std::collate In-Reply-To: References: Message-ID: <20110826171400.123FE2A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10528 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Aug 26 12:30:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 12:30:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 10777] New: QoI: poor diagnostic for silly code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10777 Summary: QoI: poor diagnostic for silly code Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: nlewycky at google.com ReportedBy: chandlerc at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com This code is silly, but GCC actually beats Clang's diagnostics by a fair margin here: % cat x3.cc template struct X {}; struct S : public X, public X { X x; }; % ./bin/clang -fsyntax-only x3.cc x3.cc:3:3: error: member 'X' found in multiple base classes of different types X x; ^ x3.cc:1:37: note: member found by ambiguous name lookup template struct X {}; ^ x3.cc:1:37: note: member found by ambiguous name lookup 1 error generated. % gcc -fsyntax-only x3.cc x3.cc:3:3: error: reference to 'X' is ambiguous x3.cc:1:39: error: candidates are: struct X X::X x3.cc:1:39: error: struct X X::X x3.cc:3:3: error: 'X' does not name a type -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 13:22:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 13:22:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 10772] llvm-x86_64-linux-vg_leak builder MC tests fail with exit code 123 In-Reply-To: References: Message-ID: <20110826182206.267F02A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10772 Benjamin Kramer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Benjamin Kramer 2011-08-26 13:22:05 CDT --- r138636 should fix 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 Aug 26 13:36:31 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 13:36:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 10729] [Meta][Win] Clang MinGW(-w64) test failures In-Reply-To: References: Message-ID: <20110826183631.6EBC42A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10729 vanboxem.ruben at gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #4 from vanboxem.ruben at gmail.com 2011-08-26 13:36:31 CDT --- Yes, apparently I did. Sorry. I'll attach the logs to that issue instead :) *** This bug has been marked as a duplicate of bug 9072 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 14:46:34 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 14:46:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 10757] clang crashes from gcc torture test g++.dg/cpp0x/defaulted3.C In-Reply-To: References: Message-ID: <20110826194634.A6D8D2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10757 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Eli Friedman 2011-08-26 14:46:33 CDT --- r138645. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 15:28:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 15:28:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 10766] clang crashes from gcc dejagnu test g++.dg/template/qualified-id2.C In-Reply-To: References: Message-ID: <20110826202832.A0AA02A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10766 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #1 from Eli Friedman 2011-08-26 15:28:31 CDT --- r138648. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 15:31:38 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 15:31:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 10768] dejagnu test fails to compile with clang g++.old-deja/g++.other/externC3.C In-Reply-To: References: Message-ID: <20110826203138.197B52A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10768 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |DUPLICATE --- Comment #1 from Eli Friedman 2011-08-26 15:31:37 CDT --- *** This bug has been marked as a duplicate of bug 7927 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 15:40:30 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 15:40:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 10770] Block containing LandingPadInst must be jumped to only by the unwind edge of an invoke. In-Reply-To: References: Message-ID: <20110826204030.8B9AB2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10770 Bill Wendling 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 Fri Aug 26 15:42:36 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 15:42:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 10778] New: typeinfo problem compiling gcc test g++.dg/cpp0x/auto10.C Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10778 Summary: typeinfo problem compiling gcc test g++.dg/cpp0x/auto10.C Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7153) --> (http://llvm.org/bugs/attachment.cgi?id=7153) gcc/testsuite/g++.dg/cpp0x/auto10.C -std=c++0x /build_llvm/install/bin/clang /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/auto10.C -std=c++0x In file included from /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/auto10.C:5: In file included from /usr/include/c++/4.4/typeinfo:34: In file included from /usr/include/c++/4.4/exception:148: /usr/include/c++/4.4/exception_ptr.h:143:13: error: unknown type name 'type_info' const type_info* ^ 1 error generated. rkotler at ubuntu-rkotler:~/test$ icpc /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/auto10.C -std=c++0x rkotler at ubuntu-rkotler:~/test$ g++ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/auto10.C -std=c++0x rkotler at ubuntu-rkotler:~/test$ -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Aug 26 16:11:23 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 16:11:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 10779] New: dejagnu test fails to compiler with clang g++.old-deja/g++.pt/ttp22.c Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10779 Summary: dejagnu test fails to compiler with clang g++.old-deja/g++.pt/ttp22.c Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu compiles fine with g++ and intel edg based compiler /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp22.C:27:22: error: 'D' is a private member of 'D' int f() { return C::f(); } ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp22.C:13:55: note: constrained by implicitly private inheritance here template class DD,class EE> class C : DD ^~~~~~ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp22.C:2:25: note: member is declared here template class D ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp22.C:27:22: error: template argument for template template parameter must be a class template int f() { return C::f(); } ^ 2 errors generated. rkotler at ubuntu-rkotler:~/icpc$ icpc /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp22.C rkotler at ubuntu-rkotler:~/icpc$ g++ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/ttp22.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 Fri Aug 26 16:20:37 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 16:20:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 10780] New: dejagnu test fails to compiler with clang g++.old-deja/g++.pt/memclass5.C Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10780 Summary: dejagnu test fails to compiler with clang g++.old-deja/g++.pt/memclass5.C Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7155) --> (http://llvm.org/bugs/attachment.cgi?id=7155) g++.old-deja/g++.pt/memclass5.C Compiles with g++ and intel compiler with edg front end /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/memclass5.C /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/memclass5.C:15:27: error: typename specifier refers to non-type member 'B' in 'A' b.A::template B::~B(); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/memclass5.C:22:3: note: in instantiation of function template specialization 'f' requested here f(); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/memclass5.C:3:29: note: referenced member 'B' is declared here template struct B { ^ 1 error 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 Fri Aug 26 16:25:02 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 16:25:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 10781] New: dejagnu test fails to compile with clang g++.old-deja/g++.pt/friend13.C Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10781 Summary: dejagnu test fails to compile with clang g++.old-deja/g++.pt/friend13.C Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu compiles with g++ and edg based intel compiler rkotler at ubuntu-rkotler:~/icpc$ /home/rkotler/build_llvm/install/bin/clang++ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/friend13.C /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/friend13.C:12:10: error: 'i' is a private member of 'C' cv.i = 3; ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/friend13.C:31:6: note: in instantiation of function template specialization 'S::f' requested here si.f(3.0); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/friend13.C:24:7: note: implicitly declared private here int i; ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/friend13.C:12:10: error: 'i' is a private member of 'C' cv.i = 3; ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/friend13.C:33:6: note: in instantiation of function template specialization 'S::f' requested here sl.f('c'); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/friend13.C:24:7: note: implicitly declared private here int i; ^ 2 errors generated. rkotler at ubuntu-rkotler:~/icpc$ -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 16:28:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 16:28:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 9682] Assert generating when legalizing types in __sync_val_compare_and_swap_16 In-Reply-To: References: Message-ID: <20110826212811.2C62C2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9682 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Eli Friedman 2011-08-26 16:28:10 CDT --- r138660. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 16:32:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 16:32:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 10782] New: function without return type in declaration causes error Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10782 Summary: function without return type in declaration causes error Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu the following compiles with g++ and intel edg based C++ compiler. this one issue causes many failures in the dejagnu g/g++ test suite. main() { } even if it's a correct errror, I recommend that it be reduced to a warning in general use. /home/rkotler/build_llvm/install/bin/clang++ m1.C m1.C:1:1: error: C++ requires a type specifier for all declarations main() { ^~~~ 1 error 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 Fri Aug 26 16:46:25 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 16:46:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 10782] function without return type in declaration causes error In-Reply-To: References: Message-ID: <20110826214625.B621A2A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10782 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |INVALID --- Comment #1 from Eli Friedman 2011-08-26 16:46:25 CDT --- I don't believe we have ever run into this in practice... and given that, I don't see the point of downgrading this to a 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 Fri Aug 26 17:41:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 17:41:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 10783] New: JIT test failures on ARM since r136986 (aug 5) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10783 Summary: JIT test failures on ARM since r136986 (aug 5) Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Target-Independent JIT AssignedTo: unassignedbugs at nondot.org ReportedBy: atrick at apple.com CC: llvmbugs at cs.uiuc.edu These JIT tests have been failing on ARM since Aug 5. Given the number of open JIT bugs and plan to fix-by-rewrite, I will XFAIL the tests for the time being. The bug is a reminder to whoever fixes the JIT to remove the XFAILs. 2003-01-04-argumentbug.ll 2003-01-04-looptest.ll 2003-01-15-alignmenttest.ll 2003-05-06-livenessclobber.ll 2003-05-07-argumenttest.ll 2003-08-15-allocaassertion.ll 2003-08-21-environmenttest.ll 2003-08-23-registerallocatephysreg.ll 2003-10-18-phinode-constantexpr-condcode-failure.ll hello.ll hello2.ll simpletest.ll stubs.ll test-loadstore.ll jittest.availableexternallyfunctionisntcompiled jittest.farcalltoknownfunction jittest.moduledeletion jittest.nonlazycompilationstillneedsstubs jittest.nonlazyleaksnostubs lazyloadedjittest.eagercompiledrecursionthroughghost -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 18:23:17 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 18:23:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 10784] New: accepts invalid templated operator() call Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10784 Summary: accepts invalid templated operator() call Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Clang accepts invalid then crashes in codegen on this testcase: struct Empty {}; struct Class { const char *method() const; }; struct FunctionLike { template void operator()(const T&) const {} }; void TestBody() { Class cls; FunctionLike fl; fl(cls.method); } I'm not going to paste in the crash itself because it's in codegen and isn't relevant. Sema should diagnose this. See GCC for example: 001.c: In function ?void TestBody()?: 001.c:14: error: no match for call to ?(FunctionLike) ()? 001.c:8: note: candidates are: void FunctionLike::operator()(const T&) const [with T = const char* (Class::*)()const] -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 18:56:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 18:56:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 10722] clang doesn't report missing @required properties declared in adopted system protocols In-Reply-To: References: Message-ID: <20110826235633.003D22A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10722 Fariborz Jahanian changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |fjahanian at apple.com Resolution| |FIXED --- Comment #2 from Fariborz Jahanian 2011-08-26 18:56:32 CDT --- clang does not issue warning which originates from system header files. To get such warnings, use -Wsystem-headers (In reply to comment #1) > cloned to -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Aug 26 19:00:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 19:00:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 10785] New: crash on invalid use of variable of type "const T&" where T = an unbound method Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10785 Summary: crash on invalid use of variable of type "const T&" where T = an unbound method Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com clang++ -fsyntax-only test.cc crashes on this invalid code: struct Class { void method(); }; template struct Helper { virtual void helper(T x) { x; } }; struct FunctionLike { template void operator()(const T&) { Helper helper; } }; void TestBody() { Class cls; FunctionLike fl; fl(cls.method); } with this assertion: clang: SemaExpr.cpp:9968: clang::ExprResult clang::Sema::CheckPlaceholderExpr(clang::Expr*): Assertion `!type->isPlaceholderType()' 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 Fri Aug 26 20:04:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 20:04:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 10786] New: dejagnu test fails to compiler with clang /g++.dg/cpp0x/rv-trivial-bug.C Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10786 Summary: dejagnu test fails to compiler with clang /g++.dg/cpp0x/rv-trivial-bug.C Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7157) --> (http://llvm.org/bugs/attachment.cgi?id=7157) /testsuite/g++.dg/cpp0x/rv-trivial-bug.C c00x extension -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Aug 26 20:09:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 20:09:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 10722] clang doesn't report missing @required properties declared in adopted system protocols In-Reply-To: References: Message-ID: <20110827010958.544C42A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10722 Timothy J. Wood changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #3 from Timothy J. Wood 2011-08-26 20:09:57 CDT --- I'm marking this reopened since this rationalization doesn't make sense to me. -Wsystem-headers should control warnings that would be emitted when compiling system headers themselves, not whether user code that adopts them should warn. By this argument, no warning would be generated by a class adopting a protocol with required methods and failing to implement those methods. A @required property in a protocol is just shorthand for -foo and -setFoo: (with appropriate atomicity and reference counting semantics), and it should emit warnings when the property is missing just like a missing method would. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 20:18:59 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 20:18:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 10787] New: de Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10787 Summary: de Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com 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 Fri Aug 26 20:25:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 20:25:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 10787] de In-Reply-To: References: Message-ID: <20110827012510.A95CE2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10787 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |LATER --- Comment #2 from Eli Friedman 2011-08-26 20:25:10 CDT --- We don't have any support for uniform initializers yet. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 20:25:26 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 20:25:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 10788] New: dejagnu test fails to compile with clang g++.dg/cp00x/initlist25.C Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10788 Summary: dejagnu test fails to compile with clang g++.dg/cp00x/initlist25.C Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7159) --> (http://llvm.org/bugs/attachment.cgi?id=7159) initlist25.C rkotler at ubuntu-rkotler:~/icpc$ /home/rkotler/build_llvm/install/bin/clang++ -std=c++0x /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/initlist25.C In file included from /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/initlist25.C:5: In file included from /usr/include/c++/4.4/map:59: In file included from /usr/include/c++/4.4/bits/stl_tree.h:63: In file included from /usr/include/c++/4.4/bits/allocator.h:48: In file included from /usr/include/c++/4.4/x86_64-linux-gnu/bits/c++allocator.h:34: In file included from /usr/include/c++/4.4/ext/new_allocator.h:33: In file included from /usr/include/c++/4.4/new:40: In file included from /usr/include/c++/4.4/exception:148: /usr/include/c++/4.4/exception_ptr.h:143:13: error: unknown type name 'type_info' const type_info* ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/cpp0x/initlist25.C:14:11: error: no matching member function for call to 'insert' m.insert({{"t", "t"}, {"y", "y"}}); ~~^~~~~~ /usr/include/c++/4.4/bits/stl_map.h:499:7: note: candidate function not viable: cannot convert argument of incomplete type 'void' to 'const value_type' (aka 'const pair, std::basic_string >') insert(const value_type& __x) ^ /usr/include/c++/4.4/bits/stl_map.h:511:7: note: candidate function not viable: cannot convert argument of incomplete type 'void' to 'std::initializer_list' insert(std::initializer_list __list) ^ /usr/include/c++/4.4/bits/stl_map.h:552:9: note: candidate function template not viable: requires 2 arguments, but 1 was provided insert(_InputIterator __first, _InputIterator __last) ^ /usr/include/c++/4.4/bits/stl_map.h:539:7: note: candidate function not viable: requires 2 arguments, but 1 was provided insert(iterator __position, const value_type& __x) ^ 2 errors generated. rkotler at ubuntu-rkotler:~/icpc$ -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 20:34:59 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 20:34:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 10788] dejagnu test fails to compile with clang g++.dg/cp00x/initlist25.C In-Reply-To: References: Message-ID: <20110827013459.066602A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10788 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |LATER --- Comment #1 from Eli Friedman 2011-08-26 20:34:58 CDT --- Again, we're not even close to supporting this stuff. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 26 21:50:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 21:50:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 10789] New: TargetCodeGenInfo::getSizeOfUnwindException() should not always return 32 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10789 Summary: TargetCodeGenInfo::getSizeOfUnwindException() should not always return 32 Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ahatanak at gmail.com CC: llvmbugs at cs.uiuc.edu According to what g++ outputs, the type of private_1/2 is not uint64_t. $ g++ ue1.c -E | less typedef unsigned _Unwind_Word __attribute__((__mode__(__unwind_word__))); struct _Unwind_Exception { _Unwind_Exception_Class exception_class; _Unwind_Exception_Cleanup_Fn exception_cleanup; _Unwind_Word private_1; _Unwind_Word private_2; } __attribute__((__aligned__)); Therefore, getSizeOfUnwindException() should compute the size of _Unwind_Exception based on the sizes of its members instead of hardcoding it to 32B. The following is an excerpt from the ABI document: In this document, we specify the Application Binary Interface for C++ programs, that is, the object code interfaces between user C++ code and the implementation-provided system and libraries. This includes the memory layout for C++ data objects, including both predefined and user-defined data types, as well as internal compiler generated objects such as virtual tables. It also includes function calling interfaces, exception handling interfaces, global naming, and various object code conventions. In general, this document is written as a generic specification, to be usable by C++ implementations on a variety of architectures. However, it does contain processor-specific material for the Itanium 64-bit ABI, identified as such. Where structured data layout is described, we generally assume Itanium psABI member sizes. An implementation for a 32-bit ABI would typically just change the sizes of members as appropriate (i.e. pointers and long ints would become 32 bits), but sometimes an order change would be required for compactness, and we note more substantive 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 Fri Aug 26 22:02:30 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 26 Aug 2011 22:02:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 10790] New: False Positive of Potential Leak from Property Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10790 Summary: False Positive of Potential Leak from Property Product: clang Version: 2.9 Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: neil.here.junk at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7161) --> (http://llvm.org/bugs/attachment.cgi?id=7161) screenshot of analysis The static analysis of the 'test' method says that an object is allocated on line 18 is stored into newMergingList and then never used. However, it is used in the next line and the retainCount should not be affected. **** @interface testViewController : UIViewController - (void)addProductCollection:(id)newProductCollection removingExisting:(BOOL)removeExisting; @property (nonatomic, retain) id newProductCollection; @end @implementation testViewController @synthesize newProductCollection = _newProductCollection; - (void)addProductCollection:(id)newProductCollection removingExisting:(BOOL)removeExisting { } - (void)test { id newMergingList = self.newProductCollection; [self addProductCollection:newMergingList removingExisting:0]; } @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 Sat Aug 27 01:09:17 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 27 Aug 2011 01:09:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 10772] llvm-x86_64-linux-vg_leak builder MC tests fail with exit code 123 In-Reply-To: References: Message-ID: <20110827060917.4D3822A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10772 Andrew Trick changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #7 from Andrew Trick 2011-08-27 01:09:16 CDT --- Reopened. It appears that valgrind still finds some problems with the MC tests as of r138676, llvm-x86_64-linux-vg_leak: Build #1737. We may need Nick to give us another copy of the vg log. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 27 02:47:31 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 27 Aug 2011 02:47:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 10772] llvm-x86_64-linux-vg_leak builder MC tests fail with exit code 123 In-Reply-To: References: Message-ID: <20110827074731.AA2872A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10772 Benjamin Kramer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #8 from Benjamin Kramer 2011-08-27 02:47:30 CDT --- Another valgrind issue fixed in r138705, hopefully the last one for this 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 Sat Aug 27 13:16:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 27 Aug 2011 13:16:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 10791] New: Full ObjCInterfaceDecl declaration in header without import Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10791 Summary: Full ObjCInterfaceDecl declaration in header without import Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: vsapsai.llvm.bugs at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7162) --> (http://llvm.org/bugs/attachment.cgi?id=7162) Archived mentioned in description files When in .h file class is forward declared and in .m file class is imported, full ObjCInterfaceDecl declaration is available in forward declaration ObjCClassDecl. Not sure if it is a bug, I've expected different from actual result. STEPS TO REPRODUCE: 1) Build AST for foo.m, where files are like these (files are attached): // imported_class.h #import @interface ImportedClass : Object {} @end // imported_class.m #import "imported_class.h" @implementation ImportedClass @end // foo.h #import @class ImportedClass; @interface Foo : Object { ImportedClass *var; } @end // foo.m #import "foo.h" #import "imported_class.h" @implementation Foo @end 2) Observe ObjCClassDecl for @class ImportedClass; in foo.h ACTUAL RESULT: ObjCClassDecl contains ObjCInterfaceDecl, which is not isForwardDecl(), has LocStart, LocEnd pointing to imported_class.h EXPECTED RESULT: ObjCClassDecl should contain isForwardDecl() ObjCInterfaceDecl with LocStart pointing to foo.h. I think it should be expected because in foo.h ImportedClass isn't imported and full declaration isn't visible. Build & Platform: Build from r138705 from trunk on Mac OS X 10.6.8. Though it doesn't look like the issue is OS-specific. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 27 15:53:33 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 27 Aug 2011 15:53:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 10792] New: warning vs error for dyncast8.C Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10792 Summary: warning vs error for dyncast8.C Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7163) --> (http://llvm.org/bugs/attachment.cgi?id=7163) g++.old-deja/g++.mike/dyncast8.C g++ reports no warning or error. icpc reports a warning. clang++ an error. for g++ compatibility mode, i think that that things which are easy to allow should be allowed. rkotler at ubuntu-rkotler:~/icpc$ icpc /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.mike/dyncast8.C/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.mike/dyncast8.C(14): warning #854: const variable "b" requires an initializer -- class "Derived" has no user-provided default constructor const Derived b; ^ rkotler at ubuntu-rkotler:~/icpc$ /home/rkotler/build_llvm/install/bin/clang++ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.mike/dyncast8.C /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.mike/dyncast8.C:14:19: error: default initialization of an object of const type 'const Derived' requires a user-provided default constructor const Derived b; ^ 1 error generated. rkotler at ubuntu-rkotler:~/icpc$ g++ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.mike/dyncast8.Crkotler at ubuntu-rkotler:~/icpc$ -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 27 15:59:36 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 27 Aug 2011 15:59:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 10793] New: dejagnu test fails to compile addfunc3.C Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10793 Summary: dejagnu test fails to compile addfunc3.C Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7164) --> (http://llvm.org/bugs/attachment.cgi?id=7164) g++.old-deja/g++.ext/addrfunc3.C Compiles with g++ and intel edg based compiler /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.ext/addrfunc3.C:12:12: error: cannot resolve overloaded function 'f' from context if (p != f) ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.ext/addrfunc3.C:7:6: note: candidate function void f (); ^ /home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.ext/addrfunc3.C:6:6: note: candidate function void f (int) { } ^ 1 error 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 Sat Aug 27 17:00:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 27 Aug 2011 17:00:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 10722] clang doesn't report missing @required properties declared in adopted system protocols In-Reply-To: References: Message-ID: <20110827220022.6A4482A6C139@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10722 Fariborz Jahanian changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #6 from Fariborz Jahanian 2011-08-27 17:00:22 CDT --- All right. It is done in trunk as r 138714 > (In reply to comment #4) > > (In reply to comment #3) > > > I'm marking this reopened since this rationalization doesn't make sense to me. > > > > > > -Wsystem-headers should control warnings that would be emitted when compiling > > > system headers themselves, not whether user code that adopts them should warn. > > > > > > By this argument, no warning would be generated by a class adopting a protocol > > > with required methods and failing to implement those methods. A @required > > > property in a protocol is just shorthand for -foo and -setFoo: (with > > > appropriate atomicity and reference counting semantics), and it should emit > > > warnings when the property is missing just like a missing method would. > > > > I agree with this assessment. Classes in user code should not have their > > warnings suppressed because the parent class is in a system header. > > I agree too. It is trivial to fix by pointing the warning to the class's > implementation instead of the protocol. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 27 17:26:25 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 27 Aug 2011 17:26:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 10792] warning vs error for dyncast8.C In-Reply-To: References: Message-ID: <20110827222625.CBF852A6C142@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10792 Jeffrey Yasskin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |jyasskin at google.com Resolution| |INVALID --- Comment #1 from Jeffrey Yasskin 2011-08-27 17:26:25 CDT --- When asserting that g++ gives no warning or error, please test a recent g++: Using MacPorts' gcc46 package: $ g++-mp-4.6 -c dyncast8.C dyncast8.C: In function 'int main()': dyncast8.C:14:19: error: uninitialized const 'b' [-fpermissive] dyncast8.C:10:7: note: 'const class Derived' has no user-provided default constructor -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 27 17:30:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 27 Aug 2011 17:30:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 10793] dejagnu test fails to compile addfunc3.C In-Reply-To: References: Message-ID: <20110827223012.E93942A6C141@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10793 Chandler Carruth changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |chandlerc at gmail.com Resolution| |INVALID --- Comment #2 from Chandler Carruth 2011-08-27 17:30:12 CDT --- As Eli pointed out, we don't really try to emulate GCC's -fpermissive. Bugs based on GCC's test suite for those features are not really compelling for us to implement them. I personally have no desire to see this functionality. Also, individual bug reports are a complete waste of time. If you have a compelling reason to add support to Clang for these obscure, non-standard features, file that as a single bug, and make your case. I encourage you to point to large amounts of real world code that needs these features. Even then, you may find that only you are motivated to make this change, in which case you will most likely need to write the patches. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 27 17:59:48 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 27 Aug 2011 17:59:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 10794] New: REGRESSION: ObjC objects passed to C++ 'new' are still retain-count-tracked Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10794 Summary: REGRESSION: ObjC objects passed to C++ 'new' are still retain-count-tracked Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Keywords: regression Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: jediknil at belkadan.com CC: llvmbugs at cs.uiuc.edu Currently, RetainReleaseChecker is supposed to stop tracking the retain counts of objects that are passed to C++ methods, or generally into C++-land, at least until we've established what the right behavior should be. This works for regular methods and for stack constructors, but not for heap constructors, i.e. C++ objects allocated with 'new'. Previously this worked almost coincidentally; /every/ argument's retain count was invalidated /except/ those explicitly whitelisted by the CFRefCount transfer functions. And CFRefCount never handled C++-only expressions anyway. One fix is as follows: 1. Add CXXNewExpr to CallOrObjCMessage. 2. Add a post-statement hook for CXXNewExpr. 3. Implement check::PostStmt on RetainReleaseChecker with the exact same code as for CXXConstructExprs. This change occurred (deliberately) in r138716. Test case (for retain-release.mm): void test_smartpointer_4() { id x = [[NSObject alloc] init]; // no-warning SmartPointer *foo = new SmartPointer(x); delete 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 Sat Aug 27 18:08:52 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 27 Aug 2011 18:08:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 10795] New: Extend memset-like sizeof() checks to *alloc Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10795 Summary: Extend memset-like sizeof() checks to *alloc Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: joerg at NetBSD.org CC: llvmbugs at cs.uiuc.edu It would be nice if malloc and friends had type-based diagnostic like memset: foo = malloc(sizeof(bar)) should check whether: (1) typeof(foo) == typeof(bar) --> warning (2) sizeof(bar) < sizeof(foo) --> warning foo = (bar *)malloc(...) should additionally check that typeof(foo) == bar * and recomment removing the cast. This is pre-ANSI style. A static analyzer for expressions of the form malloc(x * sizeof(y)) etc might be useful if x can't be proven to be small enough to not trigger overflow. A static analyzer check for the following idiom would be nice: foo = malloc(len); memset(foo, 0, len); --> foo = calloc(1, len); foo = malloc(x * sizeof(**foo)); memset(foo, 0, x * sizeof(**foo)); --> foo = calloc(x, sizeof(**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 Sat Aug 27 22:30:11 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 27 Aug 2011 22:30:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 10055] ~1 in 100 crash in PCH/chain-late-anonymous-namespace.cpp In-Reply-To: References: Message-ID: <20110828033011.DA41E2A6C141@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10055 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Nick Lewycky 2011-08-27 22:30:11 CDT --- Fixed in r138717. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 28 06:46:38 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 28 Aug 2011 06:46:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 10796] New: Valgrind errors in EH tests. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10796 Summary: Valgrind errors in EH tests. Product: new-bugs Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: pawel.worach at gmail.com CC: llvmbugs at cs.uiuc.edu On FreeBSD 8.2 amd64 and i386 at least these tests fail with the same valgrind output: LLVM :: CodeGen/PowerPC/2008-12-12-EH.ll LLVM :: CodeGen/X86/2007-09-17-ObjcFrameEH.ll LLVM :: CodeGen/X86/2008-04-02-unnamedEH.ll LLVM :: CodeGen/X86/2008-12-12-PrivateEHSymbol.ll The output below is from r137044, this still happens with r138720 but I didn't have debug symbols for that test run. ******************** TEST 'LLVM :: CodeGen/PowerPC/2008-12-12-EH.ll' FAILED ******************** Script: -- /data/buildslave/clang-amd64-freebsd-vg_leak/obj/llvm.1/Debug+Asserts/bin/llc < /data/buildslave/clang-amd64-freebsd-vg_leak/src-llvm/test/CodeGen/PowerPC/2008-12-12-EH.ll -disable-cfi -march=ppc32 -mtriple=powerpc-apple-darwin9 | grep ^__Z1fv.eh -- Exit Code: 123 Command Output (stdout): -- __Z1fv.eh: -- Command Output (stderr): -- ==51634== Conditional jump or move depends on uninitialised value(s) ==51634== at 0x140C1D9: llvm::MCDwarfFrameEmitter::Emit(llvm::MCStreamer&, bool, bool) (MCDwarf.cpp:1019) ==51634== by 0x142162F: llvm::MCStreamer::EmitFrames(bool) (MCStreamer.cpp:536) ==51634== by 0x13F61B0: (anonymous namespace)::MCAsmStreamer::Finish() (MCAsmStreamer.cpp:1260) ==51634== by 0xF9088D: llvm::AsmPrinter::doFinalization(llvm::Module&) (AsmPrinter.cpp:921) ==51634== by 0xC72081: (anonymous namespace)::PPCDarwinAsmPrinter::doFinalization(llvm::Module&) (PPCAsmPrinter.cpp:666) ==51634== by 0x13A4D52: llvm::FPPassManager::doFinalization(llvm::Module&) (PassManager.cpp:1553) ==51634== by 0x13A93C7: llvm::FPPassManager::runOnModule(llvm::Module&) (PassManager.cpp:1537) ==51634== by 0x13A8E4C: llvm::MPPassManager::runOnModule(llvm::Module&) (PassManager.cpp:1589) ==51634== by 0x13AA663: llvm::PassManagerImpl::run(llvm::Module&) (PassManager.cpp:1671) ==51634== by 0x13AA6D0: llvm::PassManager::run(llvm::Module&) (PassManager.cpp:1715) ==51634== by 0x96F8C2: main (llc.cpp:374) ==51634== -- ******************** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 28 06:55:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 28 Aug 2011 06:55:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 10797] New: [analyzer] Crash: "cast() argument of incompatible type!" assert when analyzing ICU Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10797 Summary: [analyzer] Crash: "cast() argument of incompatible type!" assert when analyzing ICU Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: nicolasweber at gmx.de CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7165) --> (http://llvm.org/bugs/attachment.cgi?id=7165) .i file $ ../third_party/llvm-build/Release+Asserts/bin/clang --version clang version 3.0 (trunk 138598) Target: x86_64-apple-darwin10.8.0 Thread model: posix Assertion failed: (isa(Val) && "cast() argument of incompatible type!"), function cast, file /Users/thakis/src/chrome-git/src/third_party/llvm/include/llvm/Support/Casting.h, line 194. 0 clang 0x00000001019f62b2 PrintStackTrace(void*) + 34 1 clang 0x00000001019f7103 SignalHandler(int) + 707 2 libSystem.B.dylib 0x00007fff80f0d1ba _sigtramp + 26 3 clang 0x00000001019e2190 llvm::FoldingSetNodeID::AddPointer(void const*) + 112 4 clang 0x000000010001d4a2 __assert_rtn + 66 5 clang 0x000000010078eb6d getSymbolForRegion(clang::ento::CheckerContext&, clang::ento::MemRegion const*) + 93 6 clang 0x000000010079373b void clang::ento::check::PreStmt::_checkStmt<(anonymous namespace)::MacOSKeychainAPIChecker>(void*, clang::Stmt const*, clang::ento::CheckerContext&) + 123 7 clang 0x000000010081d7a6 clang::ento::CheckerManager::runCheckersForStmt(bool, clang::ento::ExplodedNodeSet&, clang::ento::ExplodedNodeSet const&, clang::Stmt const*, clang::ento::ExprEngine&) + 694 8 clang 0x000000010084413d clang::ento::ExprEngine::VisitReturnStmt(clang::ReturnStmt const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) + 397 9 clang 0x000000010083602c clang::ento::ExprEngine::Visit(clang::Stmt const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) + 2844 10 clang 0x0000000100837a05 clang::ento::ExprEngine::ProcessStmt(clang::CFGStmt, clang::ento::StmtNodeBuilder&) + 789 11 clang 0x00000001008387ed clang::ento::ExprEngine::processCFGElement(clang::CFGElement, clang::ento::StmtNodeBuilder&) + 237 12 clang 0x00000001008252ec clang::ento::CoreEngine::HandlePostStmt(clang::CFGBlock const*, unsigned int, clang::ento::ExplodedNode*) + 188 13 clang 0x00000001008254d8 clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, clang::ento::ProgramState const*) + 216 14 clang 0x00000001007433e4 ActionExprEngine((anonymous namespace)::AnalysisConsumer&, clang::ento::AnalysisManager&, clang::Decl*, clang::ento::TransferFuncs*) + 196 15 clang 0x0000000100743d33 (anonymous namespace)::AnalysisConsumer::HandleCode(clang::Decl*) + 899 16 clang 0x000000010074470d (anonymous namespace)::AnalysisConsumer::HandleDeclContext(clang::ASTContext&, clang::DeclContext*) + 957 17 clang 0x0000000100744c65 (anonymous namespace)::AnalysisConsumer::HandleTranslationUnit(clang::ASTContext&) + 405 18 clang 0x00000001003337c4 clang::ParseAST(clang::Sema&, bool) + 452 19 clang 0x00000001000485a1 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 433 20 clang 0x0000000100028077 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1735 21 clang 0x000000010001e7fc cc1_main(char const**, char const**, char const*, void*) + 652 22 clang 0x0000000100026dbe main + 4542 23 clang 0x000000010001dbe4 start + 52 24 clang 0x000000000000005c start + 4294845612 Stack dump: 0. Program arguments: /Users/thakis/src/chrome-git/src/third_party/llvm-build/Release+Asserts/bin//clang -cc1 -triple i386-apple-macosx10.5.0 -analyze -disable-free -main-file-name cmemory.c -analyzer-store=region -analyzer-opt-analyze-nested-blocks -analyzer-eagerly-assume -analyzer-checker=core -analyzer-checker=deadcode -analyzer-checker=security -analyzer-checker=unix -analyzer-checker=osx -analyzer-output plist -w -pic-level 1 -mdisable-fp-elim -masm-verbose -target-cpu yonah -target-linker-version 97.17 -resource-dir /Users/thakis/src/chrome-git/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.0 -isysroot /Developer/SDKs/MacOSX10.5.sdk -D U_USING_ICU_NAMESPACE=0 -D U_STATIC_IMPLEMENTATION -D CHROMIUM_BUILD -D ENABLE_REMOTING=1 -D ENABLE_P2P_APIS=1 -D ENABLE_CONFIGURATION_POLICY -D ENABLE_GPU=1 -D ENABLE_EGLIMAGE=1 -D ENABLE_REGISTER_PROTOCOL_HANDLER=1 -D U_COMMON_IMPLEMENTATION -D DYNAMIC_ANNOTATIONS_ENABLED=1 -D WTF_USE_DYNAMIC_ANNOTATIONS=1 -F/Users/thakis/src/chrome-git/src/third_party/icu/../../xcodebuild/Debug -I /Users/thakis/src/chrome-git/src/third_party/icu/../../xcodebuild/Debug/include -I public/common -I public/i18n -I source/common -I source/i18n -I /Users/thakis/src/chrome-git/src/third_party/icu/../../xcodebuild/icu.build/Debug/icuuc.build/DerivedSources/i386 -I /Users/thakis/src/chrome-git/src/third_party/icu/../../xcodebuild/icu.build/Debug/icuuc.build/DerivedSources -Wno-trigraphs -Wno-unused-parameter -Wno-missing-field-initializers -Wno-char-subscripts -Wno-unused-function -Wno-unnamed-type-template-args -Wno-parentheses -std=c99 -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -fblocks -fdiagnostics-show-option -analyzer-output=html -o /var/folders/++/++1Gyk++6+0++4RjPqRgNE++ojg/-Tmp-/scan-build-2011-08-28-2 -x c /Users/thakis/src/chrome-git/src/third_party/icu/source/common/cmemory.c 1. parser at end of file 2. /Users/thakis/src/chrome-git/src/third_party/icu/source/common/cmemory.c:48:9: Error evaluating statement 3. /Users/thakis/src/chrome-git/src/third_party/icu/source/common/cmemory.c:48:9: Error evaluating statement -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 28 07:17:51 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 28 Aug 2011 07:17:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 10798] New: [analyzer] Crash when analyzing ICU Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10798 Summary: [analyzer] Crash when analyzing ICU Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: nicolasweber at gmx.de CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7166) --> (http://llvm.org/bugs/attachment.cgi?id=7166) .i file $ ../third_party/llvm-build/Release+Asserts/bin/clang --versionclang version 3.0 (trunk 138598) Target: x86_64-apple-darwin10.8.0 Thread model: posix 0 clang 0x00000001019f62b2 PrintStackTrace(void*) + 34 1 clang 0x00000001019f7103 SignalHandler(int) + 707 2 libSystem.B.dylib 0x00007fff80f0d1ba _sigtramp + 26 3 libSystem.B.dylib 0x00007fff5fbfac80 _sigtramp + 3738098400 4 clang 0x000000010079373b void clang::ento::check::PreStmt::_checkStmt<(anonymous namespace)::MacOSKeychainAPIChecker>(void*, clang::Stmt const*, clang::ento::CheckerContext&) + 123 5 clang 0x000000010081d7a6 clang::ento::CheckerManager::runCheckersForStmt(bool, clang::ento::ExplodedNodeSet&, clang::ento::ExplodedNodeSet const&, clang::Stmt const*, clang::ento::ExprEngine&) + 694 6 clang 0x000000010084413d clang::ento::ExprEngine::VisitReturnStmt(clang::ReturnStmt const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) + 397 7 clang 0x000000010083602c clang::ento::ExprEngine::Visit(clang::Stmt const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) + 2844 8 clang 0x0000000100837a05 clang::ento::ExprEngine::ProcessStmt(clang::CFGStmt, clang::ento::StmtNodeBuilder&) + 789 9 clang 0x00000001008387ed clang::ento::ExprEngine::processCFGElement(clang::CFGElement, clang::ento::StmtNodeBuilder&) + 237 10 clang 0x00000001008252ec clang::ento::CoreEngine::HandlePostStmt(clang::CFGBlock const*, unsigned int, clang::ento::ExplodedNode*) + 188 11 clang 0x00000001008254d8 clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, clang::ento::ProgramState const*) + 216 12 clang 0x00000001007433e4 ActionExprEngine((anonymous namespace)::AnalysisConsumer&, clang::ento::AnalysisManager&, clang::Decl*, clang::ento::TransferFuncs*) + 196 13 clang 0x0000000100743d33 (anonymous namespace)::AnalysisConsumer::HandleCode(clang::Decl*) + 899 14 clang 0x000000010074470d (anonymous namespace)::AnalysisConsumer::HandleDeclContext(clang::ASTContext&, clang::DeclContext*) + 957 15 clang 0x0000000100744c65 (anonymous namespace)::AnalysisConsumer::HandleTranslationUnit(clang::ASTContext&) + 405 16 clang 0x00000001003337c4 clang::ParseAST(clang::Sema&, bool) + 452 17 clang 0x00000001000485a1 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 433 18 clang 0x0000000100028077 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1735 19 clang 0x000000010001e7fc cc1_main(char const**, char const**, char const*, void*) + 652 20 clang 0x0000000100026dbe main + 4542 21 clang 0x000000010001dbe4 start + 52 22 clang 0x000000000000005c start + 4294845612 Stack dump: 0. Program arguments: /Users/thakis/src/chrome-git/src/third_party/llvm-build/Release+Asserts/bin//clang -cc1 -triple i386-apple-macosx10.5.0 -analyze -disable-free -main-file-name propsvec.c -analyzer-store=region -analyzer-opt-analyze-nested-blocks -analyzer-eagerly-assume -analyzer-checker=core -analyzer-checker=deadcode -analyzer-checker=security -analyzer-checker=unix -analyzer-checker=osx -analyzer-output plist -w -pic-level 1 -mdisable-fp-elim -masm-verbose -target-cpu yonah -target-linker-version 97.17 -resource-dir /Users/thakis/src/chrome-git/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.0 -isysroot /Developer/SDKs/MacOSX10.5.sdk -D U_USING_ICU_NAMESPACE=0 -D U_STATIC_IMPLEMENTATION -D CHROMIUM_BUILD -D ENABLE_REMOTING=1 -D ENABLE_P2P_APIS=1 -D ENABLE_CONFIGURATION_POLICY -D ENABLE_GPU=1 -D ENABLE_EGLIMAGE=1 -D ENABLE_REGISTER_PROTOCOL_HANDLER=1 -D U_COMMON_IMPLEMENTATION -D DYNAMIC_ANNOTATIONS_ENABLED=1 -D WTF_USE_DYNAMIC_ANNOTATIONS=1 -F/Users/thakis/src/chrome-git/src/third_party/icu/../../xcodebuild/Debug -I /Users/thakis/src/chrome-git/src/third_party/icu/../../xcodebuild/Debug/include -I public/common -I public/i18n -I source/common -I source/i18n -I /Users/thakis/src/chrome-git/src/third_party/icu/../../xcodebuild/icu.build/Debug/icuuc.build/DerivedSources/i386 -I /Users/thakis/src/chrome-git/src/third_party/icu/../../xcodebuild/icu.build/Debug/icuuc.build/DerivedSources -Wno-trigraphs -Wno-unused-parameter -Wno-missing-field-initializers -Wno-char-subscripts -Wno-unused-function -Wno-unnamed-type-template-args -Wno-parentheses -std=c99 -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -fblocks -fdiagnostics-show-option -analyzer-output=html -o /var/folders/++/++1Gyk++6+0++4RjPqRgNE++ojg/-Tmp-/scan-build-2011-08-28-3 -x c /Users/thakis/src/chrome-git/src/third_party/icu/source/common/propsvec.c 1. parser at end of file 2. /Users/thakis/src/chrome-git/src/third_party/icu/source/common/propsvec.c:122:13: Error evaluating statement 3. /Users/thakis/src/chrome-git/src/third_party/icu/source/common/propsvec.c:122:13: Error evaluating statement -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 28 08:19:16 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 28 Aug 2011 08:19:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 5329] Global ctor/dtor priorities not codegened correctly In-Reply-To: References: Message-ID: <20110828131916.24A372A6C13A@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5329 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Duncan Sands 2011-08-28 08:19:15 CDT --- Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20110822/127083.html By the way, I think the multiple file testcase is wrong because it assumes that the bar and baz constructors will run before the foobar constructor. Since all of these constructors have the same priority, there is no reason for this to be the case. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 28 15:30:08 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 28 Aug 2011 15:30:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 10799] New: CodegenOpt::None and llvm.gcroot trigger failure in X86ISelDAG Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10799 Summary: CodegenOpt::None and llvm.gcroot trigger failure in X86ISelDAG Product: libraries Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: eschew at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7167) --> (http://llvm.org/bugs/attachment.cgi?id=7167) minimal testcase The attached testcase triggers failure in X86ISelDAG in LLVM 2.9 and trunk (r138727) when CodeGenOpt level is None. I can reproduce this bug on LLVM 2.4, but not 2.3 (under -fast instead of -O0). $ ~/llvm/trunk/bin/llc -O0 test.ll llc: /home/benkarel/llvm/src/trunk/include/llvm/Support/Casting.h:194: typename llvm::cast_retty::ret_type llvm::cast(const Y&) [with X = llvm::FrameIndexSDNode, Y = llvm::SDNode*]: Assertion `isa(Val) && "cast() argument of incompatible type!"' failed. 0 llc 0x088c31b8 Stack dump: 0. Program arguments: /home/benkarel/llvm/trunk/bin/llc -O0 test.ll 1. Running pass 'Function Pass Manager' on module 'test.ll'. 2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@f' Aborted This bug only seems to be triggered under a specific set of circumstances: 1) CodegenOpt level must be None 2) The first argument to llvm.gcroot must be a bitcast of an alloca. The bug is not triggered if an alloca value is passed directly. 3) The GC plugin for the function must (I think) be one that emits stack maps. The ocaml GC and my custom GC both trigger the bug, but the shadow-stack GC does not. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Aug 28 17:22:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 28 Aug 2011 17:22:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 10022] Ubuntu 11.04 Natty x86: clang++ fails to build shared library In-Reply-To: References: Message-ID: <20110828222240.774532A6C131@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10022 ?scar Fuentes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #9 from ?scar Fuentes 2011-08-28 17:22:39 CDT --- Seems fixed. 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 Sun Aug 28 17:36:07 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 28 Aug 2011 17:36:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 10661] clang doesn't warn on missing [super dealloc] and [super finalize] calls In-Reply-To: References: Message-ID: <20110828223607.639F52A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10661 Nico Weber changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Nico Weber 2011-08-28 17:36:07 CDT --- r138240 and r138730 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 29 11:08:43 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 11:08:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 10800] New: failed to build libc++: assert(reference binding to unmaterialized r-value!) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10800 Summary: failed to build libc++: assert(reference binding to unmaterialized r-value!) Product: clang Version: trunk Platform: Macintosh OS/Version: All Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: devlists at shadowlab.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7170) --> (http://llvm.org/bugs/attachment.cgi?id=7170) Preprocessed files (compressed) clang r138734 failed to build libc++ (and other projects using libc++ headers) . It assert in codegen with the following message: clang++ -c -g -Os -arch x86_64 -std=c++0x -U__STRICT_ANSI__ -nostdinc++ -I../include ../src/future.cpp Assertion failed: (type->isReferenceType() == E->isGLValue() && "reference binding to unmaterialized r-value!"), function EmitCallArg, file /Users/jddupas/Projects/OpenSource/llvm/tools/clang/lib/CodeGen/CGCall.cpp, line 1435. 0 clang 0x000000010cd5a032 _ZL15PrintStackTracePv + 34 ? 5 clang 0x000000010cd5a235 __assert_rtn + 53 6 clang 0x000000010bdae5fe clang::CodeGen::CodeGenFunction::EmitCallArg(clang::CodeGen::CallArgList&, clang::Expr const*, clang::QualType) + 3102 7 clang 0x000000010bde6ab3 void clang::CodeGen::CodeGenFunction::EmitCallArgs(clang::CodeGen::CallArgList&, clang::FunctionProtoType const*, clang::ConstExprIterator, clang::ConstExprIterator) + 515 8 clang 0x000000010bdec55d clang::CodeGen::CodeGenFunction::EmitCXXMemberCall(clang::CXXMethodDecl const*, llvm::Value*, clang::CodeGen::ReturnValueSlot, llvm::Value*, llvm::Value*, clang::ConstExprIterator, clang::ConstExprIterator) + 765 9 clang 0x000000010bdb4d9d clang::CodeGen::CodeGenFunction::EmitCXXConstructorCall(clang::CXXConstructorDecl const*, clang::CXXCtorType, bool, llvm::Value*, clang::ConstExprIterator, clang::ConstExprIterator) + 509 10 clang 0x000000010bdedb6e clang::CodeGen::CodeGenFunction::EmitCXXConstructExpr(clang::CXXConstructExpr const*, clang::CodeGen::AggValueSlot) + 590 11 clang 0x000000010bdea991 (anonymous namespace)::AggExprEmitter::VisitCXXConstructExpr(clang::CXXConstructExpr const*) + 129 12 clang 0x000000010bde80de clang::StmtVisitorBase::Visit(clang::Stmt*) + 2318 13 clang 0x000000010bde7745 clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*, clang::CodeGen::AggValueSlot, bool) + 501 14 clang 0x000000010bdb6e08 _ZL24EmitAggMemberInitializerRN5clang7CodeGen15CodeGenFunctionENS0_6LValueEPN4llvm5ValueEPNS_18CXXCtorInitializerENS_8QualTypeEj + 936 15 clang 0x000000010bdb3626 clang::CodeGen::CodeGenFunction::EmitCtorPrologue(clang::CXXConstructorDecl const*, clang::CXXCtorType, clang::CodeGen::FunctionArgList&) + 3206 16 clang 0x000000010bdb2461 clang::CodeGen::CodeGenFunction::EmitConstructorBody(clang::CodeGen::FunctionArgList&) + 369 17 clang 0x000000010be6ef45 clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 645 18 clang 0x000000010bda5e2a clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl const*, clang::CXXCtorType) + 282 19 clang 0x000000010be74057 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 311 20 clang 0x000000010be71ef1 clang::CodeGen::CodeGenModule::EmitDeferred() + 193 21 clang 0x000000010be71d24 clang::CodeGen::CodeGenModule::Release() + 20 22 clang 0x000000010be6d19d clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 93 23 clang 0x000000010be8effe clang::ParseAST(clang::Sema&, bool) + 446 24 clang 0x000000010be6c440 clang::CodeGenAction::ExecuteAction() + 944 25 clang 0x000000010bc85ddb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 955 26 clang 0x000000010bc6e9e5 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2789 27 clang 0x000000010bc670bc cc1_main(char const**, char const**, char const*, void*) + 5500 28 clang 0x000000010bc6ad82 main + 706 29 clang 0x000000010bc65b34 start + 52 30 clang 0x000000000000002e start + 18446744069217035566 Stack dump: 0. Program arguments: /Users/jddupas/Projects/OpenSource/llvm/release/Release+Asserts/bin/clang -cc1 -triple x86_64-apple-macosx10.7.1 -emit-obj -disable-free -main-file-name future.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 123.2.1 -g -coverage-file future.o -nostdinc++ -resource-dir /Users/jddupas/Projects/OpenSource/llvm/release/Release+Asserts/bin/../lib/clang/3.0 -U __STRICT_ANSI__ -I ../include -Os -std=c++0x -fdeprecated-macro -ferror-limit 19 -fmessage-length 220 -stack-protector 1 -fblocks -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o future.o -x c++ ../src/future.cpp 1. parser at end of file 2. Per-file LLVM IR generation 3. ../include/memory:2334:40: Generating code for declaration 'std::__1::unique_ptr::unique_ptr' clang: error: unable to execute command: Illegal instruction: 4 clang: error: clang frontend command failed due to signal 2 (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 Aug 29 12:25:21 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 12:25:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 10801] New: clang++ incorrectly reports function could be attribute 'noreturn' in template function Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10801 Summary: clang++ incorrectly reports function could be attribute 'noreturn' in template function Product: clang Version: unspecified 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 Created an attachment (id=7174) --> (http://llvm.org/bugs/attachment.cgi?id=7174) Testcase The attached code fails to compile in clang++ with -Werror -Wmissing-noreturn, but compiles fine in gcc, msvc, and llvm-gcc. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Aug 29 12:29:00 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 12:29:00 -0500 (CDT) Subject: [LLVMbugs] =?utf-8?b?W0J1ZyAxMDcxNV0gIE5vIOKAmGhhc19mZWF0dXJl4oCZ?= =?utf-8?q?_constant_for_explicit_operator_conversions?= In-Reply-To: References: Message-ID: <20110829172900.DB0432A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10715 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2011-08-29 12:29:00 CDT --- Fixed in Clang r138741. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 29 12:37:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 12:37:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 9448] likely dragonegg wrong code bug In-Reply-To: References: Message-ID: <20110829173719.9723C2A6C133@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9448 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Duncan Sands 2011-08-29 12:37:19 CDT --- Sorry for having taken so long. Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20110829/127100.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 Aug 29 13:26:11 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 13:26:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 10796] Valgrind errors in EH tests. In-Reply-To: References: Message-ID: <20110829182611.4EA1C2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10796 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bill Wendling 2011-08-29 13:26:10 CDT --- Fixed r138752 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 29 13:56:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 13:56:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 10692] Clang Can't Find C++ Headers on Slackware In-Reply-To: References: Message-ID: <20110829185658.C05FE2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10692 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #2 from Eli Friedman 2011-08-29 13:56:58 CDT --- r138753. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 29 14:10:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 14:10:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 10802] New: Incorrect code generated for uitofp with x86 target (x86-64 is fine) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10802 Summary: Incorrect code generated for uitofp with x86 target (x86-64 is fine) Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7178) --> (http://llvm.org/bugs/attachment.cgi?id=7178) test case, part 1 The attached test program basically computes the i32 value 1 and then converts it to a float (with enough obfuscation so that the optimizer doesn't just do the conversion itself.) With top of tree, when compiled with the x86-64 target, it prints 1.0, as expected: % llc -march=x86-64 -filetype=obj -o bug.o bug.ll && g++ -m64 bug.cpp bug.o && ./a.out 1.000000 % With the 32-bit x86 target, it seems to generate incorrect code for the conversion: % llc -march=x86 -filetype=obj -o bug.o bug.ll && g++ -Wl,-no_pie -m32 bug.cpp bug.o && ./a.out 4294967296.000000 % -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 29 15:46:55 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 15:46:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 10798] [analyzer] Crash when analyzing ICU In-Reply-To: References: Message-ID: <20110829204655.6CA922A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10798 Anna Zaks changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Anna Zaks 2011-08-29 15:46:54 CDT --- This one should be fixed as of 138762. Thanks for reporting. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 29 16:13:25 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 16:13:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 10803] New: _mm_ucomige_sd missing from emmintrin.h Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10803 Summary: _mm_ucomige_sd missing from emmintrin.h Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Headers AssignedTo: unassignedclangbugs at nondot.org ReportedBy: jolt at tuxbox.org CC: llvmbugs at cs.uiuc.edu _mm_ucomige_sd is missing from emmintrin.h. I've copied the gcc "implementation" locally and it seems to work for clang/llvm so i'm assuming it is just a header issue and not a missing implementation problem. Workaround: static __inline__ int __attribute__((__always_inline__, __nodebug__)) _mm_ucomige_sd(__m128d __A, __m128d __B) { return __builtin_ia32_ucomisdge ((__v2df)__A, (__v2df)__B); } -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 29 16:17:47 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 16:17:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 10802] Incorrect code generated for uitofp with x86 target (x86-64 is fine) In-Reply-To: References: Message-ID: <20110829211747.37B3D2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10802 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Eli Friedman 2011-08-29 16:17:46 CDT --- r138768. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 29 16:26:37 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 16:26:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 10803] _mm_ucomige_sd missing from emmintrin.h In-Reply-To: References: Message-ID: <20110829212637.34BBC2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10803 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #1 from Eli Friedman 2011-08-29 16:26:36 CDT --- r138769. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 29 16:30:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 16:30:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 10804] New: getCalleeDecl() returns NULL in edge case. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10804 Summary: getCalleeDecl() returns NULL in edge case. Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: delesley at google.com CC: llvmbugs at cs.uiuc.edu getCalleeDecl() returns NULL in a function call to a method pointer, if the method pointer is passed as a template parameter. For example: template class MCaller { public: static void call_method_ptr(UnFoo *f) { // FIXME: Possible Clang bug: // getCalleeDecl() returns NULL in the following case: (f->*methptr)(); } }; void call_method_ptr_inst(UnFoo* f) { MCaller<&UnFoo::foo>::call_method_ptr(f); } -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 29 16:44:16 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 16:44:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 10805] New: Control flow graph has possibly incorrect statements with missing source location. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10805 Summary: Control flow graph has possibly incorrect statements with missing source location. Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: delesley at google.com CC: llvmbugs at cs.uiuc.edu The control flow graph for the following code does not seem to be correct. In particular, the first statement has no source location. The problem may be more serious than that, as the basic block below seems to be missing some statements, such as the code that loads f from this. struct Foomger { void operator++(); }; struct Foomgoper { Foomger f; bool done(); void invalid_back_edge() { do { // FIXME: Possible Clang bug: // The first statement in this basic block has no source location ++f; } while (!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 Mon Aug 29 17:01:08 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 17:01:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 10806] New: [x86 disassembler] vldmxcsr disassembled incorrectly Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10806 Summary: [x86 disassembler] vldmxcsr disassembled incorrectly Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: kkhoo at perfwizard.com CC: llvmbugs at cs.uiuc.edu According to the "Intel? 64 and IA-32 Architectures Software Developer?s Manual Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 3-571: VEX.LZ.0F.WIG AE /2 VLDMXCSR m32 "LZ" in the above spec is defined on p. 3-5: If VEX.LZ is present in the opcode column: The VEX.L must be encoded to be 0B, an #UD occurs if VEX.L is not zero. $ echo '0xc5 0xf0 0xae 0x11'| ./llvm-mc -disassemble -triple="x86_64" -x86-asm-syntax=intel ldmxcsr DWORD PTR [RCX] $ echo '0xc4 0xc1 0x70 0xae 0x11'| ./llvm-mc -disassemble -triple="x86_64" -x86-asm-syntax=intel ldmxcsr DWORD PTR [R9] When the 'L' bit is not set, the disassembler (using trunk r138250) is showing "ldmxcsr" instead of the expected "vldmxcsr". With the 'L' bit set, the mnemonic shows the leading 'v', but this should be undefined according to the Intel spec: $ echo '0xc5 0xf4 0xae 0x11'| ./llvm-mc -disassemble -triple="x86_64" -x86-asm-syntax=intel vldmxcsr DWORD PTR [RCX] $ echo '0xc4 0xc1 0x74 0xae 0x11'| ./llvm-mc -disassemble -triple="x86_64" -x86-asm-syntax=intel vldmxcsr DWORD PTR [R9] -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 29 17:07:17 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 17:07:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 10702] [x86 disassembler] crc32 not disassembled correctly In-Reply-To: References: Message-ID: <20110829220717.D5EC12A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10702 Kevin Enderby changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Kevin Enderby 2011-08-29 17:07:17 CDT --- Fixed this in r138771. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 29 17:28:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 17:28:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 10807] New: [x86 disassembler] vmaskmovpd is not disassembled Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10807 Summary: [x86 disassembler] vmaskmovpd is not disassembled Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: kkhoo at perfwizard.com CC: llvmbugs at cs.uiuc.edu >From the "Intel? 64 and IA-32 Architectures Software Developer?s Manual Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 3-612: VEX.NDS.128.66.0F38.W0 2F /r VMASKMOVPD m128, xmm1, xmm2 clang on OSX correctly assembles the following): vmaskmovpd %xmm0, %xmm1, (%eax) The object file shows: C4 E2 71 2F 00 But using llvm-mc built from trunk r138250, this byte sequence doesn't disassemble: $ echo '0xc4 0xe2 0x71 0x2f 0x00'| ./llvm-mc -disassemble -triple="x86_64" :1:1: warning: invalid instruction encoding 0xc4 0xe2 0x71 0x2f 0x00 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 29 17:40:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 17:40:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 10808] New: During testing processes clang.exe*32 occupy all CPU time and block execution Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10808 Summary: During testing processes clang.exe*32 occupy all CPU time and block execution Product: clang Version: unspecified Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: clang.builder at gmail.com CC: llvmbugs at cs.uiuc.edu Native mingw32 two-stage clang build has issues with both llvm and clang tests performed on second stage. Seems four processes clang.exe*32 occupy all CPU time and block execution. Description of the build: Native two-stage clang build, both stage use equal clang configuration: --prefix=private_install_dir \ --build=i686-pc-mingw32 --host=i686-pc-mingw32 \ --target=i686-pc-mingw32 --disable-bindings \ --without-llvmgcc --without-llvmgxx \ --enable-optimized --enable-assertions Build machine information: Windows 7 Professional x64(English) Service Pack1 Intel Xeon CPU W3530 @ 2.80 GHz, 12GB of RAM g++.exe (GCC) 4.5.2 GNU Binutils 2.21.53.20110804 This is perl, v5.8.8 built for msys-64int Python 2.6.6 cmake version 2.8.4 clang revisions that was tested: 138687 138579 138443 138298 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 29 18:06:06 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 18:06:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 10797] [analyzer] Crash: "cast() argument of incompatible type!" assert when analyzing ICU In-Reply-To: References: Message-ID: <20110829230606.8F5CC2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10797 Anna Zaks 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 Mon Aug 29 18:25:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 18:25:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 10805] Control flow graph has possibly incorrect statements with missing source location. In-Reply-To: References: Message-ID: <20110829232512.7D5002A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10805 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |kremenek at apple.com Resolution| |INVALID --- Comment #1 from Ted Kremenek 2011-08-29 18:25:12 CDT --- I think you are possibly misinterpreting the format of CFGs. CFGs are not always linearized (although they can be built that way). By default, the CFG does not contain a complete linearization of all subexpressions, as the control-dependency between subexpressions and parent expressions is implied. As for the "first" statement, are you talking about the "do"? That appears as a terminator in the basic block. Also, SourceLocations are a property of the AST, not of the CFG. FWIW, the completely linearized CFG (that the static analyzer sees) is: [ B4 (ENTRY) ] Predecessors (0): Successors (1): B2 [ B1 ] 1: this 2: [B1.1]->done 3: [B1.2]() 4: ![B1.3] T: do ... while [B1.4] Predecessors (1): B2 Successors (2): B3 B0 [ B2 ] 1: this 2: [B2.1]->f 3: operator++ 4: [B2.3] 5: ++ [B2.2] (OperatorCall) Predecessors (2): B3 B4 Successors (1): B1 [ B3 ] Predecessors (1): B1 Successors (1): B2 [ B0 (EXIT) ] Predecessors (1): B1 Successors (0): This is correct. Notice that the 'do... while' appears as a terminator. The default, non-linearized CFG looks as follows: [ B4 (ENTRY) ] Predecessors (0): Successors (1): B2 [ B1 ] 1: this->done() 2: ![B1.1] T: do ... while [B1.2] Predecessors (1): B2 Successors (2): B3 B0 [ B2 ] 1: ++ this->f (OperatorCall) Predecessors (2): B3 B4 Successors (1): B1 [ B3 ] Predecessors (1): B1 Successors (1): B2 [ B0 (EXIT) ] Predecessors (1): B1 Successors (0): This is also correct. The reason is that the load to 'f' is a subexpression, and it implicitly has a control-dependency between that and the call to operator++(). For consistency, we can require that the entire CFG be linearized *all the time*, but we would need to measure the performance implication of that. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Aug 29 19:57:52 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 19:57:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 10800] failed to build libc++: assert(reference binding to unmaterialized r-value!) In-Reply-To: References: Message-ID: <20110830005752.CA2842A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10800 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from John McCall 2011-08-29 19:57:52 CDT --- Fixed in r138789. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 29 20:30:26 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 20:30:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 10809] New: volatile read discarded Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10809 Summary: volatile read discarded Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu Clang discards the volatile read in this testcase: extern int could_be_volatile; void foo() { *static_cast(&could_be_volatile); } C++11 [expr]/5 describes this as a discarded-value-expression and explains that they are to be evaluated. The volatile operation is whitelisted as undergoing lvalue-to-rvalue conversion because it is an indirection of a volatile typed object. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 29 20:45:31 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 20:45:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 10789] TargetCodeGenInfo::getSizeOfUnwindException() should not always return 32 In-Reply-To: References: Message-ID: <20110830014531.ADF792A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10789 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #11 from John McCall 2011-08-29 20:45:30 CDT --- 138792(In reply to comment #10) > I also studied gcc's output. > It seems that it doesn't use the address of the exception object, but instead > uses the return value of __cxa_begin_catch. This is because GCC does not correctly implement [except.handle] for non-const references to pointers: the reference is bound to a temporary, and changes to it are not reflected in the thrown exception. See C++11 [except.handle]p17, although these semantics are not new to C++11. Anyhow, I have updated our implementation to use the correct values for ARM EABI and MIPS; thanks for doing the hard work here. r138792. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 29 23:10:31 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 23:10:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 10810] New: Function prototype with K&R definition and resulting call. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10810 Summary: Function prototype with K&R definition and resulting call. Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: jpbonn-keyword-llvmbug.a51747 at corniceresearch.com CC: llvmbugs at cs.uiuc.edu I believe this to be a bug. There is a function prototype in scope but the function definition is K&R style. My understanding is the actual call to the function should be non-varargs since the prototype is present. What I'm seeing is the call is being made as a varargs call. I believe either an warning/error should be generated or the generated code should be non-varargs. This code was derived from a test in the gcc test suite. This happens when using clang with the -O0 option. If the prototype and definition of the function is: static void attr_eq(char *); static void attr_eq (name) char * name; {...} The call generated is: call void (...)* bitcast (void (i8*)* @attr_eq to void (...)*)(i8* getelementptr inbounds ([5 x i8]* @arg0, i32 0, i32 0)) Here's the complete code: =============================================== extern void abort (void); static char arg0[] = "arg0"; static void attr_eq (char *); void attr_rtx (char *); char *attr_string (char *); static void attr_eq (name) char * name; /* attr_eq (char * name) */ { attr_rtx (attr_string (name)); } int main() { attr_eq (arg0); exit (0); } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Aug 29 23:30:15 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 29 Aug 2011 23:30:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 10811] New: Terrible error on implicitly deleted default constructor in C++0x mode Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10811 Summary: Terrible error on implicitly deleted default constructor in C++0x mode Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: jyasskin at google.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com $ cat test.cc struct hash_int { int operator()(int i); }; class Hasher { const hash_int hash_; }; void foo() { Hasher h; } $ clang++ -std=c++0x -c test.cc test.cc:10:12: error: call to deleted constructor of 'Hasher' Hasher h; ^ test.cc:5:7: note: function has been explicitly marked deleted here class Hasher { ^ 1 error generated. -------- The C++98 error does a better job: $ clang++ -c test.cc test.cc:5:7: error: implicit default constructor for 'Hasher' must explicitly initialize the const member 'hash_' class Hasher { ^ test.cc:6:20: note: 'hash_' declared here const hash_int hash_; ^ test.cc:10:12: note: implicit default constructor for 'Hasher' first required here Hasher h; ^ 1 error 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 Tue Aug 30 02:10:35 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 30 Aug 2011 02:10:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 10807] [x86 disassembler] vmaskmovpd is not disassembled In-Reply-To: References: Message-ID: <20110830071035.A7CD22A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10807 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |craig.topper at gmail.com Resolution| |FIXED --- Comment #2 from Craig Topper 2011-08-30 02:10:35 CDT --- Fixed in r138795 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 30 11:41:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 30 Aug 2011 11:41:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 10812] New: Analyzer segfaults on indirect member function call. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10812 Summary: Analyzer segfaults on indirect member function call. Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: devlists at shadowlab.org CC: llvmbugs at cs.uiuc.edu clang static analyzer segfaults while analyzing the following code, which is just an indirect member function call using a member function pointer. --------------- visit.cpp class AtomVisitor {}; typedef bool (AtomVisitor::*VisitAtomFunc)(); bool ReadChild(AtomVisitor *_visitor, VisitAtomFunc _fct) { return (_visitor->*_fct)(); } ----------------------- % clang++ --version clang version 3.0 (trunk 138800) Target: x86_64-apple-darwin11.1.0 Thread model: posix % clang++ --analyze visit.cpp 0 clang 0x000000010b20cfd2 _ZL15PrintStackTracePv + 34 1 clang 0x000000010b20d5c9 _ZL13SignalHandleri + 777 2 libsystem_c.dylib 0x00007fff8fc46cfa _sigtramp + 26 3 libsystem_c.dylib 0x000000010bc0acc0 _sigtramp + 18446603342596292576 4 clang 0x000000010a6f231c (anonymous namespace)::TransferFunctions::Visit(clang::Stmt*) + 3052 5 clang 0x000000010a6efa8a (anonymous namespace)::LiveVariablesImpl::runOnBlock(clang::CFGBlock const*, clang::LiveVariables::LivenessValues, clang::LiveVariables::Observer*) + 138 6 clang 0x000000010a6f02fe clang::LiveVariables::computeLiveness(clang::AnalysisContext&, bool) + 1518 7 clang 0x000000010a6dc220 clang::AnalysisContext::getLiveVariables() + 32 8 clang 0x000000010a62ebea void clang::ento::check::ASTCodeBody::_checkBody<(anonymous namespace)::DeadStoresChecker>(void*, clang::Decl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) + 58 9 clang 0x000000010a6877ec clang::ento::CheckerManager::runCheckersOnASTBody(clang::Decl const*, clang::ento::AnalysisManager&, clang::ento::BugReporter&) + 108 10 clang 0x000000010a612939 (anonymous namespace)::AnalysisConsumer::HandleCode(clang::Decl*) + 857 11 clang 0x000000010a612286 (anonymous namespace)::AnalysisConsumer::HandleDeclContext(clang::ASTContext&, clang::DeclContext*) + 1542 12 clang 0x000000010a611bff (anonymous namespace)::AnalysisConsumer::HandleTranslationUnit(clang::ASTContext&) + 383 13 clang 0x000000010a33ff3e clang::ParseAST(clang::Sema&, bool) + 446 14 clang 0x000000010a136acb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 955 15 clang 0x000000010a11f6e5 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2789 16 clang 0x000000010a117dbc cc1_main(char const**, char const**, char const*, void*) + 5500 17 clang 0x000000010a11ba82 main + 706 18 clang 0x000000010a116834 start + 52 19 clang 0x000000000000002f start + 18446744069245671471 Stack dump: 0. Program arguments: clang -cc1 -triple x86_64-apple-macosx10.7.1 -analyze -disable-free -main-file-name visit.cpp -analyzer-store=region -analyzer-opt-analyze-nested-blocks -analyzer-eagerly-assume -analyzer-checker=core -analyzer-checker=deadcode -analyzer-checker=security -analyzer-checker=unix -analyzer-checker=osx -analyzer-output plist -w -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 123.2.1 -fdeprecated-macro -ferror-limit 19 -fmessage-length 259 -stack-protector 1 -fblocks -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o visit.plist -x c++ visit.cpp 1. parser at end of file clang: error: unable to execute command: Segmentation fault: 11 clang: error: clang frontend command failed due to signal 2 (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 Aug 30 11:53:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 30 Aug 2011 11:53:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 10813] New: Assertion "getOperand() out of range" hits in Constants.h Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10813 Summary: Assertion "getOperand() out of range" hits in Constants.h Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7181) --> (http://llvm.org/bugs/attachment.cgi?id=7181) test case With the attached test case, I get the following assertion failure with LLVM top-of-tree: % opt -O1 bug.ll -o /dev/null Assertion failed: (i_nocapture < OperandTraits::operands(this) && "getOperand() out of range!"), function getOperand, file /Users/mmp/llvm-dev-src/include/llvm/Constants.h, line 504. 0 opt 0x00000001004f9132 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 11394 1 opt 0x00000001004fa0b3 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 15363 2 libSystem.B.dylib 0x00007fff82dd21ba _sigtramp + 26 3 libSystem.B.dylib 0x00000001008044f0 _sigtramp + 2107843408 4 opt 0x00000001004f95b2 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 12546 5 opt 0x00000001003bdbca llvm::cast_retty >::ret_type llvm::cast >(llvm::ilist_iterator const&) + 4698 6 opt 0x00000001003cef4c llvm::cast_retty::ret_type llvm::cast(llvm::CompositeType* const&) + 25916 7 opt 0x0000000100248d5d llvm::sys::Path llvm::WriteGraph(llvm::Function const* const&, std::string const&, bool, std::string const&) + 17853 8 opt 0x000000010024c4fb llvm::sys::Path llvm::WriteGraph(llvm::Function const* const&, std::string const&, bool, std::string const&) + 32091 9 opt 0x0000000100272856 llvm::Statistic::operator++() + 34422 10 opt 0x00000001001e440e llvm::LoopBase::getExitingBlocks(llvm::SmallVectorImpl&) const + 13182 11 opt 0x00000001000c5c13 llvm::DenseMap, llvm::DenseMapInfo >::clear() + 4227 12 opt 0x0000000100295a63 llvm::LoopInfo::releaseMemory() + 4531 13 opt 0x0000000100488880 llvm::BasicBlockPass::~BasicBlockPass() + 40576 14 opt 0x0000000100219b01 std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::_M_insert_unique(std::_Rb_tree_iterator >, std::pair const&) + 7649 15 opt 0x000000010021a341 std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::_M_insert_unique(std::_Rb_tree_iterator >, std::pair const&) + 9761 16 opt 0x000000010048815f llvm::BasicBlockPass::~BasicBlockPass() + 38751 17 opt 0x0000000100488461 llvm::BasicBlockPass::~BasicBlockPass() + 39521 18 opt 0x000000010048857d llvm::BasicBlockPass::~BasicBlockPass() + 39805 19 opt 0x000000010000cee7 llvm::scc_iterator > llvm::scc_begin(llvm::Function* const&) + 15255 20 opt 0x00000001000010e4 21 opt 0x0000000000000005 Stack dump: 0. Program arguments: opt -O1 bug.ll -o /dev/null 1. Running pass 'CallGraph Pass Manager' on module 'bug.ll'. 2. Running pass 'Loop Pass Manager' on function '@"f_fu___REFUf[]REFUf[]Uf"' 3. Running pass 'Unroll loops' on basic block '%pl_loop.i964' The stack trace above looks bogus to me; when I hit this assertion running optimization passes directly in the ispc compiler, I get the more reasonable looking: Assertion failed: (i_nocapture < OperandTraits::operands(this) && "getOperand() out of range!"), function getOperand, file /Users/mmp/llvm-dev-src/include/llvm/Constants.h, line 504. 0 ispc 0x00000001012ca8e2 PrintStackTrace(void*) + 34 1 ispc 0x00000001012cb863 SignalHandler(int) + 707 2 libSystem.B.dylib 0x00007fff82dd21ba _sigtramp + 26 3 libSystem.B.dylib 0x0000000102201f50 _sigtramp + 2135096752 4 ispc 0x00000001012cad62 __assert_rtn + 66 5 ispc 0x000000010113280a llvm::ConstantFoldExtractElementInstruction(llvm::Constant*, llvm::Constant*) + 426 6 ispc 0x0000000101143b8c llvm::ConstantExpr::getExtractElement(llvm::Constant*, llvm::Constant*) + 92 7 ispc 0x000000010100f98d llvm::ConstantFoldInstOperands(unsigned int, llvm::Type*, llvm::ArrayRef, llvm::TargetData const*) + 621 8 ispc 0x000000010101312b llvm::ConstantFoldInstruction(llvm::Instruction*, llvm::TargetData const*) + 683 9 ispc 0x00000001010393f6 llvm::SimplifyInstruction(llvm::Instruction*, llvm::TargetData const*, llvm::DominatorTree const*) + 70 10 ispc 0x0000000100faad7e llvm::UnrollLoop(llvm::Loop*, unsigned int, unsigned int, unsigned int, llvm::LoopInfo*, llvm::LPPassManager*) + 10078 11 ispc 0x0000000100ea3243 (anonymous namespace)::LoopUnroll::runOnLoop(llvm::Loop*, llvm::LPPassManager&) + 2035 12 ispc 0x000000010105d2e3 llvm::LPPassManager::runOnFunction(llvm::Function&) + 1523 13 ispc 0x00000001011fe3e0 llvm::FPPassManager::runOnFunction(llvm::Function&) + 752 14 ispc 0x0000000100fe0991 (anonymous namespace)::CGPassManager::RunPassOnSCC(llvm::Pass*, llvm::CallGraphSCC&, llvm::CallGraph&, bool&, bool&) + 273 15 ispc 0x0000000100fe11d1 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) + 977 16 ispc 0x00000001011fdcbf llvm::MPPassManager::runOnModule(llvm::Module&) + 607 17 ispc 0x00000001011fdfc1 llvm::PassManagerImpl::run(llvm::Module&) + 177 18 ispc 0x00000001011fe0dd llvm::PassManager::run(llvm::Module&) + 13 19 ispc 0x000000010004cecc Optimize(llvm::Module*, int) + 1710 20 ispc 0x0000000100043d89 Module::CompileFile() + 579 21 ispc 0x000000010003e5ae main + 2774 22 ispc 0x0000000100001734 start + 52 23 ispc 0x0000000000000007 start + 4294961415 Stack dump: 0. Program arguments: ispc -O2 --emit-llvm tests/scatter-int8.ispc --target=sse4 -o bug.bc 1. Running pass 'CallGraph Pass Manager' on module 'tests/scatter-int8.ispc'. 2. Running pass 'Loop Pass Manager' on function '@"f_fu___REFUf[]REFUf[]Uf"' 3. Running pass 'Unroll loops' on basic block '%pl_loop.i' -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Aug 30 12:15:09 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 30 Aug 2011 12:15:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 10814] New: MachineSink creates zombie defines Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10814 Summary: MachineSink creates zombie defines Product: new-bugs Version: trunk Platform: All OS/Version: All Status: NEW Severity: release blocker Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: jan_sjodin at yahoo.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7182) --> (http://llvm.org/bugs/attachment.cgi?id=7182) Fix for the bug After a critical edge split the flags of the successor were not reflected in the new block, which allowed later instructions to sink even though they write the EFLAGS. The example below shows the problem. Unfortunately there is a test that relies on this bug, although the problem is that the EFLAGS are live-in when they should not be. The patch disables this test for now. I attached a fix for the bug, however it was not accepted yet since it makes the test XFAIL, and I (still ) do not have time to fix it, but I don't want the issue ot be fogotten, so I created the bug report instead. See: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20110725/125216.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 Tue Aug 30 12:41:34 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 30 Aug 2011 12:41:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 10805] Control flow graph has possibly incorrect statements with missing source location. In-Reply-To: References: Message-ID: <20110830174135.10AC82A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10805 DeLesley Hutchins changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #2 from DeLesley Hutchins 2011-08-30 12:41:34 CDT --- > As for the "first" statement, are you talking about the "do"? No, I am talking about the "this" in "this->f". > FWIW, the completely linearized CFG (that the static analyzer sees) is: That would be reasonable, but that is not the CFG that I am seeing. The CFG that I am seeing, as shown by CFG::dump(), is as follows: [ B4 (ENTRY) ] Predecessors (0): Successors (1): B2 [ B1 ] 1: this->done() 2: ![B1.1] T: do ... while [B1.2] Predecessors (1): B2 Successors (2): B3 B0 [ B2 ] 1: operator++ 2: [B2.1] 3: ++ this->f (OperatorCall) Predecessors (2): B3 B4 Successors (1): B1 [ B3 ] Predecessors (1): B1 Successors (1): B2 [ B0 (EXIT) ] Predecessors (1): B1 Successors (0): Notice that Block B2 is missing the first two lines from your example: 1: this 2: [B2.1]->f If these two lines were present, then the first statement would have a source location. However, although the lack of source location is how I discovered the issue, it is perhaps misleading. My apologies for not including the actual CFG dump in the initial bug report. -DeLesley -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 30 13:53:07 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 30 Aug 2011 13:53:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 10815] New: clang could help more when calling pointer-to-member function Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10815 Summary: clang could help more when calling pointer-to-member function Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com This invalid program gives a diagnostic that could be better: struct X { void foo(); }; void t() { X x; void (X::*y)() = &X::foo; x.*y(); } These member-pointer things are hard (though fortunately rare), so a good compiler diagnostic would be really helpful. The error is: x.cc:6:7: error: called object type 'void (X::*)()' is not a function or function pointer x.*y(); ~^ while gcc gives me this: x.cc: In function ?void t()?: x.cc:6: error: must use ?.*? or ?->*? to call pointer-to-member function in ?y (...)?, e.g. ?(... ->* y) (...)? which actually showed me that I needed to insert the parens. Nice. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Aug 30 17:29:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 30 Aug 2011 17:29:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 10694] boost::optional doesn't compile in trunk: Assertion failed: (FromType->isIntegralOrUnscopedEnumerationType()), function endsWithNarrowing, file SemaInit.cpp, line 2326 In-Reply-To: References: Message-ID: <20110830222928.F19A42A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10694 Jeffrey Yasskin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED AssignedTo|unassignedclangbugs at nondot. |jyasskin at google.com |org | --- Comment #4 from Jeffrey Yasskin 2011-08-30 17:29:27 CDT --- Should be fixed by r138838. I'd forgotten that boolean conversions can come from pointers. Sorry for the trouble. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 30 23:37:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 30 Aug 2011 23:37:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 10816] New: switch statement can cause invalid thumb addresses Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10816 Summary: switch statement can cause invalid thumb addresses Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: dwelch at dwelch.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7184) --> (http://llvm.org/bugs/attachment.cgi?id=7184) example source code, and all intermediate files as well as makefile to produce the problem. both with llvm 2.9 and trunk svn 138852 a simple switch statement like this: switch(x) { case 0: fun_00(x); break; case 1: fun_01(x); break; case 2: fun_02(x); break; case 3: fun_03(x); break; case 4: fun_04(x); break; case 5: fun_05(x); break; case 6: fun_06(x); break; case 7: fun_07(x); break; case 8: fun_08(x); break; case 9: fun_09(x); break; default: fun_11(x); break; } is turned into a look up table %x.addr = alloca i32, align 4 store i32 %x, i32* %x.addr, align 4 %tmp = load i32* %x.addr, align 4 switch i32 %tmp, label %sw.default [ i32 0, label %sw.bb i32 1, label %sw.bb2 i32 2, label %sw.bb4 i32 3, label %sw.bb6 i32 4, label %sw.bb8 i32 5, label %sw.bb10 i32 6, label %sw.bb12 i32 7, label %sw.bb14 i32 8, label %sw.bb16 i32 9, label %sw.bb18 ] 90: 0080 lsls r0, r0, #2 92: a202 add r2, pc, #8 ; (adr r2, 9c ) 94: 1880 adds r0, r0, r2 96: 6800 ldr r0, [r0, #0] 98: 4687 mov pc, r0 9a: 46c0 nop ; (mov r8, r8) 9c: 000000c4 andeq r0, r0, r4, asr #1 a0: 000000ce andeq r0, r0, lr, asr #1 a4: 000000d8 ldrdeq r0, [r0], -r8 a8: 000000e2 andeq r0, r0, r2, ror #1 ac: 000000ec andeq r0, r0, ip, ror #1 b0: 000000f6 strdeq r0, [r0], -r6 b4: 00000100 andeq r0, r0, r0, lsl #2 b8: 0000010a andeq r0, r0, sl, lsl #2 bc: 00000114 andeq r0, r0, r4, lsl r1 c0: 0000011e andeq r0, r0, lr, lsl r1 The problem is in thumb mode the lsbit of the pc needs to remain set, this is causing an even number to be placed in the program counter. It is interesting that a mov pc,r0 is used and not a bx r0 (which would have made the thing crash much sooner). .LJTI13_0_0: .long .LBB13_2 .long .LBB13_3 .long .LBB13_4 .long .LBB13_5 A very ugly hack would be .LJTI13_0_0: .long .LBB13_2+1 .long .LBB13_3+1 but it would work (if llc knew that these were lookup table addresses to thumb code, addresses to data would not work with the + 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 Wed Aug 31 01:57:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 31 Aug 2011 01:57:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 10817] New: getline broken, reads an extra line Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10817 Summary: getline broken, reads an extra line Product: libc++ Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: All Bugs AssignedTo: hhinnant at apple.com ReportedBy: oneill+llvmbugs at cs.hmc.edu CC: llvmbugs at cs.uiuc.edu The following trivial program fails to give the intended results with libc++ ? instead of reading one line from the terminal, it reads two. #include #include using namespace std; int main() { cout << "What is your name: "; string name; getline(cin, name); cout << "Hello " << name << endl; return 0; } Here it is without libcxx: % clang++ -o hello hello.cpp % ./hello What is your name: Miss Marple Hello Miss Marple ... and here it is with libcxx: % clang++ -stdlib=libc++ -o hello hello.cpp % ./hello What is your name: Miss Marple ... oh noes, I need to type another line ... you do test this stuff, right? Hello Miss Marple Tested with current trunk (138853) and with Xcode 4.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 Wed Aug 31 02:07:36 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 31 Aug 2011 02:07:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 10702] [x86 disassembler] crc32 not disassembled correctly In-Reply-To: References: Message-ID: <20110831070736.412052A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10702 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |craig.topper at gmail.com Resolution|FIXED | --- Comment #2 from Craig Topper 2011-08-31 02:07:35 CDT --- Reopening because the following case doesn't work echo '0x66 0xf2 0x0f 0x38 0xf1 0xc0'| ./llvm-mc -disassemble -triple="x86_64" crc32l %ax, %ax Should be "crc32w %ax, %eax" The disassembler doesn't really know what to do with 0x66 and 0xf2 on the same instruction and fails to match the opcode correctly. The destination operand needs to ignore the 0x66 prefix. Also this should decode to MOVBE which I don't think is supported at all in LLVM. echo '0x0f 0x38 0xf1 0xc0'| ./llvm-mc -disassemble -triple="x86_64 crc32l %eax, %eax -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 31 04:23:00 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 31 Aug 2011 04:23:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 10818] New: Crash compiling compound statement Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10818 Summary: Crash compiling compound statement Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: vanboxem.ruben at gmail.com CC: llvmbugs at cs.uiuc.edu I would think it has something to do with broken uniform initializers, but a stack dump is never good... clang++ -c -std=c++0x -pedantic-errors -Wextra -Wall -Wconversion -Weffc++ -Wmissing-include-dirs -Wstrict-aliasing -Werror -g -frtti -fexceptions -mthreads -Wall -DAMBROSIA_DEBUG -I"..\..\..\Source\Ambrosia\libAmbrosia" -I"..\..\..\Source\Ambrosia\libAmbrosia\Include" -I"." -I"..\..\Qt\mkspecs\win32-g++" -o debug\nectar.o ..\..\..\Source\Ambrosia\libAmbrosia\Source\Ambrosia\nectar.cpp ..\..\..\Source\Ambrosia\libAmbrosia\Source\Ambrosia\nectar.cpp:60:47: error: use of undeclared identifier 'item' emit_error( "\t" + item.first ); ^ Stack dump: 0. Program arguments: M:/Development/mingw64/bin/clang++.exe -cc1 -triple x86_64-w64-mingw32 -S -disable-free -disable-llvm-verifier -main-file-name nectar.cpp -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.51.0.6 -momit-leaf-frame-pointer -g -coverage-file C:/Users/Ruben/AppData/Local/Temp/cc-665309.s -resource-dir M:/Development/mingw64/bin\..\lib\clang\3.0 -D AMBROSIA_DEBUG -I ..\..\..\Source\Ambrosia\libAmbrosia -I ..\..\..\Source\Ambrosia\libAmbrosia\Include -I . -I ..\..\Qt\mkspecs\win32-g++ -Wextra -Wall -Wconversion -Weffc++ -Wmissing-include-dirs -Wstrict-aliasing -Werror -Wall -pedantic-errors -std=c++0x -fdeprecated-macro -ferror-limit 19 -fmessage-length 0 -fno-use-cxa-atexit -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o C:/Users/Ruben/AppData/Local/Temp/cc-665309.s -x c++ ..\..\..\Source\Ambrosia\libAmbrosia\Source\Ambrosia\nectar.cpp 1. ..\..\..\Source\Ambrosia\libAmbrosia\Source\Ambrosia\nectar.cpp:61:26: current parser token ')' 2. ..\..\..\Source\Ambrosia\libAmbrosia\Source\Ambrosia\nectar.cpp:40:1 : parsing namespace 'ambrosia' 3. ..\..\..\Source\Ambrosia\libAmbrosia\Source\Ambrosia\nectar.cpp:40:1 : parsing namespace 'lib' 4. ..\..\..\Source\Ambrosia\libAmbrosia\Source\Ambrosia\nectar.cpp:43:1: parsing function body 'find_nectar_file' 5. ..\..\..\Source\Ambrosia\libAmbrosia\Source\Ambrosia\nectar.cpp:43:1: in compound statement ('{}') 6. ..\..\..\Source\Ambrosia\libAmbrosia\Source\Ambrosia\nectar.cpp:49:5: in compound statement ('{}') clang++: error: clang frontend command failed due to signal 1073741819 (use -v to see invocation) clang++: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang++: note: diagnostic msg: Preprocessed source(s) are located at: clang++: note: diagnostic msg: C:/Users/Ruben/AppData/Local/Temp/cc-665310.ii -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 31 06:22:30 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 31 Aug 2011 06:22:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 10819] New: #pragma pack for template structs ignored Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10819 Summary: #pragma pack for template structs ignored Product: clang Version: 2.9 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: muhineg at gmail.com CC: llvmbugs at cs.uiuc.edu #pragma pack ignored for template structures. Tested on clang 2.9 on mac and win32. Code: #include #pragma pack(1) struct A { int a; char b; int c; }; template struct B { T a; char b; T c; }; int main () { printf ("sizeof A = %u\n", sizeof (A)); printf ("sizeof B = %u\n", sizeof (B)); return 0; } Prints: sizeof A = 9 sizeof B = 12 Should print: sizeof A = 9 sizeof B = 9 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 31 08:35:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 31 Aug 2011 08:35:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 10820] New: GVN crash on code using i31 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10820 Summary: GVN crash on code using i31 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 opt crash1.ll -basicaa -gvn -disable-output opt: llvm/lib/VMCore/Instructions.cpp:2774: llvm::BitCastInst::BitCastInst(llvm::Value*, llvm::Type*, const llvm::Twine&, llvm::Instruction*): Assertion `castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"' failed. target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-f128:128:128-n8:16:32:64" target triple = "x86_64-unknown-linux-gnu" @g = external global i31 define void @main() nounwind uwtable { entry: store i32 402662078, i32* bitcast (i31* @g to i32*), align 8 %0 = load i31* @g, align 8 store i31 %0, i31* undef, align 1 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 Wed Aug 31 17:24:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 31 Aug 2011 17:24:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 10816] switch statement can cause invalid thumb addresses In-Reply-To: References: Message-ID: <20110831222428.6EF512A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10816 Jim Grosbach changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Jim Grosbach 2011-08-31 17:24:27 CDT --- Fixed in r138912. Thanks for the bug report! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 31 17:44:57 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 31 Aug 2011 17:44:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 10821] New: Test failure: LLVM :: Transforms/LoopSimplify/2007-10-28-InvokeCrash.ll Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10821 Summary: Test failure: LLVM :: Transforms/LoopSimplify/2007-10-28-InvokeCrash.ll 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: pipping at exherbo.org CC: llvmbugs at cs.uiuc.edu FAIL: LLVM :: Transforms/LoopSimplify/2007-10-28-InvokeCrash.ll (4830 of 5624) ******************** TEST 'LLVM :: Transforms/LoopSimplify/2007-10-28-InvokeCrash.ll' FAILED ******************** Script: -- /var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/Release+Asserts/bin/opt < /var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/test/Transforms/LoopSimplify/2007-10-28-InvokeCrash.ll -loop-simplify -disable-output -- Exit Code: 134 Command Output (stderr): -- Block containing LandingPadInst must be jumped to only by the unwind edge of an invoke. %exn = landingpad { i8*, i32 } personality i32 (...)* @__gxx_personality_v0 cleanup Block containing LandingPadInst must be jumped to only by the unwind edge of an invoke. %exn325 = landingpad { i8*, i32 } personality i32 (...)* @__gxx_personality_v0 cleanup Broken module found, compilation aborted! 0 libLLVM-3.0svn.so 0x00007ffa6cdb0f4f 1 libLLVM-3.0svn.so 0x00007ffa6cdb16b0 2 libpthread.so.0 0x00007ffa6bd8ef10 3 libc.so.6 0x00007ffa6b0ad5c5 gsignal + 53 4 libc.so.6 0x00007ffa6b0ae8c5 abort + 389 5 libLLVM-3.0svn.so 0x00007ffa6c6c195b 6 libLLVM-3.0svn.so 0x00007ffa6c6a0b07 llvm::FPPassManager::runOnFunction(llvm::Function&) + 719 7 libLLVM-3.0svn.so 0x00007ffa6c6a0b46 llvm::FPPassManager::runOnModule(llvm::Module&) + 46 8 libLLVM-3.0svn.so 0x00007ffa6c6a0710 llvm::MPPassManager::runOnModule(llvm::Module&) + 694 9 libLLVM-3.0svn.so 0x00007ffa6c6a07ef llvm::PassManagerImpl::run(llvm::Module&) + 207 10 libLLVM-3.0svn.so 0x00007ffa6c6a0833 llvm::PassManager::run(llvm::Module&) + 13 11 opt 0x000000000041b36b main + 7712 12 libc.so.6 0x00007ffa6b099c7d __libc_start_main + 253 13 opt 0x000000000040cab9 Stack dump: 0. Program arguments: /var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/Release+Asserts/bin/opt -loop-simplify -disable-output 1. Running pass 'Function Pass Manager' on module ''. 2. Running pass 'Module Verifier' on function '@___ZN9FibonacciC1Ej___ZN9Fibonacci11show_numberEm' /var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/test/Transforms/LoopSimplify/Output/2007-10-28-InvokeCrash.ll.script: line 2: 888 Aborted '/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/Release+Asserts/bin/opt' '-loop-simplify' '-disable-output' < '/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/test/Transforms/LoopSimplify/2007-10-28-InvokeCrash.ll' -- ******************** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 31 18:08:20 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 31 Aug 2011 18:08:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 10821] Test failure: LLVM :: Transforms/LoopSimplify/2007-10-28-InvokeCrash.ll In-Reply-To: References: Message-ID: <20110831230820.46BB02A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10821 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bill Wendling 2011-08-31 18:08:20 CDT --- Fixed. r138915 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 31 19:01:55 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 31 Aug 2011 19:01:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 10805] Control flow graph has possibly incorrect statements with missing source location. In-Reply-To: References: Message-ID: <20110901000155.5913D2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10805 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID --- Comment #3 from Ted Kremenek 2011-08-31 19:01:54 CDT --- (In reply to comment #2) > > As for the "first" statement, are you talking about the "do"? > > No, I am talking about the "this" in "this->f". > > [ B2 ] > 1: operator++ > 2: [B2.1] > 3: ++ this->f (OperatorCall) > Predecessors (2): B3 B4 > Successors (1): B1 > > Notice that Block B2 is missing the first two lines from your example: > > 1: this > 2: [B2.1]->f > > If these two lines were present, then the first statement would have a source > location. However, although the lack of source location is how I discovered > the issue, it is perhaps misleading. My apologies for not including the actual > CFG dump in the initial bug report. > The CFG is well-formed, since the "this->f" is a subexpression of the operator call. It's not included as a "block-level expression" because the CFG isn't fully linearized. As for the missing location for 'this', I hazard to guess it isn't there because 'this' doesn't appear in your code example. Hence it doesn't have a valid SourceLocation. Not all AST nodes are required to have valid SourceLocations. Sometimes they are invalid in case where we implicitly add an AST element for semantic convenience in the AST. In this case, since 'this' was not explicitly written, it should *not* have a SourceLocation. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Aug 31 19:39:55 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 31 Aug 2011 19:39:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 10822] New: clang crashes in DefineImplicitMoveAssignment since r138821 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10822 Summary: clang crashes in DefineImplicitMoveAssignment since r138821 Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pichet2000 at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com on Windows 7, given crash.cpp: struct A { unsigned var[1]; } ; A foo(A); void crash() { A tmp; tmp = foo(tmp); } ==== clang -std=c++0x crash.cpp pruned stack dump: 0. Program arguments: clang -cc1 -std=c++0x crash.cpp 1. crash.cpp:12:17: current parser token ';' 2. crash.cpp:10:1: parsing function body 'crash' 3. crash.cpp:10:1: in compound statement ('{}') clang::Expr::isTypeDependent() clang::Expr::hasAnyTypeDependentArguments() clang::Sema::ActOnCallExpr() clang::Sema::DefineImplicitMoveAssignment() clang::Sema::MarkDeclarationReferenced() clang::Sema::CreateOverloadedBinOp() clang::Sema::BuildBinOp() clang::Sema::ActOnBinOp() clang::Parser::ParseRHSOfBinaryExpression() clang::Parser::ParseAssignmentExpression() clang::Parser::ParseExpression() clang::Parser::ParseExprStatement() clang::Parser::ParseStatementOrDeclaration() clang::Parser::ParseCompoundStatementBody() clang::Parser::ParseFunctionStatementBody() clang::Parser::ParseFunctionDefinition() clang::Parser::ParseDeclGroup() clang::Parser::ParseDeclarationOrFunctionDefinition() clang::Parser::ParseDeclarationOrFunctionDefinition() clang::Parser::ParseExternalDeclaration() clang::Parser::ParseTopLevelDecl() clang::ParseAST() === changing unsigned var[1]; to unsigned var; fixes the crash. This problem is currently blocking my testing of clang on MFC 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 Wed Aug 31 21:10:04 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 31 Aug 2011 21:10:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 10822] clang crashes in DefineImplicitMoveAssignment since r138821 In-Reply-To: References: Message-ID: <20110901021004.DA14D2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10822 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Douglas Gregor 2011-08-31 21:10:04 CDT --- Fixed in Clang r138935. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.