From bugzilla-daemon at llvm.org Wed Dec 1 04:11:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 1 Dec 2010 04:11:57 -0600 (CST) Subject: [LLVMbugs] [Bug 8712] New: value dependent member in class template Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8712 Summary: value dependent member in 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: timoskrempel at gmx.de CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The following code works an compiles in 2.8 but compilation fails in trunk (rev 120287): template class B { public: B(const unsigned char i); unsigned char value : (dim > 0 ? dim : 1); }; template inline B::B(const unsigned char i) : value(i) {} int main() {} with the following error: $ clang++ bug3.cc clang: ExprConstant.cpp:2458: ::ICEDiag CheckICE(const clang::Expr*, clang::ASTContext&): Assertion `!E->isValueDependent() && "Should not see value dependent exprs!"' failed. 0 clang 0x00000000016971cf 1 clang 0x0000000001699442 2 libpthread.so.0 0x00007fcf772f8b40 3 libc.so.6 0x00007fcf765f6ba5 gsignal + 53 4 libc.so.6 0x00007fcf765fa6b0 abort + 384 5 libc.so.6 0x00007fcf765efa71 __assert_fail + 241 6 clang 0x0000000000c8ecb9 7 clang 0x0000000000c8edef clang::Expr::isIntegerConstantExpr(llvm::APSInt&, clang::ASTContext&, clang::SourceLocation*, bool) const + 63 8 clang 0x00000000008e13cc 9 clang 0x00000000009e2cad clang::InitializationSequence::Perform(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, clang::ASTMultiPtr, clang::QualType*) + 301 10 clang 0x0000000000952a68 clang::Sema::BuildMemberInitializer(clang::FieldDecl*, clang::Expr**, unsigned int, clang::SourceLocation, clang::SourceLocation, clang::SourceLocation) + 712 11 clang 0x0000000000968f59 clang::Sema::ActOnMemInitializer(clang::Decl*, clang::Scope*, clang::CXXScopeSpec&, clang::IdentifierInfo*, clang::OpaquePtr, clang::SourceLocation, clang::SourceLocation, clang::Expr**, unsigned int, clang::SourceLocation) + 697 12 clang 0x000000000089c44e clang::Parser::ParseMemInitializer(clang::Decl*) + 750 13 clang 0x000000000089c5e5 clang::Parser::ParseConstructorInitializer(clang::Decl*) + 213 14 clang 0x000000000088bd4b clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&) + 555 15 clang 0x00000000008b6e9e clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::AccessSpecifier) + 2382 16 clang 0x00000000008b9305 clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 693 17 clang 0x0000000000896929 clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::CXX0XAttributeList) + 409 18 clang 0x000000000088ccd3 clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList, clang::Parser::ParsingDeclSpec*) + 1091 19 clang 0x000000000088cf12 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 114 20 clang 0x000000000087541b clang::ParseAST(clang::Sema&, bool) + 139 21 clang 0x0000000000747b34 clang::CodeGenAction::ExecuteAction() + 68 22 clang 0x0000000000641c75 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 357 23 clang 0x00000000006219ec clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1260 24 clang 0x0000000000619775 cc1_main(char const**, char const**, char const*, void*) + 693 25 clang 0x0000000000620965 main + 4181 26 libc.so.6 0x00007fcf765e1d8e __libc_start_main + 254 27 clang 0x0000000000617e89 Stack dump: 0. Program arguments: /scratch/kram/llvm/Release+Asserts/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name bug3.cc -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.51 -resource-dir /scratch/kram/llvm/Release+Asserts/bin/../lib/clang/2.9 -ferror-limit 19 -fmessage-length 165 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-BRMnQS.o -x c++ bug3.cc 1. bug3.cc:13:1: current parser token '{' clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Dec 1 05:16:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 1 Dec 2010 05:16:29 -0600 (CST) Subject: [LLVMbugs] [Bug 8713] New: "relocation R_X86_64_PC32 against undefined symbol ..." Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8713 Summary: "relocation R_X86_64_PC32 against undefined symbol ..." 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 Trying to compile and link the following into a shared library fails: #include extern std::ostream& get_ostream(); void f() { get_ostream() << "foo"; } $ clang++ -fno-exceptions -fvisibility=hidden -fPIC -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -c a.cc -o fail.o $ clang++ -shared -o fail.so fail.o /usr/bin/ld: fail.o: relocation R_X86_64_PC32 against undefined symbol `_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value clang: error: linker command failed with exit code 1 (use -v to see invocation) If g++ is used in the first step, the link step succeeds. $ clang++ -v clang version 2.9 (trunk 120563) Target: x86_64-unknown-linux-gnu Thread model: posix gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 1 05:57:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 1 Dec 2010 05:57:44 -0600 (CST) Subject: [LLVMbugs] [Bug 8714] New: Jump threading doesn't handle indirectbr very well. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8714 Summary: Jump threading doesn't handle indirectbr very well. 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: fvbommel at gmail.com CC: llvmbugs at cs.uiuc.edu Jump threading only threads through blocks ending in conditional branches or switches, not 'indirectbr'. These are probably even more profitable to thread through than switches. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 1 09:22:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 1 Dec 2010 09:22:29 -0600 (CST) Subject: [LLVMbugs] [Bug 8715] New: incorrect .debug_line section entries in generated .s file Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8715 Summary: incorrect .debug_line section entries in generated .s file Product: libraries Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: dpatel at apple.com CC: llvmbugs at cs.uiuc.edu For the following input --- begin --- char c[4] = "hi\n"; --- end --- llvm emits incorrect .debug_line entries on darwin9 .section __DWARF,__debug_line,regular,debug Ltmp0: .long (Ltmp1-Ltmp0)-4 .short 2 .long (Ltmp2-Ltmp0)-10 .byte 1 .byte 1 .byte -5 .byte 14 .byte 13 .byte 0 .byte 1 .byte 1 .byte 1 .byte 1 .byte 0 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 1 .byte 0 .ascii "g1.c" .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 Ltmp2: Ltmp1: This is a regression. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Dec 1 10:04:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 1 Dec 2010 10:04:36 -0600 (CST) Subject: [LLVMbugs] [Bug 8715] incorrect .debug_line section entries in generated .s file In-Reply-To: References: Message-ID: <20101201160436.A20062A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8715 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Dec 1 10:10:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 1 Dec 2010 10:10:52 -0600 (CST) Subject: [LLVMbugs] [Bug 8715] incorrect .debug_line section entries in generated .s file In-Reply-To: References: Message-ID: <20101201161052.D74D22A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8715 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #4 from Devang Patel 2010-12-01 10:10:52 CST --- I am reopening this because this is a darwin9 issue. The assembler+linker on darwin9 are not able to handle this. The linker crashes in fact. This could be a bug in linker. However, this is a new regression caused by llvm code generator changes in .debug_line output in .s file. FWIW, here is what llvm code generator used to emit before .loc related changes were introduced. .section __DWARF,__debug_line,regular,debug Lset2 = Lline_end-Lline_begin ## Length of Source Line Info .long Lset2 Lline_begin: .short 2 ## DWARF version number Lset3 = Lline_prolog_end-Lline_prolog_begin ## Prolog Length .long Lset3 Lline_prolog_begin: .byte 1 ## Minimum Instruction Length .byte 1 ## Default is_stmt_start flag .byte 246 ## Line Base Value (Special Opcodes) .byte 245 ## Line Range Value (Special Opcodes) .byte 10 ## Special Opcode Base .byte 0 ## DW_LNS_copy arg count .byte 1 ## DW_LNS_advance_pc arg count .byte 1 ## DW_LNS_advance_line arg count .byte 1 ## DW_LNS_set_file arg count .byte 1 ## DW_LNS_set_column arg count .byte 0 ## DW_LNS_negate_stmt arg count .byte 0 ## DW_LNS_set_basic_block arg count .byte 0 ## DW_LNS_const_add_pc arg count .byte 1 ## DW_LNS_fixed_advance_pc arg count .asciz "/tmp/" ## Directory .byte 0 ## End of directories .asciz "g.c" ## Source .byte 1 ## Directory # .byte 0 ## Mod date .byte 0 ## File size .byte 0 ## End of files Lline_prolog_end: .byte 0 ## Extended Op .byte 9 ## Op size .byte 2 ## DW_LNE_set_address .quad Lsection_end1 ## Section end label .byte 0 ## DW_LNE_end_sequence .byte 1 .byte 1 Lline_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 Wed Dec 1 10:20:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 1 Dec 2010 10:20:54 -0600 (CST) Subject: [LLVMbugs] [Bug 8716] New: Crash in Live Variable Analysis Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8716 Summary: Crash in Live Variable Analysis Product: new-bugs Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: pawel.worach at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5846) --> (http://llvm.org/bugs/attachment.cgi?id=5846) bugpoint-reduced-simplified.bc $ llc bugpoint-reduced-simplified.bcStack dump: 0. Program arguments: /data/buildslave/freebsd-clang-amd64/obj/obj-llvm.2/Release+Asserts/bin/llc bugpoint-reduced-simplified.bc 1. Running pass 'Function Pass Manager' on module 'bugpoint-reduced-simplified.bc'. 2. Running pass 'Live Variable Analysis' on function '@tgamma' Segmentation fault (core dumped) Reduced from FreeBSD lib/msun/bsdsrc/b_tgamma.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 Dec 1 10:46:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 1 Dec 2010 10:46:25 -0600 (CST) Subject: [LLVMbugs] [Bug 8717] New: LLVM MC does not know how to handle .subsection derective Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8717 Summary: LLVM MC does not know how to handle .subsection derective 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: kaffeemonster at googlemail.com CC: llvmbugs at cs.uiuc.edu After a long time testing llvm+clang again. llvm/clang @ TOT, r120576 Given the following (silly example) code: int foo(int a) { int x; asm( "1:\n\t" "dec %0\n\t" "jnz 2f\n\t" /* * some procesessors see jumping back as likely * so jump forward, then backward */ ".subsection 2\n" "2:\n\t" "jmp 1b\n\t" ".previous" : "=r" (x) : "0" (a) ); return x; } clang gives: $ clang -O -c clang_sub.c clang_sub.c:7:12: error: expected identifier in directive "jnz 2f\n\t" ^ :4:14: note: instantiated into assembly here .subsection 2 ^ 1 error generated. Looks like the new builtin asm foo is to blame. I tried to make a patch (attached, don't shoot me, it's just a test, i have no clue about C++ or llvm), but it does not solve it. Greetings Jan -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Dec 1 12:53:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 1 Dec 2010 12:53:30 -0600 (CST) Subject: [LLVMbugs] [Bug 8716] Crash in Live Variable Analysis In-Reply-To: References: Message-ID: <20101201185330.810D72A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8716 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #3 from Jakob Stoklund Olesen 2010-12-01 12:53:30 CST --- This no longer reproduces on TOT. Please verify. (I was able to reproduce with r120526, but not r120580) -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 1 12:56:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 1 Dec 2010 12:56:31 -0600 (CST) Subject: [LLVMbugs] [Bug 8718] New: No warning on casting between pointer and non-pointer-sized int Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8718 Summary: No warning on casting between pointer and non-pointer-sized int Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: tjw at omnigroup.com CC: llvmbugs at cs.uiuc.edu llvm-gcc-4.2 and gcc-4.2 correctly report warnings when casting between pointers and integer types of non-pointer width: llvm-gcc-4.2 -Wall -c int-ptr-cast-size-mismatch.c -o /tmp/x int-ptr-cast-size-mismatch.c: In function ?cast_from_pointer?: int-ptr-cast-size-mismatch.c:4: warning: cast from pointer to integer of different size int-ptr-cast-size-mismatch.c: In function ?cast_to_pointer?: int-ptr-cast-size-mismatch.c:9: warning: cast to pointer from integer of different size clang, as shipped in Xcode 3.2.5 and from trunk r120583, reports no warnings, however. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 1 13:37:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 1 Dec 2010 13:37:09 -0600 (CST) Subject: [LLVMbugs] [Bug 8692] use of default argument to function that is declared later in class In-Reply-To: References: Message-ID: <20101201193709.325EE2A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8692 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2010-12-01 13:37:08 CST --- Yes, this 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 Wed Dec 1 14:53:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 1 Dec 2010 14:53:01 -0600 (CST) Subject: [LLVMbugs] [Bug 8603] Invalid assembly accepted on ELF In-Reply-To: References: Message-ID: <20101201205301.10D292A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8603 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 Wed Dec 1 14:53:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 1 Dec 2010 14:53:16 -0600 (CST) Subject: [LLVMbugs] [Bug 8603] Invalid assembly accepted on ELF In-Reply-To: References: Message-ID: <20101201205316.05EF82A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8603 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 Wed Dec 1 14:53:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 1 Dec 2010 14:53:48 -0600 (CST) Subject: [LLVMbugs] [Bug 8596] MC Temporary Symbol Name Clash In-Reply-To: References: Message-ID: <20101201205348.B33482A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8596 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 Wed Dec 1 15:57:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 1 Dec 2010 15:57:14 -0600 (CST) Subject: [LLVMbugs] [Bug 8719] New: clang assembler asserts Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8719 Summary: clang assembler asserts 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: tjablin at cs.princeton.edu CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5853) --> (http://llvm.org/bugs/attachment.cgi?id=5853) Assembly Language testcase The clang assembler asserts on the attached two line reduced assembly-code testcase. .file 1 "cfd.cpp" .Ltmp0: -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 1 16:05:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 1 Dec 2010 16:05:29 -0600 (CST) Subject: [LLVMbugs] [Bug 8720] New: llvm-gcc testsuite regressions with symbol aliases Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8720 Summary: llvm-gcc testsuite regressions with symbol aliases Product: new-bugs Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: gohman at apple.com CC: llvmbugs at cs.uiuc.edu The following tests appear to have started failing with r119152 in "clang-i386-darwin10": gcc.dg/alias-5.c (test for excess errors) gcc.dg/special/alias-1.c (test for excess errors) gcc.dg/special/alias-2.c (test for excess errors) gcc.dg/special/wkali-1.c (test for excess errors) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Dec 1 16:49:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 1 Dec 2010 16:49:19 -0600 (CST) Subject: [LLVMbugs] [Bug 8721] New: AsmParser does not understand several ARM specific constructs Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8721 Summary: AsmParser does not understand several ARM specific constructs Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: jasonwkim at google.com CC: llvmbugs at cs.uiuc.edu :lower16: :upper16: not supported llvm-mc -triple=armv7-linux-gnueabi -arch=arm small.s -o small.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 Dec 1 18:35:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 1 Dec 2010 18:35:08 -0600 (CST) Subject: [LLVMbugs] [Bug 8719] clang assembler asserts In-Reply-To: References: Message-ID: <20101202003508.121552A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8719 Thomas B. Jablin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #3 from Thomas B. Jablin 2010-12-01 18:35:07 CST --- *** This bug has been marked as a duplicate of bug 8596 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 1 19:20:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 1 Dec 2010 19:20:30 -0600 (CST) Subject: [LLVMbugs] [Bug 8715] incorrect .debug_line section entries in generated .s file In-Reply-To: References: Message-ID: <20101202012030.7627F2A6C131@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8715 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #10 from Devang Patel 2010-12-01 19:20:29 CST --- Thanks Nick. Instead of trying to emit dummy entry, why not just skip .debug_line section entirely if there is not any line info ? Fixed in r120637. This lets me pass this test case, but llvm-gcc bootstrap sill fails. This time there are line table entries! I'll use another bugzilla, if I need, for it 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 Thu Dec 2 00:51:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 00:51:07 -0600 (CST) Subject: [LLVMbugs] [Bug 8722] New: 'clang --analyze' crashes on casting from an object L-value to a reference Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8722 Summary: 'clang --analyze' crashes on casting from an object L-value to a reference 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 class Foo {}; void Test() { int n; reinterpret_cast(n); // fine Foo foo; reinterpret_cast(foo); // crashes 'clang --analyze' } $ clang --analyze test.cc 0 clang 0x00000000012e1910 1 clang 0x00000000012e1e1a 2 libpthread.so.0 0x00002b34758db9f0 3 clang 0x00000000006fca52 clang::StoreManager::CastRegion(clang::MemRegion const*, clang::QualType) + 322 4 clang 0x0000000000700904 clang::SValuator::EvalCast(clang::SVal, clang::QualType, clang::QualType) + 1364 5 clang 0x0000000000774d7e clang::GRExprEngine::VisitCast(clang::CastExpr const*, clang::Expr const*, clang::ExplodedNode*, clang::ExplodedNodeSet&, bool) + 1438 6 clang 0x0000000000769443 clang::GRExprEngine::Visit(clang::Stmt const*, clang::ExplodedNode*, clang::ExplodedNodeSet&) + 819 7 clang 0x0000000000774949 clang::GRExprEngine::VisitCast(clang::CastExpr const*, clang::Expr const*, clang::ExplodedNode*, clang::ExplodedNodeSet&, bool) + 361 8 clang 0x0000000000769443 clang::GRExprEngine::Visit(clang::Stmt const*, clang::ExplodedNode*, clang::ExplodedNodeSet&) + 819 9 clang 0x00000000007754ae clang::GRExprEngine::ProcessStmt(clang::CFGStmt, clang::GRStmtNodeBuilder&) + 798 10 clang 0x0000000000775b19 clang::GRExprEngine::ProcessElement(clang::CFGElement, clang::GRStmtNodeBuilder&) + 121 11 clang 0x000000000074eca4 clang::GRCoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, clang::GRState const*) + 500 12 clang 0x00000000006af6f2 13 clang 0x00000000006b1666 14 clang 0x00000000008c84ed clang::ParseAST(clang::Sema&, bool) + 557 15 clang 0x00000000007eec9b clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 315 16 clang 0x000000000056e18d clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 989 17 clang 0x0000000000568886 cc1_main(char const**, char const**, char const*, void*) + 982 18 clang 0x000000000056d3b7 main + 3639 19 libc.so.6 0x00002b3476033d5d __libc_start_main + 253 20 clang 0x00000000005659fe Stack dump: 0. Program arguments: clang -cc1 ... test.cc 1. parser at end of file 2. test.cc:8:3: Error evaluating statement 3. test.cc:8:3: Error evaluating statement 4. test.cc:8:9: Error evaluating statement clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 2 01:07:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:07:45 -0600 (CST) Subject: [LLVMbugs] [Bug 279] Clang initialization code generation can be improved In-Reply-To: References: Message-ID: <20101202070745.493DD2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=279 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Chris Lattner 2010-12-02 01:07:44 CST --- Finished off in r120692. We now generate a memset + 1 store. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 01:09:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:09:59 -0600 (CST) Subject: [LLVMbugs] [Bug 792] Factor AsmWriter out of lib/VMCore In-Reply-To: References: Message-ID: <20101202070959.811C02A6C131@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=792 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WONTFIX --- Comment #19 from Chris Lattner 2010-12-02 01:09:57 CST --- It's fair to say that this will never happen, and if it does, that it won't matter. In practice, everything that touches IR would depend on the factored out library, because they call ->dump() in debug paths or error cases. Eliminating the vtable from Value would be a great project, but seems like it is tracked in another 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 Dec 2 01:12:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:12:45 -0600 (CST) Subject: [LLVMbugs] [Bug 767] Prolog Epilog Inserter should take advantage of larger aliases In-Reply-To: References: Message-ID: <20101202071245.854EC2A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=767 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |LATER --- Comment #1 from Chris Lattner 2010-12-02 01:12:45 CST --- This is already tracked in the PPC readme ("cr save restore is awful"), no need for a separate 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 Dec 2 01:13:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:13:37 -0600 (CST) Subject: [LLVMbugs] [Bug 8723] New: llvm 2.8: doesn't build on Mac OS X 10.4.11, undefined symbol ___crashreporter_info__ Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8723 Summary: llvm 2.8: doesn't build on Mac OS X 10.4.11, undefined symbol ___crashreporter_info__ 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: edwintorok at gmail.com CC: llvmbugs at cs.uiuc.edu See https://wwws.clamav.net/bugzilla/show_bug.cgi?id=2402 Using gcc 4.5 on LLVM 2.8 make fails with: /usr/bin/ld: Undefined symbols: ___crashreporter_info__ collect2: ld returned 1 exit status make[2]: *** [/Users//Documents/src/llvm-2.8/Release/bin/FileCheck] Error 1 Using the (Apple provided) gcc 3.3 fails too: llvm[1]: Compiling Alarm.cpp for Release build cc1plus: error: invalid option `macosx-version-min=10.4' rm: /Users//Documents/src/llvm-2.8/lib/System/Release/Alarm.d.tmp: No such file or directory make[1]: *** [/Users//Documents/src/llvm-2.8/lib/System/Release/Alarm.o] Error 1 According to the user there is no other Apple provided gcc for this platform that he could try (well there is 4.0.1, but that is buggy). -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 01:13:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:13:41 -0600 (CST) Subject: [LLVMbugs] [Bug 8125] switches over a 2-bit domain lowered inefficiently In-Reply-To: References: Message-ID: <20101202071341.50B982A6C132@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8125 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |DUPLICATE --- Comment #5 from Chris Lattner 2010-12-02 01:13:41 CST --- *** This bug has been marked as a duplicate of bug 774 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 01:15:56 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:15:56 -0600 (CST) Subject: [LLVMbugs] [Bug 605] [CBE] C Type layout doesn't match LLVM type layout In-Reply-To: References: Message-ID: <20101202071556.BAC822A6C131@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=605 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |WONTFIX --- Comment #6 from Chris Lattner 2010-12-02 01:15:56 CST --- Noone seems interested in fixing this, it would require a substantial rewrite of the CBE. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 01:17:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:17:38 -0600 (CST) Subject: [LLVMbugs] [Bug 1391] [llvm-gcc] non-local gotos not supported In-Reply-To: References: Message-ID: <20101202071738.898222A6C132@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=1391 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #1 from Chris Lattner 2010-12-02 01:17:38 CST --- Noone cares, and clang won't support nested functions. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 2 01:17:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:17:54 -0600 (CST) Subject: [LLVMbugs] [Bug 1150] stage2 compiles c++ files with the host c++ compiler In-Reply-To: References: Message-ID: <20101202071754.CF4CA2A6C132@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=1150 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #11 from Chris Lattner 2010-12-02 01:17:53 CST --- Noone cares. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 01:18:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:18:57 -0600 (CST) Subject: [LLVMbugs] [Bug 1168] LLVM doesn't support "complex" type in "asm" statements In-Reply-To: References: Message-ID: <20101202071857.6FF362A6C136@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=1168 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #14 from Chris Lattner 2010-12-02 01:18:56 CST --- I think that this is fixed in clang, it handles the case in Comment 2. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 2 01:19:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:19:15 -0600 (CST) Subject: [LLVMbugs] [Bug 1166] [meta] gcc testsuite issues In-Reply-To: References: Message-ID: <20101202071915.1DFA62A6C139@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=1166 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2010-12-02 01:19:14 CST --- All the blocking bugs are fixed, this isn't useful anymore. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 2 01:20:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:20:47 -0600 (CST) Subject: [LLVMbugs] [Bug 1392] Need support for true tail calls In-Reply-To: References: Message-ID: <20101202072047.68E5C2A6C13A@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=1392 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2010-12-02 01:20:47 CST --- Per comment #1, arnold implemented this a long time ago. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 01:21:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:21:58 -0600 (CST) Subject: [LLVMbugs] [Bug 1590] split llvm support from non-llvm support libraries In-Reply-To: References: Message-ID: <20101202072158.C05C12A6C139@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=1590 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |LATER --- Comment #6 from Chris Lattner 2010-12-02 01:21:58 CST --- There is no plan to do this splitting out anymore. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 2 01:22:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:22:27 -0600 (CST) Subject: [LLVMbugs] [Bug 1623] The testsuite should test llvm-gcc codegen directly In-Reply-To: References: Message-ID: <20101202072227.D73692A6C137@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=1623 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2010-12-02 01:22:27 CST --- I think daniels TEST=Simple 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 Thu Dec 2 01:24:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:24:58 -0600 (CST) Subject: [LLVMbugs] [Bug 1838] x86 backend doesn't insert emms when it is needed In-Reply-To: References: Message-ID: <20101202072458.061AA2A6C139@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=1838 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Chris Lattner 2010-12-02 01:24:57 CST --- We fixed this by having the x86 backend not implicitly insert mmx ops. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 01:25:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:25:14 -0600 (CST) Subject: [LLVMbugs] [Bug 1854] nightly tester is not recording users who check out from svn In-Reply-To: References: Message-ID: <20101202072514.790552A6C139@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=1854 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2010-12-02 01:25:14 CST --- The buildbot handles this 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 Thu Dec 2 01:25:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:25:52 -0600 (CST) Subject: [LLVMbugs] [Bug 1917] Use address space markers to improve GC In-Reply-To: References: Message-ID: <20101202072552.CC7D02A6C139@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=1917 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #3 from Chris Lattner 2010-12-02 01:25:52 CST --- This is probably not a good idea, sorry I filed 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 Dec 2 01:28:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:28:15 -0600 (CST) Subject: [LLVMbugs] [Bug 2073] CBE barfs on constant struct containing long double In-Reply-To: References: Message-ID: <20101202072815.5AE6F2A6C13A@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=2073 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |LATER --- Comment #5 from Chris Lattner 2010-12-02 01:28:14 CST --- This isn't reasonably fixable in the current CBE. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 01:28:49 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:28:49 -0600 (CST) Subject: [LLVMbugs] [Bug 2153] simd-4.C fails at -O2 In-Reply-To: References: Message-ID: <20101202072849.64BDA2A6C142@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=2153 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |LATER --- Comment #4 from Chris Lattner 2010-12-02 01:28:48 CST --- -fnon-call-exceptions is tracked elsewhere. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 01:29:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:29:58 -0600 (CST) Subject: [LLVMbugs] [Bug 2175] [array_ref hack] llvm-gcc abort on tricky VLA cast In-Reply-To: References: Message-ID: <20101202072958.6174B2A6C13F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=2175 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #3 from Chris Lattner 2010-12-02 01:29:57 CST --- I have no plan to fix this. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 2 01:30:55 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:30:55 -0600 (CST) Subject: [LLVMbugs] [Bug 2399] cbe generates illegal code for sret of array In-Reply-To: References: Message-ID: <20101202073055.E97FE2A6C13F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=2399 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #3 from Chris Lattner 2010-12-02 01:30:55 CST --- This is very very difficult to fix in the CBE, maybe if it ever gets redesigned. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 01:32:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:32:58 -0600 (CST) Subject: [LLVMbugs] [Bug 2905] Implement a pretty printer for LLVM assembly. In-Reply-To: References: Message-ID: <20101202073258.A342B2A6C13F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=2905 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |LATER --- Comment #4 from Chris Lattner 2010-12-02 01:32:58 CST --- I don't think anyone is interested in doing this. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 2 01:33:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:33:47 -0600 (CST) Subject: [LLVMbugs] [Bug 3370] Eliminate the vicmp and vfcmp instructions In-Reply-To: References: Message-ID: <20101202073347.9C88B2A6C13F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3370 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-12-02 01:33:47 CST --- THis was done long ago. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 01:34:35 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:34:35 -0600 (CST) Subject: [LLVMbugs] [Bug 3373] cannot tie inline asm operands of different widths In-Reply-To: References: Message-ID: <20101202073435.BC1EC2A6C148@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3373 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #34 from Chris Lattner 2010-12-02 01:34:34 CST --- This is done in clang, and was reopened because llvm-gcc doesn't support it. We don't plan to fix llvm-gcc, so reclosing. If you'd like to keep a bug for this in dragonegg, please file a new 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 Thu Dec 2 01:35:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:35:47 -0600 (CST) Subject: [LLVMbugs] [Bug 3559] llvm-gcc emits debug info for gimple temporaries (non-user vars) In-Reply-To: References: Message-ID: <20101202073547.3019D2A6C13C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3559 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2010-12-02 01:35:46 CST --- "fixed in 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 Dec 2 01:36:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:36:02 -0600 (CST) Subject: [LLVMbugs] [Bug 3565] MallocBench/gs crashes In-Reply-To: References: Message-ID: <20101202073602.9CB8D2A6C143@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3565 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #1 from Chris Lattner 2010-12-02 01:36:02 CST --- Works 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 Thu Dec 2 01:36:34 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:36:34 -0600 (CST) Subject: [LLVMbugs] [Bug 3532] llvm-gcc fails to build Qt4.5-RC1 In-Reply-To: References: Message-ID: <20101202073634.5849A2A6C13F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3532 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Chris Lattner 2010-12-02 01:36:33 CST --- According to the comments, this 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 Thu Dec 2 01:37:03 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:37:03 -0600 (CST) Subject: [LLVMbugs] [Bug 3623] duplicate "extractvalue" not eliminated In-Reply-To: References: Message-ID: <20101202073703.F21772A6C131@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3623 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Chris Lattner 2010-12-02 01:37:03 CST --- GVN gets this 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 Thu Dec 2 01:37:55 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:37:55 -0600 (CST) Subject: [LLVMbugs] [Bug 3578] ConstantFold doesn't handle vector bitcast? In-Reply-To: References: Message-ID: <20101202073755.9C4C32A6C144@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3578 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2010-12-02 01:37:55 CST --- THis got fixed, the testcase has even been updated :) -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 01:38:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:38:40 -0600 (CST) Subject: [LLVMbugs] [Bug 3823] llvm-gcc segmentation fault during build of libstdc++ In-Reply-To: References: Message-ID: <20101202073840.7AF772A6C145@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3823 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #3 from Chris Lattner 2010-12-02 01:38:39 CST --- This is either already fixed or not going to be. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 01:39:35 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:39:35 -0600 (CST) Subject: [LLVMbugs] [Bug 3887] llvm-gcc should not build java by default In-Reply-To: References: Message-ID: <20101202073935.21A092A6C13F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3887 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #5 from Chris Lattner 2010-12-02 01:39:34 CST --- I don't think that anyone cares to mess with the GCC build process. "fixed in 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 Dec 2 01:40:32 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:40:32 -0600 (CST) Subject: [LLVMbugs] [Bug 3914] Building fail on vc++ 2008 x64 In-Reply-To: References: Message-ID: <20101202074032.B02672A6C145@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3914 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2010-12-02 01:40:31 CST --- I think this got 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 Dec 2 01:41:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:41:01 -0600 (CST) Subject: [LLVMbugs] [Bug 3870] gcc testsuite not setup for LLVM (and non-Apple Platforms) In-Reply-To: References: Message-ID: <20101202074102.A3AFD2A6C145@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3870 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |LATER --- Comment #13 from Chris Lattner 2010-12-02 01:41:01 CST --- No, there is nothing actionable left 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 Thu Dec 2 01:41:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:41:36 -0600 (CST) Subject: [LLVMbugs] [Bug 3966] Problems with addrspace(256) = GS in x86 codegen In-Reply-To: References: Message-ID: <20101202074136.41BEE2A6C14A@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3966 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2010-12-02 01:41:35 CST --- I fixed this awhile ago. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 01:42:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:42:54 -0600 (CST) Subject: [LLVMbugs] [Bug 3984] [driver] clang foo.c -std=c++98 doesn't treat inputs as C++ In-Reply-To: References: Message-ID: <20101202074254.6ECB82A6C145@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3984 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Chris Lattner 2010-12-02 01:42:54 CST --- We have a c++ frontend now! Not 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 Thu Dec 2 01:43:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:43:48 -0600 (CST) Subject: [LLVMbugs] [Bug 4158] support arbitrary-width integers in the CBE In-Reply-To: References: Message-ID: <20101202074348.A143F2A6C14A@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4158 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #7 from Chris Lattner 2010-12-02 01:43:47 CST --- this depends on someone rewriting hte CBE, the related issues aren't worth tracking with individual bugs. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 2 01:47:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:47:40 -0600 (CST) Subject: [LLVMbugs] [Bug 4266] llvm-gcc segfaults on void (*f)(enum b); if b not declared In-Reply-To: References: Message-ID: <20101202074740.51AFF2A6C148@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4266 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Chris Lattner 2010-12-02 01:47:39 CST --- Fixed in clang, and presumably dragonegg. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 2 01:50:55 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:50:55 -0600 (CST) Subject: [LLVMbugs] [Bug 4447] llvm-gcc asserts on gcc extension In-Reply-To: References: Message-ID: <20101202075055.EB2882A6C147@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4447 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2010-12-02 01:50:55 CST --- Clang heartily rejects this code. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 2 01:52:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:52:04 -0600 (CST) Subject: [LLVMbugs] [Bug 4525] llvm-gcc does not compile In-Reply-To: References: Message-ID: <20101202075205.0C81B2A6C137@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4525 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID --- Comment #5 from Chris Lattner 2010-12-02 01:52:04 CST --- Submitter says it was a config error, should build clang anyway :-) -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 01:52:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:52:37 -0600 (CST) Subject: [LLVMbugs] [Bug 4562] Miscompliation of GVN In-Reply-To: References: Message-ID: <20101202075237.564A02A6C14B@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4562 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2010-12-02 01:52:37 CST --- This has probably 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 Thu Dec 2 01:54:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:54:58 -0600 (CST) Subject: [LLVMbugs] [Bug 6194] poor x86-64 ABI calling conv passing of struct with 3 or 4 floats In-Reply-To: References: Message-ID: <20101202075458.EFD662A6C14C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6194 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #10 from Chris Lattner 2010-12-02 01:54:58 CST --- Clang generates great code for all of these testcases. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 01:56:06 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 01:56:06 -0600 (CST) Subject: [LLVMbugs] [Bug 1391] [llvm-gcc] non-local gotos not supported In-Reply-To: References: Message-ID: <20101202075606.2871E2A6C14A@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=1391 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Component|llvm-gcc |New Bugs Version|1.0 |trunk Resolution|WONTFIX | AssignedTo|unassignedbugs at nondot.org |baldrick at free.fr Product|tools |dragonegg --- Comment #2 from Duncan Sands 2010-12-02 01:56:05 CST --- Moving to dragonegg. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 2 02:07:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 02:07:41 -0600 (CST) Subject: [LLVMbugs] [Bug 8124] copy is only important at the start of a method name In-Reply-To: References: Message-ID: <20101202080742.025902A6C13C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8124 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID --- Comment #6 from Ted Kremenek 2010-12-02 02:07:41 CST --- Yes, the docs are correct. This convention has been vetted numerous times with the Cocoa guys. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 2 02:59:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 02:59:25 -0600 (CST) Subject: [LLVMbugs] [Bug 3373] cannot tie inline asm operands of different widths In-Reply-To: References: Message-ID: <20101202085925.EC21F2A6C13E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3373 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Component|new bugs |New Bugs Version|unspecified |trunk Resolution|FIXED | AssignedTo|unassignedbugs at nondot.org |baldrick at free.fr Product|new-bugs |dragonegg --- Comment #35 from Duncan Sands 2010-12-02 02:59:24 CST --- I plan to fix this in dragonegg. Moving it to the dragonegg component. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 2 03:56:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 03:56:36 -0600 (CST) Subject: [LLVMbugs] [Bug 8724] New: clang: missed optimization: copy global to local, prefetch Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8724 Summary: clang: missed optimization: copy global to local, prefetch Product: new-bugs Version: 2.8 Platform: PC URL: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46763 OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: edwintorok at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5856) --> (http://llvm.org/bugs/attachment.cgi?id=5856) gy.i.bz2 See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46763 clang 2.8 -O2 misses that optimization too: $ clang gy.i -O2 -lm $ ./a.out default: 1.405707s ( 100.0%) glob2loc: 1.295956s ( 92.2% +- 5.219%) prefetchnta: 1.226949s ( 87.3% +- 0.9207%) prefetch: 1.292528s ( 91.9% +- 0.05732%) glob2loc+prefetchnta: 1.205552s ( 85.8% +- 0.9699%) It also misses some other optimizations, because with gcc-4.5 I get: default: 1.325195s ( 100.0%) glob2loc: 1.268875s ( 95.8% +- 1.024%) prefetchnta: 1.207342s ( 91.1% +- 0.4986%) prefetch: 1.277638s ( 96.4% +- 0.1179%) glob2loc+prefetchnta: 1.199906s ( 90.5% +- 0.3629%) CPU: AMD Phenom(tm) II X6 1090T Processor clang version 2.8 (tags/RELEASE_28/rc3) 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 Dec 2 04:23:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 04:23:28 -0600 (CST) Subject: [LLVMbugs] [Bug 8725] New: Regression on 2 gcc-torture test Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8725 Summary: Regression on 2 gcc-torture test Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: quickslyver at free.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5857) --> (http://llvm.org/bugs/attachment.cgi?id=5857) first falling test the attached tests are failing, I'm sure that they passed 1 month ago, the last time I run these test. I have no time to investigate more :( They pass at -O0 but fail at -Os, so it's surely a llvm bug $ clang -v clang version 2.9 (trunk 120699) Target: i386-pc-linux-gnu Thread model: posix $ clang ~/repos/pitchoun-trunk/sim/regression/invia_regression/cpu/gcc-torture/run/gcc/20071219-1.c &&./a.out $ clang ~/repos/pitchoun-trunk/sim/regression/invia_regression/cpu/gcc-torture/run/gcc/pr35472.c && ./a.out $ clang ~/repos/pitchoun-trunk/sim/regression/invia_regression/cpu/gcc-torture/run/gcc/20071219-1.c -Os $ ./a.out Aborted $ clang ~/repos/pitchoun-trunk/sim/regression/invia_regression/cpu/gcc-torture/run/gcc/pr35472.c -Os $ ./a.out 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 Dec 2 05:43:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 05:43:54 -0600 (CST) Subject: [LLVMbugs] [Bug 8726] New: Assertion `D && "Cannot get layout of forward declarations!"' failed. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8726 Summary: Assertion `D && "Cannot get layout of forward declarations!"' failed. Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: hans at chromium.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Trying to compile the following with Clang built from trunk (r120702) hits an assert: class C; struct S { const C &c1; int i; const C &c2; }; void f(const C& c) { S s = {c, 42, c}; } clang: RecordLayoutBuilder.cpp:1615: const clang::ASTRecordLayout& clang::ASTContext::getASTRecordLayout(const clang::RecordDecl*): Assertion `D && "Cannot get layout of forward declarations!"' failed. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 2 07:05:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 07:05:16 -0600 (CST) Subject: [LLVMbugs] [Bug 3559] llvm-gcc emits debug info for gimple temporaries (non-user vars) In-Reply-To: References: Message-ID: <20101202130516.D00F02A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3559 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |baldrick at free.fr Component|llvm-gcc |New Bugs Version|2.2 |trunk Resolution|FIXED | AssignedTo|unassignedbugs at nondot.org |baldrick at free.fr Product|tools |dragonegg --- Comment #4 from Duncan Sands 2010-12-02 07:05:16 CST --- Moving to dragonegg since there is no declare for A there either (on the other hand the wrong declare for the gimple temporary isn't present in dragonegg). -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 2 09:10:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 09:10:51 -0600 (CST) Subject: [LLVMbugs] [Bug 8224] [Unit Test][ADTTests.ValueMapTest/{0, 1, 2}.LocksMutex] Failure: Mutex should already be locked. In-Reply-To: References: Message-ID: <20101202151051.7AA0E2A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8224 NAKAMURA Takumi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from NAKAMURA Takumi 2010-12-02 09:10:51 CST --- It passes on msvs10. It had been suppressed on msvs<=9 since r119782. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 09:16:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 09:16:38 -0600 (CST) Subject: [LLVMbugs] [Bug 8727] New: no-operator-names doesn't work with C++ Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8727 Summary: no-operator-names doesn't work with C++ Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: smacvicar at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com This is from a header file from c-client, was running it with: clang test.cpp -E -fno-operator-names g++ has no issues with this. #ifdef __cplusplus /* help out people who use C++ compilers */ extern "C" { /* If you use gcc, you may also have to use -fno-operator-names */ #define private cclientPrivate /* private to c-client */ #define and cclientAnd /* C99 doesn't realize that ISO 646 is dead */ #define or cclientOr #define not cclientNot #undef private } #endif -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 2 12:29:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 12:29:13 -0600 (CST) Subject: [LLVMbugs] [Bug 8726] Assertion `D && "Cannot get layout of forward declarations!"' failed. In-Reply-To: References: Message-ID: <20101202182913.2C4142A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8726 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2010-12-02 12:29:12 CST --- Fixed in r120722, thanks for the great testcase! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 2 13:22:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 13:22:07 -0600 (CST) Subject: [LLVMbugs] [Bug 8728] New: likely wrong code bug Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8728 Summary: likely wrong code bug Product: new-bugs Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: regehr at cs.utah.edu CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu [regehr at n1 ~]$ clang -O1 foo.c -o foo [regehr at n1 ~]$ ./foo g_99.f0 = 1 [regehr at n1 ~]$ clang -O2 foo.c -o foo [regehr at n1 ~]$ ./foo g_99.f0 = 0 [regehr at n1 ~]$ cat foo.c struct S2 { unsigned f0 : 27; unsigned f1 : 17; signed f2 : 18; }; struct S2 g_99 = {0,0,0}; struct S2 *g_248 = &g_99; int printf(const char *format, ...); int main(void) { struct S2 l_438 = {1,1,1}; *g_248 = l_438; *g_248 = g_99; printf("g_99.f0 = %d\n", g_99.f0); return 0; } [regehr at n1 ~]$ clang -v clang version 2.9 (trunk 120726) 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 Thu Dec 2 14:06:53 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 14:06:53 -0600 (CST) Subject: [LLVMbugs] [Bug 8124] copy is only important at the start of a method name In-Reply-To: References: Message-ID: <20101202200654.231942A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8124 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #9 from Ted Kremenek 2010-12-02 14:06:53 CST --- (In reply to comment #8) > (In reply to comment #7) > > Note, you can use the attribute 'ns_returns_not_retained' to override the > > behavior. > > This attribute is not present in the headers for any of the methods that > contain this convention. There are, in fact, no cases in Apple's Foundation or > AppKit frameworks where a method contains the word copy anywhere other than at > the start, yet returns an owned reference (many return BOOL, or some other > non-object type, some return a non-owned reference). > > If the conventions are meant to be correct, then I suggest that you remind the > Cocoa team that they have been consistently violating them for approximately 20 > years (some of the methods of this form are present in the OpenStep > specification, while some were introduced as recently as OS X 10.6). > > Surely correcting the conventions to reflect how they have been used - and the > expectations of developers, formed over many years - is a better solution than > creating lots of spurious warnings. It's all very well to say that the > conventions have been vetted, but they have clearly not been observed. A > simple grep of the headers will show that this rule is wrong. After more conversation, the Cocoa guys now agree with you. The docs will be updated, and so will the analyzer. The new rule is that any method that starts with 'copy' or 'mutableCopy' follows the copy rule. Anything else that contains 'copy' will need to use the ns_returns_retained attribute. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 2 18:33:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 18:33:27 -0600 (CST) Subject: [LLVMbugs] [Bug 8729] New: Allow diagnostic to be disabled: warn_indirection_through_null Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8729 Summary: Allow diagnostic to be disabled: warn_indirection_through_null Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement 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=5859) --> (http://llvm.org/bugs/attachment.cgi?id=5859) Fix warn_indirection_through_null is enabled by default and can currently only be disabled through -w. 02:19 < pipping> Hi. clang gives me a warning, diag::warn_indirection_through_null in particular. I'd like to disable that, how do I find out what option I need to pass to clang? 02:20 < Bigcheese> It should tell you what flag caused it right next to the warning. 02:20 < Bigcheese> Err, what flag disables it. 02:22 < pipping> it know that clang does that for some warnings, but it didn't for this one: http://dpaste.com/282079/ 02:22 <+nlewycky> then it doesn't have one. please 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 Thu Dec 2 18:43:50 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 18:43:50 -0600 (CST) Subject: [LLVMbugs] [Bug 8730] New: Missed optimization in passing bools Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8730 Summary: Missed optimization in passing bools Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: jyasskin at google.com CC: nicholas at mxc.ca, llvmbugs at cs.uiuc.edu $ cat missed_opt.cc void called(bool b); void wrapper(bool* b) { called(*b); } $ g++ --version g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3 $ g++ -S -O2 missed_opt.cc -o - ... _Z7wrapperPb: .LFB0: .cfi_startproc .cfi_personality 0x3,__gxx_personality_v0 movzbl (%rdi), %edi jmp _Z6calledb ... $ clang++ -S -O2 missed_opt.cc -o - ... _Z7wrapperPb: # @_Z7wrapperPb .Leh_func_begin0: # BB#0: # %entry pushq %rbp .Ltmp0: movq %rsp, %rbp .Ltmp1: movb (%rdi), %al andb $1, %al movzbl %al, %edi popq %rbp jmp _Z6calledb # TAILCALL $ clang++ -S -emit-llvm -O2 missed_opt.cc -o - 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 void @_Z7wrapperPb(i8* nocapture %b) { entry: %tmp1 = load i8* %b, align 1, !tbaa !0 %tmp = and i8 %tmp1, 1 %tobool = icmp ne i8 %tmp, 0 tail call void @_Z6calledb(i1 zeroext %tobool) ret void } declare void @_Z6calledb(i1 zeroext) $ The extra 'and' instruction seems to show up any time a bool is loaded from memory. Nick suggests fixing it by bitcasting to i1* before doing the load. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 2 19:10:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 2 Dec 2010 19:10:40 -0600 (CST) Subject: [LLVMbugs] [Bug 8729] Allow diagnostic to be disabled: warn_indirection_through_null In-Reply-To: References: Message-ID: <20101203011040.3082B2A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8729 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |nicholas at mxc.ca Resolution| |FIXED --- Comment #2 from Nick Lewycky 2010-12-02 19:10:39 CST --- Fixed in r120771: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20101129/036973.html Thanks for the patch! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 3 00:54:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 3 Dec 2010 00:54:23 -0600 (CST) Subject: [LLVMbugs] [Bug 8638] crash during static analysis of objective.c file In-Reply-To: References: Message-ID: <20101203065423.CBFD72A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8638 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Ted Kremenek 2010-12-03 00:54:23 CST --- Fixed: http://llvm.org/viewvc/llvm-project?view=rev&revision=120795 http://llvm.org/viewvc/llvm-project?view=rev&revision=120796 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 3 01:46:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 3 Dec 2010 01:46:09 -0600 (CST) Subject: [LLVMbugs] [Bug 8723] llvm 2.8: doesn't build on Mac OS X 10.4.11, undefined symbol ___crashreporter_info__ In-Reply-To: References: Message-ID: <20101203074609.DC8322A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8723 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from Eric Christopher 2010-12-03 01:46:09 CST --- I think this is fixed here: [issola:~/workspaces/PR8723/llvm] echristo% svn ci Sending autoconf/configure.ac Sending configure Sending include/llvm/Config/config.h.in Sending lib/Support/PrettyStackTrace.cpp Transmitting file data .... Committed revision 120801. but I don't actually have a Tiger machine sitting around anywhere :) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Dec 3 03:30:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 3 Dec 2010 03:30:14 -0600 (CST) Subject: [LLVMbugs] [Bug 8731] New: Clang generates load of struct value. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8731 Summary: Clang generates load of struct value. Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: fvbommel at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5863) --> (http://llvm.org/bugs/attachment.cgi?id=5863) The full .ll of the C++ code. Compiling this C++ code with clang: ===== #include std::pair foo(void* a, long long b) { return std::make_pair(a, b); } ===== generates the attached .ll (on x86-64 linux). The relevant snippet: ===== %"struct.std::pair" = type { i8*, i64 } define linkonce_odr %"struct.std::pair" @_ZSt9make_pairIPvxESt4pairIT_T0_ES2_S3_(i8* %__x, i64 %__y) inlinehint { entry: %retval = alloca %"struct.std::pair", align 8 %__x.addr = alloca i8*, align 8 %__y.addr = alloca i64, align 8 store i8* %__x, i8** %__x.addr, align 8 store i64 %__y, i64* %__y.addr, align 8 call void @_ZNSt4pairIPvxEC1ERKS0_RKx(%"struct.std::pair"* %retval, i8** %__x.addr, i64* %__y.addr) %0 = load %"struct.std::pair"* %retval ret %"struct.std::pair" %0 } ===== Notice that it generates a load of a struct value. At -O3, after inlining, a later transformation (-scalarrepl?) can insert an extractvalue of such loads. (this happens in LLVM's lib/CodeGen/PreAllocSplitting.cpp). According to Dan Gohman (reference: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20101129/112708.html) this merits a bug report. (The problem apparently being that loads of aggregates are compiled less efficiently than loads of their elements followed by 'insertvalue' instructions.) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Dec 3 03:39:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 3 Dec 2010 03:39:01 -0600 (CST) Subject: [LLVMbugs] [Bug 8732] New: Report function/variable/types usage Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8732 Summary: Report function/variable/types usage Product: clang Version: unspecified Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: ranma42 at gmail.com CC: llvmbugs at cs.uiuc.edu Sometimes (expecially when refactoring code) it is useful to know callers and callees of a function, functions accessing global variables and/or where a type is used. I believe that Clang Static Analyzer already has most, if not all, the infrastructure needed to compute this (obviously ignoring cases like function pointers). Would it be possible/hard/a good idea to have this kind of report in addition to the "bugreport" for 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 Fri Dec 3 09:25:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 3 Dec 2010 09:25:23 -0600 (CST) Subject: [LLVMbugs] [Bug 8733] New: AV when reporting diagnostics in some code-completion results Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8733 Summary: AV when reporting diagnostics in some code-completion results Product: clang Version: trunk Platform: All OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: plc at rowley.co.uk CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5865) --> (http://llvm.org/bugs/attachment.cgi?id=5865) Contains repro case Code completion generates an exception when reporting errors in #included macro expansions with precompiled headers enabled. > more pl230.h #define __C(X) (0xFFFFFFFFU >> (31-(X))) enum { V = __C(31), }; > more lm3s_mac.c #include "pl230.h" static void foo(void) { / } >set CINDEXTEST_EDITING=1 >c-index-test -code-completion-at=lm3s_mac.c:6:2 lm3s_mac.c -nostdinc -I. [snip] 599B66BE (0x00000004 0x00EEDAC8 0x00BDF760 0x599B6796), clang::SourceManager::ge tSLocEntry()+0142 bytes(s), e:\llvm\llvm\tools\clang\include\clang\basic\sourcem anager.h, line 818+0022 byte(s) 599B660A (0x00000004 0x00BDFC20 0x00000004 0x00E6B620), clang::SourceManager::ge tSLocEntry()+0026 bytes(s), e:\llvm\llvm\tools\clang\include\clang\basic\sourcem anager.h, line 824 ...and so on. Actually, this bug is triggered *ONLY* by CXTranslationUnit_PrecompiledPreamble as far as I can tell. Turning precompiled preamble off and we're good. You change getDefaultParsingOptions() in c-index-test, you provoke a crash or not, which is what I did. static unsigned getDefaultParsingOptions() { unsigned options = 0; // Nuke this one.. // CXTranslationUnit_DetailedPreprocessingRecord; if (getenv("CINDEXTEST_EDITING")) { // Figure out which option triggers fault: break them out... options |= CXTranslationUnit_PrecompiledPreamble; // options |= CXTranslationUnit_CacheCompletionResults; // options |= CXTranslationUnit_CXXPrecompiledPreamble; // was: options |= clang_defaultEditingTranslationUnitOptions(); } if (getenv("CINDEXTEST_COMPLETION_CACHING")) options |= CXTranslationUnit_CacheCompletionResults; return options; } This may well affect released versions of clang, I have no idea. I'm just trunking at present. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 3 16:59:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 3 Dec 2010 16:59:23 -0600 (CST) Subject: [LLVMbugs] [Bug 8734] New: [MC assembler] .float not supported Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8734 Summary: [MC assembler] .float not supported Product: new-bugs Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: dimitry at andric.com CC: llvmbugs at cs.uiuc.edu It looks like integrated-as supports the .single directive, but not the synonym .float. This should be easy to implement. :) http://sourceware.org/binutils/docs/as/Float.html says: 7.53 .float flonums This directive assembles zero or more flonums, separated by commas. It has the same effect as .single. The exact kind of floating point numbers emitted depends on how as is configured. See [Machine Dependencies]. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 3 17:56:35 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 3 Dec 2010 17:56:35 -0600 (CST) Subject: [LLVMbugs] [Bug 8735] New: c++ miscompile at -O2 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8735 Summary: c++ miscompile at -O2 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: nlewycky at google.com CC: chandlerc at gmail.com, llvmbugs at cs.uiuc.edu I have a testcase which fails when used with __versa_string. For those not familiar, versa_string is an alternate string type in libstdc++ (#include ) that implements the small string optimization. This header (and its dependencies) are missing lots of "this->" so I'm posting only the preprocessed source. You can extract the original testcase from the bottom if you're willing to change your system headers. Steps to repro: nlewycky at ducttape:~$ llvm/Debug+Asserts/bin/clang++ -O2 -fno-exceptions rr.ii -o rr nlewycky at ducttape:~$ ./rr r1 removeremove r2 removeremove i insertBar The two 'removeremove' strings should be 'removeBar'. The problem is that string::operator+ is getting the wrong 'this' pointer (but a valid one! it's just one for a different object) after opt -O2. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 4 13:44:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 4 Dec 2010 13:44:59 -0600 (CST) Subject: [LLVMbugs] [Bug 8736] New: LLVM-GCC-4.2 recursive global blocks are nil at runtime Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8736 Summary: LLVM-GCC-4.2 recursive global blocks are nil at runtime 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: keith at 33software.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5869) --> (http://llvm.org/bugs/attachment.cgi?id=5869) Demonstrates issue. Summary: When compiling a global block variable that calls itself, using LLVM GCC 4.2, the block isn't created - but compilation succeeds and the symbol is still exported. This is also filed as rdar://problem/8639147 Steps to Reproduce: Compile and run the attached test case using: @@@ llvm-gcc-4.2 RecursiveGlobalBlocks.m -framework Foundation ./a.out @@@ This will exit with EXIT_FAILURE. The output of `llvm-gcc-4.2 -v` is: @@@ Using built-in specs. Target: i686-apple-darwin10 Configured with: /var/tmp/llvmgcc42/llvmgcc42-2333.4~7/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --enable-llvm=/var/tmp/llvmgcc42/llvmgcc42-2333.4~7/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/usr/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2333.4) @@@ Recompile and run the test case using: @@@ clang RecursiveGlobalBlocks.m -framework Foundation ./a.out @@@ Compiled with clang the program will output 120 (5!) and exit with EXIT_SUCCESS The output of `clang -v` is: @@@ Apple clang version 1.6 (tags/Apple/clang-70) Target: x86_64-apple-darwin10 Thread model: posix @@@ Expected Results: Fail to compile, or ensure global blocks can call themselves. Actual Results: Global block variables which call themselves, compiled with llvm-gcc-4.2, are nil at runtime. Invoking them results in a crash when de-referencing to retrieve the function pointer. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 4 16:51:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 4 Dec 2010 16:51:23 -0600 (CST) Subject: [LLVMbugs] [Bug 8737] New: [mc assembler] .extern directive ignored Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8737 Summary: [mc assembler] .extern directive ignored Product: new-bugs Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: kwm at FreeBSD.org CC: llvmbugs at cs.uiuc.edu While building libGL with clang ToT. The following warning happens. > clang -v clang version 2.9 (trunk 120744) Target: x86_64-unknown-freebsd8.1 Thread model: posix clang -c -I. -I../../../include -I../../../include/GL/internal -I../../../src/mesa -I../../../src/mesa/glapi -I/usr/local/include -I/usr/local/include/drm -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include -I/usr/local/include -O2 -pipe -fno-strict-aliasing -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing -fPIC -DUSE_X86_64_ASM -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER -DDEFAULT_DRIVER_DIR=\"/usr/local/lib/dri\" ../../../src/mesa/x86-64/glapi_x86-64.S -o ../../../src/mesa/x86-64/glapi_x86-64.o /tmp/cc-uLf4Jd.s:14:2: warning: ignoring directive for now .extern _glapi_Dispatch ^ /tmp/cc-uLf4Jd.s:15:2: warning: ignoring directive for now .extern _gl_DispatchTSD ^ /tmp/cc-uLf4Jd.s:16:2: warning: ignoring directive for now .extern pthread_getspecific ^ -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 4 17:33:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 4 Dec 2010 17:33:07 -0600 (CST) Subject: [LLVMbugs] [Bug 8736] LLVM-GCC-4.2 recursive global blocks are nil at runtime In-Reply-To: References: Message-ID: <20101204233307.4A8352A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8736 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #1 from Chris Lattner 2010-12-04 17:33:06 CST --- Sorry, but we're not fixing frontend bugs in llvm-gcc anymore, please try 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 Sat Dec 4 17:33:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 4 Dec 2010 17:33:58 -0600 (CST) Subject: [LLVMbugs] [Bug 8732] Report function/variable/types usage In-Reply-To: References: Message-ID: <20101204233358.4C3282A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8732 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-12-04 17:33:57 CST --- libclang provides a programatic interface that provides this information. Please see Doug's talk on the devmtg 2010 page for some more info on 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 Sat Dec 4 17:35:32 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 4 Dec 2010 17:35:32 -0600 (CST) Subject: [LLVMbugs] [Bug 8731] Clang generates load of struct value. In-Reply-To: References: Message-ID: <20101204233532.9006D2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8731 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Chris Lattner 2010-12-04 17:35:32 CST --- Dan's point is that first class values in general disable fastisel. However, there is nothing that we can do about it in this case, as the ABI requires us to return them. Using insertvalue instead of load won't help us, it will cause the same fastisel bail out. When optimizations are enabled, fast isel isn't used, so there is no problem at -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 Sun Dec 5 01:03:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 5 Dec 2010 01:03:46 -0600 (CST) Subject: [LLVMbugs] [Bug 8738] New: Failure to type infer literal integer Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8738 Summary: Failure to type infer literal integer Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sashan at zenskg.net CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Hi Bumped into this clang++ failure: sashan at cyclops build $ clang++ -c -std=c++0x ~/code/cpp/auto.cpp /home/sashan/code/cpp/auto.cpp:1:6: error: cannot initialize a variable of type 'auto' with an rvalue of type 'int' auto x = 1; ^ ~ 1 error generated. sashan at cyclops build 1 $ Where auto.cpp is: auto x = 1; This compiles with g++ -c -std=c++0x. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 5 12:20:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 5 Dec 2010 12:20:43 -0600 (CST) Subject: [LLVMbugs] [Bug 8739] New: Assertion `DerivationOkay && "Can only be used with a derived-to-base conversion"' Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8739 Summary: Assertion `DerivationOkay && "Can only be used with a derived-to-base conversion"' 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 Assertion fails in trunk, but works in 2.8: class BSplitView {}; class BView {}; template class Base; template class Split : public Base { public: typedef Split ThisBuilder; ThisBuilder& GetView(BView** _view); private: BSplitView* fView; }; template typename Split::ThisBuilder& Split::GetView(BView** _view) { *_view = fView; return *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 Sun Dec 5 14:53:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 5 Dec 2010 14:53:00 -0600 (CST) Subject: [LLVMbugs] [Bug 4170] Verifier should catch illegal extractvalue instruction In-Reply-To: References: Message-ID: <20101205205300.4847A2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4170 Frits van Bommel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |fvbommel at gmail.com Resolution| |FIXED --- Comment #6 from Frits van Bommel 2010-12-05 14:52:59 CST --- Fixed by r120956. http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20101129/113151.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 Dec 5 18:37:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 5 Dec 2010 18:37:17 -0600 (CST) Subject: [LLVMbugs] [Bug 8725] Regression on 2 gcc-torture test In-Reply-To: References: Message-ID: <20101206003717.0DF602A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8725 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #4 from Chris Lattner 2010-12-05 18:37:16 CST --- Ok, I'm happy to dupe this, will take a look at your patch next. Thanks Jakub! *** This bug has been marked as a duplicate of bug 8728 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 5 18:53:55 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 5 Dec 2010 18:53:55 -0600 (CST) Subject: [LLVMbugs] [Bug 8681] clang ToT can't parse boost::addressof any more In-Reply-To: References: Message-ID: <20101206005355.4091D2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8681 Richard Smith changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #11 from Richard Smith 2010-12-05 18:53:54 CST --- The code in comment#0 and comment#5 both work with ToT. 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 Dec 5 19:48:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 5 Dec 2010 19:48:54 -0600 (CST) Subject: [LLVMbugs] [Bug 8728] likely wrong code bug In-Reply-To: References: Message-ID: <20101206014854.DAA172A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8728 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Chris Lattner 2010-12-05 19:48:54 CST --- Fixed in r120974. Also, it turns out that eliminating the memset in: tail call void @llvm.memset.i64(i8* %P, i8 42, i64 8, i32 1) tail call void @llvm.memcpy.i64(i8* %P, i8* %Q, i64 12, i32 1) isn't safe if P/Q might alias. -Chris -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Dec 5 22:36:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 5 Dec 2010 22:36:05 -0600 (CST) Subject: [LLVMbugs] [Bug 8740] New: dse can be too eager Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8740 Summary: dse can be too eager Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: tom.prince at ualberta.net CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5873) --> (http://llvm.org/bugs/attachment.cgi?id=5873) llvm IR that breaks dse. Running the attached llvm ir with lli gives -10 -10 -30 with opt -basicaa -dse | lli gives -10 -10 -10 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Dec 5 23:27:12 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 5 Dec 2010 23:27:12 -0600 (CST) Subject: [LLVMbugs] [Bug 8739] Assertion `DerivationOkay && "Can only be used with a derived-to-base conversion"' In-Reply-To: References: Message-ID: <20101206052712.1223A2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8739 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from John McCall 2010-12-05 23:27:11 CST --- Fixed in r120990. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 00:12:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 00:12:04 -0600 (CST) Subject: [LLVMbugs] [Bug 8741] New: [MC-COFF] Cannot handle globals @Lxxx (begins with 'L') on Win64. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8741 Summary: [MC-COFF] Cannot handle globals @Lxxx (begins with 'L') on Win64. Product: new-bugs Version: unspecified 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, bigcheesegs at gmail.com ; llc -mtriple=x86_64-win32 -filetype=obj declare void @L() define void @foo() { entry: call void @L() ret void } It barfs. It seems globals @Lxxx is marked as 'IsTemporary' on MCSymbol. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 01:52:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 01:52:54 -0600 (CST) Subject: [LLVMbugs] [Bug 8735] c++ miscompile at -O2 In-Reply-To: References: Message-ID: <20101206075254.CBC752A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8735 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #13 from Chris Lattner 2010-12-06 01:52:54 CST --- Fixed in r120995 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 03:58:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 03:58:48 -0600 (CST) Subject: [LLVMbugs] [Bug 6290] "Subtype of ScopedDecl not handled" in C++ mode In-Reply-To: References: Message-ID: <20101206095848.087CF2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6290 Dmitry G. Dyachenko changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Dmitry G. Dyachenko 2010-12-06 03:58:46 CST --- current C++ static checker has no relation to old 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 Mon Dec 6 04:28:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 04:28:05 -0600 (CST) Subject: [LLVMbugs] [Bug 8742] New: assert in clang after commit r120890 when compiling some valid obj-c code. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8742 Summary: assert in clang after commit r120890 when compiling some valid obj-c code. Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: release blocker Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: devlists at shadowlab.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5874) --> (http://llvm.org/bugs/attachment.cgi?id=5874) File that clang cannot compile r120890 by rjmccall, 04:47 ?Although we currently have explicit lvalue-to-rvalue conversions, they're not actually frequently used, because ImpCastExprToType only creates a node if the types differ?? After this commit, clang asserts while compiling the following code. ----------------------- extern int printf(const char *, ...); @interface WBGradientStep {} @property float start; @end void wb_checkLocation() { WBGradientStep *step = 0; printf("%.2f", step.start); } ---------------------- > clang --version clang version 2.9 (trunk 120890) Target: x86_64-apple-darwin10 Thread model: posix > clang -c test.m Assertion failed: (E->getObjectKind() == OK_Ordinary && "reached property reference without lvalue-to-rvalue"), function VisitObjCPropertyRefExpr, file /Volumes/MacPro/Projects/OpenSource/llvm/tools/clang/lib/CodeGen/CGExprScalar.cpp, line 241. 0 clang 0x0000000100e68a62 PrintStackTrace(void*) + 34 1 clang 0x0000000100e69009 SignalHandler(int) + 857 2 libSystem.B.dylib 0x00007fff8326667a _sigtramp + 26 3 libSystem.B.dylib 000000000000000000 _sigtramp + 2094635424 4 clang 0x0000000100011a76 abort + 22 5 clang 0x0000000100011a38 __assert_rtn + 56 6 clang 0x000000010019d9e9 clang::StmtVisitor<(anonymous namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*) + 41449 7 clang 0x000000010019f7e6 (anonymous namespace)::ScalarExprEmitter::EmitCastExpr(clang::CastExpr*) + 4550 ? -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 04:59:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 04:59:04 -0600 (CST) Subject: [LLVMbugs] [Bug 8743] New: Register allocation is invalid with Win64 tailcall jump Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8743 Summary: Register allocation is invalid with Win64 tailcall jump 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 ; llc -O1 -mtriple=x86_64-mingw64 %class = type { [8 x i8] } %vt = type { i32 (...)** } define %vt* @_ZN4llvm9UnsetInit20convertInitializerToEPNS_5RecTyE(%class* %this, %vt* %Ty) align 2 { entry: %0 = bitcast %vt* %Ty to %vt* (%vt*, %class*)*** %vtable = load %vt* (%vt*, %class*)*** %0, align 8 %vfn = getelementptr inbounds %vt* (%vt*, %class*)** %vtable, i64 4 %1 = load %vt* (%vt*, %class*)** %vfn, align 8 %call = tail call %vt* %1(%vt* %Ty, %class* %this) ret %vt* %call } ---- _ZN4llvm9UnsetInit20convertInitializerToEPNS_5RecTyE: # BB#0: # %entry subq $216, %rsp Ltmp0: movaps %xmm15, 32(%rsp) # 16-byte Spill movaps %xmm14, 48(%rsp) # 16-byte Spill movaps %xmm13, 64(%rsp) # 16-byte Spill movaps %xmm12, 80(%rsp) # 16-byte Spill movaps %xmm11, 96(%rsp) # 16-byte Spill movaps %xmm10, 112(%rsp) # 16-byte Spill movaps %xmm9, 128(%rsp) # 16-byte Spill movaps %xmm8, 144(%rsp) # 16-byte Spill movaps %xmm7, 160(%rsp) # 16-byte Spill movaps %xmm6, 176(%rsp) # 16-byte Spill movq %rsi, 200(%rsp) # 8-byte Spill movq %rdi, 208(%rsp) # 8-byte Spill movq %rcx, %rax movq (%rdx), %rcx movq 32(%rcx), %rsi movq %rdx, %rcx movq %rax, %rdx movq 208(%rsp), %rdi # 8-byte Reload movq 200(%rsp), %rsi # 8-byte Reload movaps 176(%rsp), %xmm6 # 16-byte Reload movaps 160(%rsp), %xmm7 # 16-byte Reload movaps 144(%rsp), %xmm8 # 16-byte Reload movaps 128(%rsp), %xmm9 # 16-byte Reload movaps 112(%rsp), %xmm10 # 16-byte Reload movaps 96(%rsp), %xmm11 # 16-byte Reload movaps 80(%rsp), %xmm12 # 16-byte Reload movaps 64(%rsp), %xmm13 # 16-byte Reload movaps 48(%rsp), %xmm14 # 16-byte Reload movaps 32(%rsp), %xmm15 # 16-byte Reload addq $216, %rsp jmpq *%rsi # TAILCALL ---- %RSI should not be used for tail jump. FYI, I don't meet this issue with -regalloc=pbqp. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 05:01:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 05:01:40 -0600 (CST) Subject: [LLVMbugs] [Bug 8744] New: Assert when code completing a #include Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8744 Summary: Assert when code completing a #include Product: clang Version: unspecified Platform: All OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: plc at rowley.co.uk CC: llvmbugs at cs.uiuc.edu clang will AV when trying to code complete at the opening < of an #include directive that has no closing >. (Not sure about whether additional tokens will do this either...) Repro: > c-index-test -code-completion-at=foo1.c:1:11 foo1.c foo1.c: #include < void foo(void) { } Also attached foo1.c. It seems as if clang is not expecting the code completion token in this case. Can't say I blame it, but the code completion token can probably pop up anywhere. There is no documented API restriction on *where* the token can appear, but just some words on where you'd expect to call code completion. I can guess at a fix; however, my clang skills are still being sharpened, so time to let the pros have a bash. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 11:11:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 11:11:44 -0600 (CST) Subject: [LLVMbugs] [Bug 8731] Clang generates load of struct value. In-Reply-To: References: Message-ID: <20101206171145.2690B2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8731 Dan Gohman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #2 from Dan Gohman 2010-12-06 11:11:44 CST --- (In reply to comment #1) > Dan's point is that first class values in general disable fastisel. No it wasn't. The concern I expressed was about optimization. Aggregate loads are never better than individual scalar loads, and can potentially be a lot worse. Fast-isel's present limitations are another reason for preferring scalar loads though. > However, > there is nothing that we can do about it in this case, as the ABI requires us > to return them. To return them yes, but there is an alternative to loading them: call void @_ZNSt4pairIPvxEC1ERKS0_RKx(%"struct.std::pair"* %retval, i8** %__x.addr, i64* %__y.addr) %0 = getelementptr %"struct.std::pair"* %retval, 0, 0 %1 = load i8** %0 %2 = getelementptr %"struct.std::pair"* %retval, 0, 1 %3 = load i64* %2 %4 = insertvalue %"struct.std::pair" undef, %1, 0 %5 = insertvalue %"struct.std::pair" %4, %3, 1 ret %"struct.std::pair" %5 I'm contemplating whether to consider it a bug in clang for not doing this, or to say that instcombine should expand aggregate loads into this form. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 12:37:10 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 12:37:10 -0600 (CST) Subject: [LLVMbugs] [Bug 8742] assert in clang after commit r120890 when compiling some valid obj-c code. In-Reply-To: References: Message-ID: <20101206183710.410312A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8742 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from John McCall 2010-12-06 12:37:09 CST --- Ha, yes, this is an amusingly well-targeted bug, thank you. Fixed in r121022. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 13:17:12 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 13:17:12 -0600 (CST) Subject: [LLVMbugs] [Bug 8745] New: [mc] Try and reenable the inst to data lowering optimization Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8745 Summary: [mc] Try and reenable the inst to data lowering optimization Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu The Inst to Data lowering was causing reads after free since we deleted the old inst fragment, but symbols would still point to it. It has been disable for now, but it could be reenabled if each fragment knew its symbols. That way we would be able to move the symbols to the new fragment. We would also be able to do this during layout instead of after it. Yet another way to do it is make sure that symbols never point to instruction fragments by creating dummy data fragments when necessary. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Dec 6 15:11:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 15:11:13 -0600 (CST) Subject: [LLVMbugs] [Bug 8740] dse can be too eager In-Reply-To: References: Message-ID: <20101206211113.6C56A2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8740 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Chris Lattner 2010-12-06 15:11:13 CST --- DSE is doing the correct thing here, your IR is invalid: %11 = tail call fastcc {} %10(i8* %9) nounwind This call is loading from the %0 alloca, which is illegal for calls marked tail. See LangRef.html for more information. If you remove "tail" from the call, DSE doesn't change the behavior of the 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 Mon Dec 6 15:17:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 15:17:27 -0600 (CST) Subject: [LLVMbugs] [Bug 8746] New: Scalar evolution loops forever (after 2h I got impatient :) on input file Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8746 Summary: Scalar evolution loops forever (after 2h I got impatient :) on input file Product: tools Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: opt AssignedTo: unassignedbugs at nondot.org ReportedBy: arnold.schwaighofer at gmail.com CC: llvmbugs at cs.uiuc.edu Running 'opt -O2 IndVarFailure.red.ll' will loop probably forever (if one can ever make that claim). The C-file that generated this IR is also attached: IndVarFailure.red.c. This C file is the result of unrolling the HPC Challenge random access benchmark 16 times. I tried to figure out what is going and could track it down to the scalar evolution analysis that runs before 'indvars'. I tried to debug it, but I got lost in deep recursions of scalar evolution. I have also attached the IR at that point: 'opt -indvars indvarsbug.2.bp.ll' will exhibit the same behavior. Last tested with revision 121016. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 15:21:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 15:21:23 -0600 (CST) Subject: [LLVMbugs] [Bug 5335] [DSE] slow compile time on this testcase In-Reply-To: References: Message-ID: <20101206212123.64EEB2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5335 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2010-12-06 15:21:22 CST --- I believe that the root problem (initializer lowering) has already been fixed in clang. If you have the original C testcase that this came from, please verify or attach to the PR and I'll do 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 Dec 6 15:46:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 15:46:13 -0600 (CST) Subject: [LLVMbugs] [Bug 8747] New: [x86] error in definition of SSE 4.1 round_ps intrinsic? Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8747 Summary: [x86] error in definition of SSE 4.1 round_ps intrinsic? Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu The round_ps intrinsic seems to be defined to take 2 float vector parameters in addition to the desired rounding mode. This doesn't seem to match the definition of the instruction, which does take two SSE registers, but the first operand is the register where the result is returned. As a repro case, when I run the attached test program, I get as output: % ./a.out <4 x float> (<4 x float>, <4 x float>, i32) % whereas I'd expect it to give "<4 x float> (<4 x float>, i32)" I'm not enough of an llvm internals expert to provide a suggested patch, but I assume this is an easy fix (assuming my bug report is correct.) Thanks, -matt -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 16:34:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 16:34:46 -0600 (CST) Subject: [LLVMbugs] [Bug 8748] New: Default template arguments in out-of-line member definitions not rejected. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8748 Summary: Default template arguments in out-of-line member definitions not rejected. 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 accept both of the following // Testcase 1 struct A { template struct B; }; template struct A::B { }; // Testcase 2 template struct A { template struct B; }; template template struct A::B { }; The draft standard n3225 however says at [temp.param]p9 (and C++03 uses wording too, to that effect there): "A default template-argument shall not be specified in the template-parameter-lists of the definition of a member of a class template that appears outside of the member's class." So Testcase 2 seems to be ill-formed. Incidentally, Clang doesn't compile Testcase 2 if we want to make use of the default argument, as in "A::B<>". I'm not exactly sure how much of it is QoI and how much is required to be diagnosed. If we do *not* make use of the default argument, then clang doesn't complain at all if we say "A::B". However here the ill-formeness doesn't occur in the definition of the default argument, but with its mere presence in the definition, so if we require the definition of "A::B" but not the definition of the default argument, I can't clearly cut the border of where required diagnostics end and QoI starts. It would seem to be easy to diagnose the default argument nontheless to me, already when its definition is parsed. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 16:36:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 16:36:46 -0600 (CST) Subject: [LLVMbugs] [Bug 8747] [x86] error in definition of SSE 4.1 round_ss intrinsic? In-Reply-To: References: Message-ID: <20101206223646.08BC82A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8747 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |INVALID --- Comment #8 from Eric Christopher 2010-12-06 16:36:45 CST --- Pretty sure this is correct. The llvm intrinsic is designed to be similar to the _mm_round_ss api intrinsic which is: __m128 _mm_round_ss (__m128 a, __m128 b, const int c) >From some documentation: A 128-bit parameter. The lowest 32 bits are the result of the rounding function on b0. The higher order 96 bits are copied directly from input parameter a. The return value is described by the following equations: r0 = RND(b0) r1 = a1 r2 = a2 r3 = a3 Yeah, it's weird. No, it really doesn't make any sense. Apparently it's intentional 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 Dec 6 17:36:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 17:36:39 -0600 (CST) Subject: [LLVMbugs] [Bug 8749] New: PPC stack references broken Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8749 Summary: PPC stack references broken 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: dalej at apple.com CC: llvmbugs at cs.uiuc.edu Run the following through llc -disable-fp-elim ; ModuleID = 'main.c' target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f128:64:128-n32" target triple = "powerpc-apple-darwin9.8" define i32 @main() nounwind { entry: %retval = alloca i32 %0 = alloca i32 %"alloca point" = bitcast i32 0 to i32 store i32 0, i32* %0, align 4 %1 = load i32* %0, align 4 store i32 %1, i32* %retval, align 4 br label %return return: ; preds = %entry %retval1 = load i32* %retval ret i32 %retval1 } You will see stw r3, -12(r31) but R31 is not set anywhere. I suspect this was introduced in Anton's rewrite of this area, but haven't analyzed further. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 17:41:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 17:41:41 -0600 (CST) Subject: [LLVMbugs] [Bug 8714] Jump threading doesn't handle indirectbr very well. In-Reply-To: References: Message-ID: <20101206234141.C5F3A2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8714 Frits van Bommel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Frits van Bommel 2010-12-06 17:41:41 CST --- Fixed in r121066. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 18:58:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 18:58:08 -0600 (CST) Subject: [LLVMbugs] [Bug 8723] llvm 2.8: doesn't build on Mac OS X 10.4.11, undefined symbol ___crashreporter_info__ In-Reply-To: References: Message-ID: <20101207005808.58D1B2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8723 margali at imapmail.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |margali at imapmail.org Resolution|FIXED | --- Comment #5 from margali at imapmail.org 2010-12-06 18:58:07 CST --- (In reply to comment #4) > I think this is fixed here: > > [issola:~/workspaces/PR8723/llvm] echristo% svn ci > Sending autoconf/configure.ac > Sending configure > Sending include/llvm/Config/config.h.in > Sending lib/Support/PrettyStackTrace.cpp > Transmitting file data .... > Committed revision 120801. > > but I don't actually have a Tiger machine sitting around anywhere :) I am still getting the same error. I checked out llvm from svn (2010-12-06). configured with: ./configure \ CC=gcc-4.5 \ CXX=g++-4.5 \ CPP=cpp-4.5 \ GCJ=gcj-4.5 \ --enable-targets=host-only make fails with the following error: llvm[2]: Compiling FileCheck.cpp for Debug+Asserts build llvm[2]: Linking Debug+Asserts executable FileCheck /usr/bin/ld: Undefined symbols: ___crashreporter_info__ collect2: ld returned 1 exit status make[2]: *** [/Users//Documents/src/llvm-svn-2010-12-06/Debug+Asserts/bin/FileCheck] Error 1 make[1]: *** [FileCheck/.makeall] Error 2 make: *** [all] Error 1 I do not understand these things at all but should config.log contain: #define HAVE_CRASHREPORTER_INFO 1 when ___crashreporter_info__ is apparently unavailable? Mac OS X 10.4.11: Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc gcc: Target: powerpc-apple-darwin8.11.0 Configured with: ../gcc-4.5.1/configure --disable-libjava-multilib --program-suffix=-4.5 Thread model: posix gcc version 4.5.1 (GCC) config.log attached -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Dec 6 19:45:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 19:45:48 -0600 (CST) Subject: [LLVMbugs] [Bug 8223] [Unit Test] All death tests fail when run from lit on Windows 7. In-Reply-To: References: Message-ID: <20101207014548.9ED162A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8223 Michael Spencer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Michael Spencer 2010-12-06 19:45:48 CST --- Fixed by r121095. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 19:59:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 19:59:46 -0600 (CST) Subject: [LLVMbugs] [Bug 8710] Optimizer moves a @__cxx_global_var_init into a constant expression, causing as to fail In-Reply-To: References: Message-ID: <20101207015946.3EAE42A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8710 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Chris Lattner 2010-12-06 19:59:45 CST --- Fixed in r121100, 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 Dec 6 20:06:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 20:06:27 -0600 (CST) Subject: [LLVMbugs] [Bug 8723] llvm 2.8: doesn't build on Mac OS X 10.4.11, undefined symbol ___crashreporter_info__ In-Reply-To: References: Message-ID: <20101207020627.4D23E2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8723 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #9 from Eric Christopher 2010-12-06 20:06:26 CST --- OK. I've committed something, please give that a shot. 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 Dec 6 21:24:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 21:24:36 -0600 (CST) Subject: [LLVMbugs] [Bug 8741] [MC-COFF] Cannot handle globals @Lxxx (begins with 'L') on Win64. In-Reply-To: References: Message-ID: <20101207032436.5A6262A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8741 NAKAMURA Takumi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from NAKAMURA Takumi 2010-12-06 21:24:35 CST --- Applied in r121103. There are still many issues to build clang-x64 selfhost. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 23:25:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 23:25:14 -0600 (CST) Subject: [LLVMbugs] [Bug 8750] New: Incorrect OR of conversion function templates against non-template conversion functions Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8750 Summary: Incorrect OR of conversion function templates against non-template conversion functions 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 googlemail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Clang accepts the following code void f(int); void f(long); struct A { template operator T(); operator long(); }; int main() { f(A()); } However it's supposed to reject it: For the first f, you end up using the "operator T" (since int -> int is better than long -> int), and for the second f, you end up using the non-template operator long (since it's a non-template, it's preferred over the function template specialization). The two user defined conversion sequences created aren't comparable because they don't use the same conversion function. So the call is ambiguous. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 6 23:28:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 6 Dec 2010 23:28:41 -0600 (CST) Subject: [LLVMbugs] [Bug 8699] Store of 3 constant bytes should be combined into one i24 store (regression) In-Reply-To: References: Message-ID: <20101207052841.458282A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8699 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #4 from Chris Lattner 2010-12-06 23:28:40 CST --- Agreed, those should be merged. However, they should be merged at codegen time, not in the IR. Doing it at the IR level will obscure the type relation and confuse things. Merging at codegen time is tracked by PR3473 *** This bug has been marked as a duplicate of bug 3473 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 7 05:33:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 7 Dec 2010 05:33:26 -0600 (CST) Subject: [LLVMbugs] [Bug 8751] New: r120890 breaks property in Obj-C++ Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8751 Summary: r120890 breaks property in Obj-C++ Product: clang Version: trunk Platform: PC 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 r120890 by rjmccall, 04:47 ?Although we currently have explicit lvalue-to-rvalue conversions, they're not actually frequently used, because ImpCastExprToType only creates a node if the types differ?? After this commit, clang asserts while compiling the following code in Obj-C++ (it works when compiling in Obj-C) ---------------------- @interface Test {} @property int foo; @end int test(Test *t) { return t.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 Dec 7 06:52:06 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 7 Dec 2010 06:52:06 -0600 (CST) Subject: [LLVMbugs] [Bug 8752] New: Clang -Wunused should warn on unusable (member) functions. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8752 Summary: Clang -Wunused should warn on unusable (member) functions. 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: fvbommel at gmail.com CC: llvmbugs at cs.uiuc.edu -Wunused (or -Wunused-function) should produce warnings for (member) functions that can't possibly be used, for instance because their return value or one of their parameters (including 'this') contains a class type declared in an anonymous namespace. (extern "C" functions should probably be exempt) Some examples: ===== // From some .h file. class Bar { public: virtual void frob(); }; // From some .cpp file. namespace { // Because Foo is in an anonymous namespace, newly-introduced members // can't be used from different translation units. class Foo : public Bar { virtual void frob() { // May be used externally. } int quux() { // Unused, but doesn't produce warning. return 1; } static int baz() { // Unused, but doesn't produce warning. return 2; } }; // Unused, produces warning. Bar* getAnonNSBar() { return new Foo; } } // Unused, produces warning. static Bar* getStaticBar() { return new Foo; } // Unused, but doesn't produce warning. Foo* getFoo() { return new Foo; } // May be used externally. Bar* getBar() { return new 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 Dec 7 07:50:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 7 Dec 2010 07:50:08 -0600 (CST) Subject: [LLVMbugs] [Bug 8753] New: clang compiling net/atm/mpc.c in linux runs indefinetely Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8753 Summary: clang compiling net/atm/mpc.c in linux runs indefinetely Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: dave at jikos.cz CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5881) --> (http://llvm.org/bugs/attachment.cgi?id=5881) net/atm/mpc.c file set to reproduce Tested clang up to 121127, and same problem with llvm-gcc frontend -- compilation runs indefinitely (at least one whole night ...). The file is preprocessed without problems (attached with compilation commands). -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 7 09:25:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 7 Dec 2010 09:25:44 -0600 (CST) Subject: [LLVMbugs] [Bug 8720] llvm-gcc testsuite regressions with symbol aliases In-Reply-To: References: Message-ID: <20101207152544.2E54B2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8720 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Rafael ?vila de Esp?ndola 2010-12-07 09:25:43 CST --- Fixed in 121137. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 7 14:00:34 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 7 Dec 2010 14:00:34 -0600 (CST) Subject: [LLVMbugs] [Bug 8723] llvm 2.8: doesn't build on Mac OS X 10.4.11, undefined symbol ___crashreporter_info__ In-Reply-To: References: Message-ID: <20101207200034.4CF612A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8723 margali at imapmail.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #10 from margali at imapmail.org 2010-12-07 14:00:33 CST --- (In reply to comment #9) > OK. I've committed something, please give that a shot. Thanks! Thanks! That seems to have done the trick. If I use the same configure command as before, the build still fails but the error is different: llvm[4]: ======= Finished Linking Debug+Asserts Executable Sample llvm[3]: Compiling llvm_ocaml.c for Debug+Asserts build llvm_ocaml.c: In function 'llvm_const_extractvalue': llvm_ocaml.c:636:3: warning: implicit declaration of function 'CAMLreturnT' llvm_ocaml.c:636:15: error: expected expression before 'LLVMValueRef' llvm_ocaml.c:624:3: warning: unused variable 'caml__frame' llvm_ocaml.c: In function 'llvm_const_insertvalue': llvm_ocaml.c:654:15: error: expected expression before 'LLVMValueRef' llvm_ocaml.c:642:3: warning: unused variable 'caml__frame' llvm_ocaml.c:655:1: warning: control reaches end of non-void function llvm_ocaml.c: In function 'llvm_const_extractvalue': llvm_ocaml.c:637:1: warning: control reaches end of non-void function directorys//Documents/src/llvm-svn-2010-12-07/bindings/ocaml/llvm/Debug+Asserts/llvm_ocaml.d.tmp: No such file or make[3]: *** [/Users//Documents/src/llvm-svn-2010-12-07/bindings/ocaml/llvm/Debug+Asserts/llvm_ocaml.o] Error 1 make[2]: *** [all] Error 1 make[1]: *** [ocaml/.makeall] Error 2 make: *** [all] Error 1 If I add --disable-bindings to the configure options, however, make succeeds although running make check produces many errors: Expected Passes : 290 Expected Failures : 9 Unsupported Tests : 3044 Unexpected Failures: 2359 make[1]: *** [check-local-lit] Error 1 make: *** [check] Error 2 I'm not sure whether this would be expected or not. Let me know if you would like further information (eg complete output from make check). -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Dec 7 14:52:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 7 Dec 2010 14:52:46 -0600 (CST) Subject: [LLVMbugs] [Bug 8723] llvm 2.8: doesn't build on Mac OS X 10.4.11, undefined symbol ___crashreporter_info__ In-Reply-To: References: Message-ID: <20101207205246.148692A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8723 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #11 from Eric Christopher 2010-12-07 14:52:45 CST --- Yeah, you've probably just got an old version of ocaml installed. Not really interested in fixing that. You may wish to file a bug with what's causing all of the failures in the test suite 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 Tue Dec 7 16:37:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 7 Dec 2010 16:37:33 -0600 (CST) Subject: [LLVMbugs] [Bug 8754] New: make check gives 2359 unexpected failures on mac os x Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8754 Summary: make check gives 2359 unexpected failures on mac os x 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: margali at imapmail.org CC: llvmbugs at cs.uiuc.edu source checked out today (2010-12-07) Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc using gcc: Target: powerpc-apple-darwin8.11.0 Configured with: ../gcc-4.5.1/configure --disable-libjava-multilib --program-suffix=-4.5 Thread model: posix gcc version 4.5.1 (GCC) llvm configured with: ./configure \ CC=gcc-4.5 \ CXX=g++-4.5 \ CPP=cpp-4.5 \ GCJ=gcj-4.5 \ --enable-targets=host-only \ --disable-bindings configure and make succeed make check fails with: Expected Passes : 290 Expected Failures : 9 Unsupported Tests : 3044 Unexpected Failures: 2359 make[1]: *** [check-local-lit] Error 1 make: *** [check] Error 2 output from make check attached (check.out) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Dec 7 16:56:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 7 Dec 2010 16:56:27 -0600 (CST) Subject: [LLVMbugs] [Bug 8751] r120890 breaks property in Obj-C++ In-Reply-To: References: Message-ID: <20101207225627.AE44E2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8751 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from John McCall 2010-12-07 16:56:27 CST --- Fixed in r121194, 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 Dec 7 20:56:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 7 Dec 2010 20:56:37 -0600 (CST) Subject: [LLVMbugs] [Bug 8755] New: "class X" where X names a typedef has a worse error when X is templated Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8755 Summary: "class X" where X names a typedef has a worse error when X is templated Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com This testcase shows a case where clang emits a worse error, just due to the template: template struct A { typedef int iterator; }; template void f() { class A ::iterator foo; } void g() { f(); } which generates: b3264413.cc:8:17: error: no class named 'iterator' in 'A' class A ::iterator foo; ^ b3264413.cc:12:3: note: in instantiation of function template specialization 'f' requested here f(); ^ 1 error generated. while the untemplated example: struct A { typedef int iterator; }; void f() { class A::iterator foo; } generates the much nicer: class.cc:6:12: error: elaborated type refers to a typedef class A::iterator foo; ^ class.cc:2:15: note: declared here typedef int iterator; ^ 1 error generated. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Dec 7 22:40:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 7 Dec 2010 22:40:37 -0600 (CST) Subject: [LLVMbugs] [Bug 8756] New: Assert while parsing 'using' declaration Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8756 Summary: Assert while parsing 'using' declaration Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: matthewbg at google.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Test case attached. In an opt build, this manifests as a segfault. $ ./Debug+Asserts/bin/clang -fsyntax-only /tmp/crasher.cc clang: /home/matthewbg/llvm/trunk/tools/clang/lib/CodeGen/../../include/clang/AST/DeclCXX.h:397: const clang::CXXRecordDecl::DefinitionData& clang::CXXRecordDecl::data() const: Assertion `DefinitionData && "queried property of class with no definition"' failed. 0 clang 0x000000000224e455 1 clang 0x000000000224e248 2 libpthread.so.0 0x00007febdef208f0 3 libc.so.6 0x00007febde20fa75 gsignal + 53 4 libc.so.6 0x00007febde2135c0 abort + 384 5 libc.so.6 0x00007febde208941 __assert_fail + 241 6 clang 0x00000000010bf5b4 clang::CXXRecordDecl::data() const + 56 7 clang 0x00000000010bf5d6 clang::CXXRecordDecl::bases_begin() const + 24 8 clang 0x0000000001668349 clang::CXXRecordDecl::forallBases(bool (*)(clang::CXXRecordDecl const*, void*), void*, bool) const + 83 9 clang 0x00000000012f2e53 10 clang 0x00000000012f3266 clang::Sema::CheckUsingDeclQualifier(clang::SourceLocation, clang::CXXScopeSpec const&, clang::SourceLocation) + 906 11 clang 0x00000000012f24a0 clang::Sema::BuildUsingDeclaration(clang::Scope*, clang::AccessSpecifier, clang::SourceLocation, clang::CXXScopeSpec&, clang::DeclarationNameInfo const&, clang::AttributeList*, bool, bool, clang::SourceLocation) + 790 12 clang 0x00000000012f16b3 clang::Sema::ActOnUsingDeclaration(clang::Scope*, clang::AccessSpecifier, bool, clang::SourceLocation, clang::CXXScopeSpec&, clang::UnqualifiedId&, clang::AttributeList*, bool, clang::SourceLocation) + 953 13 clang 0x0000000001230ed8 clang::Parser::ParseUsingDeclaration(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::SourceLocation, clang::SourceLocation&, clang::AccessSpecifier) + 798 14 clang 0x0000000001234114 clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject*) + 1626 15 clang 0x0000000001235207 clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int, clang::Decl*) + 1371 16 clang 0x00000000012331cd clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 5895 17 clang 0x0000000001226763 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 5685 18 clang 0x000000000121d187 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&, clang::AttributeList*, clang::AccessSpecifier) + 135 19 clang 0x000000000121d58d clang::Parser::ParseDeclarationOrFunctionDefinition(clang::AttributeList*, clang::AccessSpecifier) + 95 20 clang 0x000000000121ceee clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList, clang::Parser::ParsingDeclSpec*) + 2296 21 clang 0x000000000122fdca clang::Parser::ParseNamespace(unsigned int, clang::SourceLocation&, clang::SourceLocation) + 1642 22 clang 0x0000000001223642 clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::CXX0XAttributeList) + 680 23 clang 0x000000000121cb0f clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList, clang::Parser::ParsingDeclSpec*) + 1305 24 clang 0x000000000121c567 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 343 25 clang 0x0000000001206144 clang::ParseAST(clang::Sema&, bool) + 328 26 clang 0x0000000000f6ae29 clang::ASTFrontendAction::ExecuteAction() + 263 27 clang 0x0000000000f6aa7a clang::FrontendAction::Execute() + 320 28 clang 0x0000000000f538f1 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 751 29 clang 0x0000000000f04f99 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 854 30 clang 0x0000000000ef80e9 cc1_main(char const**, char const**, char const*, void*) + 1032 31 clang 0x0000000000f01099 main + 499 32 libc.so.6 0x00007febde1fac4d __libc_start_main + 253 33 clang 0x0000000000ef7759 Stack dump: 0. Program arguments: /home/matthewbg/llvm/trunk/Debug+Asserts/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name crasher.cc -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.1 -resource-dir /home/matthewbg/llvm/trunk/Debug+Asserts/bin/../lib/clang/2.9 -ferror-limit 19 -fmessage-length 80 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -x c++ /tmp/crasher.cc 1. /tmp/crasher.cc:7:3: current parser token '}' 2. /tmp/crasher.cc:1:1: parsing namespace 'foo' 3. /tmp/crasher.cc:4:3: parsing struct/union/class body 'Class2' -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 7 23:21:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 7 Dec 2010 23:21:38 -0600 (CST) Subject: [LLVMbugs] [Bug 7987] ELFObjectWriter emits wrong relocation type for PLT symbols In-Reply-To: References: Message-ID: <20101208052138.ABBB92A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7987 Zhongxing Xu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Zhongxing Xu 2010-12-07 23:21:38 CST --- This bug was fixed. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Dec 7 23:27:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 7 Dec 2010 23:27:38 -0600 (CST) Subject: [LLVMbugs] [Bug 8757] New: likely wrong code bug Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8757 Summary: likely wrong code 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 The -O1 result is right. regehr at home:~$ clang -O1 small.c -o small regehr at home:~$ ./small g_62 = 255 regehr at home:~$ clang -O2 small.c -o small regehr at home:~$ ./small g_62 = 0 regehr at home:~$ clang -v clang version 2.9 (trunk 121234) Target: i386-pc-linux-gnu Thread model: posix regehr at home:~$ cat small.c static int g_62 = 0; extern int printf(const char *format, ...); static signed char foo(signed char left, int right) { if ((left < 0) || (left > (127 >> right))) { return left; } else { return left << right; } } static unsigned short bar(unsigned short left, int right) { return left >> right; } int main(void) { int l_111[1]; int i; for (i = 0; i < 1; i++) l_111[i] = 128; g_62 = bar(foo(l_111[0], 8), 8); printf("g_62 = %d\n", g_62); return 0; } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Dec 8 11:47:42 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 8 Dec 2010 11:47:42 -0600 (CST) Subject: [LLVMbugs] [Bug 8711] [mc assembler] very slow layout In-Reply-To: References: Message-ID: <20101208174742.42CFA2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8711 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #7 from Rafael ?vila de Esp?ndola 2010-12-08 11:47:41 CST --- I think this is fixed now: $ time ./Release+Asserts/bin/llc bug.bc -o bug.s real 0m16.572s user 0m16.210s sys 0m0.302s $ time ./Release+Asserts/bin/llc bug.bc -o bug.o -filetype=obj real 0m12.854s user 0m12.599s sys 0m0.213s -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 8 17:24:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 8 Dec 2010 17:24:25 -0600 (CST) Subject: [LLVMbugs] [Bug 8758] New: [patch] Don't use GZIP variable, it is used by gzip itself Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8758 Summary: [patch] Don't use GZIP variable, it is used by gzip itself Product: Build scripts Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Makefiles AssignedTo: unassignedbugs at nondot.org ReportedBy: asau at inbox.ru CC: llvmbugs at cs.uiuc.edu If you have GZIP variable in environment, build fails in an obscure way. Don't use GZIP variable, it is used by gzip itself, rename it to GZIPBIN. --- Makefile.config.in.orig 2010-04-01 06:23:56.000000000 +0400 +++ Makefile.config.in 2010-04-01 06:31:38.000000000 +0400 @@ -159,7 +159,7 @@ DOT := @DOT@ DOXYGEN := @DOXYGEN@ GROFF := @GROFF@ -GZIP := @GZIP@ +GZIPBIN := @GZIP@ OCAMLC := @OCAMLC@ OCAMLOPT := @OCAMLOPT@ OCAMLDEP := @OCAMLDEP@ --- docs/Makefile.orig 2009-12-15 00:10:07.000000000 +0000 +++ docs/Makefile @@ -59,7 +59,7 @@ $(PROJ_OBJ_DIR)/html.tar.gz: $(HTML) $(Verb) $(RM) -rf $@ $(PROJ_OBJ_DIR)/html.tar $(Verb) cd $(PROJ_SRC_DIR) && \ $(TAR) cf $(PROJ_OBJ_DIR)/html.tar *.html - $(Verb) $(GZIP) $(PROJ_OBJ_DIR)/html.tar + $(Verb) $(GZIPBIN) $(PROJ_OBJ_DIR)/html.tar install-doxygen: doxygen $(Echo) Installing doxygen documentation @@ -82,7 +82,7 @@ $(PROJ_OBJ_DIR)/doxygen.tar.gz: $(DOXYFI $(Echo) Packaging doxygen documentation $(Verb) $(RM) -rf $@ $(PROJ_OBJ_DIR)/doxygen.tar $(Verb) $(TAR) cf $(PROJ_OBJ_DIR)/doxygen.tar doxygen - $(Verb) $(GZIP) $(PROJ_OBJ_DIR)/doxygen.tar + $(Verb) $(GZIPBIN) $(PROJ_OBJ_DIR)/doxygen.tar $(Verb) $(CP) $(PROJ_OBJ_DIR)/doxygen.tar.gz $(PROJ_OBJ_DIR)/doxygen/html/ userloc: $(LLVM_SRC_ROOT)/docs/userloc.html @@ -104,7 +104,7 @@ ocamldoc: regen-ocamldoc $(Echo) Packaging ocamldoc documentation $(Verb) $(RM) -rf $(PROJ_OBJ_DIR)/ocamldoc.tar* $(Verb) $(TAR) cf $(PROJ_OBJ_DIR)/ocamldoc.tar ocamldoc - $(Verb) $(GZIP) $(PROJ_OBJ_DIR)/ocamldoc.tar + $(Verb) $(GZIPBIN) $(PROJ_OBJ_DIR)/ocamldoc.tar $(Verb) $(CP) $(PROJ_OBJ_DIR)/ocamldoc.tar.gz $(PROJ_OBJ_DIR)/ocamldoc/html/ regen-ocamldoc: -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 8 17:33:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 8 Dec 2010 17:33:31 -0600 (CST) Subject: [LLVMbugs] [Bug 8759] New: Assertion failed: (Symbol->isUndefined() && "Cannot define a symbol twice!") Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8759 Summary: Assertion failed: (Symbol->isUndefined() && "Cannot define a symbol twice!") Product: new-bugs Version: trunk Platform: PC OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: mathieu.rene at gmail.com CC: llvmbugs at cs.uiuc.edu LLVM SVN: 121295 CLANG SVN: 121288 mrene:src mrene$ llc -O3 dspkit.bc -o dspkit.s Assertion failed: (Symbol->isUndefined() && "Cannot define a symbol twice!"), function EmitLabel, file /Users/mrene/llvm-svn/lib/MC/MCAsmStreamer.cpp, line 265. 0 llc 0x00000001009a8c2d PrintStackTrace(void*) + 38 1 llc 0x00000001009a91e8 SignalHandler(int) + 254 2 libSystem.B.dylib 0x00007fff86c0167a _sigtramp + 26 3 libSystem.B.dylib 0x000000010a8eeae0 _sigtramp + 2211370112 4 llc 0x000000010002a7eb raise + 27 5 llc 0x000000010002a7fb abort + 14 6 llc 0x000000010002a888 __gnu_cxx::new_allocator::new_allocator() + 0 7 llc 0x0000000100944f33 (anonymous namespace)::MCAsmStreamer::EmitLabel(llvm::MCSymbol*) + 83 8 llc 0x0000000100532bda llvm::DwarfDebug::emitDebugInfo() + 258 9 llc 0x000000010053dc65 llvm::DwarfDebug::endModule() + 2013 10 llc 0x0000000100524b27 llvm::AsmPrinter::doFinalization(llvm::Module&) + 527 11 llc 0x00000001008e593f llvm::FPPassManager::doFinalization(llvm::Module&) + 67 12 llc 0x00000001008e96ca llvm::FPPassManager::runOnModule(llvm::Module&) + 120 13 llc 0x00000001008e91a0 llvm::MPPassManager::runOnModule(llvm::Module&) + 384 14 llc 0x00000001008ea951 llvm::PassManagerImpl::run(llvm::Module&) + 111 15 llc 0x00000001008ea9b3 llvm::PassManager::run(llvm::Module&) + 33 16 llc 0x000000010002da7b main + 2305 17 llc 0x000000010002cb60 start + 52 Stack dump: 0. Program arguments: llc -O3 dspkit.bc -o dspkit.s 1. Running pass 'Function Pass Manager' on module 'dspkit.bc'. Illegal instruction mrene:src mrene$ (gdb) p *Symbol $1 = { static AbsolutePseudoSection = 0x1, Name = { static npos = 18446744073709551615, Data = 0x10a8ee4f8 "Linfo_begin10", Length = 13 }, Section = 0x102a68410, Value = 0x0, IsTemporary = 1, IsUsed = 0 } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Dec 8 18:00:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 8 Dec 2010 18:00:31 -0600 (CST) Subject: [LLVMbugs] [Bug 8760] New: cannot codegen constructor initializer of pointer to templated type in a union Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8760 Summary: cannot codegen constructor initializer of pointer to templated type in a union Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu Testcase: template struct Foo { Foo() : ptr(__nullptr) {} union { T *ptr; }; }; Foo f; this fails with: nlewycky at ducttape:~$ llvm/Debug+Asserts/bin/clang++ -c union-init.cc 0 clang 0x0000000002252b21 1 clang 0x0000000002252914 2 libpthread.so.0 0x00007f9b549708f0 3 clang 0x0000000000f15afa llvm::PointerIntPair, 2u, unsigned int, llvm::PointerLikeTypeTraits > >::getPointer() const + 16 4 clang 0x0000000000f107ea clang::QualType::hasLocalNonFastQualifiers() const + 24 5 clang 0x0000000000f106e0 clang::QualType::getTypePtr() const + 24 6 clang 0x0000000000f108b8 llvm::simplify_type::getSimplifiedValue(clang::QualType const&) + 24 7 clang 0x0000000000fa0323 llvm::isa_impl_wrap::doit(clang::QualType const&) + 24 8 clang 0x0000000000fa0103 bool llvm::isa_impl_cl::isa(clang::QualType const&) + 24 9 clang 0x0000000000f9f94f bool llvm::isa(clang::QualType const&) + 24 10 clang 0x000000000111cd12 clang::Type::isRecordType() const + 24 11 clang 0x00000000011e2c3a clang::CodeGen::CodeGenFunction::hasAggregateLLVMType(clang::QualType) + 32 12 clang 0x00000000011683aa clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 48 13 clang 0x00000000010fc66f 14 clang 0x00000000010fd091 clang::CodeGen::CodeGenFunction::EmitCtorPrologue(clang::CXXConstructorDecl const*, clang::CXXCtorType, llvm::SmallVector, 16u>&) + 327 15 clang 0x00000000010fcebd clang::CodeGen::CodeGenFunction::EmitConstructorBody(llvm::SmallVector, 16u>&) + 355 16 clang 0x00000000011e40a3 clang::CodeGen::CodeGenFunction::GenerateCode(clang::CodeGen::GlobalDecl, llvm::Function*) + 835 17 clang 0x00000000010edc47 clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl const*, clang::CXXCtorType) + 333 18 clang 0x00000000010a63f9 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::CodeGen::GlobalDecl) + 389 19 clang 0x00000000010a57e3 clang::CodeGen::CodeGenModule::EmitDeferred() + 355 20 clang 0x00000000010a3c32 clang::CodeGen::CodeGenModule::Release() + 24 21 clang 0x00000000010a0879 22 clang 0x000000000109e5ac 23 clang 0x00000000012069ff clang::ParseAST(clang::Sema&, bool) + 639 24 clang 0x0000000000f6cf45 clang::ASTFrontendAction::ExecuteAction() + 263 25 clang 0x000000000109f579 clang::CodeGenAction::ExecuteAction() + 951 26 clang 0x0000000000f6cb96 clang::FrontendAction::Execute() + 320 27 clang 0x0000000000f55a0d clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 751 28 clang 0x0000000000f05819 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 854 29 clang 0x0000000000ef8969 cc1_main(char const**, char const**, char const*, void*) + 1032 30 clang 0x0000000000f01919 main + 499 31 libc.so.6 0x00007f9b53c4ac4d __libc_start_main + 253 32 clang 0x0000000000ef7fd9 Stack dump: 0. Program arguments: /usr/local/google/home/nlewycky/llvm/Debug+Asserts/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name union-init.cc -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.1 -resource-dir /usr/local/google/home/nlewycky/llvm/Debug+Asserts/bin/../lib/clang/2.9 -ferror-limit 19 -fmessage-length 80 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o union-init.o -x c++ union-init.cc 1. parser at end of file 2. Per-file LLVM IR generation 3. union-init.cc:3:3: Generating code for declaration 'Foo::Foo' clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Dec 8 20:28:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 8 Dec 2010 20:28:19 -0600 (CST) Subject: [LLVMbugs] [Bug 8761] New: clang_getCursorSemanticParent segfaults Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8761 Summary: clang_getCursorSemanticParent segfaults Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: stefan.seefeld at gmail.com CC: llvmbugs at cs.uiuc.edu I'm observing a segmentation fault in clang_getCursorSemanticParent(). The cursor kind is CXCursor_UnexposedDecl. The getDeclContext() call returns 0, so the following call to cast(DC) fails. (Ironically, it's the "assert(isa(Val) && "...") check itself that causes the error, as it dereferences Val, which is 0. Also, a somewhat related issue: The documentation isn't quite clear on what the returned-value for getCursorSemanticParent() will be for global declarations. Should it return a null-cursor ? Or the argument itself ? (I'm trying to write a function that walks up the context stack to build the fully qualified name for a given declared name.) 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 Dec 8 20:45:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 8 Dec 2010 20:45:15 -0600 (CST) Subject: [LLVMbugs] [Bug 8762] New: Clang's integrated-as doesn't support --noexecstack Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8762 Summary: Clang's integrated-as doesn't support --noexecstack Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: chandlerc at gmail.com CC: rafael.espindola at gmail.com, llvmbugs at cs.uiuc.edu Take a .s file that doesn't already have the section marking its stack as noexec: % cat t.s .file "t.c" .text .globl f .type f, @function f: .LFB0: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 movq %rsp, %rbp .cfi_offset 6, -16 .cfi_def_cfa_register 6 leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size f, .-f With GCC you can ask the GNU as to add the necessary bits during assembling: % gcc -c t.s -Wa,--noexecstack -o t.o; readelf -S t.o There are 10 section headers, starting at offset 0xd0: Section Headers: [Nr] Name Type Address Offset Size EntSize Flags Link Info Align [ 0] NULL 0000000000000000 00000000 0000000000000000 0000000000000000 0 0 0 [ 1] .text PROGBITS 0000000000000000 00000040 0000000000000006 0000000000000000 AX 0 0 4 [ 2] .data PROGBITS 0000000000000000 00000048 0000000000000000 0000000000000000 WA 0 0 4 [ 3] .bss NOBITS 0000000000000000 00000048 0000000000000000 0000000000000000 WA 0 0 4 [ 4] .note.GNU-stack PROGBITS 0000000000000000 00000048 0000000000000000 0000000000000000 0 0 1 [ 5] .eh_frame PROGBITS 0000000000000000 00000048 0000000000000038 0000000000000000 A 0 0 8 [ 6] .rela.eh_frame RELA 0000000000000000 00000418 0000000000000018 0000000000000018 8 5 8 [ 7] .shstrtab STRTAB 0000000000000000 00000080 000000000000004b 0000000000000000 0 0 1 [ 8] .symtab SYMTAB 0000000000000000 00000350 00000000000000c0 0000000000000018 9 7 8 [ 9] .strtab STRTAB 0000000000000000 00000410 0000000000000007 0000000000000000 0 0 1 Section 4 '.note.GNU-stack' is the interesting one. This is the same result you would get if the assembly file had the following as its last line: .section .note.GNU-stack,"", at progbits -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 01:40:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 9 Dec 2010 01:40:57 -0600 (CST) Subject: [LLVMbugs] [Bug 8753] Infinite loop in memcpyopt In-Reply-To: References: Message-ID: <20101209074057.0AA6E2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8753 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2010-12-09 01:40:56 CST --- I applied Jakub's patch in r121361, thanks Jakub! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 02:35:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 9 Dec 2010 02:35:45 -0600 (CST) Subject: [LLVMbugs] [Bug 5207] APInt API is atrocious In-Reply-To: References: Message-ID: <20101209083545.CBD1A2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5207 Jay Foad changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Jay Foad 2010-12-09 02:35:45 CST --- Fixed, then! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 9 04:10:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 9 Dec 2010 04:10:19 -0600 (CST) Subject: [LLVMbugs] [Bug 8760] cannot codegen constructor initializer of pointer to templated type in a union In-Reply-To: References: Message-ID: <20101209101019.B0B282A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8760 Francois Pichet changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Francois Pichet 2010-12-09 04:10:19 CST --- Fixed in r121363, I believe! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 05:18:32 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 9 Dec 2010 05:18:32 -0600 (CST) Subject: [LLVMbugs] [Bug 8763] New: LLVM front end - FAILURE when building llvm front end with Snow Leopard - Dec. 09, 2010 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8763 Summary: LLVM front end - FAILURE when building llvm front end with Snow Leopard - Dec. 09, 2010 Product: new-bugs Version: 2.7 Platform: Macintosh OS/Version: MacOS X Status: NEW Keywords: build-problem, compile-fail Severity: release blocker Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: doc0.delphin at voila.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5887) --> (http://llvm.org/bugs/attachment.cgi?id=5887) zip file with log (ASCII) files inside Dear Sir: Configure seems to work well. However, at a particular step of the compilation, make issues a fatal error and stops the compilation process. Remark valide both for 2.7 and 2.8 versions. Kind regards, Laurent Delphin, Dunkerque (EU) Encl. 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 Dec 9 05:20:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 9 Dec 2010 05:20:27 -0600 (CST) Subject: [LLVMbugs] [Bug 8764] New: LLVM front end - FAILURE building with Snow Leopard - Dec. 09, 2010 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8764 Summary: LLVM front end - FAILURE building with Snow Leopard - Dec. 09, 2010 Product: new-bugs Version: 2.8 Platform: Macintosh OS/Version: MacOS X Status: NEW Keywords: build-problem, compile-fail Severity: release blocker Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: doc0.delphin at voila.fr CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5888) --> (http://llvm.org/bugs/attachment.cgi?id=5888) zip file with log (ASCII) files inside Dear Sir: Configure seems to work well. However, at a particular step of the compilation, make issues a fatal error and stops the compilation process. Remark valide both for 2.7 and 2.8 versions. Kind regards, Laurent Delphin, Dunkerque (EU) Encl. 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 Dec 9 09:37:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 9 Dec 2010 09:37:58 -0600 (CST) Subject: [LLVMbugs] [Bug 8765] New: Builtin handling for lomgjmp overrides asm() renames Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8765 Summary: Builtin handling for lomgjmp overrides asm() renames Product: clang Version: trunk Platform: All OS/Version: NetBSD Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: joerg at NetBSD.org CC: llvmbugs at cs.uiuc.edu NetBSD is using asm("foo") renames in the system headers to provide multiple versions of certain functions for ABI compatibility. One such instance is the longjmp family. If clang is used with -fbuiltin, the renames for the longjmp functions are lost in the code generation. This directly results in link errors due to missing functions. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 9 09:58:34 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 9 Dec 2010 09:58:34 -0600 (CST) Subject: [LLVMbugs] [Bug 7855] Initialization of an anonymous struct within a class In-Reply-To: References: Message-ID: <20101209155834.3733A2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7855 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-12-09 09:58:33 CST --- This is working now on trunk, most likely due to Francois Pichet's 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 Thu Dec 9 12:33:18 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 9 Dec 2010 12:33:18 -0600 (CST) Subject: [LLVMbugs] [Bug 8764] LLVM front end - FAILURE building with Snow Leopard - Dec. 09, 2010 In-Reply-To: References: Message-ID: <20101209183318.8D2012A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8764 Dale Johannesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dalej at apple.com Resolution| |INVALID --- Comment #1 from Dale Johannesen 2010-12-09 12:33:18 CST --- These logs show an attempt to build llvm-gcc. You need to download and build llvm before you do that, and specify --enable-llvm when configuring llvm-gcc. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 9 12:48:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 9 Dec 2010 12:48:04 -0600 (CST) Subject: [LLVMbugs] [Bug 8763] LLVM front end - FAILURE when building llvm front end with Snow Leopard - Dec. 09, 2010 In-Reply-To: References: Message-ID: <20101209184804.4518C2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8763 Dale Johannesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dalej at apple.com Resolution| |DUPLICATE --- Comment #1 from Dale Johannesen 2010-12-09 12:48:04 CST --- *** This bug has been marked as a duplicate of bug 8764 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 14:03:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 9 Dec 2010 14:03:30 -0600 (CST) Subject: [LLVMbugs] [Bug 8766] New: clang_getCursorSemanticParent() returns wrong Cursor Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8766 Summary: clang_getCursorSemanticParent() returns wrong Cursor Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: stefan.seefeld at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com I'm parsing this code: template struct Foo { int member; }; When traversing the generated graph using libclang, I can access the "member" declaration as a "FieldDecl" cursor. However, when I try to get back to its parent using clang_getCursorSemanticParent(), that returns a cursor of kind "StructDecl", when it really should be "ClassTemplate". -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 17:36:18 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 9 Dec 2010 17:36:18 -0600 (CST) Subject: [LLVMbugs] [Bug 8744] Assert when code completing a #include In-Reply-To: References: Message-ID: <20101209233618.E3B992A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8744 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Douglas Gregor 2010-12-09 17:36:18 CST --- Fixed in Clang r121431. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 19:12:06 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 9 Dec 2010 19:12:06 -0600 (CST) Subject: [LLVMbugs] [Bug 8484] NEON compare absolute not being lowered In-Reply-To: References: Message-ID: <20101210011206.27CAB2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8484 Bob Wilson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Bob Wilson 2010-12-09 19:12:05 CST --- Fixed in clang svn r121447. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 19:17:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 9 Dec 2010 19:17:46 -0600 (CST) Subject: [LLVMbugs] [Bug 8521] NEON instruction VQSHLU producing bad cast In-Reply-To: References: Message-ID: <20101210011746.876082A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8521 Bob Wilson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Bob Wilson 2010-12-09 19:17:45 CST --- I fixed this earlier, in clang svn 121188. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 19:20:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 9 Dec 2010 19:20:44 -0600 (CST) Subject: [LLVMbugs] [Bug 8767] New: show unimplemented methods in "abstract type" error Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8767 Summary: show unimplemented methods in "abstract type" error 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 Clang could do a better job on this testcase: struct Base { virtual void NewPureMethod() = 0; }; struct Derived : public Base { }; void test() { new Derived; } What we get is ... pretty good actually: b3268147.cc:7:7: error: allocation of an object of abstract type 'Derived' new Derived; ^ b3268147.cc:2:16: note: pure virtual function 'NewPureMethod' virtual void NewPureMethod() = 0; ^ 1 error generated. What's interesting about the note is that it doesn't say what's wrong. Why yes, that is a pure virtual function. What would be awesome is if it told us what to fix. How about: error: allocating type 'Derived' which is an abstract class note: unimplemented pure virtual method 'NewPureMethod' in 'Derived' ? -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 19:32:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 9 Dec 2010 19:32:15 -0600 (CST) Subject: [LLVMbugs] [Bug 8758] [patch] Don't use GZIP variable, it is used by gzip itself In-Reply-To: References: Message-ID: <20101210013215.74E162A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8758 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #3 from Eric Christopher 2010-12-09 19:32:15 CST --- I changed the autoconf variable too and committed thusly: [yendi:Data/sources/llvm] echristo% svn ci Sending Makefile.config.in Sending autoconf/configure.ac Sending configure Sending docs/Makefile Transmitting file data .... Committed revision 121449. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 20:49:13 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 9 Dec 2010 20:49:13 -0600 (CST) Subject: [LLVMbugs] [Bug 8438] cmake: "make check" warns about unittests In-Reply-To: References: Message-ID: <20101210024913.9B2EB2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8438 NAKAMURA Takumi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #9 from NAKAMURA Takumi 2010-12-09 20:49:12 CST --- Finished at r121455. I did several tweaks. "make check" will build unittests. lit can pick up unittests even if CMAKE_BUILD_TYPE were not specified. an example log on x86_64-centos5. $ cmake /path/to/src/llvm -DLLVM_LIT_ARGS='-v -j4' (You may specify CMAKE_BUILD_TYPE=Release) $ make check -j4 (snip) [ 98%] Running LLVM regression tests -- Testing: 5713 tests, 4 threads -- PASS: LLVM :: Analysis/BasicAA/2003-03-04-GEPCrash.ll (1 of 5713) PASS: LLVM :: Analysis/BasicAA/2003-02-26-AccessSizeTest.ll (2 of 5713) PASS: LLVM :: Analysis/BasicAA/2003-04-25-GEPCrash.ll (3 of 5713) PASS: LLVM :: Analysis/BasicAA/2003-04-22-GEPProblem.ll (4 of 5713) (snip) PASS: LLVM-Unit :: VMCore/VMCoreTests/ValueMapTest/2.OperationsWork (5710 of 57) PASS: LLVM-Unit :: VMCore/VMCoreTests/ValueMapTest/2.LocksMutex (5711 of 5713) PASS: LLVM-Unit :: VMCore/VMCoreTests/ValueMapTest/2.SurvivesModificationByConf) PASS: LLVM-Unit :: VMCore/VMCoreTests/VerifierTest.Branch_i1 (5713 of 5713) Testing Time: 52.82s Expected Passes : 5113 Expected Failures : 43 Unsupported Tests : 557 [100%] Built target check -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 9 21:00:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 9 Dec 2010 21:00:23 -0600 (CST) Subject: [LLVMbugs] [Bug 8713] "relocation R_X86_64_PC32 against undefined symbol ..." In-Reply-To: References: Message-ID: <20101210030023.1E7A12A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8713 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #8 from John McCall 2010-12-09 21:00:22 CST --- Fixed in r121459. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 9 23:51:32 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 9 Dec 2010 23:51:32 -0600 (CST) Subject: [LLVMbugs] [Bug 8483] NEON VPADDL / VPADAL code-gen bug In-Reply-To: References: Message-ID: <20101210055132.980D42A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8483 Bob Wilson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Bob Wilson 2010-12-09 23:51:31 CST --- Fixed in clang svn r121464 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 10 02:40:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 10 Dec 2010 02:40:46 -0600 (CST) Subject: [LLVMbugs] [Bug 8768] New: clang++ fails to generate large object files Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8768 Summary: clang++ fails to generate large object files Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: alwe.maindargent at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The following files (preprocessed) fails to compile with clang++ -O0, -O1 (in fact, clang++ doesn't give any error, but the resulting file is incorrect, objdump -D does not reveal any symbol). (I can provide the raw source if needed). However, it compiles fine with -O2 or -Os option. I guess it is related to the size of the generated code (gcc-4.5.1 in -O0 generate a 44M object file). It worked at some point near 2.8, so there is some regression at some point. clang++ --version clang version 2.9 (trunk 121365) Target: x86_64-unknown-linux-gnu Thread model: posix 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 Fri Dec 10 04:56:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 10 Dec 2010 04:56:48 -0600 (CST) Subject: [LLVMbugs] [Bug 8769] New: wrong code with -O2 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8769 Summary: wrong code with -O2 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: marc.glisse at normalesup.org CC: llvmbugs at cs.uiuc.edu When I compile the following code with clang++ -O1, it works fine. With clang++ -O2, it compiles fine but the resulting code crashes in the vector::push_back (or in the placement new). I am using libstdc++-4.2 on debian-x64. #include #include #include typedef std::tr1::array Point; struct Generator_base { Point d_item; double d_range; Point const& operator*() const { return d_item; } }; template inline void copy_X( InputIterator first, OutputIterator result) { *result = *first; } int main() { std::vector points; points.reserve(1); Generator_base g; copy_X( g, std::back_inserter(points)); 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 Fri Dec 10 07:01:12 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 10 Dec 2010 07:01:12 -0600 (CST) Subject: [LLVMbugs] [Bug 8770] New: Can't access property in Objective-C++ Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8770 Summary: Can't access property in Objective-C++ Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: register at ffreling.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com In Objective-C++, I can't directly access a property to modify it. In a Obj-C object foo, with the property rect (which is a NSRect), I can't do: foo.rect.origin.x = 10; I need to do this: NSRect rect = foo.rect; rect.origin.x = 10; It used to work with Clang 2.0, but this is not the case anymore with Clang 2.9 (it works fine with GCC). I attached a file to exhibit the issue. Try to compile it with: $ clang++ -c clang-error.mm -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 10 07:10:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 10 Dec 2010 07:10:16 -0600 (CST) Subject: [LLVMbugs] [Bug 8771] New: Redeclaring partial specializations is disallowed sometimes Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8771 Summary: Redeclaring partial specializations is disallowed sometimes 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 googlemail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Clang does in general accept redeclaring partial specializations, like requested by 9.2[class.mem]p1, but does not do so in the following example, which I derived from wg21 core issue #996 template struct Outer { template struct Inner; template struct Inner; template struct Inner {}; }; Outer outer; This is a "declared and then later defined" scenario of a member class template, but Clang shouts: main1.cpp:5:33: error: class template partial specialization 'Inner' cannot be redeclared template struct Inner {}; ^ main1.cpp:8:19: note: in instantiation of template class 'Outer' requested here Outer outer; ^ main1.cpp:4:33: note: previous declaration of class template partial specialization 'Inner' is here template struct Inner; -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 10 11:55:35 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 10 Dec 2010 11:55:35 -0600 (CST) Subject: [LLVMbugs] [Bug 8772] New: debugging info for subroutine type with multiple returns is wrong Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8772 Summary: debugging info for subroutine type with multiple returns is wrong Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: bagel99 at gmail.com CC: llvmbugs at cs.uiuc.edu -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Dec 10 18:00:15 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 10 Dec 2010 18:00:15 -0600 (CST) Subject: [LLVMbugs] [Bug 8773] New: Poor diagnostics and error recovery for templated method call on mis-declared class member Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8773 Summary: Poor diagnostics and error recovery for templated method call on mis-declared class member Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: matthewbg at google.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com $ cat ~/llvm/testcases/bad_templated_method_call.cc class Bar; class Baz { void f() { obj.method(); } Foo obj; }; $ clang -fsyntax-only ~/llvm/testcases/bad_templated_method_call.cc /home/matthewbg/llvm/testcases/bad_templated_method_call.cc:6:3: error: unknown type name 'Foo' Foo obj; ^ /home/matthewbg/llvm/testcases/bad_templated_method_call.cc:4:16: error: 'Bar' does not refer to a value obj.method(); ^ /home/matthewbg/llvm/testcases/bad_templated_method_call.cc:1:7: note: declared here class Bar; ^ /home/matthewbg/llvm/testcases/bad_templated_method_call.cc:4:21: error: expected expression obj.method(); ^ 3 errors generated. ===== Having "obj.method();" parsed as an arithmetic expression is really confusing. It would be nice if there were some better recovery here. Also, if 'obj' is a local instead of a class member, it incurs a "use of undeclared identifier" error at the start of the method call statement, which helps point out what's 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 Dec 10 21:08:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 10 Dec 2010 21:08:04 -0600 (CST) Subject: [LLVMbugs] [Bug 8774] New: crash on checking default argument Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8774 Summary: crash on checking default argument Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com This testcase crashes: template < typename Value > class FooKey { }; template < typename T > struct Traits { }; template < typename K > K BlahGetKey (const FooKey &key, typename Traits :: default_value_type const &defval = Traits < K >::default_value ()) { return defval; } template <> struct Traits { typedef const char *default_value_type; static const char *default_value(); }; class BlahFooTest { template < typename T > void BasicTest () { FooKey < T > nokey; T values; BlahGetKey (nokey, values); } void f() { BasicTest(); } }; "clang -fsyntax-only" produces this segfault: 0x0000000001094b28 in clang::Expr::isTypeDependent (this=0x0) at /usr/local/google/home/nlewycky/llvm/tools/clang/lib/Serialization/../../include/clang/AST/Expr.h:110 110 bool isTypeDependent() const { return ExprBits.TypeDependent; } (gdb) bt #0 0x0000000001094b28 in clang::Expr::isTypeDependent (this=0x0) at /usr/local/google/home/nlewycky/llvm/tools/clang/lib/Serialization/../../include/clang/AST/Expr.h:110 #1 0x00000000012772fb in EvalAddr (E=0x0, refVars=...) at SemaChecking.cpp:1852 #2 0x00000000012774e9 in EvalAddr (E=0x32fa970, refVars=...) at SemaChecking.cpp:1879 #3 0x0000000001277869 in EvalAddr (E=0x32fa9a0, refVars=...) at SemaChecking.cpp:1954 #4 0x0000000001276ecb in clang::Sema::CheckReturnStackAddr (this=0x32d4360, RetValExp=0x32fa9a0, lhsType=..., ReturnLoc=...) at SemaChecking.cpp:1775 #5 0x00000000013c5b3c in clang::Sema::ActOnReturnStmt (this=0x32d4360, ReturnLoc=..., RetValExp=0x32fa9a0) at SemaStmt.cpp:1296 #6 0x00000000014494a6 in clang::TreeTransform<::TemplateInstantiator>::RebuildReturnStmt(clang::SourceLocation, clang::Expr *) (this=0x7fffffffbe00, ReturnLoc=..., Result=0x32fa970) at TreeTransform.h:872 #7 0x000000000143dd94 in clang::TreeTransform<::TemplateInstantiator>::TransformReturnStmt(clang::ReturnStmt *) (this=0x7fffffffbe00, S=0x32f5840) at TreeTransform.h:3933 #8 0x00000000014356f2 in clang::TreeTransform<::TemplateInstantiator>::TransformStmt(clang::Stmt *) (this=0x7fffffffbe00, S=0x32f5840) at /usr/local/google/home/nlewycky/llvm/tools/clang/lib/Sema/../../include/clang/AST/StmtNodes.inc:613 #9 0x0000000001448e0e in clang::TreeTransform<::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt *, bool) (this=0x7fffffffbe00, S=0x32f5868, IsStmtExpr=false) at TreeTransform.h:3559 #10 0x000000000143c2c6 in clang::TreeTransform<::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt *) (this=0x7fffffffbe00, S=0x32f5868) at TreeTransform.h:3547 #11 0x0000000001435442 in clang::TreeTransform<::TemplateInstantiator>::TransformStmt(clang::Stmt *) (this=0x7fffffffbe00, S=0x32f5868) at /usr/local/google/home/nlewycky/llvm/tools/clang/lib/Sema/../../include/clang/AST/StmtNodes.inc:39 #12 0x0000000001433595 in clang::Sema::SubstStmt (this=0x32d4360, S=0x32f5868, TemplateArgs=...) at SemaTemplateInstantiate.cpp:1638 #13 0x0000000001457635 in clang::Sema::InstantiateFunctionDefinition ( this=0x32d4360, PointOfInstantiation=..., Function=0x32fa710, Recursive=true, DefinitionRequired=false) at SemaTemplateInstantiateDecl.cpp:2159 #14 0x0000000001459421 in clang::Sema::PerformPendingInstantiations ( this=0x32d4360, LocalOnly=false) at SemaTemplateInstantiateDecl.cpp:2790 #15 0x0000000001457773 in clang::Sema::InstantiateFunctionDefinition ( this=0x32d4360, PointOfInstantiation=..., Function=0x32f80b0, Recursive=true, DefinitionRequired=false) at SemaTemplateInstantiateDecl.cpp:2185 #16 0x0000000001459421 in clang::Sema::PerformPendingInstantiations ( this=0x32d4360, LocalOnly=false) at SemaTemplateInstantiateDecl.cpp:2790 #17 0x0000000001255196 in clang::Sema::ActOnEndOfTranslationUnit ( this=0x32d4360) at Sema.cpp:303 #18 0x0000000001218d40 in clang::Parser::ParseTopLevelDecl ( this=0x7fffffffcad0, Result=...) at Parser.cpp:401 #19 0x0000000001202a14 in clang::ParseAST (S=..., PrintStats=false) at ParseAST.cpp:83 #20 0x0000000000f6a695 in clang::ASTFrontendAction::ExecuteAction ( this=0x32a7d60) at FrontendAction.cpp:329 #21 0x0000000000f6a2e6 in clang::FrontendAction::Execute (this=0x32a7d60) at FrontendAction.cpp:249 #22 0x0000000000f5315b in clang::CompilerInstance::ExecuteAction ( this=0x32a7920, Act=...) at CompilerInstance.cpp:550 #23 0x0000000000f02889 in clang::ExecuteCompilerInvocation (Clang=0x32a7920) at ExecuteCompilerInvocation.cpp:149 #24 0x0000000000ef5859 in cc1_main (ArgBegin=0x7fffffffd4c0, ArgEnd=0x7fffffffd4d8, Argv0=0x329d918 "/usr/local/google/home/nlewycky/llvm/Debug+Asserts/bin/clang++", MainAddr=0xefd694) at cc1_main.cpp:161 #25 0x0000000000efe98a in main (argc_=5, argv_=0x7fffffffe3e8) at driver.cpp:270 (gdb) up 3 #3 0x0000000001277869 in EvalAddr (E=0x32fa9a0, refVars=...) at SemaChecking.cpp:1954 1954 return EvalAddr(SubExpr, refVars); (gdb) call SubExpr->dump() (DeclRefExpr 0x32fa970 'typename Traits::default_value_type const':'const char *const' lvalue ParmVar='defval' 0x32fa610) (gdb) down #2 0x00000000012774e9 in EvalAddr (E=0x32fa970, refVars=...) at SemaChecking.cpp:1879 1879 return EvalAddr(V->getInit(), refVars); (gdb) call V->dump() typename Traits::default_value_type const &defval (gdb) p V->getInit() $1 = (const clang::Expr *) 0x0 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Dec 12 08:18:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 12 Dec 2010 08:18:47 -0600 (CST) Subject: [LLVMbugs] [Bug 8776] New: Clang crashes using properties Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8776 Summary: Clang crashes using properties Product: clang Version: trunk Platform: PC OS/Version: NetBSD Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: js-llvm-bugzilla at webkeks.org CC: llvmbugs at cs.uiuc.edu assertion "(i >= FTy->getNumParams() || FTy->getParamType(i) == Params[i]->getType()) && "Calling a function with a bad signature!"" failed: file "Instructions.cpp", line 197, function "void llvm::CallInst::init(llvm::Value*, llvm::Value* const*, unsigned int)" Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-unknown-netbsd5.1. -S -disable-free -main-file-name OFXMLParser.m -pic-level 2 -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.16.1 -g -resource-dir /usr/local/bin/../lib/clang/2.9 -D PIC -I .. -O2 -Wall -Werror -fconstant-string-class OFConstantString -ferror-limit 19 -fmessage-length 80 -fblocks -fexceptions -fgnu-runtime -fno-constant-cfstrings -fno-common -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-18194a.s -x objective-c OFXMLParser.m 1. OFXMLParser.m:934:1: current parser token '@' 2. OFXMLParser.m:82:1: LLVM IR generation of declaration 'OFXMLParser' clang: error: unable to execute command: Abort trap (core dumped) clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) This is happening for a while now. Old revisions worked fine. Line 934: @implementation OFObject (OFXMLParserDelegate) Line 82: @implementation OFXMLParser Complete source file: https://webkeks.org/hg/objfw/file/9d1b67c9b17e/src/OFXMLParser.m Preprocessed file: webkeks:src$ clang -E -I.. OFXMLParser.m | sprunge http://sprunge.us/cDhE Same happens in another file using properties: assertion "(i >= FTy->getNumParams() || FTy->getParamType(i) == Params[i]->getType()) && "Calling a function with a bad signature!"" failed: file "Instructions.cpp", line 197, function "void llvm::CallInst::init(llvm::Value*, llvm::Value* const*, unsigned int)" Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-unknown-netbsd5.1. -S -disable-free -main-file-name PropertiesTests.m -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.16.1 -g -resource-dir /usr/local/bin/../lib/clang/2.9 -D STDOUT -I ../src -I .. -O2 -Wall -Werror -fconstant-string-class OFConstantString -ferror-limit 19 -fmessage-length 80 -fblocks -fexceptions -fgnu-runtime -fno-constant-cfstrings -fno-common -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-18868a.s -x objective-c PropertiesTests.m 1. PropertiesTests.m:44:1: current parser token '@' 2. PropertiesTests.m:31:1: LLVM IR generation of declaration 'PropertiesTest' clang: error: unable to execute command: Abort trap (core dumped) clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) Line 44: @implementation TestsAppDelegate (PropertiesTests) Line 31: @implementation PropertiesTest Complete source file: https://webkeks.org/hg/objfw/file/9d1b67c9b17e/tests/PropertiesTests.m Proprocessed file: webkeks:tests$ clang -E -I.. -I../src PropertiesTests.m | sprunge http://sprunge.us/PJOc -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 12 15:32:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 12 Dec 2010 15:32:31 -0600 (CST) Subject: [LLVMbugs] [Bug 8667] linking errors on FreeBSD-i386 with clang trunk In-Reply-To: References: Message-ID: <20101212213231.431AB2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8667 chromium at hybridsource.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from chromium at hybridsource.org 2010-12-12 15:32:30 CST --- This bug appears fixed in clang trunk, likely because of commit 121459 that fixed the similar bug 8713. I'm now having a TLS issue when linking the final binary, that appears different so I'll open another bug for it if necessary. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Dec 12 16:12:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 12 Dec 2010 16:12:33 -0600 (CST) Subject: [LLVMbugs] [Bug 1220] projects/sample/AutoRegen.sh patches configure.ac incorrectly In-Reply-To: References: Message-ID: <20101212221233.4A26E2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=1220 Peter Collingbourne changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |peter at pcc.me.uk Resolution| |FIXED --- Comment #4 from Peter Collingbourne 2010-12-12 16:12:32 CST --- Fixed in r121645-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 Mon Dec 13 01:33:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 13 Dec 2010 01:33:26 -0600 (CST) Subject: [LLVMbugs] [Bug 8777] New: [Win64] stack probe(alloca, chkstk) is not emitted with variable dynamic stack allocation Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8777 Summary: [Win64] stack probe(alloca, chkstk) is not emitted with variable dynamic stack allocation 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 define i64 @foo(i64 %n) nounwind { entry: %buf = alloca i8, i64 %n, align 1 %r = call i64 @bar(i8* %buf, i64 %n) nounwind ret i64 %r } declare i64 @bar(i8* nocapture, i64) nounwind $ llc -mtriple=x86_64-{win32|mingw32|mingw64} foo: pushq %rbp movq %rsp, %rbp subq $32, %rsp movq %rcx, %rdx leaq 15(%rdx), %rax andq $-16, %rax movq %rsp, %rcx subq %rax, %rcx movq %rcx, %rsp callq bar movq %rbp, %rsp popq %rbp ret It seems alloca might be expanded w/o DYNAMIC_STACKALLOC after X86 DAG->DAG Instruction Selection. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 13 01:42:06 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 13 Dec 2010 01:42:06 -0600 (CST) Subject: [LLVMbugs] [Bug 8774] crash on checking default argument In-Reply-To: References: Message-ID: <20101213074206.694992A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8774 Chandler Carruth changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |chandlerc at gmail.com Resolution| |FIXED --- Comment #4 from Chandler Carruth 2010-12-13 01:42:05 CST --- I think the specific problem is in VarDecl::hasInit(). Fixed in r121692. As I mentioned in that commit log, I suspect this is a symptom of a deeper flaw in conflating default arguments and initializers at the API level in VarDecl. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 13 01:45:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 13 Dec 2010 01:45:09 -0600 (CST) Subject: [LLVMbugs] [Bug 8778] New: [Win64] incorrect stack frame with alloca(n) and call Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8778 Summary: [Win64] incorrect stack frame with alloca(n) and call 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 define i64 @foo(i64 %n) nounwind { entry: %buf = alloca i8, i64 %n, align 1 %r = call i64 @bar(i8* %buf, i64 %n, i64 %n, i64 %n, i64 %n) nounwind ret i64 %r } declare i64 @bar(i8* nocapture, i64, i64, i64, i64) nounwind $ llc -mtriple=x86_64-win32 foo: pushq %rbp movq %rsp, %rbp subq $32, %rsp movq %rcx, %rdx leaq 15(%rdx), %rax andq $-16, %rax movq %rsp, %rcx subq %rax, %rcx ;;; @bar: 1st arg movq %rcx, %rsp subq $16, %rsp ;;; 40 (or aligned 48) bytes would be needed movq %rdx, 32(%rsp) ;;; it might be on %buf movq %rdx, %r8 movq %rdx, %r9 callq bar ;;; 32 bytes home area overlaps to %buf movq %rbp, %rsp popq %rbp ret Even when @bar() has args less than 4, stack frame would be incorrect. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 13 03:30:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 13 Dec 2010 03:30:37 -0600 (CST) Subject: [LLVMbugs] [Bug 8780] New: [REGRESSION] Crash while compiling swscale.c from FFmpeg Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8780 Summary: [REGRESSION] Crash while compiling swscale.c from FFmpeg 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: ismail at namtrac.org CC: llvmbugs at cs.uiuc.edu This is a regression, check the attached swscale.i; Compile with no optimizations: [~/Sources/ffmpeg/libswscale]> clang swscale.i [ Warnings removed ] In file included from swscale.c:1240: ./swscale_template.c:1886:9: error: unknown token in expression "movq 24+%4, %%mm6 \n\t" ^ :1:30: note: instantiated into assembly here movq 24+(%r11), %mm6 ^ In file included from swscale.c:1: In file included from swscale.c:1240: ./swscale_template.c:1897:55: error: unknown token in expression "pmaddwd %4, %%mm0 \n\t" ^ :13:30: note: instantiated into assembly here pmaddwd 8+(%r11), %mm1 ^ In file included from swscale.c:1: In file included from swscale.c:1240: ./swscale_template.c:1898:55: error: unknown token in expression "pmaddwd 8+%4, %%mm1 \n\t" ^ :14:30: note: instantiated into assembly here pmaddwd 16+(%r11), %mm2 ^ In file included from swscale.c:1: In file included from swscale.c:1240: ./swscale_template.c:1911:55: error: unknown token in expression "pmaddwd %4, %%mm1 \n\t" ^ :26:30: note: instantiated into assembly here pmaddwd 8+(%r11), %mm3 ^ In file included from swscale.c:1: In file included from swscale.c:1240: ./swscale_template.c:1912:55: error: unknown token in expression "pmaddwd 8+%4, %%mm3 \n\t" ^ :27:30: note: instantiated into assembly here pmaddwd 16+(%r11), %mm4 ^ Compile with -O1: [~/Sources/ffmpeg/libswscale]> clang -O1 swscale.i [ warnings removed ] Duplicate integer as switch case switch i32 %tmp6, label %land.end [ i32 9, label %land.lhs.true i32 29, label %land.lhs.true i32 10, label %land.lhs.true i32 30, label %land.lhs.true i32 43, label %land.lhs.true i32 44, label %land.lhs.true i32 45, label %land.lhs.true i32 46, label %land.lhs.true i32 62, label %land.lhs.true i32 63, label %land.lhs.true i32 22, label %land.lhs.true i32 23, label %land.lhs.true i32 24, label %land.lhs.true i32 10, label %land.lhs.true i32 9, label %land.lhs.true i32 28, label %land.lhs.true i32 27, label %land.lhs.true i32 47, label %land.lhs.true i32 48, label %land.lhs.true i32 49, label %land.lhs.true i32 50, label %land.lhs.true i32 64, label %land.lhs.true i32 65, label %land.lhs.true i32 19, label %land.lhs.true i32 20, label %land.lhs.true i32 21, label %land.lhs.true i32 3, label %land.lhs.true i32 2, label %land.lhs.true ] i32 10 Duplicate integer as switch case switch i32 %tmp6, label %if.end326 [ i32 9, label %land.lhs.true316 i32 29, label %land.lhs.true316 i32 10, label %land.lhs.true316 i32 30, label %land.lhs.true316 i32 43, label %land.lhs.true316 i32 44, label %land.lhs.true316 i32 45, label %land.lhs.true316 i32 46, label %land.lhs.true316 i32 62, label %land.lhs.true316 i32 63, label %land.lhs.true316 i32 22, label %land.lhs.true316 i32 23, label %land.lhs.true316 i32 24, label %land.lhs.true316 i32 10, label %land.lhs.true316 i32 9, label %land.lhs.true316 i32 28, label %land.lhs.true316 i32 27, label %land.lhs.true316 i32 47, label %land.lhs.true316 i32 48, label %land.lhs.true316 i32 49, label %land.lhs.true316 i32 50, label %land.lhs.true316 i32 64, label %land.lhs.true316 i32 65, label %land.lhs.true316 i32 19, label %land.lhs.true316 i32 20, label %land.lhs.true316 i32 21, label %land.lhs.true316 i32 3, label %land.lhs.true316 i32 2, label %land.lhs.true316 ] i32 10 Duplicate integer as switch case switch i32 %tmp2, label %if.end610 [ i32 9, label %land.lhs.true448 i32 29, label %land.lhs.true448 i32 10, label %land.lhs.true448 i32 30, label %land.lhs.true448 i32 43, label %land.lhs.true448 i32 44, label %land.lhs.true448 i32 45, label %land.lhs.true448 i32 46, label %land.lhs.true448 i32 62, label %land.lhs.true448 i32 63, label %land.lhs.true448 i32 22, label %land.lhs.true448 i32 23, label %land.lhs.true448 i32 24, label %land.lhs.true448 i32 10, label %land.lhs.true448 i32 9, label %land.lhs.true448 i32 28, label %land.lhs.true448 i32 27, label %land.lhs.true448 i32 47, label %land.lhs.true448 i32 48, label %land.lhs.true448 i32 49, label %land.lhs.true448 i32 50, label %land.lhs.true448 i32 64, label %land.lhs.true448 i32 65, label %land.lhs.true448 i32 19, label %land.lhs.true448 i32 20, label %land.lhs.true448 i32 21, label %land.lhs.true448 i32 3, label %land.lhs.true448 i32 2, label %land.lhs.true448 ] i32 10 Broken module found, compilation aborted! 0 clang 0x000000010145efc2 llvm::SmallVectorTemplateBase::grow(unsigned long) + 754 1 clang 0x000000010145fe13 llvm::SmallVectorTemplateBase::grow(unsigned long) + 4419 2 libSystem.B.dylib 0x00007fff86bbc67a _sigtramp + 26 3 libSystem.B.dylib 000000000000000000 _sigtramp + 2034514336 4 clang 0x000000010145f3e6 llvm::SmallVectorTemplateBase::grow(unsigned long) + 1814 5 clang 0x00000001013ce0d4 llvm::CallbackVH::deleted() + 89876 6 clang 0x000000010139bb90 llvm::BasicBlockPass::~BasicBlockPass() + 31168 7 clang 0x000000010139bcab llvm::BasicBlockPass::~BasicBlockPass() + 31451 8 clang 0x000000010139d7cf llvm::BasicBlockPass::~BasicBlockPass() + 38399 9 clang 0x000000010139dac3 llvm::BasicBlockPass::~BasicBlockPass() + 39155 10 clang 0x000000010139db9d llvm::BasicBlockPass::~BasicBlockPass() + 39373 11 clang 0x0000000100172eba clang::PCHGenerator::~PCHGenerator() + 5866 12 clang 0x00000001002990ce llvm::IRBuilder >::CreateIsNull(llvm::Value*, llvm::Twine const&) + 1822 13 clang 0x00000001002de7b9 llvm::IRBuilder >::CreateAdd(llvm::Value*, llvm::Value*, llvm::Twine const&) + 1033 14 clang 0x0000000100299ccc llvm::IRBuilder >::CreateIsNull(llvm::Value*, llvm::Twine const&) + 4892 15 clang 0x0000000100051dc9 llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 7561 16 clang 0x0000000100024052 llvm::raw_ostream::operator<<(char const*) + 1730 17 clang 0x000000010001c1da std::vector >::_M_insert_aux(__gnu_cxx::__normal_iterator > >, llvm::PassRegistrationListener* const&) + 10842 18 clang 0x0000000100023074 std::vector >::operator=(std::vector > const&) + 11044 19 clang 0x000000010001ab58 std::vector >::_M_insert_aux(__gnu_cxx::__normal_iterator > >, llvm::PassRegistrationListener* const&) + 5080 20 clang 0x0000000000000022 std::vector >::_M_insert_aux(__gnu_cxx::__normal_iterator > >, llvm::PassRegistrationListener* const&) + 4294863010 Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-apple-darwin10.0.0 -emit-obj -disable-free -main-file-name swscale.i -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 97.14 -resource-dir /usr/local/bin/../lib/clang/2.9 -O1 -ferror-limit 19 -fmessage-length 120 -stack-protector 1 -fblocks -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/qk/qkch7RbJFkysE0a-GLNGMU+++TM/-Tmp-/cc-noQTrh.o -x cpp-output swscale.i 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'swscale.i'. 4. Running pass 'Module Verifier' on function '@ff_get_unscaled_swscale' clang: error: unable to execute command: Illegal instruction clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Dec 13 05:15:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 13 Dec 2010 05:15:51 -0600 (CST) Subject: [LLVMbugs] [Bug 8781] New: -Wformat warns about using wchar_t with %d Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8781 Summary: -Wformat warns about using wchar_t with %d Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: hans at chromium.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The following test program produces a warning when compiling with Clang build from trunk (r121697): #include #include extern std::wstring s; void f() { std::printf("%d\n", s[0]); } /tmp/a.cc:6:17: warning: conversion specifies type 'int' but the argument has type 'wchar_t' [-Wformat] std::printf("%d\n", s[0]); ~^ ~~~~ %ld Changing it to %ld doesn't help. If s is a string instead of wstring, it works fine. Maybe this is related to Bug 7981. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 13 05:49:05 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 13 Dec 2010 05:49:05 -0600 (CST) Subject: [LLVMbugs] [Bug 8782] New: Linking fails because weird symbol issue Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8782 Summary: Linking fails because weird symbol issue Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: jpakkane at gmail.com CC: llvmbugs at cs.uiuc.edu When building the latest version of Cuneiform on Fedora 14 and latest Clang trunk, I get the following error: /usr/bin/ld: CMakeFiles/rout.dir/src/html.cpp.o: relocation R_386_GOTOFF against undefined symbol `_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@@GLIBCXX_3.4' can not be used when making a shared object I have no idea what this means. GCC, MSVC and earlier versions of Clang compile the code without errors. Unfortunately I don't know how to reduce this to a simple test case and because the error happens during linking, the preprocessed source is useless too. This is the way to replicate the issue. You need Bazaar and CMake. bzr branch lp:cuneiform-linux cfbug cd cfbug mkdir builddir cd builddir cmake -DCMAKE_BUILD_TYPE=debug .. make -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 13 06:38:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 13 Dec 2010 06:38:28 -0600 (CST) Subject: [LLVMbugs] [Bug 8776] Clang crashes using properties In-Reply-To: References: Message-ID: <20101213123828.D43712A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8776 Jonathan Schleifer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Jonathan Schleifer 2010-12-13 06:38:28 CST --- Oh, it seems this is the same bug I reported before: http://llvm.org/bugs/show_bug.cgi?id=8557 Sorry for reporting twice. The first source file is new, though. When I reported the bug before, only the second source was failing. *** This bug has been marked as a duplicate of bug 8557 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 13 10:58:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 13 Dec 2010 10:58:59 -0600 (CST) Subject: [LLVMbugs] [Bug 8783] New: MS __declspec not allowed after enum Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8783 Summary: MS __declspec not allowed after enum Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: eric at boostpro.com CC: llvmbugs at cs.uiuc.edu The following (somewhat nonsensical) code is accepted by the MS compiler: enum __declspec(dllexport) E2 { v0 }; However, in clang, this code generates the following error: foo.cpp:12:6: error: expected identifier or '{' enum __declspec(dllexport) E2 { v0 }; ^ foo.cpp:12:1: warning: declaration does not declare anything enum __declspec(dllexport) E2 { v0 }; ^~~~ 1 warning and 1 error generated. It seems clang is not expecting to find __declspec after the enum keyword. Note that if it's written as: __declspec(dllexport) enum E2 { v0 }; it works. This may not be an issue for __declspec(dllexport), but it will be for the other __declspecs, like __declspec(deprecated). -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 13 12:21:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 13 Dec 2010 12:21:59 -0600 (CST) Subject: [LLVMbugs] [Bug 8780] [REGRESSION] Crash while compiling swscale.c from FFmpeg In-Reply-To: References: Message-ID: <20101213182159.1CFE52A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8780 Benjamin Kramer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |benny.kra at gmail.com Resolution| |FIXED --- Comment #3 from Benjamin Kramer 2010-12-13 12:21:58 CST --- Fixed in r121705. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 13 13:20:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 13 Dec 2010 13:20:41 -0600 (CST) Subject: [LLVMbugs] [Bug 8781] -Wformat warns about using wchar_t with %d In-Reply-To: References: Message-ID: <20101213192041.794DB2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8781 Dale Johannesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dalej at apple.com Resolution| |INVALID --- Comment #1 from Dale Johannesen 2010-12-13 13:20:41 CST --- There doesn't seem to be a defined way to print a wchar_t as an integer in the standards, so I think the current behavior is reasonable. Both the size and signedness of wchar_t are implementation-defined. They're going to match one of the other integer types and you can argue that the way you print that integer type (usually %lld) should not warn when given a wchar_t., but that is not portable. The portable way to do this is with a cast; I think it's reasonable to warn on code that doesn't do 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 Dec 13 15:43:12 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 13 Dec 2010 15:43:12 -0600 (CST) Subject: [LLVMbugs] [Bug 8784] New: Optimise mov -1, reg to or Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8784 Summary: Optimise mov -1, reg to or Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: joerg at NetBSD.org CC: llvmbugs at cs.uiuc.edu [Using AT&T syntax] The code generator should consider the following transformation: movl $-1, %eax ==> orl $-1, %eax movq $-1, %rax ==> orq $-1, %rax This save 2 (3) Bytes at the cost of a partial dependency on the flags and the old register state. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 13 19:15:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 13 Dec 2010 19:15:00 -0600 (CST) Subject: [LLVMbugs] [Bug 8785] New: Suboptimal for logical test -> 0/1 with width > 8bit. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8785 Summary: Suboptimal for logical test -> 0/1 with width > 8bit. Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: joerg at NetBSD.org CC: llvmbugs at cs.uiuc.edu Test program: int testf(int f) { return f != 0; } Resulting assembler: testl %edi, %edi setne %al movzbl %al, %eax More compact assembler: xorl %eax, %eax testl %edi, %edi setne %al This saves one byte and may result in better scheduling. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 14 01:32:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 14 Dec 2010 01:32:08 -0600 (CST) Subject: [LLVMbugs] [Bug 8786] New: Checking whether libc provides ssp during configure doesn't work well for linux Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8786 Summary: Checking whether libc provides ssp during configure doesn't work well for linux 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: woongsik76.choi at gmail.com CC: llvmbugs at cs.uiuc.edu llvm-gcc/gcc/configure script checks glibc version to decide whether glibc provides ssp routines. The check is performed with egrep as follows: # glibc 2.4 and later provides __stack_chk_fail and # either __stack_chk_guard, or TLS access to stack guard canary. if test -f $glibc_header_dir/features.h \ && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__ ... ... In the above code, "[ ]" pattern consists of bunch of spaces. However, it should be a tab and a space to correctly match both tabs and spaces in features.h. I have attached a patch for llvm-gcc/gcc/configure and llvm-gcc/gcc/configure.ac to solve this small 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 Tue Dec 14 04:44:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 14 Dec 2010 04:44:29 -0600 (CST) Subject: [LLVMbugs] [Bug 8787] New: Support/Regex is unaware of LLP64(Win64) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8787 Summary: Support/Regex is unaware of LLP64(Win64) Product: libraries Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: Support Libraries AssignedTo: unassignedbugs at nondot.org ReportedBy: geek4civic at gmail.com CC: llvmbugs at cs.uiuc.edu in regexec.c: /* macros for manipulating states, small version */ #define states long /* i32 */ #define states1 states #include "regengine.inc" /* now undo things */ #undef states /* macros for manipulating states, large version */ #define states char * if (g->nstates <= (long)(CHAR_BIT*sizeof(states1)) ... "states1" is expanded as "char *", and the condition becomes true even if nstates > 32. Then regex might behave buggy. Workaround: --- a/lib/Support/regexec.c +++ b/lib/Support/regexec.c @@ -54,8 +54,8 @@ #include "regex2.h" /* macros for manipulating states, small version */ -#define states long -#define states1 states /* for later use in llvm_regexec() decision */ +#define states1 long /* for later use in llvm_regexec() decision */ +#define states states1 #define CLEAR(v) ((v) = 0) #define SET0(v, n) ((v) &= ~((unsigned long)1 << (n))) #define SET1(v, n) ((v) |= (unsigned long)1 << (n)) -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 14 05:42:50 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 14 Dec 2010 05:42:50 -0600 (CST) Subject: [LLVMbugs] [Bug 8788] New: inline and global function causes undefined reference Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8788 Summary: inline and global function causes undefined reference Product: clang Version: 2.7 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: r.marek at assembler.cz CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5899) --> (http://llvm.org/bugs/attachment.cgi?id=5899) Compile with clang bug.c Hello, By accident i found following code cannot link: inline int fn(void) { return 0; } int main(void) { return fn(); } /tmp/cc-bS3Ask.o: In function `main': bug.c:(.text+0xe): undefined reference to `fn' collect2: ld returned 1 exit status clang: error: linker command failed with exit code 1 (use -v to see invocation) If invoked with -c I got following: U fn 00000000 T main I would expect to get "T" and not "U". Adding "static" "fixes" the problem. I use ubuntu 10.04 clang version: $ clang --version clang version 1.1 (branches/release_27) Target: i386-pc-linux-gnu Thread model: posix Thanks, Rudolf -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 14 06:00:56 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 14 Dec 2010 06:00:56 -0600 (CST) Subject: [LLVMbugs] [Bug 8788] inline and global function causes undefined reference In-Reply-To: References: Message-ID: <20101214120056.2EFC82A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8788 Rudolf Marek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #1 from Rudolf Marek 2010-12-14 06:00:55 CST --- Looks like this is correct: http://clang.llvm.org/compatibility.html#inline -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 14 08:04:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 14 Dec 2010 08:04:47 -0600 (CST) Subject: [LLVMbugs] [Bug 8789] New: Instantiating class template with friend declaration of C::f() hides in-line definition of C::f(). Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8789 Summary: Instantiating class template with friend declaration of C::f() hides in-line definition of C::f(). Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: hans at chromium.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Compiling and linking the following code with Clang built from trunk r121764 fails: template class ClassTemplate { friend void T::func(); }; class C { public: void func() { ClassTemplate ct; } }; int main() { C c; c.func(); } $ clang++ /tmp/c.cc /usr/bin/ld: /tmp/cc-QB69fY.o: in function main:/tmp/c.cc(.text+0x14): error: undefined reference to 'C::func()' clang: error: linker command failed with exit code 1 (use -v to see invocation) If C::func() is defined out-of-line, it works. It seems like instantiating ClassTemplate<> with its friend declaration of T::func() somehow makes the in-line definition of C::func() disappear. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 14 10:20:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 14 Dec 2010 10:20:04 -0600 (CST) Subject: [LLVMbugs] [Bug 8770] Can't access property in Objective-C++ In-Reply-To: References: Message-ID: <20101214162004.B57962A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8770 Fariborz Jahanian changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Fariborz Jahanian 2010-12-14 10:20:04 CST --- (In reply to comment #3) > Created an attachment (id=5894) --> (http://llvm.org/bugs/attachment.cgi?id=5894) [details] > This exhibits the issue One side-note: When submitting test case, make it stand-alone. Please do not include header files which may not be available to every one or pre-processed version of such files which may be under license. I think here is the test case exhibiting the issue. In the test case, property reference is not an l-value. Something the older versions of clang (as well as gcc) were not considering. Older versions of clang (but not gcc) would issue the error when message expression version is used (statement 2). struct S { int x; }; @interface I @property struct S rec; @end void FUNC(I* foo) { foo.rec.x = 10; // 1 [foo rec].x = 10; // 2 } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Dec 14 12:32:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 14 Dec 2010 12:32:16 -0600 (CST) Subject: [LLVMbugs] [Bug 8790] New: Assertion `New != this && "this->replaceAllUsesWith(this) is NOT valid!"' failed. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8790 Summary: Assertion `New != this && "this->replaceAllUsesWith(this) is NOT valid!"' 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 [regehr at gamow tmp431]$ clang -v clang version 2.9 (trunk 121771) Target: x86_64-unknown-linux-gnu Thread model: posix [regehr at gamow tmp431]$ clang -c -O3 small.c -w clang: Value.cpp:312: void llvm::Value::replaceAllUsesWith(llvm::Value*): Assertion `New != this && "this->replaceAllUsesWith(this) is NOT valid!"' failed. 0 clang 0x000000000173bd4f 1 clang 0x000000000173dfc2 2 libpthread.so.0 0x00007ff7ea7ff190 3 libc.so.6 0x00007ff7e9b044b5 gsignal + 53 4 libc.so.6 0x00007ff7e9b07f50 abort + 384 5 libc.so.6 0x00007ff7e9afd481 __assert_fail + 241 6 clang 0x00000000016a8468 llvm::Value::replaceAllUsesWith(llvm::Value*) + 440 7 clang 0x0000000001434a61 8 clang 0x0000000001690b1d llvm::FPPassManager::runOnFunction(llvm::Function&) + 557 9 clang 0x000000000154a98b 10 clang 0x000000000154b0e5 11 clang 0x0000000001691f44 llvm::MPPassManager::runOnModule(llvm::Module&) + 500 12 clang 0x00000000016920b7 llvm::PassManagerImpl::run(llvm::Module&) + 167 13 clang 0x00000000007f20d9 clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&, clang::TargetOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 1625 14 clang 0x00000000007ee0cb 15 clang 0x00000000009192b3 clang::ParseAST(clang::Sema&, bool) + 291 16 clang 0x00000000007ef0b4 clang::CodeGenAction::ExecuteAction() + 68 17 clang 0x00000000006e8fc5 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 357 18 clang 0x00000000006c44dc clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1276 19 clang 0x00000000006bc0eb cc1_main(char const**, char const**, char const*, void*) + 539 20 clang 0x00000000006c3565 main + 4197 21 libc.so.6 0x00007ff7e9aefabd __libc_start_main + 253 22 clang 0x00000000006ba999 Stack dump: 0. Program arguments: /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r121771-install/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name small.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20 -resource-dir /uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r121771-install/bin/../lib/clang/2.9 -O3 -w -ferror-limit 19 -fmessage-length 90 -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 'Value Propagation' 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 gamow tmp431]$ cat small.c typedef short int int16_t; typedef int int32_t; typedef long int int64_t; typedef unsigned char uint8_t; typedef unsigned short int uint16_t; typedef unsigned int uint32_t; static uint8_t safe_div_func_int64_t_s_s (int64_t si1, uint8_t si2) { return si2 == 0 || si1 && si2 == 0 ? : (si1 / si2); } static uint8_t safe_rshift_func_uint16_t_u_s (uint16_t left, int right) { return right || right ? : left >> right; } uint8_t g_11; uint8_t *g = &g_11; int32_t func_29 (int32_t * const *p_30, int16_t p_31); int326 (uint32_t p_27, uint8_t ** p_28) { uint8_t *const *l_246[1][10]; uint8_t l_247; lbl_290:l_247 &= func_29 (l_246[0][6], 0); } int32_t func_29 (int32_t * const *p_30, int16_t p_31) { uint8_t l_44 = 0; for (0; g; g = 1) if (safe_rshift_func_uint16_t_u_s (safe_div_func_int64_t_s_s (1, g_11), l_44)) { uint8_t *l_46[6]; int i; for (i = 0; i < 1; i++) l_46[i] = &g_11; lbl_243:0; } else { for (l_44 = 1; 0; 1) { } if (g_11) goto lbl_243; 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 Tue Dec 14 13:05:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 14 Dec 2010 13:05:09 -0600 (CST) Subject: [LLVMbugs] [Bug 8781] -Wformat warns about using wchar_t with %d In-Reply-To: References: Message-ID: <20101214190509.711152A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8781 Dale Johannesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #3 from Dale Johannesen 2010-12-14 13:05:09 CST --- Ah, I didn't understand you were objecting to the fixit, not the warning. I agree. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 14 17:44:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 14 Dec 2010 17:44:29 -0600 (CST) Subject: [LLVMbugs] [Bug 8791] New: Presence of friend member functions should be checked at template instantiation time Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8791 Summary: Presence of friend member functions should be checked at template instantiation time 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 gcc does this, and it allows gcc to give a better diagnostic than clang: hummer:src thakis$ cat test2.cc template class C { friend void T::f(); }; class A { }; void f() { C c; A a; a.f(); } hummer:src thakis$ gcc -c test2.cc test2.cc: In instantiation of ?C?: test2.cc:10: instantiated from here test2.cc:3: error: no ?void A::f()? member function declared in class ?A? hummer:src thakis$ ~/src/llvm-svn/Release/bin/clang -c test2.cc test2.cc:12:5: error: no member named 'f' in 'A' a.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 Tue Dec 14 18:55:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 14 Dec 2010 18:55:47 -0600 (CST) Subject: [LLVMbugs] [Bug 8790] Assertion `New != this && "this->replaceAllUsesWith(this) is NOT valid!"' failed. In-Reply-To: References: Message-ID: <20101215005547.B218D2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8790 Owen Anderson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |resistor at mac.com Resolution| |FIXED --- Comment #1 from Owen Anderson 2010-12-14 18:55:47 CST --- Fixed in r121817. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 14 22:01:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 14 Dec 2010 22:01:16 -0600 (CST) Subject: [LLVMbugs] [Bug 8789] Instantiating class template with friend declaration of C::f() hides in-line definition of C::f(). In-Reply-To: References: Message-ID: <20101215040116.D65842A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8789 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from John McCall 2010-12-14 22:01:16 CST --- I fixed this in a totally different way in r121833. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 15 00:11:50 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 15 Dec 2010 00:11:50 -0600 (CST) Subject: [LLVMbugs] [Bug 8792] New: using namespace creates ambiguity when there isn't. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8792 Summary: using namespace creates ambiguity when there isn't. Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: scoopr at iki.fi CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Following test-case compiles on gcc, but doesn't on clang (r121362) namespace foo { struct B { int i; }; } namespace bar { struct B { int i; }; } using namespace foo; using namespace bar; class A { protected: struct B { float f; }; struct C { B b; void foo() { b.f = 0; } }; }; clang says: t.cpp:28:9: error: reference to 'B' is ambiguous B b; ^ t.cpp:4:12: note: candidate found by name lookup is 'foo::B' struct B { ^ t.cpp:10:12: note: candidate found by name lookup is 'bar::B' struct B { ^ t.cpp:29:24: error: no member named 'f' in 'foo::B' void foo() { b.f = 0; } ~ ^ 2 errors generated. So, it forgets about the inner B when same-named struct are brought in with 'using namespace' -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 15 13:43:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 15 Dec 2010 13:43:00 -0600 (CST) Subject: [LLVMbugs] [Bug 1726] Could remove a getTargetNode variant In-Reply-To: References: Message-ID: <20101215194300.44CE02A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=1726 Dale Johannesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Dale Johannesen 2010-12-15 13:42:59 CST --- Yes, getTargetNode appears to be completely gone. Score one for procrastination! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 15 14:39:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 15 Dec 2010 14:39:17 -0600 (CST) Subject: [LLVMbugs] [Bug 8793] New: Clang compiles member function call with missing () Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8793 Summary: Clang compiles member function call with missing () Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: stoklund at 2pi.dk CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Clang compiles this C++ program without errors or warnings: class A { public: void foo(); }; int main(void) { A a; !a.foo; } GCC rejects it, and I believe GCC is correct. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Dec 15 14:51:50 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 15 Dec 2010 14:51:50 -0600 (CST) Subject: [LLVMbugs] [Bug 8794] New: DwarfDebug emits DW_AT_frame_base even when no frame base exists Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8794 Summary: DwarfDebug emits DW_AT_frame_base even when no frame base exists Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: richard.relph at amd.com CC: llvmbugs at cs.uiuc.edu For some targets (e.g. GPUs), programs are usually sufficiently small that the entire program (an OpenCL kernel) is inlined. Such programs do not have a frame pointer or a stack pointer. We would like DwarfDebug::updateSubprogramScopeDIE() to not emit DW_AT_frame_base when there is no frame base. I had thought that using hasFP() to conditionally emit DW_AT_frame_base would fix the problem. But probably not. Our target always returns false from hasFP(), but I understand that other targets do not return a static true or false. Some use hasFP() to differentiate between when FP and SP is used as 'frame base'. What I think is needed is a way for getFrameRegister() to return as recognizable "no frame" value and have updateSubprogramScopeDIE() test for it before emitting DW_AT_frame_base. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 15 17:41:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 15 Dec 2010 17:41:43 -0600 (CST) Subject: [LLVMbugs] [Bug 8795] New: ICE when using a template parameter with sizeof() as initializer Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8795 Summary: ICE when using a template parameter with sizeof() as initializer Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: joerg at NetBSD.org CC: llvmbugs at cs.uiuc.edu Error: llvm/tools/clang/lib/AST/ExprConstant.cpp:2461: ::ICEDiag CheckICE(const clang::Expr*, clang::ASTContext&): Assertion `!E->isValueDependent() && "Should not see value dependent exprs!"' failed. Sample: template int test(_CharT t) { int data [] = { sizeof(_CharT) > sizeof(char) }; return data[0]; } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Dec 15 20:01:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 15 Dec 2010 20:01:44 -0600 (CST) Subject: [LLVMbugs] [Bug 8796] New: failed assert: Duplicate empty class detected Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8796 Summary: failed assert: Duplicate empty class detected Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu Running "clang -cc1 -S foo.ii" on struct FreeCell { }; union ThingOrCell { FreeCell t; FreeCell cell; }; struct Things { ThingOrCell things; }; struct Arena { union { int y; }; Things t; }; struct Arena x; Fails with Assertion failed: (std::find(Classes.begin(), Classes.end(), RD) == Classes.end() && "Duplicate empty class detected!"), function AddSubobjectAtOffset, file /Users/espindola/llvm/clang/lib/AST/RecordLayoutBuilder.cpp, line 221. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 16 04:20:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 16 Dec 2010 04:20:09 -0600 (CST) Subject: [LLVMbugs] [Bug 8797] New: llvm-ld doesn't recognize dynamic library type Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8797 Summary: llvm-ld doesn't recognize dynamic library type Product: tools Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: llvm-ld AssignedTo: unassignedbugs at nondot.org ReportedBy: theintensity at gmail.com CC: llvmbugs at cs.uiuc.edu On OSX 10.6.5, when running llvm-ld with the linking option -lprofile_rt (to link the profiling dynamic library located at lib/libprofile_rt.dylib) it cannot load the library. llvm-ld is searching the correct path, but does not recognize the libprofile_rt.dylib as a valid library to load. Any simple program can be used to demonstrate the issue, run something like: llvm-ld -native -L/lib -lprofile_rt -o This works on other platforms. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 16 15:48:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 16 Dec 2010 15:48:40 -0600 (CST) Subject: [LLVMbugs] [Bug 8798] New: [MC assembler] incorrect reloc type for push of a label argument (on x86_64) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8798 Summary: [MC assembler] incorrect reloc type for push of a label argument (on x86_64) Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: dimitry at andric.com CC: llvmbugs at cs.uiuc.edu In the FreeBSD kernel tree, there is an assembler fragment for use on x86_64, that approximately looks like this: pushq $foo foo: Assembling this with gas produces an R_X86_64_32S relocation for pushq's operand: Relocation section '.rela.text' at offset 0x300 contains 1 entries: Offset Info Type Sym. Value Sym. Name + Addend 000000000001 00010000000b R_X86_64_32S 0000000000000000 .text + 5 However, clang's integrated assembler (I tested r121705) gives an R_X86_64_32 relocation instead: Relocation section '.rela.text' at offset 0x100 contains 1 entries: Offset Info Type Sym. Value Sym. Name + Addend 000000000001 00020000000a R_X86_64_32 0000000000000000 .text + 5 Apparently this type is incorrect, as it leads to a "relocation truncated to fit: R_X86_64_32 .text" error later during linking. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 16 16:52:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 16 Dec 2010 16:52:39 -0600 (CST) Subject: [LLVMbugs] [Bug 8798] [MC assembler] incorrect reloc type for push of a label argument (on x86_64) In-Reply-To: References: Message-ID: <20101216225239.42C122A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8798 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 Thu Dec 16 22:45:55 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 16 Dec 2010 22:45:55 -0600 (CST) Subject: [LLVMbugs] [Bug 8124] copy is only important at the start of a method name In-Reply-To: References: Message-ID: <20101217044556.133E32A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8124 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #11 from Ted Kremenek 2010-12-16 22:45:54 CST --- Fixed here: http://llvm.org/viewvc/llvm-project?view=rev&revision=122036 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 17 00:04:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 17 Dec 2010 00:04:48 -0600 (CST) Subject: [LLVMbugs] [Bug 8799] New: Debugging code generator crash Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8799 Summary: Debugging code generator crash Product: tools Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: bugpoint AssignedTo: unassignedbugs at nondot.org ReportedBy: vincef13 at yahoo.com CC: llvmbugs at cs.uiuc.edu While hunting down a bug in the llvm optimizer on darwin x86_64: bugpoint -run-llc-ia vm.bc -Xlinker liball.a -Xlinker -lpthread -Xlinker -ldl -Xlinker -lobjc -output=good.txt Read input file : 'vm.bc' *** All input ok Initializing execution environment: Found gcc: /usr/bin/gcc Running the code generator to test for a crash: *** Checking the code generator... Abort trap*** Debugging code generator crash! Checking to see if we can delete global inits: Assertion failed: (BA->getFunction() == BA->getBasicBlock()->getParent() && "Malformed blockaddress"), function WriteConstants, file /Users/kuehnel/Downloads/llvm-latest/lib/Bitcode/Writer/BitcodeWriter.cpp, line 869. Stack dump: 0. Program arguments: bugpoint -run-llc-ia vm.bc -Xlinker liball.a -Xlinker -lpthread -Xlinker -ldl -Xlinker -lobjc -output=good.txt Illegal instruction -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 17 05:15:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 17 Dec 2010 05:15:11 -0600 (CST) Subject: [LLVMbugs] [Bug 8800] New: conversion function not viable if conversion-type-id is reference to incomplete type Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8800 Summary: conversion function not viable if conversion-type-id is reference to incomplete type Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: zilla at kayari.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com $ clang++ -v clang version 2.9 (trunk 121966) Target: x86_64-unknown-linux-gnu Thread model: posix $ $ cat conv.cc struct A; struct C { operator A&(); }; int main() { C c; A& a1(c); A& a2 = c; A& a3 = static_cast(c); A& a4 = (A&)c; } $ $ clang++ conv.cc conv.cc:10:8: error: no viable conversion from 'C' to 'A' A& a1(c); ^ ~ conv.cc:4:5: note: candidate function operator A&(); ^ conv.cc:11:8: error: no viable conversion from 'C' to 'A' A& a2 = c; ^ ~ conv.cc:4:5: note: candidate function operator A&(); ^ conv.cc:12:13: error: no viable conversion from 'C' to 'A' A& a3 = static_cast(c); ^ ~ conv.cc:4:5: note: candidate function operator A&(); ^ 3 errors generated. All four initializations should use the same conversion but only the fourth one works. Conversion to A* works fine, but not 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 Dec 17 06:13:49 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 17 Dec 2010 06:13:49 -0600 (CST) Subject: [LLVMbugs] [Bug 8786] Checking whether libc provides ssp during configure doesn't work well for linux In-Reply-To: References: Message-ID: <20101217121349.DB1EF2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8786 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |wendling at apple.com Resolution| |FIXED --- Comment #2 from Bill Wendling 2010-12-17 06:13:49 CST --- Perhaps someone's editor was overzealous? :-) Applied your patch in r122055. 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 Dec 17 08:51:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 17 Dec 2010 08:51:02 -0600 (CST) Subject: [LLVMbugs] [Bug 8801] New: Crash/assertion failure on compiling C++ code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8801 Summary: Crash/assertion failure on compiling C++ code Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: mike at tedder.cc CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5902) --> (http://llvm.org/bugs/attachment.cgi?id=5902) Source file which causes the assertion Using the latest trunk for llvm (r122054) and clang (r122056), I am getting the following assertion when trying to compile a source file: ~/src/delegate $ ~/src/clang/build/Debug+Asserts/bin/clang++ -o d2 delegate.cpp clang: /home/bpoint/src/clang/llvm/tools/clang/lib/Sema/SemaTemplateInstantiate.cpp:1702: clang::Decl* clang::LocalInstantiationScope::getInstantiationOf(const clang::Decl*): Assertion `D->isInvalidDecl() && "declaration was not instantiated in this scope!"' failed. 0 clang 0x00000000023ff981 1 clang 0x00000000023ff774 2 libpthread.so.0 0x00007ff79ea62d80 3 libc.so.6 0x00007ff79dd2df25 gsignal + 53 4 libc.so.6 0x00007ff79dd2f8d6 abort + 390 5 libc.so.6 0x00007ff79dd26755 __assert_fail + 245 6 clang 0x00000000015fb2cf clang::LocalInstantiationScope::getInstantiationOf(clang::Decl const*) + 235 7 clang 0x000000000162035d clang::Sema::FindInstantiatedDecl(clang::SourceLocation, clang::NamedDecl*, clang::MultiLevelTemplateArgumentList const&) + 219 8 clang 0x00000000015f7f85 9 clang 0x0000000001602250 10 clang 0x00000000015fc87c 11 clang 0x00000000015fc1cd 12 clang 0x00000000015fc2ec 13 clang 0x00000000016000a8 14 clang 0x00000000015fc51c 15 clang 0x00000000015fc1cd 16 clang 0x00000000015f8f97 clang::Sema::SubstType(clang::TypeSourceInfo*, clang::MultiLevelTemplateArgumentList const&, clang::SourceLocation, clang::DeclarationName) + 241 17 clang 0x00000000016176d1 clang::TemplateDeclInstantiator::VisitTypedefDecl(clang::TypedefDecl*) + 233 18 clang 0x0000000001615349 clang::DeclVisitor::Visit(clang::Decl*) + 719 19 clang 0x000000000161d72c clang::Sema::SubstDecl(clang::Decl*, clang::DeclContext*, clang::MultiLevelTemplateArgumentList const&) + 130 20 clang 0x00000000015f7fdf 21 clang 0x0000000001603ce9 22 clang 0x00000000015fce0c 23 clang 0x00000000016105c0 24 clang 0x0000000001603c36 25 clang 0x00000000015fcdb6 26 clang 0x00000000015faf81 clang::Sema::SubstStmt(clang::Stmt*, clang::MultiLevelTemplateArgumentList const&) + 125 27 clang 0x000000000161ed46 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool) + 1506 28 clang 0x0000000001620b49 clang::Sema::PerformPendingInstantiations(bool) + 341 29 clang 0x000000000161ee87 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool) + 1827 30 clang 0x0000000001620b49 clang::Sema::PerformPendingInstantiations(bool) + 341 31 clang 0x000000000141bc89 clang::Sema::ActOnEndOfTranslationUnit() + 307 32 clang 0x00000000013e0702 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 80 33 clang 0x00000000013cac00 clang::ParseAST(clang::Sema&, bool) + 328 34 clang 0x000000000114027d clang::ASTFrontendAction::ExecuteAction() + 263 35 clang 0x00000000012697fb clang::CodeGenAction::ExecuteAction() + 969 36 clang 0x000000000113fed0 clang::FrontendAction::Execute() + 320 37 clang 0x0000000001128aa1 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 745 38 clang 0x00000000010d8695 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 878 39 clang 0x00000000010cb48f cc1_main(char const**, char const**, char const*, void*) + 990 40 clang 0x00000000010d47a4 main + 484 41 libc.so.6 0x00007ff79dd18cdd __libc_start_main + 253 42 clang 0x00000000010cab09 Stack dump: 0. Program arguments: /home/bpoint/src/clang/build/Debug+Asserts/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name delegate.cpp -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.1.20100303 -resource-dir /home/bpoint/src/clang/build/Debug+Asserts/bin/../lib/clang/2.9 -ferror-limit 19 -fmessage-length 132 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-Qfat7a.o -x c++ delegate.cpp 1. parser at end of file 2. delegate.cpp:50:24: instantiating function definition 'Delegate2' 3. delegate.cpp:13:2: instantiating function definition 'Delegate' clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) The source is a C++ delegate implementation, derived from http://www.codeproject.com/KB/cpp/CppDelegateImplementation.aspx . I have attached a stripped-down version of the code to this bug report. Incidentally, clang-2.8 generates two errors on this source file without crashing. MSVC (VS2008), gcc-4.4, and comeau have no issues with compiling. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 17 16:25:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 17 Dec 2010 16:25:25 -0600 (CST) Subject: [LLVMbugs] [Bug 8802] New: [MC assembler] incorrect reloc type for push of a label argument (on i386) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8802 Summary: [MC assembler] incorrect reloc type for push of a label argument (on i386) Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: dimitry at andric.com CC: llvmbugs at cs.uiuc.edu This is a similar issue as bug 8798. In some FreeBSD kernel assembly code for i386, there is this fragment: pushl $foo foo: Assembling this with gas produces an R_386_32 relocation for pushl's operand: RELOCATION RECORDS FOR [.text]: OFFSET TYPE VALUE 00000001 R_386_32 .text while the disassembly looks like this: 00000000 : 0: 68 00 00 00 00 push $0x0 Clang's integrated assembler (I tested r122085) gives an R_386_8 relocation instead: RELOCATION RECORDS FOR [.text]: OFFSET TYPE VALUE 00000001 R_386_8 .text Also, the disassembly shows an 8-byte operand to push: 00000000 : 0: 6a 00 push $0x0 At link time, this leads to a "relocation truncated to fit: R_386_8 .text" error. A difference with bug 8798 is that now the produced opcodes are also changed. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Dec 17 19:04:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 17 Dec 2010 19:04:43 -0600 (CST) Subject: [LLVMbugs] [Bug 8802] [MC assembler] incorrect reloc type for push of a label argument (on i386) In-Reply-To: References: Message-ID: <20101218010443.14B0A2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8802 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Rafael ?vila de Esp?ndola 2010-12-17 19:04:42 CST --- Fixed in 122121 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 17 20:36:34 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 17 Dec 2010 20:36:34 -0600 (CST) Subject: [LLVMbugs] [Bug 8803] New: llvm-mc does not parse "/" line comments Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8803 Summary: llvm-mc does not parse "/" line comments 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: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu On Linux, binutils as treats a / at the beginning of a line (or preceded by whitespace) as a line-long comment. This is used by NSPR in the wild and not supported by llvm-mc, or the system assembler on Darwin. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 17 21:36:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 17 Dec 2010 21:36:54 -0600 (CST) Subject: [LLVMbugs] [Bug 8803] llvm-mc does not parse "/" line comments In-Reply-To: References: Message-ID: <20101218033654.40CF82A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8803 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |rafael.espindola at gmail.com Resolution| |DUPLICATE --- Comment #1 from Rafael ?vila de Esp?ndola 2010-12-17 21:36:53 CST --- *** This bug has been marked as a duplicate of bug 8658 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 17 22:36:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 17 Dec 2010 22:36:57 -0600 (CST) Subject: [LLVMbugs] [Bug 8804] New: Missing MemOperands on movss caust lost LICM opportunity Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8804 Summary: Missing MemOperands on movss caust lost LICM opportunity Product: libraries Version: trunk Platform: PC 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 Created an attachment (id=5905) --> (http://llvm.org/bugs/attachment.cgi?id=5905) SingleSource/UnitTests/Vector/build2 The X86 instruction selector can use movss for zextloads of vectors: def : Pat<(v4f32 (X86vzmovl (v4f32 (scalar_to_vector (loadf32 addr:$src))))), (SUBREG_TO_REG (i32 0), (MOVSSrm addr:$src), sub_ss)>; Unfortunately, this pattern causes the memory operands to be attached to the SUBREG_TO_REG node instead of the MOVSSrm node: ISEL: Starting pattern match on root node: 0x101058610: v4f32 = X86ISD::VZEXT_MOVL 0x101058110 [ID=64] Initial Opcode index to 12237 OpcodeSwitch from 12242 to 12247 Match failed at index 12262 Continuing at 12286 Match failed at index 12288 Continuing at 12303 Match failed at index 12315 Continuing at 12413 Skipped scope entry (due to false predicate) at index 12417, continuing at 12446 Skipped scope entry (due to false predicate) at index 12447, continuing at 12476 Match failed at index 12415 Continuing at 12477 Continuing at 12673 Match failed at index 12675 Continuing at 12733 OpcodeSwitch from 12737 to 12742 TypeSwitch[f32] from 12757 to 12760 MatchAddress: X86ISelAddressMode 0x7fff5fbfdc10 Base_Reg nul Base.FrameIndex 0 Scale1 IndexReg nul Disp 0 GV nul CP nul ES nul JT-1 Align0 Created node: 0x101056e10: f32,ch = MOVSSrm 0x10105d310, 0x10104fc10, 0x10104f310, 0x101056f10, 0x10104f710, 0x100f1e998 Morphed node: 0x101058610: v4f32,ch = SUBREG_TO_REG 0x101057010, 0x101056e10, 0x101058a10, 0x101056e10:1 ISEL: Match complete! => 0x101058610: v4f32,ch = SUBREG_TO_REG 0x101057010, 0x101056e10, 0x101058a10, 0x101056e10:1 Without the memory operands, machine LICM can't hoist the constant pool load. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 17 22:50:55 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 17 Dec 2010 22:50:55 -0600 (CST) Subject: [LLVMbugs] [Bug 8805] New: No indication of what's changed in new releases of the clang analyzer Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8805 Summary: No indication of what's changed in new releases of the clang analyzer Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: pgut001 at cs.auckland.ac.nz CC: llvmbugs at cs.uiuc.edu Every now and then a new release of the clang analyzer appears at http://clang-analyzer.llvm.org/, but there's never any indication of what's new in this release. When 2.52 appears and I'm currently using 2.51 should I go out and build a new install (quite a lengthy process) and re-run it on my code (even lengthier due to having to weed out false positives) or are the changes mostly cosmetic, or portability fixes, and I can hold off for a few more releases? I've gone through the source tree but have never been able to find a changelog, there's nothing on the web pages, and even trawling cfe-dev doesn't provide much insight. Any chance of updating a brief changelog at the clang web site for each release? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Dec 18 02:06:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 18 Dec 2010 02:06:37 -0600 (CST) Subject: [LLVMbugs] [Bug 8806] New: Incorrect warning: expression result unused Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8806 Summary: Incorrect warning: expression result unused Product: clang Version: unspecified Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: github at geheimwerk.de CC: llvmbugs at cs.uiuc.edu I get this warning when building the code below with Clang 1.6: warning: expression result unused [-Wunused-value] for (NSUInteger j = finish; j >= start, j != NSUIntegerMax; j--) { ~ ^ ~~~~~ I am absolutely sure that the expression is indeed used so even if I am doing something funky the warning is incorrect. ----- SNIP ----- // ObjC Foundation command line utility #import int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSString *text = @"01234567890123456789"; NSUInteger start = 0; NSUInteger finish = 10; for (NSUInteger j = finish; j >= start, j != NSUIntegerMax; j--) { NSLog(@"%C\n", [text characterAtIndex:j]); } [pool drain]; return 0; } ----- SNIP ----- -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 18 02:58:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 18 Dec 2010 02:58:08 -0600 (CST) Subject: [LLVMbugs] [Bug 8615] asmparser cant grok ' In-Reply-To: References: Message-ID: <20101218085808.0553F2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8615 Roman Divacky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #11 from Roman Divacky 2010-12-18 02:58:07 CST --- fixed in 122150. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 18 04:12:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 18 Dec 2010 04:12:45 -0600 (CST) Subject: [LLVMbugs] [Bug 8807] New: Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!") Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8807 Summary: Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!") Product: new-bugs Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: pawel.worach at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5906) --> (http://llvm.org/bugs/attachment.cgi?id=5906) gboxed.bc This happens when building glib20 on FreeBSD/i386 with llvm/clang r122130. % opt -O1 gboxed.bc WARNING: You're attempting to print out a bitcode file. This is inadvisable as it may cause display problems. If you REALLY want to taste LLVM bitcode first-hand, you can force output with the `-f' option. Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"), function getTypeSizeInBits, file /data/buildslave/freebsd-clang-i386/src-llvm/lib/Target/TargetData.cpp, line 447. Stack dump: 0. Program arguments: /data/buildslave/freebsd-clang-i386/obj/obj-llvm.2/Release+Asserts/bin/opt -O1 gboxed.bc 1. Running pass 'CallGraph Pass Manager' on module 'gboxed.bc'. 2. Running pass 'MemCpy Optimization' on function '@g_closure_get_type' Abort (core dumped) Attempting to bugpoint results in broken module. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 18 13:54:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 18 Dec 2010 13:54:38 -0600 (CST) Subject: [LLVMbugs] [Bug 8749] PPC stack references broken In-Reply-To: References: Message-ID: <20101218195438.BD14E2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8749 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #9 from Anton Korobeynikov 2010-12-18 13:54:38 CST --- Should be fixed in r122155. Dale, could you please check that it fixes all the remaining ppc issues appeared after the refactoring? -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 18 15:07:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 18 Dec 2010 15:07:08 -0600 (CST) Subject: [LLVMbugs] [Bug 8808] New: clang -m32 does not pass -L/usr/lib32 to the linker Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8808 Summary: clang -m32 does not pass -L/usr/lib32 to the linker Product: clang Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: michael.kostylev at gmail.com CC: llvmbugs at cs.uiuc.edu % uname -a FreeBSD freebsd64 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010 root at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 % echo 'int main(){ return 0; }' > test.c % clang -m32 -v test.c clang version 2.9 (trunk 122063) Target: i386-unknown-freebsd8.1 Thread model: posix "/opt/clang/bin/clang" -cc1 -triple i386-unknown-freebsd8.1 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name test.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.20.1.20100303 -v -resource-dir /opt/clang/bin/../lib/clang/2.9 -ferror-limit 19 -fmessage-length 141 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-VZXw7r.o -x c test.c clang -cc1 version 2.9 based upon llvm 2.9svn hosted on x86_64-unknown-freebsd8.1 #include "..." search starts here: #include <...> search starts here: /usr/local/include /opt/clang/bin/../lib/clang/2.9/include /usr/include End of search list. "/usr/local/bin/ld" --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 -m elf_i386_fbsd -o a.out /usr/lib32/crt1.o /usr/lib32/crti.o /usr/lib32/crtbegin.o /tmp/cc-VZXw7r.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib32/crtend.o /usr/lib32/crtn.o /usr/local/bin/ld: skipping incompatible /usr/lib/libgcc.a when searching for -lgcc /usr/local/bin/ld: cannot find -lgcc clang: error: linker command failed with exit code 1 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Dec 18 15:45:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 18 Dec 2010 15:45:19 -0600 (CST) Subject: [LLVMbugs] [Bug 8809] New: False positive on pointer read Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8809 Summary: False positive on pointer read Product: clang Version: unspecified Platform: PC OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: mo at modejong.com CC: llvmbugs at cs.uiuc.edu The static anlanyzer is giving this false positive. static inline uint32_t byte_read_be_argb24(char *ptr) { uint8_t red = *ptr++; uint8_t green = *ptr++; uint8_t blue = *ptr++; uint32_t pixel = (0xFF << 24) | (red << 16) | (green << 8) | blue; return pixel; } movdata.c:1709:19 Value stored to 'ptr' is never read -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 18 16:00:22 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 18 Dec 2010 16:00:22 -0600 (CST) Subject: [LLVMbugs] [Bug 8806] Incorrect warning: expression result unused In-Reply-To: References: Message-ID: <20101218220022.DC8BC2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8806 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Chris Lattner 2010-12-18 16:00:22 CST --- The warning is correct. "a,b" is a comma expression which evaluates and throws away the value of "a". That for loop compiles to the exact same code as: for (NSUInteger j = finish; j != NSUIntegerMax; j--) { -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 18 17:48:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 18 Dec 2010 17:48:41 -0600 (CST) Subject: [LLVMbugs] [Bug 8810] New: All tests should pass with the verifier added Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8810 Summary: All tests should pass with the verifier added Product: libraries Version: trunk Platform: Macintosh OS/Version: All Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: zwarich at apple.com CC: llvmbugs at cs.uiuc.edu I was testing out a new pass and explicitly called the verifier at the end of the pass to check for mistakes on my part. I noticed a lot of errors that couldn't have been caused by my code. I tried again with the verifier added to the end of LiveIntervals and saw the same errors. I'll file separate bugs with the individual errors. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Dec 18 18:07:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 18 Dec 2010 18:07:31 -0600 (CST) Subject: [LLVMbugs] [Bug 8811] New: Some ARM instructions (ADDri, SUBri, t2ANDri, t2SUBri, others?) are generated with a def for CPSR Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8811 Summary: Some ARM instructions (ADDri, SUBri, t2ANDri, t2SUBri, others?) are generated with a def for CPSR Product: libraries Version: trunk Platform: Macintosh OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: zwarich at apple.com CC: llvmbugs at cs.uiuc.edu On some tests in CodeGen/ARM, instructions are generated with defs for CPSR. For example, running the verifier after LiveIntervals gives an error on this example: llc < /Volumes/Data/llvm/test/CodeGen/ARM/2007-05-23-BadPreIndexedStore.ll -march=arm *** Bad machine code: Explicit operand marked as def *** - function: shape_path_alloc - basic block: bb140 0x10284b348 (BB#4) [136L;232L) - instruction: 180L %reg16386 = ADDri %reg16385, 2, pred:14, pred:%reg0, opt:%CPSR; GPR:%reg16386,16385 - operand 5: %CPSR LLVM ERROR: Found 1 machine code errors. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Dec 18 19:06:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 18 Dec 2010 19:06:51 -0600 (CST) Subject: [LLVMbugs] [Bug 8812] New: Verifier complains about missing kill flags on subregisters Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8812 Summary: Verifier complains about missing kill flags on subregisters Product: libraries Version: trunk Platform: Macintosh OS/Version: All Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: zwarich at apple.com CC: llvmbugs at cs.uiuc.edu If I run the verifier after LiveIntervals (at the top of the coalescer) I get the following error on CodeGen/ARM/2009-11-01-NeonMoves.ll: *** Bad machine code: Live range ends without kill flag *** - function: bar - basic block: entry 0x102848798 (BB#0) [0L;240L) - instruction: 140L %reg16397:dsub_1 = COPY %reg16397:dsub_0; QPR:%reg16397 - operand 1: %reg16397:dsub_0 Live range: %reg16397,0.000000e+00 = [132d,140d:1)[140d,164d:0) 0 at 140d 1 at 132d LLVM ERROR: Found 1 machine code errors. However, I don't know if the bug here is in the verifier or the input. Do subregisters need kill 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 Sat Dec 18 19:14:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 18 Dec 2010 19:14:28 -0600 (CST) Subject: [LLVMbugs] [Bug 8813] New: Live ranges from inline assembly begin at use indices Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8813 Summary: Live ranges from inline assembly begin at use indices Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: zwarich at apple.com CC: llvmbugs at cs.uiuc.edu If I run the verifier at the top of the pre-allocation coalescer I get the following output on CodeGen/ARM/2007-05-14-RegScavengerAssert.ll: *** Bad machine code: Inconsistent valno->def *** - function: decode_init - basic block: bb59 0x10284aab8 (BB#3) [72L;144L) - instruction: 92L INLINEASM , 0, 14, %reg16387, 14, %reg16388, 9, %reg16389, 9, %reg16390, 11, 23, 11, 9; GPR:%reg16387,16388,16389,16390 - operand 3: %reg16387 Valno 0 is not defined at 92d in %reg16387,0.000000e+00 = [92u,92S:0) 0 at 92u *** Bad machine code: Inconsistent valno->def *** - function: decode_init - basic block: bb59 0x10284aab8 (BB#3) [72L;144L) - instruction: 92L INLINEASM , 0, 14, %reg16387, 14, %reg16388, 9, %reg16389, 9, %reg16390, 11, 23, 11, 9; GPR:%reg16387,16388,16389,16390 - operand 5: %reg16388 Valno 0 is not defined at 92d in %reg16388,0.000000e+00 = [92u,100d:0) 0 at 92u *** Bad machine code: Inconsistent valno->def *** - function: decode_init - basic block: bb59 0x10284aab8 (BB#3) [72L;144L) - instruction: 124L INLINEASM , 0, 14, %reg16391, 14, %reg16392, 9, %reg16393, 9, %reg16394, 11, 23, 11, 9; GPR:%reg16391,16392,16393,16394 - operand 3: %reg16391 Valno 0 is not defined at 124d in %reg16391,0.000000e+00 = [124u,124S:0) 0 at 124u *** Bad machine code: Inconsistent valno->def *** - function: decode_init - basic block: bb59 0x10284aab8 (BB#3) [72L;144L) - instruction: 124L INLINEASM , 0, 14, %reg16391, 14, %reg16392, 9, %reg16393, 9, %reg16394, 11, 23, 11, 9; GPR:%reg16391,16392,16393,16394 - operand 5: %reg16392 Valno 0 is not defined at 124d in %reg16392,0.000000e+00 = [124u,132d:0) 0 at 124u *** Bad machine code: Non-PHI def must be at a DEF slot *** - function: decode_init Valno #0 is defined at 92u in %reg16388,0.000000e+00 = [92u,100d:0) 0 at 92u *** Bad machine code: Non-PHI def must be at a DEF slot *** - function: decode_init Valno #0 is defined at 124u in %reg16392,0.000000e+00 = [124u,132d:0) 0 at 124u LLVM ERROR: Found 6 machine code errors. Should these live ranges begin at def indices? I've noticed that they end at def indices rather than use indices 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 Sat Dec 18 19:42:55 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 18 Dec 2010 19:42:55 -0600 (CST) Subject: [LLVMbugs] [Bug 8814] New: [MC assembler] .set directives don't seem to work Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8814 Summary: [MC assembler] .set directives don't seem to work 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: dimitry at andric.com CC: llvmbugs at cs.uiuc.edu It appears .set directives (synonymous with .equ, according to the binutils docs) do not work, at least not with constant expressions. This is on x86_64 and i386, with ELF format, but it may also apply to other arches and object formats, I have not tested those. Reduced testcase: .set kernbase,0xffffffff80000000 Assembling this with GNU as gives the following symbol table in the resulting .o file: Symbol table '.symtab' contains 5 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 0000000000000000 0 SECTION LOCAL DEFAULT 1 2: 0000000000000000 0 SECTION LOCAL DEFAULT 2 3: 0000000000000000 0 SECTION LOCAL DEFAULT 3 4: ffffffff80000000 0 NOTYPE LOCAL DEFAULT ABS kernbase Assembling with integrated-as (r122159) gives: Symbol table '.symtab' contains 5 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 0000000000000000 0 NOTYPE LOCAL DEFAULT ABS kernbase 2: 0000000000000000 0 SECTION LOCAL DEFAULT 1 3: 0000000000000000 0 SECTION LOCAL DEFAULT 2 4: 0000000000000000 0 SECTION LOCAL DEFAULT 3 E.g. the 'kernbase' symbol is not assigned 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 Sat Dec 18 22:47:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 18 Dec 2010 22:47:38 -0600 (CST) Subject: [LLVMbugs] [Bug 8815] New: Verifier incorrectly complains about multiple connected components of a LiveInterval Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8815 Summary: Verifier incorrectly complains about multiple connected components of a LiveInterval Product: libraries Version: trunk Platform: Macintosh OS/Version: All Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: zwarich at apple.com CC: llvmbugs at cs.uiuc.edu In the case of early clobbers from inline assembly, the MachineVerifier's warning about multiple connected components of an LI is incorrect, e.g. on CodeGen/ARM/2009-08-15-RegScavenger-EarlyClobber.ll: 132L INLINEASM , 0, 14, %reg16398, 14, %reg16399, 9, %reg16409, 9, %reg16410, 2147483657, %reg16398; GR32:%reg16398,16399,16410 GR64:%reg16409 *** Bad machine code: Multiple connected components in live interval *** - function: generic_segment_checks 2 components in %reg16398,0.000000e+00 = [124d,132u:1)[132u,140d:0) 0 at 132u 1 at 124d 0: valnos 0 1: valnos 1 LLVM ERROR: Found 4 machine code errors. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Dec 18 22:59:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 18 Dec 2010 22:59:26 -0600 (CST) Subject: [LLVMbugs] [Bug 8642] possible spurious divide by zero In-Reply-To: References: Message-ID: <20101219045926.370B92A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8642 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #23 from Chris Lattner 2010-12-18 22:59:25 CST --- Actually, that patch wasn't the right approach either. I reverted it and fixed the issue in r122170. Thanks for reporting this! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Dec 18 23:52:34 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 18 Dec 2010 23:52:34 -0600 (CST) Subject: [LLVMbugs] [Bug 8602] Assertion `!cast(Use)->isVolatile() && "AST broken"' failed. In-Reply-To: References: Message-ID: <20101219055234.7D09E2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8602 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clattner at apple.com Resolution| |FIXED --- Comment #7 from Chris Lattner 2010-12-18 23:52:34 CST --- Fixed in r122171, the bug was an incorrect assertion. Thanks John! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 19 10:36:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 19 Dec 2010 10:36:08 -0600 (CST) Subject: [LLVMbugs] [Bug 8816] New: [REGRESSION] r122072 miscompiles adpcm.c from FFmpeg Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8816 Summary: [REGRESSION] r122072 miscompiles adpcm.c from FFmpeg 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: ismail at namtrac.org CC: llvmbugs at cs.uiuc.edu According to http://fate.ffmpeg.org/x86_64-apple-darwin10-clang/20101219094946 FFmpeg pcm code is miscompiled, bisection confirmed that r122071 by resistor results in adpcm.c being miscompiled. Only reproducable with -O2 and later on. Attached is the preprocessed source for adpcm.c. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Dec 19 12:35:35 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 19 Dec 2010 12:35:35 -0600 (CST) Subject: [LLVMbugs] [Bug 8816] [REGRESSION] r122072 miscompiles adpcm.c from FFmpeg In-Reply-To: References: Message-ID: <20101219183535.A9B442A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8816 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #10 from Chris Lattner 2010-12-19 12:35:35 CST --- Fixed in r122177. Thanks for reporting this and finding the guilty patch! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 19 13:14:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 19 Dec 2010 13:14:44 -0600 (CST) Subject: [LLVMbugs] [Bug 8817] New: GVN should CSE llvm.uadd/llvm.sadd with add Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8817 Summary: GVN should CSE llvm.uadd/llvm.sadd with add Product: libraries Version: 1.0 Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: clattner at apple.com CC: llvmbugs at cs.uiuc.edu GVN should replace "add5" with uadd's 0th value: %0 = type { i64, i1 } define i64 @add(i64 %a, i64 %b) nounwind ssp { entry: %uadd = tail call %0 @llvm.uadd.with.overflow.i64(i64 %a, i64 %b) %cmp = extractvalue %0 %uadd, 1 br i1 %cmp, label %if.then, label %if.end if.then: ; preds = %entry tail call void @exit(i32 0) noreturn nounwind unreachable if.end: ; preds = %entry %add5 = add i64 %b, %a ret i64 %add5 } declare void @exit(i32) noreturn declare %0 @llvm.uadd.with.overflow.i64(i64, i64) nounwind readnone -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 19 13:38:49 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 19 Dec 2010 13:38:49 -0600 (CST) Subject: [LLVMbugs] [Bug 4916] Optimize add and unsigned compare to add-with-overflow In-Reply-To: References: Message-ID: <20101219193849.674CB2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4916 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2010-12-19 13:38:48 CST --- This is implemented in r122182. We still get poor code though because GVN is not cse'ing the add and add-with-overflow. This is tracked in PR8817. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 19 14:10:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 19 Dec 2010 14:10:07 -0600 (CST) Subject: [LLVMbugs] [Bug 8818] New: -E produces code that clang can't parse Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8818 Summary: -E produces code that clang can't parse Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nicolasweber at gmx.de CC: llvmbugs at cs.uiuc.edu dhcp-172-19-253-91:chrome thakis$ cat test.m #include dhcp-172-19-253-91:chrome thakis$ /Users/thakis/src/llvm-rw/Release+Asserts/bin/clang++ -arch i386 -E -o tmp2.m test.m dhcp-172-19-253-91:chrome thakis$ /Users/thakis/src/llvm-rw/Release+Asserts/bin/clang++ -c tmp2.m In file included from test.m:1: In file included from test.m:1: In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:30: In file included from /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QD.h:29: /System/Library/Frameworks/ApplicationServices.framework/Frameworks/ColorSync.framework/Headers/ColorSyncDeprecated.h:1236:9: error: mac68k alignment pragma is not supported on this target #pragma options align=mac68k ^ /System/Library/Frameworks/ApplicationServices.framework/Frameworks/ColorSync.framework/Headers/ColorSyncDeprecated.h:3157:9: error: mac68k alignment pragma is not supported on this target #pragma options align=mac68k ^ In file included from test.m:1: In file included from test.m:1: In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:38: In file included from /System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PrintCore.h:30: /System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PMDefinitions.h:28:9: error: mac68k alignment pragma is not supported on this target #pragma options align=mac68k ^ In file included from test.m:1: In file included from test.m:1: In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:38: In file included from /System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PrintCore.h:38: /System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PMDefinitionsDeprecated.h:31:9: error: mac68k alignment pragma is not supported on this target #pragma options align=mac68k ^ 4 errors generated. Works fine with gcc. In clang, it works if I pass '-arch i386' to the second invocation, but since the output of -E is supposed to be self-contained, that shouldn't be required. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 19 14:15:10 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 19 Dec 2010 14:15:10 -0600 (CST) Subject: [LLVMbugs] [Bug 8819] New: Regression (r121857): clang doesn't terminate when trying to compile a file Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8819 Summary: Regression (r121857): clang doesn't terminate when trying to compile a file Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nicolasweber at gmx.de CC: llvmbugs at cs.uiuc.edu When building chrome, clang doesn't terminate when trying to compile a file. I bisected this, it started in r121857. It's somewhat hard to produce a reduced test case, because when I create a preprocessed file with -E, it is compiled just fine: $ time /Users/thakis/src/llvm-rw/Release+Asserts/bin/clang++ -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fno-exceptions -fno-rtti -O0 -Werror -Wnewline-eof -DCHROMIUM_BUILD -DENABLE_REMOTING=1 -DENABLE_GPU=1 -DLIBXML_STATIC -D__STDC_FORMAT_MACROS -DDYNAMIC_ANNOTATIONS_ENABLED=1 -D_DEBUG -isysroot /Developer/SDKs/MacOSX10.5.sdk -fvisibility=hidden -fvisibility-inlines-hidden -fno-threadsafe-statics -mmacosx-version-min=10.5 -gdwarf-2 -Wall -Wendif-labels -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -F/Users/thakis/src/chrome-git/src/clang/Debug -F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks -I/Users/thakis/src/chrome-git/src/clang/Debug/include -I../third_party/icu/public/common -I../third_party/icu/public/i18n -I../gpu -I.. -I/Users/thakis/src/chrome-git/src/clang/DerivedSources/Debug/chrome -I../third_party/mesa/MesaLib/include -I/Users/thakis/src/chrome-git/src/clang/DerivedSources/Debug/app -I/Users/thakis/src/chrome-git/src/clang/DerivedSources/Debug/app/app_resources -I../skia/config -I../third_party/skia/include/config -I../third_party/skia/include/core -I../third_party/skia/include/effects -I../skia/ext -I../third_party/bzip2 -I../third_party/libxml/mac/include -I../third_party/libxml/src/include -I../third_party/sqlite -I../third_party/zlib -I../third_party/npapi -I../third_party/npapi/bindings -I/Users/thakis/src/chrome-git/src/clang/obj/chrome.build/Debug/common.build/DerivedSources/i386 -I/Users/thakis/src/chrome-git/src/clang/obj/chrome.build/Debug/common.build/DerivedSources -c /Users/thakis/src/chrome-git/src/chrome/common/render_messages.cc -o tmp.cc -Eclang: warning: argument unused during compilation: '-c' real 0m0.413s user 0m0.202s sys 0m0.186s dhcp-172-19-253-91:chrome thakis$ time /Users/thakis/src/llvm-rw/Release+Asserts/bin/clang++ -x c++ -arch i386 -c tmp.ccreal 0m8.251suser 0m7.799ssys 0m0.437s But if I try to compile directly, clang hangs: dhcp-172-19-253-91:chrome thakis$ time /Users/thakis/src/llvm-rw/Release+Asserts/bin/clang++ -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fno-exceptions -fno-rtti -O0 -Werror -Wnewline-eof -DCHROMIUM_BUILD -DENABLE_REMOTING=1 -DENABLE_GPU=1 -DLIBXML_STATIC -D__STDC_FORMAT_MACROS -DDYNAMIC_ANNOTATIONS_ENABLED=1 -D_DEBUG -isysroot /Developer/SDKs/MacOSX10.5.sdk -fvisibility=hidden -fvisibility-inlines-hidden -fno-threadsafe-statics -mmacosx-version-min=10.5 -gdwarf-2 -Wall -Wendif-labels -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -F/Users/thakis/src/chrome-git/src/clang/Debug -F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks -I/Users/thakis/src/chrome-git/src/clang/Debug/include -I../third_party/icu/public/common -I../third_party/icu/public/i18n -I../gpu -I.. -I/Users/thakis/src/chrome-git/src/clang/DerivedSources/Debug/chrome -I../third_party/mesa/MesaLib/include -I/Users/thakis/src/chrome-git/src/clang/DerivedSources/Debug/app -I/Users/thakis/src/chrome-git/src/clang/DerivedSources/Debug/app/app_resources -I../skia/config -I../third_party/skia/include/config -I../third_party/skia/include/core -I../third_party/skia/include/effects -I../skia/ext -I../third_party/bzip2 -I../third_party/libxml/mac/include -I../third_party/libxml/src/include -I../third_party/sqlite -I../third_party/zlib -I../third_party/npapi -I../third_party/npapi/bindings -I/Users/thakis/src/chrome-git/src/clang/obj/chrome.build/Debug/common.build/DerivedSources/i386 -I/Users/thakis/src/chrome-git/src/clang/obj/chrome.build/Debug/common.build/DerivedSources -c /Users/thakis/src/chrome-git/src/chrome/common/render_messages.cc -o tmp.cc ^C real 2m42.244s user 0m0.004s sys 0m0.010s -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 19 15:38:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 19 Dec 2010 15:38:45 -0600 (CST) Subject: [LLVMbugs] [Bug 8811] Some ARM instructions (ADDri, SUBri, t2ANDri, t2SUBri, others?) are generated with a def for CPSR In-Reply-To: References: Message-ID: <20101219213845.E66772A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8811 Cameron Zwarich changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Cameron Zwarich 2010-12-19 15:38:45 CST --- Fixed in r122199. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 19 16:13:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 19 Dec 2010 16:13:38 -0600 (CST) Subject: [LLVMbugs] [Bug 8815] Verifier incorrectly complains about multiple connected components of a LiveInterval In-Reply-To: References: Message-ID: <20101219221338.8774A2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8815 Cameron Zwarich changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Cameron Zwarich 2010-12-19 16:13:38 CST --- Fixed in r122202. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 19 16:30:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 19 Dec 2010 16:30:28 -0600 (CST) Subject: [LLVMbugs] [Bug 8820] New: False MachineVerifier warning on CodeGen/ARM/2010-04-09-NeonSelect.ll Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8820 Summary: False MachineVerifier warning on CodeGen/ARM/2010-04-09-NeonSelect.ll Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: zwarich at apple.com CC: llvmbugs at cs.uiuc.edu Script: -- llc -march=arm -mattr=+neon < /Volumes/Data/llvm/test/CodeGen/ARM/2010-04-09-NeonSelect.ll -- Exit Code: 1 Command Output (stderr): -- # Machine code for function vDSP_FFT16_copv: Constant Pool: cp#0: float 0.000000e+00, align=4 cp#1: <4 x float> , align=16 0L BB#0: derived from LLVM BB %entry 4L %reg16388 = VLDRS , 0, pred:14, pred:%reg0; mem:LD4[ConstantPool] SPR:%reg16388 12L CMPri %reg16389, 0, pred:14, pred:%reg0, %CPSR; GPR:%reg16389 20L %reg16390 = COPY %reg16388; SPR:%reg16390,16388 28L %reg16390 = VMOVScc %reg16390, %reg16391, pred:1, pred:%CPSR; SPR:%reg16390,16391 36L %reg16392 = VDUPfqf %reg16390, pred:14, pred:%reg0; QPR:%reg16392 SPR:%reg16390 44L %reg16393 = LEApcrel , pred:14, pred:%reg0; GPR:%reg16393 52L %reg16395 = VADDfq %reg16392, %reg16396, pred:14, pred:%reg0; QPR:%reg16395,16392,16396 60L %reg16397 = VSUBfq %reg16395, %reg16398, pred:14, pred:%reg0; QPR:%reg16397,16395,16398 68L %reg16399 = COPY %reg16397; QPR:%reg16399,16397 76L %reg16399, %reg16400 = VZIPq32 %reg16399, %reg16400, pred:14, pred:%reg0; QPR:%reg16399,16400,16400 88L CMPri %reg16407, 0, pred:14, pred:%reg0, %CPSR; GPR:%reg16407 96L Bcc , pred:1, pred:%CPSR 104L B Successors according to CFG: BB#2 BB#1 116L BB#1: derived from LLVM BB %bb3 Predecessors according to CFG: BB#0 120L MOVPCLR pred:14, pred:%reg0 132L BB#2: derived from LLVM BB %bb4 Predecessors according to CFG: BB#0 136L MOVPCLR pred:14, pred:%reg0 # End machine code for function vDSP_FFT16_copv. *** Bad machine code: Instruction killing live segment doesn't read register *** - function: vDSP_FFT16_copv - basic block: entry 0x102849598 (BB#0) [0L;116L) - instruction: 76L %reg16399, %reg16400 = VZIPq32 %reg16399, %reg16400, pred:14, pred:%reg0; QPR:%reg16399,16400,16400 [76d,76S:0) in %reg16400,0.000000e+00 = [76d,76S:0) 0 at 76d LLVM ERROR: Found 1 machine code errors. -- -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Dec 19 17:25:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 19 Dec 2010 17:25:59 -0600 (CST) Subject: [LLVMbugs] [Bug 8821] New: clang crashes when compiling webkit Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8821 Summary: clang crashes when compiling webkit Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nicolasweber at gmx.de CC: llvmbugs at cs.uiuc.edu Reduced test case: dhcp-172-19-253-91:WebCore.gyp thakis$ cat tmp.cpp #define WTF_MAKE_NONCOPYABLE(ClassName) \ _Pragma("clang diagnostic push") \ _Pragma("clang diagnostic ignored \"-Wunknown-pragmas\"") \ _Pragma("clang diagnostic pop") template class RefCountedCustomAllocated { WTF_MAKE_NONCOPYABLE(RefCountedCustomAllocated); }; dhcp-172-19-253-91:WebCore.gyp thakis$ ~/src/llvm-rw/Release+Asserts/bin/clang -c tmp.cpp Assertion failed: ((Loc.isInvalid() || DiagStatePoints.empty() || DiagStatePoints.back().Loc.isInvalid() || DiagStatePoints.back().Loc.isBeforeInTranslationUnitThan(Loc)) && "Previous point loc comes after or is the same as new one"), function PushDiagStatePoint, file /Users/thakis/src/llvm-rw/tools/clang/lib/Basic/../../include/clang/Basic/Diagnostic.h, line 231. 0 clang 0x0000000101483462 PrintStackTrace(void*) + 34 1 clang 0x00000001014842b3 SignalHandler(int) + 707 2 libSystem.B.dylib 0x00007fff8059635a _sigtramp + 26 3 libSystem.B.dylib 000000000000000000 _sigtramp + 2141625536 4 clang 0x0000000100019662 __assert_rtn + 66 5 clang 0x000000010089e7c8 clang::Diagnostic::popMappings(clang::SourceLocation) + 280 6 clang 0x00000001008903f9 (anonymous namespace)::PragmaDiagnosticHandler::HandlePragma(clang::Preprocessor&, clang::PragmaIntroducerKind, clang::Token&) + 2153 7 clang 0x000000010089098d clang::PragmaNamespace::HandlePragma(clang::Preprocessor&, clang::PragmaIntroducerKind, clang::Token&) + 333 8 clang 0x000000010089098d clang::PragmaNamespace::HandlePragma(clang::Preprocessor&, clang::PragmaIntroducerKind, clang::Token&) + 333 9 clang 0x00000001008899d6 clang::Preprocessor::Handle_Pragma(unsigned int, std::string const&, clang::SourceLocation, clang::SourceLocation) + 166 10 clang 0x000000010088d308 clang::Preprocessor::Handle_Pragma(clang::Token&) + 1464 11 clang 0x0000000100884d70 clang::Preprocessor::ExpandBuiltinMacro(clang::Token&) + 1392 12 clang 0x000000010088630b clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroInfo*) + 475 13 clang 0x0000000100894bad clang::Preprocessor::HandleIdentifier(clang::Token&) + 477 14 clang 0x000000010089a517 clang::TokenLexer::Lex(clang::Token&) + 727 15 clang 0x0000000100865007 clang::Lexer::LexTokenInternal(clang::Token&) + 6503 16 clang 0x000000010088d35e clang::Preprocessor::Handle_Pragma(clang::Token&) + 1550 17 clang 0x0000000100884d70 clang::Preprocessor::ExpandBuiltinMacro(clang::Token&) + 1392 18 clang 0x000000010088630b clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroInfo*) + 475 19 clang 0x0000000100894bad clang::Preprocessor::HandleIdentifier(clang::Token&) + 477 20 clang 0x000000010089a517 clang::TokenLexer::Lex(clang::Token&) + 727 21 clang 0x0000000100865007 clang::Lexer::LexTokenInternal(clang::Token&) + 6503 22 clang 0x000000010088d35e clang::Preprocessor::Handle_Pragma(clang::Token&) + 1550 23 clang 0x0000000100884d70 clang::Preprocessor::ExpandBuiltinMacro(clang::Token&) + 1392 24 clang 0x000000010088630b clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroInfo*) + 475 25 clang 0x0000000100894bad clang::Preprocessor::HandleIdentifier(clang::Token&) + 477 26 clang 0x000000010089a517 clang::TokenLexer::Lex(clang::Token&) + 727 27 clang 0x0000000100886465 clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroInfo*) + 821 28 clang 0x0000000100894bad clang::Preprocessor::HandleIdentifier(clang::Token&) + 477 29 clang 0x0000000100861965 clang::Lexer::LexIdentifier(clang::Token&, char const*) + 757 30 clang 0x0000000100863a85 clang::Lexer::LexTokenInternal(clang::Token&) + 997 31 clang 0x000000010087075f clang::Preprocessor::CachingLex(clang::Token&) + 303 32 clang 0x00000001002fd9ab clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int, clang::Decl*) + 1755 33 clang 0x00000001002ff251 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 6017 34 clang 0x00000001002ee439 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 6425 35 clang 0x000000010032858b clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::AccessSpecifier) + 539 36 clang 0x000000010032b0de clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 878 37 clang 0x000000010032b551 clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 417 38 clang 0x00000001002f5bce clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::CXX0XAttributeList) + 1118 39 clang 0x00000001003370d1 clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList, clang::Parser::ParsingDeclSpec*) + 2737 40 clang 0x0000000100337490 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 112 41 clang 0x00000001002e2e0f clang::ParseAST(clang::Sema&, bool) + 159 42 clang 0x000000010029dbcc clang::CodeGenAction::ExecuteAction() + 60 43 clang 0x00000001000514c9 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 393 44 clang 0x0000000100023652 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1602 45 clang 0x000000010001b3ca cc1_main(char const**, char const**, char const*, void*) + 586 46 clang 0x00000001000225f4 main + 4964 47 clang 0x0000000100019d44 start + 52 Stack dump: 0. Program arguments: /Users/thakis/src/llvm-rw/Release+Asserts/bin/clang -cc1 -triple x86_64-apple-darwin10.0.0 -emit-obj -mrelax-all -disable-free -main-file-name tmp.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 97.17 -resource-dir /Users/thakis/src/llvm-rw/Release+Asserts/bin/../lib/clang/2.9 -ferror-limit 19 -fmessage-length 247 -stack-protector 1 -fblocks -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o tmp.o -x c++ tmp.cpp 1. tmp.cpp:7:5 : current parser token ')' 2. tmp.cpp:6:22: parsing struct/union/class body 'RefCountedCustomAllocated' clang: error: unable to execute command: Illegal instruction clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Dec 19 17:36:49 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 19 Dec 2010 17:36:49 -0600 (CST) Subject: [LLVMbugs] [Bug 8822] New: DBG_VALUE using a killed register Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8822 Summary: DBG_VALUE using a killed register Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: zwarich at apple.com CC: llvmbugs at cs.uiuc.edu If I run the verifier on CodeGen/ARM/2010-06-25-Thumb2ITInvalidIterator.ll I get the following output: # Machine code for function x0: Constant Pool: cp#0: length, align=4 Function Live Ins: %R0 in reg%16389, %R1 in reg%16390 0L BB#0: derived from LLVM BB %entry Live Ins: %R0 %R1 DBG_VALUE %R0, 0, !"buf"; dbg:t.c:4:24 DBG_VALUE %R1, 0, !"nbytes"; dbg:t.c:4:43 4L %reg16390 = COPY %R1; rGPR:%reg16390 DBG_VALUE %reg16390, 0, !"nbytes"; rGPR:%reg16390 dbg:t.c:4:43 12L %reg16389 = COPY %R0; GPR:%reg16389 DBG_VALUE %reg16389, 0, !"buf"; GPR:%reg16389 dbg:t.c:4:24 20L %reg16392 = t2LDRpci ; mem:LD4[ConstantPool] GPR:%reg16392 dbg:t.c:9:2 28L %reg16393 = t2LDRi12 %reg16392, 0, pred:14, pred:%reg0; mem:LD4[GOT] GPR:%reg16393,16392 dbg:t.c:9:2 36L %reg16394 = t2LDRi12 %reg16393, 0, pred:14, pred:%reg0; mem:LD4[@length] rGPR:%reg16394 GPR:%reg16393 dbg:t.c:9:2 44L %reg16395 = t2MOVi 0, pred:14, pred:%reg0, opt:%reg0; rGPR:%reg16395 52L t2CMPrr %reg16394, %reg16390, pred:14, pred:%reg0, %CPSR; rGPR:%reg16394,16390 dbg:t.c:9:2 60L %reg16397 = COPY %reg16395; rGPR:%reg16397,16395 dbg:t.c:9:2 68L %reg16397 = t2MOVCCi %reg16397, 1, pred:3, pred:%CPSR; rGPR:%reg16397 dbg:t.c:9:2 76L t2CMPri %reg16394, -1, pred:14, pred:%reg0, %CPSR; rGPR:%reg16394 84L %reg16398 = COPY %reg16395; rGPR:%reg16398,16395 92L %reg16398 = t2MOVCCi %reg16398, 1, pred:1, pred:%CPSR; rGPR:%reg16398 100L t2TSTrr %reg16398, %reg16397, pred:14, pred:%reg0, %CPSR; rGPR:%reg16398,16397 108L %reg16399 = COPY %reg16390; rGPR:%reg16399,16390 116L %reg16399 = t2MOVCCr %reg16399, %reg16394, pred:1, pred:%CPSR; rGPR:%reg16399,16394 124L %reg16391 = COPY %reg16395; GPR:%reg16391 rGPR:%reg16395 132L %reg16384 = COPY %reg16389; GPR:%reg16384,16389 DBG_VALUE %reg16384, 0, !"buf"; GPR:%reg16384 140L %reg16385 = COPY %reg16399; rGPR:%reg16385,16399 DBG_VALUE %reg16394, 0, !"nbytes"; rGPR:%reg16394 dbg:t.c:9:2 DBG_VALUE 0, 0, !"nread"; dbg:t.c:10:2 148L %reg16406 = COPY %reg16391; GPR:%reg16406,16391 Successors according to CFG: BB#1 160L BB#1: derived from LLVM BB %while.cond Predecessors according to CFG: BB#0 BB#3 164L %reg16386 = COPY %reg16406; GPR:%reg16386,16406 172L t2CMPrr %reg16386, %reg16385, pred:14, pred:%reg0, %CPSR; GPR:%reg16386 rGPR:%reg16385 dbg:t.c:11:2 180L t2Bcc , pred:2, pred:%CPSR; dbg:t.c:11:2 188L t2B ; dbg:t.c:11:2 Successors according to CFG: BB#2 BB#4 200L BB#2: derived from LLVM BB %land.rhs Predecessors according to CFG: BB#1 204L ADJCALLSTACKDOWN 0, pred:14, pred:%reg0, %SP, %SP 212L tBLXi_r9 pred:14, pred:%reg0, , %R0, %R1, %CPSR, %R7, %SP, ...; dbg:t.c:11:2 220L ADJCALLSTACKUP 0, 0, pred:14, pred:%reg0, %SP, %SP 228L %reg16403 = COPY %R0; GPR:%reg16403 dbg:t.c:11:2 236L t2CMPri %reg16403, -1, pred:14, pred:%reg0, %CPSR; GPR:%reg16403 dbg:t.c:11:2 244L t2Bcc , pred:0, pred:%CPSR; dbg:t.c:11:2 252L t2B ; dbg:t.c:11:2 Successors according to CFG: BB#4 BB#3 264L BB#3: derived from LLVM BB %while.body Predecessors according to CFG: BB#2 268L %reg16387 = COPY %reg16403; GPR:%reg16387,16403 dbg:t.c:11:2 276L %reg16404 = COPY %reg16386; rGPR:%reg16404 GPR:%reg16386 284L t2STRBs %reg16387, %reg16384, %reg16404, 0, pred:14, pred:%reg0; mem:ST1[%sunkaddr2] GPR:%reg16387,16384 rGPR:%reg16404 dbg:t.c:12:3 292L %reg16405 = t2ADDri %reg16386, 1, pred:14, pred:%reg0, opt:%reg0; rGPR:%reg16405 GPR:%reg16386 dbg:t.c:13:3 300L %reg16388 = COPY %reg16405; GPR:%reg16388 rGPR:%reg16405 dbg:t.c:13:3 308L %reg16406 = COPY %reg16388; GPR:%reg16406,16388 316L t2B ; dbg:t.c:14:2 Successors according to CFG: BB#1 328L BB#4: derived from LLVM BB %while.end Predecessors according to CFG: BB#1 BB#2 332L tBX_RET; dbg:t.c:15:1 # End machine code for function x0. *** Bad machine code: Using a killed virtual register *** - function: x0 - basic block: entry 0x102849198 (BB#0) [0L;160L) - instruction: DBG_VALUE %reg16394, 0, !"nbytes"; rGPR:%reg16394 dbg:t.c:9:2 - operand 0: %reg16394 LLVM ERROR: Found 1 machine code errors. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Dec 19 18:08:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 19 Dec 2010 18:08:31 -0600 (CST) Subject: [LLVMbugs] [Bug 8822] MachineVerifier should ignore DBG_VALUE instructions In-Reply-To: References: Message-ID: <20101220000831.8AAEA2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8822 Cameron Zwarich changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Cameron Zwarich 2010-12-19 18:08:31 CST --- Fixed in r122207. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 19 19:23:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 19 Dec 2010 19:23:09 -0600 (CST) Subject: [LLVMbugs] [Bug 8820] False MachineVerifier warning on CodeGen/ARM/2010-04-09-NeonSelect.ll In-Reply-To: References: Message-ID: <20101220012309.53C0B2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8820 Cameron Zwarich changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Cameron Zwarich 2010-12-19 19:23:08 CST --- Fixed in r122218. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 19 20:11:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 19 Dec 2010 20:11:00 -0600 (CST) Subject: [LLVMbugs] [Bug 8823] New: scheduler crash on CodeGen/Generic/add-with-overflow-128.ll when running on x86-32 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8823 Summary: scheduler crash on CodeGen/Generic/add-with-overflow-128.ll when running on x86-32 Product: libraries Version: 1.0 Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: clattner at apple.com CC: llvmbugs at cs.uiuc.edu CodeGen/Generic/add-with-overflow-128.ll is now crashing when run on x86-32 hosts. To me this looks like some sort of scheduler bug, but I could really use some help tracking this down. For now, I'm just going to disable the test. If this doesn't get resolved in a couple weeks, I'll start reverting patches to hide the latent bug again. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Dec 19 21:15:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 19 Dec 2010 21:15:46 -0600 (CST) Subject: [LLVMbugs] [Bug 8813] Verifier complains about live ranges from inline assembly beginning at use indices In-Reply-To: References: Message-ID: <20101220031546.134EA2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8813 Cameron Zwarich changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Cameron Zwarich 2010-12-19 21:15:45 CST --- Second half fixed in r122225. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 19 21:44:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 19 Dec 2010 21:44:51 -0600 (CST) Subject: [LLVMbugs] [Bug 8824] New: Spurious MachineVerifier failures on CodeGen/X86/2007-05-07-InvokeSRet.ll Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8824 Summary: Spurious MachineVerifier failures on CodeGen/X86/2007-05-07-InvokeSRet.ll Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: zwarich at apple.com CC: llvmbugs at cs.uiuc.edu # Machine code for function invoker: Frame Objects: fi#-1: size=4, align=8, fixed, at location [SP+4] 0L BB#0: derived from LLVM BB %entry 4L EH_LABEL 12L ADJCALLSTACKDOWN32 4, %ESP, %EFLAGS, %ESP 20L %reg16384 = MOV32rm , 1, %reg0, 0, %reg0; mem:LD4[FixedStack-1](align=8) GR32:%reg16384 28L %reg16385 = COPY %ESP; GR32:%reg16385 36L MOV32mr %reg16385, 1, %reg0, 0, %reg0, %reg16384; mem:ST4[Stack] GR32:%reg16385,16384 44L CALLpcrel32 , %ESP, ... 52L ADJCALLSTACKUP32 4, 4, %ESP, %EFLAGS, %ESP 60L EH_LABEL 68L JMP_4 Successors according to CFG: BB#1 BB#1 80L BB#1: derived from LLVM BB %return, EH LANDING PAD Live Ins: %EAX %EDX Predecessors according to CFG: BB#0 BB#0 84L EH_LABEL 92L RET # End machine code for function invoker. *** Bad machine code: MBB has more than one landing pad successor *** - function: invoker - basic block: entry 0x102846198 (BB#0) [0L;80L) *** Bad machine code: MBB exits via unconditional branch but doesn't have exactly one CFG successor! *** - function: invoker - basic block: entry 0x102846198 (BB#0) [0L;80L) LLVM ERROR: Found 2 machine code errors. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Dec 19 22:20:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 19 Dec 2010 22:20:02 -0600 (CST) Subject: [LLVMbugs] [Bug 8824] Spurious MachineVerifier failures on CodeGen/X86/2007-05-07-InvokeSRet.ll In-Reply-To: References: Message-ID: <20101220042002.1C40E2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8824 Cameron Zwarich changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Cameron Zwarich 2010-12-19 22:20:01 CST --- Fixed in r122228. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 19 22:46:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 19 Dec 2010 22:46:16 -0600 (CST) Subject: [LLVMbugs] [Bug 8825] New: MachineVerifier gives ARM register class mismatch errors on tests Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8825 Summary: MachineVerifier gives ARM register class mismatch errors on tests Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: zwarich at apple.com CC: llvmbugs at cs.uiuc.edu Here's an example: ******************** TEST 'LLVM :: CodeGen/Thumb/large-stack.ll' FAILED ******************** Script: -- llc < /Volumes/Data/llvm/test/CodeGen/Thumb/large-stack.ll -mtriple=thumb-apple-darwin | FileCheck /Volumes/Data/llvm/test/CodeGen/Thumb/large-stack.ll -- Exit Code: 1 Command Output (stderr): -- # Machine code for function test3: Frame Objects: fi#0: size=4, align=4, at location [SP] fi#1: size=4, align=4, at location [SP] fi#2: size=805306369, align=16, at location [SP] Function Live Outs: %R0 0L BB#0: derived from LLVM BB %0 4L %reg16385 = tADDrSPi , 0; GPR:%reg16385 12L %reg16384, %CPSR = tMOVi8 0, pred:14, pred:%reg0; tGPR:%reg16384 24L tSTRi %reg16384, %reg16385, 0, pred:14, pred:%reg0; mem:ST4[%tmp] tGPR:%reg16384 GPR:%reg16385 32L %R0 = COPY %reg16384; tGPR:%reg16384 40L tBX_RET %R0 # End machine code for function test3. *** Bad machine code: Illegal virtual register for instruction *** - function: test3 - basic block: 0x102846b98 (BB#0) [0L;52L) - instruction: 4L %reg16385 = tADDrSPi , 0; GPR:%reg16385 - operand 0: %reg16385 Expected a tGPR register, but got a GPR register *** Bad machine code: Illegal virtual register for instruction *** - function: test3 - basic block: 0x102846b98 (BB#0) [0L;52L) - instruction: 24L tSTRi %reg16384, %reg16385, 0, pred:14, pred:%reg0; mem:ST4[%tmp] tGPR:%reg16384 GPR:%reg16385 - operand 1: %reg16385 Expected a tGPR register, but got a GPR register LLVM ERROR: Found 2 machine code errors. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Dec 19 23:29:37 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 19 Dec 2010 23:29:37 -0600 (CST) Subject: [LLVMbugs] [Bug 8826] New: MachineVerifier complains about undefined physical registers at implicit uses Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8826 Summary: MachineVerifier complains about undefined physical registers at implicit uses Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: zwarich at apple.com CC: llvmbugs at cs.uiuc.edu For example, on CodeGen/Alpha/2005-12-12-MissingFCMov.ll: *** Bad machine code: Using an undefined physical register *** - function: main - basic block: loopexit.6 0x10283c588 (BB#8) [224L;328L) - instruction: 292L JSR %R26, %R27, %R29, %R27, %R29, ... - operand 47: %R29 LLVM ERROR: Found 1 machine code errors. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Dec 19 23:41:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 19 Dec 2010 23:41:46 -0600 (CST) Subject: [LLVMbugs] [Bug 8827] New: MachineVerifier complains about undefined physical registers at segment register uses Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8827 Summary: MachineVerifier complains about undefined physical registers at segment register uses Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: zwarich at apple.com CC: llvmbugs at cs.uiuc.edu For example, on X86/tls5.ll: # Machine code for function f: Function Live Outs: %EAX 0L BB#0: derived from LLVM BB %entry 4L %reg16384 = MOV32rm %reg0, 1, %reg0, [TF=11], %GS; mem:LD4[@i] GR32:%reg16384 12L %EAX = COPY %reg16384; GR32:%reg16384 20L RET %EAX # End machine code for function f. *** Bad machine code: Using an undefined physical register *** - function: f - basic block: entry 0x102847198 (BB#0) [0L;32L) - instruction: 4L %reg16384 = MOV32rm %reg0, 1, %reg0, [TF=11], %GS; mem:LD4[@i] GR32:%reg16384 - operand 5: %GS LLVM ERROR: Found 1 machine code errors. There are similar errors for %FS. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 19 23:49:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 19 Dec 2010 23:49:44 -0600 (CST) Subject: [LLVMbugs] [Bug 8828] New: MachineVerifier complains about MovePCtoLR Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8828 Summary: MachineVerifier complains about MovePCtoLR Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: PowerPC AssignedTo: unassignedbugs at nondot.org ReportedBy: zwarich at apple.com CC: llvmbugs at cs.uiuc.edu Run the verifier on CodeGen/PowerPC/indirectbr.ll: *** Bad machine code: Explicit operand marked as def *** - function: foo - basic block: entry 0x102845b98 (BB#0) [0L;72L) - instruction: 12L %LR = MovePCtoLR %LR - operand 0: %LR LLVM ERROR: Found 1 machine code errors. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Dec 20 01:45:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 20 Dec 2010 01:45:39 -0600 (CST) Subject: [LLVMbugs] [Bug 8769] wrong code with -O2 In-Reply-To: References: Message-ID: <20101220074539.CE4332A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8769 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Chris Lattner 2010-12-20 01:45:39 CST --- Fixed in r122234, 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 Dec 20 02:36:49 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 20 Dec 2010 02:36:49 -0600 (CST) Subject: [LLVMbugs] [Bug 8807] Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!") In-Reply-To: References: Message-ID: <20101220083649.CCAD62A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8807 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2010-12-20 02:36:49 CST --- Fixed in r122238 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 20 02:40:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 20 Dec 2010 02:40:14 -0600 (CST) Subject: [LLVMbugs] [Bug 8696] Optimizations not done without platform parameters In-Reply-To: References: Message-ID: <20101220084014.0D0F62A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8696 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Chris Lattner 2010-12-20 02:40:13 CST --- This is a feature, which allows you to perform target independent optimizations on target independent bytecode files without making them magically target specific. If you want these optimizations, your frontend should introduce a target data string. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Dec 20 04:59:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 20 Dec 2010 04:59:44 -0600 (CST) Subject: [LLVMbugs] [Bug 8829] New: bad interaction bt attribute noreturn and throw specification Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8829 Summary: bad interaction bt attribute noreturn and throw specification Product: clang Version: 2.8 Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: akim.demaille at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=5910) --> (http://llvm.org/bugs/attachment.cgi?id=5910) input file When compiling (-Wall) the following file, there's a weird warning: $ clang -Wall foo.cc -o foo -c foo.cc:6:1: warning: 'fail' is missing exception specification 'throw(int)' fail() ^ throw(int) foo.cc:2:13: note: previous declaration is here static void fail() throw (int); ^ foo.cc:6:1: warning: unused function 'fail' [-Wunused-function] fail() ^ 2 warnings generated. clang is happier if I repeat the noreturn spec on the definition of the function. GCC does not require that. So I would say there are two issues: - the warning is very misleading (read "wrong" :) - maybe it should not even exist, as GCC does not require it. Thanks for all the good 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 Mon Dec 20 05:16:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 20 Dec 2010 05:16:47 -0600 (CST) Subject: [LLVMbugs] [Bug 8830] New: ,section @note is not support [PATCH] Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8830 Summary: ,section @note is not support [PATCH] 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: joerg at NetBSD.org CC: llvmbugs at cs.uiuc.edu Adds support for @note sections including test case. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Dec 20 05:19:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 20 Dec 2010 05:19:51 -0600 (CST) Subject: [LLVMbugs] [Bug 8831] New: -Wformat-security: Cannot pass 0 as format-string Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8831 Summary: -Wformat-security: Cannot pass 0 as format-string Product: clang Version: 2.8 Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: akim.demaille at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5912) --> (http://llvm.org/bugs/attachment.cgi?id=5912) C source file In the following file, Clang makes a warning for something on which GCC does not. Since there is a specific attribute to forbid null pointers as arguments, it seems to me that the best behavior here is that of GCC. clang -Wall format.cc -o foo -c format.cc:7:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] myprintf(0); ^ 1 warning generated. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Dec 20 07:28:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 20 Dec 2010 07:28:40 -0600 (CST) Subject: [LLVMbugs] [Bug 8832] New: missed switch case for IndirectField in DeclContextPrinter::PrintDeclContext Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8832 Summary: missed switch case for IndirectField in DeclContextPrinter::PrintDeclContext Product: clang Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: gui-tuning at yandex.ru CC: llvmbugs at cs.uiuc.edu rev 122242 cl: clang -cc1 -fms-extensions -print-decl-contexts !.c !.c: struct S { struct { int a; int b; }; } s; result: "Assertion failed: 0 && "decl unhandled", file AstConsumers.cpp, line 417 solution: add switch case for IndirectField after line 415. // case Decl::IndirectField: // { // IndirectFieldDecl *ifd = cast(*I); // Out << " " << ifd << '\n'; // break; // } -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 20 08:35:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 20 Dec 2010 08:35:48 -0600 (CST) Subject: [LLVMbugs] [Bug 8833] New: clang/test: LLP64-unaware tests Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8833 Summary: clang/test: LLP64-unaware tests 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: geek4civic at gmail.com CC: llvmbugs at cs.uiuc.edu Clang :: CodeGen/statements.c Clang :: CodeGenCXX/reinterpret-cast.cpp Clang :: Sema/array-init.c Clang :: Sema/compound-literal.c Clang :: SemaCXX/cstyle-cast.cpp Clang :: SemaCXX/dcl_ambig_res.cpp Clang :: SemaCXX/functional-cast.cpp Clang :: SemaCXX/overloaded-builtin-operators.cpp Clang :: SemaObjC/nonnull.m It seems they are unaware of LLP64. On Win64, 'long' is i32. They assume 'long' as i64. I wonder I might tweak them to execute with explicit 32bit and amd64. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Dec 20 08:41:25 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 20 Dec 2010 08:41:25 -0600 (CST) Subject: [LLVMbugs] [Bug 8834] New: Assertion `false && "Subtype of ScopedDecl not handled."' failed. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8834 Summary: Assertion `false && "Subtype of ScopedDecl not handled."' failed. Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: zilla at kayari.org CC: llvmbugs at cs.uiuc.edu The following code makes "clang++ --analyze" dump core $ cat cr.cc namespace a { } void f() { using namespace a; } $ $ $ clang++ --analyze cr.cc clang: /home/redi/src/llvm/llvm/tools/clang/lib/Analysis/../../include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h:70: void clang::CFGRecStmtDeclVisitor::VisitDecl(clang::Decl*) [with ImplClass = ::RegisterDecls]: Assertion `false && "Subtype of ScopedDecl not handled."' failed. 0 clang 0x000000000143709f 1 clang 0x0000000001439302 2 libpthread.so.0 0x0000003848e0e4c0 3 libc.so.6 0x0000003848230215 gsignal + 53 4 libc.so.6 0x0000003848231cc0 abort + 272 5 libc.so.6 0x0000003848229696 __assert_fail + 246 6 clang 0x0000000000b94030 7 clang 0x0000000000b94568 8 clang 0x0000000000b967bc clang::LiveVariables::LiveVariables(clang::AnalysisContext&, bool) + 508 9 clang 0x0000000000b7c0af clang::AnalysisContext::getLiveVariables() + 95 10 clang 0x0000000000a8895b 11 clang 0x0000000000a89ba9 12 clang 0x0000000000a8abf3 13 clang 0x00000000008335bd clang::ParseAST(clang::Sema&, bool) + 301 14 clang 0x0000000000602a95 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 357 15 clang 0x00000000005e14cc clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1276 16 clang 0x00000000005d92cb cc1_main(char const**, char const**, char const*, void*) + 475 17 clang 0x00000000005e05e5 main + 4133 18 libc.so.6 0x000000384821d974 __libc_start_main + 244 19 clang 0x00000000005d7bd9 Stack dump: 0. Program arguments: /home/redi/tools/Linux-x86_64/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -analyze -disable-free -main-file-name cr.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 -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.17.50.0.6 -resource-dir /home/redi/tools/Linux-x86_64/bin/../lib/clang/2.9 -ferror-limit 19 -fmessage-length 80 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o cr.plist -x c++ cr.cc 1. parser at end of file clang: error: unable to execute command: Aborted (core dumped) clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) $ $ $ clang++ -v clang version 2.9 (trunk 121966) 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 Mon Dec 20 15:15:32 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 20 Dec 2010 15:15:32 -0600 (CST) Subject: [LLVMbugs] [Bug 8814] [MC assembler] .set directives don't seem to work In-Reply-To: References: Message-ID: <20101220211532.6EB262A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8814 Roman Divacky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Roman Divacky 2010-12-20 15:15:32 CST --- fixed in r122268. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 20 15:28:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 20 Dec 2010 15:28:57 -0600 (CST) Subject: [LLVMbugs] [Bug 8831] -Wformat-security: Cannot pass 0 as format-string In-Reply-To: References: Message-ID: <20101220212857.BC7EB2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8831 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |kremenek at apple.com Resolution| |WORKSFORME --- Comment #1 from Ted Kremenek 2010-12-20 15:28:57 CST --- Akim: What version of Clang are you using? This doesn't reproduce 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 Mon Dec 20 16:48:01 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 20 Dec 2010 16:48:01 -0600 (CST) Subject: [LLVMbugs] [Bug 8639] Should be more conservative while issuing an unused command line option warning In-Reply-To: References: Message-ID: <20101220224801.7DB302A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8639 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Rafael ?vila de Esp?ndola 2010-12-20 16:48:01 CST --- Fixed in r122281. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 20 17:51:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 20 Dec 2010 17:51:02 -0600 (CST) Subject: [LLVMbugs] [Bug 8835] New: Clang crash with dependent exception-specification on function pointer Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8835 Summary: Clang crash with dependent exception-specification on function pointer Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: dgregor at apple.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com $ cat t.cpp void g() throw(int); template void f() { void (*fp)() throw(T) = &g; } template void f(); terfin:clang dgregor$ clang++ t.cpp Assertion failed: (!isDependentType() && "This doesn't make sense for dependent types"), function isConstantSizeType, file /Volumes/Data/dgregor/Projects/llvm/tools/clang/lib/AST/Type.cpp, line 710. I find it *very* suspicious that TreeTransform::TransformFunctionProtoType() completely ignores exception specifications, and that TemplateDeclInstantiator::InitFunctionInstantiation() then tries to handle exception-specifications 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 Mon Dec 20 21:08:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 20 Dec 2010 21:08:52 -0600 (CST) Subject: [LLVMbugs] [Bug 8832] missed switch case for IndirectField in DeclContextPrinter::PrintDeclContext In-Reply-To: References: Message-ID: <20101221030852.A0A212A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8832 Francois Pichet changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Francois Pichet 2010-12-20 21:08:52 CST --- Fixed in r122311. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 21 01:15:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 21 Dec 2010 01:15:19 -0600 (CST) Subject: [LLVMbugs] [Bug 8272] Infinite loop in compile In-Reply-To: References: Message-ID: <20101221071519.E10BD2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8272 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Douglas Gregor 2010-12-21 01:15:19 CST --- Fixed by Nicholas in r120135. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 21 01:23:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 21 Dec 2010 01:23:11 -0600 (CST) Subject: [LLVMbugs] [Bug 8795] ICE when using a template parameter with sizeof() as initializer In-Reply-To: References: Message-ID: <20101221072311.9DEB12A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8795 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-12-21 01:23:11 CST --- Thanks for the nice test case! Fixed in Clang r122322. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 21 01:28:50 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 21 Dec 2010 01:28:50 -0600 (CST) Subject: [LLVMbugs] [Bug 6919] clang++: inline friend operator< symbol emitted as non-inline causing linker errors In-Reply-To: References: Message-ID: <20101221072850.5B57C2A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6919 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-12-21 01:28:49 CST --- This was fixed in Clang r121373. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 21 01:42:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 21 Dec 2010 01:42:19 -0600 (CST) Subject: [LLVMbugs] [Bug 8756] Assert while parsing 'using' declaration In-Reply-To: References: Message-ID: <20101221074219.5FEC52A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8756 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Douglas Gregor 2010-12-21 01:42:18 CST --- Fixed in Clang r122323, 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 Dec 21 01:55:59 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 21 Dec 2010 01:55:59 -0600 (CST) Subject: [LLVMbugs] [Bug 8766] clang_getCursorSemanticParent() returns wrong Cursor In-Reply-To: References: Message-ID: <20101221075559.800402A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8766 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-12-21 01:55:59 CST --- Good catch. Fixed in Clang r122324. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 21 01:56:28 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 21 Dec 2010 01:56:28 -0600 (CST) Subject: [LLVMbugs] [Bug 8761] clang_getCursorSemanticParent segfaults In-Reply-To: References: Message-ID: <20101221075628.F1C492A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8761 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-12-21 01:56:28 CST --- The parent of a global declaration is the translation unit. The bugs should be fixed now in r122324. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 21 02:01:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 21 Dec 2010 02:01:48 -0600 (CST) Subject: [LLVMbugs] [Bug 8646] Default arguments with more than one template In-Reply-To: References: Message-ID: <20101221080148.E08ED2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8646 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #3 from Douglas Gregor 2010-12-21 02:01:48 CST --- I'm going to go ahead and close this, since it's extremely unlikely that the C++ committee will do anything other than accept the proposed resolution. If they happen to choose some other resolution, we'll re-open the issue. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Dec 21 02:15:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 21 Dec 2010 02:15:08 -0600 (CST) Subject: [LLVMbugs] [Bug 8649] clang assertion: SmallVector overflow compiling template code In-Reply-To: References: Message-ID: <20101221081508.CC1042A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8649 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2010-12-21 02:15:08 CST --- Fixed in Clang r122325. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 21 07:06:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 21 Dec 2010 07:06:58 -0600 (CST) Subject: [LLVMbugs] [Bug 8836] New: Microsoft's offsetof not recognized as constant expression Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8836 Summary: Microsoft's offsetof not recognized as constant expression Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: tetra2005 at gmail.com CC: llvmbugs at cs.uiuc.edu The following code uses definition of offsetof from MSVS 9 2008 stddef.h: // This is from stddef.h #define offsetof(s,m) (unsigned)&reinterpret_cast((((s *)0)->m)) struct B { char _; long long a; }; int a[ offsetof(B, a) == 8 ? 1 : 2 ]; This fails to parse with message: u:\kernel\kernel2.cpp(7) : error: variable length array declaration not allowed at file scope int a[ offsetof(B, a) == 8 ? 1 : 2 ]; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. VC9 is able to compile 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 Dec 21 08:46:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 21 Dec 2010 08:46:45 -0600 (CST) Subject: [LLVMbugs] [Bug 8837] New: cannot compile this complex compound assignment yet Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8837 Summary: cannot compile this complex compound assignment yet 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: bugzilla at lklundin.dk CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5914) --> (http://llvm.org/bugs/attachment.cgi?id=5914) Two unsupported complex compound assignments The attachment compiles with gcc, but with clang the below error occurs: $ /usr/bin/clang -o /dev/null -c complex_add_assign.c complex_add_assign.c:9:9: error: cannot compile this complex compound assignment yet *pf++ += *pfc++; ^~~~~~~~~~~~~~~ complex_add_assign.c:11:5: error: cannot compile this complex compound assignment yet *pf += *pfc; ^~~~~~~~~~~ 2 errors generated. The PC runs Ubuntu 10.10, $ /usr/bin/clang -v clang version 2.8 (branches/release_28) Target: x86_64-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 Tue Dec 21 09:12:06 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 21 Dec 2010 09:12:06 -0600 (CST) Subject: [LLVMbugs] [Bug 8819] [mc] Regression (r121857): clang doesn't terminate when trying to compile a file In-Reply-To: References: Message-ID: <20101221151206.DC5942A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8819 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Rafael ?vila de Esp?ndola 2010-12-21 09:12:05 CST --- Fixed in 122314. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 21 10:15:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 21 Dec 2010 10:15:54 -0600 (CST) Subject: [LLVMbugs] [Bug 8838] New: CheckObjCDealloc skips IBOutlet properties if class has no other ivars Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8838 Summary: CheckObjCDealloc skips IBOutlet properties if class has no other ivars Product: clang Version: unspecified Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: ejopensource at gmail.com CC: llvmbugs at cs.uiuc.edu The static analyzer skips all dealloc checking for any Obj-C class that contains only IBOutlet pointer ivars. This can be a problem when the IBOutlet ivars correspond to properties that have been declared with retain or copy attributes. The conditional used to skip the entire check begins at line 104 in CheckObjCDealloc.cpp, based on the source code found at: http://clang.llvm.org/doxygen/CheckObjCDealloc_8cpp_source.html For more details, see: 1: http://stackoverflow.com/questions/4474096/iphone-static-code-analysis-from-terminal-fails-to-find-a-missing-ivar-release 2: http://stackoverflow.com/questions/1250518/what-happens-if-i-dont-retain-iboutlet/1250805#1250805 3: http://llvm.org/bugs/show_bug.cgi?id=2517 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 21 10:57:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 21 Dec 2010 10:57:41 -0600 (CST) Subject: [LLVMbugs] [Bug 8199] llvm-lit seems to prepend llvm-gcc install dir ahead of the build artifacts dir in PATH In-Reply-To: References: Message-ID: <20101221165741.2FDA72A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8199 David Greene changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #11 from David Greene 2010-12-21 10:57:40 CST --- Fixed with llvm:122341. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 21 13:20:52 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 21 Dec 2010 13:20:52 -0600 (CST) Subject: [LLVMbugs] [Bug 8839] New: Crash with extern "C" library builtin definition Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8839 Summary: Crash with extern "C" library builtin definition Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: dgregor at apple.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Reported on IRC: terfin:clang dgregor$ cat t.cpp extern "C" char memmove(); int main() { return memmove(); } terfin:clang dgregor$ clang++ t.cpp Assertion failed: (Arg < NumArgs && "Arg access out of range!"), function getArg, file /Volumes/Data/dgregor/Projects/llvm/tools/clang/include/clang/AST/Expr.h, line 1703. The problem is that we still treat inconsistent declarations of library builtins as builtins, when we should treat them as normal user functions. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Dec 21 13:48:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 21 Dec 2010 13:48:51 -0600 (CST) Subject: [LLVMbugs] [Bug 8839] Crash with extern "C" library builtin definition In-Reply-To: References: Message-ID: <20101221194851.D812F2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8839 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-12-21 13:48:51 CST --- Fixed in Clang r122351. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 21 13:50:19 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 21 Dec 2010 13:50:19 -0600 (CST) Subject: [LLVMbugs] [Bug 6646] conftest for libm symbols fail under c++ In-Reply-To: References: Message-ID: <20101221195019.83EA92A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6646 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2010-12-21 13:50:18 CST --- Fixed in Clang r122351. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 21 14:25:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 21 Dec 2010 14:25:20 -0600 (CST) Subject: [LLVMbugs] [Bug 8840] New: fatal error: error in backend: Cannot select: 0x8027e6a10: i64 = srl 0x8027e6610, 0x8027cdc10 [ID=25] Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8840 Summary: fatal error: error in backend: Cannot select: 0x8027e6a10: i64 = srl 0x8027e6610, 0x8027cdc10 [ID=25] Product: libraries Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: rdivacky at freebsd.org CC: llvmbugs at cs.uiuc.edu with r122355 I am getting.. a few commits before this wasnt the case: struct tm { int tm_sec; int tm_mday; }; static char winmsg_buf[256]; char * MakeWinMsgEv(str, win, esc, padlen, ev, rec) char *str; { char *s = str; register char *p = winmsg_buf; struct tm *tm; int l , i, r; int num; int longflg; char *qmpos = 0; tm = 0; for (; *s && (l = winmsg_buf + 256 - 1 - p) > 0; s++, p++) { switch (*s) { if (qmpos) { case 'd': sprintf(p, "%02d", tm->tm_mday % 100); if (p - winmsg_buf > num && !longflg) { } } } } } pes delta$ clang -O2 screen.c fatal error: error in backend: Cannot select: 0x8027dfa10: i64 = srl 0x8027df610, 0x8027d1c10 [ID=25] 0x8027df610: i64 = mul 0x8027df110, 0x8027df510 [ID=23] 0x8027df110: i64 = sign_extend 0x8027d1210 [ID=21] 0x8027d1210: i32,ch = load 0x802778f28, 0x8027c1210, 0x8027d1010 [ORD=7] [ID=19] 0x802778f28: ch = EntryToken [ORD=5] [ID=0] 0x8027c1210: i64 = Constant<4> [ORD=6] [ID=2] 0x8027d1010: i64 = undef [ORD=7] [ID=3] 0x8027df510: i64 = Constant<1374389535> [ID=15] 0x8027d1c10: i64 = Constant<63> [ID=17] pes delta$ -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 21 14:42:03 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 21 Dec 2010 14:42:03 -0600 (CST) Subject: [LLVMbugs] [Bug 8143] #pragma diagnostic ignored is not honoured by template code In-Reply-To: References: Message-ID: <20101221204203.ABC932A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8143 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-12-21 14:42:03 CST --- This is fixed in 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 Tue Dec 21 15:41:21 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 21 Dec 2010 15:41:21 -0600 (CST) Subject: [LLVMbugs] [Bug 8801] Assertion failure instantiating redeclared local class In-Reply-To: References: Message-ID: <20101221214121.EAF702A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8801 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2010-12-21 15:41:21 CST --- Fixed in Clang r122363. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 21 15:57:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 21 Dec 2010 15:57:26 -0600 (CST) Subject: [LLVMbugs] [Bug 8841] New: Spurious "unused function" diagnostic with inline friend definition Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8841 Summary: Spurious "unused function" diagnostic with inline friend definition Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: dgregor at apple.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Compiling the attached source with clang++ -Wunused excess-warning.ii produces the spurious warnings: /Volumes/Data/dgregor/Projects/llvm/tools/clang/lib/Sema/TreeTransform.h:3630:17: warning: unused function 'operator==' [-Wunused-function] friend bool operator==(const TemplateArgumentLocContainerIterator &X, ^ /Volumes/Data/dgregor/Projects/llvm/tools/clang/lib/Sema/TreeTransform.h:3635:17: warning: unused function 'operator!=' [-Wunused-function] friend bool operator!=(const TemplateArgumentLocContainerIterator &X, ^ In general, we probably shouldn't warn about inline friend definitions. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 21 15:57:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 21 Dec 2010 15:57:27 -0600 (CST) Subject: [LLVMbugs] [Bug 8840] fatal error: error in backend: Cannot select: 0x8027e6a10: i64 = srl 0x8027e6610, 0x8027cdc10 [ID=25] In-Reply-To: References: Message-ID: <20101221215727.F2E362A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8840 Dale Johannesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Dale Johannesen 2010-12-21 15:57:27 CST --- Really fixed in 122366. Interesting how many places this transform gets hit, I wasn't expecting that. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Dec 21 20:12:35 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 21 Dec 2010 20:12:35 -0600 (CST) Subject: [LLVMbugs] [Bug 8842] New: Support for __sync_fetch_and_nand and __sync_nand_and_fetch Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8842 Summary: Support for __sync_fetch_and_nand and __sync_nand_and_fetch Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: peckw at wesleypeck.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5919) --> (http://llvm.org/bugs/attachment.cgi?id=5919) GCC 4.4 style __sync_fetch_and_nand and __sync_nand_and_fetch support. Support for the atomic builtins __sync_fetch_and_nand and __sync_nand_and_fetch was removed in commit 99522 due to inconsistencies in the GCC implementation. Specifically, GCC versions prior to 4.4 implemented the atomic as: { tmp = *ptr; *ptr = ~tmp & value; return tmp; } where as, GCC 4.4 and following implements the atomic as: { tmp = *ptr; *ptr = ~(tmp & value); return tmp; } The attached patch supports __sync_fetch_and_nand through the LLVM intrinsic function llvm.atomic.load.nand and generates GCC 4.4 style code for the atomic __sync_nand_and_fetch. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 22 02:03:12 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 22 Dec 2010 02:03:12 -0600 (CST) Subject: [LLVMbugs] [Bug 8757] [dagcombine] likely wrong code bug In-Reply-To: References: Message-ID: <20101222080312.E8E842A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8757 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #11 from Chris Lattner 2010-12-22 02:03:12 CST --- Fixed in r122392, thanks for the great bug report John! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 22 08:29:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 22 Dec 2010 08:29:20 -0600 (CST) Subject: [LLVMbugs] [Bug 8844] New: Infinite loop and stack overflow in SemaExpr when compiling erroneous C++ Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8844 Summary: Infinite loop and stack overflow in SemaExpr when compiling erroneous C++ Product: clang Version: trunk Platform: All 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 Created an attachment (id=5920) --> (http://llvm.org/bugs/attachment.cgi?id=5920) Some C++ code When compiling the attached sample, clang crash. This is due to an infinite recursion in SemaExpr.cpp, line 3818. ------- // Recurse as an -> access. IsArrow = true; return LookupMemberExpr(R, BaseExpr, IsArrow, OpLoc, SS, ObjCImpDecl, HasTemplateArgs); ------- Unfortunately, IsArrow is already true, so it try again with the same parameters, fall in the same error handler, try again, and so on until it crashes. >clang++ --version clang version 2.9 (trunk 122393) Target: x86_64-apple-darwin10 Thread model: posix > clang++ -fsyntax-only Test.cpp Test.cpp:12:21: error: member reference type 'const Sapphire::FormatDescription *' is not a pointer; maybe you meant to use '.'? [?] fatal error: too many errors emitted, stopping now [-ferror-limit=] clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Dec 22 10:18:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 22 Dec 2010 10:18:39 -0600 (CST) Subject: [LLVMbugs] [Bug 8845] New: r122359 breaks debugging info emissions (on darwin i386) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8845 Summary: r122359 breaks debugging info emissions (on darwin i386) Product: libraries Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: devlists at shadowlab.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5921) --> (http://llvm.org/bugs/attachment.cgi?id=5921) objects and assembly --------------- r122359 by rafael Simplify EvaluateAsAbsolute now that EvaluateAsRelocatableImpl does all the folding it can. --------------- After this commit, debugging the program using GDB does not work anymore. GDB thinks all break points are near the end of the file, and so either don't break where I put break points, or don't display informations about where it stopped when I managed to tell it to break. The generated asm is no affected by this commit, but the resulting objects are. I attach an assembly file with generated objects before and after the commit. They are compiled using the following command > clang -arch i386 -c sync.s -o sync.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 Dec 22 13:09:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 22 Dec 2010 13:09:39 -0600 (CST) Subject: [LLVMbugs] [Bug 8845] r122359 breaks debugging info emissions (on darwin i386) In-Reply-To: References: Message-ID: <20101222190939.B10F42A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8845 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Rafael ?vila de Esp?ndola 2010-12-22 13:09:39 CST --- Fixed by reverting that commit. Thanks for the test, will make sure it is OK before adding it back. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 22 17:05:48 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 22 Dec 2010 17:05:48 -0600 (CST) Subject: [LLVMbugs] [Bug 8629] clang++ fails an assertion In-Reply-To: References: Message-ID: <20101222230548.82F102A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8629 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Douglas Gregor 2010-12-22 17:05:47 CST --- This appears to be fixed 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 Wed Dec 22 21:18:04 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 22 Dec 2010 21:18:04 -0600 (CST) Subject: [LLVMbugs] [Bug 8823] scheduler crash on CodeGen/Generic/add-with-overflow-128.ll when running on x86-32 In-Reply-To: References: Message-ID: <20101223031804.72BE82A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8823 Andrew Trick changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |atrick at apple.com Resolution| |FIXED --- Comment #1 from Andrew Trick 2010-12-22 21:18:04 CST --- Fixed in r122472: In the bottom-up selection DAG scheduling, handle two-address instructions that read/write unspillable registers. Treat the entire chain of two-address nodes as a single live range. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 22 22:34:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 22 Dec 2010 22:34:29 -0600 (CST) Subject: [LLVMbugs] [Bug 8846] New: scan-build xcodebuild failure on 10.4 SDK project Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8846 Summary: scan-build xcodebuild failure on 10.4 SDK project 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 When I try to launch scan-build (from checker-253) on an Xcode project that targets the 10.4 SDK, I get the following errors: In file included from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:12, from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:20, from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:24, from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24, from /MyProject/foo.h:22, from :0: /Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory In file included from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16, from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:20, from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:24, from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24, from /MyProject/foo.h:22, from :0: /Developer/SDKs/MacOSX10.4u.sdk/usr/include/float.h:8:24: error: float.h: No such file or directory In file included from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h:32, from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:125, from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:24, from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24, from /MyProject/foo.h:22, from :0: /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:29:23: error: xmmintrin.h: No such file or directory In file included from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h:32, from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:125, from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:24, from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24, from /MyProject/foo.h:22, from :0: Note that I've successfully ran older versions of the clang analyzer on this same project (but possibly on 10.5 with Xcode 3.2.2 - this is on 10.6 with Xcode 3.2.5) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 23 06:31:32 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 23 Dec 2010 06:31:32 -0600 (CST) Subject: [LLVMbugs] [Bug 8847] New: ocaml bindings: exception raising broken causes segfault Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8847 Summary: ocaml bindings: exception raising broken causes segfault 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: edwintorok at gmail.com CC: llvmbugs at cs.uiuc.edu Trying to open an invalid bitcode file with bitreader using the OCaml bindings causes a segfault, instead of raising an exception with "Invalid bitcode signature". OCaml should probably check that the raised exception is not NULL instead of trusting the C binding blindly, but then the LLVM bindings shouldn't send NULL exceptions either. Testcase: $ cat p.ml open Llvm open Llvm_bitreader let context = global_context () let the_module = get_module context (MemoryBuffer.of_stdin ()) $ ocamlc -I ../obj/Release/lib/ocaml llvm.cma llvm_bitreader.cma p.ml -cc g++ -o p $ ./p References: Message-ID: <20101223155002.734612A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8847 T?r?k Edwin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from T?r?k Edwin 2010-12-23 09:50:02 CST --- Fixed in r122497, thanks to f[x] on #ocaml for the hint on the bug. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 23 10:55:47 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 23 Dec 2010 10:55:47 -0600 (CST) Subject: [LLVMbugs] [Bug 8848] New: Build failure on mingw-w64 toolchains Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8848 Summary: Build failure on mingw-w64 toolchains Product: new-bugs Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: vanboxem.ruben at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5922) --> (http://llvm.org/bugs/attachment.cgi?id=5922) patch to remedy the problem On both x86 and x64 toolchains from mingw-w64.sourceforge.net, the build fails due to the assumption made that a certain winAPI function is unavailable and a different declaration is provided. This was probably necessary for mingw.org, but is bad for mingw-w64 (who are more compatible with MSVC in this regard). A trivial patch with a check for mingw-w64 toolchain is attached. It also fixes a _WIN32_WINNT macro redefinition warning. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 23 12:59:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 23 Dec 2010 12:59:38 -0600 (CST) Subject: [LLVMbugs] [Bug 8849] New: pthread and mingw-w64(/.org?) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8849 Summary: pthread and mingw-w64(/.org?) Product: Build scripts Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Keywords: build-problem Severity: normal Priority: P Component: cmake AssignedTo: unassignedbugs at nondot.org ReportedBy: vanboxem.ruben at gmail.com CC: llvmbugs at cs.uiuc.edu When running a mingw-w64 toolchain, the presence of pthread.h is correctly detected, but the link.txt link scripts do not contain the "-lpthread" to link to the library itself, making every link step in the build process fail for this reason. I don't know CMake enough to conjure up a patch for this, but I'm sure it's quite trivial. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 23 13:49:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 23 Dec 2010 13:49:07 -0600 (CST) Subject: [LLVMbugs] [Bug 8850] New: mingw-w64 win64 build crashes tblgen.exe on Target/CellSPU Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8850 Summary: mingw-w64 win64 build crashes tblgen.exe on Target/CellSPU Product: new-bugs Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Keywords: build-problem Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: vanboxem.ruben at gmail.com CC: llvmbugs at cs.uiuc.edu A build using a mingw-w64 toolchain targetting Windows x64 from mingw-w64.sourceforge.net crashes tblgen when building the Target/CellSPU. A backtrace reveals very little: #0 0x000000006ceceead in libgcc_s_sjlj-1!_Unwind_SjLj_Register () from M:\Development\mingw64\bin\libgcc_s_sjlj-1.dll #1 0x0000000000000000 in ?? () Even when compiled with debug level -g3 Disabling this Target allows the build to continue. PS: you will need the patch from this bug report to work around a triviality: http://llvm.org/bugs/show_bug.cgi?id=8848 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 23 15:31:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 23 Dec 2010 15:31:29 -0600 (CST) Subject: [LLVMbugs] [Bug 8849] pthread and mingw-w64(/.org?) In-Reply-To: References: Message-ID: <20101223213129.E38D82A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8849 ?scar Fuentes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from ?scar Fuentes 2010-12-23 15:31:29 CST --- Please update your workig copy and re-build from a clean directory. The bogus detection of pthread.h was just solved on r122518. If linking fails, see what symbols are missing and open a new bug report. It should be unrelated to pthreads. BTW, I don't know what is the file link.txt you mention above. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 23 16:53:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 23 Dec 2010 16:53:29 -0600 (CST) Subject: [LLVMbugs] [Bug 8851] New: Clang lacks support for builtin_ms_va_list Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8851 Summary: Clang lacks support for builtin_ms_va_list Product: new-bugs Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: austinenglish at gmail.com CC: llvmbugs at cs.uiuc.edu Needed by Wine to compile in 64-bit mode. See http://source.winehq.org/git/wine.git/?a=commitdiff;h=8812d241f0fb55293b9559eb3475f24b2f17c590 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 23 20:51:34 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 23 Dec 2010 20:51:34 -0600 (CST) Subject: [LLVMbugs] [Bug 8852] New: Definition of friend function inside the class is not working if the function is declared in namespace scope Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8852 Summary: Definition of friend function inside the class is not working if the function is declared in namespace scope Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: akyrtzi at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com $ cat t.cpp void foo(); struct S { friend void foo() {} }; int main() { foo(); } $ g++ t.cpp $ clang t.cpp Undefined symbols for architecture x86_64: "foo()", referenced from: _main in cc-hzoATp.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 23 20:54:56 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 23 Dec 2010 20:54:56 -0600 (CST) Subject: [LLVMbugs] [Bug 8821] clang crashes when compiling webkit In-Reply-To: References: Message-ID: <20101224025456.23B1B2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8821 Argyrios Kyrtzidis changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Argyrios Kyrtzidis 2010-12-23 20:54:55 CST --- Fixed at r122536. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 24 09:12:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 24 Dec 2010 09:12:27 -0600 (CST) Subject: [LLVMbugs] [Bug 8853] New: Clang goes into an endless loop while trying to compile ScummVM Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8853 Summary: Clang goes into an endless loop while trying to compile ScummVM Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: adam at NetBSD.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Greetings, I have noticed Clang going into an endless loop and eating more and more memory while compiling qdm2.cpp from ScummVM project. The following link points to the file: http://scummvm.svn.sourceforge.net/viewvc/scummvm/scummvm/trunk/graphics/video/codecs/qdm2.cpp?view=log The problem only occurs when compiling with -O2 (and probably higher) optimisation level. Everything's fine with -Os. This is with LLVM and Clang updated from SVN today, December 24th, 2010, built and used on Mac OS X 10.6.5. Same with ScummVM; SVN updated today. If you would like me to do more testing, don't hesitate to contact me. Kind regards, Adam -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 25 12:17:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 25 Dec 2010 12:17:54 -0600 (CST) Subject: [LLVMbugs] [Bug 8854] New: likely wrong code bug Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8854 Summary: likely wrong code 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 [regehr at gamow ~]$ clang -O0 small.c -o small [regehr at gamow ~]$ ./small p_6 = 1 [regehr at gamow ~]$ clang -O1 small.c -o small [regehr at gamow ~]$ ./small p_6 = 0 [regehr at gamow ~]$ clang -v clang version 2.9 (trunk 122551) Target: x86_64-unknown-linux-gnu Thread model: posix [regehr at gamow ~]$ cat small.c int g_403 = 1; int g_462 = 0; int printf(const char *format, ...); int func_18(int p_22) { return g_403; } unsigned short foo(unsigned short u1, unsigned short u2) { return u1 * u2; } int func_3(unsigned char p_6) { int *l_708[2]; int i; for (i = 0; i < 2; i++) { l_708[i] = &g_462; } for (i = 0; i < 1; i++) { if (func_18(p_6) >= foo(1, p_6)) { printf("p_6 = %d\n", p_6); return p_6; } if (l_708[0] == &g_462) { return 99; } } return 99; } int main(int argc, char* argv[]) { func_3(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 Dec 25 13:40:36 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 25 Dec 2010 13:40:36 -0600 (CST) Subject: [LLVMbugs] [Bug 8855] New: [MC] 64-bit "-1" is 'invalid decimal number' Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8855 Summary: [MC] 64-bit "-1" is 'invalid decimal number' 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: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu This file fails to assemble with llvm-mc: $ cat x.s movq 18446744073709551615,%rbx $ as x.s $ gcc -c x.s $ clang -c x.s x.s:1:7: error: Invalid decimal number movq $18446744073709551615,%rbx ^ x.s:1:7: error: unknown token in expression movq $18446744073709551615,%rbx ^ That number is the 64-bit unsigned representation of "-1", by the way. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Dec 25 15:13:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 25 Dec 2010 15:13:44 -0600 (CST) Subject: [LLVMbugs] [Bug 8856] New: clang++ -fshort-wchar results in a signed wchar_t instead of unsigned Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8856 Summary: clang++ -fshort-wchar results in a signed wchar_t instead of unsigned Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: ambrop7 at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Using the -fshort-wchar option in clang++ seems to result a signed 16-bit wchar_t. But it should be unsigned (as in gcc, g++ and clang (C mode)). Test (based on a problematic configure test in XULRunner): #include #include int main() { if ((wchar_t)-1 > (wchar_t)0) { printf("unsigned %d\n", (int)sizeof(wchar_t)); } else { printf("signed %d\n", (int)sizeof(wchar_t)); } return 0; } $ gcc -fshort-wchar -o wchar wchar.c $ ./wchar unsigned 2 $ g++ -fshort-wchar -o wchar wchar.cpp $ ./wchar unsigned 2 $ clang -fshort-wchar -o wchar wchar.c $ ./wchar unsigned 2 $ clang++ -fshort-wchar -o wchar wchar.cpp $ ./wchar signed 2 Platform is Linux x86_64 (Gentoo ~amd64). -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Dec 25 15:36:50 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 25 Dec 2010 15:36:50 -0600 (CST) Subject: [LLVMbugs] [Bug 8855] [MC] 64-bit "-1" is 'invalid decimal number' In-Reply-To: References: Message-ID: <20101225213650.ED46A2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8855 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-12-25 15:36:50 CST --- Fixed in r122557, thanks. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Dec 25 15:57:07 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 25 Dec 2010 15:57:07 -0600 (CST) Subject: [LLVMbugs] [Bug 8857] New: assertion failure in ASTStmtReader::VisitDependentScopeDeclRefExpr Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8857 Summary: assertion failure in ASTStmtReader::VisitDependentScopeDeclRefExpr Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: brock.peabody at gmail.com CC: llvmbugs at cs.uiuc.edu with trunk, r122546, likely to do with precompiled headers. Note that I was attempting to do this with 2.8, but was getting an error in the default constructor for 'basic_string'; the solution for which was to use trunk. the full error: Assertion failed: ((NumTemplateArgs != 0) == E->hasExplicitTemplateArgs() && "Read wrong record during creation ?"), function VisitDependentScopeDeclRefExpr, file ASTReaderStmt.cpp, line 1200. to recreate, given the files: pchheader.h = "#include \n" foo.cpp = "int main() { return 0; }\n" run: clang -cc1 -x "c++-header" -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS pchheader.h -emit-pch -o pchheader.h.pch clang -cc1 -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -include-pch pchheader.h.pch foo.cpp Any help would be greatly appreciated. cheers, Brock -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 25 16:14:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 25 Dec 2010 16:14:29 -0600 (CST) Subject: [LLVMbugs] [Bug 8858] New: libclang crash-recovery test fail Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8858 Summary: libclang crash-recovery test fail Product: new-bugs Version: trunk Platform: PC OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: pawel.worach at gmail.com CC: llvmbugs at cs.uiuc.edu llvm/clang r122550. These three test fail on FreeBSD with a segfault. Clang :: Index/crash-recovery-code-complete.c Clang :: Index/crash-recovery.c Clang :: Index/crash-recovery-reparse.c Valgrind says: > env LD_LIBRARY_PATH=/data/buildslave/freebsd-clang-amd64/obj/obj-llvm.1/Release+Asserts/lib valgrind /data/buildslave/freebsd-clang-amd64/obj/obj-llvm.1/Release+Asserts/bin/c-index-test -test-load-source all /data/buildslave/freebsd-clang-amd64/src-llvm/tools/clang/test/Index/crash-recovery.c ==82744== Memcheck, a memory error detector ==82744== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==82744== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info ==82744== Command: /data/buildslave/freebsd-clang-amd64/obj/obj-llvm.1/Release+Asserts/bin/c-index-test -test-load-source all /data/buildslave/freebsd-clang-amd64/src-llvm/tools/clang/test/Index/crash-recovery.c ==82744== ==82744== Thread 3: ==82744== Invalid write of size 4 ==82744== at 0x13A387C: (anonymous namespace)::PragmaDebugHandler::HandlePragma(clang::Preprocessor&, clang::PragmaIntroducerKind, clang::Token&) (in /data/buildslave/freebsd-clang-amd64/obj/obj-llvm.1/Release+Asserts/lib/libclang.so) ==82744== by 0x13A32A8: clang::PragmaNamespace::HandlePragma(clang::Preprocessor&, clang::PragmaIntroducerKind, clang::Token&) (in /data/buildslave/freebsd-clang-amd64/obj/obj-llvm.1/Release+Asserts/lib/libclang.so) ==82744== by 0x13A32A8: clang::PragmaNamespace::HandlePragma(clang::Preprocessor&, clang::PragmaIntroducerKind, clang::Token&) (in /data/buildslave/freebsd-clang-amd64/obj/obj-llvm.1/Release+Asserts/lib/libclang.so) ==82744== by 0x139B82A: clang::Preprocessor::HandlePragmaDirective(unsigned int) (in /data/buildslave/freebsd-clang-amd64/obj/obj-llvm.1/Release+Asserts/lib/libclang.so) ==82744== by 0x138BF8C: clang::Preprocessor::HandleDirective(clang::Token&) (in /data/buildslave/freebsd-clang-amd64/obj/obj-llvm.1/Release+Asserts/lib/libclang.so) ==82744== by 0x137845B: clang::Lexer::LexTokenInternal(clang::Token&) (in /data/buildslave/freebsd-clang-amd64/obj/obj-llvm.1/Release+Asserts/lib/libclang.so) ==82744== by 0x137836B: clang::Lexer::LexTokenInternal(clang::Token&) (in /data/buildslave/freebsd-clang-amd64/obj/obj-llvm.1/Release+Asserts/lib/libclang.so) ==82744== by 0xF2F763: clang::Parser::ConsumeToken() (in /data/buildslave/freebsd-clang-amd64/obj/obj-llvm.1/Release+Asserts/lib/libclang.so) ==82744== by 0xF404D5: clang::Parser::ExpectAndConsume(clang::tok::TokenKind, unsigned int, char const*, clang::tok::TokenKind) (in /data/buildslave/freebsd-clang-amd64/obj/obj-llvm.1/Release+Asserts/lib/libclang.so) ==82744== by 0xF4C120: clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int, bool, clang::SourceLocation*) (in /data/buildslave/freebsd-clang-amd64/obj/obj-llvm.1/Release+Asserts/lib/libclang.so) ==82744== by 0xF5644E: clang::Parser::ParseSimpleDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, bool) (in /data/buildslave/freebsd-clang-amd64/obj/obj-llvm.1/Release+Asserts/lib/libclang.so) ==82744== by 0xF56533: clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) (in /data/buildslave/freebsd-clang-amd64/obj/obj-llvm.1/Release+Asserts/lib/libclang.so) ==82744== Address 0x11 is not stack'd, malloc'd or (recently) free'd ==82744== libclang: crash detected during parsing: { 'source_filename' : '(null)' 'command_line_args' : ['/data/buildslave/freebsd-clang-amd64/src-llvm/tools/clang/test/Index/crash-recovery.c'], 'unsaved_files' : [], 'options' : 1, } Unable to load translation unit! ==82744== ==82744== HEAP SUMMARY: ==82744== in use at exit: 411,475 bytes in 300 blocks ==82744== total heap usage: 572 allocs, 272 frees, 464,809 bytes allocated ==82744== ==82744== LEAK SUMMARY: ==82744== definitely lost: 1,645 bytes in 6 blocks ==82744== indirectly lost: 406,222 bytes in 258 blocks ==82744== possibly lost: 0 bytes in 0 blocks ==82744== still reachable: 3,608 bytes in 36 blocks ==82744== suppressed: 0 bytes in 0 blocks ==82744== Rerun with --leak-check=full to see details of leaked memory ==82744== ==82744== For counts of detected and suppressed errors, rerun with: -v ==82744== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 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 Dec 25 17:25:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 25 Dec 2010 17:25:57 -0600 (CST) Subject: [LLVMbugs] [Bug 8856] clang++ -fshort-wchar results in a signed wchar_t instead of unsigned In-Reply-To: References: Message-ID: <20101225232557.A44CA2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8856 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-12-25 17:25:57 CST --- Fixed in r122558, thanks for the great reduction! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 25 23:33:38 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 25 Dec 2010 23:33:38 -0600 (CST) Subject: [LLVMbugs] [Bug 8859] New: extern __inline__ causes multiple def'n errors Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8859 Summary: extern __inline__ causes multiple def'n errors 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: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu Consider the two files: == a == extern __inline__ void foo() { return; } void test_a() { foo(); return; } == b == extern __inline__ void foo() { return; } void test_b() { foo(); return; } compiled *without* optimization, so that inlining doesn't happen. For reference, the GCC documentation on it is here: http://gcc.gnu.org/onlinedocs/gcc/Inline.html and it pretty much states that extern inline can't generate a definition. Here's the real-world manifestation of the problem: $ gcc a.c -c -o a.o $ gcc b.c -c -o b.o $ ld -r a.o b.o $ clang a.c -c -o a.o $ clang b.c -c -o b.o $ ld -r a.o b.o ld: error: multiple definition of `foo' ld: a.o: previous definition here What did GCC actually do with this declaration? The assembly makes no declaration of foo at all, it just emits a "call foo" instruction in test_A. Clang emitted: .file "a.c" .text .globl foo .align 16, 0x90 .type foo, at function foo: [...] Which is clearly more than it needed to. But what about C++? Things are a little bit different there: GCC *does* emit the function. Here's the relevant portion of the assembly: $ g++ a.cc -S -o - .file "a.cc" .section .text._Z3foov,"axG", at progbits,_Z3foov,comdat .weak _Z3foov .type _Z3foov, @function _Z3foov: [...] Clang just emits a normal linkonce_odr function with: .section .gnu.linkonce.t._Z3foov,"ax", at progbits .weak _Z3foov .align 16, 0x90 .type _Z3foov, at function _Z3foov: [...] In either case, Clang is getting this wrong and it's causing multiple definition errors where the GCC extension says they shouldn't be happening. I'm not sure whether the problem is in the linkage type selected by clang when lowering to llvm or whether the lowering of linkonce functions to elf .section rules 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 Sun Dec 26 06:23:24 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 26 Dec 2010 06:23:24 -0600 (CST) Subject: [LLVMbugs] [Bug 8859] extern __inline__ causes multiple def'n errors In-Reply-To: References: Message-ID: <20101226122324.F078B2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8859 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Chris Lattner 2010-12-26 06:23:24 CST --- Try passing -std=gnu89 to clang. Clang and gcc both elide the function with -std=gnu89 and both emit it with -std=gnu99. Clang just defaults to c99 instead of c89. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 26 06:28:29 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 26 Dec 2010 06:28:29 -0600 (CST) Subject: [LLVMbugs] [Bug 8860] New: command-line argument parser provides too many options when building with --enable-shared Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8860 Summary: command-line argument parser provides too many options when building with --enable-shared Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Support Libraries AssignedTo: unassignedbugs at nondot.org ReportedBy: richard-llvm at metafoo.co.uk CC: llvmbugs at cs.uiuc.edu Normal build (--disable-shared): $ llvm-bcanalyzer -help | wc -l 10 Built with --enable-shared: $ llvm-bcanalyzer -help | wc -l 113 The problem is that every static cl::opt<...> instance in the LLVM libraries is included in the LLVM .so, whereas static linking discards those which are in .o files which are (otherwise) unused. I'm writing an external tool which uses some bits of LLVM (including the llvm::cl library), and can't use the LLVM dynamic library for this reason. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 26 14:12:45 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 26 Dec 2010 14:12:45 -0600 (CST) Subject: [LLVMbugs] [Bug 8695] [ObjC gnu abi] clang crashes for objc method using a bitwise-struct with enum In-Reply-To: References: Message-ID: <20101226201245.29C3A2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8695 David Chisnall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Component|-New Bugs |LLVM Codegen Resolution| |FIXED --- Comment #5 from David Chisnall 2010-12-26 14:12:44 CST --- Ah, this code was assuming that all bitfield members were primitive types. Should be fixed now (r122564), please test. Merry Christmas! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 26 15:32:17 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 26 Dec 2010 15:32:17 -0600 (CST) Subject: [LLVMbugs] [Bug 8830] ,section @note is not support [PATCH] In-Reply-To: References: Message-ID: <20101226213217.9CD282A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8830 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Rafael ?vila de Esp?ndola 2010-12-26 15:32:17 CST --- fixed in 122568. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 26 15:56:49 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 26 Dec 2010 15:56:49 -0600 (CST) Subject: [LLVMbugs] [Bug 8861] New: fdivp doesn't accept %st Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8861 Summary: fdivp doesn't accept %st 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: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu This file: fdivp %st, %st(1) assembles with with gas (it produces 0xde 0xf1). With llvm-mc, I get: x.s:1:1: error: invalid operand for instruction fdivp %st, %st(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 Dec 26 17:50:12 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 26 Dec 2010 17:50:12 -0600 (CST) Subject: [LLVMbugs] [Bug 8862] New: instcombine shouldn't canonicalize 'sdiv exact' into ashr Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8862 Summary: instcombine shouldn't canonicalize 'sdiv exact' into ashr Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: clattner at apple.com CC: llvmbugs at cs.uiuc.edu Instcombine should compile this identity function to return X: define i32 @test(i32 %X) { %A = sdiv exact i32 %X, 4 %B = mul i32 %A, 4 ret i32 %B } instead we get: define i32 @test(i32 %X) { %A1 = and i32 %X, -4 ret i32 %A1 } This is because it simplifies the sdiv into an ashr instruction, which loses information. This sort of thing comes up when handling array/pointer difference stuff. To fix this, SDISel whould lower sdiv exact into ashr, instcombine should handle sdiv's as aggressively as ashr's, and then we should stop canonicalizing ashr to sdiv in 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 Sun Dec 26 22:07:33 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 26 Dec 2010 22:07:33 -0600 (CST) Subject: [LLVMbugs] [Bug 8863] New: Confused MachineVerifier with StrongPHIElimination Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8863 Summary: Confused MachineVerifier with StrongPHIElimination Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: zwarich at apple.com CC: llvmbugs at cs.uiuc.edu This is from CodeGen/X86/2010-03-17-ISelBug.ll. ********** INTERVALS ********** %reg16384,0.000000e+00 = [12d,20d:1)[20d,56L:0) 0 at 20d 1 at 12d %reg16391,0.000000e+00 EMPTY CX,inf = [0L,4d:0) 0 at 0L-phidef CH,inf = [0L,4d:0) 0 at 0L-phidef %reg16393,0.000000e+00 = [68d,76d:0) 0 at 68d %reg16400,0.000000e+00 EMPTY %reg16388,0.000000e+00 = [172d,180d:1)[180d,200L:0) 0 at 180d 1 at 172d %reg16395,0.000000e+00 = [84d,92d:0) 0 at 84d %reg16397,0.000000e+00 = [36d,200L:0) 0 at 36d ECX,inf = [0L,4d:0) 0 at 0L-phidef %reg16392,0.000000e+00 = [60d,84d:0) 0 at 60d %reg16399,0.000000e+00 = [28d,200L:0) 0 at 28d %reg16387,0.000000e+00 = [56L,128L:0)[132d,172d:0) 0 at 132d CL,inf = [0L,4d:0) 0 at 0L-phidef %reg16401,0.000000e+00 EMPTY %reg16389,0.000000e+00 = [4d,12d:0) 0 at 4d ********** MACHINEINSTRS ********** # Machine code for function printSwipe: Function Live Ins: %ECX in reg%16389 0L BB#0: derived from LLVM BB %entry Live Ins: %ECX 4L %reg16389 = COPY %ECX; GR32:%reg16389 12L %reg16384 = COPY %reg16389; GR32:%reg16384,16389 20L %reg16384 = ADD32ri8 %reg16384, 4, %EFLAGS; GR32:%reg16384 28L %reg16399 = MOV8r0 %EFLAGS; GR8:%reg16399 36L %reg16397 = MOV8ri 1; GR8:%reg16397 44L JMP_4 Successors according to CFG: BB#2 56L BB#1: derived from LLVM BB %for.body261.i Predecessors according to CFG: BB#1 BB#2 60L %reg16392 = MOVZX32rr8 %reg16391; GR32:%reg16392 GR8_ABCD_L:%reg16391 68L %reg16393 = COPY %reg16392; GR32_NOSP:%reg16393 GR32:%reg16392 76L MOV32mr %reg16387, 8, %reg16393, -4, %reg0, %reg16400; mem:ST4[%sunkaddr16] GR32:%reg16387,16400 GR32_NOSP:%reg16393 84L %reg16395 = COPY %reg16392; GR32_NOSP:%reg16395 GR32:%reg16392 92L MOV8mr %reg16387, 8, %reg16395, 0, %reg0, %reg16401; mem:ST1[%sunkaddr19] GR32:%reg16387 GR32_NOSP:%reg16395 GR8:%reg16401 100L TEST8rr %reg16397, %reg16397, %EFLAGS; GR8:%reg16397 108L JNE_4 , %EFLAGS 116L JMP_4 Successors according to CFG: BB#3 BB#1 128L BB#2: derived from LLVM BB %for.body190 Predecessors according to CFG: BB#0 BB#3 132L %reg16387 = PHI %reg16384, , %reg16388, ; GR32:%reg16387,16384,16388 140L TEST8rr %reg16399, %reg16399, %EFLAGS; GR8:%reg16399 148L JNE_4 , %EFLAGS 156L JMP_4 Successors according to CFG: BB#3 BB#1 168L BB#3: derived from LLVM BB %for.body190.backedge Predecessors according to CFG: BB#1 BB#2 172L %reg16388 = COPY %reg16387; GR32:%reg16388,16387 180L %reg16388 = ADD32ri %reg16388, 2048, %EFLAGS; GR32:%reg16388 188L JMP_4 Successors according to CFG: BB#2 # End machine code for function printSwipe. This interval is the one of interest later: %reg16387,0.000000e+00 = [56L,128L:0)[132d,172d:0) 0 at 132d If I run StrongPHIElimination, I get this: # Machine code for function printSwipe: Function Live Ins: %ECX in reg%16389 0L BB#0: derived from LLVM BB %entry Live Ins: %ECX 4L %reg16389 = COPY %ECX; GR32:%reg16389 12L %reg16384 = COPY %reg16389; GR32:%reg16384,16389 20L %reg16384 = ADD32ri8 %reg16384, 4, %EFLAGS; GR32:%reg16384 28L %reg16399 = MOV8r0 %EFLAGS; GR8:%reg16399 36L %reg16397 = MOV8ri 1; GR8:%reg16397 44L JMP_4 Successors according to CFG: BB#2 56L BB#1: derived from LLVM BB %for.body261.i Predecessors according to CFG: BB#1 BB#2 60L %reg16392 = MOVZX32rr8 %reg16391; GR32:%reg16392 GR8_ABCD_L:%reg16391 68L %reg16393 = COPY %reg16392; GR32_NOSP:%reg16393 GR32:%reg16392 76L MOV32mr %reg16384, 8, %reg16393, -4, %reg0, %reg16400; mem:ST4[%sunkaddr16] GR32:%reg16384,16400 GR32_NOSP:%reg16393 84L %reg16395 = COPY %reg16392; GR32_NOSP:%reg16395 GR32:%reg16392 92L MOV8mr %reg16384, 8, %reg16395, 0, %reg0, %reg16401; mem:ST1[%sunkaddr19] GR32:%reg16384 GR32_NOSP:%reg16395 GR8:%reg16401 100L TEST8rr %reg16397, %reg16397, %EFLAGS; GR8:%reg16397 108L JNE_4 , %EFLAGS 116L JMP_4 Successors according to CFG: BB#3 BB#1 128L BB#2: derived from LLVM BB %for.body190 Predecessors according to CFG: BB#0 BB#3 136L TEST8rr %reg16399, %reg16399, %EFLAGS; GR8:%reg16399 144L JNE_4 , %EFLAGS 152L JMP_4 Successors according to CFG: BB#3 BB#1 164L BB#3: derived from LLVM BB %for.body190.backedge Predecessors according to CFG: BB#1 BB#2 168L %reg16388 = COPY %reg16384; GR32:%reg16388,16384 176L %reg16388 = ADD32ri %reg16388, 2048, %EFLAGS; GR32:%reg16388 184L %reg16384 = COPY %reg16388; GR32:%reg16384,16388 192L JMP_4 Successors according to CFG: BB#2 # End machine code for function printSwipe. *** Bad machine code: Different value live out of predecessor *** - function: printSwipe - basic block: entry 0x103046798 (BB#0) [0L;56L) Valno #0 live out of BB#0 at 52S Valno #2 live into BB#2 at 128L in %reg16384,0.000000e+00 = [12d,20d:1)[20d,56L:0)[56L,168d:2)[184d,204L:3) 0 at 20d-phikill 1 at 12d 2 at 128L-phidef 3 at 184d-phikill *** Bad machine code: Different value live out of predecessor *** - function: printSwipe - basic block: for.body190.backedge 0x1030469f8 (BB#3) [164L;204L) Valno #3 live out of BB#3 at 200S Valno #2 live into BB#2 at 128L in %reg16384,0.000000e+00 = [12d,20d:1)[20d,56L:0)[56L,168d:2)[184d,204L:3) 0 at 20d-phikill 1 at 12d 2 at 128L-phidef 3 at 184d-phikill It seems that the right way to fix this is to check for phi-def VNs at this point in the verifier, since the phi-def flag means that the def really begins on the incoming edge. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 26 22:35:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 26 Dec 2010 22:35:16 -0600 (CST) Subject: [LLVMbugs] [Bug 8864] New: DeclRefExpr assertion due to friend functions? Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8864 Summary: DeclRefExpr assertion due to friend functions? Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu This testcase causes a crash in clang IRGen: struct Foo { friend bool TryFoo(Foo *f) { return TryFoo(0, f); } friend bool TryFoo(int, Foo *f); }; bool TryFoo(Foo *f); int main(void) { Foo f; TryFoo(&f); } clang: CGExpr.cpp:1164: clang::CodeGen::LValue clang::CodeGen::CodeGenFunction::EmitDeclRefLValue(const clang::DeclRefExpr*): Assertion `V && "DeclRefExpr not entered in LocalDeclMap?"' failed. Aborted -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Dec 26 22:45:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 26 Dec 2010 22:45:46 -0600 (CST) Subject: [LLVMbugs] [Bug 3303] CMake building config files for Mingw32 In-Reply-To: References: Message-ID: <20101227044546.69F132A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3303 NAKAMURA Takumi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #2 from NAKAMURA Takumi 2010-12-26 22:45:45 CST --- I believe, on ToT, clang/llvm must be built with cmake on both mingw and msys. Please file another one if anything might be wrong with C::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 Sun Dec 26 23:18:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 26 Dec 2010 23:18:00 -0600 (CST) Subject: [LLVMbugs] [Bug 8863] Confused MachineVerifier with StrongPHIElimination In-Reply-To: References: Message-ID: <20101227051800.2A0062A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8863 Cameron Zwarich changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Cameron Zwarich 2010-12-26 23:17:59 CST --- Fixed in r122581. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 27 14:53:57 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 27 Dec 2010 14:53:57 -0600 (CST) Subject: [LLVMbugs] [Bug 8865] New: "Linking two modules of different target triples" is not informative enough Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8865 Summary: "Linking two modules of different target triples" is not informative enough Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: alexr at leftfield.org CC: llvmbugs at cs.uiuc.edu LinkModules.cpp has an error "Linking two modules of different target triples" that doesn't help isolate which modules have what mismatching triples. A recent post on stackoverflow.com illustrates typical user confusion that can result: http://stackoverflow.com/questions/4540148/linker-warning-linking-two-modules-of-different-target-triples -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 27 18:57:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 27 Dec 2010 18:57:16 -0600 (CST) Subject: [LLVMbugs] [Bug 8866] New: Scev does not get max if hidden by sext. Canonicalization problem? Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8866 Summary: Scev does not get max if hidden by sext. Canonicalization problem? Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: grosser at fim.uni-passau.de CC: llvmbugs at cs.uiuc.edu Hi, I just tried to "opt -scalar-evolution -analyze" on this: define i64 @make_positive(i64 %a) nounwind readnone { entry: %is_a_nonnegative = icmp slt i64 %a, 0 %max = select i1 %is_a_nonnegative, i64 0, i64 %a ret i64 %max } %max = select i1 %is_a_nonnegative, i64 0, i64 %a --> (0 smax %a) This one works fine and gives the right expression. As soon as a sext obfuscates this expression, scalar evolution does not work any more: define i64 @make_positive_sextend(i32 %a) nounwind readnone { entry: %a_ext = sext i32 %a to i64 %is_a_nonnegative = icmp sgt i32 %a, -1 %max = select i1 %is_a_nonnegative, i64 %a_ext, i64 0 ret i64 %max } %a_ext = sext i32 %a to i64 --> (sext i32 %a to i64) %max = select i1 %is_a_nonnegative, i64 %a_ext, i64 0 --> %max Any change this can be solved in scev - or maybe even better - canonicalized such that svec works unchanged. I see those two options: %a_ext = sext i32 %a to i64 %is_a_nonnegative = icmp sgt i64 %a_ext, -1 %max = select i1 %is_a_nonnegative, i64 %a_ext, i64 0 ret i64 %max %is_a_nonnegative = icmp sgt i32 %a, -1 %max = select i1 %is_a_nonnegative, i32 %a, i32 0 %max_sext = sext i32 %max to i64 ret i64 %max_sext This also blocks some further optimizations, as the non obfuscated code is optimized to a comparison to 0: %is_a_nonnegative = icmp slt i64 %a, 0 %max = select i1 %is_a_nonnegative, i64 0, i64 %a ret i64 %max Running -O3 on the test file does not change the obfuscated code at all. Cheers Tobi -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 28 01:11:40 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 28 Dec 2010 01:11:40 -0600 (CST) Subject: [LLVMbugs] [Bug 8867] New: Attempting uitofp from integer constant to fp128 causes assertion failure in APFloat.cpp:120 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8867 Summary: Attempting uitofp from integer constant to fp128 causes assertion failure in APFloat.cpp:120 Product: libraries Version: 2.8 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Core LLVM classes AssignedTo: unassignedbugs at nondot.org ReportedBy: eligottlieb at gmail.com CC: llvmbugs at cs.uiuc.edu When I construct a ConstantInt (though I'm actually using the C bindings) using the LLVM 2.8 release libraries and then proceed to construct a UIToFP cast using LLVMBuildUIToFP(builder,value,FP128Ty,"cast"). This results in receiving the following failed assertion: /usr/src/llvm-2.8/lib/Support/APFloat.cpp:120: void assertArithmeticOK(const llvm::fltSemantics&): Assertion `semantics.arithmeticOK && "Compile-time arithmetic does not support these semantics"' 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 Dec 28 09:05:51 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 28 Dec 2010 09:05:51 -0600 (CST) Subject: [LLVMbugs] [Bug 8868] New: Mips code generator fails during live interval analysis Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8868 Summary: Mips code generator fails during live interval analysis 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: rich at pennware.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5932) --> (http://llvm.org/bugs/attachment.cgi?id=5932) Test case. The attached test case fails when run through llc: [~/ellcc/libecc/obj/mips/linux] main% ~/ellcc/bin/llc LIAMips.ll llc: /home/rich/ellcc/llvm/lib/CodeGen/LiveInterval.cpp:264: llvm::LiveRange* llvm::LiveInterval::addRangeFrom(llvm::LiveRange, llvm::LiveRange*): Assertion `B->end <= Start && "Cannot overlap two LiveRanges with differing ValID's" " (did you def the same reg twice in a MachineInstr?)"' failed. 0 llc 0x0000000000d91f3f 1 llc 0x0000000000d9418a 2 libpthread.so.0 0x000000370aa0f210 3 libc.so.6 0x0000003709e327f5 gsignal + 53 4 libc.so.6 0x0000003709e33fd5 abort + 373 5 libc.so.6 0x0000003709e2b785 __assert_fail + 245 6 llc 0x0000000000b37b32 llvm::LiveInterval::addRangeFrom(llvm::LiveRange, llvm::LiveRange*) + 866 7 llc 0x0000000000b3c9a8 llvm::LiveIntervals::handleLiveInRegister(llvm::MachineBasicBlock*, llvm::SlotIndex, llvm::LiveInterval&, bool) + 920 8 llc 0x0000000000b4392c llvm::LiveIntervals::computeIntervals() + 492 9 llc 0x0000000000b441ed llvm::LiveIntervals::runOnMachineFunction(llvm::MachineFunction&) + 621 10 llc 0x0000000000cf291d llvm::FPPassManager::runOnFunction(llvm::Function&) + 557 11 llc 0x0000000000cf2a1b llvm::FPPassManager::runOnModule(llvm::Module&) + 75 12 llc 0x0000000000cf24a7 llvm::MPPassManager::runOnModule(llvm::Module&) + 503 13 llc 0x0000000000cf2627 llvm::PassManagerImpl::run(llvm::Module&) + 167 14 llc 0x00000000005356cd main + 4109 15 libc.so.6 0x0000003709e1eb1d __libc_start_main + 253 16 llc 0x0000000000533a39 Stack dump: 0. Program arguments: /home/rich/ellcc/bin/llc LIAMips.ll 1. Running pass 'Function Pass Manager' on module 'LIAMips.ll'. 2. Running pass 'Live Interval Analysis' on function '@gdtoa' Abort (core dumped) [~/ellcc/libecc/obj/mips/linux] main% -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Dec 28 14:56:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 28 Dec 2010 14:56:27 -0600 (CST) Subject: [LLVMbugs] [Bug 8869] New: False positive with static analyzer and struct initialization through a temporary. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8869 Summary: False positive with static analyzer and struct initialization through a temporary. Product: clang Version: trunk Platform: PC OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: juli at clockworksquid.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5933) --> (http://llvm.org/bugs/attachment.cgi?id=5933) Mostly-reduced test case. With the attachment compiled with --analyze, the static analyzer gives: %%% small.cc:25:2: warning: Undefined or garbage value returned to caller return (f.foo_); ^ ~~~~~~~~ %%% This happens with the existing initialization of f: %%% Foo f = Foo::get(); %%% As well as a similar variant: %%% Foo f(Foo::get()); %%% But not with other cases that do not involve use of a temporary to set the fields of f, these both work: %%% Foo b = Foo::get(); Foo f(b); %%% %%% Foo f; %%% -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Dec 28 18:39:30 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 28 Dec 2010 18:39:30 -0600 (CST) Subject: [LLVMbugs] [Bug 8870] New: False live range after running the coalescer Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8870 Summary: False live range after running the coalescer Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Common Code Generator Code AssignedTo: unassignedbugs at nondot.org ReportedBy: zwarich at apple.com CC: llvmbugs at cs.uiuc.edu Running the MachineVerifier after coalescing on CodeGen/ARM/2007-03-26-RegScavengerAssert.ll -march=arm gives the following error: *** Bad machine code: Instruction killing live segment neither defines nor reads register *** - function: gimplify_expr - basic block: cond_true3062 0x103058b20 (BB#33) [1672L;1784L) - instruction: 1740L %R1 = MOVi 0, pred:14, pred:%reg0, opt:%reg0 [1632L,1740d:0) in %reg16394,0.000000e+00 = [1092d,1160L:0)[1272L,1304L:0)[1312L,1344L:0)[1456L,1520L:0)[1632L,1740d:0) 0 at 1092d LLVM ERROR: Found 1 machine code errors. At first glance, this looks legit. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 28 19:33:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 28 Dec 2010 19:33:46 -0600 (CST) Subject: [LLVMbugs] [Bug 8867] Attempting uitofp from integer constant to fp128 causes assertion failure in APFloat.cpp:120 In-Reply-To: References: Message-ID: <20101229013346.D3CAB2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8867 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2010-12-28 19:33:46 CST --- Fixed in r122613, 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 Dec 29 04:19:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 29 Dec 2010 04:19:27 -0600 (CST) Subject: [LLVMbugs] [Bug 7874] LLVM cannot be built w/o pthreads on mingw/msys when pthread.h exists In-Reply-To: References: Message-ID: <20101229101927.528DF2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7874 NAKAMURA Takumi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |geek4civic at gmail.com Component|new bugs |autoconf Resolution| |FIXED Product|new-bugs |Build scripts --- Comment #2 from NAKAMURA Takumi 2010-12-29 04:19:26 CST --- Resolved in r122621. configure accepts --disable-pthreads. (enabled by default) -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 29 09:02:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 29 Dec 2010 09:02:26 -0600 (CST) Subject: [LLVMbugs] [Bug 8871] New: incorrect alignment for struct containing double Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8871 Summary: incorrect alignment for struct containing double Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pip88nl at gmail.com CC: llvmbugs at cs.uiuc.edu On x86, the alignment requirement for `double' is 8 bytes and this is correctly reported by __alignof. However, for a struct containing a double, __alignof reports 4: struct hasdouble { double d; }; // alignment = 4 This is a problem on a system with alignment checking turned on. Note that it correctly aligns the struct on x86_64. Also note that GCC has the same, in my opinion incorrect, behaviour. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 29 12:49:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 29 Dec 2010 12:49:00 -0600 (CST) Subject: [LLVMbugs] [Bug 8871] incorrect alignment for struct containing double In-Reply-To: References: Message-ID: <20101229184900.A018C2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8871 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |rjmccall at apple.com Resolution| |INVALID --- Comment #2 from John McCall 2010-12-29 12:49:00 CST --- Both of these reported issues ? that 'double' and the stack are only four-byte aligned ? are specified by the i386 Linux platform ABI, and changing it would completely break binary compatibility. You can request additional alignment for a struct using __attribute__((aligned)); there is nothing you can do to request additional stack 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 Wed Dec 29 16:19:44 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 29 Dec 2010 16:19:44 -0600 (CST) Subject: [LLVMbugs] [Bug 6394] Optimizer swaps bitcast and getelementptr in an invalid way In-Reply-To: References: Message-ID: <20101229221944.0832E2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6394 Henning Thielemann changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #4 from Henning Thielemann 2010-12-29 16:19:43 CST --- I still do not know how to cope with that problem. I use the JIT, thus I cannot specify a target string. And if I could, then I would wonder, why I shall specify a target specification, since I want of course, that the optimizer applies optimizations that are valid for the host machine. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 29 16:37:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 29 Dec 2010 16:37:09 -0600 (CST) Subject: [LLVMbugs] [Bug 6394] Optimizer swaps bitcast and getelementptr in an invalid way In-Reply-To: References: Message-ID: <20101229223709.45C9F2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6394 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #6 from Chris Lattner 2010-12-29 16:37:08 CST --- Please update to LLVM 2.8, or better yet, mainline. We do not put out bug fixes for previous releases. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 29 17:17:43 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 29 Dec 2010 17:17:43 -0600 (CST) Subject: [LLVMbugs] [Bug 8872] New: False positive result Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8872 Summary: False positive result Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: tlsa at netsurf-browser.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=5934) --> (http://llvm.org/bugs/attachment.cgi?id=5934) Screenshot of the dereference of NULL pointer report This screenshot of a dereference of NULL pointer report shows a false positive. http://www.netsurf-browser.org/temp/content-llcache2.png At [2] it takes the false branch, which should be impossible given the logic in the assert() at line 1247, and the assumption of NULL at [1[a]]. I'm using the clang / scan-build in packaged Ubuntu 10.10. Also, it would be helpful if, instead of saying "pointer value" in "[a] Assuming pointer value is null", it actually gave the name of the pointer it meant (user->prev). It's a bit ambiguous at the moment as there are other pointer values there. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Dec 29 17:20:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 29 Dec 2010 17:20:31 -0600 (CST) Subject: [LLVMbugs] [Bug 8796] failed assert: Duplicate empty class detected In-Reply-To: References: Message-ID: <20101229232031.75FEB2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8796 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Rafael ?vila de Esp?ndola 2010-12-29 17:20:31 CST --- Fixed in r122633. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 29 18:22:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 29 Dec 2010 18:22:23 -0600 (CST) Subject: [LLVMbugs] [Bug 8873] New: [MC] Can't disassemble some x86 machine code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8873 Summary: [MC] Can't disassemble some x86 machine code Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Target Description Classes AssignedTo: unassignedbugs at nondot.org ReportedBy: richard-llvm at metafoo.co.uk CC: llvmbugs at cs.uiuc.edu $ echo '0x2b 0xc9' | llvm-mc -disassemble -triple i686-pc-linux-gnu - :1:1: warning: invalid instruction encoding 0x2b 0xc9 ^ That's "sub %ecx, %ecx". -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Dec 29 20:49:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 29 Dec 2010 20:49:58 -0600 (CST) Subject: [LLVMbugs] [Bug 8865] "Linking two modules of different target triples" is not informative enough In-Reply-To: References: Message-ID: <20101230024958.A22AC2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8865 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Chris Lattner 2010-12-29 20:49:58 CST --- Good idea, done in r122637. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 29 23:32:41 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 29 Dec 2010 23:32:41 -0600 (CST) Subject: [LLVMbugs] [Bug 8874] New: Needs to support "register uint64_t foo asm("r8")" Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8874 Summary: Needs to support "register uint64_t foo asm("r8")" Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu Unfortunately there is no simple constraint for using r8 (or higher) on x86-64, and therefore one has to write code like --------------------------------- uint64_t foo(uint64_t addr, uint64_t a0, uint64_t a1, uint64_t a2, uint64_t a3, uint64_t a4, uint64_t a5) { register uint64_t result asm("rax"); register uint64_t b0 asm("rdi"); register uint64_t b1 asm("rsi"); register uint64_t b2 asm("rdx"); register uint64_t b3 asm("rcx"); register uint64_t b4 asm("r8"); register uint64_t b5 asm("r9"); b0 = a0; b1 = a1; b2 = a2; b3 = a3; b4 = a4; b5 = a5; asm("call *%0" : "=r" (result) : "r"(addr), "r" (a0), "r" (b1), "r" (b2), "r" (b3), "r" (b4), "r" (b5)); return result; } ------------------------------- Which gcc compiles to movq %rsi, %rax movq %rdx, %rsi movq %rcx, %rdx movq %r8, %rcx movq %r9, %r8 movq 8(%rsp), %r9 call *%rax ret This is all that has implemented, so hopefully it can be done by transforming that asm("register") in a note that does nothing unless the variable is used in inline assembly. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 30 13:51:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 30 Dec 2010 13:51:23 -0600 (CST) Subject: [LLVMbugs] [Bug 8874] Needs to support "register uint64_t foo asm("r8")" In-Reply-To: References: Message-ID: <20101230195123.B10C52A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8874 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |nlewycky at google.com Resolution| |DUPLICATE --- Comment #2 from Nick Lewycky 2010-12-30 13:51:23 CST --- *** This bug has been marked as a duplicate of bug 3933 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 30 14:48:10 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 30 Dec 2010 14:48:10 -0600 (CST) Subject: [LLVMbugs] [Bug 8875] New: Rejects qualified call to destructor in templated code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8875 Summary: Rejects qualified call to destructor in templated code Product: clang Version: unspecified Platform: PC OS/Version: All 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 In this code: class bar { }; void foobar() { bar zed; zed.bar::~bar(); } template class foo2 { }; typedef foo2 bar2; void foobar2() { bar2 zed2; zed2.~bar2(); } template class foo3 { }; typedef foo3 bar3; void foobar3() { bar3 zed3; zed3.bar3::~bar3(); } clang will reject only the third call with the error message: jspropertytree.ii:21:15: error: expected the class name after '~' to name a destructor zed3.bar3::~bar3(); ^ It looks strange for that to really be the only invalid case. If clang is correct, a better error message would be welcome :-) -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 30 16:11:18 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 30 Dec 2010 16:11:18 -0600 (CST) Subject: [LLVMbugs] [Bug 8861] fdivp doesn't accept %st In-Reply-To: References: Message-ID: <20101230221118.F0A892A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8861 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Nick Lewycky 2010-12-30 16:11:18 CST --- Fixed in: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20101227/114440.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 Dec 30 17:04:00 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 30 Dec 2010 17:04:00 -0600 (CST) Subject: [LLVMbugs] [Bug 3933] clang doesn't support pinning variables to registers with __asm__("eax") In-Reply-To: References: Message-ID: <20101230230400.CE38E2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=3933 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #13 from Rafael ?vila de Esp?ndola 2010-12-30 17:04:00 CST --- I think the most important part has been fixed in 122643. We are intentionally more restrictive than gcc, if too restrictive for a particular use, please open a new bug report. The generated code also has more moves than the one produced by gcc, but that is an llvm problem, not clang's. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Dec 30 18:55:09 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 30 Dec 2010 18:55:09 -0600 (CST) Subject: [LLVMbugs] [Bug 8876] New: Incorrect warning about non-volatile NULL pointer dereference Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8876 Summary: Incorrect warning about non-volatile NULL pointer dereference Product: clang Version: trunk 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 null.c: {{{ #define A(err_ptr) do { \ if (err_ptr) *(int*)(err_ptr) = 1; \ } while (0) int main() { A(0); return 0; } }}} The macro `A()` was reduced from a larger mutex-managing macro. {{{ $ clang null.c null.c:6:3: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] A(0); ^~~~ null.c:2:18: note: instantiated from: if (err_ptr) *(int*)(err_ptr) = 1; \ ^~~~~~~~~~~~~~~~ null.c:6:3: note: consider using __builtin_trap() or qualifying pointer with 'volatile' 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 Thu Dec 30 19:15:46 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 30 Dec 2010 19:15:46 -0600 (CST) Subject: [LLVMbugs] [Bug 8876] Incorrect warning about non-volatile NULL pointer dereference In-Reply-To: References: Message-ID: <20101231011546.966902A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8876 Chandler Carruth changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |chandlerc at gmail.com Resolution| |DUPLICATE --- Comment #1 from Chandler Carruth 2010-12-30 19:15:46 CST --- This is PR8183 *** This bug has been marked as a duplicate of bug 8183 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 31 09:09:26 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 31 Dec 2010 09:09:26 -0600 (CST) Subject: [LLVMbugs] [Bug 8877] New: Win64 CMake generated build files cause link error Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8877 Summary: Win64 CMake generated build files cause link error Product: Build scripts Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Keywords: build-problem Severity: normal Priority: P Component: cmake AssignedTo: unassignedbugs at nondot.org ReportedBy: vanboxem.ruben at gmail.com CC: llvmbugs at cs.uiuc.edu In the x64 MSVC Command prompt: cmake ../../Source/llvm -G"NMake Makefiles" nmake gives an error: Linking CXX executable ..\..\bin\llvm-mc.exe Creating library ..\..\lib\llvm-mc.lib and object ..\..\lib\llvm-mc.exp LLVMX86CodeGen.lib(X86JITInfo.cpp.obj) : error LNK2019: unresolved external symbol X86CompilationCallback referenced in function "public: virtual void (__cdecl*__cdecl llvm::X86JITInfo::getLazyResolverFunction(void * (__cdecl*)(void *)))(void)" (?getLazyResolverFunction at X86JITInfo@llvm@@UEAAP6AXXZP6APEAXPEAX at Z@Z) ..\..\bin\llvm-mc.exe : fatal error LNK1120: 1 unresolved externals LINK failed. with 2 NMAKE : fatal error U1077: 'M:\Development\utils\cmake\bin\cmake.exe' : return code '0xffffffff' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\nmake.exe"' : return code '0x2' Stop. Doing the exact same thing from the x86 Command prompt does not cause this 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 Dec 31 14:17:11 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 31 Dec 2010 14:17:11 -0600 (CST) Subject: [LLVMbugs] [Bug 8877] Win64 CMake generated build files cause link error In-Reply-To: References: Message-ID: <20101231201711.404242A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8877 ?scar Fuentes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |ofv at wanadoo.es Resolution| |FIXED --- Comment #1 from ?scar Fuentes 2010-12-31 14:17:10 CST --- Fixed in r122649. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Dec 31 16:24:16 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 31 Dec 2010 16:24:16 -0600 (CST) Subject: [LLVMbugs] [Bug 8878] New: [MC] regression: unknown fixup kind in ELF Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8878 Summary: [MC] regression: unknown fixup kind in ELF 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: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu This assembly file: .Lfoo: leaq AES_Te-.Lfoo(%r14),%r14 is a delta-reduction of openssl's aes-x86_64.S which triggers an unreachable with llvm-mc: $ llvm-mc test.s -filetype=obj /dev/null invalid fixup kind! UNREACHABLE executed at ELFObjectWriter.cpp:1608! This does assemble with gas. The .o it produces looks like: lea 0x0(%r14),%r14 R_X86_64_PC32 AES_Te+0x03 through objdump -dr. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.