From bugzilla-daemon at llvm.org Fri Oct 1 00:37:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 1 Oct 2010 00:37:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 8244] dag combine miscompilation In-Reply-To: References: Message-ID: <20101001053704.A518F2A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8244 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2010-10-01 00:37:04 CDT --- Fixed in r115294 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 1 00:51:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 1 Oct 2010 00:51:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 8267] volatile structs are broken! In-Reply-To: References: Message-ID: <20101001055116.B0FBF2A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8267 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2010-10-01 00:51:16 CDT --- Fixed in r115296, 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 Oct 1 00:54:22 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 1 Oct 2010 00:54:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 8268] New: constant folder misses negative GEP Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8268 Summary: constant folder misses negative GEP Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Core LLVM classes AssignedTo: unassignedbugs at nondot.org ReportedBy: nicholas at mxc.ca CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5546) --> (http://llvm.org/bugs/attachment.cgi?id=5546) .ll of foo() after -O2 The C++ testcase on Linux is: #include using namespace std; void foo() { string s; } which optimizes down to nothing with gcc, but produces the attached .ll file in clang++. The problem is this hideous constant expression: i1 icmp eq ([0 x i32]* bitcast (i8* getelementptr (%"_Rep"* bitcast ([0 x i32]* @foo to %"_Rep"*), i32 1, i32 0, i32 -12) to [0 x i32]*), [0 x i32]* @foo) where %"_Rep" = type { [12 x i8] } . Target data is available, though offhand I don't think it should be needed. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 1 01:36:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 1 Oct 2010 01:36:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 8269] New: clang produces incorrect fixit for invalid main decl. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8269 Summary: clang produces incorrect fixit for invalid main decl. Product: new-bugs Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: bigcheesegs at gmail.com CC: llvmbugs at cs.uiuc.edu % echo unsigned int main(); | clang -x c - (1) : error: 'main' must return 'int' unsigned int main(); ^~~~~~~~ int 1 error generated. This would be "int int main();", which is even more 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 Oct 1 01:49:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 1 Oct 2010 01:49:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 8200] MMX unpack instructions no longer get selected In-Reply-To: References: Message-ID: <20101001064911.318D92A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8200 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #10 from Bill Wendling 2010-10-01 01:49:10 CDT --- Nicolas, I applied your patch as r115298. Please test out the 2.8 branches on your machine to see if they are okay 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 Fri Oct 1 04:02:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 1 Oct 2010 04:02:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 8266] memcpyopt miscompilation In-Reply-To: References: Message-ID: <20101001090259.987122A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8266 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #7 from Eric Christopher 2010-10-01 04:02:59 CDT --- Fixed thusly: [ghostwheel:~/sources/llvm] echristo% svn ci Sending lib/Transforms/Scalar/MemCpyOptimizer.cpp Transmitting file data . Committed revision 115305. Needed the minimum of both alignments, not just the source since we might try to write to the destination using a different alignment too. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Oct 1 04:23:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 1 Oct 2010 04:23:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 8270] New: Duplicate symbol with extern inline in C++ Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8270 Summary: Duplicate symbol with extern inline in C++ Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pcgod99 at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com extern inline const int get_addrinfo_category(); const int get_addrinfo_category() { return 0; } In a header file included from more than one file leads to the linker error: multiple definition of `get_addrinfo_category()' This works in GCC and breaks linking simple examples using Boost Asio. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 1 07:01:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 1 Oct 2010 07:01:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 7886] Codegen/X86/sibcall.ll test fails on i686-apple-darwin8 In-Reply-To: References: Message-ID: <20101001120113.BD6122A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7886 NAKAMURA Takumi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #4 from NAKAMURA Takumi 2010-10-01 07:01:13 CDT --- Applied in r115215, 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 Fri Oct 1 11:19:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 1 Oct 2010 11:19:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 8272] New: Infinite loop in compile Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8272 Summary: Infinite loop in compile Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: daniel at zuster.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Clang seems to infinite loop on the attached test case, from the GCC test suite: -- ddunbar at giles:template (master)$ cat vtable2.C // Use a small template instantiation depth to speed up testing // { dg-options "-ftemplate-depth-5" } // { dg-do compile } // Origin: rullo.pat at tiscalinet.it // Nathanael Nerode // Wolfgang Bangerth // PR c++/6749: Infinite loop generating vtable. template struct inner {}; template struct parent { virtual void f() // { dg-error "instantiation depth" } { parent > p; }; }; template struct parent; ddunbar at giles:template (master)$ time xclang -c vtable2.C C-c C-cAbort trap real 0m55.865s user 0m0.001s sys 0m0.005s ddunbar at giles:template (master)$ -- Sample shows that it is going crazy in the mangler. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 1 12:24:50 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 1 Oct 2010 12:24:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 8273] New: possible volatile bug Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8273 Summary: possible volatile bug Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu Ok this is super nitpicky, but I think actually wrong. We take this code: int const volatile vol1 = 0; int const vol2 = 0; int main (void) { return 0; } and then run these commands: [regehr at gamow ~]$ clang -O vol.c -o vol [regehr at gamow ~]$ nm vol |grep vol 00000000004005cc R vol1 00000000004005cc R vol2 They have been put at the same location. I argue that this transformation is illegal if any of the variables in question are volatile, because a volatile-qualified object should only be loaded from or store to when the abstract machine would do so. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 1 14:01:24 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 1 Oct 2010 14:01:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 8235] MachineFrameInfo assertion when compiling ObjC code In-Reply-To: References: Message-ID: <20101001190124.7FD5A2A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8235 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Devang Patel 2010-10-01 14:01:23 CDT --- Fixed. r115323 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 1 14:19:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 1 Oct 2010 14:19:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 8265] Derived type descriptor inaccuracy In-Reply-To: References: Message-ID: <20101001191954.1B9AC2A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8265 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Devang Patel 2010-10-01 14:19:53 CDT --- good catch. Fixed r115325. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 1 14:22:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 1 Oct 2010 14:22:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 8255] llvm.dbg.declare documentation inaccurate In-Reply-To: References: Message-ID: <20101001192230.BC3B72A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8255 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Devang Patel 2010-10-01 14:22:30 CDT --- Fixed. r115326. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 1 17:06:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 1 Oct 2010 17:06:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 8135] Clang++ crashes on case ranges (GNU extension) In-Reply-To: References: Message-ID: <20101001220652.510082A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8135 Gabor Greif changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #9 from Gabor Greif 2010-10-01 17:06:51 CDT --- fixed in r115355 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 1 17:10:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 1 Oct 2010 17:10:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 8274] New: Debug block descriptor documentation inconsistency Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8274 Summary: Debug block descriptor documentation inconsistency Product: Documentation Version: 2.7 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: General docs AssignedTo: unassignedbugs at nondot.org ReportedBy: clemahieu at gmail.com CC: llvmbugs at cs.uiuc.edu http://llvm.org/releases/2.7/docs/SourceLevelDebugging.html#format_blocks Lists block descriptors as only having a tag and a reference to a context descriptor. Clang output has two additional integers, a line and column number in this piece of metadata and the code has two optional parameters for line and column number in DebugInfo.h:641 Documentation could describe if and when when line/column need to be used with lexical blocks. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 1 17:19:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 1 Oct 2010 17:19:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 8008] provide fixit for removing of extra qualification of members In-Reply-To: References: Message-ID: <20101001221931.E3B3F2A6C131@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8008 Gabor Greif changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |pichet2000 at gmail.com Resolution| |FIXED --- Comment #2 from Gabor Greif 2010-10-01 17:19:31 CDT --- fixed in r115347 minor (potential) simplification: sometimes the operator-> is cascading and one can write + Diag(Func->getLocation(), diag::note_member_def_close_match); instead of + Diag((*Func)->getLocation(), diag::note_member_def_close_match); I did not check whether it is the case here. Anyway, thanks for the fix!!! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 1 17:31:55 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 1 Oct 2010 17:31:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 8275] New: LLVM lexical block tag number incorrect Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8275 Summary: LLVM lexical block tag number incorrect Product: Documentation Version: 2.7 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: General docs AssignedTo: unassignedbugs at nondot.org ReportedBy: clemahieu at gmail.com CC: llvmbugs at cs.uiuc.edu http://llvm.org/releases/2.7/docs/SourceLevelDebugging.html#format_blocks Lists lexical blocks as having a tag number 13, the actual number is 11. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 1 17:46:21 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 1 Oct 2010 17:46:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 8274] Debug block descriptor documentation inconsistency In-Reply-To: References: Message-ID: <20101001224621.D10262A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8274 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Devang Patel 2010-10-01 17:46:21 CDT --- Fixed r115362. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 1 18:57:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 1 Oct 2010 18:57:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 8249] Assertion `!empty() && "Call to beginIndex() on empty interval."' failed. In-Reply-To: References: Message-ID: <20101001235744.088BA2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8249 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #2 from Jakob Stoklund Olesen 2010-10-01 18:57:43 CDT --- Fixed in r115385 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 1 19:10:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 1 Oct 2010 19:10:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 8221] fatal error: error in backend: Cannot yet select: intrinsic %llvm.x86.sse2.psll.dq In-Reply-To: References: Message-ID: <20101002001011.580532A6C131@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8221 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2010-10-01 19:10:10 CDT --- Fixed in a series of commits leading up to r115388 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 1 22:45:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 1 Oct 2010 22:45:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 8276] New: Invalid metadata is simply omitted, no warning Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8276 Summary: Invalid metadata is simply omitted, no warning Product: libraries Version: 2.7 Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: enhancement Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: clemahieu at gmail.com CC: llvmbugs at cs.uiuc.edu When outputting machine assembly llc will simply drop any debug metadata that it malformed. This makes it very hard to figure out bugs (obviously). Two recommended warnings to add: - Return instruction must have a DebugLoc - Subprogram name metadata must match function name -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Oct 1 23:45:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 1 Oct 2010 23:45:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 8277] New: Clang (from XCode DP3) is unable to parse a specialised member function template inside a specialised template class Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8277 Summary: Clang (from XCode DP3) is unable to parse a specialised member function template inside a specialised template class Product: clang Version: unspecified Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: abdulla.kamar at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The following code correctly compiles under GCC, but Clang complains that there's an extraneous template specialisation: template< typename S > struct C { template< int > void F( void ) { } }; template< typename S > struct D { typedef C< int > A; }; typedef D< int >::A A; template<> template<> void A::F< 0 >( void ) { } int main( void ) { 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 Sat Oct 2 00:42:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 2 Oct 2010 00:42:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 8278] New: MC-COFF: Incorrect relocations generated for string constants... again... Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8278 Summary: MC-COFF: Incorrect relocations generated for string constants... again... Product: libraries Version: trunk Platform: All OS/Version: All Status: ASSIGNED Severity: normal Priority: P Component: Backend: X86 AssignedTo: bigcheesegs at gmail.com ReportedBy: bigcheesegs at gmail.com CC: llvmbugs at cs.uiuc.edu #include int main(int argc, char **argv) { printf("First String\n"); printf("Second String\n"); } Prints: First String First String Which is obviously wrong. There's a test almost identical to this in test/MC/COFF/symbol-fragment-offset.ll that I thought tested this _exact_ problem. The aforementioned test currently passes, while this one currently fails. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 2 06:48:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 2 Oct 2010 06:48:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 8270] Duplicate symbol with extern inline in C++ In-Reply-To: References: Message-ID: <20101002114842.346862A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8270 Benjamin Jemlich changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Benjamin Jemlich 2010-10-02 06:48:41 CDT --- *** This bug has been marked as a duplicate of bug 7389 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 2 09:04:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 2 Oct 2010 09:04:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 8279] New: const volatile bug Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8279 Summary: const volatile bug Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu Clang miscompiles the program below, it is not OK to optimize away the read from g_1 in main after inlining func_1(). regehr at john-home:~$ clang -v clang version 2.9 (trunk 115311) Target: i386-pc-linux-gnu Thread model: posix regehr at john-home:~$ clang -O vol.c -S -o - .file "vol.c" .text .globl main .align 16, 0x90 .type main, at function main: pushl %ebp movl %esp, %ebp xorl %eax, %eax popl %ebp ret .Ltmp0: .size main, .Ltmp0-main .type g_1, at object .section .rodata.cst4,"aM", at progbits,4 .globl g_1 .align 4 g_1: .long 1 .size g_1, 4 .section .note.GNU-stack,"", at progbits regehr at john-home:~$ cat vol.c const volatile int g_1 = 1; static int func_1(void) { return g_1; } int main (void) { func_1(); 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 Sat Oct 2 12:48:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 2 Oct 2010 12:48:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 8169] clang does not allow a getter to be named "namespace" in ObjC++ In-Reply-To: References: Message-ID: <20101002174848.D83FC2A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8169 Anders Carlsson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andersca at mac.com Resolution| |FIXED --- Comment #2 from Anders Carlsson 2010-10-02 12:48:48 CDT --- http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20100927/035083.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Oct 2 14:57:12 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 2 Oct 2010 14:57:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 4096] [Linux kernel] unsupported array designator In-Reply-To: References: Message-ID: <20101002195712.AE5E72A6C131@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4096 Alp Toker changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |alp at nuanti.com Resolution| |FIXED --- Comment #3 from Alp Toker 2010-10-02 14:57:11 CDT --- This error doesn't appear in clang head (r115028). Closing bug, feel free to re-open if the issue persists. (The preprocessed file still errors out on an unrelated 'array size is negative' sizeof, possibly caused by PR8256 or PR7951). -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 2 14:57:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 2 Oct 2010 14:57:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 8280] New: Implement pshufw mnemonic Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8280 Summary: Implement pshufw mnemonic Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ismail at namtrac.org CC: llvmbugs at cs.uiuc.edu Saw this while compiling x264: [~]> cat t2.c int main() { asm ("pshufw"); } [~]> clang t2.c t2.c:4:10: error: invalid instruction mnemonic 'pshufw' asm ("pshufw"); ^ :1:2: note: instantiated into assembly here pshufw ^ 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 Oct 2 14:59:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 2 Oct 2010 14:59:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 8281] New: Extremely slow assembling and disassembling of some code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8281 Summary: Extremely slow assembling and disassembling of some code Product: libraries Version: 2.7 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: llvm at henning-thielemann.de CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5550) --> (http://llvm.org/bugs/attachment.cgi?id=5550) disassembling this bitcode is awfully slow Recently I wanted to move from LLVM-2.6 to LLVM-2.7. I encountered that some LLVM code I generated through the Haskell/C interface to LLVM takes ages to arrive in a bitcode file. This problem did not exist in LLVM-2.6. Now I found that also assembling and disassembling that bitcode file is very slow. $ time llvm-dis -o generator000-dis.ll generator000.bc real 1m56.906s user 1m56.511s sys 0m0.300s $ time llvm-as generator000-dis.ll real 2m1.090s user 2m0.584s sys 0m0.304s -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 2 16:05:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 2 Oct 2010 16:05:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 8280] Implement pshufw mnemonic In-Reply-To: References: Message-ID: <20101002210542.14A582A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8280 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Chris Lattner 2010-10-02 16:05:41 CDT --- We support pshufw, we just require it to have operands. The system assembler produces: t.s:1:suffix or operands invalid for `pshufw' This is either an overreduced testcase or not supported usage. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 2 16:56:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 2 Oct 2010 16:56:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 8283] New: Implement pavgusb Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8283 Summary: Implement pavgusb Product: clang Version: trunk Platform: PC OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ismail at namtrac.org CC: llvmbugs at cs.uiuc.edu This is part of 3DNow! instruction set: [~]> cat t3.c int main() { asm("pavgusb 9(%esi, %edx), %mm3"); } [~]> clang t3.c t3.c:3:9: error: invalid instruction mnemonic 'pavgusb' asm("pavgusb 9(%esi, %edx), %mm3"); ^ :1:2: note: instantiated into assembly here pavgusb 9(%esi, %edx), %mm3 ^ 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 Oct 2 18:40:18 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 2 Oct 2010 18:40:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 8253] Apparent false ambiguous conversion from derived class to base class In-Reply-To: References: Message-ID: <20101002234018.0EC472A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8253 d235j.1 at gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #4 from d235j.1 at gmail.com 2010-10-02 18:40:17 CDT --- Turned out to be buggy code. 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 Sun Oct 3 00:02:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 3 Oct 2010 00:02:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 7590] C++ mangler output doesn't match gcc in some cases In-Reply-To: References: Message-ID: <20101003050225.3E2F32A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7590 Alp Toker changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |alp at nuanti.com Resolution| |FIXED --- Comment #3 from Alp Toker 2010-10-03 00:02:24 CDT --- I'm getting the expected B, C, D, D with clang trunk (r115444) so this was probably fixed (perhaps by r111591). Closing bug, please re-open if the issue persists. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 3 00:42:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 3 Oct 2010 00:42:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 8284] New: use of 'vsnprintf' causes backend crash Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8284 Summary: use of 'vsnprintf' causes backend crash Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: d235j.1 at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com When using 'vsnprintf' as seen in the attached testcase, the C++ compiler crashes. This crash does not occur when using the C compiler. Error output: Assertion failed: (!Type.isNull() && "builtin va list type not initialized!"), function DecodeTypeFromStr, file ASTContext.cpp, line 5287. 0 clang 0x00000001013c9052 std::vector >::_M_insert_aux(__gnu_cxx::__normal_iterator > >, llvm::sys::Path const&) + 11586 1 clang 0x00000001013c9ea3 std::vector >::_M_insert_aux(__gnu_cxx::__normal_iterator > >, llvm::sys::Path const&) + 15251 2 libSystem.B.dylib 0x00007fff825e135a _sigtramp + 26 3 libSystem.B.dylib 000000000000000000 _sigtramp + 2107763904 4 clang 0x000000010001eaa2 std::vector >::_M_insert_aux(__gnu_cxx::__normal_iterator > >, llvm::PassRegistrationListener* const&) + 6786 5 clang 0x000000010071d60d clang::ASTConsumer::~ASTConsumer() + 129373 6 clang 0x00000001007230c8 clang::ASTConsumer::~ASTConsumer() + 152600 7 clang 0x000000010035c5bb llvm::SmallVectorTemplateBase::grow(unsigned long) + 79483 8 clang 0x00000001004457c7 llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 248279 9 clang 0x00000001004c4966 llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 142454 10 clang 0x0000000100445c08 llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 249368 11 clang 0x00000001002f1a49 clang::Parser::ParsingClassDefinition::Pop() + 19129 12 clang 0x00000001002ee51b clang::Parser::ParsingClassDefinition::Pop() + 5515 13 clang 0x00000001002f10a6 clang::Parser::ParsingClassDefinition::Pop() + 16662 14 clang 0x00000001002f0708 clang::Parser::ParsingClassDefinition::Pop() + 14200 15 clang 0x00000001002f10c3 clang::Parser::ParsingClassDefinition::Pop() + 16691 16 clang 0x00000001002f1691 clang::Parser::ParsingClassDefinition::Pop() + 18177 17 clang 0x000000010030fa25 clang::PragmaWeakHandler::~PragmaWeakHandler() + 9989 18 clang 0x000000010030fe66 clang::PragmaWeakHandler::~PragmaWeakHandler() + 11078 19 clang 0x0000000100310354 clang::PragmaWeakHandler::~PragmaWeakHandler() + 12340 20 clang 0x0000000100320d51 llvm::SmallVectorTemplateBase::grow(unsigned long) + 36929 21 clang 0x00000001002e17b0 clang::Parser::ConsumeAnyToken() + 65424 22 clang 0x00000001003210b1 llvm::SmallVectorTemplateBase::grow(unsigned long) + 37793 23 clang 0x00000001003214eb llvm::SmallVectorTemplateBase::grow(unsigned long) + 38875 24 clang 0x0000000100321f2a llvm::SmallVectorTemplateBase::grow(unsigned long) + 41498 25 clang 0x000000010032215a llvm::SmallVectorTemplateBase::grow(unsigned long) + 42058 26 clang 0x00000001002cf8bf llvm::IRBuilder >::CreateGEP(llvm::Value*, llvm::Value*, llvm::Twine const&) + 495 27 clang 0x000000010028b93c llvm::DenseMap, unsigned long long, llvm::DenseMapInfo >, llvm::DenseMapInfo >::grow(unsigned int) + 4220 28 clang 0x00000001000545c9 llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 7193 29 clang 0x00000001000283ce std::_Rb_tree, std::less, std::allocator >::_M_erase(std::_Rb_tree_node*) + 2670 30 clang 0x00000001000203f3 std::vector >::_M_insert_aux(__gnu_cxx::__normal_iterator > >, llvm::PassRegistrationListener* const&) + 13267 31 clang 0x0000000100026f44 std::vector >::operator=(std::vector > const&) + 11604 32 clang 0x000000010001ee18 std::vector >::_M_insert_aux(__gnu_cxx::__normal_iterator > >, llvm::PassRegistrationListener* const&) + 7672 Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-apple-darwin10.0.0 -emit-obj -mrelax-all -disable-free -main-file-name testcase.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 97.14 -resource-dir /usr/local/lib/clang/2.9 -ferror-limit 19 -fmessage-length 220 -stack-protector 1 -fblocks -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o testcase.o -x c++ ./testcase.cpp 1. ./testcase.cpp:7:66: current parser token ')' 2. ./testcase.cpp:4:1: parsing function body 'pile_vprintf' 3. ./testcase.cpp:4:1: in compound statement ('{}') clang: error: clang frontend command failed due to signal 4 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Oct 3 05:40:24 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 3 Oct 2010 05:40:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 8285] New: [patch] Implemented unregistering in JIT of exception information Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8285 Summary: [patch] Implemented unregistering in JIT of exception information Product: libraries Version: 2.8 Platform: Other OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: Target-Independent JIT AssignedTo: unassignedbugs at nondot.org ReportedBy: yuri at tsoft.com CC: llvmbugs at cs.uiuc.edu Please check in an attached patch. Synopsys of the change: fixed the cleanup process of exception information in JIT. Now JIT deregisters registered by it FDE structures allowing consecutive JIT runs to succeed. Note: tools like lli should delete ExecutionEngine object and not the module. Module is deleted by ExecutionEngine. Also I am not sure if this is proper for the module to be owned by ExecutionEngine. I think they should be independently owned. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 3 08:40:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 3 Oct 2010 08:40:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 8286] New: Invalid indirect branches processing (x86 asm printer). Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8286 Summary: Invalid indirect branches processing (x86 asm printer). Product: libraries Version: 2.8 Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: crystaldragon at codedgers.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5556) --> (http://llvm.org/bugs/attachment.cgi?id=5556) bitcode file(for linux x86-64) with a lot of indirect branch instructions M.bc from attachment can't be compiled: llc M.bc -o M.s gcc M.s -lm /tmp/ccuBJJbW.o:(.rodata+0xf0): undefined reference to `.Ltmp58' /tmp/ccuBJJbW.o:(.rodata+0x1a0): undefined reference to `.Ltmp59' collect2: ld error 1 Probably reason - optimization in x86 asm printer, that drops basic blocks labels without uses. It ignores global variables like this: @blocks3 = internal constant [4 x i8*] [i8* blockaddress(@cffti, %bb), i8* blockaddress(@cffti, %bb1), i8* blockaddress(@cffti, %return), i8* blockaddress(@cffti, %return)] ; <[4 x i8*]*> [#uses=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 Sun Oct 3 11:56:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 3 Oct 2010 11:56:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 8287] New: Codegen takes a very long time Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8287 Summary: Codegen takes a very long time Product: tools Version: trunk Platform: Macintosh OS/Version: All Status: NEW Severity: normal Priority: P Component: llc AssignedTo: unassignedbugs at nondot.org ReportedBy: sreeram at tachyontech.net CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5557) --> (http://llvm.org/bugs/attachment.cgi?id=5557) hello world program. Running llc on the attached file takes a very long time, about 15 seconds on a Core i7 MacBookPro. This is on x86-64, but i've observed similar results on x86-32 as well. Here's the output from "time llc -time-passes hello.ll": $ time llc -time-passes hello.ll ===-------------------------------------------------------------------------=== Instruction Selection and Scheduling ===-------------------------------------------------------------------------=== Total Execution Time: 13.3722 seconds (13.3728 wall clock) ---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name --- 10.8450 ( 86.4%) 0.7995 ( 98.0%) 11.6444 ( 87.1%) 11.6449 ( 87.1%) Instruction Scheduling 0.7267 ( 5.8%) 0.0011 ( 0.1%) 0.7278 ( 5.4%) 0.7279 ( 5.4%) DAG Combining 1 0.4943 ( 3.9%) 0.0051 ( 0.6%) 0.4995 ( 3.7%) 0.4995 ( 3.7%) Instruction Selection 0.3998 ( 3.2%) 0.0010 ( 0.1%) 0.4008 ( 3.0%) 0.4009 ( 3.0%) DAG Legalization 0.0267 ( 0.2%) 0.0022 ( 0.3%) 0.0290 ( 0.2%) 0.0290 ( 0.2%) Vector Legalization 0.0218 ( 0.2%) 0.0044 ( 0.5%) 0.0262 ( 0.2%) 0.0262 ( 0.2%) Instruction Creation 0.0230 ( 0.2%) 0.0002 ( 0.0%) 0.0232 ( 0.2%) 0.0232 ( 0.2%) DAG Combining 2 0.0180 ( 0.1%) 0.0002 ( 0.0%) 0.0182 ( 0.1%) 0.0182 ( 0.1%) Type Legalization 0.0011 ( 0.0%) 0.0018 ( 0.2%) 0.0030 ( 0.0%) 0.0030 ( 0.0%) Instruction Scheduling Cleanup 0.0002 ( 0.0%) 0.0000 ( 0.0%) 0.0002 ( 0.0%) 0.0002 ( 0.0%) DAG Combining after legalize types 12.5565 (100.0%) 0.8157 (100.0%) 13.3722 (100.0%) 13.3728 (100.0%) Total ===-------------------------------------------------------------------------=== DWARF Emission ===-------------------------------------------------------------------------=== Total Execution Time: 0.0009 seconds (0.0009 wall clock) ---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name --- 0.0006 ( 89.9%) 0.0003 ( 83.0%) 0.0008 ( 87.6%) 0.0008 ( 88.2%) DWARF Exception Writer 0.0001 ( 10.1%) 0.0001 ( 17.0%) 0.0001 ( 12.4%) 0.0001 ( 11.8%) DWARF Debug Writer 0.0006 (100.0%) 0.0003 (100.0%) 0.0009 (100.0%) 0.0009 (100.0%) Total ===-------------------------------------------------------------------------=== ... Pass execution timing report ... ===-------------------------------------------------------------------------=== Total Execution Time: 15.6307 seconds (15.6314 wall clock) ---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name --- 12.7550 ( 87.3%) 0.9641 ( 94.4%) 13.7191 ( 87.8%) 13.7198 ( 87.8%) X86 DAG->DAG Instruction Selection 0.9878 ( 6.8%) 0.0018 ( 0.2%) 0.9896 ( 6.3%) 0.9896 ( 6.3%) Stack Slot Coloring 0.7672 ( 5.3%) 0.0136 ( 1.3%) 0.7808 ( 5.0%) 0.7808 ( 5.0%) Linear Scan Register Allocator 0.0097 ( 0.1%) 0.0299 ( 2.9%) 0.0396 ( 0.3%) 0.0396 ( 0.3%) Machine Function Analysis 0.0168 ( 0.1%) 0.0031 ( 0.3%) 0.0199 ( 0.1%) 0.0199 ( 0.1%) X86 AT&T-Style Assembly Printer 0.0163 ( 0.1%) 0.0014 ( 0.1%) 0.0176 ( 0.1%) 0.0176 ( 0.1%) Live Variable Analysis 0.0128 ( 0.1%) 0.0010 ( 0.1%) 0.0138 ( 0.1%) 0.0138 ( 0.1%) Live Interval Analysis 0.0092 ( 0.1%) 0.0001 ( 0.0%) 0.0093 ( 0.1%) 0.0093 ( 0.1%) Calculate spill weights 0.0038 ( 0.0%) 0.0016 ( 0.2%) 0.0054 ( 0.0%) 0.0054 ( 0.0%) Live Stack Slot Analysis 0.0038 ( 0.0%) 0.0001 ( 0.0%) 0.0038 ( 0.0%) 0.0038 ( 0.0%) Simple Register Coalescing 0.0034 ( 0.0%) 0.0004 ( 0.0%) 0.0037 ( 0.0%) 0.0037 ( 0.0%) Two-Address instruction pass 0.0033 ( 0.0%) 0.0001 ( 0.0%) 0.0034 ( 0.0%) 0.0034 ( 0.0%) Prolog/Epilog Insertion & Frame Finalization 0.0025 ( 0.0%) 0.0005 ( 0.0%) 0.0029 ( 0.0%) 0.0029 ( 0.0%) Slot index numbering 0.0016 ( 0.0%) 0.0004 ( 0.0%) 0.0020 ( 0.0%) 0.0020 ( 0.0%) Virtual Register Map 0.0014 ( 0.0%) 0.0002 ( 0.0%) 0.0016 ( 0.0%) 0.0017 ( 0.0%) Peephole Optimizations 0.0016 ( 0.0%) 0.0001 ( 0.0%) 0.0016 ( 0.0%) 0.0016 ( 0.0%) Remove dead machine instructions 0.0013 ( 0.0%) 0.0000 ( 0.0%) 0.0013 ( 0.0%) 0.0013 ( 0.0%) X86 FP Stackifier 0.0005 ( 0.0%) 0.0007 ( 0.1%) 0.0012 ( 0.0%) 0.0012 ( 0.0%) Basic Alias Analysis (default AA impl) 0.0012 ( 0.0%) 0.0001 ( 0.0%) 0.0012 ( 0.0%) 0.0012 ( 0.0%) Control Flow Optimizer 0.0011 ( 0.0%) 0.0000 ( 0.0%) 0.0012 ( 0.0%) 0.0012 ( 0.0%) Process Implicit Definitions. 0.0007 ( 0.0%) 0.0004 ( 0.0%) 0.0011 ( 0.0%) 0.0011 ( 0.0%) MachineDominator Tree Construction 0.0008 ( 0.0%) 0.0000 ( 0.0%) 0.0008 ( 0.0%) 0.0008 ( 0.0%) Machine Common Subexpression Elimination 0.0004 ( 0.0%) 0.0004 ( 0.0%) 0.0008 ( 0.0%) 0.0008 ( 0.0%) Machine Natural Loop Construction 0.0007 ( 0.0%) 0.0000 ( 0.0%) 0.0007 ( 0.0%) 0.0007 ( 0.0%) Dominator Tree Construction 0.0007 ( 0.0%) 0.0000 ( 0.0%) 0.0007 ( 0.0%) 0.0007 ( 0.0%) Subregister lowering instruction pass 0.0005 ( 0.0%) 0.0001 ( 0.0%) 0.0007 ( 0.0%) 0.0007 ( 0.0%) MachineDominator Tree Construction 0.0006 ( 0.0%) 0.0001 ( 0.0%) 0.0006 ( 0.0%) 0.0006 ( 0.0%) Optimize for code generation 0.0006 ( 0.0%) 0.0001 ( 0.0%) 0.0006 ( 0.0%) 0.0006 ( 0.0%) Module Verifier 0.0005 ( 0.0%) 0.0000 ( 0.0%) 0.0005 ( 0.0%) 0.0005 ( 0.0%) SSE execution domain fixup 0.0005 ( 0.0%) 0.0000 ( 0.0%) 0.0005 ( 0.0%) 0.0005 ( 0.0%) Dominator Tree Construction 0.0004 ( 0.0%) 0.0000 ( 0.0%) 0.0004 ( 0.0%) 0.0004 ( 0.0%) Dominator Tree Construction 0.0003 ( 0.0%) 0.0000 ( 0.0%) 0.0004 ( 0.0%) 0.0004 ( 0.0%) Module Verifier 0.0002 ( 0.0%) 0.0001 ( 0.0%) 0.0003 ( 0.0%) 0.0003 ( 0.0%) Machine Natural Loop Construction 0.0002 ( 0.0%) 0.0000 ( 0.0%) 0.0003 ( 0.0%) 0.0003 ( 0.0%) Machine Instruction LICM 0.0002 ( 0.0%) 0.0000 ( 0.0%) 0.0003 ( 0.0%) 0.0003 ( 0.0%) Natural Loop Information 0.0002 ( 0.0%) 0.0000 ( 0.0%) 0.0002 ( 0.0%) 0.0002 ( 0.0%) MachineDominator Tree Construction 0.0002 ( 0.0%) 0.0000 ( 0.0%) 0.0002 ( 0.0%) 0.0002 ( 0.0%) Remove unreachable blocks from the CFG 0.0002 ( 0.0%) 0.0000 ( 0.0%) 0.0002 ( 0.0%) 0.0002 ( 0.0%) Machine Instruction LICM 0.0001 ( 0.0%) 0.0001 ( 0.0%) 0.0002 ( 0.0%) 0.0002 ( 0.0%) Eliminate PHI nodes for register allocation 0.0001 ( 0.0%) 0.0000 ( 0.0%) 0.0002 ( 0.0%) 0.0002 ( 0.0%) Remove unreachable machine basic blocks 0.0001 ( 0.0%) 0.0000 ( 0.0%) 0.0002 ( 0.0%) 0.0002 ( 0.0%) Machine code sinking 0.0001 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) Exception handling preparation 0.0001 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) Tail Duplication 0.0001 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) Preliminary module verification 0.0001 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) Machine Natural Loop Construction 0.0001 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) Scalar Evolution Analysis 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) X86 Maximal Stack Alignment Check 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) Tail Duplication 0.0001 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) Machine Natural Loop Construction 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) Post RA top-down list latency scheduler 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) Code Placement Optimizater 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) Optimize machine instruction PHIs 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) Local Stack Slot Allocation 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) Insert stack protectors 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) Lower Garbage Collection Instructions 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) Analyze Machine Code For Garbage Collection 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) Preliminary module verification 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) Delete Garbage Collector Information 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Canonicalize natural loops 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Create Garbage Collector Module Metadata 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Canonicalize natural loops 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Loop Strength Reduction 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Induction Variable Users 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Induction Variable Users 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Machine Module Information 14.6093 (100.0%) 1.0214 (100.0%) 15.6307 (100.0%) 15.6314 (100.0%) Total real 0m15.691s user 0m14.638s sys 0m1.039s -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 3 13:08:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 3 Oct 2010 13:08:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 8283] Implement pavgusb 3dNow! instruction In-Reply-To: References: Message-ID: <20101003180833.B60B82A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8283 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Summary|Implement pavgusb |Implement pavgusb 3dNow! | |instruction --- Comment #1 from Chris Lattner 2010-10-03 13:08:33 CDT --- Implemented in r115466. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 3 13:54:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 3 Oct 2010 13:54:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 8288] New: ffmpeg fails to compile with internal assembler due to pshufw problem Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8288 Summary: ffmpeg fails to compile with internal assembler due to pshufw problem Product: clang Version: trunk Platform: PC OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ismail at namtrac.org CC: llvmbugs at cs.uiuc.edu Minimal test case: [~]> cat t4.c int main() { asm("pshufw $0x90, %mm0, %mm5"); } [~]> clang t4.c t4.c:3:9: error: invalid operand for instruction asm("pshufw $0x90, %mm0, %mm5"); ^ :1:9: note: instantiated into assembly here pshufw $0x90, %mm0, %mm5 ^ 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 Sun Oct 3 14:09:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 3 Oct 2010 14:09:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 8288] ffmpeg fails to compile with internal assembler due to pshufw problem In-Reply-To: References: Message-ID: <20101003190936.370B62A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8288 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-10-03 14:09:35 CDT --- Fixed in r115473 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 3 14:26:32 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 3 Oct 2010 14:26:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 8289] New: Implement pswapd mnemonic Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8289 Summary: Implement pswapd mnemonic Product: clang Version: trunk Platform: PC OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ismail at namtrac.org CC: llvmbugs at cs.uiuc.edu Another one from ffmpeg: [~]> clang t6.c t6.c:3:9: error: invalid instruction mnemonic 'pswapd' asm("pswapd %mm1,%mm3"); ^ :1:2: note: instantiated into assembly here pswapd %mm1,%mm3 ^ 1 error generated. [~]> cat t6.c int main() { asm("pswapd %mm1,%mm3"); } -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 3 14:27:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 3 Oct 2010 14:27:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 8290] New: Implement pfpnacc mnemonic Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8290 Summary: Implement pfpnacc mnemonic Product: clang Version: trunk Platform: PC OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ismail at namtrac.org CC: llvmbugs at cs.uiuc.edu Another one from ffmpeg: [~]> cat t7.c int main() { asm("pfpnacc %mm2, %mm0"); } [cartman at havana][22:28:24] [~]> clang t7.c t7.c:3:9: error: invalid instruction mnemonic 'pfpnacc' asm("pfpnacc %mm2, %mm0"); ^ :1:2: note: instantiated into assembly here pfpnacc %mm2, %mm0 ^ 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 Sun Oct 3 15:27:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 3 Oct 2010 15:27:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 8290] Implement pfpnacc mnemonic In-Reply-To: References: Message-ID: <20101003202747.E1D152A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8290 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #1 from Eli Friedman 2010-10-03 15:27:47 CDT --- r115477. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 3 15:28:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 3 Oct 2010 15:28:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 8289] Implement pswapd mnemonic In-Reply-To: References: Message-ID: <20101003202802.1EF562A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8289 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #1 from Eli Friedman 2010-10-03 15:28:01 CDT --- r115477. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 4 08:36:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 4 Oct 2010 08:36:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 8292] New: Clang does not sufficiently check completely defined-ness of class template Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8292 Summary: Clang does not sufficiently check completely defined-ness of class template Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: schaub-johannes at web.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com This template definition is rejected by comeau and GCC but not really by Clang template struct A { struct B { }; void f() { } struct C { int c[sizeof(A::B)]; }; void g() { } }; int main() { A b; b.f(); b.g(); } Clang does accept all the code up to until "b.g()" complaining that "g" was not declared: main1.cpp:18:5: error: no member named 'g' in 'A' b.g(); It appears to me that it causes an implicit instantiation of A at "sizeof(A::B)" and instantiates declarations of A for up to until A::C, ignoring any data and function members declared past A::C. I think this example is ill-formed already at "sizeof(A::B)" by [temp.inst]p6 "If an implicit instantiation of a class template specialization is required and the template is declared but not defined, the program is ill-formed.". This also makes the second example of PR7308 which writes "friend A::operator A();" ill-formed. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 4 11:03:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 4 Oct 2010 11:03:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 8294] New: Obvious inline missed Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8294 Summary: Obvious inline missed Product: libraries Version: 1.0 Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Interprocedural Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: clattner at apple.com CC: llvmbugs at cs.uiuc.edu This (from GCC PR45791): struct Base { virtual ~Base() {} virtual void f() = 0; }; struct Derived : Base { Derived(); virtual void f() {} }; struct Foo { Foo(Base&); }; Derived::Derived() { Foo foo(*this); } Foo::Foo(Base& base) { base.f(); } int main() { Derived d; } Compiles into this with clang -O3: ... lots of stuff... define void @_ZN7DerivedC2Ev(%struct.Derived* %this) ssp align 2 { entry: %0 = bitcast %struct.Derived* %this to i32 (...)*** %1 = bitcast %struct.Derived* %this to i8*** store i8** getelementptr inbounds ([5 x i8*]* @_ZTV7Derived, i64 0, i64 2), i8*** %1, align 8 call void @_ZN7Derived1fEv(%struct.Derived* %this) ret void } define linkonce_odr void @_ZN7Derived1fEv(%struct.Derived* nocapture %this) nounwind readnone ssp align 2 { entry: ret void } It looks like we devirtualized a bunch of stuff but didn't inline the call to _ZN7Derived1fEv. incidentally, searching the GCC bugzilla for 'mozilla' turns up a bunch of other related examples. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Oct 4 11:33:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 4 Oct 2010 11:33:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 8295] New: clang doesn't complain about partial template function specializations Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8295 Summary: clang doesn't complain about partial template function specializations Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nicolasweber at gmx.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com hummer:src thakis$ cat testspec.cc template void f(const T& t) { } template struct C { }; template void f >(const C& t) { } # clang doesn't complain: hummer:src thakis$ ~/src/llvm/Release+Asserts/bin/clang -c testspec.cc # gcc does: hummer:src thakis$ gcc -c testspec.cc testspec.cc:10: error: function template partial specialization ?f >? is not allowed -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 4 11:52:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 4 Oct 2010 11:52:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 8275] LLVM lexical block tag number incorrect In-Reply-To: References: Message-ID: <20101004165230.426592A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8275 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Devang Patel 2010-10-04 11:52:30 CDT --- Good catch. This was wrong from day one! Fixed in r115516. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 4 14:24:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 4 Oct 2010 14:24:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 8296] New: Assertion `!Type.isNull() && "builtin va list type not initialized!"' failed Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8296 Summary: Assertion `!Type.isNull() && "builtin va list type not initialized!"' failed Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: grzegorz.dabrowski at gmail.com CC: llvmbugs at cs.uiuc.edu clang version 2.9 (trunk 115541) Target: i386-pc-linux-gnu Thread model: posix Test case: extern "C" int vsnprintf(char *string, int size, char const *format, __builtin_va_list ap); void f() { vsnprintf(__null, 0, __null, __null); } Output: clang: ASTContext.cpp:5287: clang::QualType DecodeTypeFromStr(char const *&, clang::ASTContext &, ASTContext::GetBuiltinTypeError &, bool &, bool): Assertion `!Type.isNull() && "builtin va list type not initialized!"' failed. 0 clang 0x0947b42b Stack dump: 0. Program arguments: /home/stuff/download/SCM/llvm/Release+Asserts/bin/clang -cc1 -triple i386-pc-linux-gnu -S -disable-free -main-file-name va.cpp -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.20.51 -resource-dir /home/stuff/download/SCM/llvm/Release+Asserts/lib/clang/2.9 -O0 -ferror-limit 19 -fmessage-length 158 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-YJkhfG.s -x c++ tests-my/va.cpp 1. tests-my/va.cpp:4:44: current parser token ')' 2. tests-my/va.cpp:3:10: parsing function body 'f' 3. tests-my/va.cpp:3:10: in compound statement ('{}') clang: error: clang frontend command failed due to signal 6 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Oct 4 14:35:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 4 Oct 2010 14:35:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 8296] Assertion `!Type.isNull() && "builtin va list type not initialized!"' failed In-Reply-To: References: Message-ID: <20101004193527.0FDBC2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8296 Grzegorz Dabrowski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Grzegorz Dabrowski 2010-10-04 14:35:26 CDT --- *** This bug has been marked as a duplicate of bug 8284 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 4 14:59:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 4 Oct 2010 14:59:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 1718] Nightly Tester script should checkout llvm-gcc In-Reply-To: References: Message-ID: <20101004200000.0658D2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=1718 Daniel Dunbar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |daniel at zuster.org Resolution| |WONTFIX --- Comment #1 from Daniel Dunbar 2010-10-04 14:59:59 CDT --- The nightly test script is dying. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 4 17:00:18 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 4 Oct 2010 17:00:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 8297] New: machine licm crash on atomic cmpswap i64 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8297 Summary: machine licm crash on atomic cmpswap i64 Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu The attached testcase crashes: nlewycky at ducttape:~$ llvm/Debug+Asserts/bin/llc c.ll 0 llc 0x00000000013b20ad 1 llc 0x00000000013b1ea0 2 libpthread.so.0 0x00007f26c08a98f0 3 llc 0x00000000009f3e1a llvm::Type::isPointerTy() const + 12 4 llc 0x0000000001306619 llvm::Value::getUnderlyingObject(unsigned int) + 35 5 llc 0x00000000010221dc llvm::Value::getUnderlyingObject(unsigned int) const + 32 6 llc 0x000000000117944a 7 llc 0x0000000000e3d851 llvm::AliasAnalysis::pointsToConstantMemory(llvm::Value const*) + 79 8 llc 0x0000000000fa587a 9 llc 0x0000000000fa59c1 10 llc 0x0000000000fa6315 11 llc 0x0000000000fa5368 12 llc 0x0000000000fa45a5 13 llc 0x0000000000f9c409 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 95 14 llc 0x00000000012df461 llvm::FPPassManager::runOnFunction(llvm::Function&) + 407 15 llc 0x00000000012df67e llvm::FPPassManager::runOnModule(llvm::Module&) + 102 16 llc 0x00000000012df9b1 llvm::MPPassManager::runOnModule(llvm::Module&) + 459 17 llc 0x00000000012dfef1 llvm::PassManagerImpl::run(llvm::Module&) + 125 18 llc 0x00000000012e0447 llvm::PassManager::run(llvm::Module&) + 39 19 llc 0x00000000009cd373 main + 2341 20 libc.so.6 0x00007f26bfb83c4d __libc_start_main + 253 21 llc 0x00000000009cc349 Stack dump: 0. Program arguments: llvm/Debug+Asserts/bin/llc c.ll 1. Running pass 'Function Pass Manager' on module 'c.ll'. 2. Running pass 'Machine Instruction LICM' on function '@_ZN4base6subtle25NoBarrier_AtomicIncrementEPVxx' Segmentation fault -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Oct 4 21:36:06 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 4 Oct 2010 21:36:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 8175] Destructors for stack variables not firing on goto from scope In-Reply-To: References: Message-ID: <20101005023606.D02882A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8175 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #3 from John McCall 2010-10-04 21:36:06 CDT --- The new test case is fixed in r115586, 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 Oct 4 21:55:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 4 Oct 2010 21:55:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 8300] New: Crash when linking two bitcode files Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8300 Summary: Crash when linking two bitcode files Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Linker AssignedTo: unassignedbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu Found while trying to bootstrap clang with LTO: $ llvm-link -o foo.bc PassManager.o Pass.o llvm-link: /home/espindola/llvm/llvm/lib/VMCore/Globals.cpp:230: llvm::GlobalAlias::GlobalAlias(const llvm::Type*, llvm::GlobalValue::LinkageTypes, const llvm::Twine&, llvm::Constant*, llvm::Module*): Assertion `aliasee->getType() == Ty && "Alias and aliasee types should match!"' failed. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Oct 5 06:12:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 5 Oct 2010 06:12:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 3803] Cannot bootstrap llvm-gcc on Tiger (with Xcode 2.5 tools) In-Reply-To: References: Message-ID: <20101005111209.BD0532A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3803 Gabor Greif changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #2 from Gabor Greif 2010-10-05 06:12:09 CDT --- Tiger is not supported any more. Will not fix. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 5 06:16:18 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 5 Oct 2010 06:16:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 6513] crash on invalid (enum forward decl in template arg list) In-Reply-To: References: Message-ID: <20101005111618.D687B2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6513 Gabor Greif changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Gabor Greif 2010-10-05 06:16:18 CDT --- A recent clang does give sensible error messages and does not crash any more: gabor at google7:~$ cat > goo.cpp template class GOVERN> class Role : public FACILITY, protected GOVERN { friend class GOVERN; }; gabor at google7:~$ ~/llvm-build/Debug+Asserts/bin/clang++ -o hh goo.cpp goo.cpp:1:16: error: ISO C++ forbids forward references to 'enum' types template References: Message-ID: <20101005145904.980622A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7374 Nathan Whitehorn changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Nathan Whitehorn 2010-10-05 09:59:03 CDT --- This appears to have been fixed at some point. Revision 115520 no longer exhibits this behavior. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 5 11:27:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 5 Oct 2010 11:27:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 8284] use of 'vsnprintf' causes backend crash In-Reply-To: References: Message-ID: <20101005162700.F1F932A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8284 Douglas Gregor 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 Oct 5 14:48:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 5 Oct 2010 14:48:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 8278] MC-COFF: Incorrect relocations generated for string constants... again... In-Reply-To: References: Message-ID: <20101005194843.761A42A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8278 Michael Spencer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #3 from Michael Spencer 2010-10-05 14:48:43 CDT --- Wow, I missed an obvious piece of information. The value stored at the VirtualAddress in the section is used as the offset. No idea how I forgot that one. The fix is the same fix as in r110104. Fixed in r115656. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 5 17:41:22 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 5 Oct 2010 17:41:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 8307] New: Cannot compile mmx-builtins.c on MSVC Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8307 Summary: Cannot compile mmx-builtins.c on MSVC Product: clang Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: Headers AssignedTo: unassignedclangbugs at nondot.org ReportedBy: wendling at apple.com CC: llvmbugs at cs.uiuc.edu The testcase CodeGen/mmx-builtins.c fails as below on the clang-i686-xp-msvc9 buildbot. It looks like something wrong the header files? It's trying to #include errno.h, but can't find it. ******************** TEST 'Clang :: CodeGen/mmx-builtins.c' FAILED ********************Script: -- D:/public/zorg/buildbot/osuosl/slave/clang-i686-xp-msvc9/llvm/build/bin/Debug\clang.EXE -cc1 D:\public\zorg\buildbot\osuosl\slave\clang-i686-xp-msvc9\llvm\tools\clang\test\CodeGen\mmx-builtins.c -O3 -triple=x86_64-apple-darwin -target-feature +ssse3 -S -o - | FileCheck D:\public\zorg\buildbot\osuosl\slave\clang-i686-xp-msvc9\llvm\tools\clang\test\CodeGen\mmx-builtins.c -- Exit Code: 1 Command Output (stdout): -- Command 0: "D:/public/zorg/buildbot/osuosl/slave/clang-i686-xp-msvc9/llvm/build/bin/Debug\clang.EXE" "-cc1" "D:\public\zorg\buildbot\osuosl\slave\clang-i686-xp-msvc9\llvm\tools\clang\test\CodeGen\mmx-builtins.c" "-O3" "-triple=x86_64-apple-darwin" "-target-feature" "+ssse3" "-S" "-o" "-" Command 0 Result: 1 Command 0 Output: Command 0 Stderr: In file included from D:\public\zorg\buildbot\osuosl\slave\clang-i686-xp-msvc9\llvm\tools\clang\test\CodeGen\mmx-builtins.c:3: In file included from D:/public/zorg/buildbot/osuosl/slave/clang-i686-xp-msvc9/llvm/build/bin/lib/clang/2.9/include/tmmintrin.h:31: In file included from D:/public/zorg/buildbot/osuosl/slave/clang-i686-xp-msvc9/llvm/build/bin/lib/clang/2.9/include/pmmintrin.h:31: In file included from D:/public/zorg/buildbot/osuosl/slave/clang-i686-xp-msvc9/llvm/build/bin/lib/clang/2.9/include/emmintrin.h:31: In file included from D:/public/zorg/buildbot/osuosl/slave/clang-i686-xp-msvc9/llvm/build/bin/lib/clang/2.9/include/xmmintrin.h:37: D:/public/zorg/buildbot/osuosl/slave/clang-i686-xp-msvc9/llvm/build/bin/lib/clang/2.9/include/mm_malloc.h:27:10: fatal error: 'errno.h' file not found #include ^ 1 error generated. Command 1: "FileCheck" "D:\public\zorg\buildbot\osuosl\slave\clang-i686-xp-msvc9\llvm\tools\clang\test\CodeGen\mmx-builtins.c" Command 1 Result: 1 Command 1 Output: Command 1 Stderr: D:\public\zorg\buildbot\osuosl\slave\clang-i686-xp-msvc9\llvm\tools\clang\test\CodeGen\mmx-builtins.c:6:12: error: expected string not found in input // CHECK: phaddw ^ :1:1: note: scanning from 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 Tue Oct 5 17:48:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 5 Oct 2010 17:48:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 8308] New: Module Verify is accepting bad LLVM IR Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8308 Summary: Module Verify is accepting bad LLVM IR Product: tools Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: opt AssignedTo: unassignedbugs at nondot.org ReportedBy: bnwest at rice.edu CC: llvmbugs at cs.uiuc.edu As seen at revision 115615, the following IR is bad yet verify accepts: define float @bug_loop_v2(float* %a, i32 %start, i32 %stop, i32 %incr) nounwind ssp { entry: %"alloca point" = bitcast i32 0 to i32 %0 = sub nsw i32 %start, 1 %1 = sext i32 %0 to i64 %2 = getelementptr float* %a, i64 %1 br label %bb1 bb: ; preds = %bb1 %3 = load float* %8, align 1 %4 = fadd float %3, %sum.0 %5 = getelementptr float* %8, %8 %6 = add i64 %9, %9 %7 = add nsw i32 %i.0, %i.0 br label %bb1 bb1: ; preds = %bb, %entry %8 = phi float* [ %2, %entry ], [ %5, %bb ] %9 = phi i64 [ %1, %entry ], [ %6, %bb ] %i.0 = phi i32 [ %0, %entry ], [ %7, %bb ] %sum.0 = phi float [ 0.000000e+00, %entry ], [ %4, %bb ] %10 = icmp slt i32 %i.0, %stop br i1 %10, label %bb, label %bb2 bb2: ; preds = %bb1 br label %return return: ; preds = %bb2 ret float %sum.0 } --- %5 = getelementptr float* %8, %8 is the bad IR. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 5 21:44:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 5 Oct 2010 21:44:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 8075] False positive with -Wuninitialized when accessing *static* class members In-Reply-To: References: Message-ID: <20101006024446.C5B412A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8075 Anders Carlsson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andersca at mac.com Resolution| |FIXED --- Comment #1 from Anders Carlsson 2010-10-05 21:44:46 CDT --- http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20101004/035173.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 Oct 5 22:30:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 5 Oct 2010 22:30:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 8307] Cannot compile mmx-builtins.c on MSVC In-Reply-To: References: Message-ID: <20101006033008.BDE642A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8307 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |wendling at apple.com Resolution| |DUPLICATE --- Comment #1 from Bill Wendling 2010-10-05 22:30:08 CDT --- This is apparently PR6658. *** This bug has been marked as a duplicate of bug 6658 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 5 22:33:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 5 Oct 2010 22:33:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 8307] Cannot compile mmx-builtins.c on MSVC In-Reply-To: References: Message-ID: <20101006033304.933C52A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8307 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|DUPLICATE | --- Comment #2 from Bill Wendling 2010-10-05 22:33:04 CDT --- Nope. PR6658 is different... -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 5 23:22:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 5 Oct 2010 23:22:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 8310] New: Assertion !Type.isNull() && "buitin va list type not initialized!" failed. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8310 Summary: Assertion !Type.isNull() && "buitin va list type not initialized!" failed. Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: jplevyak at acm.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5565) --> (http://llvm.org/bugs/attachment.cgi?id=5565) clang output including backtrace While compiling trunk of http://trafficserver.apache.org: svn http://svn.apache.org/repos/asf/trafficserver/ with the clang patch from: https://issues.apache.org/jira/browse/TS-427 https://issues.apache.org/jira/secure/attachment/12454729/ats-trunk.clang-trunk.patch See attached output including backtrace. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 5 23:51:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 5 Oct 2010 23:51:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 8311] New: test/CodeGen/X86/vec_cast.ll barfs with -mtriple=x86_64-(mingw32|win32) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8311 Summary: test/CodeGen/X86/vec_cast.ll barfs with -mtriple=x86_64-(mingw32|win32) Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: geek4civic at gmail.com CC: llvmbugs at cs.uiuc.edu vec_cast.ll has 2 actions below. ; RUN: llc < %s -march=x86-64 -mcpu=core2 ; RUN: llc < %s -march=x86-64 -mcpu=core2 -disable-mmx llc barfs on mingw(and maybe msvc) or with -mtriple=x86_64-(mingw32|win32). I guess this test might pass also for win64. On CentOS5(x86-64) $ Release+Asserts/bin/llc -mtriple=x86_64-win32 -mcpu=core2 < ~/llvm/test/CodeGen/X86/vec_cast.ll llc: /home/chapuni/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1345: llvm::SDValue::SelectionDAGLegalize::LegalizeOp(llvm::SDValue): Assertion `ExtType != ISD::EXTLOAD && "EXTLOAD should always be supported!"' failed. 0 llc 0x0000000000dd59af 1 llc 0x0000000000dd7c72 2 libpthread.so.0 0x00000039de00eb10 3 libc.so.6 0x00000039dd430265 gsignal + 53 4 libc.so.6 0x00000039dd431d10 abort + 272 5 libc.so.6 0x00000039dd4296e6 __assert_fail + 246 6 llc 0x0000000000982d32 7 llc 0x000000000097d5ae 8 llc 0x0000000000982790 9 llc 0x000000000098582a 10 llc 0x0000000000985fa5 llvm::SelectionDAG::Legalize(llvm::CodeGenOpt::Level) + 197 11 llc 0x000000000094aae3 llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 979 12 llc 0x000000000094d096 llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator, llvm::ilist_iterator, bool&) + 262 13 llc 0x000000000094d69f llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1487 14 llc 0x000000000094e1f8 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 248 15 llc 0x0000000000d1f47d llvm::FPPassManager::runOnFunction(llvm::Function&) + 557 16 llc 0x0000000000d1f57b llvm::FPPassManager::runOnModule(llvm::Module&) + 75 17 llc 0x0000000000d200d4 llvm::MPPassManager::runOnModule(llvm::Module&) + 500 18 llc 0x0000000000d20457 llvm::PassManagerImpl::run(llvm::Module&) + 167 19 llc 0x00000000005517bd main + 3581 20 libc.so.6 0x00000039dd41d994 __libc_start_main + 244 21 llc 0x000000000054f899 __gxx_personality_v0 + 697 Stack dump: 0. Program arguments: Release+Asserts/bin/llc -mtriple=x86_64-win32 -mcpu=core2 1. Running pass 'Function Pass Manager' on module ''. 2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@a' 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 Oct 6 02:29:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 6 Oct 2010 02:29:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 8312] New: clang doesn't handle -M/-MF properly Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8312 Summary: clang doesn't handle -M/-MF properly Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nicholas at mxc.ca CC: llvmbugs at cs.uiuc.edu, daniel at zuster.org There's a couple problems with the handling of the -MF flag. Let's compare with gcc 4.2: $ gcc-4.2 hello.c -M -MF hello.d -c -o hello.o $ file hello.d hello.o hello.d: ASCII text hello.o: empty $ rm hello.d hello.o $ clang hello.c -M -MF hello.d -c -o hello.o clang: warning: argument unused during compilation: '-MF hello.d' clang: warning: argument unused during compilation: '-c' $ llvm-commit/Debug+Asserts/bin/clang hello.c -MF hello.d -o hello.o $ file hello.d hello.o hello.d: ERROR: cannot open `hello.d' (No such file or directory) hello.o: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped I see two problems: - GCC requires either -M or -MM whenever -MF is specified. Clang forbids them. - Clang doesn't respect both -c and -M 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 Wed Oct 6 10:11:21 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 6 Oct 2010 10:11:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 8313] New: Use after free in the linker Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8313 Summary: Use after free in the linker Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Linker AssignedTo: unassignedbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu To reproduce: valgrind --num-callers=50 /home/espindola/llvm/build/Debug+Asserts/bin/llvm-link -o foo BasicBlock.o LLVMContextImpl.o Metadata.o Value.o -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 6 10:36:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 6 Oct 2010 10:36:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 8310] Assertion !Type.isNull() && "buitin va list type not initialized!" failed. In-Reply-To: References: Message-ID: <20101006153629.0AB7E2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8310 John Plevyak changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from John Plevyak 2010-10-06 10:36:28 CDT --- This bug was resolved. Tested in 115787. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 6 11:28:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 6 Oct 2010 11:28:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 8314] New: Incorrect code generated with prototypes and old-style function definitions. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8314 Summary: Incorrect code generated with prototypes and old-style function definitions. Product: clang Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nbowler at draconx.ca CC: llvmbugs at cs.uiuc.edu When using old-style function definitions, clang seems to be ignoring any prototypes that occur prior to the definition. This causes incorrect code to be generated because required conversions are not performed. Consider the following example: #include void foo(int); void foo(x) int x; { printf("%d\n", x); } int main(void) { /* The double argument here should be converted to int according to the prototype. */ foo(42.0); return 0; } But running clang test.c emits the following code for main: 0000000000400570
: 400570: 55 push %rbp 400571: 48 89 e5 mov %rsp,%rbp 400574: 48 83 ec 10 sub $0x10,%rsp 400578: b8 00 00 00 00 mov $0x0,%eax 40057d: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%rbp) 400584: f2 0f 10 05 04 01 00 movsd 0x104(%rip),%xmm0 # 400690 <_IO_stdin_used+0x8> 40058b: 00 40058c: 89 45 f8 mov %eax,-0x8(%rbp) 40058f: b0 01 mov $0x1,%al 400591: e8 aa ff ff ff callq 400540 400596: 8b 45 f8 mov -0x8(%rbp),%eax 400599: 48 83 c4 10 add $0x10,%rsp 40059d: 5d pop %rbp 40059e: c3 retq 40059f: 90 nop which, of course, means foo is passed whatever happened to be in %edi at the time, rather than 42 as expected (e.g., it prints the number of command-line arguments on my system). If the prototype is moved after the function definition, the program works properly. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Oct 6 12:48:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 6 Oct 2010 12:48:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 8315] New: Report error when applying a pointer-to-const-member-function to non-const object Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8315 Summary: Report error when applying a pointer-to-const-member-function to non-const object Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: benoit.belley at autodesk.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5573) --> (http://llvm.org/bugs/attachment.cgi?id=5573) Test case IClang fails to report an error when applying a pointer to a const member function to non-const reference or pointer as demonstrated by the following code example: ----------------------------------------------------------------------------------------------------- class ClassA {}; typedef void (ClassA::*PtrToMem)(); typedef void (ClassA::*PtrToConstMem)() const; void foo( ClassA a, const ClassA& a_const, ClassA* ap, const ClassA* ap_const, PtrToMem ptr_to_mem, PtrToConstMem ptr_to_const_mem ) { (a.*ptr_to_mem)(); (a.*ptr_to_const_mem)(); (a_const.*ptr_to_mem)(); // expected-error{{invalid conversion from 'const ClassA*' to 'ClassA*'}} (a_const.*ptr_to_const_mem)(); (ap->*ptr_to_mem)(); (ap->*ptr_to_const_mem)(); (ap_const->*ptr_to_mem)(); // expected-error{{invalid conversion from 'const ClassA*' to 'ClassA*'}} (ap_const->*ptr_to_const_mem)(); } ----------------------------------------------------------------------------------------------------- $ llvm/Debug+Asserts/bin/clang++ -c ptr_to_const_mem_bug.cpp $ ----------------------------------------------------------------------------------------------------- I am currently using the SVN revision 114947 of clang. Note that both the GNU g++ compiler and the Intel C++ compiler are properly reporting the errors: ----------------------------------------------------------------------------------------------------- $ g++ -c ptr_to_const_mem_bug.cpp ptr_to_const_mem_bug.cpp: In function 'void foo(ClassA, const ClassA&, ClassA*, const ClassA*, void (ClassA::*)(), void (ClassA::*)()const)': ptr_to_const_mem_bug.cpp:18: error: invalid conversion from 'const ClassA*' to 'ClassA*' ptr_to_const_mem_bug.cpp:24: error: invalid conversion from 'const ClassA*' to 'ClassA*? $ icpc -c ptr_to_const_mem_bug.cpp ptr_to_const_mem_bug.cpp(18): error: the object has cv-qualifiers that are not compatible with the member function object type is: const ClassA (a_const.*ptr_to_mem)(); // expected-error{{invalid conversion from 'const ClassA*' to 'ClassA*'}} ^ ptr_to_const_mem_bug.cpp(24): error: the object has cv-qualifiers that are not compatible with the member function object type is: const ClassA (ap_const->*ptr_to_mem)(); // expected-error{{invalid conversion from 'const ClassA*' to 'ClassA*'}} ^ compilation aborted for ptr_to_const_mem_bug.cpp (code 2) $ ----------------------------------------------------------------------------------------------------- Cheers, Benoit -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 6 17:00:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 6 Oct 2010 17:00:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 8317] New: X86InstrInfo::convertToThreeAddress violates register class constraints Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8317 Summary: X86InstrInfo::convertToThreeAddress violates register class constraints Product: libraries Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: stoklund at 2pi.dk CC: llvmbugs at cs.uiuc.edu X86InstrInfo::convertToThreeAddress can change an SHL instruction into an LEA. This can break register class constraints because LEA cannot take ESP as an offset while SHL can. LEA requires a GR32_NOSP register while SHL only requires a GR32. This is an academic exercise since ESP is always reserved anyway, so it doesn't cause any invalid code to be generated. It does break the machine code verifier, though. X86InstrInfo::convertToThreeAddress should switch the regclass of SrcReg from GR32 to GR32_NOSP, and we may want to use GR32_NOSP as the default class for i32 values. The same applies to GR64_NOSP. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 6 17:39:34 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 6 Oct 2010 17:39:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 8318] New: ARM EABI: inefficient code saving/restoring sp around function call Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8318 Summary: ARM EABI: inefficient code saving/restoring sp around function call Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: john at bass-software.com CC: llvmbugs at cs.uiuc.edu ToT & built both llvm-gcc and clang for arm-unknown-eabi target. This simple C program: --8<-- int foo(int a); int bar (int a) { return 5 + foo(a); } --8<-- Get compiled with clang as: $ clang -ccc-host-triple armv7-unknown-eabi -S -O3 -o test1.S test1.c && cat test1.S --8<-- .syntax unified .cpu cortex-a8 .eabi_attribute 10, 2 .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .file "test1.c" .text .globl bar .align 2 .type bar,%function bar: push {r11, lr} bl foo mov r11, sp <== ??? add r0, r0, #5 mov sp, r11 <== ??? ldmia sp!, {r11, pc} .Ltmp0: .size bar, .Ltmp0-bar --8<-- I.e. the save & restore of sp is very odd and unnecessary IMHO. When using llvm-gcc I don't get that output: $ arm-unknown-eabi-gcc -mcpu=cortex-a8 -O3 -S -O3 -o test1.S test1.c && cat test1.S --8<-- .syntax unified .cpu cortex-a8 .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .file "test1.c" .text .globl bar .align 2 .type bar,%function bar: push {r11, lr} bl foo add r0, r0, #5 ldmia sp!, {r11, pc} .Ltmp0: .size bar, .Ltmp0-bar .ident "GCC: (GNU) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build)" --8<-- -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Oct 6 19:07:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 6 Oct 2010 19:07:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 8317] X86InstrInfo::convertToThreeAddress violates register class constraints In-Reply-To: References: Message-ID: <20101007000752.F08432A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8317 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Jakob Stoklund Olesen 2010-10-06 19:07:52 CDT --- Fixed in r115879 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 6 20:55:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 6 Oct 2010 20:55:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 8319] New: clang -O can't build ruby trunk Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8319 Summary: clang -O can't build ruby trunk Product: clang Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: naruse at airemix.jp CC: llvmbugs at cs.uiuc.edu clang -O can't build ruby trunk, but clang -O0 can build ruby trunk. So it seems some optimization breaks ruby. Ruby's code can be obtain from http://svn.ruby-lang.org/ and I tried with following: -- Ruby: r29419 on x86_64-freebsd8.1 clang version 2.9 (trunk 115816) Target: x86_64-unknown-freebsd8.1 Thread model: posix -- And its build process will crashes like following: -- snipped... /home/naruse/local/llvm/bin/clang -O -g -Wall -pedantic -Wno-long-long -Wno-gnu -Wno-unknown-pragmas -fPIC -I. -I.ext/include/x86_64-freebsd8.1 -I../../src/ruby-trunk/include -I../../src/ruby-trunk -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT -o dmyext.o -c ../../src/ruby-trunk/dmyext.c /home/naruse/local/llvm/bin/clang -O -g -Wall -pedantic -Wno-long-long -Wno-gnu -Wno-unknown-pragmas -fPIC -L. -rdynamic main.o dmydln.o dmyencoding.o dmyversion.o miniprelude.o array.o bignum.o class.o compar.o complex.o dir.o dln_find.o enum.o enumerator.o error.o eval.o load.o proc.o file.o gc.o hash.o inits.o io.o marshal.o math.o node.o numeric.o object.o pack.o parse.o process.o random.o range.o rational.o re.o regcomp.o regenc.o regerror.o regexec.o regparse.o regsyntax.o ruby.o safe.o signal.o sprintf.o st.o strftime.o string.o struct.o time.o transcode.o util.o variable.o compile.o debug.o iseq.o vm.o vm_dump.o thread.o cont.o ascii.o us_ascii.o unicode.o utf_8.o newline.o close.o dmyext.o -lthr -lrt -lcrypt -lm -o miniruby clang: warning: argument unused during compilation: '-g' clang: warning: argument unused during compilation: '-rdynamic' /usr/local/bin/ld: error in /usr/lib/crtend.o(.eh_frame); no .eh_frame_hdr table will be created. :1: [BUG] Segmentation fault ruby 1.9.3dev (2010-10-07 trunk 29420) [x86_64-freebsd8.1] -- control frame ---------- c:0003 p:0002 s:0006 b:0006 l:000005 d:000005 TOP :1 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH c:0001 p:0000 s:0002 b:0002 l:0008e8 d:0008e8 TOP --------------------------- -- Ruby level backtrace information ---------------------------------------- :1:in `' [NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html *** Signal 6 Stop in /home/naruse/obj/ruby-clang. -- The crashed binary, miniruby, is a ruby subset binary to make full ruby's files. In my understanding, it is happend on insns.def:868. -- 860 DEFINE_INSN 861 trace 862 (rb_num_t nf) 863 () 864 () 865 { 866 rb_event_flag_t flag = (rb_event_flag_t)nf; 867 868 EXEC_EVENT_HOOK(th, flag, GET_SELF(), 0, 0 /* TODO: id, klass */); 869 } -- And this GET_SELF() is:vm_insnhelper.h:146: #define GET_SELF() (USAGE_ANALYSIS_REGISTER_HELPER(5, 0, GET_CFP()->self)) GET_CFP() is: 112 #define GET_CFP() (USAGE_ANALYSIS_REGISTER_HELPER(2, 0, REG_CFP)) REG_CFP is: 81 #define REG_CFP (reg_cfp) This reg_cfp's value is vanished on clang -O, and crash. If I change Ruby's code as it uses reg_cfp before this, clang seems not optimize reg_cfp and ruby works well. --- insns.def (revision 29420) +++ insns.def (working copy) @@ -864,6 +864,7 @@ () { rb_event_flag_t flag = (rb_event_flag_t)nf; + if (!reg_cfp) sleep(1); EXEC_EVENT_HOOK(th, flag, GET_SELF(), 0, 0 /* TODO: id, klass */); } -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 6 21:24:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 6 Oct 2010 21:24:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 8320] New: PECOFF: IMAGE_SYM_DTYPE_FUNCTION is incompatible to GNU binutils Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8320 Summary: PECOFF: IMAGE_SYM_DTYPE_FUNCTION is incompatible to GNU binutils Product: libraries Version: trunk Platform: PC OS/Version: Windows XP Status: ASSIGNED Severity: normal Priority: P Component: Backend: X86 AssignedTo: bigcheesegs at gmail.com ReportedBy: geek4civic at gmail.com CC: llvmbugs at cs.uiuc.edu GNU ld/PECOFF assumes .type 0x20 for function. LLVM emits .type 0x200, and GNU ld complains with warnings. (it might be harmless for execution) | c:/msysgit/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: Warning: type of symbol `_main' changed from 32 to 512 in utils/not/Release/not.o in include/llvm/Support/COFF.h, IMAGE_SYM_DTYPE_FUNCTION = 2, ///< A function that returns a base type. /// Type is formed as (base + (derived << SCT_COMPLEX_TYPE_SHIFT)) SCT_COMPLEX_TYPE_SHIFT = 8 it should be not 8 but 4 for compatibility to GNU binutils. FYI I have never met .type 0x200 even in object files emitted by MSVS8. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 6 22:04:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 6 Oct 2010 22:04:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 8321] New: MC-COFF: bogus reloc fixups to disp8/32 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8321 Summary: MC-COFF: bogus reloc fixups to disp8/32 Product: libraries Version: trunk Platform: PC OS/Version: Windows XP Status: ASSIGNED Severity: normal Priority: P Component: Backend: X86 AssignedTo: bigcheesegs at gmail.com ReportedBy: geek4civic at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5576) --> (http://llvm.org/bugs/attachment.cgi?id=5576) pecoff object file w/o mc ; foo.ll define void @foo() { e: br label %i i: br label %i } define void @bar() { e: br label %i i: br label %i } define void @baz() { e: call void @baz() ret void } $ llc < foo.ll | as -o as-foo.o $ llc -filetype=obj foo.ll -o mc-foo.o * Disassembly of as-foo.o: 00000000 <_foo>: 0: eb fe jmp 0 <_foo> 00000010 <_bar>: 10: eb fe jmp 10 <_bar> 00000020 <_baz>: 20: 83 ec 04 sub $0x4,%esp 23: e8 f8 ff ff ff call 20 <_baz> 28: 83 c4 04 add $0x4,%esp 2b: c3 ret * Disassembly of mc-foo.o: 00000000 <_foo>: 0: e9 00 00 00 00 jmp 5 <_foo+0x5> 00000010 <_bar>: 10: e9 10 00 00 00 jmp 25 <_baz+0x5> 00000020 <_baz>: 20: 83 ec 04 sub $0x4,%esp 23: e8 00 00 00 00 call 28 <_baz+0x8> 28: 83 c4 04 add $0x4,%esp 2b: c3 ret mc-foo.o has also *unneeded* relocations. RELOCATION RECORDS FOR [.text]: OFFSET TYPE VALUE 00000001 DISP32 .text 00000011 DISP32 .text 00000024 DISP32 _baz+0xffffffe0 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 6 22:07:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 6 Oct 2010 22:07:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 8322] New: Clang 2.8 Compile fails with: "address of overloaded function 'XXX' cannot be converted to type 'YYY' ", succeeds in GCC 4.4.1 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8322 Summary: Clang 2.8 Compile fails with: "address of overloaded function 'XXX' cannot be converted to type 'YYY' ", succeeds in GCC 4.4.1 Product: clang Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: andy.somerville at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5578) --> (http://llvm.org/bugs/attachment.cgi?id=5578) attachment version of failure example to make downloading easier A somewhat complex code fails with: error: address of overloaded function 'XXX' cannot be converted to type 'YYY' Full details: c++ src/failure.cpp src/failure.cpp:19:65: error: address of overloaded function 'defaultMessageCreateFunction' cannot be converted to type 'function ()> const' const function(void)>& factory_fn = defaultMessageCreateFunction) {} ^ src/failure.cpp:30:13: note: in instantiation of default function argument expression for 'init' required here ops.template init(bind(fp, obj, _1)); ^ src/failure.cpp:43:13: note: in instantiation of function template specialization 'Foo::subscribe' requested here foo.subscribe( &FailureCase::callback, this); ^ src/failure.cpp:19:52: note: passing argument to parameter 'factory_fn' here const function(void)>& factory_fn = defaultMessageCreateFunction) {} ^ 1 error generated. src/failure.cpp (requires boost) //////////////////////////////////////////////////////////////// #include #include #include #include using namespace boost; template inline shared_ptr defaultMessageCreateFunction() { return make_shared(); } struct SubscribeOptions { template void init(const function&)>& _callback, const function(void)>& factory_fn = defaultMessageCreateFunction) {} }; class Foo { public: template void subscribe( void(T::*fp)(const shared_ptr&), T* obj) { SubscribeOptions ops; ops.template init(bind(fp, obj, _1)); } }; class FailureCase { class MessageType {}; typedef shared_ptr MessageTypeConstPtr; public: FailureCase() { foo.subscribe( &FailureCase::callback, this); } void callback(const MessageTypeConstPtr& msg) {} Foo foo; }; int main() { FailureCase failureCase; 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 Thu Oct 7 01:30:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 7 Oct 2010 01:30:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 8251] MC-COFF: GlobalAlias is not emitted In-Reply-To: References: Message-ID: <20101007063016.D11882A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8251 Michael Spencer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from Michael Spencer 2010-10-07 01:30:16 CDT --- Fixed in r115909. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 7 05:11:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 7 Oct 2010 05:11:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 8323] New: ScheduleDAGSDNodes.cpp:301: ... "Node already inserted!" Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8323 Summary: ScheduleDAGSDNodes.cpp:301: ... "Node already inserted!" Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: Edmund.Grimley-Evans at arm.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5580) --> (http://llvm.org/bugs/attachment.cgi?id=5580) Patch to demonstrate bug I think this demonstrates a bug in the part of LLVM that handles Selection DAGs. Unfortunately I can't demonstrate it without patching LLVM. However, it's a small patch, so someone with the appropriate experience can probably say very quickly whether the patch itself is buggy. This started off as a much larger patch that did something useful. I've reduced it to a simple but silly patch that shows the same problem. Some notes on the patch: include/llvm/IntrinsicsARM.td: Add three intrinsics: magic_read, magic_test_eq and magic_test_lt, which each map i32 to i32. lib/Target/ARM/ARMISelLowering.h: Add three new DAG nodes: MAGIC_TEST (set the flags), MAGIC_MRS (move flags to register), MAGIC_MSR (move register to flags). lib/Target/ARM/ARMInstrThumb2.td: Add an instruction for MAGIC_TEST. We don't need instructions for the other two nodes as a peephole will remove them. lib/Target/ARM/ARMISelLowering.cpp: Two things: 1. In LowerINTRINSIC_WO_CHAIN map magic_read to MAGIC_TEST followed by MAGIC_MRS, and map magic_test_?? to MAGIC_MSR followed by a CMOV. 2. In PerformDAGCombine shortcircuit magic_MRS followed by magic_MSR. Now consider an example with magic_read followed by magic_test_eq: // Debug+Asserts/bin/llc t1.ll define arm_aapcscc i32 @f13(i32 %a) nounwind readnone { entry: %0 = tail call i32 @llvm.arm.magic.read(i32 %a) %1 = tail call i32 @llvm.arm.magic.test.eq(i32 %0) ret i32 %1 } This gets mapped to a sequence of MAGIC_TEST, MAGIC_MRS, MAGIC_MSR, CMOV. The peephole removes the MRS and MSR, and we're left with MAGIC_READ followed by CMOV, which turns into: magic_test r0 mov.w r0, #0 it eq moveq r0, #1 bx lr That's exactly what we expect. But now consider an example where the output of magic_read is used by both magic_test_eq and magic_test_lt: // Debug+Asserts/bin/llc t2.ll define arm_aapcscc i32 @f13(i32 %a) nounwind readnone { entry: %0 = tail call i32 @llvm.arm.magic.read(i32 %a) %1 = tail call i32 @llvm.arm.magic.test.eq(i32 %0) %2 = tail call i32 @llvm.arm.magic.test.lt(i32 %0) %add = add nsw i32 %2, %1 ret i32 %add } Now we get the assertion failure: llc: ScheduleDAGSDNodes.cpp:301: void llvm::ScheduleDAGSDNodes::BuildSchedUnits(): Assertion `N->getNodeId() == -1 && "Node already inserted!"' failed. Can anyone confirm that this represents 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 Thu Oct 7 07:13:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 7 Oct 2010 07:13:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 8324] New: llvm-config --libdir results in wrong output on most 64-bit Linux systems Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8324 Summary: llvm-config --libdir results in wrong output on most 64-bit Linux systems Product: tools Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: llvm-config AssignedTo: unassignedbugs at nondot.org ReportedBy: bero at arklinux.org CC: llvmbugs at cs.uiuc.edu Most 64-bit Linux systems place their (native 64bit) libraries in /usr/lib64, keeping /usr/lib for 32bit libraries for compatibility with legacy applications. llvm libraries are no exception - they're generally installed in /usr/lib64 llvm-config.in.in, line 69, however, hardcodes the assumption that things are installed to $ABS_RUN_DIR/lib, causing it to output wrong values if it should be $ABS_RUN_DIR/lib64 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 7 07:21:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 7 Oct 2010 07:21:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 8325] New: Error on throwing pointer to pointee with non public destructor Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8325 Summary: Error on throwing pointer to pointee with non public destructor Product: clang Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: beckmann.maik at googlemail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com When throwing a pointer, clang wants the dtor of the pointee to be public. class Error { virtual ~Error() {} public: // uses decref() and incref() for reference counting }; void throwing() { throw new Error; } int main(int argc, char *argv[]) { try { throwing(); } catch (Error* e) { } return 0; } // clang++ -o test test.cpp // test.cpp:8:9: error: exception object of type 'Error' has private destructor // throw new Error; // ^ // test.cpp:2:11: note: declared private here // virtual ~Error() {} // ^ // 1 error generated. % clang++ --version clang version 2.8 (branches/release_28) Target: x86_64-unknown-linux-gnu Thread model: posix -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Oct 7 08:34:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 7 Oct 2010 08:34:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 8326] New: const union member in template class gives invalid error Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8326 Summary: const union member in template class gives invalid error Product: clang Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ext-llvm.org at sidvind.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5583) --> (http://llvm.org/bugs/attachment.cgi?id=5583) test case const_union_member.cpp:5:3: error: constructor for 'Foo' must explicitly initialize the const member '' Foo() ^ const_union_member.cpp:21:12: note: in instantiation of member function 'Foo::Foo' requested here Foo baz; ^ const_union_member.cpp:11:9: note: '' declared here const union { Both gcc and msvc accepts the code, and no error is generated if const or template is dropped. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 7 08:39:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 7 Oct 2010 08:39:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 7981] -Wformat gives erronous warning for %lc In-Reply-To: References: Message-ID: <20101007133901.D11732A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7981 Dan McGee changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |dan at archlinux.org Resolution|FIXED | --- Comment #4 from Dan McGee 2010-10-07 08:39:01 CDT --- Not fixed in clang 2.8, I hope I'm not in error reopening this: Test case: $ cat test.c #include #include int main(int argc, char *argv[]) { wchar_t foo; foo = L't'; printf("%lc", foo); printf("%lc", (wint_t)foo); } $ gcc test.c && ./a.out tt $ clang test.c && ./a.out test.c:9:12: warning: conversion specifies type 'int' but the argument has type 'wint_t' (aka 'unsigned int') [-Wformat] printf("%lc", (wint_t)foo); ~~^ ~~~~~~~~~~~ %u 1 warning generated. tt $ clang --version clang version 2.8 (branches/release_28) Target: x86_64-unknown-linux-gnu Thread model: posix This compiled without warnings in clang 2.7. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Oct 7 09:24:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 7 Oct 2010 09:24:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 8327] New: LLVM miscompiles va_arg() on 64-bit PowerPC, truncating address to 32 bits Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8327 Summary: LLVM miscompiles va_arg() on 64-bit PowerPC, truncating address to 32 bits Product: new-bugs Version: trunk Platform: Macintosh OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: nwhitehorn at freebsd.org CC: llvmbugs at cs.uiuc.edu On 64-bit PowerPC, LLVM trunk (r115623) miscompiles va_arg: %3 = va_arg i8** %foo, i8* ; [#uses=2] to this code: lis 3, 8191 ori 3, 3, 65535 # r3 now contains 0x1ffffff ld 4, 296(31) # address of foo in r4 addi 4, 4, 7 # some kind of rounding with the next masking? sldi 3, 3, 3 # r3 is now mask 0xfffffff8 and 3, 4, 3 # and with r4, truncating foo to 8-byte alignment # (and killing top 32 bits) addi 4, 3, 8 # increment foo (r4) to next VA arg std 4, 296(31) # store back to foo Because the generated mask is only 32 bits wide, anding it with the VA arg pointer has the effect of zeroing the high 32-bits, causing a seg fault. I'm not entirely sure why it goes to the trouble of all the rounding code here, but the mask should at least be 64 bits on this platform. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 7 09:33:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 7 Oct 2010 09:33:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 8328] New: Unable to call method of incomplete class Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8328 Summary: Unable to call method of incomplete class Product: clang Version: trunk Platform: Other OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: yuri at tsoft.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase below fails with the message: error: cannot dereference pointer into incomplete class type 'D' This is wrong. There is no problem in calling such method at all since the class itself isn't used in the process. Such pattern may be used by various projects and should compile fine. It works in gcc. rev.115483 --- testcase --- class D; typedef void (D::*Fn)(); void f(D *d, Fn fn) { (d->*fn)(); } -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 7 10:19:49 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 7 Oct 2010 10:19:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 8329] New: getDefaultArgRange() returns empty SourceRange Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8329 Summary: getDefaultArgRange() returns empty SourceRange Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: bugzilla-clang at sogetthis.com CC: llvmbugs at cs.uiuc.edu When getDefaultArgRange() is called for any ParmVarDecl the resulting SourceRange's beginning and end are equal. Both refer to the start of the actual default argument. To get the real source range one has to adapt the end of the range via Lexer::MeasureTokenLength(). Nevertheless the documentation for getDefaultArgRange() claims it will "Retrieve the source range that covers the entire default argument." which is IMHO outright wrong. So either the method needs to return the correct source range or the comment and probably the method name need to be changed according to what it actually does, e.g. getDefaultSourceLocation(). example ------- void bluh(const ParmVarDecl& p, const SourceManager& sm) { if(p.hasDefaultArg()) { clang::SourceRange range = p.getDefaultArgRange(); range.getBegin().print(llvm::errs(), sm); llvm::errs() << " - "; range.getEnd().print(llvm::errs(), sm); llvm::errs() << "'\n"; } } when wrapped and executed for this code $ cat test.cpp void blah(int a = 1); prints test.cpp:1:22 - test.cpp:1:22 expected output test.cpp:1:22 - test.cpp:1:23 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 7 13:32:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 7 Oct 2010 13:32:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 8330] New: tblgen isn't sufficiently meta Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8330 Summary: tblgen isn't sufficiently meta Product: tools Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: TableGen AssignedTo: unassignedbugs at nondot.org ReportedBy: clattner at apple.com CC: llvmbugs at cs.uiuc.edu This crashes tblgen: ------ class Or4 Val> { bits<8> V = {Val{7}, Val{6}, Val{5}, Val{4}, Val{3}, 1, Val{1}, Val{0} }; } class Whatev x>; multiclass X BaseOpc> { def bar : Whatev.V >; } defm a : X<4>; ------ The problem is that tblgen needs to complete the instantiation of the anonymous def "Or4", and when it does this there are still symbolic references to BaseOpC. TableGen doesn't have a way to represent this and helpfully responds by crashing. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Oct 7 13:36:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 7 Oct 2010 13:36:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 8331] New: The return value of realloc should be checked before the next write Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8331 Summary: The return value of realloc should be checked before the next write Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: tom.care at uqconnect.edu.au ReportedBy: tom.care at uqconnect.edu.au CC: kremenek at apple.com, llvmbugs at cs.uiuc.edu After a realloc, the return value should be null checked, especially if there is an offset write to the pointer afterwards. A checker for this should be relatively simple. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 7 14:29:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 7 Oct 2010 14:29:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 8332] New: llvm-gcc inline asm regression wrt 2.7 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8332 Summary: llvm-gcc inline asm regression wrt 2.7 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 Both gcc and llvm-gcc from LLVM 2.7 accept this, however latest llvm-gcc says: $ llvm-gcc -S asm-4.c error: invalid operand in inline asm: 'test2 X${0:a}Y${0:a}Z' This is on x86-64 linux. Testcase: int main() { int z; asm volatile ("test2 X%a0Y%a[arg]Z" : : [arg] "p" (&z)); } -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 7 17:26:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 7 Oct 2010 17:26:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 8333] New: 0 size allocations Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8333 Summary: 0 size allocations Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P Component: Static Analyzer AssignedTo: tom.care at uqconnect.edu.au ReportedBy: tom.care at uqconnect.edu.au CC: kremenek at apple.com, llvmbugs at cs.uiuc.edu Allocations with a size of 0 are easy bugs to find. See http://hackitoergosum.org/wp-content/uploads/2010/04/HES10-jvanegue_zero-allocations.pdf for examples. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Oct 7 18:58:12 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 7 Oct 2010 18:58:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 8321] MC-COFF: bogus reloc fixups to disp8/32 In-Reply-To: References: Message-ID: <20101007235812.ADAA32A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8321 Michael Spencer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from Michael Spencer 2010-10-07 18:58:12 CDT --- Fixed in r116013. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 7 19:56:21 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 7 Oct 2010 19:56:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 8334] New: Wrong template parameter is used for default copy constructor of template class Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8334 Summary: Wrong template parameter is used for default copy constructor of template class Product: clang Version: trunk Platform: Other OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: yuri at tsoft.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com In the attached example stl::list is redefined in different namespace with different allocator. Auto-generated copy constructor has wrong allocator template parameter and fails in STL code: In file included from /usr/include/c++/4.2/list:69: /usr/include/c++/4.2/bits/stl_list.h:1179:30: error: invalid operands to binary expression ('_Node_alloc_type' (aka 'my_alloc >') and '_Node_alloc_type') if (_M_get_Node_allocator() != __x._M_get_Node_allocator()) ~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 7 22:17:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 7 Oct 2010 22:17:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 8320] PECOFF: IMAGE_SYM_DTYPE_FUNCTION is incompatible to GNU binutils In-Reply-To: References: Message-ID: <20101008031743.554A72A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8320 Michael Spencer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #1 from Michael Spencer 2010-10-07 22:17:42 CDT --- The correct value is indeed x20. Microsoft's documentation is contradictory, but previous COFF standards all support a one byte type instead of two bytes. Fixed in r116037. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 8 06:22:55 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 8 Oct 2010 06:22:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 8335] New: MC-COFF: Wrong section header with module asm ".text" Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8335 Summary: MC-COFF: Wrong section header with module asm ".text" Product: libraries Version: trunk Platform: PC OS/Version: Windows XP Status: ASSIGNED Severity: normal Priority: P Component: Backend: X86 AssignedTo: bigcheesegs at gmail.com ReportedBy: geek4civic at gmail.com CC: llvmbugs at cs.uiuc.edu foo.ll: module asm ".text" module asm "_foo:" module asm "ret" $ llc -filetype=obj foo.ll $ objdump -x foo.o BFD: asm.o (.text): Section flag STYP_DSECT (0x1) ignored BFD: asm.o (.text): Section flag STYP_DSECT (0x1) ignored C:\msysgit\mingw\bin\objdump.exe: asm.o: File format not recognized Sections = [ 1 = { Name = .text VirtualSize = 0 VirtualAddress = 0 SizeOfRawData = 1 PointerToRawData = 0x3C PointerToRelocations = 0x0 PointerToLineNumbers = 0x0 NumberOfRelocations = 0 NumberOfLineNumbers = 0 Charateristics = 0x100001 IMAGE_SCN_ALIGN_1BYTES SectionData = C3 |.| Relocations = None } ] Module asm is used in X86JITInfo.cpp. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Oct 8 09:26:49 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 8 Oct 2010 09:26:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 8336] New: clang hangs while optimizing a snippet of C code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8336 Summary: clang hangs while optimizing a snippet of C code Product: clang Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pipping at exherbo.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5590) --> (http://llvm.org/bugs/attachment.cgi?id=5590) minimal working example I've tried to compile wpa_supplicant with clang 2.8. I believe this worked with clang 2.7, it certainly does with gcc 4.4.4. While compiling src/crypto/sha256.c, clang appears to hang (or take insanely long with 100% cpu load) This does not happen with gcc 4.4.4, or when optimization is turned of (-O1 hangs, -O0 does not). I believe it also didn't happen with clang 2.7 although I'm not sure. I've attached a minimal working example. I'm on amd64 linux 2.6.35.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 Fri Oct 8 09:27:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 8 Oct 2010 09:27:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 8337] New: Dereference of null pointer Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8337 Summary: Dereference of null pointer Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: zdenek.kabelac at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5591) --> (http://llvm.org/bugs/attachment.cgi?id=5591) source file of problematic match Bug reported by the clang static analyzer. Description: Dereference of null pointer File: lvm2.git/daemons/clvmd/clvmd.c Line: 500 this is false positive - as could be seen from source - few lines above - there is check of ptr clops - and child_init_signal(status) with non-zero status parameter runs exit(status) - thus could never reach given condition -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 8 10:18:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 8 Oct 2010 10:18:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 3406] [loop-index-split] llvm::SplitCriticalEdge can't update DomFrontier info without DomTree info In-Reply-To: References: Message-ID: <20101008151833.239902A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3406 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dpatel at apple.com Resolution| |INVALID --- Comment #3 from Devang Patel 2010-10-08 10:18:32 CDT --- LoopIndexSplit pass has been removed from svn. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 8 10:19:10 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 8 Oct 2010 10:19:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 7933] Loop Index Split pass changes semantics of source program In-Reply-To: References: Message-ID: <20101008151910.86CCC2A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7933 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED CC| |dpatel at apple.com Resolution| |INVALID --- Comment #4 from Devang Patel 2010-10-08 10:19:09 CDT --- LoopIndexSplit pass has been removed from svn. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 8 10:20:03 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 8 Oct 2010 10:20:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 3089] Apparent miscompilation with -loop-index-split -loop-rotate -loop-reduce In-Reply-To: References: Message-ID: <20101008152003.3BEA62A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3089 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #6 from Devang Patel 2010-10-08 10:20:02 CDT --- LoopIndexSplit pass has been removed from svn. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 8 10:55:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 8 Oct 2010 10:55:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 8338] New: MC-COFF: section.bss always has .size as 0 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8338 Summary: MC-COFF: section.bss always has .size as 0 Product: libraries Version: trunk Platform: PC OS/Version: Windows NT Status: ASSIGNED Severity: normal Priority: P Component: Backend: X86 AssignedTo: bigcheesegs at gmail.com ReportedBy: geek4civic at gmail.com CC: llvmbugs at cs.uiuc.edu It seems mccoff emits .bss with size 0 in section headers. In getSectionFileSize(), *virtual* section is treated as size zero. A trivial patch. Now I can build FileCheck.exe and tblgen.exe with clang++ -integrated-as. opt.exe, clang.exe &c still crash for me. --- a/lib/MC/WinCOFFObjectWriter.cpp +++ b/lib/MC/WinCOFFObjectWriter.cpp @@ -799,7 +799,7 @@ void WinCOFFObjectWriter::WriteObject(MCAssembler &Asm, if (Sec->Number == -1) continue; - Sec->Header.SizeOfRawData = Layout.getSectionFileSize(i); + Sec->Header.SizeOfRawData = Layout.getSectionAddressSize(i); if (IsPhysicalSection(Sec)) { Sec->Header.PointerToRawData = offset; -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 8 11:33:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 8 Oct 2010 11:33:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 8339] New: Clang driver has trouble parsing Gentoo-built linker version string Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8339 Summary: Clang driver has trouble parsing Gentoo-built linker version string Product: clang Version: trunk Platform: PC OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: cdavis at mymail.mines.edu CC: llvmbugs at cs.uiuc.edu Daniel, have I got a pathological driver test case for you. I have a Gentoo prefix installed on one of my systems. As you may or may not know, this is a setup where a Gentoo directory tree is installed in some other directory on the system. This being Gentoo, they insist on building everything, including the compiler and linker, from source. Since the linker gets built from source (with patches), the version string is modified like so: chip at chips-computer-3 ~ $ ld -v @(#)PROGRAM:ld PROJECT:ld64-97.14 (Gentoo binutils-apple-3.2.3-r1) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Note the added part in parentheses (with Clang-style emphasis added by me). This isn't present in normal Apple builds of the linker. Unfortunately, the -mlinker-version argument barfs on this when the driver passes it to the frontend. This causes the tests Driver/hello.c and Driver/nostdincxx.cpp to fail horribly. I think we need to chop off the part in the parentheses when we build the driver. What do you think? -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 8 12:10:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 8 Oct 2010 12:10:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 8340] New: Is vector size zero allowed? Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8340 Summary: Is vector size zero allowed? Product: Documentation Version: trunk Platform: Other OS/Version: All Status: NEW Keywords: documentation Severity: normal Priority: P Component: General docs AssignedTo: unassignedbugs at nondot.org ReportedBy: llvm at henning-thielemann.de CC: llvmbugs at cs.uiuc.edu The documentation at http://www.llvm.org/docs/LangRef.html#t_vector says, that the vector size is an integer. This suggests that the size can also be negative, but I think this is not intended. Nonetheless the question remains, whether vectors of size 0 are allowed or not. Vectors exist merely for optimization purposes, which is different from arrays. I use vectors for chunking arrays for optimization reasons. In this context vectors of size zero make no sense. In the Haskell interface to LLVM I like to have precise type constraints, that is, if vectors of size zero are forbidden, then the type checker shall reject vectors of size zero. If size zero is allowed, then the type checker shall allow size zero 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 Fri Oct 8 15:50:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 8 Oct 2010 15:50:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 6955] [designated inits] crash when compiling arch/x86/kernel/cpu/common.c from linux kernel In-Reply-To: References: Message-ID: <20101008205029.B01922A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6955 Alp Toker changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #6 from Alp Toker 2010-10-08 15:50:28 CDT --- Landed r116098. Thanks dgregor! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 8 15:57:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 8 Oct 2010 15:57:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 6537] codegen hack due to designated init AST bug In-Reply-To: References: Message-ID: <20101008205736.97A2F2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6537 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #9 from Douglas Gregor 2010-10-08 15:57:34 CDT --- Fixed in r116098 by Alp Toker, hack removed in r116101. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 8 16:04:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 8 Oct 2010 16:04:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 8341] New: lit.site.cfg doesn't specify character encoding. python complains on unicode paths. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8341 Summary: lit.site.cfg doesn't specify character encoding. python complains on unicode paths. Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: bigcheesegs at gmail.com CC: llvmbugs at cs.uiuc.edu SyntaxError: Non-ASCI character '\xc3' in file /llvm-2.8/tools/clang/test/lit.site.cfg on line 3, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details. Where was some unicode path. The fix in this case was to add: # -*- coding: utf-8 -*- But I'm not sure this is correct in the general case. People use other encodings than utf-8. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Oct 8 16:27:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 8 Oct 2010 16:27:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 8329] getDefaultArgRange() returns incomplete SourceRange In-Reply-To: References: Message-ID: <20101008212748.20A622A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8329 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Douglas Gregor 2010-10-08 16:27:47 CDT --- Clang is behaving correctly. See http://lists.cs.uiuc.edu/pipermail/cfe-dev/2010-August/010595.html for an explanation of how source ranges 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 Fri Oct 8 17:55:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 8 Oct 2010 17:55:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 8342] New: Direct-initialization of class object by its own class Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8342 Summary: Direct-initialization of class object by its own class Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: schaub-johannes at web.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Clang does not like the following code struct A { A(int) { } explicit A(A const&) { } }; int main() { A a = 1; } The copy of the created A temporary to "a" is direct-initialization and so needs to consider the explicit copy constructor. But clang says main1.cpp:7:5: error: no viable constructor copying variable of type 'A' -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 8 18:32:03 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 8 Oct 2010 18:32:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 8343] New: [MC] No support for COFF assembly. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8343 Summary: [MC] No support for COFF assembly. Product: libraries Version: trunk Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: bigcheesegs at gmail.com CC: llvmbugs at cs.uiuc.edu Blocks: 8335 There is currently no support in MC for parsing COFF assembly. Add it. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Oct 8 20:06:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 8 Oct 2010 20:06:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 8344] New: Scoped over.built OO_Conditional enum fix Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8344 Summary: Scoped over.built OO_Conditional enum fix Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: alp at nuanti.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com r116122 added C++0x scoped enum support. This is similar to our implementation (which we never got round to upstreaming, need to find a way to push these patches and get them reviewed faster), but we have an additional fix covering C++ [over.built]p25 which I've updated to ToT and attached to 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 Fri Oct 8 20:40:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 8 Oct 2010 20:40:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 8345] New: Failure to compile templated atomic Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8345 Summary: Failure to compile templated atomic Product: clang Version: 2.8 Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: dustin at spy.net CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com I've got a class that wraps __sync_* functions and provides atomics of various types. This fails to compile with clang if I use it with more than one type. templated-atomic.cc:10:37: error: cannot initialize a parameter of type 'long long volatile *' with an rvalue of type 'int volatile *' return __sync_add_and_fetch(&value, 1); ^~~~~~ templated-atomic.cc:21:5: note: in instantiation of member function 'Atomic::operator++' requested here ++ai; ^ 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 Oct 9 06:01:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 9 Oct 2010 06:01:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 8343] [MC] No support for COFF assembly. In-Reply-To: References: Message-ID: <20101009110139.0FB7B2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8343 Michael Spencer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Michael Spencer 2010-10-09 06:01:38 CDT --- Fixed in r116150. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 9 10:44:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 9 Oct 2010 10:44:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 8335] MC-COFF: Wrong section header with module asm ".text" In-Reply-To: References: Message-ID: <20101009154446.304412A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8335 Michael Spencer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #2 from Michael Spencer 2010-10-09 10:44:45 CDT --- Fixed in r116151. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 9 11:05:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 9 Oct 2010 11:05:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 8338] MC-COFF: section.bss always has .size as 0 In-Reply-To: References: Message-ID: <20101009160505.76FAA2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8338 Michael Spencer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #1 from Michael Spencer 2010-10-09 11:05:05 CDT --- Fixed in r116115. Got any more bugs? :P -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 9 15:18:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 9 Oct 2010 15:18:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 8346] New: clang under windows/mingw inserts visible standard library functions into object files Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8346 Summary: clang under windows/mingw inserts visible standard library functions into object files Product: clang Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ambrop7 at gmail.com CC: llvmbugs at cs.uiuc.edu > clang -O2 -c x.c > clang -O2 -c y.c > clang -o a.exe x.o y.o (or gcc) y.o:fake:(.text+0x0): multiple definition of `strncasecmp' x.o:fake:(.text+0x0): first defined here y.o:fake:(.text+0x10): multiple definition of `strcasecmp' x.o:fake:(.text+0x10): first defined here collect2: ld returned 1 exit status clang: error: linker (via gcc) command failed with exit code 1 (use -v to see in vocation) How I set up clang: Downloaded a 32-bit compiler from http://mingw-w64.sourceforge.net/ which I unpacked to c:\\mingw. Installed clang with: > set PATH=%PATH%;c:\mingw\bin > cmake ..\llvm -G "MinGW Makefiles" -DC_INCLUDE_DIRS=C:\\mingw\\i686-w64-mingw32\\include > mingw32-make install Did this before running the above clang commands: > set PATH=%PATH%;c:\mingw\bin;C:\Program Files\LLVM\bin Also made the following change to llvm to get it to compile: --- lib/System/Win32/DynamicLibrary.inc (revision 116150) +++ lib/System/Win32/DynamicLibrary.inc (working copy) @@ -49,13 +49,11 @@ extern "C" { // Use old callback if: -// - Not using Visual Studio // - Visual Studio 2005 or earlier but only if we are not using the Windows SDK // or Windows SDK version is older than 6.0 -// Use new callback if: -// - Newer Visual Studio (comes with newer SDK). -// - Visual Studio 2005 with Windows SDK 6.0+ -#if !defined(_MSC_VER) || _MSC_VER < 1500 && (!defined(VER_PRODUCTBUILD) || VER_PRODUCTBUILD < 6000) +// - W32Api older than 3.12 +#if (defined(_MSC_VER) && _MSC_VER < 1500 && (!defined(VER_PRODUCTBUILD) || VER_PRODUCTBUILD < 6000)) || \ + (defined(__W32API_VERSION) && (__W32API_MAJOR_VERSION < 3 || (__W32API_MAJOR_VERSION == 3 && __W32API_MINOR_VERSION < 12))) static BOOL CALLBACK ELM_Callback(PSTR ModuleName, ModuleBaseType ModuleBase, ULONG ModuleSize, -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 10 02:12:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 10 Oct 2010 02:12:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 8347] New: ARM VA_ARG Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8347 Summary: ARM VA_ARG Product: tools Version: trunk Platform: All OS/Version: Linux Status: NEW Severity: normal Priority: P Component: llc AssignedTo: unassignedbugs at nondot.org ReportedBy: pdox at alum.mit.edu CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5599) --> (http://llvm.org/bugs/attachment.cgi?id=5599) open_with_hook is a wrapper for open() which calls va_arg It looks like Post-RA instruction reordering is causing the instruct -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 10 02:31:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 10 Oct 2010 02:31:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 8348] New: [MC-COFF] COFF backend can't handle weak symbols Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8348 Summary: [MC-COFF] COFF backend can't handle weak symbols Product: libraries Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: bigcheesegs at gmail.com ReportedBy: bigcheesegs at gmail.com CC: llvmbugs at cs.uiuc.edu .def _main; .scl 2; .type 32; .endef .text .globl _main .align 16, 0x90 _main: # @main # BB#0: # %entry subl $4, %esp movl $_test_weak, %eax testl %eax, %eax je LBB0_2 # BB#1: # %if.then calll _test_weak movl $1, %eax addl $4, %esp ret LBB0_2: # %return xorl %eax, %eax addl $4, %esp ret .weak _test_weak llvm-mc -filetype=obj chrashes. as produces: { MachineType = IMAGE_FILE_MACHINE_I386 (0x14C) NumberOfSections = 3 TimeDateStamp = 0 PointerToSymbolTable = 0xC0 NumberOfSymbols = 13 SizeOfOptionalHeader = 0 Characteristics = 0x104 IMAGE_FILE_LINE_NUMS_STRIPPED IMAGE_FILE_32BIT_MACHINE Sections = [ 1 = { Name = .text VirtualSize = 0 VirtualAddress = 0 SizeOfRawData = 32 PointerToRawData = 0x8C PointerToRelocations = 0xAC PointerToLineNumbers = 0x0 NumberOfRelocations = 2 NumberOfLineNumbers = 0 Charateristics = 0x60500020 IMAGE_SCN_CNT_CODE IMAGE_SCN_ALIGN_16BYTES IMAGE_SCN_MEM_EXECUTE IMAGE_SCN_MEM_READ SectionData = 83 EC 04 B8 00 00 00 00 - 85 C0 74 0E E8 00 00 00 |..........t.....| 00 B8 01 00 00 00 83 C4 - 04 C3 31 C0 83 C4 04 C3 |..........1.....| Relocations = [ 0 = { VirtualAddress = 0x4 SymbolTableIndex = 11 Type = IMAGE_REL_I386_DIR32 (6) SymbolName = _test_weak } 1 = { VirtualAddress = 0xD SymbolTableIndex = 11 Type = IMAGE_REL_I386_REL32 (20) SymbolName = _test_weak } ] } 2 = { Name = .data VirtualSize = 0 VirtualAddress = 0 SizeOfRawData = 0 PointerToRawData = 0x0 PointerToRelocations = 0x0 PointerToLineNumbers = 0x0 NumberOfRelocations = 0 NumberOfLineNumbers = 0 Charateristics = 0xC0300040 IMAGE_SCN_CNT_INITIALIZED_DATA IMAGE_SCN_ALIGN_4BYTES IMAGE_SCN_MEM_READ IMAGE_SCN_MEM_WRITE SectionData = None Relocations = None } 3 = { Name = .bss VirtualSize = 0 VirtualAddress = 0 SizeOfRawData = 0 PointerToRawData = 0x0 PointerToRelocations = 0x0 PointerToLineNumbers = 0x0 NumberOfRelocations = 0 NumberOfLineNumbers = 0 Charateristics = 0xC0300080 IMAGE_SCN_CNT_UNINITIALIZED_DATA IMAGE_SCN_ALIGN_4BYTES IMAGE_SCN_MEM_READ IMAGE_SCN_MEM_WRITE SectionData = None Relocations = None } ] Symbols = [ 0 = { Name = .file Value = 0 SectionNumber = 65534 SimpleType = IMAGE_SYM_TYPE_NULL (0) ComplexType = IMAGE_SYM_DTYPE_NULL (0) StorageClass = IMAGE_SYM_CLASS_FILE (103) NumberOfAuxSymbols = 1 AuxillaryData = 66 61 6B 65 00 00 00 00 - 00 00 00 00 00 00 00 00 |fake............| 00 00 |..| } 2 = { Name = _main Value = 0 SectionNumber = 1 SimpleType = IMAGE_SYM_TYPE_NULL (0) ComplexType = IMAGE_SYM_DTYPE_FUNCTION (2) StorageClass = IMAGE_SYM_CLASS_EXTERNAL (2) NumberOfAuxSymbols = 1 AuxillaryData = 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 |................| 00 00 |..| } 4 = { Name = .text Value = 0 SectionNumber = 1 SimpleType = IMAGE_SYM_TYPE_NULL (0) ComplexType = IMAGE_SYM_DTYPE_NULL (0) StorageClass = IMAGE_SYM_CLASS_STATIC (3) NumberOfAuxSymbols = 1 AuxillaryData = 20 00 00 00 02 00 00 00 - 00 00 00 00 00 00 00 00 | ...............| 00 00 |..| } 6 = { Name = .data Value = 0 SectionNumber = 2 SimpleType = IMAGE_SYM_TYPE_NULL (0) ComplexType = IMAGE_SYM_DTYPE_NULL (0) StorageClass = IMAGE_SYM_CLASS_STATIC (3) NumberOfAuxSymbols = 1 AuxillaryData = 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 |................| 00 00 |..| } 8 = { Name = .bss Value = 0 SectionNumber = 3 SimpleType = IMAGE_SYM_TYPE_NULL (0) ComplexType = IMAGE_SYM_DTYPE_NULL (0) StorageClass = IMAGE_SYM_CLASS_STATIC (3) NumberOfAuxSymbols = 1 AuxillaryData = 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 |................| 00 00 |..| } 10 = { Name = .weak._test_weak._main Value = 0 SectionNumber = 65535 SimpleType = IMAGE_SYM_TYPE_NULL (0) ComplexType = IMAGE_SYM_DTYPE_NULL (0) StorageClass = IMAGE_SYM_CLASS_EXTERNAL (2) NumberOfAuxSymbols = 0 AuxillaryData = } 11 = { Name = _test_weak Value = 0 SectionNumber = 0 SimpleType = IMAGE_SYM_TYPE_NULL (0) ComplexType = IMAGE_SYM_DTYPE_NULL (0) StorageClass = IMAGE_SYM_CLASS_WEAK_EXTERNAL (105) NumberOfAuxSymbols = 1 AuxillaryData = 0A 00 00 00 01 00 00 00 - 00 00 00 00 00 00 00 00 |................| 00 00 |..| } ] } -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 10 02:45:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 10 Oct 2010 02:45:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 8349] New: _Bool keyword is not defined in -fms-extensions Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8349 Summary: _Bool keyword is not defined in -fms-extensions Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: bigcheesegs at gmail.com CC: llvmbugs at cs.uiuc.edu The _Bool keyword isn't defined when in -fms-extensions mode. I know the reason is because one of the MS headers typedefs it, but this makes C99 code not work on Windows. I think that _Bool should always be a keyword, but allow typedefing it as a ms-extension. The typedef _must_ be: typedef bool _Bool; Anything else is an error. My reasoning for this is that extensions should be just that, extensions. No standard features should be removed when extensions are enabled. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Oct 10 13:20:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 10 Oct 2010 13:20:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 8340] Is vector size zero allowed? In-Reply-To: References: Message-ID: <20101010182043.8CE962A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8340 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2010-10-10 13:20:43 CDT --- Fixed in r116167 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 10 13:22:50 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 10 Oct 2010 13:22:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 7854] User-definable arithmetic overflow handler In-Reply-To: References: Message-ID: <20101010182250.7D7A42A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7854 Eelis changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Eelis 2010-10-10 13:22:49 CDT --- The new -ftrapv-handler in r114192 is exactly what I wanted, 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 Oct 10 13:34:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 10 Oct 2010 13:34:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 8327] LLVM miscompiles va_arg() on 64-bit PowerPC, truncating address to 32 bits In-Reply-To: References: Message-ID: <20101010183415.E42C92A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8327 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-10-10 13:34:15 CDT --- Fixed in r116168 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 11 02:11:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 11 Oct 2010 02:11:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 8350] New: Clang does not produce symbols for typeinfo Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8350 Summary: Clang does not produce symbols for typeinfo Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: packadal at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Hi, I have been trying clang on my project for some time now, and I have come with a set of patches to make it compile successfully. Clang produces nice error messages and I'd really be able to use it as my default compiler. However, I have a link error to typeinfo for two classes. These classes inherit from a template class, laid out as follows: template class Base : public SubBase { virtual void Foo(); }; #include "Base.cxx" //Base.cxx template Base::Foo() { .... } I moved the definitions into the header file, and the linker error disappeared. However, the strange thing is that this base template class is used in 10 different instances, and only 2 cause link errors, so there might be more to it that I can see. The project I work on is open-source, and you can get the sources and try this by yourself (however the patches to get it to compile with clang are not in yet, so I'll attach them here if you want me to). svn repo: https://auber.svn.sourceforge.net/svnroot/auber/tulip/trunk website: http://www.tulip-software.org Best 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 Oct 11 08:12:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 11 Oct 2010 08:12:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 8351] New: void LLVMAddLoopIndexSplitPass(LLVMPassManagerRef PM) is still in llvm-c/Transforms/Scalar.h Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8351 Summary: void LLVMAddLoopIndexSplitPass(LLVMPassManagerRef PM) is still in llvm-c/Transforms/Scalar.h Product: libraries Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: vslugovsky at gmail.com CC: llvmbugs at cs.uiuc.edu The LoopIndexSplit pass does not exist any longer, but it's still referenced from an llvm-c header, which breaks an automatic API generation. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 11 11:42:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 11 Oct 2010 11:42:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 8352] New: llc emits improper .comm for PECOFF Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8352 Summary: llc emits improper .comm for PECOFF Product: libraries Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: geek4civic at gmail.com CC: llvmbugs at cs.uiuc.edu $ echo '@foo = common global i32 0, align 4' | Release+Asserts/bin/llc.exe -mtriple=i686-cygwin .comm _foo,4,2 # @foo # @foo $ echo '@foo = common global i32 0, align 4' | Release+Asserts/bin/llc.exe -mtriple=i686-cygwin | as {standard input}: Assembler messages: {standard input}:1: Error: junk at end of line, first unrecognized character is `,' -- It is valid; $ echo '.comm _foo,4' | as -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Oct 11 12:11:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 11 Oct 2010 12:11:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 8353] New: r115248 break generation of debugging info for obj-C ivars Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8353 Summary: r115248 break generation of debugging info for obj-C ivars Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X 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=5601) --> (http://llvm.org/bugs/attachment.cgi?id=5601) Sample The attempt to fix rdar://8493239 in r115248 breaks generation of debugging informations for Obj-C ivars. For the record: ------------------------ r115248 - 02:01 - fjahanian Output debug info. for ivars declared in class extension and implementation. Fixes rdar://8493239 ------------------------ After this change, all ivars are declared in dwarf as having the same offset, and so the debugger display wrong information. You can easily show the bug in the attached archive. Just compare foo_x86.s generated using clang rev 115247 and r115248. The only differences are clang revision and the ivar offsets in dwarfs info. Ditto for foo_x86_64.s. Maybe removing the test was not the good way to fix the problem ;-) ------------------------ r115258 - 03:01 - fjahanian Remove test until further notice. D /cfe/trunk/test/CodeGenObjC/debug-info-default-synth-ivar.m ------------------------ -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 11 12:19:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 11 Oct 2010 12:19:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 8354] New: MC-COFF: Don't emit local storage with .bss$linkonce Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8354 Summary: MC-COFF: Don't emit local storage with .bss$linkonce Product: libraries Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: geek4civic at gmail.com CC: llvmbugs at cs.uiuc.edu .bss$linkonce_foobar would be unified by linker. static and anonymous variables should not emitted to linkonce. //////// foo.cc int foo; static int bar; namespace { int qux; static int quux; } void fooset(int a0, int a1, int a2, int a3) { foo = a0; bar = a1; qux = a2; quux = a3; } int fooget() { return foo + bar + qux + quux; } //////// bar.cc extern int foo; static int bar; namespace { int qux; static int quux; } void barset(int a0, int a1, int a2, int a3) { foo = a0; bar = a1; qux = a2; quux = a3; } int barget() { return foo + bar + qux + quux; } ======== $ clang++ -O3 -S -emit-llvm foo.cc -o foo.ll (snip) @foo = global i32 0, align 4 @_ZL3bar = internal global i32 0, align 4 @_ZN12_GLOBAL__N_13quxE = internal global i32 0, align 4 @_ZN12_GLOBAL__N_1L4quuxE = internal global i32 0, align 4 $ clang++ -O3 -S -emit-llvm bar.cc -o bar.ll (snip) @foo = external global i32 @_ZL3bar = internal global i32 0, align 4 @_ZN12_GLOBAL__N_13quxE = internal global i32 0, align 4 @_ZN12_GLOBAL__N_1L4quuxE = internal global i32 0, align 4 ======== $ llc -filetype=obj foo.ll $ llc -filetype=obj bar.ll $ ld foo.o bar.o -o foobar.exe $ objdump -h foobar.exe Sections: Idx Name Size VMA LMA File off Algn 0 .text 000000a8 00401000 00401000 00000400 2**4 CONTENTS, ALLOC, LOAD, READONLY, CODE 1 .data 00000004 00402000 00402000 00000600 2**2 CONTENTS, ALLOC, LOAD, DATA 2 .bss 0000000c 00403000 00403000 00000000 2**2 ALLOC 3 .idata 00000014 00404000 00404000 00000800 2**2 CONTENTS, ALLOC, LOAD, DATA !!! size of .bss should be 0x18(4 * 6)! $ nm -n --demangle foobar.exe 00402000 D _data_start__ 00402000 D foo 00402004 D _data_end__ 00403000 B _bss_start__ 00403000 B _bss_end__ 00403000 b .bss$linkonce__ZL3bar 00403000 b bar 00403004 b .bss$linkonce__ZN12_GLOBAL__N_13quxE 00403004 b (anonymous namespace)::qux 00403008 b .bss$linkonce__ZN12_GLOBAL__N_1L4quuxE 00403008 b (anonymous namespace)::quux -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 11 12:44:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 11 Oct 2010 12:44:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 8351] void LLVMAddLoopIndexSplitPass(LLVMPassManagerRef PM) is still in llvm-c/Transforms/Scalar.h In-Reply-To: References: Message-ID: <20101011174433.9B6BB2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8351 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-10-11 12:44:33 CDT --- Removed in r116209, 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 Oct 11 13:01:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 11 Oct 2010 13:01:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 8355] New: clang++ generates incorrect code if multiple classes with the same name are defined in the same function Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8355 Summary: clang++ generates incorrect code if multiple classes with the same name are defined in the same function Product: clang Version: 2.8 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 clang++ generates incorrect code if two classes are defined with the same name within a function. Specifically, the constructors for both classes use the first class's vtable. Consider the following code: #include struct I { virtual void F() const = 0; }; void Go(const I &i) { i.F(); } int main() { if (true) { struct C : I { void F() const { std::cout << "A" << std::endl; } }; Go(C()); } if (true) { struct C : I { void F() const { std::cout << "B" << std::endl; } }; Go(C()); } } Under g++ and other compilers, this prints: A B Under clang++, it prints: A A -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 11 13:24:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 11 Oct 2010 13:24:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 8356] New: Don't do unprofitable narrowing of loads. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8356 Summary: Don't do unprofitable narrowing of loads. Product: new-bugs Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: jpbonn-keyword-llvmbug.a51747 at corniceresearch.com CC: llvmbugs at cs.uiuc.edu Our backend only does 32 bit loads. I noticed some loads were narrowed to 8 bits and then had to be reverted back to 32 bit loads. This patch prevents the initial lowering. I've only tested this on my backend. Index: CodeGen/SelectionDAG/TargetLowering.cpp =================================================================== --- CodeGen/SelectionDAG/TargetLowering.cpp (revision 115815) +++ CodeGen/SelectionDAG/TargetLowering.cpp (working copy) @@ -1899,7 +1899,9 @@ else bestOffset = (uint64_t)offset * (width/8); bestMask = Mask.lshr(offset * (width/8) * 8); - bestWidth = width; + EVT NewVT = EVT::getIntegerVT(*DAG.getContext(), width); + if (isNarrowingProfitable(Lod->getMemoryVT(), NewVT)) + bestWidth = width; break; } newMask = newMask << width; -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 11 14:05:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 11 Oct 2010 14:05:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 8297] machine licm crash on atomic cmpswap i64 In-Reply-To: References: Message-ID: <20101011190529.AB2022A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8297 Andrew Trick changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Andrew Trick 2010-10-11 14:05:29 CDT --- Fixed in 116214. Test case test/CodeGen/X86/2010-10-08-cmpxchg8b.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 Mon Oct 11 14:53:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 11 Oct 2010 14:53:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 8357] New: Crash inside fast register allocator on PowerPC Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8357 Summary: Crash inside fast register allocator on PowerPC Product: new-bugs Version: trunk Platform: Other OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: nwhitehorn at freebsd.org CC: llvmbugs at cs.uiuc.edu With r116206, running llc on the attached IR causes an UNREACHABLE to be reached: llc vatest.ll -o foo.s -regalloc=fast -march=ppc32 UNREACHABLE executed! Stack dump: 0. Program arguments: llc vatest.ll -regalloc=fast -march=ppc32 1. Running pass 'Function Pass Manager' on module 'vatest.ll'. 2. Running pass 'Fast Register Allocator' on function '@testing' Abort trap: 6 (core dumped) This seems to be appear only when targeting ppc32, and is a regression relative to last week. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 11 15:43:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 11 Oct 2010 15:43:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 8357] Crash inside fast register allocator on PowerPC In-Reply-To: References: Message-ID: <20101011204340.BA48E2A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8357 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Jakob Stoklund Olesen 2010-10-11 15:43:40 CDT --- Fixed in r116222. 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 Oct 11 16:58:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 11 Oct 2010 16:58:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 8352] llc emits improper .comm for PECOFF In-Reply-To: References: Message-ID: <20101011215811.BBB4D2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8352 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |asl at math.spbu.ru Resolution| |INVALID --- Comment #2 from Anton Korobeynikov 2010-10-11 16:58:11 CDT --- (In reply to comment #1) > $ as --version > GNU assembler (GNU Binutils) 2.19.1 > > Is it older? Yes. Read http://llvm.org/docs/GettingStarted.html#pf_8 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Oct 11 18:56:55 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 11 Oct 2010 18:56:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 8353] r115248 break generation of debugging info for obj-C ivars In-Reply-To: References: Message-ID: <20101011235655.329B22A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8353 Fariborz Jahanian changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Fariborz Jahanian 2010-10-11 18:56:54 CDT --- Fixed in r116273. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 11 21:01:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 11 Oct 2010 21:01:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 8358] New: [cygwin] sys::Program::Execute should use spawn Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8358 Summary: [cygwin] sys::Program::Execute should use spawn Product: libraries Version: 1.0 Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: System Library AssignedTo: unassignedbugs at nondot.org ReportedBy: clattner at apple.com CC: llvmbugs at cs.uiuc.edu "fork" on cygwin is a horrible hack. Apparently the solution is to use the cygwin spawn function which is both more efficient and also more reliable. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 11 22:59:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 11 Oct 2010 22:59:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 8359] New: ARM allocates invalid registers for VFPv3-D16 (possibly allocating D16, D17 etc.) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8359 Summary: ARM allocates invalid registers for VFPv3-D16 (possibly allocating D16, D17 etc.) Product: tools Version: trunk Platform: Other OS/Version: All Status: NEW Severity: normal Priority: P Component: llc AssignedTo: unassignedbugs at nondot.org ReportedBy: jvoung at google.com CC: llvmbugs at cs.uiuc.edu The ARM backend may end up allocating registers D16 to D31 when "-mattr=+vfp3" is specified. However, this will not work for hardware that only supports 16 registers. Attached is a possible fix, adding a new flag to support -"mattr=+vfp3,+d16". -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 12 02:55:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 12 Oct 2010 02:55:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 8360] New: Resolve call to atoi with constant input at compile time. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8360 Summary: Resolve call to atoi with constant input at compile time. Product: libraries Version: trunk Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: bigcheesegs at gmail.com CC: llvmbugs at cs.uiuc.edu Ran into this while trying to get LLVM to not optimize away my contrived code. Seems like an easy SimplifyLibCalls opt to implement to get used to transforms. Filing this so I don't forget. atoi("42") -> i32 42 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 12 08:22:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 12 Oct 2010 08:22:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 8361] New: duplicated compare instruction Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8361 Summary: duplicated compare instruction Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: Edmund.Grimley-Evans at arm.com CC: llvmbugs at cs.uiuc.edu Keywords: duplicate duplicated redundant repeated compare comparison cmp The compare instruction is repeated unnecessarily in the code generated from this: const char *f(int x, int y) { return x < y ? "<" : x == y ? "=" : ">"; } I've seen this with the ARM and x86 back ends. Currently on r116298. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 12 08:25:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 12 Oct 2010 08:25:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 8362] New: Ran out of registers during register allocation! Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8362 Summary: Ran out of registers during register allocation! 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=5606) --> (http://llvm.org/bugs/attachment.cgi?id=5606) testcase GCC can compile the attached asm, but llvm-gcc says: $ llvm-gcc -S pr21291.c cc1: error in backend: Ran out of registers during register allocation! Please check your inline asm statement for invalid constraints: INLINEASM , 0, 10, %reg16392, 10, %reg16393, 10, %reg16394, 10, %reg16395, 14, %EDI, 44, , 1, %reg0, 0, %reg0, 2147483657, %ECX, 2147549193, %EBX, 2147614729, %ESI, 2147680265, %reg16395, 14, %EFLAGS, 14, %EDX, 14, %EAX; GR32:%reg16392,16393,16394,16395,16395 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 12 09:10:50 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 12 Oct 2010 09:10:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 8363] New: Assertion `PartVT.isInteger() && ValueVT.isInteger() && "Unknown mismatch!"' failed Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8363 Summary: Assertion `PartVT.isInteger() && ValueVT.isInteger() && "Unknown mismatch!"' failed 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=5607) --> (http://llvm.org/bugs/attachment.cgi?id=5607) testcase .ll $ llc part.ll llc: llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:330: void getCopyToParts(llvm::SelectionDAG&, llvm::DebugLoc, llvm::SDValue, llvm::SDValue*, unsigned int, llvm::EVT, llvm::ISD::NodeType): Assertion `PartVT.isInteger() && ValueVT.isInteger() && "Unknown mismatch!"' failed. ... 8 llc 0x00000000008baf2d llvm::SelectionDAGBuilder::visitInlineAsm(llvm::ImmutableCallSite) + 14557 9 llc 0x00000000008c9dfc llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) + 572 10 llc 0x00000000008b31ca llvm::SelectionDAGBuilder::visit(unsigned int, llvm::User const&) + 394 11 llc 0x00000000008d922d llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) + 45 12 llc 0x00000000008e7510 llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator, llvm::ilist_iterator, bool&) + 160 13 llc 0x00000000008e7b74 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1476 14 llc 0x00000000008e882b llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 491 15 llc 0x0000000000cb65bd llvm::FPPassManager::runOnFunction(llvm::Function&) + 557 16 llc 0x0000000000cb66bb llvm::FPPassManager::runOnModule(llvm::Module&) + 75 17 llc 0x0000000000cb6147 llvm::MPPassManager::runOnModule(llvm::Module&) + 503 18 llc 0x0000000000cb62c7 llvm::PassManagerImpl::run(llvm::Module&) + 167 19 llc 0x000000000051c335 main + 4117 20 libc.so.6 0x00007f3d774e8d8e __libc_start_main + 254 21 llc 0x000000000051a709 Stack dump: 0. Program arguments: llc part.ll 1. Running pass 'Function Pass Manager' on module 'part.ll'. 2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@f4' 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 Tue Oct 12 11:23:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 12 Oct 2010 11:23:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 8359] ARM allocates invalid registers for VFPv3-D16 (possibly allocating D16, D17 etc.) In-Reply-To: References: Message-ID: <20101012162308.0E1442A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8359 Bob Wilson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bob.wilson at apple.com Resolution| |FIXED --- Comment #2 from Bob Wilson 2010-10-12 11:23:07 CDT --- Patch applied in svn 116310. 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 Oct 12 12:05:34 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 12 Oct 2010 12:05:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 7715] clang++ gives wrong error about default argument in kdatetime.h In-Reply-To: References: Message-ID: <20101012170534.B45A22A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7715 Manuel Klimek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Manuel Klimek 2010-10-12 12:05:34 CDT --- Fixed in r116311. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 12 13:28:22 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 12 Oct 2010 13:28:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 6568] Assertion failed: Default argument is not yet parsed! In-Reply-To: References: Message-ID: <20101012182822.655922A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6568 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Douglas Gregor 2010-10-12 13:28:20 CDT --- Fixed in Clang r116324. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 12 13:28:24 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 12 Oct 2010 13:28:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 8245] Assertion failed: Default argument is not yet parsed! In-Reply-To: References: Message-ID: <20101012182824.8026A2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8245 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-10-12 13:28:23 CDT --- Fixed in Clang r116324. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 12 13:58:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 12 Oct 2010 13:58:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 8364] New: Verifier doesn't flag out-of-module constants, BC writing crashes Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8364 Summary: Verifier doesn't flag out-of-module constants, BC writing crashes Product: libraries Version: 2.7 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Core LLVM classes AssignedTo: unassignedbugs at nondot.org ReportedBy: clemahieu at gmail.com CC: llvmbugs at cs.uiuc.edu BitCode generation fails with "Unknown constant!" "UNREACHABLE executed at BitcodeWriter.cpp:895 Issue can be reproduced with the following: llvm::LLVMContext ctx; llvm::StringRef mn1 ("m1"); llvm::StringRef mn2 ("m2"); llvm::Module m1 (mn1, ctx); llvm::Module m2 (mn2, ctx); const llvm::Type * rt = llvm::Type::getVoidTy (ctx); const llvm::FunctionType * ft = llvm::FunctionType::get (rt, false); llvm::Function * f1 = llvm::Function::Create (ft, llvm::GlobalValue::ExternalLinkage); m1.getFunctionList ().push_back (f1); const llvm::IntegerType * it = llvm::IntegerType::get (ctx, 8); const llvm::PointerType * pt = llvm::PointerType::get (it, 0); const llvm::Constant * ce = llvm::ConstantExpr::getBitCast (f1, pt); llvm::Constant * v [1] = {(llvm::Constant *)ce}; const llvm::ArrayType * at = llvm::ArrayType::get (pt, 1); const llvm::Constant * a = llvm::ConstantArray::get (at, v, 1); const llvm::Type * gt = a->getRawType (); llvm::GlobalVariable * g = new llvm::GlobalVariable (gt, true, llvm::GlobalValue::ExternalLinkage, (llvm::Constant *)a); m2.getGlobalList ().push_back (g); std::string message; bool result = llvm::verifyModule (m2, llvm::ReturnStatusAction, &message); -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 12 14:44:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 12 Oct 2010 14:44:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 8365] New: Output of "llc -filetype=obj" != llvm-mc Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8365 Summary: Output of "llc -filetype=obj" != llvm-mc Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu This is a fun case. When doing the codegen of define i64 @bra(i32 %zed) nounwind { %t1 = zext i32 %zed to i64 %t2 = and i64 %t1, 4294967232 ret i64 %t2 } The isel dag will contain the i64 constant 4294967232. During the selection we decide to use a 32 "and" and produce a i32 target constant of -64. Unfortunately, we fail to noticed that it will fit in 8 bits and select an AND32ri. The produced assembly is andl $-64, %edi # encoding: [0x81,0xe7,0xc0,0xff,0xff,0xff] movl %edi, %eax # encoding: [0x89,0xf8] ret # encoding: [0xc3] When this gets passed to MC it finds that -64 fits in 8 bits and uses a AND32ri8. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 12 15:27:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 12 Oct 2010 15:27:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 8366] New: -march=native on i5 emits unaligned movaps Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8366 Summary: -march=native on i5 emits unaligned movaps Product: libraries Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: astrange at ithinksw.com CC: llvmbugs at cs.uiuc.edu Using llvm r116113/clang r116082. The attached file contains several unaligned movaps when compiled with -march=native on i5, but not without it. > clang -O3 -march=native -S demux_movaps_unaligned.i -v clang version 2.9 (git://repo.or.cz/clang.git 43fb14bb9982c4c59cfd0d9e195e52145c3f62ef) Target: x86_64-apple-darwin10 Thread model: posix "/usr/local/llvm/bin/clang" -cc1 -triple x86_64-apple-darwin10.0.0 -S -disable-free -main-file-name demux_movaps_unaligned.i -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu corei7 -target-linker-version 97.14 -v -resource-dir /usr/local/llvm/lib/clang/2.9 -O3 -ferror-limit 19 -fmessage-length 80 -stack-protector 1 -fblocks -fdiagnostics-show-option -fcolor-diagnostics -o demux_movaps_unaligned.s -x cpp-output demux_movaps_unaligned.i clang -cc1 version 2.9 based upon llvm 2.9svn hosted on x86_64-apple-darwin10 #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/local/llvm/lib/clang/2.9/include /usr/include /System/Library/Frameworks (framework directory) /Library/Frameworks (framework directory) End of search list. > grep movaps demux_movaps_unaligned.s movaps %xmm0, -120(%rbp) movaps %xmm0, -136(%rbp) <-- movaps %xmm0, -152(%rbp) <-- movaps %xmm0, -424(%rbp) movaps %xmm0, -440(%rbp) movaps %xmm0, -456(%rbp) movaps %xmm0, -280(%rbp) movaps %xmm0, -296(%rbp) movaps %xmm0, -312(%rbp) movaps %xmm0, -136(%rbp) movaps %xmm0, -152(%rbp) movaps %xmm0, -168(%rbp) <-- movaps %xmm0, (%rax) This causes mplayer to immediately crash in new_demuxer() when compiled with -march=native. Un-minimized source attached. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Oct 12 15:32:56 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 12 Oct 2010 15:32:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 8325] Error on throwing pointer to pointee with non public destructor In-Reply-To: References: Message-ID: <20101012203256.55F6E2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8325 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #2 from Eli Friedman 2010-10-12 15:32:55 CDT --- r116336. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 12 18:28:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 12 Oct 2010 18:28:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 7305] plugins should take parameters In-Reply-To: References: Message-ID: <20101012232833.70B772A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7305 Tobias Grosser changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |grosser at fim.uni-passau.de Resolution| |FIXED --- Comment #5 from Tobias Grosser 2010-10-12 18:28:32 CDT --- Was applied in r106113. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 12 18:44:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 12 Oct 2010 18:44:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 8367] New: clang-compiled libtheora dump_video segfaults on test clips Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8367 Summary: clang-compiled libtheora dump_video segfaults on test clips 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: me at endeavour.zapto.org CC: llvmbugs at cs.uiuc.edu Hi, When llvm & clang (r116318) on Mac OSX 10.5 (Darwin 9.8.0) / PowerPC are used to compile libtheora v1.1.1, the resulting example decoder (examples/dump_video.c) segfaults on any theora videos. The same is not true of dump_video compiled with Apple gcc 4.0.1. -- vs -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 12 19:28:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 12 Oct 2010 19:28:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 6784] C++98/03: Template arguments cannot be unnamed types In-Reply-To: References: Message-ID: <20101013002831.349822A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6784 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Douglas Gregor 2010-10-12 19:28:30 CDT --- Fixed in Clang r116382. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 12 21:16:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 12 Oct 2010 21:16:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 8313] Use after free in the linker In-Reply-To: References: Message-ID: <20101013021614.C50C12A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8313 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #16 from Rafael ?vila de Esp?ndola 2010-10-12 21:16:14 CDT --- Fixed in r116390 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 12 21:47:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 12 Oct 2010 21:47:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 8368] New: Compiler getting confused when using templated function from the return value of a function of a member Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8368 Summary: Compiler getting confused when using templated function from the return value of a function of a member Product: clang Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: psycocyril at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The following code fails to compile (see comments) namespace bug { class A { public: template T foo(void) const; }; class B { public: A& get_A() const; }; template class C { private: B & m_b; public: C(B & b) : m_b(b) { } int bar(void) { return m_b.get_A().foo(); // fails with: // error: use 'template' keyword to treat 'foo' as a dependent template name // return m_b.get_A().foo(); // ^ // template // works with: //A& a= m_b.get_A(); //return a.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 Tue Oct 12 22:42:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 12 Oct 2010 22:42:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 8367] clang-compiled libtheora dump_video segfaults on test clips In-Reply-To: References: Message-ID: <20101013034254.33EB02A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8367 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |LATER --- Comment #1 from Chris Lattner 2010-10-12 22:42:53 CDT --- Clang/powerpc isn't supported at the moment, there are lots of known bugs. Before individual bugs are filed, we really need someone to take and own darwin/ppc support for 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 Tue Oct 12 23:20:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 12 Oct 2010 23:20:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 8369] New: Support mregparm flag Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8369 Summary: Support mregparm flag Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: alp at nuanti.com CC: llvmbugs at cs.uiuc.edu Blocks: 4068 -mregparm: Control the number registers used to pass integer arguments. This flag is often used to override the ABI-specified regparm value throughout a compilation unit. clang already supports target-specific values for this provided by TargetInfo, and also by use of attributes, but the frontend doesn't support this as a user-specified compiler flag yet. Ignoring this is often harmless (used only for optimization) but certain code such as that in the Linux kernel boot module using .code16gcc inline ASM relies on mregparm working correctly. This probably needs to be handled at a higher level than IRgen as Sema performs checking and comparison of function regparm attributes. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 12 23:45:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 12 Oct 2010 23:45:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 8370] New: Seemingly incorrect output on Windows for the exact same generated X86 assembly as Linux. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8370 Summary: Seemingly incorrect output on Windows for the exact same generated X86 assembly as Linux. 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: bigcheesegs at gmail.com CC: llvmbugs at cs.uiuc.edu This is from test-suite/SingleSource/UnitTests/Vetor/sumarray-dbl.c. Attached files: * test.ll - The LLVM IR generated by clang when targeting both platforms (I ran clang on Linux and Windows, but they produced the same output). * test-lin.asm - The X86 assembly generated by clang -S on Linux. * test-win.asm - The X86 assembly generated by clang -S on Windows. The command used was: % clang sumarray-dbl.c -O3 -fomit-frame-pointer -march=i386 I added -march because one cpu is some old crappy one and the other is an i7, so they were using different methods. When the resulting program is run on Linux, the output is as expected (or at least the same as the reference output): 488862 490096 491331 492566 493800 495035 496269 497504 However, on Windows, the output is: 488862 490097 491331 492566 493800 495035 496269 497504 The only difference is that the second number is 1 larger. I get the exact same result if I use -march=native. This really just looks like a rounding issue, but I want to make sure there isn't a larger 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 Oct 13 04:42:35 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 13 Oct 2010 04:42:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 8371] New: __attribute__ ((__const)) not recognized Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8371 Summary: __attribute__ ((__const)) not recognized Product: clang Version: unspecified Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ggreif at gmail.com CC: llvmbugs at cs.uiuc.edu We seem to have a legacy header (and no process in place to change it) which looks pretty much like this: http://en.wikibooks.org/wiki/C++_Programming/ctype.h_header Clang warns on the "__attribute__ ((__const))" part: warning: unknown attribute '__const' ignored [-Wunknown-attributes] __attribute__ ((__const)); ^ I propose to add '__const' as an attribute, becoming synonymous to 'const'. I am about to make a patch and shall attach it 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 Oct 13 07:59:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 13 Oct 2010 07:59:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 8372] New: clang::DiagnosticInfo::getArgKind(unsigned int) fails assertion Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8372 Summary: clang::DiagnosticInfo::getArgKind(unsigned int) fails assertion Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: hans at chromium.org CC: llvmbugs at cs.uiuc.edu template void Foo () { } void Bar () { Foo <0x80000000> (); } triggers the following assert when trying to compile with Clang built from trunk r116802: /tmp/a.cc:5:8: warning: clang: /work/llvm/tools/clang/lib/Basic/../../include/clang/Basic/Diagnostic.h:864: clang::Diagnostic::ArgumentKind clang::DiagnosticInfo::getArgKind(unsigned int) const: Assertion `Idx < getNumArgs() && "Argument index out of range!"' failed. (Stack trace attached.) This seems to be a regression from r116058, where the code compiles. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 13 08:32:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 13 Oct 2010 08:32:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 8365] Output of "llc -filetype=obj" != llvm-mc In-Reply-To: References: Message-ID: <20101013133220.B69A02A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8365 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Rafael ?vila de Esp?ndola 2010-10-13 08:32:20 CDT --- Fixed in 116403. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 13 12:24:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 13 Oct 2010 12:24:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 8372] clang::DiagnosticInfo::getArgKind(unsigned int) fails assertion In-Reply-To: References: Message-ID: <20101013172436.E8CDE2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8372 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2010-10-13 12:24:36 CDT --- Fixed in Clang r116411, 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 Oct 13 15:01:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 13 Oct 2010 15:01:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 7388] Error using _Bool as a template argument In-Reply-To: References: Message-ID: <20101013200113.D09B92A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7388 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Douglas Gregor 2010-10-13 15:01:12 CDT --- Fixed in Clang r116422. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 13 15:02:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 13 Oct 2010 15:02:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 8349] _Bool keyword is not defined in -fms-extensions In-Reply-To: References: Message-ID: <20101013200202.70A6A2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8349 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dgregor at apple.com Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-10-13 15:02:01 CDT --- The real issue here is that _Bool shouldn't be defined in C++ mode. Fixed in Clang r116422. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 13 15:42:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 13 Oct 2010 15:42:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 8328] Unable to call method of incomplete class In-Reply-To: References: Message-ID: <20101013204233.D82762A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8328 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-10-13 15:42:33 CDT --- Fixed in Clang r116429. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 13 17:20:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 13 Oct 2010 17:20:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 8159] clang accepts redundant scope specifier for variables in class definition In-Reply-To: References: Message-ID: <20101013222044.322F12A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8159 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-10-13 17:20:43 CDT --- Fixed in Clang r116445. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 13 17:55:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 13 Oct 2010 17:55:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 8168] Clang accepts static functions that would override virtual ones In-Reply-To: References: Message-ID: <20101013225541.785232A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8168 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-10-13 17:55:41 CDT --- Fixed in Clang r8168. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 13 18:20:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 13 Oct 2010 18:20:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 8373] New: diagnose use of base member before base is initialized Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8373 Summary: diagnose use of base member before base is initialized Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5616) --> (http://llvm.org/bugs/attachment.cgi?id=5616) full program testcase The attached testcase is a fully executable version of this snippet: struct Base { explicit Base(int) { } int member_; }; struct Derived : public Base { Derived() : Base(member_) { } }; I think there should be a warning on use of member_ in Derived because it hasn't been initialized yet. None of clang, gcc nor EDG warn on 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 Oct 13 20:10:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 13 Oct 2010 20:10:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 8374] New: Generalize clang blocks to support other closure-like language features Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8374 Summary: Generalize clang blocks to support other closure-like language features Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: alp at nuanti.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com clang Sema and IRgen support for the Apple blocks extension can be reworked to provide a general-purpose backend for closure-style language constructs. In particular, Apple blocks (a) share many characteristics with (b) GNU nested functions and (c) C++0x lambdas: * IRgen to privately linked LLVM function: a, b, c * Capture of locals by reference: a, b, c * Capture of locals by value: a, c * Permits taking address-of-function: a, b (often with undefined behavour), c It should be possible to support GNU nested functions with a one-line modification to the parser and potentially no new AST classes, while C++0x lambda support will require a little additional parser support and new Stmt/Decl classes. While nested functions aren't a high priority, re-using Blocks IRgen would get us support for this GNU feature with little effort while providing more complete coverage of the gcc DG test suite, which tests many unrelated language features using nested functions for scoping brevity. C++0x lambdas on the other hand are a popular upcoming feature already supported by VC++. The blocks code can be easily modified to cover most of the semantic analysis and codegen required by the standard for lambdas. Ditto for the static analyzer. Another motivation for generalising the blocks code is to audit the following: 1) BlockDeclRefExpr: Would it be possible to just use ordinary DeclRefExprs for a more consistent AST? 2) BlockDecl: This shares a lot in common with FunctionDecl and ObjCMethodDecl. Would it be possible to factor out shared functionality into a common base? 3) Overloaded "Block" terminology in clang internals is confusing to developers. isBlockScope(), isBlockVarDecl(): Trying to figure out whether functions like this refer to Apple blocks or C statement blocks {} is guesswork for anyone. "Block" already has a single, clear meaning to most compiler developers while Apple "Blocks" are really just a marketing term for a specific flavour of closures. Let's make this clear at the source level. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Oct 14 07:05:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 07:05:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 8375] New: Symbol is undefined when LLVM built by CMake Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8375 Summary: Symbol is undefined when LLVM built by CMake Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: System Library AssignedTo: unassignedbugs at nondot.org ReportedBy: oroppas at gmail.com CC: llvmbugs at cs.uiuc.edu I built LLVM from trunk using CMake and everything went all well. Next, I successfully built dragonegg from trunk. Then, re-building dragonegg itself using dragonegg plugin ended up with the error: cc1plus: error: Cannot load plugin ./dragonegg.so /usr/lib/libLLVMSystem.so: undefined symbol: pthread_mutex_trylock Should llvm/lib/System/CMakeLists.txt have the lines like if( HAVE_LIBPTHREAD ) target_link_libraries(LLVMSystem pthread) endif( HAVE_LIBPTHREAD ) ? -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 14 07:21:21 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 07:21:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 8376] New: LinkModules: "alias bitcast" causes assertion failure Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8376 Summary: LinkModules: "alias bitcast" causes assertion failure Product: libraries Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Linker AssignedTo: unassignedbugs at nondot.org ReportedBy: geek4civic at gmail.com CC: llvmbugs at cs.uiuc.edu Similar to PR6925, but I think it is another issue, to prevent clang++ -mconstructor-aliases LTO. ; a.ll declare void @b(i8*) @va = constant void(i8*)* @b ; b8.ll declare void @b8(i8*) @b = alias void(i8*)* @b8 ; b32.ll declare void @b32(i32*) @b = alias bitcast(void (i32*)* @b32 to void (i8*)*) $ Release+Asserts/bin/llvm-link a.ll b8.ll -o ab8 (passes) $ Release+Asserts/bin/llvm-link a.ll b32.ll -o ab32 llvm-link: /home/chapuni/llvm/lib/VMCore/Globals.cpp:230: llvm::GlobalAlias::GlobalAlias(const llvm::Type*, llvm::GlobalValue::LinkageTypes, const llvm::Twine&, llvm::Constant*, llvm::Module*): Assertion `aliasee->getType() == Ty && "Alias and aliasee types should match!"' failed. 0 llvm-link 0x000000000058c08f 1 llvm-link 0x000000000058e352 2 libpthread.so.0 0x00000039de00eb10 3 libc.so.6 0x00000039dd430265 gsignal + 53 4 libc.so.6 0x00000039dd431d10 abort + 272 5 libc.so.6 0x00000039dd4296e6 __assert_fail + 246 6 llvm-link 0x00000000004d35f0 7 llvm-link 0x000000000044a2cb 8 llvm-link 0x000000000044d967 9 llvm-link 0x000000000040aecb main + 315 10 libc.so.6 0x00000039dd41d994 __libc_start_main + 244 11 llvm-link 0x000000000040a2f9 Stack dump: 0. Program arguments: Release+Asserts/bin/llvm-link a.ll b32.ll -o ab32.bc 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 Thu Oct 14 08:21:49 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 08:21:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 8376] LinkModules: "alias bitcast" causes assertion failure In-Reply-To: References: Message-ID: <20101014132149.C8A882A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8376 NAKAMURA Takumi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |geek4civic at gmail.com Resolution| |DUPLICATE --- Comment #1 from NAKAMURA Takumi 2010-10-14 08:21:49 CDT --- Why I didn't find PR8300 with keywords "alias aliasee"? *** This bug has been marked as a duplicate of bug 8300 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 14 10:31:06 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 10:31:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 8377] New: Assertion `Rep && "no type provided!"' on invalid code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8377 Summary: Assertion `Rep && "no type provided!"' 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: template struct def_helper { void def_maybe_overloads( ) { ,def_helper } }; Produces the following backtrace on clang version 2.9 (trunk 116475) Target: x86_64-unknown-linux-gnu Thread model: posix clang++ t.cc -c t.cc:4:3: error: expected expression ,def_helper ^ t.cc:4:15: error: template argument for non-type template parameter must be an expression ,def_helper ^~~ t.cc:1:14: note: template parameter is declared here template ^ clang: DeclSpec.cpp:298: bool clang::DeclSpec::SetTypeSpecType(clang::TypeSpecifierType, clang::SourceLocation, const char*&, unsigned int&, clang::ParsedType): Assertion `Rep && "no type provided!"' failed. 0 clang 0x000000000165139f 1 clang 0x0000000001653612 2 libpthread.so.0 0x00007f0e453108f0 3 libc.so.6 0x00007f0e445ffa75 gsignal + 53 4 libc.so.6 0x00007f0e446035c0 abort + 384 5 libc.so.6 0x00007f0e445f8941 __assert_fail + 241 6 clang 0x00000000008d1330 clang::DeclSpec::SetTypeSpecType(clang::TypeSpecifierType, clang::SourceLocation, char const*&, unsigned int&, clang::OpaquePtr) + 144 7 clang 0x00000000008baf31 clang::Parser::ParseCXXSimpleTypeSpecifier(clang::DeclSpec&) + 913 8 clang 0x00000000008b49f2 clang::Parser::ParseCastExpression(bool, bool, bool&, clang::OpaquePtr) + 258 9 clang 0x00000000008b59aa clang::Parser::ParseCastExpression(bool, bool, clang::OpaquePtr) + 42 10 clang 0x00000000008b51db clang::Parser::ParseCastExpression(bool, bool, bool&, clang::OpaquePtr) + 2283 11 clang 0x00000000008b59aa clang::Parser::ParseCastExpression(bool, bool, clang::OpaquePtr) + 42 12 clang 0x00000000008b679e clang::Parser::ParseAssignmentExpression() + 30 13 clang 0x00000000008b5bf3 clang::Parser::ParseRHSOfBinaryExpression(clang::ActionResult, clang::prec::Level) + 515 14 clang 0x00000000008b6c89 clang::Parser::ParseExpression() + 25 15 clang 0x00000000008913da clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector&, bool) + 442 16 clang 0x0000000000891cf4 clang::Parser::ParseCompoundStatementBody(bool) + 404 17 clang 0x0000000000892336 clang::Parser::ParseFunctionStatementBody(clang::Decl*) + 118 18 clang 0x00000000008cadfa clang::Parser::ParseLexedMethodDef(clang::Parser::LexedMethod&) + 426 19 clang 0x00000000008c927c clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&) + 124 20 clang 0x00000000008b1db4 clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int, clang::Decl*) + 2020 21 clang 0x00000000008b2ad0 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 2800 22 clang 0x00000000008a298c clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 1996 23 clang 0x00000000008c5307 clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::AccessSpecifier) + 535 24 clang 0x00000000008c8c15 clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 693 25 clang 0x00000000008a8079 clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::CXX0XAttributeList) + 409 26 clang 0x000000000089cb33 clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList, clang::Parser::ParsingDeclSpec*) + 1091 27 clang 0x000000000089cd72 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 114 28 clang 0x00000000008854fb clang::ParseAST(clang::Sema&, bool) + 139 29 clang 0x000000000075b444 clang::CodeGenAction::ExecuteAction() + 68 30 clang 0x0000000000661165 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 357 31 clang 0x0000000000640c5c clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1276 32 clang 0x0000000000638c1e cc1_main(char const**, char const**, char const*, void*) + 622 33 clang 0x000000000063f777 main + 4087 34 libc.so.6 0x00007f0e445eac4d __libc_start_main + 253 35 clang 0x0000000000637409 Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name t.cc -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.1 -resource-dir /usr/local/lib/clang/2.9 -ferror-limit 19 -fmessage-length 143 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-ejotv4.s -x c++ t.cc 1. t.cc:4:4: at annotation token 2. t.cc:2:1: parsing struct/union/class body 'def_helper' 3. t.cc:3:31: parsing function body 'def_maybe_overloads' 4. t.cc:3:31: in compound statement ('{}') clang: error: clang frontend command failed due to signal 6 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Oct 14 10:33:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 10:33:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 7623] 'Invalid accessor called' generated by 'template<>template<>a; ' In-Reply-To: References: Message-ID: <20101014153311.A254E2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7623 Christopher Jefferson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Christopher Jefferson 2010-10-14 10:33:10 CDT --- Fixed by trunk 116475. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 14 10:34:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 10:34:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 7684] "Cannot get layout of forward declarations" on invalid code In-Reply-To: References: Message-ID: <20101014153447.6A5B12A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7684 Christopher Jefferson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Oct 14 10:37:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 10:37:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 7073] Assertion failed: (!EnteredScope && "Already entered the scope!") In-Reply-To: References: Message-ID: <20101014153723.1286B2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7073 Christopher Jefferson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Christopher Jefferson 2010-10-14 10:37:22 CDT --- Fixed as of r116475 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 14 10:52:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 10:52:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 8378] New: Cannot Build llvm-gcc-4.2-2.8 on Solaris/x86 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8378 Summary: Cannot Build llvm-gcc-4.2-2.8 on Solaris/x86 Product: tools Version: 2.8 Platform: Sun OS/Version: Solaris Status: NEW Severity: normal Priority: P Component: llvm-gcc AssignedTo: unassignedbugs at nondot.org ReportedBy: spear at cse.lehigh.edu CC: llvmbugs at cs.uiuc.edu I am unable to build llvm-gcc-4.2-2.8 on Solaris/x86. I successfully built llvm-gcc-4.2-2.7 and llvm-2.7 on Solaris/x86. I can also build llvm-2.8 itself on Solaris/x86. The break occurs only when moving from the released llvm-gcc-4.2-2.7 to llvm-gcc-4.2-2.8 Platform: uname -a == SunOS 5.10 Generic_142901-12 i86pc i386 i86pc Toolchain: gcc 4.5.1 binutils 2.20.1 Configure invocation: ../llvm-gcc-4.2-2.8.source/configure --prefix=/proj/spear0/dtmc_x86/llvm-2.8-gcc --program-prefix=llvm- --enable-llvm=/proj/spear0/dtmc_x86/llvm --enable-languages=c,c++ --enable-checking --with-gnu-as --with-as=/proj/spear0/binutils-2.20.1/bin/as --with-gnu-ld --with-ld=/proj/spear0/binutils-2.20.1/bin/ld The specific error occurs when building libgcc2.c. I'm building using 'gmake' (no -j flag). /tmp/mfs/2.8/build/./gcc/xgcc -B/tmp/mfs/2.8/build/./gcc/ -B/proj/spear0/dtmc_x86/llvm-2.8-gcc/i386-pc-solaris2.10/bin/ -B/proj/spear0/dtmc_x86/llvm-2.8-gcc/i386-pc-solaris2.10/lib/ -isystem /proj/spear0/dtmc_x86/llvm-2.8-gcc/i386-pc-solaris2.10/include -isystem /proj/spear0/dtmc_x86/llvm-2.8-gcc/i386-pc-solaris2.10/sys-include -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../llvm-gcc-4.2-2.8.source/gcc -I../../llvm-gcc-4.2-2.8.source/gcc/. -I../../llvm-gcc-4.2-2.8.source/gcc/../include -I./../intl -I../../llvm-gcc-4.2-2.8.source/gcc/../libcpp/include -I../../llvm-gcc-4.2-2.8.source/gcc/../libdecnumber -I../libdecnumber -I/proj/spear0/dtmc_x86/llvm/include -DL_mulxc3 -fvisibility=hidden -DHIDE_EXPORTS -c ../../llvm-gcc-4.2-2.8.source/gcc/libgcc2.c -o libgcc/./_mulxc3.o ../../llvm-gcc-4.2-2.8.source/gcc/libgcc2.c: In function '__mulxc3': ../../llvm-gcc-4.2-2.8.source/gcc/libgcc2.c:1855: internal compiler error: Segmentation Fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Re-running gmake reproduces the error, and provides the following background about gcc build progress: [ -f stage_final ] || echo stage3 > stage_final gmake[1]: Entering directory `/tmp/mfs/2.8/build' gmake[2]: Entering directory `/tmp/mfs/2.8/build' gmake[3]: Entering directory `/tmp/mfs/2.8/build' rm -f stage_current gmake[3]: Leaving directory `/tmp/mfs/2.8/build' gmake[2]: Leaving directory `/tmp/mfs/2.8/build' gmake[2]: Entering directory `/tmp/mfs/2.8/build' gmake[3]: Entering directory `/tmp/mfs/2.8/build/libiberty' gmake[4]: Entering directory `/tmp/mfs/2.8/build/libiberty/testsuite' gmake[4]: Nothing to be done for `all'. gmake[4]: Leaving directory `/tmp/mfs/2.8/build/libiberty/testsuite' gmake[3]: Leaving directory `/tmp/mfs/2.8/build/libiberty' gmake[3]: Entering directory `/tmp/mfs/2.8/build/intl' rm -f stamp-h1 /bin/sh ./config.status config.h config.status: creating config.h config.status: config.h is unchanged test -f config.h || (rm -f stamp-h1 && gmake stamp-h1) gmake[3]: Leaving directory `/tmp/mfs/2.8/build/intl' gmake[3]: Entering directory `/tmp/mfs/2.8/build/build-i386-pc-solaris2.10/libiberty' gmake[4]: Entering directory `/tmp/mfs/2.8/build/build-i386-pc-solaris2.10/libiberty/testsuite' gmake[4]: Nothing to be done for `all'. gmake[4]: Leaving directory `/tmp/mfs/2.8/build/build-i386-pc-solaris2.10/libiberty/testsuite' gmake[3]: Leaving directory `/tmp/mfs/2.8/build/build-i386-pc-solaris2.10/libiberty' gmake[3]: Entering directory `/tmp/mfs/2.8/build/build-i386-pc-solaris2.10/fixincludes' gmake[3]: Nothing to be done for `all'. gmake[3]: Leaving directory `/tmp/mfs/2.8/build/build-i386-pc-solaris2.10/fixincludes' gmake[3]: Entering directory `/tmp/mfs/2.8/build/libcpp' test -f config.h || (rm -f stamp-h1 && gmake stamp-h1) gmake[3]: Leaving directory `/tmp/mfs/2.8/build/libcpp' gmake[3]: Entering directory `/tmp/mfs/2.8/build/libdecnumber' gmake[3]: Nothing to be done for `all'. gmake[3]: Leaving directory `/tmp/mfs/2.8/build/libdecnumber' gmake[3]: Entering directory `/tmp/mfs/2.8/build/gcc' gmake[3]: Leaving directory `/tmp/mfs/2.8/build/gcc' gmake[2]: Leaving directory `/tmp/mfs/2.8/build' gmake[2]: Entering directory `/tmp/mfs/2.8/build' gmake[3]: Entering directory `/tmp/mfs/2.8/build' rm -f stage_current gmake[3]: Leaving directory `/tmp/mfs/2.8/build' gmake[2]: Leaving directory `/tmp/mfs/2.8/build' gmake[2]: Entering directory `/tmp/mfs/2.8/build' gmake[3]: Entering directory `/tmp/mfs/2.8/build/libiberty' gmake[4]: Entering directory `/tmp/mfs/2.8/build/libiberty/testsuite' gmake[4]: Nothing to be done for `all'. gmake[4]: Leaving directory `/tmp/mfs/2.8/build/libiberty/testsuite' gmake[3]: Leaving directory `/tmp/mfs/2.8/build/libiberty' gmake[3]: Entering directory `/tmp/mfs/2.8/build/intl' rm -f stamp-h1 /bin/sh ./config.status config.h config.status: creating config.h config.status: config.h is unchanged test -f config.h || (rm -f stamp-h1 && gmake stamp-h1) gmake[3]: Leaving directory `/tmp/mfs/2.8/build/intl' gmake[3]: Entering directory `/tmp/mfs/2.8/build/build-i386-pc-solaris2.10/libiberty' gmake[4]: Entering directory `/tmp/mfs/2.8/build/build-i386-pc-solaris2.10/libiberty/testsuite' gmake[4]: Nothing to be done for `all'. gmake[4]: Leaving directory `/tmp/mfs/2.8/build/build-i386-pc-solaris2.10/libiberty/testsuite' gmake[3]: Leaving directory `/tmp/mfs/2.8/build/build-i386-pc-solaris2.10/libiberty' gmake[3]: Entering directory `/tmp/mfs/2.8/build/build-i386-pc-solaris2.10/fixincludes' gmake[3]: Nothing to be done for `all'. gmake[3]: Leaving directory `/tmp/mfs/2.8/build/build-i386-pc-solaris2.10/fixincludes' gmake[3]: Entering directory `/tmp/mfs/2.8/build/libcpp' test -f config.h || (rm -f stamp-h1 && gmake stamp-h1) gmake[3]: Leaving directory `/tmp/mfs/2.8/build/libcpp' gmake[3]: Entering directory `/tmp/mfs/2.8/build/libdecnumber' gmake[3]: Nothing to be done for `all'. gmake[3]: Leaving directory `/tmp/mfs/2.8/build/libdecnumber' gmake[3]: Entering directory `/tmp/mfs/2.8/build/gcc' gmake \ CFLAGS="-g -O2 -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 " \ CONFIG_H="config.h auto-host.h ../../llvm-gcc-4.2-2.8.source/gcc/../include/ansidecl.h" \ MAKEOVERRIDES= \ -f libgcc.mk all gmake[4]: Entering directory `/tmp/mfs/2.8/build/gcc' gmake GCC_FOR_TARGET="/tmp/mfs/2.8/build/./gcc/xgcc -B/tmp/mfs/2.8/build/./gcc/ -B/proj/spear0/dtmc_x86/llvm-2.8-gcc/i386-pc-solaris2.10/bin/ -B/proj/spear0/dtmc_x86/llvm-2.8-gcc/i386-pc-solaris2.10/lib/ -isystem /proj/spear0/dtmc_x86/llvm-2.8-gcc/i386-pc-solaris2.10/include -isystem /proj/spear0/dtmc_x86/llvm-2.8-gcc/i386-pc-solaris2.10/sys-include " \ AR_FOR_TARGET="/usr/ccs/bin/ar" \ AR_CREATE_FOR_TARGET="/usr/ccs/bin/ar rc" \ AR_EXTRACT_FOR_TARGET="/usr/ccs/bin/ar x" \ AR_FLAGS_FOR_TARGET="" \ CC="/tmp/mfs/2.8/build/./prev-gcc/xgcc -B/tmp/mfs/2.8/build/./prev-gcc/ -B/proj/spear0/dtmc_x86/llvm-2.8-gcc/i386-pc-solaris2.10/bin/" CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -fno-common " \ BUILD_PREFIX="" \ BUILD_PREFIX_1="" \ LANGUAGES="" \ LIBGCC2_CFLAGS="-O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED " \ LIBGCC2_STATIC_CFLAGS="" \ MULTILIB_CFLAGS="" T= gmon.o crtbegin.o crtend.o gmake[5]: Entering directory `/tmp/mfs/2.8/build/gcc' gmake[5]: `crtend.o' is up to date. gmake[5]: Leaving directory `/tmp/mfs/2.8/build/gcc' /tmp/mfs/2.8/build/./gcc/xgcc -B/tmp/mfs/2.8/build/./gcc/ -B/proj/spear0/dtmc_x86/llvm-2.8-gcc/i386-pc-solaris2.10/bin/ -B/proj/spear0/dtmc_x86/llvm-2.8-gcc/i386-pc-solaris2.10/lib/ -isystem /proj/spear0/dtmc_x86/llvm-2.8-gcc/i386-pc-solaris2.10/include -isystem /proj/spear0/dtmc_x86/llvm-2.8-gcc/i386-pc-solaris2.10/sys-include -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../llvm-gcc-4.2-2.8.source/gcc -I../../llvm-gcc-4.2-2.8.source/gcc/. -I../../llvm-gcc-4.2-2.8.source/gcc/../include -I./../intl -I../../llvm-gcc-4.2-2.8.source/gcc/../libcpp/include -I../../llvm-gcc-4.2-2.8.source/gcc/../libdecnumber -I../libdecnumber -I/proj/spear0/dtmc_x86/llvm/include -DL_mulxc3 -fvisibility=hidden -DHIDE_EXPORTS -c ../../llvm-gcc-4.2-2.8.source/gcc/libgcc2.c -o libgcc/./_mulxc3.o ../../llvm-gcc-4.2-2.8.source/gcc/libgcc2.c: In function '__mulxc3': ../../llvm-gcc-4.2-2.8.source/gcc/libgcc2.c:1855: internal compiler error: Segmentation Fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. gmake[4]: *** [libgcc/./_mulxc3.o] Error 1 gmake[4]: Leaving directory `/tmp/mfs/2.8/build/gcc' gmake[3]: *** [stmp-multilib] Error 2 gmake[3]: Leaving directory `/tmp/mfs/2.8/build/gcc' gmake[2]: *** [all-stage2-gcc] Error 2 gmake[2]: Leaving directory `/tmp/mfs/2.8/build' gmake[1]: *** [stage2-bubble] Error 2 gmake[1]: Leaving directory `/tmp/mfs/2.8/build' gmake: *** [all] Error 2 The bug also occurs when using gcc 4.4.1 on Solaris/x86. And even though the exact error is "internal compiler error", which would imply a gcc bug, the fact that both compilers can handle llvm-gcc-2.7-4.2 but not llvm-gcc-2.8-4.2 suggests that this has more to do with changes to llvm-gcc between the 2.7 and 2.8 releases. Any advice would be greatly appreciated! - Mike Spear -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 14 10:55:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 10:55:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 8375] Symbol is undefined when LLVM built by CMake In-Reply-To: References: Message-ID: <20101014155544.C74652A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8375 ?scar Fuentes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |ofv at wanadoo.es Resolution| |FIXED --- Comment #1 from ?scar Fuentes 2010-10-14 10:55:44 CDT --- A generic fix was implemented by r116479 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 14 13:07:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 13:07:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 8374] Generalize clang blocks to support other closure-like language features In-Reply-To: References: Message-ID: <20101014180759.04CFF2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8374 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Douglas Gregor 2010-10-14 13:07:58 CDT --- While I agree with the basic idea (and several of the specifics here) of generalizing blocks to support other kinds of closures, this isn't the kind of thing we keep in our bug system. When someone starts implementing these other features, they'll probably start by refactoring the existing code. As Chris says, it's not actionable, so I'm going to close the bug itself. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 14 13:09:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 13:09:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 8379] New: Use of llvm.powi.f64 on Windows crashes Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8379 Summary: Use of llvm.powi.f64 on Windows crashes Product: new-bugs Version: 2.8 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: mtsmith at synopsys.com CC: llvmbugs at cs.uiuc.edu The attached file demonstrates the problem. Run llvm-as on it, then run it using lli, and it crashes. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 14 14:04:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 14:04:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 8380] New: Assertion `StartColNo <= EndColNo && "Invalid range!"' on invalid code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8380 Summary: Assertion `StartColNo <= EndColNo && "Invalid range!"' 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 snippet: extern""a{ Leads to the following backtrack: clang++ *15231.cc t.bashed.15231.cc:1:7: error: unknown linkage language extern""a{ ^ t.bashed.15231.cc:1:9: error: C++ requires a type specifier for all declarations clang: TextDiagnosticPrinter.cpp:124: void clang::TextDiagnosticPrinter::HighlightRange(const clang::CharSourceRange&, const clang::SourceManager&, unsigned int, clang::FileID, std::string&, const std::string&): Assertion `StartColNo <= EndColNo && "Invalid range!"' failed. 0 clang 0x000000000165139f 1 clang 0x0000000001653612 2 libpthread.so.0 0x00007ff2e138e8f0 3 libc.so.6 0x00007ff2e067da75 gsignal + 53 4 libc.so.6 0x00007ff2e06815c0 abort + 384 5 libc.so.6 0x00007ff2e0676941 __assert_fail + 241 6 clang 0x0000000000681a33 clang::TextDiagnosticPrinter::HighlightRange(clang::CharSourceRange const&, clang::SourceManager const&, unsigned int, clang::FileID, std::string&, std::string const&) + 1331 7 clang 0x0000000000682bd8 clang::TextDiagnosticPrinter::EmitCaretDiagnostic(clang::SourceLocation, clang::CharSourceRange*, unsigned int, clang::SourceManager const&, clang::FixItHint const*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) + 3912 8 clang 0x000000000068487d clang::TextDiagnosticPrinter::HandleDiagnostic(clang::Diagnostic::Level, clang::DiagnosticInfo const&) + 3997 9 clang 0x0000000000cf7dbb clang::Diagnostic::ProcessDiag() + 523 10 clang 0x0000000000cf7f4d clang::DiagnosticBuilder::Emit() + 29 11 clang 0x00000000008d6c2d clang::Sema::SemaDiagnosticBuilder::~SemaDiagnosticBuilder() + 173 12 clang 0x0000000000aa6b25 13 clang 0x0000000000aa8442 clang::Sema::GetTypeForDeclarator(clang::Declarator&, clang::Scope*, clang::TagDecl**) + 130 14 clang 0x0000000000945d6d clang::Sema::HandleDeclarator(clang::Scope*, clang::Declarator&, clang::ASTMultiPtr, bool) + 717 15 clang 0x00000000008a04cb clang::Parser::ParseDeclarationAfterDeclarator(clang::Declarator&, clang::Parser::ParsedTemplateInfo const&) + 107 16 clang 0x00000000008a71f1 clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int, bool, clang::SourceLocation*) + 609 17 clang 0x000000000089a8c9 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&, clang::AttributeList*, clang::AccessSpecifier) + 201 18 clang 0x000000000089c74f clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList, clang::Parser::ParsingDeclSpec*) + 95 19 clang 0x00000000008b0a88 clang::Parser::ParseLinkage(clang::Parser::ParsingDeclSpec&, unsigned int) + 488 20 clang 0x000000000089a9c8 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&, clang::AttributeList*, clang::AccessSpecifier) + 456 21 clang 0x000000000089ace4 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::AttributeList*, clang::AccessSpecifier) + 372 22 clang 0x000000000089cc25 clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList, clang::Parser::ParsingDeclSpec*) + 1333 23 clang 0x000000000089cd72 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 114 24 clang 0x00000000008854fb clang::ParseAST(clang::Sema&, bool) + 139 25 clang 0x000000000075b444 clang::CodeGenAction::ExecuteAction() + 68 26 clang 0x0000000000661165 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 357 27 clang 0x0000000000640c5c clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1276 28 clang 0x0000000000638c1e cc1_main(char const**, char const**, char const*, void*) + 622 29 clang 0x000000000063f777 main + 4087 30 libc.so.6 0x00007ff2e0668c4d __libc_start_main + 253 31 clang 0x0000000000637409 Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name t.bashed.15231.cc -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.1 -resource-dir /usr/local/lib/clang/2.9 -ferror-limit 19 -fmessage-length 80 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-tbcQ8h.s -x c++ t.bashed.15231.cc 1. t.bashed.15231.cc:1:10: current parser token '{' clang: error: clang frontend command failed due to signal 6 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Oct 14 17:47:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 17:47:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 8381] New: Incorrect x86/SSE code generation involving <<8 x i16>> vector Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8381 Summary: Incorrect x86/SSE code generation involving <<8 x i16>> vector Product: new-bugs Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: brian.e.paul at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5618) --> (http://llvm.org/bugs/attachment.cgi?id=5618) bytecode which generates incorrect code We found this issue with the Mesa/Gallium LLVMpipe driver. At one point we're constructing a <<8 x i16>> vector. All elements should have the same value. The value comes from a scalar floating point calculation. The float is converted to i32 and that's trunc'd to i16 before we build the vector. This worked with LLVM 2.7 but fails with LLVM 2.8. We can work around the bug by inserting a special no-op shuffle which replicates the [0] and [2] elements to the other elements in the vector. This shouldn't be necessary, of course. I'm attaching the defective bytecode file and a bytecode file with our work-around. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 14 18:08:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 18:08:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 8382] New: wrong diagnostic on missing template arguments Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8382 Summary: wrong diagnostic on missing template arguments Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Consider this testcase: template class Foo {}; class Bar : public Foo {}; the diagnostic clang produces is: b2973185.cc:3:20: error: expected class name class Bar : public Foo {}; ^ 1 error generated. which isn't quite right; Foo is a class name, so what's wrong here? It's that Foo is a template and I didn't specify the template arguments. It'd be great if clang pointed that 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 Thu Oct 14 18:42:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 18:42:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 8383] New: #pragma weak does not honor visibility Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8383 Summary: #pragma weak does not honor visibility Product: clang Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: jed at 59a2.org CC: llvmbugs at cs.uiuc.edu $ cat weak.c #define EXPORT __attribute((visibility("default"))) extern int EXPORT foo_a(void); extern int EXPORT foo_b(void); extern int EXPORT foo_c(void); #pragma weak foo_a = foo_c int foo_b(void) __attribute((weak, alias(("foo_c")))); int foo_c(void) { return 0; } $ clang -shared -fvisibility=hidden weak.c -o libweak.so && nm -D libweak.so | grep foo 0000000000000550 W foo_b 0000000000000550 T foo_c $ gcc -shared -fvisibility=hidden weak.c -o libweak.so && nm -D libweak.so | grep foo 000000000000055c W foo_a 000000000000055c W foo_b 000000000000055c T foo_c The visibility of the symbol "foo_a" is not respected, but the pragma is clearly supported because the following works as expected. $ clang -shared -fvisibility=default weak.c -o libweak.so && nm -D libweak.so | grep foo 0000000000000580 W foo_a 0000000000000580 W foo_b 0000000000000580 T foo_c $ clang --version clang version 2.8 (branches/release_28) Target: x86_64-unknown-linux-gnu Thread model: posix $ uname -a Linux kunyang 2.6.35-ARCH #1 SMP PREEMPT Wed Sep 29 08:45:18 CEST 2010 x86_64 Intel(R) Core(TM)2 Duo CPU P8700 @ 2.53GHz GenuineIntel GNU/Linux -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Oct 14 19:53:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 19:53:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 8344] Scoped over.built OO_Conditional enum fix In-Reply-To: References: Message-ID: <20101015005302.C8E292A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8344 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Douglas Gregor 2010-10-14 19:53:02 CDT --- Committed in r116549, thanks! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Oct 14 19:56:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 19:56:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 8155] couldn't get a simple c++ code to compile In-Reply-To: References: Message-ID: <20101015005619.9F70E2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8155 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #8 from Douglas Gregor 2010-10-14 19:56:18 CDT --- Closing this bug, since we can't reproduce 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 Thu Oct 14 20:06:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 20:06:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 6920] clang++: doesn't emit inline operator delete from parent class In-Reply-To: References: Message-ID: <20101015010615.2ABAF2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6920 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-10-14 20:06:14 CDT --- This is working 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 Thu Oct 14 20:07:22 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 20:07:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 7038] ast-dump crash for inline-declared structs in other structs In-Reply-To: References: Message-ID: <20101015010722.3F94B2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7038 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-10-14 20:07:21 CDT --- This is working fine 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 Thu Oct 14 20:16:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 20:16:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 7053] clang++ accepts invalid template code In-Reply-To: References: Message-ID: <20101015011628.984902A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7053 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-10-14 20:16:28 CDT --- Fixed in Clang r116551. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 14 20:22:10 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 20:22:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 7076] extern "C" handled like "extern" In-Reply-To: References: Message-ID: <20101015012210.5AE052A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7076 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Douglas Gregor 2010-10-14 20:22:09 CDT --- Fixed in Clang r116553. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 14 20:31:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 20:31:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 8364] Verifier doesn't flag out-of-module constants, BC writing crashes In-Reply-To: References: Message-ID: <20101015013114.7AE4F2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8364 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |wendling at apple.com Resolution| |INVALID --- Comment #1 from Bill Wendling 2010-10-14 20:31:13 CDT --- You probably want to use the Module::getOrInsertFunction and Module::getOrInsertGlobal methods instead of manually putting them into the Module's lists. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 14 20:57:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 20:57:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 4418] JIT broken on MingW for available_externally functions. In-Reply-To: References: Message-ID: <20101015015740.398422A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4418 NAKAMURA Takumi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from NAKAMURA Takumi 2010-10-14 20:57:39 CDT --- Now it works with both llvm-gcc and clang on mingw. It seems fixed in r85077. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 14 21:02:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 21:02:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 6275] Clang doesn't codegen calls to dllimport functions properly In-Reply-To: References: Message-ID: <20101015020206.1B8B72A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6275 NAKAMURA Takumi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from NAKAMURA Takumi 2010-10-14 21:02:05 CDT --- Fixed in r116184. Now we can see "declare dllimport void @foo(i32)" and "calll *__imp__foo" 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 Thu Oct 14 21:07:12 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 21:07:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 6269] Clang doesn't support declspec attributes In-Reply-To: References: Message-ID: <20101015020712.5D40F2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6269 NAKAMURA Takumi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #9 from NAKAMURA Takumi 2010-10-14 21:07:11 CDT --- (In reply to comment #8) > - Clang doesn't support declspec attributes It seems fixed :p > - Clang doesn't codegen calls to dllimport functions properly Fixed in r116184. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 14 21:51:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 14 Oct 2010 21:51:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 6269] Clang doesn't support declspec attributes In-Reply-To: References: Message-ID: <20101015025130.BB3E32A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6269 Charles Davis changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #10 from Charles Davis 2010-10-14 21:51:30 CDT --- (In reply to comment #9) > (In reply to comment #8) > > - Clang doesn't support declspec attributes > > It seems fixed :p Yes, Clang supports *some* declspec attributes, but not all of them, or even a significant portion of them, for that matter. In fact, the only ones handled are dllimport and dllexport. Reopening. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Oct 15 00:10:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 15 Oct 2010 00:10:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 6275] Clang doesn't codegen calls to dllimport functions properly In-Reply-To: References: Message-ID: <20101015051049.026602A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6275 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #4 from Eli Friedman 2010-10-15 00:10:48 CDT --- Err, for what definition of "working"? Testcase is still broken for me. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Oct 15 03:29:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 15 Oct 2010 03:29:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 8371] __attribute__ ((__const)) not recognized In-Reply-To: References: Message-ID: <20101015082908.2C18D2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8371 Gabor Greif changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from Gabor Greif 2010-10-15 03:29:07 CDT --- fixed by r116570. Contains a comment. The fix is so simple, that a test for it is (IMHO) not needed, anyway our app tests it well, so I'll notice when somebody breaks it :-) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Oct 15 05:23:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 15 Oct 2010 05:23:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 8384] New: Assertion `Access == AS_private || Access == AS_protected' on invalid code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8384 Summary: Assertion `Access == AS_private || Access == AS_protected' 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: struct{template::EffectiveContext&, const clang::CXXRecordDecl*, clang::AccessSpecifier, const::AccessTarget&): Assertion `Access == AS_private || Access == AS_protected' failed. 0 clang 0x000000000165139f 1 clang 0x0000000001653612 2 libpthread.so.0 0x00007fe6532c98f0 3 libc.so.6 0x00007fe6525b8a75 gsignal + 53 4 libc.so.6 0x00007fe6525bc5c0 abort + 384 5 libc.so.6 0x00007fe6525b1941 __assert_fail + 241 6 clang 0x00000000008dd651 7 clang 0x00000000008ddc46 8 clang 0x00000000008de4b2 9 clang 0x00000000008deef1 10 clang 0x00000000008df3ba clang::Sema::CheckLookupAccess(clang::LookupResult const&) + 330 11 clang 0x000000000092cbb5 clang::Sema::getTypeName(clang::IdentifierInfo&, clang::SourceLocation, clang::Scope*, clang::CXXScopeSpec*, bool, clang::OpaquePtr) + 1013 12 clang 0x00000000008a2f13 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 3411 13 clang 0x00000000008c5f11 clang::Parser::ParseNonTypeTemplateParameter(unsigned int, unsigned int) + 497 14 clang 0x00000000008c85e7 clang::Parser::ParseTemplateParameterList(unsigned int, llvm::SmallVectorImpl&) + 55 15 clang 0x00000000008c887c clang::Parser::ParseTemplateParameters(unsigned int, llvm::SmallVectorImpl&, clang::SourceLocation&, clang::SourceLocation&) + 284 16 clang 0x00000000008c8afa clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 410 17 clang 0x00000000008afa2f clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject*) + 2399 18 clang 0x00000000008b1c0f clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int, clang::Decl*) + 1599 19 clang 0x00000000008b2ad0 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 2800 20 clang 0x00000000008a298c clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 1996 21 clang 0x000000000089a896 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&, clang::AttributeList*, clang::AccessSpecifier) + 150 22 clang 0x000000000089ace4 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::AttributeList*, clang::AccessSpecifier) + 372 23 clang 0x000000000089cc25 clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList, clang::Parser::ParsingDeclSpec*) + 1333 24 clang 0x000000000089cd72 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 114 25 clang 0x00000000008854fb clang::ParseAST(clang::Sema&, bool) + 139 26 clang 0x000000000075b444 clang::CodeGenAction::ExecuteAction() + 68 27 clang 0x0000000000661165 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 357 28 clang 0x0000000000640c5c clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1276 29 clang 0x0000000000638c1e cc1_main(char const**, char const**, char const*, void*) + 622 30 clang 0x000000000063f777 main + 4087 31 libc.so.6 0x00007fe6525a3c4d __libc_start_main + 253 32 clang 0x0000000000637409 Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name t.bashed.27877.cc -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.1 -resource-dir /usr/local/lib/clang/2.9 -ferror-limit 19 -fmessage-length 171 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-X5OKLG.s -x c++ t.bashed.27877.cc 1. t.bashed.27877.cc:1:37: current parser token 'aa' 2. t.bashed.27877.cc:1:1: parsing struct/union/class body clang: error: clang frontend command failed due to signal 6 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Oct 15 05:27:06 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 15 Oct 2010 05:27:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 8385] New: Assertion `Access != AS_none && "Access specifier is AS_none inside a record decl"' on invalid code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8385 Summary: Assertion `Access != AS_none && "Access specifier is AS_none inside a record decl"' 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: struct{template struct{ Produces the backtrack: clang: DeclBase.cpp:443: void clang::Decl::CheckAccessDeclContext() const: Assertion `Access != AS_none && "Access specifier is AS_none inside a record decl"' failed. 0 clang 0x000000000165139f 1 clang 0x0000000001653612 2 libpthread.so.0 0x00007f9d331168f0 3 libc.so.6 0x00007f9d32405a75 gsignal + 53 4 libc.so.6 0x00007f9d324095c0 abort + 384 5 libc.so.6 0x00007f9d323fe941 __assert_fail + 241 6 clang 0x0000000000c43d49 clang::Decl::CheckAccessDeclContext() const + 121 7 clang 0x0000000000938436 clang::Sema::BuildAnonymousStructOrUnion(clang::Scope*, clang::DeclSpec&, clang::AccessSpecifier, clang::RecordDecl*) + 886 8 clang 0x0000000000939221 clang::Sema::ParsedFreeStandingDeclSpec(clang::Scope*, clang::AccessSpecifier, clang::DeclSpec&) + 721 9 clang 0x00000000008c5901 clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::AccessSpecifier) + 2065 10 clang 0x00000000008c5cd7 clang::Parser::ParseExplicitInstantiation(clang::SourceLocation, clang::SourceLocation, clang::SourceLocation&) + 119 11 clang 0x00000000008afa2f clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject*) + 2399 12 clang 0x00000000008b1c0f clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int, clang::Decl*) + 1599 13 clang 0x00000000008b2ad0 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 2800 14 clang 0x00000000008a298c clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 1996 15 clang 0x000000000089a896 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&, clang::AttributeList*, clang::AccessSpecifier) + 150 16 clang 0x000000000089ace4 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::AttributeList*, clang::AccessSpecifier) + 372 17 clang 0x000000000089cc25 clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList, clang::Parser::ParsingDeclSpec*) + 1333 18 clang 0x000000000089cd72 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 114 19 clang 0x00000000008854fb clang::ParseAST(clang::Sema&, bool) + 139 20 clang 0x000000000075b444 clang::CodeGenAction::ExecuteAction() + 68 21 clang 0x0000000000661165 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 357 22 clang 0x0000000000640c5c clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1276 23 clang 0x0000000000638c1e cc1_main(char const**, char const**, char const*, void*) + 622 24 clang 0x000000000063f777 main + 4087 25 libc.so.6 0x00007f9d323f0c4d __libc_start_main + 253 26 clang 0x0000000000637409 Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name t.bashed.16288.cc -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.1 -resource-dir /usr/local/lib/clang/2.9 -ferror-limit 19 -fmessage-length 171 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-nWJ8j3.s -x c++ t.bashed.16288.cc 1. parser at end of file 2. t.bashed.16288.cc:1:1: parsing struct/union/class body clang: error: clang frontend command failed due to signal 6 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Oct 15 08:22:50 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 15 Oct 2010 08:22:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 7082] No warning/error for matching class and member variable/function names. In-Reply-To: References: Message-ID: <20101015132250.2958A2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7082 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-10-15 08:22:49 CDT --- Fixed in Clang r116573. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 15 08:33:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 15 Oct 2010 08:33:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 8364] Verifier doesn't flag out-of-module constants, BC writing crashes In-Reply-To: References: Message-ID: <20101015133327.28DA72A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8364 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #4 from Duncan Sands 2010-10-15 08:33:26 CDT --- I don't see how this can be considered resolved, since the verifier hasn't been beefed up as requested. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 15 08:36:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 15 Oct 2010 08:36:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 8386] New: template default parameter type of function default argument causes missing symbol Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8386 Summary: template default parameter type of function default argument causes missing symbol Product: new-bugs Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: Axel.Naumann at cern.ch CC: llvmbugs at cs.uiuc.edu $ cat t.cxx #include void Invoke(const std::vector& = std::vector()); void f() { Invoke(); } $ clang++ -O2 -c t.cxx && nm t.o | grep __ZNSaIPvEC1Ev U __ZNSaIPvEC1Ev whereas e.g.: $ g++ -O2 -c t.cxx && nm t.o | grep __ZNSaIPvEC1Ev I'm pretty sure that g++ is correct here. This behavior of clang++ results in an undefined symbol __ZNSaIPvEC1Ev when loading the library containing t.o. Cheers, Axel. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Oct 15 09:57:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 15 Oct 2010 09:57:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 8381] Incorrect x86/SSE code generation involving <<8 x i16>> vector In-Reply-To: References: Message-ID: <20101015145724.44E312A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8381 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #11 from Duncan Sands 2010-10-15 09:57:23 CDT --- I can reproduce this with llc from LLVM 2.8. However with the latest llc from svn I get: movl 8(%esp), %eax movl 4(%esp), %ecx movd %eax, %xmm0 punpcklwd %xmm0, %xmm0 # xmm0 = xmm0[0,0,1,1,2,2,3,3] pshufd $0, %xmm0, %xmm0 # xmm0 = xmm0[0,0,0,0] movd %ecx, %xmm1 punpcklwd %xmm1, %xmm1 # xmm1 = xmm1[0,0,1,1,2,2,3,3] pshufd $0, %xmm1, %xmm1 # xmm1 = xmm1[0,0,0,0] paddw %xmm0, %xmm1 movaps %xmm1, %xmm0 ret So it seems to have been fixed already. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 15 13:37:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 15 Oct 2010 13:37:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 8347] ARM va_arg bug In-Reply-To: References: Message-ID: <20101015183700.4DEFE2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8347 Jim Grosbach changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |grosbach at apple.com Resolution| |FIXED --- Comment #4 from Jim Grosbach 2010-10-15 13:36:59 CDT --- Fix committed in r116602. 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 Oct 15 14:45:03 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 15 Oct 2010 14:45:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 8388] New: memcpy/memmove/memset intrinsics are unclear about alignment value 0 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8388 Summary: memcpy/memmove/memset intrinsics are unclear about alignment value 0 Product: Documentation Version: trunk Platform: All URL: http://llvm.org/docs/LangRef.html#int_memcpy OS/Version: All Status: NEW Keywords: documentation Severity: normal Priority: P Component: General docs AssignedTo: unassignedbugs at nondot.org ReportedBy: matti.niemenmaa+llvmbugs at iki.fi CC: llvmbugs at cs.uiuc.edu The docs for llvm.memcpy.*, llvm.memmove.*, and llvm.memset.* say the following about alignment value 0: "If the call to this intrinsic has an alignment value that is not 0 or 1, then the caller guarantees that both the source and destination pointers are aligned to that boundary." "If the argument is known to be aligned to some boundary, this can be specified as the fourth argument, otherwise it should be set to 0 or 1." This seems to imply that an alignment value of 0 has the same effect as 1. At best, it doesn't say what 0 means. For the 'load' and 'store' instructions, the docs say that a value of 0 allows the backend to assume the best alignment for the target. This seems to be the actual behaviour for the llvm.mem*.* intrinsics as well. For example, the memset in the following gets codegenned to a 'movaps', causing a segfault with llc -O0 (-O1 and above get lucky with the choice of stack slot): 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" define i32 @main() { %a = alloca [4 x i32], align 1 %p = bitcast [4 x i32]* %a to i8* call void @llvm.memset.p0i8.i64(i8* %p, i8 0, i64 16, i32 0, i1 false) ret i32 0 } declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i32, i1) nounwind The docs could use some clarification and say that if the alignment value is 0, it's treated as meaning arbitrary alignment. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 15 15:54:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 15 Oct 2010 15:54:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 8192] Clang differs from GCC in exporting the typeinfo name in presence of anonymous namespace, causing link errors In-Reply-To: References: Message-ID: <20101015205452.2A6B42A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8192 Argyrios Kyrtzidis changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |akyrtzi at gmail.com Resolution| |FIXED --- Comment #5 from Argyrios Kyrtzidis 2010-10-15 15:54:51 CDT --- This has been fixed. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Oct 15 16:00:12 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 15 Oct 2010 16:00:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 8177] Clang differs from GCC in how it deals with vtables in combination with limited symbol visibility, causing link errors In-Reply-To: References: Message-ID: <20101015210012.646A92A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8177 Argyrios Kyrtzidis changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |akyrtzi at gmail.com Resolution| |FIXED --- Comment #2 from Argyrios Kyrtzidis 2010-10-15 16:00:11 CDT --- This has been fixed. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Oct 15 16:43:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 15 Oct 2010 16:43:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 7944] diagnostic missing source location when used with macro In-Reply-To: References: Message-ID: <20101015214342.5E9B22A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7944 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #2 from Nick Lewycky 2010-10-15 16:43:41 CDT --- Fixed in r116624. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 15 17:34:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 15 Oct 2010 17:34:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 8389] New: Global Variable Optimizer transforms OcamlGCPrinter.cpp incorrectly Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8389 Summary: Global Variable Optimizer transforms OcamlGCPrinter.cpp incorrectly Product: libraries Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: Interprocedural Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: foldr at codedgers.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5622) --> (http://llvm.org/bugs/attachment.cgi?id=5622) OcamlGCPrinter.O0.bc When trying to compile LLVM 2.8 with llvm-gcc on Windows I encountered the following error: c:/code/codedgers/evaluation-2.8/obj/Release/lib/libLLVMAsmPrinter.a(AsmPrinter. o):fake:(.bss$linkonce__ZN4llvm8RegistryINS_17GCMetadataPrinterENS_14RegistryTra itsIS1_EEE4HeadE+0x0): multiple definition of `llvm::Registry >::Head' c:/code/codedgers/evaluation-2.8/obj/Release/lib/libLLVMAsmPrinter.a(OcamlGCPrin ter.o):fake:(.data$linkonce__ZN4llvm8RegistryINS_17GCMetadataPrinterENS_14Regist ryTraitsIS1_EEE4HeadE+0x0): first defined here Taking a look at the bytecode: OcamlGCPrinter.ll: @_ZN4llvm8RegistryINS_17GCMetadataPrinterENS_14RegistryTraitsIS1_EEE4HeadE = weak_odr global %"struct.llvm::Registry >::node"* getelementptr inbounds (%"struct.llvm::Registry >::Add<::OcamlGCMetadataPrinter>"* @_ZL1Y, i32 0, i32 1) AsmPrinter.ll: @_ZN4llvm8RegistryINS_17GCMetadataPrinterENS_14RegistryTraitsIS1_EEE4HeadE = weak_odr global %"struct.llvm::Registry >::node"* null However, when compiled with -O0, the relevant fragment of OcamlGCPrinter.ll looks like this: @_ZN4llvm8RegistryINS_17GCMetadataPrinterENS_14RegistryTraitsIS1_EEE4HeadE = weak_odr global %"struct.llvm::Registry >::node"* null Running opt with -print-after-all showed that -globalopt is to blame. Attached are both -O0 and -O2 versions of OCamlGCPrinter.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 Sat Oct 16 03:27:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 16 Oct 2010 03:27:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 8348] [MC-COFF] COFF backend can't handle weak symbols In-Reply-To: References: Message-ID: <20101016082717.20D422A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8348 Michael Spencer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Michael Spencer 2010-10-16 03:27:16 CDT --- Fixed in r116666. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 16 04:25:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 16 Oct 2010 04:25:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 8390] New: [META] Selfhosting clang/llvm on Mingw and Cygwin Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8390 Summary: [META] Selfhosting clang/llvm on Mingw and Cygwin Product: new-bugs Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: geek4civic at gmail.com CC: llvmbugs at cs.uiuc.edu Depends on: 6270,6275,7955,8354 Now, a few issues prevent building clang/llvm selfhost on cygming. I will not mention to testing issues 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 Sat Oct 16 13:38:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 16 Oct 2010 13:38:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 8391] New: Dependency file name ".d" files Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8391 Summary: Dependency file name ".d" files Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: bohan.llvm at retropaganda.info CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5624) --> (http://llvm.org/bugs/attachment.cgi?id=5624) look for the last dot in the filename, not the first one When the filename for the ".d" file is chosen automatically (i.e. not specified on the command line), the basename is computed from the input file(s) by removing everything after the *first* dot and adding a ".d" extension. So, given an input file foo.bar.cpp, it will choose foo.d GNU GCC would have chosen foo.bar.d because it computes the basename by looking for the *last* dot. The patch attached makes clang act like 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 Sun Oct 17 03:35:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 17 Oct 2010 03:35:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 8393] New: realloc() modeling error Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8393 Summary: realloc() modeling error Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: dimhen at gmail.com CC: llvmbugs at cs.uiuc.edu $ clang -v clang version 2.9 (trunk 116687) Target: x86_64-unknown-linux-gnu Thread model: posix $ cat realloc.c #include void foo() { char *ptr = malloc(1); char *re_ptr; re_ptr = realloc( ptr, 2); if( re_ptr == NULL ) { free( ptr ); return; } free( re_ptr ); } $ clang -cc1 realloc.c -analyze -analyzer-check-objc-mem -analyzer-experimental-checks realloc.c:10:2: warning: Try to free a memory block that has been released free( ptr ); ^~~~~~~~~~~ 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 Sun Oct 17 05:21:35 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 17 Oct 2010 05:21:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 8395] New: pthread_mutex_lock() modeling error Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8395 Summary: pthread_mutex_lock() modeling error Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: dimhen at gmail.com CC: llvmbugs at cs.uiuc.edu $ clang -v clang version 2.9 (trunk 116687) Target: x86_64-unknown-linux-gnu Thread model: posix s$ cat pthread_mutex_lock.c #include static pthread_mutex_t m; void foo() { int err = 0; err = pthread_mutex_lock(&m); if(err) return; pthread_mutex_unlock(&m); } $ clang -cc1 pthread_mutex_lock.c -analyze -analyzer-check-objc-mem -analyzer-experimental-checks pthread_mutex_lock.c:10:2: warning: This statement is never executed return; ^~~~~~ 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 Sun Oct 17 07:25:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 17 Oct 2010 07:25:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 8396] New: Fix-it for "main must return int" is wrong for "unsigned int" Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8396 Summary: Fix-it for "main must return int" is wrong for "unsigned int" Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: schaub-johannes at web.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com unsigned int main() { } main1.cpp:1:1: error: 'main' must return 'int' unsigned int main() { ^~~~~~~~ int 1 error generated. Should span the entire "unsigned int". -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Oct 17 08:49:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 17 Oct 2010 08:49:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 8397] New: Issue of clang++ symlink at installation time using CMake Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8397 Summary: Issue of clang++ symlink at installation time using CMake Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: oroppas at gmail.com CC: llvmbugs at cs.uiuc.edu Creation of the symlink to clang fails when installing clang using package manager such as pacman. Here's what the pacman basically does: cd build cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ... make make DESTDIR=${pkgdir} install where ${pkgdir} is the pacman's package install destination, which is not /usr but rather /home/ryuta/devel/llvm/pkg/usr, for example. pacman later strips out irrelevant path. After cmake executed, build/tools/clang/tools/driver/cmake_install.cmake looks like: ... IF(CMAKE_INSTALL_DO_STRIP) EXECUTE_PROCESS(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/clang") ENDIF(CMAKE_INSTALL_DO_STRIP) ENDIF() ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified") IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified") execute_process(COMMAND "/usr/bin/cmake" -E create_symlink "/usr/bin/clang" "//usr/bin/clang++") ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified") Unlike clang where its install prefix is $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}, clang++ prefix is hardwired as /usr and symlink doesn't take place. I think more comprehensive symlink mechanism would be appreciated. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 17 11:12:12 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 17 Oct 2010 11:12:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 8397] Issue of clang++ symlink at installation time using CMake In-Reply-To: References: Message-ID: <20101017161212.A28792A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8397 ?scar Fuentes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |ofv at wanadoo.es Resolution| |FIXED --- Comment #1 from ?scar Fuentes 2010-10-17 11:12:12 CDT --- Fix committed in r116689. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 17 14:01:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 17 Oct 2010 14:01:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 8398] New: Struct padding is not accounted for when passing structs to VA functions. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8398 Summary: Struct padding is not accounted for when passing structs to VA functions. Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: bigcheesegs at gmail.com CC: llvmbugs at cs.uiuc.edu While debugging test-suite/SingleSource/UnitTests/2003-08-11-VaListArg.c I reduced it to incorrect passing of structs with padding. The VA code has GEPs with offsets that include padding, however, no padding is passed to the function. To reproduce (on Windows): % clang -O3 va.c -o va.exe % va.exe QuadWord { 19, 0.000000 } Expected Output: QuadWord { 19, 20.000000 } Changing the following in va.ll fixes the problem: - tail call void (...)* @testVaArg(i32 19, double 2.000000e+001) + tail call void (...)* @testVaArg(i32 19, i32 0, double 2.000000e+001) ============================================================================= file: va.c ============================================================================= #include #include /* 12 bytes if d is 4-byte aligned; 16 bytes if d is 8-byte aligned. */ typedef struct QuadWordS_struct { int i; double d; } QuadWordS; static void testVaArg(char *fmt, ...) { va_list ap; va_start(ap, fmt); QuadWordS qw; qw = va_arg(ap, QuadWordS); printf("QuadWord { %d, %f }\n", qw.i, qw.d); va_end(ap); } int main() { QuadWordS qw = { 19, 20.0 }; /* test passing structs by value to varargs */ testVaArg("Q", qw); return sizeof(qw); } ============================================================================= ============================================================================= file: va.ll ============================================================================= target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f80:128:128-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32" target triple = "i686-pc-win32" %struct.QuadWordS_struct = type { i32, double } @.str1 = private constant [21 x i8] c"QuadWord { %d, %f }\0A\00" define i32 @main() nounwind { entry: tail call void (...)* @testVaArg(i32 19, double 2.000000e+001) ret i32 16 } define internal void @testVaArg(...) nounwind { entry: %ap = alloca i8*, align 4 %ap1 = bitcast i8** %ap to i8* call void @llvm.va_start(i8* %ap1) %ap.cur = load i8** %ap, align 4 %ap.next = getelementptr i8* %ap.cur, i32 16 store i8* %ap.next, i8** %ap, align 4 %ap.cur8.0 = bitcast i8* %ap.cur to i32* %tmp9 = load i32* %ap.cur8.0, align 8 %ap.cur8.1 = getelementptr inbounds i8* %ap.cur, i32 8 %0 = bitcast i8* %ap.cur8.1 to double* %tmp10 = load double* %0, align 8 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([21 x i8]* @.str1, i32 0, i32 0), i32 %tmp9, double %tmp10) nounwind call void @llvm.va_end(i8* %ap1) ret void } declare void @llvm.va_start(i8*) nounwind declare i32 @printf(i8* nocapture, ...) nounwind declare void @llvm.va_end(i8*) nounwind ============================================================================= -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Oct 17 17:01:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 17 Oct 2010 17:01:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 8399] New: Incorrect sizeof(long double) on Windows. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8399 Summary: Incorrect sizeof(long double) on Windows. Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: bigcheesegs at gmail.com CC: llvmbugs at cs.uiuc.edu The Microsoft C/C++ ABI treats long double as 8 bytes instead of the 12 that others use. Clang doesn't know about this. Also the MSVC code seems slightly better. Reusing st(0) instead of duplicating it. But that's for another PR. ============================================================================= file: long-double.c ============================================================================= #include int main(void) { long double x = 1.0; printf("%Lf %Lf\n", x, x); return sizeof(x); } ============================================================================= ============================================================================= compiler: clang file: long-double.s ============================================================================= .def _main; .scl 2; .type 32; .endef .text .globl _main .align 16, 0x90 _main: # @main # BB#0: # %entry pushl %ebp movl %esp, %ebp subl $32, %esp fld1 fld %st(0) fstpt 16(%esp) fstpt 4(%esp) movl $L_.str, (%esp) calll _printf movl $12, %eax addl $32, %esp popl %ebp ret .data L_.str: # @.str .asciz "%Lf %Lf\n" .globl __fltused ============================================================================= ============================================================================= compiler: cl.exe included with Visual C++ 2010 file: long-double.asm ============================================================================= ; Listing generated by Microsoft (R) Optimizing Compiler Version 16.00.30319.01 TITLE C:\Users\Michael\Projects\llvm\projects\test-suite\build\2008-01-07-LongDouble.c .686P .XMM include listing.inc .model flat INCLUDELIB LIBCMT INCLUDELIB OLDNAMES _DATA SEGMENT $SG2686 DB '%Lf %Lf', 0aH, 00H _DATA ENDS PUBLIC __real at 3ff0000000000000 PUBLIC _main EXTRN _printf:PROC EXTRN __fltused:DWORD ; COMDAT __real at 3ff0000000000000 ; File c:\users\michael\projects\llvm\projects\test-suite\build\2008-01-07-longdouble.c CONST SEGMENT __real at 3ff0000000000000 DQ 03ff0000000000000r ; 1 ; Function compile flags: /Ogtpy CONST ENDS _TEXT SEGMENT _main PROC ; Line 4 fld1 sub esp, 16 ; 00000010H fst QWORD PTR [esp+8] fstp QWORD PTR [esp] push OFFSET $SG2686 call _printf add esp, 20 ; 00000014H ; Line 5 mov eax, 8 ; Line 6 ret 0 _main ENDP _TEXT ENDS 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 Sun Oct 17 17:25:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 17 Oct 2010 17:25:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 8400] New: [PATCH] Missing dispose in c-index-test Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8400 Summary: [PATCH] Missing dispose in c-index-test Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: alp at nuanti.com CC: llvmbugs at cs.uiuc.edu The result from clang_tokenize() must be freed with clang_disposeTokens(). Fix attached. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Oct 17 20:40:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 17 Oct 2010 20:40:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 8401] New: std::allocator::allocator() not emitted Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8401 Summary: std::allocator::allocator() not emitted Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: luc_j_bourhis at mac.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com ~> cat reduced.h #include void f(std::vector const &x, std::vector y = std::vector()); struct S { std::vector x; void g(); }; ~> cat reduced.cpp #include "reduced.h" void S::g() { f(x); } ~> c++ --version i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5659) Copyright (C) 2007 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. ~> c++ -c reduced.cpp ~> nm -u reduced.o|c++filt|grep 'allocator' f(std::vector > const&, std::vector >) ~> clang++ --version clang version 2.9 (trunk 116689) Target: x86_64-apple-darwin10 Thread model: posix ~> clang++ -c reduced.cpp ~> nm -u reduced.o|c++filt|grep 'allocator' f(std::vector > const&, std::vector >) std::allocator::allocator() The missing constructor for std::allocator makes the link stage fail where it would succeed with the object produced by g++. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Oct 17 22:12:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 17 Oct 2010 22:12:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 8402] New: Incorrect section names and characteristics generated for linkonce sections on Windows. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8402 Summary: Incorrect section names and characteristics generated for linkonce sections on Windows. Product: libraries Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: bigcheesegs at gmail.com CC: llvmbugs at cs.uiuc.edu LLVM Assumes that COFF linkonce sections are named .
$linkonce. This is only true on MinGW and Cygwin. Native Windows tools use just .
. The flags are also incorrect. link.exe warns about 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 Oct 18 02:12:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 18 Oct 2010 02:12:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 8399] Incorrect sizeof(long double) on Windows. In-Reply-To: References: Message-ID: <20101018071216.273332A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8399 Michael Spencer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Michael Spencer 2010-10-18 02:12:15 CDT --- Fixed in r116700. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 18 05:05:03 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 18 Oct 2010 05:05:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 8403] New: Analyser false positive "The left operand to '+' is always 0" Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8403 Summary: Analyser false positive "The left operand to '+' is always 0" Product: clang Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: magnus.reftel at gmail.com CC: llvmbugs at cs.uiuc.edu The following test case triggers an analyser warning "The left operand to '+' is always 0", but should not: #include int main() { int i; for(i=0; i<10; i++) { int j; for(j=0; j+1 http://llvm.org/bugs/show_bug.cgi?id=8404 Summary: ICE in ScheduleDAG.cpp:460: "Wrong topological sorting" Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: markus at oberhumer.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5627) --> (http://llvm.org/bugs/attachment.cgi?id=5627) Preprocessed C++ source code. The attached preprocessed source code (valid C++) causes an ICE with both clang-2.8 and the current 2.9svn 116696 version: $ clang-2.9svn -m32 -O2 -c clang_bug.cpp clang: /mnt/net/smb-work-ro/cvs/llvm/llvm/llvm/lib/CodeGen/ScheduleDAG.cpp:460: void llvm::ScheduleDAGTopologicalSort::InitDAGTopologicalSorting(): Assertion `Node2Index[SU->NodeNum] > Node2Index[I->getSUnit()->NodeNum] && "Wrong topological sorting"' failed. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Oct 18 09:02:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 18 Oct 2010 09:02:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 8406] New: ASSERT: "Alignment must be power of 2" when using precompiled headers Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8406 Summary: ASSERT: "Alignment must be power of 2" when using precompiled headers Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: tor.arne.vestbo at nokia.com CC: llvmbugs at cs.uiuc.edu The following testcase will cause clang to assert when using precompiled headers: foo.cpp: void foo() { Bar bar; } foo.h: struct Bar { int buffer[123] __attribute__((__aligned__(4))); }; http://gist.github.com/632128 Assertion failed: (Align && (Align & (Align-1)) == 0 && "Alignment must be power of 2"), function getTypeInfo, file /Users/torarne/dev/llvm/clang/lib/AST/ASTContext.cpp, line 845. 0 clang 0x00000001013aee62 PrintStackTrace(void*) + 34 1 clang 0x00000001013afcb3 SignalHandler(int) + 707 2 libSystem.B.dylib 0x00007fff8013135a _sigtramp + 26 3 libSystem.B.dylib 0x0000000102119ec8 _sigtramp + 2180942728 4 clang 0x000000010001cca2 __assert_rtn + 66 5 clang 0x000000010071cf1f clang::ASTContext::getTypeInfo(clang::Type const*) + 319 6 clang 0x000000010071dc88 clang::ASTContext::getPreferredTypeAlign(clang::Type const*) + 24 7 clang 0x000000010071e229 clang::ASTContext::getDeclAlign(clang::Decl const*, bool) + 1161 8 clang 0x00000001001b9a13 clang::CodeGen::CodeGenFunction::EmitLocalBlockVarDecl(clang::VarDecl const&, void (*)(clang::CodeGen::CodeGenFunction&, clang::VarDecl const&, llvm::Value*)) + 67 9 clang 0x00000001001bc6ef clang::CodeGen::CodeGenFunction::EmitDecl(clang::Decl const&) + 191 10 clang 0x0000000100269dbb clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt const&) + 171 11 clang 0x000000010026d5f7 clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 167 12 clang 0x000000010026a3f0 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 48 13 clang 0x000000010026d36b clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) + 283 14 clang 0x000000010026d712 clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 450 15 clang 0x000000010026a3f0 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 48 16 clang 0x0000000100293c98 clang::CodeGen::CodeGenFunction::GenerateCode(clang::CodeGen::GlobalDecl, llvm::Function*) + 1160 17 clang 0x000000010029e72b clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::CodeGen::GlobalDecl) + 715 18 clang 0x00000001002a257b clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::CodeGen::GlobalDecl) + 395 19 clang 0x00000001002a26f6 clang::CodeGen::CodeGenModule::EmitGlobal(clang::CodeGen::GlobalDecl) + 150 20 clang 0x00000001002a332f clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 895 21 clang 0x00000001002c3f1c (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) + 60 22 clang 0x000000010028c4ab (anonymous namespace)::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 155 23 clang 0x00000001002d0476 clang::ParseAST(clang::Sema&, bool) + 182 24 clang 0x000000010028cd2c clang::CodeGenAction::ExecuteAction() + 60 25 clang 0x00000001000525f9 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 393 26 clang 0x00000001000264fe clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1614 27 clang 0x000000010001e53e cc1_main(char const**, char const**, char const*, void*) + 510 28 clang 0x0000000100025074 main + 4884 29 clang 0x000000010001cf78 start + 52 Stack dump: 0. Program arguments: /Users/torarne/build/llvm/Release+Asserts/bin/clang -cc1 -triple x86_64-apple-darwin10.0.0 -emit-obj -mrelax-all -disable-free -main-file-name foo.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 97.14 -resource-dir /Users/torarne/build/llvm/Release+Asserts/lib/clang/2.9 -include-pch foo.h.pch -ferror-limit 19 -fmessage-length 266 -stack-protector 1 -fblocks -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o foo.clang.o -x c++ foo.cpp 1. parser at end of file 2. foo.cpp:2:6: LLVM IR generation of declaration 'foo' 3. foo.cpp:2:6: Generating code for declaration 'foo' 4. foo.cpp:2:12: LLVM IR generation of compound statement ('{}') clang: error: clang frontend command failed due to signal 4 (use -v to see invocation) Looking briefly at the code in a debugger it seems it thinks the alignement is 123, the size of the buffer, not 4, what's passed to __aligned__() clang version 2.9 (git://repo.or.cz/clang.git 4449662e4b0482d42bcdae68cd767559879d762d) Target: x86_64-apple-darwin10 Thread model: posix Reproducible on both OSX and Linux. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Oct 18 09:20:22 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 18 Oct 2010 09:20:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 8407] New: llvm-gcc generates bad assembly: invalid sections for operation on ... Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8407 Summary: llvm-gcc generates bad assembly: invalid sections for operation on ... Product: tools Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: llvm-gcc AssignedTo: unassignedbugs at nondot.org ReportedBy: markus at oberhumer.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5629) --> (http://llvm.org/bugs/attachment.cgi?id=5629) Small C source code to demonstrate the problem. llvm-gcc seems to generate bad assembly for jump-table offsets. This could be related to bug2023. Snippet from the attached source file: #define LABEL_DIFF(t,a,b) ((t) ((const char*)&&a - (const char*)&&b)) int *test_short(int i) { static const short t[] = { 0, LABEL_DIFF(short,l1,l0) }; goto * (const void *) ((const char *)&&l0 + t[i]); l0: return &a; l1: return &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 Oct 18 09:33:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 18 Oct 2010 09:33:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 8408] New: Taking top half of vector gives lshr instead of shufflevector Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8408 Summary: Taking top half of vector gives lshr instead of shufflevector Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Global Analyses AssignedTo: unassignedbugs at nondot.org ReportedBy: Edmund.Grimley-Evans at arm.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5630) --> (http://llvm.org/bugs/attachment.cgi?id=5630) C source for get_low_half and get_high_half In gethalf.c there are some inline functions to take the bottom or the top half of a vector by using a C union. I translated to LLVM assembler code like this: clang -cc1 gethalf.c -emit-llvm -o gethalf0.ll clang -cc1 gethalf.c -emit-llvm -o gethalf3.ll -O3 If you want to try this without Clang: opt -O3 gethalf0.ll -S -o gethalf3.ll In gethalf3.ll you can see that after optimisation get_low_half turns into a simple shufflevector: %tmp7.i = shufflevector <32 x i16> %srcval, <32 x i16> undef, <16 x i32> However, get_high_half turns into an lshr on a giant i512: %tmp9.i = bitcast <32 x i16> %srcval to i512 %tmp6.i = lshr i512 %tmp9.i, 256 %tmp7.i = trunc i512 %tmp6.i to i256 %tmp8.i = bitcast i256 %tmp7.i to <16 x i16> This is correct, as far as I can tell, but not very helpful, I think. Also, the different treatment of the two cases seems inconsistent. I think they should probably both turn into a shufflevector. Tested at revision 116700. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 18 09:58:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 18 Oct 2010 09:58:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 6768] clang crash on function call with vla argument In-Reply-To: References: Message-ID: <20101018145842.25BA02A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6768 Sylv?re Teissier changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Sylv?re Teissier 2010-10-18 09:58:41 CDT --- this testcase works with r116700 I don't know which revision solved 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 Mon Oct 18 10:26:06 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 18 Oct 2010 10:26:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 8409] New: clang++ generates incorrect code for initializers of static members of class templates Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8409 Summary: clang++ generates incorrect code for initializers of static members of class templates Product: clang Version: 2.8 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 Created an attachment (id=5633) --> (http://llvm.org/bugs/attachment.cgi?id=5633) Testcase Normally, when a class has a static member, no guard variable is needed to prevent multiple initialization since the member can only be defined once. However, if the class is a class template instance, then the member is permitted to be defined multiple times (C++ 2003 3.2p5), and the compiler must insert a guard variable to prevent multiple initialization (and hence multiple destruction). But clang++ does not do this. A testcase is attached; compile it with and without -DMAIN, and link the two object files together. This should result in precisely one call to the K constructor. However, clang++ calls the K constructor twice (at the same address), and calls the K destructor twice on exit (again at the same address). -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 18 11:24:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 18 Oct 2010 11:24:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 8410] New: Assertion failes in SFINAE expression: Unable to find instantiation of declaration! Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8410 Summary: Assertion failes in SFINAE expression: Unable to find instantiation of declaration! Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: llvm at r9e.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5634) --> (http://llvm.org/bugs/attachment.cgi?id=5634) Sample code to trigger the error Compiling the given sample code using a clang build from trunk causes clang to crash with a failed exception. I think, that the code is valid, but I am not absolutely sure. gcc does compile the example. If I reorder the code a bit and put the definition of Bar above the initial definition of Foo, clang compiles the code, too. # clang sample.cpp clang: SemaTemplateInstantiateDecl.cpp:2752: clang::NamedDecl* clang::Sema::FindInstantiatedDecl(clang::SourceLocation, clang::NamedDecl*, const clang::MultiLevelTemplateArgumentList&): Assertion `(Result || isa(D) || D->isInvalidDecl() || cast(ParentDC)->isInvalidDecl()) && "Unable to find instantiation of declaration!"' failed. 0 clang 0x000000000215e289 1 clang 0x000000000215e07c 2 libpthread.so.0 0x00007fcd2d01f8f0 3 libc.so.6 0x00007fcd2c30ea75 gsignal + 53 4 libc.so.6 0x00007fcd2c3125c0 abort + 384 5 libc.so.6 0x00007fcd2c307941 __assert_fail + 241 6 clang 0x00000000013c972a clang::Sema::FindInstantiatedDecl(clang::SourceLocation, clang::NamedDecl*, clang::MultiLevelTemplateArgumentList const&) + 1820 7 clang 0x00000000013a1525 8 clang 0x00000000013ab99e 9 clang 0x00000000013a5f81 10 clang 0x00000000013a5844 11 clang 0x00000000013a5982 12 clang 0x00000000013a795d 13 clang 0x00000000013abcf7 14 clang 0x00000000013a5ffb 15 clang 0x00000000013a5844 16 clang 0x00000000013a8371 17 clang 0x00000000013a478f clang::Sema::Subst(clang::TemplateArgumentLoc const&, clang::TemplateArgumentLoc&, clang::MultiLevelTemplateArgumentList const&) + 105 18 clang 0x00000000013c68d8 19 clang 0x00000000013c31c0 20 clang 0x00000000013c9ce9 21 clang 0x00000000013c6610 clang::Sema::SubstDecl(clang::Decl*, clang::DeclContext*, clang::MultiLevelTemplateArgumentList const&) + 94 22 clang 0x00000000013a3366 clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*, clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&, clang::TemplateSpecializationKind, bool) + 1184 23 clang 0x00000000013a3d18 clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation, clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind, bool) + 1900 24 clang 0x00000000013d3b41 clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType, clang::PartialDiagnostic const&, std::pair) + 317 25 clang 0x00000000013d3ef2 clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType, clang::PartialDiagnostic const&) + 122 26 clang 0x0000000001207599 clang::Sema::RequireCompleteDeclContext(clang::CXXScopeSpec&, clang::DeclContext*) + 357 27 clang 0x0000000001207df4 clang::Sema::BuildCXXNestedNameSpecifier(clang::Scope*, clang::CXXScopeSpec&, clang::SourceLocation, clang::SourceLocation, clang::IdentifierInfo&, clang::QualType, clang::NamedDecl*, bool, bool) + 468 28 clang 0x0000000001208af5 clang::Sema::ActOnCXXNestedNameSpecifier(clang::Scope*, clang::CXXScopeSpec&, clang::SourceLocation, clang::SourceLocation, clang::IdentifierInfo&, clang::OpaquePtr, bool) + 121 29 clang 0x00000000011d838b clang::Parser::ParseOptionalCXXScopeSpecifier(clang::CXXScopeSpec&, clang::OpaquePtr, bool, bool*) + 3303 30 clang 0x00000000011b65e8 clang::Parser::TryAnnotateTypeOrScopeToken(bool) + 304 31 clang 0x00000000011bebdd clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 6255 32 clang 0x00000000011cc405 clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject*) + 1749 33 clang 0x00000000011cd473 clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int, clang::Decl*) + 1371 34 clang 0x00000000011cb44e clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 5474 35 clang 0x00000000011beac8 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 5978 36 clang 0x00000000011e1612 clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::AccessSpecifier) + 364 37 clang 0x00000000011e1458 clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 990 38 clang 0x00000000011e0fe3 clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 175 39 clang 0x00000000011bb6eb clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::CXX0XAttributeList) + 251 40 clang 0x00000000011b4e8b clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList, clang::Parser::ParsingDeclSpec*) + 1305 41 clang 0x00000000011b48e3 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 343 42 clang 0x000000000119e4ac clang::ParseAST(clang::Sema&, bool) + 328 43 clang 0x0000000000f15d91 clang::ASTFrontendAction::ExecuteAction() + 263 44 clang 0x0000000001039c84 clang::CodeGenAction::ExecuteAction() + 988 45 clang 0x0000000000f159dc clang::FrontendAction::Execute() + 320 46 clang 0x0000000000eff63d clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 751 47 clang 0x0000000000eb27d8 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 856 48 clang 0x0000000000ea5bdf cc1_main(char const**, char const**, char const*, void*) + 958 49 clang 0x0000000000eae962 main + 499 50 libc.so.6 0x00007fcd2c2f9c4d __libc_start_main + 253 51 clang 0x0000000000ea5299 Stack dump: 0. Program arguments: clang -cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name sample.cpp -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.1 -resource-dir /.../llvm/llvm-trunk-install/lib/clang/2.9 -ferror-limit 19 -fmessage-length 201 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-1QusgA.s -x c++ sample.cpp 1. sample.cpp:37:39: current parser token 'type' 2. sample.cpp:35:5: parsing struct/union/class body 'User' clang: error: clang frontend command failed due to signal 6 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Oct 18 11:29:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 18 Oct 2010 11:29:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 8411] New: ARM back end is not very clever with shufflevector Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8411 Summary: ARM back end is not very clever with shufflevector Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: Edmund.Grimley-Evans at arm.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5635) --> (http://llvm.org/bugs/attachment.cgi?id=5635) C source code for two functions that load a Q reg then store half of it In gethalf.c (attached) there are two functions that load a Q reg then store half of it. The first function does it the way implements vget_low_s16: it goes via a vector of two float64s. The intermediate LLVM assembler code uses extractelement and three bitcasts, and the final assembler code is nice and simple: f1: vld1.16 {d16, d17}, [r1] vst1.16 {d16}, [r0] bx lr The second function uses __builtin_shufflevector. The intermediate LLVM assembler code is very simple: just a shufflevector. However, the final assembler code is very bad: the shuffle is implemented by going via the stack (and there are some redundant address calculations); vld1.16 {d16, d17}, [r1] mov r1, sp vstmia r1, {d16, d17} vldr.64 d16, [sp] vst1.16 {d16}, [r0] It would be nice if use of shufflevector would give good output code. If you are dealing with code that has a lot of shuffles this is probably the canonical way these operations will be represented. The command lines were: clang -cc1 -triple thumbv7-eabi -target-cpu cortex-a8 gethalf.c -O3 -emit-llvm -o gethalf.ll clang -cc1 -triple thumbv7-eabi -target-cpu cortex-a8 gethalf.c -O3 -S -o gethalf.s If you want to try it without Clang: llc -mcpu cortex-a8 gethalf.ll -o gethalf.s I'm at revision 116700. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 18 12:15:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 18 Oct 2010 12:15:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 7376] Clang produces linker error on explicit template instantiation In-Reply-To: References: Message-ID: <20101018171540.53B7B2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7376 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Douglas Gregor 2010-10-18 12:15:39 CDT --- Argiris fixed this recently. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 18 12:24:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 18 Oct 2010 12:24:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 7836] clang fails to try template argument deduction on every function in the overload set In-Reply-To: References: Message-ID: <20101018172453.CE6392A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7836 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Douglas Gregor 2010-10-18 12:24:53 CDT --- We seem to have fixed this. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Oct 18 12:26:49 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 18 Oct 2010 12:26:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 7881] clang++ does not build In-Reply-To: References: Message-ID: <20101018172649.90EEA2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7881 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #1 from Douglas Gregor 2010-10-18 12:26:48 CDT --- Clang++ is building properly on Windows, now. If you run into trouble, please consult the mailing lists. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 18 14:03:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 18 Oct 2010 14:03:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 8412] New: Inefficient relaxation Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8412 Summary: Inefficient relaxation Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu For _ZN4llvm24llvm_start_multithreadedEv: addl $_GLOBAL_OFFSET_TABLE_, %eax llvm-mc will use the "81 c0" add instead of the more compact "05" 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 Mon Oct 18 14:21:35 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 18 Oct 2010 14:21:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 8406] ASSERT: "Alignment must be power of 2" when using precompiled headers In-Reply-To: References: Message-ID: <20101018192135.AF2DE2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8406 Argyrios Kyrtzidis changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Argyrios Kyrtzidis 2010-10-18 14:21:35 CDT --- Fixed at r116737. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 18 16:29:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 18 Oct 2010 16:29:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 8355] clang++ generates incorrect code if multiple classes with the same name are defined in the same function In-Reply-To: References: Message-ID: <20101018212905.3D99E2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8355 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |rjmccall at apple.com Resolution| |FIXED --- Comment #3 from John McCall 2010-10-18 16:29:04 CDT --- Committed in r116752, 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 Oct 18 18:37:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 18 Oct 2010 18:37:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 8403] Analyser false positive "The left operand to '+' is always 0" In-Reply-To: References: Message-ID: <20101018233739.CE1C52A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8403 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #3 from Ted Kremenek 2010-10-18 18:37:39 CDT --- "Fixed" here: http://llvm.org/viewvc/llvm-project?view=rev&revision=116769 This is done by expanding the loop-unrolling threshold, but the real fix is to modify the IdempotentOperationsChecker to not warn about idempotent operations where a preceding loop may have been incompletely evaluated. I have a separate bug tracking 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 Oct 18 18:47:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 18 Oct 2010 18:47:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 8413] New: Crash in generated code with aligned structs Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8413 Summary: Crash in generated code with aligned structs Product: clang Version: 2.8 Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: arsenm2 at rpi.edu CC: llvmbugs at cs.uiuc.edu This is a problem where clang generates code which crashes. The simplest case seems to happen when trying to use a vector type or aligned struct in a struct with the aligned and packed attributes, where the first item in the struct is smaller than the aligned struct. On assignment to the vector field, the program crashes with gdb reporting it as "Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 13 at address: 0x0000000000000000" The reduced test case crash occurs when building WITHOUT optimizations (i.e. -O0), but doesn't with higher levels (-O1, -O2, or -O3). However, in the larger program I was working with when I encountered the problem, it was broken with and without optimizations. Both the test case and the program I was working on worked fine with gcc and llvm-gcc. Both lldb and gdb are terribly confused in functions where this problem occurs, reporting wrong values for the arguments passed in which don't agree with values printed out. Attached is a small test case. It consists of 4 variants on the same concept, with some more notes about what I've found about the problem. With any of the special vector extension types, or the struct with the aligned attribute, clang generates code which crashes when assigning to that field within the larger struct. Tested on x86_64 Linux and OS X, clang 2.8, and gcc-4.5, and (GCC) 4.2.1 (Apple Inc. build 5664). Build / run it with: $ clang -O0 aligned_struct_clang_bug.c && ./a.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 Mon Oct 18 21:04:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 18 Oct 2010 21:04:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 8412] Inefficient relaxation In-Reply-To: References: Message-ID: <20101019020409.22E352A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8412 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 Mon Oct 18 21:04:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 18 Oct 2010 21:04:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 8412] Inefficient relaxation In-Reply-To: References: Message-ID: <20101019020426.0070C2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8412 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Oct 18 21:04:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 18 Oct 2010 21:04:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 8300] Crash when linking two bitcode files In-Reply-To: References: Message-ID: <20101019020457.7D6D12A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8300 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #12 from Rafael ?vila de Esp?ndola 2010-10-18 21:04:57 CDT --- I hate bugzilla. *this* bug is 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 Oct 18 22:20:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 18 Oct 2010 22:20:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 8414] New: lto_module_get_num_symbols ignores aliases Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8414 Summary: lto_module_get_num_symbols ignores aliases Product: tools Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: lto AssignedTo: unassignedbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu With PR8300 fixed we now have a link failure when using both LTO and the constructor alias optimization. lto_module_get_num_symbols should include aliases as symbols or if that cannot be done for some reason provide a lto_module_get_num_aliases -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 18 23:16:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 18 Oct 2010 23:16:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 7955] Clang's stddef.h, wint_t and MinGW headers In-Reply-To: References: Message-ID: <20101019041608.F08082A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7955 NAKAMURA Takumi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from NAKAMURA Takumi 2010-10-18 23:16:08 CDT --- It should be fixed in r116794, 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 Tue Oct 19 03:08:21 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 19 Oct 2010 03:08:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 7571] wctype.h: unknown type name 'wint_t' In-Reply-To: References: Message-ID: <20101019080821.5EDDB2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7571 Jay Foad changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #8 from Jay Foad 2010-10-19 03:08:20 CDT --- Yes, that works for me. 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 Oct 19 05:27:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 19 Oct 2010 05:27:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 8415] New: llvm-ld fails with "Called function is not pointer to function type!" Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8415 Summary: llvm-ld fails with "Called function is not pointer to function type!" Product: new-bugs Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: richard-llvm at metafoo.co.uk CC: llvmbugs at cs.uiuc.edu I'm linking a large (1MLoC, 209MB of bitcode) C++ program with LTO, and I get the following failure: 0 libLLVM-2.8rc.so 0xf7b87da9 Stack dump: Called function is not pointer to function type! %97 = call %41 (%"class.MyType"* %96) Instruction does not dominate all uses! %97 = call %41 (%"class.MyType"* %96) %98 = icmp eq %10* %97, null Instruction does not dominate all uses! %98 = icmp eq %10* %97, null br i1 %98, label %99, label %164 Called function is not pointer to function type! %249 = call %41 (%"class.MyType"* %96) Instruction does not dominate all uses! %249 = call %41 (%"class.MyType"* %96) %250 = call fastcc zeroext i1 @_ZN6Worker10GoInternalEP6MyType(%"class.Worker"* %this, %10* %249) Called function is not pointer to function type! %251 = call %41 (%"class.MyType"* %96) Instruction does not dominate all uses! %251 = call %41 (%"class.MyType"* %96) %252 = call fastcc zeroext i1 @_ZN6Worker2GoEP6MyType(%"class.Worker"* %this, %10* %251) Broken module found, compilation aborted! I'm working on producing a reduced 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 Tue Oct 19 06:38:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 19 Oct 2010 06:38:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 6930] clang: invalid input constraint "p" in asm In-Reply-To: References: Message-ID: <20101019113805.147C92A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6930 PaX Team changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |pageexec at freemail.hu Resolution|FIXED | --- Comment #10 from PaX Team 2010-10-19 06:38:03 CDT --- i'm not sure how this problem is fixed as i still see the following when compiling linux (which on x86 uses the 'p' constraint in the percpu_read_stable macro): fatal error: error in backend: Invalid operand for inline asm constraint 'p'! note that the error is no longer about 'p' being unknown but rather at a lower level it doesn't seem to be handled. this new error comes from SelectionDAGBuilder::visitInlineAsm after it has called LowerAsmOperandForConstraint. a quick reading of the code shows no signs of handling 'p' in either X86TargetLowering::LowerAsmOperandForConstraint or TargetLowering::LowerAsmOperandForConstraint. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 19 08:25:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 19 Oct 2010 08:25:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 8415] llvm-ld fails with "Called function is not pointer to function type!" In-Reply-To: References: Message-ID: <20101019132523.DC4B12A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8415 Richard Smith changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #1 from Richard Smith 2010-10-19 08:25:23 CDT --- I've tested this with the latest SVN trunk and works there, so I assume it's been fixed since 2.8. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Oct 19 11:53:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 19 Oct 2010 11:53:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 8389] Global Variable Optimizer transforms OcamlGCPrinter.cpp incorrectly In-Reply-To: References: Message-ID: <20101019165341.09B312A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8389 Mikhail Glushenkov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #10 from Mikhail Glushenkov 2010-10-19 11:53:40 CDT --- Applied in r116812, thanks! http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20101018/110033.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 Oct 19 12:18:03 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 19 Oct 2010 12:18:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 8401] std::allocator::allocator() not emitted In-Reply-To: References: Message-ID: <20101019171803.A31EE2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8401 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2010-10-19 12:18:03 CDT --- Fixed in Clang r116817. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 19 12:23:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 19 Oct 2010 12:23:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 6056] clang ignores -fno-constant-cfstrings In-Reply-To: References: Message-ID: <20101019172311.D9E722A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6056 Fariborz Jahanian changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #13 from Fariborz Jahanian 2010-10-19 12:23:11 CDT --- Remaining work is implemented in TOT: http://llvm.org/viewvc/llvm-project?view=rev&revision=116819 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 19 13:09:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 19 Oct 2010 13:09:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 8416] New: Assert: Declaration context must already be complete! Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8416 Summary: Assert: Declaration context must already be complete! Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: alexei.svitkine at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com When compiling the following (reduced) test case: #include template class Bazz { }; template class Bam { friend void * Bazz::operator new(size_t, Bam&); }; class Foo; class Bar { Bam bamFoo; }; clang++ asserts: clang: SemaLookup.cpp:1275: bool clang::Sema::LookupQualifiedName(clang::LookupResult&, clang::DeclContext*, bool): Assertion `(!isa(LookupCtx) || LookupCtx->isDependentContext() || cast(LookupCtx)->isDefinition() || Context.getTypeDeclType(cast(LookupCtx))->getAs() ->isBeingDefined()) && "Declaration context must already be complete!"' failed. 0 clang 0x000000000190d4cf 1 clang 0x000000000190e1e7 2 libpthread.so.0 0x0000003d5ac0eb10 3 libc.so.6 0x0000003d5a030265 gsignal + 53 4 libc.so.6 0x0000003d5a031d10 abort + 272 5 libc.so.6 0x0000003d5a0296e6 __assert_fail + 246 6 clang 0x0000000000ae02b2 clang::Sema::LookupQualifiedName(clang::LookupResult&, clang::DeclContext*, bool) + 658 7 clang 0x0000000000ba2208 8 clang 0x0000000000ba48ff 9 clang 0x0000000000ba9139 10 clang 0x0000000000ba5176 11 clang 0x0000000000ba7992 clang::Sema::SubstDecl(clang::Decl*, clang::DeclContext*, clang::MultiLevelTemplateArgumentList const&) + 34 12 clang 0x0000000000b97a2a clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*, clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&, clang::TemplateSpecializationKind, bool) + 602 13 clang 0x0000000000b98de0 clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation, clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind, bool) + 2416 14 clang 0x0000000000bb0b69 clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType, clang::PartialDiagnostic const&, std::pair) + 1337 15 clang 0x0000000000bb0d57 clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType, unsigned int) + 87 16 clang 0x0000000000a05e7b clang::Sema::CheckFieldDecl(clang::DeclarationName, clang::QualType, clang::TypeSourceInfo*, clang::RecordDecl*, clang::SourceLocation, bool, clang::Expr*, clang::SourceLocation, clang::AccessSpecifier, clang::NamedDecl*, clang::Declarator*) + 507 17 clang 0x0000000000a067f3 clang::Sema::HandleField(clang::Scope*, clang::RecordDecl*, clang::SourceLocation, clang::Declarator&, clang::Expr*, clang::AccessSpecifier) + 611 18 clang 0x0000000000a29e28 clang::Sema::ActOnCXXMemberDeclarator(clang::Scope*, clang::AccessSpecifier, clang::Declarator&, clang::ASTMultiPtr, clang::Expr*, clang::Expr*, bool, bool) + 1544 19 clang 0x000000000094f54e clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject*) + 3614 20 clang 0x00000000009538a7 clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int, clang::Decl*) + 2199 21 clang 0x0000000000954f45 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 5253 22 clang 0x0000000000941fc1 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 4193 23 clang 0x00000000009352e5 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&, clang::AttributeList*, clang::AccessSpecifier) + 149 24 clang 0x00000000009356f0 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::AttributeList*, clang::AccessSpecifier) + 336 25 clang 0x0000000000937d95 clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList, clang::Parser::ParsingDeclSpec*) + 245 26 clang 0x0000000000938623 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 131 27 clang 0x0000000000919ce4 clang::ParseAST(clang::Sema&, bool) + 148 28 clang 0x00000000007a90a2 clang::CodeGenAction::ExecuteAction() + 66 29 clang 0x000000000068fa5e clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 350 30 clang 0x000000000066be0f clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1071 31 clang 0x00000000006645f2 cc1_main(char const**, char const**, char const*, void*) + 482 32 clang 0x000000000066b2a5 main + 4581 33 libc.so.6 0x0000003d5a01d994 __libc_start_main + 244 34 clang 0x0000000000662e49 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 19 13:31:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 19 Oct 2010 13:31:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 8417] New: MachineInstr does not have clear AsmPrinter flag instructions Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8417 Summary: MachineInstr does not have clear AsmPrinter flag instructions Product: libraries Version: trunk Platform: PC OS/Version: Windows NT 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 Need to add the following instructions to the AsmPrinter class. /// clearAsmPrinterFlags - clear the AsmPrinter bitvector /// void clearAsmPrinterFlags() { AsmPrinterFlags = 0; } /// clearAsmPrinterFlag - clear specific AsmPrinter flags /// void clearAsmPrinterFlag(CommentFlag Flag) { return AsmPrinterFlags &= ~Flag; } -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 19 14:42:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 19 Oct 2010 14:42:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 6056] clang ignores -fno-constant-cfstrings In-Reply-To: References: Message-ID: <20101019194207.A26D52A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6056 Jonathan Schleifer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #14 from Jonathan Schleifer 2010-10-19 14:42:06 CDT --- It seems that compilation works now. However, it seems clang breaks it as soon as umlauts etc. are in the string. Consider an UTF-8 encoded file containing the string @"?". The C string generated by clang should be "?", where a C string just copies the encoding from the source file. Thus the C string should be { 0xC3, 0xA4, 0x00 } and the length 2. However, clang seems to create garbage here now. This used to work in the past. I'm not sure if this is caused by the recent change, but I assume so. If it's not, feel free to close and I will create a new 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 Tue Oct 19 15:29:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 19 Oct 2010 15:29:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 8418] New: X86 assembler can't infer size suffixes on certain instructions Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8418 Summary: X86 assembler can't infer size suffixes on certain instructions Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: cdavis at mymail.mines.edu CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5643) --> (http://llvm.org/bugs/attachment.cgi?id=5643) Testcase that fails with llvm-mc Trying to assemble the attached testcase with llvm-mc fails miserably: test2.s:16:2: error: unknown use of instruction mnemonic without a size suffix div -24(%ebp),%eax ^ The example succeeds with the system assembler. It also works if I add the size suffix ('l', in this case) manually to the 'div'. Apparently the X86 assembler has a hard time inferring the size suffixes for certain instructions, like the 'div' in the testcase. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Oct 19 16:32:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 19 Oct 2010 16:32:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 8419] New: 'clang --analyze' crashes when ref value returned by operator[] is '&='ed Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8419 Summary: 'clang --analyze' crashes when ref value returned by operator[] is '&='ed Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: zhanyong.wan at gmail.com CC: llvmbugs at cs.uiuc.edu This works fine: $ cat test1.cc class String1 { public: char& get(int n); }; void Test1() { String1 s; s.get(0) = 1; s.get(0) &= 1; } $ clang --analyze test1.cc -------------------------------------------------------- This crashes: $ cat test2.cc class String2 { public: char& operator[](int n); }; void Test2() { String2 s; s[0] = 1; s[0] &= 1; // crashes 'clang --analyze' } $ clang --analyze test2.cc 0 clang 0x00000000010883d0 1 clang 0x0000000001088dca 2 libpthread.so.0 0x00007f224a7d2580 3 clang 0x000000000111d630 typeinfo for clang::SymIntExpr + 0 Stack dump: 0. Program arguments: clang -cc1 -triple x86_64-unknown-linux-gnu -analyze -disable-free -disable-llvm-verifier -main-file-name test2.cc -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 -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir clang/lib/clang/2.0 -ferror-limit 19 -fmessage-length 253 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o test2.plist -x c++ test2.cc 1. parser at end of file 2. test2.cc:9:3: Error evaluating statement 3. test2.cc:9:3: Error evaluating statement clang: error: clang frontend command failed due to signal 4 (use -v to see invocation) where line 9 is the "&=" line. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 19 16:48:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 19 Oct 2010 16:48:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 8420] New: MachineInstr constructor does not correctly duplicate AsmPrinterFlags Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8420 Summary: MachineInstr constructor does not correctly duplicate AsmPrinterFlags Product: libraries Version: trunk Platform: PC OS/Version: Windows NT 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 In MachineInstr.cpp with the MachineInstr ctor MachineInstr::MachineInstr(MachineFunction &MF, const MachineInstr &MI) The constructor incorrectly sets AsmPrinterFlags to zero instead of copying the value that is in the source MachineInstr. The correct implementation should be: MachineInstr::MachineInstr(MachineFunction &MF, const MachineInstr &MI) : TID(&MI.getDesc()), NumImplicitOps(0), AsmPrinterFlags(MI.getAsmPrinterFlags()), -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 19 23:58:18 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 19 Oct 2010 23:58:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 8414] lto_module_get_num_symbols ignores aliases In-Reply-To: References: Message-ID: <20101020045818.D59492A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8414 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Rafael ?vila de Esp?ndola 2010-10-19 23:58:18 CDT --- Fixed in 116910. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 20 01:30:10 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 20 Oct 2010 01:30:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 8422] New: Missing flags Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8422 Summary: Missing flags Product: clang Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: niels.pfeffer at googlemail.com CC: llvmbugs at cs.uiuc.edu These flags: -fno-keep-static-consts, -fgcse-sm, -fgcse-las are not yet supported. Since I didn't found a bug for that, I created 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 Oct 20 03:15:21 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 20 Oct 2010 03:15:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 7930] improve diagnostic note for call to private/protected method In-Reply-To: References: Message-ID: <20101020081521.98C2D2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7930 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from John McCall 2010-10-20 03:15:21 CDT --- Fixed in r116916. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 20 06:19:50 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 20 Oct 2010 06:19:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 8423] New: llvm/Support/AlignOf.h fails to compile with C++0x Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8423 Summary: llvm/Support/AlignOf.h fails to compile with C++0x Product: libraries Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Support Libraries AssignedTo: unassignedbugs at nondot.org ReportedBy: tom.prince at ualberta.net CC: llvmbugs at cs.uiuc.edu alignof is a keyword in C++0x, so AlignOf.h fails to compile for C++0x projects using 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 Wed Oct 20 12:26:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 20 Oct 2010 12:26:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 8424] New: Stack probing code is only emitted on Cygwin/MinGW for alloca. Windows needs it. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8424 Summary: Stack probing code is only emitted on Cygwin/MinGW for alloca. Windows needs it. Product: libraries Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: bigcheesegs at gmail.com ReportedBy: bigcheesegs at gmail.com CC: llvmbugs at cs.uiuc.edu On Windows when growing the stack by more than 4096 bytes you must call _chkstk(size) or _alloca_probe[_(8|16)](size) to correctly load these pages into memory. This is currently handled in several different places, but the place that ends up handling calls to alloca or allocation of variable length arrays only works on Cygwin and MinGW. It should be trivial to support this on native Windows, alloca on CygMing just forwards to _chkstk. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 20 16:22:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 20 Oct 2010 16:22:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 8400] [PATCH] Missing dispose in c-index-test In-Reply-To: References: Message-ID: <20101020212240.95F432A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8400 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |kremenek at apple.com Resolution| |FIXED --- Comment #2 from Ted Kremenek 2010-10-20 16:22:40 CDT --- Fixed in r116946. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 20 18:17:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 20 Oct 2010 18:17:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 8426] New: 'clang --analyze' crashes when using incomplete type in templates Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8426 Summary: 'clang --analyze' crashes when using incomplete type in templates Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: zhanyong.wan at gmail.com CC: llvmbugs at cs.uiuc.edu $ cat test.cc template class Foo { ~Foo(); struct Bar; Bar* bar_; }; template Foo::~Foo() { bar_->Work(); } $ clang --analyze test.cc 0 clang 0x00000000010883d0 1 clang 0x0000000001088dca 2 libpthread.so.0 0x00007f8117fe5580 3 clang 0x00000000005a94f7 clang::GRExprEngine::VisitCall(clang::CallExpr const*, clang::ExplodedNode*, clang::ConstExprIterator, clang::ConstExprIterator, clang::ExplodedNodeSet&, bool) + 2119 4 clang 0x00000000005a71e8 clang::GRExprEngine::Visit(clang::Stmt const*, clang::ExplodedNode*, clang::ExplodedNodeSet&) + 1512 5 clang 0x00000000005ad400 clang::GRExprEngine::ProcessStmt(clang::CFGElement, clang::GRStmtNodeBuilder&) + 928 6 clang 0x000000000059c3bb clang::GRCoreEngine::HandleBlockEntrance(clang::BlockEntrance const&, clang::ExplodedNode*) + 203 7 clang 0x000000000059c98e clang::GRCoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, clang::GRState const*) + 494 8 clang 0x000000000053ce82 9 clang 0x000000000053c266 10 clang 0x000000000053d98c 11 clang 0x000000000072fcf5 clang::ParseAST(clang::Sema&, bool) + 581 12 clang 0x00000000006619eb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 299 13 clang 0x000000000040871d clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1005 14 clang 0x0000000000402e1e cc1_main(char const**, char const**, char const*, void*) + 846 15 clang 0x0000000000407d2c main + 3772 16 libc.so.6 0x00007f8117787b2a __libc_start_main + 218 17 clang 0x000000000040026f Stack dump: 0. Program arguments: clang -cc1 -triple x86_64-unknown-linux-gnu -analyze -disable-free -disable-llvm-verifier -main-file-name debug.cc -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 -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir lib/clang/2.0 -ferror-limit 19 -fmessage-length 138 -fexceptions -fgnu-runtime -fdiagnostics-show-option -o debug.plist -x c++ test.cc 1. parser at end of file 2. test.cc:8:3: Error evaluating statement 3. test.cc:8:3: Error evaluating statement clang: error: clang frontend command failed due to signal 11 (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 Oct 20 20:42:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 20 Oct 2010 20:42:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 8424] Stack probing code is only emitted on Cygwin/MinGW for alloca. Windows needs it. In-Reply-To: References: Message-ID: <20101021014225.04A732A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8424 Michael Spencer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Oct 21 00:54:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 21 Oct 2010 00:54:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 8427] New: 'clang --analyze' crashes in template code after an operator declaration Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8427 Summary: 'clang --analyze' crashes in template code after an operator declaration Product: clang Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: zhanyong.wan at gmail.com CC: llvmbugs at cs.uiuc.edu $ cat test.cc class Dummy {}; bool operator!=(Dummy, int); template class Foo { bool Bar(); }; template bool Foo::Bar() { return 0 == T(); } $ clang --analyze test.cc 0 clang 0x0000000001f49aec 1 clang 0x0000000001f498e8 2 libpthread.so.0 0x00007f68707cc9f0 3 clang 0x0000000000e43014 clang::BlockPointerType::getPointeeType() const + 16 4 clang 0x000000000108a3c8 5 clang 0x000000000108a40a 6 clang 0x0000000001093299 clang::GRExprEngine::VisitCall(clang::CallExpr const*, clang::ExplodedNode*, clang::ConstExprIterator, clang::ConstExprIterator, clang::ExplodedNodeSet&, bool) + 1539 7 clang 0x000000000108dbe9 clang::GRExprEngine::Visit(clang::Stmt const*, clang::ExplodedNode*, clang::ExplodedNodeSet&) + 1597 8 clang 0x000000000108d421 clang::GRExprEngine::ProcessStmt(clang::CFGElement, clang::GRStmtNodeBuilder&) + 2091 9 clang 0x0000000001071871 clang::GRCoreEngine::ProcessStmt(clang::CFGElement, clang::GRStmtNodeBuilder&) + 69 10 clang 0x000000000106eae4 clang::GRCoreEngine::HandleBlockEntrance(clang::BlockEntrance const&, clang::ExplodedNode*) + 368 11 clang 0x000000000106e407 clang::GRCoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, clang::GRState const*) + 779 12 clang 0x0000000000fc317b clang::GRExprEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int) + 47 13 clang 0x0000000000fbff87 14 clang 0x0000000000fc0086 15 clang 0x0000000000fc00fd 16 clang 0x0000000000fbfc16 17 clang 0x0000000000fbf59e 18 clang 0x000000000127c5ff clang::ParseAST(clang::Sema&, bool) + 639 19 clang 0x00000000011ccb4f clang::ASTFrontendAction::ExecuteAction() + 263 20 clang 0x00000000011cc7a3 clang::FrontendAction::Execute() + 319 21 clang 0x0000000001156761 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 747 22 clang 0x0000000000e129f1 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 877 23 clang 0x0000000000e05d59 cc1_main(char const**, char const**, char const*, void*) + 913 24 clang 0x0000000000e0eb45 main + 481 25 libc.so.6 0x00007f686ff32d5d __libc_start_main + 253 26 clang 0x0000000000e053fe Stack dump: 0. Program arguments: clang -cc1 -triple x86_64-unknown-linux-gnu -analyze -disable-free -main-file-name test.cc -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 -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir ../lib/clang/2.0 -ferror-limit 19 -fmessage-length 199 -fexceptions -fgnu-runtime -fdiagnostics-show-option -o test.plist -x c++ test.cc 1. parser at end of file 2. test.cc:12:10: Error evaluating statement 3. test.cc:12:10: Error evaluating statement clang: error: clang frontend command failed due to signal 11 (use -v to see invocation) Note that the declaration of operator!= is necessary for triggering the crash on line 12, even though it's never 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 Thu Oct 21 03:58:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 21 Oct 2010 03:58:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 8285] [patch] Implemented unregistering in JIT of exception information In-Reply-To: References: Message-ID: <20101021085826.EDEC32A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8285 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Duncan Sands 2010-10-21 03:58:26 CDT --- Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20101018/110158.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Oct 21 09:04:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 21 Oct 2010 09:04:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 8428] New: Unable to link JITTests Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8428 Summary: Unable to link JITTests 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 The unit test from unittests/ExecutionEngine/JIT fails to be linked with the following message: Linking CXX executable JIT/JITTests CMakeFiles/JITTests.dir/ExecutionEngine/JIT/JITEventListenerTest.cpp.o:(.data.rel.ro+0xa8): undefined reference to `typeinfo for llvm::JITEventListener' CMakeFiles/JITTests.dir/ExecutionEngine/JIT/JITTest.cpp.o:(.data.rel.ro+0x24c): undefined reference to `typeinfo for llvm::JITMemoryManager' collect2: ld returned 1 exit status I'm using: gcc-4.5.1 & binutils-2.20.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 Thu Oct 21 10:34:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 21 Oct 2010 10:34:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 8429] New: vectorized udiv/urem with constant pot-divisor are scalarized Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8429 Summary: vectorized udiv/urem with constant pot-divisor are scalarized Product: libraries Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: sroland at vmware.com CC: llvmbugs at cs.uiuc.edu Consider this function: define <4 x i32> @udiv_vec(<4 x i32> %var) { entry: %0 = udiv <4 x i32> %var, ret <4 x i32> %0 } llvm 2.8 produces this on x86_64 (and sse41 - with only sse2 it gets worse due to the lack of pextrd): pextrd $1, %xmm0, %eax shrl $4, %eax movd %xmm0, %ecx shrl $4, %ecx movd %ecx, %xmm1 pinsrd $1, %eax, %xmm1 pextrd $2, %xmm0, %eax shrl $4, %eax pinsrd $2, %eax, %xmm1 pextrd $3, %xmm0, %eax shrl $4, %eax movdqa %xmm1, %xmm0 pinsrd $3, %eax, %xmm0 ret But, if the divisor is not only a power of two, but the same for all 4 values, as is the case here, obviously this would be preferred: psrld $4, %xmm0 ret The same applies to urem (though this one also would require loading the mask constant to xmm). I guess the same applies to <8 x i16> values (though I did not test that) and <16 x i8> - though due to the lack of byte shifts this would require some more work, but in any case I think it would be much cheaper than doing extract/shift/insert for each of the 16 elements individually... -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 21 10:44:03 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 21 Oct 2010 10:44:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 8430] New: id lookup lost in scopes with using directive Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8430 Summary: id lookup lost in scopes with using directive Product: new-bugs Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: Axel.Naumann at cern.ch CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5644) --> (http://llvm.org/bugs/attachment.cgi?id=5644) test case Hi, attached code works with clang++ -c -O2 -m64 -pipe u.cxx -DMAKE_CLANG_HAPPY but not with clang++ -c -O2 -m64 -pipe u.cxx u.cxx:40:11: error: unknown type name 'TGenericClassInfo' static TGenericClassInfo *GenerateInitInstanceLocal(const ::space::X*) ^ u.cxx:42:7: error: no member named 'Shadow' in namespace 'ROOT' R__ASSERT(sizeof(::space::X) == sizeof(::ROOT::Shadow::space::XlEintgR)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ u.cxx:42:59: note: instantiated from: R__ASSERT(sizeof(::space::X) == sizeof(::ROOT::Shadow::space::XlEintgR)); ~~~~~~~~^ u.cxx:43:22: error: no type named 'TGenericClassInfo' in namespace 'ROOT' static ::ROOT::TGenericClassInfo instance; ~~~~~~~~^ u.cxx:46:4: error: unknown type name 'TGenericClassInfo' TGenericClassInfo *GenerateInitInstance(const ::space::X*) ^ 4 errors generated. I (and GCC) think the code is fine... Cheers, Axel. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Oct 21 10:47:22 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 21 Oct 2010 10:47:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 8431] New: WinCOFFObjectWriter: wrong case values Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8431 Summary: WinCOFFObjectWriter: wrong case values 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 GCC-4.6 emits the following warnings: lib/MC/WinCOFFObjectWriter.cpp: In member function ?virtual void {anonymous}::WinCOFFObjectWriter::RecordRelocation(const llvm::MCAssembler&, const llvm::MCAsmLayout&, const llvm::MCFragment*, const llvm::MCFixup&, llvm::MCValue, uint64_t&)?: lib/MC/WinCOFFObjectWriter.cpp:693:3: warning: case value ?131? not in enumerated type ?llvm::MCFixupKind? [-Wswitch] lib/MC/WinCOFFObjectWriter.cpp:694:3: warning: case value ?132? not in enumerated type ?llvm::MCFixupKind? [-Wswitch] lib/MC/WinCOFFObjectWriter.cpp:702:3: warning: case value ?133? not in enumerated type ?llvm::MCFixupKind? [-Wswitch] Doesn't sound good! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 21 11:26:10 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 21 Oct 2010 11:26:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 8432] New: char16_t, char32_t having trouble with op== Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8432 Summary: char16_t, char32_t having trouble with op== Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: hhinnant at apple.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com This program fails to compile with -std=c++0x template struct X { operator T() const {return T();} }; int main() { typedef char16_t T; X x; bool b = x == T(); } The program works if wchar_t is used instead of char16_t or char32_t. The error message is below: test.cpp:11:16: error: use of overloaded operator '==' is ambiguous bool b = x == T(); ~ ^ ~~~ test.cpp:11:16: note: built-in candidate operator==(float, float) test.cpp:11:16: note: built-in candidate operator==(float, unsigned long long) test.cpp:11:16: note: built-in candidate operator==(float, unsigned long) test.cpp:11:16: note: built-in candidate operator==(float, unsigned int) test.cpp:11:16: note: built-in candidate operator==(float, long long) test.cpp:11:16: note: built-in candidate operator==(float, long) test.cpp:11:16: note: built-in candidate operator==(float, int) test.cpp:11:16: note: built-in candidate operator==(unsigned long long, long double) test.cpp:11:16: note: built-in candidate operator==(unsigned long long, double) test.cpp:11:16: note: built-in candidate operator==(unsigned long long, float) test.cpp:11:16: note: built-in candidate operator==(unsigned long long, unsigned long long) test.cpp:11:16: note: built-in candidate operator==(unsigned long long, unsigned long) test.cpp:11:16: note: built-in candidate operator==(unsigned long long, unsigned int) test.cpp:11:16: note: built-in candidate operator==(unsigned long long, long long) test.cpp:11:16: note: built-in candidate operator==(unsigned long long, long) test.cpp:11:16: note: built-in candidate operator==(unsigned long long, int) test.cpp:11:16: note: built-in candidate operator==(unsigned long, long double) test.cpp:11:16: note: built-in candidate operator==(unsigned long, double) test.cpp:11:16: note: built-in candidate operator==(unsigned long, float) test.cpp:11:16: note: built-in candidate operator==(unsigned long, unsigned long long) test.cpp:11:16: note: built-in candidate operator==(long double, long double) test.cpp:11:16: note: built-in candidate operator==(long double, double) test.cpp:11:16: note: built-in candidate operator==(long double, float) test.cpp:11:16: note: built-in candidate operator==(long double, unsigned long long) test.cpp:11:16: note: built-in candidate operator==(long double, unsigned long) test.cpp:11:16: note: built-in candidate operator==(long double, unsigned int) test.cpp:11:16: note: built-in candidate operator==(long double, long long) test.cpp:11:16: note: built-in candidate operator==(long double, long) test.cpp:11:16: note: built-in candidate operator==(long double, int) test.cpp:11:16: note: built-in candidate operator==(double, long double) test.cpp:11:16: note: built-in candidate operator==(double, double) test.cpp:11:16: note: built-in candidate operator==(double, float) test.cpp:11:16: note: built-in candidate operator==(double, unsigned long long) test.cpp:11:16: note: built-in candidate operator==(double, unsigned long) test.cpp:11:16: note: built-in candidate operator==(double, unsigned int) test.cpp:11:16: note: built-in candidate operator==(double, long long) test.cpp:11:16: note: built-in candidate operator==(double, long) test.cpp:11:16: note: built-in candidate operator==(double, int) test.cpp:11:16: note: built-in candidate operator==(float, long double) test.cpp:11:16: note: built-in candidate operator==(float, double) test.cpp:11:16: note: built-in candidate operator==(long long, long) test.cpp:11:16: note: built-in candidate operator==(long long, int) test.cpp:11:16: note: built-in candidate operator==(long, long double) test.cpp:11:16: note: built-in candidate operator==(long, double) test.cpp:11:16: note: built-in candidate operator==(long, float) test.cpp:11:16: note: built-in candidate operator==(long, unsigned long long) test.cpp:11:16: note: built-in candidate operator==(long, unsigned long) test.cpp:11:16: note: built-in candidate operator==(long, unsigned int) test.cpp:11:16: note: built-in candidate operator==(long, long long) test.cpp:11:16: note: built-in candidate operator==(long, long) test.cpp:11:16: note: built-in candidate operator==(long, int) test.cpp:11:16: note: built-in candidate operator==(int, long double) test.cpp:11:16: note: built-in candidate operator==(int, double) test.cpp:11:16: note: built-in candidate operator==(int, float) test.cpp:11:16: note: built-in candidate operator==(int, unsigned long long) test.cpp:11:16: note: built-in candidate operator==(int, unsigned long) test.cpp:11:16: note: built-in candidate operator==(int, unsigned int) test.cpp:11:16: note: built-in candidate operator==(int, long long) test.cpp:11:16: note: built-in candidate operator==(int, long) test.cpp:11:16: note: built-in candidate operator==(int, int) test.cpp:11:16: note: built-in candidate operator==(unsigned long, unsigned long) test.cpp:11:16: note: built-in candidate operator==(unsigned long, unsigned int) test.cpp:11:16: note: built-in candidate operator==(unsigned long, long long) test.cpp:11:16: note: built-in candidate operator==(unsigned long, long) test.cpp:11:16: note: built-in candidate operator==(unsigned long, int) test.cpp:11:16: note: built-in candidate operator==(unsigned int, long double) test.cpp:11:16: note: built-in candidate operator==(unsigned int, double) test.cpp:11:16: note: built-in candidate operator==(unsigned int, float) test.cpp:11:16: note: built-in candidate operator==(unsigned int, unsigned long long) test.cpp:11:16: note: built-in candidate operator==(unsigned int, unsigned long) test.cpp:11:16: note: built-in candidate operator==(unsigned int, unsigned int) test.cpp:11:16: note: built-in candidate operator==(unsigned int, long long) test.cpp:11:16: note: built-in candidate operator==(unsigned int, long) test.cpp:11:16: note: built-in candidate operator==(unsigned int, int) test.cpp:11:16: note: built-in candidate operator==(long long, long double) test.cpp:11:16: note: built-in candidate operator==(long long, double) test.cpp:11:16: note: built-in candidate operator==(long long, float) test.cpp:11:16: note: built-in candidate operator==(long long, unsigned long long) test.cpp:11:16: note: built-in candidate operator==(long long, unsigned long) test.cpp:11:16: note: built-in candidate operator==(long long, unsigned int) test.cpp:11:16: note: built-in candidate operator==(long long, long long) 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 Oct 21 13:04:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 21 Oct 2010 13:04:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 8432] char16_t, char32_t having trouble with op== In-Reply-To: References: Message-ID: <20101021180451.E14C52A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8432 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-10-21 13:04:51 CDT --- Fixed in Clang r117038. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 21 13:35:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 21 Oct 2010 13:35:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 8433] New: 'clang --analyze' crashes when invoking a member functor of dependent type Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8433 Summary: 'clang --analyze' crashes when invoking a member functor of dependent type Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: zhanyong.wan at gmail.com CC: llvmbugs at cs.uiuc.edu $ cat test.cc template class Foo { public: void Bar(); T value_; }; template void Foo::Bar() { value_(); // Crash! Note the () here. } $ clang --analyze test.cc 0 clang 0x0000000001f49aec 1 clang 0x0000000001f498e8 2 libpthread.so.0 0x00007f99557e59f0 3 clang 0x0000000000e43014 clang::BlockPointerType::getPointeeType() const + 16 4 clang 0x000000000108a3c8 5 clang 0x000000000108a40a 6 clang 0x0000000001093299 clang::GRExprEngine::VisitCall(clang::CallExpr const*, clang::ExplodedNode*, clang::ConstExprIterator, clang::ConstExprIterator, clang::ExplodedNodeSet&, bool) + 1539 7 clang 0x000000000108dbe9 clang::GRExprEngine::Visit(clang::Stmt const*, clang::ExplodedNode*, clang::ExplodedNodeSet&) + 1597 8 clang 0x000000000108d421 clang::GRExprEngine::ProcessStmt(clang::CFGElement, clang::GRStmtNodeBuilder&) + 2091 9 clang 0x0000000001071871 clang::GRCoreEngine::ProcessStmt(clang::CFGElement, clang::GRStmtNodeBuilder&) + 69 10 clang 0x000000000106eae4 clang::GRCoreEngine::HandleBlockEntrance(clang::BlockEntrance const&, clang::ExplodedNode*) + 368 11 clang 0x000000000106e407 clang::GRCoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, clang::GRState const*) + 779 12 clang 0x0000000000fc317b clang::GRExprEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int) + 47 13 clang 0x0000000000fbff87 14 clang 0x0000000000fc0086 15 clang 0x0000000000fc00fd 16 clang 0x0000000000fbfc16 17 clang 0x0000000000fbf59e 18 clang 0x000000000127c5ff clang::ParseAST(clang::Sema&, bool) + 639 19 clang 0x00000000011ccb4f clang::ASTFrontendAction::ExecuteAction() + 263 20 clang 0x00000000011cc7a3 clang::FrontendAction::Execute() + 319 21 clang 0x0000000001156761 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 747 22 clang 0x0000000000e129f1 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 877 23 clang 0x0000000000e05d59 cc1_main(char const**, char const**, char const*, void*) + 913 24 clang 0x0000000000e0eb45 main + 481 25 libc.so.6 0x00007f9954f4bd5d __libc_start_main + 253 26 clang 0x0000000000e053fe Stack dump: 0. Program arguments: clang -cc1 -triple x86_64-unknown-linux-gnu -analyze -disable-free -main-file-name test.cc -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 -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir ../lib/clang/2.0 -ferror-limit 19 -fmessage-length 138 -fexceptions -fgnu-runtime -fdiagnostics-show-option -o test.plist -x c++ test.cc 1. parser at end of file 2. test.cc:10:3: Error evaluating statement 3. test.cc:10:3: Error evaluating statement clang: error: clang frontend command failed due to signal 11 (use -v to see invocation) This might be related to PR8427. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 21 15:43:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 21 Oct 2010 15:43:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 8434] New: [patch] Fix for the linking of shared library libLLVM-X.X.so on FreeBSD Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8434 Summary: [patch] Fix for the linking of shared library libLLVM-X.X.so on FreeBSD Product: libraries Version: trunk Platform: Other OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: System Library AssignedTo: unassignedbugs at nondot.org ReportedBy: yuri at tsoft.com CC: llvmbugs at cs.uiuc.edu Synopsis: This is a very simple patch correcting linker parameters used to build shared lib on FreeBSD. It removes -Wl,--no-undefined option since it causes linker 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 Thu Oct 21 15:49:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 21 Oct 2010 15:49:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 8431] WinCOFFObjectWriter: warnings on GCC-4.6 for non enumerated case values. In-Reply-To: References: Message-ID: <20101021204959.47C702A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8431 Michael Spencer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Michael Spencer 2010-10-21 15:49:58 CDT --- Fixed in r117062. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 22 01:27:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 01:27:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 6056] clang ignores -fno-constant-cfstrings In-Reply-To: References: Message-ID: <20101022062741.7416D2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6056 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #18 from Chris Lattner 2010-10-22 01:27:40 CDT --- Please open a new bug for this new 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 Oct 22 09:16:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 09:16:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 8422] Missing flags In-Reply-To: References: Message-ID: <20101022141609.345292A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8422 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #3 from Chris Lattner 2010-10-22 09:16:08 CDT --- Clang should not support these flags. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 22 09:21:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 09:21:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 8386] template default parameter type of function default argument causes missing symbol In-Reply-To: References: Message-ID: <20101022142159.2899C2A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8386 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #4 from Chris Lattner 2010-10-22 09:21:58 CDT --- *** This bug has been marked as a duplicate of bug 8401 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 22 09:49:10 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 09:49:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 8436] New: -Wshadow on nested static data members Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8436 Summary: -Wshadow on nested static data members Product: new-bugs Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: Axel.Naumann at cern.ch CC: llvmbugs at cs.uiuc.edu struct A { static void* f; void* g; struct B { static void* f; void* g; }; }; compiled with clang++ -c -Wall -Wshadow -O2 t.cxx generates the warning t.cxx:3:28: warning: declaration shadows a static data member of 'A' [-Wshadow] struct B { static void* f; void* g; }; ^ t.cxx:2:17: note: previous declaration is here static void* f; void* g; Comment from Doug: > It doesn't seem at all useful for Clang to warn about static data members > shadowing something else by the same name. Personally, I'd limit -Wshadow to > only complain when a local declaration shadows something from the outer scope. Could this get fixed, please? Cheers, Axel. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Oct 22 10:12:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 10:12:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 8431] WinCOFFObjectWriter: warnings on GCC-4.6 for non enumerated case values. In-Reply-To: References: Message-ID: <20101022151247.E96832A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8431 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #3 from Duncan Sands 2010-10-22 10:12:47 CDT --- I don't think casting to unsigned is correct. Fixup.getKind() returns a value of type MCFixupKind. Thus the only way it can contain one of the problematic values (131, 132 or 133) is via undefined behaviour (AFAIK, putting a value that does not belong to an enum type in a variable of that enum type results in undefined behaviour). Casting to unsigned is just papering over the fact that it is invalid for Fixup.getKind() to return one of those values in the first place. Probably Fixup.getKind() should return an unsigned 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 Fri Oct 22 10:19:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 10:19:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 8437] New: CMake bad interaction with symbolic links (FindSubversion.cmake) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8437 Summary: CMake bad interaction with symbolic links (FindSubversion.cmake) Product: Build scripts Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: cmake AssignedTo: unassignedbugs at nondot.org ReportedBy: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu In my setup llvm is a symbolic link to somewhere else. This breaks the cmake build: CMake Error at /usr/share/cmake-2.8/Modules/FindSubversion.cmake:70 (MESSAGE): Command "/usr/bin/svn info /home/duncan/LLVM/llvm" failed with output: svn: '/home/duncan/LLVM' is not a working copy This is because "svn info" doesn't look through symbolic links. Likewise, llvm/tools/clang is a symbolic link to somewhere else, causing CMake Error at /usr/share/cmake-2.8/Modules/FindSubversion.cmake:70 (MESSAGE): Command "/usr/bin/svn info /home/duncan/LLVM/llvm.top/llvm/tools/clang" failed with output: /home/duncan/LLVM/llvm.top/llvm/tools/clang: (Not a versioned resource) -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 22 10:25:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 10:25:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 8430] id lookup lost in scopes with using directive In-Reply-To: References: Message-ID: <20101022152501.7E3842A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8430 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-10-22 10:25:01 CDT --- Fixed in Clang r117097. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 22 11:00:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 11:00:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 8438] New: cmake: "make check" warns about unittests Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8438 Summary: cmake: "make check" warns about unittests Product: Build scripts Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: cmake AssignedTo: unassignedbugs at nondot.org ReportedBy: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu $ cmake ../llvm ... $ make ... $ make check Running LLVM regression tests lit.py: main.py:298: warning: test suite 'LLVM-Unit' contained no tests ^ Here there is a worrying warning about LLVM-Unit. It is not clear to me whether it actually runs the unittests or 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 Fri Oct 22 11:27:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 11:27:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 8439] New: Clang C++ frontend crash Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8439 Summary: Clang C++ frontend crash Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: d235j.1 at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The attached reduced testcase causes the C++ frontend to crash. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Oct 22 12:24:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 12:24:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 8437] CMake bad interaction with symbolic links (FindSubversion.cmake) In-Reply-To: References: Message-ID: <20101022172413.CA8C52A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8437 ?scar Fuentes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |ofv at wanadoo.es Resolution| |FIXED --- Comment #1 from ?scar Fuentes 2010-10-22 12:24:13 CDT --- Committed workarounds in r117110 (clang) and 117109 (llvm). This will obviate the svn version info, but at least the build will work. A more solid workaround would be to resolve the symlink and get the version info from there. Even better would be to fix FindSubversion. Please consider filing a bug report on cmake's tracker ;-) If you do so, please put some reference to the cmake bug report 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 Fri Oct 22 12:37:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 12:37:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 8439] Assertion failure in member lookup In-Reply-To: References: Message-ID: <20101022173726.DC41E2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8439 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Douglas Gregor 2010-10-22 12:37:26 CDT --- Fixed in Clang r117112. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 22 13:48:06 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 13:48:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 8440] New: False null dereference on variable that had just been malloced and checked for NULL Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8440 Summary: False null dereference on variable that had just been malloced and checked for NULL Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: luis.strano at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5647) --> (http://llvm.org/bugs/attachment.cgi?id=5647) report showing the false positive The report generated is available here: http://people.profusion.mobi/~lfelipe/static_analysis/efl/efl-53721/TMP/st/elementary/2010-10-21-1/report-wqrtzn.html#EndPath I'm also attaching the html file in case the above gets removed sometime later. The report in question is quite direct, the savedtypes.types variable is getting allocated in line 1175, it is checked for NULL on 1176 and then scan-build reports a null dereference on line 1181, even though in no point of that code there is any chance of its value being changed, seeing as it is not passed into any other 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 Fri Oct 22 14:03:55 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 14:03:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 6655] [cmake] cygwin not support loadable module In-Reply-To: References: Message-ID: <20101022190355.D6D3C2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6655 ?scar Fuentes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |ofv at wanadoo.es Resolution| |FIXED --- Comment #2 from ?scar Fuentes 2010-10-22 14:03:54 CDT --- Fixed in r117130. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 22 14:10:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 14:10:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 6402] Better explicit dependencies In-Reply-To: References: Message-ID: <20101022191001.DA1442A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6402 ?scar Fuentes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #3 from ?scar Fuentes 2010-10-22 14:10:00 CDT --- This was discussed on IRC some weeks ago. The automatic library dependencies will stay as long as the config&make build has them too. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Oct 22 14:22:18 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 14:22:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 4531] CMake won't build without the x86 target In-Reply-To: References: Message-ID: <20101022192218.623582A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4531 ?scar Fuentes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #4 from ?scar Fuentes 2010-10-22 14:22:17 CDT --- Closing after a year waiting for feedback. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 22 14:51:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 14:51:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 8441] New: Race condition in AttributesList Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8441 Summary: Race condition in AttributesList Product: new-bugs Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: g at brewster.org CC: llvmbugs at cs.uiuc.edu This bug seems to be a race condition relating to the static AttributesList in Attributes.cpp. Access to the AttributesList is locked, but my theory for what was going on is that at line 125-126, when dropping a reference, we decrement the count, then check to see if it's zero, then delete "this" (if the refcount was zero). After we've checked that the count is zero, but before deleting "this", "this" is still in the AttributesLists set. So in the mean time, another thread comes along, finds "this" in AttributesList, and references it. But the first thread has already determined that the count *was* 0, and then comes back and deletes "this", even though it's now in use by the second thread. I've attached a patch which seems to fix this problem for me -- not intended as a final solution, but it is useful for illustrating the problem. I'll attach a program which reproduces the problem once I figure out how to have multiple attachements. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 22 15:12:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 15:12:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 8337] Dereference of null pointer In-Reply-To: References: Message-ID: <20101022201257.7BF5E2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8337 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |kremenek at apple.com Resolution| |DUPLICATE --- Comment #2 from Ted Kremenek 2010-10-22 15:12:57 CDT --- (In reply to comment #1) > This looks like a duplicate of #3308, no? Indeed it is. *** This bug has been marked as a duplicate of bug 3308 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 22 16:08:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 16:08:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 6930] clang: invalid input constraint "p" in asm In-Reply-To: References: Message-ID: <20101022210813.55CEC2A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6930 Dale Johannesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #13 from Dale Johannesen 2010-10-22 16:08:11 CDT --- The construct in #6 doesn't seem to work on Darwin with any of its x86 compilers, including gcc-4.2. However, 117149 changes clang to treat "p" the same way llvm-gcc does; see if that helps. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 22 16:22:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 16:22:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 8442] New: Thread unsafety in DynamicLibrary.cpp Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8442 Summary: Thread unsafety in DynamicLibrary.cpp Product: new-bugs Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: g at brewster.org CC: llvmbugs at cs.uiuc.edu The OpenedHandles static variable in DynamicLibrary.cpp is not thread safe. It looks like there are other thread-safety issues here. I've attached a patch which protects OpenedHandles with a mutex. Note that I couldn't use ManagedStatic with the mutex, as that would have introduced a circular library dependency (between Support and 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 Fri Oct 22 17:45:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 17:45:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 8443] New: named metadata not quotable Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8443 Summary: named metadata not quotable Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM assembly language parser AssignedTo: unassignedbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu, sliao at google.com This works: !foo = !{!0} !0 = metadata !{metadata "zero"} but it doesn't seem to support quoting these: !"foo" = !{!0} which reports "error: expected integer" or "!foo" = !{!0} which reports "error: expected 'type' after name". Since I'm generating metadata nodes with names that include characters that need escaping, I have .bc files which I can't safely llvm-dis | llvm-as (the disassembler prints without quoting). -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 22 19:56:55 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 19:56:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 3651] cast_or_null for op_iterator *does* dereference NULL In-Reply-To: References: Message-ID: <20101023005655.1B6E02A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3651 Gabor Greif changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Gabor Greif 2010-10-22 19:56:54 CDT --- The *cast_or_null(STH) routines now always take a pointer, and no arbitrary simplifications take place any more. The NULLness check is thus trivial now and I believe that these routines cannot exhibit the erroneous behaviour described in the PR any more. see Closing PR. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 22 20:06:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 20:06:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 8444] New: c++ templated embedded class looses field that under union Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8444 Summary: c++ templated embedded class looses field that under union Product: clang Version: trunk Platform: Other OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: yuri at tsoft.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5651) --> (http://llvm.org/bugs/attachment.cgi?id=5651) test case For some reason I get this error when I compile the attached test case with clang++: allocators-e2.C:41:17: error: no member named 'xxxs' in 'Ppp::Ggg::Qqq<10, 10>::Hhh' ttt = &hhh->xxxs[0]; Even though there is the field xxxs in Hhh structure. I am sure it's possible to minimize this testcase further. rev.117057 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 22 20:36:49 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 22 Oct 2010 20:36:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 8445] New: SimplifyCFG crashes with BB containing single unwind instruction Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8445 Summary: SimplifyCFG crashes with BB containing single unwind instruction Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: alexmac at adobe.com CC: llvmbugs at cs.uiuc.edu running "opt -simplifycfg" on the following function (tested with r117191): ----------------------------------------- define void @test() { unwind } ----------------------------------------- Crashes with the following message: 0 opt 0x000000010046ede7 PrintStackTrace(void*) + 38 1 opt 0x000000010046f2ee SignalHandler(int) + 254 2 libSystem.B.dylib 0x00007fff82b8935a _sigtramp + 26 3 libSystem.B.dylib 0x00000001016055f0 _sigtramp + 2124923568 4 opt 0x000000010004e1dd llvm::Instruction::getOpcode() const + 21 5 opt 0x000000010004e379 llvm::CallInst::classof(llvm::Instruction const*) + 21 6 opt 0x0000000100020151 llvm::isa_impl::doit(llvm::Instruction const&) + 21 7 opt 0x000000010000c325 llvm::isa_impl_wrap::doit(llvm::Instruction const&) + 21 8 opt 0x000000010002016d bool llvm::isa_impl_cl::isa(llvm::Instruction const&) + 21 9 opt 0x00000001000c35b1 bool llvm::isa_impl_cl::isa(llvm::Instruction*) + 21 10 opt 0x00000001001302c0 bool llvm::isa_impl_cl::isa(llvm::Instruction* const&) + 24 11 opt 0x000000010014d030 llvm::isa_impl_wrap const, llvm::Instruction*>::doit(llvm::ilist_iterator const&) + 34 12 opt 0x00000001001302db bool llvm::isa_impl_cl >::isa(llvm::ilist_iterator const&) + 21 13 opt 0x00000001001302f5 bool llvm::isa >(llvm::ilist_iterator const&) + 21 14 opt 0x0000000100093f17 llvm::cast_retty >::ret_type llvm::dyn_cast >(llvm::ilist_iterator const&) + 21 15 opt 0x000000010013ada0 MarkAliveBlocks(llvm::BasicBlock*, llvm::SmallPtrSet&) + 156 16 opt 0x000000010013b008 RemoveUnreachableBlocksFromFn(llvm::Function&) + 71 17 opt 0x000000010013b337 (anonymous namespace)::CFGSimplifyPass::runOnFunction(llvm::Function&) + 127 18 opt 0x000000010040508e llvm::FPPassManager::runOnFunction(llvm::Function&) + 350 19 opt 0x0000000100405261 llvm::FPPassManager::runOnModule(llvm::Module&) + 81 20 opt 0x0000000100404d5e llvm::MPPassManager::runOnModule(llvm::Module&) + 384 21 opt 0x000000010040650f llvm::PassManagerImpl::run(llvm::Module&) + 111 22 opt 0x0000000100406571 llvm::PassManager::run(llvm::Module&) + 33 23 opt 0x000000010006a903 main + 3679 24 opt 0x000000010005f848 start + 52 Stack dump: 0. Program arguments: ./Debug+Asserts/bin/opt -simplifycfg test.bc -o test-opt.bc 1. Running pass 'Function Pass Manager' on module 'test.bc'. 2. Running pass 'Simplify the CFG' on function '@test' Segmentation fault -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Oct 23 13:58:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 23 Oct 2010 13:58:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 8446] New: unhelpful error message for missing typename Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8446 Summary: unhelpful error message for missing typename Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: luc_j_bourhis at mac.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Consider the following code (a reduction of some actual code of mine): ---------------------------------------------------------------------- struct site_symmetry_ops { }; template struct class_ { template void def(A1 const &a1) {} }; template struct init { init() { } }; struct special_position_site_parameter { typedef char scatterer_type; }; template struct valued_asu_parameter_heir_wrapper { static class_ wrap(char const *name) { return class_(); } }; template struct special_position_wrapper { static void wrap(char const *name) { valued_asu_parameter_heir_wrapper::wrap(name) .def(init()) ; } }; void wrap_special_position() { special_position_wrapper ::wrap("special_position_site_parameter"); } --------------------------------------------------------------------------- clang++ (trunk 116866) generates the following error message: test.cpp:29:64: error: expected expression .def(init()) ^ 1 error generated. The problem is of course that a 'typename' is missing in front of 'wt::scatterer_type'. The error message does not suggest that, not even implicitly. This is the only case I know of where g++ error message is more informative than clang++ actually!! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 23 16:21:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 23 Oct 2010 16:21:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 8447] New: TEST 'Clang :: Driver/hello.c' FAILED on x86_64 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8447 Summary: TEST 'Clang :: Driver/hello.c' FAILED on x86_64 Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: i.galic at brainsware.org CC: llvmbugs at cs.uiuc.edu i.galic at phoenix ~/Projects/llvm/tools/clang/test/Driver (svn)-[Driver:117210] % python /home/i.galic/Projects/llvm/utils/lit/lit.py --param clang_site_config=/home/i.galic/Projects/llvm/tools/clang/test/lit.site.cfg -v -s . lit.py: lit.cfg:130: note: using clang: '/home/i.galic/Projects/llvm/Release+Asserts/bin/clang' FAIL: Clang :: Driver/hello.c (34 of 50) ******************** TEST 'Clang :: Driver/hello.c' FAILED ******************** Script: -- /home/i.galic/Projects/llvm/Release+Asserts/bin/clang -ccc-echo -o /home/i.galic/Projects/llvm/tools/clang/test/Driver/Output/hello.c.tmp /home/i.galic/Projects/llvm/tools/clang/test/Driver/hello.c 2> /home/i.galic/Projects/llvm/tools/clang/test/Driver/Output/hello.c.tmp.log grep 'clang" -cc1 .*hello.c' /home/i.galic/Projects/llvm/tools/clang/test/Driver/Output/hello.c.tmp.log /home/i.galic/Projects/llvm/tools/clang/test/Driver/Output/hello.c.tmp > /home/i.galic/Projects/llvm/tools/clang/test/Driver/Output/hello.c.tmp.out grep "I'm a little driver, short and stout." /home/i.galic/Projects/llvm/tools/clang/test/Driver/Output/hello.c.tmp.out -- Exit Code: 1 ******************** Testing Time: 2.24s ******************** Failing Tests (1): Clang :: Driver/hello.c Expected Passes : 49 Unexpected Failures: 1 i.galic at phoenix ~/Projects/llvm/tools/clang/test/Driver (svn)-[Driver:117210] % cat /home/i.galic/Projects/llvm/tools/clang/test/Driver/Output/hello.c.tmp.log "/home/i.galic/Projects/llvm/Release+Asserts/bin/clang" -cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name hello.c -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.51 -resource-dir /home/i.galic/Projects/llvm/Release+Asserts/bin/../lib/clang/2.9 -ferror-limit 19 -fmessage-length 0 -fgnu-runtime -fdiagnostics-show-option -o /tmp/cc-5u8If9.s -x c /home/i.galic/Projects/llvm/tools/clang/test/Driver/hello.c "/usr/bin/as" --64 -o /tmp/cc-3MdMTL.o /tmp/cc-5u8If9.s "/usr/bin/gcc" -m64 -o /home/i.galic/Projects/llvm/tools/clang/test/Driver/Output/hello.c.tmp /tmp/cc-3MdMTL.o /usr/bin/ld.bfd.real: /tmp/cc-3MdMTL.o: relocation R_X86_64_32 against `.rodata.str1.16' can not be used when making a shared object; recompile with -fPIC /tmp/cc-3MdMTL.o: could not read symbols: Bad value collect2: ld returned 1 exit status clang: error: linker (via gcc) command failed with exit code 1 (use -v to see invocation) Adding -fPIC results in PASS. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 23 17:09:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 23 Oct 2010 17:09:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 8448] New: non-sfinae error: is a private member Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8448 Summary: non-sfinae error: is a private member Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: marc.glisse at normalesup.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Hello, when I compile this code: class A { typedef int priv; }; void f(A,A){} template void f(T,typename T::priv){} void g(){f(A(),A());} I get the error: h.C:3:41: error: 'priv' is a private member of 'A' template void f(T,typename T::priv){} ^ h.C:3:25: note: while substituting deduced template arguments into function template 'f' [with T = A] template void f(T,typename T::priv){} ^ First, I am not sure whether this is supposed to be an error (it is certainly painful if it is). Second, in any case, the error message is missing a crucial piece of information which is where the function was called from (line 4). Is there some option to make it appear? I understand that quite often the instantiation context is spam in the error message, but here it would 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 Sun Oct 24 01:38:50 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 24 Oct 2010 01:38:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 8449] New: llvm-config lists system libs as part of --ldflags instead of --libs Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8449 Summary: llvm-config lists system libs as part of --ldflags instead of --libs Product: tools Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: llvm-config AssignedTo: unassignedbugs at nondot.org ReportedBy: jeberger at free.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5653) --> (http://llvm.org/bugs/attachment.cgi?id=5653) Patch to llvm-config On my system, "llvm-config --ldflags" gives "-L/usr/lib/llvm -lpthread -lffi -ldl -lm" and "llvm-config --libs" only lists libraries from LLVM. This causes problems because the usual way to link a program is to list the LDFLAGS before the LIBS, but the GNU linker is sensitive to the order in which libraries are given and needs the system libraries to be listed last. In particular, this means that the example given in the llvm-config man page will fail to compile. The attached patch should fix 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 Sun Oct 24 07:24:22 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 24 Oct 2010 07:24:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 8445] SimplifyCFG crashes with BB containing single unwind instruction In-Reply-To: References: Message-ID: <20101024122423.1515F2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8445 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Duncan Sands 2010-10-24 07:24:22 CDT --- Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20101018/110371.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 Sun Oct 24 07:26:50 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 24 Oct 2010 07:26:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 8450] New: Unexpected error "explicit specialization of 'XXX' after instantiation Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8450 Summary: Unexpected error "explicit specialization of 'XXX' after instantiation Product: clang Version: trunk Platform: Other OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: kiyolee at hotmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Consider the following 2 source files: // llvm-bug.h #include template class MyClass { public: static const signed char tbl[256]; static int lookup(const _Elem& c) { return (c >= 0 && (size_t)c < sizeof(tbl)/sizeof(tbl[0])) ? tbl[(size_t)c] : -1; } }; #ifdef WORKAROUND template<> const signed char MyClass::tbl[256]; #endif template<> int MyClass::lookup(const char& c) { return MyClass::tbl[(unsigned char)c]; } // eof // llvm-bug.cpp #include "llvm-bug.h" template<> const signed char MyClass::tbl[256] = { 0 }; // eof Compiling llvm-bug.cpp without the WORKAROUND block would report the following error: llvm-bug.cpp:4:34: error: explicit specialization of 'tbl' after instantiation const signed char MyClass::tbl[256] = { 0 }; ^ In file included from llvm-bug.cpp:3: ./llvm-bug.h:19:26: note: implicit instantiation first required here return MyClass::tbl[(unsigned char)c]; ^ 1 error generated. The file would be compiled alright if WORKAROUND block is included and that does not seem actually correct. For comparison, g++ accept both with and without the WORKAROUND block. VC 2008 would report error for the WORKAROUND block instead about member variable without initializer but initializer in header is wrong either: duplicate copies of the same static member variable upon linking if the header is used by multiple .cpp files. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Oct 24 07:50:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 24 Oct 2010 07:50:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 8451] New: cc1plus Segmentation fault while building Mozilla Thunderbird Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8451 Summary: cc1plus Segmentation fault while building Mozilla Thunderbird 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: Nomis101 at web.de CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5654) --> (http://llvm.org/bugs/attachment.cgi?id=5654) preprocessed source If I build Mozilla Thunderbird on Mac OS X in x86_64 with llvm-gcc-4.2, than it stops with a segfault in mailnews. The error is: /Volumes/Developer/temp/src/mailnews/mime/src/mimedrft.cpp: In function ?nsresult CreateComposeParams(nsCOMPtr&, nsIMsgCompFields*, nsMsgAttachmentData*, MSG_ComposeType, MSG_ComposeFormat, nsIMsgIdentity*, const char*, nsIMsgDBHdr*)?: /Volumes/Developer/temp/src/mailnews/mime/src/mimedrft.cpp:235: warning: enumeral mismatch in conditional expression: ?nsIMsgCompFormat::? vs ?nsIMsgCompFormat::? /Volumes/Developer/temp/src/mailnews/mime/src/mimedrft.cpp:238: warning: enumeral mismatch in conditional expression: ?nsIMsgCompFormat::? vs ?nsIMsgCompFormat::? /Volumes/Developer/temp/src/mailnews/mime/src/mimedrft.cpp: In function ?void mime_parse_stream_complete(nsMIMESession*)?: /Volumes/Developer/temp/src/mailnews/mime/src/mimedrft.cpp:1570: warning: enumeral mismatch in conditional expression: ?nsIMsgCompType::? vs ?nsIMsgCompType::? /Volumes/Developer/temp/src/mailnews/mime/src/mimedrft.cpp:1621: warning: enumeral mismatch in conditional expression: ?nsIMsgCompFormat::? vs ?nsIMsgCompFormat::? /Volumes/Developer/temp/src/mailnews/mime/src/mimedrft.cpp: In function ?nsresult mime_decompose_file_output_fn(const char*, PRInt32, void*)?: /Volumes/Developer/temp/src/mailnews/mime/src/mimedrft.cpp:2021: warning: comparison between signed and unsigned integer expressions i686-apple-darwin10-llvm-g++-4.2: Internal error: Segmentation fault (program cc1plus) Please submit a full bug report. See for instructions. make[7]: *** [nsMsgHeaderParser.o] Error 1 make[7]: *** Waiting for unfinished jobs.... You can find nsMsgHeaderParser there: http://hg.mozilla.org/comm-central/file/7ef9af322783/mailnews/mime/src I've attached the preprocessed source (this was build with "-O3 -save-temps"). -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 24 07:54:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 24 Oct 2010 07:54:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 8431] WinCOFFObjectWriter: warnings on GCC-4.6 for non enumerated case values. In-Reply-To: References: Message-ID: <20101024125437.B2CA32A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8431 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #5 from Duncan Sands 2010-10-24 07:54:37 CDT --- Michael has convinced me that his fix was 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 Oct 24 18:18:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 24 Oct 2010 18:18:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 8454] New: Clang writes ObjC string literals as UTF-16 if they contain UTF-8 characters Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8454 Summary: Clang writes ObjC string literals as UTF-16 if they contain UTF-8 characters Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: js-llvm-bugzilla at webkeks.org CC: llvmbugs at cs.uiuc.edu When using @"a", Clang outputs an ASCII a in the .s file. If however an UTF-8 encoded @"?" is used, Clang translates this to UTF-16 and writes it in UTF-16 into the .s file. However, there is NO way of detecting the encoding of the string. You have to guess whether Clang used UTF-16 or ASCII. The expected behaviour would be that Clang writes the string into the .s file just the way it was in the source file. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Oct 25 10:34:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 25 Oct 2010 10:34:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 8456] New: Static analyzer crashes on handling "assert" with a constant parameter Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8456 Summary: Static analyzer crashes on handling "assert" with a constant parameter 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: david.majnemer at gmail.com CC: llvmbugs at cs.uiuc.edu These two test cases: #include int main(int argc, char * argv[]) { assert(true); return 0; } and #include int main(int argc, char * argv[]) { assert(false); return 0; } crash clang++ when invoked with "clang++ --analyze test.cc" "clang++ --version" reports: clang version 2.9 (trunk 117247) Target: x86_64-apple-darwin10 Thread model: posix -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Oct 25 10:39:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 25 Oct 2010 10:39:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 8457] New: clang++ emits hidden symbols instead of extern. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8457 Summary: clang++ emits hidden symbols instead of extern. Product: clang Version: trunk Platform: Macintosh OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: devlists at shadowlab.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com When using the -fvisibility=hidden flag, clang tag structs as hidden (even if declared in extern "C" block) and propagate this visibility to the functions that use them as arguments, even is they are declared explicitly extern. --------------- Foo.cpp ------------------ struct AudioTimeStamp { int field; }; void __attribute__((visibility("default"))) Foo(struct AudioTimeStamp *timeStamp) { } ---------------------------------------- clang++ -S -emit-llvm -fvisibility=hidden Foo.cpp --------------- Foo.s ------------------ ? define hidden void @_Z3FooP14AudioTimeStamp(%struct.AudioTimeStamp* %timeStamp) nounwind ssp { ? ---------------------------------------- If compiled in C mode or with GCC, the Foo symbol is properly exported. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 25 11:34:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 25 Oct 2010 11:34:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 8458] New: static-analyzer assert in @synchronize() when using object's property as lock. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8458 Summary: static-analyzer assert in @synchronize() when using object's property as lock. Product: clang Version: trunk Platform: Macintosh 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 When using an object's property as lock in a @synchronized block, the static analyzer abort. -------- test.m ----------- @interface WBDaemonTask {} @property(readonly) id lock; @end static void __WBDaemonUnregisterAtExit(WBDaemonTask *aDaemon) { @synchronized(aDaemon.lock) {} } ------------------------ clang --analyze test.m Assertion failed: (isa(Val) && "cast() argument of incompatible type!"), function cast, file /Volumes/MacPro/Projects/OpenSource/llvm/include/llvm/Support/Casting.h, line 202. 0 clang 0x0000000100e229f2 PrintStackTrace(void*) + 34 1 clang 0x0000000100e22f99 SignalHandler(int) + 857 2 libSystem.B.dylib 0x00007fff8349f35a _sigtramp + 26 3 libSystem.B.dylib 0x0000006800000000 _sigtramp + 2092305600 4 clang 0x0000000100013e86 abort + 22 5 clang 0x0000000100013e48 __assert_rtn + 56 6 clang 0x00000001004c4e62 clang::CheckerVisitor<(anonymous namespace)::ObjCAtSyncChecker>::_PreVisit(clang::CheckerContext&, clang::Stmt const*) + 1810 7 clang 0x000000010049250b clang::GRExprEngine::CheckerVisit(clang::Stmt const*, clang::ExplodedNodeSet&, clang::ExplodedNodeSet&, clang::GRExprEngine::CallbackKind) + 1451 8 clang 0x0000000100495d6e clang::GRExprEngine::Visit(clang::Stmt const*, clang::ExplodedNode*, clang::ExplodedNodeSet&) + 766 9 clang 0x00000001004950b6 clang::GRExprEngine::ProcessStmt(clang::CFGElement, clang::GRStmtNodeBuilder&) + 2806 10 clang 0x000000010048f149 clang::GRCoreEngine::HandlePostStmt(clang::PostStmt const&, clang::CFGBlock const*, unsigned int, clang::ExplodedNode*) + 393 11 clang 0x000000010048e84c clang::GRCoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, clang::GRState const*) + 556 12 clang 0x000000010043b15e ActionObjCMemCheckerAux((anonymous namespace)::AnalysisConsumer&, clang::AnalysisManager&, clang::Decl*, bool) + 1118 13 clang 0x000000010043c73a (anonymous namespace)::AnalysisConsumer::HandleCode(clang::Decl*, std::vector >&) + 362 14 clang 0x000000010043c0f8 (anonymous namespace)::AnalysisConsumer::HandleTranslationUnit(clang::ASTContext&) + 360 15 clang 0x000000010022a8de clang::ParseAST(clang::Sema&, bool) + 750 16 clang 0x000000010003c2d7 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 871 17 clang 0x000000010001be45 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2757 18 clang 0x00000001000155de cc1_main(char const**, char const**, char const*, void*) + 5518 19 clang 0x00000001000187ff main + 735 20 clang 0x0000000100014044 start + 52 21 clang 0x000000000000002f start + 4294885407 Stack dump: 0. Program arguments: /Volumes/MacPro/Projects/OpenSource/llvm/release/Release+Asserts/bin/clang -cc1 -triple x86_64-apple-darwin10.0.0 -analyze -disable-free -main-file-name test.m -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 97.17 -resource-dir /Volumes/MacPro/Projects/OpenSource/llvm/release/Release+Asserts/bin/../lib/clang/2.9 -ferror-limit 19 -fmessage-length 180 -stack-protector 1 -fblocks -fexceptions -fobjc-nonfragile-abi2 -fobjc-dispatch-method=mixed -fdiagnostics-show-option -fcolor-diagnostics -o test.plist -x objective-c test.m 1. parser at end of file 2. test.m:8:3: Error evaluating statement 3. test.m:8:3: Error evaluating statement clang: error: clang frontend command failed due to signal 4 (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 Oct 25 11:36:06 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 25 Oct 2010 11:36:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 8459] New: Debug info triggers DIE assert. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8459 Summary: Debug info triggers DIE assert. 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: luked at cs.rochester.edu CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5660) --> (http://llvm.org/bugs/attachment.cgi?id=5660) Bugpoint reduced testcase. The included testcase triggers a DIE assertion during compilation (llc bugpoint-reduced-testcase). -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Oct 25 13:11:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 25 Oct 2010 13:11:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 8450] Unexpected error "explicit specialization of 'XXX' after instantiation" In-Reply-To: References: Message-ID: <20101025181152.709052A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8450 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Douglas Gregor 2010-10-25 13:11:51 CDT --- Clang is correct here in diagnosing C++ [temp.expl.spec]p6: If a template, a member template or the member of a class template is explicitly specialized then that specialization shall be declared before the first use of that specialization that would cause an implicit instantiation to take place, in every translation unit in which such a use occurs; no diagnostic is required. g++'s behavior is also acceptable according to the standard ("no diagnostic is required). MSVC is wrong to reject the code in the WORKAROUND block, per C++ [temp.expl.spec]p13: An explicit specialization of a static data member of a template is a definition if the declaration includes an initializer; otherwise, it is a declaration. It's probably treating the explicit specialization as a definition rather than a declaration. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 25 13:52:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 25 Oct 2010 13:52:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 8425] clang rejects valid implicit conversion sequence in templates In-Reply-To: References: Message-ID: <20101025185243.16E9A2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8425 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dgregor at apple.com, | |llvmbugs at cs.uiuc.edu Component|Frontend |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 Mon Oct 25 14:53:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 25 Oct 2010 14:53:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 8460] New: Assert for missing NULL caused by bad erase call Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8460 Summary: Assert for missing NULL caused by bad erase call Product: libraries Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: System Library AssignedTo: unassignedbugs at nondot.org ReportedBy: jim at thegoodnows.net CC: llvmbugs at cs.uiuc.edu In lib/System/Win32/Path.inc, function Path::isValid(), a null terminator is added to the path being checked. At one point, a trailing slash is detected and removed using: path.erase(--len); However, since a null has been added, this call erases the null as well. There are really two issues here. First, the call should be: path.erase(--len, 1); to just erase the trailing slash. The second issue is that the logic of the function is a bit awkward since the len is calculated before the null is added, so doing checks like: path[len-1] == '/' make it seem like the slash is really the last character. A better approach might be to take the length after the null is added and then the check would become: path[len-2] == '/' which would make it clearer that you can't erase to the end. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Oct 25 15:14:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 25 Oct 2010 15:14:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 8461] New: clang wrongly ontimizes stdcall functions calling cdecl ones (i386) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8461 Summary: clang wrongly ontimizes stdcall functions calling cdecl ones (i386) Product: clang Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: slyich at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com #define STDCALL __attribute__((stdcall)) // extern "C" does not matter. Just for nicer named in dsisasm extern "C" void foo (void); class I { public: virtual void Startup() STDCALL; }; void I::Startup() //STDCALL { foo(); } //---------------------------------- Code generated by clang (-m32 -g -O2 -fomit-frame-pointer): void I::Startup() //STDCALL { foo(); 0: e9 fc ff ff ff jmp 1 <_ZN1I7StartupEv+0x1> Code generated by g++: void I::Startup() //STDCALL { 0: 83 ec 0c sub $0xc,%esp foo(); 3: e8 fc ff ff ff call 4 <_ZN1I7StartupEv+0x4> } 8: 83 c4 0c add $0xc,%esp b: c2 04 00 ret $0x4 We see proper 'ret $0x4' here. I'll attach whole tarball with mk.sh script. It causes SIGSEGV for me: ./mk.sh: line 18: 26523 Segmentation fault ./prog -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 25 15:21:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 25 Oct 2010 15:21:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 8458] static-analyzer assert in @synchronize() when using object's property as lock. In-Reply-To: References: Message-ID: <20101025202117.863012A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8458 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |kremenek at apple.com Resolution| |FIXED --- Comment #1 from Ted Kremenek 2010-10-25 15:21:16 CDT --- Fixed: http://llvm.org/viewvc/llvm-project?view=rev&revision=117300 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 25 15:33:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 25 Oct 2010 15:33:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 8462] New: Argument deduction failure in function templates Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8462 Summary: Argument deduction failure in function templates Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: andreas.pokorny at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5661) --> (http://llvm.org/bugs/attachment.cgi?id=5661) Test case There is a problem with deducing template parameters of function templates when multiple inheritance is involved. The attached source code procduces the follow error messages reduction.cpp:32:16: error: no matching function for call to 'F' T *n = ::F(*t); ^~~~~~~~ reduction.cpp:42:10: note: in instantiation of member function 'context::doit' requested here con1.doit(&d); ^ reduction.cpp:21:4: note: candidate template ignored: failed template argument deduction T* F(sugar &b) { return static_cast(b.n); } ^ reduction.cpp:23:4: note: candidate template ignored: failed template argument deduction T* F(B &b) { return b.n; } ^ reduction.cpp:25:4: note: candidate template ignored: failed template argument deduction T* F(BT &b) { return b.n; } ^ reduction.cpp:32:16: error: no matching function for call to 'F' T *n = ::F(*t); ^~~~~~~~ reduction.cpp:44:10: note: in instantiation of member function 'context::doit' requested here con2.doit(&d); ^ reduction.cpp:21:4: note: candidate template ignored: failed template argument deduction T* F(sugar &b) { return static_cast(b.n); } ^ reduction.cpp:23:4: note: candidate template ignored: failed template argument deduction T* F(B &b) { return b.n; } ^ reduction.cpp:25:4: note: candidate template ignored: failed template argument deduction T* F(BT &b) { return b.n; } ^ 10 diagnostics generated. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Oct 25 15:39:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 25 Oct 2010 15:39:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 8314] Incorrect code generated with prototypes and old-style function definitions. In-Reply-To: References: Message-ID: <20101025203937.706BC2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8314 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2010-10-25 15:39:36 CDT --- Fixed in Clang r117305. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 25 17:19:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 25 Oct 2010 17:19:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 8461] clang wrongly ontimizes stdcall functions calling cdecl ones (i386) In-Reply-To: References: Message-ID: <20101025221931.69B692A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8461 Dale Johannesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dalej at apple.com Resolution| |FIXED --- Comment #3 from Dale Johannesen 2010-10-25 17:19:31 CDT --- Should be fixed in 117322. Haven't tried your bigger test though. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 25 20:24:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 25 Oct 2010 20:24:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 8463] New: Bus error on Loop::getTripCount if getAnalysis is called twice Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8463 Summary: Bus error on Loop::getTripCount if getAnalysis is called twice Product: new-bugs Version: 2.8 Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: Trevor.W.Harmon at nasa.gov CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5666) --> (http://llvm.org/bugs/attachment.cgi?id=5666) Test case to reproduce crash; run on bitcode containing a loop The following sequence of events triggers a crash in an LLVM pass: 1. Call getAnalysis 2. Identify a Loop block 3. Call getAnalysis again 4. Call getTripCount on the Loop block If step 3 is omitted, the crash does not occur. The attached test case reproduces the problem. It is a drop-in replacement for the Hello example, so you should be able to overwrite your own Hello and run the pass as you normally would. Of course, the bitcode that you analyze must contain a loop, something as simple as: void foo() { for (int i = 0; i < 10; i++); } Note that the test case is a ModulePass because I could not reproduce the problem as a FunctionPass. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 25 23:59:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 25 Oct 2010 23:59:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 8457] clang++ emits hidden symbols instead of extern. In-Reply-To: References: Message-ID: <20101026045954.92FDA2A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8457 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |rjmccall at apple.com Resolution| |FIXED --- Comment #2 from John McCall 2010-10-25 23:59:54 CDT --- Fixed in r117351. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 26 00:16:10 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 26 Oct 2010 00:16:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 8464] New: False positives due to a coding style with invariants Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8464 Summary: False positives due to a coding style with invariants Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: alexei.svitkine at gmail.com CC: llvmbugs at cs.uiuc.edu Consider a function that writes to a buffer: void foo() { int buf[32]; int i = 0; if (a) { buf[i] = 1; i++; } if (b) { buf[i] = 42; i++; } if (c) { buf[i] = 42; i++; buf[i] = 100; i++; } if (d) { buf[i] = 5; i++; } } If this is given to the static analyzer presently, it will warn of a dead store for the last i++ increment. However, in the code above the warning is noise as far as the user is concerned. Yes, it is true that the last increment of i does not change the program behaviour, and thus can be removed. But removing this statement would break the invariant the author of the code has been following. The invariant, in this case is 'i is the index to the next element to write to in the buffer'. Such an invariant is useful to have - for example if you add a more code to the function, you can do so under the assumption that the invariant is true, without hunting down whoever was previously the last person to write to the buffer (especially if the function has complicated other logic all around the buffer writing - unlike this trivial example). There's other variants on this pattern - for example copying strings into a char buffer and incrementing by the length of the strings, or reading input. In all cases, warning on dead increments / stores in such cases is simply not helpful and just creates extra noise (essentially, false positives as far as the author of the code is concerned). In some cases, this may even be getting done by a macro, so there's no way to remove the i++ increment if you're using the macro. It should be possible for clang to detect such invariants automatically, since they are localized to a function, and avoid issuing analysis warnings in such a case. Detection can be pretty simple - before issuing the warning, do another pass over the code and try to detect if the same pattern occurs previously - to figure out if the variable in question is being modified to enforce some invariant in 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 Tue Oct 26 02:48:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 26 Oct 2010 02:48:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 8465] New: llvm-ld -link-as-library creates invalid/unreadable code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8465 Summary: llvm-ld -link-as-library creates invalid/unreadable code Product: new-bugs Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: martin.nowack at inf.tu-dresden.de CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5667) --> (http://llvm.org/bugs/attachment.cgi?id=5667) input file for llvm-ld Using llvm-ld to link input files as library produces an invalid bc file. This file can't be read again by any llvm tool (e.g. opt, llvm-ld, llvm-dis, ...). There is a stack overflow while reading the input file (even bugpoint crashes in that case). llvm-ld -link-as-library stl.bc -o ./tmp.bc Thanks for 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 Tue Oct 26 02:55:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 26 Oct 2010 02:55:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 8466] New: SimplifyLibCalls behaves host-dependent(eg. nearbyint) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8466 Summary: SimplifyLibCalls behaves host-dependent(eg. nearbyint) Product: libraries Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: geek4civic at gmail.com CC: llvmbugs at cs.uiuc.edu Quoted from test/Transforms/SimplifyLibCalls/floor.ll ; Source declare double @nearbyint(double) define float @test_nearbyint(float %C) { %D = fpext float %C to double %E = call double @nearbyint( double %D ) ; --> nearbyintf %F = fptrunc double %E to float ret float %F } ; Expected output define float @test_nearbyint(float %C) { %D = fpext float %C to double %nearbyintf = call float @nearbyintf(float %C) %E = fpext float %nearbyintf to double %F = fptrunc double %E to float ret float %F } With opt.exe built on Microsoft Visual Studio 10, this is not transformed. Its behavior depends on host's HAVE_NEARBYINTF. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 26 05:48:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 26 Oct 2010 05:48:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 7177] Case-sensitivity of included files In-Reply-To: References: Message-ID: <20101026104804.465092A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7177 Francois Pichet changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |pichet2000 at gmail.com Resolution| |FIXED --- Comment #3 from Francois Pichet 2010-10-26 05:48:03 CDT --- Duplicate of PR7953. Was fixed in r111866. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 26 10:39:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 26 Oct 2010 10:39:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 8467] New: Unnecessary relaxation Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8467 Summary: Unnecessary relaxation Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu In the following assembly, the last je is relaxed, but it doesn't need to be: je .LBB0_25 je .LBB0_11 .zero 125, 0x90 .LBB0_25: .zero 119, 0x90 .align 16, 0x90 .zero 7, 0x90 je .LBB0_25 In the first pass we don't relax the first jump as we think it is in range. The second jump is relaxed. The address of LBB0_25 is then 133. The last jump will be at address 263 and we relax it. In the next pass we notice that we have to relax the first jump and LBB0_25 goes to address 137. The last jump is still at the same address, but now a relaxation is not necessary. Relaxation is a hard problem, but I think it is possible to do a bit better by also estimating the maximum address a fragment can get to. This is low priority. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 26 10:59:06 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 26 Oct 2010 10:59:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 5798] Not great error when referring to a dependent base without this-> In-Reply-To: References: Message-ID: <20101026155906.147002A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5798 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from Douglas Gregor 2010-10-26 10:59:05 CDT --- Yes, it's a dupe. *** This bug has been marked as a duplicate of bug 4952 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 26 10:59:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 26 Oct 2010 10:59:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 8468] New: Cannot initialize array in copy constructor Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8468 Summary: Cannot initialize array in copy constructor 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 cannot compile the following code: #include class Test { public: Test(const Test& other); private: std::string fString[4]; }; Test::Test(const Test& other) : fString(other.fString) { } ============ array.cpp:11:33: error: array initializer must be an initializer list Test::Test(const Test& other) : fString(other.fString) ^ ... but g++ (4.4.x) compiles it. Is this clang 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 Oct 26 12:35:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 26 Oct 2010 12:35:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 8468] Cannot initialize array in copy constructor In-Reply-To: References: Message-ID: <20101026173505.5DA0C2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8468 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Douglas Gregor 2010-10-26 12:35:05 CDT --- This isn't valid C++ code. I'm amazed that GCC allows 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 Tue Oct 26 13:13:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 26 Oct 2010 13:13:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 8469] New: optimizer InstCombineCompares problem with optimizing vector ICmpInst Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8469 Summary: optimizer InstCombineCompares problem with optimizing vector ICmpInst Product: new-bugs Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: bixia.zheng at amd.com CC: llvmbugs at cs.uiuc.edu Here is a command line and error message; test case is attached. Problem also exists in trunk, though I am not using trunk here. >opt -O1 vectorIcmp.bc -o output.bc IC: Visiting: %cmp = icmp ult <4 x i32> %tmp11, ; <<4 x i1>> [#uses=1] Assertion failed: New->getType() == getType() && "replaceAllUses of value with n ew value of different type!", file ..\..\..\compiler\llvm\lib\VMCore\Value.cpp, line 317 The optimizer is trying to replace a vector of boolean with a simple boolean value as in code: Instruction *InstCombiner::visitICmpInst(ICmpInst &I) { ... case ICmpInst::ICMP_ULT: if (Op0Max.ult(Op1Min)) // A true if max(A) < min(B) return ReplaceInstUsesWith(I, ConstantInt::getTrue(I.getContext())); There are other similar problems in this routine as well. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Oct 26 14:09:56 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 26 Oct 2010 14:09:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 8470] New: Error including GCC's 4.4 tr1/type_traits Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8470 Summary: Error including GCC's 4.4 tr1/type_traits Product: clang Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: dontbugme at mailinator.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5670) --> (http://llvm.org/bugs/attachment.cgi?id=5670) Complete error output for clang++ A simple test case including tr1/type_traits fail to compile in clang++ while compiles fine with g++ 4.4 using the same compile options: ----------- /tmp$ cat test.cpp #include /tmp$ g++ -Wall -std=c++98 -c test.cpp /tmp$ clang++ -ferror-limit=2 -Wall -std=c++98 -c test.cpp In file included from test.cpp:2: In file included from /usr/include/c++/4.4/tr1/type_traits:46: /usr/include/c++/4.4/tr1_impl/type_traits:226:35: error: variadic templates are only allowed in C++0x template ^ /usr/include/c++/4.4/tr1_impl/type_traits:229:35: error: variadic templates are only allowed in C++0x template ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 3 errors generated. --------- I'm using Ubuntu 10.10. Complete error output (-ferror-limit=0) is attached. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Oct 26 14:28:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 26 Oct 2010 14:28:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 8470] Error including GCC's 4.4 tr1/type_traits In-Reply-To: References: Message-ID: <20101026192816.58A9C2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8470 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Douglas Gregor 2010-10-26 14:28:16 CDT --- Clang doesn't implement variadic templates. *** This bug has been marked as a duplicate of bug 5893 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 26 17:50:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 26 Oct 2010 17:50:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 8409] clang++ generates incorrect code for initializers of static members of class templates In-Reply-To: References: Message-ID: <20101026225038.E19E52A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8409 Fariborz Jahanian changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |fjahanian at apple.com Resolution| |FIXED --- Comment #1 from Fariborz Jahanian 2010-10-26 17:50:38 CDT --- Resolved in TOT: http://llvm.org/viewvc/llvm-project?view=rev&revision=117410 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 26 18:23:24 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 26 Oct 2010 18:23:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 8471] New: clang segfaults while optimizing a snippet of C code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8471 Summary: clang segfaults while optimizing a snippet of C code Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pipping at exherbo.org CC: llvmbugs at cs.uiuc.edu Depends on: 8336 I've tried to compile R with clang 2.9-trunk. While compiling src/nmath/toms708.c, clang segfaults. This happens with -O2 but not with -O1 or with gcc 4.4.5. I'm on amd64 linux 2.6.36. I hope I followed the bugpoint instructions correctly, leading me to this: $ bugpoint foo.bc -preverify -domtree -verify -lowersetjmp -globalopt -ipsccp -deadargelim -instcombine -simplifycfg -basiccg -prune-eh -inline -functionattrs -argpromotion -domtree -domfrontier -scalarrepl -simplify-libcalls -instcombine -lazy-value-info -jump-threading -correlated-propagation -simplifycfg -instcombine -tailcallelim -simplifycfg -reassociate -domtree -loops -loopsimplify -lcssa -loop-rotate -licm -lcssa -loop-unswitch -instcombine -scalar-evolution -loopsimplify -lcssa -iv-users -indvars -loop-deletion -loop-unroll -instcombine -memdep -gvn -memdep -memcpyopt -sccp -instcombine -lazy-value-info -jump-threading -correlated-propagation -domtree -memdep -dse -adce -simplifycfg -strip-dead-prototypes -print-used-types -deadtypeelim -globaldce -constmerge -preverify -domtree -verify [..] *** Attempting to perform final cleanups: Success! Emitted bitcode to 'bugpoint-reduced-simplified.bc' *** You can reproduce the problem with: opt bugpoint-reduced-simplified.bc -inline -scalarrepl -loop-rotate -indvars -loop-unroll -simplifycfg -verify $ opt -std-compile-opts -debug-pass=Arguments foo.bc -disable-output Pass Arguments: -preverify -domtree -verify -lowersetjmp -globalopt -ipsccp -deadargelim -instcombine -simplifycfg -basiccg -prune-eh -inline -functionattrs -argpromotion -domtree -domfrontier -scalarrepl -simplify-libcalls -instcombine -lazy-value-info -jump-threading -correlated-propagation -simplifycfg -instcombine -tailcallelim -simplifycfg -reassociate -domtree -loops -loopsimplify -lcssa -loop-rotate -licm -lcssa -loop-unswitch -instcombine -scalar-evolution -loopsimplify -lcssa -iv-users -indvars -loop-deletion -loop-unroll -instcombine -memdep -gvn -memdep -memcpyopt -sccp -instcombine -lazy-value-info -jump-threading -correlated-propagation -domtree -memdep -dse -adce -simplifycfg -strip-dead-prototypes -print-used-types -deadtypeelim -globaldce -constmerge -preverify -domtree -verify 0 libLLVM-2.9svn.so 0x00007f3fc2b6db2f 1 libLLVM-2.9svn.so 0x00007f3fc2b6e119 2 libpthread.so.0 0x00007f3fc20e2ca0 3 libc.so.6 0x00007f3fc1455638 4 libc.so.6 0x00007f3fc1453982 memmove + 386 5 libLLVM-2.9svn.so 0x00007f3fc27fafbf llvm::LoopBase::getExitingBlocks(llvm::SmallVectorImpl&) const + 143 6 libLLVM-2.9svn.so 0x00007f3fc284fdfa llvm::ScalarEvolution::ComputeBackedgeTakenCount(llvm::Loop const*) + 74 7 libLLVM-2.9svn.so 0x00007f3fc284f8df llvm::ScalarEvolution::getBackedgeTakenInfo(llvm::Loop const*) + 95 8 libLLVM-2.9svn.so 0x00007f3fc2841c06 llvm::ScalarEvolution::getUnsignedRange(llvm::SCEV const*) + 3334 9 libLLVM-2.9svn.so 0x00007f3fc2841ca9 llvm::ScalarEvolution::getUnsignedRange(llvm::SCEV const*) + 3497 10 libLLVM-2.9svn.so 0x00007f3fc2858861 llvm::ScalarEvolution::isKnownPredicateWithRanges(llvm::CmpInst::Predicate, llvm::SCEV const*, llvm::SCEV const*) + 2209 11 libLLVM-2.9svn.so 0x00007f3fc284a0ea llvm::ScalarEvolution::isKnownPredicate(llvm::CmpInst::Predicate, llvm::SCEV const*, llvm::SCEV const*) + 330 12 libLLVM-2.9svn.so 0x00007f3fc2f6578a 13 libLLVM-2.9svn.so 0x00007f3fc280500f llvm::LPPassManager::runOnFunction(llvm::Function&) + 863 14 libLLVM-2.9svn.so 0x00007f3fc2c2228b llvm::FPPassManager::runOnFunction(llvm::Function&) + 331 15 libLLVM-2.9svn.so 0x00007f3fc2ca0fe1 16 libLLVM-2.9svn.so 0x00007f3fc2c226b8 llvm::MPPassManager::runOnModule(llvm::Module&) + 280 17 libLLVM-2.9svn.so 0x00007f3fc2c22c52 llvm::PassManagerImpl::run(llvm::Module&) + 210 18 libLLVM-2.9svn.so 0x00007f3fc2c231ad llvm::PassManager::run(llvm::Module&) + 13 19 opt 0x000000000040fb17 main + 4983 20 libc.so.6 0x00007f3fc13f3b6d __libc_start_main + 253 21 opt 0x000000000040a069 Stack dump: 0. Program arguments: opt -std-compile-opts -debug-pass=Arguments foo.bc -disable-output 1. Running pass 'CallGraph Pass Manager' on module 'foo.bc'. 2. Running pass 'Loop Pass Manager' on function '@bratio' 3. Running pass 'Canonicalize Induction Variables' on basic block '%for.cond.i' Segmentation fault $ -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Oct 26 20:37:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 26 Oct 2010 20:37:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 8472] New: dragonegg causes failures in fortran blas results Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8472 Summary: dragonegg causes failures in fortran blas results Product: dragonegg Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: New Bugs AssignedTo: baldrick at free.fr ReportedBy: jpswensen at gmail.com CC: llvmbugs at cs.uiuc.edu The following simple test program is part of the Octave configure check and fails when trying to use dragonegg to compile using dragonegg and GCC 4.5.1 as provided by Ubuntu 10.10. program main complex cdotu,a(1),b(1),w external cdotu a(1) = cmplx(1e0,1e0) b(1) = cmplx(1e0,2e0) w = cdotu(1,a,1,b,1) print *, w, a(1)*b(1) if (w .ne. a(1)*b(1)) stop 1 end $ gfortran-4.5 -o conftest -O0 -mieee-fp conftest.f -lblas -lm $ ./conftest (-1.00000, 3.0000) (-1.00000, 3.0000) $ $ gfortran-4.5 -fplugin=/usr/lib/gcc/i686-linux-gnu/4.5/plugin/dragonegg.so -o conftest -O0 conftest.f -lblas -lm $ ./conftest (NaN, NaN) (-1.00000, 3.0000) STOP 1 $ I will try the svn tip to compare and report back. As you can see the -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 27 00:56:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 00:56:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 8473] New: Crash with vla and indirect jump Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8473 Summary: Crash with vla and indirect jump Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: abramobagnara at tin.it CC: llvmbugs at cs.uiuc.edu $ cat s.c void f(int n) { goto *&&a; { int x[n]; a: x[0]; } } $ clang -w -S s.c Instruction does not dominate all uses! %tmp1 = bitcast i8* %vla to i32* %arrayidx = getelementptr inbounds i32* %tmp1, i32 0 Instruction does not dominate all uses! %arrayidx = getelementptr inbounds i32* %tmp1, i32 0 %tmp2 = load i32* %arrayidx Broken module found, compilation aborted! 0 clang 0x0997a6cf 1 clang 0x0997a45c 2 0x00a93400 __kernel_sigreturn + 0 3 libc.so.6 0x0013da82 abort + 386 4 clang 0x098cf019 5 clang 0x098ced0e 6 clang 0x098a545d llvm::FPPassManager::runOnFunction(llvm::Function&) + 313 7 clang 0x098a5190 llvm::FunctionPassManagerImpl::run(llvm::Function&) + 90 8 clang 0x098a4e32 llvm::FunctionPassManager::run(llvm::Function&) + 176 9 clang 0x08b424e5 10 clang 0x08b42623 clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&, clang::TargetOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 70 11 clang 0x08b3e889 12 clang 0x08c955cb clang::ParseAST(clang::Sema&, bool) + 599 13 clang 0x08a23b12 clang::ASTFrontendAction::ExecuteAction() + 254 14 clang 0x08b3f69d clang::CodeGenAction::ExecuteAction() + 913 15 clang 0x08a23766 clang::FrontendAction::Execute() + 316 16 clang 0x08a0f21c clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 780 17 clang 0x089c3942 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 787 18 clang 0x089b76df cc1_main(char const**, char const**, char const*, void*) + 976 19 clang 0x089bfaa9 main + 521 20 libc.so.6 0x00126bd6 __libc_start_main + 230 21 clang 0x089b6de1 Stack dump: 0. Program arguments: /home/abramo/llvm/Debug+Asserts/bin/clang -cc1 -triple i386-pc-linux-gnu -S -disable-free -main-file-name s.c -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.20.1 -resource-dir /home/abramo/llvm/Debug+Asserts/lib/clang/2.9 -ferror-limit 19 -fmessage-length 80 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o s.s -x c s.c 1. parser at end of file 2. Per-function optimization 3. Running pass 'Module Verifier' on function '@f' clang: error: clang frontend command failed due to signal 6 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Oct 27 05:55:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 05:55:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 8474] New: #pragma weak recursion crashes clang Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8474 Summary: #pragma weak recursion crashes clang Product: clang Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: kwm at FreeBSD.org CC: llvmbugs at cs.uiuc.edu > cat sha2.c void a(int b) { #pragma weak c = a c(b); } > clang sha2.c Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple i386-undermydesk-freebsd9.0 -S -disable-free -main-file-name sha2.c -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu i486 -resource-dir /usr/lib/clang/2.8 -ferror-limit 19 -fmessage-length 80 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-Upr8xa.s -x c sha2.c 1. sha2.c:4:6: current parser token ')' 2. sha2.c:2:1: parsing function body 'a' 3. sha2.c:2:1: in compound statement ('{}') clang: error: clang frontend command failed due to signal 11 (use -v to see invocation) > clang -v clang version 2.9 (trunk 117360) Target: i386-unknown-freebsd9.0 Thread model: posix -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Oct 27 08:44:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 08:44:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 8475] New: LLVM does not build anymore on MacOSX: camlasm seems to be invalid Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8475 Summary: LLVM does not build anymore on MacOSX: camlasm seems to be invalid Product: tools Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: llvm-as AssignedTo: unassignedbugs at nondot.org ReportedBy: ich at az2000.de CC: llvmbugs at cs.uiuc.edu llvm[2]: ======= Finished Linking Debug+Asserts Unit test VMCore llvm[2]: Compiling ScalarEvolutionTest.cpp for Debug+Asserts build llvm[2]: Linking Debug+Asserts unit test Analysis llvm[2]: ======= Finished Linking Debug+Asserts Unit test Analysis make[4]: Nothing to be done for `all'. make[4]: Nothing to be done for `all'. llvm[3]: Compiling optimized llvm.ml for Debug+Asserts build /var/folders/N3/N3BdX-6pEUCoORwmOdC4N++++TI/-Tmp-/camlasma191c4.s:680:suffix or operands invalid for `call' /var/folders/N3/N3BdX-6pEUCoORwmOdC4N++++TI/-Tmp-/camlasma191c4.s:684:suffix or operands invalid for `push' /var/folders/N3/N3BdX-6pEUCoORwmOdC4N++++TI/-Tmp-/camlasma191c4.s:685:32-bit absolute addressing is not supported for x86-64 /var/folders/N3/N3BdX-6pEUCoORwmOdC4N++++TI/-Tmp-/camlasma191c4.s:685:cannot do signed 4 byte relocation /var/folders/N3/N3BdX-6pEUCoORwmOdC4N++++TI/-Tmp-/camlasma191c4.s:709:suffix or operands invalid for `push' /var/folders/N3/N3BdX-6pEUCoORwmOdC4N++++TI/-Tmp-/camlasma191c4.s:710:32-bit absolute addressing is not supported for x86-64 /var/folders/N3/N3BdX-6pEUCoORwmOdC4N++++TI/-Tmp-/camlasma191c4.s:710:cannot do signed 4 byte relocation ... /var/folders/N3/N3BdX-6pEUCoORwmOdC4N++++TI/-Tmp-/camlasm5cdac7.s:5214:Unknown pseudo-op: .indirect_symbol /var/folders/N3/N3BdX-6pEUCoORwmOdC4N++++TI/-Tmp-/camlasm5cdac7.s:5214:Rest of line ignored. 1st junk character valued 95 (_). /var/folders/N3/N3BdX-6pEUCoORwmOdC4N++++TI/-Tmp-/camlasm5cdac7.s:5216:unknown section type: symbol_stubs /var/folders/N3/N3BdX-6pEUCoORwmOdC4N++++TI/-Tmp-/camlasm5cdac7.s:5216:Rest of line ignored. 1st junk character valued 115 (s). File "/Users/az/Programmierung/CppIDE/llvm-src/bindings/ocaml/llvm/Debug+Asserts/llvm.ml", line 1, characters 0-1: Error: Assembler error, input left in file /var/folders/N3/N3BdX-6pEUCoORwmOdC4N++++TI/-Tmp-/camlasm5cdac7.s make[3]: *** [/Users/az/Programmierung/CppIDE/llvm-src/bindings/ocaml/llvm/Debug+Asserts/llvm.cmx] Error 2 make[2]: *** [all] Error 1 make[1]: *** [ocaml/.makeall] Error 2 make: *** [all] Error 1 az at 64-019 1256 (llvm-src) % -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 27 10:25:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 10:25:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 8477] New: "overloaded operator '[]' is ambiguous" error, probably false Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8477 Summary: "overloaded operator '[]' is ambiguous" error, probably false Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: d235j.1 at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The attached reduced testcase triggers this error. As far as I can tell, this should not happen. GCC and VC++ don't trigger it. Error: tmptst1.cpp:11:12: error: use of overloaded operator '[]' is ambiguous return foo[0] == 0; ~~~^~ tmptst1.cpp:11:12: note: built-in candidate operator[](const char *, long) tmptst1.cpp:11:12: note: built-in candidate operator[](long, const char *) tmptst1.cpp:11:12: note: built-in candidate operator[](const restrict char *, long) tmptst1.cpp:11:12: note: built-in candidate operator[](long, const restrict char *) tmptst1.cpp:11:12: note: built-in candidate operator[](const volatile char *, long) tmptst1.cpp:11:12: note: built-in candidate operator[](long, const volatile char *) tmptst1.cpp:11:12: note: built-in candidate operator[](const volatile restrict char *, long) tmptst1.cpp:11:12: note: built-in candidate operator[](long, const volatile restrict char *) 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 Wed Oct 27 11:14:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 11:14:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 8479] New: clang evaluates visibility of default parameters at the call site instead of at parameter definition site Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8479 Summary: clang evaluates visibility of default parameters at the call site instead of at parameter definition site Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nicolasweber at gmx.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com #include class C { public: explicit C(int x) {} private: friend class std::vector; C(); }; void f() { std::vector vec; vec.resize(10); } $ g++ -c private-ctor.cc # no errors $ clang++ -c private-ctor.cc In file included from private-ctor.cc:1: In file included from /usr/include/c++/4.4/vector:64: /usr/include/c++/4.4/bits/stl_vector.h:552:53: error: calling a private constructor of class 'C' resize(size_type __new_size, value_type __x = value_type()) ^ private-ctor.cc:14:3: note: in instantiation of default function argument expression for 'resize >' required here vec.resize(10); ^ private-ctor.cc:9:3: note: declared private here 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 Wed Oct 27 12:05:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 12:05:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 8480] New: clang crash during bootstrap Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8480 Summary: clang crash during bootstrap 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 is crashing on the code: ------------------------------------------------- template struct pair { _T1 first; _T2 second; pair() : first(), second() { } }; typedef pair PerInstNLInfo; typedef pair BucketT; void InsertIntoBucket(const PerInstNLInfo &Value) { InsertIntoBucket(PerInstNLInfo()); } ---------------------------------------------------------- clang -cc1 -triple x86_64-unknown-linux-gnu -emit-llvm MemoryDependenceAnalysis.ii CGExpr.cpp:605: llvm::Value* clang::CodeGen::CodeGenFunction::EmitToMemory(llvm::Value*, clang::QualType): Assertion `Value->getType()->isIntegerTy(1) && "value rep of bool not i1"' 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 Oct 27 12:14:18 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 12:14:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 8481] New: TemplateDeductionResult triggers an assertion at line 464 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8481 Summary: TemplateDeductionResult triggers an assertion at line 464 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: necro351 at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5675) --> (http://llvm.org/bugs/attachment.cgi?id=5675) stdout and stderr from running the described command When trying to compile a hello-world program with the gcc 4.4 libraries and headers, this error arises while trying to compile headers included by iostream in /usr/include/c++/4.4.0/bits. The full stderr and stdout of the build are included below. This was the hello-world program: #include using namespace std; int main() { cout << "Hello World!" << endl; return 0; } This was the command: Debug+Asserts/bin/clang++ -vc hello.cpp 2>stderr 1>stdout This is uname -a: Linux vm1.fsl.cs.sunysb.edu 2.6.18-194.3.1.el5 #1 SMP Thu May 13 13:08:30 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux It was on Centos 5 using the gcc44 preview package, which was installed using yum from the standard repos. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 27 12:14:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 12:14:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 8480] clang crash during bootstrap In-Reply-To: References: Message-ID: <20101027171408.084DE2A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8480 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Rafael ?vila de Esp?ndola 2010-10-27 12:14:07 CDT --- Fixed by reverting r117403. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 27 13:41:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 13:41:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 8482] New: arm_neon.h contains wrong definition of vshl Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8482 Summary: arm_neon.h contains wrong definition of vshl Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Headers AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rengolin at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5676) --> (http://llvm.org/bugs/attachment.cgi?id=5676) example In Clang's arm_neon.h, the definitions of vshl_u* are wrong. According to ARM's document [1], the shift amount parameter is *always* signed, even for unsigned values, since a negative shift means right shift. I believe the header should be changed to conform to ARM's specification. [1] http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0491a/BABDFGBJ.html Compile example: $ clang -ccc-host-triple armv7a-none-eabi -ccc-gcc-name arm-none-eabi-gcc -mfloat-abi=hard -w -emit-llvm -S vshl.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 Wed Oct 27 13:42:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 13:42:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 8483] New: NEON VPADDL / VPADAL code-gen bug Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8483 Summary: NEON VPADDL / VPADAL code-gen bug Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: rengolin at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5677) --> (http://llvm.org/bugs/attachment.cgi?id=5677) VPADDL example LLVM explodes when exporting VPADDL and VPADAL: 0. Program arguments: /work/bin/clang -cc1 -triple armv7-none-eabi -emit-llvm -disable-free -main-file-name vpadal.c -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-abi apcs-gnu -target-cpu cortex-a8 -mfloat-abi hard -target-linker-version 2.17.50.0.6 -v -resource-dir /work/lib/clang/2.9 -w -ferror-limit 19 -fmessage-length 209 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o vpadal.s -x c vpadal.c 1. parser at end of file 2. Per-file LLVM IR generation 3. /work/lib/clang/2.9/include/arm_neon.h:1520:16: Generating code for declaration 'vpaddl_s8' 4. /work/lib/clang/2.9/include/arm_neon.h:1520:38: LLVM IR generation of compound statement ('{}') clang: error: clang frontend command failed due to signal 11 (use -v to see invocation) Compile example: $ clang -ccc-host-triple armv7a-none-eabi -ccc-gcc-name arm-none-eabi-gcc -mfloat-abi=hard -w -emit-llvm -S -v vpaddl.c $ clang -ccc-host-triple armv7a-none-eabi -ccc-gcc-name arm-none-eabi-gcc -mfloat-abi=hard -w -emit-llvm -S -v vpadal.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 Wed Oct 27 13:45:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 13:45:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 8484] New: NEON compare absolute not being lowered Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8484 Summary: NEON compare absolute not being lowered Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: rengolin at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5679) --> (http://llvm.org/bugs/attachment.cgi?id=5679) example Compare absolute intrinsics, as defined in ARMInstrNEON.td (and lowered by Clang), is not being converted to a NEON instruction in the back-end, and silently becoming a function call to the LLVM intrinsic (ex. "llvm.arm.neon.vacged.v2i32") Compile example: $ clang -ccc-host-triple armv7a-none-eabi -ccc-gcc-name arm-none-eabi-gcc -mfloat-abi=hard -w -S abscomp.c -o - | grep llvm.arm.neon Should show instructions, show calls to LLVM intrinsic. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 27 13:47:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 13:47:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 7212] Error while compiling llvm-gcc for ARM In-Reply-To: References: Message-ID: <20101027184715.167052A6C132@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7212 Renato Golin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #12 from Renato Golin 2010-10-27 13:47:13 CDT --- We managed to compile LLVM-GCC to ARM by compiling first only GCC, then newlib, than GCC again with newlib. There were some patches that needed to be applied, but that's not the case any more. cheers, --renato -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 27 14:11:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 14:11:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 8485] New: error: unknown target CPU 'cortex-m3' Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8485 Summary: error: unknown target CPU 'cortex-m3' 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: mail+llvm at t-kindler.de CC: llvmbugs at cs.uiuc.edu Hi! I just wanted to give clang/llvm a try to compile for a small embedded STM32 ARM Cortex-M3 target. I'm working from a fresh cygwin install on Windows 7. I did everything as listed on the clang getting started page: $ svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm $ cd llvm/tools $ svn co http://llvm.org/svn/llvm-project/cfe/trunk clang $ cd .. $ ./configure --enable-optimized --disable-assertions $ time make -j4 real 16m55.481s user 40m12.278s sys 7m13.942s $ make install $ clang --version clang version 2.9 (trunk 117454) Target: i386-pc-cygwin Thread model: posix Everything's fine so far. I've tried a plain vanilla hello-world: #incude int main() { printf("Hello World!\n"); return 1; } Compiling for armv7 (== cortex-a8 ?) seems to work: $ clang -ccc-host-triple armv7-none-eabi -S -o - foo.c clang: warning: unknown platform, assuming -mfloat-abi=soft .syntax unified .cpu cortex-a8 [...] main: sub sp, sp, #8 str lr, [sp, #4] str r11, [sp] mov r11, sp [...] But compiling for arm7m (the STM32 is a Cortex-M3) fails: $ clang -ccc-host-triple armv7m-none-eabi -S -o - foo.c clang: warning: unknown platform, assuming -mfloat-abi=soft error: unknown target CPU 'cortex-m3' What did I do wrong? best regards, Thomas Kindler -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 27 14:22:35 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 14:22:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 8486] New: -Wformat and -Wformat-security should be independent Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8486 Summary: -Wformat and -Wformat-security should be independent Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: matthewbg at google.com CC: llvmbugs at cs.uiuc.edu Passing -Wno-format-security to clang also turns off -Wformat, which is undesirable. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 27 15:36:56 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 15:36:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 7893] C++ codegen crash with statement expression and non-trivial copy constructor In-Reply-To: References: Message-ID: <20101027203656.C78192A6C139@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7893 Fariborz Jahanian changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |fjahanian at apple.com Resolution| |FIXED --- Comment #1 from Fariborz Jahanian 2010-10-27 15:36:56 CDT --- Fixed in TOT: http://llvm.org/viewvc/llvm-project?view=rev&revision=117324 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 27 15:57:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 15:57:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 5767] Cannot parse valid C-gnu89 code (array decay problem?) In-Reply-To: References: Message-ID: <20101027205714.AC0B82A6C139@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5767 Fariborz Jahanian changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |fjahanian at apple.com Resolution| |FIXED --- Comment #3 from Fariborz Jahanian 2010-10-27 15:57:14 CDT --- This has been fixed 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 Wed Oct 27 16:09:18 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 16:09:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 8487] New: Switch statement miscompiled on 64-bit PowerPC Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8487 Summary: Switch statement miscompiled on 64-bit PowerPC Product: new-bugs Version: trunk Platform: Macintosh OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: nwhitehorn at freebsd.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5680) --> (http://llvm.org/bugs/attachment.cgi?id=5680) C source -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Oct 27 16:35:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 16:35:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 8488] New: Clang should warn on use of a local variable in its own initializer Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8488 Summary: Clang should warn on use of a local variable in its own initializer Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: matthewbg at google.com CC: llvmbugs at cs.uiuc.edu -Wuninitialized should complain about this: void f() { int i = i; } A more realistic example of how this could happen: void f(int* encoded_result) { // Note the typo below, it should be // bool encode_result = (encoded_result != NULL); bool encode_result = (encode_result != NULL); if (encode_result) *encoded_result = 42; } -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 27 16:44:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 16:44:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 8489] New: Template argument name missing in diagnostic Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8489 Summary: Template argument name missing in diagnostic Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: matthewbg at google.com CC: llvmbugs at cs.uiuc.edu $ cat template_error_with_no_name.cc template class C { template void F() {} }; void f() { C c; c.F(); } $ clang -fsyntax-only template_error_with_no_name.cc template_error_with_no_name.cc:9:5: error: no matching member function for call to 'F' c.F(); ~~^ template_error_with_no_name.cc:4:8: note: candidate template ignored: couldn't infer template argument '' void F() {} ^ 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 Wed Oct 27 18:05:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 18:05:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 8490] New: clang crashes while optimizing a snippet of C code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8490 Summary: clang crashes while optimizing a snippet of C code Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pipping at exherbo.org CC: nicholas at mxc.ca, llvmbugs at cs.uiuc.edu Depends on: 8336,8471 I've tried to compile gimp with clang 2.9-trunk. While compiling app/gegl/gimpoperationcolorbalance.c, clang crashes. This happens with -O1 but not with -O0 or with gcc 4.4.5. I'm on amd64 linux 2.6.36. *** Attempting to perform final cleanups: opt: Instructions.cpp:1624: void llvm::BinaryOperator::init(llvm::Instruction::BinaryOps): Assertion `getType()->isIntOrIntVectorTy() && "Tried to create an integer operation on a non-integer type!"' failed. 0 libLLVM-2.9svn.so 0x00007f631accde4f 1 libLLVM-2.9svn.so 0x00007f631acce439 2 libpthread.so.0 0x00007f631a237ca0 3 libc.so.6 0x00007f631955bea5 gsignal + 53 4 libc.so.6 0x00007f631955d13f abort + 383 5 libc.so.6 0x00007f6319555061 __assert_fail + 241 6 libLLVM-2.9svn.so 0x00007f631ad640ff llvm::BinaryOperator::init(llvm::Instruction::BinaryOps) + 639 7 libLLVM-2.9svn.so 0x00007f631ad652e5 llvm::BinaryOperator::CreateNeg(llvm::Value*, llvm::Twine const&, llvm::Instruction*) + 309 8 libLLVM-2.9svn.so 0x00007f631ab5e377 9 libLLVM-2.9svn.so 0x00007f631ab7959e 10 libLLVM-2.9svn.so 0x00007f631ab7a05f 11 libLLVM-2.9svn.so 0x00007f631ad825ab llvm::FPPassManager::runOnFunction(llvm::Function&) + 331 12 libLLVM-2.9svn.so 0x00007f631ad8288b llvm::FPPassManager::runOnModule(llvm::Module&) + 75 13 libLLVM-2.9svn.so 0x00007f631ad829d8 llvm::MPPassManager::runOnModule(llvm::Module&) + 280 14 libLLVM-2.9svn.so 0x00007f631ad82f72 llvm::PassManagerImpl::run(llvm::Module&) + 210 15 libLLVM-2.9svn.so 0x00007f631ad834cd llvm::PassManager::run(llvm::Module&) + 13 16 opt 0x000000000040fb17 main + 4983 17 libc.so.6 0x00007f6319548b6d __libc_start_main + 253 18 opt 0x000000000040a069 Stack dump: 0. Program arguments: /usr/bin/opt -o bugpoint-output.bc -instcombine bugpoint-input.bc 1. Running pass 'Function Pass Manager' on module 'bugpoint-input.bc'. 2. Running pass 'Combine redundant instructions' on function '@gimp_operation_color_balance_map' Crashed with signal #6 Dumped core Emitted bitcode to 'bugpoint-reduced-simplified.bc' *** You can reproduce the problem with: opt bugpoint-reduced-simplified.bc -instcombine -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 27 18:34:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 18:34:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 8491] New: llvm.x86.sse2.cvttsd2si is improperly assembled Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8491 Summary: llvm.x86.sse2.cvttsd2si is improperly assembled Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: alexmac at adobe.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5683) --> (http://llvm.org/bugs/attachment.cgi?id=5683) Broken testcase Looking at the asm produced by the attached testcase it seems to be compiled to cvttss2si instead of cvttsd2si. The supplied patch seems correct to me (and fixes my testcase), but I'm no expert when it comes to these intrinsics. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 27 18:51:06 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 18:51:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 8490] clang crashes while optimizing a snippet of C code In-Reply-To: References: Message-ID: <20101027235106.33BC52A6C14D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8490 Dale Johannesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dalej at apple.com Resolution| |FIXED --- Comment #2 from Dale Johannesen 2010-10-27 18:51:05 CDT --- Fixed in 117510. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 27 19:36:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 27 Oct 2010 19:36:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 8491] llvm.x86.sse2.cvttsd2si is improperly assembled In-Reply-To: References: Message-ID: <20101028003633.6E5AB2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8491 Dale Johannesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dalej at apple.com Resolution| |FIXED --- Comment #2 from Dale Johannesen 2010-10-27 19:36:33 CDT --- I agree, patch committed as 117514 (along with necessary testcase changes). Thanks. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Oct 28 01:56:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 28 Oct 2010 01:56:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 8434] [patch] Fix for the linking of shared library libLLVM-X.X.so on FreeBSD In-Reply-To: References: Message-ID: <20101028065647.C68D22A6C135@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8434 NAKAMURA Takumi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from NAKAMURA Takumi 2010-10-28 01:56:47 CDT --- Fixed in r117528 together with OpenBSD, thank you! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Oct 28 03:28:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 28 Oct 2010 03:28:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 8492] New: clang does not respect 'visibility'='default' attribute for class members Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8492 Summary: clang does not respect 'visibility'='default' attribute for class members Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: slyfox at inbox.ru CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5685) --> (http://llvm.org/bugs/attachment.cgi?id=5685) clang++-visibility-bug.tar.gz - the whole testcase Let's consider the following shared c++ library: //===--- foo.hh struct C { void hidden_foo(void); // allowed to be used only in libfoo.so internally void visible_bar(void) __attribute__ ((visibility("default"))); }; //===--- foo.cc #include "foo.hh" void C::hidden_foo(void) { } void C::visible_bar(void) { hidden_foo(); } I try to build in with one externally visible symbol: 'C::visible_bar' so set default visibility. Use case is a sample program: //===--- main cc #include "foo.hh" int main() { C c; c.visible_bar(); // should link //c.hidden_foo(); // should fail to link return 0; } $ clang++ -O2 -fPIC -fvisibility=hidden foo.cc -shared -o libfoo.so $ clang++ -O2 -fPIC -fvisibility=hidden main.cc -L. -lfoo -o prog /tmp/cc-xArWX9.o: In function `main': main.cc:(.text+0xd): undefined reference to `C::visible_bar()' collect2: ld returned 1 exit status clang: error: linker (via gcc) command failed with exit code 1 (use -v to see invocation) g++ handles this fine. I'll attach tarball with source files and script, which builds shared lib and a 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 Thu Oct 28 03:54:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 28 Oct 2010 03:54:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 8473] Crash with vla and indirect jump In-Reply-To: References: Message-ID: <20101028085417.D04F72A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8473 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from John McCall 2010-10-28 03:54:17 CDT --- Oh, I see. It *is* caught by JumpDiagnostics, but since that's only a warning, it doesn't halt compilation. Turned into a hard error in r117539. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 28 08:08:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 28 Oct 2010 08:08:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 8494] New: segmentation faults in lli Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8494 Summary: segmentation faults in lli 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: iisaev at ispras.ru CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5687) --> (http://llvm.org/bugs/attachment.cgi?id=5687) exploit input user at machine:/space/iisaev/avalanche5/branches/distributed-avalanche$ gdb --args llvm-repos/inst/bin/lli ~/branch1_exploit_36_0 GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu"... (gdb) run Starting program: /space/iisaev/avalanche5/branches/distributed-avalanche/llvm-repos/inst/bin/lli /home/iisaev/branch1_exploit_36_0 [Thread debugging using libthread_db enabled] [New Thread 0xb7c766d0 (LWP 27919)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb7c766d0 (LWP 27919)] 0x085279d0 in llvm::Type::isPointerTy (this=0x0) at /space/iisaev/avalanche5/branches/distributed-avalanche/llvm-repos/include/llvm/Type.h:254 254 bool isPointerTy() const { return ID == PointerTyID; } (gdb) bt #0 0x085279d0 in llvm::Type::isPointerTy (this=0x0) at /space/iisaev/avalanche5/branches/distributed-avalanche/llvm-repos/include/llvm/Type.h:254 #1 0x08526b61 in llvm::BitcodeReader::ParseModule (this=0x9909e70) at BitcodeReader.cpp:1471 #2 0x08527660 in llvm::BitcodeReader::ParseBitcodeInto (this=0x9909e70, M=0x990a380) at BitcodeReader.cpp:1590 #3 0x0852776b in llvm::getLazyBitcodeModule (Buffer=0x990a210, Context=@0x99011f0, ErrMsg=0xbf958844) at BitcodeReader.cpp:2620 #4 0x08514969 in main (argc=2, argv=0xbf958924, envp=0xbf958930) at lli.cpp:142 (gdb) p this $1 = (const llvm::Type * const) 0x0 (gdb) up #1 0x08526b61 in llvm::BitcodeReader::ParseModule (this=0x9909e70) at BitcodeReader.cpp:1471 1471 if (!Ty->isPointerTy()) (gdb) p Ty $2 = (const class llvm::Type *) 0x0 (gdb) list 1466 // alignment, section, visibility, gc] 1467 case bitc::MODULE_CODE_FUNCTION: { 1468 if (Record.size() < 8) 1469 return Error("Invalid MODULE_CODE_FUNCTION record"); 1470 const Type *Ty = getTypeByID(Record[0]); 1471 if (!Ty->isPointerTy()) 1472 return Error("Function not a pointer type!"); 1473 const FunctionType *FTy = 1474 dyn_cast(cast(Ty)->getElementType()); 1475 if (!FTy) Ty is NULL and is dereferenced at BitcodeReader.cpp:1471 Another crash: iisaev at aether:/space/iisaev/avalanche5/branches/distributed-avalanche$ gdb --args llvm-repos/inst/bin/lli exploit_33_0 GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu"... (gdb) run Starting program: /space/iisaev/avalanche5/branches/distributed-avalanche/llvm-repos/inst/bin/lli exploit_33_0 [Thread debugging using libthread_db enabled] [New Thread 0xb7cd86d0 (LWP 27926)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb7cd86d0 (LWP 27926)] 0x085350aa in llvm::BitstreamCursor::Read (this=0xa4a2304, NumBits=1) at /space/iisaev/avalanche5/branches/distributed-avalanche/llvm-repos/include/llvm/Bitcode/BitstreamReader.h:284 284 (NextChar[2] << 16) | (NextChar[3] << 24); (gdb) bt #0 0x085350aa in llvm::BitstreamCursor::Read (this=0xa4a2304, NumBits=1) at /space/iisaev/avalanche5/branches/distributed-avalanche/llvm-repos/include/llvm/Bitcode/BitstreamReader.h:284 #1 0x08535289 in llvm::BitstreamCursor::ReadCode (this=0xa4a2304) at /space/iisaev/avalanche5/branches/distributed-avalanche/llvm-repos/include/llvm/Bitcode/BitstreamReader.h:353 #2 0x08525cc2 in llvm::BitcodeReader::ParseModule (this=0xa4a22d8) at BitcodeReader.cpp:1282 #3 0x08527660 in llvm::BitcodeReader::ParseBitcodeInto (this=0xa4a22d8, M=0xa4a3370) at BitcodeReader.cpp:1590 #4 0x0852776b in llvm::getLazyBitcodeModule (Buffer=0xa4a3210, Context=@0xa49a1f0, ErrMsg=0xbfab91b4) at BitcodeReader.cpp:2620 #5 0x08514969 in main (argc=2, argv=0xbfab9294, envp=0xbfab92a0) at lli.cpp:142 (gdb) list 279 280 unsigned R = CurWord; 281 282 // Read the next word from the stream. 283 CurWord = (NextChar[0] << 0) | (NextChar[1] << 8) | 284 (NextChar[2] << 16) | (NextChar[3] << 24); 285 NextChar += 4; 286 287 // Extract NumBits-BitsInCurWord from what we just read. 288 unsigned BitsLeft = NumBits-BitsInCurWord; (gdb) p NextChar $1 = (const unsigned char *) 0x5da333c
(gdb) p NextChar[2] Cannot access memory at address 0x5da333e -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 28 09:02:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 28 Oct 2010 09:02:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 8495] New: [frontend] clang++ crashes Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8495 Summary: [frontend] clang++ crashes 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 Depends on: 8336 Blocks: 8471,8490 While compiling esctrn.cpp from icu with clang++ 2.9-trunk, I got a segfault (this worked with 2.8 iirc). Here's the error: pipping at bogus ~/tmp $ clang++ -D_REENTRANT -I. -I../common -DU_I18N_IMPLEMENTATION -march=core2 -pipe -O2 -W -Wall -ansi -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -fvisibility=hidden -c -DPIC -fPIC esctrn.ii clang: warning: argument unused during compilation: '-D _REENTRANT' clang: warning: argument unused during compilation: '-I .' clang: warning: argument unused during compilation: '-I ../common' clang: warning: argument unused during compilation: '-D U_I18N_IMPLEMENTATION' clang: warning: argument unused during compilation: '-D PIC' Instruction does not dominate all uses! %call6 = call i8* @_ZN6icu_447UMemorynwEm(i64 192) nounwind call void @_ZN6icu_447UMemorydlEPv(i8* %call6) nounwind Broken module found, compilation aborted! 0 libLLVM-2.9svn.so 0x00007f8e82c765bf 1 libLLVM-2.9svn.so 0x00007f8e82c76ba9 2 libpthread.so.0 0x00007f8e821defa0 3 libc.so.6 0x00007f8e814f6165 gsignal + 53 4 libc.so.6 0x00007f8e814f73ff abort + 383 5 libLLVM-2.9svn.so 0x00007f8e82d44e58 6 libLLVM-2.9svn.so 0x00007f8e82d43b81 7 libLLVM-2.9svn.so 0x00007f8e82d2ad1b llvm::FPPassManager::runOnFunction(llvm::Function&) + 331 8 libLLVM-2.9svn.so 0x00007f8e82d2a579 llvm::FunctionPassManagerImpl::run(llvm::Function&) + 217 9 libLLVM-2.9svn.so 0x00007f8e82d2a489 llvm::FunctionPassManager::run(llvm::Function&) + 329 10 clang 0x000000000060c2cd clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&, clang::TargetOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 4877 11 clang 0x0000000000609eeb 12 clang 0x000000000071803a clang::ParseAST(clang::Sema&, bool) + 730 13 clang 0x0000000000609995 clang::CodeGenAction::ExecuteAction() + 709 14 clang 0x000000000052f8e7 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 903 15 clang 0x000000000051386f clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2767 16 clang 0x000000000050caad cc1_main(char const**, char const**, char const*, void*) + 5885 17 clang 0x000000000051049f main + 655 18 libc.so.6 0x00007f8e814e2ced __libc_start_main + 253 19 clang 0x000000000050b2e9 Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -S -disable-free -main-file-name esctrn.ii -pic-level 2 -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu core2 -target-linker-version 2.20.1.20100303 -resource-dir /usr/bin/../lib/clang/2.9 -O2 -W -Wall -Wpointer-arith -Wwrite-strings -Wno-long-long -pedantic -std=c++98 -ferror-limit 19 -fmessage-length 118 -fvisibility hidden -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-Bwi2dI.s -x c++-cpp-output esctrn.ii 1. parser at end of file 2. Per-function optimization 3. Running pass 'Module Verifier' on function '@_ZN6icu_4411_createEscCERKNS_13UnicodeStringENS_14Transliterator5TokenE' clang: error: clang frontend command failed due to signal 6 (use -v to see invocation) pipping at bogus ~/tmp $ I'm attaching a delta-reduced sample -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 28 09:19:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 28 Oct 2010 09:19:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 8438] cmake: "make check" warns about unittests In-Reply-To: References: Message-ID: <20101028141953.932872A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8438 ?scar Fuentes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from ?scar Fuentes 2010-10-28 09:19:53 CDT --- By default, LLVM_BUILD_TESTS is OFF, which means that unittests are not built with the rest of LLVM. If you wish to include the unit tests on `make check', reconfigure with -DLLVM_BUILD_TESTS=ON or explicitly build some of them: make ADTTests AnalysisTests make check It would be good to not emit the warning from lit.py when there are no unittests, but cmake can not anticipate if you intend to build them separately later. Adressing the specific concern raised by Duncan, if the warning displayed by lit.py is not clear enough, that should be fixed in lit.py. CMake cannot do anything about 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 Thu Oct 28 09:33:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 28 Oct 2010 09:33:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 8438] cmake: "make check" warns about unittests In-Reply-To: References: Message-ID: <20101028143330.0CF232A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8438 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #3 from Duncan Sands 2010-10-28 09:33:29 CDT --- Why should I have to configure with a special option to get unittests?! With the GNU make system, doing "make check" runs tests, but not unitttests, while "make unittests" runs unittests, "make check-all" runs clang tests, usual tests and unittests. If any-one suggested that in order to use unittests with the GNU make system you should configure with "-enable-unittests", they would doubtless be soundly larted! Why should it be any different with cmake? By the way, with cmake you can do "make unittests" but they still aren't run. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 28 10:03:49 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 28 Oct 2010 10:03:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 8496] New: Install lit with LLVM Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8496 Summary: Install lit with LLVM Product: Test Suite Version: trunk Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P Component: lit AssignedTo: unassignedbugs at nondot.org ReportedBy: etherzhhb at gmail.com CC: llvmbugs at cs.uiuc.edu, daniel at zuster.org Hi, Tobi grosser and me have an out of tree project using LLVM. And the project can build with an installed LLVM. It is great if lit also install with LLVM, so we can run our regression test with lit. best regards ether -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 28 10:07:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 28 Oct 2010 10:07:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 8497] New: Operand iterator for machine instruction Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8497 Summary: Operand iterator for machine instruction Product: libraries Version: trunk Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: etherzhhb at gmail.com CC: llvmbugs at cs.uiuc.edu Hi, I need the iterator to iterate over the Operands of a machine instruction, but it is not implemented in llvm. Any special reason for not implementing this? otherwise i want to send a patch for this. best regards ether -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 28 10:48:22 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 28 Oct 2010 10:48:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 8494] segmentation faults parsing bitcode In-Reply-To: References: Message-ID: <20101028154822.9FC732A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8494 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Duncan Sands 2010-10-28 10:48:22 CDT --- Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20101025/110619.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Oct 28 10:59:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 28 Oct 2010 10:59:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 8497] Operand iterator for machine instruction In-Reply-To: References: Message-ID: <20101028155916.5C8112A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8497 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |LATER --- Comment #1 from Chris Lattner 2010-10-28 10:59:16 CDT --- We typically just use getNumOperands() + getOperand(), but a patch to add this would be fine, please follow up on llvm-commits instead of bugzilla. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Oct 28 13:33:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 28 Oct 2010 13:33:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 8498] New: Assertion failure in template instantiation. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8498 Summary: Assertion failure in template instantiation. Product: clang Version: trunk Platform: Macintosh OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: benoit.belley at autodesk.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5692) --> (http://llvm.org/bugs/attachment.cgi?id=5692) Test case Clang crashes with an assertion when compiling the program attached (bug.cpp). I am using revision 117443 from the llvm trunk. ------------ bug.cpp ------------ template class Top { struct Entry; ///< forward declared private class struct Entry { union { }; }; }; class A {}; template class Top; -------------------------------- $ clang ~/tmp/bug.cpp Assertion failed: ((Result || isa(D) || D->isInvalidDecl() || cast(ParentDC)->isInvalidDecl()) && "Unable to find instantiation of declaration!"), function FindInstantiatedDecl, file SemaTemplateInstantiateDecl.cpp, line 2780. 0 clang 0x00000001011f9b63 PrintStackTrace(void*) + 38 1 clang 0x00000001011fa11e SignalHandler(int) + 254 2 libSystem.B.dylib 0x00007fff88a3335a _sigtramp + 26 3 clang 0x0000000100745b62 getInterestingTagDecl(clang::TagDecl*) + 149 4 clang 0x000000010001ffb7 raise + 27 5 clang 0x000000010001ffc7 abort + 14 6 clang 0x0000000100020054 __gnu_cxx::new_allocator >::new_allocator() + 0 7 clang 0x00000001004d11a6 clang::Sema::FindInstantiatedDecl(clang::SourceLocation, clang::NamedDecl*, clang::MultiLevelTemplateArgumentList const&) + 1828 8 clang 0x00000001004ad28b (anonymous namespace)::TemplateInstantiator::TransformDecl(clang::SourceLocation, clang::Decl*) + 359 9 clang 0x00000001004ad6bd clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformRecordType(clang::TypeLocBuilder&, clang::RecordTypeLoc, clang::QualType) + 97 10 clang 0x00000001004bf77b clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformType(clang::TypeLocBuilder&, clang::TypeLoc, clang::QualType) + 1509 11 clang 0x00000001004bffcb clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformElaboratedType(clang::TypeLocBuilder&, clang::ElaboratedTypeLoc, clang::QualType) + 669 12 clang 0x00000001004bf7eb clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformType(clang::TypeLocBuilder&, clang::TypeLoc, clang::QualType) + 1621 13 clang 0x00000001004ae29b clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformType(clang::TypeSourceInfo*, clang::QualType) + 229 14 clang 0x00000001004b03d9 clang::Sema::SubstType(clang::TypeSourceInfo*, clang::MultiLevelTemplateArgumentList const&, clang::SourceLocation, clang::DeclarationName) + 279 15 clang 0x00000001004d5077 (anonymous namespace)::TemplateDeclInstantiator::VisitFieldDecl(clang::FieldDecl*) + 215 16 clang 0x00000001004d63f8 clang::DeclVisitor<(anonymous namespace)::TemplateDeclInstantiator, clang::Decl*>::Visit(clang::Decl*) + 978 17 clang 0x00000001004d8669 clang::Sema::SubstDecl(clang::Decl*, clang::DeclContext*, clang::MultiLevelTemplateArgumentList const&) + 81 18 clang 0x00000001004b0a92 clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*, clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&, clang::TemplateSpecializationKind, bool) + 1078 19 clang 0x00000001004b11f4 clang::Sema::InstantiateClassMembers(clang::SourceLocation, clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&, clang::TemplateSpecializationKind) + 1396 20 clang 0x00000001004c2bb4 clang::Sema::InstantiateClassTemplateSpecializationMembers(clang::SourceLocation, clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind) + 82 21 clang 0x000000010047dc54 clang::Sema::ActOnExplicitInstantiation(clang::Scope*, clang::SourceLocation, clang::SourceLocation, unsigned int, clang::SourceLocation, clang::CXXScopeSpec const&, clang::OpaquePtr, clang::SourceLocation, clang::SourceLocation, clang::ASTTemplateArgsPtr, clang::SourceLocation, clang::AttributeList*) + 1682 22 clang 0x000000010029ee32 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 2992 23 clang 0x0000000100295c1d clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 5837 24 clang 0x00000001002c381d clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::AccessSpecifier) + 351 25 clang 0x00000001002c3c62 clang::Parser::ParseExplicitInstantiation(clang::SourceLocation, clang::SourceLocation, clang::SourceLocation&) + 86 26 clang 0x00000001002c40e7 clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 133 27 clang 0x0000000100298d08 clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::CXX0XAttributeList) + 478 28 clang 0x00000001002c9e18 clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList, clang::Parser::ParsingDeclSpec*) + 1800 29 clang 0x00000001002ca15d clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 307 30 clang 0x000000010028bb07 clang::ParseAST(clang::Sema&, bool) + 276 31 clang 0x0000000100080e93 clang::ASTFrontendAction::ExecuteAction() + 233 32 clang 0x000000010024e95c clang::CodeGenAction::ExecuteAction() + 826 33 clang 0x0000000100080f9a clang::FrontendAction::Execute() + 256 34 clang 0x00000001000631f8 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 710 35 clang 0x000000010002ae8d clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 727 36 clang 0x0000000100020cf0 cc1_main(char const**, char const**, char const*, void*) + 876 37 clang 0x0000000100027e06 main + 450 38 clang 0x0000000100020588 start + 52 39 clang 0x0000000000000023 start + 4294834895 Stack dump: 0. Program arguments: /Users/benoit/src/hippocrates-baseline/hgrepo/llvm/Debug+Asserts/bin/clang -cc1 -triple x86_64-apple-darwin10.0.0 -emit-obj -mrelax-all -disable-free -main-file-name bug.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 97.14 -resource-dir /Users/benoit/src/hippocrates-baseline/hgrepo/llvm/Debug+Asserts/bin/../lib/clang/2.9 -ferror-limit 19 -fmessage-length 182 -stack-protector 1 -fblocks -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/ut/utU3am6lE9quVbogvxQwK++++TI/-Tmp-/cc-1LS7O0.o -x c++ /Users/benoit/tmp/bug.cpp 1. /Users/benoit/tmp/bug.cpp:14:23: current parser token ';' clang: error: clang frontend command failed due to signal 4 (use -v to see invocation) Benoit -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 28 13:37:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 28 Oct 2010 13:37:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 8499] New: Assert/segfault reached trying to compile Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8499 Summary: Assert/segfault reached trying to compile Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: mordred at inaugust.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5693) --> (http://llvm.org/bugs/attachment.cgi?id=5693) Broken Code Sample Creating a default-constructed std::pair stack-dumps in the following way: clang: /home/mordred/src/llvm/tools/clang/lib/CodeGen/CGExpr.cpp:605: llvm::Value* clang::CodeGen::CodeGenFunction::EmitToMemory(llvm::Value*, clang::QualType): Assertion `Value->getType()->isIntegerTy(1) && "value rep of bool not i1"' failed. Stack dump: 0. Program arguments: /usr/local/clang/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name foo.cc -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir /usr/local/clang/bin/../lib/clang/2.9 -I /usr/local/clang/include -ferror-limit 19 -fmessage-length 80 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-0YJ9sv.s -x c++ foo.cc 1. parser at end of file 2. Per-file LLVM IR generation 3. /usr/include/c++/4.4/bits/stl_pair.h:79:7: Generating code for declaration 'std::pair, Foo *> >, bool>::pair' clang: error: clang frontend command failed due to signal 6 (use -v to see invocation) With the attached foo-broken.cc on latest trunk. If I change it to foo-fixed.cc, it works. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Oct 28 13:47:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 28 Oct 2010 13:47:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 8499] Assert/segfault reached trying to compile In-Reply-To: References: Message-ID: <20101028184741.B90812A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8499 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |rjmccall at apple.com Resolution| |FIXED --- Comment #3 from John McCall 2010-10-28 13:47:41 CDT --- If you're living on ToT, please update your clang before filing crasher bugs; these things often do get fixed quickly. In this case, the reversion in r117456 fixed this, and the subsequent re-commit did not reintroduce 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 Thu Oct 28 19:23:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 28 Oct 2010 19:23:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 8500] New: lli crashes Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8500 Summary: lli crashes Product: new-bugs Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: stuart at apple.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 Thu Oct 28 19:29:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 28 Oct 2010 19:29:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 8492] clang does not respect 'visibility'='default' attribute for class members In-Reply-To: References: Message-ID: <20101029002930.8C0202A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8492 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from John McCall 2010-10-28 19:29:30 CDT --- Fixed in r117628. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 28 21:30:22 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 28 Oct 2010 21:30:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 8501] New: [code generation] assertion failure with C Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8501 Summary: [code generation] assertion failure with C Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pipping at exherbo.org CC: llvmbugs at cs.uiuc.edu While compiling pixma-mmx.c from pixman. Reduced: $ llc bugpoint-reduced-simplified.bc llc: SelectionDAGBuilder.cpp:274: llvm::SDValue getCopyFromPartsVector(llvm::SelectionDAG &, llvm::DebugLoc, const llvm::SDValue *, unsigned int, llvm::EVT, llvm::EVT): Assertion `ValueVT.getVectorElementType() == PartVT && ValueVT.getVectorNumElements() == 1 && "Only trivial scalar-to-vector conversions should get here!"' failed. 0 libLLVM-2.9svn.so 0x00007f4a051a07af 1 libLLVM-2.9svn.so 0x00007f4a051a0d99 2 libpthread.so.0 0x00007f4a04707fa0 3 libc.so.6 0x00007f4a03a1f165 gsignal + 53 4 libc.so.6 0x00007f4a03a203ff abort + 383 5 libc.so.6 0x00007f4a03a18351 __assert_fail + 241 6 libLLVM-2.9svn.so 0x00007f4a04daa5aa 7 libLLVM-2.9svn.so 0x00007f4a04d8b40f 8 libLLVM-2.9svn.so 0x00007f4a04d93d2f llvm::SelectionDAGBuilder::visitInlineAsm(llvm::ImmutableCallSite) + 12063 9 libLLVM-2.9svn.so 0x00007f4a04d86cc7 llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) + 71 10 libLLVM-2.9svn.so 0x00007f4a04d8133e llvm::SelectionDAGBuilder::visit(unsigned int, llvm::User const&) + 622 11 libLLVM-2.9svn.so 0x00007f4a04d809c2 llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) + 66 12 libLLVM-2.9svn.so 0x00007f4a04db60c8 llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator, llvm::ilist_iterator, bool&) + 40 13 libLLVM-2.9svn.so 0x00007f4a04db589f llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 175 14 libLLVM-2.9svn.so 0x00007f4a04db4cb0 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 512 15 libLLVM-2.9svn.so 0x00007f4a053c3315 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 53 16 libLLVM-2.9svn.so 0x00007f4a05254f0b llvm::FPPassManager::runOnFunction(llvm::Function&) + 331 17 libLLVM-2.9svn.so 0x00007f4a052551eb llvm::FPPassManager::runOnModule(llvm::Module&) + 75 18 libLLVM-2.9svn.so 0x00007f4a05255338 llvm::MPPassManager::runOnModule(llvm::Module&) + 280 19 libLLVM-2.9svn.so 0x00007f4a052558d2 llvm::PassManagerImpl::run(llvm::Module&) + 210 20 libLLVM-2.9svn.so 0x00007f4a05255e2d llvm::PassManager::run(llvm::Module&) + 13 21 llc 0x000000000040714d main + 4669 22 libc.so.6 0x00007f4a03a0bced __libc_start_main + 253 23 llc 0x0000000000405e49 Stack dump: 0. Program arguments: llc bugpoint-reduced-simplified.bc 1. Running pass 'Function Pass Manager' on module 'bugpoint-reduced-simplified.bc'. 2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@pixman_fill_mmx' Aborted $ -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Oct 29 03:51:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 29 Oct 2010 03:51:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 7995] test/Scripts/macho-dump is incompatible to python 2.4(CentOS5) In-Reply-To: References: Message-ID: <20101029085140.B07A62A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7995 NAKAMURA Takumi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from NAKAMURA Takumi 2010-10-29 03:51:40 CDT --- Committed in r117637, Daniel, thank you! Expected Passes : 7620 Expected Failures : 59 Unsupported Tests : 555 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 29 06:06:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 29 Oct 2010 06:06:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 5881] [META] Compiling Qt with clang In-Reply-To: References: Message-ID: <20101029110617.389D22A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5881 Tor Arne Vestb? changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #24 from Tor Arne Vestb? 2010-10-29 06:06:15 CDT --- http://labs.qt.nokia.com/2010/10/29/compiling-qt-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 Fri Oct 29 06:16:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 29 Oct 2010 06:16:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 8502] New: llvm-lit does not search for bash in the path Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8502 Summary: llvm-lit does not search for bash in the path Product: Test Suite Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: lit AssignedTo: unassignedbugs at nondot.org ReportedBy: carlos.delalama at urjc.es CC: llvmbugs at cs.uiuc.edu, daniel at zuster.org Created an attachment (id=5698) --> (http://llvm.org/bugs/attachment.cgi?id=5698) Patch for llvm-lit to look for bash in PATH llvm-lit disregards PATH environment variable when looking for bash. This is due to LitConfig.getBashPath always calling Utils.which with a second argument, even when this is empty. The attached patch checks of self.path is empty and in that case calls Utils.which with just one argument, making env PATH to be 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 Fri Oct 29 07:31:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 29 Oct 2010 07:31:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 8503] New: Assertion failure whilst compiling GMP version 5.0.1 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8503 Summary: Assertion failure whilst compiling GMP version 5.0.1 Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: stenorman2001 at me.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5699) --> (http://llvm.org/bugs/attachment.cgi?id=5699) Error that occurs during compilation. While attempting to compile the GMP library, version 5.0.1, an error (attached) occurs when using clang as the C/C++ compiler. This doesn't happen on GCC 4.2 or LLVM-GCC 4.2. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Oct 29 09:09:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 29 Oct 2010 09:09:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 8428] Unable to link JITTests In-Reply-To: References: Message-ID: <20101029140943.3DEAE2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8428 Ryuta Suzuki changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Ryuta Suzuki 2010-10-29 09:09:42 CDT --- It turns out set(LLVM_REQUIRES_RTTI 1) in unittests/CMakeLists.txt caused the mysterious link error. The line is removed in the recent revision and I'm able to link without error. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Oct 29 09:10:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 29 Oct 2010 09:10:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 8504] New: Unused calls to operator new/delete not optimized away Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8504 Summary: Unused calls to operator new/delete not optimized away Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: benny.kra at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com for this silly testcase: void t() { int *x = new int; delete x; } clang generates at -O3: define void @_Z1tv() ssp { entry: %call = tail call noalias i8* @_Znwm(i64 4) %isnull = icmp eq i8* %call, null br i1 %isnull, label %delete.end, label %delete.notnull delete.notnull: ; preds = %entry tail call void @_ZdlPv(i8* %call) nounwind ret void delete.end: ; preds = %entry ret void } One issue is that we unconditionally emit the isnull check even if it's unneeded. We could teach llvm to optimize away null checks before operator delete (or free), which I'm not entirely sure is what the user expects, or just avoid emitting the check when we don't need it. Another problem is that LLVM knows nothing about operator new/delete so it cannot remove the calls if the allocated memory isn't used at all. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 29 09:11:06 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 29 Oct 2010 09:11:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 8472] dragonegg causes failures in fortran blas results In-Reply-To: References: Message-ID: <20101029141106.067872A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8472 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Duncan Sands 2010-10-29 09:11:05 CDT --- The way complex numbers are returned from function calls was not ABI conformant. Sorry about that! Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20101025/110697.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Oct 29 10:28:18 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 29 Oct 2010 10:28:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 8506] New: clang crash Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8506 Summary: clang crash Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu Valgrind says it's use of freed memory. [regehr at n6 tmp700]$ clang -w -c -O small.c 0 clang 0x093d1588 Stack dump: 0. Program arguments: /mnt/local/randomtest/compiler-install/llvm-gcc-r117638-install/bin/clang -cc1 -triple i386-pc-linux-gnu -S -disable-free -main-file-name small.c -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.20.1 -resource-dir /mnt/local/randomtest/compiler-install/llvm-gcc-r117638-install/bin/../lib/clang/2.9 -O2 -w -ferror-limit 19 -fmessage-length 104 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-NjWHW2.s -x c small.c 1. parser at end of file 2. Per-module optimization passes 3. Running pass 'CallGraph Pass Manager' on module 'small.c'. 4. Running pass 'Value Propagation' on function '@func' clang: error: clang frontend command failed due to signal 11 (use -v to see invocation) [regehr at n6 tmp700]$ cat small.c typedef signed char int8_t; typedef unsigned char uint8_t; struct S0 { uint8_t f1; uint8_t f2; uint8_t f4; }; struct S1 { unsigned f0:14; signed f1:14; signed f3:22; }; uint8_t g_2; uint8_t g_8; struct S1 g_39 = { 0 }; struct S1 g_42 = { 0 }; uint8_t *const func (int8_t p_63, struct S0 p_64, struct S1 *const *p_65) { uint8_t l_67[2][8][1][3]; uint8_t l_68[6]; lbl_83:l_68[0] |= g_42.f1 == ~l_67[0][6][0][1]; lbl_331:for (p_63 = 1; p_63; p_63 = 2, -0) { lbl_299:l_68[0] = p_64.f4 >= p_64.f1, g_42.f3, p_64.f2, 0 ? : +g_39.f0, p_64.f1, -p_64.f2; } { if (g_2) goto lbl_83; for (0; g_8; g_8 = g_8 + 1) { } if (p_63) goto lbl_299; } return 0; } [regehr at n6 tmp700]$ clang -v clang version 2.9 (trunk 117638) Target: i386-pc-linux-gnu Thread model: posix -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Oct 29 12:29:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 29 Oct 2010 12:29:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 8508] New: clang segfaults on test/Frontend/output-failures.c Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8508 Summary: clang segfaults on test/Frontend/output-failures.c Product: clang Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: gohman at apple.com CC: llvmbugs at cs.uiuc.edu clang is actually segfaulting on test/Frontend/output-failures.c, though the test is reported as a pass because the "not" command only cares that the exit status is non-zero. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 29 13:35:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 29 Oct 2010 13:35:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 8200] MMX unpack instructions no longer get selected In-Reply-To: References: Message-ID: <20101029183532.455392A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8200 chromium at hybridsource.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |chromium at hybridsource.org Resolution|FIXED | --- Comment #12 from chromium at hybridsource.org 2010-10-29 13:35:31 CDT --- It appears that this patch 115298 broke mmx in other ways, as I've noticed that some HTML5 video scaling code in Chromium doesn't work right after this patch was applied. I bisected the llvm release_28 branch before and after this patch and found that this mmx change was the culprit. Here's the video scaling code that it likely broke: http://src.chromium.org/viewvc/chrome/trunk/src/media/base/yuv_row_posix.cc?view=markup I wonder why this patch was never applied to llvm trunk, does it have known issues? As it was never applied to llvm trunk, I just built Chromium with trunk llvm-117647/clang-117645 and wasn't able to reproduce, so the problem only crops up with the final llvm 2.8 release. I build Chromium 7-9 on FreeBSD 7, I've attached screenshots of the resulting video scaling problem. As I noted on this Chromium-clang thread, the problem goes away if I trigger another code path that doesn't use the assembly/mmx code: http://groups.google.com/a/chromium.org/group/clang/browse_thread/thread/bfafbc62871caa55# -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 29 13:44:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 29 Oct 2010 13:44:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 8509] New: clang should support compiling drizzle Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8509 Summary: clang should support compiling drizzle Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: mordred at inaugust.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Hi! I was hoping I could just write a note saying that I'd gotten Drizzle (http://drizzle.org) compiling with clang... but I'm down to one final issue that seems to be a clang/boost issue. (This is all on 64-bit Ubuntu 10.10) I fixed a bunch of tiny little bugs in Drizzle that clang found, but then at the final link step I get: drizzled/current_session.o:(.gnu.linkonce.r._ZTVN5boost19thread_specific_ptrIN8drizzled7SessionEE11delete_dataE+0x20): undefined reference to `boost::thread_specific_ptr::delete_data::operator()(void*)' collect2: ld returned 1 exit status clang: error: linker (via gcc) command failed with exit code 1 (use -v to see invocation) (This does not happen with normal gcc boost) I followed the instructions on the site for building clang from latest trunk and then building boost from trunk. BTW - I also had a problem with boost::regex not building under clang because of wide string crud - so I added: #define BOOST_NO_WREGEX to boost/config/compiler/clang.hpp Then I also built google protocol buffers (since that's another c++ library dependency) and then followed: http://wiki.drizzle.org/Compiling Except I did: CC=clang CXX=clang++ ./configure If we can get this working, I'm going to add a clang-based drizzle build to our hudson setup... -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 29 14:51:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 29 Oct 2010 14:51:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 8508] clang segfaults on test/Frontend/output-failures.c In-Reply-To: References: Message-ID: <20101029195117.DA6A42A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8508 Fariborz Jahanian changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |fjahanian at apple.com Resolution| |FIXED --- Comment #2 from Fariborz Jahanian 2010-10-29 14:51:17 CDT --- Fixed in TOT: http://llvm.org/viewvc/llvm-project?view=rev&revision=117692 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 29 15:16:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 29 Oct 2010 15:16:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 8471] [scev] clang segfaults while optimizing a snippet of C code In-Reply-To: References: Message-ID: <20101029201644.4E84A2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8471 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Dan Gohman 2010-10-29 15:16:43 CDT --- Fixed in r117698. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 29 16:12:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 29 Oct 2010 16:12:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 8506] valueprop crash In-Reply-To: References: Message-ID: <20101029211230.81CE12A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8506 Owen Anderson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from Owen Anderson 2010-10-29 16:12:30 CDT --- Fixed in r117709. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 29 16:41:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 29 Oct 2010 16:41:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 8510] New: Splitting a basic block creates an instruction without debug metadata Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8510 Summary: Splitting a basic block creates an instruction without debug metadata Product: new-bugs Version: 2.8 Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: Trevor.W.Harmon at nasa.gov CC: llvmbugs at cs.uiuc.edu For bitcode that has debug metadata, splitting a BasicBlock using llvm::SplitBlock or BasicBlock::splitBasicBlock creates an unconditional branch instruction that lacks debug metadata. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 29 17:29:24 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 29 Oct 2010 17:29:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 8511] New: likely x86 miscompile using clang Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8511 Summary: likely x86 miscompile using clang 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: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu [regehr at n1 ~]$ cat foo.c struct S1 { signed f1 : 22; signed f2 : 6; }; struct S1 g_34 = {1,0}; extern int printf(const char *format, ...); void func_85(struct S1 p_86) { g_34.f2 ^= p_86.f2; } int main(void) { struct S1 l_438 = {-1,0}; func_85(l_438); printf("g_34.f1 = %d\n", g_34.f1); return 0; } [regehr at n1 ~]$ clang -O0 foo.c -o foo [regehr at n1 ~]$ ./foo g_34.f1 = 1 [regehr at n1 ~]$ clang -O1 foo.c -o foo [regehr at n1 ~]$ ./foo g_34.f1 = -1 [regehr at n1 ~]$ clang -v clang version 2.9 (trunk 117638) Target: i386-pc-linux-gnu Thread model: posix [regehr at n1 ~]$ -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 29 18:16:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 29 Oct 2010 18:16:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 8501] [code generation] assertion failure with C In-Reply-To: References: Message-ID: <20101029231626.4F8032A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8501 Dale Johannesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Dale Johannesen 2010-10-29 18:16:25 CDT --- Fixed in 117336. Note the problem is in the FE IR generation, not the BE, so the .bc file here won't work; that file is wrong. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Oct 29 21:09:21 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 29 Oct 2010 21:09:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 8512] New: incorrect IR representation for bool vectors Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8512 Summary: incorrect IR representation for bool vectors Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: zx_y at mail.ru CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5705) --> (http://llvm.org/bugs/attachment.cgi?id=5705) test illustrating the problem Generation of IR from the following code typedef bool v128b __attribute__ ((vector_size (16))); int main() { v128b v1; } gives define i32 @main() nounwind { entry: %v1 = alloca <16 x i1>, align 16 ret i32 0 } <16 x i1> is insufficient for 16-byte vector. Attached is the test that compiles under GCC but gives assert under clang because of the wrong bool vector 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 Sat Oct 30 00:14:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 30 Oct 2010 00:14:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 8423] llvm/Support/AlignOf.h fails to compile with C++0x In-Reply-To: References: Message-ID: <20101030051426.8DFAD2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8423 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Chris Lattner 2010-10-30 00:14:26 CDT --- Thanks, I applied your patch in r117774 and updated clang in 117775 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 30 01:50:34 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 30 Oct 2010 01:50:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 8489] Template argument name missing in diagnostic In-Reply-To: References: Message-ID: <20101030065034.8BFB52A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8489 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Nick Lewycky 2010-10-30 01:50:34 CDT --- Fixed in r117776. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 30 02:20:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 30 Oct 2010 02:20:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 7978] crash emitting diagnostic about initializer order In-Reply-To: References: Message-ID: <20101030072014.DC5A32A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7978 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #1 from Nick Lewycky 2010-10-30 02:20:13 CDT --- This no longer crashes (it's even valgrind-clean). -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 30 06:38:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 30 Oct 2010 06:38:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 2771] opt loads LLVMHello only when called from build directory, fails from installed In-Reply-To: References: Message-ID: <20101030113801.987372A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=2771 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |baldrick at free.fr Resolution| |FIXED --- Comment #9 from Duncan Sands 2010-10-30 06:38:00 CDT --- According to the discussion in the comments, it seems that this has been resolved. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 30 08:00:24 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 30 Oct 2010 08:00:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 8279] const volatile bug In-Reply-To: References: Message-ID: <20101030130024.B68D82A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8279 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |baldrick at free.fr Resolution| |FIXED --- Comment #1 from Duncan Sands 2010-10-30 08:00:24 CDT --- Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20101025/110802.html -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Oct 30 08:01:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 30 Oct 2010 08:01:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 8273] volatile global constants shouldn't be merged In-Reply-To: References: Message-ID: <20101030130117.5E1392A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8273 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |baldrick at free.fr Resolution| |WONTFIX --- Comment #3 from Duncan Sands 2010-10-30 08:01:16 CDT --- Closing as per the comments. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 30 08:05:32 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 30 Oct 2010 08:05:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 8191] Passing -ftrapv causes clang to crash In-Reply-To: References: Message-ID: <20101030130532.F08BA2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8191 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #8 from Duncan Sands 2010-10-30 08:05:32 CDT --- *** This bug has been marked as a duplicate of bug 7838 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 30 10:18:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 30 Oct 2010 10:18:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 8513] New: Assertion `From != To && "ReplaceAndSimplifyAllUses(X, X) is not valid!"' failed Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8513 Summary: Assertion `From != To && "ReplaceAndSimplifyAllUses(X,X) is not valid!"' failed 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: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu Sorry for the nasty testcase. regehr at home:~/volatile/bugs/tmp336$ clang -v clang version 2.9 (trunk 117785) Target: i386-pc-linux-gnu Thread model: posix regehr at home:~/volatile/bugs/tmp336$ clang -c -O -w small.c clang: InstructionSimplify.cpp:461: void llvm::ReplaceAndSimplifyAllUses(llvm::Instruction*, llvm::Value*, const llvm::TargetData*): Assertion `From != To && "ReplaceAndSimplifyAllUses(X,X) is not valid!"' failed. 0 clang 0x093b0918 Stack dump: 0. Program arguments: /mnt/z/z/compiler-install/llvm-gcc-r117785-install/bin/clang -cc1 -triple i386-pc-linux-gnu -emit-obj -disable-free -main-file-name small.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.20.51 -resource-dir /mnt/z/z/compiler-install/llvm-gcc-r117785-install/bin/../lib/clang/2.9 -O2 -w -ferror-limit 19 -fmessage-length 80 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o small.o -x c small.c 1. parser at end of file 2. Per-module optimization passes 3. Running pass 'CallGraph Pass Manager' on module 'small.c'. 4. Running pass 'Jump Threading' on function '@int326' clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) regehr at home:~/volatile/bugs/tmp336$ cat small.c int g_15; int *const g_14 = &g_15; unsigned char g_59; const unsigned char *g_102 = &g_15; const unsigned char **g_101 = &g_102; unsigned char g_115; unsigned char func_54 (unsigned p_55, const unsigned char *** p_56) { unsigned char l_57; g_59 &= ~l_57 < 0; return 0; } int int326 (int ** p_87, unsigned char p_88, unsigned char p_89) { unsigned char l_96[3]; const unsigned char ***l = &g_101; int i; l_96[i] = 0; for (0;;) { unsigned char l_127[8]; lbl_104:if (*g_14) break; if (g_15) { unsigned char l_97[6]; l_97[i]; for (0; p_88;) if (l_96[2]) if (l_97[2] && (func_54 (l_97[3], 0), 1 ? : +0) >= &l) { } else return l_97[2]; else goto lbl_104; unsigned char *l_138 = &g_115; *l_138 ^= 0 == 0 ? : l_127[3], 0 > 0 && 0 > 0 || 0 < 0 && 0 < 0 ? : +0 ? : +0 ? : 1 * 8 ? : 0 ? : +0; } } 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 Sat Oct 30 10:37:12 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 30 Oct 2010 10:37:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 8514] New: Assertion `isReg() && "This is not a register operand!"' failed. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8514 Summary: Assertion `isReg() && "This is not a register operand!"' failed. Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu regehr at home:~/volatile/bugs/tmp337$ clang -v clang version 2.9 (trunk 117785) Target: i386-pc-linux-gnu Thread model: posix regehr at home:~/volatile/bugs/tmp337$ clang -c -w -O small.c clang: /mnt/z/z/compiler-build/llvm-r117785/include/llvm/MC/MCInst.h:59: unsigned int llvm::MCOperand::getReg() const: Assertion `isReg() && "This is not a register operand!"' failed. 0 clang 0x093b0918 Stack dump: 0. Program arguments: /mnt/z/z/compiler-install/llvm-gcc-r117785-install/bin/clang -cc1 -triple i386-pc-linux-gnu -emit-obj -disable-free -main-file-name small.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.20.51 -resource-dir /mnt/z/z/compiler-install/llvm-gcc-r117785-install/bin/../lib/clang/2.9 -O2 -w -ferror-limit 19 -fmessage-length 80 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o small.o -x c small.c 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'small.c'. 4. Running pass 'X86 AT&T-Style Assembly Printer' on function '@func_59' clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) regehr at home:~/volatile/bugs/tmp337$ cat small.c struct S0 { signed f1:1; signed f2:22; }; struct S1 { }; struct S2 { unsigned short f0; struct S0 f1; }; struct S1 func_28 (struct S2 *const p_29, unsigned short p_30); struct S2 *func_65 (struct S1 p_66, struct S2 *p_67, struct S0 p_68); struct S0 func_59 (struct S2 *p_60, const int * p_61, struct S0 p_62, unsigned p_63, struct S2 *p_64) { unsigned l_74; struct S2 l_75 = { 1, 0xA2B3 }; struct S0 l_76[9][5][2] = { }; lbl_81:func69 (0), func_65 (func_28 (p_60, l_75.f1.f1), &l_75, l_75.f1), l_76[1][0][1]; for (l_74 = 0; 1; l_74 = l_74 + 1) for (p_63; p_63; p_63 = p_63 + 1) for (l_75.f0; l_75.f0; l_75.f0 = l_75.f0 + 1) { struct S0 tmp = { 99 }; l_76[l_74][p_63][l_75.f0] = tmp; } } struct S2 * func_65 (struct S1 p_66, struct S2 *p_67, struct S0 p_68) { } -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 30 11:50:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 30 Oct 2010 11:50:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 8515] New: ELF writer creates corrupted file for input with many sections Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8515 Summary: ELF writer creates corrupted file for input with many sections Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Core LLVM classes AssignedTo: unassignedbugs at nondot.org ReportedBy: benny.kra at gmail.com CC: llvmbugs at cs.uiuc.edu Sorry for the large testcase, it's from v8's testsuite and I couldn't get it any smaller. $ clang++ -integrated-as t.cc -fdata-sections ? /usr/bin/ld: t.o: invalid string offset 138690 >= 17 for section `' /usr/bin/ld: t.o: invalid string offset 678247 >= 17 for section `.shstrtab' ? repeated 30k times gnu as works clang version 2.9 (trunk 117786) Target: i386-pc-linux-gnu GNU ld (GNU Binutils for Debian) 2.18.0.20080103 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 30 14:37:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 30 Oct 2010 14:37:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 8516] New: Clang generates incorrect big endian multibyte character strings Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8516 Summary: Clang generates incorrect big endian multibyte character strings Product: clang Version: trunk Platform: PC OS/Version: Linux 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 This is from the GCC testsuite. On big endian architectures the string L"ab" is in little endian format. The C code below generates the same string on both big and little endian architectures: @.str = private constant [12 x i8] c"a\00\00\00b\00\00\00\00\00\00\00" ; <[12 x i8]*> [#uses=1] For big endian the string generated by GCC is equivalent to: @.str = private constant [12 x i8] c"\00\00\00a\00\00\00b\00\00\00\00" ; <[12 x i8]*> [#uses=1] extern void exit(int); extern void abort(void); int main(void) { if (L"ab"[1] != L'b') abort(); exit(0); } I tested this on qemu using a debian linux distribution. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 30 16:17:22 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 30 Oct 2010 16:17:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 8517] New: return type not recognized in out of line definition Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8517 Summary: return type not recognized in out of line definition Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: marc.glisse at normalesup.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The following code fails to compile with error: m.C:10:12: error: functions that differ only in their return type cannot be overloaded A < T > :: f ( ) ^ m.C:5:11: note: previous declaration is here Tmc_Point f ( ) ; ^ template < class T > class A { typedef typename T :: Geom_traits Tmc_traits ; typedef typename T :: Point_3 Tmc_Point ; Tmc_Point f ( ) ; } ; template < class T > typename T :: Geom_traits :: Point_3 A < T > :: f ( ) { return Tmc_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 Sat Oct 30 19:18:22 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 30 Oct 2010 19:18:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 8518] New: [patch][new feature] Function addresses in JIT can be printed out and imported to the external debugging tools Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8518 Summary: [patch][new feature] Function addresses in JIT can be printed out and imported to the external debugging tools Product: libraries Version: trunk Platform: Other OS/Version: FreeBSD Status: NEW Severity: enhancement Priority: P Component: Target-Independent JIT AssignedTo: unassignedbugs at nondot.org ReportedBy: yuri at tsoft.com CC: llvmbugs at cs.uiuc.edu Synopsys: addition of a new debug option: -jit-emit-debug-function-range that enables JIT to produce the text file with function memory boundaries in it. External tools like google-perftools and valgrind (callgrind) will be able to import such file and display function names. Otherwise such names are unknown to those tools and JIT functions are shown with the hex address names. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 30 19:20:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 30 Oct 2010 19:20:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 8515] ELF writer creates corrupted file for input with many sections In-Reply-To: References: Message-ID: <20101031002005.0D4042A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8515 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Rafael ?vila de Esp?ndola 2010-10-30 19:20:04 CDT --- Fixed in 117849. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 30 23:24:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 30 Oct 2010 23:24:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 8426] 'clang --analyze' crashes when using incomplete type in templates In-Reply-To: References: Message-ID: <20101031042404.6ECCE2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8426 Zhanyong Wan changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from Zhanyong Wan 2010-10-30 23:24:03 CDT --- Fixed in r117853. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 30 23:25:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 30 Oct 2010 23:25:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 8427] 'clang --analyze' crashes in template code after an operator declaration In-Reply-To: References: Message-ID: <20101031042508.E3D7A2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8427 Zhanyong Wan changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #3 from Zhanyong Wan 2010-10-30 23:25:08 CDT --- Fixed in r117853. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 30 23:25:35 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 30 Oct 2010 23:25:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 8433] 'clang --analyze' crashes when invoking a member functor of dependent type In-Reply-To: References: Message-ID: <20101031042535.9A7CE2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8433 Zhanyong Wan changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #3 from Zhanyong Wan 2010-10-30 23:25:35 CDT --- Fixed in r117853. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 31 11:54:55 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 31 Oct 2010 11:54:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 5020] Nondeterministic behavior of opt -O3 In-Reply-To: References: Message-ID: <20101031165455.6741A2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5020 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #9 from Chris Lattner 2010-10-31 11:54:54 CDT --- Yes, sounds great -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Oct 31 15:42:21 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 31 Oct 2010 15:42:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 5974] [c++ codegen] this initializer should be static, not dynamic In-Reply-To: References: Message-ID: <20101031204221.DC9FD2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5974 Anders Carlsson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andersca at mac.com Resolution| |FIXED --- Comment #3 from Anders Carlsson 2010-10-31 15:42:21 CDT --- http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20101025/035941.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.