From bugzilla-daemon at llvm.org Thu Sep 1 03:43:51 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Sep 2011 03:43:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 10823] New: Failed assertion: `DefinitionData && "queried property of class with no definition"' Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10823 Summary: Failed assertion: `DefinitionData && "queried property of class with no definition"' Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pipping at exherbo.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=7186) --> (http://llvm.org/bugs/attachment.cgi?id=7186) delta-reduced input (not valid code but manages to make clang++ crash) Reduced from libc++/src/locale.cpp % clang++ -c locale-ThMXu8.ii locale-ThMXu8.ii:1:51: error: expected class name template struct __num_get : protected __num_get_base { ^ locale-ThMXu8.ii:2:10: error: unknown type name 'string' static string __stage2_int_prep(ios_base& __iob); ^ locale-ThMXu8.ii:2:37: error: unknown type name 'ios_base' static string __stage2_int_prep(ios_base& __iob); ^ locale-ThMXu8.ii:6:16: error: no template named 'num_get'; did you mean '__num_get'? template class num_get; ^~~~~~~ __num_get locale-ThMXu8.ii:1:29: note: '__num_get' declared here template struct __num_get : protected __num_get_base { ^ clang: /var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/lib/Sema/../../include/clang/AST/DeclCXX.h:530: const clang::CXXRecordDecl::DefinitionData& clang::CXXRecordDecl::data() const: Assertion `DefinitionData && "queried property of class with no definition"' failed. 0 libLLVM-3.0svn.so 0x00007f82f313802f 1 libLLVM-3.0svn.so 0x00007f82f3138790 2 libpthread.so.0 0x00007f82f2115f10 3 libc.so.6 0x00007f82f14345c5 gsignal + 53 4 libc.so.6 0x00007f82f14358c5 abort + 389 5 libc.so.6 0x00007f82f142d235 __assert_fail + 245 6 clang 0x0000000000927e5f clang::Sema::MarkVTableUsed(clang::SourceLocation, clang::CXXRecordDecl*, bool) + 79 7 clang 0x0000000000a96be7 clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation, clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind, bool) + 185 8 clang 0x0000000000a29f39 clang::Sema::ActOnExplicitInstantiation(clang::Scope*, clang::SourceLocation, clang::SourceLocation, unsigned int, clang::SourceLocation, clang::CXXScopeSpec const&, clang::OpaquePtr, clang::SourceLocation, clang::SourceLocation, clang::ASTTemplateArgsPtr, clang::SourceLocation, clang::AttributeList*) + 2085 9 clang 0x0000000000827d83 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 3337 10 clang 0x000000000081587a clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 5760 11 clang 0x00000000007ea511 clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::AccessSpecifier) + 885 12 clang 0x00000000007eef3b clang::Parser::ParseExplicitInstantiation(clang::SourceLocation, clang::SourceLocation, clang::SourceLocation&) + 91 13 clang 0x00000000007ef25e clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 766 14 clang 0x000000000081646f clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 191 15 clang 0x00000000007fdda7 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 1675 16 clang 0x00000000007fe847 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 241 17 clang 0x00000000007d1210 clang::ParseAST(clang::Sema&, bool) + 308 18 clang 0x0000000000593c64 clang::ASTFrontendAction::ExecuteAction() + 200 19 clang 0x00000000006884c9 clang::CodeGenAction::ExecuteAction() + 2691 20 clang 0x0000000000594203 clang::FrontendAction::Execute() + 389 21 clang 0x0000000000581410 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 868 22 clang 0x00000000005680cd clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3805 23 clang 0x000000000055eeee cc1_main(char const**, char const**, char const*, void*) + 7074 24 clang 0x0000000000565078 main + 751 25 libc.so.6 0x00007f82f1420c7d __libc_start_main + 253 26 clang 0x000000000055d179 Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name locale-ThMXu8.ii -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.1 -momit-leaf-frame-pointer -coverage-file locale-ThMXu8.o -resource-dir /usr/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length 118 -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o locale-ThMXu8.o -x c++-cpp-output locale-ThMXu8.ii 1. locale-ThMXu8.ii:6:32: current parser token ';' clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs. % -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 1 03:45:49 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Sep 2011 03:45:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 10824] New: Segmentation Fault Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10824 Summary: Segmentation Fault Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pipping at exherbo.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=7187) --> (http://llvm.org/bugs/attachment.cgi?id=7187) delta-reduced input (not valid code but manages to make clang++ crash) Reduced from libc++/src/locale.cpp % clang++ -std=c++0x locale-ThMXu8.ii locale-ThMXu8.ii:1:9: error: address expression must be an lvalue or a function designator typedef union { ^~~~~ 0 libLLVM-3.0svn.so 0x00007f0425d2602f 1 libLLVM-3.0svn.so 0x00007f0425d26790 2 libpthread.so.0 0x00007f0424d03f10 3 clang 0x0000000000e52430 clang::Expr::hasAnyTypeDependentArguments(clang::Expr**, unsigned int) + 38 4 clang 0x000000000098030a clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*, clang::SourceLocation, clang::ASTMultiPtr, clang::SourceLocation, clang::Expr*) + 566 5 clang 0x000000000091a953 clang::Sema::DefineImplicitMoveAssignment(clang::SourceLocation, clang::CXXMethodDecl*) + 6369 6 clang 0x000000000095bc77 clang::Sema::MarkDeclarationReferenced(clang::SourceLocation, clang::Decl*) + 869 7 clang 0x00000000009ff199 clang::Sema::CreateOverloadedBinOp(clang::SourceLocation, unsigned int, clang::UnresolvedSetImpl const&, clang::Expr*, clang::Expr*) + 1581 8 clang 0x000000000097cab6 clang::Sema::BuildBinOp(clang::Scope*, clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*) + 274 9 clang 0x000000000097d52a clang::Sema::ActOnBinOp(clang::Scope*, clang::SourceLocation, clang::tok::TokenKind, clang::Expr*, clang::Expr*) + 2456 10 clang 0x000000000082f9a5 clang::Parser::ParseRHSOfBinaryExpression(clang::ActionResult, clang::prec::Level) + 2533 11 clang 0x000000000082fb75 clang::Parser::ParseAssignmentExpression() + 335 12 clang 0x0000000000830919 clang::Parser::ParseExpression() + 9 13 clang 0x00000000007e92f2 clang::Parser::ParseExprStatement(clang::ParsedAttributes&) + 74 14 clang 0x00000000007e522a clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector&, bool) + 2816 15 clang 0x00000000007e2845 clang::Parser::ParseCompoundStatementBody(bool) + 2395 16 clang 0x00000000007e2f07 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) + 217 17 clang 0x0000000000805256 clang::Parser::ParseLexedMethodDef(clang::Parser::LexedMethod&) + 3608 18 clang 0x00000000008058de clang::Parser::LexedMethod::ParseLexedMethodDefs() + 16 19 clang 0x00000000008043e9 clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&) + 185 20 clang 0x0000000000826f78 clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int, clang::Decl*) + 3750 21 clang 0x00000000008286e0 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 5734 22 clang 0x000000000081587a clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 5760 23 clang 0x00000000007fbb8f clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&, clang::AccessSpecifier) + 93 24 clang 0x00000000007fc282 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::AccessSpecifier) + 696 25 clang 0x00000000007fe27d clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 2913 26 clang 0x00000000007fe847 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 241 27 clang 0x00000000007d1210 clang::ParseAST(clang::Sema&, bool) + 308 28 clang 0x0000000000593c64 clang::ASTFrontendAction::ExecuteAction() + 200 29 clang 0x00000000006884c9 clang::CodeGenAction::ExecuteAction() + 2691 30 clang 0x0000000000594203 clang::FrontendAction::Execute() + 389 31 clang 0x0000000000581410 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 868 32 clang 0x00000000005680cd clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3805 33 clang 0x000000000055eeee cc1_main(char const**, char const**, char const*, void*) + 7074 34 clang 0x0000000000565078 main + 751 35 libc.so.6 0x00007f042400ec7d __libc_start_main + 253 36 clang 0x000000000055d179 Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name locale-ThMXu8.ii -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.1 -momit-leaf-frame-pointer -resource-dir /usr/bin/../lib/clang/3.0 -std=c++0x -fdeprecated-macro -ferror-limit 19 -fmessage-length 118 -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/locale-ThMXu8-q8Yp1g.o -x c++-cpp-output locale-ThMXu8.ii 1. locale-ThMXu8.ii:11:38: current parser token ';' 2. locale-ThMXu8.ii:7:1: parsing struct/union/class body 'mutex' 3. locale-ThMXu8.ii:10:11: parsing function body 'mutex' 4. locale-ThMXu8.ii:10:11: in compound statement ('{}') clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs. % -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 1 06:50:31 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Sep 2011 06:50:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 10824] Segmentation Fault In-Reply-To: References: Message-ID: <20110901115031.73A3C2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10824 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Douglas Gregor 2011-09-01 06:50:30 CDT --- Ah, this is the same as http://llvm.org/bugs/show_bug.cgi?id=10822 which I fixed last night. *** This bug has been marked as a duplicate of bug 10822 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 1 07:25:48 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Sep 2011 07:25:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 10825] New: [AVX] Assertion failed: (0 && "getSizeInBits called on extended MVT.") in CodeGen/ValueTypes.h Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10825 Summary: [AVX] Assertion failed: (0 && "getSizeInBits called on extended MVT.") in CodeGen/ValueTypes.h Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7188) --> (http://llvm.org/bugs/attachment.cgi?id=7188) test case With top-of-tree and the attached bitcode file, I'm seeing the following crash/assertion failure: % llc -mattr=+avx bugpoint-reduced-simplified.ll Assertion failed: (0 && "getSizeInBits called on extended MVT."), function getSizeInBits, file /Users/mmp/llvm-dev-src/include/llvm/CodeGen/ValueTypes.h, line 251. 0 llc 0x00000001048444a2 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6504 1 llc 0x0000000104844aa9 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 8047 2 libsystem_c.dylib 0x00007fff88c4dcfa _sigtramp + 26 3 libsystem_c.dylib 000000000000000000 _sigtramp + 18446603338221560608 4 llc 0x0000000104844406 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6348 5 llc 0x0000000104844458 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6430 6 llc 0x000000010429c8dd llvm::X86Subtarget::isTargetELF() const + 303765 7 llc 0x00000001042691db llvm::X86Subtarget::isTargetELF() const + 93075 8 llc 0x000000010434237a llvm::DenseMap, llvm::DenseMapInfo >::insert(std::pair const&) + 26434 9 llc 0x000000010433be21 llvm::DenseMap, llvm::DenseMapInfo >::insert(std::pair const&) + 489 10 llc 0x000000010444cc81 llvm::SelectionDAGBuilder::Case::size() const + 34861 11 llc 0x000000010444e902 llvm::SelectionDAGBuilder::Case::size() const + 42158 12 llc 0x000000010444f56b llvm::SelectionDAGBuilder::Case::size() const + 45335 13 llc 0x0000000104524754 llvm::MachineFunctionAnalysis::getPassName() const + 458 14 llc 0x00000001047ab3ed llvm::cl::parser::~parser() + 26675 15 llc 0x00000001047a698b llvm::cl::parser::~parser() + 7633 16 llc 0x00000001047ab0ea llvm::cl::parser::~parser() + 25904 17 llc 0x00000001047ac501 llvm::cl::parser::~parser() + 31047 18 llc 0x00000001047ac581 llvm::cl::parser::~parser() + 31175 19 llc 0x00000001041c9c73 20 llc 0x00000001041c8534 21 llc 0x0000000000000003 Stack dump: 0. Program arguments: llc -mattr=+avx bugpoint-reduced-simplified.ll 1. Running pass 'Function Pass Manager' on module 'bugpoint-reduced-simplified.ll'. 2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@"f_f___REFUf[]REFUf[]"' [1] 5845 illegal hardware instruction llc -mattr=+avx bugpoint-reduced-simplified.ll -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 1 08:39:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Sep 2011 08:39:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 10826] New: Code completion in macro with # operator crashes libclang Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10826 Summary: Code completion in macro with # operator crashes libclang Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: Erik.Verbruggen at Me.com CC: llvmbugs at cs.uiuc.edu It looks like MacroArgs::StringifyArgument doesn't handle # operator arguments correctly. So when doing code-completion with: #define A(x) "A"#x A() then this causes an out-of-bounds array access. When running c-index-test on the attached test case, the stack-trace is: #0 0x00007fff90adece2 in __pthread_kill () #1 0x00007fff8afde7d2 in pthread_kill () #2 0x0000000100ad755f in raise (sig=6) at Signals.inc:281 #3 0x0000000100ad7590 in abort () at Signals.inc:298 #4 0x0000000100ad765d in __assert_rtn (func=0x100aff350 "operator[]", file=0x100b88650 "/data/clang-llvm/llvm/include/llvm/ADT/SmallVector.h", line=150, expr=0x100afb2ad "begin() + idx < end()") at Signals.inc:294 #5 0x0000000100ad4705 in llvm::SmallVectorTemplateCommon::operator[] (this=0x102ffd080, idx=1) at SmallVector.h:150 #6 0x0000000100a129cb in clang::MacroArgs::StringifyArgument (ArgToks=0x1031091b0, PP=@0x104001a00, Charify=false, hashInstLoc={ID = 2147492696}) at MacroArgs.cpp:229 #7 0x0000000100a12fe7 in clang::MacroArgs::getStringifiedArgument (this=0x103109170, ArgNo=0, PP=@0x104001a00, hashInstLoc={ID = 2147492696}) at MacroArgs.cpp:300 #8 0x0000000100a4c56a in clang::TokenLexer::ExpandFunctionArguments (this=0x103108ea0) at TokenLexer.cpp:151 #9 0x0000000100a4a8d5 in clang::TokenLexer::Init (this=0x103108ea0, Tok=@0x10401f010, ELEnd={ID = 171}, Actuals=0x103109170) at TokenLexer.cpp:69 #10 0x0000000100a29758 in clang::Preprocessor::EnterMacro (this=0x104001a00, Tok=@0x10401f010, ILEnd={ID = 171}, Args=0x103109170) at PPLexerChange.cpp:153 #11 0x0000000100a30b7b in clang::Preprocessor::HandleMacroExpandedIdentifier (this=0x104001a00, Identifier=@0x10401f010, MI=0x104036770) at PPMacroExpansion.cpp:308 #12 0x0000000100a43ea6 in clang::Preprocessor::HandleIdentifier (this=0x104001a00, Identifier=@0x10401f010) at Preprocessor.cpp:489 #13 0x0000000100a04ee1 in clang::Lexer::LexIdentifier (this=0x103108100, Result=@0x10401f010, CurPtr=0x1031072ba "(") at Lexer.cpp:1279 #14 0x0000000100a06f1a in clang::Lexer::LexTokenInternal (this=0x103108100, Result=@0x10401f010) at Lexer.cpp:2481 #15 0x00000001001f281b in clang::Lexer::Lex (this=0x103108100, Result=@0x10401f010) at Lexer.h:130 #16 0x0000000100387b35 in clang::Preprocessor::Lex (this=0x104001a00, Result=@0x10401f010) at Preprocessor.h:548 #17 0x0000000100a189f7 in clang::Preprocessor::CachingLex (this=0x104001a00, Result=@0x10401f010) at PPCaching.cpp:57 #18 0x0000000100387bed in clang::Preprocessor::Lex (this=0x104001a00, Result=@0x10401f010) at Preprocessor.h:554 #19 0x00000001003a7871 in clang::Parser::ConsumeParen (this=0x10401f000) at Parser.h:324 #20 0x00000001003c2ffc in clang::Parser::SkipUntil (this=0x10401f000, Toks=0x102ffeab4, NumToks=1, StopAtSemi=false, DontConsume=false, StopAtCodeCompletion=true) at Parser.cpp:264 #21 0x00000001003ceb75 in clang::Parser::SkipUntil (this=0x10401f000, T=clang::tok::r_brace, StopAtSemi=false, DontConsume=false, StopAtCodeCompletion=true) at Parser.h:624 #22 0x00000001003ad669 in clang::Parser::trySkippingFunctionBodyForCodeCompletion (this=0x10401f000) at ParseStmt.cpp:1883 #23 0x00000001003b5371 in clang::Parser::ParseFunctionStatementBody (this=0x10401f000, Decl=0x104037410, BodyScope=@0x102ffede0) at ParseStmt.cpp:1816 #24 0x00000001003c8f2a in clang::Parser::ParseFunctionDefinition (this=0x10401f000, D=@0x102fff0e0, TemplateInfo=@0x102fff668) at Parser.cpp:988 #25 0x000000010035ddf5 in clang::Parser::ParseDeclGroup (this=0x10401f000, DS=@0x102fff950, Context=0, AllowFunctionDefinitions=true, DeclEnd=0x0, FRI=0x0) at ParseDecl.cpp:886 #26 0x00000001003c671e in clang::Parser::ParseDeclarationOrFunctionDefinition (this=0x10401f000, DS=@0x102fff950, AS=clang::AS_none) at Parser.cpp:806 #27 0x00000001003c67c1 in clang::Parser::ParseDeclarationOrFunctionDefinition (this=0x10401f000, attrs=@0x103000320, AS=clang::AS_none) at Parser.cpp:819 #28 0x00000001003cad60 in clang::Parser::ParseExternalDeclaration (this=0x10401f000, attrs=@0x103000320, DS=0x0) at Parser.cpp:689 #29 0x00000001003cb2a2 in clang::Parser::ParseTopLevelDecl (this=0x10401f000, Result=@0x1030003d8) at Parser.cpp:510 #30 0x000000010034f13b in clang::ParseAST (S=@0x10401e000, PrintStats=false) at ParseAST.cpp:84 #31 0x00000001001c63bf in clang::ASTFrontendAction::ExecuteAction (this=0x103100c30) at FrontendAction.cpp:403 #32 0x00000001001c6557 in clang::FrontendAction::Execute (this=0x103100c30) at FrontendAction.cpp:323 #33 0x000000010018ec40 in clang::ASTUnit::CodeComplete (this=0x103801a00, File={Data = 0x101c00a60 "/data/clang-llvm/llvm/tools/clang/test/Index/complete-in-macro.c", Length = 64}, Line=12, Column=11, RemappedFiles=0x103000d80, NumRemappedFiles=0, IncludeMacros=true, IncludeCodePatterns=false, Consumer=@0x103000c00, Diag=@0x103100490, LangOpts=@0x103100368, SourceMgr=@0x103100930, FileMgr=@0x103100770, StoredDiagnostics=@0x1031000c0, OwnedBuffers=@0x1031003c0) at ASTUnit.cpp:2283 #34 0x000000010014befc in clang_codeCompleteAt_Impl (UserData=0x101d80c28) at CIndexCodeCompletion.cpp:672 #35 0x0000000100ac47d9 in llvm::CrashRecoveryContext::RunSafely (this=0x101d80c18, Fn=0x10014ba30 , UserData=0x101d80c28) at CrashRecoveryContext.cpp:309 #36 0x0000000100ac44d9 in RunSafelyOnThread_Dispatch (UserData=0x101d80b58) at CrashRecoveryContext.cpp:340 #37 0x0000000100add9a8 in ExecuteOnThread_Dispatch (Arg=0x101d80b18) at Threading.cpp:75 #38 0x00007fff8afdc8bf in _pthread_start () #39 0x00007fff8afdfb75 in thread_start () -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 1 08:53:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Sep 2011 08:53:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 10827] New: Crash when analyzing a file Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10827 Summary: Crash when analyzing a file Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: tobias.hunger at gmx.de CC: llvmbugs at cs.uiuc.edu I get a crash when running the attached file through the analyzer. Sources are taken from SVN, llvm was last changed at rev. 138934, clang at rev. 138937. The output is also 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 Thu Sep 1 11:26:17 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Sep 2011 11:26:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 10744] Can't specify linker to use with the -B flag In-Reply-To: References: Message-ID: <20110901162617.A005D2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10744 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #7 from Rafael ?vila de Esp?ndola 2011-09-01 11:26:17 CDT --- Fixed in r138941. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 1 11:32:33 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Sep 2011 11:32:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 10828] New: No warning for Most Vexing Parse of 0-argument function Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10828 Summary: No warning for Most Vexing Parse of 0-argument function 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 Clang gives no warning for the following code: class C { C () { } }; void f() { C c(); } We should warn on ambiguous declarations in block scope. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 1 11:43:25 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Sep 2011 11:43:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 10829] New: Possible problem with debug metadata generated for empty 'return' statements Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10829 Summary: Possible problem with debug metadata generated for empty 'return' statements Product: clang Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: eliben at gmail.com CC: llvmbugs at cs.uiuc.edu Consider this C code: void func(char c, char* d) { *d = c + 1; return; } The LLVM IR generated with "clang -g -S -O0 -emit-llvm" is: define void @func(i8 signext %c, i8* %d) nounwind { entry: %c.addr = alloca i8, align 1 %d.addr = alloca i8*, align 4 store i8 %c, i8* %c.addr, align 1 call void @llvm.dbg.declare(metadata !{i8* %c.addr}, metadata !11), !dbg !13 store i8* %d, i8** %d.addr, align 4 call void @llvm.dbg.declare(metadata !{i8** %d.addr}, metadata !14), !dbg !16 %tmp = load i8* %c.addr, align 1, !dbg !17 %conv = sext i8 %tmp to i32, !dbg !17 %add = add nsw i32 %conv, 1, !dbg !17 %conv1 = trunc i32 %add to i8, !dbg !17 %tmp2 = load i8** %d.addr, align 4, !dbg !17 store i8 %conv1, i8* %tmp2, !dbg !17 ret void, !dbg !19 } Relevant metadata nodes: !17 = metadata !{i32 3, i32 5, metadata !18, null} !19 = metadata !{i32 5, i32 1, metadata !18, null} As you can see, the metadata node attached to the 'ret void' instruction reports line 5, although the 'return' is on line 4. This is an error, which will cause a breakpoint placed on the 'return' not to stop there. Some preliminary investigation in the source code of Clang reveals that in all likeness Clang optimizes away the empty "return" at the end of the function, using its own return inserted by CodeGenFunction::EmitFunctionEpilog Examination of emitted AST shows that the return statement appears there, so the optimization is done after that. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 1 12:36:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Sep 2011 12:36:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 9535] LegalizeVectorTypes.cpp assertion hits (v8f32 fp_round) In-Reply-To: References: Message-ID: <20110901173644.345BD2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9535 Evan Cheng changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |evan.cheng at apple.com Resolution| |FIXED --- Comment #2 from Evan Cheng 2011-09-01 12:36:43 CDT --- Bruno said 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 Sep 1 13:15:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Sep 2011 13:15:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 10825] [AVX] Assertion failed: (0 && "getSizeInBits called on extended MVT.") in CodeGen/ValueTypes.h In-Reply-To: References: Message-ID: <20110901181529.8B2032A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10825 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-09-01 13:15:29 CDT --- Fixed in r138951 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 1 16:04:13 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Sep 2011 16:04:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 10817] getline broken, reads an extra line In-Reply-To: References: Message-ID: <20110901210413.8B64A2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10817 Howard Hinnant 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 Sep 1 17:04:15 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Sep 2011 17:04:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 10830] New: missing error when bound member function not called Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10830 Summary: missing error when bound member function not called Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: richard-llvm at metafoo.co.uk CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Sometimes clang doesn't diagnose when a bound non-static member function is not called: struct C { void f() {}; }; decltype(C().f); // -Wmissing-declarations warning, expected error -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 1 18:07:26 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Sep 2011 18:07:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 9337] ARM: misaligned data In-Reply-To: References: Message-ID: <20110901230726.C89912A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9337 Benjamin Kramer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |benny.kra at gmail.com Resolution| |FIXED --- Comment #6 from Benjamin Kramer 2011-09-01 18:07:26 CDT --- Fixed in r138976. (I didn't test it though due to lack of arm hardware) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 1 18:07:38 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Sep 2011 18:07:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 10128] ARM Thumb 2: Alignment getting lost between .ll and .s In-Reply-To: References: Message-ID: <20110901230738.44D902A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10128 Benjamin Kramer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |benny.kra at gmail.com Resolution| |FIXED --- Comment #7 from Benjamin Kramer 2011-09-01 18:07:37 CDT --- Fixed in r138976. (I didn't test it though due to lack of arm hardware) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 1 18:08:15 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Sep 2011 18:08:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 9483] [Win32][MCAsm][MCCOFF] local storage is unaware of required alignment In-Reply-To: References: Message-ID: <20110901230815.2BC7D2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9483 Benjamin Kramer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |benny.kra at gmail.com Resolution| |FIXED --- Comment #4 from Benjamin Kramer 2011-09-01 18:08:14 CDT --- I committed a modified version of Takumi's patch as r138976. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 1 18:16:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Sep 2011 18:16:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 10831] New: [x86 disassembler] vmovapd disassembled incorrectly Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10831 Summary: [x86 disassembler] vmovapd disassembled incorrectly Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: kkhoo at perfwizard.com CC: llvmbugs at cs.uiuc.edu >From the "Intel? 64 and IA-32 Architectures Software Developer?s Manual Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 3-656: VEX.128.66.0F.WIG 28 /r VMOVAPD xmm1, xmm2/m128 Clang on OSX assembles the following: vmovapd %xmm0, %xmm2 to these bytes: C5 F9 28 D0 But using llvm-mc built from trunk r138250, this byte sequence doesn't disassemble as expected: $ echo '0xc5 0xf9 0x28 0xd0'| ./llvm-mc -disassemble -triple="x86_64" movaps %xmm0, %xmm2 The 3-byte VEX prefix form is also incorrect: $ echo '0xc4 0xc1 0xf9 0x28 0xd0'| ./llvm-mc -disassemble -triple="x86_64" movaps %xmm8, %xmm2 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 1 18:31:11 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Sep 2011 18:31:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 10832] New: "movbe" is not recognized as an x86 mnemonic Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10832 Summary: "movbe" is not recognized as an x86 mnemonic Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: kkhoo at perfwizard.com CC: llvmbugs at cs.uiuc.edu According to the "Intel? 64 and IA-32 Architectures Software Developer?s Manual Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 3-662: 0F 38 F0 /r MOVBE r32, m32 $ clang -mavx avx.s -c /var/folders/J5/J5ahEYzWEFC1BPEW37amTE+++TM/-Tmp-/cc-1qUg1a.s:5:1: error: invalid instruction mnemonic 'movbe' movbe (%ecx), %eax -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 1 23:19:35 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Sep 2011 23:19:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 10806] [x86 disassembler] vldmxcsr disassembled incorrectly In-Reply-To: References: Message-ID: <20110902041935.2B0532A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10806 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Craig Topper 2011-09-01 23:19:34 CDT --- VEX.L=1 decoding is fixed in r138997. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 1 23:38:26 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Sep 2011 23:38:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 10831] [x86 disassembler] vmovapd/vmovaps/vmovd disassembled incorrectly In-Reply-To: References: Message-ID: <20110902043826.7870F2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10831 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Craig Topper 2011-09-01 23:38:26 CDT --- I think movd works provided you use pp=1. pp=0 would be the MMX form which doesn't have VEX equivalent. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 2 04:17:35 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 04:17:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 10833] New: LLVM generates wrong reloc type for global_ctors (section .init_array) for ARM target Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10833 Summary: LLVM generates wrong reloc type for global_ctors (section .init_array) for ARM target Product: new-bugs Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: barto at gmx.net CC: llvmbugs at cs.uiuc.edu Hi, I'm trying to get my LLVM generated .obj file (ELF) to link with the official ARM linker together with a project that is C++ code compiled with ARMCC. The file contains llvm.global_ctors that are emitted (correctly) to the .init_array section. However LLVM emits a R_ARM_ABS32(2) relocation for the entries in the .init_array section. A comparison with a .cpp file compiled with ARMCC showed that it uses a R_ARM_TARGET1(38) relocation. (see also http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0474c/CHDECJAJ.html) As a consequence, the linked project crashes in __cpp_initialize__aeabi as the relocation (from the LLVM compiled module) is wrong. I tried for myself to find where to change code in LLVM to make LLVM emit the correct relocation, but was unfortunately stuck. Is there an easy way for LLVM to generate R_ARM_TARGET1 instead of R_ARM_ABS32 for .init_array? My exact target configuration when generating the .obj file using LLVM is: std::string triple = "armv6-unknown-unknown-eabi"; cpu = "mpcore"; // (ARM) needed for VFP // all these options needed for the ARM linker to use fz (fpmode=fast) library instead of f or g (fpmode=ieee_full) llvm::FloatABIType = llvm::FloatABI::Hard; llvm::UnsafeFPMath = true; llvm::NoInfsFPMath = true; llvm::NoNaNsFPMath = true; -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 2 08:04:00 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 08:04:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 10834] New: shared library linkage regressions under dragonegg svn Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10834 Summary: shared library linkage regressions under dragonegg svn Product: dragonegg Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: New Bugs AssignedTo: baldrick at free.fr ReportedBy: howarth at nitro.med.uc.edu CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7194) --> (http://llvm.org/bugs/attachment.cgi?id=7194) linkage failure example The dragonegg plugin on x86_64-apple-darwin11 now triggers linkage error failures (segfaults in ld) that weren't present before a yesterday. These appear as... [MacPro:~/linkage_failure] howarth% /usr/bin/ld -dynamic -dylib -arch x86_64 -flat_namespace -macosx_version_min 10.7.2 -single_module -undefined suppress -weak_reference_mismatches non-weak -undefined suppress -o libvmd.dylib -ldylib1.10.5.o dpApi.o vmd.o vmdInter.o tclStream.o dpStream.o ssStream.o publicVMDInter.o thread.o -lcrypto -lstdc++ -no_compact_unwind -lSystem -L. -lgcc_ext.10.5 -lgcc -lSystem crtfastmath.o Segmentation fault This back traces in gdb as... [MacPro:~/linkage_failure] howarth% gdb /usr/bin/ld GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul 1 10:50:06 UTC 2011) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ... done (gdb) r -dynamic -dylib -arch x86_64 -flat_namespace -macosx_version_min 10.7.2 -single_module -undefined suppress -weak_reference_mismatches non-weak -undefined suppress -o libvmd.dylib -ldylib1.10.5.o dpApi.o vmd.o vmdInter.o tclStream.o dpStream.o ssStream.o publicVMDInter.o thread.o -lcrypto -lstdc++ -no_compact_unwind -lSystem -L. -lgcc_ext.10.5 -lgcc -lSystem crtfastmath.o Starting program: /usr/bin/ld -dynamic -dylib -arch x86_64 -flat_namespace -macosx_version_min 10.7.2 -single_module -undefined suppress -weak_reference_mismatches non-weak -undefined suppress -o libvmd.dylib -ldylib1.10.5.o dpApi.o vmd.o vmdInter.o tclStream.o dpStream.o ssStream.o publicVMDInter.o thread.o -lcrypto -lstdc++ -no_compact_unwind -lSystem -L. -lgcc_ext.10.5 -lgcc -lSystem crtfastmath.o Reading symbols for shared libraries ++......................... done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000028 0x00000001000159b9 in mach_o::relocatable::Section::addRelocFixup () (gdb) bt #0 0x00000001000159b9 in mach_o::relocatable::Section::addRelocFixup () #1 0x0000000100047a4c in mach_o::relocatable::Section::makeFixups () #2 0x00000001000437a3 in mach_o::relocatable::Parser::parse () #3 0x000000010001ec17 in mach_o::relocatable::Parser::parse () #4 0x000000010001809f in mach_o::relocatable::parse () #5 0x0000000100070ffc in ld::tool::InputFiles::makeFile () #6 0x00000001000726f9 in ld::tool::InputFiles::InputFiles () #7 0x0000000100012947 in main () (gdb) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 2 08:40:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 08:40:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 10835] New: Obj-C++ instance method that returns a C++ derived class causes crash Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10835 Summary: Obj-C++ instance method that returns a C++ derived class causes crash 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: bradmarston at mac.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7195) --> (http://llvm.org/bugs/attachment.cgi?id=7195) Xcode 4 project that demonstrates the problem with minimal code An Objective-C++ instance method that returns a derived C++ object causes a crash when the code is compiled with clang but works under LLVM GCC. The debugger says that a pointer being freed wasn't allocated. The problem occurs under both OS X 10.6 and 10.7, and with versions of clang that support Objective-C++. The attached Xcode project illustrates the problem with minimal code. Note that the function "D dummy2()" is able to properly return a derived C++ object of class D, but the Obj-C instance method "- (D) dummy" fails (but only when compiled with clang). Obj-C instance properly return C++ objects of the base class (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 Fri Sep 2 09:56:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 09:56:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 10836] New: Emails sent to llvmdev@cs.uiuc.edu and cfe-dev@cs.uiuc.edu have not appeared Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10836 Summary: Emails sent to llvmdev at cs.uiuc.edu and cfe-dev at cs.uiuc.edu have not appeared 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: johannesobermayr at gmx.de CC: llvmbugs at cs.uiuc.edu I cannot find below emails on mailing lists: (see [not]: http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-August/date.html and http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-August/date.html) chandlerc received the 2nd one only because I CCed him ... An email to the personal email adresses of the mailing list admins has not been answered for ~1 week. Btw. I have subscribed "write-only" to both mailings lists and the first email to llvmdev appeared immediately: http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-July/042068.html From: Johannes Obermayr To: llvmdev at cs.uiuc.edu Subject: Re: [LLVMdev] [PATCH] llvm-config: Support LLVM_LIBDIR_SUFFIX on CMake build. Date: Tue, 23 Aug 2011 22:31:01 +0200 Message-ID: <1756789.xopMuqWVFC at jobermayr> User-Agent: KMail/4.8 pre (Linux/3.0.2-1-desktop; KDE/4.7.41; x86_64; ; ) In-Reply-To: References: <1471500.jJZEM6TCal at jobermayr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart3406760.QRvOM4eNH8" Content-Transfer-Encoding: 7Bit --nextPart3406760.QRvOM4eNH8 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" --------------------------------------------------- From: Johannes Obermayr To: llvmdev at cs.uiuc.edu, cfe-dev at cs.uiuc.edu Cc: Chandler Carruth Subject: Re: [PATCH] llvm-config,clang: Support for LLVM_LIBDIR_SUFFIX. Date: Wed, 24 Aug 2011 10:53:06 +0200 Message-ID: <2792457.EhriF2R5QN at jobermayr> User-Agent: KMail/4.8 pre (Linux/3.0.2-1-desktop; KDE/4.7.41; x86_64; ; ) In-Reply-To: References: <1471500.jJZEM6TCal at jobermayr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart3778642.XZtxV5PQCI" Content-Transfer-Encoding: 7Bit --nextPart3778642.XZtxV5PQCI Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 2 10:50:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 10:50:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 10837] New: Warn when assigning null character to pointer Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10837 Summary: Warn when assigning null character to pointer Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: akyrtzi at gmail.com CC: llvmbugs at cs.uiuc.edu void f() { char *p; p = '\0'; // warn here } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 2 13:04:51 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 13:04:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 10702] [x86 disassembler] crc32 not disassembled correctly In-Reply-To: References: Message-ID: <20110902180451.487042A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10702 Kevin Enderby changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #4 from Kevin Enderby 2011-09-02 13:04:50 CDT --- Fix the disassembly of the X86 "crc32w %ax, %eax" instruction in r139014. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 2 15:13:07 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 15:13:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 10838] New: [AVX] movmsk on undef value hits assert in X86 isel: (TLI.isTypeLegal(Op.getValueType()) && "Intrinsic uses a non-legal type?"), function visitTargetIntrinsic, file SelectionDAGBuilder.cpp, line 3482. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10838 Summary: [AVX] movmsk on undef value hits assert in X86 isel: (TLI.isTypeLegal(Op.getValueType()) && "Intrinsic uses a non-legal type?"), function visitTargetIntrinsic, file SelectionDAGBuilder.cpp, line 3482. 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: matt at pharr.org CC: llvmbugs at cs.uiuc.edu If I run llc on the attached. (On a Mac with a Sandybridge CPU): % llc bugpoint-reduced-simplified.ll -o - The following assertion hits Assertion failed: (TLI.isTypeLegal(Op.getValueType()) && "Intrinsic uses a non-legal type?"), function visitTargetIntrinsic, file SelectionDAGBuilder.cpp, line 3482. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 2 15:27:16 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 15:27:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 10838] [AVX] movmsk on undef value hits assert in X86 isel: (TLI.isTypeLegal(Op.getValueType()) && "Intrinsic uses a non-legal type?"), function visitTargetIntrinsic, file SelectionDAGBuilder.cpp, line 3482. In-Reply-To: References: Message-ID: <20110902202716.B0EEE2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10838 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #3 from Bruno Cardoso Lopes 2011-09-02 15:27:16 CDT --- What's happening here is that you're trying to codegen a 256-bit intrinsic without using -mattr=+avx, it works if you specify the flag! :D -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 2 15:29:48 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 15:29:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 6978] lit should not unset CCACHE_DIR In-Reply-To: References: Message-ID: <20110902202948.81BB42A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6978 Elias Pipping changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Elias Pipping 2011-09-02 15:29:47 CDT --- This doesn't seem to be a problem 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 Fri Sep 2 15:31:38 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 15:31:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 10839] New: Weird accepts-invalid with operator as field (?) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10839 Summary: Weird accepts-invalid with operator as field (?) Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: struct A { operator int; }; Somehow, we actually accept this... -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 2 15:41:46 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 15:41:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 10840] New: [AVX] encoding issue with roundss instruction? Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10840 Summary: [AVX] encoding issue with roundss instruction? 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: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7203) --> (http://llvm.org/bugs/attachment.cgi?id=7203) test case If I run llvm-objdump -disassemble on the object file generated by running the attached test case through llc -filetype=obj, I get errors about invalid instruction encoding. Specifically, if I run "llc -mattr=+avx bug.ll -o -", there is this instruction sequence toward the end: vmulss LCPI0_1(%rip), %xmm1, %xmm2 vroundss $9, %xmm2, %xmm2, %xmm2 vcvttss2si %xmm2, %edx andl $3, %edx However, if I run "llc -mattr=+avx -filetype=obj bug.ll -o - | llvm-objdump - -disassemble", then the output for the corresponding part is: 160: c5 f2 59 15 bc 00 00 00 vmulss 188(%rip), %xmm1, %xmm2 llvm-objdump: warning: invalid instruction encoding 16c: d2 09 rorb %cl, (%rcx) 16e: c5 fa 2c d2 vcvttss2si %xmm2, %edx 172: 83 e2 03 andl $3, %edx So either the wrong encoding is being generated when making object files, or llvm-objdump doesn't know about this instruction. (I hope it's the former, since I'm seeing crashes when running the generated 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 Sep 2 16:13:27 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 16:13:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 10841] New: [AVX] crash due to aligned move being used for register spill with 48 byte offset from %rbp Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10841 Summary: [AVX] crash due to aligned move being used for register spill with 48 byte offset from %rbp 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: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7204) --> (http://llvm.org/bugs/attachment.cgi?id=7204) test case (I am not an x86 expert, so my diagnosis may be wrong. But I'm pretty sure it's right.) With the attached test case, the first few instructions generated for f_fu are: _f_fu: ## @f_fu ## BB#0: ## %allocas pushq %rbp movq %rsp, %rbp subq $304, %rsp ## imm = 0x130 vmovups (%rsi), %ymm1 vmovaps %ymm1, -48(%rbp) Note that in the last instruction, it's using an aligned move but with an offset of 48 from %rbp. Thus, even if %rbp is 32-byte aligned, -48(%rbp) isn't and thence a crash due to a misaligned address. (And as it turns out, if I try to run the compiled code, I get a crash at just that 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 Sep 2 16:25:36 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 16:25:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 10842] New: [AVX, llc] Assertion failed: (Bits != 0 && "Cannot print this instruction."), function printInstruction Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10842 Summary: [AVX,llc] Assertion failed: (Bits != 0 && "Cannot print this instruction."), function printInstruction 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: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7205) --> (http://llvm.org/bugs/attachment.cgi?id=7205) test case With the attached, I'm seeing the following crash. Note that if -O0 is not specified, there is no crash (so presumably the trigger is being optimized out.) % llc -O0 -mattr=+avx bugpoint-reduced-simplified.ll -o /dev/null Assertion failed: (Bits != 0 && "Cannot print this instruction."), function printInstruction, file /Users/mmp/llvm-dev-src/lib/Target/X86/InstPrinter/../X86GenAsmWriter.inc, line 3995. 0 llc 0x0000000100bd0082 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6504 1 llc 0x0000000100bd0689 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 8047 2 libsystem_c.dylib 0x00007fff885e8cfa _sigtramp + 26 3 libsystem_c.dylib 0x00007fff60150820 _sigtramp + 18446744073033644864 4 llc 0x0000000100bcffe6 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6348 5 llc 0x0000000100bd0038 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6430 6 llc 0x0000000100a7a62c llvm::MCRegisterInfo::~MCRegisterInfo() + 3584 7 llc 0x0000000100a7b822 llvm::MCRegisterInfo::~MCRegisterInfo() + 8182 8 llc 0x0000000100b6950c llvm::ELFObjectWriter::String64(llvm::MCDataFragment&, unsigned long long) + 20734 9 llc 0x00000001006517fb llvm::X86JITInfo::~X86JITInfo() + 15751 10 llc 0x0000000100805231 llvm::TargetSelectionDAGInfo::EmitTargetCodeForMemset(llvm::SelectionDAG&, llvm::DebugLoc, llvm::SDValue, llvm::SDValue, llvm::SDValue, llvm::SDValue, unsigned int, bool, llvm::MachinePointerInfo) const + 27537 11 llc 0x00000001005a7977 llvm::df_iterator, true, llvm::GraphTraits >::toNext() + 561 12 llc 0x00000001008af284 llvm::MachineFunctionAnalysis::getPassName() const + 458 13 llc 0x0000000100b3713d llvm::cl::parser::~parser() + 26675 14 llc 0x0000000100b326db llvm::cl::parser::~parser() + 7633 15 llc 0x0000000100b36e3a llvm::cl::parser::~parser() + 25904 16 llc 0x0000000100b38251 llvm::cl::parser::~parser() + 31047 17 llc 0x0000000100b382d1 llvm::cl::parser::~parser() + 31175 18 llc 0x0000000100554273 19 llc 0x0000000100552b34 Stack dump: 0. Program arguments: llc -O0 -mattr=+avx bugpoint-reduced-simplified.ll -o /dev/null 1. Running pass 'Function Pass Manager' on module 'bugpoint-reduced-simplified.ll'. 2. Running pass 'X86 AT&T-Style Assembly Printer' on function '@f_fu' [1] 48762 illegal hardware instruction llc -O0 -mattr=+avx bugpoint-reduced-simplified.ll -o /dev/null -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 2 16:29:18 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 16:29:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 10843] New: [AVX] Assertion failed: (Reg >= X86::FP0 && Reg <= X86::FP6 && "Expected FP register!"), function getFPReg Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10843 Summary: [AVX] Assertion failed: (Reg >= X86::FP0 && Reg <= X86::FP6 && "Expected FP register!"), function getFPReg 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: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7206) --> (http://llvm.org/bugs/attachment.cgi?id=7206) test case With the attached and top-of-tree, I'm seeing the following crash: % llc -O0 -mattr=+avx bug.bc -o /dev/null Assertion failed: (Reg >= X86::FP0 && Reg <= X86::FP6 && "Expected FP register!"), function getFPReg, file X86FloatingPoint.cpp, line 331. 0 llc 0x0000000105f39082 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6504 1 llc 0x0000000105f39689 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 8047 2 libsystem_c.dylib 0x00007fff885e8cfa _sigtramp + 26 3 libsystem_c.dylib 0x00000001062a2258 _sigtramp + 18446603342626657656 4 llc 0x0000000105f38fe6 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6348 5 llc 0x0000000105f39038 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6430 6 llc 0x0000000105932af2 llvm::EVT::getPow2VectorType(llvm::LLVMContext&) const + 22834 7 llc 0x0000000105933117 llvm::EVT::getPow2VectorType(llvm::LLVMContext&) const + 24407 8 llc 0x0000000105c18284 llvm::MachineFunctionAnalysis::getPassName() const + 458 9 llc 0x0000000105ea013d llvm::cl::parser::~parser() + 26675 10 llc 0x0000000105e9b6db llvm::cl::parser::~parser() + 7633 11 llc 0x0000000105e9fe3a llvm::cl::parser::~parser() + 25904 12 llc 0x0000000105ea1251 llvm::cl::parser::~parser() + 31047 13 llc 0x0000000105ea12d1 llvm::cl::parser::~parser() + 31175 14 llc 0x00000001058bd273 15 llc 0x00000001058bbb34 16 llc 0x0000000000000006 Stack dump: 0. Program arguments: llc -O0 -mattr=+avx bug.bc -o /dev/null 1. Running pass 'Function Pass Manager' on module 'bug.bc'. 2. Running pass 'X86 FP Stackifier' on function '@"f_fu___REFUf[]REFUf[]Uf"' [1] 48775 illegal hardware instruction llc -O0 -mattr=+avx bug.bc -o /dev/null Note that this is the same assertion that is hitting in http://llvm.org/bugs/show_bug.cgi?id=10498, though there it's only when all of the SSE feature bits are disabled, but here I'm seeing it with a regular AVX target... -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 2 16:32:55 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 16:32:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 10844] New: [AVX] Cannot select: v8f32 = X86ISD::VZEXT_MOVL Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10844 Summary: [AVX] Cannot select: v8f32 = X86ISD::VZEXT_MOVL 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: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7207) --> (http://llvm.org/bugs/attachment.cgi?id=7207) test case With the attached test case, I'm seeing the following crash: % llc -O0 bug.bc -filetype=obj -o x.o -mattr=+avx LLVM ERROR: Cannot select: 0x7fd50907a310: v8f32 = X86ISD::VZEXT_MOVL 0x7fd50907ab10 [ID=96] 0x7fd50907ab10: v8f32 = insert_subvector 0x7fd50907aa10, 0x7fd50907a910, 0x7fd50902f410 [ID=91] 0x7fd50907aa10: v8f32 = undef [ID=35] 0x7fd50907a910: v4f32 = scalar_to_vector 0x7fd509029e10 [ID=85] 0x7fd509029e10: f32,ch = load 0x10dfe7bd8, 0x7fd509027d10, 0x7fd50902ed10 [ID=75] 0x7fd509027d10: i64 = X86ISD::WrapperRIP 0x7fd509028010 [ID=50] 0x7fd509028010: i64 = TargetConstantPool 0 [ID=27] 0x7fd50902ed10: i64 = undef [ORD=181] [ID=3] 0x7fd50902f410: i32 = Constant<0> [ORD=185] [ID=8] (If I try to reduce it to a simpler test case with bugpoint, then it ends up reducing it to something that hits 10842 or 10843.) -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 2 16:39:37 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 16:39:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 10845] New: [AVX] x86 isel hits assert: (false && "Couldn't find the register class"), function getSuperRegisterRegClass Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10845 Summary: [AVX] x86 isel hits assert: (false && "Couldn't find the register class"), function getSuperRegisterRegClass 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: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7208) --> (http://llvm.org/bugs/attachment.cgi?id=7208) test case With the attached, I'm seeing the following crash. (Sorry the test case isn't smaller; here also bugpoint reduces it to a different crash. Also, without -O0, the crash doesn't happen.) % llc -O0 -mattr=+avx bug.ll -o /dev/null Assertion failed: (false && "Couldn't find the register class"), function getSuperRegisterRegClass, file InstrEmitter.cpp, line 403. 0 llc 0x0000000107dc6082 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6504 1 llc 0x0000000107dc6689 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 8047 2 libsystem_c.dylib 0x00007fff885e8cfa _sigtramp + 26 3 libsystem_c.dylib 0x00000001082e2b40 _sigtramp + 18446603342660476512 4 llc 0x0000000107dc5fe6 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6348 5 llc 0x0000000107dc6038 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6430 6 llc 0x00000001078b9ebb llvm::MachineModuleInfo::setVariableDbgInfo(llvm::MDNode*, unsigned int, llvm::DebugLoc) + 10689 7 llc 0x00000001078bb57b llvm::MachineModuleInfo::setVariableDbgInfo(llvm::MDNode*, unsigned int, llvm::DebugLoc) + 16513 8 llc 0x0000000107953a0a llvm::DenseMap, llvm::DenseMapInfo, llvm::DenseMapInfo > >::FindAndConstruct(llvm::SUnit* const&) + 2468 9 llc 0x00000001079cd8b3 llvm::SelectionDAGBuilder::Case::size() const + 36623 10 llc 0x00000001079cee52 llvm::SelectionDAGBuilder::Case::size() const + 42158 11 llc 0x00000001079cfabb llvm::SelectionDAGBuilder::Case::size() const + 45335 12 llc 0x0000000107aa5284 llvm::MachineFunctionAnalysis::getPassName() const + 458 13 llc 0x0000000107d2d13d llvm::cl::parser::~parser() + 26675 14 llc 0x0000000107d286db llvm::cl::parser::~parser() + 7633 15 llc 0x0000000107d2ce3a llvm::cl::parser::~parser() + 25904 16 llc 0x0000000107d2e251 llvm::cl::parser::~parser() + 31047 17 llc 0x0000000107d2e2d1 llvm::cl::parser::~parser() + 31175 18 llc 0x000000010774a273 19 llc 0x0000000107748b34 20 llc 0x0000000000000006 Stack dump: 0. Program arguments: llc -O0 -mattr=+avx bug.ll -o /dev/null 1. Running pass 'Function Pass Manager' on module 'bug.ll'. 2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@"f_fu___REFUf[]REFUf[]Uf"' [1] 49022 illegal hardware instruction llc -O0 -mattr=+avx bug.ll -o /dev/null -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 2 16:47:09 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 16:47:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 10846] New: [AVX] Cannot select i64 = bitcast Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10846 Summary: [AVX] Cannot select i64 = bitcast 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: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7209) --> (http://llvm.org/bugs/attachment.cgi?id=7209) test case With the attached, I get the following crash: % llc -O0 -mattr=+avx bug.bc LLVM ERROR: Cannot select: 0x7fbbf3050410: i64 = bitcast 0x7fbbf3056410 [ORD=318] [ID=29] 0x7fbbf3056410: f64,ch = load 0x7fbbf304fb10, 0x7fbbf3061210, 0x7fbbf304f310 [ORD=317] [ID=28] 0x7fbbf3061210: i64 = FrameIndex<57> [ORD=310] [ID=10] 0x7fbbf304f310: i64 = undef [ORD=301] [ID=3] -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 2 17:02:49 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 17:02:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 10847] New: precompiled header broken with c++0x (issue with rvalue ?) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10847 Summary: precompiled header broken with c++0x (issue with rvalue ?) Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: devlists at shadowlab.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=7210) --> (http://llvm.org/bugs/attachment.cgi?id=7210) Sample While trying to compile a c++0x file using precompiled header, clang failed with some error diagnostics that does not appear without precompiled header. This bug occurs when trying to used precompiled libc++ headers for instance (either trunk or Xcode 4.1 libc++ version). And as it is a precompiled header bug, it's not easy to write a simple reduced test case. To reproduce the bug, you can use the attached sample. Uncompress the archive. cd to the created directory. launch test.sh By default, the test.sh script will try to use the system libc++, but you can use the attached preprocessed version instead by toggling commented lines in the script. $tar -xf bug.tbz $cd bug $bash test.sh # Compile without precompiled header. Works fine clang++ -std=c++0x -stdlib=libc++ -include include/map.h -c map.cpp # Precompile header # toggle between the 2 following line to use either the system libc++ (first line) # or the included preprocessed libc++ header file. clang++ -x c++-header -std=c++0x -stdlib=libc++ include/map.h -o map.h.pth # clang++ -v -x c++-header -std=c++0x include/libc++.ii -o map.h.pth # Compile using precompiled header clang++ -std=c++0x -stdlib=libc++ -include map.h -c map.cpp In file included from map.cpp:1: In file included from Desktop/bug/include/map.h:2: In file included from llvm/release/Release+Asserts/bin/../lib/c++/v1/unordered_map:318: In file included from llvm/release/Release+Asserts/bin/../lib/c++/v1/__hash_table:16: llvm/release/Release+Asserts/bin/../lib/c++/v1/memory:1469:26: error: call to constructor of 'true_type' (aka 'integral_constant') is ambiguous {__construct(__has_construct(), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ llvm/release/Release+Asserts/bin/../lib/c++/v1/unordered_map:1066:20: note: in instantiation of function template specialization 'std::__1::allocator_traits, void *> > >::construct' requested here __node_traits::construct(__na, _VSTD::addressof(__h->__value_.first), ^ llvm/release/Release+Asserts/bin/../lib/c++/v1/unordered_map:1146:25: note: in instantiation of function template specialization 'std::__1::unordered_map, std::__1::equal_to, std::__1::allocator > >::__construct_node' requested here __node_holder __h = __construct_node(__k); ^ map.cpp:7:17: note: in instantiation of member function 'std::__1::unordered_map, std::__1::equal_to, std::__1::allocator > >::operator[]' requested here sAllClassesDict[name] = NULL; ^ llvm/release/Release+Asserts/bin/../lib/c++/v1/type_traits:161:24: note: candidate is the implicit move constructor struct _LIBCPP_VISIBLE integral_constant ^ llvm/release/Release+Asserts/bin/../lib/c++/v1/type_traits:161:24: note: candidate is the implicit move constructor llvm/release/Release+Asserts/bin/../lib/c++/v1/type_traits:161:24: note: candidate is the implicit copy constructor llvm/release/Release+Asserts/bin/../lib/c++/v1/memory:1530:42: note: passing argument to parameter here static void __construct(true_type, allocator_type& __a, _Tp* __p, _Args&&... __args) ^ llvm/release/Release+Asserts/bin/../lib/c++/v1/memory:1469:26: error: call to constructor of 'true_type' (aka 'integral_constant') is ambiguous {__construct(__has_construct(), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ llvm/release/Release+Asserts/bin/../lib/c++/v1/unordered_map:1069:20: note: in instantiation of function template specialization 'std::__1::allocator_traits, void *> > >::construct' requested here __node_traits::construct(__na, _VSTD::addressof(__h->__value_.second), ^ llvm/release/Release+Asserts/bin/../lib/c++/v1/unordered_map:1146:25: note: in instantiation of function template specialization 'std::__1::unordered_map, std::__1::equal_to, std::__1::allocator > >::__construct_node' requested here __node_holder __h = __construct_node(__k); ^ map.cpp:7:17: note: in instantiation of member function 'std::__1::unordered_map, std::__1::equal_to, std::__1::allocator > >::operator[]' requested here sAllClassesDict[name] = NULL; ^ llvm/release/Release+Asserts/bin/../lib/c++/v1/type_traits:161:24: note: candidate is the implicit move constructor struct _LIBCPP_VISIBLE integral_constant ^ llvm/release/Release+Asserts/bin/../lib/c++/v1/type_traits:161:24: note: candidate is the implicit move constructor llvm/release/Release+Asserts/bin/../lib/c++/v1/type_traits:161:24: note: candidate is the implicit copy constructor llvm/release/Release+Asserts/bin/../lib/c++/v1/memory:1530:42: note: passing argument to parameter here static void __construct(true_type, allocator_type& __a, _Tp* __p, _Args&&... __args) ^ In file included from map.cpp:1: In file included from Desktop/bug/include/map.h:2: In file included from llvm/release/Release+Asserts/bin/../lib/c++/v1/unordered_map:318: In file included from llvm/release/Release+Asserts/bin/../lib/c++/v1/__hash_table:18: llvm/release/Release+Asserts/bin/../lib/c++/v1/algorithm:2296:33: error: call to constructor of 'std::__1::__less' is ambiguous return _VSTD::max(__a, __b, __less<_Tp>()); ^~~~~~~~~~~~~ llvm/release/Release+Asserts/bin/../lib/c++/v1/__hash_table:1204:20: note: in instantiation of function template specialization 'std::__1::max' requested here rehash(_VSTD::max(2 * __bc + 1, ^ llvm/release/Release+Asserts/bin/../lib/c++/v1/__config:178:15: note: expanded from: #define _VSTD std::_LIBCPP_NAMESPACE ^ llvm/release/Release+Asserts/bin/../lib/c++/v1/unordered_map:1147:41: note: in instantiation of member function 'std::__1::__hash_table, std::__1::__unordered_map_hasher, std::__1::hash, true>, std::__1::__unordered_map_equal, std::__1::equal_to, true>, std::__1::allocator > >::__node_insert_unique' requested here pair __r = __table_.__node_insert_unique(__h.get()); ^ map.cpp:7:17: note: in instantiation of member function 'std::__1::unordered_map, std::__1::equal_to, std::__1::allocator > >::operator[]' requested here sAllClassesDict[name] = NULL; ^ llvm/release/Release+Asserts/bin/../lib/c++/v1/algorithm:632:8: note: candidate is the implicit move constructor struct __less ^ llvm/release/Release+Asserts/bin/../lib/c++/v1/algorithm:632:8: note: candidate is the implicit move constructor llvm/release/Release+Asserts/bin/../lib/c++/v1/algorithm:632:8: note: candidate is the implicit copy constructor llvm/release/Release+Asserts/bin/../lib/c++/v1/algorithm:2286:46: note: passing argument to parameter '__comp' here max(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ 3 errors generated. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 2 17:20:38 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 17:20:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 10848] New: [x86 disassembler] vmovdqa not disassembled Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10848 Summary: [x86 disassembler] vmovdqa not disassembled Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: kkhoo at perfwizard.com CC: llvmbugs at cs.uiuc.edu >From the "Intel? 64 and IA-32 Architectures Software Developer?s Manual Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 3-671: VEX.128.66.0F.WIG 6F /r VMOVDQA xmm1, xmm2/m128 VEX.128.66.0F.WIG 7F /r VMOVDQA xmm2/m128, xmm1 Clang on OSX assembles the following: vmovdqa (%rcx), %xmm0 vmovdqa %xmm0, (%rcx) to these bytes: C5 F9 6F 01 C5 F9 7F 01 But using llvm-mc built from trunk r139013, this byte sequence doesn't disassemble as expected: $ echo '0xc5 0xf9 0x6f 0x01'| ./llvm-mc -disassemble -triple="x86_64" :1:1: warning: invalid instruction encoding 0xc5 0xf9 0x6f 0x01 $ echo '0xc5 0xf9 0x7f 0x01'| ./llvm-mc -disassemble -triple="x86_64" :1:1: warning: invalid instruction encoding 0xc5 0xf9 0x7f 0x01 ^ -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 2 17:41:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 17:41:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 10849] New: Failed assertion: `!SpecializedTemplate.is() && "Already set to a class template partial specialization!"' Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10849 Summary: Failed assertion: `!SpecializedTemplate.is() && "Already set to a class template partial specialization!"' Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pipping at exherbo.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=7211) --> (http://llvm.org/bugs/attachment.cgi?id=7211) delta-reduced input (not valid code but manages to make clang++ crash) % clang++ -c spec_tree-sRt9vh.ii spec_tree-sRt9vh.ii:1:19: warning: variadic templates are a C++0x extension [-Wc++0x-extensions] template ^ spec_tree-sRt9vh.ii:10:18: error: implicit instantiation of undefined template 'MakeTypeList' typedef SpecTree::Type> LicenseSpecTree; ^ spec_tree-sRt9vh.ii:5:8: note: template is declared here struct MakeTypeList; ^ clang: /var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/lib/Sema/../../include/clang/AST/DeclTemplate.h:1482: void clang::ClassTemplateSpecializationDecl::setInstantiationOf(clang::ClassTemplatePartialSpecializationDecl*, clang::TemplateArgumentList*): Assertion `!SpecializedTemplate.is() && "Already set to a class template partial specialization!"' failed. 0 libLLVM-3.0svn.so 0x00007fd53204d6af 1 libLLVM-3.0svn.so 0x00007fd53204de10 2 libpthread.so.0 0x00007fd531016f10 3 libc.so.6 0x00007fd5303355c5 gsignal + 53 4 libc.so.6 0x00007fd5303368c5 abort + 389 5 libc.so.6 0x00007fd53032e235 __assert_fail + 245 6 clang 0x0000000000aab5c0 clang::ClassTemplateSpecializationDecl::setInstantiationOf(clang::ClassTemplatePartialSpecializationDecl*, clang::TemplateArgumentList*) + 68 7 clang 0x0000000000a99556 clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation, clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind, bool) + 2760 8 clang 0x0000000000ad2781 clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType, clang::PartialDiagnostic const&, std::pair) + 327 9 clang 0x0000000000ad3e43 clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType, clang::PartialDiagnostic const&) + 53 10 clang 0x00000000008755ce clang::Sema::RequireCompleteDeclContext(clang::CXXScopeSpec&, clang::DeclContext*) + 638 11 clang 0x00000000008d17fc clang::Sema::getTypeName(clang::IdentifierInfo&, clang::SourceLocation, clang::Scope*, clang::CXXScopeSpec*, bool, bool, clang::OpaquePtr, bool) + 422 12 clang 0x0000000000801b81 clang::Parser::TryAnnotateTypeOrScopeToken(bool) + 1857 13 clang 0x00000000007f412d clang::Parser::isCXXDeclarationSpecifier() + 311 14 clang 0x00000000007f6b36 clang::Parser::isCXXTypeId(clang::Parser::TentativeCXXTypeIdContext, bool&) + 46 15 clang 0x00000000007f0140 clang::Parser::ParseTemplateArgument() + 32 16 clang 0x00000000007f225d clang::Parser::ParseTemplateArgumentList(llvm::SmallVector&) + 65 17 clang 0x00000000007f2650 clang::Parser::ParseTemplateIdAfterTemplateName(clang::OpaquePtr, clang::SourceLocation, clang::CXXScopeSpec const&, bool, clang::SourceLocation&, llvm::SmallVector&, clang::SourceLocation&) + 316 18 clang 0x00000000007f2e5f clang::Parser::AnnotateTemplateIdToken(clang::OpaquePtr, clang::TemplateNameKind, clang::CXXScopeSpec&, clang::UnqualifiedId&, clang::SourceLocation, bool) + 249 19 clang 0x000000000083e02d clang::Parser::ParseOptionalCXXScopeSpecifier(clang::CXXScopeSpec&, clang::OpaquePtr, bool, bool*, bool) + 6985 20 clang 0x00000000008291a3 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 1129 21 clang 0x00000000008174a8 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 5786 22 clang 0x00000000007ebf75 clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::AccessSpecifier) + 889 23 clang 0x00000000007f09a1 clang::Parser::ParseExplicitInstantiation(clang::SourceLocation, clang::SourceLocation, clang::SourceLocation&) + 91 24 clang 0x00000000007f0cc3 clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 765 25 clang 0x000000000081809f clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 191 26 clang 0x00000000007ff8c0 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 1684 27 clang 0x000000000080037f clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 253 28 clang 0x00000000007d2c10 clang::ParseAST(clang::Sema&, bool) + 308 29 clang 0x0000000000593c74 clang::ASTFrontendAction::ExecuteAction() + 200 30 clang 0x0000000000689d89 clang::CodeGenAction::ExecuteAction() + 2691 31 clang 0x0000000000594213 clang::FrontendAction::Execute() + 389 32 clang 0x0000000000581420 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 868 33 clang 0x00000000005680bd clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3805 34 clang 0x000000000055eede cc1_main(char const**, char const**, char const*, void*) + 7074 35 clang 0x0000000000565068 main + 751 36 libc.so.6 0x00007fd530321c7d __libc_start_main + 253 37 clang 0x000000000055d169 Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name spec_tree-sRt9vh.ii -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.1 -momit-leaf-frame-pointer -coverage-file spec_tree-sRt9vh.o -resource-dir /usr/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length 238 -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o spec_tree-sRt9vh.o -x c++-cpp-output spec_tree-sRt9vh.ii 1. spec_tree-sRt9vh.ii:13:35: current parser token 'Type' clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs. % -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 2 17:47:02 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 17:47:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 10850] New: llvm-as crash on file that uses libc++'s hash Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10850 Summary: llvm-as crash on file that uses libc++'s hash Product: tools Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: llvm-as AssignedTo: unassignedbugs at nondot.org ReportedBy: alonzakai at gmail.com CC: llvmbugs at cs.uiuc.edu The attachment is a tiny program using libc++'s hash implementation. It crashes when processed with llvm-as src.cpp.o.ll.pre -o=src.cpp.o A debug build gives this stack: Program received signal SIGSEGV, Segmentation fault. 0x080585fe in llvm::Value::getType (this=0x0) at /home/alon/Dev/llvm-svn/include/llvm/Value.h:108 108 Type *getType() const { return VTy; } (gdb) where #0 0x080585fe in llvm::Value::getType (this=0x0) at /home/alon/Dev/llvm-svn/include/llvm/Value.h:108 #1 0x08133dc9 in LoadInst (this=0x82999c4, Ptr=0x0, Name=0x0, isVolatile=false, InsertBef=0x0) at /home/alon/Dev/llvm-svn/lib/VMCore/Instructions.cpp:1027 #2 0x080b894e in llvm::IRBuilder >::CreateLoad (this=0xbfffec60, Ptr=0x0, Name=0x821bf94 "exn") at /home/alon/Dev/llvm-svn/include/llvm/Support/IRBuilder.h:754 #3 0x080b6c73 in llvm::UpgradeExceptionHandling (M=0x827abb0) at /home/alon/Dev/llvm-svn/lib/VMCore/AutoUpgrade.cpp:518 #4 0x0807b825 in llvm::LLParser::ValidateEndOfModule (this=0xbffff0bc) at /home/alon/Dev/llvm-svn/lib/AsmParser/LLParser.cpp:124 #5 0x0807ad72 in llvm::LLParser::Run (this=0xbffff0bc) at /home/alon/Dev/llvm-svn/lib/AsmParser/LLParser.cpp:42 #6 0x08072bb1 in llvm::ParseAssembly (F=0x827ab80, M=0x0, Err=..., Context=...) at /home/alon/Dev/llvm-svn/lib/AsmParser/Parser.cpp:38 #7 0x08072d1f in llvm::ParseAssemblyFile (Filename=..., Err=..., Context=...) at /home/alon/Dev/llvm-svn/lib/AsmParser/Parser.cpp:52 #8 0x0804c7b3 in main (argc=3, argv=0xbffff484) at /home/alon/Dev/llvm-svn/tools/llvm-as/llvm-as.cpp:97 (gdb) This is on latest LLVM svn. This appears to be a regression since the same automatic test (in the emscripten test suite) worked on 2.9. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 2 18:41:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 18:41:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 10851] New: [x86 disassembler] vmovmskpd disassembled when reserved bits not set Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10851 Summary: [x86 disassembler] vmovmskpd disassembled when reserved bits not set Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: kkhoo at perfwizard.com CC: llvmbugs at cs.uiuc.edu >From the "Intel? 64 and IA-32 Architectures Software Developer?s Manual Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 3-691: VEX.128.66.0F.WIG 50 /r VMOVMSKPD reg, xmm2 VEX.256.66.0F.WIG 50 /r VMOVMSKPD reg, ymm2 Note: In VEX-encoded versions, VEX.vvvv is reserved and must be 1111b, otherwise instructions will #UD. Clang on OSX assembles the following: vmovmskpd %xmm0, %eax to these bytes: C5 F9 50 C0 But using llvm-mc built from trunk r139013, this byte sequence disassembles even though the VEX.vvvv field is not 1111b (it's 0000b): $ echo '0xc5 0x81 0x50 0xc0'| ./llvm-mc -disassemble -triple="x86_64" vmovmskpd %xmm0, %eax The 3-byte VEX prefix form is also incorrect: $ echo '0xc4 0xe1 0x81 0x50 0xc0'| ./llvm-mc -disassemble -triple="x86_64" vmovmskpd %xmm0, %eax -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 2 19:22:06 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 19:22:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 7597] Crash creating object without defined constructor. In-Reply-To: References: Message-ID: <20110903002206.A1A422A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7597 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #3 from Eli Friedman 2011-09-02 19:22:05 CDT --- Elias, the problem you're reporting is very unlikely to be the same issue; please file a new bug (and mention rvalue references in the title). Closing this bug due to lack of response from the original reporter. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 2 20:30:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 20:30:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 10852] New: ARM llc assertion Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10852 Summary: ARM llc assertion Product: tools Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: llc AssignedTo: unassignedbugs at nondot.org ReportedBy: pdox at google.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7214) --> (http://llvm.org/bugs/attachment.cgi?id=7214) minimal example llc: llvm/lib/CodeGen/RegisterScavenging.cpp:215: void llvm::RegScavenger::forward(): Assertion `SubUsed && "Using an undefined register!"' failed. Attached is a minimal example (minimal.ll), emitted by bugpoint. Compile with: $ llc minimal.ll -march=arm -mcpu=cortex-a8 -mtriple=armv7a-none-linux-gnueabi The assertion started happening at r138791. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 2 20:38:27 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 2 Sep 2011 20:38:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 10850] llvm-as crash on file that uses libc++'s hash In-Reply-To: References: Message-ID: <20110903013827.B6EE12A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10850 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Bill Wendling 2011-09-02 20:38:27 CDT --- Fixed r139076 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 3 01:23:07 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 3 Sep 2011 01:23:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 10702] [x86 disassembler] crc32 not disassembled correctly In-Reply-To: References: Message-ID: <20110903062307.9A4902A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10702 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #5 from Craig Topper 2011-09-03 01:23:07 CDT --- But now this doesn't decode correctly 0xf2 0x0f 0x38 0xf1 0xc0 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Sep 3 09:20:04 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 3 Sep 2011 09:20:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 10813] Assertion "getOperand() out of range" hits in Constants.h In-Reply-To: References: Message-ID: <20110903142004.4C8502A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10813 Jakub Staszak changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |kuba.staszak at gmail.com Resolution| |FIXED --- Comment #1 from Jakub Staszak 2011-09-03 09:20:02 CDT --- Fixed in r139006 with some small changes in the next revs. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 3 10:21:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 3 Sep 2011 10:21:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 10402] Failed assertion: `Rep && "no type provided!"' In-Reply-To: References: Message-ID: <20110903152122.6FC972A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10402 Elias Pipping changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #2 from Elias Pipping 2011-09-03 10:21:21 CDT --- I can no longer reproduce this (current version: clang 3.0-git-fec0959f95454b4241e3060408656e8fbe4ac6c1). -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 3 11:06:25 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 3 Sep 2011 11:06:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 10853] New: [AVX, perf?] suboptimal code generated to set 'all bits on' in ymm register Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10853 Summary: [AVX,perf?] suboptimal code generated to set 'all bits on' in ymm register Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Given: define <8 x i32> @foo() { ret <8 x i32> } The AVX backend generates the code: _foo: ## @foo vpcmpeqd %xmm0, %xmm0, %xmm0 vinsertf128 $1, %xmm0, %ymm0, %ymm0 ret Unless I'm missing something, I think this could be more efficiently done with something like: vcmpeqd %ymm0, %ymm0, %ymm0 (There may be an AVX subtlety that I'm not aware of that prevents this; apologies if so!) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Sep 3 16:29:48 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 3 Sep 2011 16:29:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 10853] [AVX, perf?] suboptimal code generated to set 'all bits on' in ymm register In-Reply-To: References: Message-ID: <20110903212948.C77DD2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10853 Matt Pharr changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Matt Pharr 2011-09-03 16:29:48 CDT --- Yes. I was thinking that a fp compare could used to get an 8-wide register of on bits (I should have had vcmpeqps in the below), but I realize that won't work if there happens to be a NaN value in the ymm register. So marking this as invalid. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Sep 3 22:35:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 3 Sep 2011 22:35:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 10826] Code completion in macro with # operator crashes libclang In-Reply-To: References: Message-ID: <20110904033520.0091D2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10826 Argyrios Kyrtzidis changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Argyrios Kyrtzidis 2011-09-03 22:35:18 CDT --- Fixed at r139087. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 4 07:16:46 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 4 Sep 2011 07:16:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 10854] New: slow upstart of binaries in clang+llvm-2.9-x86_64-linux.tar, due to /home/duncan in search path Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10854 Summary: slow upstart of binaries in clang+llvm-2.9-x86_64-linux.tar, due to /home/duncan in search path Product: new-bugs Version: 2.9 Platform: All OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: patrik.h.hagglund at ericsson.com CC: llvmbugs at cs.uiuc.edu The binaries in http://llvm.org/releases/2.9/clang+llvm-2.9-x86_64-linux.tar.bz2, contains /home/duncan/... in the search path for dynamic libraries. On our Linux servers, this means a start-up penalty of about 1 second: > strace -T clang+llvm-2.9-x86_64-linux.tar/bin/clang --version [...] open("/home/duncan/llvm-2.9/64/Phase2/Release/llvmCore-2.9-release.obj/Release/bin/tls/x86_64/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) <0.131968> stat("/home/duncan/llvm-2.9/64/Phase2/Release/llvmCore-2.9-release.obj/Release/bin/tls/x86_64", 0x7fffbd5d2310) = -1 ENOENT (No such file or directory) <0.131093> open("/home/duncan/llvm-2.9/64/Phase2/Release/llvmCore-2.9-release.obj/Release/bin/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) <0.088312> stat("/home/duncan/llvm-2.9/64/Phase2/Release/llvmCore-2.9-release.obj/Release/bin/tls", 0x7fffbd5d2310) = -1 ENOENT (No such file or directory) <0.134553> open("/home/duncan/llvm-2.9/64/Phase2/Release/llvmCore-2.9-release.obj/Release/bin/x86_64/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) <0.132172> stat("/home/duncan/llvm-2.9/64/Phase2/Release/llvmCore-2.9-release.obj/Release/bin/x86_64", 0x7fffbd5d2310) = -1 ENOENT (No such file or directory) <0.130809> open("/home/duncan/llvm-2.9/64/Phase2/Release/llvmCore-2.9-release.obj/Release/bin/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) <0.132083> stat("/home/duncan/llvm-2.9/64/Phase2/Release/llvmCore-2.9-release.obj/Release/bin", 0x7fffbd5d2310) = -1 ENOENT (No such file or directory) <0.133924> (Maybe due to a huge number of /home directories, and therefore a slow response from the automounter?) Please remove the search path /home/duncan/... from binaries (in future 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 Sun Sep 4 08:27:41 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 4 Sep 2011 08:27:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 10855] New: llc miscompiles negation of long long (ARM) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10855 Summary: llc miscompiles negation of long long (ARM) Product: tools Version: trunk Platform: PC OS/Version: All Status: NEW Severity: release blocker Priority: P Component: llc AssignedTo: unassignedbugs at nondot.org ReportedBy: pdox at google.com CC: llvmbugs at cs.uiuc.edu This bug started happening at revision 138791. Compile this bitcode for ARM: target triple = "armv7-none-linux-gnueabi" define i64 @foo(i64 %x) nounwind readnone { entry: %0 = sub nsw i64 0, %x ret i64 %0 } The resulting code for foo is: rsb r0, r0, #0 rsc r1, r1, #0 bx lr The correct code is: rsbs r0, r0, #0 rsc r1, r1, #0 bx lr (rsc uses the carry bit provided by rsbs) -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 4 09:12:16 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 4 Sep 2011 09:12:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 10856] New: Clang is unable to infer template argument for friend function inside namesapce. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10856 Summary: Clang is unable to infer template argument for friend function inside namesapce. Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: expipiplus1 at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=7215) --> (http://llvm.org/bugs/attachment.cgi?id=7215) A testcase program illustrating the problem. The attached code compiles with gcc 4.6 with -std=c++0x It fails to compile with clang, with -std=c++0x and -stdlib=libc++ Commenting out lines 1, 2, 24 and 26 (removing the use of the namespace) will allow clang to compile the code. Qualifying "operator" on line 15 doesn't fix the error. Clang is unable to compile the code because it's unable to infer the template argument R. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 4 09:52:35 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 4 Sep 2011 09:52:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 10857] New: [AVX] incorrect code generated for simple loop Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10857 Summary: [AVX] incorrect code generated for simple loop Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7216) --> (http://llvm.org/bugs/attachment.cgi?id=7216) llvm asm The attached short test case represents the compilation of the loop: void result(float *p) { for (int i = 0; i < 4; ++i) { p[2*i+1] = (float)(10+i); p[2*i] = (float)(14+i); } } (The llvm asm is simple enough that this should be easy to verify by inspection.) If I compile it using "llc -O0 -mattr=+avx", incorrect assembly is generated; the output of the test program indicates that the even array elements aren't being written to. Correct code is generated with -O2 -mattr=+avx, or if I don't use the AVX backend. Here is the result of disassembling the code generated with -O0, avx. (Intel asm syntax.) Note that the result of the second vcvtsi2ss instruction is never written to memory, which is aligned with the indication from the test that the even elements aren't written to. _result: # Function .type _result, @function mov eax, 0 # 0000 _ B8, 00000000 mov dword ptr [rsp-0x4], eax # 0005 _ 89. 44 24, FC mov qword ptr [rsp-0x10], rdi # 0009 _ 48: 89. 7C 24, F0 $_001: mov eax, dword ptr [rsp-0x4] # 000E _ 8B. 44 24, FC # Note: Immediate operand could be made smaller by sign extension cmp eax, 4 # 0012 _ 3D, 00000004 mov dword ptr [rsp-0x14], eax # 0017 _ 89. 44 24, EC jl $_003 # 001B _ 7C, 11 jmp $_004 # 001D _ EB, 3E $_002: mov eax, dword ptr [rsp-0x14] # 001F _ 8B. 44 24, EC # Note: Immediate operand could be made smaller by sign extension add eax, 1 # 0023 _ 05, 00000001 mov dword ptr [rsp-0x4], eax # 0028 _ 89. 44 24, FC jmp $_001 # 002C _ EB, E0 $_003: mov eax, dword ptr [rsp-0x14] # 002E _ 8B. 44 24, EC mov ecx, dword ptr [rsp-0x14] # 0032 _ 8B. 4C 24, EC lea eax, [rcx+rax+0x1] # 0036 _ 8D. 44 01, 01 lea edx, [rcx+rcx] # 003A _ 8D. 14 09 movsxd rsi, eax # 003D _ 48: 63. F0 lea eax, [rcx+0xA] # 0040 _ 8D. 41, 0A vcvtsi2ss xmm0, xmm0, eax # 0043 _ C5 FA: 2A. C0 mov rdi, qword ptr [rsp-0x10] # 0047 _ 48: 8B. 7C 24, F0 vmovss dword ptr [rdi+rsi*4], xmm0 # 004C _ C5 FA: 11. 04 B7 lea eax, [rcx+0xE] # 0051 _ 8D. 41, 0E vcvtsi2ss xmm0, xmm0, eax # 0054 _ C5 FA: 2A. C0 movsxd rsi, edx # 0058 _ 48: 63. F2 jmp $_002 # 005B _ EB, C2 $_004: ret # 005D _ C3 .size _result, . - _result # End of function is probably 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 Sun Sep 4 13:47:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 4 Sep 2011 13:47:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 10858] New: Optimizer removes call to relevant function Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10858 Summary: Optimizer removes call to relevant function 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: dwelch at dwelch.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7219) --> (http://llvm.org/bugs/attachment.cgi?id=7219) simple source files needed to reproduce this problem See attached. show.c has a function get_onechar that calls uart_getc(). uart_getc() for debugging includes an infinite loop. the call to uart_getc() appears to be optimized completely out and the code continues as if it had never happened. 00000000 : 0: b510 push {r4, lr} 2: 4604 mov r4, r0 4: 20ff movs r0, #255 ; 0xff 6: 4020 ands r0, r4 8: 280a cmp r0, #10 Interestingly I added a function called fun() which also calls uart_getc() and this one appears to have been implemented with a call to uart_putc() 00000022 : 22: b500 push {lr} 24: 4601 mov r1, r0 26: 2007 movs r0, #7 28: 0740 lsls r0, r0, #29 2a: f7ff fffe bl 0 2e: bd00 pop {pc} Without optimization everything looks fine. Tried with both a near trunk (will svn up and try again today) as well as release 2.9 Dont actually need to assemble and disassemble with binutils as the Makefile does, the problem can be seen in the .s file. running ubuntu 10.4LTS 64 bit Linux dwelch-desktop 2.6.32-33-generic #72-Ubuntu SMP Fri Jul 29 21:07:13 UTC 2011 x86_64 GNU/Linux Low Level Virtual Machine (http://llvm.org/): llvm version 3.0svn Optimized build with assertions. Built Aug 31 2011 (22:39:17). Host: x86_64-unknown-linux-gnu Host CPU: amdfam10 llvm# svn info Path: . URL: http://llvm.org/svn/llvm-project/llvm/trunk Repository Root: http://llvm.org/svn/llvm-project Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8 Revision: 138935 Node Kind: directory Schedule: normal Last Changed Author: evancheng Last Changed Rev: 138934 Last Changed Date: 2011-08-31 21:45:00 -0400 (Wed, 31 Aug 2011) llvm/tools/clang# svn info Path: . URL: http://llvm.org/svn/llvm-project/cfe/trunk Repository Root: http://llvm.org/svn/llvm-project Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8 Revision: 138935 Node Kind: directory Schedule: normal Last Changed Author: dgregor Last Changed Rev: 138935 Last Changed Date: 2011-08-31 22:09:07 -0400 (Wed, 31 Aug 2011) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Sep 4 13:51:49 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 4 Sep 2011 13:51:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 10858] Optimizer removes call to relevant function In-Reply-To: References: Message-ID: <20110904185149.9B8962A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10858 Matti Niemenmaa changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Matti Niemenmaa 2011-09-04 13:51:49 CDT --- *** This bug has been marked as a duplicate of bug 965 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 4 15:39:20 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 4 Sep 2011 15:39:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 10458] poor diagnostic when trying to use 'auto' not in '0x mode In-Reply-To: References: Message-ID: <20110904203920.28D692A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10458 Richard Smith changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Richard Smith 2011-09-04 15:39:19 CDT --- r139103 fixes the issue with new-type-ids. For error recovery, we now handle 'auto' well enough to pass the C++0x 'auto' test suite in C++98 mode (apart from the ExtWarn warnings and no error when using 'auto' as a storage class specifier). -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 4 16:12:18 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 4 Sep 2011 16:12:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 10859] New: Macro expansion notes are not colored Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10859 Summary: Macro expansion notes are not colored Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: dblaikie at gmail.com CC: llvmbugs at cs.uiuc.edu Given #define call fob(); void foo(); int main() { call } Compiled as C++, clang's output contains: * an error (no 'fob' function) * a note (pointing to the call macro) * and then another note (suggesting foo instead of fob) Problem: The second note is printed without any highlighting/color (it should be bold and the "note:" portion should be black (shows up as grey)). -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 4 18:56:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 4 Sep 2011 18:56:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 10506] instantiation of '0x for-range statements sloshes together temporaries In-Reply-To: References: Message-ID: <20110904235605.7DA732A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10506 Richard Smith changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |richard-llvm at metafoo.co.uk Resolution| |WORKSFORME --- Comment #1 from Richard Smith 2011-09-04 18:56:04 CDT --- Manual tests indicate that this works fine. I've extended the unit test for temporary cleanups in range-based for to cover the dependent case in r139109. When the range is dependent, the condition and increment expressions aren't built until the template is instantiated. When they're built (by BuildCXXForRangeStmt), ActOnFinishFullExpr is called to clean up the temopraries. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 4 21:15:07 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 4 Sep 2011 21:15:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 10860] New: "Trying to aggregate-copy a type without a trivial copy " "constructor or assignment operator"' failed Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10860 Summary: "Trying to aggregate-copy a type without a trivial copy " "constructor or assignment operator"' failed Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com clang -cc1 -S -std=gnu++0x crashes on struct ElfValue { }; class ElfLocation: public ElfValue { virtual unsigned int getValue(); }; template struct remove_reference; template struct remove_reference<_Tp&> { typedef _Tp type; }; template typename remove_reference<_Tp>::type&& move(_Tp&& __t) { return static_cast::type&&>(__t); } ElfLocation* __old_finish; void foo() { *__old_finish = move(*--__old_finish); } With clang: /home/espindola/llvm/llvm/tools/clang/lib/CodeGen/CGExprAgg.cpp:1074: void clang::CodeGen::CodeGenFunction::EmitAggregateCopy(llvm::Value *, llvm::Value *, clang::QualType, bool): Assertion `(Record->hasTrivialCopyConstructor() || Record->hasTrivialCopyAssignment()) && "Trying to aggregate-copy a type without a trivial copy " "constructor or assignment operator"' 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 Sun Sep 4 23:12:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 4 Sep 2011 23:12:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 10861] New: C++0x POD changes not implemented Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10861 Summary: C++0x POD changes not implemented Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: xocotl at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Howdy I didn't see a bug for this, but ran into it recently trying to add a constexpr constructor from double to a fixed point type. So, for tracking's sake, figured I should add a bug. :) Clang doesn't appear to presently support C++0x style looser POD definition. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 5 02:13:43 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 5 Sep 2011 02:13:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 10862] New: False positives related to try catch blocks (Value stored to '...' during its initialization is never read) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10862 Summary: False positives related to try catch blocks (Value stored to '...' during its initialization is never read) Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: tom.vercauteren at gmail.com CC: llvmbugs at cs.uiuc.edu Hi, I am using scan-build (svn from 2011-09-02) to analyze c++ code and get a few false positives related to try catch blocks. My initial attempts to make a small test case did not succeed in replicating the bug. Below are two code snippets for which I get "Value stored to 'status' during its initialization is never read" in a large projet: ----------------- uint32_t status = info.refStatus; try { status = foo(); } catch(...) { } bar(status); ----------------- ----------------- int status = this->m_status; this->m_status = foo(); try { bar(); } catch(...) { this->m_status = status; } ----------------- -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 5 02:59:39 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 5 Sep 2011 02:59:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 10863] New: False positives related to while loops in a threaded environment (Value stored to '...' during its initialization is never read) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10863 Summary: False positives related to while loops in a threaded environment (Value stored to '...' during its initialization is never read) Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: tom.vercauteren at gmail.com CC: llvmbugs at cs.uiuc.edu Hi, I am using scan-build (svn from 2011-09-02) to analyze c++ code and get a few false positives related to while loops in a threaded environment. Below is a code snippet for which I get "Value stored to 'first' during its initialization is never read" in a large projet: ----------------- bool first = true; while( this->m_continue ) { // some mutex if( first ) { first = false; foo(); } else { bar(); } } ----------------- -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 5 10:59:04 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 5 Sep 2011 10:59:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 10864] New: Sema::ActOnAsmStmt() is called before template instantiation Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10864 Summary: Sema::ActOnAsmStmt() is called before template instantiation Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: liulk at likai.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=7221) --> (http://llvm.org/bugs/attachment.cgi?id=7221) An example showing inline assembly and CRTP usage. Sema::ActOnAsmStmt() performs type checking on the inline assembly. It is currently called when the templated class method is declared, not when the template class is instantiated, causing problem with Curiously Recurring Template Pattern usage because it is not able to reduce dependent type. liulk -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 5 14:00:41 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 5 Sep 2011 14:00:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 10865] New: Address-space casts cause LLVM assertion Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10865 Summary: Address-space casts cause LLVM assertion Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pcwalton at mimiga.net CC: llvmbugs at cs.uiuc.edu This code causes an LLVM assertion ("Pointer must be a pointer to Val type" during generation of a StoreInst): #define MY_ADDRESS_SPACE __attribute__((address_space(512))) void MY_ADDRESS_SPACE *x = (void MY_ADDRESS_SPACE *)malloc(123); But this works fine: #define MY_ADDRESS_SPACE __attribute__((address_space(512))) void MY_ADDRESS_SPACE *x = (void MY_ADDRESS_SPACE *)(uintptr_t)malloc(123); Looks like clang isn't generating a bitcast instruction where one is needed, and the intermediate uintptr_t forces the bitcast generation. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 5 15:23:03 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 5 Sep 2011 15:23:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 10866] New: template static const is not always initialized Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10866 Summary: template static const is not always initialized Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: adriano.mitre at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=7222) --> (http://llvm.org/bugs/attachment.cgi?id=7222) example showing the bug and how to work around it A template static constant is not always initialized as it should. This behaviour deviates from g++'s. An example is attached which produces incorrect behaviour unless WORKAROUND{1,2} is defined (see comment in the beginning of the source). -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 5 19:31:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 5 Sep 2011 19:31:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 10866] template static const is not always initialized In-Reply-To: References: Message-ID: <20110906003132.63A742A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10866 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |nicholas at mxc.ca Resolution| |INVALID --- Comment #1 from Nick Lewycky 2011-09-05 19:31:31 CDT --- If I'm not mistaken, your testcase boils down to: static const int test1 = bar(); static const double test2 = test1 * 0.5; What's the guarantee that either of those is evaluated first? I realize that reordering them doesn't make the bug go away, but as I just said, there's no guarantee that it would. Further, I just tried it with G++ 4.6.1 on my machine: $ g++ example.cpp -o example $ ./example inf I'm going to close this bug as invalid. If you think I'm mistaken, please reopen 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 Sep 5 21:57:01 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 5 Sep 2011 21:57:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 10867] New: Multiple RUN: lines and || don't play well Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10867 Summary: Multiple RUN: lines and || don't play well Product: Test Suite Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: lit AssignedTo: unassignedbugs at nondot.org ReportedBy: richard-llvm at metafoo.co.uk CC: llvmbugs at cs.uiuc.edu, daniel at zuster.org This test fails: RUN: false RUN: true This test passes: RUN: false RUN: true || true This is because lit combines multiple RUN: lines together with " && " and passes them to the shell, where && binds tighter than ||. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 00:06:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 00:06:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 10383] Assertion `isLoopInvariant(Operands[i], L) && "SCEVAddRecExpr operand is not loop-invariant!"' In-Reply-To: References: Message-ID: <20110906050632.996682A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10383 Nick Lewycky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from Nick Lewycky 2011-09-06 00:06:32 CDT --- Fixed in r139133. The equivalent code in getAddExpr does not have this bug. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 07:43:42 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 07:43:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 10868] New: libclang does not respect line directives when reporting source locations Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10868 Summary: libclang does not respect line directives when reporting source locations Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: vinay_sajip at yahoo.co.uk CC: llvmbugs at cs.uiuc.edu Given a simple file somefile.c with the contents #123 "dummy.c" 1 static int func() { return 0; } the source location of the func() definition is reported as line 3 of somefile.c, whereas it should be line 124 of dummy.c as per the # directive. The # line is correctly parsed in PPDirectives.cpp and a line note added, but this is not available via the source location APIs. This problem means that libclang's source location functionality is not much use when processing files which have already been pre-processed, say via gcc -E. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 07:44:30 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 07:44:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 10869] New: [LLVM, llvm-mc] Unclear error for files without newline at the end of file (ARM, x86). Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10869 Summary: [LLVM, llvm-mc] Unclear error for files without newline at the end of file (ARM, x86). 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: stpworld at narod.ru CC: llvmbugs at cs.uiuc.edu ARMAsmParser and X86AsmParser doesn't process files without newline at the end of file properly. llvm-mc failed to parse file with error message: nonl-x86.s:2:17: error: unexpected token in argument list Reproduction steps: 1. Create the file "nonl-x86.s" with the next contents (or use attachment): movl %gs:8, %eax movl %gs:8, %eax 2. Ensure that it has no newlines at EOF. 3. run llvm-mc: llvm-mc nonl-x86.s 4. llvm-mc fails with message: nonl-x86.s:2:17: error: unexpected token in argument list -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 10:15:41 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 10:15:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 10870] New: buggy behaviour when exception is thrown from the constructor Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10870 Summary: buggy behaviour when exception is thrown from the constructor Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: adriano.mitre at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The attached example demonstrates what seems to be a bug in clang when an exception is thrown from the constructor. Although the behaviour is different whether the construction/allocation is static or dynamic, it is wrong in both cases. Constrast $ make CXX=g++ # default $ /ctorexcept static 1234 instances: 0 $ /ctorexcept dynamic 1234 instances: 0 with $ make CXX=clang++ $ /ctorexcept static 1234 instances: 10 $ /ctorexcept dynamic 1234 # segmentation fault! # according to valgrind it was an "Invalid free() / delete / delete[]" If the destructor is not defined, which may be achieved compiling with $ make CXX_FLAGS=-DISABLE_DTOR no segmentation fault ocurrs in the dynamic case, making its behaviour seemly identical to the static 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 Tue Sep 6 10:23:48 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 10:23:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 9271] dependent decltype in parameter of template function causes name mangling crash In-Reply-To: References: Message-ID: <20110906152348.BB4142A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9271 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2011-09-06 10:23:48 CDT --- This is already fixed in top-of-tree; the correct mangled name is __Z1fIRiEvOT_DtfL0p_E. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 10:25:33 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 10:25:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 9273] dependent operator name in template function argument type crashes clang In-Reply-To: References: Message-ID: <20110906152533.D11312A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9273 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Douglas Gregor 2011-09-06 10:25:33 CDT --- Clang now correctly rejects this: .cpp:2:15: error: explicit instantiation of 'operator_' does not refer to a function template, member function, member class, or static data member template void operator_(int); ^ -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 10:27:17 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 10:27:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 9230] "Unresolved overloaded function" assertion failure In-Reply-To: References: Message-ID: <20110906152717.53EB42A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9230 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2011-09-06 10:27:15 CDT --- This no longer crashes with top-of-tree. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 11:27:36 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 11:27:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 10860] "Trying to aggregate-copy a type without a trivial copy " "constructor or assignment operator"' failed In-Reply-To: References: Message-ID: <20110906162736.08E1A2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10860 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2011-09-06 11:27:35 CDT --- Fixed in Clang r139143. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 11:32:55 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 11:32:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 10871] New: -Warray-bounds fires on usr/include/socket.h ipv6 sockaddr usage Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10871 Summary: -Warray-bounds fires on usr/include/socket.h ipv6 sockaddr usage Product: clang Version: trunk 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 >From /Developer/SDKs/MacOSX10.6.sdk/usr/include/sys/socket.h: struct sockaddr { __uint8_t sa_len; /* total length */ sa_family_t sa_family; /* [XSI] address family */ char sa_data[14]; /* [XSI] addr value (actually larger) */ }; For ipv6 ( in6.h somewhere in Kernel.frameworkl ): struct in6_addr { union { __uint8_t __u6_addr8[16]; __uint16_t __u6_addr16[8]; __uint32_t __u6_addr32[4]; } __u6_addr; /* 128-bit IP6 address */ }; struct sockaddr_in6 { __uint8_t sin6_len; /* length of this struct(sa_family_t)*/ sa_family_t sin6_family; /* AF_INET6 (sa_family_t) */ in_port_t sin6_port; /* Transport layer port # (in_port_t)*/ __uint32_t sin6_flowinfo; /* IP6 flow information */ struct in6_addr sin6_addr; /* IP6 address */ __uint32_t sin6_scope_id; /* scope zone index */ }; Given `sockaddr* myaddr = ...`, if myaddr->sa_family == AF_INET6, then accessing myaddr->sa_data[6 + 15] is valid (it's some byte of the in6_addr), yet clang warns " warning: array index of '21' indexes past the end of an array (that contains 14 elements) [-Warray-bounds]". -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 11:39:31 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 11:39:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 10847] Implicit move constructor breaks precompiled header support. In-Reply-To: References: Message-ID: <20110906163931.E68462A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10847 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Douglas Gregor 2011-09-06 11:39:30 CDT --- Fixed in Clang r139144. Thanks for the great reduced 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 Tue Sep 6 11:40:00 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 11:40:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 10383] Assertion `isLoopInvariant(Operands[i], L) && "SCEVAddRecExpr operand is not loop-invariant!"' In-Reply-To: References: Message-ID: <20110906164000.8ED932A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10383 J?rg Sonnenberger changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #5 from J?rg Sonnenberger 2011-09-06 11:39:59 CDT --- The original test case still hits the assertion. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 11:40:08 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 11:40:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 10871] -Warray-bounds fires on usr/include/socket.h ipv6 sockaddr usage In-Reply-To: References: Message-ID: <20110906164008.BA7562A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10871 Chandler Carruth changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Chandler Carruth 2011-09-06 11:40:08 CDT --- I think we've reached the limit of what we can do with this warning. The header file gives an explicit size to the array (14) which is explicitly a lie (as indicated by the comment). I think Clang is entirely within its rights to complain here. However, if the reason you "know" you can overflow this array is because you "know" that the actual struct is sockaddr_in6, simply cast the pointer ta sockaddr_in6, and use that struct. =] -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 12:02:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 12:02:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 10775] ADTTests trigger valgrind failures In-Reply-To: References: Message-ID: <20110906170240.27CB72A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10775 Andrew Trick changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED AssignedTo|unassignedbugs at nondot.org |atrick at apple.com --- Comment #1 from Andrew Trick 2011-09-06 12:02:39 CDT --- valgrind doesn't recognize optimized strcasecmp in glib yet. It's supposed to be fixed in 3.6.1. Until then we are suppressing the error. Fixed by r139048 and r139084 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 12:30:51 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 12:30:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 10872] New: [loop-idiom] GVN fails to remove loads after loop-idiom recognition Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10872 Summary: [loop-idiom] GVN fails to remove loads after loop-idiom recognition Product: libraries Version: trunk Platform: PC OS/Version: All Status: ASSIGNED Severity: normal Priority: P Component: Scalar Optimizations AssignedTo: resistor at mac.com ReportedBy: atrick at apple.com CC: llvmbugs at cs.uiuc.edu Test case: SingleSource/Benchmarks/Stanford test.simple.Puzzle on A9 is 14% slower with -unroll-scev. Running with -O3 optimizes to O3.ll (0.54s) -unroll-scev produces O3-unroll-scev.ll (0.64s) These runs were using r138990. -unroll-scev will soon be default, but -disable-unroll-scev will be available. llc -mcpu=cortex-a9 -relocation-model=pic -disable-fp-elim -disable-non-leaf-fp-elim O3.ll -unroll-scev exposes more opportunities for memset_pattern, resulting in: call void @memset_pattern16(i8* bitcast (i32* getelementptr inbounds ([13 x [512 x i32]]* @p, i32 0, i32 6, i32 0) to i8*), i8* bitcast ([4 x i32]* @.memset_pattern3 to i8*), i32 12) nounwind This is fine, but then GVN fails to remove the subsequent loads: %tmp2.i = load i32* getelementptr inbounds ([13 x i32]* @piecemax, i32 0, i32 0), align 4, !tbaa !3 for.end.i: ; preds = %for.inc.i8, %if.then %tmp14.i = load i32* getelementptr inbounds ([13 x i32]* @class, i32 0, i32 0), align 4, !tbaa !3 Removing %tmp2.i exposes lots of constant folding, but it is the removal of %tmp14.i that speeds up the benchmark. Also rdar://10065079 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 12:43:30 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 12:43:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 10852] ARM llc assertion In-Reply-To: References: Message-ID: <20110906174331.00D072A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10852 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Jakob Stoklund Olesen 2011-09-06 12:43:30 CDT --- Fixed in r139148. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 13:53:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 13:53:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 10870] buggy behaviour when exception is thrown from the constructor In-Reply-To: References: Message-ID: <20110906185323.2B5FA2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10870 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Eli Friedman 2011-09-06 13:53:22 CDT --- r139158. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 13:54:24 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 13:54:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 10855] llc miscompiles negation of i64 (ARM) In-Reply-To: References: Message-ID: <20110906185424.670C62A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10855 Evan Cheng changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Evan Cheng 2011-09-06 13:54:24 CDT --- Fixed: r139157 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 14:00:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 14:00:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 5035] False Positive NSData and NSString ........NoCopy: methods In-Reply-To: References: Message-ID: <20110906190019.01A432A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5035 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |INVALID --- Comment #3 from Ted Kremenek 2011-09-06 14:00:18 CDT --- There is simply no information in this PR to go on. I'm closing this. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 15:10:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 15:10:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 10776] Tests failure: MC/Disassembler/ARM/thumb* segfaults In-Reply-To: References: Message-ID: <20110906201044.A0A282A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10776 Owen Anderson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Owen Anderson 2011-09-06 15:10:43 CDT --- Fixed in r139059. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 15:34:23 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 15:34:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 10835] Obj-C++ instance method that returns a C++ derived class causes crash In-Reply-To: References: Message-ID: <20110906203423.9EA472A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10835 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Douglas Gregor 2011-09-06 15:34:23 CDT --- Fixed in Clang r139175. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 16:33:17 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 16:33:17 -0500 (CDT) Subject: [LLVMbugs] [Bug 10873] New: clang messes up dependence, improperly moves load past use Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10873 Summary: clang messes up dependence, improperly moves load past use Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: whaley at cs.utsa.edu CC: llvmbugs at cs.uiuc.edu I believe I've found a bug in clang/llvm on a sandy bridge CPU. I am using the svn version of clang downloaded Sep 03, 2011: >sb4>clang -v >clang version 3.0 (trunk 139049) >Target: x86_64-unknown-linux-gnu >Thread model: posix Take this piece of code: ******************************************************************************* void ATL_UGEMV(const int M, const int N, const double *A, const int lda, const double *X, double *Y) /* * y = [0,1]*y + A*x, A is MxN, storing the transpose of the matrix */ { double ry, iy; const int lda2 = lda+lda; int j; void dotu_sub(const int, const double*, const int, const double*, const int, double *); for (j=0; j < N; j++, A += lda2, Y += 2) { ry = *Y; iy = Y[1]; dotu_sub(M, A, 1, X, 1, Y); *Y += ry; Y[1] += iy; } } ******************************************************************************* If you compile with clang -fomit-frame-pointer -mavx -O2 -m64 -S I believe you will find that clang waits until *after* the subroutine call to load the values, at which point they have been overwritten by the call. In order to get clang to produce the right answer, you must rewrite the loop in this way: for (j=0; j < N; j++, A += lda2, Y += 2) { double dot[2] dotu_sub(M, A, 1, X, 1, dot); *Y += dot[0]; Y[1] += dot[1]; } Thanks, Clint -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 17:12:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 17:12:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 10874] New: segfault on error: "cannot use 'c++-cpp-output' output with multiple -arch options" Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10874 Summary: segfault on error: "cannot use 'c++-cpp-output' output with multiple -arch options" Product: clang Version: trunk Platform: Macintosh OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: dane at dbsgeo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com clang++ was working fine, then I updated to svn trunk r139135 from r138729. Now I get: https://gist.github.com/1199127 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 17:24:25 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 17:24:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 10875] New: [x86 disassembler] movs comes up blank with intel syntax Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10875 Summary: [x86 disassembler] movs comes up blank with intel syntax Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: kkhoo at perfwizard.com CC: llvmbugs at cs.uiuc.edu >From the "Intel? 64 and IA-32 Architectures Software Developer?s Manual Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 3-713: A4 MOVS m8, m8 $ echo '0xa4'| ./llvm-mc -disassemble -triple="x86_64" -x86-asm-syntax=intel $ echo '0xa4'| ./llvm-mc -disassemble -triple="x86_64" movsb This should show as "MOVS" with Intel syntax, but there's no output. AT&T syntax looks ok. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 17:29:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 17:29:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 10876] New: byval causes infinite recursion Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10876 Summary: byval causes infinite recursion 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: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu The four tests: llvm/trunk/test/CodeGen/ARM/2011-06-09-TailCallByVal.ll llvm/trunk/test/CodeGen/Mips/cprestore.ll llvm/trunk/test/CodeGen/Mips/largeimmprinting.ll llvm/trunk/test/CodeGen/Thumb/2011-05-11-DAGLegalizer.ll all suffer the same problem: they infinitely recurse due to byval stuff. Here's the stack trace: Program received signal SIGSEGV, Segmentation fault. 0x0000000000fd9288 in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp ( this=Cannot access memory at address 0x7fffff5fe898 ) at LegalizeDAG.cpp:766 766 SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) { (gdb) bt #0 0x0000000000fd9288 in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp (this=Cannot access memory at address 0x7fffff5fe898 ) at LegalizeDAG.cpp:766 #1 0x0000000000fd9c24 in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fffffffd740, Op=...) at LegalizeDAG.cpp:908 #2 0x0000000000fd9c24 in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fffffffd740, Op=...) at LegalizeDAG.cpp:908 #3 0x0000000000fdb147 in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fffffffd740, Op=...) at LegalizeDAG.cpp:1071 #4 0x0000000000fd9c24 in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fffffffd740, Op=...) at LegalizeDAG.cpp:908 #5 0x0000000000fdabc0 in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fffffffd740, Op=...) at LegalizeDAG.cpp:1028 #16 0x0000000000fdb02e in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fffffffd740, Op=...) at LegalizeDAG.cpp:1062 #17 0x0000000000fd9c24 in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fffffffd740, Op=...) at LegalizeDAG.cpp:908 #18 0x0000000000fd9c24 in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fffffffd740, Op=...) at LegalizeDAG.cpp:908 #19 0x0000000000fd9c24 in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fffffffd740, Op=...) at LegalizeDAG.cpp:908 #20 0x0000000000fd9c24 in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fffffffd740, Op=...) at LegalizeDAG.cpp:908 #21 0x0000000000fd9c24 in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fffffffd740, Op=...) at LegalizeDAG.cpp:908 #22 0x0000000000fd9c24 in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fffffffd740, Op=...) at LegalizeDAG.cpp:908 [...] #1537 0x0000000000fd9c24 in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fffffffd740, Op=...) at LegalizeDAG.cpp:908 #1538 0x0000000000fd9c24 in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fffffffd740, Op=...) at LegalizeDAG.cpp:908 #1539 0x0000000000fd9c24 in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fffffffd740, Op=...) at LegalizeDAG.cpp:908 #1540 0x0000000000fd9c24 in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fffffffd740, Op=...) at LegalizeDAG.cpp:908 #1541 0x0000000000fd9c24 in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fffffffd740, Op=...) at LegalizeDAG.cpp:908 #1542 0x0000000000fd9c24 in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fffffffd740, Op=...) at LegalizeDAG.cpp:908 #1543 0x0000000000fdb147 in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fffffffd740, Op=...) at LegalizeDAG.cpp:1071 #1544 0x0000000000fdaf45 in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fffffffd740, Op=...) at LegalizeDAG.cpp:1054 #1545 0x0000000000fd3ac2 in (anonymous namespace)::SelectionDAGLegalize::LegalizeDAG (this=0x7fffffffd740) at LegalizeDAG.cpp:210 #1546 0x0000000000ffb8e7 in llvm::SelectionDAG::Legalize (this=0x1d5b5c0) at LegalizeDAG.cpp:3917 #1547 0x0000000000f9983e in llvm::SelectionDAGISel::CodeGenAndEmitDAG ( this=0x1d53ba0) at SelectionDAGISel.cpp:559 #1548 0x0000000000f98a80 in llvm::SelectionDAGISel::SelectBasicBlock ( this=0x1d53ba0, Begin=..., End=..., HadTailCall=@0x7fffffffdb68) at SelectionDAGISel.cpp:424 #1549 0x0000000000f9b28a in llvm::SelectionDAGISel::SelectAllBasicBlocks ( this=0x1d53ba0, Fn=...) at SelectionDAGISel.cpp:989 #1550 0x0000000000f97fe2 in llvm::SelectionDAGISel::runOnMachineFunction ( this=0x1d53ba0, mf=...) at SelectionDAGISel.cpp:292 #1551 0x0000000001105095 in llvm::MachineFunctionPass::runOnFunction ( this=0x1d53ba0, F=...) at MachineFunctionPass.cpp:33 #1552 0x00000000014930e8 in llvm::FPPassManager::runOnFunction ( this=0x1d526e0, F=...) at PassManager.cpp:1512 #1553 0x0000000001493333 in llvm::FPPassManager::runOnModule (this=0x1d526e0, M=...) at PassManager.cpp:1534 #1554 0x0000000001493679 in llvm::MPPassManager::runOnModule (this=0x1d4d390, M=...) at PassManager.cpp:1588 #1555 0x0000000001493b78 in llvm::PassManagerImpl::run (this=0x1d4d040, M=...) at PassManager.cpp:1670 #1556 0x00000000014940c1 in llvm::PassManager::run (this=0x7fffffffe1e0, M=...) at PassManager.cpp:1714 #1557 0x00000000009dfedd in main (argc=3, argv=0x7fffffffe418) at llc.cpp:374 (gdb) up 100 #100 0x0000000000fd9c24 in (anonymous namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fffffffd740, Op=...) at LegalizeDAG.cpp:908 908 Ops.push_back(LegalizeOp(Node->getOperand(i))); (gdb) p Node $1 = (llvm::SDNode *) 0x1d92380 (gdb) p *Node $2 = { = { NextInFoldingSetBucket = 0x0}, > = {> = {Prev = 0x1d92280}, Next = 0x1d92580}, NodeType = 41, OperandsNeedDelete = 1, HasDebugValue = 0, SubclassData = 0, NodeId = 87, OperandList = 0x1d92ff0, ValueList = 0x1d86150, UseList = 0x1d93118, NumOperands = 4, NumValues = 2, debugLoc = { LineCol = 0, ScopeIdx = 0}} (gdb) p Node->dump() Cannot access memory at address 0x7fffff5fe778 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 17:36:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 17:36:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 10877] New: [x Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10877 Summary: [x Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: kkhoo at perfwizard.com CC: llvmbugs at cs.uiuc.edu -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 18:34:11 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 18:34:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 10872] [loop-idiom] GVN fails to remove loads after loop-idiom recognition In-Reply-To: References: Message-ID: <20110906233411.46C992A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10872 Owen Anderson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from Owen Anderson 2011-09-06 18:34:10 CDT --- Fixed in r139204. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 19:37:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 19:37:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 10383] Assertion `isLoopInvariant(Operands[i], L) && "SCEVAddRecExpr operand is not loop-invariant!"' In-Reply-To: References: Message-ID: <20110907003750.89B322A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10383 J?rg Sonnenberger changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 21:31:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 21:31:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 10878] New: Segmentation fault in clang::FunctionDecl::getParamDecl(unsigned int) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10878 Summary: Segmentation fault in clang::FunctionDecl::getParamDecl(unsigned int) 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 Created an attachment (id=7231) --> (http://llvm.org/bugs/attachment.cgi?id=7231) Failing input Beginning of stack trace: 0 clang 0x0000000002a1657d 1 clang 0x0000000002a16379 2 libpthread.so.0 0x00007fc99be1dc60 3 clang 0x000000000155e181 clang::FunctionDecl::getParamDecl(unsigned int) + 81 4 clang 0x000000000162cc13 clang::Sema::GatherArgumentsForCall(clang::SourceLocation, clang::FunctionDecl*, clang::FunctionProtoType const*, unsigned int, clang::Expr**, unsigned int, llvm::SmallVector&, clang::Sema::VariadicCallType) + 405 5 clang 0x000000000162c9f7 clang::Sema::ConvertArgumentsForCall(clang::CallExpr*, clang::Expr*, clang::FunctionDecl*, clang::FunctionProtoType const*, clang::Expr**, unsigned int, clang::SourceLocation) + 1271 6 clang 0x000000000162e2d8 clang::Sema::BuildResolvedCallExpr(clang::Expr*, clang::NamedDecl*, clang::SourceLocation, clang::Expr**, unsigned int, clang::SourceLocation, clang::Expr*) + 2066 7 clang 0x000000000162d7d4 clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*, clang::SourceLocation, clang::ASTMultiPtr, clang::SourceLocation, clang::Expr*) + 2024 8 clang 0x000000000150d651 clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult) + 2503 9 clang 0x000000000150cc78 clang::Parser::ParseCastExpression(bool, bool, bool&, bool) + 7378 Pre-processed input is attached. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 22:01:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 22:01:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 10843] [AVX] Assertion failed: (Reg >= X86::FP0 && Reg <= X86::FP6 && "Expected FP register!"), function getFPReg In-Reply-To: References: Message-ID: <20110907030119.C9F462A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10843 Matt Pharr changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Matt Pharr 2011-09-06 22:01:19 CDT --- This was fixed somewhere between r139208 and r138982. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 22:02:07 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 22:02:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 10842] [AVX, llc] Assertion failed: (Bits != 0 && "Cannot print this instruction."), function printInstruction In-Reply-To: References: Message-ID: <20110907030207.2D3792A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10842 Matt Pharr changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Matt Pharr 2011-09-06 22:02:06 CDT --- This was fixed somewhere between r139208 and r138982 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 22:02:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 22:02:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 10845] [AVX] x86 isel hits assert: (false && "Couldn't find the register class"), function getSuperRegisterRegClass In-Reply-To: References: Message-ID: <20110907030244.F13D22A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10845 Matt Pharr changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Matt Pharr 2011-09-06 22:02:44 CDT --- This was fixed somewhere between r139208 and r138982 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 22:06:36 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 22:06:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 10857] [AVX] incorrect code generated for simple loop In-Reply-To: References: Message-ID: <20110907030636.212B92A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10857 Matt Pharr changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Matt Pharr 2011-09-06 22:06:35 CDT --- This was fixed somewhere between r139208 and r138982. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 23:05:38 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 23:05:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 10878] Segmentation fault in clang::FunctionDecl::getParamDecl(unsigned int) In-Reply-To: References: Message-ID: <20110907040538.5392B2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10878 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #1 from Eli Friedman 2011-09-06 23:05:38 CDT --- r139224. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 6 23:14:25 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 6 Sep 2011 23:14:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 10879] New: Possibly mismatched push_back/pop_back in SemaTemplateInstantiate.cpp Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10879 Summary: Possibly mismatched push_back/pop_back in SemaTemplateInstantiate.cpp Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: liulk at likai.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=7232) --> (http://llvm.org/bugs/attachment.cgi?id=7232) An example showing template instantiation stack bleed. There is an error in the template instantiation stack. The symptom is somewhat misleading. Running clang++ against the attached example gives you this error: clang-sync-tying.cc:27:38: error: cannot initialize a parameter of type 'volatile char *' with an rvalue of type 'ValueType *' (aka 'void **') if (__sync_bool_compare_and_swap(&Self()->Value(), that.Value(), expect)) { ^~~~~~~~~~~~~~~~ clang-sync-tying.cc:55:12: note: in instantiation of member function 'CompareSwapImpl, void *>::CompareSwap' requested here csv_ptr1.CompareSwap(csv_ptr2, (void *) 1u); ^ 1 error generated. The instantiation here should find the first argument to __sync_bool_compare_and_swap() the type of void *volatile *, not volatile char *. The type volatile char * comes from the previous instantiation. liulk -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 7 01:18:27 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 7 Sep 2011 01:18:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 10880] New: indvars doesn't update scev's analyses, for the worse Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10880 Summary: indvars doesn't update scev's analyses, for the worse Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Loop Optimizer AssignedTo: unassignedbugs at nondot.org ReportedBy: nicholas at mxc.ca CC: llvmbugs at cs.uiuc.edu, atrick at apple.com Created an attachment (id=7233) --> (http://llvm.org/bugs/attachment.cgi?id=7233) testcase This testcase is a simplified version of: vector v; for (int i = 0; i < n; ++i) v[i]++; Note that vector::operator[] takes a int64, while the index is an int32. This is an extremely common pattern in our (Google's) codebase, thanks to our style rules. The attached testcase is from right before we go into -indvars. The main problem is visible if you just run -O2 over it, there's an extra add(zext(add(n, 1)), -1) in the middle. (The slowdown each time is small, but over our codebase, it accumulates, and GCC doesn't have this problem.) What happened? Let's take a look: $ opt -analyze -scalar-evolution 2011-01-17-LinearReplaceForgetLoop.ll [...] Determining loop execution counts for: @test Loop %for.body: backedge-taken count is (-1 + %n) Loop %for.body: max backedge-taken count is 2147483646 $ opt -indvars -analyze -scalar-evolution 2011-01-17-LinearReplaceForgetLoop.ll [...] Determining loop execution counts for: @test Loop %for.body: backedge-taken count is (-1 + %n) Loop %for.body: max backedge-taken count is 2147483646 $ opt -indvars 2011-01-17-LinearReplaceForgetLoop.ll | opt -analyze -scalar-evolution [...] Determining loop execution counts for: @test Loop %for.body: backedge-taken count is (-1 + (zext i32 %n to i64)) Loop %for.body: max backedge-taken count is (-1 + (zext i32 %n to i64)) Indvars changed the backedge-taken count (consider %n = 0), but only in cases where the loop wouldn't be entered anyways. However, SCEV doesn't do enough analysis to determine what happened. It also bails on the max backedge-taken count. Finally, if you run "opt -indvars 2011-01-17-LinearReplaceForgetLoop.ll | opt -O2 -S -o -", then the unnecessary +1/-1 pairing around the zext is gone. This is directly caused by the different information returned by SCEV, not by other optz'ns happening in the -O2 pipeline. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 7 06:25:00 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 7 Sep 2011 06:25:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 10881] New: Compiler optimizer generates incorrect i386 code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10881 Summary: Compiler optimizer generates incorrect i386 code 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: eric.trepanier at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7234) --> (http://llvm.org/bugs/attachment.cgi?id=7234) Small Foundation Obj-C program that demonstrates the issue The attached code sample demonstrates a situation in which the 32-bit compiler optimizer generates incorrect code for a given while loop. Compile the attached source file using the following command: clang -arch i386 -framework Foundation -Os main.m The run the resulting executable, you should see the following result: 2011-09-07 07:19:42.458 a.out[27557:507] Calculating r using while loop = {{287, 733}, {33.000004, 5.0509523e-40}} 2011-09-07 07:19:42.460 a.out[27557:507] Calculating r without using while loop = {{287, 733}, {33.000004, 15.999994}} If you disable compiler optimizations, (-O0), you will instead see that the calculated "r" results are the same in both cases: 2011-09-07 07:23:20.042 a.out[27564:507] Calculating r using while loop = {{287, 733}, {33.000004, 15.999994}} 2011-09-07 07:23:20.044 a.out[27564:507] Calculating r without using while loop = {{287, 733}, {33.000004, 15.999994}} Our code was initially using the while-loop approach and generating some incorrect results. Fortunately, unrolling the loop works around the problem for us so it is not a showstopper, but it's probably something you want to look at nonetheless. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 7 09:49:01 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 7 Sep 2011 09:49:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 10882] New: FileManager::getVirtualFile() fails due to bug in FileManager::addAncestorsAsVirtualDirs() Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10882 Summary: FileManager::getVirtualFile() fails due to bug in FileManager::addAncestorsAsVirtualDirs() Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: vinay_sajip at yahoo.co.uk CC: llvmbugs at cs.uiuc.edu A call to FileManager::getVirtualFile() with a filename such as "/usr/include/i386._types.h" fails with an assertion error: "The directory of a virtual file should already be in the cache." This is because code in the FileManager::addAncestorsAsVirtualDirs() method - called from FileManager::getVirtualFile() - looks like this: llvm::StringMapEntry &NamedDirEnt = SeenDirEntries.GetOrCreateValue(DirName); // When caching a virtual directory, we always cache its ancestors // at the same time. Therefore, if DirName is already in the cache, // we don't need to recurse as its ancestors must also already be in // the cache. if (NamedDirEnt.getValue()) return; // continue to set the value and add the directory's ancestors However, the GetOrCreateValue() call creates an entry with a bogus "tombstone" value of -1. So, the if test always returns true and causes a premature return. If the test is changed to if (NamedDirEnt.getValue() != (DirectoryEntry *) SeenDirEntries.getTombstoneVal()) return; all is seemingly well. See: https://github.com/vsajip/clang/commit/6958016e54862b1f5bc17a44bffeba8d4df7cb97 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 7 10:08:37 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 7 Sep 2011 10:08:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 10879] Possibly mismatched push_back/pop_back in SemaTemplateInstantiate.cpp In-Reply-To: References: Message-ID: <20110907150837.6C5702A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10879 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Douglas Gregor 2011-09-07 10:08:36 CDT --- This is another manifestation of PR8345 *** This bug has been marked as a duplicate of bug 8345 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 7 12:16:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 7 Sep 2011 12:16:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 10701] Assert failure in DwarfDebug.cpp In-Reply-To: References: Message-ID: <20110907171629.457C22A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10701 Thomas B. Jablin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Thomas B. Jablin 2011-09-07 12:16:28 CDT --- I rebuilt the test case from source with clang and LLVM revision 139148. It appears to work correctly now, so I am marking the bug fixed. Thanks. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 7 14:34:33 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 7 Sep 2011 14:34:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 10883] New: Crash stemming from typo correction when compiling template subclass Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10883 Summary: Crash stemming from typo correction when compiling template subclass Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rikka at google.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The following code causes clang to crash due to a NULL Decl pointer: template class Base { public: typedef long Container; }; template class Derived : public Base { public: using Base::Container; void foo(const Container& current); }; The crash is at SemaDecl.cpp:310 309 NamedDecl *Result = Corrected.getCorrectionDecl(); 310 if ((isa(Result) || isa(Result)) && 311 !Result->isInvalidDecl()) { (gdb) p Result $1 = (clang::NamedDecl *) 0x0 Simply put, this is a situation where Sema::CorrectTypo returns a non-keyword correction without an associated NamedDecl. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 7 15:02:27 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 7 Sep 2011 15:02:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 10884] New: [AVX] crash in generated code due to %rbp being clobbered Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10884 Summary: [AVX] crash in generated code due to %rbp being clobbered 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: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7236) --> (http://llvm.org/bugs/attachment.cgi?id=7236) test case I'm seeing a crash upon exiting the _mandelbrot_ispc function defined in the attached test case. Upon examination, it turns out that %rbp is 0x0, such that things go south upon the following at the end: mov %rbp, %rsp pop %rbp The issue seems to be that %ebp has been used as a temporary register in the vmovmskps %ymm12, %ebp instruction at line 242 in the attached assembly file. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 7 15:27:38 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 7 Sep 2011 15:27:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 10883] Crash stemming from typo correction when compiling template subclass In-Reply-To: References: Message-ID: <20110907202738.3F9AF2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10883 Kaelyn Uhrain changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #1 from Kaelyn Uhrain 2011-09-07 15:27:38 CDT --- The fix and test case have been committed as r139252. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 7 15:32:48 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 7 Sep 2011 15:32:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 10874] segfault on error: "cannot use 'c++-cpp-output' output with multiple -arch options" In-Reply-To: References: Message-ID: <20110907203248.3E0AA2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10874 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #9 from Eli Friedman 2011-09-07 15:32:47 CDT --- Okay. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 7 15:36:33 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 7 Sep 2011 15:36:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 10578] C++ compiler skips parent constructor In-Reply-To: References: Message-ID: <20110907203633.7AB702A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10578 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2011-09-07 15:36:32 CDT --- Fixed in Clang r139253. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 7 18:12:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 7 Sep 2011 18:12:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 10885] New: Better diagnostic for nested functions Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10885 Summary: Better diagnostic for nested functions Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: joerg at NetBSD.org CC: llvmbugs at cs.uiuc.edu Consider the simplest case of nested functions like: void f(void) { void g(void) { } } At the moment clang gives: test.c:3:14: error: expected ';' at end of declaration pointing before the '{' and after g(void). It would be nice if the parser reported this directly like test.c:3:14: error: unsupported nested function or missing ';' at end of declaration -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 7 18:20:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 7 Sep 2011 18:20:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 10885] Better diagnostic for nested functions In-Reply-To: References: Message-ID: <20110907232058.AEE282A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10885 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |DUPLICATE --- Comment #1 from Eli Friedman 2011-09-07 18:20:58 CDT --- *** This bug has been marked as a duplicate of bug 4296 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 7 18:28:11 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 7 Sep 2011 18:28:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 10844] [AVX] Cannot select: v8f32 = X86ISD::VZEXT_MOVL In-Reply-To: References: Message-ID: <20110907232811.4F71C2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10844 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-09-07 18:28:10 CDT --- Fixed in TOT. Not sure though when it was solved! :) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 7 18:29:02 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 7 Sep 2011 18:29:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 10844] [AVX] Cannot select: v8f32 = X86ISD::VZEXT_MOVL In-Reply-To: References: Message-ID: <20110907232902.0D5362A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10844 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #2 from Bruno Cardoso Lopes 2011-09-07 18:29:01 CDT --- Actually I forgot to use -O0 to test it, reopening... -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 7 21:23:55 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 7 Sep 2011 21:23:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 10881] Compiler optimizer generates incorrect i386 code In-Reply-To: References: Message-ID: <20110908022355.CC4492A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10881 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Eli Friedman 2011-09-07 21:23:55 CDT --- r139276. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 7 22:04:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 7 Sep 2011 22:04:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 7143] -mno-mmx should not turn on -mno-sse In-Reply-To: References: Message-ID: <20110908030444.E278F2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7143 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #3 from Eli Friedman 2011-09-07 22:04:43 CDT --- This has been fixed for a while 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 Sep 8 06:40:43 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 8 Sep 2011 06:40:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 10886] New: Cmake scripts with Clang don't work in trunk as of revision 139290 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10886 Summary: Cmake scripts with Clang don't work in trunk as of revision 139290 Product: Build scripts Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: cmake AssignedTo: unassignedbugs at nondot.org ReportedBy: peter.rundberg at autodesk.com CC: llvmbugs at cs.uiuc.edu, ofv at wanadoo.es Trying to configure LLVM with Clang included using cmake fails on Windows and MacOS (the only ones I have tried). Configuring and building using the configure scripts on MacOS works. Without Clang included it works using Cmake. Steps to reproduce: svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm cd llvm\tools svn co http://llvm.org/svn/llvm-project/cfe/trunk clang cd ..\.. mkdir build cd build cmake.exe -G "Visual Studio 10 Win64" ..\llvm\ Errors look like the following... CMake Error at cmake/modules/AddLLVM.cmake:81 (add_executable): add_executable cannot create target "SupportTests" because another target with the same name already exists. The existing target is an executable created in source directory "C:/Work/LLVM/llvm-3.0/llvm/tools/clang/unittests". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): unittests/CMakeLists.txt:13 (add_llvm_executable) unittests/CMakeLists.txt:129 (add_llvm_unittest) CMake Error at cmake/modules/AddLLVM.cmake:86 (target_link_libraries): Attempt to add link library "gtest" to target "SupportTests" which is not built in this directory. Call Stack (most recent call first): unittests/CMakeLists.txt:13 (add_llvm_executable) unittests/CMakeLists.txt:129 (add_llvm_unittest) CMake Error at cmake/modules/AddLLVM.cmake:86 (target_link_libraries): Attempt to add link library "gtest_main" to target "SupportTests" which is not built in this directory. Call Stack (most recent call first): unittests/CMakeLists.txt:13 (add_llvm_executable) unittests/CMakeLists.txt:129 (add_llvm_unittest) CMake Error at cmake/modules/AddLLVM.cmake:86 (target_link_libraries): Attempt to add link library "LLVMSupport" to target "SupportTests" which is not built in this directory. Call Stack (most recent call first): unittests/CMakeLists.txt:13 (add_llvm_executable) unittests/CMakeLists.txt:129 (add_llvm_unittest) CMake Error at cmake/modules/AddLLVM.cmake:83 (add_executable): add_executable cannot create target "KillTheDoctor" because another target with the same name already exists. The existing target is an executable created in source directory "C:/Work/LLVM/llvm-3.0/llvm/tools/clang/utils/KillTheDoctor". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): cmake/modules/AddLLVM.cmake:122 (add_llvm_executable) utils/KillTheDoctor/CMakeLists.txt:1 (add_llvm_utility) CMake Error at utils/KillTheDoctor/CMakeLists.txt:5 (target_link_libraries): Attempt to add link library "LLVMSupport" to target "KillTheDoctor" which is not built in this directory. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 8 07:06:16 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 8 Sep 2011 07:06:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 10887] New: Debug Info Metadata gets corrupted after linking .bc files Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10887 Summary: Debug Info Metadata gets corrupted after linking .bc files Product: new-bugs Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: barto at gmx.net CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7242) --> (http://llvm.org/bugs/attachment.cgi?id=7242) Files to reproduce Windows XP, MSVC 2008 LLVM SVN revision: 138553 clang SVN revision: 138538 I have as input 2 .ll files (It doesn't matter if they're generated by clang or my own frontend) After linking them together (either with llvm-link or llvm::Linker::LinkInFiles), only the first file retains correct llvm.dbg.declare/metadata. The second file just references null metadata. Correct: call void @llvm.dbg.declare(metadata !{i8** %arg0.addr}, metadata !19), !dbg !22 Incorrect: call void @llvm.dbg.declare(metadata !18, metadata !29), !dbg !30 !18 = metadata !{null} Attached are 2 repro-cases: "1.cmd" contains the steps necessary to reproduce behavior with sample files from my own front-end. Final output file: output1.ll "2.cmd" contains sample files for clang. Final output file: output2.ll E.g. in output2.ll you can see correct debug info in lines 10 and 11, and corrupt in lines 23 and 24. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 8 09:18:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 8 Sep 2011 09:18:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 10888] New: Assertion `!SpecializedTemplate.is() && "Already set to a class template partial specialization!"' failed. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10888 Summary: Assertion `!SpecializedTemplate.is() && "Already set to a class template partial specialization!"' failed. 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 Created an attachment (id=7243) --> (http://llvm.org/bugs/attachment.cgi?id=7243) Failing input Attached test case is the result of a delta run trying to minimize the test case for a different assertion. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 8 10:24:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 8 Sep 2011 10:24:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 10889] New: -fplugin-arg-dragonegg-enable-gcc-optzns/vector-select performance regression in capacita Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10889 Summary: -fplugin-arg-dragonegg-enable-gcc-optzns/vector-select performance regression in capacita Product: dragonegg Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: New Bugs AssignedTo: baldrick at free.fr ReportedBy: howarth at nitro.med.uc.edu CC: llvmbugs at cs.uiuc.edu At r139290, llvm/dragonegg svn shows a major performance regression in the run-time of the Polyhedron 2005 capacita benchmark compiled with... /sw/lib/gcc4.6/bin/gfortran -fplugin=/sw/lib/gcc4.6/lib/dragonegg.so -msse4 -ffast-math -funroll-loops -O3 -fplugin-arg-dragonegg-enable-gcc-optzns capacita.f90 -o capacita Benchmark Compile Executable Ave Run Number Estim Name (secs) (bytes) (secs) Repeats Err % --------- ------- ---------- ------- ------- ------ capacita 0.75 45408 398.86 1100.0000 vs when compiled without -fplugin-arg-dragonegg-enable-gcc-optzns... Benchmark Compile Executable Ave Run Number Estim Name (secs) (bytes) (secs) Repeats Err % --------- ------- ---------- ------- ------- ------ capacita 0.49 41416 44.98 1100.0000 Note these are from quick.par runs as the benchmark now runs so slowly. With the new vector-select code enabled using -fplugin-arg-dragonegg-enable-gcc-optzns, the capacita benchmark shows a ~9 fold regression in execution time. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 8 10:27:59 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 8 Sep 2011 10:27:59 -0500 (CDT) Subject: [LLVMbugs] =?utf-8?q?=5BBug_10890=5D_New=3A__unsupported_target_b?= =?utf-8?b?dWlsdGluIOKAmF9fYnVpbHRpbl9pYTMyX3ZlY19wZXJtX3YyZGbigJkgdXNl?= =?utf-8?q?d_in_rnflow_with_vector-select?= Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10890 Summary: unsupported target builtin ?__builtin_ia32_vec_perm_v2df? used in rnflow with vector-select Product: dragonegg Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: New Bugs AssignedTo: baldrick at free.fr ReportedBy: howarth at nitro.med.uc.edu CC: llvmbugs at cs.uiuc.edu At r139290, the compilation of the Polyhedron 2005 rnflow.f90 benchmark now fails with -msse4 -ffast-math -funroll-loops -O3 -fplugin-arg-dragonegg-enable-gcc-optzns as... [MacPro:pb05/lin/source] howarth% /sw/lib/gcc4.6/bin/gfortran -fplugin=/sw/lib/gcc4.6/lib/dragonegg.so -msse4 -ffast-math -funroll-loops -O3 -fplugin-arg-dragonegg-enable-gcc-optzns rnflow.f90 -o rnflow rnflow.f90: In function ?dtrmv_?: rnflow.f90:2591:0: error: unsupported target builtin ?__builtin_ia32_vec_perm_v2df? used rnflow.f90:2591:0: error: unsupported target builtin ?__builtin_ia32_vec_perm_v2df? used -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 8 10:35:55 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 8 Sep 2011 10:35:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 10891] New: doduc Polyhedron 2005 benchmark segfaults when built with -msse4 -ffast-math -funroll-loops -O3 -fplugin-arg-dragonegg-enable-gcc-optzns Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10891 Summary: doduc Polyhedron 2005 benchmark segfaults when built with -msse4 -ffast-math -funroll-loops -O3 -fplugin-arg-dragonegg-enable-gcc-optzns Product: dragonegg Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: New Bugs AssignedTo: baldrick at free.fr ReportedBy: howarth at nitro.med.uc.edu CC: llvmbugs at cs.uiuc.edu At r139290, the doduc Polyhedron 2005 benchmark built with... /sw/lib/gcc4.6/bin/gfortran -fplugin=/sw/lib/gcc4.6/lib/dragonegg.so -msse4 -ffast-math -funroll-loops -O3 -fplugin-arg-dragonegg-enable-gcc-optzns doduc.f90 -o doduc segfaults during execution... [MacPro:pb05/lin/source] howarth% ./doduc MAIN : FIN S00002 MAIN : FIN S00001 MAIN : FIN S00011 MAIN : FIN S00022 TEMPS = 33.00000000 , NITERA : 1 TEMPS = 34.00010010 , NITERA : 190 TEMPS = 35.00473527 , NITERA : 952 TEMPS = 36.00310365 , NITERA : 1518 TEMPS = 37.00295766 , NITERA : 1790 TEMPS = 38.00173154 , NITERA : 2096 TEMPS = 39.00214237 , NITERA : 2407 TEMPS = 40.00105777 , NITERA : 2715 TEMPS = 45.00109540 , NITERA : 4262 TEMPS = 50.00123507 , NITERA : 5885 TEMPS = 55.00131498 , NITERA : 7531 TEMPS = 60.00042238 , NITERA : 9419 Segmentation fault which backtraces as... Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x00007ffb5fbfe9b0 s00061_ (i=, hv=@0x7fff5fbfed30, hvt=@0x7fff5fbfed28, hvme=, hvms=, ynu=@0x7fff5fbfed10, tfl=@0x7fff5fbfed40, re=, iopt=@0x10001ffb4, dtfl=@0x7fff5fbfed00) at doduc.f90:568 568 y1 = y(i1) (gdb) bt #0 s00061_ (i=, hv=@0x7fff5fbfed30, hvt=@0x7fff5fbfed28, hvme=, hvms=, ynu=@0x7fff5fbfed10, tfl=@0x7fff5fbfed40, re=, iopt=@0x10001ffb4, dtfl=@0x7fff5fbfed00) at doduc.f90:568 #1 0x000000010000e1b6 in s00013_ () at doduc.f90:1150 Previous frame inner to this frame (gdb could not unwind past this frame) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 8 10:43:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 8 Sep 2011 10:43:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 10892] New: Polyhedron 2005 fatigue.f90 benchmark miscompiled with -msse4 -ffast-math -funroll-loops -O3 -fplugin-arg-dragonegg-enable-gcc-optzns Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10892 Summary: Polyhedron 2005 fatigue.f90 benchmark miscompiled with -msse4 -ffast-math -funroll-loops -O3 -fplugin-arg-dragonegg-enable-gcc-optzns Product: dragonegg Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: New Bugs AssignedTo: baldrick at free.fr ReportedBy: howarth at nitro.med.uc.edu CC: llvmbugs at cs.uiuc.edu At r139290, the Polyhedron 2005 fatigue.f90 benchmark is miscompiled with... /sw/lib/gcc4.6/bin/gfortran -fplugin=/sw/lib/gcc4.6/lib/dragonegg.so -msse4 -ffast-math -funroll-loops -O3 -fplugin-arg-dragonegg-enable-gcc-optzns -g fatigue.f90 -o fatigue producing the incorrect run-time results of... [MacPro:pb05/lin/source] howarth% ./fatigue -------> Material failure in region 2 at r= 2.72730E+04 at cycle 1 -------> Material failure in region 3 at r= 5.45461E+04 at cycle 1 -------> Material failure in region 4 at r= 8.18191E+04 at cycle 1 -------> Material failure in region 5 at r= 1.09092E+05 at cycle 1 -------> Material failure in region 6 at r= 1.36365E+05 at cycle 1 -------> Material failure in region 7 at r= 1.63638E+05 at cycle 1 -------> Material failure in region 8 at r= 1.90911E+05 at cycle 1 Simulation terminated. Spin cycle = 1 Time (sec) = 5.55556E-06 The wire has fractured, total damage = 2.40518E+09 ================= Elasped CPU time = 0.00000E+00 instead of the correct results when -fplugin-arg-dragonegg-enable-gcc-optzns isn't used... [MacPro:pb05/lin/source] howarth% ./fatigue ================= Spin cycle number = 1 ================= Simulation time = 2.77778E-04 ================= Elasped CPU time = 0.00000E+00 -------> Material failure in region 10 at r= 6.03250E-05 at cycle 26102 -------> Material failure in region 9 at r= 5.39750E-05 at cycle 37161 -------> Material failure in region 8 at r= 4.76250E-05 at cycle 63210 Simulation terminated. Spin cycle = 63210 Time (sec) = 1.75581E+01 The wire has fractured, total damage = 5.34630E-01 ================= Elasped CPU time = 9.14900E+00 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 8 10:51:01 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 8 Sep 2011 10:51:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 10893] New: aermod.f90 Polyhedron 2005 benchmark miscompiled with -msse4 -ffast-math -funroll-loops -O3 -fplugin-arg-dragonegg-enable-gcc-optzns Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10893 Summary: aermod.f90 Polyhedron 2005 benchmark miscompiled with -msse4 -ffast-math -funroll-loops -O3 -fplugin-arg-dragonegg-enable-gcc-optzns Product: dragonegg Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: New Bugs AssignedTo: baldrick at free.fr ReportedBy: howarth at nitro.med.uc.edu CC: llvmbugs at cs.uiuc.edu At r139290, when the aermod.f90 Polyhedron 2005 benchmark is compiled with... /sw/lib/gcc4.6/bin/gfortran -fplugin=/sw/lib/gcc4.6/lib/dragonegg.so -msse4 -ffast-math -funroll-loops -O3 -fplugin-arg-dragonegg-enable-gcc-optzns aermod.f90 -o aermod the benchmark shows a runtime speed regression... Benchmark Compile Executable Ave Run Number Estim Name (secs) (bytes) (secs) Repeats Err % --------- ------- ---------- ------- ------- ------ aermod 24.28 1095232 29.27 1100.0000 compared to without -fplugin-arg-dragonegg-enable-gcc-optzns aermod 20.14 1039824 16.54 1100.0000 and produces failures during the benchmark run... > Value= 2195.3913600 Target= 2191.1145000 Tolerance=0.10000000000E-02 FAIL <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > Value= 34310.417970 Target= 34310.421880 Tolerance=0.30000000000E-01 > Value= 4260.9482400 Target= 4260.9716800 Tolerance=0.50000000000E-01 > Value= 37060.945310 Target= 37094.375000 Tolerance=0.20000000000E-01 FAIL <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > Value= 7937.5170900 Target= 7924.8842800 Tolerance=0.30000000000E-01 FAIL <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > Value= 37060.945310 Target= 37094.375000 Tolerance= 1.0000000000 FAIL <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< aermod FAILED 4 fails and 2 passes -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 8 12:52:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 8 Sep 2011 12:52:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 10698] #define followed by a comment while clang is started with -C In-Reply-To: References: Message-ID: <20110908175258.EEA6C2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10698 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #2 from Eli Friedman 2011-09-08 12:52:58 CDT --- I can't reproduce this with trunk. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 8 12:53:27 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 8 Sep 2011 12:53:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 10698] #define followed by a comment while clang is started with -C In-Reply-To: References: Message-ID: <20110908175327.A53EF2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10698 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #3 from Eli Friedman 2011-09-08 12:53:27 CDT --- Err, didn't intend to mark this fixed without confirmation. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 8 12:56:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 8 Sep 2011 12:56:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 10764] cp00x feature auto In-Reply-To: References: Message-ID: <20110908175612.F02322A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10764 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Eli Friedman 2011-09-08 12:56:12 CDT --- This is working 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 Sep 8 13:12:34 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 8 Sep 2011 13:12:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 10844] [AVX] Cannot select: v8f32 = X86ISD::VZEXT_MOVL In-Reply-To: References: Message-ID: <20110908181234.A55A72A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10844 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #3 from Bruno Cardoso Lopes 2011-09-08 13:12:34 CDT --- Hi, fixed in r139304. Is there any reason why are you using llc with -O0? This opt level doesn't even fold loads, and unless you don't have any specific reason I'd recommend you using the default level (-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 Thu Sep 8 14:24:18 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 8 Sep 2011 14:24:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 10895] New: throw() with -fno-exceptions generates worse code than throw(std::bad_alloc) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10895 Summary: throw() with -fno-exceptions generates worse code than throw(std::bad_alloc) Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: jmuizelaar at mozilla.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Building the following with clang -S -emit-llvm -fno-exceptions test.cc #include void* operator new(std::size_t size) throw(); struct Timer { virtual void Dance(); }; Timer *foo() { Timer *t = new Timer; t->Dance(); return t; } gives: define %struct.Timer* @_Z3foov() nounwind uwtable ssp { entry: %t = alloca %struct.Timer*, align 8 %call = call noalias i8* @_Znwm(i64 8) nounwind %new.isnull = icmp eq i8* %call, null br i1 %new.isnull, label %new.cont, label %new.notnull new.notnull: ; preds = %entry %0 = bitcast i8* %call to %struct.Timer* call void @_ZN5TimerC1Ev(%struct.Timer* %0) nounwind br label %new.cont new.cont: ; preds = %new.notnull, %entry %1 = phi %struct.Timer* [ %0, %new.notnull ], [ null, %entry ] store %struct.Timer* %1, %struct.Timer** %t, align 8 %tmp = load %struct.Timer** %t, align 8 %2 = bitcast %struct.Timer* %tmp to void (%struct.Timer*)*** %vtable = load void (%struct.Timer*)*** %2 %vfn = getelementptr inbounds void (%struct.Timer*)** %vtable, i64 0 %3 = load void (%struct.Timer*)** %vfn call void %3(%struct.Timer* %tmp) %tmp1 = load %struct.Timer** %t, align 8 ret %struct.Timer* %tmp1 } with 'void* operator new(std::size_t size) throw(std::bad_alloc);' it gives the better: define %struct.Timer* @_Z3foov() nounwind uwtable ssp { entry: %t = alloca %struct.Timer*, align 8 %call = call noalias i8* @_Znwm(i64 8) %0 = bitcast i8* %call to %struct.Timer* call void @_ZN5TimerC1Ev(%struct.Timer* %0) nounwind store %struct.Timer* %0, %struct.Timer** %t, align 8 %tmp = load %struct.Timer** %t, align 8 %1 = bitcast %struct.Timer* %tmp to void (%struct.Timer*)*** %vtable = load void (%struct.Timer*)*** %1 %vfn = getelementptr inbounds void (%struct.Timer*)** %vtable, i64 0 %2 = load void (%struct.Timer*)** %vfn call void %2(%struct.Timer* %tmp) %tmp1 = load %struct.Timer** %t, align 8 ret %struct.Timer* %tmp1 } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 8 16:24:11 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 8 Sep 2011 16:24:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 10896] New: Assertion failure @ lib/AST/ASTContext.cpp:1056 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10896 Summary: Assertion failure @ lib/AST/ASTContext.cpp:1056 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: reuben.morais at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7244) --> (http://llvm.org/bugs/attachment.cgi?id=7244) Testcase. Testcase 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 Thu Sep 8 16:52:45 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 8 Sep 2011 16:52:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 10846] [AVX] Cannot select i64 = bitcast In-Reply-To: References: Message-ID: <20110908215245.7188A2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10846 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-09-08 16:52:45 CDT --- Committed r139320 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 8 17:02:16 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 8 Sep 2011 17:02:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 10897] New: Seg fault during NEON compilation with short3/4 division Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10897 Summary: Seg fault during NEON compilation with short3/4 division Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: srhines at google.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7246) --> (http://llvm.org/bugs/attachment.cgi?id=7246) Failing bitcode file Running llc targeting ARMv7 with NEON on the attached bitcode file results in seg fault (and assertion failure if those are enabled). Note that this is a reduced test case. I could not get the bug to manifest when I stopped doing divides of both short3 and short4 types. llc: /srhines-dt/srhines/tot_llvm/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h:190: llvm::SDValue llvm::DAGTypeLegalizer::GetPromotedInteger(llvm::SDValue): Assertion `PromotedOp.getNode() && "Operand wasn't promoted?"' failed. 0 llc 0x08a84e58 Stack dump: 0. Program arguments: /srhines-dt/srhines/tot_llvm/llvm-bin/bin/llc tmp_srhines/fail.bc 1. Running pass 'Function Pass Manager' on module 'tmp_srhines/fail.bc'. 2. Running pass 'ARM Instruction Selection' on function '@math_test' Aborted -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 9 01:07:16 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 9 Sep 2011 01:07:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 10698] #define followed by a comment while clang is started with -C In-Reply-To: References: Message-ID: <20110909060716.6D31D2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10698 Paul Eremeeff changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #4 from Paul Eremeeff 2011-09-09 01:07:16 CDT --- I confirm, this bug can not be reproduced with current trunk. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 9 03:52:24 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 9 Sep 2011 03:52:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 10886] Cmake scripts with Clang don't work in trunk as of revision 139290 In-Reply-To: References: Message-ID: <20110909085224.4567C2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10886 Chandler Carruth changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #3 from Chandler Carruth 2011-09-09 03:52:23 CDT --- (In reply to comment #2) > > Can you list the files and directories under '.../llvm/tools/clang/utils'? > > C:\Work\LLVM\llvm-3.0\llvm\tools\clang\utils>dir > Volume in drive C is System > Volume Serial Number is EC1B-0EFB > > Directory of C:\Work\LLVM\llvm-3.0\llvm\tools\clang\utils > > 2011-09-08 13:38 . > 2011-09-08 13:38 .. > 2011-09-08 13:38 bugpoint > 2011-09-08 13:38 buildit > There are no CMakeLists.txt files in the utils directories. What is even more > strange is that the two utils directories (.../llvm/utils/ and > .../llvm/tools/clang/utils/) seem identical. Ok, I'm closing this bug as invalid -- your .../llvm/tools/clang/utils directory is actually pointing at the LLVM utils directory. That's the cause of these issues. I'm not sure how or why it got into this state, and I'm happy to try to provide pointers to help figure this out but that belongs on a normal mailing list. That said, this may be something you can investigate better on your own as you have access to your machine and the history of commands you have run. I would try a totally clean tree with clean checkouts... something seems to be going wrong in the process of getting the code onto your machine. Anyways, please follow up on the mailing list if we can help, but this doesn't look like a bug in the CMake scripts... -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 9 05:46:13 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 9 Sep 2011 05:46:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 10808] During testing processes clang.exe*32 occupy all CPU time and block execution In-Reply-To: References: Message-ID: <20110909104613.D563D2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10808 NAKAMURA Takumi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #6 from NAKAMURA Takumi 2011-09-09 05:46:12 CDT --- I have not reproduced your issue. Please reconfirm dependency issue, if you are using msys-make. Sometimes msys-make tends not to understand mingw32-gcc-generated dependencies (*.d). Feel free to reopen or file issues on msys-mingw. I will go on checking on msys-mingw. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 9 11:51:26 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 9 Sep 2011 11:51:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 8345] Failure to compile templated atomic In-Reply-To: References: Message-ID: <20110909165126.800C22A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8345 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Douglas Gregor 2011-09-09 11:51:25 CDT --- Patch committed as r139373, 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 Sep 9 16:04:18 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 9 Sep 2011 16:04:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 10897] Seg fault during NEON compilation with short3/4 division In-Reply-To: References: Message-ID: <20110909210418.4E7A32A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10897 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #3 from Eli Friedman 2011-09-09 16:04:17 CDT --- r139407. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 9 16:54:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 9 Sep 2011 16:54:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 10829] Possible problem with debug metadata generated for empty 'return' statements In-Reply-To: References: Message-ID: <20110909215450.08E132A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10829 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #2 from Eric Christopher 2011-09-09 16:54:49 CDT --- Fixed here: http://llvm.org/viewvc/llvm-project?rev=139416&view=rev -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 9 16:58:09 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 9 Sep 2011 16:58:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 10898] New: extraneous parentheses warnings Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10898 Summary: extraneous parentheses warnings Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: neal.meyer at riverbed.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Just updated to Xcode 4.2 beta 7. I have the following code. int buf_plus_null = 3 + 3 + unicode() ? 2 : 0; Produced the following warning: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses] int buf_plus_null = 3 + 3 + unicode() ? 2 : 0; ~~~~~~~~~~~~~~~~~ ^ XYZ.h:925:47: note: place parentheses around the '+' expression to silence this warning int buf_plus_null = 3 + 3 + unicode() ? 2 : 0; ^ ( ) XYZ.h:925:47: note: place parentheses around the '?:' expression to evaluate it first int buf_plus_null = 3 + 3 + unicode() ? 2 : 0; ^ ( ) Updated the code to have the proper parentheses to the following (Suggestion 1): int buf_plus_null = (3 + 3 + unicode()) ? 2 : 0; The following warning is produced: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses] int buf_plus_null = (3 + 3 + unicode()) ? 2 : 0; ~~~~~~~~~~~~~~~~~~~ ^ XYZ.h:925:49: note: place parentheses around the '+' expression to silence this warning int buf_plus_null = (3 + 3 + unicode()) ? 2 : 0; ^ ( ) XYZ.h:925:49: note: place parentheses around the '?:' expression to evaluate it first int buf_plus_null = (3 + 3 + unicode()) ? 2 : 0; ^ ( ) The 2nd suggestion is syntactically incorrect, and the 1st seems un-necessarily verbose. Suggestion 1 also does not fix the warning. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 9 17:27:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 9 Sep 2011 17:27:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 10899] New: [METABUG] Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10899 Summary: [METABUG] Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pipping at exherbo.org CC: llvmbugs at cs.uiuc.edu -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 9 17:45:57 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 9 Sep 2011 17:45:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 10900] New: [x86 disassembler] pause instruction isn't disassembled Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10900 Summary: [x86 disassembler] pause instruction isn't disassembled Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: kkhoo at perfwizard.com CC: llvmbugs at cs.uiuc.edu According to the "Intel? 64 and IA-32 Architectures Software Developer?s Manual Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 4-64: F3 90 PAUSE This is a special form of a nop and has been available since the Pentium 4. The assembler recognizes the 'pause' mnemonic, but the disassembler just shows 'nop': $ echo '0xf3 0x90'| ./llvm-mc -disassemble -triple="x86_64" nop -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 9 20:25:52 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 9 Sep 2011 20:25:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 10901] New: Test CodeGen/X86/palignr.ll fails after correcting an assert Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10901 Summary: Test CodeGen/X86/palignr.ll fails after correcting an assert Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: rtrieu at google.com CC: llvmbugs at cs.uiuc.edu After fixing an assert in X86ISelLowering.cpp, test CodeGen/X86/palignr.ll fails with the following message: llvm/lib/Target/X86/X86ISelLowering.cpp:4619: llvm::SDValue getShuffleScalarElt(llvm::SDNode*, int, llvm::SelectionDAG&, unsigned int): Assertion `0 && "not implemented for target shuffle node"' failed. The test has been marked XFAIL until it can be corrected. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 9 21:03:57 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 9 Sep 2011 21:03:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 10901] Test CodeGen/X86/palignr.ll fails after correcting an assert In-Reply-To: References: Message-ID: <20110910020357.6A0562A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10901 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #2 from Eli Friedman 2011-09-09 21:03:57 CDT --- r139458-r139460 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 10 06:26:53 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 10 Sep 2011 06:26:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 10902] New: [VECTOR-SELECT] multiple assertions fails when enabling promote-element Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10902 Summary: [VECTOR-SELECT] multiple assertions fails when enabling promote-element Product: libraries Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: Core LLVM classes AssignedTo: unassignedbugs at nondot.org ReportedBy: nadav.rotem at intel.com CC: llvmbugs at cs.uiuc.edu This is not a bug per se, more like a ticket that we need to resolve before enabling the promotion of vector elements by default. 1. CodeGen/ARM/2010-12-07-PEIBug.ll llc: /nrotem/llvm/llvm-head/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:2548: llvm::SDValue llvm::SelectionDAG::getNode(unsigned int, llvm::DebugLoc, ll vm::EVT, llvm::SDValue): Assertion `Operand.getValueType().getScalarType().bitsGT(VT.getScalarType()) && "Invalid truncate node, src < dst!"' failed. 2. CodeGen/ARM/vrev.ll llc: /nfs/iil/disks/cvcc/nrotem/llvm/llvm-head/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:788: llvm::SDValue::SelectionDAGLegalize::LegalizeOp(llvm::SDValue): As sertion `(TLI.getTypeAction(*DAG.getContext(), Node->getOperand(i).getValueType()) == TargetLowering::TypeLegal || Node->getOperand(i).getOpcode() == ISD::TargetConstant) && "Unexpected illegal type!"' failed. 3. CodeGen/CellSPU/shift_ops.ll LLVM ERROR: Cannot select: 0x1f5ea80: v2i64 = shl 0x1f40880, 0x1f5e880 [ID=9] 4. CodeGen/CellSPU/v2i32.ll PromoteIntegerResult #0: 0x1f50650: v2i32 = concat_vectors 0x1f28d80, 0x1f50950 [ORD=5] [ID=0] Do not know how to promote this operator! UNREACHABLE executed at ../CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp:50! 5. CodeGen/Generic/bool-vector.ll /CodeGen/SelectionDAG/SelectionDAG.cpp:4157: llvm::SDValue llvm::SelectionDAG::getLoad(llvm::ISD::MemIndexedMode, llvm ::ISD::LoadExtType, llvm::EVT, llvm::DebugLoc, llvm::SDValue, llvm::SDValue, llvm::SDValue, llvm::EVT, llvm::MachineMemOperand*): Assertion `VT.isVector() == MemVT.isVector( ) && "Cannot use trunc store to convert to or from a vector!"' failed. 6. /CodeGen/X86/2009-07-07-SplitICmp.ll /lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp:489: llvm::SDValue llvm::DAGTypeLegalizer::PromoteIntRes_SETCC(llvm::SD Node*): Assertion `NVT.bitsLE(SVT) && "Integer type overpromoted?"' failed. 7. /CodeGen/X86/widen_shuffle-1.ll PromoteIntegerResult #0: 0x1f551b0: v8i8 = concat_vectors 0x1f552b0, 0x1f553b0 [ORD=19] [ID=0] Do not know how to promote this operator! UNREACHABLE executed at .../lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp:50! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 10 06:30:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 10 Sep 2011 06:30:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 10903] New: [VECTOR-SELECT] needed dagcombine optimization for loading illegal types from memory Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10903 Summary: [VECTOR-SELECT] needed dagcombine optimization for loading illegal types from memory Product: new-bugs Version: 2.8 Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: nadav.rotem at intel.com CC: llvmbugs at cs.uiuc.edu When enabling the promote-element type legalization we often load illegal types such as <4 x i8> and legalize them into legal types such as <4 x i32>. Currently we perform scalarization of the load operation and insert the promoted elements one by one. This is inefficient and can be done by a single load operation followed by a shuffle instruction. I had implemented something similar for the trunc-store operation. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 10 07:14:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 10 Sep 2011 07:14:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 10904] New: Segmentation Fault Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10904 Summary: Segmentation Fault Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: 691D2C6C-B023-46A5-B1D7-ACCBA4713A87 at uuid-mail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7250) --> (http://llvm.org/bugs/attachment.cgi?id=7250) Preprocessed source I get the following output from r139470 (haven?t svn-updated in 1-2 weeks, so could be anything done in that period): 0 libLLVM-3.0svn.dylib 0x0000000101c11b02 PrintStackTrace(void*) + 34 1 libLLVM-3.0svn.dylib 0x0000000101c12313 SignalHandler(int) + 531 2 libSystem.B.dylib 0x00007fff85ffa1ba _sigtramp + 26 3 libSystem.B.dylib 0x0000000102b6b1e0 _sigtramp + 2092372032 4 clang 0x0000000100a541f9 (anonymous namespace)::CXXNameMangler::mangleType(clang::TemplateSpecializationType const*) + 169 5 clang 0x0000000100a4e85e (anonymous namespace)::CXXNameMangler::mangleType(clang::QualType) + 2046 6 clang 0x0000000100a4e382 (anonymous namespace)::CXXNameMangler::mangleType(clang::QualType) + 802 7 clang 0x0000000100a4f33a (anonymous namespace)::CXXNameMangler::mangleType(clang::MemberPointerType const*) + 58 8 clang 0x0000000100a4e4ec (anonymous namespace)::CXXNameMangler::mangleType(clang::QualType) + 1164 9 clang 0x0000000100a4f85e (anonymous namespace)::CXXNameMangler::mangleUnqualifiedName(clang::NamedDecl const*, clang::DeclarationName, unsigned int) + 990 10 clang 0x0000000100a520a5 (anonymous namespace)::CXXNameMangler::mangleNestedName(clang::NamedDecl const*, clang::DeclContext const*, bool) + 373 11 clang 0x0000000100a5260f (anonymous namespace)::CXXNameMangler::mangleFunctionEncoding(clang::FunctionDecl const*) + 31 12 clang 0x0000000100a534da (anonymous namespace)::ItaniumMangleContext::mangleName(clang::NamedDecl const*, llvm::raw_ostream&) + 282 13 clang 0x00000001002bc94d clang::CodeGen::CodeGenModule::getMangledName(clang::GlobalDecl) + 2029 14 clang 0x00000001002c3ba7 clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 423 15 clang 0x00000001002c5017 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 791 16 clang 0x00000001002d622f (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) + 63 17 clang 0x00000001002b3ffe clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 158 18 clang 0x00000001000fcd68 clang::ASTReader::ReadDeclRecord(unsigned int) + 1480 19 clang 0x00000001000c203a clang::ASTReader::GetDecl(unsigned int) + 90 20 clang 0x00000001000c3a15 clang::ASTReader::ReadUnresolvedSet(clang::serialization::Module&, clang::UnresolvedSetImpl&, llvm::SmallVector const&, unsigned int&) + 117 21 clang 0x00000001000ebe85 clang::ASTDeclReader::ReadCXXDefinitionData(clang::CXXRecordDecl::DefinitionData&, llvm::SmallVector const&, unsigned int&) + 1221 22 clang 0x00000001000ed83e clang::ASTDeclReader::InitializeCXXDefinitionData(clang::CXXRecordDecl*, clang::CXXRecordDecl*, llvm::SmallVector const&, unsigned int&) + 1742 23 clang 0x00000001000f7c1c clang::ASTDeclReader::VisitCXXRecordDecl(clang::CXXRecordDecl*) + 220 24 clang 0x00000001000fc5e8 clang::ASTDeclReader::Visit(clang::Decl*) + 24 25 clang 0x00000001000fca31 clang::ASTReader::ReadDeclRecord(unsigned int) + 657 26 clang 0x00000001000c203a clang::ASTReader::GetDecl(unsigned int) + 90 27 clang 0x00000001000f9313 clang::ASTDeclReader::VisitRedeclarableTemplateDecl(clang::RedeclarableTemplateDecl*) + 243 28 clang 0x00000001000f96bc clang::ASTDeclReader::VisitClassTemplateDecl(clang::ClassTemplateDecl*) + 28 29 clang 0x00000001000fc5e8 clang::ASTDeclReader::Visit(clang::Decl*) + 24 30 clang 0x00000001000fca31 clang::ASTReader::ReadDeclRecord(unsigned int) + 657 31 clang 0x00000001000c203a clang::ASTReader::GetDecl(unsigned int) + 90 32 clang 0x00000001000cc6a3 clang::ASTReader::ReadTemplateName(clang::serialization::Module&, llvm::SmallVector const&, unsigned int&) + 355 33 clang 0x00000001000c8a75 clang::ASTReader::readTypeRecord(unsigned int) + 6005 34 clang 0x00000001000cac95 clang::ASTReader::GetType(unsigned int) + 357 35 clang 0x00000001000c78c6 clang::ASTReader::readTypeRecord(unsigned int) + 1478 36 clang 0x00000001000cac95 clang::ASTReader::GetType(unsigned int) + 357 37 clang 0x00000001000caf7b clang::ASTReader::getLocalType(clang::serialization::Module&, unsigned int) + 155 38 clang 0x00000001000fa4cc clang::ASTDeclReader::VisitDeclaratorDecl(clang::DeclaratorDecl*) + 444 39 clang 0x00000001000fac53 clang::ASTDeclReader::VisitFunctionDecl(clang::FunctionDecl*) + 51 40 clang 0x00000001000fc5e8 clang::ASTDeclReader::Visit(clang::Decl*) + 24 41 clang 0x00000001000fca31 clang::ASTReader::ReadDeclRecord(unsigned int) + 657 42 clang 0x00000001000c203a clang::ASTReader::GetDecl(unsigned int) + 90 43 clang 0x00000001000c33a6 clang::ASTReader::StartTranslationUnit(clang::ASTConsumer*) + 102 44 clang 0x00000001002e54b2 clang::ParseAST(clang::Sema&, bool) + 290 45 clang 0x00000001002b2dcd clang::CodeGenAction::ExecuteAction() + 45 46 clang 0x00000001000267d2 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 354 47 clang 0x000000010000a6f7 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1415 48 clang 0x0000000100001a13 cc1_main(char const**, char const**, char const*, void*) + 611 49 clang 0x0000000100009572 main + 4514 50 clang 0x0000000100000e58 start + 52 Stack dump: 0. Program arguments: /Users/duff/Oak/clang/Release/bin/clang -cc1 -triple i386-apple-macosx10.5.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name ODBEditorSuite.cc -pic-level 2 -mdisable-fp-elim -masm-verbose -target-cpu yonah -target-linker-version 123.2 -g -coverage-file /Users/duff/Oak/Avian/Applications/Avian/src/ODBEditorSuite.o -resource-dir /Users/duff/Oak/clang/Release/bin/../lib/clang/3.0 -dependency-file /Users/duff/Oak/Avian/Applications/Avian/src/ODBEditorSuite.d -MT /Users/duff/Oak/Avian/Applications/Avian/src/ODBEditorSuite.o -include-pch /Users/duff/Oak/Avian/Shared/PCH/prelude.cc.gch -isysroot /Developer/SDKs/MacOSX10.5.sdk -D NS_BUILD_32_LIKE_64 -D NULL_STR="\uFFFF" -D COMPILE_DATE="2011-09-10" -D Avian_EXPORTS -I Shared/include -I /Users/duff/Oak/Avian/public -Wall -Wwrite-strings -Wformat -Winit-self -Wmissing-include-dirs -Wno-parentheses -Wno-sign-compare -Wno-switch -Wno-address-of-temporary -std=gnu++0x -fconst-strings -fdeprecated-macro -ferror-limit 19 -fmessage-length 200 -fvisibility hidden -stack-protector 1 -fblocks -fblocks-runtime-optional -fno-signed-char -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /Users/duff/Oak/Avian/Applications/Avian/src/ODBEditorSuite.o -x c++ Applications/Avian/src/ODBEditorSuite.cc 1. Applications/Avian/src/ODBEditorSuite.h:4:1 : current parser token 'bool' 2. /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/tr1/boost_shared_ptr.h:652:5: LLVM IR generation of declaration 'std::tr1::shared_ptr::operator type-parameter-0-0 *shared_ptr<_Tp>::*' 3. /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/tr1/boost_shared_ptr.h:652:5: Mangling declaration 'std::tr1::shared_ptr::operator type-parameter-0-0 *shared_ptr<_Tp>::*' clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Preprocessed source(s) are located at: clang: note: diagnostic msg: /var/folders/X5/X5CC4WkHHGOn9kdy14YNDE+++TI/-Tmp-/ODBEditorSuite-XBPcoY.ii -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Sep 10 18:18:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 10 Sep 2011 18:18:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 10905] New: Drop fixits that don't compile cleanly Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10905 Summary: Drop fixits that don't compile cleanly 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 thakis-macbookpro:src thakis$ cat test.mm #import @interface A : NSObject - (void)setRect:(NSRect)r; @end void f(A* a) { NSRect rect; [a setRect:frameRect]; // Meant: |rect| } # GCC is short and to the point thakis-macbookpro:src thakis$ gcc -c test.mm test.mm: In function ?void f(A*)?: test.mm:9: error: ?frameRect? was not declared in this scope # Clang not so much: thakis-macbookpro:src thakis$ third_party/llvm-build/Release+Asserts/bin/clang -c test.mm test.mm:9:14: error: use of undeclared identifier 'frameRect'; did you mean 'NSFrameRect'? [a setRect:frameRect]; ^~~~~~~~~ NSFrameRect /System/Library/Frameworks/AppKit.framework/Headers/NSGraphics.h:148:20: note: 'NSFrameRect' declared here APPKIT_EXTERN void NSFrameRect(NSRect aRect); ^ test.mm:9:14: error: no viable conversion from 'void (NSRect)' to 'NSRect' (aka 'CGRect') [a setRect:frameRect]; ^~~~~~~~~ /System/Library/Frameworks/ApplicationServices.framework/Headers/../Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:29:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'void (NSRect)' to 'const CGRect &' for 1st argument; struct CGRect { ^ test.mm:4:25: note: passing argument to parameter 'r' here - (void)setRect:(NSRect)r; ^ 2 errors generated. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Sep 11 09:00:56 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 11 Sep 2011 09:00:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 10906] New: llc generating 16-bit code when reading bitcode files Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10906 Summary: llc generating 16-bit code when reading bitcode files Product: tools Version: 2.9 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: llc AssignedTo: unassignedbugs at nondot.org ReportedBy: roger83 at hotmail.co.uk CC: llvmbugs at cs.uiuc.edu Using the test code from the demo page in file test.c: -------------------- test.c -------------------- #include #include int factorial(int X) { if (X == 0) return 1; return X*factorial(X-1); } int main(int argc, char **argv) { printf("%d\n", factorial(atoi(argv[1]))); } ------------------- This works fine: > clang test.c -otest.exe > test.exe 4 24 However, generating bytecode and then running llc on the result: > clang test.c -otest.bc -emit-llvm -S > llc test.bc -otest.exe > test.exe This causes the following error message as a pop-up window Window Title: "16 bit MS-DOS Subsystem" Text: "The NTVDM CUP has encountered an illegal instruction CS:0fa3 IP:010a OP63 74 6f 72 69 Choose close to terminate the application" Same thing happens when using clang -emit-llvm -c lli works fine however. So I guess (with my limited knowledge in this area) that llc is not reading the target information in the same way as lli, and generating 16 bit code. I'm using the llvm and clang binaries for mingw32/x86 from the version 2.9 d/l page. Host: i386-pc-mingw32 Host CPU: athlon-mp Hope this is useful. Cheers -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 11 09:51:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 11 Sep 2011 09:51:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 10906] llc generating 16-bit code when reading bitcode files In-Reply-To: References: Message-ID: <20110911145144.61FCC2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10906 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |asl at math.spbu.ru Resolution| |INVALID --- Comment #1 from Anton Korobeynikov 2011-09-11 09:51:44 CDT --- llc does not generate binaries, it generates assembler. Here you're trying to execute generated assembler as .exe file. Surely it won't 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 Sun Sep 11 10:45:38 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 11 Sep 2011 10:45:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 10907] New: X86 vector comparisons wrong way round! Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10907 Summary: X86 vector comparisons wrong way round! Product: new-bugs Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: baldrick at free.fr CC: llvmbugs at cs.uiuc.edu As the following testcase shows, trying to compute the maximum of two vectors actually computes the minimum. It looks like codegen gets the operands the wrong way round. $ llc -promote-elements max.ll $ gcc -o max max.s $ ./max max: 1 1 (should be 2 2) Testcase: target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-f128:128:128-n8:16:32:64" target triple = "x86_64-unknown-linux-gnu" @str = private constant [28 x i8] c"max: %g %g (should be 2 2)\0A\00", align 1 declare i32 @printf(i8* noalias nocapture, ...) nounwind define <2 x double> @max(<2 x double> %x, <2 x double> %y) { %max_is_x = fcmp oge <2 x double> %x, %y %max = select <2 x i1> %max_is_x, <2 x double> %x, <2 x double> %y ret <2 x double> %max } define i32 @main() { %m = call <2 x double> @max(<2 x double> , <2 x double> ) %a = extractelement <2 x double> %m, i32 0 %b = extractelement <2 x double> %m, i32 1 %t = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([28 x i8]* @str, i64 0, i64 0), double %a, double %b) ret i32 0 } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Sep 11 10:50:45 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 11 Sep 2011 10:50:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 10908] New: command line switch -- isn't supported, openssl crashes Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10908 Summary: command line switch -- isn't supported, openssl crashes Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: balicki.aleksander at gmail.com CC: llvmbugs at cs.uiuc.edu The switch -- by convention signalizes, that each value after that shouldn't be interpreted as an option, so you can for example compile: clang -- -hello.c openssl crash: >>> Compiling source in /var/tmp/portage/dev-libs/openssl-1.0.0e/work/openssl-1.0.0e ... make -j3 -j1 depend making depend in crypto... make[1]: Entering directory `/var/tmp/portage/dev-libs/openssl-1.0.0e/work/openssl-1.0.0e/crypto' clang: error: unsupported option '--' clang: error: unsupported option '--' mv: cannot stat `Makefile.new': No such file or directory make[1]: *** [depend] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-libs/openssl-1.0.0e/work/openssl-1.0.0e/crypto' make: *** [depend] Error 1 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Sep 11 12:13:27 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 11 Sep 2011 12:13:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 10909] New: On OSX 10.6, cinttypes doesn't define PRI* or SCN* Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10909 Summary: On OSX 10.6, cinttypes doesn't define PRI* or SCN* Product: libc++ Version: unspecified Platform: PC OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: All Bugs AssignedTo: hhinnant at apple.com ReportedBy: jyasskin at google.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7251) --> (http://llvm.org/bugs/attachment.cgi?id=7251) Define __STDC_FORMAT_MACROS before cinttypes includes inttypes.h This manifests as the following error in the test suite: cinttypes.pass.cpp:260:2: error: #error PRId8 not defined #error PRId8 not defined ^ cinttypes.pass.cpp:264:2: error: #error PRId16 not defined #error PRId16 not defined ^ ... cinttypes.pass.cpp failed to compile failed 1 tests in /Users/jyasskin/src/libcxx/trunk/test/input.output/file.streams/c.files Here's a patch that fixes the problem, although it may not fix it correctly. Other OS'es may need a similar fix for cstdint to define the INT_MAX macros (C99 says __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS control this), but 10.6 doesn't. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Sep 11 14:50:03 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 11 Sep 2011 14:50:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 10910] New: clang defines __EXCEPTIONS to 1 even if c++ exceptions are turned off Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10910 Summary: clang defines __EXCEPTIONS to 1 even if c++ exceptions are turned off Product: clang Version: trunk Platform: PC OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: mayer.julian at googlemail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com clang defines __EXCEPTIONS to 1 even if c++ exceptions are turned off if Objective-C exceptions are still active __EXCEPTIONS should only be defined if C++ exceptions are actually turned on, independently of Objective-C exceptions MacPro:~ julian$ clang --version Apple clang version 3.0 (tags/Apple/clang-211.9) (based on LLVM 3.0svn) Target: x86_64-apple-darwin10.8.0 Thread model: posix MacPro:~ julian$ clang -dM -E -fno-exceptions -x objective-c++ - <<<'' | grep EXC #define OBJC_ZEROCOST_EXCEPTIONS 1 #define __EXCEPTIONS 1 MacPro:~ julian$ clang -dM -E -fno-exceptions -x objective-c - <<<'' | grep EXC #define OBJC_ZEROCOST_EXCEPTIONS 1 #define __EXCEPTIONS 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 Sep 11 15:24:09 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 11 Sep 2011 15:24:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 10900] [x86 disassembler] pause instruction isn't disassembled In-Reply-To: References: Message-ID: <20110911202409.326BE2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10900 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Craig Topper 2011-09-11 15:24:08 CDT --- Fixed in r139484 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 11 16:54:48 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 11 Sep 2011 16:54:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 10911] New: Anonymous struct as member in non POD class fails to compile under certain situations Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10911 Summary: Anonymous struct as member in non POD class fails to compile under certain situations Product: clang Version: unspecified Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: joshuacweinberg at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=7252) --> (http://llvm.org/bugs/attachment.cgi?id=7252) Test code (and Xcode project) Naming the struct resolves the issue, but there shouldn't be an issue with the anon struct. Compiler output: 0 clang 0x00000001085bc212 _ZL15PrintStackTracePv + 34 1 clang 0x00000001085bc6e9 _ZL13SignalHandleri + 633 2 libsystem_c.dylib 0x00007fff8b694cfa _sigtramp + 26 3 libsystem_c.dylib 0x0000000008c19250 _sigtramp + 18446603338324133232 4 clang 0x0000000107a8db5a llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, llvm::Value**, llvm::Value**, unsigned int, llvm::Twine const&, llvm::Instruction*) + 202 5 clang 0x0000000107e6dad9 llvm::IRBuilder >::CreateConstInBoundsGEP2_32(llvm::Value*, unsigned int, unsigned int, llvm::Twine const&) + 185 6 clang 0x0000000107a8d7bc clang::CodeGen::CodeGenFunction::EmitLValueForField(llvm::Value*, clang::FieldDecl const*, unsigned int) + 492 7 clang 0x0000000107ce3045 clang::CodeGen::CodeGenFunction::EmitLValueForFieldInitialization(llvm::Value*, clang::FieldDecl const*, unsigned int) + 85 8 clang 0x0000000107cde5fa clang::CodeGen::CodeGenFunction::EmitCtorPrologue(clang::CXXConstructorDecl const*, clang::CXXCtorType, clang::CodeGen::FunctionArgList&) + 1322 9 clang 0x0000000107cddd14 clang::CodeGen::CodeGenFunction::EmitConstructorBody(clang::CodeGen::FunctionArgList&) + 340 10 clang 0x0000000107e5fe83 clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 675 11 clang 0x0000000107cddb83 clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl const*, clang::CXXCtorType) + 243 12 clang 0x0000000107e618ed clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 285 13 clang 0x0000000107e6234d clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 605 14 clang 0x00000001078490f7 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 311 15 clang 0x00000001078490bb clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 251 16 clang 0x0000000107848f9f (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) + 95 17 clang 0x0000000107848f11 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 161 18 clang 0x000000010781cff2 clang::ParseAST(clang::Sema&, bool) + 290 19 clang 0x000000010781baaf clang::CodeGenAction::ExecuteAction() + 671 20 clang 0x000000010780789b clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 875 21 clang 0x0000000107805918 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2696 22 clang 0x00000001077fa115 cc1_main(char const**, char const**, char const*, void*) + 5333 23 clang 0x00000001077dd27b main + 667 24 clang 0x00000001077dcfd4 start + 52 25 clang 0x0000000000000052 start + 18446744069288898738 Stack dump: 0. Program arguments: /Developer/usr/bin/clang -cc1 -triple x86_64-apple-macosx10.7.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name TestClass.cpp -pic-level 1 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 127 -g -coverage-file /Users/jweinberg/Library/Developer/Xcode/DerivedData/AnonUnion-dnprncphbwlxlphjiptrydjahpge/Build/Intermediates/AnonUnion.build/Debug/AnonUnion.build/Objects-normal/x86_64/TestClass.o -resource-dir /Developer/usr/bin/../lib/clang/3.0 -dependency-file /Users/jweinberg/Library/Developer/Xcode/DerivedData/AnonUnion-dnprncphbwlxlphjiptrydjahpge/Build/Intermediates/AnonUnion.build/Debug/AnonUnion.build/Objects-normal/x86_64/TestClass.d -MT dependencies -isysroot /Developer/SDKs/MacOSX10.7.sdk -iquote /Users/jweinberg/Library/Developer/Xcode/DerivedData/AnonUnion-dnprncphbwlxlphjiptrydjahpge/Build/Intermediates/AnonUnion.build/Debug/AnonUnion.build/AnonUnion-generated-files.hmap -iquote /Users/jweinberg/Library/Developer/Xcode/DerivedData/AnonUnion-dnprncphbwlxlphjiptrydjahpge/Build/Intermediates/AnonUnion.build/Debug/AnonUnion.build/AnonUnion-project-headers.hmap -D DEBUG=1 -I /Users/jweinberg/Library/Developer/Xcode/DerivedData/AnonUnion-dnprncphbwlxlphjiptrydjahpge/Build/Intermediates/AnonUnion.build/Debug/AnonUnion.build/AnonUnion-own-target-headers.hmap -I /Users/jweinberg/Library/Developer/Xcode/DerivedData/AnonUnion-dnprncphbwlxlphjiptrydjahpge/Build/Intermediates/AnonUnion.build/Debug/AnonUnion.build/AnonUnion-all-target-headers.hmap -I /Users/jweinberg/Library/Developer/Xcode/DerivedData/AnonUnion-dnprncphbwlxlphjiptrydjahpge/Build/Products/Debug/include -I /Users/jweinberg/Library/Developer/Xcode/DerivedData/AnonUnion-dnprncphbwlxlphjiptrydjahpge/Build/Intermediates/AnonUnion.build/Debug/AnonUnion.build/DerivedSources/x86_64 -I /Users/jweinberg/Library/Developer/Xcode/DerivedData/AnonUnion-dnprncphbwlxlphjiptrydjahpge/Build/Intermediates/AnonUnion.build/Debug/AnonUnion.build/DerivedSources -F/Users/jweinberg/Library/Developer/Xcode/DerivedData/AnonUnion-dnprncphbwlxlphjiptrydjahpge/Build/Products/Debug -O0 -Wno-trigraphs -Wmissing-prototypes -Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter -Wunused-variable -Wunused-value -Wshorten-64-to-32 -Wc++0x-extensions -Wno-sign-conversion -fdeprecated-macro -ferror-limit 19 -fmessage-length 0 -fvisibility-inlines-hidden -fdiagnostics-print-source-range-info -fdiagnostics-parseable-fixits -stack-protector 1 -fblocks -fcxx-exceptions -fexceptions -fpascal-strings -fdiagnostics-show-option -fdiagnostics-show-category id -o /Users/jweinberg/Library/Developer/Xcode/DerivedData/AnonUnion-dnprncphbwlxlphjiptrydjahpge/Build/Intermediates/AnonUnion.build/Debug/AnonUnion.build/Objects-normal/x86_64/TestClass.o -x c++ /Users/jweinberg/Development/AnonUnion/AnonUnion/TestClass.cpp 1. parser at end of file 2. /Users/jweinberg/Development/AnonUnion/AnonUnion/TestClass.cpp:13:11: LLVM IR generation of declaration 'Test' 3. /Users/jweinberg/Development/AnonUnion/AnonUnion/TestClass.cpp:15:16: Generating code for declaration 'Test::TestClass::TestClass' clang: error: unable to execute command: Segmentation fault: 11 clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) Compiler version is Apple clang version 3.0 (tags/Apple/clang-211.9) (based on LLVM 3.0svn) -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 11 18:20:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 11 Sep 2011 18:20:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 10877] [x86 disassembler] movsd/vmovsd/movss/vmovss (alternate forms) not disassembled In-Reply-To: References: Message-ID: <20110911232040.510D62A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10877 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Craig Topper 2011-09-11 18:20:39 CDT --- Fixed in r139486 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 11 18:26:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 11 Sep 2011 18:26:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 10912] New: Assertion `FieldNo < FieldCount && "Invalid Field No"' Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10912 Summary: Assertion `FieldNo < FieldCount && "Invalid Field No"' Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: joerg at NetBSD.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7253) --> (http://llvm.org/bugs/attachment.cgi?id=7253) Reduced test case from Qt4 Backtrace: 6 clang 0x00000000013942a0 clang::ASTRecordLayout::getFieldOffset(unsigned int) const + 58 7 clang 0x0000000001d4fab6 8 clang 0x0000000001d50251 9 clang 0x0000000001d505a8 10 clang 0x0000000001d52af9 11 clang 0x0000000001d5232b 12 clang 0x0000000001d522e7 13 clang 0x0000000001d52e47 14 clang 0x0000000001d55bf0 clang::ASTContext::getASTRecordLayout(clang::RecordDecl const*) const + 458 15 clang 0x0000000001472441 16 clang 0x0000000001474cd7 clang::CodeGen::CodeGenTypes::ComputeRecordLayout(clang::RecordDecl const*, llvm::StructType*) + 83 17 clang 0x000000000137b84c clang::CodeGen::CodeGenTypes::ConvertRecordDeclType(clang::RecordDecl const*) + 572 18 clang 0x000000000137aa8c clang::CodeGen::CodeGenTypes::ConvertType(clang::QualType) + 166 19 clang 0x000000000137a2a6 clang::CodeGen::CodeGenTypes::ConvertTypeForMem(clang::QualType) + 36 20 clang 0x000000000137adf7 clang::CodeGen::CodeGenTypes::ConvertType(clang::QualType) + 1041 21 clang 0x000000000137a2a6 clang::CodeGen::CodeGenTypes::ConvertTypeForMem(clang::QualType) + 36 22 clang 0x00000000014a9ae1 clang::CodeGen::CodeGenFunction::ConvertTypeForMem(clang::QualType) + 47 23 clang 0x00000000013d2140 clang::CodeGen::CodeGenFunction::EmitAutoVarAlloca(clang::VarDecl const&) + 814 24 clang 0x00000000013d1de9 clang::CodeGen::CodeGenFunction::EmitAutoVarDecl(clang::VarDecl const&) + 39 25 clang 0x00000000013cfacb clang::CodeGen::CodeGenFunction::EmitVarDecl(clang::VarDecl const&) + 135 26 clang 0x00000000013cf9f1 clang::CodeGen::CodeGenFunction::EmitDecl(clang::Decl const&) + 189 27 clang 0x000000000147bd62 clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt const&) + 140 28 clang 0x0000000001479658 clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 282 29 clang 0x0000000001479123 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 75 30 clang 0x000000000147985e clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) + 306 31 clang 0x0000000001479617 clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 217 32 clang 0x0000000001479123 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 75 33 clang 0x00000000014aadd2 clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::CodeGen::FunctionArgList&) + 154 34 clang 0x00000000014ab180 clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 664 35 clang 0x0000000001362819 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl) + 917 36 clang 0x0000000001360459 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 503 37 clang 0x00000000013600cb clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 603 38 clang 0x000000000136580a clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 310 39 clang 0x000000000135a577 40 clang 0x0000000001359986 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 158 41 clang 0x00000000014cc5fc clang::ParseAST(clang::Sema&, bool) + 436 42 clang 0x0000000001202083 clang::ASTFrontendAction::ExecuteAction() + 265 43 clang 0x0000000001358fdf clang::CodeGenAction::ExecuteAction() + 957 44 clang 0x0000000001201cdd clang::FrontendAction::Execute() + 325 45 clang 0x00000000011e6dbc clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 740 46 clang 0x00000000011b9a7d clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 969 47 clang 0x00000000011aa63a cc1_main(char const**, char const**, char const*, void*) + 978 48 clang 0x00000000011b501c main + 496 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 12 05:15:43 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 12 Sep 2011 05:15:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 10913] New: friend function with cast is'nt working for templates Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10913 Summary: friend function with cast is'nt working for templates Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: mail at hanicka.net CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=7256) --> (http://llvm.org/bugs/attachment.cgi?id=7256) example code Friend functions is'nt working with cast and templates. Example code included. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 12 08:16:25 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 12 Sep 2011 08:16:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 10898] extraneous parentheses warnings In-Reply-To: References: Message-ID: <20110912131625.A827E2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10898 Hans Wennborg changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Hans Wennborg 2011-09-12 08:16:25 CDT --- Thanks for the bug report! Should be fixed in r139492. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 12 09:48:37 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 12 Sep 2011 09:48:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 10914] New: [AVX] Assertion failed: (false && "Couldn't find the register class") in X86 DAG->DAG Instruction Selection Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10914 Summary: [AVX] Assertion failed: (false && "Couldn't find the register class") in X86 DAG->DAG Instruction Selection Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7257) --> (http://llvm.org/bugs/attachment.cgi?id=7257) test case With the attached test case and top of tree, if you run: % llc -mattr=+avx bugpoint-reduced-simplified.ll The above assertion hits. The stack trace it gives looks bogus, though: Assertion failed: (false && "Couldn't find the register class"), function getSuperRegisterRegClass, file InstrEmitter.cpp, line 403. 0 llc 0x00000001097f8c52 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6494 1 llc 0x00000001097f9259 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 8037 2 libsystem_c.dylib 0x00007fff89fbbcfa _sigtramp + 26 3 libsystem_c.dylib 0x0000000109d70000 _sigtramp + 18446603342661239584 4 llc 0x00000001097f8bb6 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6338 5 llc 0x00000001097f8c08 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6420 6 llc 0x00000001092e5c5b llvm::MachineModuleInfo::setVariableDbgInfo(llvm::MDNode*, unsigned int, llvm::DebugLoc) + 10689 7 llc 0x00000001092e731b llvm::MachineModuleInfo::setVariableDbgInfo(llvm::MDNode*, unsigned int, llvm::DebugLoc) + 16513 8 llc 0x000000010937e55a llvm::DenseMap, llvm::DenseMapInfo, llvm::DenseMapInfo > >::FindAndConstruct(llvm::SUnit* const&) + 2468 9 llc 0x00000001093f7f63 llvm::SelectionDAGBuilder::Case::size() const + 36623 10 llc 0x00000001093f9502 llvm::SelectionDAGBuilder::Case::size() const + 42158 11 llc 0x00000001093fa16b llvm::SelectionDAGBuilder::Case::size() const + 45335 12 llc 0x00000001094d7394 llvm::MachineFunctionAnalysis::getPassName() const + 458 13 llc 0x000000010975fe5d llvm::cl::parser::~parser() + 26675 14 llc 0x000000010975b3fb llvm::cl::parser::~parser() + 7633 15 llc 0x000000010975fb5a llvm::cl::parser::~parser() + 25904 16 llc 0x0000000109760f71 llvm::cl::parser::~parser() + 31047 17 llc 0x0000000109760ff1 llvm::cl::parser::~parser() + 31175 18 llc 0x0000000108eaf5e3 19 llc 0x0000000108eade34 Stack dump: 0. Program arguments: llc -mattr=+avx bugpoint-reduced-simplified.ll 1. Running pass 'Function Pass Manager' on module 'bugpoint-reduced-simplified.ll'. 2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@f_fu' [1] 32586 illegal hardware instruction llc -mattr=+avx bugpoint-reduced-simplified.ll Here is where it actually seems to be happening: 6 ispc 0x000000010319e9cb llvm::InstrEmitter::EmitSubregNode(llvm::SDNode*, llvm::DenseMap, llvm::DenseMapInfo >&, bool, bool) + 1821 7 ispc 0x00000001031a008b llvm::InstrEmitter::EmitMachineNode(llvm::SDNode*, bool, bool, llvm::DenseMap, llvm::DenseMapInfo >&) + 139 8 ispc 0x000000010323440a llvm::ScheduleDAGSDNodes::EmitSchedule() + 1242 9 ispc 0x00000001032aded3 llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 4867 10 ispc 0x00000001032af472 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 284 11 ispc 0x00000001032b00db llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 1011 (Note that this is the same assertion that was hitting for a while and then went away for unknown reasons, as reported in http://llvm.org/bugs/show_bug.cgi?id=10845. However, a different test case seems to be hitting it now.) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 12 10:18:48 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 12 Sep 2011 10:18:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 10910] clang defines __EXCEPTIONS to 1 even if c++ exceptions are turned off In-Reply-To: References: Message-ID: <20110912151848.472712A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10910 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2011-09-12 10:18:47 CDT --- Fixed in Clang r139496. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 12 12:48:06 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 12 Sep 2011 12:48:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 10916] New: -disable-iv-rewrite performance summary Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10916 Summary: -disable-iv-rewrite performance summary Product: libraries Version: trunk Platform: PC OS/Version: All Status: ASSIGNED Severity: normal Priority: P Component: Loop Optimizer AssignedTo: atrick at apple.com ReportedBy: atrick at apple.com CC: llvmbugs at cs.uiuc.edu Canonical IVs pessimize code. Consequently, -disable-iv-rewrite currently results in the following benchmark speedups (and slowdowns). The slowdowns resulting from -disable-iv-rewrite will be tracked separately after closing this PR. Some are minor codegen (scheduling/regalloc) issues that are amplified by certain benchmarks. It's difficult to fix all of these without regressing elsewhere. Most of the significant regressions will be resolved be fixing LSR to avoid doing the wrong thing. It is probably a matter of teaching LSR when to bail out. For example, running ffbench on my nehalem takes: 0.93s on trunk 1.08s with -disable-iv-rewrite 0.87s with -disable-iv-rewrite + -disable-lsr (+7% net speedup) Here are the overall -O3 speedups with -disable-iv-rewrite (in terms of "trunk time" / "no iv rewrite time") >= 2%. ** x86 speedups SingleSource/Benchmarks/Misc/himenobmtxpa 64.00% SingleSource/Benchmarks/Misc/oourafft 25.00% MultiSource/Benchmarks/BitBench/uudecode/uudecode 22.00% SingleSource/Benchmarks/CoyoteBench/huffbench 16.00% MultiSource/Benchmarks/ASC_Sequoia/AMGmk/AMGmk 14.00% SingleSource/Benchmarks/Adobe-C++/loop_unroll 14.00% SingleSource/Benchmarks/Stanford/Puzzle 13.00% MultiSource/Benchmarks/MiBench/automotive-bitcount/automotive-bitcount 9.00% External/skidmarks10/skidmarks.Subtest.Quicksort 8.00% MultiSource/Benchmarks/FreeBench/pifft/pifft 8.00% External/Nurbs/nurbs 7.00% External/SPEC/CINT2000/253.perlbmk/253.perlbmk 6.00% External/skidmarks10/skidmarks.Subtest.BigMult 6.00% SingleSource/Benchmarks/Misc/lowercase 6.00% SingleSource/Benchmarks/Shootout-C++/except 6.00% MultiSource/Benchmarks/MiBench/telecomm-CRC32/telecomm-CRC32 5.00% External/SPEC/CFP2000/177.mesa/177.mesa 4.00% External/skidmarks10/skidmarks 4.00% MultiSource/Applications/minisat/minisat 4.00% MultiSource/Benchmarks/Fhourstones/fhourstones 4.00% MultiSource/Benchmarks/MiBench/telecomm-gsm/telecomm-gsm 4.00% SingleSource/Benchmarks/Misc/mandel-2 4.00% External/SPEC/CFP2006/447.dealII/447.dealII 3.00% External/SPEC/CINT2000/256.bzip2/256.bzip2 3.00% External/SPEC/CINT2006/464.h264ref/464.h264ref 3.00% MultiSource/Benchmarks/ASC_Sequoia/CrystalMk/CrystalMk 3.00% MultiSource/Benchmarks/MallocBench/espresso/espresso 3.00% MultiSource/Benchmarks/Prolangs-C++/primes/primes 3.00% SingleSource/Benchmarks/Shootout/ary3 3.00% External/SPEC/CFP2006/444.namd/444.namd 2.00% External/SPEC/CINT2006/403.gcc/403.gcc 2.00% External/skidmarks10/skidmarks.Subtest.Quant 2.00% MultiSource/Applications/lua/lua 2.00% MultiSource/Benchmarks/Fhourstones-3.1/fhourstones3.1 2.00% MultiSource/Benchmarks/Olden/bisort/bisort 2.00% MultiSource/Benchmarks/SciMark2-C/scimark2 2.00% MultiSource/Benchmarks/VersaBench/ecbdes/ecbdes 2.00% MultiSource/Benchmarks/sim/sim 2.00% SingleSource/Benchmarks/BenchmarkGame/recursive 2.00% ** x86 slowdowns SingleSource/Benchmarks/Misc/ffbench -14.00% SingleSource/Benchmarks/McGill/chomp -12.00% SingleSource/Benchmarks/Misc/fp-convert -10.00% External/skidmarks10/skidmarks.Subtest.Ellipticrypt -8.00% SingleSource/Benchmarks/Shootout/matrix -7.00% External/SPEC/CINT2006/401.bzip2/401.bzip2 -5.00% MultiSource/Benchmarks/mafft/pairlocalalign -4.00% External/SPEC/CINT2006/471.omnetpp/471.omnetpp -3.00% External/skidmarks10/skidmarks.Subtest.Q3 -3.00% MultiSource/Applications/viterbi/viterbi -3.00% MultiSource/Benchmarks/BitBench/drop3/drop3 -3.00% MultiSource/Benchmarks/VersaBench/8b10b/8b10b -3.00% SingleSource/Benchmarks/Misc-C++/bigfib -3.00% SingleSource/Benchmarks/Misc/ReedSolomon -3.00% SingleSource/Benchmarks/Shootout-C++/fibo -3.00% SingleSource/Benchmarks/Shootout/fib2 -3.00% External/SPEC/CFP2000/179.art/179.art -2.00% MultiSource/Applications/JM/lencod/lencod -2.00% MultiSource/Benchmarks/Ptrdist/yacr2/yacr2 -2.00% SingleSource/Benchmarks/Shootout/sieve -2.00% ** ARM speedups External/skidmarks10/skidmarks.Subtest.Quicksort 14.00% SingleSource/Benchmarks/Misc/oourafft 11.00% External/SPEC/CFP2006/470.lbm/470.lbm 9.00% SingleSource/Benchmarks/Shootout-C++/ary2 9.00% MultiSource/Benchmarks/Olden/health/health 8.00% SingleSource/Benchmarks/Shootout-C++/hash2 8.00% External/skidmarks10/skidmarks.Subtest.FFT 7.00% SingleSource/Benchmarks/Misc/flops-4 7.00% SingleSource/Benchmarks/Misc/flops-5 7.00% External/SPEC/CINT2006/456.hmmer/456.hmmer 6.00% SingleSource/Benchmarks/Misc/flops-7 6.00% External/SPEC/CFP2000/177.mesa/177.mesa 5.00% External/SPEC/CINT2006/464.h264ref/464.h264ref 5.00% External/SPEC/CINT95/130.li/130.li 5.00% External/skidmarks10/skidmarks.Subtest.IntToFloat 5.00% MultiSource/Applications/aha/aha 5.00% MultiSource/Benchmarks/FreeBench/fourinarow/fourinarow 5.00% External/skidmarks10/skidmarks.Subtest.ParseVid 4.00% MultiSource/Applications/lemon/lemon 4.00% SingleSource/Benchmarks/Shootout/ary3 4.00% SingleSource/Benchmarks/Shootout/hash 4.00% External/SPEC/CINT2000/175.vpr/175.vpr 3.00% External/SPEC/CINT2000/252.eon/252.eon 3.00% External/skidmarks10/skidmarks 3.00% MultiSource/Applications/ClamAV/clamscan 3.00% MultiSource/Benchmarks/ASC_Sequoia/AMGmk/AMGmk 3.00% MultiSource/Benchmarks/MiBench/telecomm-gsm/telecomm-gsm 3.00% External/SPEC/CINT2000/164.gzip/164.gzip 2.00% External/SPEC/CINT2000/300.twolf/300.twolf 2.00% MultiSource/Applications/spiff/spiff 2.00% MultiSource/Applications/sqlite3/sqlite3 2.00% MultiSource/Benchmarks/BitBench/drop3/drop3 2.00% MultiSource/Benchmarks/MallocBench/espresso/espresso 2.00% MultiSource/Benchmarks/McCat/17-bintr/bintr 2.00% MultiSource/Benchmarks/Ptrdist/yacr2/yacr2 2.00% MultiSource/Benchmarks/Trimaran/enc-pc1/enc-pc1 2.00% MultiSource/Benchmarks/Trimaran/enc-rc4/enc-rc4 2.00% SingleSource/Benchmarks/Adobe-C++/functionobjects 2.00% SingleSource/Benchmarks/Adobe-C++/stepanov_vector 2.00% SingleSource/Benchmarks/McGill/queens 2.00% SingleSource/Benchmarks/Misc/flops 2.00% SingleSource/Benchmarks/Shootout-C++/ary3 2.00% ** ARM slowdowns SingleSource/Benchmarks/Shootout/sieve -16.00% SingleSource/Benchmarks/McGill/chomp -15.00% SingleSource/Benchmarks/Misc-C++/bigfib -11.00% External/skidmarks10/skidmarks.Subtest.PixBlend -9.00% MultiSource/Benchmarks/McCat/04-bisect/bisect -8.00% MultiSource/Benchmarks/MiBench/automotive-susan/automotive-susan -8.00% MultiSource/Benchmarks/Prolangs-C++/ocean/ocean -8.00% SingleSource/Benchmarks/CoyoteBench/huffbench -8.00% SingleSource/Benchmarks/Shootout-C++/ackermann -8.00% External/skidmarks10/skidmarks.Subtest.MPEG -5.00% MultiSource/Applications/siod/siod -5.00% MultiSource/Benchmarks/FreeBench/analyzer/analyzer -5.00% MultiSource/Benchmarks/FreeBench/pcompress2/pcompress2 -5.00% MultiSource/Applications/lua/lua -4.00% MultiSource/Benchmarks/Olden/treeadd/treeadd -3.00% SingleSource/Benchmarks/Adobe-C++/simple_types_loop_invariant -3.00% SingleSource/Benchmarks/Misc/fp-convert -3.00% MultiSource/Benchmarks/VersaBench/ecbdes/ecbdes -2.00% -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 12 13:54:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 12 Sep 2011 13:54:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 10911] Anonymous struct as member in non POD class fails to compile under certain situations In-Reply-To: References: Message-ID: <20110912185428.309DB2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10911 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |WORKSFORME --- Comment #2 from Eli Friedman 2011-09-12 13:54:27 CDT --- This is working with trunk clang. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 12 16:24:54 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 12 Sep 2011 16:24:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 10907] X86 vector comparisons wrong way round! In-Reply-To: References: Message-ID: <20110912212454.0B1842A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10907 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Bruno Cardoso Lopes 2011-09-12 16:24:53 CDT --- Hi Duncan, Fixed in r139528 and r139541! :) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 12 17:35:01 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 12 Sep 2011 17:35:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 10917] New: [x86 disassembler] vpblendvb operands incorrect Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10917 Summary: [x86 disassembler] vpblendvb operands incorrect Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: kkhoo at perfwizard.com CC: llvmbugs at cs.uiuc.edu According to the "Intel? 64 and IA-32 Architectures Software Developer?s Manual Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 4-69: VEX.NDS.128.66.0F3A.W0 4C /r /is4 VPBLENDVB xmm1, xmm2, xmm3/m128, xmm4 Select byte values from xmm2 and xmm3/m128 using mask bits in the specified mask register, xmm4, and store the values into xmm1. Clang on OSX assembles this: vpblendvb %xmm0, %xmm1, %xmm2, %xmm3 as: C4 E3 69 4C D9 00 But llvm-mc built from r139522 shows: $ echo '0xc4 0xe3 0x69 0x4c 0xd9 0x00'| ./llvm-mc -disassemble -triple="x86_64" -x86-asm-syntax=intel vpblendvb XMM3, XMM2, XMM1, 0 $ echo '0xc4 0xe3 0x69 0x4c 0xd9 0x00'| ./llvm-mc -disassemble -triple="x86_64" vpblendvb $0, %xmm1, %xmm2, %xmm3 The mask register appears to be printed as an immediate operand. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 12 18:00:30 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 12 Sep 2011 18:00:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 10914] [AVX] Assertion failed: (false && "Couldn't find the register class") in X86 DAG->DAG Instruction Selection In-Reply-To: References: Message-ID: <20110912230030.737D22A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10914 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-09-12 18:00:30 CDT --- Fixed in r139553! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 12 19:51:20 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 12 Sep 2011 19:51:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 10918] New: files placed in source directory during make or make check Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10918 Summary: files placed in source directory during make or make check Product: Build scripts Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Makefiles AssignedTo: unassignedbugs at nondot.org ReportedBy: rkotler at mips.com CC: llvmbugs at cs.uiuc.edu Sometimes as a result of make, files are placed in the source directory (as opposed to the build directory). This can cause problems and lead to false failures later sometimes. In one source directory, the following files appeared: docs/SegmentedStacks.html # test/Analysis/BasicAA/memset_pattern.ll # test/CodeGen/ARM/2011-08-29-SchedCycle.ll # test/CodeGen/ARM/2011-08-29-ldr_pre_imm.ll # test/CodeGen/ARM/atomic-64bit.ll # test/CodeGen/ARM/elf-lcomm-align.ll # test/CodeGen/ARM/subreg-remat.ll # test/CodeGen/PowerPC/cr1eq.ll # test/CodeGen/X86/2011-08-29-BlockConstant.ll # test/CodeGen/X86/MachineSink-DbgValue.ll # test/CodeGen/X86/segmented-stacks.ll # test/MC/ARM/basic-thumb2-instructions.s # test/MC/ARM/thumb-nop.s # test/MC/ARM/thumb2-diagnostics.s # test/MC/Disassembler/ARM/thumb2.txt # test/Transforms/DeadStoreElimination/2011-09-06-EndOfFunction.ll # test/Transforms/DeadStoreElimination/2011-09-06-MemCpy.ll # test/Transforms/GVN/pr10820.ll # test/Transforms/InstSimplify/2011-09-05-InsertExtractValue.ll # test/Transforms/LoopUnroll/pr10813.ll # test/Transforms/SCCP/atomic-load-store.ll # test/Transforms/SimplifyCFG/2011-09-05-TrivialLPad.ll In another: # test/CodeGen/ARM/2011-09-09-OddVectorDivision.s -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 12 21:36:43 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 12 Sep 2011 21:36:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 10919] New: CStringChecker.cpp Size argument is greater than the length of the destination buffer Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10919 Summary: CStringChecker.cpp Size argument is greater than the length of the destination buffer 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: wdzz2008 at sina.com CC: llvmbugs at cs.uiuc.edu test example: #include #include #include typedef struct _XMLNode { char* tag; /* Tag name */ } XMLNode; int XML_parse_1string(char* str, XMLNode* xmlnode) { int n ,tag_end = 0; n = 1+tag_end; xmlnode->tag = (char*)malloc(n - tag_end); if (xmlnode->tag == NULL) return 0; strncpy(xmlnode->tag, str+1+tag_end, n-1-tag_end); //it is not a weakness return 0; } this example result a weakness which is "Size argument is greater than the length of the destination buffer", but really it is not a weakness -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 00:23:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 00:23:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 10920] New: 401.bzip2 fails with -arch i386 -enable-iv-rewrite=false Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10920 Summary: 401.bzip2 fails with -arch i386 -enable-iv-rewrite=false Product: libraries Version: trunk Platform: PC OS/Version: All Status: ASSIGNED Severity: normal Priority: P Component: Loop Optimizer AssignedTo: atrick at apple.com ReportedBy: atrick at apple.com CC: llvmbugs at cs.uiuc.edu Miscompilation caused by r139579: disable IV rewrite. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 01:55:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 01:55:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 10848] [x86 disassembler] vmovdqa/vmovdqu not disassembled In-Reply-To: References: Message-ID: <20110913065540.3B74D2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10848 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |craig.topper at gmail.com Resolution| |FIXED --- Comment #2 from Craig Topper 2011-09-13 01:55:39 CDT --- Fixed in r139588. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 02:06:39 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 02:06:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 10678] [x86 disassembler] vandpd/vandps/vandnpd/vandnps disassembled incorrectly In-Reply-To: References: Message-ID: <20110913070639.5045B2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10678 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #11 from Craig Topper 2011-09-13 02:06:38 CDT --- Believe CMPs were fixed by r138553. However, that does not cover the issues in bug 10676. But at least they will decode with L=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 Sep 13 02:09:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 02:09:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 10875] [x86 disassembler] movs comes up blank with intel syntax In-Reply-To: References: Message-ID: <20110913070905.E8A672A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10875 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 02:38:08 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 02:38:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 10851] [x86 disassembler] vmovmskpd disassembled when reserved bits not set In-Reply-To: References: Message-ID: <20110913073808.6B9352A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10851 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |craig.topper at gmail.com Resolution| |FIXED --- Comment #2 from Craig Topper 2011-09-13 02:38:07 CDT --- Fixed in r139591. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 05:10:16 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 05:10:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 10063] Problems with 'switch' and destructors in control flow graph In-Reply-To: References: Message-ID: <20110913101016.7230B2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10063 Chandler Carruth changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |chandlerc at gmail.com Resolution| |FIXED --- Comment #3 from Chandler Carruth 2011-09-13 05:10:15 CDT --- I believe all of these test cases now work thanks to r139586. I think some even that weren't in this example now work. =] The way implicit destructors marked with no-return are handled by the CFG has been significantly changed to be more principled, so new test cases that misbehave should go under new reports. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 06:30:56 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 06:30:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 10921] New: [VECTOR-SELECT] needed to implement integer-promotion of the vselect node Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10921 Summary: [VECTOR-SELECT] needed to implement integer-promotion of the vselect node Product: libraries Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: Core LLVM classes AssignedTo: unassignedbugs at nondot.org ReportedBy: nadav.rotem at intel.com CC: llvmbugs at cs.uiuc.edu For example, the test below would fail without it. define void at vsel_i8(<4 x i8>* %v1, <4 x i8>* %v2) { %A = load <4 x i8>* %v1 %B = load <4 x i8>* %v2 %vsel = select <4 x i1> , <4 x i8> %A, <4 x i8> %B store <4 x i8 > %vsel, <4 x i8>* %v1 ret void } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 07:26:48 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 07:26:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 10922] New: Precompiled headers bug in relation to Boost.Python Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10922 Summary: Precompiled headers bug in relation to Boost.Python Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: luc_j_bourhis at mac.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=7260) --> (http://llvm.org/bugs/attachment.cgi?id=7260) Source file crashing clang Summary: a source file, hybrid_times_ext.cpp, using Boost.Python crashes clang when using a precompiled header, precompiled.h, whereas it compiles fine otherwise. Here are the steps to reproduce the problem (note that /Users/luc/Developer/cctbx/boost shall be replaced by the path to the top of your installed Boost). ~> ls hybrid_times_ext.cpp precompiled.h ~> cat precompiled.h /// List headers to precompile here #include #include #include #include #include #include ~> clang++ -o precompiled.h.gch -c -DBOOST_ALL_NO_LIB -DBOOST_DISABLE_THREADS -DBOOST_PYTHON_MAX_BASES=2 -I/Users/luc/Developer/cctbx/boost -x c++-header -fPIC -fno-strict-aliasing -Wno-c++0x-extensions -Wno-array-bounds -DNDEBUG -O3 -ffast-math -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 precompiled.h ~> ls hybrid_times_ext.cpp precompiled.h precompiled.h.gch ~> clang++ -c -DBOOST_ALL_NO_LIB -DBOOST_DISABLE_THREADS -DBOOST_PYTHON_MAX_BASES=2 -I/Users/luc/Developer/cctbx/boost -fPIC -fno-strict-aliasing -Wno-c++0x-extensions -Wno-array-bounds -DNDEBUG -O3 -ffast-math -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 hybrid_times_ext.cpp ~> clang++ -c -DBOOST_ALL_NO_LIB -DBOOST_DISABLE_THREADS -DBOOST_PYTHON_MAX_BASES=2 -I/Users/luc/Developer/cctbx/boost -fPIC -fno-strict-aliasing -Wno-c++0x-extensions -Wno-array-bounds -DNDEBUG -O3 -ffast-math -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -include precompiled.h hybrid_times_ext.cpp 0 clang 0x000000010127d0f2 llvm::SmallVectorImpl::resize(unsigned int) + 2498 1 clang 0x000000010127d6e9 llvm::SmallVectorImpl::resize(unsigned int) + 4025 2 libSystem.B.dylib 0x00007fff851131ba _sigtramp + 26 3 libSystem.B.dylib 0x0000000102014c00 _sigtramp + 2096110176 4 clang 0x00000001007eb317 llvm::SmallVectorTemplateBase::grow(unsigned long) + 17703 5 clang 0x00000001007eb94c llvm::SmallVectorTemplateBase::grow(unsigned long) + 19292 6 clang 0x00000001007eacd6 llvm::SmallVectorTemplateBase::grow(unsigned long) + 16102 7 clang 0x00000001007ea17b llvm::SmallVectorTemplateBase::grow(unsigned long) + 13195 8 clang 0x00000001007e8ea4 llvm::SmallVectorTemplateBase::grow(unsigned long) + 8372 9 clang 0x00000001007efabb llvm::SmallVectorTemplateBase::grow(unsigned long) + 36043 10 clang 0x00000001007e76dd llvm::SmallVectorTemplateBase::grow(unsigned long) + 2285 11 clang 0x0000000100211d23 llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 8595 12 clang 0x00000001002143a0 llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 18448 13 clang 0x00000001002186ba llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 35626 14 clang 0x0000000100223f4f llvm::IRBuilder >::CreatePHI(llvm::Type*, unsigned int, llvm::Twine const&) + 1439 15 clang 0x000000010020b72a clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 170 16 clang 0x00000001000d1b04 llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 60228 17 clang 0x00000001000aa556 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 76758 18 clang 0x00000001000b6295 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 125205 19 clang 0x00000001000ce26b llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 45739 20 clang 0x00000001000ce3dc llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 46108 21 clang 0x00000001000ce620 llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 46688 22 clang 0x00000001000c331f llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 863 23 clang 0x00000001000d16dd llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 59165 24 clang 0x00000001000aa556 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 76758 25 clang 0x00000001000ce5f3 llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 46643 26 clang 0x00000001000c331f llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 863 27 clang 0x00000001000d16dd llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 59165 28 clang 0x00000001000aa556 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 76758 29 clang 0x00000001000d2ffd void clang::ASTDeclReader::VisitRedeclarable(clang::Redeclarable*) + 173 30 clang 0x00000001000c8983 llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 22979 31 clang 0x00000001000c8ee8 llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 24360 32 clang 0x00000001000ce5d2 llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 46610 33 clang 0x00000001000c331f llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 863 34 clang 0x00000001000d16dd llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 59165 35 clang 0x00000001000aa556 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 76758 36 clang 0x00000001000cf134 llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 49524 37 clang 0x00000001000cf544 llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 50564 38 clang 0x00000001000cf712 llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 51026 39 clang 0x00000001000c331f llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 863 40 clang 0x00000001000d16dd llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 59165 41 clang 0x00000001000aa556 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 76758 42 clang 0x00000001000cf476 llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 50358 43 clang 0x00000001000cf712 llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 51026 44 clang 0x00000001000c331f llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 863 45 clang 0x00000001000d16dd llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 59165 46 clang 0x00000001000aa556 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 76758 47 clang 0x00000001000cf246 llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 49798 48 clang 0x00000001000cf712 llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 51026 49 clang 0x00000001000c331f llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 863 50 clang 0x00000001000d16dd llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 59165 51 clang 0x00000001000aa556 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 76758 52 clang 0x00000001000af754 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 97748 53 clang 0x00000001000aebfb clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 94843 54 clang 0x00000001000aa169 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 75753 55 clang 0x00000001000ac967 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 85991 56 clang 0x00000001000aa169 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 75753 57 clang 0x00000001000c900e llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 24654 58 clang 0x00000001000c915b llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 24987 59 clang 0x00000001000c92c5 llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 25349 60 clang 0x00000001000c331f llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 863 61 clang 0x00000001000d16dd llvm::BitstreamCursor::ReadAbbreviatedField(llvm::BitCodeAbbrevOp const&, llvm::SmallVectorImpl&) + 59165 62 clang 0x00000001000aa556 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 76758 63 clang 0x00000001000b2d84 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 111620 64 clang 0x000000010022d850 clang::MSP430InterruptAttr* clang::Decl::getAttr() const + 688 65 clang 0x000000010020aa80 llvm::DenseMap, llvm::ValueMapConfig, llvm::DenseMapInfo > >, llvm::TrackingVH, llvm::DenseMapInfo, llvm::ValueMapConfig, llvm::DenseMapInfo > > >, llvm::DenseMapInfo > >::init(unsigned int) + 3312 66 clang 0x000000010002078b llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 13403 67 clang 0x000000010000a7b5 llvm::SmallVectorImpl::insert(char const**, char const* const&) + 3013 68 clang 0x0000000100002d18 69 clang 0x0000000100006b62 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 850 70 clang 0x0000000100001734 Stack dump: 0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-apple-macosx10.6.8 -emit-obj -disable-free -main-file-name hybrid_times_ext.cpp -pic-level 2 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 123.2 -coverage-file hybrid_times_ext.o -resource-dir /usr/local/bin/../lib/clang/3.0 -include-pch precompiled.h.gch -D BOOST_ALL_NO_LIB -D BOOST_DISABLE_THREADS -D BOOST_PYTHON_MAX_BASES=2 -D NDEBUG -I /Users/luc/Developer/cctbx/boost -I /System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -O3 -Wno-c++0x-extensions -Wno-array-bounds -fdeprecated-macro -ferror-limit 19 -fmessage-length 104 -stack-protector 1 -fblocks -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o hybrid_times_ext.o -x c++ hybrid_times_ext.cpp 1. hybrid_times_ext.cpp:4:1: current parser token 'namespace' 2. /Users/luc/Developer/cctbx/boost/boost/smart_ptr/detail/operator_bool.hpp:45:5: LLVM IR generation of declaration 'boost::shared_ptr::operator type-parameter-0-0 *::*' 3. /Users/luc/Developer/cctbx/boost/boost/smart_ptr/detail/operator_bool.hpp:45:5: Mangling declaration 'boost::shared_ptr::operator type-parameter-0-0 *::*' clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Preprocessed source(s) are located at: clang: note: diagnostic msg: /var/folders/Zq/ZqzlClQvEKGueAD-kXuIXE+++TI/-Tmp-/hybrid_times_ext-nXYOY8.ii -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 08:39:00 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 08:39:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 10923] New: Optimiser problem: shows up in Python's pow() Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10923 Summary: Optimiser problem: shows up in Python's pow() Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: adam at NetBSD.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7262) --> (http://llvm.org/bugs/attachment.cgi?id=7262) Test program to demonstrate the problem. The problem showed up when I compiled Python 2.7.2 with Clang-trunk (dated September 23, 2011), but exactly the same problem occurs for Clang from Xcode 4.2 beta 7 (tags/Apple/clang-211.9). Running 'python' compiled with clang-3.0-trunk: >>> 2**63 -9223372036854775808 >>> 2**64 0 Correct results should be: >>> 2**63 9223372036854775808L >>> 2**64 18446744073709551616L When Python is compiled without optimisations (-O0), the problems does not occur. I extracted int_pow() function from Python 2.7.2 source code (Objects/intobject.c) and made a test program (attached as pow.c). Compiling and running with and without optimisations gives different results: % clang -Wall -o pow pow.c ; ./pow case 2: PyLong_Type.tp_as_number->nb_power 0 % clang -Wall -O1 -o pow pow.c ; ./pow 0 The function works correctly after switching types from "long" to "unsigned long". I guess some operations are optimised out and the condition leading to "case 2" never happends. 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 Tue Sep 13 08:44:00 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 08:44:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 10923] Optimiser problem: shows up in Python's pow() In-Reply-To: References: Message-ID: <20110913134400.BB4112A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10923 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |baldrick at free.fr Resolution| |INVALID --- Comment #1 from Duncan Sands 2011-09-13 08:44:00 CDT --- The C language standard says that overflowing signed arithmetic results in undefined behaviour. Since temp / prev != prev can only be true if there was a signed arithmetic overflow, the compiler is allowed to assume that this never occurs. Use unsigned arithmetic instead. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 12:13:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 12:13:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 10907] X86 vector comparisons wrong way round! In-Reply-To: References: Message-ID: <20110913171328.9FFE42A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10907 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #7 from Bruno Cardoso Lopes 2011-09-13 12:13:27 CDT --- Hi Matt, You seem to be right! Will investigate further! 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 Sep 13 13:07:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 13:07:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 10924] New: Failed assertion: `Access != AS_none && "Access specifier is AS_none inside a record decl"' Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10924 Summary: Failed assertion: `Access != AS_none && "Access specifier is AS_none inside a record decl"' Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pipping at exherbo.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=7263) --> (http://llvm.org/bugs/attachment.cgi?id=7263) delta-reduced input (not valid code but manages to make clang++ crash) Although the same assertion fails in bug #8385, this does not look related to me. % clang++ -c test-edges0-memGKN-bcpp.ii test-edges0-memGKN-bcpp.ii:7:46: error: out-of-line definition of 'BaryCenterArray' does not match any declaration in 'ReferenceElement' class ReferenceElement< Topology, ctype > :: BaryCenterArray ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ clang: DeclBase.cpp:636: void clang::Decl::CheckAccessDeclContext() const: Assertion `Access != AS_none && "Access specifier is AS_none inside a record decl"' failed. 0 libLLVM-3.0svn.so 0x00007ffff738b03f 1 libLLVM-3.0svn.so 0x00007ffff738b4e9 2 libpthread.so.0 0x00007ffff6557f70 3 libc.so.6 0x00007ffff58755c5 gsignal + 53 4 libc.so.6 0x00007ffff58768c5 abort + 389 5 libc.so.6 0x00007ffff586e235 __assert_fail + 245 6 clang 0x0000000000c3df16 7 clang 0x00000000007aac04 clang::Sema::SetMemberAccessSpecifier(clang::NamedDecl*, clang::NamedDecl*, clang::AccessSpecifier) + 372 8 clang 0x000000000094ad3f clang::Sema::CheckClassTemplate(clang::Scope*, unsigned int, clang::Sema::TagUseKind, clang::SourceLocation, clang::CXXScopeSpec&, clang::IdentifierInfo*, clang::SourceLocation, clang::AttributeList*, clang::TemplateParameterList*, clang::AccessSpecifier, unsigned int, clang::TemplateParameterList**) + 2863 9 clang 0x000000000082eab9 clang::Sema::ActOnTag(clang::Scope*, unsigned int, clang::Sema::TagUseKind, clang::SourceLocation, clang::CXXScopeSpec&, clang::IdentifierInfo*, clang::SourceLocation, clang::AttributeList*, clang::AccessSpecifier, clang::ASTMultiPtr, bool&, bool&, bool, bool, clang::ActionResult, false>) + 441 10 clang 0x000000000078270d clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 4525 11 clang 0x000000000077457a clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 2778 12 clang 0x0000000000761828 clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::AccessSpecifier) + 696 13 clang 0x00000000007613a3 clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 723 14 clang 0x000000000076101a clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 330 15 clang 0x0000000000773604 clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 372 16 clang 0x0000000000769aeb clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 1659 17 clang 0x0000000000769400 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 256 18 clang 0x0000000000751fde clang::ParseAST(clang::Sema&, bool) + 318 19 clang 0x000000000065b1ab clang::CodeGenAction::ExecuteAction() + 779 20 clang 0x000000000055ea17 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 983 21 clang 0x0000000000549920 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2832 22 clang 0x0000000000541970 cc1_main(char const**, char const**, char const*, void*) + 6128 23 clang 0x0000000000545e48 main + 632 24 libc.so.6 0x00007ffff5861c7d __libc_start_main + 253 25 clang 0x00000000005400b9 Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name test-edges0-memGKN-bcpp.ii -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.1 -momit-leaf-frame-pointer -coverage-file test-edges0-memGKN-bcpp.o -resource-dir /usr/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length 238 -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o test-edges0-memGKN-bcpp.o -x c++-cpp-output test-edges0-memGKN-bcpp.ii 1. test-edges0-memGKN-bcpp.ii:8:1: current parser token '{' clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs. % -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 13:11:16 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 13:11:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 10925] New: Segmentation fault on invalid code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10925 Summary: Segmentation fault on invalid code Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pipping at exherbo.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com % clang++ -c test-edges0-memGKN2-bcpp.ii test-edges0-memGKN2-bcpp.ii:11:25: error: use of undeclared identifier 'std' template ^ test-edges0-memGKN2-bcpp.ii:11:44: error: use of undeclared identifier 'std' template ^ 0 libLLVM-3.0svn.so 0x00007ffff738b03f 1 libLLVM-3.0svn.so 0x00007ffff738b4e9 2 libpthread.so.0 0x00007ffff6557f70 3 clang 0x0000000000c558d8 clang::DeclarationName::getFETokenInfoAsVoid() const + 248 4 clang 0x00000000007a444e clang::IdentifierResolver::begin(clang::DeclarationName) + 14 5 clang 0x0000000000815f45 clang::Sema::PushOnScopeChains(clang::NamedDecl*, clang::Scope*, bool) + 165 6 clang 0x0000000000867d53 clang::Sema::ActOnUsingDeclaration(clang::Scope*, clang::AccessSpecifier, bool, clang::SourceLocation, clang::CXXScopeSpec&, clang::UnqualifiedId&, clang::AttributeList*, bool, clang::SourceLocation) + 851 7 clang 0x000000000078081b clang::Parser::ParseUsingDeclaration(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::SourceLocation, clang::SourceLocation&, clang::AccessSpecifier, clang::Decl**) + 2219 8 clang 0x00000000007845d2 clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject*) + 1538 9 clang 0x00000000007833a0 clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int, clang::Decl*) + 1472 10 clang 0x00000000007827ee clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 4750 11 clang 0x000000000077457a clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 2778 12 clang 0x0000000000761828 clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::AccessSpecifier) + 696 13 clang 0x00000000007613a3 clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 723 14 clang 0x000000000076101a clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 330 15 clang 0x0000000000773604 clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 372 16 clang 0x0000000000769aeb clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 1659 17 clang 0x000000000077f5a2 clang::Parser::ParseInnerNamespace(std::vector >&, std::vector >&, std::vector >&, unsigned int, clang::SourceLocation&, clang::SourceLocation&, clang::ParsedAttributes&, clang::SourceLocation&) + 226 18 clang 0x000000000077f11f clang::Parser::ParseNamespace(unsigned int, clang::SourceLocation&, clang::SourceLocation) + 3343 19 clang 0x000000000077367f clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 495 20 clang 0x0000000000769aeb clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 1659 21 clang 0x0000000000769400 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 256 22 clang 0x0000000000751fde clang::ParseAST(clang::Sema&, bool) + 318 23 clang 0x000000000065b1ab clang::CodeGenAction::ExecuteAction() + 779 24 clang 0x000000000055ea17 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 983 25 clang 0x0000000000549920 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2832 26 clang 0x0000000000541970 cc1_main(char const**, char const**, char const*, void*) + 6128 27 clang 0x0000000000545e48 main + 632 28 libc.so.6 0x00007ffff5861c7d __libc_start_main + 253 29 clang 0x00000000005400b9 Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name test-edges0-memGKN2-bcpp.ii -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.1 -momit-leaf-frame-pointer -coverage-file test-edges0-memGKN2-bcpp.o -resource-dir /usr/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length 238 -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o test-edges0-memGKN2-bcpp.o -x c++-cpp-output test-edges0-memGKN2-bcpp.ii 1. test-edges0-memGKN2-bcpp.ii:17:3: current parser token '}' 2. test-edges0-memGKN2-bcpp.ii:1:1: parsing namespace 'GenericGeometry' 3. test-edges0-memGKN2-bcpp.ii:12:3: parsing struct/union/class body 'MockGeometry' clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs. % -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 15:00:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 15:00:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 10028] likely wrong code bug In-Reply-To: References: Message-ID: <20110913200028.86A0A2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10028 Owen Anderson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |resistor at mac.com Resolution| |FIXED --- Comment #4 from Owen Anderson 2011-09-13 15:00:27 CDT --- Looks like r139276 fixed this. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 15:15:11 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 15:15:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 10907] X86 vector comparisons wrong way round! In-Reply-To: References: Message-ID: <20110913201511.D7BA72A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10907 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #15 from Duncan Sands 2011-09-13 15:15:11 CDT --- All the testcases here now pass thanks to Bruno and Nadav. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 15:51:48 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 15:51:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 10003] SelectionDAG instruction selection performs CSE on nodes with debug information In-Reply-To: References: Message-ID: <20110913205149.02B3A2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10003 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #9 from Devang Patel 2011-09-13 15:51:47 CDT --- This somewhat unfortunate side effect of using DAG at -O0. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 16:04:51 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 16:04:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 10144] Debug info slows down compilation a lot at -O2 In-Reply-To: References: Message-ID: <20110913210451.3AF9B2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10144 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Devang Patel 2011-09-13 16:04:50 CDT --- This compile time slowdown has been, most likely by LiveDebugVariable's change to use LexicalScopes. Please verify using TOT. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 16:06:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 16:06:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 9985] Codegen fails when -gdwarf-2 is set In-Reply-To: References: Message-ID: <20110913210622.DCAEB2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9985 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Devang Patel 2011-09-13 16:06:21 CDT --- John fixed this in r133761. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 16:07:30 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 16:07:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 9912] ScheduleDAGRRList.cpp does not take debug information into account In-Reply-To: References: Message-ID: <20110913210730.C5EE62A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9912 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 16:14:21 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 16:14:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 9550] Crash when calling addRequiredTransitive from a ModulePass. In-Reply-To: References: Message-ID: <20110913211421.2A6CE2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9550 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 16:28:02 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 16:28:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 9104] DwarfDebug no longer allows 16-bit language IDs In-Reply-To: References: Message-ID: <20110913212802.0B6C52A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9104 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Devang Patel 2011-09-13 16:28:01 CDT --- Fixed by r126339. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 16:38:07 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 16:38:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 10922] Precompiled headers bug in relation to Boost.Python In-Reply-To: References: Message-ID: <20110913213807.7B3CF2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10922 Argyrios Kyrtzidis changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |akyrtzi at gmail.com Resolution| |FIXED --- Comment #4 from Argyrios Kyrtzidis 2011-09-13 16:38:06 CDT --- r139644 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 16:43:52 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 16:43:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 7577] no debug info is generated for "find_strings" In-Reply-To: References: Message-ID: <20110913214352.4E0C32A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7577 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Devang Patel 2011-09-13 16:43:51 CDT --- This has been fixed. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 16:49:36 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 16:49:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 10868] libclang needs an API wrapping SourceManager::getPresumedLoc In-Reply-To: References: Message-ID: <20110913214936.26B652A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10868 Argyrios Kyrtzidis changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #12 from Argyrios Kyrtzidis 2011-09-13 16:49:35 CDT --- Committed in r139647, 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 Sep 13 16:50:15 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 16:50:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 5922] DIDerivedType::replaceAllUsesWith should not RAUW on MDNodes In-Reply-To: References: Message-ID: <20110913215015.BBEB12A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5922 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Devang Patel 2011-09-13 16:50:15 CDT --- We have developed an interface to create temp. MDNodes that are not uniqued and safe for RAUW. MDNode::getTemporary(). -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 16:54:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 16:54:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 4228] Duplicate debug symbol in recursively included file In-Reply-To: References: Message-ID: <20110913215450.A6F732A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4228 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #10 from Devang Patel 2011-09-13 16:54:49 CDT --- The original test case has been fixed. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 16:57:36 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 16:57:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 4018] llvm.used is undocumented In-Reply-To: References: Message-ID: <20110913215736.9FE472A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4018 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Devang Patel 2011-09-13 16:57:36 CDT --- llvm.used is now documented @ http://llvm.org/docs/LangRef.html#intg_used Thanks 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 Tue Sep 13 17:01:55 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 17:01:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 2734] write(buf) points to uninitialised bytes In-Reply-To: References: Message-ID: <20110913220155.AE6742A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=2734 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #5 from Devang Patel 2011-09-13 17:01:54 CDT --- Closing as "won't fix". Alternative choices are either clang++ or drangon-egg. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 13 17:07:27 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 13 Sep 2011 17:07:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 1445] Allow redefinition of REAL_LD_FILE_NAME for changing linker In-Reply-To: References: Message-ID: <20110913220727.88D5F2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=1445 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 14 00:55:49 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 14 Sep 2011 00:55:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 10917] [x86 disassembler] vpblendvb operands incorrect In-Reply-To: References: Message-ID: <20110914055549.421002A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10917 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |craig.topper at gmail.com Resolution| |FIXED --- Comment #1 from Craig Topper 2011-09-14 00:55:48 CDT --- Fixed in r139690. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 14 01:00:56 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 14 Sep 2011 01:00:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 8873] [MC] Can't disassemble some x86 machine code In-Reply-To: References: Message-ID: <20110914060056.0EEFD2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8873 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |craig.topper at gmail.com Resolution| |FIXED --- Comment #8 from Craig Topper 2011-09-14 01:00:55 CDT --- Sub and mov cases were fixed in r139485. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 14 01:41:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 14 Sep 2011 01:41:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 10926] New: llvm-dwarfdump infinite loop Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10926 Summary: llvm-dwarfdump infinite loop 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: nicholas at mxc.ca CC: llvmbugs at cs.uiuc.edu, benny.kra at gmail.com Created an attachment (id=7268) --> (http://llvm.org/bugs/attachment.cgi?id=7268) testcase The attached file causes an infinite loop in llvm-dwarfdump: [...] .debug_aranges contents: ^C Program received signal SIGINT, Interrupt. 0x080691d1 in llvm::DWARFDebugArangeSet::extract (this=0xffffd750, data=..., offset_ptr=0xffffd770) at DWARFDebugArangeSet.cpp:82 82 while (first_tuple_offset < header_size) (gdb) bt #0 0x080691d1 in llvm::DWARFDebugArangeSet::extract (this=0xffffd750, data=..., offset_ptr=0xffffd770) at DWARFDebugArangeSet.cpp:82 #1 0x0806446d in llvm::DWARFContext::dump (this=0x80ed0d8, OS=...) at DWARFContext.cpp:26 #2 0x0804c00c in DumpInput (Filename=...) at llvm-dwarfdump.cpp:79 #3 0x0804d07f in std::for_each<__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >, void (*)(llvm::StringRef const&)> (__first=..., __last=..., __f=0x804bb5b ) at /usr/include/c++/4.6/bits/stl_algo.h:4302 #4 0x0804c158 in main (argc=2, argv=0xffffd9e4) at llvm-dwarfdump.cpp:94 (gdb) p first_tuple_offset $1 = 0 (gdb) p header_size $2 = 12 (gdb) n 83 first_tuple_offset += tuple_size; (gdb) p tuple_size $3 = 0 (gdb) n 82 while (first_tuple_offset < header_size) (gdb) 83 first_tuple_offset += tuple_size; The .o file was built from this C code: void test(int N, double* G) { for (long j = 1; j < 1000; j++) G[j] = G[j] + G[j-1]; } by gcc 4.4.6. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 14 05:48:08 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 14 Sep 2011 05:48:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 5481] Formal arguments missing from DWARF output unless -fast-isel is used In-Reply-To: References: Message-ID: <20110914104808.C8C022A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5481 Richard Osborne changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Richard Osborne 2011-09-14 05:48:08 CDT --- (In reply to comment #3) > Can you please try again, or attach source file or updated .bc file ? Thanks. The source was just: int f(int foo) { return foo; } It seems to be working for me now. Thanks for all your work on debug. Closing as 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 Sep 14 09:45:23 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 14 Sep 2011 09:45:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 10921] [VECTOR-SELECT] needed to implement integer-promotion of the vselect node In-Reply-To: References: Message-ID: <20110914144523.949522A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10921 Nadav Rotem changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Nadav Rotem 2011-09-14 09:45:23 CDT --- implemented in 139692. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 14 12:29:07 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 14 Sep 2011 12:29:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 10926] llvm-dwarfdump infinite loop In-Reply-To: References: Message-ID: <20110914172908.020B42A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10926 Benjamin Kramer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Benjamin Kramer 2011-09-14 12:29:07 CDT --- Fixed in r139701. I have to figure out a way to add regression tests for this without littering test/ with ELF and MachO binaries ? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 14 13:11:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 14 Sep 2011 13:11:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 10724] [x86 disassembler] vcvtsd2si disassembled incorrectly In-Reply-To: References: Message-ID: <20110914181158.C6BDE2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10724 Kay Tiong Khoo 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 Sep 14 14:20:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 14 Sep 2011 14:20:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 10864] Sema::ActOnAsmStmt() is called before template instantiation In-Reply-To: References: Message-ID: <20110914192010.545AD2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10864 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #3 from Eli Friedman 2011-09-14 14:20:09 CDT --- r139716. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 14 17:00:46 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 14 Sep 2011 17:00:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 8276] Invalid metadata is simply omitted, no warning In-Reply-To: References: Message-ID: <20110914220046.95D442A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8276 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dpatel at apple.com Resolution| |WONTFIX --- Comment #1 from Devang Patel 2011-09-14 17:00:46 CDT --- In current setup, llc may not make any such assumptions. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 14 17:09:01 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 14 Sep 2011 17:09:01 -0500 (CDT) Subject: [LLVMbugs] [Bug 10927] New: Assertion `0 && "Unexpected builtin type NullPtr"' failed. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10927 Summary: Assertion `0 && "Unexpected builtin type NullPtr"' failed. Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: oroppas at gmail.com CC: llvmbugs at cs.uiuc.edu As of r139736 I've got: clang-3.0: /home/ryuta/devel/llvm/src/llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp:305: llvm::DIType clang::CodeGen::CGDebugInfo::CreateType(const clang::BuiltinType *): Assertion `0 && "Unexpected builtin type NullPtr"' failed. Stack dump: 0. Program arguments: /usr/bin/clang-3.0 -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name Module.cpp -pic-level 2 -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -momit-leaf-frame-pointer -g -coverage-file CMakeFiles/ocelot.dir/ocelot/ir/implementation/Module.cpp.o -resource-dir /usr/bin/../lib/clang/3.0 -D ocelot_EXPORTS -D _GNU_SOURCE -D __STDC_LIMIT_MACROS -D __STDC_CONSTANT_MACROS -I /home/ryuta/devel/ocelot/src/gpuocelot/ocelot -I /home/ryuta/devel/ocelot/build/clang -stdlib=libc++ -fmodule-cache-path /var/tmp/clang-module-cache -O1 -Werror -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-overloaded-virtual -Wno-unused-comparison -std=c++0x -fconst-strings -fdeprecated-macro -ferror-limit 19 -fmessage-length 159 -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o CMakeFiles/ocelot.dir/ocelot/ir/implementation/Module.cpp.o -x c++ /home/ryuta/devel/ocelot/src/gpuocelot/ocelot/ocelot/ir/implementation/Module.cpp 1. /home/ryuta/devel/ocelot/src/gpuocelot/ocelot/ocelot/ir/implementation/Module.cpp:37:1: current parser token 'ir' 2. /home/ryuta/devel/ocelot/src/gpuocelot/ocelot/ocelot/ir/implementation/Module.cpp:32:13: LLVM IR generation of declaration 'ir::Module::Module' 3. /home/ryuta/devel/ocelot/src/gpuocelot/ocelot/ocelot/ir/implementation/Module.cpp:32:13: Generating code for declaration 'ir::Module::Module' clang-3: error: unable to execute command: Aborted clang-3: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang-3: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang-3: note: diagnostic msg: Preprocessed source(s) are located at: clang-3: note: diagnostic msg: /tmp/Module-MenJLl.ii make[2]: *** [CMakeFiles/ocelot.dir/ocelot/ir/implementation/Module.cpp.o] Error 254 make[1]: *** [CMakeFiles/ocelot.dir/all] Error 2 make: *** [all] Error 2 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 14 18:14:45 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 14 Sep 2011 18:14:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 10927] Assertion `0 && "Unexpected builtin type NullPtr"' failed. In-Reply-To: References: Message-ID: <20110914231445.D11382A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10927 Devang Patel changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Devang Patel 2011-09-14 18:14:45 CDT --- Fixed. r139751 and r139752. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 14 19:10:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 14 Sep 2011 19:10:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 10928] New: [AVX] build2.c performs worse on AVX than on SSE! Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10928 Summary: [AVX] build2.c performs worse on AVX than on SSE! Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P Component: Register Allocator AssignedTo: unassignedbugs at nondot.org ReportedBy: bruno.cardoso at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7270) --> (http://llvm.org/bugs/attachment.cgi?id=7270) Bitcode Given the b.bc attached bitcode (extracted from test-suite/SingleSource/UnitTests/Vector/build2.c), the only hot loop in the program yields: $ llc b.bc movss LCPI0_0(%rip), %xmm6 addps %xmm9, %xmm6 addps LCPI0_1(%rip), %xmm6 addps %xmm12, %xmm6 addps %xmm13, %xmm8 addps %xmm14, %xmm8 addps %xmm15, %xmm7 addps %xmm0, %xmm7 addps %xmm2, %xmm7 addps %xmm1, %xmm6 addps %xmm4, %xmm7 addps %xmm3, %xmm8 addps %xmm10, %xmm8 addps %xmm5, %xmm8 addps %xmm11, %xmm8 decl %ecx while in AVX mode, $ llc -mattr=+avx b.bc vaddps %xmm12, %xmm10, %xmm0 vaddps %xmm13, %xmm0, %xmm0 vaddps %xmm14, %xmm0, %xmm1 vaddps %xmm15, %xmm7, %xmm0 vaddps %xmm9, %xmm0, %xmm7 vaddps %xmm11, %xmm6, %xmm0 vaddps LCPI0_6(%rip), %xmm0, %xmm0 vaddps %xmm3, %xmm0, %xmm8 vaddps %xmm4, %xmm1, %xmm10 vaddps %xmm5, %xmm8, %xmm6 vaddps LCPI0_10(%rip), %xmm7, %xmm7 vaddps LCPI0_11(%rip), %xmm7, %xmm7 vaddps LCPI0_12(%rip), %xmm7, %xmm7 vaddps %xmm2, %xmm7, %xmm7 decl %ecx Although AVX is 3-addr instruction, it's rematerializing some constant pool loads before the end of the loop, and that is making it becomes slower than the SSE version. Digging into the problem (using -print-machineinstrs) I found out that LICM hoist all constant pool loads out of the loop, but RA brings some of them back (probably because it's running out of registers?). -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 14 20:21:49 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 14 Sep 2011 20:21:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 10920] 401.bzip2 fails with -arch i386 -enable-iv-rewrite=false In-Reply-To: References: Message-ID: <20110915012149.A6A302A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10920 Andrew Trick changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Component|Loop Optimizer |Register Allocator Resolution| |FIXED AssignedTo|atrick at apple.com |unassignedbugs at nondot.org --- Comment #4 from Andrew Trick 2011-09-14 20:21:48 CDT --- We have a loop that looks like this: a = 0; while (a < t && g < s-1) { g++; a += array[g]; } if (g > x && expr1 && expr2 && expr3) { a -= array[g]; g--; } call(a) Early CSE removes the second load from array[g] and subsequent subtract. Now the value of 'a' when all conditions evaluate true is actually it's old loop pre increment value. Hence we need a copy on this path, or on all other paths to call(a). With no IV rewrite, a's pre increment value is itself a copy of 'a' from the previous loop iteration. So now we have multiple copies of 'a'. But the pre increment copy is NOT the same value as the critical edge copies. RegistersDefinedFromSameValue does perform a reaching value check, but was performing it incorrectly and removing one of the copies. In the full test case, phi elimination splits several critical edges at expr1 && expr2... and inserts copies from a. That's not so good, but will be fixed eventually and not the subject of this bug. Fixed in r139765 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 14 23:37:37 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 14 Sep 2011 23:37:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 10929] New: inconsistent warning for implicit truncation to bitfield Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10929 Summary: inconsistent warning for implicit truncation to bitfield Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: neal.meyer at riverbed.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Using the following code const int FLAG = 0x4; int FLAG2 = 0x4; struct { u_int32_t flags_ : 3; // REFS / NOT_INSERTED / FRESH } bits_; int main (int argc, char * const argv[]) { bool flag = (bits_.flags_ &= ~(FLAG)); flag = (bits_.flags_ &= ~(FLAG2)); Only the const int produces the following warning: /main.cpp:501:31:{501:34-501:41}: warning: implicit truncation from 'int' to bitfield changes value from -5 to 3 [-Wconstant-conversion,3] bool flag = (bits_.flags_ &= ~(FLAG)); ^ ~~~~~~~ 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 Sep 15 06:55:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 15 Sep 2011 06:55:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 10930] New: llc generates wrong assembler code for the MIPS target for signed long long Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10930 Summary: llc generates wrong assembler code for the MIPS target for signed long long Product: new-bugs Version: 2.9 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: gordon.haak at googlemail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7271) --> (http://llvm.org/bugs/attachment.cgi?id=7271) The LLC output The following C-code was compiled with clang 2.9 (no options): int main() { signed long long a = 2147483648; if ((a >= 0) && (a > 15)) { return 0; } return -1; } llc (options -march=mips) produces the output (see attachment) This code is incorrect, since the address calculation in line 22 ("ori $3, $3, 4") is wrong ($3 should point to the lower word of the variable which is not guaranteed with an "ori"). An "addiu $3, $3, 4") would be correct instead. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 15 07:43:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 15 Sep 2011 07:43:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 10931] New: clang tries to compile non-instantiated template function Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10931 Summary: clang tries to compile non-instantiated template function Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sbn at tbricks.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com When trying to compile the following simplified C++ source ----------- struct M; template void foo(T v) { M m(v); } int main() { return 0; } ----------- clang emits error: ----------- $ /tmp/clang/bootstrap/Release+Asserts/bin/clang++ a.cpp a.cpp:6:7: error: variable has incomplete type 'M' M m(v); ^ a.cpp:1:8: note: forward declaration of 'M' struct M; ^ 1 error generated. $ /tmp/clang/bootstrap/Release+Asserts/bin/clang++ -v clang version 3.0 (trunk 139788) Target: x86_64-apple-darwin11.1.0 Thread model: posix ----------- Although GCC compiles it without any problems: ----------- $ g++ a.cpp $ g++ -v Using built-in specs. Target: i686-apple-darwin11 Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/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-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --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 2335.15.00) ----------- System info: ----------- $ uname -a Darwin octo 11.1.0 Darwin Kernel Version 11.1.0: Tue Jul 26 16:09:02 PDT 2011; root:xnu-1699.22.81~1/RELEASE_I386 i386 ----------- -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 15 08:15:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 15 Sep 2011 08:15:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 10931] clang tries to compile non-instantiated template function In-Reply-To: References: Message-ID: <20110915131550.4F9462A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10931 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Douglas Gregor 2011-09-15 08:15:49 CDT --- Clang is more strict than GCC in this regard, and is behaving correctly: http://clang.llvm.org/compatibility.html#undep_incomplete -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 15 09:29:52 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 15 Sep 2011 09:29:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 8459] Debug info triggers DIE assert. In-Reply-To: References: Message-ID: <20110915142952.E9CED2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8459 Luke Dalessandro changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Luke Dalessandro 2011-09-15 09:29:52 CDT --- (In reply to comment #4) > Can you try clang++ ? I can't reproduce this with either llvm-gcc or clang++ from either the 2.8 or 2.9 release. Neither of them is generating the redundant metadata as far as I can tell, nor does the testcase DIE assert on either lcc. I'll close this for now and reopen it again if I run into the problem in the future. Thanks -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 15 09:56:03 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 15 Sep 2011 09:56:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 10932] New: problem with undefined characters while compiling on Ubuntu Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10932 Summary: problem with undefined characters while compiling on Ubuntu Product: new-bugs Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: dusanjocic at msn.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7272) --> (http://llvm.org/bugs/attachment.cgi?id=7272) problem with undefined characters Hello. Sorry if I disturb you, but I am having one problem with compiling on Ubuntu 11.10 beta. I am using GCC-4.6.1-9ubuntu2, LLVM 2.8.6 and scons 2.0.1-r5134 version (I downloaded all that from Ubuntu Software Center). While compiling IDTech3 based game I have met with quiet unusual problem for me I will uploaded files with problems and my scons files what I am using at moment of error. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 15 10:36:11 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 15 Sep 2011 10:36:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 10834] shared library linkage regressions under dragonegg svn In-Reply-To: References: Message-ID: <20110915153611.7B8582A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10834 Jack Howarth 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 Sep 15 12:00:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 15 Sep 2011 12:00:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 10933] New: clang/analyzer hangs when compiling gcc Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10933 Summary: clang/analyzer hangs when compiling gcc Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: lbalbalba at gmail.com CC: llvmbugs at cs.uiuc.edu When compiling and analyzing gcc 4.5.3 with clang/analyzer, it freezes at a the point: "ANALYZE: ../.././gcc/c-common.c c_define_builtins". -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 15 12:53:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 15 Sep 2011 12:53:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 10934] New: Static analyzer complains about "atoi loop" Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10934 Summary: Static analyzer complains about "atoi loop" Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: mclow at qualcomm.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7277) --> (http://llvm.org/bugs/attachment.cgi?id=7277) A small sample that shows the same error as OpenSSL MacBook pro/10.6.8/clang build from this morning's TOT (r139789), running the static analyzer on OpenSSL 1.0.0e, I got an error: "The left operand to '+' is always 0" Certainly this is true - the first time through the loop - but not afterwards. I submit that this is a "bad error" - it flags correct code. reduced test case 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 Thu Sep 15 14:08:42 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 15 Sep 2011 14:08:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 10935] New: Clang cannot find system libraries on Ubuntu 11.4 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10935 Summary: Clang cannot find system libraries on Ubuntu 11.4 Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: scshunt at csclub.uwaterloo.ca CC: llvmbugs at cs.uiuc.edu scshunt at overthere:~/code/c++/llvm-build$ clang -x c - -v clang version 3.0 () Target: i386-pc-linux-gnu Thread model: posix "/home/scshunt/usr/bin/clang-3.0" -cc1 -triple i386-pc-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name - -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu pentium4 -momit-leaf-frame-pointer -v -resource-dir /home/scshunt/usr/bin/../lib/clang/3.0 -ferror-limit 19 -fmessage-length 276 -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-cuPGrM.o -x c - clang -cc1 version 3.0 based upon llvm 3.0 hosted on i386-pc-linux-gnu ignoring nonexistent directory "/usr/include/x86_64-linux-gnu/32" ignoring nonexistent directory "/usr/include/i686-linux-gnu" ignoring nonexistent directory "/usr/include/i486-linux-gnu" #include "..." search starts here: #include <...> search starts here: /usr/local/include /home/scshunt/usr/bin/../lib/clang/3.0/include /usr/include End of search list. "/usr/bin/ld" -z relro --hash-style=gnu --build-id --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o a.out /usr/lib/../lib/crt1.o /usr/lib/../lib/crti.o crtbegin.o -L -L/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/../../.. -L/usr/lib/ /tmp/cc-cuPGrM.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed crtend.o /usr/lib/../lib/crtn.o /usr/bin/ld: error: cannot open crtbegin.o: No such file or directory /usr/bin/ld: error: cannot open crtend.o: No such file or directory /usr/bin/ld: error: cannot find -lgcc /usr/bin/ld: error: cannot find -lgcc_s /usr/bin/ld: error: cannot find -lc /usr/bin/ld: error: cannot find -lgcc /usr/bin/ld: error: cannot find -lgcc_s /usr/bin/ld: /usr/lib/../lib/crt1.o:(.text+0xc): error: undefined reference to '__libc_csu_fini' /usr/bin/ld: /usr/lib/../lib/crt1.o:(.text+0x11): error: undefined reference to '__libc_csu_init' /usr/bin/ld: /usr/lib/../lib/crt1.o:(.text+0x18): error: undefined reference to 'main' /usr/bin/ld: /usr/lib/../lib/crt1.o:(.text+0x1d): error: undefined reference to '__libc_start_main' clang-3: error: linker command failed with exit code 1 (use -v to see invocation) scshunt at overthere:~/code/c++/llvm-build$ -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 15 14:08:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 15 Sep 2011 14:08:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 10936] New: clang/analyzer hangs when compiling postgresql 9.1.0 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10936 Summary: clang/analyzer hangs when compiling postgresql 9.1.0 Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: lbalbalba at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7278) --> (http://llvm.org/bugs/attachment.cgi?id=7278) preprocessed file version of 'postgresql-9.1.0/src/backend/parser/gram.c' When compiling and analyzing postgresql 9.1.0 with clang/analyzer, it freezes at the point: "ANALYZE: gram.c base_yyparse". Full cmd line is : /usr/local/bin/clang -cc1 -triple i386-pc-linux-gnu -analyze -disable-free -main-file-name gram.c -analyzer-store=region -analyzer-opt-analyze-nested-blocks -analyzer-eagerly-assume -analyzer-checker=core -analyzer-checker=deadcode -analyzer-checker=security -analyzer-checker=unix -analyzer-output plist -w -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.20.51.0.7 -momit-leaf-frame-pointer -resource-dir /usr/local/bin/../lib/clang/3.0 -D _GNU_SOURCE -I . -I . -I ../../../src/include -Wno-error -ferror-limit 19 -fmessage-length 0 -fdiagnostics-show-option -analyzer-display-progress -analyzer-output=html -o /tmp/postgresql/2011-09-15-1 -x c gram.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 Thu Sep 15 16:59:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 15 Sep 2011 16:59:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 10937] New: -Warray-bounds gives false positive on ICU Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10937 Summary: -Warray-bounds gives false positive on ICU 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 Repro: thakis-macbookpro:src thakis$ cat test_array_bounds.c void f() { unsigned char in[1024]; unsigned short iv[2]; ((char*)iv)[3] = in[3]; } thakis-macbookpro:src thakis$ clang -c test_array_bounds.c test_array_bounds.c:4:11: warning: array index of '3' indexes past the end of an array (that contains 2 elements) [-Warray-bounds] ((char*)iv)[3] = in[3]; ^ ~ test_array_bounds.c:3:3: note: array 'iv' declared here unsigned short iv[2]; ^ 1 warning generated. Here's the full warning from ICU: third_party/nss/mozilla/security/nss/lib/freebl/desblapi.c:173:15: warning: array index of '3' indexes past the end of an array (that contains 2 elements) [-Warray-bounds] COPY8BTOHALF(cx->iv, in); ~~~~~~~~~~~~~^~~~~~~~~~~ third_party/nss/mozilla/security/nss/lib/freebl/desblapi.c:80:39: note: expanded from: #define COPY8BTOHALF(to, from) COPY8B(to, from, from) ^ third_party/nss/mozilla/security/nss/lib/freebl/desblapi.c:73:14: note: expanded from: BYTEPTR(to)[3] = BYTEPTR(from)[3]; \ ^ ~ third_party/nss/mozilla/security/nss/lib/freebl/des.h:52:30: note: expanded from: #define BYTEPTR(x) ((BYTE *)(x)) ^ third_party/nss/mozilla/security/nss/lib/freebl/des.h:67:5: note: array 'iv' declared here HALF iv [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 Sep 15 17:14:41 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 15 Sep 2011 17:14:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 10937] -Warray-bounds gives false positive on ICU In-Reply-To: References: Message-ID: <20110915221441.0F2B72A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10937 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |DUPLICATE --- Comment #2 from Eli Friedman 2011-09-15 17:14:40 CDT --- *** This bug has been marked as a duplicate of bug 10771 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 15 17:43:38 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 15 Sep 2011 17:43:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 10938] New: wrong results from 'sgt' Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10938 Summary: wrong results from 'sgt' Product: new-bugs Version: 2.8 Platform: Sun OS/Version: Solaris Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: sudida21 at gmail.com CC: llvmbugs at cs.uiuc.edu the following .bc code is run on Sparc -------------------------------------------------------------------------------- ; MduleID = '' target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-n32" target triple = "sparc-unknown-linux" @P = global i32 1 @dP = global i32 1 @.str = private constant [4 x i8] c"%d\0A\00", align 1 define i32 @main() nounwind { entry: %. = load i32* @P, align 4 %t1 = tail call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i32 %. ) nounwind %d. = load i32* @dP, align 4 %t2 = tail call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i32 %d. ) nounwind %0 = icmp sgt i32 %., 0 %1 = tail call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i1 %0 ) nounwind %2 = icmp sgt i32 %d., 0 %3 = tail call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i1 %2 ) nounwind %t3 = icmp eq i32 %d., %d. %t4 = tail call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i1 %t3 ) nounwind %4 = icmp sgt i32 1, 0 %5 = icmp sgt i32 1, 0 %6 = tail call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i1 %4 ) nounwind %7 = tail call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i1 %5 ) nounwind ret i32 undef } declare i32 @printf(i8* nocapture, ...) nounwind --------------------------------------------------------------------------- which produces 1 1 0 0 1 1 1 The results are wrong. They should be all ones. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 15 19:27:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 15 Sep 2011 19:27:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 10841] [AVX] crash due to aligned move being used for register spill with 48 byte offset from %rbp In-Reply-To: References: Message-ID: <20110916002710.95CD02A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10841 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #2 from Bruno Cardoso Lopes 2011-09-15 19:27:09 CDT --- Hi Matt, It happens that we have a big problem here. An explanation follows: - The function in the bitcode you submitted doesn't have any 256-bit arguments, and based on x86_64 abi the default stack alignment should be 128-bit (it can be 256-bit if you have 256-bit arguments on the stack). - Since there're spill slots of 32 bytes, that triggers stack realignment. - Since there're dynamic allocas, it triggers dynamic allocation. We don't really support dynamic allocation and stack re-alignment at the same time. See X86InstrInfo.cpp:433: // FIXME: Currently we don't support stack realignment for functions with // variable-sized allocas. // FIXME: It's more complicated than this... if (0 && requiresRealignment && MFI->hasVarSizedObjects()) report_fatal_error( "Stack realignment in presence of dynamic allocas is not supported"); This would require a great amount of work that I'm not even quite sure if it's worth doing: the implementation could be somewhat nasty and the resulting code slow. As a hack, If we set the stack alignment to 256-bits by default, we become non-ABI compliant and code calling those functions could break. Is there any way you can change your front-end to emit all allocas in the entry block? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 15 20:16:24 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 15 Sep 2011 20:16:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 10939] New: Assertion Failed in CheckPlaceholderExpr, SemaExpr.cpp Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10939 Summary: Assertion Failed in CheckPlaceholderExpr, SemaExpr.cpp Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rob.nikander at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com I'm compiling some C++ with the SVN trunk llvm and clang, and it died. Compiler output said to file a bug, so here I am. It appears to die on this line: auto node = t->methods->head; // <<< `head` is a member function. So that should be head() not head. Adding the parentheses stops the compiler from crashing. ----- Assertion failed: (!type->isPlaceholderType()), function CheckPlaceholderExpr, file /Users/rob/Dev/llvm_svn/llvm/tools/clang/lib/Sema/SemaExpr.cpp, line 10096. 0 clang 0x0000000101a37052 PrintStackTrace(void*) + 34 1 clang 0x0000000101a37fd3 SignalHandler(int) + 707 2 libSystem.B.dylib 0x00007fff8891c1ba _sigtramp + 26 3 libSystem.B.dylib 0x0000000000000001 _sigtramp + 2003713633 4 clang 0x0000000101a374d2 __assert_rtn + 66 5 clang 0x0000000100538c3d clang::Sema::CheckPlaceholderExpr(clang::Expr*) + 1517 6 clang 0x000000010053c18b clang::Sema::CheckBooleanCondition(clang::Expr*, clang::SourceLocation) + 75 7 clang 0x000000010053c376 clang::Sema::ActOnBooleanCondition(clang::Scope*, clang::SourceLocation, clang::Expr*) + 22 8 clang 0x0000000100361bb3 clang::Parser::ParseCXXCondition(clang::ActionResult&, clang::Decl*&, clang::SourceLocation, bool) + 2083 9 clang 0x0000000100377823 clang::Parser::ParseParenExprOrCondition(clang::ActionResult&, clang::Decl*&, clang::SourceLocation, bool) + 307 10 clang 0x000000010037fe6f clang::Parser::ParseWhileStatement(clang::ParsedAttributes&) + 143 11 clang 0x000000010037a3fd clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector&, bool) + 1677 12 clang 0x000000010037b711 clang::Parser::ParseCompoundStatementBody(bool) + 1569 13 clang 0x000000010037bd19 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) + 201 14 clang 0x0000000100397b1a clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&) + 1226 15 clang 0x000000010032e80c clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int, bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 2844 16 clang 0x00000001003923d8 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&, clang::AccessSpecifier) + 184 17 clang 0x000000010039291c clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::AccessSpecifier) + 668 18 clang 0x0000000100395ba4 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 2996 19 clang 0x00000001003962b6 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 566 20 clang 0x000000010031dcab clang::ParseAST(clang::Sema&, bool) + 315 21 clang 0x00000001002e84ac clang::CodeGenAction::ExecuteAction() + 60 22 clang 0x000000010002e863 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 435 23 clang 0x000000010000aec9 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1737 24 clang 0x000000010000164c cc1_main(char const**, char const**, char const*, void*) + 652 25 clang 0x0000000100009c0e main + 4542 26 clang 0x0000000100000a34 start + 52 27 clang 0x000000000000002b start + 4294964779 Stack dump: 0. Program arguments: /Users/rob/Dev/llvm_svn/build/Release+Asserts/bin/clang -cc1 -triple x86_64-apple-macosx10.6.8 -emit-obj -mrelax-all -disable-free -main-file-name Object.cc -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 123.2 -g -coverage-file Build/NotXcode/objfiles/Source/Common/Object.cc -resource-dir /Users/rob/Dev/llvm_svn/build/Release+Asserts/bin/../lib/clang/3.0 -I Source/Headers -std=c++0x -fdeprecated-macro -ferror-limit 19 -fmessage-length 161 -stack-protector 1 -fblocks -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o Build/NotXcode/objfiles/Source/Common/Object.cc -x c++ Source/Common/Object.cc 1. Source/Common/Object.cc:300:16: current parser token ')' 2. Source/Common/Object.cc:293:1: parsing function body 'typeMemWalk' 3. Source/Common/Object.cc:293:1: in compound statement ('{}') clang: error: unable to execute command: Illegal instruction clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Preprocessed source(s) are located at: clang: note: diagnostic msg: /var/folders/af/afYQ77GDGE8BYinnhTYrFk+++TI/-Tmp-/Object-HGXotL.ii Build Error Compile failed. Return code = 254. Specifics should be printed 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 Sep 15 20:53:13 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 15 Sep 2011 20:53:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 10940] New: fs::create_directories() doesn't actually create all directories in the path. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10940 Summary: fs::create_directories() doesn't actually create all directories in the path. Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Support Libraries AssignedTo: unassignedbugs at nondot.org ReportedBy: ajwong at chromium.org CC: llvmbugs at cs.uiuc.edu The recursion is incorrectly implemented so that it accidentally early terminated after creating just the first missing directory in the path. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 16 04:02:15 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 16 Sep 2011 04:02:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 10869] [LLVM, llvm-mc] Unclear error for files without newline at the end of file (ARM, x86). In-Reply-To: References: Message-ID: <20110916090215.3C5F72A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10869 Stepan Dyatkovskiy changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Stepan Dyatkovskiy 2011-09-16 04:02:14 CDT --- This bug was fixed in r139798. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 16 11:10:06 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 16 Sep 2011 11:10:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 10941] New: [AVX] foldMemoryOperand failed for bezier code example. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10941 Summary: [AVX] foldMemoryOperand failed for bezier code example. Product: libraries Version: trunk Platform: PC OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: syoyofujita at gmail.com CC: llvmbugs at cs.uiuc.edu revision: 139901 x86/AVX codegen with the optimization failed for following bezier calculation code. $ cat bezier.cpp #include #include static const int BINOMIAL_TABLE[12][12] = { {1}, /*0*/ {1,1}, /*1*/ {1,2,1}, /*2*/ {1,3,3,1}, /*3*/ {1,4,6,4,1}, /*4*/ {1,5,10,10,5,1}, /*5*/ {1,6,15,20,15,6,1}, /*6*/ {1,7,21,35,35,21,7,1}, /*7*/ {1,8,28,56,70,56,28,8,1}, /*8*/ {1,9,36,84,126,126,84,36,9,1}, /*9*/ {1,10,45,120,210,252,210,120,45,10,1}, /*10*/ {1,11,55,165,330,462,462,330,165,55,11,1}, /*11*/ }; static int binomial(int i, int j) { assert(0<=i); assert(0<=j && j<=i); if(i<=11){ return BINOMIAL_TABLE[i][j]; }else{ if(j==0||j==i){ return 1; }else{ return binomial(i-1,j-1)+binomial(i-1,j); } } } static int sgn(int i, int j) { return ((i+j)&1)?1:-1; } static void bernstein_deriv_n(float t, float e[], int n){ memset(e,0,sizeof(float)*n);//ZERO float s = 1; for(int i = n-2;0<=i;i--){// int k = n-i;// for(int j = 0;jgetDesc().mayLoad()) && "Folded a use to a non-load!"), function foldMemoryOperand, file TargetInstrInfoImpl.cpp, line 295. 0 clang 0x0000000101a46432 PrintStackTrace(void*) + 34 1 clang 0x0000000101a47283 SignalHandler(int) + 707 2 libSystem.B.dylib 0x00007fff849061ba _sigtramp + 26 3 libSystem.B.dylib 0x00000001031d0330 _sigtramp + 2123145616 4 clang 0x000000010001dd02 __assert_rtn + 66 5 clang 0x00000001015fe7de llvm::TargetInstrInfo::foldMemoryOperand(llvm::ilist_iterator, llvm::SmallVectorImpl const&, int) const + 894 6 clang 0x000000010148f2da (anonymous namespace)::InlineSpiller::foldMemoryOperand(llvm::ilist_iterator, llvm::SmallVectorImpl const&, llvm::MachineInstr*) + 1354 7 clang 0x0000000101495868 (anonymous namespace)::InlineSpiller::spillAroundUses(unsigned int) + 1432 8 clang 0x0000000101497754 (anonymous namespace)::InlineSpiller::spillAll() + 420 9 clang 0x000000010149823f (anonymous namespace)::InlineSpiller::spill(llvm::LiveRangeEdit&) + 1135 10 clang 0x000000010156da0b (anonymous namespace)::RAGreedy::selectOrSplit(llvm::LiveInterval&, llvm::SmallVectorImpl&) + 763 11 clang 0x00000001015566db llvm::RegAllocBase::allocatePhysRegs() + 331 12 clang 0x00000001015689ee (anonymous namespace)::RAGreedy::runOnMachineFunction(llvm::MachineFunction&) + 1390 13 clang 0x0000000101502373 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 83 14 clang 0x000000010197ab40 llvm::FPPassManager::runOnFunction(llvm::Function&) + 752 15 clang 0x000000010197ac6b llvm::FPPassManager::runOnModule(llvm::Module&) + 187 16 clang 0x000000010197a41f llvm::MPPassManager::runOnModule(llvm::Module&) + 607 17 clang 0x000000010197a721 llvm::PassManagerImpl::run(llvm::Module&) + 177 18 clang 0x000000010197a83d llvm::PassManager::run(llvm::Module&) + 13 19 clang 0x00000001001bbc8e clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 1358 20 clang 0x000000010030cec6 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 294 21 clang 0x0000000100342124 clang::ParseAST(clang::Sema&, bool) + 452 22 clang 0x000000010030ba6c clang::CodeGenAction::ExecuteAction() + 60 23 clang 0x0000000100049863 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 435 24 clang 0x0000000100028df5 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1733 25 clang 0x000000010001fbb2 cc1_main(char const**, char const**, char const*, void*) + 658 26 clang 0x0000000100027b3e main + 4542 27 clang 0x000000010001e454 start + 52 28 clang 0x000000000000002b start + 4294843403 Stack dump: 0. Program arguments: /Users/syoyo/work/llvm/Release+Asserts/bin/clang -cc1 -triple x86_64-apple-macosx10.6.8 -emit-obj -disable-free -main-file-name bezier.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-feature +avx -target-linker-version 97.17 -coverage-file bezier.o -resource-dir /Users/syoyo/work/llvm/Release+Asserts/bin/../lib/clang/3.0 -fmodule-cache-path /var/folders/6g/6gpoHXNrH8ygI21qZX4ceU+++TI/-Tmp-/clang-module-cache -O3 -fdeprecated-macro -ferror-limit 19 -fmessage-length 141 -stack-protector 1 -fblocks -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o bezier.o -x c++ bezier.cpp 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'bezier.cpp'. 4. Running pass 'Greedy Register Allocator' on function '@_Z15bernstein_derivfPfi' clang: error: unable to execute command: Illegal instruction clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Preprocessed source(s) are located at: clang: note: diagnostic msg: /var/folders/6g/6gpoHXNrH8ygI21qZX4ceU+++TI/-Tmp-/bezier-r34N2d.ii -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 16 11:46:35 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 16 Sep 2011 11:46:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 10930] llc generates wrong assembler code for the MIPS target for signed long long In-Reply-To: References: Message-ID: <20110916164635.93D2F2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10930 Akira Hatanaka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 16 13:59:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 16 Sep 2011 13:59:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 10942] New: clang/analyzer hangs when compiling php 5.3.8 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10942 Summary: clang/analyzer hangs when compiling php 5.3.8 Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: lbalbalba at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7281) --> (http://llvm.org/bugs/attachment.cgi?id=7281) preprocessed file version of '/php-5.3.8/ext/date/lib/parse_date.c' When compiling and analyzing gcc 4.5.3 with clang/analyzer, it freezes at the point: "ANALYZE: /usr/local/src/php/php-5.3.8/ext/date/lib/parse_date.c scan". Full cmd is : /usr/local/bin/clang -cc1 -triple i386-pc-linux-gnu -analyze -disable-free -main-file-name parse_date.c -analyzer-store=region -analyzer-opt-analyze-nested-blocks -analyzer-eagerly-assume -analyzer-checker=core -analyzer-checker=deadcode -analyzer-checker=security -analyzer-checker=unix -analyzer-output plist -w -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.20.51.0.7 -momit-leaf-frame-pointer -resource-dir /usr/local/bin/../lib/clang/3.0 -D PHP_ATOM_INC -I ext/date/lib -I ext/date/ -I /usr/local/src/php/php-5.3.8/ext/date/ -I /usr/local/src/php/php-5.3.8/include -I /usr/local/src/php/php-5.3.8/main -I /usr/local/src/php/php-5.3.8 -I /usr/local/src/php/php-5.3.8/ext/date/lib -I /usr/local/src/php/php-5.3.8/ext/ereg/regex -I /usr/include/libxml2 -I /usr/local/src/php/php-5.3.8/ext/sqlite3/libsqlite -I /usr/local/src/php/php-5.3.8/TSRM -I /usr/local/src/php/php-5.3.8/Zend -I /usr/include -ferror-limit 19 -fmessage-length 0 -fdiagnostics-show-option -analyzer-display-progress -analyzer-output=html -o /tmp/php/2011-09-16-1 -x c /usr/local/src/php/php-5.3.8/ext/date/lib/parse_date.c Used svn version is: clang version 3.0 (trunk 139148) -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 16 15:14:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 16 Sep 2011 15:14:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 10940] fs::create_directories() doesn't actually create all directories in the path. In-Reply-To: References: Message-ID: <20110916201440.36E632A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10940 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #2 from Eli Friedman 2011-09-16 15:14:39 CDT --- r139928. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 16 15:58:55 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 16 Sep 2011 15:58:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 10884] [AVX] crash in generated code due to %rbp being clobbered In-Reply-To: References: Message-ID: <20110916205855.666EA2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10884 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Bruno Cardoso Lopes 2011-09-16 15:58:54 CDT --- Hi, Fixed in r139939! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 16 16:08:53 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 16 Sep 2011 16:08:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 10943] New: Segmentation fault Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10943 Summary: Segmentation fault Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: zoxc32 at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7282) --> (http://llvm.org/bugs/attachment.cgi?id=7282) Preprocessed source clang version 3.0 (trunk 139933) Target: x86_64-unknown-linux-gnu Thread model: posix Compiled with: g++ (GCC) 4.6.1 20110819 (prerelease) Command line: clang++ -pipe -Wall -g -I../../Prelude/include -Wno-invalid-offsetof -std=gnu++0x -c Canvas.cpp -o debug/Canvas.o Output: 0 clang 0x0000000002afcdd2 1 clang 0x0000000002afcbce 2 libpthread.so.0 0x00007f83087fc800 3 clang 0x0000000001406c88 clang::Expr::isTypeDependent() const + 12 4 clang 0x0000000001db8808 clang::CallExpr::CallExpr(clang::ASTContext&, clang::Expr*, clang::Expr**, unsigned int, clang::QualType, clang::ExprValueKind, clang::SourceLocation) + 264 5 clang 0x00000000016f7290 clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*, clang::SourceLocation, clang::ASTMultiPtr, clang::SourceLocation, clang::Expr*) + 978 6 clang 0x00000000015d42c4 clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult) + 2576 7 clang 0x00000000015d38a1 clang::Parser::ParseCastExpression(bool, bool, bool&, bool) + 7369 8 clang 0x00000000015d1b95 clang::Parser::ParseCastExpression(bool, bool, bool) + 55 9 clang 0x00000000015d1f70 clang::Parser::ParseCastExpression(bool, bool, bool&, bool) + 920 10 clang 0x00000000015d1b95 clang::Parser::ParseCastExpression(bool, bool, bool) + 55 11 clang 0x00000000015d2997 clang::Parser::ParseCastExpression(bool, bool, bool&, bool) + 3519 12 clang 0x00000000015d1b95 clang::Parser::ParseCastExpression(bool, bool, bool) + 55 13 clang 0x00000000015d1114 clang::Parser::ParseAssignmentExpression() + 168 14 clang 0x00000000015d0f1a clang::Parser::ParseExpression() + 24 15 clang 0x000000000159c007 clang::Parser::ParseReturnStatement(clang::ParsedAttributes&) + 473 16 clang 0x0000000001597866 clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector&, bool) + 2794 17 clang 0x0000000001599599 clang::Parser::ParseCompoundStatementBody(bool) + 1123 18 clang 0x000000000159d2e4 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) + 240 19 clang 0x00000000015b285f clang::Parser::ParseLexedMethodDef(clang::Parser::LexedMethod&) + 907 20 clang 0x00000000015b1cfb clang::Parser::LexedMethod::ParseLexedMethodDefs() + 35 21 clang 0x00000000015b2494 clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&) + 236 22 clang 0x00000000015cc37c clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int, clang::Decl*) + 2442 23 clang 0x00000000015c9235 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 6031 24 clang 0x00000000015bad20 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 7156 25 clang 0x000000000159f5c0 clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::AccessSpecifier) + 420 26 clang 0x000000000159f3cf clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 1015 27 clang 0x000000000159ef31 clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int, clang::SourceLocation&, clang::AccessSpecifier) + 189 28 clang 0x00000000015b7106 clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 230 29 clang 0x00000000015a9d20 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 1580 30 clang 0x00000000015c54ec clang::Parser::ParseInnerNamespace(std::vector >&, std::vector >&, std::vector >&, unsigned int, clang::SourceLocation&, clang::SourceLocation&, clang::ParsedAttributes&, clang::SourceLocation&) + 180 31 clang 0x00000000015c537f clang::Parser::ParseNamespace(unsigned int, clang::SourceLocation&, clang::SourceLocation) + 3147 32 clang 0x00000000015b7232 clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 530 33 clang 0x00000000015a9d20 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 1580 34 clang 0x00000000015a9645 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 309 35 clang 0x0000000001589542 clang::ParseAST(clang::Sema&, bool) + 461 36 clang 0x00000000012bf2ff clang::ASTFrontendAction::ExecuteAction() + 265 37 clang 0x0000000001415d73 clang::CodeGenAction::ExecuteAction() + 975 38 clang 0x00000000012bef59 clang::FrontendAction::Execute() + 325 39 clang 0x00000000012a15ea clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 740 40 clang 0x0000000001273907 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 999 41 clang 0x0000000001264b11 cc1_main(char const**, char const**, char const*, void*) + 921 42 clang 0x000000000126ef37 main + 481 43 libc.so.6 0x00007f8307b0813d __libc_start_main + 237 44 clang 0x00000000012641f9 Stack dump: 0. Program arguments: /home/zoxc/llvm-build/build/Debug+Asserts/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name Canvas.cpp -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.1.20110627 -momit-leaf-frame-pointer -g -coverage-file debug/Canvas.o -resource-dir /home/zoxc/llvm-build/build/Debug+Asserts/bin/../lib/clang/3.0 -I ../../Prelude/include -fmodule-cache-path /var/tmp/clang-module-cache -Wall -Wno-invalid-offsetof -std=gnu++0x -fdeprecated-macro -ferror-limit 19 -fmessage-length 141 -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o debug/Canvas.o -x c++ Canvas.cpp 1. ./Common.hpp:48:5: current parser token ')' 2. ./Common.hpp:13:1: parsing namespace 'Reindeer' 3. ./Common.hpp:33:68: parsing struct/union/class body 'Map' 4. ./Common.hpp:44:3: parsing function body 'get_create' 5. ./Common.hpp:44:3: in compound statement ('{}') clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Preprocessed source(s) are located at: clang: note: diagnostic msg: /tmp/Canvas-V23lKw.ii -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 16 16:59:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 16 Sep 2011 16:59:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 10944] New: Rejects-valid/potential miscompile in edge case with templates and initializer-list Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10944 Summary: Rejects-valid/potential miscompile in edge case with templates and initializer-list Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: struct X { int a, b; }; template int foo(T x) { X i[] = { 1, x, { 3, 4 } }; return sizeof(i); } void g() { X i = { 1, 2 }; foo(i); } This code is valid, but clang rejects it. More complicated cases involving conversion operators could be miscompiled. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 16 17:02:37 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 16 Sep 2011 17:02:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 10941] [AVX] foldMemoryOperand failed for bezier code example. In-Reply-To: References: Message-ID: <20110916220237.957342A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10941 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-09-16 17:02:37 CDT --- Fixed in r139953! -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 16 18:02:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 16 Sep 2011 18:02:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 10933] clang/analyzer hangs when compiling gcc In-Reply-To: References: Message-ID: <20110916230228.15D742A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10933 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Ted Kremenek 2011-09-16 18:02:27 CDT --- Fixed in r139967 and r139968. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 16 20:46:47 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 16 Sep 2011 20:46:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 1440] llvm demo page needs to be improved In-Reply-To: References: Message-ID: <20110917014647.C38492A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=1440 David Blaikie changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #13 from David Blaikie 2011-09-16 20:46:45 CDT --- With a modified version of Bjarke's change we've added support for the choice of output (x86-32, x86-64, LLVM assembly, LLVM C++ API), leaving out the choice of front end for now (since llvm-gcc is dead - though perhaps at some point we could add a choice to select between clang & dragonegg). Revision 139976 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 17 01:35:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 17 Sep 2011 01:35:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 10945] New: can't compile boost::thread with -std=c++0x Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10945 Summary: can't compile boost::thread with -std=c++0x Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: miles at gnu.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The following simple source file, "t.cc": #include Compile successfully using "clang++ -c t.cc", but fails to compile if I use "clang++ -c -std=c++0x t.cc". It compiles successfully with all the versions of g++ I tried (using -std=c++0x), 4.5, 4.6, 4.7-20110914. I'll add attachments for the pre-processed source file, and the error output files. boost threads is Debian version 1.46.1-7. [I guess it's using libstdc++ from gcc 4.6.1, as that's the default system compiler.] Clang++ version: clang version 3.0 (http://llvm.org/git/clang.git 9bdbec17c3bc44aaa5ea88c62a958d47d1031016) Target: x86_64-unknown-linux-gnu Thread model: posix Thanks, -Miles -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 17 10:13:41 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 17 Sep 2011 10:13:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 10946] New: Simple program hits assert in induction variable simplification Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10946 Summary: Simple program hits assert in induction variable simplification Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu With top of tree, if I run opt with the short program below, I get the following assertion failure. (2.9 doesn't have this issue. I will start digging a bit shortly to see if I can find the relevant change.) % opt -indvars bugpoint-reduced-simplified.ll Assertion failed: (isSCEVable(V->getType()) && "Value is not SCEVable!"), function getSCEV, file ScalarEvolution.cpp, line 2653. [stack trace] Stack dump: 0. Program arguments: opt -indvars bugpoint-reduced-simplified.ll 1. Running pass 'Function Pass Manager' on module 'bugpoint-reduced-simplified.ll'. 2. Running pass 'Loop Pass Manager' on function '@"f_fu___REFUf[]REFUf[]Uf"' 3. Running pass 'Induction Variable Simplification' on basic block '%for_loop398' define void @"f_fu___REFUf[]REFUf[]Uf"() nounwind { allocas: br i1 undef, label %cif_done, label %for_loop398 cif_done: ; preds = %allocas ret void for_loop398: ; preds = %for_loop398, %allocas %storemerge35 = phi <4 x i32> [ %storemerge, %for_loop398 ], [ undef, %allocas ] %bincmp431 = icmp sge <4 x i32> %storemerge35, %storemerge = bitcast <4 x float> undef to <4 x i32> br label %for_loop398 } -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 17 11:33:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 17 Sep 2011 11:33:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 10947] New: Discriminated unions miss move operations Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10947 Summary: Discriminated unions miss move operations Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: aaron at aaronballman.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com According to [class.union]p2, a discriminated union cannot contain and move constructors or move assignments. However, the following code will compile: // RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s void abort() __attribute__((noreturn)); class clsMC { // expected-note {{because type 'clsMC' has a user-defined move constructor}} public: clsMC( const clsMC&& rhs ) { abort(); } }; class clsMA { // expected-note {{because type 'clsMA' has a user-defined move assignment operator}} public: clsMA&& operator= (clsMA&& rhs) { abort(); } }; union u { clsMC a; // expected-error {{union member 'a' has a non-trivial move constructor}} clsMA b; // expected-error {{union member 'b' has a non-trivial move assignment operator}} }; -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Sep 17 12:25:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 17 Sep 2011 12:25:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 10947] Discriminated unions miss move operations In-Reply-To: References: Message-ID: <20110917172505.850742A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10947 Aaron Ballman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Aaron Ballman 2011-09-17 12:25:05 CDT --- Nevermind, I misread. Sorry for the noise! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Sep 17 13:32:08 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 17 Sep 2011 13:32:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 10948] New: [AVX] Cannot select: f32 = X86ISD::FSETCCss Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10948 Summary: [AVX] Cannot select: f32 = X86ISD::FSETCCss Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7285) --> (http://llvm.org/bugs/attachment.cgi?id=7285) test case With the attached and top of tree, I'm getting the following crash: % llc -mattr=+avx bugpoint-reduced-simplified.ll LLVM ERROR: Cannot select: 0x7f9cac033510: f32 = X86ISD::FSETCCss 0x7f9cac033310, 0x7f9cac034010, 0x7f9cac033410 [ID=15] 0x7f9cac033310: f32,ch = CopyFromReg 0x110f0c188, 0x7f9cac033210 [ORD=1] [ID=12] 0x7f9cac033210: f32 = Register %vreg1 [ORD=1] [ID=1] 0x7f9cac034010: f32,ch = load 0x110f0c188, 0x7f9cac033b10, 0x7f9cac033a10 [ID=14] 0x7f9cac033b10: i64 = X86ISD::WrapperRIP 0x7f9cac033710 [ID=13] 0x7f9cac033710: i64 = TargetConstantPool 0 [ID=4] 0x7f9cac033a10: i64 = undef [ID=3] 0x7f9cac033410: i8 = Constant<4> [ID=10] (This seems to be a regression from the past few days, but I haven't yet tried to isolate the change.) -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 17 14:52:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 17 Sep 2011 14:52:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 10949] New: [AVX] incorrect code generated for <8 x i16> vector Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10949 Summary: [AVX] incorrect code generated for <8 x i16> vector 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: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7286) --> (http://llvm.org/bugs/attachment.cgi?id=7286) test case (I'm seeing some recent breakage for 8x vectors of i8, i16, and i64 sizes with AVX, as of the last day or two. I assume they're likely to have the same root cause, so am reporting just this one.) With the attached test case, the code generated for foo() computes different results if I use the -mattr=+avx flag to llc or not. The results computed for the SSE path [0,2,0,4,0,0,0,0] are correct, but the AVX path ends up returning [0,2,0,0,0,0,0,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 Sep 17 15:50:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 17 Sep 2011 15:50:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 10950] New: clang asserts on (!type->isPlaceholderType()) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10950 Summary: clang asserts on (!type->isPlaceholderType()) Product: clang Version: trunk Platform: Other OS/Version: All Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: lists at eitanadler.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7287) --> (http://llvm.org/bugs/attachment.cgi?id=7287) code that fails assertion Clang crashes with an assertion failure when run on the attached (minified) code. Assertion failed: (!type->isPlaceholderType()), function CheckPlaceholderExpr, file SemaExpr.cpp, line 10091. Stack dump: 0. Program arguments: /home/eitan/svn/llvm/Debug+Asserts/bin/clang -cc1 -triple x86_64-unknown-freebsd9.0 -emit-obj -mrelax-all -disable-free -main-file-name the-one-that-failed.ii -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.17.50 -momit-leaf-frame-pointer -coverage-file the-one-that-failed.o -resource-dir /home/eitan/svn/llvm/Debug+Asserts/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length 238 -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o the-one-that-failed.o -x c++-cpp-output the-one-that-failed.ii 1. the-one-that-failed.ii:23:91: current parser token '}' 2. the-one-that-failed.ii:18:1: parsing namespace 'std' 3. the-one-that-failed.ii:23:25: parsing function body 'listMenu' 4. the-one-that-failed.ii:23:25: in compound statement ('{}') clang: error: unable to execute command: Abort trap: 6 (core dumped) clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 17 16:16:09 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 17 Sep 2011 16:16:09 -0500 (CDT) Subject: [LLVMbugs] [Bug 10951] New: The .size directive is incorrect for Linux PPC64. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10951 Summary: The .size directive is incorrect for Linux PPC64. 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 The latest binutils (2.21.2) assembler for the PPC64 complains about the .size directive emitted by LLVM as not containing an absolute expression. An example: __umodsi3: .quad .L.__umodsi3,.TOC. at tocbase .previous .L.__umodsi3: mflr 0 [snip] mtlr 0 blr .Ltmp0: .size __umodsi3, .Ltmp0-__umodsi3 The correct size expression should be .Ltmp0-.L.__umodsi3 The code which does this is in AsmPrinter.cpp: // If the target wants a .size directive for the size of the function, emit // it. if (MAI->hasDotTypeDotSizeDirective()) { // Create a symbol for the end of function, so we can get the size as // difference between the function label and the temp label. MCSymbol *FnEndLabel = OutContext.CreateTempSymbol(); OutStreamer.EmitLabel(FnEndLabel); const MCExpr *SizeExp = MCBinaryExpr::CreateSub(MCSymbolRefExpr::Create(FnEndLabel, OutContext), MCSymbolRefExpr::Create(CurrentFnSym, OutContext), OutContext); OutStreamer.EmitELFSize(CurrentFnSym, SizeExp); } -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 17 17:59:52 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 17 Sep 2011 17:59:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 10771] -Warray-bounds false positive when a cast is involved In-Reply-To: References: Message-ID: <20110917225952.8C2472A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10771 Nico Weber changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Nico Weber 2011-09-17 17:59:52 CDT --- r139990 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 17 19:15:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 17 Sep 2011 19:15:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 10531] In-class initializer weirdness with anonymous unions In-Reply-To: References: Message-ID: <20110918001559.18EE92A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10531 Richard Smith changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #2 from Richard Smith 2011-09-17 19:15:58 CDT --- Fixed in r139991. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 18 05:45:51 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 18 Sep 2011 05:45:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 10903] [VECTOR-SELECT] needed dagcombine optimization for loading illegal types from memory In-Reply-To: References: Message-ID: <20110918104551.B9BCE2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10903 Nadav Rotem 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 Sun Sep 18 05:57:59 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 18 Sep 2011 05:57:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 10953] New: codegen failure with empty C++0x unions Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10953 Summary: codegen failure with empty C++0x unions Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: richard-llvm at metafoo.co.uk CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The following code triggers an assertion in clang codegen: $ cat union.cpp union Union { Union() {} } u; $ clang++ -std=c++0x union.cpp clang: /mnt/clang-2/src/tools/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp:982: clang::CodeGen::CGRecordLayout* clang::CodeGen::CodeGenTypes::ComputeRecordLayout(const clang::RecordDecl*, llvm::StructType*): Assertion `AlignedNonVirtualTypeSizeInBits == getTargetData().getTypeAllocSizeInBits(BaseTy) && "Type size mismatch!"' failed. 0 clang 0x0000000001bb49bf 1 clang 0x0000000001bb6c32 2 libpthread.so.0 0x00007fc1e81d28f0 3 libc.so.6 0x00007fc1e74c1a75 gsignal + 53 4 libc.so.6 0x00007fc1e74c55c0 abort + 384 5 libc.so.6 0x00007fc1e74ba941 __assert_fail + 241 6 clang 0x00000000008f0c42 clang::CodeGen::CodeGenTypes::ComputeRecordLayout(clang::RecordDecl const*, llvm::StructType*) + 3090 7 clang 0x000000000080b61e clang::CodeGen::CodeGenTypes::ConvertRecordDeclType(clang::RecordDecl const*) + 2238 8 clang 0x000000000080bf81 clang::CodeGen::CodeGenTypes::ConvertType(clang::QualType) + 625 9 clang 0x000000000080ccee clang::CodeGen::CodeGenTypes::ConvertTypeForMem(clang::QualType) + 30 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 18 06:01:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 18 Sep 2011 06:01:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 10954] New: Incorrectly building an initializer for every union member Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10954 Summary: Incorrectly building an initializer for every union member Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: richard-llvm at metafoo.co.uk CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com clang tries to create an implicit initializer for every member of a union: $ cat union.cpp struct S { S(char); }; union U { S s; int n; U() : n(0) {} }; $ clang++ -std=c++0x union.cpp union.cpp:5:3: error: constructor for 'U' must explicitly initialize the member 's' which does not have a default constructor U() : n(0) {} ^ union.cpp:4:5: note: member is declared here S s; int n; ^ union.cpp:1:8: note: 'S' declared here struct S { S(char); }; ^ -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Sep 18 06:15:23 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 18 Sep 2011 06:15:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 10954] Incorrectly building an initializer for every union member In-Reply-To: References: Message-ID: <20110918111523.7B4542A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10954 Richard Smith changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Richard Smith 2011-09-18 06:15:23 CDT --- Fixed in r139996. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 18 07:12:33 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 18 Sep 2011 07:12:33 -0500 (CDT) Subject: [LLVMbugs] [Bug 10304] unrestricted unions call *all* destructors for member types In-Reply-To: References: Message-ID: <20110918121233.78DAD2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10304 Richard Smith changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Richard Smith 2011-09-18 07:12:33 CDT --- Fixed in r139997. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 18 07:54:47 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 18 Sep 2011 07:54:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 10955] New: [AVX] Cannot select f32 = X86ISD::FSETCCsd for x86/AVX target Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10955 Summary: [AVX] Cannot select f32 = X86ISD::FSETCCsd for x86/AVX target Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: syoyofujita at gmail.com CC: llvmbugs at cs.uiuc.edu revision: 139977 With following simplified .ll, llc with x86/AVX target failed as, $ llc -mattr=+avx bugpoint-reduced-simplified.bc LLVM ERROR: Cannot select: 0x101832d10: f32 = X86ISD::FSETCCsd 0x101833610, 0x101833210, 0x101833510 [ID=6] 0x101833610: f64 = undef [ORD=1] [ID=1] 0x101833210: f64 = ConstantFP<0.000000e+00> [ORD=1] [ID=2] 0x101833510: i8 = Constant<0> [ID=4] $ cat bugpoint-reduced-simplified.ll ; ModuleID = 'bugpoint-reduced-simplified.bc' 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-apple-macosx10.6.8" define void @_ZN8picojsoneqERKNS_5valueES2_() uwtable ssp { entry: br i1 undef, label %if.then, label %if.end if.then: ; preds = %entry br label %return if.end: ; preds = %entry br i1 undef, label %if.then5, label %if.end16 if.then5: ; preds = %if.end unreachable if.end16: ; preds = %if.end br i1 undef, label %if.then19, label %if.end31 if.then19: ; preds = %if.end16 br i1 undef, label %land.rhs22, label %land.end30 land.rhs22: ; preds = %if.then19 %cmp29 = fcmp oeq double undef, 0.000000e+00 br label %land.end30 land.end30: ; preds = %land.rhs22, %if.then19 %0 = phi i1 [ false, %if.then19 ], [ %cmp29, %land.rhs22 ] store i1 %0, i1* undef br label %return if.end31: ; preds = %if.end16 unreachable return: ; preds = %land.end30, %if.then ret void } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Sep 18 11:22:56 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 18 Sep 2011 11:22:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 10936] clang/analyzer hangs when compiling postgresql 9.1.0 In-Reply-To: References: Message-ID: <20110918162256.34F1C2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10936 John Smith changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from John Smith 2011-09-18 11:22:55 CDT --- Unable to reproduce with trunk rev. 139992. postgresql 9.1.0 build/analyzed fully without hang/freeze with trunk rev. 139992. Possibly resolution for bug 10933 resolved this issue 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 Sun Sep 18 11:48:25 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 18 Sep 2011 11:48:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 4384] False positives when analyzing 'sdlmame' ? In-Reply-To: References: Message-ID: <20110918164825.367262A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4384 John Smith changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Sep 18 14:44:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 18 Sep 2011 14:44:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 10956] New: No warning "'class' may not respond to 'selector'" for forward declared ObjC class Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10956 Summary: No warning "'class' may not respond to 'selector'" for forward declared ObjC class Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: vsapsai.llvm.bugs at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7296) --> (http://llvm.org/bugs/attachment.cgi?id=7296) Files mentioned in steps to reproduce clang doesn't emit warning "'class' may not respond to 'selector'" for forward declared ObjC class. STEPS TO REPRODUCE: Compile file handleFoo.m, where (corresponding files are attached) //handleFoo.m #import "bar.h" @class FooClass; void handleFoo(FooClass *foo) { [foo barMethod]; } //foo.h #import @interface FooClass : NSObject { } - (void)fooMethod; @end //bar.h #import @interface BarClass : NSObject{ } - (void)barMethod; @end ACTUAL RESULTS: There are no warnings during compilation. EXPECTED RESULTS: Warning "'FooClass' may not respond to 'barMethod'" should be emitted. Expect the same behavior as for full #import. If s/@class FooClass;/#import "foo.h"/ mentioned warning is emitted. Build & Platform: clang version 3.0 (trunk 140001) on Mac OS X 10.6.8 Additional Builds: Apple clang version 2.0 (tags/Apple/clang-139) (based on LLVM 2.9svn) -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 18 15:21:53 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 18 Sep 2011 15:21:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 10957] New: Preverify pass before a verify pass can abort the program Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10957 Summary: Preverify pass before a verify pass can abort the program 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: endobson at mac.com CC: llvmbugs at cs.uiuc.edu I have a known bad module and am trying to run a verify pass over it to get back a diagnostic message to return to the user. The problem is that even if I pass in a ReturnStatusAction to the Verifier, the preverifier runs before the verifier and will abort the program with 'report_fatal_error' if any basic block does not have a terminator. This is a problem because I do not want to abort, I want an error message as I passed in the ReturnStatusAction. To duplicate, create a module, add a function, add a basic block, and run the verifier pass over 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 Sep 19 12:56:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 19 Sep 2011 12:56:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 10946] Simple program hits assert in induction variable simplification In-Reply-To: References: Message-ID: <20110919175622.685FA2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10946 Andrew Trick changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Component|new bugs |Loop Optimizer Resolution| |FIXED AssignedTo|atrick at apple.com |unassignedbugs at nondot.org Product|new-bugs |libraries --- Comment #2 from Andrew Trick 2011-09-19 12:56:21 CDT --- Thanks for the bug report. It was an easy fix, sorry I didn't get to it until Monday. Fixed in r140026. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 19 13:16:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 19 Sep 2011 13:16:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 10958] New: ASTImporter: Lookup for empty DeclarationName when searching for typedef Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10958 Summary: ASTImporter: Lookup for empty DeclarationName when searching for typedef Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: llvm at meinersbur.de CC: llvmbugs at cs.uiuc.edu ASTImporter looks for existing declarations/definitions of structs before importing it again. This behavior is implemented in ASTNodeImporter::VisitRecordDecl. It also looks for anonymous structs in typedefs, i.e. typedef struct { int x; } NameOfStruct; It will save the typedef's name in the variable "SearchName". However, when looking up the identifier, it uses the original "Name" variable that contains the struct's name which is empty for anonymous structs. I suggest to replace it with SearchName. Same applies for the copy&pasted ASTNodeImporter::VisitEnumDecl. Bug found in clang 2.9 and Revision 140031 Suggested fix (below) works for clang 2.9 Generally, ASTImporter is very immature. Index: ASTImporter.cpp =================================================================== --- ASTImporter.cpp (revision 140023) +++ ASTImporter.cpp (working copy) @@ -2178,7 +2178,7 @@ // We may already have an enum of the same name; try to find and match it. if (!DC->isFunctionOrMethod() && SearchName) { SmallVector ConflictingDecls; - for (DeclContext::lookup_result Lookup = DC->lookup(Name); + for (DeclContext::lookup_result Lookup = DC->lookup(SearchName); Lookup.first != Lookup.second; ++Lookup.first) { if (!(*Lookup.first)->isInIdentifierNamespace(IDNS)) @@ -2264,7 +2264,7 @@ RecordDecl *AdoptDecl = 0; if (!DC->isFunctionOrMethod() && SearchName) { SmallVector ConflictingDecls; - for (DeclContext::lookup_result Lookup = DC->lookup(Name); + for (DeclContext::lookup_result Lookup = DC->lookup(SearchName); Lookup.first != Lookup.second; ++Lookup.first) { if (!(*Lookup.first)->isInIdentifierNamespace(IDNS)) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 19 16:30:02 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 19 Sep 2011 16:30:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 10955] [AVX] Cannot select f32 = X86ISD::FSETCCsd for x86/AVX target In-Reply-To: References: Message-ID: <20110919213002.AABC62A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10955 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-09-19 16:30:02 CDT --- Hi, Committed in r140069! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 19 16:30:15 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 19 Sep 2011 16:30:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 10948] [AVX] Cannot select: f32 = X86ISD::FSETCCss In-Reply-To: References: Message-ID: <20110919213015.1BE4A2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10948 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Bruno Cardoso Lopes 2011-09-19 16:30:14 CDT --- Hi, Committed in r140069! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 19 16:37:53 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 19 Sep 2011 16:37:53 -0500 (CDT) Subject: [LLVMbugs] [Bug 10949] [AVX] incorrect code generated for <8 x i16> vector In-Reply-To: References: Message-ID: <20110919213753.419C82A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10949 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #4 from Bruno Cardoso Lopes 2011-09-19 16:37:52 CDT --- Hi Matt, Not sure what's happening, running on my machine: $ llc -mattr=+avx x.ll -o x.s $ clang -mavx x.s -o x $ ./x result[0] = 0.0 result[1] = 2.0 result[2] = 0.0 result[3] = 4.0 result[4] = 0.0 result[5] = 0.0 result[6] = 0.0 result[7] = 0.0 This is the expect output, right? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 19 16:54:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 19 Sep 2011 16:54:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 10949] [AVX] incorrect code generated for <8 x i16> vector In-Reply-To: References: Message-ID: <20110919215428.B2BF82A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10949 Matt Pharr changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #5 from Matt Pharr 2011-09-19 16:54:28 CDT --- Interesting. If I run it like that, then I get the same output (which is correct). However, if I compile it like: % llc -mattr=+avx -filetype=obj bug.ll -o bug.o % gcc bug.o % ./a.out Then I still get the incorrect output. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 19 17:58:34 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 19 Sep 2011 17:58:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 10959] New: graphviz dependency mode Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10959 Summary: graphviz dependency mode Product: clang Version: trunk Platform: Macintosh OS/Version: All Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: echristo at gmail.com CC: llvmbugs at cs.uiuc.edu It'd be nice to have a graphviz output from the driver. Both for dependency tracking along the -MD route and just giving tool dependencies during the execution of a compile/link/etc. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 19 18:37:18 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 19 Sep 2011 18:37:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 10949] [AVX] incorrect code generated for <8 x i16> vector In-Reply-To: References: Message-ID: <20110919233718.6DEA12A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10949 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #7 from Bruno Cardoso Lopes 2011-09-19 18:37:17 CDT --- Fixed in r140098 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 19 18:48:08 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 19 Sep 2011 18:48:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 10960] New: [x86 disassembler] pop operand not displayed as expected for intel syntax Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10960 Summary: [x86 disassembler] pop operand not displayed as expected for intel syntax Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: kkhoo at perfwizard.com CC: llvmbugs at cs.uiuc.edu $ echo '0x0f 0xa1'| ./llvm-mc -disassemble -triple="x86_64" -x86-asm-syntax=intel pop %fs $ echo '0x0f 0xa9'| ./llvm-mc -disassemble -triple="x86_64" -x86-asm-syntax=intel pop %gs Based on how the disassembler treats other x86 registers, I would expect the operand in these cases to be shown as "FS" and "GS" using Intel syntax For example: $ echo '0x8f 0xc0'| ./llvm-mc -disassemble -triple="x86_64" -x86-asm-syntax=intel pop RAX $ echo '0x8f 0xc0'| ./llvm-mc -disassemble -triple="x86_64" popq %rax The cases below are similar, but these forms should all be invalid in x86-64 mode according to the Intel ISA reference: $ echo '0x1f'| ./llvm-mc -disassemble -triple="x86_64" -x86-asm-syntax=intel pop %ds $ echo '0x07'| ./llvm-mc -disassemble -triple="x86_64" -x86-asm-syntax=intel pop %es $ echo '0x17'| ./llvm-mc -disassemble -triple="x86_64" -x86-asm-syntax=intel pop %ss So these could be added as test cases for bug 10664. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 20 00:52:35 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 20 Sep 2011 00:52:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 10961] New: LLVM unnecessarily uses LDRB/STRB on Cortex-M3 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10961 Summary: LLVM unnecessarily uses LDRB/STRB on Cortex-M3 Product: libraries Version: 2.9 Platform: PC OS/Version: Windows NT Status: NEW Severity: enhancement Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: xocotl at gmail.com CC: llvmbugs at cs.uiuc.edu Cortex-M3 can handle unaligned loads/stores unless a system flag has been set to disable it. So, it would be nice if there were an option to prevent LLVM from generating tons of LDRB/STRB instructions when it thinks the value is unaligned. Especially as this processor typically is paired with say, 16 KB of code space, and the LDRB/STRB balloons things to twice or more. :) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 20 01:43:30 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 20 Sep 2011 01:43:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 10962] New: -Wuninitialized should handle C++ member initializers Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10962 Summary: -Wuninitialized should handle C++ member initializers Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: matthewbg at google.com CC: llvmbugs at cs.uiuc.edu Reduced from a real-life bug: struct Object { Object(int *ptr) { *ptr = 5; } }; struct UsesObjects { UsesObjects() : obj(ptr), ptr(new int) {} Object obj; int *ptr; }; runUninitializedVariablesAnalysis only operates on VarDecls, which keeps it from complaining about the CFG for the UsesObjects constructor: [ B2 (ENTRY) ] Predecessors (0): Successors (1): B1 [ B1 ] 1: this->ptr 2: [B1.1] 3: obj([B1.2]) (Member initializer) 4: ptr(new int) (Member initializer) Predecessors (1): B2 Successors (1): B0 [ B0 (EXIT) ] Predecessors (1): B1 Successors (0): Since member initialization order is trivially known, applying the full power of the general uninitialized checker might be overkill, but it would be nice to have a warning here. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 20 06:57:16 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 20 Sep 2011 06:57:16 -0500 (CDT) Subject: [LLVMbugs] [Bug 6950] scan-build for configure script that uses AC_LANG_WERROR does not work as expected In-Reply-To: References: Message-ID: <20110920115716.BBECC2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6950 Andrey Simonenko changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Version|2.8 |trunk Resolution| |FIXED --- Comment #4 from Andrey Simonenko 2011-09-20 06:57:15 CDT --- This bug report can be closed, since scan-build from clang-devel-3.0.r133062 (from FreeBSD ports collection) does not output "ANALYZE: ..." strings any more (if it not run with "-v -v" 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 Tue Sep 20 07:54:36 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 20 Sep 2011 07:54:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 10963] New: [AVX] incorrect code generated for <8 x i8> vector shuffle Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10963 Summary: [AVX] incorrect code generated for <8 x i8> vector shuffle Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7297) --> (http://llvm.org/bugs/attachment.cgi?id=7297) test case, part 1 The attached test case loads a vector of i8 values from memory (0,1,2,3,4,5,6,7) and does a shuffle of them with shuffle indices (2,3,4,5,6,7,0,1) (such that the result should be the same as the shuffle indices). If I compile with a regular SSE target, I get the expected result: % llc bug.ll -o bug.s && clang bug.c bug.s && ./a.out 2 3 4 5 6 7 0 1 But with avx, all of the values are wrong. % llc -mattr=+avx bug.ll -o bug.s && clang bug.c bug.s && ./a.out 0 2 3 4 5 6 7 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 Sep 20 08:38:00 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 20 Sep 2011 08:38:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 10964] New: Segmentation fault in llvm::SmallVectorTemplateBase::grow(unsigned long) when compiling source with -g flag Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10964 Summary: Segmentation fault in llvm::SmallVectorTemplateBase::grow(unsigned long) when compiling source with -g flag Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: tm at ayena.de CC: llvmbugs at cs.uiuc.edu LLVM/Clang revision: 140141 The crash only happens with '-g' flag. Source compiles with i686-apple-darwin10-g++-4.2.1 without crash. Failing Code: namespace foo { namespace date_time { const char* nth_as_str(int ele) { return 0; } } } Stacktrace: ~/llvm/bin/clang++ -g -o clang_bug.o -c clang_bug.ii.cpp 0 clang 0x00000001014d7d12 llvm::SmallVectorTemplateBase::grow(unsigned long) + 2338 1 clang 0x00000001014d8349 llvm::SmallVectorTemplateBase::grow(unsigned long) + 3929 2 libSystem.B.dylib 0x00007fff859ce1ba _sigtramp + 26 3 libSystem.B.dylib 0x0000000000000049 _sigtramp + 2053316265 4 clang 0x000000010141246e llvm::LeakDetectorImpl::hasGarbage(std::string const&) + 4206 5 clang 0x00000001012ac49a llvm::cast_retty::ret_type llvm::cast(llvm::Value* const&) + 44074 6 clang 0x000000010017eaf5 llvm::iplist >::splice(llvm::ilist_iterator, llvm::iplist >&) + 12181 7 clang 0x0000000100186341 llvm::iplist >::splice(llvm::ilist_iterator, llvm::iplist >&) + 42977 8 clang 0x000000010017cdf4 llvm::iplist >::splice(llvm::ilist_iterator, llvm::iplist >&) + 4756 9 clang 0x000000010017fe80 llvm::iplist >::splice(llvm::ilist_iterator, llvm::iplist >&) + 17184 10 clang 0x00000001001862a8 llvm::iplist >::splice(llvm::ilist_iterator, llvm::iplist >&) + 42824 11 clang 0x000000010017cdf4 llvm::iplist >::splice(llvm::ilist_iterator, llvm::iplist >&) + 4756 12 clang 0x0000000100186c02 llvm::iplist >::splice(llvm::ilist_iterator, llvm::iplist >&) + 45218 13 clang 0x000000010018734d llvm::iplist >::splice(llvm::ilist_iterator, llvm::iplist >&) + 47085 14 clang 0x000000010023dfaa clang::BackendConsumer::InlineAsmDiagHandler(llvm::SMDiagnostic const&, void*, unsigned int) + 4586 15 clang 0x000000010023e857 clang::BackendConsumer::InlineAsmDiagHandler(llvm::SMDiagnostic const&, void*, unsigned int) + 6807 16 clang 0x0000000100246567 llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 22423 17 clang 0x00000001002442bf llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 13551 18 clang 0x000000010024562f llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 18527 19 clang 0x0000000100249a87 llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 36023 20 clang 0x0000000100249adb llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 36107 21 clang 0x0000000100249adb llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 36107 22 clang 0x000000010025589f llvm::IRBuilder >::CreatePHI(llvm::Type*, unsigned int, llvm::Twine const&) + 1535 23 clang 0x000000010023cb07 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 167 24 clang 0x000000010025f862 clang::MSP430InterruptAttr* clang::Decl::getAttr() const + 946 25 clang 0x000000010023bdb4 llvm::DenseMap, llvm::ValueMapConfig, llvm::DenseMapInfo > >, llvm::TrackingVH, llvm::DenseMapInfo, llvm::ValueMapConfig, llvm::DenseMapInfo > > >, llvm::DenseMapInfo > >::init(unsigned int) + 3572 26 clang 0x00000001000218f7 llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned int) + 14423 27 clang 0x000000010000a716 llvm::SmallVectorImpl::insert(char const**, char const* const&) + 3078 28 clang 0x0000000100002d35 29 clang 0x000000010000698d std::vector >::_M_insert_aux(__gnu_cxx::__normal_iterator > >, std::string const&) + 1453 30 clang 0x0000000100001634 31 clang 0x000000000000002a Stack dump: 0. Program arguments: /Users/tobias/llvm/bin/clang -cc1 -triple x86_64-apple-macosx10.6.8 -emit-obj -mrelax-all -disable-free -main-file-name clang_bug.ii.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 123.2 -g -coverage-file clang_bug.o -resource-dir /Users/tobias/llvm/bin/../lib/clang/3.0 -fmodule-cache-path /var/folders/5m/5mk-kBbrGguxaR0NKdsAyE+++TI/-Tmp-/clang-module-cache -fdeprecated-macro -ferror-limit 19 -fmessage-length 202 -stack-protector 1 -fblocks -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o clang_bug.o -x c++ clang_bug.ii.cpp 1. parser at end of file 2. clang_bug.ii.cpp:1:11: LLVM IR generation of declaration 'foo' 3. clang_bug.ii.cpp:3:18: Generating code for declaration 'foo::date_time::nth_as_str' clang: error: unable to execute command: Segmentation fault -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 20 09:00:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 20 Sep 2011 09:00:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 10965] New: Clang does not catch array bounds errors in simple loops Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10965 Summary: Clang does not catch array bounds errors in simple loops Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: asvitkine at chromium.org CC: llvmbugs at cs.uiuc.edu Tried this with my own built clang version 3.0 (trunk 140029) from TOT. Consider the code in a.c: #include #include int main(void) { int i, arrr[10]; for (i = 0; i < 10; i++) arrr[i] = rand(); for (i = 0; i <= 10; i++) { if (arrr[i]) { // out of bounds when i == 10 printf("Avast!\n"); } } return 0; } Or similar type of problem in b.c: #include #include int main(void) { int i, arrr[10]; for (i = 0; i < 10; i++) arrr[i] = rand(); for (i = 0; i < 10; i++) { if (arrr[6 + i]) { // out of bounds when i >= 4 printf("Arrr!\n"); } } return 0; } Clang does not seem to catch these problems with -Wall and -Wextra, and not even with --analyze. Interestingly, gcc 4.6 does catch these when using higher optimization levels (due to how some of GCC's warnings are found at codegen time - possibly after loop unrolling in this case): $ gcc-mp-4.6 -Wall -Wextra -O3 a.c a.c: In function 'main': a.c:12:13: warning: array subscript is above array bounds [-Warray-bounds] $ gcc-mp-4.6 -Wall -Wextra -O3 b.c b.c: In function 'main': b.c:12:13: warning: array subscript is above array bounds [-Warray-bounds] b.c:12:13: warning: array subscript is above array bounds [-Warray-bounds] b.c:12:13: warning: array subscript is above array bounds [-Warray-bounds] b.c:12:13: warning: array subscript is above array bounds [-Warray-bounds] b.c:12:13: warning: array subscript is above array bounds [-Warray-bounds] b.c:12:13: warning: array subscript is above array bounds [-Warray-bounds] At the very least, clang's analyzer should detect these, but doesn't. However, I'd argue that for such simple loops, it should be caught by regular warnings (i.e. in cases where its trivial to bound the index variables since the loop has no conditional breaks/continues/etc and if statements around the code in question). Of course, these checks should also apply to arrays inside structs which have a given size. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 20 09:49:41 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 20 Sep 2011 09:49:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 10966] New: In OpenCL, a vector literal cannot be used as an lvalue Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10966 Summary: In OpenCL, a vector literal cannot be used as an lvalue Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: anton.lokhmotov at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7301) --> (http://llvm.org/bugs/attachment.cgi?id=7301) Fix and test OpenCL 6.1.6 says: "A vector literal cannot be used as an L-value." The attached patch ensures that when the OpenCL dialect is used. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 20 09:59:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 20 Sep 2011 09:59:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 10967] New: In OpenCL, conversions between different vector types are disallowed Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10967 Summary: In OpenCL, conversions between different vector types are disallowed Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: anton.lokhmotov at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7302) --> (http://llvm.org/bugs/attachment.cgi?id=7302) Fix and tests OpenCL 6.2.1 says: "Implicit conversions between built-in vector data types are disallowed." OpenCL 6.2.2 says: "Explicit casts between vector types are not legal." For example: uint4 u = (uint4)(1); int4 i = u; // invalid implicit conversion int4 e = (int4)u; // invalid explicit conversion -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 20 12:03:11 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 20 Sep 2011 12:03:11 -0500 (CDT) Subject: [LLVMbugs] =?utf-8?b?W0J1ZyAxMDk2OF0gTmV3OiBPUyBYIDEwLjcuMTogIGZy?= =?utf-8?q?agmentation_fault_when_compiling_newlib_for_ARM-=C2=B5C?= Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10968 Summary: OS X 10.7.1: fragmentation fault when compiling newlib for ARM-?C 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: mano at gmx.li CC: llvmbugs at cs.uiuc.edu OS: OS X 10.7.1 (gcc -> llvm-gcc-4.2, g++ -> llvm-g++-4.2) I want to build an toolchain for my ARM-?C. I build the toolchain in the same way like the guidance from esden (see link). I tried several things, but when i arrived the point to compile newlib, the compilation ends with errors (fragmentation fault). My last idea was to change the compiler (frontend). With "CC=gcc-4.2 CXX=g++-4.2 ../configure ..." it works! - NO errors on compiling newlib. esden-link: http://www.esden.net/blog/2009/02/26/how-to-build-arm-gnu-gcc-toolchain-for-mac-os-x/ -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 20 16:39:25 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 20 Sep 2011 16:39:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 10963] [AVX] incorrect code generated for <8 x i8> vector shuffle In-Reply-To: References: Message-ID: <20110920213925.085E62A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10963 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Bruno Cardoso Lopes 2011-09-20 16:39:24 CDT --- Hi Matt, Fixed in r140183 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 20 17:57:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 20 Sep 2011 17:57:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 10969] New: trunk llvm (r140196) fails to build for linux/ppc Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10969 Summary: trunk llvm (r140196) fails to build for linux/ppc Product: new-bugs Version: trunk Platform: Macintosh OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: jeremyhu at apple.com CC: llvmbugs at cs.uiuc.edu if g++ -I/home/jeremy/src/llvm/build.ppc/include -I/home/jeremy/src/llvm/build.ppc/lib/Target/PowerPC -I/home/jeremy/src/llvm/include -I/home/jeremy/src/llvm/lib/Target/PowerPC -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O3 -fomit-frame-pointer -g -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -c -MMD -MP -MF "/home/jeremy/src/llvm/build.ppc/lib/Target/PowerPC/Release+Debug+Asserts/PPCAsmPrinter.d.tmp" -MT "/home/jeremy/src/llvm/build.ppc/lib/Target/PowerPC/Release+Debug+Asserts/PPCAsmPrinter.o" -MT "/home/jeremy/src/llvm/build.ppc/lib/Target/PowerPC/Release+Debug+Asserts/PPCAsmPrinter.d" /home/jeremy/src/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp -o /home/jeremy/src/llvm/build.ppc/lib/Target/PowerPC/Release+Debug+Asserts/PPCAsmPrinter.o ; \ then /bin/mv -f "/home/jeremy/src/llvm/build.ppc/lib/Target/PowerPC/Release+Debug+Asserts/PPCAsmPrinter.d.tmp" "/home/jeremy/src/llvm/build.ppc/lib/Target/PowerPC/Release+Debug+Asserts/PPCAsmPrinter.d"; else /bin/rm "/home/jeremy/src/llvm/build.ppc/lib/Target/PowerPC/Release+Debug+Asserts/PPCAsmPrinter.d.tmp"; exit 1; fi In file included from /home/jeremy/src/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.h:41:0, from /home/jeremy/src/llvm/lib/Target/PowerPC/MCTargetDesc/PPCBaseInfo.h:20, from /home/jeremy/src/llvm/lib/Target/PowerPC/PPC.h:18, from /home/jeremy/src/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:20: /home/jeremy/src/llvm/build.ppc/lib/Target/PowerPC/PPCGenRegisterInfo.inc:17:11: error: expected identifier before numeric constant /home/jeremy/src/llvm/build.ppc/lib/Target/PowerPC/PPCGenRegisterInfo.inc:17:11: error: expected unqualified-id before numeric constant In file included from /usr/include/c++/4.5/new:42:0, from /usr/include/c++/4.5/ext/new_allocator.h:33, from /usr/include/c++/4.5/powerpc-linux-gnu/bits/c++allocator.h:34, from /usr/include/c++/4.5/bits/allocator.h:48, from /usr/include/c++/4.5/string:43, from /home/jeremy/src/llvm/include/llvm/ADT/StringRef.h:16, from /home/jeremy/src/llvm/include/llvm/Support/ErrorHandling.h:19, from /home/jeremy/src/llvm/lib/Target/PowerPC/MCTargetDesc/PPCBaseInfo.h:21, from /home/jeremy/src/llvm/lib/Target/PowerPC/PPC.h:18, from /home/jeremy/src/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:20: /usr/include/c++/4.5/exception:37:37: error: expected ?}? before end of line /usr/include/c++/4.5/exception:37:37: error: expected declaration before end of line /bin/rm: cannot remove `/home/jeremy/src/llvm/build.ppc/lib/Target/PowerPC/Release+Debug+Asserts/PPCAsmPrinter.d.tmp': No such file or directory preprocessed source attached. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 20 19:55:38 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 20 Sep 2011 19:55:38 -0500 (CDT) Subject: [LLVMbugs] [Bug 10970] New: Internal compiler error when compiling LAPACK's strtri.f Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10970 Summary: Internal compiler error when compiling LAPACK's strtri.f Product: dragonegg Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: New Bugs AssignedTo: baldrick at free.fr ReportedBy: scott+llvm+bugzilla at pakin.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7309) --> (http://llvm.org/bugs/attachment.cgi?id=7309) Output from "gfortran -v -fplugin=/usr/local/lib/dragonegg.so -c strtri.f" I'm getting a segfault when I try to build the strtri.f file from LAPACK (cf. http://www.netlib.org/lapack/explore-html/de/d76/strtri_8f_source.html) using the trunk build of LLVM + DragonEgg (r140178) on x86_64-linux-gnu. There's no problem when I run gfortran by itself: $ gfortran --version | head -1 GNU Fortran (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2 $ gfortran -c strtri.f However, badness happens when I toss in the DragonEgg plugin: $ gfortran -fplugin=/usr/local/lib/dragonegg.so -c strtri.f *** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins. Event | Plugins PLUGIN_FINISH_UNIT | dragonegg PLUGIN_FINISH | dragonegg PLUGIN_START_UNIT | dragonegg PLUGIN_ALL_IPA_PASSES_END | dragonegg strtri.f: In function ?strtri_?: strtri.f:1:0: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 20 20:15:04 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 20 Sep 2011 20:15:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 10971] New: Due to bad hash functions, unordered_set can easily give horrible performance Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10971 Summary: Due to bad hash functions, unordered_set can easily give horrible performance Product: libc++ Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: All Bugs AssignedTo: hhinnant at apple.com ReportedBy: oneill+llvmbugs at cs.hmc.edu CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7311) --> (http://llvm.org/bugs/attachment.cgi?id=7311) Program to show bad hashing libc++ implements std::hash and friends as the identity function; this design choice, coupled with the implentation choices for unordered_set (i.e., not to compensate for this deficiency) result in hash tables that can easily offer poor performance (and are trivial to ?game?). Here's some output from my (slightly contrived not not implausible) test program, badhash.cpp: unix% badhash | head -25 42 -> bucket 42 1073 -> bucket 42 2104 -> bucket 42 3135 -> bucket 42 4166 -> bucket 42 5197 -> bucket 42 6228 -> bucket 42 7259 -> bucket 42 8290 -> bucket 42 9321 -> bucket 42 10352 -> bucket 42 11383 -> bucket 42 12414 -> bucket 42 13445 -> bucket 42 14476 -> bucket 42 15507 -> bucket 42 16538 -> bucket 42 17569 -> bucket 42 18600 -> bucket 42 19631 -> bucket 42 20662 -> bucket 42 21693 -> bucket 42 22724 -> bucket 42 23755 -> bucket 42 24786 -> bucket 42 Here's the results using a better hash function that is still just a few cycles to compute: unix% badhash | head -25 42 -> bucket 994 1073 -> bucket 969 2104 -> bucket 477 3135 -> bucket 975 4166 -> bucket 189 5197 -> bucket 458 6228 -> bucket 195 7259 -> bucket 972 8290 -> bucket 709 9321 -> bucket 978 10352 -> bucket 192 11383 -> bucket 461 12414 -> bucket 341 13445 -> bucket 173 14476 -> bucket 855 15507 -> bucket 179 16538 -> bucket 338 17569 -> bucket 693 18600 -> bucket 344 19631 -> bucket 176 20662 -> bucket 858 21693 -> bucket 690 22724 -> bucket 570 23755 -> bucket 839 24786 -> bucket 53 Saving a couple of cycles in computing the hash function is a false economy. Instead, please compute a *good* hash. Good hashes do a good job of masking the structure in their input, and thus appear to give randomly distributed values. Also note that the hash functions for types larger than size_t (e.g., the one for long long [on 32 bit]) don't look like they are good either. They don't even satisty the requirements of the C++11 spec which says that it should be statistically unlikely that two distinct keys will hash to the same hash value. Structure in the input can lead to high collision probability. A web search will find plenty of resouces on hashing, hash tables, good hash functions, etc. But I could contribute a patch if no one else wants to. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 20 20:27:55 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 20 Sep 2011 20:27:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 10820] GVN crash on code using i31 In-Reply-To: References: Message-ID: <20110921012755.122F42A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10820 Evan Cheng changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |evan.cheng at apple.com 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 Sep 21 00:18:18 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 21 Sep 2011 00:18:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 10972] New: -mavx treated as Core 2, getFPReg assert fail Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10972 Summary: -mavx treated as Core 2, getFPReg assert fail 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: mrob27 at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7312) --> (http://llvm.org/bugs/attachment.cgi?id=7312) preprocessed source MacOS 10.6.8, llvm-as --version is: 3.0svn (Aug 21 2011 (21:03:24). Host: x86_64-apple-darwin10.8.0 Compiling simple hello.c program with "-mavx" instead of "-mcorei7-avx" unleashes a ton of chaos apparently because the backend is trying to target Core 2. Note the Clang command-line arguments include conflicting options " -target-cpu core2 -target-feature +avx ". I cannot attach multiple files so the full C source (with a few useful comments) and clang output are on my website: mrob.com/pub/comp/llvm/llvm-bug-20110920.txt -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 21 01:00:25 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 21 Sep 2011 01:00:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 10972] -mavx treated as Core 2, getFPReg assert fail In-Reply-To: References: Message-ID: <20110921060025.B22A02A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10972 Benjamin Kramer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |benny.kra at gmail.com Resolution| |DUPLICATE --- Comment #2 from Benjamin Kramer 2011-09-21 01:00:25 CDT --- "-target-cpu core2 -target-feature +avx" isn't a conflict, it just enables all the features a core2 has plus avx. I don't think the -mcorei7-avx option exists, you probably meant -march=corei7-avx. Also, I can't reproduce this bug with LLVM ToT. *** This bug has been marked as a duplicate of bug 10843 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 21 03:09:13 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 21 Sep 2011 03:09:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 10713] Frontends consider calls to "XYZ foo()" to be var-args, but this is wrong In-Reply-To: References: Message-ID: <20110921080913.8F0E42A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10713 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #18 from John McCall 2011-09-21 03:09:11 CDT --- I've taught Clang to handle this in the frontend in r140241. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 21 03:12:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 21 Sep 2011 03:12:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 10810] Function prototype with K&R definition and resulting call. In-Reply-To: References: Message-ID: <20110921081240.78EAA2A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10810 John McCall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |rjmccall at apple.com Resolution| |FIXED --- Comment #2 from John McCall 2011-09-21 03:12:39 CDT --- It depends on the target. See our discussion in PR10713, as well as my comments in r140241, which fixes this in Clang (except on x86-64, where the ABI requires us to set %al for unprototyped calls). -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 21 03:36:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 21 Sep 2011 03:36:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 10973] New: clang drains memory while compiling PHP (crypt_sha512.c) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10973 Summary: clang drains memory while compiling PHP (crypt_sha512.c) Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: adam at NetBSD.org CC: llvmbugs at cs.uiuc.edu While trying to compile PHP 5.3.8, the compilation stops at ext/standard/crypt_sha512.c. 'clang' process increasingly allocates more and more memory. I had to abort after about 3-4GB has been allocated. This is llvm/clang rev 140239. The problem does not occur with "Apple clang version 3.0 (tags/Apple/clang-211.9) (based on LLVM 3.0svn)" from Xcode 4.2 build 4D177b. The problem only shows up when using optimisation (-O1 or above). Output with -O1 -v: ===> Building for php-5.3.8 /bin/sh /Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8/libtool --silent --preserve-dup-deps --mode=compile clang -Iext/standard/ -I/Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8/ext/standard/ -DPHP_ATOM_INC -I/Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8/include -I/Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8/main -I/Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8 -I/Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8/ext/date/lib -I/usr/pkg/include/libxml2 -I/Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8/TSRM -I/Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8/Zend -isysroot /Developer/SDKs/MacOSX10.7.sdk -I/usr/pkg/include -I/usr/include -no-cpp-precomp -I/usr/pkg/include -march=core2 -isysroot /Developer/SDKs/MacOSX10.7.sdk -O1 -v -I/usr/pkg/include -I/usr/include -fvisibility=hidden -c /Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8/ext/standard/crypt_sha512.c -o ext/standard/crypt_sha512.lo clang version 3.0 (trunk) Target: x86_64-apple-darwin11.1.0 Thread model: posix clang: warning: argument unused during compilation: '-no-cpp-precomp' "/usr/pkg/bin/clang" -cc1 -triple x86_64-apple-macosx10.7.1 -emit-obj -disable-free -disable-llvm-verifier -main-file-name crypt_sha512.c -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 127.2 -v -coverage-file ext/standard/crypt_sha512.o -resource-dir /usr/pkg/bin/../lib/clang/3.0 -isysroot /Developer/SDKs/MacOSX10.7.sdk -isysroot /Developer/SDKs/MacOSX10.7.sdk -D PHP_ATOM_INC -I ext/standard/ -I /Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8/ext/standard/ -I /Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8/include -I /Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8/main -I /Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8 -I /Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8/ext/date/lib -I /Volumes/Data/dist/pkgsrc/lang/php53/work/.buildlink/include/libxml2 -I /Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8/TSRM -I /Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8/Zend -I /Volumes/Data/dist/pkgsrc/lang/php53/work/.buildlink/include -fmodule-cache-path /var/folders/4v/d7vjg23d50n_q4q8lm2l37tc0000gn/T/clang-module-cache -O1 -ferror-limit 19 -fmessage-length 80 -fvisibility hidden -stack-protector 1 -fblocks -fdiagnostics-show-option -fcolor-diagnostics -o ext/standard/crypt_sha512.o -x c /Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8/ext/standard/crypt_sha512.c clang -cc1 version 3.0 based upon llvm 3.0svn hosted on x86_64-apple-darwin11.1.0 ignoring duplicate directory "ext/standard/" #include "..." search starts here: #include <...> search starts here: ext/standard/ /Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8/include /Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8/main /Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8 /Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8/ext/date/lib /Volumes/Data/dist/pkgsrc/lang/php53/work/.buildlink/include/libxml2 /Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8/TSRM /Volumes/Data/dist/pkgsrc/lang/php53/work/php-5.3.8/Zend /Volumes/Data/dist/pkgsrc/lang/php53/work/.buildlink/include /Developer/SDKs/MacOSX10.7.sdk/usr/local/include /usr/pkg/bin/../lib/clang/3.0/include /Developer/SDKs/MacOSX10.7.sdk/usr/include /Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks (framework directory) /Developer/SDKs/MacOSX10.7.sdk/Library/Frameworks (framework directory) End of search list. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 21 04:38:59 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 21 Sep 2011 04:38:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 7640] wiki - cannot upload files In-Reply-To: References: Message-ID: <20110921093859.967D02A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=7640 Tobias Grosser changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Tobias Grosser 2011-09-21 04:38:59 CDT --- Wiki does not exist any more -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 21 05:03:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 21 Sep 2011 05:03:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 10974] New: Clang fails on nested vector literals Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10974 Summary: Clang fails on nested vector literals Product: clang Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: anton.lokhmotov at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7315) --> (http://llvm.org/bugs/attachment.cgi?id=7315) Fix and tests Nested vector literals (as allowed by OpenCL 6.1.6) may cause Clang to fail. typedef int int2 __attribute((ext_vector_type(2))); typedef int int4 __attribute((ext_vector_type(4))); __constant int4 i_1_1_1_1 = (int4)(1,2,3,4); // works __constant int4 i_1_2_1 = (int4)(1,(int2)(2,3),4); // fails -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 21 05:13:43 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 21 Sep 2011 05:13:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 10975] New: In the OpenCL mode, the AltiVec mode must be off and checks must be strict Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10975 Summary: In the OpenCL mode, the AltiVec mode must be off and checks must be strict Product: clang Version: trunk Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: anton.lokhmotov at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7316) --> (http://llvm.org/bugs/attachment.cgi?id=7316) Fix OpenCL is different from AltiVec in the way it supports vector literals. OpenCL is strict with regards to semantic checks. For example, implicit conversions and explicit casts between vectors of different types are disallowed. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 21 06:48:11 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 21 Sep 2011 06:48:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 10976] New: Bad error message with bound member function Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10976 Summary: Bad error message with bound member function Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: chris at bubblescope.net CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The following code: #include struct V { int size(); int size() const; }; void print(V v) { std::cout << v.size; } Produces the following. I am not sure if it would be possible to give a lot less suggestions here. Also, in general only giving 1 or 2 (or 3?) overloads might be sensible. I imagine it is only for operator<<(ostream&, T) (or equivalently operator>>(istream&, T) that commonly so many possible overloads exist in C++. t.cc:10:16: error: a bound member function may only be called { std::cout << v.size; } ^~~~~~ /usr/include/c++/4.6/ostream:226:7: note: candidate function not viable: no known conversion from '' to 'const void *' for 1st argument; take the address of the argument with & operator<<(const void* __p) ^ /usr/include/c++/4.6/ostream:109:7: note: candidate function not viable: no known conversion from '' to '__ostream_type &(*)(__ostream_type &)' for 1st argument; operator<<(__ostream_type& (*__pf)(__ostream_type&)) ^ /usr/include/c++/4.6/ostream:118:7: note: candidate function not viable: no known conversion from '' to '__ios_type &(*)(__ios_type &)' for 1st argument; operator<<(__ios_type& (*__pf)(__ios_type&)) ^ /usr/include/c++/4.6/ostream:128:7: note: candidate function not viable: no known conversion from '' to 'std::ios_base &(*)(std::ios_base &)' for 1st argument; operator<<(ios_base& (*__pf) (ios_base&)) ^ /usr/include/c++/4.6/ostream:166:7: note: candidate function not viable: no known conversion from '' to 'long' for 1st argument; operator<<(long __n) ^ /usr/include/c++/4.6/ostream:170:7: note: candidate function not viable: no known conversion from '' to 'unsigned long' for 1st argument; operator<<(unsigned long __n) ^ /usr/include/c++/4.6/ostream:174:7: note: candidate function not viable: no known conversion from '' to 'bool' for 1st argument; operator<<(bool __n) ^ /usr/include/c++/4.6/ostream:178:7: note: candidate function not viable: no known conversion from '' to 'short' for 1st argument; operator<<(short __n); ^ /usr/include/c++/4.6/ostream:181:7: note: candidate function not viable: no known conversion from '' to 'unsigned short' for 1st argument; operator<<(unsigned short __n) ^ /usr/include/c++/4.6/ostream:189:7: note: candidate function not viable: no known conversion from '' to 'int' for 1st argument; operator<<(int __n); ^ /usr/include/c++/4.6/ostream:192:7: note: candidate function not viable: no known conversion from '' to 'unsigned int' for 1st argument; operator<<(unsigned int __n) ^ /usr/include/c++/4.6/ostream:201:7: note: candidate function not viable: no known conversion from '' to 'long long' for 1st argument; operator<<(long long __n) ^ /usr/include/c++/4.6/ostream:205:7: note: candidate function not viable: no known conversion from '' to 'unsigned long long' for 1st argument; operator<<(unsigned long long __n) ^ /usr/include/c++/4.6/ostream:210:7: note: candidate function not viable: no known conversion from '' to 'double' for 1st argument; operator<<(double __f) ^ /usr/include/c++/4.6/ostream:214:7: note: candidate function not viable: no known conversion from '' to 'float' for 1st argument; operator<<(float __f) ^ /usr/include/c++/4.6/ostream:222:7: note: candidate function not viable: no known conversion from '' to 'long double' for 1st argument; operator<<(long double __f) ^ /usr/include/c++/4.6/ostream:251:7: note: candidate function not viable: no known conversion from '' to '__streambuf_type *' (aka 'basic_streambuf > *') for 1st argument; operator<<(__streambuf_type* __sb); ^ /usr/include/c++/4.6/ostream:455:5: note: candidate function [with _CharT = char, _Traits = std::char_traits] not viable: no known conversion from '' to 'char' for 2nd argument; operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) ^ /usr/include/c++/4.6/ostream:461:5: note: candidate function [with _Traits = std::char_traits] not viable: no known conversion from '' to 'char' for 2nd argument; operator<<(basic_ostream& __out, char __c) ^ /usr/include/c++/4.6/ostream:467:5: note: candidate function [with _Traits = std::char_traits] not viable: no known conversion from '' to 'signed char' for 2nd argument; operator<<(basic_ostream& __out, signed char __c) ^ /usr/include/c++/4.6/ostream:472:5: note: candidate function [with _Traits = std::char_traits] not viable: no known conversion from '' to 'unsigned char' for 2nd argument; operator<<(basic_ostream& __out, unsigned char __c) ^ /usr/include/c++/4.6/ostream:509:5: note: candidate function [with _Traits = std::char_traits] not viable: no known conversion from '' to 'const char *' for 2nd argument; operator<<(basic_ostream& __out, const char* __s) ^ /usr/include/c++/4.6/ostream:522:5: note: candidate function [with _Traits = std::char_traits] not viable: no known conversion from '' to 'const signed char *' for 2nd argument; operator<<(basic_ostream& __out, const signed char* __s) ^ /usr/include/c++/4.6/ostream:527:5: note: candidate function [with _Traits = std::char_traits] not viable: no known conversion from '' to 'const unsigned char *' for 2nd argument; operator<<(basic_ostream& __out, const unsigned char* __s) ^ /usr/include/c++/4.6/bits/ostream.tcc:322:5: note: candidate function [with _CharT = char, _Traits = std::char_traits] not viable: no known conversion from '' to 'const char *' for 2nd argument; operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) ^ /usr/include/c++/4.6/ostream:450:5: note: candidate template ignored: deduced conflicting types for parameter '_CharT' ('char' vs. '') operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) ^ /usr/include/c++/4.6/bits/basic_string.h:2692:5: note: candidate template ignored: failed template argument deduction operator<<(basic_ostream<_CharT, _Traits>& __os, ^ /usr/include/c++/4.6/ostream:492:5: note: candidate template ignored: failed template argument deduction operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) ^ 1 error generated. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 21 08:00:26 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 21 Sep 2011 08:00:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 10977] New: clang misses inline functions in compile+link Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10977 Summary: clang misses inline functions in compile+link Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: contact at philipashmore.com CC: llvmbugs at cs.uiuc.edu Here's a simple test case < References: Message-ID: <20110921144135.7B5F02A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10896 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dgregor at apple.com Resolution| |FIXED --- Comment #4 from Douglas Gregor 2011-09-21 09:41:35 CDT --- Fixed by Stepan's patch in Clang r140250 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 21 09:43:20 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 21 Sep 2011 09:43:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 8026] clang c++ incorrectly accepts template data member In-Reply-To: References: Message-ID: <20110921144320.D367C2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8026 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2011-09-21 09:43:20 CDT --- Fixed by Stepan's patch in Clang r140250 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 21 10:34:59 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 21 Sep 2011 10:34:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 10977] clang misses inline functions in compile+link In-Reply-To: References: Message-ID: <20110921153459.8D7F62A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10977 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |INVALID --- Comment #1 from Eli Friedman 2011-09-21 10:34:59 CDT --- 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 Wed Sep 21 10:49:37 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 21 Sep 2011 10:49:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 10978] New: dllexport/dllimport attributes not fully implemented Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10978 Summary: dllexport/dllimport attributes not fully implemented Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: vanboxem.ruben at gmail.com CC: llvmbugs at cs.uiuc.edu While compiling Qt with Clang (partially) on Windows 32-bit (i686-w64-mingw32), I ran into: ..\..\include\QtCore/../../../../Source/Qt/src/corelib/codecs/qtextcodec.h:177:7: warning: 'dllexport' attribute only applies to variables and functions class Q_CORE_EXPORT QTextDecoder { ^ ..\..\include\QtCore/../../../../Source/Qt/src/corelib/global/qglobal.h:1301:29: note: expanded from: # define Q_CORE_EXPORT Q_DECL_EXPORT ^ ..\..\include\QtCore/../../../../Source/Qt/src/corelib/global/qglobal.h:1267:38: note: expanded from: # define Q_DECL_EXPORT __declspec(dllexport) ^ :132:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ 43 warnings generated. This is not right. You can dllexport/dllimport full classes too. On top of this, x86_64-w64-mingw32 emits warnings about ignored dllexport/dllimport regardless. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 21 13:32:52 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 21 Sep 2011 13:32:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 10975] In the OpenCL mode, the AltiVec mode must be off and checks must be strict In-Reply-To: References: Message-ID: <20110921183252.C2BDF2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10975 Tobias Grosser changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Tobias Grosser 2011-09-21 13:32:52 CDT --- Fix committed in revision 140270. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 21 14:05:47 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 21 Sep 2011 14:05:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 10979] New: ../llvm/configure fails in Cygwin if path contains white space character Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10979 Summary: ../llvm/configure fails in Cygwin if path contains white space character Product: Build scripts Version: 2.9 Platform: PC OS/Version: other Status: NEW Severity: normal Priority: P Component: autoconf AssignedTo: unassignedbugs at nondot.org ReportedBy: jcortel at gmail.com CC: llvmbugs at cs.uiuc.edu config.status: executing projects/Makefile commands config.status: executing bindings/Makefile commands config.status: executing bindings/ocaml/Makefile.ocaml commands === configuring in projects/sample (/home/Jon Smith/cl/build/projects/sample ) configure: running /bin/sh ../../../llvm/projects/sample/configure --prefix=/usr/local --cache-file=/dev/null --srcdir=../../../llvm/projects/sample configure: error: cannot find install-sh or install.sh in /home/Jon Smith/cl/llvm/autoconf "../../../llvm/projects/sample"//home/Jon Smith/cl/llvm/autoc onf configure: error: ../../../llvm/projects/sample/configure failed for projects/sample ---------- Above is the snippet of the reported failure when executing ../llvm/configure found in using the basic setup steps described in http://clang.llvm.org/get_started.html I'm running the most up to date version of Cygwin in Windows 7 (64-bit). I can confirm that install-sh does exist in the "/home/Jon Smith/cl/llvm/autoconf" folder. There's a bug with the configure script and white space character in my Cygwin home directory ("Jon Smith"). I moved the llvm build folder to a path that doesn't contain a space the error went away. Configure should not fail if the path contains a white space in a folder name. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 21 15:23:24 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 21 Sep 2011 15:23:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 9070] [x86] shuffle miscompilation In-Reply-To: References: Message-ID: <20110921202324.8E9A82A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9070 Bruno Cardoso Lopes changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #4 from Bruno Cardoso Lopes 2011-09-21 15:23:24 CDT --- Hi Zvi, You're using a old version of trunk, this is already fixed in TOT. Like you noticed, it's inefficient, but there's no other way until we're done with PR8156, which will hopefully will land soon, there's people already working 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 Wed Sep 21 15:57:18 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 21 Sep 2011 15:57:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 10964] Segmentation fault in llvm::SmallVectorTemplateBase::grow(unsigned long) when compiling source with -g flag In-Reply-To: References: Message-ID: <20110921205718.3B8682A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10964 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #4 from Eric Christopher 2011-09-21 15:57:17 CDT --- OK. 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 Sep 21 18:23:59 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 21 Sep 2011 18:23:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 10980] New: "Unknown floating point type" error with -fdefault-real-8 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10980 Summary: "Unknown floating point type" error with -fdefault-real-8 Product: dragonegg Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: New Bugs AssignedTo: baldrick at free.fr ReportedBy: scott+llvm+bugzilla at pakin.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7317) --> (http://llvm.org/bugs/attachment.cgi?id=7317) Fortran program that causes "Unknown floating point type!" error I encountered some code that produces an "Unknown floating point type" error when used with both the -fdefault-real-8 command-line option and the DragonEgg plugin. I've attached a reproducer, sign77.f, the original version apparently being due to Joseph Grcar: $ gfortran -fdefault-real-8 -c sign77.f $ gfortran -fplugin=$HOME/llvm/lib/dragonegg.so -c sign77.f $ gfortran -fplugin=$HOME/llvm/lib/dragonegg.so -fdefault-real-8 -c sign77.f f951: /tmp/llvm/projects/dragonegg/src/Convert.cpp:136: llvm::StringRef SelectFPName(tree, llvm::StringRef, llvm::StringRef, llvm::StringRef): Assertion `(((enum tree_code) ((type))->base.code) == VECTOR_TYPE ? vector_type_mode (type) : (type)->type.mode) == (((enum tree_code) ((global_trees[TI_LONG_DOUBLE_TYPE]))->base.code) == VECTOR_TYPE ? vector_type_mode (global_trees[TI_LONG_DOUBLE_TYPE]) : (global_trees[TI_LONG_DOUBLE_TYPE])->type.mode) && "Unknown floating point type!"' failed. *** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins. Event | Plugins PLUGIN_FINISH_UNIT | dragonegg PLUGIN_FINISH | dragonegg PLUGIN_START_UNIT | dragonegg PLUGIN_ALL_IPA_PASSES_END | dragonegg sign77.f: In function ?sign77_?: sign77.f:1:0: internal compiler error: Aborted Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Here's some versioning information: GNU Fortran (GCC) version 4.6.1 (x86_64-unknown-linux-gnu) compiled by GNU C version 4.6.1, GMP version 4.3.1, MPFR version 2.4.2, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Versions of loaded plugins: dragonegg: 140178M -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 21 18:48:39 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 21 Sep 2011 18:48:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 10981] New: __builtin_object_size codegens infinite loop at -01 and greater Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10981 Summary: __builtin_object_size codegens infinite loop at -01 and greater Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: bobbypowers at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7318) --> (http://llvm.org/bugs/attachment.cgi?id=7318) I tried to narrow down the function into a standalone test case, but the test case works. I tried to narrow it down to a test case, but the test case works. I'm not really sure what to do about this. I've included the function in question, the gcc output (at -0s), and the clang output at -Os and -O0, along with the build command lines and the (working, so not super useful) reduced test case. Let me know what else I can provide to help track this down. I'm compiling for 32-bit ELF on a 64-bit machine, if that matters. And this is on trunk. [bpowers at fina src]$ clang --version clang version 3.0 (trunk 140270) Target: x86_64-unknown-linux-gnu Thread model: posix -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 21 19:12:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 21 Sep 2011 19:12:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 10982] New: clang weird diagnostic for wrong enums! Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10982 Summary: clang weird diagnostic for wrong enums! Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: bruno.cardoso at gmail.com CC: llvmbugs at cs.uiuc.edu Given the following code: #include enum { 3DNowShift = 0, XXX = 1 }; int main() { printf("%d\n", XXX); return 0; } Instead of clang reporting that a enum can't start with a number or something like that, it points "{}" matching error: $ clang /tmp/bug.c -c /tmp/bug.c:4:3: error: expected '}' 3DNowShift = 0, ^ /tmp/bug.c:3:6: note: to match this '{' enum { ^ /tmp/bug.c:9:18: error: use of undeclared identifier 'XXX' printf("%d\n", XXX); ^ 2 errors generated. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 21 23:29:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 21 Sep 2011 23:29:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 10983] New: -Wunused-parameter should not warn about virtual method declarations with bodies Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10983 Summary: -Wunused-parameter should not warn about virtual method declarations with bodies Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: enhancement Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: miles at gnu.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com In the following code: struct X { virtual void f (int a) { } }; One gets a warning from -Wunused-parameter, "unused parameter 'a'". While this is understandable, I think it's undesirable -- clearly the parameter 'a' will often be used by overrides of X::f, and the parameter name 'a' serves a valuable documentation purpose here, even if it's not strictly required. The basic problem of course, is that in this case, f is both a virtual method declaration which covers overriding methods as well, and a definition of X's definition of it. One can avoid this by defining X::f outside the class definition, but for trivial definitions like the above, this would seem like annoying make-work if done only to shut up -Wunused-parameter. My current method of avoiding the warning is to comment out the parameter name: virtual void f (int /* a */) { } but this again seems like an annoying wart, rather than natural code -- it's both less readable (especially when the parameter has a funny type like a function pointer) and yields a slightly confusing inconsistency ("why do you comment-out some method parameter names but not others?!" "oh it's just to shut up -Wunused-parameter... :("). Anyway, the current behavior seems wrong to me; I think -Wunused-parameter should stay silent for method virtual definitions inside the class definition. [If this were a very rare scenario, I suppose I wouldn't care about the need to work around it, but it seems to happen all the time for me...] Thanks, -Miles p.s. gcc does the same thing; I just posted an identical bug to gcc's 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 Sep 22 01:53:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 01:53:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 10984] New: clang++ incorrectly handles addresses of temporaries created during optimization Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10984 Summary: clang++ incorrectly handles addresses of temporaries created during optimization Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: contact at philipashmore.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Hi there. I kindly refer you to the Debian bug report "g++-4.6 miscompilation" http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=630441 It contains the background you need to recreate the problem. I've just finished uploading new versions of the packages involved to SourceForge, again see the end of the Debian bug report for details. Regards, Philip -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 22 02:11:57 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 02:11:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 10960] [x86 disassembler] pop operand not displayed as expected for intel syntax In-Reply-To: References: Message-ID: <20110922071157.04FF62A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10960 Craig Topper 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 Sep 22 02:52:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 02:52:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 10985] New: Impossible path taken for check of address to local variable. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10985 Summary: Impossible path taken for check of address to local variable. Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: pelle at morth.org CC: llvmbugs at cs.uiuc.edu Minimal test case: Annotated Source Code 1 2 int foo(int *x) 3 { 4 int y; 5 6 if (!x) { Assuming 'x' is non-null Taking false branch 7 y = 0; 8 x = &y; 9 } 10 11 if (x == &y) Taking true branch 12 return y; Undefined or garbage value returned to caller 13 return 0; 14 } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 22 08:05:21 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 08:05:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 10967] In OpenCL, conversions between different vector types are disallowed In-Reply-To: References: Message-ID: <20110922130521.0894B2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10967 Tobias Grosser changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Tobias Grosser 2011-09-22 08:05:20 CDT --- Fix committed in 140300. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 22 09:59:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 09:59:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 10986] New: [AVX] incorrect code generated (related to shuffles?) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10986 Summary: [AVX] incorrect code generated (related to shuffles?) Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7324) --> (http://llvm.org/bugs/attachment.cgi?id=7324) bitcode The attached test case has code that a 'max' reduction over a vector--given the vector [0 2 0 4 0 6 0 8], it is supposed to return the scalar value '8'. It returns the correct answer with SSE: % llc -o bug.o -filetype=obj bug.ll && gcc bug.c bug.o && ./a.out 8 But not with AVX: % llc -mattr=+avx -o bug.o -filetype=obj bug.ll && gcc bug.c bug.o && ./a.out 4 I've tried to simplify the bitcode a bit, and have annotated each line with the expected value of each assignment, just to make it easier to follow. The basic strategy is that it takes the 8xi32 vector, shuffles it into 2 4xi32 vectors [0 2 0 4] and [0 6 0 8], does a SSE4 pmaxsd (getting [0 6 0 8], with the data given in this case), then it shuffles that into [0 6 xx xx] [0 8 xx xx], does a pmaxsd on that to get [0 8 xx xx], and finally shuffles that one more time to get [0 xx xx xx] and [8 xx xx xx], does a final pmaxsd to get [8 xx xx xx], from which it extracts the first element and returns it. Some archeology in the changelists tells me that this checkin broke this code (it had worked previously): commit e97190fdf875843e8161a942f2046fd3ef81330f Author: Bruno Cardoso Lopes Date: Tue Sep 20 23:19:33 2011 +0000 Add a DAGCombine for subvector extracts to remove useless chains of subvector inserts and extracts. Initial patch by Rackover, Zvi with some tweak done by me. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk at 140204 91177308-0d34-0410-b5e6-96231b3b80d8 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 22 10:16:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 10:16:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 10720] IRGen crash with explicitly-defaulted copy/move constructors of classes with array members In-Reply-To: References: Message-ID: <20110922151632.DF65D2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10720 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Douglas Gregor 2011-09-22 10:16:32 CDT --- Fixed in Clang r140302. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 22 10:33:03 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 10:33:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 10983] -Wunused-parameter should not warn about virtual method declarations with bodies In-Reply-To: References: Message-ID: <20110922153303.377B12A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10983 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Douglas Gregor 2011-09-22 10:33:02 CDT --- (In reply to comment #0) > In the following code: > > struct X { virtual void f (int a) { } }; > > One gets a warning from -Wunused-parameter, "unused parameter 'a'". > > While this is understandable, I think it's undesirable -- clearly the parameter > 'a' will often be used by overrides of X::f, and the parameter name 'a' serves > a valuable documentation purpose here, even if it's not strictly required. > > The basic problem of course, is that in this case, f is both a virtual method > declaration which covers overriding methods as well, and a definition of X's > definition of it. > > One can avoid this by defining X::f outside the class definition, but for > trivial definitions like the above, this would seem like annoying make-work if > done only to shut up -Wunused-parameter. > > My current method of avoiding the warning is to comment out the parameter name: > > virtual void f (int /* a */) { } > > but this again seems like an annoying wart, rather than natural code -- it's > both less readable (especially when the parameter has a funny type like a > function pointer) and yields a slightly confusing inconsistency ("why do you > comment-out some method parameter names but not others?!" "oh it's just to shut > up -Wunused-parameter... :("). > > Anyway, the current behavior seems wrong to me; I think -Wunused-parameter > should stay silent for method virtual definitions inside the class definition. I disagree. I would find it very weird---and very annoying---if I lost out on this warning just because my function was virtual. Granted, some virtuals can be fixed (this parameter is never needed) and some cannot (this parameter is only important for some of the virtual overrides), but I think the principle of least surprise says that we shouldn't silence the warning for parameters of virtuals. Plus, there are three (!) ways to silence this warning: - comment out the parameter name - add __attribute__((unused) to the parameter, after the parameter name - add "(void)a;" to the function body, to silence the warning The latter two both provide better documentation that you intended not to use this parameter than your suggestion of just turning off the warning. > p.s. gcc does the same thing; I just posted an identical bug to gcc's bugzilla > ... :] IIRC, this discussion came up regarding GCC's behavior once, something like 10 years ago, and they rejected it. Maybe you'll have more luck this time :) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 22 10:57:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 10:57:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 10939] Assertion Failed in CheckPlaceholderExpr, SemaExpr.cpp In-Reply-To: References: Message-ID: <20110922155732.A1B912A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10939 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Douglas Gregor 2011-09-22 10:57:31 CDT --- Fixed in Clang r140304. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 22 11:02:45 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 11:02:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 10987] New: Optimizer reduces well-defined load to undef in some situations Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10987 Summary: Optimizer reduces well-defined load to undef in some situations 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: marijnh at gmail.com CC: llvmbugs at cs.uiuc.edu See https://gist.github.com/1235034 for reproduction instructions. In a very specific situation (a store to the same alloca in multiple branches (which is optimized to a phi) with at least one of those branches doing an invoke call with a non-trivial unwind sequence, which takes an output pointer that is subsequently loaded and used for aforementioned store), a load that, as far as I can see, is perfectly safe, is removed and replaced by an undef value. I've seen a similar issue where the load is moved above the call in the output, but still present. That might be what's happening here too -- first the load is moved to before the call, at which point the alloca being loaded is uninitialized, which would make replacing it with undef a valid decision. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 22 11:51:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 11:51:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 10979] configure fails if path contains white space character In-Reply-To: References: Message-ID: <20110922165122.C7C542A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10979 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #4 from Eric Christopher 2011-09-22 11:51:22 CDT --- Definitely not going to worry about 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 Sep 22 12:52:27 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 12:52:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 10958] ASTImporter: Lookup for empty DeclarationName when searching for typedef In-Reply-To: References: Message-ID: <20110922175227.F12132A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10958 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2011-09-22 12:52:27 CDT --- Applied as r140317, thanks! -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 22 13:57:06 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 13:57:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 10987] Optimizer reduces well-defined load to undef in some situations In-Reply-To: References: Message-ID: <20110922185706.D8A862A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10987 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #2 from Eli Friedman 2011-09-22 13:57:06 CDT --- r140327. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 22 14:58:26 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 14:58:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 10988] New: x86 MC encoder and disassembler bugs umbrella Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10988 Summary: x86 MC encoder and disassembler bugs umbrella Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: bruno.cardoso at gmail.com CC: llvmbugs at cs.uiuc.edu This is an umbrella bug to keep track of all MC encoding and disassembler bugs for x86 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 22 16:39:26 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 16:39:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 10989] New: Assembler error Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10989 Summary: Assembler error Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: vanboxem.ruben at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7327) --> (http://llvm.org/bugs/attachment.cgi?id=7327) zip containing preprocessed source and unassembled (-S) output While compiling/"hacking on"/porting libc++ for Windows (!), I ran into a Clang assembler error: M:\Development\mingw64\bin\clang++.exe -v -Dcxx_EXPORTS -DNDEBUG -fPIC -IM:\Development\Source\libc++\include -nostdinc++ -std=c++0x -fPIC -o CMakeFiles\cxx.dir\__\src\ios.cpp.obj -c M:\Development\Source\libc++\src\ios.cpp clang version 3.0 (http://llvm.org/git/clang.git ca82a82082edc982a1fb5fcfef2dd2c8cf9bc824) Target: x86_64-w64-mingw32 Thread model: posix "M:/Development/mingw64/bin/clang++.exe" -cc1 -triple x86_64-w64-mingw32 -S -disable-free -disable-llvm-verifier -main-file-name ios.cpp -pic-level 2 -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.51.0.6 -momit-leaf-frame-pointer -v -coverage-file C:/Users/Ruben/AppData/Local/Temp/ios-297078.s -nostdinc++ -resource-dir M:/Development/mingw64/bin\..\lib\clang\3.0 -D cxx_EXPORTS -D NDEBUG -I M:\Development\Source\libc++\include -fmodule-cache-path C:\Users\Ruben\AppData\Local\Temp\clang-module-cache -std=c++0x -fdeprecated-macro -ferror-limit 19 -fmessage-length 500 -fno-use-cxa-atexit -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o C:/Users/Ruben/AppData/Local/Temp/ios-297078.s -x c++ M:\Development\Source\libc++\src\ios.cpp clang -cc1 version 3.0 based upon llvm 3.0svn hosted on x86_64-w64-mingw32 ignoring nonexistent directory "/usr/local/include" ignoring nonexistent directory "M:/Development/mingw64/bin/../lib/clang/3.0/../../../i686-w64-mingw32/include" ignoring nonexistent directory "/mingw/include" ignoring nonexistent directory "c:/mingw/include" ignoring nonexistent directory "/usr/include" #include "..." search starts here: #include <...> search starts here: M:\Development\Source\libc++\include M:/Development/mingw64/bin/../lib/clang/3.0/include M:/Development/mingw64/bin/../lib/clang/3.0/../../../x86_64-w64-mingw32/include M:/Development/mingw64/bin/../lib/clang/3.0/../../../include End of search list. "M:/Development/mingw64/bin/g++.exe" -v -D cxx_EXPORTS -D NDEBUG -fPIC -I M:\Development\Source\libc++\include -nostdinc++ -std=c++0x -fPIC -c -m64 -o CMakeFiles\cxx.dir\__\src\ios.cpp.obj -x assembler C:/Users/Ruben/AppData/Local/Temp/ios-297078.s Using built-in specs. COLLECT_GCC=M:/Development/mingw64/bin/g++.exe COLLECT_LTO_WRAPPER=m:/development/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.6.2/lto-wrapper.exe Target: x86_64-w64-mingw32 Configured with: /home/ruben/mingw-w64/toolchain/mingw64mingw64/gcc-src/configure --host=x86_64-w64-mingw32 --build=x86_64-linux-gnu --target=x86_64-w64-mingw32 --with-sysroot=/home/ruben/mingw-w64/toolchain/mingw64mingw64/mingw64 --prefix=/home/ruben/mingw-w64/toolchain/mingw64mingw64/mingw64 --with-libexpat-prefix=/home/ruben/mingw-w64/toolchain/mingw64mingw64/prereq_install --enable-cloog-backend=isl --with-host-libstdcxx='-lstdc++ -lm -lgcc_eh' --enable-shared --enable-static --enable-threads=posix --disable-multilib --enable-languages=c,lto,c++,fortran,objc,obj-c++ --enable-libgomp --enable-sjlj-exceptions --disable-nls --disable-werror --enable-checking=release --disable-win32-registry --disable-rpath --disable-werror Thread model: posix gcc version 4.6.2 20110921 (prerelease) (GCC) COLLECT_GCC_OPTIONS='-v' '-D' 'cxx_EXPORTS' '-D' 'NDEBUG' '-I' 'M:\Development\Source\libc++\include' '-nostdinc++' '-std=c++0x' '-fPIC' '-c' '-m64' '-o' 'CMakeFiles\cxx.dir\__\src\ios.cpp.obj' '-shared-libgcc' '-mtune=generic' '-march=x86-64' m:/development/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.6.2/../../../../x86_64-w64-mingw32/bin/as.exe --64 -o CMakeFiles\cxx.dir\__\src\ios.cpp.obj C:/Users/Ruben/AppData/Local/Temp/ios-297078.s C:/Users/Ruben/AppData/Local/Temp/ios-297078.s: Assembler messages: C:/Users/Ruben/AppData/Local/Temp/ios-297078.s:29015: Error: unknown pseudo-op: `.hidden' clang++: error: assembler (via gcc) command failed with exit code 1 (use -v to see invocation) Attached is -E and -S output. I'd really like to use Clang to hack on libc++, it's just so much... easier than with 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 Sep 22 16:42:23 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 16:42:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 8971] CPATH gets ignored In-Reply-To: References: Message-ID: <20110922214223.5DAF62A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=8971 Benjamin Kramer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |benny.kra at gmail.com Resolution| |FIXED --- Comment #6 from Benjamin Kramer 2011-09-22 16:42:22 CDT --- Implemented in the driver in r140341. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 22 17:27:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 17:27:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 10990] New: error: LLVM IR generation of declaration 'BrowserWebView::initWithFrame:' Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10990 Summary: error: LLVM IR generation of declaration 'BrowserWebView::initWithFrame:' Product: clang Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: LLVM Codegen AssignedTo: unassignedclangbugs at nondot.org ReportedBy: magreenblatt at gmail.com CC: llvmbugs at cs.uiuc.edu $ uname -v Darwin Kernel Version 11.1.0: Tue Jul 26 16:07:11 PDT 2011; root:xnu-1699.22.81~1/RELEASE_X86_64 $ clang --version clang version 3.0 (trunk 139990) Target: x86_64-apple-darwin11.1.0 Thread model: posix $ clang -c browser_webview_mac-rPF6f7.mii -arch i386 Assertion failed: (CurOffs <= CurLayObj->first), function getObjCEncodingForStructureImpl, file /Volumes/MacintoshHD2/src/chrome-git/src/third_party/llvm/tools/clang/lib/AST/ASTContext.cpp, line 4627. 0 clang 0x00000001013643f2 _ZL15PrintStackTracePv + 34 1 clang 0x00000001013649d9 _ZL13SignalHandleri + 713 2 libsystem_c.dylib 0x00007fff89c24cfa _sigtramp + 26 3 libsystem_c.dylib 0x00007fff89bed00e szone_malloc_should_clear + 1115 4 clang 0x000000010001c2b6 abort + 22 5 clang 0x000000010001c308 __assert_rtn + 56 6 clang 0x00000001007d2374 clang::ASTContext::getObjCEncodingForStructureImpl(clang::RecordDecl*, std::string&, clang::FieldDecl const*, bool) const + 2690 7 clang 0x00000001007d0fba clang::ASTContext::getObjCEncodingForTypeImpl(clang::QualType, std::string&, bool, bool, clang::FieldDecl const*, bool, bool, bool) const + 2526 8 clang 0x00000001007d1648 clang::ASTContext::getObjCEncodingForTypeImpl(clang::QualType, std::string&, bool, bool, clang::FieldDecl const*, bool, bool, bool) const + 4204 9 clang 0x00000001007d2ca7 clang::ASTContext::getObjCEncodingForMethodDecl(clang::ObjCMethodDecl const*, std::string&) const + 107 10 clang 0x00000001001f3f50 (anonymous namespace)::CGObjCCommonMac::GetMethodVarType(clang::ObjCMethodDecl const*) + 54 11 clang 0x00000001001f4441 (anonymous namespace)::CGObjCMac::GetMethodConstant(clang::ObjCMethodDecl const*) + 239 12 clang 0x0000000100205cda (anonymous namespace)::CGObjCMac::GenerateClass(clang::ObjCImplementationDecl const*) + 1308 13 clang 0x0000000100240ef0 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 768 14 clang 0x000000010024cbff (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) + 121 15 clang 0x0000000100234dd3 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 167 16 clang 0x00000001002569d2 clang::ParseAST(clang::Sema&, bool) + 306 17 clang 0x0000000100233fb0 clang::CodeGenAction::ExecuteAction() + 862 18 clang 0x0000000100039082 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 958 19 clang 0x0000000100023b91 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2193 20 clang 0x000000010001e03b cc1_main(char const**, char const**, char const*, void*) + 2939 21 clang 0x0000000100020be0 main + 640 22 clang 0x000000010001d4b4 start + 52 23 clang 0x0000000000000029 start + 18446744069414464425 Stack dump: 0. Program arguments: /Users/marshall/code/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang -cc1 -triple i386-apple-macosx10.7.1 -emit-obj -mrelax-all -disable-free -main-file-name browser_webview_mac-rPF6f7.mii -pic-level 1 -mdisable-fp-elim -masm-verbose -target-cpu yonah -target-linker-version 97.14 -coverage-file browser_webview_mac-rPF6f7.o -resource-dir /Users/marshall/code/chromium/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length 80 -stack-protector 1 -fblocks -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-exceptions -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o browser_webview_mac-rPF6f7.o -x objective-c++-cpp-output /var/folders/65/gqj_ckvs0dg7ydj4qy9hj1200000gn/T/browser_webview_mac-rPF6f7.mii 1. parser at end of file 2. /Users/marshall/code/chromium/src/cef/libcef/browser_webview_mac.mm:25:1: LLVM IR generation of declaration 'BrowserWebView::initWithFrame:' clang: error: unable to execute command: Illegal instruction: 4 clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 22 17:34:04 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 17:34:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 10297] clang doesn't honor CPATH In-Reply-To: References: Message-ID: <20110922223404.51B062A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10297 Benjamin Kramer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |benny.kra at gmail.com Resolution| |DUPLICATE --- Comment #5 from Benjamin Kramer 2011-09-22 17:34:04 CDT --- *** This bug has been marked as a duplicate of bug 8971 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 22 17:45:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 17:45:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 10991] New: clang does not generate a @TPOFF reloc for a store to a TLS variable Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10991 Summary: clang does not generate a @TPOFF reloc for a store to a TLS variable Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: eugeni.stepanov at gmail.com CC: llvmbugs at cs.uiuc.edu For the following code, clang generates invalid assembly (*.ll -> *.s), while llc generated correct assembly. Details below. ; ModuleID = '1.c' target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" target triple = "x86_64-unknown-linux-gnu" @tls_var = thread_local global { i32, [60 x i8] } zeroinitializer, align 32 @tls_var_asanRZ = alias internal getelementptr inbounds ({ i32, [60 x i8] }* @tls_var, i32 0, i32 0) define i32 @main() nounwind uwtable { entry: store volatile i32 1, i32* @tls_var_asanRZ, align 4 ret i32 0 } Building this with "llc 1.ll" produces the following assembly for the store instruction: movl $1, %fs:tls_var_asanRZ at TPOFF Building this with "clang -S 1.ll" gives the following: movl $1, tls_var_asanRZ I'm attaching complete assembler listings. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 22 17:59:05 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 17:59:05 -0500 (CDT) Subject: [LLVMbugs] [Bug 10992] New: Symbol alias can not be undefined in a subtraction expression Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10992 Summary: Symbol alias can not be undefined in a subtraction expression Product: clang Version: trunk Platform: PC OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: glider at google.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7331) --> (http://llvm.org/bugs/attachment.cgi?id=7331) A minimal reproducer $ cat globals.bc ; ModuleID = 'globals.cc' target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32" target triple = "i386-apple-macosx10.6.8" @_ZZL5IdentiE4zero = internal global { i32, [60 x i8] } zeroinitializer, align 32 @_ZZL5IdentiE4zero_asanRZ = alias internal getelementptr inbounds ({ i32, [60 x i8] }* @_ZZL5IdentiE4zero, i32 0, i32 0) define void @_Z3foov() nounwind ssp { entry: %0 = volatile load i8* inttoptr (i32 lshr (i32 ptrtoint (i32* @_ZZL5IdentiE4zero_asanRZ to i32), i32 3) to i8*) ret void } ======================================================= $ ../clang_build_Darwin/Release+Asserts/bin/clang globals.bc fatal error: error in backend: symbol '__ZZL5IdentiE4zero_asanRZ' can not be undefined in a subtraction expression This test case is a reduced output of the AddressSanitizer instrumentation pass (http://code.google.com/p/address-sanitizer), which works perfectly on Linux, so I suspect this to be a bug in Clang on Darwin. If necessary, I can provide a more real-world example. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 22 18:05:23 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 18:05:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 10457] Delegating constructor template doesn't seem to delegate In-Reply-To: References: Message-ID: <20110922230523.32AEB2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10457 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Douglas Gregor 2011-09-22 18:05:22 CDT --- Fixed in Clang r140350. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 22 18:41:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 18:41:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 10991] clang does not generate a @TPOFF reloc for a store to a TLS variable In-Reply-To: References: Message-ID: <20110922234158.7A4212A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10991 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #4 from Eli Friedman 2011-09-22 18:41:58 CDT --- r140355. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 22 19:13:35 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 19:13:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 10989] Assembler error In-Reply-To: References: Message-ID: <20110923001335.EA8762A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10989 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #3 from Eli Friedman 2011-09-22 19:13:35 CDT --- r140356. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 22 21:57:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 22 Sep 2011 21:57:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 10993] New: llvm-ld -native fails with .a archive produced by llvm-ar Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10993 Summary: llvm-ld -native fails with .a archive produced by llvm-ar Product: tools Version: 2.9 Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: llvm-ld AssignedTo: unassignedbugs at nondot.org ReportedBy: luddy.harrison at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7332) --> (http://llvm.org/bugs/attachment.cgi?id=7332) test case; a directory with 3 C++ files and a makefile. I've attached a small example with makefile that reproduces the problem. I'm doing this on 10.7 with the latest XCode installed, and llvm-2.9 installed in /usr/local. Two C++ files are compiled with clang++ -O4, a lib.a archive created of them using llvm-ar, and llvm-ld used to link them. I'm hoping to get LTO from this model of compilation archiving and linking, and perhaps to specialize llvm-ld for some particular linking work. Unfortunately when -native is given to llvm-ld it seems to misread the archive file (?) llvm-ld without -native completes without reporting an error, although I haven't tried executing the result (I need native code). the example works fine if I use libtool for the archiving and clang++ for the final link step. I've included commented-out lines in the Makefile to test this case. Best regards, -Luddy -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 23 02:48:45 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 23 Sep 2011 02:48:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 9091] mingw-w64: errno.h misses lots of defines In-Reply-To: References: Message-ID: <20110923074845.483172A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9091 vanboxem.ruben at gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from vanboxem.ruben at gmail.com 2011-09-23 02:48:44 CDT --- Resolved in r140328. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 23 04:22:03 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 23 Sep 2011 04:22:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 10994] New: [AVX] Cannot select ch = Prefetch Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10994 Summary: [AVX] Cannot select ch = Prefetch Product: libraries Version: trunk Platform: PC OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: syoyofujita at gmail.com CC: llvmbugs at cs.uiuc.edu revision: 140371 x86/AVX backend segfaults for following LLVM IR including llvm.prefetch(). $ llc -mavx bugpoint-reduces-simplified.bc LLVM ERROR: Cannot select: 0x101832410: ch = Prefetch 0x10110bae8, 0x101832010, 0x101832110, 0x101832210, 0x101832310 [ID=9] 0x101832010: i64 = undef [ID=1] 0x101832110: i32 = Constant<0> [ID=2] 0x101832210: i32 = Constant<2> [ID=3] 0x101832310: i32 = Constant<1> [ID=4] $ cat bugpoint-reduced-simplified.ll ; ModuleID = 'bugpoint-reduced-simplified.bc' 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-apple-macosx10.6.8" define void @_ZNK6embree13ObjectBinningILi2EE5splitEPNS_4BBoxINS_4ssefEEERS1_S6_() uwtable ssp align 2 { entry: call void @llvm.prefetch(i8* undef, i32 0, i32 2, i32 1) nounwind br i1 undef, label %cond.true.i, label %_ZN6embree4sseiixEm.exit cond.true.i: ; preds = %entry unreachable _ZN6embree4sseiixEm.exit: ; preds = %entry unreachable } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 23 05:06:37 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 23 Sep 2011 05:06:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 10995] New: [AVX] llc crashes for x86/AVX target Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10995 Summary: [AVX] llc crashes for x86/AVX target Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: syoyofujita at gmail.com CC: llvmbugs at cs.uiuc.edu revision: 140371 llc crashes for the attached input case, reported as; syoyos-MacBook-Pro:renderer syoyo$ llc -mattr=+avx bugpoint-reduced-function.ll Assertion failed: (TLI.isTypeLegal(ValueVTs[Val]) && "Intrinsic uses a non-legal type?"), function visitTargetIntrinsic, file SelectionDAGBuilder.cpp, line 3498. 0 llc 0x000000010099f772 PrintStackTrace(void*) + 34 1 llc 0x000000010099fc89 SignalHandler(int) + 697 2 libSystem.B.dylib 0x00007fff811431ba _sigtramp + 26 3 libSystem.B.dylib 0x000000000000000b _sigtramp + 2129383019 4 llc 0x000000010099f9b6 abort + 22 5 llc 0x000000010099f975 __assert_rtn + 53 6 llc 0x00000001005190d3 llvm::SelectionDAGBuilder::visitTargetIntrinsic(llvm::CallInst const&, unsigned int) + 883 7 llc 0x00000001005222ae llvm::SelectionDAGBuilder::visitIntrinsicCall(llvm::CallInst const&, unsigned int) + 574 8 llc 0x0000000100504287 llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) + 967 9 llc 0x00000001004fdbe1 llvm::SelectionDAGBuilder::visit(unsigned int, llvm::User const&) + 865 10 llc 0x00000001004fd0e2 llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) + 66 11 llc 0x0000000100535408 llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator, llvm::ilist_iterator, bool&) + 40 12 llc 0x0000000100534795 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 229 13 llc 0x0000000100533b77 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 919 14 llc 0x000000010061ff73 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 83 15 llc 0x00000001008fbc40 llvm::FPPassManager::runOnFunction(llvm::Function&) + 752 16 llc 0x00000001008fbd6b llvm::FPPassManager::runOnModule(llvm::Module&) + 187 17 llc 0x00000001008fb51f llvm::MPPassManager::runOnModule(llvm::Module&) + 607 18 llc 0x00000001008fb821 llvm::PassManagerImpl::run(llvm::Module&) + 177 19 llc 0x00000001008fb93d llvm::PassManager::run(llvm::Module&) + 13 20 llc 0x00000001000026df main + 4767 21 llc 0x0000000100001434 start + 52 22 llc 0x0000000000000003 start + 4294962179 Stack dump: 0. Program arguments: llc -mattr=+avx bugpoint-reduced-function.ll 1. Running pass 'Function Pass Manager' on module 'bugpoint-reduced-function.ll'. 2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@_Z6exp_psDv4_f' 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 Sep 23 06:58:42 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 23 Sep 2011 06:58:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 10996] New: scan-build (using clang r139992) crashes on GCC 4.5.3 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10996 Summary: scan-build (using clang r139992) crashes on GCC 4.5.3 Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: lbalbalba at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7337) --> (http://llvm.org/bugs/attachment.cgi?id=7337) details of scan-build (clang r139992) crash on GCC 4.5.3 When running scan-build on GCC 4.5.3 using clang r139992, a crash occurs. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 23 08:59:48 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 23 Sep 2011 08:59:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 10997] New: _cdecl not recognized correctly for x86_64 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10997 Summary: _cdecl not recognized correctly for x86_64 Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: vanboxem.ruben at gmail.com CC: llvmbugs at cs.uiuc.edu Compiling the mingw-w64 CRT with clang, I ran into this error: m:/Development/Source/mingw-w64/stable/v2.x/mingw-w64-crt/misc/isblank.c:4:11: error: expected ';' after top level declarator int _cdecl isblank (int _C) ^ ; 1 error generated. This does not happen for x86. The above code can serve as a standalone 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 Fri Sep 23 09:27:07 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 23 Sep 2011 09:27:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 10998] New: Assertion failed: (MBB && MBB->getNumber() >= 0 && "Invalid basic block") Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10998 Summary: Assertion failed: (MBB && MBB->getNumber() >= 0 && "Invalid basic block") 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: pawel.worach at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7338) --> (http://llvm.org/bugs/attachment.cgi?id=7338) bugpoint-reduced-simplified.bc clang version 3.0 (trunk 140372) Target: i386-unknown-freebsd8.2 Original source is CGBuiltin.cpp from clang r135360. This only happens on i386, amd64 is ok. % llc bugpoint-reduced-simplified.bc Assertion failed: (MBB && MBB->getNumber() >= 0 && "Invalid basic block"), function EmitJumpTableEntry, file /data/buildslave/freebsd-clang-i386/src-llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp, line 1108. Stack dump: 0. Program arguments: /data/buildslave/freebsd-clang-i386/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 'X86 AT&T-Style Assembly Printer' on function '@_ZN5clang7CodeGen15CodeGenFunction18EmitARMBuiltinExprEjPKNS_8CallExprE' Abort (core dumped) -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 23 09:32:55 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 23 Sep 2011 09:32:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 10950] clang asserts on (!type->isPlaceholderType()) In-Reply-To: References: Message-ID: <20110923143255.1A0552A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10950 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #8 from Douglas Gregor 2011-09-23 09:32:54 CDT --- This was fixed in r140304. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 23 10:10:21 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 23 Sep 2011 10:10:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 10999] New: clang_tokenize fails after reparsing when using precompiled preambles. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10999 Summary: clang_tokenize fails after reparsing when using precompiled preambles. Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: Erik.Verbruggen at Me.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7340) --> (http://llvm.org/bugs/attachment.cgi?id=7340) test program For a file starting with a comment or a blank line, libclang has the following behaviour: When calling clang_tokenize after clang_parseTranslationUnit, all tokens are returned. When then calling clang_reparseTranslationUnit and clang_tokenize, no tokens get returned. In both cases the range is the full file (so starting at line 1). When the file starts with a function definition, it works fine. Also, when turning off precompiled preambles, it also works fine. Attached is a program (main.cpp) which parses and reparses test.cpp and prints the number of tokens after both parses. When the first line is removed from test.cpp, it works fine. This was tested against r140369. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 23 13:46:14 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 23 Sep 2011 13:46:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 10996] scan-build (using clang r139992) crashes on GCC 4.5.3 In-Reply-To: References: Message-ID: <20110923184614.DF71E2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10996 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Ted Kremenek 2011-09-23 13:46:14 CDT --- I cannot reproduce this failure as of r140389. Are you still seeing this? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 23 14:54:18 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 23 Sep 2011 14:54:18 -0500 (CDT) Subject: [LLVMbugs] [Bug 11000] New: Segmentation fault on invalid code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11000 Summary: Segmentation fault on invalid code Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: pipping at exherbo.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=7345) --> (http://llvm.org/bugs/attachment.cgi?id=7345) reduced test-case % clang++ -std=c++0x -c output-minimal.ii output-minimal.ii:1:7: error: explicit specialization of non-template class 'tuple' class tuple<> ^ ~~ output-minimal.ii:4:30: error: expected ')' tuple(allocator_arg_t, const _Alloc&) {} ^ output-minimal.ii:4:14: note: to match this '(' tuple(allocator_arg_t, const _Alloc&) {} ^ output-minimal.ii:4:15: error: member 'allocator_arg_t' declared as a template tuple(allocator_arg_t, const _Alloc&) {} ^ output-minimal.ii:4:49: error: expected ';' at end of declaration list tuple(allocator_arg_t, const _Alloc&) {} ^ ; output-minimal.ii:4:49: error: expected '}' output-minimal.ii:2:1: note: to match this '{' { ^ 0 libLLVM-3.0svn.so 0x00007ffff737d8cf 1 libLLVM-3.0svn.so 0x00007ffff737de39 2 libpthread.so.0 0x00007ffff651ff70 3 clang 0x000000000077a663 clang::Parser::ParseLexedMemberInitializer(clang::Parser::LateParsedMemberInitializer&) + 19 4 clang 0x0000000000779e28 clang::Parser::ParseLexedMemberInitializers(clang::Parser::ParsingClass&) + 216 5 clang 0x000000000078ed9c clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int, clang::Decl*) + 1868 6 clang 0x000000000078e05c clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool) + 4796 7 clang 0x000000000077fc75 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 2821 8 clang 0x0000000000775234 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&, clang::AccessSpecifier) + 68 9 clang 0x000000000077566c clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::AccessSpecifier) + 396 10 clang 0x0000000000774a4c clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 2700 11 clang 0x0000000000773f4e clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 254 12 clang 0x000000000075c84e clang::ParseAST(clang::Sema&, bool) + 318 13 clang 0x00000000006648b1 clang::CodeGenAction::ExecuteAction() + 769 14 clang 0x0000000000561a77 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 983 15 clang 0x000000000054cd40 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2832 16 clang 0x0000000000544cdf cc1_main(char const**, char const**, char const*, void*) + 6015 17 clang 0x0000000000549268 main + 632 18 libc.so.6 0x00007ffff5829c7d __libc_start_main + 253 19 clang 0x0000000000543499 Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name output-minimal.ii -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.1 -momit-leaf-frame-pointer -coverage-file output-minimal.o -resource-dir /usr/bin/../lib/clang/3.0 -std=c++0x -fdeprecated-macro -ferror-limit 19 -fmessage-length 238 -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o output-minimal.o -x c++-cpp-output output-minimal.ii 1. parser at end of file 2. output-minimal.ii:1:1: parsing struct/union/class body 'tuple' clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs. % -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 23 14:57:34 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 23 Sep 2011 14:57:34 -0500 (CDT) Subject: [LLVMbugs] [Bug 11001] New: Bug with zero shifts in DAGTypeLegalizer:: ExpandShiftWithUnknownAmountBit Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11001 Summary: Bug with zero shifts in DAGTypeLegalizer:: ExpandShiftWithUnknownAmountBit 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: moo321 at mailinator.com CC: llvmbugs at cs.uiuc.edu In lib/CodeGen/SelectionDag/LegalizeIntegerTypes.cpp. Commit 90564 already added a note about the bug; there is a FIXME about it in the code. @g_shift = global i256 0 define i32 @main() { %shift = load i256* @g_shift %1 = shl i256 123, %shift %eq = icmp eq i256 %1, 123 %ret = zext i1 %eq to i32 ret i32 %ret } This returns 0 on x86-64, interpreter returns 1. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 23 16:06:45 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 23 Sep 2011 16:06:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 11002] New: warning: missing sentinel in function call [-Wsentinel] when building r140404 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11002 Summary: warning: missing sentinel in function call [-Wsentinel] when building r140404 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: lbalbalba at gmail.com CC: llvmbugs at cs.uiuc.edu When I build ('make') trunk r140404, I get the following warnings : llvm[2]: Compiling SwapByteOrderTest.cpp for Release+Asserts build llvm[2]: Compiling TimeValue.cpp for Release+Asserts build llvm[2]: Compiling TypeBuilderTest.cpp for Release+Asserts build warning: missing sentinel in function call [-Wsentinel] /usr/local/src/llvm/include/llvm/DerivedTypes.h:240:22: note: function has been explicitly marked sentinel here static StructType *get(Type *elt1, ...) END_WITH_NULL; ^ warning: missing sentinel in function call [-Wsentinel] /usr/local/src/llvm/include/llvm/DerivedTypes.h:240:22: note: function has been explicitly marked sentinel here warning: missing sentinel in function call [-Wsentinel] /usr/local/src/llvm/include/llvm/DerivedTypes.h:240:22: note: function has been explicitly marked sentinel here warning: missing sentinel in function call [-Wsentinel] /usr/local/src/llvm/include/llvm/DerivedTypes.h:240:22: note: function has been explicitly marked sentinel here warning: missing sentinel in function call [-Wsentinel] /usr/local/src/llvm/include/llvm/DerivedTypes.h:240:22: note: function has been explicitly marked sentinel here warning: missing sentinel in function call [-Wsentinel] /usr/local/src/llvm/include/llvm/DerivedTypes.h:240:22: note: function has been explicitly marked sentinel here 6 warnings generated. llvm[2]: Compiling ValueHandleTest.cpp for Release+Asserts build -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 23 16:35:13 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 23 Sep 2011 16:35:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 11002] warning: missing sentinel in function call [-Wsentinel] when building r140404 In-Reply-To: References: Message-ID: <20110923213513.7A4882A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11002 John Smith changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from John Smith 2011-09-23 16:35:13 CDT --- was planning to use gcc (4.5.1). Looks like I messed up and ended up using fairly recent v3.0 trunk clang rev. 139992. Nevermind. ill stick to gcc. closing. invalid. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 23 17:42:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 23 Sep 2011 17:42:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 10998] Assertion failed: (MBB && MBB->getNumber() >= 0 && "Invalid basic block") In-Reply-To: References: Message-ID: <20110923224210.6367A2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10998 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Eli Friedman 2011-09-23 17:42:10 CDT --- r140428. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 23 18:15:31 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 23 Sep 2011 18:15:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 9832] [MC] Thumb/Thumb-2 are not handled properly in ARM ELF In-Reply-To: References: Message-ID: <20110923231531.919E02A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9832 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |INVALID --- Comment #1 from Eli Friedman 2011-09-23 18:15:31 CDT --- If there are still any parts of this which need to be applied, please send a patch against trunk to llvm-commits. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 23 18:32:32 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 23 Sep 2011 18:32:32 -0500 (CDT) Subject: [LLVMbugs] [Bug 9041] __sync* macros not equivalent to GCC in C++ mode In-Reply-To: References: Message-ID: <20110923233232.9B7582A6C130@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=9041 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Douglas Gregor 2011-09-23 18:32:32 CDT --- Confirmed. I recall committing a patch to fix this a few weeks 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 Fri Sep 23 22:02:55 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 23 Sep 2011 22:02:55 -0500 (CDT) Subject: [LLVMbugs] [Bug 11002] warning: missing sentinel in function call [-Wsentinel] when building r140404 In-Reply-To: References: Message-ID: <20110924030255.D17442A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11002 John Smith changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #4 from John Smith 2011-09-23 22:02:55 CDT --- re-produced building clang version 3.0 (trunk 140417) with clang version 3.0 (trunk 140417) how do I determine what source filke it is and how do i provide a pre-processed version of that file ? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 23 22:14:43 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 23 Sep 2011 22:14:43 -0500 (CDT) Subject: [LLVMbugs] [Bug 11003] New: clang cannot find a conversion in c++0x mode Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11003 Summary: clang cannot find a conversion in c++0x mode Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com gcc can compile the following code in c++ 98 and 0x modes. clang only in 98: class Value { }; struct MoveRef { operator Value &() const ; }; MoveRef Move(int); void growTo() { Value x = Move(0); Value y(Move(0)); // no viable conversion from 'MoveRef' to 'Value' } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Fri Sep 23 22:22:12 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 23 Sep 2011 22:22:12 -0500 (CDT) Subject: [LLVMbugs] [Bug 11002] warning: missing sentinel in function call [-Wsentinel] when building r140404 In-Reply-To: References: Message-ID: <20110924032212.D57312A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11002 John Smith changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID --- Comment #6 from John Smith 2011-09-23 22:22:12 CDT --- oh crap. just try building a recent version of llvm/clang using llvm/clang... when was this tried for the last time ? should this not be part of a 'check-before-release' build ? -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 24 06:39:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 24 Sep 2011 06:39:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 10893] aermod.f90 Polyhedron 2005 benchmark miscompiled with -msse4 -ffast-math -funroll-loops -O3 -fplugin-arg-dragonegg-enable-gcc-optzns In-Reply-To: References: Message-ID: <20110924113929.3EF6D2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10893 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Duncan Sands 2011-09-24 06:39:28 CDT --- Closing because this is no longer miscompiled and the performance seems good. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Sep 24 06:40:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 24 Sep 2011 06:40:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 10891] doduc Polyhedron 2005 benchmark segfaults when built with -msse4 -ffast-math -funroll-loops -O3 -fplugin-arg-dragonegg-enable-gcc-optzns In-Reply-To: References: Message-ID: <20110924114058.8EEF82A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10891 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #16 from Duncan Sands 2011-09-24 06:40:57 CDT --- Closing because this is no longer miscompiled and the performance seems good. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Sep 24 14:17:08 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 24 Sep 2011 14:17:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 11004] New: Crash in llc for ARM (infinite recursion in LegalizeOp) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11004 Summary: Crash in llc for ARM (infinite recursion in LegalizeOp) Product: tools Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: llc AssignedTo: unassignedbugs at nondot.org ReportedBy: pdox at google.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7347) --> (http://llvm.org/bugs/attachment.cgi?id=7347) Minimal example The attached bitcode causes a crash in ARM llc. LegalizeOp enters infinite recursion. The problem might be a nested CALLSEQ in the DAG. Compile with: $ llc -march=arm -mcpu=cortex-a8 -mtriple=armv7-none-linux-gnueabi minimal.ll -o minimal.s -------- target triple = "armv7-none-linux-gnueabi" %st = type { i8, i8 } define void @foo() noreturn nounwind { %1 = alloca %st, align 1 %2 = call i32 @bar(i32 undef, i32 undef, i32 undef, i32 undef, %st* byval %1) nounwind unreachable } declare i32 @bar(i32, i32, i32, i32, %st* byval) nounwind -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sat Sep 24 17:05:48 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 24 Sep 2011 17:05:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 11005] New: Core dump on invalid code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11005 Summary: Core dump on invalid code Product: clang Version: trunk Platform: Other OS/Version: FreeBSD Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: lists at eitanadler.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7348) --> (http://llvm.org/bugs/attachment.cgi?id=7348) minified test case %clang --version FreeBSD clang version 3.0 (trunk 135360) 20110717 Target: x86_64-unknown-freebsd9.0 Thread model: posix Stack dump: 0. Program arguments: /home/eitan/svn/llvm/Debug+Asserts/bin/clang -cc1 -triple x86_64-unknown-freebsd9.0 -emit-obj -mrelax-all -disable-free -main-file-name menu.ii -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.17.50 -momit-leaf-frame-pointer -coverage-file menu.o -resource-dir /home/eitan/svn/llvm/Debug+Asserts/bin/../lib/clang/3.0 -Wall -Wextra -pedantic -std=c++0x -fdeprecated-macro -ferror-limit 19 -fmessage-length 238 -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o menu.o -x c++-cpp-output menu.ii 1. menu.ii:8:103: current parser token ';' 2. menu.ii:7:18: parsing struct/union/class body clang: error: unable to execute command: Segmentation fault: 11 (core dumped) clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 25 13:24:47 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 25 Sep 2011 13:24:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 11006] New: scan-build of GCC 4.5.1 crash with clang r140417 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11006 Summary: scan-build of GCC 4.5.1 crash with clang r140417 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: lbalbalba at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7349) --> (http://llvm.org/bugs/attachment.cgi?id=7349) details of crash Doing a scan-build of GCC 4.5.1 causes a crash when using clang r140417. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 25 14:37:20 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 25 Sep 2011 14:37:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 11007] New: Regression: -Warray-bounds doesn't catch errors it used to catch Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11007 Summary: Regression: -Warray-bounds doesn't catch errors it used to catch Product: clang Version: trunk Platform: All OS/Version: All Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: oneill+llvmbugs at cs.hmc.edu CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7350) --> (http://llvm.org/bugs/attachment.cgi?id=7350) Trivial array-out-of-bounds code. It seems like -Warray-bounds is broken. Here's clang-2.9 unix% ~/llvm-2.9/bin/clang -Wall -Wextra -Warray-bounds -Wuninitialized -o oob oob.c oob.c:6:28: warning: array index of '1000' indexes past the end of an array (that contains 5 elements) [-Warray-bounds] printf("a[1000] = %f\n", a[1000]); ^ ~~~~ oob.c:5:3: note: array 'a' declared here double a[5]; ^ 1 warning generated. unix% And here's the trunk, unix% ~/llvm-r140466/bin/clang -Wall -Wextra -Warray-bounds -Wuninitialized -o oob oob.c unix% It seems that the warning got lost somewhere between revision 135862 and 137888 (since I happen to have those versions built an kicking around still). unix% ~/llvm-r135862/bin/clang -Wall -Wextra -Warray-bounds -Wuninitialized -o oob oob.c oob.c:6:28: warning: array index of '1000' indexes past the end of an array (that contains 5 elements) [-Warray-bounds] printf("a[1000] = %f\n", a[1000]); ^ ~~~~ oob.c:5:3: note: array 'a' declared here double a[5]; ^ 1 warning generated. unix% ~/llvm-r137888/bin/clang -Wall -Wextra -Warray-bounds -Wuninitialized -o oob oob.c unix% Also, note that none of these warn about using an uninitialized value. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Sun Sep 25 16:24:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 25 Sep 2011 16:24:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 11008] New: [x86 disassembler] AVX instructions in i386 mode mishandling vvvv field Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11008 Summary: [x86 disassembler] AVX instructions in i386 mode mishandling vvvv field Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: kkhoo at perfwizard.com CC: llvmbugs at cs.uiuc.edu >From the "Intel? 64 and IA-32 Architectures Software Developer?s Manual Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 2-21: "In 32-bit mode the VEX first byte C4 and C5 alias onto the LES and LDS instructions. To maintain compatibility with existing programs the VEX 2nd byte, bits [7:6] must be 11b. To achieve this, the VEX payload bits are selected to place only inverted, 64-bit valid fields (extended register selectors) in these upper bits. The 2-byte VEX Byte 1, bits [6:3] and the 3-byte VEX, Byte 2, bits [6:3] encode a field (shorthand VEX.vvvv) that for instructions with 2 or more source registers and an XMM or YMM or memory destination encodes the first source register specifier stored in inverted (1?s complement) form." Testing with r140430, there are no problems disassembling this instruction in x86_64 mode: $ echo '0xc5 0xf8 0x12 0x00'| ./llvm-mc -disassemble -triple="x86_64" vmovlps (%rax), %xmm0, %xmm0 Change the vvvv field to alter the register source operand: $ echo '0xc5 0xf0 0x12 0x00'| ./llvm-mc -disassemble -triple="x86_64" vmovlps (%rax), %xmm1, %xmm0 In i386 mode, things work with the vvvv field set to 1111b: $ echo '0xc5 0xf8 0x12 0x00'| ./llvm-mc -disassemble -triple="i386" vmovlps (%eax), %xmm0, %xmm0 But if you try to change the vvvv field: $ echo '0xc5 0xf0 0x12 0x00'| ./llvm-mc -disassemble -triple="i386" :1:1: warning: invalid instruction encoding 0xc5 0xf0 0x12 0x00 ^ adcb (%eax), %al -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 25 19:39:58 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 25 Sep 2011 19:39:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 11009] New: lvalue-to-rvalue applied to r-value Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11009 Summary: lvalue-to-rvalue applied to r-value Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++0x AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com clang crashes in: struct MoveRef { operator int&& () const; }; MoveRef Move(const int &t); void moveConstruct() { const int *p = 0; int(Move(*p)); } with CGExprScalar.cpp:1157: llvm::Value *::ScalarExprEmitter::VisitCastExpr(clang::CastExpr *): Assertion `E->isGLValue() && "lvalue-to-rvalue applied to r-value!"' 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 Sun Sep 25 20:09:03 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 25 Sep 2011 20:09:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 5397] Rename diagnostic classes In-Reply-To: References: Message-ID: <20110926010903.86BF42A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5397 David Blaikie changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dblaikie at gmail.com Resolution| |FIXED --- Comment #3 from David Blaikie 2011-09-25 20:09:02 CDT --- Fixed by revisions 140478-140480, 140482-140483, 140485, 140489, 140492 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 00:13:11 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 00:13:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 11008] [x86 disassembler] AVX instructions in i386 mode mishandling vvvv field In-Reply-To: References: Message-ID: <20110926051312.37C2C2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11008 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Craig Topper 2011-09-26 00:13:11 CDT --- Fixed in r140514. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 00:32:21 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 00:32:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 10840] [AVX] encoding issue with roundss instruction? In-Reply-To: References: Message-ID: <20110926053221.2530E2A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10840 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Craig Topper 2011-09-26 00:32:20 CDT --- This seems to be working now. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 00:35:07 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 00:35:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 10664] [x86 disassembler] i386-only mode instructions are not shown as invalid in x86_64 In-Reply-To: References: Message-ID: <20110926053507.72D282A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10664 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |craig.topper at gmail.com Resolution| |FIXED --- Comment #2 from Craig Topper 2011-09-26 00:35:07 CDT --- Fixed in r140370. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 00:49:00 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 00:49:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 10626] [AVX] encoding issue with vmaskmovps? In-Reply-To: References: Message-ID: <20110926054900.F0A062A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10626 Craig Topper changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #2 from Craig Topper 2011-09-26 00:48:59 CDT --- I can't reproduce 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 Mon Sep 26 01:27:21 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 01:27:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 11004] Crash in llc for ARM (infinite recursion in LegalizeOp) In-Reply-To: References: Message-ID: <20110926062721.95B352A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11004 pdox at google.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from pdox at google.com 2011-09-26 01:27:21 CDT --- Fixed by r140516 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 02:09:37 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 02:09:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 11010] New: Assertion failure while parsing drawobj.c from SPEC CINT2000's 255.vortex Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11010 Summary: Assertion failure while parsing drawobj.c from SPEC CINT2000's 255.vortex Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: willdtz at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7351) --> (http://llvm.org/bugs/attachment.cgi?id=7351) Reduced test case. Present as of r140514, bisected first bad commit to r140457. Reduced testcase attached. Assertion failure (can re-run with Debug build if needed): clang -c test.c -o /dev/null clang: /home/will/llvm/tot/llvm/include/llvm/Support/Casting.h:194: typename llvm::cast_retty::ret_type llvm::cast(const Y&) [with X = clang::ConstantArrayType, Y = clang::QualType, typename llvm::cast_retty::ret_type = const clang::ConstantArrayType*]: Assertion `isa(Val) && "cast() argument of incompatible type!"' failed. 0 clang 0x0000000001ccf22f 1 clang 0x0000000001ccfd6a 2 libpthread.so.0 0x00007f113bdbcb60 3 libc.so.6 0x00007f113b099fc5 gsignal + 53 4 libc.so.6 0x00007f113b09b976 abort + 390 5 libc.so.6 0x00007f113b0928a5 __assert_fail + 245 6 clang 0x0000000000b34a26 7 clang 0x0000000000b4784e 8 clang 0x0000000000b3e8a7 9 clang 0x0000000000b3f157 10 clang 0x0000000000b3f98d 11 clang 0x0000000000b41b5a clang::InitializationSequence::Perform(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, clang::ASTMultiPtr, clang::QualType*) + 2522 12 clang 0x0000000000a5dd11 clang::Sema::AddInitializerToDecl(clang::Decl*, clang::Expr*, bool, bool) + 2689 13 clang 0x000000000096d11e clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&, clang::Parser::ParsedTemplateInfo const&) + 718 14 clang 0x0000000000971c73 clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int, bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 675 15 clang 0x0000000000976943 clang::Parser::ParseSimpleDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, bool, clang::Parser::ForRangeInit*) + 755 16 clang 0x0000000000976b23 clang::Parser::ParseDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 163 17 clang 0x0000000000945b9f clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector&, bool) + 447 18 clang 0x0000000000943139 clang::Parser::ParseCompoundStatementBody(bool) + 1721 19 clang 0x0000000000943ae8 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) + 168 20 clang 0x000000000096241e clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&) + 2094 21 clang 0x00000000009721ec clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int, bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 2076 22 clang 0x000000000095c77b clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&, clang::AccessSpecifier) + 155 23 clang 0x000000000095ce7e clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::AccessSpecifier) + 734 24 clang 0x000000000095f9c8 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 3224 25 clang 0x000000000095ff32 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 162 26 clang 0x00000000009312cd clang::ParseAST(clang::Sema&, bool) + 221 27 clang 0x00000000007da0a4 clang::CodeGenAction::ExecuteAction() + 68 28 clang 0x00000000006b62d5 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 373 29 clang 0x000000000069c6b9 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1385 30 clang 0x0000000000690e04 cc1_main(char const**, char const**, char const*, void*) + 868 31 clang 0x000000000069b4e3 main + 7811 32 libc.so.6 0x00007f113b084e5d __libc_start_main + 253 33 clang 0x00000000006908c9 Stack dump: 0. Program arguments: /home/will/llvm/tot/llvm-objects/Release+Asserts/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name test.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.53.0.2.20110804 -momit-leaf-frame-pointer -coverage-file /dev/null -resource-dir /home/will/llvm/tot/llvm-objects/Release+Asserts/bin/../lib/clang/3.0 -fmodule-cache-path /var/tmp/clang-module-cache -cxx-isystem /usr/lib64/qt/include -ferror-limit 19 -fmessage-length 116 -fdiagnostics-show-option -fcolor-diagnostics -o /dev/null -x c test.c 1. test.c:3:35: current parser token ';' 2. test.c:2:12: parsing function body 'foo' 3. test.c:2:12: in compound statement ('{}') clang: error: unable to execute command: 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 Mon Sep 26 03:03:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 03:03:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 10999] clang_tokenize fails after reparsing when using precompiled preambles. In-Reply-To: References: Message-ID: <20110926080322.30BAC2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10999 Argyrios Kyrtzidis changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Argyrios Kyrtzidis 2011-09-26 03:03:21 CDT --- Fixed at r140519. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 05:54:27 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 05:54:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 11011] New: MCJIT does not support ELF ("Unknown Object Format") Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11011 Summary: MCJIT does not support ELF ("Unknown Object Format") Product: new-bugs Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: karrenberg at cs.uni-saarland.de CC: llvmbugs at cs.uiuc.edu The MC infrastructure is currently only functional for MachO-targets. lli fails with an "Unknown Object Format"-Error if supplied with the -use-mcjit flag. As noted by Xerxes Ranby on the mailinglist, this is due to RuntimeDyldMachO::isKnownFormat() to return false (as it should on ELF). There is no similar RuntimeDyldELF class right now. testcase: llvm-as < llvm/test/ExecutionEngine/hello.ll | lli -use-mcjit This currently prevents usage of AVX instruction sets in jit-based applications since they are not supported by the old, non-MC infrastructure. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 07:57:19 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 07:57:19 -0500 (CDT) Subject: [LLVMbugs] [Bug 10980] "Unknown floating point type" error with -fdefault-real-8 In-Reply-To: References: Message-ID: <20110926125719.107212A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10980 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Duncan Sands 2011-09-26 07:57:18 CDT --- I fixed the dragonegg issue. The problem now is that the LLVM code generators don't know how to codegen 128 bit floating point types on x86. *** This bug has been marked as a duplicate of bug 9126 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 09:08:13 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 09:08:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 11012] New: Segmentation fault Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11012 Summary: Segmentation fault Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: rafael.espindola at gmail.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com clang-3.0 -cc1 -S test.ii crashes on: class Variant { Variant(const int& aOther); Variant(const double& aOther); }; class PPluginScriptableObjectParent { template void Write(const T& __v) { } void foo(); void Write(const Variant& __v); }; void PPluginScriptableObjectParent::foo() { unsigned length = 0; Write(length); } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 09:31:13 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 09:31:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 10925] Segmentation fault on valid code In-Reply-To: References: Message-ID: <20110926143113.3C34E2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10925 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #9 from Douglas Gregor 2011-09-26 09:31:12 CDT --- I've committed Stepan's patch as Clang r140528. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 09:32:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 09:32:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 11012] Segmentation fault In-Reply-To: References: Message-ID: <20110926143244.2FAB42A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11012 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #1 from Douglas Gregor 2011-09-26 09:32:43 CDT --- I fixed this last week on mainline; it's working fine for me with r140526. Are you still seeing crashes now? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 11:18:24 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 11:18:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 11013] New: clang --analyze segmentation fault on simple valid C for() loop Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11013 Summary: clang --analyze segmentation fault on simple valid C for() loop Product: clang Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: adam.spragg at octaltelecom.co.uk CC: llvmbugs at cs.uiuc.edu If I run clang --analyze on the following code, which, as far as I can tell is valid (it compiles fine with clang and GCC) then I get the following: $ clang --version clang version 2.9 (tags/RELEASE_29/final) Target: i386-pc-linux-gnu Thread model: posix $ clang --analyze clang-break.c clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) $ ---8<---clang-break.c---8<--- #include #include struct bits { long bit_id; long collection_id; char member1[256]; }; void bits_select(struct bits ** pdest, size_t * plen, void * db, long id); void show_bits_from_collection(void * db, long collection_id) { struct bits * thebits = NULL; size_t nbits = 0; unsigned i; bits_select(&thebits, &nbits, db, collection_id); for (i = 0; i <= nbits; ++i) { struct bits newbit = { -1, collection_id, "" }; struct bits * pbit = (i < nbits) ? &thebits[i] : &newbit; printf("Bit id: %ld\n", pbit->bit_id); } free(thebits); return; } ---8<---clang-break.c---8<--- This is clang 2.9 from Debian testing. It analyzed without segfaulting under 2.7. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 11:22:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 11:22:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 11012] Segmentation fault In-Reply-To: References: Message-ID: <20110926162250.A218C2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11012 Rafael ?vila de Esp?ndola changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|WORKSFORME |FIXED --- Comment #2 from Rafael ?vila de Esp?ndola 2011-09-26 11:22:50 CDT --- It is fixed. My clang copy was in a bad state. Cleaning the build directory and doing a new bootstrap fixed the problem. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 11:48:35 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 11:48:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 11014] New: Simple testcase - ARM fails to generate code on 'B' instruction Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11014 Summary: Simple testcase - ARM fails to generate code on 'B' instruction Product: new-bugs Version: trunk Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: ndsal at gromit2000.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7352) --> (http://llvm.org/bugs/attachment.cgi?id=7352) simple test case Attached is a simple few line test case - compiles find via llvm-gcc and llvm-ar. Execute using lli on X86 - fine. Execute using lli on ARM - code emitter fails. Readme 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 Sep 26 12:10:08 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 12:10:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 11013] clang --analyze segmentation fault on simple valid C for() loop In-Reply-To: References: Message-ID: <20110926171009.011AC2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11013 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |kremenek at apple.com Resolution| |FIXED --- Comment #1 from Ted Kremenek 2011-09-26 12:10:08 CDT --- Trunk doesn't crash on this. This should be fixed in the next major LLVM release, or on mainline if you are using 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 Sep 26 12:46:07 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 12:46:07 -0500 (CDT) Subject: [LLVMbugs] [Bug 11015] New: Exposing more statements types via libclang and Python wrapper. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11015 Summary: Exposing more statements types via libclang and Python wrapper. Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: manuel.holtgrewe at fu-berlin.de CC: llvmbugs at cs.uiuc.edu Attached is a patch against the trunk that exposes more statement types via libclang and the Python wrapper. I hope this conforms to your coding style (it's mostly copy-and-paste code) and will be happy to fix any problems so this can go into trunk quickly. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 13:06:57 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 13:06:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 11015] Exposing more statements types via libclang and Python wrapper. In-Reply-To: References: Message-ID: <20110926180657.7E3D32A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11015 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |INVALID --- Comment #1 from Eli Friedman 2011-09-26 13:06:57 CDT --- Please send patches to cfe-commits. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 13:15:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 13:15:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 10990] error: LLVM IR generation of declaration 'BrowserWebView::initWithFrame:' In-Reply-To: References: Message-ID: <20110926181522.CC0DA2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10990 Argyrios Kyrtzidis changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #9 from Argyrios Kyrtzidis 2011-09-26 13:15:21 CDT --- Fixed at r140542. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 14:56:14 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 14:56:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 10889] -fplugin-arg-dragonegg-enable-gcc-optzns/vector-select performance regression in capacita In-Reply-To: References: Message-ID: <20110926195614.67D002A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10889 Duncan Sands changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Duncan Sands 2011-09-26 14:56:13 CDT --- Reporter says that this is solved. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 16:49:56 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 16:49:56 -0500 (CDT) Subject: [LLVMbugs] [Bug 11016] New: Regression: Crash in exception handling codegen Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11016 Summary: Regression: Crash in exception handling codegen Product: clang Version: trunk 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 We're seeing this stack when compiling some internal file: The unwind destination does not have a landingpad instruction! invoke void @FXMEM_DefaultFree(i8* %4, i32 0) to label %invoke.cont.i.i.us unwind label %lpad.i.i LandingPadInst not the first non-PHI instruction in the block. %12 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) cleanup, !dbg !9984 Broken module found, compilation aborted! 0 clang 0x0000000101373f52 PrintStackTrace(void*) + 34 1 clang 0x0000000101374539 SignalHandler(int) + 713 2 libSystem.B.dylib 0x00007fff81a9c1ba _sigtramp + 26 3 clang 0x0000000100ecf11d llvm::CompileUnit::addRegisterOp(llvm::DIE*, unsigned int) + 163 4 clang 0x000000010001ca16 abort + 22 5 clang 0x00000001012fb123 (anonymous namespace)::Verifier::abortIfBroken() + 311 6 clang 0x00000001012fa67c (anonymous namespace)::Verifier::runOnFunction(llvm::Function&) + 2246 7 clang 0x00000001012dbe5d llvm::FPPassManager::runOnFunction(llvm::Function&) + 341 8 clang 0x00000001012d747b llvm::FPPassManager::runOnModule(llvm::Module&) + 61 9 clang 0x00000001012dbb6a llvm::MPPassManager::runOnModule(llvm::Module&) + 318 10 clang 0x00000001012dcf71 llvm::PassManagerImpl::run(llvm::Module&) + 303 11 clang 0x00000001012dcff1 llvm::PassManager::run(llvm::Module&) + 13 12 clang 0x00000001001508c5 clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 4645 13 clang 0x0000000100234ca2 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 278 14 clang 0x00000001002567ff clang::ParseAST(clang::Sema&, bool) + 431 15 clang 0x0000000100233c7e clang::CodeGenAction::ExecuteAction() + 852 16 clang 0x0000000100038c82 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 958 17 clang 0x0000000100024161 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2193 18 clang 0x000000010001e76b cc1_main(char const**, char const**, char const*, void*) + 2923 19 clang 0x00000001000211c0 main + 640 20 clang 0x000000010001dbf4 start + 52 I'll try to come up with a cleaned up repro that I can attach to this bug. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 17:03:26 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 17:03:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 11017] New: Setting target data layout and target triple in llvm-ld and llc Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11017 Summary: Setting target data layout and target triple in llvm-ld and llc Product: compiler-rt Version: unspecified Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P Component: compiler-rt AssignedTo: unassignedbugs at nondot.org ReportedBy: s3734770 at mail.zih.tu-dresden.de CC: llvmbugs at cs.uiuc.edu I'm writing a compiler that outputs llvm-ir and uses the command line tools to generate executables. I'm using llvm-ld for standalone executables and llc for shared libraries. The compiler should work under windows, linux and mac. The actual problem is that i have to set the target data layout for the bitcode file. But the bitcode file is platform independend except the one line containing the target data layout. An other problem is to find out the correct/current data layout or target triple. So my suggestion is to add command line parameters to llvm-ld and llc to set the target triple and the target data layout. I also need some helpers/placeholders like "-p:$bitwidth:$bitwidth-" to not have to parse 'uname -a' (which does not exist under windows) each time i call the llvm-ld or llc. So I would be delighted if this gets implemented. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 17:31:36 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 17:31:36 -0500 (CDT) Subject: [LLVMbugs] [Bug 11010] Assertion failure while parsing drawobj.c from SPEC CINT2000's 255.vortex In-Reply-To: References: Message-ID: <20110926223136.421682A6C131@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11010 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Eli Friedman 2011-09-26 17:31:35 CDT --- This looks like the issue I fixed in r140552; please reopen if it isn't. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 18:36:30 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 18:36:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 11007] Regression: -Warray-bounds doesn't catch errors it used to catch In-Reply-To: References: Message-ID: <20110926233630.173232A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11007 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Ted Kremenek 2011-09-26 18:36:29 CDT --- Fixed in r140584. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 19:59:45 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 19:59:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 11016] Regression: Crash in exception handling codegen In-Reply-To: References: Message-ID: <20110927005945.0D1FF2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11016 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Bill Wendling 2011-09-26 19:59:44 CDT --- Fixed: r140592 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 20:01:00 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 20:01:00 -0500 (CDT) Subject: [LLVMbugs] [Bug 11018] New: ARM byval is actually by reference Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11018 Summary: ARM byval is actually by reference Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: pdox at google.com CC: llvmbugs at cs.uiuc.edu The attached byval_is_ref.ll demonstrates how byval is actually passed by reference in this case. Modifying the parameter in the callee affects the value in the caller. The return value of main is 55 instead of 0. Compile with: $ llc -march=arm -mtriple=armv7a-none-linux-gnueabi byval_is_ref.ll The reason for this behavior: CCValAssign::isRegLoc() returns true for the byval argument. In ARMTargetLowering::LowerCall(), this causes a pointer to the struct be passed, instead of following the IsByVal 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 Sep 26 20:11:49 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 20:11:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 11009] lvalue-to-rvalue applied to r-value In-Reply-To: References: Message-ID: <20110927011149.C963D2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11009 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #2 from Eli Friedman 2011-09-26 20:11:49 CDT --- r140594. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 21:26:48 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 21:26:48 -0500 (CDT) Subject: [LLVMbugs] [Bug 11019] New: ARM stack corruption due to byval parameter Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11019 Summary: ARM stack corruption due to byval parameter Product: libraries Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Backend: ARM AssignedTo: unassignedbugs at nondot.org ReportedBy: pdox at google.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7354) --> (http://llvm.org/bugs/attachment.cgi?id=7354) callsite_stack.ll The attached example demonstrates how the presence of a byval argument at a callsite can corrupt the caller's stack. The return value of main will be 0 instead of the correct value of 100. This bug is caused by a disagreement between CCInfo and the ByVal handling code about how large the call frame is going to be. CCInfo.getNextStackOffset() is returning 4, thus 4 bytes are reserved on the stack for the call sequence. However, the actual byval expansion writes 8 bytes above SP. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 22:00:40 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 22:00:40 -0500 (CDT) Subject: [LLVMbugs] [Bug 11020] New: Report constant expressions used in if stmts and loop conditions Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11020 Summary: Report constant expressions used in if stmts and loop conditions Product: clang Version: unspecified Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: Static Analyzer AssignedTo: kremenek at apple.com ReportedBy: arjunsingri at gmail.com CC: llvmbugs at cs.uiuc.edu If an if statement or a loop has a constant expression as its condition, then it is possible that there is a bug. Ex: int x = 10; int y = 30; if (x + 20 == y) ...; I am not sure if this is already caught in clang and if there is a need to provide support in the static analyzer. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 23:00:31 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 23:00:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 11021] New: clang examples wont compile Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11021 Summary: clang examples wont compile Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: contact at philipashmore.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7355) --> (http://llvm.org/bugs/attachment.cgi?id=7355) clang examples patch I've attached a patch to make the examples compile. How do I list plugins? I tried running PrintFunctionNames: clang -cc1 -load ./pfn.so -plugin print-fns test.cpp error: unable to find plugin 'print-fns' If plugins are being dropped I'd like the opportunity to try to maintain them, or is it simply being reworked? Philip -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Sep 26 23:13:37 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 26 Sep 2011 23:13:37 -0500 (CDT) Subject: [LLVMbugs] [Bug 11022] New: Debug output might be endian-unaware Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11022 Summary: Debug output might be endian-unaware 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: geek4civic at gmail.com CC: dpatel at apple.com, llvmbugs at cs.uiuc.edu On ppc-linux with llvm/test/CodeGen/X86/dbg-i128-const.ll, DW_AT_const_value is emitted as host-endianness-dependent (not target-dependent). $ llc -mtriple=x86_64-linux < llvm/test/CodeGen/X86/dbg-i128-const.ll --- /tmp/x86.txt 2011-09-27 12:59:21.000000000 +0900 +++ /tmp/ppc.txt 2011-09-27 12:44:58.000000000 +0900 @@ -95,7 +95,6 @@ .byte 29 # DW_AT_decl_line .long 137 # DW_AT_type .byte 16 # DW_AT_const_value - .byte 42 .byte 0 .byte 0 .byte 0 @@ -103,6 +102,7 @@ .byte 0 .byte 0 .byte 0 + .byte 42 .byte 0 .byte 0 .byte 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 Sep 27 01:19:11 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 27 Sep 2011 01:19:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 11019] ARM stack corruption due to byval parameter In-Reply-To: References: Message-ID: <20110927061911.88A5A2A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11019 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |asl at math.spbu.ru Resolution| |DUPLICATE --- Comment #1 from Anton Korobeynikov 2011-09-27 01:19:11 CDT --- Let's track ARM byval stuff in one PR, no need for separate ones since the feature just not work (yet). *** This bug has been marked as a duplicate of bug 11018 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 27 07:19:47 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 27 Sep 2011 07:19:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 11023] New: Poor code generation for odd sized vectors Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11023 Summary: Poor code generation for odd sized vectors 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: mle+cl at mega-nerd.com CC: llvmbugs at cs.uiuc.edu I'm compiling LLVM IR code like this on x86-64: define linkonce ccc <16 x float> @vector_add_float(<16 x float> %a.78, <16 x float> %a.79) align 8 { entry: %result.80 = fadd <16 x float> %a.78, %a.79 ret <18 x float> %result.80 } This works really well when the vector length (16 in the above) is an integer multiple of the SSE vector register width (4) resulting in the following assembler code: vector_add_float: # @vector_add_float .Leh_func_begin0: # BB#0: # %entry addps %xmm4, %xmm0 addps %xmm5, %xmm1 addps %xmm6, %xmm2 addps %xmm7, %xmm3 ret However, when the vector length is increased to say 18, the generated code is rather poor, or rather is code that could easily be improved by hand. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 27 09:27:21 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 27 Sep 2011 09:27:21 -0500 (CDT) Subject: [LLVMbugs] [Bug 11024] New: llc is taking 2000x time to compile for ARM target than for x86 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11024 Summary: llc is taking 2000x time to compile for ARM target than for x86 Product: new-bugs Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: babslachem at gmail.com CC: llvmbugs at cs.uiuc.edu Hello, On attached file compiling as follows: llc bugperf.ll -march=arm -mcpu=cortex-a9 -mattr=+neon,+neonfp -relocation-model=pic -o bugperf.so takes 215 secs Whereas llc bugperf.ll -march=x86 -relocation-model=pic -o bugperf.so takes 0.1 secs -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 27 12:08:54 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 27 Sep 2011 12:08:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 4945] clang/linux: -fomit-frame-pointer must be enabled at -O1 and higher on x86-64 In-Reply-To: References: Message-ID: <20110927170854.3B9A92A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=4945 ace2001ac at gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #3 from ace2001ac at gmail.com 2011-09-27 12:08:53 CDT --- This seems to work now. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 27 12:15:49 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 27 Sep 2011 12:15:49 -0500 (CDT) Subject: [LLVMbugs] [Bug 11024] llc is taking 2000x time to compile for ARM target than for x86 In-Reply-To: References: Message-ID: <20110927171549.25F3F2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11024 Jakob Stoklund Olesen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #4 from Jakob Stoklund Olesen 2011-09-27 12:15:48 CDT --- This doesn't reproduce for me. Are you using SVN trunk? -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 27 12:20:20 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 27 Sep 2011 12:20:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 11024] llc is taking 2000x time to compile for ARM target than for x86 In-Reply-To: References: Message-ID: <20110927172020.BF86E2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11024 seb changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #5 from seb 2011-09-27 12:20:20 CDT --- Version I'm using is 2.9 not checkout from svn trunk -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 27 12:37:25 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 27 Sep 2011 12:37:25 -0500 (CDT) Subject: [LLVMbugs] [Bug 11024] llc is taking 2000x time to compile for ARM target than for x86 In-Reply-To: References: Message-ID: <20110927173725.BD0992A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11024 Anton Korobeynikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |WORKSFORME --- Comment #8 from Anton Korobeynikov 2011-09-27 12:37:25 CDT --- (In reply to comment #5) > Version I'm using is 2.9 > not checkout from svn trunk Ok, please use trunk -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 27 12:40:44 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 27 Sep 2011 12:40:44 -0500 (CDT) Subject: [LLVMbugs] [Bug 11025] New: Represent hadd, vector shift without target specific builtins. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11025 Summary: Represent hadd, vector shift without target specific builtins. Product: clang Version: trunk Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P Component: Headers AssignedTo: unassignedclangbugs at nondot.org ReportedBy: benny.kra at gmail.com CC: llvmbugs at cs.uiuc.edu We should try to reduce the amount of target specific builtins used to implement intrinsics, if we can represent them with standard IR and the machine code output is still the same. This makes the optimizer's job easier. Eventually we can remove those builtins entirely (llvm-gcc will still generate them so we need to autoupgrade). === Thanks to Duncan's recent work, the X86 backend can match horizontal add and sub of fp vectors now, so we can represent it as shufflevectors + fadd. static __inline__ __m128d __attribute__((__always_inline__, __nodebug__)) _mm_hadd_pd(__m128d a, __m128d b) { return __builtin_shufflevector(a, b, 0, 2) + __builtin_shufflevector(a, b, 1, 3); } similar for hsub_pd, hadd_ps and hsub_ps. === Vector shift support should also be solid enough now, so we can rewrite the shift intrinsics: static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) _mm_slli_epi16(__m128i a, int count) { return (__m128i)((__v8hi)a << (__v8hi){ count, count, count, count, count, count, count, count }); } We have to be careful here though, some x86 shift instructions don't support variable shifts. Not sure if we want to allow it and emit unexpected code (or crash the backend). === minsd/maxsd and friends should be representable with something like "return a < b ? a : b" and let the backend do the heavy lifting, I couldn't come up with a way to create the necessary vector compares in C code 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 Sep 27 13:05:29 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 27 Sep 2011 13:05:29 -0500 (CDT) Subject: [LLVMbugs] [Bug 11026] New: [x86 assembler] rdrand not recognized? Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11026 Summary: [x86 assembler] rdrand not recognized? Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: kkhoo at perfwizard.com CC: llvmbugs at cs.uiuc.edu >From the "Intel? 64 and IA-32 Architectures Software Developer?s Manual Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 4-309, dated May 2011: RDRAND?Read Random Number 0F C7 /6 RDRAND r16 0F C7 /6 RDRAND r32 REX.W + 0F C7 /6 RDRAND r64 See also: http://en.wikipedia.org/wiki/RdRand Using: $ clang -v Apple clang version 2.0 (tags/Apple/clang-139) (based on LLVM 2.9svn) Target: x86_64-apple-darwin10 Thread model: posix $ cat avx.s rdrand $rax $ clang -mavx avx.s -c /var/folders/J5/J5ahEYzWEFC1BPEW37amTE+++TM/-Tmp-/cc-5nMsF2.s:5:1: error: invalid instruction mnemonic 'rdrand' -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 27 13:11:02 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 27 Sep 2011 13:11:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 11027] New: [x86 disassembler] rdrand not recognized Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11027 Summary: [x86 disassembler] rdrand not recognized Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Backend: X86 AssignedTo: unassignedbugs at nondot.org ReportedBy: kkhoo at perfwizard.com CC: llvmbugs at cs.uiuc.edu >From the "Intel? 64 and IA-32 Architectures Software Developer?s Manual Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 4-309, dated May 2011: RDRAND?Read Random Number 0F C7 /6 RDRAND r16 0F C7 /6 RDRAND r32 REX.W + 0F C7 /6 RDRAND r64 See also: http://en.wikipedia.org/wiki/RdRand Using llvm-mc built from r140537: $ echo '0x0f 0xc7 0xc0'| ./llvm-mc -disassemble -triple="x86_64" :1:1: warning: invalid instruction encoding 0x0f 0xc7 0xc0 ^ -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 27 16:06:31 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 27 Sep 2011 16:06:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 5638] [code cleanup] get rid of "tmp" LLVM IR names In-Reply-To: References: Message-ID: <20110927210631.BBCDF2A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=5638 Benjamin Kramer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |benny.kra at gmail.com Resolution| |FIXED --- Comment #1 from Benjamin Kramer 2011-09-27 16:06:31 CDT --- 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 Tue Sep 27 18:11:04 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 27 Sep 2011 18:11:04 -0500 (CDT) Subject: [LLVMbugs] [Bug 11002] warning: missing sentinel in function call [-Wsentinel] when building r140404 In-Reply-To: References: Message-ID: <20110927231104.0ACF52A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11002 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #18 from Eli Friedman 2011-09-27 18:11:03 CDT --- OK, got it. It seems like whatever platform you are using redefines NULL (which is a bit unusual, but not exactly wrong). Looks like there are a few issues here: one, the test is buggy, two, we're somehow losing the source location, and three, we should probably be warning for this construct on every platform. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Tue Sep 27 19:36:59 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 27 Sep 2011 19:36:59 -0500 (CDT) Subject: [LLVMbugs] [Bug 10628] clang fails test 20071210-1.c with -O2 and -O3 In-Reply-To: References: Message-ID: <20110928003659.A59AC2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10628 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #2 from Eli Friedman 2011-09-27 19:36:59 CDT --- r140666. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 28 00:21:15 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 28 Sep 2011 00:21:15 -0500 (CDT) Subject: [LLVMbugs] [Bug 11028] New: clang trunk r140637 is not defining preprocessor macros correctly on linux/ppc64 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11028 Summary: clang trunk r140637 is not defining preprocessor macros correctly on linux/ppc64 Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: jeremyhu at apple.com CC: llvmbugs at cs.uiuc.edu clang is not defining __linux__ and similar macros, its processor definitions are like on darwin (__ppc64__ rather than __PPC64__) __SIZEOF_LONG_DOUBLE__ is also incorrect which is probably a deeper issue, but I only care about getting the static analyzer working at this point, so that's not as big of a concern to me as the others. Missing __linux__ causes things to be preprocessed incorrectly. $ /opt/llvm/bin/clang --version clang version 3.0 (trunk 140637) Target: powerpc64-unknown-linux-gnu Thread model: posix $ /usr/bin/gcc --version gcc (Gentoo 4.4.5 p1.2, pie-0.4.5) 4.4.5 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ echo "" | /opt/llvm/bin/clang -E - -dM | sort > /tmp/clang.dM $ echo "" | /usr/bin/gcc -E - -dM | sort > /tmp/gcc.dM $ comm -3 /tmp/*.dM #define _ARCH_PPCGR 1 #define __BIGGEST_ALIGNMENT__ 16 #define _CALL_AIX 1 #define _CALL_AIXDESC 1 #define __CHAR16_TYPE__ short unsigned int #define __CHAR16_TYPE__ unsigned short #define __clang__ 1 #define __clang_major__ 3 #define __clang_minor__ 0 #define __clang_patchlevel__ 0 #define __clang_version__ "3.0 (trunk 140637)" #define __CONSTANT_CFSTRINGS__ 1 #define __DEC128_EPSILON__ 1E-33DL #define __DEC128_MANT_DIG__ 34 #define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL #define __DEC128_MAX_EXP__ 6145 #define __DEC128_MIN__ 1E-6143DL #define __DEC128_MIN_EXP__ (-6142) #define __DEC128_SUBNORMAL_MIN__ 0.000000000000000000000000000000001E-6143DL #define __DEC32_EPSILON__ 1E-6DF #define __DEC32_MANT_DIG__ 7 #define __DEC32_MAX__ 9.999999E96DF #define __DEC32_MAX_EXP__ 97 #define __DEC32_MIN__ 1E-95DF #define __DEC32_MIN_EXP__ (-94) #define __DEC32_SUBNORMAL_MIN__ 0.000001E-95DF #define __DEC64_EPSILON__ 1E-15DD #define __DEC64_MANT_DIG__ 16 #define __DEC64_MAX__ 9.999999999999999E384DD #define __DEC64_MAX_EXP__ 385 #define __DEC64_MIN__ 1E-383DD #define __DEC64_MIN_EXP__ (-382) #define __DEC64_SUBNORMAL_MIN__ 0.000000000000001E-383DD #define __DEC_EVAL_METHOD__ 2 #define __DECIMAL_DIG__ 17 #define __DECIMAL_DIG__ 33 #define __ELF__ 1 #define _FORTIFY_SOURCE 2 #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1 #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1 #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1 #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1 #define __GNUC_GNU_INLINE__ 1 #define __GNUC_MINOR__ 2 #define __GNUC_MINOR__ 4 #define __GNUC_PATCHLEVEL__ 1 #define __GNUC_PATCHLEVEL__ 5 #define __GNUC_STDC_INLINE__ 1 #define __gnu_linux__ 1 #define __GXX_RTTI 1 #define __INT16_TYPE__ short #define __INT32_TYPE__ int #define __INT64_C_SUFFIX__ L #define __INT64_TYPE__ long int #define __INT8_TYPE__ char #define __INTMAX_WIDTH__ 64 #define __INTPTR_TYPE__ long int #define __INTPTR_WIDTH__ 64 #define __LDBL_DENORM_MIN__ 4.94065645841246544176568792868221e-324L #define __LDBL_DENORM_MIN__ 4.9406564584124654e-324 #define __LDBL_DIG__ 15 #define __LDBL_DIG__ 31 #define __LDBL_EPSILON__ 2.2204460492503131e-16 #define __LDBL_EPSILON__ 4.94065645841246544176568792868221e-324L #define __LDBL_MANT_DIG__ 106 #define __LDBL_MANT_DIG__ 53 #define __LDBL_MAX__ 1.7976931348623157e+308 #define __LDBL_MAX__ 1.79769313486231580793728971405301e+308L #define __LDBL_MIN_10_EXP__ (-291) #define __LDBL_MIN_10_EXP__ (-307) #define __LDBL_MIN__ 2.00416836000897277799610805135016e-292L #define __LDBL_MIN__ 2.2250738585072014e-308 #define __LDBL_MIN_EXP__ (-1021) #define __LDBL_MIN_EXP__ (-968) #define __linux 1 #define __linux__ 1 #define linux 1 #define __llvm__ 1 #define __LONGDOUBLE128 1 #define __NATURAL_ALIGNMENT__ 1 #define __POINTER_WIDTH__ 64 #define __POWERPC__ 1 #define __ppc__ 1 #define __PPC__ 1 #define __ppc64__ 1 #define __PPC64__ 1 #define __PTRDIFF_WIDTH__ 64 #define __SIG_ATOMIC_WIDTH__ 32 #define __SIZEOF_LONG_DOUBLE__ 16 #define __SIZEOF_LONG_DOUBLE__ 8 #define __SIZE_WIDTH__ 64 #define __STDC_VERSION__ 199901L #define __unix 1 #define __unix__ 1 #define unix 1 #define __USER_LABEL_PREFIX__ #define __USER_LABEL_PREFIX__ _ #define __VERSION__ "4.2.1 Compatible Clang 3.0 (trunk 140637)" #define __VERSION__ "4.4.5" #define __WCHAR_WIDTH__ 32 #define __WINT_TYPE__ int #define __WINT_TYPE__ unsigned int #define __WINT_WIDTH__ 32 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 28 03:43:41 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 28 Sep 2011 03:43:41 -0500 (CDT) Subject: [LLVMbugs] [Bug 11024] llc is taking 2000x time to compile for ARM target than for x86 In-Reply-To: References: Message-ID: <20110928084341.751682A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11024 seb changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #10 from seb 2011-09-28 03:43:40 CDT --- OK I just reopen this topic to add this comment. I've checked with trunc and now it runs in 10 secs, so however this is a 10x improvement, it is still 100x slower than for x86 target. Here is an excerpt of use of -time-passes option: ---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name --- 9.7726 ( 93.1%) 0.0800 ( 71.4%) 9.8526 ( 92.9%) 9.8801 ( 92.9%) ARM Instruction Selection As you can see, now ARM Instruction selection is taking most of the time. Hope this can help improve LLVM for ARM. Feel free to close the issue. Best Regards Seb -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 28 04:33:13 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 28 Sep 2011 04:33:13 -0500 (CDT) Subject: [LLVMbugs] [Bug 11029] New: llc internal error for ARM target Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11029 Summary: llc internal error for ARM target 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: babslachem at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7368) --> (http://llvm.org/bugs/attachment.cgi?id=7368) ll file to reproduce problem When trying attached example using following command line, llc emit an internal error for ARM target but doesn't for x86. Command to use: - For ARM: llc v3.ll -march=arm -mcpu=cortex-a9 -mattr=+neon,+neonfp -relocation-model=pic -o v3.so - For x86: llc v3.ll -march=x86 -relocation-model=pic -o v3.so -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 28 06:40:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 28 Sep 2011 06:40:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 10935] Clang cannot find system libraries on Ubuntu 11.4 In-Reply-To: References: Message-ID: <20110928114050.C526C2A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10935 julian changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |mayer.julian at googlemail.com Resolution| |DUPLICATE --- Comment #1 from julian 2011-09-28 06:40:50 CDT --- *** This bug has been marked as a duplicate of bug 9798 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 28 06:41:11 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 28 Sep 2011 06:41:11 -0500 (CDT) Subject: [LLVMbugs] [Bug 10366] path problem on ubuntu 11.04 In-Reply-To: References: Message-ID: <20110928114111.E45842A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10366 julian changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |mayer.julian at googlemail.com Resolution| |DUPLICATE --- Comment #7 from julian 2011-09-28 06:41:11 CDT --- *** This bug has been marked as a duplicate of bug 9798 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 28 06:50:52 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 28 Sep 2011 06:50:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 11030] New: llc internal error for ARM target when -mcpucortex-a9 is used Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11030 Summary: llc internal error for ARM target when -mcpucortex-a9 is used 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: babslachem at gmail.com CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7369) --> (http://llvm.org/bugs/attachment.cgi?id=7369) ll file to reproduce problem When using llc 'trunk' version on attached code I've got: for llc -march=arm -mcpu=cortex-a9 vload.ll I've got following execution trace: llc: /work1/tools/llvm/dev/sources/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:2717: llvm::SDValue llvm::SelectionDAG::getNode(unsigned int, llvm::DebugLoc, llvm::EVT, llvm::SDValue, llvm::SDValue): Assertion `N1.getValueType() == N2.getValueType() && N1.getValueType() == VT && "Binary operator types must match!"' failed. 0 libLLVM-3.0svn.so 0x019cef48 Stack dump: 0. Program arguments: /work1/tools/llvm/dev/install/bin/llc -march=arm -mcpu=cortex-a9 vload.ll 1. Running pass 'Function Pass Manager' on module 'vload.ll'. 2. Running pass 'ARM Instruction Selection' on function '@sample_test' Abort Now if I remove -mcpu=cortex-a9 from comman line it works. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 28 08:15:30 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 28 Sep 2011 08:15:30 -0500 (CDT) Subject: [LLVMbugs] [Bug 11031] New: [AVX, perf] %rbp unnecessarily saved and restored in simple function Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11031 Summary: [AVX,perf] %rbp unnecessarily saved and restored in simple function Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7370) --> (http://llvm.org/bugs/attachment.cgi?id=7370) test case With the attached example, llc -mattr=+avx generates the following assembly. I believe that the initial pushq/movq and the ending popq are unnecessary. _Floor2Int___f: ## @Floor2Int___f ## BB#0: ## %allocas pushq %rbp movq %rsp, %rbp vroundps $9, %ymm0, %ymm2 vxorps %ymm0, %ymm0, %ymm0 vblendvps %ymm1, %ymm2, %ymm0, %ymm2 vcvttps2dq %ymm2, %ymm2 vblendvps %ymm1, %ymm2, %ymm0, %ymm0 popq %rbp ret -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 28 11:38:06 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 28 Sep 2011 11:38:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 11032] New: Dead store elimination deficient Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11032 Summary: Dead store elimination deficient Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Scalar Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: pickensd at synopsys.com CC: llvmbugs at cs.uiuc.edu Given the following test case: int foo(int *p){ static int x = 0; x++; *p = 1; x++; return x; } dead store elimination fails to observe that the assignment into "*p" cannot possibly affect "x" because the address of "x" is never taken. Thus, LLVM generates an unnecessary store into "x" and an unnecessary reload of "x". GCC does not generate the extra code. This issue affects the performance and code size of the EEMBC "matrix01" benchmark. Here is the ARM output at -O3 that demonstrates the problem: ldr r1, .LCPI0_0 <-- address of "x" mov r3, #1 ldr r2, [r1] add r2, r2, #1 str r2, [r1] <--- Unnecessary store into "x" str r3, [r0] ldr r0, [r1] <--- Unnecessary reload of "x" add r0, r0, #1 str r0, [r1] mov pc, lr -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 28 12:51:02 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 28 Sep 2011 12:51:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 11033] New: SSE4.2 instruction (pcmpgtq) is generated even with -mattr=-sse42 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11033 Summary: SSE4.2 instruction (pcmpgtq) is generated even with -mattr=-sse42 Product: new-bugs Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: matt at pharr.org CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7371) --> (http://llvm.org/bugs/attachment.cgi?id=7371) test case With the attached test case, a pcmpgtq is generated with top-of-tree when -mattr=-sse42 is specified, even though pcmpgtq seems to have been introduced in SSE4.2. (And a macbook air from last year, with a CPU that supports SSE 4.1 but not SSE4.2 agreed with this, as it generates an illegal instruction trap if it tries to run the resulting code.) % llc x.ll -o - -mattr=-sse42 | grep pcmpgtq pcmpgtq %xmm0, %xmm1 pcmpgtq %xmm5, %xmm3 git bisect tells me that this behavior started with this commit, but it's unclear to me why this would be. 354efd88db96c9662d41c1e154fdee37324802db is the first bad commit commit 354efd88db96c9662d41c1e154fdee37324802db Author: Nadav Rotem Date: Sun Sep 18 14:57:03 2011 +0000 setOperationAction should be done on the return value of the type, not the operands. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk at 140001 91177308-0d34-0410-b5e6-96231b3b80d8 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 28 13:55:42 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 28 Sep 2011 13:55:42 -0500 (CDT) Subject: [LLVMbugs] [Bug 11021] clang examples wont compile In-Reply-To: References: Message-ID: <20110928185542.73E012A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11021 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Eli Friedman 2011-09-28 13:55:42 CDT --- (In reply to comment #3) > Maybe I forgot to do a "make clean" after an "svn update". > > Anyway I just downloaded llvm/clang from svn revision 140683, built and > installed. Okay, cool. > It works! > > Have you thought of using something like the OpenSUSE build service > https://build.opensuse.org/ to build it for your users/testers? I don't think I've heard any discussion of anything like that; if you're interested, though, you could send a proposal to llvmdev. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 28 15:43:26 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 28 Sep 2011 15:43:26 -0500 (CDT) Subject: [LLVMbugs] [Bug 11002] warning: missing sentinel in function call [-Wsentinel] when building r140404 In-Reply-To: References: Message-ID: <20110928204326.1C9512A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11002 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #23 from Eli Friedman 2011-09-28 15:43:24 CDT --- TypeBuilderTest.cpp itself should be fixed with r140720. We aren't going to change clang's warning because the current behavior is gcc compatible. If you manage to track down what is redefining NULL to something unusual on Linux, please file a new bug. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 28 16:01:06 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 28 Sep 2011 16:01:06 -0500 (CDT) Subject: [LLVMbugs] [Bug 11033] SSE4.2 instruction (pcmpgtq) is generated even with -mattr=-sse42 In-Reply-To: References: Message-ID: <20110928210106.156F42A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11033 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |FIXED --- Comment #1 from Eli Friedman 2011-09-28 16:01:05 CDT --- r140723. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 28 16:38:45 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 28 Sep 2011 16:38:45 -0500 (CDT) Subject: [LLVMbugs] [Bug 11030] llc internal error for ARM target when -mcpucortex-a9 is used In-Reply-To: References: Message-ID: <20110928213845.8A5B32A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11030 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |sharparrow1 at yahoo.com Resolution| |DUPLICATE --- Comment #1 from Eli Friedman 2011-09-28 16:38:45 CDT --- *** This bug has been marked as a duplicate of bug 11029 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 28 17:57:47 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 28 Sep 2011 17:57:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 11034] New: LLVM failed at deleting my loops Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11034 Summary: LLVM failed at deleting my loops Product: libraries Version: trunk Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: Loop Optimizer AssignedTo: nlewycky at google.com ReportedBy: chandlerc at gmail.com CC: llvmbugs at cs.uiuc.edu I was hacking on something totally different, and went to show the *obviously* trivial code to Nick. And LLVM didn't delete it. WTF. ; ModuleID = 'arr1.cc' 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" %struct.X = type { [27 x i8], [2 x i8] } @_ZZ5testXiiPcE1x = private unnamed_addr constant %struct.X { [27 x i8] c"abcd\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [2 x i8] c"a\00" }, align 1 define i32 @_Z5testXiiPc(i32 %i, i32 %j, i8* nocapture %c) nounwind uwtable readnone { entry: br label %for.body for.body: ; preds = %for.body, %entry %indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.body ] %sum.02 = phi i32 [ 0, %entry ], [ %add, %for.body ] %arrayidx = getelementptr inbounds %struct.X* @_ZZ5testXiiPcE1x, i64 0, i32 0, i64 %indvars.iv %0 = load i8* %arrayidx, align 1, !tbaa !0 %conv = sext i8 %0 to i32 %add = add nsw i32 %conv, %sum.02 %indvars.iv.next = add i64 %indvars.iv, 1 %lftr.wideiv = trunc i64 %indvars.iv.next to i32 %exitcond = icmp eq i32 %lftr.wideiv, 27 br i1 %exitcond, label %for.end, label %for.body for.end: ; preds = %for.body ret i32 %add } !0 = metadata !{metadata !"omnipotent char", metadata !1} !1 = metadata !{metadata !"Simple C/C++ TBAA", null} Why is there a loop body here? The result is statically known.... My favorite part: if you make the array size 18, it works. But 19 or higher, and it gives up. =[ -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 28 18:03:31 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 28 Sep 2011 18:03:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 11035] New: -enable-lsr-nested performance summary Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11035 Summary: -enable-lsr-nested performance summary Product: libraries Version: trunk Platform: PC OS/Version: All Status: ASSIGNED Severity: enhancement Priority: P Component: Common Code Generator Code AssignedTo: atrick at apple.com ReportedBy: atrick at apple.com CC: llvmbugs at cs.uiuc.edu I measured the following perfomance changes after disabling LSR on outer loops. The real reason for disabling the feature, is that LSR does not yet know how to model nested loops and sometimes gets it very wrong. So although we can theoretically benefit from doing this, we should "first do no harm". Eventually, we may figure out how to model it and reenable the feature. These are simply the numbers I happen to get on my hardware and the scores are highly sensitive to slight changes in codegen (e.g. different triple) and microarchitecture, so others will not get the same result. There are only two significant regressions on mildly interesting benchmarks: 1) huffbench on x86_64. This actually looks like a code alignment issue. It's highly platform sensitive and unrelated to my change. 2) enc-rc4 on ARM. This is really an example of LSR still doing the wrong thing even though it's limited to the inner loop. I'm working on fixing those issues and internally tracking this one as rdar://problem/10203729 ** x86 speedups MultiSource/Benchmarks/MiBench/telecomm-FFT/telecomm-fft 33.00% SingleSource/Benchmarks/Misc/ffbench 23.00% MultiSource/Benchmarks/MallocBench/gs/gs 17.00% External/SPEC/CINT2006/471.omnetpp/471.omnetpp 7.00% SingleSource/Benchmarks/Misc-C++/oopack_v1p8 6.00% SingleSource/Benchmarks/Shootout-C++/except 6.00% External/SPEC/CINT2006/401.bzip2/401.bzip2 5.00% MultiSource/Benchmarks/MiBench/consumer-typeset/consumer-typeset 5.00% MultiSource/Applications/spiff/spiff 4.00% MultiSource/Benchmarks/Fhourstones-3.1/fhourstones3.1 4.00% SingleSource/Benchmarks/BenchmarkGame/fannkuch 4.00% External/SPEC/CINT2006/400.perlbench/400.perlbench 3.00% External/skidmarks10/skidmarks.Subtest.Quicksort 3.00% MultiSource/Applications/hexxagon/hexxagon 3.00% MultiSource/Benchmarks/McCat/12-IOtest/iotest 3.00% MultiSource/Benchmarks/Ptrdist/yacr2/yacr2 3.00% MultiSource/Benchmarks/sim/sim 3.00% External/SPEC/CINT2006/462.libquantum/462.libquantum 2.00% External/skidmarks10/skidmarks.Subtest.FFT 2.00% MultiSource/Applications/JM/lencod/lencod 2.00% ** x86 slowdowns SingleSource/Benchmarks/CoyoteBench/huffbench -14.00% MultiSource/Benchmarks/ASCI_Purple/SMG2000/smg2000 -6.00% SingleSource/Benchmarks/Misc/oourafft -6.00% External/skidmarks10/skidmarks.Subtest.Rijndael -5.00% MultiSource/Applications/aha/aha -3.00% SingleSource/Benchmarks/BenchmarkGame/n-body -3.00% External/SPEC/CINT2000/253.perlbmk/253.perlbmk -2.00% External/skidmarks10/skidmarks.Subtest.BigMult -2.00% MultiSource/Applications/minisat/minisat -2.00% MultiSource/Benchmarks/ASC_Sequoia/CrystalMk/CrystalMk -2.00% ** ARM speedups SingleSource/Benchmarks/Shootout-C++/nestedloop 20.00% SingleSource/Benchmarks/Dhrystone/dry 11.00% MultiSource/Benchmarks/Olden/health/health 10.00% External/SPEC/CINT95/124.m88ksim/124.m88ksim 9.00% MultiSource/Benchmarks/ASC_Sequoia/IRSmk/IRSmk 9.00% MultiSource/Benchmarks/MiBench/automotive-susan/automotive-susan 9.00% MultiSource/Applications/JM/lencod/lencod 5.00% MultiSource/Benchmarks/Prolangs-C++/ocean/ocean 5.00% External/skidmarks10/skidmarks.Subtest.FFT 4.00% MultiSource/Benchmarks/MallocBench/gs/gs 4.00% SingleSource/Benchmarks/CoyoteBench/huffbench 4.00% External/Povray/povray 3.00% External/skidmarks10/skidmarks.Subtest.MPEG 3.00% MultiSource/Benchmarks/MiBench/security-rijndael/security-rijndael 3.00% MultiSource/Benchmarks/Prolangs-C++/life/life 3.00% MultiSource/Benchmarks/Ptrdist/ks/ks 3.00% SingleSource/Benchmarks/McGill/misr 3.00% External/SPEC/CFP2000/188.ammp/188.ammp 2.00% External/SPEC/CFP2006/444.namd/444.namd 2.00% External/SPEC/CINT2000/186.crafty/186.crafty 2.00% External/SPEC/CINT2006/401.bzip2/401.bzip2 2.00% External/SPEC/CINT2006/456.hmmer/456.hmmer 2.00% External/skidmarks10/skidmarks.Subtest.Ellipticrypt 2.00% MultiSource/Applications/spiff/spiff 2.00% MultiSource/Benchmarks/MiBench/telecomm-gsm/telecomm-gsm 2.00% MultiSource/Benchmarks/Olden/treeadd/treeadd 2.00% MultiSource/Benchmarks/Ptrdist/yacr2/yacr2 2.00% ** ARM slowdowns MultiSource/Benchmarks/Trimaran/enc-rc4/enc-rc4 -14.00% MultiSource/Benchmarks/McCat/08-main/main -10.00% MultiSource/Benchmarks/Prolangs-C/gnugo/gnugo -9.00% SingleSource/Benchmarks/Stanford/Puzzle -7.00% MultiSource/Applications/aha/aha -6.00% SingleSource/Benchmarks/Misc/ffbench -6.00% SingleSource/Benchmarks/Dhrystone/fldry -5.00% External/skidmarks10/skidmarks.Subtest.Quicksort -4.00% SingleSource/Benchmarks/Adobe-C++/functionobjects -3.00% SingleSource/Benchmarks/Shootout/sieve -3.00% External/SPEC/CINT2006/471.omnetpp/471.omnetpp -2.00% External/SPEC/CINT95/132.ijpeg/132.ijpeg -2.00% MultiSource/Benchmarks/sim/sim -2.00% SingleSource/Benchmarks/BenchmarkGame/n-body -2.00% SingleSource/Benchmarks/BenchmarkGame/puzzle -2.00% SingleSource/Benchmarks/Misc/ReedSolomon -2.00% SingleSource/Benchmarks/Shootout/heapsort -2.00% -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 28 22:21:51 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 28 Sep 2011 22:21:51 -0500 (CDT) Subject: [LLVMbugs] [Bug 11020] Report constant expressions used in if stmts and loop conditions In-Reply-To: References: Message-ID: <20110929032151.925512A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11020 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Wed Sep 28 23:16:52 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 28 Sep 2011 23:16:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 11020] Report constant expressions used in if stmts and loop conditions In-Reply-To: References: Message-ID: <20110929041652.EE9DB2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11020 Ted Kremenek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #6 from Ted Kremenek 2011-09-28 23:16:50 CDT --- (In reply to comment #5) > I should have been explicit. I was specifically trying to catch bugs that were > once caught by Coverity. Ex: > > if (getuid() == 0 || geteuid != 0) > > This was an actual bug in the X-Windows system and the find was made public. > Here are related articles: > > The bug fix- > http://xorg.freedesktop.org/releases/X11R7.0/patches/xorg-server-1.0.1-geteuid.diff > > http://coverity.com/html/press_story23_05_02_06.html Okay, this makes sense. I think to make this actionable we need an proposal of what the checker would actually need to do, and what it would catch. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 29 00:20:46 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 29 Sep 2011 00:20:46 -0500 (CDT) Subject: [LLVMbugs] [Bug 11036] New: Problem with sizeof accessing a class member inside a struct Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11036 Summary: Problem with sizeof accessing a class member inside a struct Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: Frontend AssignedTo: unassignedclangbugs at nondot.org ReportedBy: llvm at behdad.org CC: llvmbugs at cs.uiuc.edu With the following code: class C { int i; void f (void) { typedef int a[sizeof (i)]; typedef struct { int a[sizeof (i)]; } s; } }; I get the following error from clang: a.cc:7:18: error: invalid use of nonstatic data member 'i' int a[sizeof (i)]; ^ 1 error generated. Ie. clang doesn't like sizeof(i) in a struct, but it's ok in a non-struct. Looks like a bug to 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 Sep 29 04:51:10 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 29 Sep 2011 04:51:10 -0500 (CDT) Subject: [LLVMbugs] [Bug 11037] New: PATCH: Ubuntu 11.04 64Bit Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11037 Summary: PATCH: Ubuntu 11.04 64Bit Product: clang Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P Component: Driver AssignedTo: unassignedclangbugs at nondot.org ReportedBy: syntheticpp at gmx.net CC: llvmbugs at cs.uiuc.edu With attached patch clang also finds crtbegin.o on Ubuntu 11.04 build with x86_64-linux-gnu. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 29 11:03:22 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 29 Sep 2011 11:03:22 -0500 (CDT) Subject: [LLVMbugs] [Bug 11038] New: returns_twice not implemented Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11038 Summary: returns_twice not implemented 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 We currently only know that a hard coded list of functions return twice (form callsFunctionThatReturnsTwice). We should add support for the returns_twice attribute. What is needed: * add returns_twice to the LLVM IL * have clang produce it when a function has __attribute__((returns_twice)) * change callsFunctionThatReturnsTwice to look at all the calls the function does and check for the attribute. * maybe drop the hard coded names and have clang produce the attribute when 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 Sep 29 11:39:35 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 29 Sep 2011 11:39:35 -0500 (CDT) Subject: [LLVMbugs] [Bug 11039] New: MinGW triplets are not parsed correctly Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11039 Summary: MinGW triplets are not parsed correctly Product: tools Version: trunk Platform: PC OS/Version: Windows NT Status: NEW Keywords: missing-feature, portability Severity: normal Priority: P Component: llc AssignedTo: unassignedbugs at nondot.org ReportedBy: vanboxem.ruben at gmail.com CC: llvmbugs at cs.uiuc.edu Blocks: 10978 The only MinGW triplet I know that is parsed correctly, is: i386-mingw32 All the MinGW triplets are: i686-pc-mingw32 i686-w64-mingw32 x86_64-w64-mingw32 The proper parsing of these enables attribute features 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 Sep 29 14:27:14 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 29 Sep 2011 14:27:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 11039] MinGW triplets are not parsed correctly In-Reply-To: References: Message-ID: <20110929192715.013902A6C12F@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11039 vanboxem.ruben at gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from vanboxem.ruben at gmail.com 2011-09-29 14:27:14 CDT --- *** This bug has been marked as a duplicate of bug 10978 *** -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 29 15:48:57 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 29 Sep 2011 15:48:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 11040] New: Crash in ICE evaluation with cast to rvalue reference Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11040 Summary: Crash in ICE evaluation with cast to rvalue reference Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: sharparrow1 at yahoo.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Testcase: const int x = 10; int* y = reinterpret_cast(x); Looks like the cast checking in CheckICE needs to be tightened up a bit. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 29 16:49:54 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 29 Sep 2011 16:49:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 11040] Crash in ICE evaluation with cast to reference type In-Reply-To: References: Message-ID: <20110929214955.1281D2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11040 Eli Friedman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Eli Friedman 2011-09-29 16:49:53 CDT --- r140812. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 29 17:39:28 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 29 Sep 2011 17:39:28 -0500 (CDT) Subject: [LLVMbugs] [Bug 11041] New: llvm-link crashes when linking to bytecode files Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11041 Summary: llvm-link crashes when linking to bytecode files Product: tools Version: 2.9 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: llvm-link AssignedTo: unassignedbugs at nondot.org ReportedBy: dominic.letz at berlin.de CC: llvmbugs at cs.uiuc.edu Created an attachment (id=7375) --> (http://llvm.org/bugs/attachment.cgi?id=7375) .bc files for reproduction When compiling scummvm1.3.1 using llvm and emiting bytecode only llvm crashes on linking engines/gob/sound/adlib.o and engines/gob/sound/pcspeaker.o (actually being .bc files but having .o ending because of the used Makefile) Command line: llvm-link -S -o engines/gob/libgob.a engines/gob/sound/pcspeaker.o engines/gob/sound/adlib.o Issue seems to be that in LinkModules.cpp:682 "DAliasee" is actuall 0: // Fixup aliases to bitcasts. Note that aliases to GEPs are still broken // by this, but aliases to GEPs are broken to a lot of other things, so // it's less important. Constant *DAliaseeConst = DAliasee; if (SGA->getType() != DAliasee->getType()) <== CRASH DAliaseeConst = ConstantExpr::getBitCast(DAliasee, SGA->getType()); Stacktrace: #0 0x0000000000428a1e in llvm::PATypeHolder::get (this=0x10) at /home/dominic/emscripten/llvm/include/llvm/Type.h:507 #1 0x0000000000427692 in llvm::PATypeHolder::operator llvm::Type* (this=0x10) at /home/dominic/emscripten/llvm/include/llvm/AbstractTypeUser.h:159 #2 0x00000000004279c2 in llvm::Value::getType (this=0x0) at /home/dominic/emscripten/llvm/include/llvm/Value.h:110 #3 0x0000000000427bca in llvm::GlobalValue::getType (this=0x0) at /home/dominic/emscripten/llvm/include/llvm/GlobalValue.h:110 #4 0x000000000046361c in LinkAlias (Dest=0x8b13e0, Src=0x8b1750, ValueMap=..., Err=0x7fffffffe070) at LinkModules.cpp:682 #5 0x00000000004663f6 in llvm::Linker::LinkModules (Dest=0x8b13e0, Src=0x8b1750, ErrorMsg=0x7fffffffe070) at LinkModules.cpp:1270 #6 0x0000000000406d54 in main (argc=6, argv=0x7fffffffe188) at llvm-link.cpp:106 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 29 17:55:50 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 29 Sep 2011 17:55:50 -0500 (CDT) Subject: [LLVMbugs] [Bug 11041] llvm-link crashes when linking to bytecode files In-Reply-To: References: Message-ID: <20110929225550.7991C2A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=11041 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Chris Lattner 2011-09-29 17:55:49 CDT --- Fixed on mainline. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Sep 29 19:44:31 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 29 Sep 2011 19:44:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 11042] New: Preserve all metadata when removing dead arguments Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11042 Summary: Preserve all metadata when removing dead arguments Product: libraries Version: trunk Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P Component: Transformation Utilities AssignedTo: unassignedbugs at nondot.org ReportedBy: wujingyue at gmail.com CC: llvmbugs at cs.uiuc.edu At around Line 257 and Line 835, DAE preserves debug locations after removing the dead arguments, by copying the debug location from the old call to the new call. Should we do the same thing for other metadata (e.g. customized metadata) as well? Would it break anything? Btw, this issue appears in LLVM 2.9 and some earlier versions as well. Proposed patch: Index: lib/Transforms/IPO/DeadArgumentElimination.cpp =================================================================== --- lib/Transforms/IPO/DeadArgumentElimination.cpp (revision 140827) +++ lib/Transforms/IPO/DeadArgumentElimination.cpp (working copy) @@ -254,7 +254,14 @@ if (cast(Call)->isTailCall()) cast(New)->setTailCall(); } - New->setDebugLoc(Call->getDebugLoc()); + // by Jingyue + // Copy all metadata + if (Call->hasMetadata()) { + SmallVector, 4> TheMDs; + Call->getAllMetadata(TheMDs); + for (unsigned i = 0, e = TheMDs.size(); i != e; ++i) + New->setMetadata(TheMDs[i].first, TheMDs[i].second); + } Args.clear(); @@ -832,7 +839,14 @@ if (cast(Call)->isTailCall()) cast(New)->setTailCall(); } - New->setDebugLoc(Call->getDebugLoc()); + // by Jingyue + // Copy all metadata + if (Call->hasMetadata()) { + SmallVector, 4> TheMDs; + Call->getAllMetadata(TheMDs); + for (unsigned i = 0, e = TheMDs.size(); i != e; ++i) + New->setMetadata(TheMDs[i].first, TheMDs[i].second); + } Args.clear(); -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 30 01:59:57 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 30 Sep 2011 01:59:57 -0500 (CDT) Subject: [LLVMbugs] [Bug 11043] New: clang crashes while building wxwidgets 2.9.2 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11043 Summary: clang crashes while building wxwidgets 2.9.2 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: adam at NetBSD.org CC: llvmbugs at cs.uiuc.edu While building wxwidgets 2.9.2, clang crashes giving the following output: clang: error: unable to execute command: Segmentation fault: 11 (core dumped) clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: note: diagnostic msg: Preprocessed source(s) are located at: clang: note: diagnostic msg: /var/folders/4v/d7vjg23d50n_q4q8lm2l37tc0000gn/T/dcbase-BwbKsH.ii Attached is the preprocessed source (bzip2'ed). LLVM/Clang SVN revision: 140846 -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 30 06:18:47 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 30 Sep 2011 06:18:47 -0500 (CDT) Subject: [LLVMbugs] [Bug 11044] New: clang ignores 'aligned' attribute with 'vector_size' attribute Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11044 Summary: clang ignores 'aligned' attribute with 'vector_size' attribute Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: steven at uplinklabs.net CC: llvmbugs at cs.uiuc.edu Below is a simple test case to show what I mean. Note the 'movaps', which is an aligned move, when the 'aligned(1)' clearly says to do unaligned moves (which GCC respects). The effect of 'movaps' in this case is a fatal fault. Extra newlines added before each prompt for clarity. snoonan at loki ~ $ cat test.c #include typedef uint32_t v4 __attribute__ ((vector_size(16), aligned(1))); void mov_v4(v4 *x, v4 *y) { *x = *y; } snoonan at loki ~ $ clang -v clang version 3.0 (ssh://orcus.local/scm/git/tycho/mirrors/llvm/clang.git http://llvm.org/git/clang.git a891a32d3762ee641a29c091d286f2a7432671a5) Target: x86_64-unknown-linux-gnu Thread model: posix snoonan at loki ~ $ gcc -v Using built-in specs. COLLECT_GCC=/usr/bin/gcc COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/x86_64-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) snoonan at loki ~ $ gcc -o test-gcc.s -S test.c snoonan at loki ~ $ clang -o test-clang.s -S test.c snoonan at loki ~ $ head -n 50 test-*.s ==> test-clang.s <== .file "test.c" .text .globl mov_v4 .align 16, 0x90 .type mov_v4, at function mov_v4: # @mov_v4 .Ltmp0: .cfi_startproc # BB#0: # %entry movq %rdi, -8(%rsp) movq %rsi, -16(%rsp) movq -8(%rsp), %rdi movaps (%rsi), %xmm0 movaps %xmm0, (%rdi) ret .Ltmp1: .size mov_v4, .Ltmp1-mov_v4 .Ltmp2: .cfi_endproc .Leh_func_end0: .section ".note.GNU-stack","", at progbits ==> test-gcc.s <== .file "test.c" .text .globl mov_v4 .type mov_v4, @function mov_v4: .LFB0: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 movq %rsp, %rbp .cfi_offset 6, -16 .cfi_def_cfa_register 6 movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rax movdqu (%rax), %xmm0 movq -8(%rbp), %rax movdqu %xmm0, (%rax) leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size mov_v4, .-mov_v4 .ident "GCC: (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2" .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 Fri Sep 30 08:32:52 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 30 Sep 2011 08:32:52 -0500 (CDT) Subject: [LLVMbugs] [Bug 10369] __builtin___NSStringMakeConstantString() always uses Mac runtime In-Reply-To: References: Message-ID: <20110930133252.C22A52A6C12C@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=10369 David Chisnall changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from David Chisnall 2011-09-30 08:32:50 CDT --- Fixed in r140853. -- Configure bugmail: http://llvm.org/bugs/userprefs.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 Sep 30 18:08:24 2011 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 30 Sep 2011 18:08:24 -0500 (CDT) Subject: [LLVMbugs] [Bug 11045] New: clang does not support "o" inline asm constraint Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11045 Summary: clang does not support "o" inline asm constraint Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: nlewycky at google.com CC: llvmbugs at cs.uiuc.edu, rikka at google.com The definition of the "o" constraint is "A memory operand is allowed, but only if the address is offsettable. This means that adding a small integer (actually, the width in bytes of the operand, as determined by its machine mode) may be added to the address and the result is also a valid memory address." Testcase: void test() { char tmp[256]; __asm__ volatile( "movl 1+%0, %%eax" : :"o"(tmp[128])); } Here, tmp[128] maps to "(%rsp)" producing "movl 1+(%rsp), %eax", so that fails. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.