2011-10-06 10:17:59 CDT ---
Fixed in r141274.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Oct 6 12:34:38 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 Oct 2011 12:34:38 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11079] New: missing warning for unqualified
dependent base lookup
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11079
Summary: missing warning for unqualified dependent base lookup
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: alexr at leftfield.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=7412)
--> (http://llvm.org/bugs/attachment.cgi?id=7412)
example of missed errors
The attached example doesn't trigger this error for all the cases shown.
Notably, lines 63 and 76 do not complain at all. With -DNO_THIS, line 36
produces the correct error and fixit, but line 37 doesn't offer the fixit.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Oct 6 13:23:25 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 Oct 2011 13:23:25 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11080] New: Jump to incorrect address (off by 4
bytes) is being generated [x86, OSX]
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11080
Summary: Jump to incorrect address (off by 4 bytes) is being
generated [x86, OSX]
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: matt at pharr.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=7413)
--> (http://llvm.org/bugs/attachment.cgi?id=7413)
bitcode
If the attached test case is compiled and run, it generates a seg fault. From
the debugging I've done, it seems to be due to a call instruction being emitted
with an incorrect offset. (Further details in the following.)
I've only been able to reproduce this on OSX (and not Linux, for example), but
don't know if this means that it's an OSX-specific issue, or if it's just
happenstance that it doesn't happen on Linux.
% llc x.ll -filetype=obj -o x.o && clang -g x.cpp x.o && ./a.out
[1] 70823 segmentation fault ./a.out
However, if 'private' qualifier from the @__do_print() function at the top of
x.ll is removed, it produces the correct output (basically, printing the two
values passed to it via the %args array parameter.)
% llc x.ll -filetype=obj -o x.o && clang -g x.cpp x.o && ./a.out
yep 2.000000 2.000000
In the case where it's crashing, if I disassemble the _p function in gdb (which
calls __do_print), I get the following:
Dump of assembler code for function p:
0x0000000100000e50 : sub $0x28,%rsp
0x0000000100000e54
: movss %xmm1,0x4(%rsp)
0x0000000100000e5a
: movss %xmm0,0xc(%rsp)
0x0000000100000e60
: lea 0xc(%rsp),%rax
0x0000000100000e65
: mov %rax,0x10(%rsp)
0x0000000100000e6a
: movss %xmm1,0x8(%rsp)
0x0000000100000e70
: lea 0x8(%rsp),%rax
0x0000000100000e75
: mov %rax,0x18(%rsp)
0x0000000100000e7a
: lea 0x7a(%rip),%rdi # 0x100000efb
<__str2>
0x0000000100000e81
: lea 0x7c(%rip),%rsi # 0x100000f04
<__str3>
0x0000000100000e88
: lea 0x10(%rsp),%r8
0x0000000100000e8d
: mov $0x4,%edx
0x0000000100000e92
: mov $0xf,%ecx
0x0000000100000e97
: callq 0x100000d8c
0x0000000100000e9c : movss 0x4(%rsp),%xmm0
0x0000000100000ea2
: add $0x28,%rsp
0x0000000100000ea6
: retq
End of assembler dump.
(This in general looks like the code I'd expect for this function.) If I
single-step through these instructions, the problem comes immediately after the
callq. Disassembling at where it ends up, it turns out that it's jumping to
the pop instruction at the end of the main function, instead of the start of
the __do_print function, which happens to start at 0x0000000100000d90. It
seems to have jumped 4 bytes too early.
... assembly for main() ... ending with ...
0x0000000100000d8c : pop %rbp
0x0000000100000d8d : retq
0x0000000100000d8e : xchg %ax,%ax
0x0000000100000d90 : push %rbp
0x0000000100000d91 : push %r15
... assembly for the rest of __do_print ...
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Oct 6 15:05:35 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 Oct 2011 15:05:35 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10981] __builtin_object_size codegens infinite loop
at -01 and greater
In-Reply-To:
References:
Message-ID: <20111006200535.5E3472A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10981
Benjamin Kramer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |benny.kra at gmail.com
Resolution| |DUPLICATE
--- Comment #7 from Benjamin Kramer 2011-10-06 15:05:35 CDT ---
*** This bug has been marked as a duplicate of bug 9614 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Oct 6 15:13:08 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 Oct 2011 15:13:08 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11079] missing warning for unqualified dependent
base lookup
In-Reply-To:
References:
Message-ID: <20111006201308.A9BC22A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=11079
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |INVALID
--- Comment #1 from Eli Friedman 2011-10-06 15:13:08 CDT ---
This is working exactly how the C++ rules say it should... try looking up the
rules for argument-dependent lookup.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Oct 6 16:24:24 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 Oct 2011 16:24:24 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11081] New: alias is miscompiled with -fPIC
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11081
Summary: alias is miscompiled with -fPIC
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: kcc at google.com
CC: llvmbugs at cs.uiuc.edu
I think that aliases are miscompiled when -fPIC is used.
Here is the minimized example (llvm r140360):
----------------
; ModuleID = 'a.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"
@GLOBAL = global { i32, [60 x i8] } zeroinitializer, align 32
@ALIAS = alias internal getelementptr inbounds ({ i32, [60 x i8] }* @GLOBAL,
i32 0, i32 0)
define i32* @foo() nounwind uwtable readnone {
entry:
ret i32* @ALIAS
}
----------------
$ llc -relocation-model=pic a.ll && grep ALIAS a.s
leaq ALIAS(%rip), %rax
The generated code should look more like
movq ALIAS at GOTPCREL(%rip), %rax
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Oct 6 19:22:41 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 Oct 2011 19:22:41 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11082] New: Support may_alias in processTypeAttrs()
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11082
Summary: Support may_alias in processTypeAttrs()
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
clang now complains about unsupported attributes on types. As a consequence, it
complains about may_alias in cast expressions such as here:
void g(int p __attribute__((may_alias))) {}
void f() {
int a = 0;
g((int __attribute__((may_alias)))a);
}
hummer:clang thakis$ ../../Release+Asserts/bin/clang -Wall test.c -c
test.c:5:25: error: 'may_alias' attribute ignored when parsing type
g((int __attribute__((may_alias)))a);
^~~~~~~~~
1 error generated.
This is used in glib, see e.g. here:
http://codesearch.google.com/#cZwlSNS7aEw/external/bluetooth/glib/glib/gatomic.h&q=%5C(g_atomic_pointer_set%5C)%5C%20%5C(%5C(volatile%5C%20gpointer%5C%20G_GNUC_MAY_ALIAS%5C%20%5C*%5C)%5C%20%5C(void%5C%20%5C*%5C)%5C%20%5C(atomic%5C),%5C%20%5C(newval%5C)%5C)%5C)&type=cs&l=76
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Oct 6 19:43:20 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 Oct 2011 19:43:20 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11069] infinite loop in
clang::runUninitializedVariablesAnalysis (?)
In-Reply-To:
References:
Message-ID: <20111007004321.ACB432A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=11069
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Ted Kremenek 2011-10-06 19:43:20 CDT ---
Fixed: r141345
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Oct 6 21:39:40 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 Oct 2011 21:39:40 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10912] Assertion `FieldNo < FieldCount && "Invalid
Field No"'
In-Reply-To:
References:
Message-ID: <20111007023940.A20DD2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10912
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from John McCall 2011-10-06 21:39:40 CDT ---
Fixed in r141350.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 7 01:53:53 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 7 Oct 2011 01:53:53 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11083] New: clang doesn't support
-fno-inline-functions
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11083
Summary: clang doesn't support -fno-inline-functions
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jongsok.choi at gmail.com
CC: llvmbugs at cs.uiuc.edu
llvm-gcc supported -fno-inline-functions which forced it not to inline any
functions. It doesn't seem to be working well with clang since it is inlining
functions with even this option. Clang doesn't give a warning that
-fno-inline-functions is not supported.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 7 04:45:30 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 7 Oct 2011 04:45:30 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11084] New: compiler assertion on strange templated
code, probably noexcept related
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11084
Summary: compiler assertion on strange templated code, probably
noexcept related
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: davidhunter22 at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
I was trying out the trunk of llvm/clang at revision 141361. This was build on
a Linux box "2.6.31-23-server #75-Ubuntu SMP Fri Mar 18 19:23:09 UTC 2011
x86_64 GNU/Linux" using gcc 4.6.0 which all went fine and seems to work.
However when I try to use the compiler using GCC 4.6.0 ( or 4.7.0 trunk )
standard C++ library header files I was getting a compiler assert
clang: /home/david/tools/llvm/3.0/llvm/tools/clang/lib/AST/Type.cpp:1616:
clang::FunctionProtoType::NoexceptResult
clang::FunctionProtoType::getNoexceptSpec(clang::ASTContext&) const: Assertion
`isICE && "AST should not contain bad noexcept expressions."' failed.
I was able to reduce the test case that causes this to the following still
quite complex code
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
template struct Foo1
{
static constexpr bool foo( );
};
template struct Foo2
{
typedef Foo2 Foo2_T;
};
template struct Bar
{
typedef typename Foo2::Foo2_T Foo2_T;
};
template class Bar2
{
typedef Foo2 Foo2_T;
typedef Foo1::Foo2_T> Y;
Bar2& operator=(Bar2&&) noexcept(Y::foo());
};
template T mod(T);
class Bar3
{
template void generate( )
{
typename T::value_type r1;
r1 = mod(1);
}
Bar2 v;
};
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
The full compiler output was
clang: /home/david/tools/llvm/3.0/llvm/tools/clang/lib/AST/Type.cpp:1616:
clang::FunctionProtoType::NoexceptResult
clang::FunctionProtoType::getNoexceptSpec(clang::ASTContext&) const: Assertion
`isICE && "AST should not contain bad noexcept expressions."' failed.
0 clang 0x0000000001bd655f
1 clang 0x0000000001bd6a61
2 libpthread.so.0 0x00007fe7c2a52190
3 libc.so.6 0x00007fe7c1d364b5 gsignal + 53
4 libc.so.6 0x00007fe7c1d39f50 abort + 384
5 libc.so.6 0x00007fe7c1d2f481 __assert_fail + 241
6 clang 0x0000000000fedfb2
7 clang 0x0000000000ab385b
clang::Sema::ImplicitExceptionSpecification::CalledDecl(clang::CXXMethodDecl*)
+ 187
8 clang 0x0000000000ac5559
clang::Sema::ComputeDefaultedMoveAssignmentExceptionSpec(clang::CXXRecordDecl*)
+ 601
9 clang 0x0000000000ac55b3
clang::Sema::DeclareImplicitMoveAssignment(clang::CXXRecordDecl*) + 35
10 clang 0x0000000000b6cff0
11 clang 0x0000000000b729f7
clang::Sema::CppLookupName(clang::LookupResult&, clang::Scope*) + 135
12 clang 0x0000000000b73768
clang::Sema::LookupName(clang::LookupResult&, clang::Scope*, bool) + 936
13 clang 0x0000000000b739a5
clang::Sema::LookupOverloadedOperatorName(clang::OverloadedOperatorKind,
clang::Scope*, clang::QualType, clang::QualType, clang::UnresolvedSetImpl&) +
245
14 clang 0x0000000000b1a243 clang::Sema::BuildBinOp(clang::Scope*,
clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*) +
531
15 clang 0x0000000000b1a315 clang::Sema::ActOnBinOp(clang::Scope*,
clang::SourceLocation, clang::tok::TokenKind, clang::Expr*, clang::Expr*) + 197
16 clang 0x00000000009e02f8
clang::Parser::ParseRHSOfBinaryExpression(clang::ActionResult, clang::prec::Level) + 520
17 clang 0x00000000009e0a7f
clang::Parser::ParseAssignmentExpression() + 47
18 clang 0x00000000009e17a9 clang::Parser::ParseExpression() + 9
19 clang 0x00000000009a47b2
clang::Parser::ParseExprStatement(clang::ParsedAttributes&) + 50
20 clang 0x00000000009a1378
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector&, bool) + 2168
21 clang 0x000000000099e2b9
clang::Parser::ParseCompoundStatementBody(bool) + 489
22 clang 0x000000000099f035
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 149
23 clang 0x00000000009baefe
clang::Parser::ParseLexedMethodDef(clang::Parser::LexedMethod&) + 398
24 clang 0x00000000009bacf1
clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&) + 145
25 clang 0x00000000009d8f34
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int,
clang::Decl*) + 157
26 clang 0x00000000009da201
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool) + 3953
27 clang 0x00000000009c8aa3
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext) + 1971
28 clang 0x00000000009b4679
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AccessSpecifier) + 89
29 clang 0x00000000009b4bc6
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&,
clang::AccessSpecifier) + 678
30 clang 0x00000000009b6c0f
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 2639
31 clang 0x00000000009b7037
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 167
32 clang 0x000000000098ed3d clang::ParseAST(clang::Sema&, bool) + 269
33 clang 0x000000000085ae04 clang::CodeGenAction::ExecuteAction() +
68
34 clang 0x0000000000745e85
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 373
35 clang 0x000000000072c88e
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1182
36 clang 0x00000000007218c8 cc1_main(char const**, char const**, char
const*, void*) + 840
37 clang 0x000000000072b024 main + 708
38 libc.so.6 0x00007fe7c1d21abd __libc_start_main + 253
39 clang 0x00000000007213f9
Stack dump:
0. Program arguments: /home/david/tools/llvm/3.0/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
bug.cpp -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.20 -momit-leaf-frame-pointer -resource-dir
/home/david/tools/llvm/3.0/bin/../lib/clang/3.0 -I
/home/david/tools/gcc/4.7.0/include/c++/4.7.0/x86_64-unknown-linux-gnu -I
/home/david/tools/gcc/4.7.0/include/c++/4.7.0 -fmodule-cache-path
/var/tmp/clang-module-cache -std=gnu++0x -fdeprecated-macro -ferror-limit 19
-fmessage-length 120 -fgnu-runtime -fobjc-runtime-has-arc
-fobjc-runtime-has-weak -fobjc-fragile-abi -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/bug-XE12MK.o -x c++
bug.cpp
1. bug.cpp:33:25: current parser token ';'
2. bug.cpp:27:1: parsing struct/union/class body 'Bar3'
3. bug.cpp:30:5: parsing function body 'generate'
4. bug.cpp:30:5: in compound statement ('{}')
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) are located at:
clang: note: diagnostic msg: /tmp/bug-6Xz0CW.ii
The command line options I passed to clang were
-I/home/david/tools/gcc/4.7.0/include/c++/4.7.0/x86_64-unknown-linux-gnu
-I/home/david/tools/gcc/4.7.0/include/c++/4.7.0 -std=gnu++0
So really just telling it where the GCC stuff is.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 7 05:56:13 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 7 Oct 2011 05:56:13 -0500 (CDT)
Subject: [LLVMbugs] [Bug 9920] Another case of unnecessary "shift count is
negative" warning
In-Reply-To:
References:
Message-ID: <20111007105613.C1D2D2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9920
Dimitry Andric changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |DUPLICATE
--- Comment #4 from Dimitry Andric 2011-10-07 05:56:12 CDT ---
Setting this as a duplicate of bug 10030. The problem only manifests itself
with global initializations, so that PR has a much better description.
*** This bug has been marked as a duplicate of bug 10030 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 7 06:23:44 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 7 Oct 2011 06:23:44 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11085] New: error in backend: expected relocatable
expression when compiling objective-c header file
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11085
Summary: error in backend: expected relocatable expression when
compiling objective-c header file
Product: clang
Version: trunk
Platform: PC
OS/Version: OpenBSD
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sebastia at l00-bugdead-prods.de
CC: llvmbugs at cs.uiuc.edu
compiling opengroupware with llvm/clang from svn (checkout from Thursday
2011-01-06) the compilation stops the following way:
$ clang LSWSchedulerPreferences.m -c -v -integrated-as -MMD -MP -Wall -DGNUSTEP
-DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1
-DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing -fexceptions -fobjc-exceptions
-D_NATIVE_OBJC_EXCEPTIONS -fPIC -DDEBUG -fno-om>
clang version 3.0 (trunk 141278)
Target: i386-unknown-openbsd5.0
Thread model: posix
"/usr/local/bin/clang" -cc1 -triple i386-unknown-openbsd5.0 -emit-obj
-mrelax-all -disable-free -main-file-name LSWSchedulerPreferences.m -pic-level
2 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -mconstructor-aliases
-target-cpu i486 -target-linker-version 2.15 -momit-leaf-frame-pointer -v -g
-coverage-file obj/LSWScheduler.obj/LSWSchedulerPreferences.m.o -resource-dir
/usr/local/bin/../lib/clang/3.0 -dependency-file
obj/LSWScheduler.obj/LSWSchedulerPreferences.m.d -MT
obj/LSWScheduler.obj/LSWSchedulerPreferences.m.o -MP -D GNUSTEP -D
GNUSTEP_BASE_LIBRARY=1 -D GNU_GUI_LIBRARY=1 -D GNU_RUNTIME=1 -D
GNUSTEP_BASE_LIBRARY=1 -D _NATIVE_OBJC_EXCEPTIONS -D DEBUG -D GSWARN -D
GSDIAGNOSE -I .. -I ../.. -I ../../../Logic -I ../../../DocumentAPI -I
../../../SOPE/sope-ical -I . -I /usr/local/include -I
/opengroupware-5.5_writes_to_HOME/GNUstep/Library/Headers -I /usr/local/include
-fmodule-cache-path /var/tmp/clang-module-cache -O0 -Wall -Wall -Wno-import
-fconstant-string-class NSConstantString -ferror-limit 19 -fmessage-length 267
-fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fobjc-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
obj/LSWScheduler.obj/LSWSchedulerPreferences.m.o -x objective-c
LSWSchedulerPreferences.m
clang -cc1 version 3.0 based upon llvm 3.0svn hosted on i386-unknown-openbsd5.0
ignoring nonexistent directory
"/opengroupware-5.5_writes_to_HOME/GNUstep/Library/Headers"
ignoring duplicate directory "/usr/local/include"
ignoring duplicate directory "/usr/local/include"
as it is a non-system directory that duplicates a system directory
#include "..." search starts here:
#include <...> search starts here:
..
../..
../../../Logic
../../../DocumentAPI
../../../SOPE/sope-ical
.
/usr/local/include
/usr/local/bin/../lib/clang/3.0/include
/usr/include
End of search list.
LSWSchedulerPreferences.m:1146:3: warning: incompatible pointer types assigning
to 'NSMutableArray *' from 'NSArray *' [-Wincompatible-pointer-types]
ASSIGN(self->participants, _p);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/GNUstepBase/GNUstep.h:125:10: note: expanded from:
object = [(value) retain]; \
^ ~~~~~~~~~~~~~~~~
/usr/local/include/Foundation/NSObject.h:173:1: note: instance method 'retain'
is assumed to return an instance of its receiver type ('NSArray *')
- (id) retain NS_AUTOMATED_REFCOUNT_UNAVAILABLE;
^
LSWSchedulerPreferences.m:1162:3: warning: incompatible pointer types assigning
to 'NSMutableArray *' from 'NSArray *' [-Wincompatible-pointer-types]
ASSIGN(self->writeAccess, _p);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/GNUstepBase/GNUstep.h:125:10: note: expanded from:
object = [(value) retain]; \
^ ~~~~~~~~~~~~~~~~
/usr/local/include/Foundation/NSObject.h:173:1: note: instance method 'retain'
is assumed to return an instance of its receiver type ('NSArray *')
- (id) retain NS_AUTOMATED_REFCOUNT_UNAVAILABLE;
^
In file included from LSWSchedulerPreferences.m:125:
In file included from ./common.h:40:
In file included from ../../../Logic/LSFoundation/LSFoundation.h:31:
In file included from ../../../Logic/LSFoundation/LSSortCommand.h:25:
../../../Logic/LSFoundation/LSBaseCommand.h:165:13: warning: unused function
'LSCommandSet' [-Wunused-function]
static void LSCommandSet(LSBaseCommand *_cmd, NSString *_argument, id _value) {
^
../../../Logic/LSFoundation/LSBaseCommand.h:168:11: warning: unused function
'LSCommandGet' [-Wunused-function]
static id LSCommandGet(LSBaseCommand *_cmd, NSString *_argument) {
^
../../../Logic/LSFoundation/LSBaseCommand.h:172:11: warning: unused function
'LSCommandLookup' [-Wunused-function]
static id LSCommandLookup(id _factory, NSString *_domain, NSString *_command) {
^
fatal error: error in backend: expected relocatable expression
also without the -integrated-as, the same problem.
the file I want to compile is this:
http://opengroupware.hg.sourceforge.net/hgweb/opengroupware/opengroupware/file/a1b46fe89065/opengroupware/Logic/LSFoundation/LSBaseCommand.h
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 7 07:45:52 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 7 Oct 2011 07:45:52 -0500 (CDT)
Subject: [LLVMbugs] =?utf-8?q?=5BBug_10890=5D__unsupported_target_builtin_?=
=?utf-8?b?4oCYX19idWlsdGluX2lhMzJfdmVjX3Blcm1fdjJkZuKAmSB1c2VkIGluIHJu?=
=?utf-8?q?flow_with_vector-select?=
In-Reply-To:
References:
Message-ID: <20111007124552.41B9C2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10890
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #10 from Duncan Sands 2011-10-07 07:45:51 CDT ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20111003/129347.html
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 7 15:20:08 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 7 Oct 2011 15:20:08 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11086] New: APFloat::toString is wrong in specific
cases
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11086
Summary: APFloat::toString is wrong in specific cases
Product: libraries
Version: 2.9
Platform: PC
OS/Version: other
Status: NEW
Severity: normal
Priority: P
Component: Core LLVM classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jerome_123 at hotmail.com
CC: llvmbugs at cs.uiuc.edu
Repro:
llvm::SmallVectorImpl buffer(0);
llvm::APFloat apFloat( 29.999998 );
apFloat.toString( buffer, 6 );
Output:
0.485211
I fixed it by replacing, in APFloat.cpp,
unsigned precision = semantics->precision + 137 * texp / 59;
by
unsigned precision = semantics->precision + 137 * texp / 59 + 1;
I think that the current formula didn't take into account the fact that ints
are rounding down, which led to too small precisions in exceptional cases like
this.
(OS = Windows 7; you don't have that in your OS 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 Fri Oct 7 18:41:24 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 7 Oct 2011 18:41:24 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11086] APFloat::toString is wrong in specific cases
In-Reply-To:
References:
Message-ID: <20111007234124.6A3212A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=11086
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2011-10-07 18:41:24 CDT ---
r141441.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 7 19:10:25 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 7 Oct 2011 19:10:25 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11087] New: Save code space on ARM Thumb with
PC-relative LDR
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11087
Summary: Save code space on ARM Thumb with PC-relative LDR
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
It would be nice if LLVM was able to save space on ARM Thumb/Thumb2 by using
PC-relative LDR, at least when set to optimize for size. The Keil compiler does
this.
For example, instead of 8-byte MOVW/MOVT, what the Keil compiler will do is
intersperse the 8-byte relocation with the code, and use a PC-relative LDR.
This takes 6 bytes instead of 8. Trivial example from a boot loader (objdump
output):
00001000 <__main-0x8>:
1000: 4800 ldr r0, [pc, #0] (1004
)
1002: 4700 bx r0
1004: 0000100d .word 0x0000100d
The other nice effect of this is that it seems to search through your
already-existing constants before introducing new 4-byte addresses. So often
the 8-byte MOVW/MOVT becomes 2 bytes. Once, for example, I had a table of
function pointers, and it just pulled the address from there as it was only a
few hundred bytes away.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Oct 8 06:12:16 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 8 Oct 2011 06:12:16 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11088] New: Assertion failed:
(X86::GR8_NOREXRegClass.contains(SrcReg,
DestReg) && "8-bit H register can not be copied outside GR8_NOREX")
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11088
Summary: Assertion failed:
(X86::GR8_NOREXRegClass.contains(SrcReg, DestReg) &&
"8-bit H register can not be copied outside
GR8_NOREX")
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: pawel.worach at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=7420)
--> (http://llvm.org/bugs/attachment.cgi?id=7420)
bugpoint-reduced-simplified.bc
clang version 3.0 (trunk 141482)
Target: x86_64-unknown-freebsd9.0
Crash when compiling ARMAsmParser.cpp from llvm r135360. This was introduced
between r141373 and r141415.
% llc bugpoint-reduced-simplified.bc
Assertion failed: (X86::GR8_NOREXRegClass.contains(SrcReg, DestReg) && "8-bit H
register can not be copied outside GR8_NOREX"), function copyPhysReg, file
/data/buildslave/freebsd-clang-amd64/src-llvm/lib/Target/X86/X86InstrInfo.cpp,
line 2196.
Stack dump:
0. Program arguments:
/data/buildslave/freebsd-clang-amd64/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 'Post-RA pseudo instruction expansion pass' on function
'@_ZNK12_GLOBAL__N_112ARMAsmParser24ComputeAvailableFeaturesEm'
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 Sat Oct 8 07:13:18 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 8 Oct 2011 07:13:18 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11089] New: sspreq broken with JIT
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11089
Summary: sspreq broken with JIT
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=7421)
--> (http://llvm.org/bugs/attachment.cgi?id=7421)
x.bc
With ToT the stackprotect attribute is still broken when using the JIT.
(it works when using static compilation).
It was broken in 2.9 too, last time it worked was in 2.8.
When adding the sspreq required attribute to a function and running it with the
JIT it generates code like this:
0x00007ffff7f41010 <+0>: sub $0x18,%rsp
=> 0x00007ffff7f41014 <+4>: mov 0x28,%rax
0x00007ffff7f4101c <+12>: mov %rax,0x10(%rsp)
0x00007ffff7f41021 <+17>: movl $0x0,0xc(%rsp)
Obviously that mov crashes because it tries to read from address 0x28.
When compiling to a static .s file everything seems fine though, but the code
in question looks like this:
movq %fs:40, %rax
movq %rax, 16(%rsp)
So it looks like the %fs: segment register is lost when JITing.
To reproduce:
$ lli --debug-only=jit x.bc
JIT: Binary code:
JIT: 0: 2423613172 37413972 00040 366813772
JIT: 16: 366819916 00012 4139720 004037
JIT: 32: 6859720 133151636 00010 004184
JIT: 48: 196131720 1847219524 13346154144 00053
JIT: 64: 208255
0 lli 0x0000000000c7b03f
1 lli 0x0000000000c7b529
2 libpthread.so.0 0x0000003585e0f020
3 libpthread.so.0 0x00007f52cac86014
Stack dump:
0. Program arguments:
/home/edwin/HDD/edwin/llvm-git/build/Release+Asserts/bin/lli --debug-only=jit
x.bc
Segmentation fault (core dumped)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Oct 8 13:28:49 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 8 Oct 2011 13:28:49 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11088] Assertion failed:
(X86::GR8_NOREXRegClass.contains(SrcReg,
DestReg) && "8-bit H register can not be copied outside GR8_NOREX")
In-Reply-To:
References:
Message-ID: <20111008182849.236942A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=11088
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Jakob Stoklund Olesen 2011-10-08 13:28:48 CDT ---
r141499
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 06:56:00 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 06:56:00 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11090] New: Extremely slow compilation + high
memory usage in "Loop Strength Reduction"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11090
Summary: Extremely slow compilation + high memory usage in
"Loop Strength Reduction"
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: release blocker
Priority: P
Component: Loop Optimizer
AssignedTo: unassignedbugs at nondot.org
ReportedBy: joerg at NetBSD.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=7423)
--> (http://llvm.org/bugs/attachment.cgi?id=7423)
Test case
Compile the attached file, it will require > 1GB memory and crash at some point
if it doesn't get that.
1. parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'crypt_sha512-23056a.i'.
4. Running pass 'Loop Pass Manager' on function '@php_sha512_crypt_r'
5. Running pass 'Loop Strength Reduction' on basic block '%while.body877'
Source is from current PHP, so it is high-profile.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 07:52:49 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 07:52:49 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11091] New: incorrect warning for printf and
printing std::runtime_error::what()
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11091
Summary: incorrect warning for printf and printing
std::runtime_error::what()
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
This test program:
#include
#include
using namespace std;
int main()
{
runtime_error e( "bla" );
printf( e.what() );
}
Produces this warning:
main.cpp:8:13: warning: format string is not a string literal (potentially
insecure) [-Wformat-security]
printf( err.what() );
^~~~~~~~~~
1 warning generated.
This seems very misleading and warns on correct code like the above, ie when
the format string doesn't contain any format specifiers at all, and is just a
plain const 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 Oct 9 09:02:17 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 09:02:17 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11092] New: error in backend: Cannot select:
0x99e5db0: v8f32 = bit_convert 0x92b0b70
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11092
Summary: error in backend: Cannot select: 0x99e5db0: v8f32 =
bit_convert 0x92b0b70
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: tim at klingt.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=7424)
--> (http://llvm.org/bugs/attachment.cgi?id=7424)
preprocessed source
compiling attached code with -mavx -msse4.2 -O3 -DNDEBUG and clang++ from
svn/trunk, i get the following error:
fatal error: error in backend: Cannot select: 0xcdf71a0: v8f32 = bit_convert
0xc888c10 [ID=98]
0xc888c10: v4f32 = X86ISD::PSHUFD 0xb132060, 0xcfdc950 [ID=97]
0xb132060: v4f32,ch = load 0xc4ca880, 0xcfdca50,
0xc4cab80 [ID=96]
0xcfdca50: i64 = FrameIndex<4> [ID=27]
0xc4cab80: i64 = undef [ORD=28462] [ID=6]
0xcfdc950: i8 = Constant<0> [ID=35]
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 09:52:13 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 09:52:13 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11093] New: compiling PCL (www.pointclouds.org)
fails with strange error
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11093
Summary: compiling PCL (www.pointclouds.org) fails with strange
error
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nsallem at willowgarage.com
CC: llvmbugs at cs.uiuc.edu
Hi,
Compiling PCL with clang (trunk version) fails with error asking for bug report
so here it is.
1. parser at end of file
2. .../eigen3/Eigen/src/SVD/JacobiSVD.h:412:5: instantiating function
definition 'JacobiSVD'
3. .../include/eigen3/Eigen/src/SVD/JacobiSVD.h:431:16: instantiating
function definition 'compute'
4. .../include/eigen3/Eigen/src/SVD/JacobiSVD.h:262:6: instantiating
function definition 'real_2x2_ja
cobi_svd'
5. .../include/eigen3/Eigen/src/Core/MatrixBase.h:455:10: instantiating
function definition 'applyOnT
heLeft'
6. ../include/eigen3/Eigen/src/Jacobi/Jacobi.h:271:6: instantiating
function definition 'apply_rotat
ion_in_the_plane'
clang-3: error: unable to execute command: Aborted
To report the error simply download PCL sources and try a fresh build. ALthough
not worth mentioning but just in case, code compiles and runs with gcc-4.4.3
ubuntu falvour.
I would appreciate your help.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 13:32:11 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 13:32:11 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11084] compiler assertion on strange templated code,
probably noexcept related
In-Reply-To:
References:
Message-ID: <20111009183211.5491E2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=11084
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Douglas Gregor 2011-10-09 13:32:10 CDT ---
Fixed in Clang r141511.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 13:56:14 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 13:56:14 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10839] Weird accepts-invalid with operator as field
(?)
In-Reply-To:
References:
Message-ID: <20111009185614.60B3C2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10839
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-10-09 13:56:14 CDT ---
Fixed in Clang r141513.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 14:10:57 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 14:10:57 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11066] Applying address-of operator twice on
overloaded member function crashes clang
In-Reply-To:
References:
Message-ID: <20111009191057.4F4852A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=11066
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |crash-on-invalid
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-10-09 14:10:56 CDT ---
Fixed in Clang r141514.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 14:13:46 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 14:13:46 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10984] clang++ incorrectly handles addresses of
temporaries created during optimization
In-Reply-To:
References:
Message-ID: <20111009191346.14E502A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10984
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #8 from Douglas Gregor 2011-10-09 14:13:44 CDT ---
I'm closing this bug, since the issue was not in fact a miscompile.
If you can provide us with a self-contained test case that shows the code that
returning a reference to a temporary on the stack, which Clang does not warn
about, please re-open 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 Sun Oct 9 14:22:25 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 14:22:25 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10929] inconsistent warning for implicit truncation
to bitfield
In-Reply-To:
References:
Message-ID: <20111009192225.BDF3C2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10929
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Douglas Gregor 2011-10-09 14:22:25 CDT ---
The compiler can't warn about implicit truncation for FLAG2 because FLAG2 is
not a constant. The warning would end up being a false positive if, for
example, FLAG2 were assigned to a smaller value somewhere else in the program.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 14:41:33 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 14:41:33 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10944] Rejects-valid/potential miscompile in edge
case with templates and initializer-list
In-Reply-To:
References:
Message-ID: <20111009194133.1BF012A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10944
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Eli Friedman 2011-10-09 14:41:32 CDT ---
I have no clue what I was thinking... I'll go back and take a look. In the
meantime, yes, this is 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 Oct 9 15:27:59 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 15:27:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11094] New: FAIL: Clang :: Driver/linux-ld.c
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11094
Summary: FAIL: Clang :: Driver/linux-ld.c
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: pipping at exherbo.org
CC: llvmbugs at cs.uiuc.edu
The aforementioned test fails on Exherbo Linux in the following way:
FAIL: Clang :: Driver/linux-ld.c (1938 of 3910)
******************** TEST 'Clang :: Driver/linux-ld.c' FAILED
********************
Script:
--
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/Release+Asserts/bin/clang
-no-canonical-prefixes
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c
-### -o
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Output/linux-ld.c.tmp.o
2>&1 -ccc-host-triple i386-unknown-linux
--sysroot=/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Inputs/basic_linux_tree
| FileCheck --check-prefix=CHECK-LD-32
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/Release+Asserts/bin/clang
-no-canonical-prefixes
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c
-### -o
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Output/linux-ld.c.tmp.o
2>&1 -ccc-host-triple x86_64-unknown-linux
--sysroot=/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Inputs/basic_linux_tree
| FileCheck --check-prefix=CHECK-LD-64
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/Release+Asserts/bin/clang
-no-canonical-prefixes
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c
-### -o
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Output/linux-ld.c.tmp.o
2>&1 -ccc-host-triple i386-unknown-linux -m32
--sysroot=/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Inputs/multilib_32bit_linux_tree
| FileCheck --check-prefix=CHECK-32-TO-32
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/Release+Asserts/bin/clang
-no-canonical-prefixes
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c
-### -o
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Output/linux-ld.c.tmp.o
2>&1 -ccc-host-triple i386-unknown-linux -m64
--sysroot=/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Inputs/multilib_32bit_linux_tree
| FileCheck --check-prefix=CHECK-32-TO-64
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/Release+Asserts/bin/clang
-no-canonical-prefixes
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c
-### -o
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Output/linux-ld.c.tmp.o
2>&1 -ccc-host-triple x86_64-unknown-linux -m64
--sysroot=/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Inputs/multilib_64bit_linux_tree
| FileCheck --check-prefix=CHECK-64-TO-64
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/Release+Asserts/bin/clang
-no-canonical-prefixes
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c
-### -o
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Output/linux-ld.c.tmp.o
2>&1 -ccc-host-triple x86_64-unknown-linux -m32
--sysroot=/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Inputs/multilib_64bit_linux_tree
| FileCheck --check-prefix=CHECK-64-TO-32
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/Release+Asserts/bin/clang
-no-canonical-prefixes
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c
-### -o
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Output/linux-ld.c.tmp.o
2>&1 -ccc-host-triple i386-unknown-linux -m32 -ccc-install-dir
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Inputs/fake_install_tree/bin
--sysroot=/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Inputs/basic_linux_tree
| FileCheck --check-prefix=CHECK-INSTALL-DIR-32
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/Release+Asserts/bin/clang
-no-canonical-prefixes
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c
-### -o
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Output/linux-ld.c.tmp.o
2>&1 -ccc-host-triple x86_64-unknown-linux -m64 -ccc-install-dir
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Inputs/fake_install_tree/bin
--sysroot=/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Inputs/basic_linux_tree
| FileCheck --check-prefix=CHECK-INSTALL-DIR-64
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/Release+Asserts/bin/clang
-no-canonical-prefixes
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c
-### -o
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Output/linux-ld.c.tmp.o
2>&1 -ccc-host-triple i386-unknown-linux -m32 -ccc-install-dir
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Inputs/gcc_version_parsing1/bin
--sysroot=/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Inputs/basic_linux_tree
| FileCheck --check-prefix=CHECK-GCC-VERSION1
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/Release+Asserts/bin/clang
-no-canonical-prefixes
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c
-### -o
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Output/linux-ld.c.tmp.o
2>&1 -ccc-host-triple i386-unknown-linux -m32 -ccc-install-dir
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Inputs/gcc_version_parsing2/bin
--sysroot=/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Inputs/basic_linux_tree
| FileCheck --check-prefix=CHECK-GCC-VERSION2
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/Release+Asserts/bin/clang
-no-canonical-prefixes
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c
-### -o
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Output/linux-ld.c.tmp.o
2>&1 -ccc-host-triple i386-unknown-linux -m32 -ccc-install-dir
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Inputs/gcc_version_parsing3/bin
--sysroot=/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Inputs/basic_linux_tree
| FileCheck --check-prefix=CHECK-GCC-VERSION3
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c
--
Exit Code: 1
Command Output (stderr):
--
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/linux-ld.c:9:17:
error: expected string not found in input
// CHECK-LD-32: "{{.*}}/usr/lib/gcc/i386-unknown-linux/4.6.0/crtbegin.o"
^
:5:131: note: scanning from here
"/usr/bin/ld"
"--sysroot=/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Inputs/basic_linux_tree"
"--eh-frame-hdr" "-m" "elf_i386" "-dynamic-linker" "/lib/ld-linux.so.2" "-o"
"/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Output/linux-ld.c.tmp.o"
"crt1.o" "crti.o" "/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/crtbegin.o"
"-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3"
"-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../.."
"-L/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Inputs/basic_linux_tree/lib"
"-L/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Inputs/basic_linux_tree/usr/lib"
"/tmp/linux-ld-O3RNV7.o" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc"
"-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
"/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/crtend.o" "crtn.o"
^
:5:325: note: possible intended match here
"/usr/bin/ld"
"--sysroot=/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Inputs/basic_linux_tree"
"--eh-frame-hdr" "-m" "elf_i386" "-dynamic-linker" "/lib/ld-linux.so.2" "-o"
"/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Output/linux-ld.c.tmp.o"
"crt1.o" "crti.o" "/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/crtbegin.o"
"-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3"
"-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../.."
"-L/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Inputs/basic_linux_tree/lib"
"-L/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/test/Driver/Inputs/basic_linux_tree/usr/lib"
"/tmp/linux-ld-O3RNV7.o" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc"
"-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
"/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/crtend.o" "crtn.o"
The recent changes to lib/Driver/ToolChain* are probably to blame.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 15:46:15 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 15:46:15 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10785] crash on invalid use of variable of type
"const T&" where T = an unbound method
In-Reply-To:
References:
Message-ID: <20111009204615.A2D2C2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10785
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-10-09 15:46:15 CDT ---
This no longer crashes with mainline Clang:
t2.cpp:17:5: error: no matching function for call to object of type
'FunctionLike'
fl(cls.method);
^~
t2.cpp:10:31: note: candidate template ignored: couldn't infer template
argument
'T'
template void operator()(const 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 Oct 9 15:59:27 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 15:59:27 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10913] friend function with cast is'nt working for
templates
In-Reply-To:
References:
Message-ID: <20111009205927.32B5F2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10913
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Douglas Gregor 2011-10-09 15:59:26 CDT ---
Fixed in Clang r141515.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 16:22:07 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 16:22:07 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8101] __has_nothrow_constructor failures
In-Reply-To:
References:
Message-ID: <20111009212207.1EF212A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8101
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Douglas Gregor 2011-10-09 16:22:06 CDT ---
The only place where Clang currently differs from the requested semantics is
for int[]. Since this is a POD type, the GCC definition of
__has_nothrow_constructor(int[]) is documented to evaluate true, per
http://gcc.gnu.org/onlinedocs/gcc/Type-Traits.html
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 16:24:09 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 16:24:09 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8105] __has_trivial_copy does not work with void,
arrays with incomplete or complete bounds
In-Reply-To:
References:
Message-ID: <20111009212409.9C02B2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8105
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #4 from Douglas Gregor 2011-10-09 16:24:08 CDT ---
(In reply to comment #3)
> (In reply to comment #2)
> > Again, if there is some reason we do not want _has_trivial_copy(T) to model the
> > behavior intended for std::has_copy_constructor, then I can work around it
> > in the library (libc++). Just it would be simpler to drop straight through.
>
> I'd prefer to have __has_trivial_copy(T) model the behavior of
> std::has_copy_constructor. It's a better specification than "what GCC does",
> and more useful besides.
Older and wiser, I now think that it's better to follow GCC's specification to
improve compatibility, even though it's suboptimal for libc++. Clang is already
following GCC's specification, documented here:
http://gcc.gnu.org/onlinedocs/gcc/Type-Traits.html
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 16:26:31 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 16:26:31 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8107] __has_nothrow_copy not working for some types
In-Reply-To:
References:
Message-ID: <20111009212631.158872A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8107
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #3 from Douglas Gregor 2011-10-09 16:26:30 CDT ---
Clang is behaving correctly now, per GCC's specification of this type trait.
int[3] and int[] have no throw "copy" operations (because they are POD types).
And under C++0x, NotEmpty implicitly has a 'noexcept' specification.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 16:27:49 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 16:27:49 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8136] clang doesn't detect invalid redeclarations
after a using directive brings in something with the same name
In-Reply-To:
References:
Message-ID: <20111009212749.107482A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8136
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-10-09 16:27:48 CDT ---
We properly detect this error now:
t.cpp:5:7: error: redefinition of 'A' as different kind of symbol
class A {};
^
t.cpp:1:11: note: previous definition is here
namespace A {
^
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 16:30:19 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 16:30:19 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8146] Clang incorrectly emitting 'is a private
member of' error for templated friend class
In-Reply-To:
References:
Message-ID: <20111009213019.2F8B1312800A@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8146
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #5 from Douglas Gregor 2011-10-09 16:30:18 CDT ---
This is the same as http://llvm.org/PR10913, which was fixed in Clang r 141515.
*** This bug has been marked as a duplicate of bug 10913 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 16:40:15 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 16:40:15 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8173] clang++ (rev. 114175) fails inference of
struct type template param from pointer to overloaded member function
In-Reply-To:
References:
Message-ID: <20111009214015.089B52A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8173
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Douglas Gregor 2011-10-09 16:40:14 CDT ---
Clang is correct here, per C++0x [temp.deduct.call]p6, which states that
- If the argument is an overload set (not containing function templates),
trial argument deduction is attempted using each of the members of the set. If
deduction succeeds for only one of the overload set members, that member is
used as the argument value for the deduction. If deduction succeeds for more
than one member of the overload set the parameter is treated as a non-deduced
context.
For the call to the "connect" function, this matters for the parameter
ReturnType (MemberObj:: *fn) (Arg1)
which is matched against the argument
&B::slot
Note that deduction succeeds for both "slot" overloads, so this parameter is
considered a non-deduced context. Hence, there is nothing left to deduce
MemberObj.
Note that EDG agrees with Clang's interpretation here. I don't know what GCC is
doing to accept this code.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 16:46:19 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 16:46:19 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8509] clang should support compiling drizzle
In-Reply-To:
References:
Message-ID: <20111009214619.7BDBB2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8509
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Douglas Gregor 2011-10-09 16:46:18 CDT ---
It's been 10 months since I asked for something reproducible. Closing due to
insufficient information.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 17:05:22 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 17:05:22 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11095] New: Assertion in instruction selector
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11095
Summary: Assertion in instruction selector
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: asl at math.spbu.ru
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=7425)
--> (http://llvm.org/bugs/attachment.cgi?id=7425)
Testcase
Consider the attached testcase. Running llc yields:
$ ./llc 2.ll
Assertion failed: (InChain.getValueType() == MVT::Other && "Not a chain"),
function HandleMergeInputChains, file
/Users/asl/Projects/llvm/src/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp,
line 1749.
0 llc 0x000000010ca61d12 _ZL15PrintStackTracePv + 34
1 llc 0x000000010ca622f9 _ZL13SignalHandleri + 745
2 libsystem_c.dylib 0x00007fff91639cfa _sigtramp + 26
3 libsystem_c.dylib 000000000000000000 _sigtramp + 18446603338076939040
4 llc 0x000000010ca61f66 abort + 22
5 llc 0x000000010ca61f28 __assert_rtn + 56
6 llc 0x000000010c6061fb
_ZL22HandleMergeInputChainsRN4llvm15SmallVectorImplIPNS_6SDNodeEEEPNS_12SelectionDAGE
+ 1035
7 llc 0x000000010c604303
llvm::SelectionDAGISel::SelectCodeCommon(llvm::SDNode*, unsigned char const*,
unsigned int) + 11715
8 llc 0x000000010c42c6d9 (anonymous
namespace)::ARMDAGToDAGISel::Select(llvm::SDNode*) + 9001
9 llc 0x000000010c5fe34b
llvm::SelectionDAGISel::DoInstructionSelection() + 699
10 llc 0x000000010c5fd62c
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 4188
11 llc 0x000000010c5fb819
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 265
12 llc 0x000000010c5fac8a
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 970
13 llc 0x000000010c6f2cac
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 60
14 llc 0x000000010c97445d
llvm::FPPassManager::runOnFunction(llvm::Function&) + 349
15 llc 0x000000010c97473b
llvm::FPPassManager::runOnModule(llvm::Module&) + 75
16 llc 0x000000010c974879
llvm::MPPassManager::runOnModule(llvm::Module&) + 265
17 llc 0x000000010c974e82
llvm::PassManagerImpl::run(llvm::Module&) + 290
18 llc 0x000000010c9753dd llvm::PassManager::run(llvm::Module&) +
13
19 llc 0x000000010c2476b5 main + 4725
20 llc 0x000000010c246434 start + 52
Stack dump:
0. Program arguments: ./llc 2.ll
1. Running pass 'Function Pass Manager' on module '2.ll'.
2. Running pass 'ARM Instruction Selection' on function '@baz'
Illegal instruction: 4
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 17:06:59 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 17:06:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8598] Failed template argument deduction involving
member function pointers
In-Reply-To:
References:
Message-ID: <20111009220659.183972A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8598
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-10-09 17:06:58 CDT ---
Fixed in Clang r141517.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 17:08:28 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 17:08:28 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8653] ObjC++ synthesized property setter uses
GetCopyStructFn
In-Reply-To:
References:
Message-ID: <20111009220828.934CD2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8653
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Douglas Gregor 2011-10-09 17:08:26 CDT ---
Fariborz recently fixed this on 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 Sun Oct 9 17:10:16 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 17:10:16 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8675] protected member access check should only
apply to functions or data members
In-Reply-To:
References:
Message-ID: <20111009221016.596922A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8675
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #4 from Douglas Gregor 2011-10-09 17:10:15 CDT ---
Dup'ing to the general bug about searching for subclasses that are friends.
*** This bug has been marked as a duplicate of bug 6840 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 17:17:49 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 17:17:49 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8829] bad interaction bt attribute noreturn and
throw specification
In-Reply-To:
References:
Message-ID: <20111009221749.15395312800A@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8829
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Douglas Gregor 2011-10-09 17:17:48 CDT ---
This is fixed in top-of-tree Clang.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 17:21:58 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 17:21:58 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8952] extern "C" function returning pointer to
class in namespace{} silently drops symbol
In-Reply-To:
References:
Message-ID: <20111009222158.EBCAD312800A@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8952
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-10-09 17:21:58 CDT ---
With top-of-tree Clang, I see both bar() and baz(), as expected:
0000000000000000 T _bar
0000000000000038 S _bar.eh
0000000000000010 T _baz
0000000000000060 S _baz.eh
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 17:27:02 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 17:27:02 -0500 (CDT)
Subject: [LLVMbugs] [Bug 9049] type-dependent attribute evaluated during
template definition
In-Reply-To:
References:
Message-ID: <20111009222702.90CFD2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9049
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-10-09 17:27:01 CDT ---
Fixed in Clang r141518.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 17:38:49 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 17:38:49 -0500 (CDT)
Subject: [LLVMbugs] [Bug 9103] encapsulation and friend functions
In-Reply-To:
References:
Message-ID: <20111009223849.536492A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9103
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-10-09 17:38:49 CDT ---
Fixed in Clang r141520.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 17:42:34 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 17:42:34 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11096] New: __builtin_expect-based machine basic
block reordering not working in simple cases
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11096
Summary: __builtin_expect-based machine basic block reordering
not working in simple cases
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Transformation Utilities
AssignedTo: unassignedbugs at nondot.org
ReportedBy: richard-llvm at metafoo.co.uk
CC: llvmbugs at cs.uiuc.edu
Consider the following code:
void f(int n);
void g();
extern bool b;
extern int n;
void h() {
if (__builtin_expect(b,E))
f(n * n * n * n);
g();
}
With g++ -DE=0 -O3 (on x86_64), we get this:
_Z1hv:
subq $8, %rsp
cmpb $0, b(%rip)
jne .L4
.L2:
addq $8, %rsp
jmp _Z1gv
.L4:
movl n(%rip), %edi
imull %edi, %edi
imull %edi, %edi
call _Z1fi
jmp .L2
With g++ -DE=1 -O3, we get this:
_Z1hv:
subq $8, %rsp
cmpb $0, b(%rip)
je .L2
movl n(%rip), %edi
imull %edi, %edi
imull %edi, %edi
call _Z1fi
.L2:
addq $8, %rsp
jmp _Z1gv
However, LLVM doesn't do anywhere near as well. clang++ -DE=0 -O3 produces
this:
_Z1hv:
pushq %rax
movq b at GOTPCREL(%rip), %rax
movb (%rax), %cl
andb $1, %cl
movzbl %cl, %eax
cmpq $0, %rax
je .LBB0_2
movq n at GOTPCREL(%rip), %rax
movl (%rax), %ecx
imull (%rax), %ecx
imull (%rax), %ecx
imull (%rax), %ecx
movl %ecx, %edi
callq _Z1fi at PLT
.LBB0_2:
callq _Z1gv at PLT
popq %rax
ret
clang++ -DE=1 -O3 produces this:
_Z1hv:
pushq %rax
movq b at GOTPCREL(%rip), %rax
testb $1, (%rax)
je .LBB0_2
movq n at GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, %edi
imull %edi, %edi
imull %eax, %edi
imull %eax, %edi
callq _Z1fi at PLT
.LBB0_2:
popq %rax
jmp _Z1gv at PLT
There are lots of things which llvm has done badly here, but in particular the
__builtin_expect(b, 0) has not caused the unexpected code to be moved to the
end of the function (though it has made the test of 'b' bizarrely inefficient,
so it's not being entirely ignored).
The problem seems to be in llvm rather than in clang: the __builtin_expect is
converted to an llvm.expect.i64 (which is converted to !prof metadata).
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 17:58:20 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 17:58:20 -0500 (CDT)
Subject: [LLVMbugs] [Bug 9162] Namespace and extern "C" gives problems with
forward struct declarations
In-Reply-To:
References:
Message-ID: <20111009225820.1C53F2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9162
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-10-09 17:58:19 CDT ---
Fixed in Clang r141521.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 18:00:37 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 18:00:37 -0500 (CDT)
Subject: [LLVMbugs] [Bug 9382] Incorrect "'noreturn' should not return" when
there's code after a nested call to a noreturn member function
In-Reply-To:
References:
Message-ID: <20111009230037.AE03F312800A@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9382
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-10-09 18:00:37 CDT ---
Clang correctly models this now. There is no -Winvalid-noreturn diagnostic, but
there is a warning under -Wunreachable-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 Sun Oct 9 18:02:07 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 18:02:07 -0500 (CDT)
Subject: [LLVMbugs] [Bug 9476] clang++ asserts while parsing broken/strange
top level declaration
In-Reply-To:
References:
Message-ID: <20111009230207.9DC7F2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9476
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-10-09 18:02:07 CDT ---
Clang now complains without crashing.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 18:05:06 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 18:05:06 -0500 (CDT)
Subject: [LLVMbugs] [Bug 9545] Don't cause deduction failure for mismatch
against function parameter not having deducible template parameters
In-Reply-To:
References:
Message-ID: <20111009230506.2B8AA2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9545
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Douglas Gregor 2011-10-09 18:05:05 CDT ---
This is the same as PR8598, which I fixed today.
*** This bug has been marked as a duplicate of bug 8598 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 18:08:12 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 18:08:12 -0500 (CDT)
Subject: [LLVMbugs] [Bug 9599] Conditional expression + noreturn destructor
confuses -Wreturn-type
In-Reply-To:
References:
Message-ID: <20111009230812.CB8D9312800A@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9599
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Douglas Gregor 2011-10-09 18:08:12 CDT ---
This is fixed in 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 Sun Oct 9 18:23:02 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 18:23:02 -0500 (CDT)
Subject: [LLVMbugs] [Bug 9759] clang accepts qualified property access in
objective-c++
In-Reply-To:
References:
Message-ID: <20111009232302.405302A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9759
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-10-09 18:23:01 CDT ---
Fixed in Clang r141522.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 18:30:07 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 18:30:07 -0500 (CDT)
Subject: [LLVMbugs] [Bug 9785] Template friend in namespace doesn't work
correctly.
In-Reply-To:
References:
Message-ID: <20111009233007.635852A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9785
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Douglas Gregor 2011-10-09 18:30:06 CDT ---
Clang is actually behaving correctly here. The friend struct template
declaration here:
namespace detail {
template
struct Info {
template friend struct Test;
protected:
Info(int) {}
};
}
actually makes the struct template "detail::Test" a friend, because friend
declarations refer to the innermost enclosing namespace.
The right way to do this would be:
template struct Test;
namespace detail {
template
struct Info {
template friend struct ::Test;
protected:
Info(int) {}
};
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 20:12:10 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 20:12:10 -0500 (CDT)
Subject: [LLVMbugs] [Bug 9853] Friends allowed to define member functions
In-Reply-To:
References:
Message-ID: <20111010011210.4EC182A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9853
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-10-09 20:12:10 CDT ---
Fixed in Clang r141524.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 22:00:46 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 22:00:46 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11097] New: NumQuoted wrong after
RemoveDuplicates(SearchList, NumQuoted, Verbose);
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11097
Summary: NumQuoted wrong after RemoveDuplicates(SearchList,
NumQuoted, Verbose);
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Headers
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: emmanuel.christophe at gmail.com
CC: llvmbugs at cs.uiuc.edu
In InitHeaderSearch.cpp in the Realize() method during the third call
to RemoveDuplicates:
01092 // Remove duplicates across both the Angled and System
directories. GCC does
01093 // this and failing to remove duplicates across these two groups breaks
01094 // #include_next.
01095 RemoveDuplicates(SearchList, NumQuoted, Verbose);
The RemoveDuplicates method can remove non system directories (when
they are also system directories) showing the information message:
01039 if (DirToRemove != i)
01040 llvm::errs() << " as it is a non-system directory that
duplicates "
01041 << "a system directory\n";
When this happens, the NumQuoted variable is wrong, the header
initialization is incorrect:
01098 Headers.SetSearchPaths(SearchList, NumQuoted, NumAngled,
DontSearchCurDir);
and the use of search_dir_iterator system_dir_begin() is unreliable,
missing some system directories.
This bug manifested itself using include-what-you-use, misinterpreting some
system path as user path:
http://code.google.com/p/include-what-you-use/issues/detail?id=60
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 9 23:20:44 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 9 Oct 2011 23:20:44 -0500 (CDT)
Subject: [LLVMbugs] [Bug 9893] "Invalid GetElementPtrInst indices for type!"
on valid structure
In-Reply-To:
References:
Message-ID: <20111010042044.C7881312800A@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9893
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Douglas Gregor 2011-10-09 23:20:43 CDT ---
This is fixed in 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 Mon Oct 10 02:43:38 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 10 Oct 2011 02:43:38 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11098] New: valgrind errors in
PCHGenerator::HandleTranslationUnit
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11098
Summary: valgrind errors in PCHGenerator::HandleTranslationUnit
Product: clang
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: pawel.worach at gmail.com
CC: llvmbugs at cs.uiuc.edu
This is with trunk r141528.
******************** TEST 'Clang :: ASTMerge/exprs.c' FAILED
********************
Script:
--
/data/tmp/obj.1/Debug+Asserts/bin/clang -cc1 -emit-pch -o
/data/tmp/obj.1/tools/clang/test/ASTMerge/Output/exprs.c.tmp.1.ast
/data/tmp/llvm/tools/clang/test/ASTMerge/Inputs/exprs1.c
/data/tmp/obj.1/Debug+Asserts/bin/clang -cc1 -emit-pch -o
/data/tmp/obj.1/tools/clang/test/ASTMerge/Output/exprs.c.tmp.2.ast
/data/tmp/llvm/tools/clang/test/ASTMerge/Inputs/exprs2.c
/data/tmp/obj.1/Debug+Asserts/bin/clang -cc1 -ast-merge
/data/tmp/obj.1/tools/clang/test/ASTMerge/Output/exprs.c.tmp.1.ast -ast-merge
/data/tmp/obj.1/tools/clang/test/ASTMerge/Output/exprs.c.tmp.2.ast
-fsyntax-only -verify /data/tmp/llvm/tools/clang/test/ASTMerge/exprs.c
--
Exit Code: 123
Command Output (stderr):
--
==35607== Syscall param write(buf) points to uninitialised byte(s)
==35607== at 0x4DD015C: __sys_write (in /lib/libc.so.7)
==35607== by 0x28E88C1: llvm::raw_ostream::write(char const*, unsigned long)
(raw_ostream.cpp:305)
==35607== by 0x28E8846: llvm::raw_ostream::write(char const*, unsigned long)
(raw_ostream.cpp:295)
==35607== by 0x115AAF4:
clang::PCHGenerator::HandleTranslationUnit(clang::ASTContext&)
(GeneratePCH.cpp:55)
==35607== by 0x12BB978: clang::ParseAST(clang::Sema&, bool)
(ParseAST.cpp:101)
==35607== by 0x100119A: clang::ASTFrontendAction::ExecuteAction()
(FrontendAction.cpp:379)
==35607== by 0x10012B5: clang::FrontendAction::Execute()
(FrontendAction.cpp:299)
==35607== by 0xFE4561:
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(CompilerInstance.cpp:631)
==35607== by 0xFB71B5:
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(ExecuteCompilerInvocation.cpp:173)
==35607== by 0xFA80D6: cc1_main(char const**, char const**, char const*,
void*) (cc1_main.cpp:159)
==35607== by 0xFB2BC1: main (driver.cpp:354)
==35607== Address 0x5321a5d is 14,349 bytes inside a block of size 131,072
alloc'd
==35607== at 0x4172F79: operator new(unsigned long) (in
/usr/local/lib/valgrind/vgpreload_memcheck-amd64-freebsd.so)
==35607== by 0x113650E: __gnu_cxx::new_allocator::allocate(unsigned long, void const*) (new_allocator.h:91)
==35607== by 0x1136544: std::_Vector_base >::_M_allocate(unsigned long) (stl_vector.h:128)
==35607== by 0x1136678: std::vector >::_M_insert_aux(__gnu_cxx::__normal_iterator > >, unsigned char
const&) (vector.tcc:271)
==35607== by 0x113682B: std::vector >::push_back(unsigned char const&) (stl_vector.h:605)
==35607== by 0x11371F0: void
llvm::BitstreamWriter::EmitRecordWithAbbrevImpl(unsigned int,
llvm::SmallVectorImpl&, llvm::StringRef) (BitstreamWriter.h:363)
==35607== by 0x1137508: void
llvm::BitstreamWriter::EmitRecordWithBlob(unsigned int,
llvm::SmallVectorImpl&, llvm::StringRef) (BitstreamWriter.h:428)
==35607== by 0x110DF0D:
clang::ASTWriter::WriteIdentifierTable(clang::Preprocessor&, bool)
(ASTWriter.cpp:2359)
==35607== by 0x1118357: clang::ASTWriter::WriteASTCore(clang::Sema&,
clang::MemorizeStatCalls*, llvm::StringRef, std::string const&, bool)
(ASTWriter.cpp:3020)
==35607== by 0x1118A8D: clang::ASTWriter::WriteAST(clang::Sema&,
clang::MemorizeStatCalls*, std::string const&, bool, llvm::StringRef)
(ASTWriter.cpp:2741)
==35607== by 0x115AAC4:
clang::PCHGenerator::HandleTranslationUnit(clang::ASTContext&)
(GeneratePCH.cpp:52)
==35607== by 0x12BB978: clang::ParseAST(clang::Sema&, bool)
(ParseAST.cpp:101)
==35607==
--
********************
Another valgrind error is this which looks related:
******************** TEST 'Clang :: PCH/chain-cxx.cpp' FAILED
********************Script:
--
/data/buildslave/clang-i386-freebsd-vg_leak/obj/llvm.1/Release+Asserts/bin/clang
-cc1 -fsyntax-only -verify -include
/data/buildslave/clang-i386-freebsd-vg_leak/src-llvm/tools/clang/test/PCH/chain-cxx.cpp
-include
/data/buildslave/clang-i386-freebsd-vg_leak/src-llvm/tools/clang/test/PCH/chain-cxx.cpp
/data/buildslave/clang-i386-freebsd-vg_leak/src-llvm/tools/clang/test/PCH/chain-cxx.cpp
/data/buildslave/clang-i386-freebsd-vg_leak/obj/llvm.1/Release+Asserts/bin/clang
-cc1 -fsyntax-only -verify
/data/buildslave/clang-i386-freebsd-vg_leak/src-llvm/tools/clang/test/PCH/chain-cxx.cpp
-chain-include
/data/buildslave/clang-i386-freebsd-vg_leak/src-llvm/tools/clang/test/PCH/chain-cxx.cpp
-chain-include
/data/buildslave/clang-i386-freebsd-vg_leak/src-llvm/tools/clang/test/PCH/chain-cxx.cpp
--
Exit Code: 123
Command Output (stderr):
--
==53519== Conditional jump or move depends on uninitialised value(s)
==53519== at 0x1136A7D: llvm::BitstreamWriter::EmitVBR64(unsigned long,
unsigned int) (BitstreamWriter.h:147)
==53519== by 0x1137435: void llvm::BitstreamWriter::EmitRecord(unsigned int, llvm::SmallVectorImpl&, unsigned int)
(BitstreamWriter.h:402)
==53519== by 0x114F316: clang::ASTWriter::WriteSubStmt(clang::Stmt*)
(ASTWriterStmt.cpp:1468)
==53519== by 0x114F2E4: clang::ASTWriter::WriteSubStmt(clang::Stmt*)
(ASTWriterStmt.cpp:1466)
==53519== by 0x114F3A5: clang::ASTWriter::FlushStmts()
(ASTWriterStmt.cpp:1477)
==53519== by 0x11419B7: clang::ASTWriter::WriteDecl(clang::ASTContext&,
clang::Decl*) (ASTWriterDecl.cpp:1671)
==53519== by 0x11182B2: clang::ASTWriter::WriteASTCore(clang::Sema&,
clang::MemorizeStatCalls*, llvm::StringRef, std::string const&, bool)
(ASTWriter.cpp:3012)
==53519== by 0x1118A8D: clang::ASTWriter::WriteAST(clang::Sema&,
clang::MemorizeStatCalls*, std::string const&, bool, llvm::StringRef)
(ASTWriter.cpp:2741)
==53519== by 0x115AAC4:
clang::PCHGenerator::HandleTranslationUnit(clang::ASTContext&)
(GeneratePCH.cpp:52)
==53519== by 0x12BB978: clang::ParseAST(clang::Sema&, bool)
(ParseAST.cpp:101)
==53519== by 0x11591F1:
clang::ChainedIncludesSource::create(clang::CompilerInstance&)
(ChainedIncludesSource.cpp:146)
==53519== by 0x100237B:
clang::FrontendAction::BeginSourceFile(clang::CompilerInstance&,
llvm::StringRef, clang::InputKind) (FrontendAction.cpp:220)
==53519==
==53519== Conditional jump or move depends on uninitialised value(s)
==53519== at 0x1136A4D: llvm::BitstreamWriter::EmitVBR(unsigned int,
unsigned int) (BitstreamWriter.h:138)
==53519== by 0x1136A90: llvm::BitstreamWriter::EmitVBR64(unsigned long,
unsigned int) (BitstreamWriter.h:148)
==53519== by 0x1137435: void llvm::BitstreamWriter::EmitRecord(unsigned int, llvm::SmallVectorImpl&, unsigned int)
(BitstreamWriter.h:402)
==53519== by 0x114F316: clang::ASTWriter::WriteSubStmt(clang::Stmt*)
(ASTWriterStmt.cpp:1468)
==53519== by 0x114F2E4: clang::ASTWriter::WriteSubStmt(clang::Stmt*)
(ASTWriterStmt.cpp:1466)
==53519== by 0x114F3A5: clang::ASTWriter::FlushStmts()
(ASTWriterStmt.cpp:1477)
==53519== by 0x11419B7: clang::ASTWriter::WriteDecl(clang::ASTContext&,
clang::Decl*) (ASTWriterDecl.cpp:1671)
==53519== by 0x11182B2: clang::ASTWriter::WriteASTCore(clang::Sema&,
clang::MemorizeStatCalls*, llvm::StringRef, std::string const&, bool)
(ASTWriter.cpp:3012)
==53519== by 0x1118A8D: clang::ASTWriter::WriteAST(clang::Sema&,
clang::MemorizeStatCalls*, std::string const&, bool, llvm::StringRef)
(ASTWriter.cpp:2741)
==53519== by 0x115AAC4:
clang::PCHGenerator::HandleTranslationUnit(clang::ASTContext&)
(GeneratePCH.cpp:52)
==53519== by 0x12BB978: clang::ParseAST(clang::Sema&, bool)
(ParseAST.cpp:101)
==53519== by 0x11591F1:
clang::ChainedIncludesSource::create(clang::CompilerInstance&)
(ChainedIncludesSource.cpp:146)
==53519==
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 10 03:25:35 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 10 Oct 2011 03:25:35 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7880] llc with frame pointer elimination disabled
generates incorrect epilogue code for the ARM target
In-Reply-To:
References:
Message-ID: <20111010082535.3A7363128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7880
Bill Wendling changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |wendling at apple.com
Resolution| |INVALID
--- Comment #13 from Bill Wendling 2011-10-10 03:25:34 CDT ---
2.7 and 2.8 are ancient. ToT llc and llvm-dis (etc.) are unable to read the .bc
file.
Please regenerate the file with ToT. If it still has the problem, then please
reopen 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 Oct 10 03:27:03 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 10 Oct 2011 03:27:03 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7877] "Dwarf Error: bad offset" when compiling with
debugging symbols (-g)
In-Reply-To:
References:
Message-ID: <20111010082703.5B60D3128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7877
Bill Wendling changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |wendling at apple.com
Resolution| |WORKSFORME
--- Comment #3 from Bill Wendling 2011-10-10 03:27:02 CDT ---
There hasn't been any movement on this bug for quite a while. If this is still
a problem in mainline, please reopen 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 Oct 10 03:30:09 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 10 Oct 2011 03:30:09 -0500 (CDT)
Subject: [LLVMbugs] [Bug 4457] Array size error when building with LLVM
In-Reply-To:
References:
Message-ID: <20111010083009.44767312800A@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=4457
Bill Wendling changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |wendling at apple.com
Resolution| |WORKSFORME
--- Comment #6 from Bill Wendling 2011-10-10 03:30:08 CDT ---
llvm-gcc is no more. Please use clang instead. Chris's example works as does
the original test case.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 10 03:30:35 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 10 Oct 2011 03:30:35 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11099] New: Error compiling zlib
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11099
Summary: Error compiling zlib
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: dontbugme at mailinator.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=7427)
--> (http://llvm.org/bugs/attachment.cgi?id=7427)
Files causing troubles
When trying to compile zlib 1.2.5 with clang:
E:\projects\benchmark04\tst\tmp>c:\clang\bin\clang.exe -o deflate.c.obj -c
deflate.c -v
clang version 2.9 (tags/RELEASE_29/final)
Target: i386-pc-mingw32
Thread model: posix
"c:/clang/bin/clang.exe" -cc1 -triple i386-pc-mingw32 -S -disable-free
-disable
-llvm-verifier -main-file-name deflate.c -mrelocation-model static
-mdisable-fp-
elim -mconstructor-aliases -target-cpu pentium4 -target-linker-version 97.14
-mo
mit-leaf-frame-pointer -v -resource-dir c:/clang/bin\..\lib\clang\2.9
-ferror-li
mit 19 -fmessage-length 80 -fno-use-cxa-atexit -fgnu-runtime
-fdiagnostics-show-
option -fcolor-diagnostics -o C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cc-270455.s -x
c E:\projects\benchmark04\src\zlib\deflate.c
clang -cc1 version 2.9 based upon llvm 2.9 hosted on i386-pc-mingw32
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/mingw/include"
ignoring nonexistent directory "/usr/include"
#include "..." search starts here:
#include <...> search starts here:
c:/clang/bin/../lib/clang/2.9/include
c:/mingw/include
End of search list.
"c:/MinGW/bin/gcc.exe" -v -c -m32 -o deflate.c.obj -x assembler
C:/DOCUME~1/ADM
INI~1/LOCALS~1/Temp/cc-270455.s
Using built-in specs.
COLLECT_GCC=c:/MinGW/bin/gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.5.2/lto-wrapper.exe
Target: mingw32
Configured with: ../gcc-4.5.2/configure
--enable-languages=c,c++,ada,fortran,obj
c,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared
--enable-libgo
mp --disable-win32-registry --enable-libstdcxx-debug
--enable-version-specific-r
untime-libs --disable-werror --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.5.2 (GCC)
COLLECT_GCC_OPTIONS='-v' '-c' '-m32' '-o' 'deflate.c.obj' '-mtune=i386'
'-march=
i386'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/as.exe -o
deflate
.c.obj C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cc-270455.s
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cc-270455.s: Assembler messages:
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cc-270455.s:5971: Error: unknown pseudo-op:
`
.hidden'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cc-270455.s:5972: Error: unknown pseudo-op:
`
.hidden'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cc-270455.s:5973: Error: unknown pseudo-op:
`
.hidden'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cc-270455.s:5974: Error: unknown pseudo-op:
`
.hidden'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cc-270455.s:5975: Error: unknown pseudo-op:
`
.hidden'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cc-270455.s:5976: Error: unknown pseudo-op:
`
.hidden'
clang: error:
assembler
(via
gcc)
command
failed
with
exit
code
1
(use
-v
to
see
invocation)
clang version:
clang version 2.9 (tags/RELEASE_29/final)
Target: i386-pc-mingw32
Thread model: posix
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 10 04:08:53 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 10 Oct 2011 04:08:53 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11100] New: conditional noexcept using constexpr
template function produces an error when it should compile
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11100
Summary: conditional noexcept using constexpr template function
produces an error when it should compile
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: davidhunter22 at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Trunk code at revision 141529
This is sort of a follow on to http://llvm.org/bugs/show_bug.cgi?id=11084 which
related to a compiler assertion for similar code. That assertion is now fixed
however I believe the compiler is still in error ( at least according to my
newbie understanding of conditional noexcept )
Note that I am actually trying to use the GCC 4.6.0 standard C++ library on
Linux and these errors are distilled cases where the GCC compiler has no
problem with its headers while clang throws up. So it may be that clang is
right and GCC wrong.
Anyway the code in question is
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
template struct Foo
{
static constexpr bool foo( ) { return( true ); }
};
class Bar
{
void bar( ) noexcept(Foo::foo());
};
int main( int, char** )
{
Bar v;
return( 0 );
}
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Which produces an error
bug.cpp:8:26: error: argument to noexcept specifier must be a constant
expression
void bar( ) noexcept(Foo::foo());
It would seem to me that Foo::foo is always a constexpr function returning a
bool for any X so you should be able to use it in a conditional noexcept
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 Mon Oct 10 07:32:43 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 10 Oct 2011 07:32:43 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11101] New: constructor taking an rvalue reference
causes error with normal copy constructor
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11101
Summary: constructor taking an rvalue reference causes error
with normal copy constructor
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: davidhunter22 at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Trunk code as of revision 141531 on a unmolested Ubuntu Linux desktop.
The following code
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
template struct Foo
{
explicit Foo(T* );
Foo(Foo&&) noexcept;
};
struct Bar
{
virtual ~Bar( ) { }
};
int main( int, char** )
{
static Foo f = Foo( new Bar );
Foo g = f;
}
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
gives the following error
bug.cpp:19:14: error: call to deleted constructor of 'Foo'
Foo g = f;
^ ~
bug.cpp:2:29: note: function has been explicitly marked deleted here
template struct Foo
^
1 error generated.
which seems odd to me. I don't see any function being explicitly marked as
deleted. I assume it means the new " = delete" syntax. I also assume is means
the normal copy constructor Foo(Foo&) which I think should be compiler
generated here although maybe the presence of a "move" constructor is meant to
stop the copy constructor being created.
Anyway this code is a cut down test case from the GCC 4.6.0 header files which
don't seem to have a problem with constructs like this.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 10 07:56:35 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 10 Oct 2011 07:56:35 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11098] valgrind errors in
PCHGenerator::HandleTranslationUnit
In-Reply-To:
References:
Message-ID: <20111010125635.E34302A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=11098
Benjamin Kramer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |benny.kra at gmail.com
Resolution| |FIXED
--- Comment #1 from Benjamin Kramer 2011-10-10 07:56:35 CDT ---
Fixed in r141532.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 10 09:05:41 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 10 Oct 2011 09:05:41 -0500 (CDT)
Subject: [LLVMbugs] [Bug 9865] Assertion `Result.isInvalid() && "C++ binary
operator overloading is missing candidates!"' failed.
In-Reply-To:
References:
Message-ID: <20111010140541.C046B312800A@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9865
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Douglas Gregor 2011-10-10 09:05:41 CDT ---
Fixed in Clang r141537.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 10 09:49:39 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 10 Oct 2011 09:49:39 -0500 (CDT)
Subject: [LLVMbugs] [Bug 9989] Wrong point of declaration for static data
member
In-Reply-To:
References:
Message-ID: <20111010144939.04A782A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9989
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Douglas Gregor 2011-10-10 09:49:38 CDT ---
Fixed in Clang r141539.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 10 09:53:40 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 10 Oct 2011 09:53:40 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10086] Explicit Template Instantiation without
Original Template Definition
In-Reply-To:
References:
Message-ID: <20111010145340.06BAF312800A@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10086
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Douglas Gregor 2011-10-10 09:53:39 CDT ---
*** This bug has been marked as a duplicate of bug 8020 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 10 09:56:07 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 10 Oct 2011 09:56:07 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10219] UNREACHABLE: unexpected type in nested name
specifier!
In-Reply-To:
References:
Message-ID: <20111010145607.5B6F72A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10219
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-10-10 09:56:07 CDT ---
This appears to be fixed with top-of-tree Clang.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 10 11:01:11 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 10 Oct 2011 11:01:11 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11102] New: [AVX] x86 isel hits assert (begin() +
idx < end()), function operator[], file [...]/ADT/SmallVector.h, line 154
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11102
Summary: [AVX] x86 isel hits assert (begin() + idx < end()),
function operator[], file [...]/ADT/SmallVector.h,
line 154
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=7429)
--> (http://llvm.org/bugs/attachment.cgi?id=7429)
test case
If I run "llc -mattr=+avx" with the attached test case, the assertion above
hits in the X86 DAG->DAG instruction selection pass.
For reasons unknown, I don't get a reasonable stack trace from llc, but the
following seems to be where it's hitting this:
5 ispc 0x000000010cd0f648 __assert_rtn + 56
6 ispc 0x000000010c5bc7c0
llvm::X86TargetLowering::LowerVECTOR_SHUFFLE(llvm::SDValue,
llvm::SelectionDAG&) const + 31840
7 ispc 0x000000010c5dbcd7
llvm::X86TargetLowering::LowerOperation(llvm::SDValue, llvm::SelectionDAG&)
const + 487
8 ispc 0x000000010c6b1ab0 (anonymous
namespace)::SelectionDAGLegalize::LegalizeOp(llvm::SDValue) + 3696
9 ispc 0x000000010c6b0a9d llvm::SelectionDAG::Legalize() + 173
10 ispc 0x000000010c7bc2c9
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 3161
11 ispc 0x000000010c7ba8b9
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 265
12 ispc 0x000000010c7b9d2a
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 970
13 ispc 0x000000010c8a7dbc
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 60
14 ispc 0x000000010cc6f97d
llvm::FPPassManager::runOnFunction(llvm::Function&) + 349
15 ispc 0x000000010cc6fc5b
llvm::FPPassManager::runOnModule(llvm::Module&) + 75
16 ispc 0x000000010cc6fd99
llvm::MPPassManager::runOnModule(llvm::Module&) + 265
17 ispc 0x000000010cc703a2
llvm::PassManagerImpl::run(llvm::Module&) + 290
18 ispc 0x000000010cc708fd llvm::PassManager::run(llvm::Module&) +
13
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 10 11:05:34 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 10 Oct 2011 11:05:34 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10288] Clang rejects string literal initializer for
char array that has no explicit size
In-Reply-To:
References:
Message-ID: <20111010160534.DAC7E2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10288
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-10-10 11:05:34 CDT ---
Fixed in Clang r141543.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 10 11:12:06 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 10 Oct 2011 11:12:06 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11103] New: SetVector documentation needs to be
updated WRT default data structures used.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11103
Summary: SetVector documentation needs to be updated WRT
default data structures used.
Product: Documentation
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: General docs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: michael at lunarg.com
CC: llvmbugs at cs.uiuc.edu
(I tried sending an email to llvm-commits with this patch last month, but I
don't know if I was following the right process as I did not hear anything
back)
Since r33854, SetVectors have defaulted to size 16 SmallSets, but the
Programmer's Manual still says it uses an std:set.
This brings it to a single malloc for the std::vector, so I'm not sure if it
should still be called "quite expensive", but I'll let someone else make the
call.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 10 11:19:51 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 10 Oct 2011 11:19:51 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10684] MPPassManager::addLowerLevelRequiredPass may
crash
In-Reply-To:
References:
Message-ID: <20111010161951.E0AF92A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10684
Devang Patel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |dpatel at apple.com
Resolution| |FIXED
--- Comment #3 from Devang Patel 2011-10-10 11:19:51 CDT ---
I believe this was fixed by r139642.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 10 11:32:31 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 10 Oct 2011 11:32:31 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11104] New: Inefficient Code Gen for Boolean
Expression Evaluation
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11104
Summary: Inefficient Code Gen for Boolean Expression Evaluation
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: justin.holewinski at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=7431)
--> (http://llvm.org/bugs/attachment.cgi?id=7431)
Test Case Source
Clang is currently producing inefficient LLVM IR for expression evaluation
involving short-circuit evaluation. In the attached test case, both an integer
and a boolean expression is computed. However, short-circuit evaluation of the
boolean expression may render the integer computation useless. An additional
basic block is inserted in the LLVM IR to allow short-circuit evaluation, but
the possibly-unnecessary integer computation is not placed in this basic block.
Instead, the computation is *always* performed.
Please see the attached short-circuit.cpp test case, as well as the
short-circuit.clang.ll LLVM IR file which shows the inefficiency. Additionally,
the short-circuit.dragonegg.ll shows the LLVM IR output from DragonEgg, which
shows GCC moving the integer computation into a basic block which will only be
executed if the result of the integer expression is actually 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 Mon Oct 10 11:59:39 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 10 Oct 2011 11:59:39 -0500 (CDT)
Subject: [LLVMbugs] [Bug 11106] New: SROA pass hit assert with simple program
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11106
Summary: SROA pass hit assert with simple program
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 and the following program:
define void @"f_v___REFUf[]"() nounwind {
allocas:
%a156286 = alloca [4 x <4 x float>], align 16
br i1 undef, label %cif_done, label %for_test158.preheader
for_test158.preheader: ; preds = %allocas
%a156286305 = bitcast [4 x <4 x float>]* %a156286 to i8*
call void @llvm.memset.p0i8.i64(i8* %a156286305, i8 -1, i64 64, i32 16, i1
false)
unreachable
cif_done: ; preds = %allocas
ret void
}
If I run opt as follows:
% opt -scalarrepl bugpoint-reduced-simplified.ll > /dev/null
This assertion hits:
Assertion failed: (isa(Val) && "cast() argument of incompatible type!"),
function cast, file /Users/mmp/llvm-dev-src/include/llvm/Support/Casting.h,
line 194.
opt doesn't give me a good stack trace, but this seems to be the relevant bits:
[...]
6 ispc 0x00000001044cb8b2 (anonymous
namespace)::SROA::RewriteForScalarRepl(llvm::Instruction*, llvm::AllocaInst*,
unsigned long long, llvm::SmallVector&) + 11890
7 ispc 0x00000001044c8c05 (anonymous
namespace)::SROA::RewriteForScalarRepl(llvm::Instruction*, llvm::AllocaInst*,
unsigned long long, llvm::SmallVector