From bugzilla-daemon at llvm.org Fri Jul 1 01:24:00 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Jul 2011 01:24:00 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10205] clang++ aborts while compiling
In-Reply-To:
References:
Message-ID: <20110701062401.01B2E2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10205
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from John McCall 2011-07-01 01:24:00 CDT ---
Should be fixed in r134227.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 1 02:44:32 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Jul 2011 02:44:32 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10237] New: Segfault when dereferencing a
forward-declared struct
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10237
Summary: Segfault when dereferencing a forward-declared struct
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: max at duempel.org
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
The following snippet makes clang++ svn r134234 crash:
struct X crash() { if (X[i]){} }
Error message:
crash.cpp:1:10: error: incomplete result type 'struct X' in function definition
struct X crash() {
^
crash.cpp:1:8: note: forward declaration of 'X'
struct X crash() {
^
crash.cpp:2:10: error: expected unqualified-id
if (X[i]) {}
^
crash.cpp:2:11: error: use of undeclared identifier 'i'
if (X[i]) {}
^
0 clang 0x00000000018f8d7f
1 clang 0x00000000018f91e9
2 libpthread.so.0 0x00007f6d0f8a0020
3 clang 0x00000000009ab113
clang::Sema::ActOnCXXConditionDeclaration(clang::Scope*, clang::Declarator&) +
19
4 clang 0x00000000008d8182
clang::Parser::ParseCXXCondition(clang::ActionResult&,
clang::Decl*&, clang::SourceLocation, bool) + 1058
5 clang 0x0000000000891946
clang::Parser::ParseParenExprOrCondition(clang::ActionResult&, clang::Decl*&, clang::SourceLocation, bool) + 198
6 clang 0x000000000089ac5f
clang::Parser::ParseIfStatement(clang::ParsedAttributes&) + 447
7 clang 0x000000000089722d
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector&, bool) + 2413
8 clang 0x0000000000894653
clang::Parser::ParseCompoundStatementBody(bool) + 1587
9 clang 0x0000000000894daa
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 138
10 clang 0x00000000008ad3e4
clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&) + 1044
11 clang 0x00000000008b8dea
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 746
12 clang 0x00000000008a8831
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AccessSpecifier) + 145
13 clang 0x00000000008a8db3
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&,
clang::AccessSpecifier) + 531
14 clang 0x00000000008ab330
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 2752
15 clang 0x00000000008ab864
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 164
16 clang 0x000000000088542d clang::ParseAST(clang::Sema&, bool) + 253
17 clang 0x000000000075e1f3 clang::CodeGenAction::ExecuteAction() +
51
18 clang 0x0000000000673623
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 307
19 clang 0x0000000000653269
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1001
20 clang 0x0000000000648a12 cc1_main(char const**, char const**, char
const*, void*) + 706
21 clang 0x0000000000651bf6 main + 678
22 libc.so.6 0x00007f6d0eb85ead __libc_start_main + 253
23 clang 0x00000000006485e9
Stack dump:
0. Program arguments: /usr/local/stow/llvm/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -main-file-name crash.cpp -mrelocation-model static
-mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables
-target-cpu x86-64 -target-linker-version 2.21.52.20110606
-momit-leaf-frame-pointer -coverage-file crash.o -resource-dir
/usr/local/stow/llvm/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19
-fmessage-length 266 -fgnu-runtime -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o crash.o -x c++ crash.cpp
1. crash.cpp:2:13: current parser token ')'
2. crash.cpp:1:18: parsing function body 'crash'
3. crash.cpp:1:18: in compound statement ('{}')
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 1 07:33:40 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Jul 2011 07:33:40 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10238] New: False positive with class scope "static
const" used with an object
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10238
Summary: False positive with class scope "static const" used
with an object
Product: clang
Version: 2.9
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: geza at bitquad.com
CC: llvmbugs at cs.uiuc.edu
Hi,
this little code gives me an "operand is a garbage value" warning:
struct Array {
static const int size = 4;
};
bool fn(Array &a) {
int s = a.size;
return s>0;
}
If I remove the "int s = a.size" line, and change the end to "return a.size>0",
I don't get a warning.
Or, If I change a.size to Array::size, I don't get a warning either.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 1 07:33:49 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Jul 2011 07:33:49 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10239] New: False positive when object is
initialized by a member function
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10239
Summary: False positive when object is initialized by a member
function
Product: clang
Version: 2.9
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: geza at bitquad.com
CC: llvmbugs at cs.uiuc.edu
Hi,
this little code gives me an "operand is a garbage value" warning:
struct Stream {
void read(char &b);
};
bool fn(Stream &s) {
char z;
s.read(z);
return z==0;
}
If I remove the class "Stream", and use a global read function instead, I don't
a warning.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 1 07:40:19 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Jul 2011 07:40:19 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10240] New: Shell scripts generated by llvm-ld load
redundant libraries
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10240
Summary: Shell scripts generated by llvm-ld load redundant
libraries
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: srk31 at srcf.ucam.org
CC: llvmbugs at cs.uiuc.edu
When linking in bitcode libraries using -l, llvm-ld still emits "-load="
arguments to lli to load native versions. These are redundant and should not be
linked.
To reproduce: take any shared library installed on your system, them recompile
it as bitcode. Similarly, compile and link a client of that library using llvm,
making sure the bitcode library is found first in the library search path (-L).
In the output shell script, the native library will be loaded even though the
linker linked in the bitcode version. Here's a tarball that demonstrates this
with the command below, assuming you have native libssl and libz on your
system.
I'm doing this on a x86-64 FC13 system, with the 2.9 release of LLVM, compiled
Release+Debug+Asserts.
$ llvm-ld -v -lpthread -Lout/host/linux-x86/pr/sim/obj/lib/llvm
-Lout/host/linux-x86/pr/sim/obj/lib/llvm -L\$ORIGIN/../lib/llvm
-Lout/host/linux-x86/pr/sim/obj/lib/llvm
out/host/linux-x86/pr/sim/obj/EXECUTABLES/dalvikvm_intermediates/Main.o.bc
-l=dvm -l=ssl -l=z -o
out/host/linux-x86/pr/sim/obj/EXECUTABLES/dalvikvm_intermediates/LINKED/dalvikvm.bc
Adding library pthread to link items
Adding library dvm to link items
Adding library ssl to link items
Adding library z to link items
Linking archive file '/usr/lib64/libpthread.a'
Linking bitcode file
'out/host/linux-x86/pr/sim/obj/EXECUTABLES/dalvikvm_intermediates/Main.o.bc'
Linked in file
'out/host/linux-x86/pr/sim/obj/EXECUTABLES/dalvikvm_intermediates/Main.o.bc'
Linking bitcode file 'out/host/linux-x86/pr/sim/obj/lib/llvm/libdvm.so'
Linked in file 'out/host/linux-x86/pr/sim/obj/lib/llvm/libdvm.so'
Linking bitcode file 'out/host/linux-x86/pr/sim/obj/lib/llvm/libssl.so'
Linked in file 'out/host/linux-x86/pr/sim/obj/lib/llvm/libssl.so'
Linking bitcode file 'out/host/linux-x86/pr/sim/obj/lib/llvm/libz.so'
Linked in file 'out/host/linux-x86/pr/sim/obj/lib/llvm/libz.so'
Linking archive file '/usr/lib64/libpthread.a'
Generating Bitcode To
out/host/linux-x86/pr/sim/obj/EXECUTABLES/dalvikvm_intermediates/LINKED/dalvikvm.bc.bc
Emitting Shell Script
$ cat
out/host/linux-x86/pr/sim/obj/EXECUTABLES/dalvikvm_intermediates/LINKED/dalvikvm.bc
#!/bin/sh
lli=${LLVMINTERP-lli}
exec $lli \
-load=/usr/lib64/libpthread.a \
-load=/usr/lib/libssl.so \
-load=/usr/lib/libz.so \
out/host/linux-x86/pr/sim/obj/EXECUTABLES/dalvikvm_intermediates/LINKED/dalvikvm.bc.bc
${1+"$@"}
The second and third -load= lines should not be there. (Also, neither should
the first, but that's a separate bug.)
This seems to be because the shell script generation code assumes that if an -l
request was satisfied by bitcode, then searching for native dynamic
libraries will yield nothing, so we can do it anyway. But sometimes both
bitcode and native versions can be found in the library path.
Instead, if a bitcode library was linked in, it should skip the native
equivalent. Here is a quick patch which does mostly the right thing.
--- tools/llvm-ld/llvm-ld.cpp
+++ tools/llvm-ld/llvm-ld.cpp.patched-1 2011-07-01 13:03:37.000000000 +0100
@@ -449,6 +449,8 @@
// on the command line, so that we don't have to do this manually!
for (std::vector::iterator i = Libraries.begin(),
e = Libraries.end(); i != e; ++i) {
+ // we might find a bitcode library; if so, it's already linked in
+ bool FoundBitcodeLibrary = false;
// try explicit -L arguments first:
sys::Path FullLibraryPath;
for (cl::list::const_iterator P = LibPaths.begin(),
@@ -457,16 +459,25 @@
FullLibraryPath.appendComponent("lib" + *i);
FullLibraryPath.appendSuffix(sys::Path::GetDLLSuffix());
if (!FullLibraryPath.isEmpty()) {
- if (!FullLibraryPath.isDynamicLibrary()) {
+ if (FullLibraryPath.isBitcodeFile()) {
+ FoundBitcodeLibrary = true;
+ break;
+ }
+ else if (!FullLibraryPath.isDynamicLibrary()) {
// Not a native shared library; mark as invalid
FullLibraryPath = sys::Path();
- } else break;
+ }
+ else break;
}
}
- if (FullLibraryPath.isEmpty())
- FullLibraryPath = sys::Path::FindLibrary(*i);
- if (!FullLibraryPath.isEmpty())
- Out2.os() << " -load=" << FullLibraryPath.str() << " \\\n";
+ // only emit -load= lines for native *shared* libraries
+ if (!FoundBitcodeLibrary)
+ {
+ if (FullLibraryPath.isEmpty())
+ FullLibraryPath = sys::Path::FindLibrary(*i);
+ if (!FullLibraryPath.isEmpty())
+ Out2.os() << " -load=" << FullLibraryPath.str() << " \\\n";
+ }
}
Out2.os() << " " << BitcodeOutputFilename << " ${1+\"$@\"}\n";
Out2.keep();
Here we're assuming that our walk of the library paths precisely
replicates the Linker's, so that iff we found bitcode, so did the linker.
A more robust solution would check with the linker what files were
actually linked in, and then remove these from the list of Libraries to
handle in the shell script.
I'm also about to file a related bug triggered in the case where a call
to sys::Path::FindLibrary discovers an archive and not a shared object (i.e.
the first -load= in the shell script I showed).
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 1 08:48:46 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Jul 2011 08:48:46 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10241] New: Shell scripts generated by llvm-ld
attempt to dynamically load archives
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10241
Summary: Shell scripts generated by llvm-ld attempt to
dynamically load archives
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: srk31 at srcf.ucam.org
CC: llvmbugs at cs.uiuc.edu
When looking up a library name in sys::Path returns an archive, llvm-ld will
happily generate a shell script containing a -load= argument to lli for that
archive. This fails at run-time, because archives cannot be dynamically loaded.
To reproduce: same as bug 10240 .
In general, passing using -l to link any library will trigger the bug if that
library's only appearance in the library search path is as an archive. I'm
seeing this on an x86-64 FC13 machine, but guess it's an issue for any system
that uses archives.
The following quick fix seems to sort it out. The problem is that the
FindLibrary call can return an archive, but this code only wants shared
objects.
--- tools/llvm-ld/llvm-ld.cpp
+++ tools/llvm-ld/llvm-ld.cpp.patched-3 2011-07-01 14:35:47.000000000 +0100
@@ -465,7 +465,7 @@
}
if (FullLibraryPath.isEmpty())
FullLibraryPath = sys::Path::FindLibrary(*i);
- if (!FullLibraryPath.isEmpty())
+ if (!FullLibraryPath.isEmpty() && FullLibraryPath.isDynamicLibrary())
Out2.os() << " -load=" << FullLibraryPath.str() << " \\\n";
}
Out2.os() << " " << BitcodeOutputFilename << " ${1+\"$@\"}\n";
I'm not actually sure why the FindLibrary call is there, since the preceding
chunk of code is all about locating the input libraries (and is careful to
exclude non-shared-objects). But it might make sense if sys::Path includes some
directories that aren't in LibPaths.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 1 10:22:45 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Jul 2011 10:22:45 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8733] AV when reporting diagnostics in some
code-completion results
In-Reply-To:
References:
Message-ID: <20110701152245.937742A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8733
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-07-01 10:22:44 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 Fri Jul 1 13:10:10 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Jul 2011 13:10:10 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8992] cout destruction prints garbage
In-Reply-To:
References:
Message-ID: <20110701181010.4A3132A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8992
Howard Hinnant changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #27 from Howard Hinnant 2011-07-01 13:10:07 CDT ---
Committed revision 134155.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 1 13:56:13 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Jul 2011 13:56:13 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10242] New: Related result types for +class and
-class
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10242
Summary: Related result types for +class and -class
Product: clang
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jediknil at belkadan.com
CC: llvmbugs at cs.uiuc.edu
The following program should be able to infer which +test method is being
called, but Clang currently picks the first one arbitrarily.
//////
@interface Base
+ (Class)class;
- (Class)class;
@end
@interface X : Base
+ (float)test;
@end
@interface Y : Base
+ (char)test;
@end
int abc () {
return [[Y class] test];
}
int def (Y *y) {
return [[y class] test];
}
//////
(We could also extend this to +superclass while we're at it.)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 1 14:24:50 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Jul 2011 14:24:50 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10191] compiling libcxx with clang
In-Reply-To:
References:
Message-ID: <20110701192450.9F44A2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10191
Howard Hinnant changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Howard Hinnant 2011-07-01 14:24:49 CDT ---
Committed revision 134248.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 1 15:21:09 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Jul 2011 15:21:09 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10243] New: [C++] aborts during compilation
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10243
Summary: [C++] aborts during compilation
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: pipping at exherbo.org
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=6808)
--> (http://llvm.org/bugs/attachment.cgi?id=6808)
xz-compressed output of -save-temps
video/opengl.cpp from SLIMPlayer[1] fails to compile.
pipping at bogus /home/pipping/debug % clang++ -x c++ -c opengl.ii.ok
opengl.ii.ok:3:17: error: field has incomplete type 'exception_ptr'
exception_ptr _M_ptr;
^
opengl.ii.ok:1:7: note: forward declaration of 'exception_ptr'
class exception_ptr;
^
opengl.ii.ok:4:47: warning: defaulted function definition accepted as a C++0x
extension [-Wc++0x-extensions]
nested_exception(const nested_exception&) = default;
^
clang: SemaLookup.cpp:2151: Sema::SpecialMemberOverloadResult
*clang::Sema::LookupSpecialMember(clang::CXXRecordDecl *,
clang::Sema::CXXSpecialMember, bool, bool, bool, bool, bool): Assertion `(RD &&
!RD->isBeingDefined()) && "doing special member lookup into record that isn't
fully complete"' failed.
0 libLLVM-3.0svn.so 0x00007fc4327ff78f
1 libLLVM-3.0svn.so 0x00007fc4327ffb81
2 libpthread.so.0 0x00007fc4317daff0
3 libc.so.6 0x00007fc430af8605 gsignal + 53
4 libc.so.6 0x00007fc430af9905 abort + 389
5 libc.so.6 0x00007fc430af1235 __assert_fail + 245
6 clang 0x0000000000dbf5f2
clang::Sema::LookupSpecialMember(clang::CXXRecordDecl*,
clang::Sema::CXXSpecialMember, bool, bool, bool, bool, bool) + 2226
7 clang 0x0000000000dbf6f0
clang::Sema::LookupCopyingConstructor(clang::CXXRecordDecl*, unsigned int,
bool*) + 64
8 clang 0x0000000000d3b552
clang::Sema::ComputeDefaultedCopyCtorExceptionSpecAndConst(clang::CXXRecordDecl*)
+ 578
9 clang 0x0000000000d39ff5
clang::Sema::CheckExplicitlyDefaultedCopyConstructor(clang::CXXConstructorDecl*)
+ 245
10 clang 0x0000000000d398d3
clang::Sema::CheckExplicitlyDefaultedMethods(clang::CXXRecordDecl*) + 323
11 clang 0x0000000000d38a4a
clang::Sema::CheckCompletedCXXClass(clang::CXXRecordDecl*) + 1322
12 clang 0x0000000000d3cdbe
clang::Sema::ActOnFinishCXXMemberSpecification(clang::Scope*,
clang::SourceLocation, clang::Decl*, clang::SourceLocation,
clang::SourceLocation, clang::AttributeList*) + 190
13 clang 0x0000000000ca1ed2
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int,
clang::Decl*) + 1442
14 clang 0x0000000000ca1545
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool) + 4965
15 clang 0x0000000000c953f1
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext) + 2225
16 clang 0x0000000000c8c3b9
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AccessSpecifier) + 57
17 clang 0x0000000000c8c5fd
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&,
clang::AccessSpecifier) + 61
18 clang 0x0000000000c8bf62
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 1426
19 clang 0x0000000000c8b9a4
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 212
20 clang 0x0000000000c7505f clang::ParseAST(clang::Sema&, bool) +
303
21 clang 0x0000000000b734df clang::CodeGenAction::ExecuteAction() +
623
22 clang 0x0000000000a968b7 clang::FrontendAction::Execute() + 231
23 clang 0x0000000000a842ea
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 506
24 clang 0x0000000000a4fef0
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 640
25 clang 0x0000000000a460d7 cc1_main(char const**, char const**,
char const*, void*) + 647
26 clang 0x0000000000a4c680 main + 368
27 libc.so.6 0x00007fc430ae4c7d __libc_start_main + 253
28 clang 0x0000000000a45d89
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -mrelax-all -disable-free -main-file-name opengl.ii.ok
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -target-linker-version 2.21
-momit-leaf-frame-pointer -coverage-file opengl.ii.o -resource-dir
/usr/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length
118 -fgnu-runtime -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -o opengl.ii.o -x c++ opengl.ii.ok
1. parser at end of file
2. opengl.ii.ok:2:1: parsing struct/union/class body 'nested_exception'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
pipping at bogus /home/pipping/debug %
clang version 3.0, git-35ee32e800145a535f2676898f8f06f7ae6e9b43
[1] https://github.com/Themaister/SLIMPlayer
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 1 17:21:55 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Jul 2011 17:21:55 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10244] New: `!Traits::stopLess(b,
a) && "Invalid interval"' failed.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10244
Summary: `!Traits::stopLess(b, a) && "Invalid interval"'
failed.
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: joerg at NetBSD.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6810)
--> (http://llvm.org/bugs/attachment.cgi?id=6810)
Preprocessed input
Compiling the attached preprocessed input with "clang-O2" for AMD64 triggers
the bug.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 1 17:25:07 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Jul 2011 17:25:07 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10245] New: libc++ misses cxxabi when it built by
clang + libc++
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10245
Summary: libc++ misses cxxabi when it built by clang + libc++
Product: libc++
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
AssignedTo: hhinnant at apple.com
ReportedBy: oroppas at gmail.com
CC: llvmbugs at cs.uiuc.edu
I was able to successfully build libc++ using CMake with options
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_C_COMPILER:STRING="/usr/bin/clang" \
-DCMAKE_CXX_COMPILER:STRING="/usr/bin/clang++" \
-DCMAKE_CXX_FLAGS:STRING="-stdlib=libc++" \
../$_svnmod || return 1
i.e., utilizing C++ Standard Library from libc++ rather than libstdc++.
Then,
$ ldd -r /usr/lib/libc++.so
linux-vdso.so.1 => (0x00007fffc51d8000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007f7d7f666000)
libc.so.6 => /lib/libc.so.6 (0x00007f7d7f305000)
librt.so.1 => /lib/librt.so.1 (0x00007f7d7f0fc000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f7d7eee6000)
/lib/ld-linux-x86-64.so.2 (0x00007f7d7fc07000)
undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE
(/usr/lib/libc++.so)
undefined symbol: _ZTVN10__cxxabiv117__class_type_infoE (/usr/lib/libc++.so)
undefined symbol: __cxa_pure_virtual (/usr/lib/libc++.so)
undefined symbol: _ZTVN10__cxxabiv121__vmi_class_type_infoE
(/usr/lib/libc++.so)
undefined symbol: __gxx_personality_v0 (/usr/lib/libc++.so)
undefined symbol: __cxa_free_exception (/usr/lib/libc++.so)
undefined symbol: __cxa_begin_catch (/usr/lib/libc++.so)
undefined symbol: __cxa_guard_release (/usr/lib/libc++.so)
undefined symbol: __cxa_call_unexpected (/usr/lib/libc++.so)
undefined symbol: __cxa_allocate_exception (/usr/lib/libc++.so)
undefined symbol: __cxa_throw (/usr/lib/libc++.so)
undefined symbol: __cxa_guard_abort (/usr/lib/libc++.so)
undefined symbol: __cxa_end_catch (/usr/lib/libc++.so)
undefined symbol: __cxa_guard_acquire (/usr/lib/libc++.so)
undefined symbol: __cxa_rethrow (/usr/lib/libc++.so)
I see libcxxabi in llvm subproject, but I'm not sure how we integrate it into
libcxx...
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 1 17:31:14 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Jul 2011 17:31:14 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10245] libc++ misses cxxabi when it built by clang
+ libc++
In-Reply-To:
References:
Message-ID: <20110701223114.425A72A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10245
Sean Hunt changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |scshunt at csclub.uwaterloo.ca
Resolution| |INVALID
--- Comment #1 from Sean Hunt 2011-07-01 17:31:13 CDT ---
This is intentional; libc++ does not include low-level ABI features. libc++abi
or libsupc++ (GCC's version of the same) must be compiled separately and linked
in to any program that uses libc++.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 1 19:42:11 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Jul 2011 19:42:11 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10246] New: Adding new gcc version in ToolChains
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10246
Summary: Adding new gcc version in ToolChains
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: oroppas at gmail.com
CC: llvmbugs at cs.uiuc.edu
GCC version on ArchLinux is bumped up to 4.6.1.
The following patch suffices to keep it compatible.
Index: lib/Driver/ToolChains.cpp
===================================================================
--- lib/Driver/ToolChains.cpp (revision 134295)
+++ lib/Driver/ToolChains.cpp (working copy)
@@ -1462,7 +1462,7 @@
ret.append(Version);
return ret;
}
- static const char* GccVersions[] = {"4.6.0", "4.6",
+ static const char* GccVersions[] = {"4.6.1", "4.6.0", "4.6",
"4.5.2", "4.5.1", "4.5",
"4.4.5", "4.4.4", "4.4.3", "4.4",
"4.3.4", "4.3.3", "4.3.2", "4.3",
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 1 19:51:59 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Jul 2011 19:51:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10246] Adding new gcc version in ToolChains
In-Reply-To:
References:
Message-ID: <20110702005159.2E6812A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10246
Chandler Carruth changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |chandlerc at gmail.com
Resolution| |FIXED
--- Comment #1 from Chandler Carruth 2011-07-01 19:51:58 CDT ---
Should be fixed in r134299. I also added the 4.6.1 version to the Arch include
file search:
// Arch Linux gcc 4.6
+ AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.6.1",
+ "i686-pc-linux-gnu", "", "", triple);
+ AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.6.1",
+ "x86_64-unknown-linux-gnu", "", "", triple);
AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.6.0",
"i686-pc-linux-gnu", "", "", triple);
AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.6.0",
Please let me know if that works, or breaks anything for you.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Jul 2 08:19:00 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Jul 2011 08:19:00 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10200] dragonegg svn on FSF gcc 4.6.1 produces
unresolved symbols
In-Reply-To:
References:
Message-ID: <20110702131900.593CE2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10200
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #8 from Duncan Sands 2011-07-02 08:18:59 CDT ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20110627/123358.html
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Jul 2 09:13:10 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Jul 2011 09:13:10 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10248] New: compiling Poco with libc++
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10248
Summary: compiling Poco with libc++
Product: libc++
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
AssignedTo: hhinnant at apple.com
ReportedBy: llvm at niebuhrt.de
CC: llvmbugs at cs.uiuc.edu
This is probably a problem of Poco (pocoproject.org), but I am not sure about
it.
When compiling the following program with libc++ (with or without c++0x)
//clang++ -c -stdlib=libc++ -I projects/odemx-http.git/install/include/
main.cpp
#include
#include
#include
void test(Poco::Data::Statement& s1, Poco::Data::Statement& s2) {
std::swap( s1, s2);
}
-----------------
Statement.h includes
so the template swap should be in the namespace std
-----------------
I get the following errors:
In file included from main.cpp:1:
projects/odemx-http.git/install/include//Poco/Data/Statement.h:839:7: error: no
function template matches function template specialization 'swap'
void swap(Poco::Data::Statement& s1,
^
In file included from main.cpp:1:
In file included from
projects/odemx-http.git/install/include//Poco/Data/Statement.h:44:
In file included from
projects/odemx-http.git/install/include//Poco/Data/StatementImpl.h:44:
In file included from
projects/odemx-http.git/install/include//Poco/Data/AbstractBinding.h:44:
In file included from
projects/odemx-http.git/install/include//Poco/Data/AbstractBinder.h:44:
In file included from
projects/odemx-http.git/install/include//Poco/Data/Date.h:44:
In file included from
projects/odemx-http.git/install/include//Poco/Dynamic/VarHolder.h:54:
In file included from /usr/include/c++/v1/vector:261:
/usr/include/c++/v1/__bit_reference:26:26: error: no type named
'__storage_type' in 'Poco::Data::Statement'
typedef typename _C::__storage_type __storage_type;
~~~~~~~~~~~~~^~~~~~~~~~~~~~
main.cpp:5:36: note: in instantiation of template class
'std::__1::__bit_reference' requested here
std::swap( s1, s2);
^
In file included from main.cpp:1:
In file included from
projects/odemx-http.git/install/include//Poco/Data/Statement.h:44:
In file included from
projects/odemx-http.git/install/include//Poco/Data/StatementImpl.h:44:
In file included from
projects/odemx-http.git/install/include//Poco/Data/AbstractBinding.h:44:
In file included from
projects/odemx-http.git/install/include//Poco/Data/AbstractBinder.h:44:
In file included from
projects/odemx-http.git/install/include//Poco/Data/Date.h:44:
In file included from
projects/odemx-http.git/install/include//Poco/Dynamic/VarHolder.h:54:
In file included from /usr/include/c++/v1/vector:261:
/usr/include/c++/v1/__bit_reference:27:26: error: no type named
'__storage_pointer' in 'Poco::Data::Statement'
typedef typename _C::__storage_pointer __storage_pointer;
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/v1/__bit_reference:33:25: error: no type named '__self' in
'Poco::Data::Statement'
friend typename _C::__self;
~~~~~~~~~~~~~^~~~~~
main.cpp:5:2: error: no matching function for call to 'swap'
std::swap( s1, s2);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/v1/memory:3859:1: note: candidate function [with _Tp =
Poco::Data::Statement] not viable: no known conversion from
'Poco::Data::Statement' to
'shared_ptr &' for 1st argument
swap(shared_ptr<_Tp>& __x, shared_ptr<_Tp>& __y) _NOEXCEPT
^
/usr/include/c++/v1/memory:4040:1: note: candidate function [with _Tp =
Poco::Data::Statement] not viable: no known conversion from
'Poco::Data::Statement' to
'weak_ptr &' for 1st argument
swap(weak_ptr<_Tp>& __x, weak_ptr<_Tp>& __y) _NOEXCEPT
^
/usr/include/c++/v1/__bit_reference:81:1: note: candidate function [with _C =
Poco::Data::Statement] not viable: no known conversion from
'Poco::Data::Statement' to
'__bit_reference' for 1st argument
swap(__bit_reference<_C> __x, bool& __y) _NOEXCEPT
^
/usr/include/c++/v1/__bit_reference:91:1: note: candidate function [with _C =
Poco::Data::Statement] not viable: no known conversion from
'Poco::Data::Statement' to 'bool &'
for 1st argument
swap(bool& __x, __bit_reference<_C> __y) _NOEXCEPT
^
/usr/include/c++/v1/__mutex_base:276:1: note: candidate function [with _Mutex =
Poco::Data::Statement] not viable: no known conversion from
'Poco::Data::Statement' to
'unique_lock &' for 1st argument
swap(unique_lock<_Mutex>& __x, unique_lock<_Mutex>& __y) {__x.swap(__y);}
^
/usr/include/c++/v1/__functional_03:1856:1: note: candidate function [with _F =
Poco::Data::Statement] not viable: no known conversion from
'Poco::Data::Statement' to
'function &' for 1st argument
swap(function<_F>& __x, function<_F>& __y)
^
/usr/include/c++/v1/type_traits:3021:1: note: candidate template ignored:
substitution failure [with _Tp = Poco::Data::Statement]
swap(_Tp& __x, _Tp& __y) _NOEXCEPT_(is_nothrow_move_constructible<_Tp>::value
&&
^
/usr/include/c++/v1/utility:183:1: note: candidate template ignored: failed
template argument deduction
swap(_Tp (&__a)[_N], _Tp (&__b)[_N])
_NOEXCEPT_(__is_nothrow_swappable<_Tp>::value)
^
/usr/include/c++/v1/utility:404:1: note: candidate template ignored: failed
template argument deduction
swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y)
^
/usr/include/c++/v1/memory:2259:1: note: candidate template ignored: failed
template argument deduction
swap(__compressed_pair<_T1, _T2>& __x, __compressed_pair<_T1, _T2>& __y)
^
/usr/include/c++/v1/memory:2682:1: note: candidate template ignored: failed
template argument deduction
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT
{__x.swap(__y);}
^
/usr/include/c++/v1/string:3881:1: note: candidate template ignored: failed
template argument deduction
swap(basic_string<_CharT, _Traits, _Allocator>& __lhs,
^
/usr/include/c++/v1/__bit_reference:71:1: note: candidate template ignored:
failed template argument deduction
swap(__bit_reference<_C> __x, __bit_reference<_D> __y) _NOEXCEPT
^
/usr/include/c++/v1/__split_buffer:638:1: note: candidate template ignored:
failed template argument deduction
swap(__split_buffer<_Tp, _Allocator>& __x, __split_buffer<_Tp, _Allocator>&
__y)
^
/usr/include/c++/v1/vector:2938:1: note: candidate template ignored: failed
template argument deduction
swap(vector<_Tp, _Allocator>& __x, vector<_Tp, _Allocator>& __y)
^
/usr/include/c++/v1/deque:2819:1: note: candidate template ignored: failed
template argument deduction
swap(deque<_Tp, _Allocator>& __x, deque<_Tp, _Allocator>& __y)
^
/usr/include/c++/v1/list:1655:1: note: candidate template ignored: failed
template argument deduction
swap(list<_Tp, _Alloc>& __x, list<_Tp, _Alloc>& __y)
^
/usr/include/c++/v1/__tree:2281:1: note: candidate template ignored: failed
template argument deduction
swap(__tree<_Tp, _Compare, _Allocator>& __x,
^
/usr/include/c++/v1/set:672:1: note: candidate template ignored: failed
template argument deduction
swap(set<_Key, _Compare, _Allocator>& __x,
^
/usr/include/c++/v1/set:1005:1: note: candidate template ignored: failed
template argument deduction
swap(multiset<_Key, _Compare, _Allocator>& __x,
^
/usr/include/c++/v1/map:1406:1: note: candidate template ignored: failed
template argument deduction
swap(map<_Key, _Tp, _Compare, _Allocator>& __x,
^
/usr/include/c++/v1/map:1902:1: note: candidate template ignored: failed
template argument deduction
swap(multimap<_Key, _Tp, _Compare, _Allocator>& __x,
^
/usr/include/c++/v1/sstream:336:1: note: candidate template ignored: failed
template argument deduction
swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x,
^
/usr/include/c++/v1/sstream:613:1: note: candidate template ignored: failed
template argument deduction
swap(basic_istringstream<_CharT, _Traits, _Allocator>& __x,
^
/usr/include/c++/v1/sstream:732:1: note: candidate template ignored: failed
template argument deduction
swap(basic_ostringstream<_CharT, _Traits, _Allocator>& __x,
^
/usr/include/c++/v1/sstream:851:1: note: candidate template ignored: failed
template argument deduction
swap(basic_stringstream<_CharT, _Traits, _Allocator>& __x,
^
5 errors generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Jul 2 10:05:08 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Jul 2011 10:05:08 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10248] compiling Poco with libc++
In-Reply-To:
References:
Message-ID: <20110702150508.BB3E92A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10248
Howard Hinnant changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Howard Hinnant 2011-07-02 10:05:08 CDT ---
The correct way to implement swap is to define it in your own namespace. I
note that this project already does that:
namespace Poco {
namespace Data {
inline void swap(Statement& s1, Statement& s2)
{
s1.swap(s2);
}
} }
The correct way to call swap is:
void test(Poco::Data::Statement& s1, Poco::Data::Statement& s2) {
swap( s1, s2);
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Jul 2 12:14:57 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Jul 2011 12:14:57 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10249] New: Missing functions in string.cpp
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10249
Summary: Missing functions in string.cpp
Product: libc++
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
AssignedTo: hhinnant at apple.com
ReportedBy: jonathan.sauer at gmx.de
CC: llvmbugs at cs.uiuc.edu
The following program compiles, but does not link with clang r134322 and libc++
r134322:
#include
int main(int, char** argv)
{
std::string s;
s.append(argv[0], argv[0] + 1);
}
clang++ -std=c++0x -stdlib=libc++ clang.cpp
Undefined symbols:
"__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendIPcEENS_9enable_ifIXsr21__is_forward_iteratorIT_EE5valueERS5_E4typeES9_S9_",
referenced from:
_main in cc-u2Adwb.o
The reason for this is the missing implementation of a few specialized template
methods in libc++'s string.cpp file (only the prototypes are there).
Commenting the "extern template ..." lines in (lines 3972 to 4020)
makes the problem go away (as the compiler simply instanciates the
non-specialized template methods).
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Jul 2 12:40:59 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Jul 2011 12:40:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10250] New: __bind in is missing copy
constructor
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10250
Summary: __bind in is missing copy constructor
Product: libc++
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
AssignedTo: hhinnant at apple.com
ReportedBy: jonathan.sauer at gmx.de
CC: llvmbugs at cs.uiuc.edu
__bind in is missing a copy constructor, since according to
12.8p18, the implicit copy assignment operator is defined as deleted if a move
copy constructor exists (which is the case in __bind).
C.f. bug 10191.
Sample program:
#include
bool foo(int, bool, float);
template void bar(F);
template
void baz(F f)
{
bar(f);
}
int main(int, char**)
{
baz(std::bind(&foo));
}
And the error:
$ clang++ -std=c++0x -stdlib=libc++ clang.cpp
clang.cpp:10:6: error: call to deleted constructor of 'std::__1::__bind'
bar(f);
^
clang.cpp:15:2: note: in instantiation of function template specialization
'baz >' requested here
baz(std::bind(&foo));
^
/usr/include/c++/v1/functional:1658:7: note: function has been explicitly
marked deleted here
class __bind
^
clang.cpp:5:40: note: passing argument to parameter here
template static void bar(F);
^
1 error generated.
Commenting __bind's move constructor makes the error go away, as the
requirements of 12.8p18 are no longer fulfilled.
My clang version: r134322.
My libc++ version: r134322.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Jul 2 12:55:50 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Jul 2011 12:55:50 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8045] changes in upcoming gdb 7.2 cause failures in
the lookup of C++ functions in clang compiled code
In-Reply-To:
References:
Message-ID: <20110702175550.965102A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8045
Tobias Grosser changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #11 from Tobias Grosser 2011-07-02 12:55:48 CDT ---
I cannot reproduce this bug anymore with gdb-7.2 and clang/LLVM checkout of
today. It probably was solved on the way.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Jul 2 13:22:56 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Jul 2011 13:22:56 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10250] __bind in is missing copy
constructor
In-Reply-To:
References:
Message-ID: <20110702182256.3AA972A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10250
Howard Hinnant changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Howard Hinnant 2011-07-02 13:22:55 CDT ---
Committed revision 134325.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Jul 2 14:44:08 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Jul 2011 14:44:08 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10251] New: Early tail dup still not as good and
duplicating indirectbr in clang
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10251
Summary: Early tail dup still not as good and duplicating
indirectbr in clang
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6813)
--> (http://llvm.org/bugs/attachment.cgi?id=6813)
indirect.patch
Things got a lot better with the new improvements to the coalescer, but
duplicating indirectbr in clang still produces better results.
In jsinterp.o, the current trunk produces:
171419 3904 0 0 175323 2acdb
And duplicating indirectbr in clang produces:
117275 3904 0 0 121179 1d95b
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Jul 2 15:06:07 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Jul 2011 15:06:07 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10252] New: -strong-phi-elim crash
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10252
Summary: -strong-phi-elim crash
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6815)
--> (http://llvm.org/bugs/attachment.cgi?id=6815)
bugpoint-reduced-simplified.bc
llc -strong-phi-elim bugpoint-reduced-simplified.bc
Assertion failed: (SrcVNI), function InsertCopiesForPHI, file
/Users/espindola/llvm/llvm/lib/CodeGen/StrongPHIElimination.cpp, line 677.
0 llc 0x00000001008b32e2 PrintStackTrace(void*) + 34
1 llc 0x00000001008b38d9 SignalHandler(int) + 777
2 libSystem.B.dylib 0x00007fff88ee11ba _sigtramp + 26
3 libSystem.B.dylib 0xffffffffffffffff _sigtramp + 1997663839
4 llc 0x00000001008b3526 abort + 22
5 llc 0x00000001008b34e7 __assert_rtn + 55
6 llc 0x000000010064d1ae (anonymous
namespace)::StrongPHIElimination::runOnMachineFunction(llvm::MachineFunction&)
+ 9790
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Jul 2 16:07:23 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Jul 2011 16:07:23 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10253] New: cannot compile large Boost.Test
testsuites and gives cryptic output (regression)
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10253
Summary: cannot compile large Boost.Test testsuites and gives
cryptic output (regression)
Product: clang
Version: 2.9
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: pogonyshev at gmx.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=6816)
--> (http://llvm.org/bugs/attachment.cgi?id=6816)
file demonstrating the bug
The attached file requires Boost.Test to compile. It is a large test suite of
empty templated tests. When compiled and run with GCC or Clang 2.7 it produces
the expected output: "Running 700 test cases... *** No errors detected".
However, with Clang 2.9 compilation/linkage fails with errors:
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 0 has invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 1 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 2 has invalid symbol index 2
...
Compilation/linkage line is as follows:
$CC -DBOOST_TEST_DYN_LINK test.cpp -o test -lboost_unit_test_framework
with $CC replaced by compiler name.
Additionally, when you remove or comment out last (I guess any) 10 templated
test cases and run the result, Clang 2.9 suddenly works fine, producing
"Running 600 test cases... *** No errors detected" (here 600 is expected, as
100 tests are gone).
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Jul 2 16:25:20 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Jul 2011 16:25:20 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10249] Missing functions in string.cpp
In-Reply-To:
References:
Message-ID: <20110702212520.928B32A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10249
jonathan.sauer at gmx.de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #5 from jonathan.sauer at gmx.de 2011-07-02 16:25:20 CDT ---
Well, it seems that I compiled libc++ with an older version of clang, r133996
to be precise. That resulted in the following symbol in libc++.1.dylib (for
string::append(ForwardIterator, ForwardIterator)):
__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendIPcEENS_9enable_ifIXsrNS_21__is_forward_iteratorIT_EE5valueERS5_E4typeESA_SA_
Now, clang r134322 mangles this as (note the missing "NS" after "ifXsr" and the
differing suffix):
__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendIPcEENS_9enable_ifIXsr21__is_forward_iteratorIT_EE5valueERS5_E4typeES9_S9_
This, of course, resulted in a linker error. And I misread the explicit
instanciation of methods in string.cpp for declarations.
The reason for the change in name mangling seems to be revision 134227:
http://llvm.org/viewvc/llvm-project?view=rev&revision=134227
So, all-clear for libc++. I'm sorry for the noise, and I hope I did not cause
too much work for all involved!
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Jul 2 21:47:25 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Jul 2011 21:47:25 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10242] Related result types for +class and -class
In-Reply-To:
References:
Message-ID: <20110703024725.967892A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10242
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |LATER
--- Comment #1 from Chris Lattner 2011-07-02 21:47:25 CDT ---
We track objective-c language changes internally to apple, since that is where
the decision makers are. The current policy is that we only do this for a
specific set of methods. We are kicking around the idea of making this
generally extensible to arbitrary methods.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Jul 2 21:49:06 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Jul 2011 21:49:06 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10252] -strong-phi-elim crash
In-Reply-To:
References:
Message-ID: <20110703024906.94F892A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10252
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |LATER
--- Comment #1 from Chris Lattner 2011-07-02 21:49:06 CDT ---
strong-phi-elim is still experimental, it doesn't make sense to track
individual bugs in it until someone decides to make it real.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Jul 2 21:58:12 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Jul 2011 21:58:12 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10252] -strong-phi-elim crash
In-Reply-To:
References:
Message-ID: <20110703025812.BBA232A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10252
Cameron Zwarich changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|LATER |
--- Comment #2 from Cameron Zwarich 2011-07-02 21:58:12 CDT ---
Chris, I told him to file the bug so I could at least see why it doesn't work
on his 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 Sat Jul 2 22:24:24 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Jul 2011 22:24:24 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10254] New: Phi with identical arguments not
optimized
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10254
Summary: Phi with identical arguments not optimized
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6818)
--> (http://llvm.org/bugs/attachment.cgi?id=6818)
test.ll
I was curious why early tail dup in CodeGen was seeing trivial bb like
foo:
jmp bar
since I would expect simplifycfg to handle them.
One case I found is attached. We have code that looks like:
----------------------------
bb0: ; preds = %for.body7.i
%gep0 = getelementptr inbounds i8* %call.i.i.i.i, i64 8
%cast0 = bitcast i8* %gep0 to %"class.llvm::MallocAllocator"**
br label %bb2
bb1: ; preds = %for.body7.i
%second.i.i.i.i.i = getelementptr inbounds i8* %call.i.i.i.i, i64 8
%cast1 = bitcast i8* %second.i.i.i.i.i to %"class.llvm::MallocAllocator"**
Use of cast1
br label %bb2
bb2: ; preds = %bb1, %bb0
%.pre-phi.i.i.i = phi %"class.llvm::MallocAllocator"** [ %cast0, %bb0 ], [
%cast1, %bb1 ]
----------------------------
codegenprepare will move gep0 and cast0, making bb0 empty, but that is too late
for simplifycfg. One way to optimize this early would be to move both the gep
and cast to for.body7.i and remove the phi. After that simplifycfg would remove
bb0.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Jul 3 09:10:23 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 3 Jul 2011 09:10:23 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10255] New: Build of llvm-gcc trunk fails on PPC
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10255
Summary: Build of llvm-gcc trunk fails on PPC
Product: tools
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: llvm-gcc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: annulen at yandex.ru
CC: llvmbugs at cs.uiuc.edu
Here is error output:
/Volumes/Development/projects/svn/obj/./gcc/xgcc
-B/Volumes/Development/projects/svn/obj/./gcc/
-B/Volumes/Development/projects/svn/obj/../install/powerpc-apple-darwin9/bin/
-B/Volumes/Development/projects/svn/obj/../install/powerpc-apple-darwin9/lib/
-isystem
/Volumes/Development/projects/svn/obj/../install/powerpc-apple-darwin9/include
-isystem
/Volumes/Development/projects/svn/obj/../install/powerpc-apple-darwin9/sys-include
-mmacosx-version-min=10.4 -O2 -O2 -g -O2 -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include -Wa,-force_cpusubtype_ALL -pipe -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../llvm-gcc/gcc
-I../../llvm-gcc/gcc/. -I../../llvm-gcc/gcc/../include -I./../intl
-I../../llvm-gcc/gcc/../libcpp/include -I../../llvm-gcc/gcc/../libdecnumber
-I../libdecnumber
-I/Volumes/Development/projects/svn/obj/../../git/llvm-build/include
-I/Volumes/Development/projects/git/llvm/include
-isysroot/Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -DL_multc3
-fvisibility=hidden -DHIDE_EXPORTS -c ../../llvm-gcc/gcc/libgcc2.c -o
libgcc/./_multc3.o
Unhandled reg in PPCRegisterInfo::getRegisterNumbering!
UNREACHABLE executed at
/Volumes/Development/projects/git/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp:111!
../../llvm-gcc/gcc/libgcc2.c:1914: internal compiler error: Abort trap
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Jul 3 15:37:27 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 3 Jul 2011 15:37:27 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10256] New: Assertion failed: (!Call.isInvalid() &&
"Call to __builtin_memcpy cannot fail!"),
function DefineImplicitCopyAssignment
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10256
Summary: Assertion failed: (!Call.isInvalid() && "Call to
__builtin_memcpy cannot fail!"), function
DefineImplicitCopyAssignment
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: i.galic at brainsware.org
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
When trying to build this test case:
struct A {
unsigned int i;
volatile int buff[2];
};
int main(int argc, char** argv) {
A a1, a2;
a1 = a2;
return 0;
}
I'll get this error:
igalic at tynix ~/src % /opt/llvm-trunk/bin/clang++ foo.cc
foo.cc:1:8: error: cannot initialize a parameter of type 'void *' with an
rvalue of type 'volatile int (*)[2]'
struct A {
^
foo.cc:8:5: note: implicit default copy assignment operator for 'A' first
required here
a1 = a2;
^
1 error generated.
igalic at tynix ~/src %
Here's the same build with Asserts enabled:
Assertion failed: (!Call.isInvalid() && "Call to __builtin_memcpy cannot
fail!"), function DefineImplicitCopyAssignment, file SemaDeclCXX.cpp, line
7011.
0 clang 0x00000001019215f2 PrintStackTrace(void*) + 34
1 clang 0x0000000101922443 SignalHandler(int) + 707
2 libSystem.B.dylib 0x00007fff80f0d1ba _sigtramp + 26
3 libSystem.B.dylib 0x0000000c030469f0 _sigtramp + 2182322256
4 clang 0x000000010001b102 __assert_rtn + 66
5 clang 0x000000010048edd8
clang::Sema::DefineImplicitCopyAssignment(clang::SourceLocation,
clang::CXXMethodDecl*) + 9336
6 clang 0x00000001004de018
clang::Sema::MarkDeclarationReferenced(clang::SourceLocation, clang::Decl*) +
2216
7 clang 0x00000001005dc311
clang::Sema::CreateOverloadedBinOp(clang::SourceLocation, unsigned int,
clang::UnresolvedSetImpl const&, clang::Expr*, clang::Expr*) + 4433
8 clang 0x00000001005306f1 clang::Sema::BuildBinOp(clang::Scope*,
clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*) +
241
9 clang 0x0000000100530a17 clang::Sema::ActOnBinOp(clang::Scope*,
clang::SourceLocation, clang::tok::TokenKind, clang::Expr*, clang::Expr*) + 455
10 clang 0x0000000100358bf2
clang::Parser::ParseRHSOfBinaryExpression(clang::ActionResult, clang::prec::Level) + 594
11 clang 0x0000000100357c27
clang::Parser::ParseAssignmentExpression() + 87
12 clang 0x0000000100359901 clang::Parser::ParseExpression() + 17
13 clang 0x0000000100381019
clang::Parser::ParseExprStatement(clang::ParsedAttributes&) + 73
14 clang 0x000000010037d042
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector&, bool) + 2130
15 clang 0x000000010037e056
clang::Parser::ParseCompoundStatementBody(bool) + 1526
16 clang 0x000000010037e609
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 201
17 clang 0x0000000100396bca
clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&) + 1130
18 clang 0x0000000100336abc
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 2860
19 clang 0x0000000100397e48
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AccessSpecifier) + 168
20 clang 0x00000001003982ce
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&,
clang::AccessSpecifier) + 478
21 clang 0x0000000100398ec3
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 2931
22 clang 0x00000001003995ca
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 554
23 clang 0x00000001003295fb clang::ParseAST(clang::Sema&, bool) +
299
24 clang 0x00000001002f41cc clang::CodeGenAction::ExecuteAction() +
60
25 clang 0x000000010005a521
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 433
26 clang 0x00000001000258f7
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1527
27 clang 0x000000010001c421 cc1_main(char const**, char const**,
char const*, void*) + 577
28 clang 0x000000010002472e main + 4526
29 clang 0x000000010001b854 start + 52
Stack dump:
0. Program arguments: /Users/thakis/src/llvm-rw/Release+Asserts/bin/clang
-cc1 -triple x86_64-apple-macosx10.6.8 -emit-obj -mrelax-all -disable-free
-main-file-name test.cc -pic-level 1 -mdisable-fp-elim -masm-verbose
-munwind-tables -target-cpu core2 -target-linker-version 97.17 -coverage-file
test.o -resource-dir
/Users/thakis/src/llvm-rw/Release+Asserts/bin/../lib/clang/3.0
-fdeprecated-macro -ferror-limit 19 -fmessage-length 141 -stack-protector 1
-fblocks -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -o test.o -x c++ test.cc
1. test.cc:8:10: current parser token ';'
2. test.cc:6:33: parsing function body 'main'
3. test.cc:6:33: in compound statement ('{}')
clang: error: unable to execute command: Illegal instruction
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Jul 3 16:14:06 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 3 Jul 2011 16:14:06 -0500 (CDT)
Subject: [LLVMbugs] [Bug 5137] clang --print-file-name prints library for
the wrong architecture
In-Reply-To:
References:
Message-ID: <20110703211406.1AEF62A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5137
Carl-Daniel Hailfinger changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Carl-Daniel Hailfinger 2011-07-03 16:14:05 CDT ---
"clang --print-file-name" now works as expected.
T?r?k Edwin: Can you please open a separate bug for -print-multi-os-directory
which you mentioned in comment #1? That issue is still unfixed.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Jul 3 17:07:49 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 3 Jul 2011 17:07:49 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10257] New: clang -arch FOO is ignored
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10257
Summary: clang -arch FOO is ignored
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: c-d.hailfinger.devel.2006 at gmx.net
CC: llvmbugs at cs.uiuc.edu
compiler at p35:> clang -arch ppc test.c
clang-3: warning: argument unused during compilation: '-arch ppc'
As mentioned in the clang man page and in
http://clang.llvm.org/docs/DriverInternals.html, "clang -arch FOO" should allow
specifying the target architecture.
More info:
compiler at p35:> clang -ccc-print-options -arch ppc test.c
Option 0 - Name: "-ccc-print-options", Values: {}
Option 1 - Name: "-arch", Values: {"ppc"}
Option 2 - Name: "", Values: {"test.c"}
compiler at p35:> clang -ccc-print-bindings -arch ppc test.c
# "i386-pc-linux-gnu" - "clang", inputs: ["test.c"], output: "/tmp/cc-aluQvo.o"
# "i386-pc-linux-gnu" - "linux::Link", inputs: ["/tmp/cc-aluQvo.o"], output:
"a.out"
clang-3: warning: argument unused during compilation: '-arch ppc'
compiler at p35:> clang --version
SUSE Linux clang version 3.0 (trunk 132667) (based on LLVM 3.0)
Target: i386-pc-linux-gnu
Thread model: posix
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Jul 3 18:13:57 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 3 Jul 2011 18:13:57 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10258] New: "cannot select" on ARM with
variable-index insertelement
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10258
Summary: "cannot select" on ARM with variable-index
insertelement
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu
define <8 x i16> @f(<8 x i16> %a, i16 %b, i32 %c) nounwind readnone {
entry:
%r = insertelement <8 x i16> %a, i16 %b, i32 %c
ret <8 x i16> %r
}
$ llc -march=arm -mcpu=cortex-a9 test.ll
LLVM ERROR: Cannot select: 0x101831710: v8i16 = insert_vector_elt 0x101831010,
0x101831310, 0x101831510 [ORD=1] [ID=24]
0x101831010: v8i16 = bitcast 0x101833110 [ORD=1] [ID=23]
0x101833110: v2f64 = ARMISD::BUILD_VECTOR 0x10182fc10, 0x101830110 [ID=22]
0x10182fc10: f64 = ARMISD::VMOVDRR 0x10182f910, 0x10182fb10 [ORD=1]
[ID=20]
0x10182f910: i32,ch = CopyFromReg 0x10141a6f8, 0x10182f810 [ORD=1]
[ID=14]
0x10182f810: i32 = Register %vreg0 [ORD=1] [ID=1]
0x10182fb10: i32,ch = CopyFromReg 0x10141a6f8, 0x10182fa10 [ORD=1]
[ID=15]
0x10182fa10: i32 = Register %vreg1 [ORD=1] [ID=2]
0x101830110: f64 = ARMISD::VMOVDRR 0x10182fe10, 0x101830010 [ORD=1]
[ID=21]
0x10182fe10: i32,ch = CopyFromReg 0x10141a6f8, 0x10182fd10 [ORD=1]
[ID=16]
0x10182fd10: i32 = Register %vreg2 [ORD=1] [ID=3]
0x101830010: i32,ch = CopyFromReg 0x10141a6f8, 0x10182ff10 [ORD=1]
[ID=17]
0x10182ff10: i32 = Register %vreg3 [ORD=1] [ID=4]
0x101831310: i32,ch = load 0x10141a6f8, 0x101831110,
0x101831210 [ID=18]
0x101831110: i32 = FrameIndex<-1> [ORD=1] [ID=7]
0x101831210: i32 = undef [ORD=1] [ID=8]
0x101831510: i32,ch = load 0x10141a6f8, 0x101831410,
0x101831210 [ORD=1] [ID=19]
0x101831410: i32 = FrameIndex<-2> [ORD=1] [ID=9]
0x101831210: i32 = undef [ORD=1] [ID=8]
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Jul 3 19:06:21 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 3 Jul 2011 19:06:21 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10244] `!Traits::stopLess(b,
a) && "Invalid interval"' failed.
In-Reply-To:
References:
Message-ID: <20110704000621.0D5F92A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10244
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Jakob Stoklund Olesen 2011-07-03 19:06:20 CDT ---
r134369
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 4 00:14:56 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Jul 2011 00:14:56 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10259] New: Fake ambiguity between scoped
redeclaration of class found via inline anonymous namespace
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10259
Summary: Fake ambiguity between scoped redeclaration of class
found via inline anonymous namespace
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rjmccall at apple.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
// scoped declaration fails (correctly: [namespace.qual]p7) if namespace isn't
inline
// works if namespace isn't anonymous
inline namespace {
class A;
}
// if not scoped, ambiguity is real, no bug
class ::A {};
A a;
daysthatwere:trunk glamr$ clang -std=c++0x /tmp/red3.cpp
/tmp/red3.cpp:5:1: error: reference to 'A' is ambiguous
A a;
^
/tmp/red3.cpp:4:9: note: candidate found by name lookup is 'A'
class ::A {};
^
/tmp/red3.cpp:2:9: note: candidate found by name lookup is '::A'
class A;
^
/tmp/red3.cpp:5:3: error: variable has incomplete type '::A'
A a;
^
/tmp/red3.cpp:2:9: note: forward declaration of '::A'
class A;
^
2 errors generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 4 00:44:05 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Jul 2011 00:44:05 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10260] New: IRgen assert from instantiating
initializer pack expansion with empty pack
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10260
Summary: IRgen assert from instantiating initializer pack
expansion with empty pack
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rjmccall at apple.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
struct A {};
struct B : public A {};
template static void foo(T &&...ts) {
A *printerArray[sizeof...(T) ? sizeof...(T) : 1] = { (&ts)... };
}
void test() {
foo();
}
daysthatwere:trunk glamr$ clang -std=c++0x /tmp/red3.cpp
Assertion failed: (E && hasAggregateLLVMType(E->getType()) && "Invalid
aggregate expression to emit"), function EmitAggExpr, file CGExprAgg.cpp, line
904.
0 clang 0x0000000102025835 PrintStackTrace(void*) + 53
1 clang 0x0000000102025dfb SignalHandler(int) + 379
2 libSystem.B.dylib 0x00007fff8718a66a _sigtramp + 26
3 libSystem.B.dylib 0x0000000000000014 _sigtramp + 2028427716
4 clang 0x000000010004252b raise + 27
5 clang 0x00000001000425ea abort + 26
6 clang 0x00000001000425c4 __assert_rtn + 132
7 clang 0x00000001003127f8
clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 184
8 clang 0x00000001002eaec6
clang::CodeGen::CodeGenFunction::EmitExprAsInit(clang::Expr const*,
clang::ValueDecl const*, clang::CodeGen::LValue, bool) + 1190
9 clang 0x00000001002e9a00
clang::CodeGen::CodeGenFunction::EmitAutoVarInit(clang::CodeGen::CodeGenFunction::AutoVarEmission
const&) + 880
10 clang 0x00000001002e6cca
clang::CodeGen::CodeGenFunction::EmitAutoVarDecl(clang::VarDecl const&) + 58
11 clang 0x00000001002e6bc8
clang::CodeGen::CodeGenFunction::EmitVarDecl(clang::VarDecl const&) + 120
12 clang 0x00000001002e6a0b
clang::CodeGen::CodeGenFunction::EmitDecl(clang::Decl const&) + 219
13 clang 0x00000001003bb62f
clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt const&) + 143
14 clang 0x00000001003b5ba2
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 290
15 clang 0x00000001003b54a1
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 113
16 clang 0x00000001003bb37d
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 445
17 clang 0x00000001003b5b80
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 256
18 clang 0x00000001003b54a1
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 113
19 clang 0x00000001003f2e2c
clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::CodeGen::FunctionArgList&)
+ 172
20 clang 0x00000001003f3205
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 965
21 clang 0x00000001003fdf11
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl)
+ 1297
22 clang 0x00000001003fba76
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 678
23 clang 0x00000001003f8b35
clang::CodeGen::CodeGenModule::EmitDeferred() + 565
24 clang 0x00000001003f8799
clang::CodeGen::CodeGenModule::Release() + 25
25 clang 0x0000000100420d51 (anonymous
namespace)::CodeGeneratorImpl::HandleTranslationUnit(clang::ASTContext&) + 161
26 clang 0x00000001003f022b
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 139
27 clang 0x0000000100430992 clang::ParseAST(clang::Sema&, bool) +
850
28 clang 0x00000001000ebd0c
clang::ASTFrontendAction::ExecuteAction() + 284
29 clang 0x00000001003eed62 clang::CodeGenAction::ExecuteAction() +
1250
30 clang 0x00000001000eb8c8 clang::FrontendAction::Execute() + 360
31 clang 0x00000001000c5ab6
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1078
32 clang 0x0000000100059e7c
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1132
33 clang 0x0000000100045d64 cc1_main(char const**, char const**,
char const*, void*) + 1252
34 clang 0x00000001000533ad main + 701
35 clang 0x0000000100045874 start + 52
36 clang 0x0000000000000026 start + 4294682598
Stack dump:
0. Program arguments: /Volumes/Data/llvm/Debug+Asserts/bin/clang -cc1
-triple x86_64-apple-macosx10.6.7 -emit-obj -mrelax-all -disable-free
-main-file-name red3.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose
-munwind-tables -target-cpu core2 -target-linker-version 97.17 -resource-dir
/Volumes/Data/llvm/Debug+Asserts/bin/../lib/clang/3.0 -std=c++0x
-fdeprecated-macro -ferror-limit 19 -fmessage-length 85 -stack-protector 1
-fblocks -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -o
/var/folders/s9/s96FsWmjFfOmejEGjQKJMU+++TI/-Tmp-/cc-rTiryX.o -x c++
/tmp/red3.cpp
1. parser at end of file
2. Per-file LLVM IR generation
3. /tmp/red3.cpp:4:35: Generating code for declaration 'foo'
4. /tmp/red3.cpp:4:50: LLVM IR generation of compound statement ('{}')
clang: error: unable to execute command: Illegal instruction
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 4 01:12:17 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Jul 2011 01:12:17 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10261] New: tblgen assert when building clang from
trunk
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10261
Summary: tblgen assert when building clang from trunk
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: TableGen
AssignedTo: unassignedbugs at nondot.org
ReportedBy: oyvind.harboe at zylin.com
CC: llvmbugs at cs.uiuc.edu
../llvm/configure --enable-optimized
make
(tried without optimized too)
=>
llvm[5]: Building Clang attribute classes with tblgen
tblgen: /home/oyvind/llvm/llvm/utils/TableGen/ClangAttrEmitter.cpp:479: virtual
void llvm::ClangAttrClassEmitter::run(llvm::raw_ostream&): Assertion `Arg'
failed.
0 tblgen 0x000000000054fb7f
1 tblgen 0x000000000055095c
2 libpthread.so.0 0x00002b2ad611ec60
3 libc.so.6 0x00002b2ad6d07d05 gsignal + 53
4 libc.so.6 0x00002b2ad6d0bab6 abort + 390
5 libc.so.6 0x00002b2ad6d007c5 __assert_fail + 245
6 tblgen 0x000000000043e8df
7 tblgen 0x0000000000528a9f
8 libc.so.6 0x00002b2ad6cf2eff __libc_start_main + 255
9 tblgen 0x0000000000406349
Stack dump:
0. Program arguments: /home/oyvind/llvm/build/Release+Asserts/bin/tblgen -I
/home/oyvind/llvm/llvm/tools/clang/include/clang/AST -I
/home/oyvind/llvm/llvm/include -I /home/oyvind/llvm/llvm/include -I
/home/oyvind/llvm/llvm/lib/Target -gen-clang-attr-classes -o
/home/oyvind/llvm/build/tools/clang/include/clang/AST/Release+Asserts/Attrs.inc.tmp
-I /home/oyvind/llvm/llvm/tools/clang/include/clang/AST/../../
/home/oyvind/llvm/llvm/tools/clang/include/clang/AST/../Basic/Attr.td
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 4 02:50:27 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Jul 2011 02:50:27 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10263] New: Wrong definition of ftrunc.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10263
Summary: Wrong definition of ftrunc.
Product: tools
Version: 2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: llc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: hranac.bz at email.cz
CC: llvmbugs at cs.uiuc.edu
Node ftrunc is defined as such:
def SDTFPUnaryOp: SDTypeProfile<1, 1, [
SDTCisSameAs<0, 1>, SDTCisFP<0>
]>;
def ftrunc: SDNode<"ISD::FTRUNC", SDTFPUnaryOp>;
Because of this, ftrunc is unuseable (which is probably the reason why no
official backends use this node).
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 4 05:14:00 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Jul 2011 05:14:00 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10264] New: Rejects-valid and sometimes a crash
with defining fixed enums out of scope
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10264
Summary: Rejects-valid and sometimes a crash with defining
fixed enums out of scope
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rjmccall at apple.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
In my original test case, this didn't crash, but it still rejected what I
believe is valid code. This is probably just a matter of protecting colons
when parsing nested names on enum specifiers. However, it also suggests that
we aren't handling incomplete enums safely when they're the base of a nested
name; i.e. ns::A::foo should not lead to crashes when A is an incomplete
unscoped enum.
daysthatwere:trunk clang$ cat /tmp/red3.cpp
namespace ns {
typedef unsigned type;
enum A : ns::type;
}
enum ns::A : ns::type {
X
};
daysthatwere:trunk clang$ clang -std=c++0x /tmp/red3.cpp
/tmp/red3.cpp:6:12: error: unexpected ':' in nested name specifier
enum ns::A : ns::type {
^
::
Assertion failed: ((!isa(LookupCtx) || LookupCtx->isDependentContext()
|| cast(LookupCtx)->isDefinition() ||
Context.getTypeDeclType(cast(LookupCtx))->getAs()
->isBeingDefined()) && "Declaration context must already be complete!"),
function LookupQualifiedName, file SemaLookup.cpp, line 1334.
0 clang 0x0000000102025835 PrintStackTrace(void*) + 53
1 clang 0x0000000102025dfb SignalHandler(int) + 379
2 libSystem.B.dylib 0x00007fff8718a66a _sigtramp + 26
3 clang 0x0000000100fb99ce clang::EnumType::classof(clang::TagType
const*) + 30
4 clang 0x000000010004252b raise + 27
5 clang 0x00000001000425ea abort + 26
6 clang 0x00000001000425c4 __assert_rtn + 132
7 clang 0x00000001006fbc3f
clang::Sema::LookupQualifiedName(clang::LookupResult&, clang::DeclContext*,
bool) + 495
8 clang 0x00000001004fd999
clang::Sema::BuildCXXNestedNameSpecifier(clang::Scope*, clang::IdentifierInfo&,
clang::SourceLocation, clang::SourceLocation, clang::QualType, bool,
clang::CXXScopeSpec&, clang::NamedDecl*, bool) + 937
9 clang 0x00000001004ff2f7
clang::Sema::ActOnCXXNestedNameSpecifier(clang::Scope*, clang::IdentifierInfo&,
clang::SourceLocation, clang::SourceLocation,
clang::OpaquePtr, bool, clang::CXXScopeSpec&) + 263
10 clang 0x000000010046c040
clang::Parser::ParseOptionalCXXScopeSpecifier(clang::CXXScopeSpec&,
clang::OpaquePtr, bool, bool*, bool) + 4896
11 clang 0x000000010043f04e
clang::Parser::ParseEnumSpecifier(clang::SourceLocation, clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier) + 382
12 clang 0x000000010043c296
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext) + 10534
13 clang 0x00000001004a8e69
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AccessSpecifier) + 137
14 clang 0x00000001004a93a0
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&,
clang::AccessSpecifier) + 96
15 clang 0x00000001004a84d1
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 3681
16 clang 0x00000001004a7623
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 451
17 clang 0x00000001004307cc clang::ParseAST(clang::Sema&, bool) +
396
18 clang 0x00000001000ebd0c
clang::ASTFrontendAction::ExecuteAction() + 284
19 clang 0x00000001003eed62 clang::CodeGenAction::ExecuteAction() +
1250
20 clang 0x00000001000eb8c8 clang::FrontendAction::Execute() + 360
21 clang 0x00000001000c5ab6
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1078
22 clang 0x0000000100059e7c
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1132
23 clang 0x0000000100045d64 cc1_main(char const**, char const**,
char const*, void*) + 1252
24 clang 0x00000001000533ad main + 701
25 clang 0x0000000100045874 start + 52
26 clang 0x0000000000000026 start + 4294682598
Stack dump:
0. Program arguments: /Volumes/Data/llvm/Debug+Asserts/bin/clang -cc1
-triple x86_64-apple-macosx10.6.7 -emit-obj -mrelax-all -disable-free
-main-file-name red3.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose
-munwind-tables -target-cpu core2 -target-linker-version 97.17 -resource-dir
/Volumes/Data/llvm/Debug+Asserts/bin/../lib/clang/3.0 -std=c++0x
-fdeprecated-macro -ferror-limit 19 -fmessage-length 85 -stack-protector 1
-fblocks -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -o
/var/folders/s9/s96FsWmjFfOmejEGjQKJMU+++TI/-Tmp-/cc-8cHSPp.o -x c++
/tmp/red3.cpp
1. /tmp/red3.cpp:6:18: current parser token 'type'
clang: error: unable to execute command: Illegal instruction
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 4 07:31:01 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Jul 2011 07:31:01 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10265] New: variable 's_rand_seed' is uninitialized
when used within its own initialization
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10265
Summary: variable 's_rand_seed' is uninitialized when used
within its own initialization
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: i.galic at brainsware.org
CC: llvmbugs at cs.uiuc.edu
lib/ts/ink_auth_api.cc|30 col 39| error: variable 's_rand_seed' is
uninitialized when used within its own initialization [-Werror,-Wuninitialized]
|| static int s_rand_seed = time(NULL) + s_rand_seed;
|| ~~~~~~~~~~~ ^~~~~~~~~~~
|| 1 error generated.
This is a bogus warning, not because the code isn't terrible, but because
variables with static storage duration are zero-initialized prior to dynamic
initialization.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 4 07:34:44 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Jul 2011 07:34:44 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10266] New: MC does not recognise hyphenated VIA
instructions
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10266
Summary: MC does not recognise hyphenated VIA instructions
Product: libraries
Version: trunk
Platform: Other
OS/Version: OpenBSD
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jsg at openbsd.org
CC: llvmbugs at cs.uiuc.edu
binutils has the VIA instructions in both the hyphenated form as used in the
VIA documentation and without. It seems LLVM only has the form without the
hyphens.
xstore-rng
xcrypt-ecb
xcrypt-cbc
xcrypt-ctr
xcrypt-cfb
xcrypt-ofb
These instructions are used in both the kernel and userland (OpenSSL) of at
least OpenBSD. So it shows when using clang with the builtin assembler:
/usr/src/lib/libssl/crypto/../src/crypto/engine/hw_cryptodev.c:637:19: error:
invalid instruction mnemonic 'xcrypt'
__asm __volatile("rep xcrypt-cbc" :
^
:1:6: note: instantiated into assembly here
rep xcrypt-cbc
^
Is it possible to add aliases so both sets of names can co-exist?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 4 14:38:30 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Jul 2011 14:38:30 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10267] New: instcombine deoptimizes testcase
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10267
Summary: instcombine deoptimizes testcase
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
In the attached testcase, instcombine converts
%tmp2 = ptrtoint %struct.Shape* %tmp9 to i64
%and = and i64 %tmp2, -2
%tmp5 = inttoptr i64 %and to %struct.Shape*
%tobool = icmp ne %struct.Shape* %tmp5, null
br i1 %tobool, label %land.lhs.true, label %if.end
land.lhs.true: ; preds = %entry
%propid = getelementptr inbounds %struct.Shape* %tmp5, i32 0, i32 2
to
%tobool = icmp ugt %struct.Shape* %tmp9, inttoptr (i64 1 to %struct.Shape*)
br i1 %tobool, label %land.lhs.true, label %if.end
land.lhs.true: ; preds = %entry
%tmp2 = ptrtoint %struct.Shape* %tmp9 to i64
%and = and i64 %tmp2, -2
%tmp5 = inttoptr i64 %and to %struct.Shape*
%propid = getelementptr inbounds %struct.Shape* %tmp5, i64 0, i32 2
The first one produces:
movq (%rcx,%rax,8), %rdx
andq $-2, %rdx
je LBB0_3
## BB#1: ## %land.lhs.true
cmpq %rdi, 8(%rdx)
jne LBB0_3
The second one produces
movq (%rcx,%rax,8), %rdx
cmpq $2, %rdx
jb LBB0_3
## BB#1: ## %land.lhs.true
andq $-2, %rdx
cmpq %rdi, 8(%rdx)
jne LBB0_3
Note the extra "cmpq $2, %rdx"
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 4 15:15:14 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Jul 2011 15:15:14 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10268] New: poor location for type mismatch
diagnostic
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10268
Summary: poor location for type mismatch diagnostic
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: clattner at apple.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
I got this today:
LinkModules.cpp:419:11: error: no matching function for call to
'LinkAppendingVars'
if (LinkAppendingVars(DGV, SGV, ValueMap, Error)) return true;
^~~~~~~~~~~~~~~~~
LinkModules.cpp:278:13: note: candidate function not viable: cannot convert
from base class pointer 'llvm::GlobalValue *' to derived class pointer
'llvm::GlobalVariable *' for 1st argument
static bool LinkAppendingVars(GlobalVariable *DstGV, GlobalVariable *SrcGV,
^
Why is it pointing to and underlining "LinkAppendingVars"? It should point to
the function and underline the "1st argument". Likewise, the note should point
to the first argument (DstGV) as well.
-Chris
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 4 15:17:39 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Jul 2011 15:17:39 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10267] instcombine deoptimizes testcase
In-Reply-To:
References:
Message-ID: <20110704201739.85E212A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10267
Benjamin Kramer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |benny.kra at gmail.com
Resolution| |FIXED
--- Comment #2 from Benjamin Kramer 2011-07-04 15:17:39 CDT ---
r134379 should help, thanks for finding this issue :)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 4 16:06:41 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Jul 2011 16:06:41 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10269] New: "PCMULQDQ" not disassembled
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10269
Summary: "PCMULQDQ" not disassembled
Product: tools
Version: 2.9
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: llvm-as
AssignedTo: unassignedbugs at nondot.org
ReportedBy: kkhoo at perfwizard.com
CC: llvmbugs at cs.uiuc.edu
According to the "Intel? 64 and IA-32 Architectures Software Developer?s Manual
Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 4-75:
66 0F 3A 44 /r ib
PCLMULQDQ
$ echo '0x66 0x0f 0x3a 0x44 0xc8 0x01'| ./llvm-mc -disassemble -triple="x86_64"
:1:1: warning: invalid instruction encoding
0x66 0x0f 0x3a 0x44 0xc8 0x01
^
:1:21: warning: invalid instruction encoding
0x66 0x0f 0x3a 0x44 0xc8 0x01
^
:1:26: warning: invalid instruction encoding
0x66 0x0f 0x3a 0x44 0xc8 0x01
^
$ ./llvm-mc -version
Low Level Virtual Machine (http://llvm.org/):
llvm version 2.9
Optimized build.
Built Jun 20 2011 (12:11:38).
Host: i386-apple-darwin10
Host CPU: corei7
Registered Targets:
alpha - Alpha [experimental]
arm - ARM
bfin - Analog Devices Blackfin [experimental]
c - C backend
cellspu - STI CBEA Cell SPU [experimental]
cpp - C++ backend
mblaze - MBlaze
mips - Mips
mipsel - Mipsel
msp430 - MSP430 [experimental]
ppc32 - PowerPC 32
ppc64 - PowerPC 64
ptx - PTX
sparc - Sparc
sparcv9 - Sparc V9
systemz - SystemZ
thumb - Thumb
x86 - 32-bit X86: Pentium-Pro and above
x86-64 - 64-bit X86: EM64T and AMD64
xcore - XCore
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 4 16:47:06 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Jul 2011 16:47:06 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10270] New: [C++] aborts during compilation
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10270
Summary: [C++] aborts during compilation
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: pipping at exherbo.org
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=6824)
--> (http://llvm.org/bugs/attachment.cgi?id=6824)
xz-compressed output of -save-temps
During compilation of "single.cpp" from eigen-3.0.1
pipping at bogus /home/pipping % clang++ -c single.ii
clang: SemaOverload.cpp:8753: ExprResult
clang::Sema::CreateOverloadedBinOp(clang::SourceLocation, unsigned int, const
clang::UnresolvedSetImpl &, clang::Expr *, clang::Expr *): Assertion
`Result.isInvalid() && "C++ binary operator overloading is missing
candidates!"' failed.
0 libLLVM-3.0svn.so 0x00007f69a56bc78f
1 libLLVM-3.0svn.so 0x00007f69a56bcb81
2 libpthread.so.0 0x00007f69a4697ff0
3 libc.so.6 0x00007f69a39b5605 gsignal + 53
4 libc.so.6 0x00007f69a39b6905 abort + 389
5 libc.so.6 0x00007f69a39ae235 __assert_fail + 245
6 clang 0x0000000000de0d82
7 clang 0x0000000000d7502c clang::Sema::BuildBinOp(clang::Scope*,
clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*) +
300
8 clang 0x0000000000e6060f
9 clang 0x0000000000e5a740
10 clang 0x0000000000e5a3d1
11 clang 0x0000000000e66407
12 clang 0x0000000000e5a037
13 clang 0x0000000000e6a7ac
14 clang 0x0000000000e5a0cb
15 clang 0x0000000000e66407
16 clang 0x0000000000e5a037
17 clang 0x0000000000e6aae7
18 clang 0x0000000000e5a115
19 clang 0x0000000000e66407
20 clang 0x0000000000e5a037
21 clang 0x0000000000e6aae7
22 clang 0x0000000000e5a115
23 clang 0x0000000000e66407
24 clang 0x0000000000e5a037
25 clang 0x0000000000e59f0e clang::Sema::SubstStmt(clang::Stmt*,
clang::MultiLevelTemplateArgumentList const&) + 94
26 clang 0x0000000000e7b182
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 1570
27 clang 0x0000000000e7bce4
clang::Sema::PerformPendingInstantiations(bool) + 388
28 clang 0x0000000000cbbf8f
clang::Sema::ActOnEndOfTranslationUnit() + 239
29 clang 0x0000000000c8b966
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 150
30 clang 0x0000000000c7505f clang::ParseAST(clang::Sema&, bool) +
303
31 clang 0x0000000000b734df clang::CodeGenAction::ExecuteAction() +
623
32 clang 0x0000000000a968b7 clang::FrontendAction::Execute() + 231
33 clang 0x0000000000a842ea
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 506
34 clang 0x0000000000a4fef0
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 640
35 clang 0x0000000000a460d7 cc1_main(char const**, char const**,
char const*, void*) + 647
36 clang 0x0000000000a4c680 main + 368
37 libc.so.6 0x00007f69a39a1c7d __libc_start_main + 253
38 clang 0x0000000000a45d89
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -mrelax-all -disable-free -main-file-name single.ii
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -target-linker-version 2.21
-momit-leaf-frame-pointer -coverage-file single.o -resource-dir
/usr/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length
238 -fgnu-runtime -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -o single.o -x c++-cpp-output single.ii
1. parser at end of file
2. /home/pipping/eigen-3.0.1/Eigen/src/Jacobi/Jacobi.h:306:6:
instantiating function definition 'apply_rotation_in_the_plane'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
pipping at bogus /home/pipping %
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 4 20:35:53 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Jul 2011 20:35:53 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10271] New: Add contains() to ImmutableList
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10271
Summary: Add contains() to ImmutableList
Product: new-bugs
Version: trunk
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rpaulo at apple.com
CC: llvmbugs at cs.uiuc.edu
I would like to have a contains() method in ImmutableList so I can use it in
clang: GRStateTrail / PthreadLockChecker. Attached is a patch.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 4 23:55:22 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Jul 2011 23:55:22 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10272] New: attribute in method in template class
doesn't survive instantiation
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10272
Summary: attribute in method in template class doesn't survive
instantiation
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Given:
template struct Vector {
void growStorageBy();
};
template __attribute__((noinline)) void Vector::growStorageBy() {
}
void foo() {
Vector strs;
strs.growStorageBy();
}
clang produces:
define linkonce_odr void @_ZN6VectorIiE13growStorageByEv(%struct.Vector* %this)
nounwind align 2 {
Note that the noinline is missing.
Adding
for (DeclContext::decl_iterator I = Tmpl->getDeclContext()->decls_begin(),
E = Tmpl->getDeclContext()->decls_end(); I != E; ++I) {
Decl *D = *I;
for (AttrVec::const_iterator i = D->attr_begin(), e = D->attr_end();
i != e; ++i) {
const Attr *TmplAttr = *i;
if (TmplAttr->getKind() == clang::attr::NoInline) {
assert(0 && "foo");
}
}
}
to Sema::InstantiateAttrs hits the assert, so the attribute is available in a
redeclaration. Now, I don't know if the attribute should have been merged at
this point or if Sema::InstantiateAttrs should walk redeclations.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 4 23:58:54 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Jul 2011 23:58:54 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10273] New: clang++ asserts when including
Boost.Spirit header
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10273
Summary: clang++ asserts when including Boost.Spirit header
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: tziltzal at y7mail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
compiling:
#include
int main() { }
by issuing:
/usr/local/bin/clang++ -o CMakeFiles/test.dir/test.cpp.o -c
/home/user/Sources/test/test.cpp (through cmake finding boost 1.44)
produced:
clang: /usr/src/llvm/tools/clang/lib/AST/Decl.cpp:1683: void
clang::FunctionDecl::setParams(clang::ASTContext&, clang::ParmVarDecl**,
unsigned int): Assertion `NumParams == getNumParams() && "Parameter count
mismatch!"' failed.
0 clang 0x0000000001bc97ff
1 clang 0x0000000001bca33a
2 libpthread.so.0 0x000000370780eeb0
3 libc.so.6 0x0000003706c330c5 gsignal + 53
4 libc.so.6 0x0000003706c34a76 abort + 390
5 libc.so.6 0x0000003706c2b905 __assert_fail + 245
6 clang 0x0000000000f39acc
7 clang 0x0000000000bfcce4
clang::TemplateDeclInstantiator::VisitFunctionDecl(clang::FunctionDecl*,
clang::TemplateParameterList*) + 1076
8 clang 0x0000000000bfbfad clang::Sema::SubstDecl(clang::Decl*,
clang::DeclContext*, clang::MultiLevelTemplateArgumentList const&) + 125
9 clang 0x0000000000bc9d1c
clang::Sema::FinishTemplateArgumentDeduction(clang::FunctionTemplateDecl*,
llvm::SmallVectorImpl&, unsigned int,
clang::FunctionDecl*&, clang::sema::TemplateDeductionInfo&,
llvm::SmallVectorImpl const*) + 2636
10 clang 0x0000000000bcb589
clang::Sema::DeduceTemplateArguments(clang::FunctionTemplateDecl*,
clang::TemplateArgumentListInfo*, clang::Expr**, unsigned int,
clang::FunctionDecl*&, clang::sema::TemplateDeductionInfo&) + 1065
11 clang 0x0000000000b369a9
clang::Sema::AddTemplateOverloadCandidate(clang::FunctionTemplateDecl*,
clang::DeclAccessPair, clang::TemplateArgumentListInfo*, clang::Expr**,
unsigned int, clang::OverloadCandidateSet&, bool) + 393
12 clang 0x0000000000b4295b
clang::Sema::AddOverloadedCallCandidates(clang::UnresolvedLookupExpr*,
clang::Expr**, unsigned int, clang::OverloadCandidateSet&, bool) + 219
13 clang 0x0000000000b42c20
clang::Sema::BuildOverloadedCallExpr(clang::Scope*, clang::Expr*,
clang::UnresolvedLookupExpr*, clang::SourceLocation, clang::Expr**, unsigned
int, clang::SourceLocation, clang::Expr*) + 208
14 clang 0x0000000000abd87a clang::Sema::ActOnCallExpr(clang::Scope*,
clang::Expr*, clang::SourceLocation, clang::ASTMultiPtr,
clang::SourceLocation, clang::Expr*) + 778
15 clang 0x00000000009744bc
clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult) + 2332
16 clang 0x000000000096e75b clang::Parser::ParseCastExpression(bool,
bool, bool&, bool) + 203
17 clang 0x0000000000970bfe clang::Parser::ParseCastExpression(bool,
bool, bool) + 46
18 clang 0x000000000096fb81 clang::Parser::ParseCastExpression(bool,
bool, bool&, bool) + 5361
19 clang 0x0000000000970bfe clang::Parser::ParseCastExpression(bool,
bool, bool) + 46
20 clang 0x00000000009716a2
clang::Parser::ParseAssignmentExpression() + 34
21 clang 0x0000000000972389 clang::Parser::ParseExpression() + 9
22 clang 0x0000000000970fb2
clang::Parser::ParseRHSOfBinaryExpression(clang::ActionResult, clang::prec::Level) + 882
23 clang 0x00000000009716b2
clang::Parser::ParseAssignmentExpression() + 50
24 clang 0x0000000000972389 clang::Parser::ParseExpression() + 9
25 clang 0x00000000009288b0
clang::Parser::ParseReturnStatement(clang::ParsedAttributes&) + 176
26 clang 0x000000000092d9e8
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector&, bool) + 520
27 clang 0x000000000092b2fa
clang::Parser::ParseCompoundStatementBody(bool) + 1626
28 clang 0x000000000092baa5
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 149
29 clang 0x00000000009479b3
clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&) + 2067
30 clang 0x0000000000954f30
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 1472
31 clang 0x00000000009424f1
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AccessSpecifier) + 145
32 clang 0x0000000000942ae3
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&,
clang::AccessSpecifier) + 531
33 clang 0x0000000000944e90
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 3184
34 clang 0x00000000009660d9
clang::Parser::ParseInnerNamespace(std::vector >&, std::vector >&, std::vector >&, unsigned int, clang::SourceLocation&,
clang::SourceLocation&, clang::ParsedAttributes&, clang::SourceLocation&) + 377
35 clang 0x000000000096c116 clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 3734
36 clang 0x000000000095aa77
clang::Parser::ParseDeclaration(clang::ASTOwningVector&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 567
37 clang 0x0000000000944480
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 608
38 clang 0x00000000009660d9
clang::Parser::ParseInnerNamespace(std::vector >&, std::vector >&, std::vector >&, unsigned int, clang::SourceLocation&,
clang::SourceLocation&, clang::ParsedAttributes&, clang::SourceLocation&) + 377
39 clang 0x000000000096c116 clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 3734
40 clang 0x000000000095aa77
clang::Parser::ParseDeclaration(clang::ASTOwningVector&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 567
41 clang 0x0000000000944480
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 608
42 clang 0x00000000009660d9
clang::Parser::ParseInnerNamespace(std::vector >&, std::vector >&, std::vector >&, unsigned int, clang::SourceLocation&,
clang::SourceLocation&, clang::ParsedAttributes&, clang::SourceLocation&) + 377
43 clang 0x000000000096c116 clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 3734
44 clang 0x000000000095aa77
clang::Parser::ParseDeclaration(clang::ASTOwningVector&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 567
45 clang 0x0000000000944480
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 608
46 clang 0x000000000094515c
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 156
47 clang 0x000000000091a51d clang::ParseAST(clang::Sema&, bool) + 189
48 clang 0x00000000007bacd4 clang::CodeGenAction::ExecuteAction() +
68
49 clang 0x00000000006b0653
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 371
50 clang 0x0000000000688bcd
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1181
51 clang 0x000000000067d66b cc1_main(char const**, char const**, char
const*, void*) + 779
52 clang 0x0000000000687b43 main + 7283
53 libc.so.6 0x0000003706c1ee5d __libc_start_main + 253
54 clang 0x000000000067d179
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
test.cpp -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.20.51.0.7 -momit-leaf-frame-pointer -coverage-file
CMakeFiles/test.dir/test.cpp.o -resource-dir /usr/local/bin/../lib/clang/3.0
-fdeprecated-macro -ferror-limit 19 -fmessage-length 237 -fgnu-runtime
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
CMakeFiles/test.dir/test.cpp.o -x c++ /home/user/Sources/test/test.cpp
1. /usr/include/boost/spirit/home/qi/numeric/detail/real_impl.hpp:82:50:
current parser token ')'
2. /usr/include/boost/spirit/home/qi/numeric/detail/real_impl.hpp:31:1:
parsing namespace 'boost'
3. /usr/include/boost/spirit/home/qi/numeric/detail/real_impl.hpp:31:19:
parsing namespace 'spirit'
4. /usr/include/boost/spirit/home/qi/numeric/detail/real_impl.hpp:31:38:
parsing namespace 'traits'
5. /usr/include/boost/spirit/home/qi/numeric/detail/real_impl.hpp:81:5:
parsing function body 'negate'
6. /usr/include/boost/spirit/home/qi/numeric/detail/real_impl.hpp:81:5: in
compound statement ('{}')
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang++ --version outputs:
clang version 3.0 (trunk 134402)
Target: x86_64-unknown-linux-gnu
Thread model: posix
llvm & clang were compiled together with --enabled-optimize.
uname -a outputs:
Linux fedora-host 2.6.35.13-92.fc14.x86_64 #1 SMP Sat May 21 17:26:25 UTC 2011
x86_64 x86_64 x86_64 GNU/Linux
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 5 01:10:50 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Jul 2011 01:10:50 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10274] New: format function attribute with the
NSString archetype yields no compiler warnings
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10274
Summary: format function attribute with the NSString archetype
yields no compiler warnings
Product: clang
Version: 2.9
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: macbavarious at gmail.com
CC: llvmbugs at cs.uiuc.edu
The following code:
#import
extern void test0(const char *format, ...) __attribute__((format(__printf__, 1,
2)));
extern void test1(NSString *format, ...) __attribute__((format(__NSString__, 1,
2)));
void function(void) {
test0("%d");
test0("%d", "foo");
test1(@"%d");
test1(@"%d", "foo");
}
yields warnings for test0() calls only:
$ clang -c -Wformat bug0.m
bug0.m:7:13: warning: more '%' conversions than data arguments [-Wformat]
test0("%d");
~^
bug0.m:8:13: warning: conversion specifies type 'int' but the argument has type
'char *' [-Wformat]
test0("%d", "foo");
~^ ~~~~~
%s
2 warnings generated.
so it seems that the __NSString__ archetype doesn't yield compiler warnings
when there's a mismatch between the format NSString and the arguments.
This has been tested with:
$ clang --version
Apple clang version 2.0 (tags/Apple/clang-137) (based on LLVM 2.9svn)
Target: x86_64-apple-darwin10
Thread model: posix
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 5 01:15:28 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Jul 2011 01:15:28 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10275] New: format function attribute isn't checked
in Objective-C methods
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10275
Summary: format function attribute isn't checked in Objective-C
methods
Product: clang
Version: 2.9
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: macbavarious at gmail.com
CC: llvmbugs at cs.uiuc.edu
The following code:
#import
@interface Test
+ (void)test2:(NSString *)format, ... __attribute__((format(__NSString__, 1,
2)));
+ (void)test3:(const char *)format, ... __attribute__((format(__printf__, 1,
2)));
- (void)test4:(NSString *)format, ... __attribute__((format(__NSString__, 1,
2)));
- (void)test5:(const char *)format, ... __attribute__((format(__printf__, 1,
2)));
@end
void function(void) {
[Test test2:@"%d"];
[Test test2:@"%d", "foo"];
[Test test3:"%d"];
[Test test3:"%d", "foo"];
Test *t;
[t test4:@"%d"];
[t test4:@"%d", "foo"];
[t test5:"%d"];
[t test5:"%d", "foo"];
}
which uses both the __printf__ and the __NSString__ archetypes in the format
function attribute, doesn't yield any compiler warnings even though there's a
mismatch in the number of arguments and the argument types:
$ clang -c -Wformat bug1.m
$
This has been tested with:
$ clang --version
Apple clang version 2.0 (tags/Apple/clang-137) (based on LLVM 2.9svn)
Target: x86_64-apple-darwin10
Thread model: posix
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 5 02:22:21 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Jul 2011 02:22:21 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10276] New: Problems with zlib
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10276
Summary: Problems with zlib
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: cullmann at absint.de
CC: llvmbugs at cs.uiuc.edu
Hi,
I use zlib 1.2.5 in the following style:
I have a FILE *stream from fopen.
Then I do:
int fileNumber = fileno (stream);
m_gzFile = z_gzdopen (Ur::dup(fileNumber), "rb");
(This is done to allow multiple backends, normally I would read the header
myself from the stream and then choose, but the bug occurs with just that
sequence above)
Now, my program hangs, inside read, always:
read (state=, buf=, len=, have=) at /usr/include/bits/unistd.h:37
37 if (__bos0 (__buf) != (size_t) -1)
(gdb) bt
#0 read (state=, buf=, len=, have=) at /usr/include/bits/unistd.h:37
#1 gz_load (state=, buf=, len=, have=) at
/local/cullmann/build/llvm.default.release/libur/3rdparty/zlib/gzread.c:31
#2 0x00000000004342e2 in gz_avail (state=) at
/local/cullmann/build/llvm.default.release/libur/3rdparty/zlib/gzread.c:58
#3 0x0000000000433dad in gz_head (state=) at
/local/cullmann/build/llvm.default.release/libur/3rdparty/zlib/gzread.c:143
#4 0x0000000000433758 in gz_make (state=) at
/local/cullmann/build/llvm.default.release/libur/3rdparty/zlib/gzread.c:310
#5 0x000000000043361d in z_gzread (file=, buf=, len=Unhandled dwarf expression opcode 0x0
) at
/local/cullmann/build/llvm.default.release/libur/3rdparty/zlib/gzread.c:418
#6 0x0000000000421e27 in Ur::FileStreamInZLib::read (this=, data=, size=)
at
/local/cullmann/build/llvm.default.release/libur/src/filestream_internal.h:518
#7 0x000000000042020d in Ur::FileStreamIn::read (this=Unhandled dwarf
expression opcode 0x0
) at /local/cullmann/build/llvm.default.release/libur/src/filestream.cpp:225
#8 0x000000000042025a in Ur::FileStreamIn::read (this=Unhandled dwarf
expression opcode 0xef
) at /local/cullmann/build/llvm.default.release/libur/src/filestream.cpp:248
#9 0x000000000041e8c0 in copy_compress_uncompress(char const*, char const*,
Ur::FileStreamOut::CompressionMode) () at
/local/cullmann/build/llvm.default.release/libur/bin/ur-compress.h:60
#10 0x00007ffff7a66eff in __libc_start_main (main=0x41e6a0 ,
argc=3, ubp_av=0x7fffffffde38, init=, fini=, rtld_fini=,
stack_end=0x7fffffffde28) at libc-start.c:226
#11 0x000000000041e5a9 in _start ()
This only occurs with clang/clang++ (without any compiler warnings/errors) but
works perfectly well with GCC (on both linux + macos) and MSVC on win32/64.
Any ideas? Tried to debug this but really see no error.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 5 04:32:21 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Jul 2011 04:32:21 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10277] New: After r134372,
segfault in InlineSpiller::analyzeSiblingValues()
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10277
Summary: After r134372, segfault in
InlineSpiller::analyzeSiblingValues()
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: dimitry at andric.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6829)
--> (http://llvm.org/bugs/attachment.cgi?id=6829)
Crashes InlineSpiller::analyzeSiblingValues() if compiled with -O2
After r134372, I started getting segfaults in MipsFrameLowering.cpp,
while self-hosting on FreeBSD/i386:
gmake[3]: Entering directory `/home/dim/obj/llvm-2/lib/Target/Mips'
llvm[3]: Compiling MipsFrameLowering.cpp for Release+Asserts build
if /home/dim/llvm/134372M-gcc-rel-1/bin/clang++ -I/home/dim/obj/llvm-2/include
-I/home/dim/obj/llvm-2/lib/Target/Mips -I/home/dim/src/llvm/trunk/include
-I/home/dim/src/llvm/trunk/lib/Target/Mips -D_DEBUG -D_GNU_SOURCE
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2 -fno-exceptions -fno-rtti
-fPIC -Woverloaded-virtual -Wcast-qual -pedantic -Wno-long-long -Wall -W
-Wno-unused-parameter -Wwrite-strings -c -MMD -MP -MF
"/home/dim/obj/llvm-2/lib/Target/Mips/Release+Asserts/MipsFrameLowering.d.tmp"
-MT "/home/dim/obj/llvm-2/lib/Target/Mips/Release+Asserts/MipsFrameLowering.o"
-MT "/home/dim/obj/llvm-2/lib/Target/Mips/Release+Asserts/MipsFrameLowering.d"
/home/dim/src/llvm/trunk/lib/Target/Mips/MipsFrameLowering.cpp -o
/home/dim/obj/llvm-2/lib/Target/Mips/Release+Asserts/MipsFrameLowering.o ; \
then /bin/mv -f
"/home/dim/obj/llvm-2/lib/Target/Mips/Release+Asserts/MipsFrameLowering.d.tmp"
"/home/dim/obj/llvm-2/lib/Target/Mips/Release+Asserts/MipsFrameLowering.d";
else /bin/rm
"/home/dim/obj/llvm-2/lib/Target/Mips/Release+Asserts/MipsFrameLowering.d.tmp";
exit 1; fi
Stack dump:
0. Program arguments: /home/dim/llvm/134372M-gcc-rel-1/bin/clang -cc1
-triple i386-unknown-freebsd9.0 -emit-obj -disable-free -main-file-name
MipsFrameLowering.cpp -pic-level 2 -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -target-cpu i486 -target-linker-version 2.17.50
-momit-leaf-frame-pointer -coverage-file
/home/dim/obj/llvm-2/lib/Target/Mips/Release+Asserts/MipsFrameLowering.o
-resource-dir /home/dim/llvm/134372M-gcc-rel-1/bin/../lib/clang/3.0
-dependency-file
/home/dim/obj/llvm-2/lib/Target/Mips/Release+Asserts/MipsFrameLowering.d.tmp
-MP -MT
/home/dim/obj/llvm-2/lib/Target/Mips/Release+Asserts/MipsFrameLowering.o -MT
/home/dim/obj/llvm-2/lib/Target/Mips/Release+Asserts/MipsFrameLowering.d -D
_DEBUG -D _GNU_SOURCE -D __STDC_LIMIT_MACROS -D __STDC_CONSTANT_MACROS -I
/home/dim/obj/llvm-2/include -I /home/dim/obj/llvm-2/lib/Target/Mips -I
/home/dim/src/llvm/trunk/include -I /home/dim/src/llvm/trunk/lib/Target/Mips
-O2 -Woverloaded-virtual -Wcast-qual -Wno-long-long -Wall -W
-Wno-unused-parameter -Wwrite-strings -pedantic -fconst-strings
-fdeprecated-macro -ferror-limit 19 -fmessage-length 237 -fno-rtti
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o
/home/dim/obj/llvm-2/lib/Target/Mips/Release+Asserts/MipsFrameLowering.o -x c++
/home/dim/src/llvm/trunk/lib/Target/Mips/MipsFrameLowering.cpp
1. parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module
'/home/dim/src/llvm/trunk/lib/Target/Mips/MipsFrameLowering.cpp'.
4. Running pass 'Greedy Register Allocator' on function
'@_ZNK4llvm17MipsFrameLowering12emitPrologueERNS_15MachineFunctionE'
clang: error: unable to execute command: Segmentation fault: 11 (core dumped)
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
Running this in gdb gives the following backtrace:
#0 0x0967a0d3 in (anonymous namespace)::InlineSpiller::analyzeSiblingValues ()
#1 0x0967fcf7 in (anonymous namespace)::InlineSpiller::spill ()
#2 0x095a7a48 in (anonymous namespace)::RAGreedy::selectOrSplit ()
#3 0x096c8600 in llvm::RegAllocBase::allocatePhysRegs ()
#4 0x095a13d5 in (anonymous namespace)::RAGreedy::runOnMachineFunction ()
#5 0x0954f471 in llvm::MachineFunctionPass::runOnFunction ()
#6 0x09a68054 in llvm::FPPassManager::runOnFunction ()
#7 0x09a68117 in llvm::FPPassManager::runOnModule ()
#8 0x09a67bef in llvm::MPPassManager::runOnModule ()
#9 0x09a67d2b in llvm::PassManagerImpl::run ()
#10 0x09a67dd7 in llvm::PassManager::run ()
#11 0x0848f533 in clang::EmitBackendOutput ()
Adding a few debug printfs to InlineSpiller::analyzeSiblingValues()
reveals that in this function, OrigLI.getVNInfoAt(VNI->def) returns NULL
sometimes, leading to the segfault in the next if() statement:
void InlineSpiller::analyzeSiblingValues() {
...
if (VNI->isPHIDef() || VNI->getCopy()) {
VNInfo *OrigVNI = OrigLI.getVNInfoAt(VNI->def);
fprintf(stderr, "DBG: OrigVNI=%p, VNI=%p\n", OrigVNI, VNI);
if (OrigVNI->def != VNI->def) {
I have attached the reduced testcase I generated from
MipsFrameLowering.cpp. Compile this with "clang -O2" to reproduce the
segfault. Note, for some reason, the segfault only occurs on i386,
*not* on x86_64...
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 5 04:38:05 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Jul 2011 04:38:05 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10278] New: Problem with Custom Allocator
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10278
Summary: Problem with Custom Allocator
Product: libc++
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
AssignedTo: hhinnant at apple.com
ReportedBy: cullmann at absint.de
CC: llvmbugs at cs.uiuc.edu
Hi,
given the following allocator:
/**
* Generic Pool Allocator Template
*/
template class PoolAllocator
{
public:
/**
* Size
*/
typedef size_t size_type;
/**
* Pointer difference
*/
typedef ptrdiff_t difference_type;
/**
* Pointer
*/
typedef T* pointer;
/**
* Const Pointer
*/
typedef const T* const_pointer;
/**
* Reference
*/
typedef T& reference;
/**
* Const Reference
*/
typedef const T& const_reference;
/**
* Value
*/
typedef T value_type;
/**
* Rebind
*/
template struct rebind {
/**
* Rebind implementation
*/
typedef PoolAllocator other;
};
/**
* Constructor
*/
PoolAllocator()
{
}
/**
* Copy-Constructor
* @param other other allocator
*/
template PoolAllocator (const PoolAllocator &other)
{
(void) other;
}
/**
* Give address
* @param x reference
* @return address for reference
*/
pointer address(reference x) const
{
return &x;
}
/**
* Give address (const)
* @param x reference
* @return address for reference
*/
const_pointer address(const_reference x) const
{
return &x;
}
/**
* Allocate memory for given count of elements
* @param size number of elements to allocate
* @param hint optimizer hint
* @return allocated memory or 0
*/
pointer allocate(size_type size, PoolAllocator::const_pointer
hint = 0)
{
(void) hint;
return static_cast (poolAllocate(size*sizeof(T)));
}
/**
* Deallocate given memory with given number of elements
* @param p pointer to deallocate
* @param size number of elements allocated there
*/
void deallocate(pointer p, size_type size)
{
poolDeallocate(p, size*sizeof(T));
}
/**
* Maximal amount allocatable
* @return maximal number of elements allocatable
*/
size_type max_size() const throw()
{
return size_t(-1) / sizeof(value_type);
}
/**
* Construct object
* @param p pointer where to construct
*/
void construct(pointer p)
{
new(p) T();
}
/**
* Construct object
* @param p pointer where to construct
* @param val value
*/
void construct(pointer p, const T& val)
{
new(p) T(val);
}
/**
* Deconstruct object
* @param p pointer where to deconstruct
*/
void destroy(pointer p)
{
p->~T();
}
};
I get this error message that no usable construct function is available:
/local/cullmann/build/llvm.default.release/usr/include/c++/v1/memory:1530:18:
error: no matching member function for call to 'construct'
{__a.construct(__p, _VSTD::forward<_Args>(__args)...);}
~~~~^~~~~~~~~
/local/cullmann/build/llvm.default.release/usr/include/c++/v1/memory:1468:14:
note: in instantiation of function template specialization
'std::__1::allocator_traits, void *> > >::__construct' requested here
{__construct(__has_construct(),
^
/local/cullmann/build/llvm.default.release/usr/include/c++/v1/map:1228:20:
note: in instantiation of function template specialization
'std::__1::allocator_traits, void *> > >::construct' requested here
__node_traits::construct(__na, _VSTD::addressof(__h->__value_.second),
_VSTD::forward<_Args>(__args)...);
^
/local/cullmann/build/llvm.default.release/usr/include/c++/v1/map:1279:29:
note: in instantiation of function template specialization 'std::__1::map > >::__construct_node' requested here
__node_holder __h = __construct_node(_VSTD::move(__k));
^
/local/cullmann/build/llvm.default.release/libtf14net/src/to_string.cpp:730:17:
note: in instantiation of member function 'std::__1::map > >::operator[]' requested here
topo[type->cast_TypeNamed()->name()] = level;
^
/local/cullmann/build/llvm.default.release/usr/include/ur/poolallocator.h:231:14:
note: candidate function not viable: no known conversion from 'int *' to
'pointer' (aka
'std::__1::__tree_node, void *> *') for
1st argument
void construct(pointer p)
^
/local/cullmann/build/llvm.default.release/usr/include/ur/poolallocator.h:241:14:
note: candidate function not viable: requires 2 arguments, but 1 was provided
void construct(pointer p, const T& val)
^
Only wait to get this compiling is introducing ambigious function
void construct(pointer p, const T& val = T ())
in addition to
void construct(pointer p)
The allocator works well with gcc stl and MSVC stl.
Is this a problem with libc++ or with clang not finding the correct overloaded
variant? Or dumb error on my side?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 5 05:35:17 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Jul 2011 05:35:17 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10279] New: lli barfs with "pseudo instructions
should be removed before code emission"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10279
Summary: lli barfs with "pseudo instructions should be removed
before code emission"
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: srk31 at srcf.ucam.org
CC: llvmbugs at cs.uiuc.edu
I'm getting the following strange error from lli.
$ lli
out/host/linux-x86/pr/sim/obj/EXECUTABLES/dalvikvm_intermediates/LINKED/dalvikvm.bc.bc
pseudo instructions should be removed before code emission
UNREACHABLE executed at X86CodeEmitter.cpp:720!
0 lli 0x0000000000e3b2ff
1 lli 0x0000000000e3bd63
2 libpthread.so.0 0x0000003b7f60f4a0
3 libc.so.6 0x0000003b7ea328f5 gsignal + 53
4 libc.so.6 0x0000003b7ea340d5 abort + 373
5 lli 0x0000000000e1e3ac
6 lli 0x000000000067f482
7 lli 0x00000000006809a5
8 lli 0x0000000000dadec7
llvm::FPPassManager::runOnFunction(llvm::Function&) + 567
9 lli 0x0000000000dadffb
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 139
10 lli 0x0000000000dae169
llvm::FunctionPassManager::run(llvm::Function&) + 105
11 lli 0x00000000008f09be
llvm::JIT::jitTheFunction(llvm::Function*, llvm::MutexGuard const&) + 46
12 lli 0x00000000008f35ec
llvm::JIT::runJITOnFunctionUnlocked(llvm::Function*, llvm::MutexGuard const&) +
28
13 lli 0x00000000008f3870
llvm::JIT::getPointerToFunction(llvm::Function*) + 272
14 lli 0x00000000008f1fa4 llvm::JIT::runFunction(llvm::Function*,
std::__debug::vector >
const&) + 52
15 lli 0x0000000000c7b42d
llvm::ExecutionEngine::runFunctionAsMain(llvm::Function*,
std::__debug::vector > const&, char
const* const*) + 1757
16 lli 0x0000000000617dfc main + 1612
17 libc.so.6 0x0000003b7ea1ec5d __libc_start_main + 253
18 lli 0x000000000061f1ad
Stack dump:
0. Program arguments: lli
out/host/linux-x86/pr/sim/obj/EXECUTABLES/dalvikvm_intermediates/LINKED/dalvikvm.bc.bc
1. Running pass 'X86 Machine Code Emitter' on function '@main'
Aborted (core dumped)
This is with a Release+Debug+Asserts+Checks build of the 2.9 release, on a FC13
x86-64 machine.
You can probably reproduce with the following bitcode file:
.
(I was expecting it to need external bitcode libraries that I built alongside
it, but it gets at least as far as the bug without them. Maybe they're already
linked in -- I don't yet understand bitcode linkage enough to say.)
To investigate further, I hacked X86CodeEmitter.cpp as follows:
--- lib/Target/X86/X86CodeEmitter.cpp 2010-10-09 00:59:27.000000000 +0100
+++ lib/Target/X86/X86CodeEmitter-hacked.cpp 2011-07-04 16:10:44.000000000
+0100
@@ -715,6 +715,7 @@
// base address.
switch (Opcode) {
default:
+ dbgs() << MI;
llvm_unreachable("pseudo instructions should be removed before code"
" emission");
break;
which prints
DBG_VALUE 0, 0, !"needExtra"; dbg:Main.c:149
and the relevant bit of Main.c looks like this:
148 int optionCount, curOpt, i, argIdx;
149 int needExtra = JNI_FALSE;
150 int result = 1;
... i.e. nothing out of the ordinary. The disassembly looks normal too,
although I wouldn't really know.
Here's a (carefully snipped) log showing how make built the bitcode file:
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 5 07:18:40 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Jul 2011 07:18:40 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10280] New: undefined reference error
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10280
Summary: undefined reference error
Product: dragonegg
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: New Bugs
AssignedTo: baldrick at free.fr
ReportedBy: oroppas at gmail.com
CC: llvmbugs at cs.uiuc.edu
I've got the link failure only when dragonegg is used.
Since the linking through the regular gcc goes well without an error I think
it's a dragonegg bug.
Linking CXX executable bin/OcelotConfig
lib/libocelot.so: undefined reference to
`__gnu_cxx::__concurrence_lock_error::what() const'
lib/libocelot.so: undefined reference to
`__gnu_cxx::__concurrence_wait_error::~__concurrence_wait_error()'
lib/libocelot.so: undefined reference to
`__gnu_cxx::__concurrence_wait_error::what() const'
lib/libocelot.so: undefined reference to
`__gnu_cxx::__concurrence_lock_error::~__concurrence_lock_error()'
lib/libocelot.so: undefined reference to
`__gnu_cxx::__concurrence_unlock_error::~__concurrence_unlock_error()'
lib/libocelot.so: undefined reference to
`__gnu_cxx::__concurrence_broadcast_error::what() const'
lib/libocelot.so: undefined reference to
`__gnu_cxx::__concurrence_unlock_error::what() const'
lib/libocelot.so: undefined reference to
`__gnu_cxx::__concurrence_wait_error::~__concurrence_wait_error()'
lib/libocelot.so: undefined reference to
`boost::assign::assignment_exception::what() const'
lib/libocelot.so: undefined reference to
`__gnu_cxx::__concurrence_unlock_error::~__concurrence_unlock_error()'
lib/libocelot.so: undefined reference to
`boost::assign::assignment_exception::~assignment_exception()'
lib/libocelot.so: undefined reference to
`__gnu_cxx::__concurrence_lock_error::~__concurrence_lock_error()'
lib/libocelot.so: undefined reference to
`__gnu_cxx::__concurrence_broadcast_error::~__concurrence_broadcast_error()'
lib/libocelot.so: undefined reference to
`boost::assign::assignment_exception::~assignment_exception()'
lib/libocelot.so: undefined reference to
`__gnu_cxx::__concurrence_broadcast_error::~__concurrence_broadcast_error()'
$ ldd -r ./lib/libocelot.so
linux-vdso.so.1 => (0x00007fff2954e000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fc8bbe00000)
librt.so.1 => /lib/librt.so.1 (0x00007fc8bbbf8000)
libboost_thread-mt.so.1.46.1 => /usr/lib/libboost_thread-mt.so.1.46.1
(0x00007fc8bb9de000)
libboost_system-mt.so.1.46.1 => /usr/lib/libboost_system-mt.so.1.46.1
(0x00007fc8bb7db000)
libLLVMX86CodeGen.so => /usr/lib/libLLVMX86CodeGen.so (0x00007fc8bb41e000)
libLLVMSelectionDAG.so => /usr/lib/libLLVMSelectionDAG.so
(0x00007fc8bb007000)
libLLVMAsmPrinter.so => /usr/lib/libLLVMAsmPrinter.so (0x00007fc8badae000)
libLLVMMCParser.so => /usr/lib/libLLVMMCParser.so (0x00007fc8bab8c000)
libLLVMX86AsmPrinter.so => /usr/lib/libLLVMX86AsmPrinter.so
(0x00007fc8ba951000)
libLLVMX86Utils.so => /usr/lib/libLLVMX86Utils.so (0x00007fc8ba74e000)
libLLVMX86Info.so => /usr/lib/libLLVMX86Info.so (0x00007fc8ba54c000)
libLLVMAsmParser.so => /usr/lib/libLLVMAsmParser.so (0x00007fc8ba313000)
libLLVMJIT.so => /usr/lib/libLLVMJIT.so (0x00007fc8ba0e2000)
libLLVMExecutionEngine.so => /usr/lib/libLLVMExecutionEngine.so
(0x00007fc8b9ec8000)
libLLVMCodeGen.so => /usr/lib/libLLVMCodeGen.so (0x00007fc8b99e9000)
libLLVMScalarOpts.so => /usr/lib/libLLVMScalarOpts.so (0x00007fc8b96bd000)
libLLVMInstCombine.so => /usr/lib/libLLVMInstCombine.so
(0x00007fc8b9421000)
libLLVMTransformUtils.so => /usr/lib/libLLVMTransformUtils.so
(0x00007fc8b915f000)
libLLVMipa.so => /usr/lib/libLLVMipa.so (0x00007fc8b8f3f000)
libLLVMAnalysis.so => /usr/lib/libLLVMAnalysis.so (0x00007fc8b8b7c000)
libLLVMTarget.so => /usr/lib/libLLVMTarget.so (0x00007fc8b8953000)
libLLVMMC.so => /usr/lib/libLLVMMC.so (0x00007fc8b86be000)
libLLVMCore.so => /usr/lib/libLLVMCore.so (0x00007fc8b8307000)
libLLVMSupport.so => /usr/lib/libLLVMSupport.so (0x00007fc8b8051000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fc8b7d47000)
libm.so.6 => /lib/libm.so.6 (0x00007fc8b7ac5000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007fc8b78ae000)
libc.so.6 => /lib/libc.so.6 (0x00007fc8b754d000)
/lib/ld-linux-x86-64.so.2 (0x00007fc8bc620000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fc8b7330000)
undefined symbol: _ZN5boost6assign20assignment_exceptionD2Ev
(./lib/libocelot.so)
undefined symbol: _ZN5boost6assign20assignment_exceptionD0Ev
(./lib/libocelot.so)
undefined symbol: _ZNK5boost6assign20assignment_exception4whatEv
(./lib/libocelot.so)
undefined symbol: _ZN9__gnu_cxx24__concurrence_lock_errorD2Ev
(./lib/libocelot.so)
undefined symbol: _ZN9__gnu_cxx24__concurrence_lock_errorD0Ev
(./lib/libocelot.so)
undefined symbol: _ZNK9__gnu_cxx24__concurrence_lock_error4whatEv
(./lib/libocelot.so)
undefined symbol: _ZN9__gnu_cxx26__concurrence_unlock_errorD2Ev
(./lib/libocelot.so)
undefined symbol: _ZN9__gnu_cxx26__concurrence_unlock_errorD0Ev
(./lib/libocelot.so)
undefined symbol: _ZNK9__gnu_cxx26__concurrence_unlock_error4whatEv
(./lib/libocelot.so)
undefined symbol: _ZN9__gnu_cxx29__concurrence_broadcast_errorD2Ev
(./lib/libocelot.so)
undefined symbol: _ZN9__gnu_cxx29__concurrence_broadcast_errorD0Ev
(./lib/libocelot.so)
undefined symbol: _ZNK9__gnu_cxx29__concurrence_broadcast_error4whatEv
(./lib/libocelot.so)
undefined symbol: _ZN9__gnu_cxx24__concurrence_wait_errorD2Ev
(./lib/libocelot.so)
undefined symbol: _ZN9__gnu_cxx24__concurrence_wait_errorD0Ev
(./lib/libocelot.so)
undefined symbol: _ZNK9__gnu_cxx24__concurrence_wait_error4whatEv
(./lib/libocelot.so)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 5 09:14:58 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Jul 2011 09:14:58 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10278] Problem with Custom Allocator
In-Reply-To:
References:
Message-ID: <20110705141459.3D9732A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10278
Howard Hinnant changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Howard Hinnant 2011-07-05 09:14:58 CDT ---
You found a bug, thanks!
Fix Committed revision 134405.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 5 09:36:30 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Jul 2011 09:36:30 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10276] Problems with zlib
In-Reply-To:
References:
Message-ID: <20110705143630.C462B2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10276
Christoph Cullmann changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #4 from Christoph Cullmann 2011-07-05 09:36:30 CDT ---
Works now, seemed to have been issue with corrupted heap because of bug 10278.
*** This bug has been marked as a duplicate of bug 10278 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 5 09:52:07 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Jul 2011 09:52:07 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10276] Problems with zlib
In-Reply-To:
References:
Message-ID: <20110705145207.4B1BE2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10276
Christoph Cullmann changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|DUPLICATE |
--- Comment #5 from Christoph Cullmann 2011-07-05 09:52:06 CDT ---
And open again, seems that is only broken with -O2, otherwise it works.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 5 11:16:48 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Jul 2011 11:16:48 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10270] [C++] aborts during compilation
In-Reply-To:
References:
Message-ID: <20110705161648.CF9CC2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10270
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Douglas Gregor 2011-07-05 11:16:48 CDT ---
I've committed Hans' patch as Clang r134416.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 5 11:50:02 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Jul 2011 11:50:02 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10277] After r134372,
segfault in InlineSpiller::analyzeSiblingValues()
In-Reply-To:
References:
Message-ID: <20110705165002.F2E622A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10277
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Jakob Stoklund Olesen 2011-07-05 11:50:02 CDT ---
Fixed in r134413.
Rafael, if you found a different issue, please open a new PR.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 5 12:25:16 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Jul 2011 12:25:16 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10222] llc -O0 crash somehow due to debug info
In-Reply-To:
References:
Message-ID: <20110705172516.CE1BB2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10222
Devang Patel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #1 from Devang Patel 2011-07-05 12:25:16 CDT ---
I am not able to reproduce this using r134418.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 5 13:30:41 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Jul 2011 13:30:41 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10273] clang++ asserts when including Boost.Spirit
header
In-Reply-To:
References:
Message-ID: <20110705183041.0D2D22A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10273
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Douglas Gregor 2011-07-05 13:30:40 CDT ---
Fixed in Clang r134426.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 5 16:15:56 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Jul 2011 16:15:56 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10237] Segfault when dereferencing a
forward-declared struct
In-Reply-To:
References:
Message-ID: <20110705211556.ACA402A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10237
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2011-07-05 16:15:56 CDT ---
I think r134416 fixed this; please reopen if you still see the issue with
trunk.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 5 16:30:26 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Jul 2011 16:30:26 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10281] New: Clang cannot compile on centos with gcc
4.4
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10281
Summary: Clang cannot compile on centos with gcc 4.4
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: Pidgeot18 at gmail.com
CC: llvmbugs at cs.uiuc.edu
This package of gcc apparently uses x86_64-redhat-linux6E instead of
x86_64-redhat-linux to store the files, which renders using the C++ STL
impossible. Running clang++ -I/usr/include/c++/4.4.4/x86_64-redhat-linux6E/
gets it to work.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 5 17:22:00 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Jul 2011 17:22:00 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10270] [C++] aborts during compilation
In-Reply-To:
References:
Message-ID: <20110705222200.1BB462A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10270
Elias Pipping changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 5 20:35:10 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Jul 2011 20:35:10 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6992] Unfortunate code placement for PHI lowering
In-Reply-To:
References:
Message-ID: <20110706013510.14B8A2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6992
Evan Cheng changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |evan.cheng at apple.com
Resolution| |FIXED
--- Comment #2 from Evan Cheng 2011-07-05 20:35:09 CDT ---
Yep. Fixed.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 6 01:58:39 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Jul 2011 01:58:39 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10264] Rejects-valid and sometimes a crash with
defining fixed enums out of scope
In-Reply-To:
References:
Message-ID: <20110706065839.9FC3E2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10264
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from John McCall 2011-07-06 01:58:38 CDT ---
Fixed in r134468 and r134479.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 6 03:02:18 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Jul 2011 03:02:18 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10260] IRgen assert from instantiating initializer
pack expansion with empty pack
In-Reply-To:
References:
Message-ID: <20110706080218.1A4882A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10260
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from John McCall 2011-07-06 03:02:17 CDT ---
Fixed in r134483.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 6 06:05:07 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Jul 2011 06:05:07 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10282] New: [SPARC] Assertion in Tail Duplication
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10282
Summary: [SPARC] Assertion in Tail Duplication
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: joerg at NetBSD.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6837)
--> (http://llvm.org/bugs/attachment.cgi?id=6837)
Test case
Attached byte code triggers the assertion in r134437.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 6 08:16:57 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Jul 2011 08:16:57 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10283] New: Spell checking triggers "correction has
not been looked up" assertion
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10283
Summary: Spell checking triggers "correction has not been
looked up" assertion
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: hans at chromium.org
CC: llvmbugs at cs.uiuc.edu
Spell checking triggers "correction has not been looked up" assertion when a
typo result is an overloaded function, e.g. for code such as this:
void sin(int);
void sin(void);
void f() {
min(5);
}
or
template void sin();
void f() {
min();
}
This seems to have regressed when namespace-aware typo checking was landed in
r134007.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 6 08:17:59 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Jul 2011 08:17:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10270] [C++] aborts during compilation
In-Reply-To:
References:
Message-ID: <20110706131759.AE3A42A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10270
Hans Wennborg changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #6 from Hans Wennborg 2011-07-06 08:17:58 CDT ---
(In reply to comment #5)
> Created an attachment (id=6835)
--> (http://llvm.org/bugs/attachment.cgi?id=6835) [details]
> new reduction
>
> Good news and bad news.
>
> Good news: now with clang 3.0 git-9a30c9946e898e595eb71f23dc9a60303428998b the
> reduced sample indeed no longer makes clang++ crash. Great :)
>
> Bad news: The Original sample (single.ii) still does! So here's another
> reduction that still managed to make clang++ crash.
Thanks. I've filed Bug 10283 for that since it's a different issue.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 6 09:30:20 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Jul 2011 09:30:20 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10284] New: False positives for null pointer
dereferences with glib/gtk+
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10284
Summary: False positives for null pointer dereferences with
glib/gtk+
Product: clang
Version: 2.9
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: kjartan.maraas at gmail.com
CC: llvmbugs at cs.uiuc.edu
I'm seeing a huge amount of false positives here when building gtk+
One assumption within glib/gtk+ that the analyzer doesn't pick up is that priv
pointers can never be NULL. They are set early on in the various _init
functions for the different widgets and then not set again.
It also looks like the analyzer doesn't understand the parameter checking in
glib with functions like this generating warnings:
void
1837 _gtk_tree_menu_set_row_span_column (GtkTreeMenu *menu,
1838 gint row_span)
1839 {
1840 GtkTreeMenuPrivate *priv;
1841
1842 g_return_if_fail (GTK_IS_TREE_MENU (menu));
1843
1844 priv = menu->priv;
Access to field 'priv' results in a dereference of a null pointer (loaded from
variable 'menu')
1845
the function will return in g_return_if_fail() if menu is NULL. Also as
mentioned above menu->priv should never be NULL, and the only way to make it be
so is to intentionally abuse the API and feed NULL pointers to the public
functions. This is not something that the glib/gtk+ developers feel is worth
spending resources on fixing just to silence the clang-analyzer.
Is there a way to mark certain functions / patterns as excluded like there is
for valgrind with supression files? Or will this have to be fixed in the
analyzer itself?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 6 10:46:47 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Jul 2011 10:46:47 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10272] attribute in method in template class
doesn't survive instantiation
In-Reply-To:
References:
Message-ID: <20110706154647.40E312A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10272
Rafael ?vila de Esp?ndola changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Rafael ?vila de Esp?ndola 2011-07-06 10:46:46 CDT ---
Fixed in 134491.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 6 10:59:31 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Jul 2011 10:59:31 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10285] New: Improper assignment operator overload
resolution
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10285
Summary: Improper assignment operator overload resolution
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: hhinnant at apple.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Apple clang version 3.0 (trunk 134483) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin11.0.0
Thread model: posix
$ clang++ -std=c++0x test.cpp
class A
{
public:
A() {}
template
explicit A(_F&& __f);
A(A&&) {}
A& operator=(A&&) {return *this;}
};
template
void sort(T t)
{
A a;
a = A(t);
}
int main()
{
sort(4);
}
test.cpp:18:7: error: overload resolution selected deleted operator '='
a = A(t);
~ ^ ~~~~
test.cpp:2:7: note: candidate function (the implicit copy assignment operator)
has been explicitly deleted
class A
^
test.cpp:11:8: note: candidate function not viable: no known conversion from
'A' to 'A &&' for 1st argument
A& operator=(A&&) {return *this;}
^
1 error generated.
I expect it to compile, selecting the move assignment operator.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 6 11:22:29 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Jul 2011 11:22:29 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10286] New: Compiling code using labels as pointers
produces s in disassembly
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10286
Summary: Compiling code using labels as pointers produces
s in disassembly
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: max99x at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6840)
--> (http://llvm.org/bugs/attachment.cgi?id=6840)
C source and resulting bytecode disassembly
When compiling the attached program with clang -c -emit-llvm -m32, then
disassembling the result with llvm-dis -show-annotations, the produced LL (also
attached) contains instead of labels. Compiling straight away without
-emit-llvm and disassembling produces a valid program.
This happens on both 2.9 (from Arch Linux repositories) and trunk (built
manually). Trunk configured with:
../llvm/configure --disable-debug-symbols --enable-optimized
--disable-debug-runtime --disable-assertions --enable-multilib
--with-cxx-include-32bit-dir=/usr/lib32 -with-cxx-include-32bit-dir=/usr/lib
Works fine on llvm-gcc.
The code comes from the emscripten test suite
(https://github.com/kripken/emscripten), whose maintainer could not reproduce
the issue.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 6 13:15:03 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Jul 2011 13:15:03 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10232] Assertion failed: (isa(Val) &&
"cast() argument of incompatible type!"), function cast,
file llvm/include/llvm/Support/Casting.h, line 194
In-Reply-To:
References:
Message-ID: <20110706181503.D385E2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10232
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Douglas Gregor 2011-07-06 13:15:02 CDT ---
Fixed in Clang r134515.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 6 13:30:36 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Jul 2011 13:30:36 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10287] New: Unnecessary testl
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10287
Summary: Unnecessary testl
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
given
double foobar(double x, int y) {
unsigned n = y;
double p = 1;
while (true) {
n >>= 1;
if (n == 0)
return p;
}
}
gcc produces:
__Z6foobardi:
shrl %edi
jne __Z6foobardi
movsd 0x00000004(%rip),%xmm0
re
clang produces:
__Z6foobardi:
shrl %edi
testl %edi,%edi
jne __Z6foobardi
movsd 0x00000002(%rip),%xmm0
ret
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 6 13:41:25 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Jul 2011 13:41:25 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10288] New: Clang rejects string literal
initializer for char array that has no explicit size
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10288
Summary: Clang rejects string literal initializer for char
array that has no explicit size
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: schaub.johannes at googlemail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Clang rejects "#1" and accepts "#2"
char x[]("hello"); // #1
char x[6]("hello"); // #2
The example in clause 8.5.2 makes it clear that deducing the size of the
initialized array is not dependent on enclosing braces, showing this example
char x[] = "hello"; // no braces around the initializer
This is accepted by clang. The existence of parentheses (not braces) around the
initializer expression should not make a difference for non-class types, see
8.5p11.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 6 13:52:59 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Jul 2011 13:52:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10289] New: Clang incorrectly takes an unnamed
bitfield as a member
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10289
Summary: Clang incorrectly takes an unnamed bitfield as a
member
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: schaub.johannes at googlemail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
The following is valid C++03 code, as far as I can see
struct A {
private:
int : 0;
};
A a = { };
"A" is an aggregate, but clang complains
main1.cpp:6:3: error: non-aggregate type 'A' cannot be initialized with an
initializer list
A a = { };
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 6 15:05:04 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Jul 2011 15:05:04 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10290] New: Crash in LLVM VMCore
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10290
Summary: Crash in LLVM VMCore
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rtrieu at google.com
CC: llvmbugs at cs.uiuc.edu
Testing some template code when LLVM crashed. Details below.
~/clang/test$ cat logical_constant2.cc
template struct ei_are_flags_consistent
{
int ret = (Flags&5 && Flags&7);
};
int main(int argc, char** argv) {
ei_are_flags_consistent<4> foo;
return 0;
}
~/clang/test$ clang logical_constant2.cc
logical_constant2.cc:3:11: warning: in-class initialization of non-static data
member accepted as a C++0x extension [-Wc++0x-extensions]
int ret = (Flags&5 && Flags&7);
^
logical_constant2.cc:3:22: warning: use of logical && with constant operand;
switch to bitwise & or remove constant [-Wconstant-logical-operand]
int ret = (Flags&5 && Flags&7);
^ ~~~~~~~
logical_constant2.cc:7:30: note: in instantiation of template class
'ei_are_flags_consistent<4>' requested here
ei_are_flags_consistent<4> foo;
^
clang-3.0: llvm/lib/VMCore/Instructions.cpp:968: void
llvm::StoreInst::AssertOK(): Assertion `getOperand(0)->getType() ==
cast(getOperand(1)->getType())->getElementType() && "Ptr must be a
pointer to Val type!"' failed.
Stack dump:
0. Program arguments: llvm/llvm_build/bin/clang-3.0 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
logical_constant2.cc -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64
-momit-leaf-frame-pointer -resource-dir llvm/llvm_build/bin/../lib/clang/3.0
-fdeprecated-macro -ferror-limit 19 -fmessage-length 80 -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-wLc9E0.o
-x c++ logical_constant2.cc
1. parser at end of file
2. Per-file LLVM IR generation
3. logical_constant2.cc:1:37: Generating code for declaration
'ei_are_flags_consistent<4>::ei_are_flags_consistent'
clang-3: error: unable to execute command: Aborted
clang-3: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 6 15:42:42 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Jul 2011 15:42:42 -0500 (CDT)
Subject: [LLVMbugs] [Bug 9696] compilation failure with gcc >=4.5
In-Reply-To:
References:
Message-ID: <20110706204242.6025E2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9696
Ryuta Suzuki changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Ryuta Suzuki 2011-07-06 15:42:41 CDT ---
I haven't used gcc to build libcxx for a while but
as of r134405 I was able to successfully build libcxx by gcc-4.6.1.
Though I haven't tested gcc-4.5.3 I would deem this bug is fixed for the most
recent versions of gcc.
(In reply to comment #1)
> Thanks for the report. For various reasons I can not test on anything beyond
> gcc-4.4, and so am unable to reproduce this symptom. If you can recommend a
> patch I'll review it.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 6 17:04:32 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Jul 2011 17:04:32 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10142] Exception mistakenly moved from
In-Reply-To:
References:
Message-ID: <20110706220432.185362A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10142
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Douglas Gregor 2011-07-06 17:04:31 CDT ---
Fixed in Clang r134548.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 6 17:29:49 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Jul 2011 17:29:49 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10220] Crash in scheduler on x86-64 with very wide
addition
In-Reply-To:
References:
Message-ID: <20110706222949.EB7132A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10220
Lang Hames changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Lang Hames 2011-07-06 17:29:49 CDT ---
Looks like this is fixed in r134525. Thanks Evan.
I'll submit a testcase shortly.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 6 19:43:28 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Jul 2011 19:43:28 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10263] Wrong definition of ftrunc.
In-Reply-To:
References:
Message-ID: <20110707004328.2180F2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10263
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Chris Lattner 2011-07-06 19:43:27 CDT ---
These look fine.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 6 19:43:49 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Jul 2011 19:43:49 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10271] Add contains() to ImmutableList
In-Reply-To:
References:
Message-ID: <20110707004349.C3BF92A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10271
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Chris Lattner 2011-07-06 19:43:49 CDT ---
This got applied.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 6 21:20:29 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Jul 2011 21:20:29 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10290] [irgen] clang crash
In-Reply-To:
References:
Message-ID: <20110707022029.C974B2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10290
Nick Lewycky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #2 from Nick Lewycky 2011-07-06 21:20:29 CDT ---
Fixed in r134583.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 6 22:52:52 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Jul 2011 22:52:52 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10291] New: clang asserts when comparing different
types inside a throw inside a class template
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10291
Summary: clang asserts when comparing different types inside a
throw inside a class template
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: tziltzal at y7mail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
... pretty weird situation, but the following example causes clang to assert on
comparing different types:
template
class X
{
public:
X() : i(0) { }
void foo()
{
throw
i == 0u ? // this causes the assertion
5 : 6;
}
private:
int i;
};
int main()
{
X x;
}
the output is:
clang: /usr/src/llvm/tools/clang/lib/Sema/SemaChecking.cpp:2810:
void::AnalyzeComparison(clang::Sema&, clang::BinaryOperator*):
Assertion `S.Context.hasSameUnqualifiedType(T, E->getRHS()->getType()) &&
"comparison with mismatched types"' failed.
0 clang 0x0000000001bd4f3f
1 clang 0x0000000001bd5a7a
2 libpthread.so.0 0x000000370780eeb0
3 libc.so.6 0x0000003706c330c5 gsignal + 53
4 libc.so.6 0x0000003706c34a76 abort + 390
5 libc.so.6 0x0000003706c2b905 __assert_fail + 245
6 clang 0x00000000009d753e
7 clang 0x00000000009d7611
8 clang 0x00000000009d709e
9 clang 0x00000000009d6f7a
10 clang 0x0000000000ad38d0
clang::Sema::ActOnFinishFullExpr(clang::Expr*) + 144
11 clang 0x0000000000932c91
clang::Parser::ParseExprStatement(clang::ParsedAttributes&) + 129
12 clang 0x000000000092f00b
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector&, bool) + 2875
13 clang 0x000000000092c23e
clang::Parser::ParseCompoundStatementBody(bool) + 1742
14 clang 0x000000000092c9e8
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 168
15 clang 0x000000000094b249
clang::Parser::ParseLexedMethodDef(clang::Parser::LexedMethod&) + 457
16 clang 0x000000000094afe9
clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&) + 137
17 clang 0x00000000009699d4
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int,
clang::Decl*) + 2404
18 clang 0x000000000096ade0
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool) + 4432
19 clang 0x0000000000957240
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext) + 1408
20 clang 0x0000000000933b4d
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&,
clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&,
clang::AccessSpecifier) + 765
21 clang 0x00000000009372d2
clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier) + 706
22 clang 0x000000000095bb8a
clang::Parser::ParseDeclaration(clang::ASTOwningVector&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 522
23 clang 0x000000000094581b
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 603
24 clang 0x00000000009464ec
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 156
25 clang 0x000000000091b33d clang::ParseAST(clang::Sema&, bool) + 205
26 clang 0x00000000007bc534 clang::CodeGenAction::ExecuteAction() +
68
27 clang 0x00000000006b0d43
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 371
28 clang 0x000000000068923d
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1181
29 clang 0x000000000067dc7b cc1_main(char const**, char const**, char
const*, void*) + 779
30 clang 0x00000000006881b3 main + 7347
31 libc.so.6 0x0000003706c1ee5d __libc_start_main + 253
32 clang 0x000000000067d789
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
test.cpp -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.20.51.0.7 -momit-leaf-frame-pointer -coverage-file
CMakeFiles/test.dir/test.cpp.o -resource-dir /usr/local/bin/../lib/clang/3.0
-fdeprecated-macro -ferror-limit 19 -fmessage-length 237 -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
CMakeFiles/test.dir/test.cpp.o -x c++ /home/user/Sources/test/test.cpp
1. /home/user/Sources/test/test.cpp:13:5: current parser token '}'
2. /home/user/Sources/test/test.cpp:2:1: parsing struct/union/class body
'X'
3. /home/user/Sources/test/test.cpp:9:5: parsing function body 'foo'
4. /home/user/Sources/test/test.cpp:9:5: in compound statement ('{}')
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
if X isn't a template class, or you change 'throw' to be a different expression
(e.g. int x = ) or make sure that == compares identical types, it will compile
fine...
uname -a returns:
Linux fedora-host 2.6.35.13-92.fc14.x86_64 #1 SMP Sat May 21 17:26:25 UTC 2011
x86_64 x86_64 x86_64 GNU/Linux
clang --version returns:
clang version 3.0 (trunk 134577)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang/llvm were compiled with --enable-optimized.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 6 23:37:54 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Jul 2011 23:37:54 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10186] Infinite loop in llc on ARMv7 (LLVM HEAD
from June 17)
In-Reply-To:
References:
Message-ID: <20110707043754.4A31E2A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10186
Lang Hames changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |lhames at gmail.com
Resolution| |FIXED
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 7 01:13:45 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 01:13:45 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10292] New: redundant load not removed
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10292
Summary: redundant load not removed
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
In the following example, tmp5 could be removed.
%zed = type { i8* }
define void @test(%zed** %bar) {
%tmp1 = alloca i8, align 8
%tmp2 = load %zed** %bar, align 8
%tmp3 = getelementptr inbounds %zed* %tmp2, i64 0, i32 0
%tmp4 = load i8** %tmp3, align 8
call void @llvm.memcpy.p0i8.p0i8.i64(i8* %tmp1, i8* %tmp4, i64 24, i32 8, i1
false)
%tmp5 = load i8** %tmp3, align 8
call void @foobar(i8* %tmp1)
call void @foobar(i8* %tmp5)
ret void
}
declare void @foobar(i8*)
declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i32,
i1) nounwind
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 7 06:46:40 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 06:46:40 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10293] New: Load not hoisted out of loop with
multiple exits
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10293
Summary: Load not hoisted out of loop with multiple exits
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Loop Optimizer
AssignedTo: unassignedbugs at nondot.org
ReportedBy: benny.kra at gmail.com
CC: llvmbugs at cs.uiuc.edu
We compile this C code:
===
bool foo(const char *CurPtr) {
for (unsigned i = 1; i != 7; ++i)
if (CurPtr[i] != CurPtr[0])
return false;
return true;
}
===
into
===
define zeroext i1 @foo(i8* nocapture %CurPtr) nounwind readonly ssp {
entry:
br label %for.cond
for.cond: ; preds = %for.inc, %entry
%indvar = phi i32 [ %phitmp, %for.inc ], [ 1, %entry ]
%cmp = icmp eq i32 %indvar, 7
br i1 %cmp, label %return, label %for.body
for.body: ; preds = %for.cond
%arrayidx = getelementptr i8* %CurPtr, i32 %indvar
%tmp3 = load i8* %arrayidx, align 1, !tbaa !0
%tmp6 = load i8* %CurPtr, align 1, !tbaa !0
%cmp8 = icmp eq i8 %tmp3, %tmp6
br i1 %cmp8, label %for.inc, label %return
for.inc: ; preds = %for.body
%phitmp = add i32 %indvar, 1
br label %for.cond
return: ; preds = %for.cond,
%for.body
%retval.0 = phi i1 [ false, %for.body ], [ true, %for.cond ]
ret i1 %retval.0
}
===
The load of CurPtr[0] should be moved out of the loop. Recent versions of GCC
seem to be able to do this.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 7 07:17:15 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 07:17:15 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10294] New: Release tarballs are signed with a key
that is nowhere to be found
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10294
Summary: Release tarballs are signed with a key that is nowhere
to be found
Product: Website
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: General Website
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sliedes at cc.hut.fi
CC: llvmbugs at cs.uiuc.edu
To reproduce:
1. Download http://llvm.org/releases/2.9/llvm-2.9.tgz
2. Download http://llvm.org/releases/2.9/llvm-2.9.tgz.sig
3. Run gpg --verify llvm-2.9.tgz.sig
[gpg indicates key E95C63DC is unknown]
4. Run gpg --recv-key E95C63DC
[gpg indicates the key cannot be found on the public keyserver]
5. Google for E95C63DC
[cannot find the key with Google either]
Actual result:
The key used to sign llvm-2.9.tgz is nowhere to be found. Hence the signature
cannot be verified. Hence the .sig files are rather useless.
Expected result:
The key should be available on the public keyservers and/or on the LLVM
website.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 7 07:52:09 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 07:52:09 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10295] New: Problem with preprocessor with keep
comments
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10295
Summary: Problem with preprocessor with keep comments
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: cullmann at absint.de
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6846)
--> (http://llvm.org/bugs/attachment.cgi?id=6846)
Test Case
If you use
clang -E -CC test.c on the following snippet as test.c, you get this error:
# 1 "/home/step/c-files/bug_8438.c"
# 1 "/home/step/c-files/bug_8438.c" 1
# 1 "" 1
# 1 "" 3
# 132 "" 3
# 1 "" 1
# 1 "" 2
# 1 "/home/step/c-files/bug_8438.c" 2
/* hurz *//home/step/c-files/bug_8438.c:3:47: error: token is not a valid
binary operator in a preprocessor subexpression
#if defined __LCC__ /* Compiler = LCC
~~~~~~~~~~~~~~~~~~~~~~~ ^
main() { return 1; }
1 error generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 7 08:42:01 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 08:42:01 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10296] New: clang doesn't honor LIBRARY_PATH
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10296
Summary: clang doesn't honor LIBRARY_PATH
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: howarth at nitro.med.uc.edu
CC: llvmbugs at cs.uiuc.edu
The clang compiler doesn't honor LIBRARY_PATH during linkage. For example, when
building guile 1.8.8 using clang against libgmp in /sw/lib...
setenv LIBRARY_PATH /sw/lib
allows both gcc and ifort to find libgmp in /sw/lib without explicitly passing
-L/sw/lib on the compiler options...
[MacPro:guile18-1.8.8-3/guile-1.8.8/build] root# gcc -o conftest -g -O2
-Dmacosx conftest.c -lgmp -lm -lltdl
however this same configure test fails to link under clang...
[MacPro:guile18-1.8.8-3/guile-1.8.8/build] root# clang -o conftest -g -O2
-Dmacosx conftest.c -lgmp -lm -lltdl
ld: library not found for -lgmp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 7 10:38:31 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 10:38:31 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10297] New: clang doesn't honor CPATH
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10297
Summary: clang doesn't honor CPATH
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: howarth at nitro.med.uc.edu
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6848)
--> (http://llvm.org/bugs/attachment.cgi?id=6848)
test case
The clang compiler doesn't honor the CPATH environmental such that the attached
test case fails...
[MacPro:~/clang_bug2] howarth% ./show_bug.sh
#!/bin/sh -ev
export CPATHH=./local
gcc cpath_bug.c
clang cpath_bug.c
cpath_bug.c:4:10: fatal error: 'test.h' file not found
#include
^
1 error generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 7 11:16:05 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 11:16:05 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10298] New: cpp preprocessing yields different
results than gcc
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10298
Summary: cpp preprocessing yields different results than gcc
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: joel.sherrill at oarcorp.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6849)
--> (http://llvm.org/bugs/attachment.cgi?id=6849)
Test Case
RTEMS uses preprocessed assembly files (.S). I have a small test case which
compiles with i386 gcc and not with clang from the svn head.
$ clang -c set_asm.S
/tmp/cc-Y6Q2YB.s:14:24: error: unexpected token in assignment
.set HEIRCONTEXT_ARG, 8_label:
It is running the label inside a macro on a subsequent line with the value on
the RHS of the .set.
This is a cut down and if I simplify it much more, it works.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 7 12:27:32 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 12:27:32 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10299] New: clang does not know FP registers gcc
does
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10299
Summary: clang does not know FP registers gcc does
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: joel.sherrill at oarcorp.com
CC: llvmbugs at cs.uiuc.edu
In RTEMS, we use some inline assembly to assist in FPU context switches. clang
has trouble with the two attached test cases. I think we use two registers
clang does not know about yet. This can likely be reduced but I thought it
better to stick with two real examples so when this is addressed, it is more
likely to let this code in RTEMS compile.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 7 12:32:44 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 12:32:44 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10300] New: newlib using warning pragma clang does
not know
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10300
Summary: newlib using warning pragma clang does not know
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: joel.sherrill at oarcorp.com
CC: llvmbugs at cs.uiuc.edu
Another bit from the RTEMS clang effort. One line test case from newlib
attached which uses the warning pragma.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 7 12:37:46 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 12:37:46 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10301] New: Link errors: C++ new operators with
MSVC C++ Linker
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10301
Summary: Link errors: C++ new operators with MSVC C++ Linker
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: art.oriented at gmail.com
CC: llvmbugs at cs.uiuc.edu
Windows, LLVM and clang
For the following simple C++ code:
//////////////////////////////
class DUMMY
{
public:
DUMMY() { val1 = 0, val2 = 0.f; }
int val1;
float val2;
};
int main()
{
int* a = new int[10];
DUMMY* b = new DUMMY();
return a[0] + b->val1;
}
//////////////////////////////
clang and linking with MSVC C++ linker gives link errors:
new.o : error LNK2019: unresolved external symbol __Znaj referenced in function
_main
new.o : error LNK2019: unresolved external symbol __Znwj referenced in function
_main
LINK : error LNK2001: unresolved external symbol _mainCRTStartup
new.exe : fatal error LNK1120: 3 unresolved externals
After simple searching, this is due to clang or LLVM didn't correctly emit some
C++ operator functions.
Of course, linking with g++ (MinGW) is okay.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 7 14:16:33 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 14:16:33 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10302] New: unrestricted unions don't delete
destructor when required
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10302
Summary: unrestricted unions don't delete destructor when
required
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: oneill+llvmbugs at cs.hmc.edu
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=6852)
--> (http://llvm.org/bugs/attachment.cgi?id=6852)
unionbug.cpp ? small example to show the bug
When an unrestricted union has a member with nontrivial destructor and no
explicit destructor is provided, the destrutor should be deleted, but clang
does not do so:
> clang++ -v
clang version 3.0 (trunk 133502)
Target: x86_64-apple-darwin10.8.0
Thread model: posix
> clang++ -Wall -std=c++0x -c unionbug.cpp
[no errors]
c.f.
> g++-mp-4.6 -std=c++0x -c unionbug.cpp
unionbug.cpp: In function 'int main()':
unionbug.cpp:16:39: error: use of deleted function
'NonTrivialDestructorInUnion::~NonTrivialDestructorInUnion()'
unionbug.cpp:8:7: error:
'NonTrivialDestructorInUnion::~NonTrivialDestructorInUnion()' is implicitly
deleted because the default definition would be ill-formed:
unionbug.cpp:11:29: error: union member 'NonTrivialDestructorInUnion::annoy'
with non-trivial 'HasNonTrivialDestructor::~HasNonTrivialDestructor()'
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 7 14:23:36 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 14:23:36 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10301] Link errors: C++ new operators with MSVC C++
Linker
In-Reply-To:
References:
Message-ID: <20110707192336.2791C2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10301
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |LATER
--- Comment #1 from Eli Friedman 2011-07-07 14:23:35 CDT ---
You can activate the experimental Microsoft C++ ABI support with "-Xclang
-cxx-abi -Xclang microsoft"; otherwise, we use a MinGW compatible C++ ABI.
It's impossible to generate code that supports both at the same time.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 7 14:55:51 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 14:55:51 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10303] New: CMake build updates
cmake/modules/LLVMLibDeps.cmake
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10303
Summary: CMake build updates cmake/modules/LLVMLibDeps.cmake
Product: Build scripts
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: cmake
AssignedTo: unassignedbugs at nondot.org
ReportedBy: scshunt at csclub.uwaterloo.ca
CC: llvmbugs at cs.uiuc.edu, ofv at wanadoo.es
The CMake build sometimes makes changes to cmake/modules/LLVMLibDeps.cmake.
This is really bad as it should be able to function completely out-of-tree.
Worse, this in-tree change is to a checked-in file.
As a direct result of this, the file needs to be reset occasionally in order to
perform an update via git.
The CMake build should never modify files in-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 Thu Jul 7 15:25:29 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 15:25:29 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10233] extern keyword for inline definition should
trigger function emission
In-Reply-To:
References:
Message-ID: <20110707202529.E1F332A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10233
Nick Lewycky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Nick Lewycky 2011-07-07 15:25:29 CDT ---
Fixed in r134634.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 7 16:38:35 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 16:38:35 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10304] New: unrestricted unions call *all*
constructors/destructors for member types
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10304
Summary: unrestricted unions call *all*
constructors/destructors for member types
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: oneill+llvmbugs at cs.hmc.edu
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=6853)
--> (http://llvm.org/bugs/attachment.cgi?id=6853)
unionbad.cpp ? example of unrestricted union bug
When a union is constructed, generated code calls default constructors for
*all* member types.
Likewise when a union is destroyed, generated code calls *all* destructors.
Back when unions only had POD types (and thus constructors/destructors were all
do-nothing actions, this was harmless, but currently clang allows non-POD types
in unions in c++0x mode, with extremely surprising results.)
> clang++ -std=c++0x -Wall -o unionbad unionbad.cpp
> ./unionbad
Foo at 0x7fff5fbff218 created
Bar at 0x7fff5fbff218 created
FooBar (union) at 0x7fff5fbff218 created
FooBar (union) at 0x7fff5fbff218 destroyed
Bar at 0x7fff5fbff218 destroyed
Foo at 0x7fff5fbff218 destroyed
c.f.
> g++-mp-4.6 -std=c++0x -Wall -o unionbad unionbad.cpp
> ./unionbad
FooBar (union) at 0x7fff5fbff21f created
FooBar (union) at 0x7fff5fbff21f destroyed
P.S. I realize (now) that unrestricted unions aren't officially supported yet
(despite coppro's comment at r131432), but I think that miscompiling
unsupported c++0x code can lead to subtle and suprising bugs for the unwary.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 7 17:30:02 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 17:30:02 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10149] __asm__ segfaults
In-Reply-To:
References:
Message-ID: <20110707223002.EE33F2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10149
Eric Christopher changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Eric Christopher 2011-07-07 17:30:01 CDT ---
Fixed thusly:
[yendi:Data/sources/llvm] echristo% git svn dcommit
Committing to https://llvm.org/svn/llvm-project/llvm/trunk ...
M lib/CodeGen/SelectionDAG/TargetLowering.cpp
Committed r134647
M lib/Target/Mips/MipsInstrInfo.td
r134645 = 58b4edbef426064b00087bcff639cb6f7ef5b25e (refs/remotes/origin/master)
M lib/CodeGen/SelectionDAG/TargetLowering.cpp
r134647 = 3e7ceca1d7bd2b91a3bfd6b9290f0485694fb174 (refs/remotes/origin/master)
W: 5ede211a754d87a5a1df91b48b2a4d5f51cb3d2c and refs/remotes/origin/master
differ, using rebase:
:040000 040000 1fe39b7d8ec289bf48340a71916997214f1258a0
05d4f8e7a535d4315320f0043258c8ed9dabf676 M lib
First, rewinding head to replay your work on top of it...
Applying: Add support for the X86 'l' constraint.
M lib/Target/X86/X86ISelLowering.cpp
M test/CodeGen/X86/inline-asm.ll
Committed r134648
M test/CodeGen/X86/inline-asm.ll
M lib/Target/X86/X86ISelLowering.cpp
r134648 = 1f7667c1972413f09d50ecdb729b2621b7b487e5 (refs/remotes/origin/master)
No changes between current HEAD and refs/remotes/origin/master
Resetting to the latest refs/remotes/origin/master
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 7 17:30:12 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 17:30:12 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10305] New: error LNK2019: unresolved external
symbol ___umoddi3 referenced in function _main
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10305
Summary: error LNK2019: unresolved external symbol ___umoddi3
referenced in function _main
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jlerouge at apple.com
CC: llvmbugs at cs.uiuc.edu
On windows, using clang built with msvc (following
http://clang.llvm.org/get_started.html), the following code doesn't link:
int main(int argc, char **argv) {
unsigned long long i = argc;
unsigned long long j = argc + (int) argv;
return i % j;
}
c:\> clang -o t.exe t.c
cc-524958.o : error LNK2019: unresolved external symbol ___umoddi3 referenced
in function _main
t.exe : fatal error LNK1120: 1 unresolved externals
Is this expected ?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 7 17:53:42 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 17:53:42 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10306] New: Missing fixit for ternary precedence
warning near macros
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10306
Summary: Missing fixit for ternary precedence warning near
macros
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: matthewbg at google.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
$ cat testcases/ternary-precedence-fixit.cc
#include
#define COUT std::cout
void f() {
std::cout << "n = " << true ? 1 : 0;
COUT << "n = " << true ? 1 : 0;
}
$ clang -fsyntax-only -Wparentheses testcases/ternary-precedence-fixit.cc
testcases/ternary-precedence-fixit.cc:4:31: warning: operator '?:' has lower
precedence than '<<'; '<<' will be evaluated first [-Wparentheses]
std::cout << "n = " << true ? 1 : 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
ternary-precedence-fixit.cc:4:31: note: place parentheses around the '<<'
expression to silence this warning
std::cout << "n = " << true ? 1 : 0;
^
( )
testcases/ternary-precedence-fixit.cc:4:31: note: place parentheses around the
'?:' expression to evaluate it first
std::cout << "n = " << true ? 1 : 0;
^
( )
testcases/ternary-precedence-fixit.cc:5:26: warning: operator '?:' has lower
precedence than '<<'; '<<' will be evaluated first [-Wparentheses]
COUT << "n = " << true ? 1 : 0;
~~~~~~~~~~~~~~~~~~~~~~ ^
testcases/ternary-precedence-fixit.cc:5:26: note: place parentheses around the
'<<' expression to silence this warning
COUT << "n = " << true ? 1 : 0;
~~~~~~~~~~~~~~~~~~~~~~ ^
testcases/ternary-precedence-fixit.cc:5:26: note: place parentheses around the
'?:' expression to evaluate it first
COUT << "n = " << true ? 1 : 0;
^
( )
Introducing a macro somehow causes us to lose the fixits for the first note.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 7 17:57:48 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 17:57:48 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10299] clang does not know FP registers gcc does
In-Reply-To:
References:
Message-ID: <20110707225748.904132A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10299
Eric Christopher changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Eric Christopher 2011-07-07 17:57:48 CDT ---
Fixed thusly:
[yendi:Data/sources/llvm] echristo% git svn dcommit
Committing to https://llvm.org/svn/llvm-project/llvm/trunk ...
M lib/Target/X86/X86MCAsmInfo.cpp
Committed r134653
M lib/Target/X86/X86MCAsmInfo.cpp
r134653 = 675819a2a75c0e4669f45bce42b0c2ad23da5d4c (refs/remotes/origin/master)
and
for clang:
M lib/Basic/Targets.cpp
r134654 = bb851ee5ad7e4ab99d0d68ca8c3809d7f01410c6 (refs/remotes/origin/master)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 7 18:57:17 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 18:57:17 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10214] Macro expansion stack fails to list bottom
most macro for errors in arguments
In-Reply-To:
References:
Message-ID: <20110707235717.796452A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10214
Chandler Carruth changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chandler Carruth 2011-07-07 18:57:16 CDT ---
Fixed by submitting an updated form of this patch in r134660.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 7 18:57:26 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 18:57:26 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10215] Location of argument to function style macro
not correctly tracked
In-Reply-To:
References:
Message-ID: <20110707235726.2807A2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10215
Chandler Carruth changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chandler Carruth 2011-07-07 18:57:25 CDT ---
Fixed by submitting an updated form of this patch in r134660.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 7 19:05:48 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 19:05:48 -0500 (CDT)
Subject: [LLVMbugs] [Bug 9675] Calling __sync_sub_and_fetch with -mno-sse
and -O0 crashes clang
In-Reply-To:
References:
Message-ID: <20110708000548.9D8612A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9675
Eric Christopher changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Eric Christopher 2011-07-07 19:05:48 CDT ---
Should be fixed thusly:
[yendi:Data/sources/llvm-svn] echristo% svn ci
Sending lib/Target/X86/X86ISelLowering.cpp
Adding test/CodeGen/X86/membarrier.ll
Transmitting file data ..
Committed revision 134664.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 7 21:14:37 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Jul 2011 21:14:37 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10307] New: Add Contains() to GRStateTrait's
specialization of ImmutableList
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10307
Summary: Add Contains() to GRStateTrait's specialization of
ImmutableList
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rpaulo at apple.com
CC: llvmbugs at cs.uiuc.edu
Now that we ImmutableList has a contains() method, we can add this.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 8 06:23:19 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Jul 2011 06:23:19 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10183] [-Wuninitialized] Large bottleneck observed
for certain PostgreSQL TUs
In-Reply-To:
References:
Message-ID: <20110708112319.1516A2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10183
Chandler Carruth changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #12 from Chandler Carruth 2011-07-08 06:23:17 CDT ---
This should be fixed in r134697. It brings the compile time for this file from
80 seconds to 1 second for me.
Ted, please review just to make sure this doesn't pessimize some other case.
I've tried as hard as I can to find any such, but you've seen a lot more of
these issues. =D
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 8 07:09:43 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Jul 2011 07:09:43 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10308] New: using libc++ with -O4
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10308
Summary: using libc++ with -O4
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: llvm at niebuhrt.de
CC: llvmbugs at cs.uiuc.edu
Compiling the following small program with link time optimization results in
errors.
--------------- test.cpp-----------------
#include
int main() {
int data;
std::shared_ptr px(&data);
std::weak_ptr ppx(px);
return 0;
}
---------------test.cpp------------------
Everything is compiled from trunk. /usr/lib/libLTO.dylib is linked to the
libLTO.dylib from the compiled trunk
clang++ -v -O4 test.cpp -std=c++0x -stdlib=libc++ -U__STRICT_ANSI__
clang version 3.0 (trunk 134695)
Target: x86_64-apple-darwin10.8.0
Thread model: posix
"/Users/niebuhr/projects/llvm/Release+Asserts/bin/clang" -cc1 -triple
x86_64-apple-macosx10.6.8 -emit-llvm-bc -disable-free -main-file-name test.cpp
-pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2
-target-linker-version 123.2 -v -resource-dir
/Users/niebuhr/projects/llvm/Release+Asserts/bin/../lib/clang/3.0 -U
__STRICT_ANSI__ -stdlib=libc++ -O3 -std=c++0x -fdeprecated-macro -ferror-limit
19 -fmessage-length 80 -stack-protector 1 -fblocks -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/i1/i1WwOXILFa8QNqJQnuxxd++++TI/-Tmp-/cc-JvMCW6.o -x c++ test.cpp
clang -cc1 version 3.0 based upon llvm 3.0svn hosted on
x86_64-apple-darwin10.8.0
#include "..." search starts here:
#include <...> search starts here:
/usr/include/c++/v1
/usr/local/include
/Users/niebuhr/projects/llvm/Release+Asserts/bin/../lib/clang/3.0/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
"/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin10/4.2.1/ld" -demangle
-object_path_lto /var/folders/i1/i1WwOXILFa8QNqJQnuxxd++++TI/-Tmp-/cc-5v0a2o.o
-dynamic -arch x86_64 -macosx_version_min 10.6.8 -o a.out -lcrt1.10.6.o
/var/folders/i1/i1WwOXILFa8QNqJQnuxxd++++TI/-Tmp-/cc-JvMCW6.o -lc++ -lSystem
Undefined symbols for architecture x86_64:
"typeinfo name for std::__1::__shared_weak_count", referenced from:
"typeinfo name for std::__1::__shared_count", referenced from:
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 8 08:46:27 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Jul 2011 08:46:27 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10309] New: Can't override a virtual function and
return a more specific ObjC type
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10309
Summary: Can't override a virtual function and return a more
specific ObjC type
Product: new-bugs
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: alee at mimsoftware.com
CC: llvmbugs at cs.uiuc.edu
#import
@interface Test : NSObject
@end
@interface TestX : Test
@end
class Top {
virtual Test* getTest();
};
class Bottom: public Top {
virtual TestX* getTest(); //Error generated on this line
};
LLVM outputs the following error: virtual function 'getTest' has a different
return type ('TestX *') than the function it overrides (which has return type
'Test *')
TestX is a subclass of Test in this scenario so there should be no error here
(legitimately narrowing the return type).
Using the Apple LLVM compiler 3.0 in Xcode 4.2 Build 4D58. It's worth noting
that this same code compiles cleanly under GCC 4.2.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 8 10:02:42 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Jul 2011 10:02:42 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10310] New: function-within-namespace lookup bug
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=10310
Summary: function-within-namespace lookup bug
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ps at kr.tuwien.ac.at
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=6857)
--> (http://llvm.org/bugs/attachment.cgi?id=6857)
the good input
attached there are two .cpp files which differ only in the way a function is
declared to be in the namespace.
*** good.E.cpp 2011-07-08 17:00:23.249503002 +0200
--- bad.E.cpp 2011-07-08 16:59:58.649503000 +0200
***************
*** 104707,104720 ****
};
}
! namespace LitDep
! {
! inline FormulaNode* new_clone(const FormulaNode& a)
{
(void)a;
return 0;
}
- }
# 24 "/home/ps/Documents/potassco/trunk/gringo/libgringo/src/aggrlit.cpp" 2
# 1
"/home/ps/Documents/potassco/trunk/gringo/libgringo/./gringo/exceptions.h" 1
# 22
"/home/ps/Documents/potassco/trunk/gringo/libgringo/./gringo/exceptions.h"
--- 104707,104717 ----
};
}
! inline LitDep::FormulaNode* new_clone(const LitDep::FormulaNode& a)
{
(void)a;
return 0;
}
# 24 "/home/ps/Documents/potassco/trunk/gringo/libgringo/src/aggrlit.cpp" 2
# 1
"/home/ps/Documents/potassco/trunk/gringo/libgringo/./gringo/exceptions.h" 1
# 22
"/home/ps/Documents/potassco/trunk/gringo/libgringo/./gringo/exceptions.h"
The "good" file compiles with clang 2.9 and trunk from tonight.
The "bad" complains as follows (using trunk)
In file included from
/home/ps/Documents/potassco/trunk/gringo/libgringo/src/aggrlit.cpp:1:
In file included from
/home/ps/Documents/potassco/trunk/gringo/libgringo/src/aggrlit.cpp:18:
In file included from
/home/ps/Documents/potassco/trunk/gringo/libgringo/./gringo/aggrlit.h:20:
In file included from
/home/ps/Documents/potassco/trunk/gringo/libgringo/./gringo/gringo.h:24:
/home/ps/Documents/potassco/trunk/gringo/libgringo/./gringo/clone_ptr.h:54:21:
error: call to function 'new_clone' that is neither visible in the template
definition nor found by
argument-dependent lookup
: ptr_(ptr.get() ? new_clone(*ptr.get()) : 0)
^
/home/ps/Documents/potassco/trunk/gringo/libgringo/./gringo/formula.h:23:7:
note: in instantiation of member function
'clone_ptr::clone_ptr' requested here
class Formula : public Locateable
^
/home/ps/Documents/potassco/trunk/gringo/libgringo/./gringo/litdep.h:78:29:
note: 'new_clone' should be declared prior to the call site or in namespace
'LitDep'
inline LitDep::FormulaNode* new_clone(const LitDep::FormulaNode& a)
^
1 warning and 1 error generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 8 10:09:49 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Jul 2011 10:09:49 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10310] function-within-namespace lookup bug
In-Reply-To:
References:
Message-ID: <20110708150949.93E232A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10310
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Douglas Gregor 2011-07-08 10:09:48 CDT ---
Clang is behaving correctly, because your new_clone function is neither visible
in the template definition nor found through ADL. This is a common
compatibility issue (because other compilers get it wrong), documented here:
http://clang.llvm.org/compatibility.html#dep_lookup
Besides, the error Clang is providing describes *exactly* what the code is
doing wrong, and the note specifies how to fix it.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 8 10:50:59 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Jul 2011 10:50:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10285] Improper assignment operator overload
resolution
In-Reply-To:
References:
Message-ID: <20110708155059.C2E892A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10285
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-07-08 10:50:59 CDT ---
Fixed in Clang r134700.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 8 11:30:40 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Jul 2011 11:30:40 -0500 (CDT)
Subject: [LLVMbugs] [Bug 10309] Can't override a virtual function and return
a more specific ObjC type
In-Reply-To:
References:
Message-ID: <20110708163040.EADC92A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=10309
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |LATER
--- Comment #1 from Chris Lattner