From bugzilla-daemon at llvm.org Tue Feb 1 06:10:18 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 1 Feb 2011 06:10:18 -0600 (CST)
Subject: [LLVMbugs] [Bug 9115] New: confusing diagnostic for extra
qualification on member
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9115
Summary: confusing diagnostic for extra qualification on member
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: reif at earthlink.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
For this code:
class MyClass {
public:
MyClass::MyClass();
};
g++ gives:
test.cpp:3: error: extra qualification ?MyClass::? on member ?MyClass?
and comeau gives:
"ComeauTest.c", line 3: error: qualified name is not allowed in member
declaration
MyClass::MyClass();
but clang++ gives:
test.cpp:3:22: error: expected member name or ';' after declaration specifiers
MyClass::MyClass();
~~~~~~~~~~~~~~~~ ^
1 error generated.
which is confusing.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 1 07:29:44 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 1 Feb 2011 07:29:44 -0600 (CST)
Subject: [LLVMbugs] [Bug 9116] New: assertion failed in
IdempotentOperationChecker.cpp
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9116
Summary: assertion failed in IdempotentOperationChecker.cpp
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: devlists at shadowlab.org
CC: llvmbugs at cs.uiuc.edu
clang abort while analyzing the following (valid) code.
---------- analyze.m
@interface NSObject {}
@property int locked;
@property(nonatomic, readonly) NSObject *media;
@end
void setPlaceholder(NSObject *placeholder) {
placeholder.media.locked = placeholder ? 1 : 0;
}
-------------
% clang --version
clang version 2.9 (trunk 124655)
Target: x86_64-apple-darwin10
% clang --analyze analyze.m
Assertion failed: (isa(cast(C.getPredecessor()
->getLocation()).getStmt())), function PostVisitBinaryOperator, file
/Volumes/MacPro/Projects/OpenSource/llvm/tools/clang/lib/StaticAnalyzer/Checkers/IdempotentOperationChecker.cpp,
line 361.
0 clang 0x0000000100ebe0d2 PrintStackTrace(void*) + 34
[?]
6 clang 0x0000000100484fd5 (anonymous
namespace)::IdempotentOperationChecker::PostVisitBinaryOperator(clang::ento::CheckerContext&,
clang::BinaryOperator const*) + 149
7 clang 0x0000000100483cc4 clang::ento::CheckerVisitor<(anonymous
namespace)::IdempotentOperationChecker>::_PostVisit(clang::ento::CheckerContext&,
clang::Stmt const*) + 100
8 clang 0x000000010046d2a7
clang::ento::ExprEngine::CheckerVisit(clang::Stmt const*,
clang::ento::ExplodedNodeSet&, clang::ento::ExplodedNodeSet&,
clang::ento::ExprEngine::CallbackKind) + 1399
9 clang 0x0000000100473c5c
clang::ento::ExprEngine::VisitBinaryOperator(clang::BinaryOperator const*,
clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) + 3980
[?]
1. parser at end of file
2. analyze.m:8:3: Error evaluating statement
3. analyze.m:8:3: Error evaluating statement
Some tests show that this assertion is reached only if both
"-analyzer-check-objc-mem" and "-analyzer-check-idempotent-operations" are
passed to the analyzer.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Feb 1 09:39:10 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 1 Feb 2011 09:39:10 -0600 (CST)
Subject: [LLVMbugs] [Bug 9073] [PCH,
Variadics] Create corrupted PCH if it includes libc++ file
In-Reply-To:
References:
Message-ID: <20110201153910.B7A022A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9073
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Douglas Gregor 2011-02-01 09:39:10 CST ---
Fixed in r124662.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 1 09:53:47 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 1 Feb 2011 09:53:47 -0600 (CST)
Subject: [LLVMbugs] [Bug 9050] access specifier ignored for destructor
In-Reply-To:
References:
Message-ID: <20110201155347.9353F2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9050
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-02-01 09:53:47 CST ---
Fixed in r124663 by Alex Miller's 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 Tue Feb 1 09:56:36 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 1 Feb 2011 09:56:36 -0600 (CST)
Subject: [LLVMbugs] [Bug 8844] Infinite loop and stack overflow in SemaExpr
when compiling erroneous C++
In-Reply-To:
References:
Message-ID: <20110201155636.867862A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8844
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-02-01 09:56:35 CST ---
This is fixed in 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 Feb 1 11:25:46 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 1 Feb 2011 11:25:46 -0600 (CST)
Subject: [LLVMbugs] [Bug 9117] New: Chromium build broken after r124565
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9117
Summary: Chromium build broken after r124565
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
r124565 changed something related to inlining and virtual functions, which
breaks compilation of Chromium/WebKit.
Test case:
template void derefIfNotNull(T* ptr) {
ptr->deref();
}
template class RefPtr {
public:
RefPtr() : m_ptr(0) {}
~RefPtr() {
derefIfNotNull(m_ptr);
}
private:
T* m_ptr;
};
class Node;
class BaseWithVirtualDtor {
public:
virtual ~BaseWithVirtualDtor() {}
};
class MyClass : public BaseWithVirtualDtor {
public:
virtual void doStuff() const;
private:
RefPtr m_base;
};
void f(MyClass* x) {
x->doStuff();
}
Error:
$ ./clang++ -c /tmp/a.cc
/tmp/a.cc:2:6: error: member access into incomplete type 'Node'
ptr->deref();
^
/tmp/a.cc:10:5: note: in instantiation of function template specialization
'derefIfNotNull' requested here
derefIfNotNull(m_ptr);
^
/tmp/a.cc:24:7: note: in instantiation of member function
'RefPtr::~RefPtr'
requested here
class MyClass : public BaseWithVirtualDtor {
^
/tmp/a.cc:17:7: note: forward declaration of 'Node'
class Node;
^
1 error generated.
Clang version:
$ ./clang++ --version
clang version 2.9 (trunk 124659)
Target: x86_64-unknown-linux-gnu
Thread model: posix
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Feb 1 11:43:52 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 1 Feb 2011 11:43:52 -0600 (CST)
Subject: [LLVMbugs] [Bug 9076] Spurious warning about uninitialized variable
when assigned in condition
In-Reply-To:
References:
Message-ID: <20110201174352.8008B2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9076
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Ted Kremenek 2011-02-01 11:43:52 CST ---
Fixed here: r124666
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 1 13:13:27 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 1 Feb 2011 13:13:27 -0600 (CST)
Subject: [LLVMbugs] [Bug 9118] New: Windows platform Endian-ness not defined
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9118
Summary: Windows platform Endian-ness not defined
Product: libc++
Version: unspecified
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
AssignedTo: hhinnant at apple.com
ReportedBy: vanboxem.ruben at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6087)
--> (http://llvm.org/bugs/attachment.cgi?id=6087)
patch to remedy the issue
>From wikipedia
(http://en.wikipedia.org/wiki/Endianness#Endianness_and_operating_systems_on_architectures)
Win32 seems to be little endian on all platforms it exists (x86,x64,IA64).
Patch attached.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Feb 1 14:23:19 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 1 Feb 2011 14:23:19 -0600 (CST)
Subject: [LLVMbugs] [Bug 9111] SystemZ assembly syntax problem
In-Reply-To:
References:
Message-ID: <20110201202320.022482A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9111
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Anton Korobeynikov 2011-02-01 14:23:19 CST ---
Looks good to me. Committed as r124679. Thanks!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Feb 1 15:03:29 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 1 Feb 2011 15:03:29 -0600 (CST)
Subject: [LLVMbugs] [Bug 9119] New: no error calling non-const method on
const object
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9119
Summary: no error calling non-const method on const object
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Testcase:
struct Struct {
void Func() {}
};
int main() {
const Struct s = {};
void (Struct::*func_ptr)() = &Struct::Func;
(s.*func_ptr)();
return 0;
}
's' is const, then we call a non-const method on it. Clang emits no error, GCC
and Comeau do. Here's GCC:
b3410310.cc: In function ?int main()?:
b3410310.cc:8: error: invalid conversion from ?const Struct*? to ?Struct*?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Feb 1 16:31:31 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 1 Feb 2011 16:31:31 -0600 (CST)
Subject: [LLVMbugs] [Bug 9081] Build failure on arm
In-Reply-To:
References:
Message-ID: <20110201223131.615622A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9081
Bob Wilson changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #5 from Bob Wilson 2011-02-01 16:31:30 CST ---
I attempted a fix in svn r124694. Please let me know if that doesn't work.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Feb 1 16:38:53 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 1 Feb 2011 16:38:53 -0600 (CST)
Subject: [LLVMbugs] [Bug 9120] New: not taking advantage of known pointer
alignment
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9120
Summary: not taking advantage of known pointer alignment
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu
This is gcc pr 47579:
#include
extern void b1(), b2();
void foo(const std::vector& v) { if (v.size() == 0) b1(); else b2(); }
which demonstrates a really neat missed optimization:
define void @_Z3fooRKSt6vectorIiSaIiEE(%"class.std::vector"* nocapture %v) {
entry:
%tmp2.i = getelementptr inbounds %"class.std::vector"* %v, i64 0, i32 0, i64
8
%0 = bitcast i8* %tmp2.i to i32**
%tmp3.i = load i32** %0, align 8, !tbaa !0
%tmp5.i = bitcast %"class.std::vector"* %v to i32**
%tmp6.i = load i32** %tmp5.i, align 8, !tbaa !0
%sub.ptr.lhs.cast.i = ptrtoint i32* %tmp3.i to i64
%sub.ptr.rhs.cast.i = ptrtoint i32* %tmp6.i to i64
%sub.ptr.sub.i = sub i64 %sub.ptr.lhs.cast.i, %sub.ptr.rhs.cast.i
%cmp = icmp ult i64 %sub.ptr.sub.i, 4
br i1 %cmp, label %if.then, label %if.else
[...]
Is the difference between the pointers (%tmp3.i, %tmp6.i) less than 4? Well,
the pointers are aligned so that's always true. However, LLVM doesn't know
that.
We mark pointer alignment at the use (load/store) instead of the definition. In
this case, I think we should add an alignment field to ptrtoint. Clang could
set this based on user annotations or the minimum alignment of the type.
If we need a source annotation to make this work, we should make sure libc++
has it too.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Feb 1 17:02:59 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 1 Feb 2011 17:02:59 -0600 (CST)
Subject: [LLVMbugs] [Bug 9121] New: Leaf functions that don't use the frame
set up a frame anyway
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9121
Summary: Leaf functions that don't use the frame set up a frame
anyway
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jyasskin at google.com
CC: nicholas at mxc.ca, llvmbugs at cs.uiuc.edu
For example:
test.cc:
#include
long foo(std::vector&v) {
return v.size();
}
g++-4.6svn -S test.cc -o - -O2 -m32:
_Z3fooRSt6vectorIiSaIiEE:
.LFB442:
movl 4(%esp), %edx
movl 4(%edx), %eax
subl (%edx), %eax
sarl $2, %eax
ret
g++-4.6svn -S test.cc -o - -O2 -m64:
_Z3fooRSt6vectorIiSaIiEE:
.LFB442:
movq 8(%rdi), %rax
subq (%rdi), %rax
sarq $2, %rax
ret
clang++ -S test.cc -o - -O2 -m32
_Z3fooRSt6vectorIiSaIiEE: # @_Z3fooRSt6vectorIiSaIiEE
# BB#0: # %entry
pushl %ebp
movl %esp, %ebp
movl 8(%ebp), %ecx
movl 4(%ecx), %eax
subl (%ecx), %eax
sarl $2, %eax
popl %ebp
ret
clang++ -S test.cc -o - -O2 -m64:
_Z3fooRSt6vectorIiSaIiEE: # @_Z3fooRSt6vectorIiSaIiEE
.Leh_func_begin0:
# BB#0: # %entry
pushq %rbp
.Ltmp0:
movq %rsp, %rbp
.Ltmp1:
movq 8(%rdi), %rax
subq (%rdi), %rax
sarq $2, %rax
popq %rbp
ret
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Feb 2 00:39:06 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Feb 2011 00:39:06 -0600 (CST)
Subject: [LLVMbugs] [Bug 9122] New: -Wuninitialized false positive due to
control dependency.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9122
Summary: -Wuninitialized false positive due to control
dependency.
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu
Spun off from http://llvm.org/bugs/show_bug.cgi?id=9063#c11 (see there for
attachment):
Here's another example that looks fairly similar that I
still see with your patch.
Compile like this:
~/src/llvm-svn/Release+Asserts/bin/clang -arch i386 -c repro.ii
-Wuninitialized
Warnings:
In file included from
/Volumes/MacintoshHD2/src/chrome-git/src/chrome/common/common_param_traits.cc:1:
/Volumes/MacintoshHD2/src/chrome-git/src/chrome/common/common_param_traits.cc:662:3:
warning: use of uninitialized variable 'last_accessed' [-Wuninitialized]
double last_accessed;
^~~~~~~~~~~~~~~~~~~~
/Volumes/MacintoshHD2/src/chrome-git/src/chrome/common/common_param_traits.cc:672:48:
note: variable 'last_accessed' is possibly uninitialized when used here
p->last_accessed = base::Time::FromDoubleT(last_accessed);
^~~~~~~~~~~~~
/Volumes/MacintoshHD2/src/chrome-git/src/chrome/common/common_param_traits.cc:662:23:
note: add initialization to silence this warning
double last_accessed;
^
= 0.0
/Volumes/MacintoshHD2/src/chrome-git/src/chrome/common/common_param_traits.cc:661:3:
warning: use of uninitialized variable 'last_modified' [-Wuninitialized]
double last_modified;
^~~~~~~~~~~~~~~~~~~~
/Volumes/MacintoshHD2/src/chrome-git/src/chrome/common/common_param_traits.cc:671:48:
note: variable 'last_modified' is possibly uninitialized when used here
p->last_modified = base::Time::FromDoubleT(last_modified);
^~~~~~~~~~~~~
/Volumes/MacintoshHD2/src/chrome-git/src/chrome/common/common_param_traits.cc:661:23:
note: add initialization to silence this warning
double last_modified;
^
= 0.0
/Volumes/MacintoshHD2/src/chrome-git/src/chrome/common/common_param_traits.cc:663:3:
warning: use of uninitialized variable 'creation_time' [-Wuninitialized]
double creation_time;
^~~~~~~~~~~~~~~~~~~~
/Volumes/MacintoshHD2/src/chrome-git/src/chrome/common/common_param_traits.cc:673:48:
note: variable 'creation_time' is possibly uninitialized when used here
p->creation_time = base::Time::FromDoubleT(creation_time);
^~~~~~~~~~~~~
/Volumes/MacintoshHD2/src/chrome-git/src/chrome/common/common_param_traits.cc:663:23:
note: add initialization to silence this warning
double creation_time;
^
= 0.0
3 warnings generated.
Relevant code:
bool ParamTraits::Read(
const Message* m, void** iter, param_type* p) {
double last_modified;
double last_accessed;
double creation_time;
bool result =
ReadParam(m, iter, &p->size) &&
ReadParam(m, iter, &p->is_directory) &&
ReadParam(m, iter, &last_modified) &&
ReadParam(m, iter, &last_accessed) &&
ReadParam(m, iter, &creation_time);
if (result) {
p->last_modified = base::Time::FromDoubleT(last_modified);
p->last_accessed = base::Time::FromDoubleT(last_accessed);
p->creation_time = base::Time::FromDoubleT(creation_time);
}
return result;
}
This example is much harder because it involves tracking a control-dependency,
e.g.:
bool result = ...
...
if (result) {
...
}
The static analyzer handles this easily, but I'm not certain how much
control-dependencies like this we should attempt (if any) to model with
-Wuninitialized.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 2 00:43:14 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Feb 2011 00:43:14 -0600 (CST)
Subject: [LLVMbugs] [Bug 9121] Leaf functions that don't use the frame set
up a frame anyway
In-Reply-To:
References:
Message-ID: <20110202064314.5F28F2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9121
Nick Lewycky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Nick Lewycky 2011-02-02 00:43:14 CST ---
Thanks Chris! Fixed in r124718.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 2 02:32:51 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Feb 2011 02:32:51 -0600 (CST)
Subject: [LLVMbugs] [Bug 9123] New: [REGRESSION] Crash while compiling
snow.c from FFmpeg
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9123
Summary: [REGRESSION] Crash while compiling snow.c from FFmpeg
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ismail at namtrac.org
CC: llvmbugs at cs.uiuc.edu
[~/Sources/ffmpeg]> clang -O2 -c snow.i
Instruction does not dominate all uses!
%lsr.iv.next2592 = add i32 %lsr.iv2591, 1
%tmp2593 = sext i32 %lsr.iv.next2592 to i64
Instruction does not dominate all uses!
%tmp2593 = sext i32 %lsr.iv.next2592 to i64
%tmp2594 = add i64 %tmp2377, %tmp2593
Instruction does not dominate all uses!
%tmp2594 = add i64 %tmp2377, %tmp2593
%scevgep2598 = getelementptr i8* %scevgep2597, i64 %tmp2594
Instruction does not dominate all uses!
%lsr.iv.next2569 = add i32 %lsr.iv2568, 1
%tmp2570 = sext i32 %lsr.iv.next2569 to i64
Instruction does not dominate all uses!
%tmp2570 = sext i32 %lsr.iv.next2569 to i64
%tmp2571 = add i64 %tmp2377, %tmp2570
Instruction does not dominate all uses!
%tmp2571 = add i64 %tmp2377, %tmp2570
%scevgep2575 = getelementptr i8* %scevgep2574, i64 %tmp2571
Broken module found, compilation aborted!
0 clang 0x0000000101519df2
llvm::SmallVectorTemplateBase::grow(unsigned long) +
754
1 clang 0x000000010151ac43
llvm::SmallVectorTemplateBase::grow(unsigned long) +
4419
2 libSystem.B.dylib 0x00007fff885db67a _sigtramp + 26
3 clang 0x0000000100000000 __dso_handle + 0
4 clang 0x000000010151a216
llvm::SmallVectorTemplateBase::grow(unsigned long) +
1814
5 clang 0x000000010147dfb4 llvm::CallbackVH::deleted() + 90708
6 clang 0x000000010144bc20 llvm::BasicBlockPass::~BasicBlockPass()
+ 32240
7 clang 0x000000010144bd3b llvm::BasicBlockPass::~BasicBlockPass()
+ 32523
8 clang 0x000000010144d8bf llvm::BasicBlockPass::~BasicBlockPass()
+ 39567
9 clang 0x000000010144dbb3 llvm::BasicBlockPass::~BasicBlockPass()
+ 40323
10 clang 0x000000010144dc8d llvm::BasicBlockPass::~BasicBlockPass()
+ 40541
11 clang 0x000000010018570a clang::PCHGenerator::~PCHGenerator() +
5866
12 clang 0x00000001002b296e
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 286
13 clang 0x00000001002e19a9 llvm::IRBuilder
>::CreateAdd(llvm::Value*, llvm::Value*, llvm::Twine const&) + 1033
14 clang 0x00000001002b16bc llvm::IRBuilder
>::CreateIsNull(llvm::Value*, llvm::Twine const&) + 3980
15 clang 0x0000000100054509 llvm::DenseMap,
llvm::DenseMapInfo >::grow(unsigned int) + 7673
16 clang 0x0000000100025532 std::_Rb_tree, std::less,
std::allocator >::_M_insert_unique(std::string const&) + 2002
17 clang 0x000000010001d1ba
std::vector
>::_M_insert_aux(__gnu_cxx::__normal_iterator > >,
llvm::PassRegistrationListener* const&) + 11258
18 clang 0x0000000100024564 std::vector >::operator=(std::vector > const&) + 12196
19 clang 0x000000010001bad4
std::vector
>::_M_insert_aux(__gnu_cxx::__normal_iterator > >,
llvm::PassRegistrationListener* const&) + 5396
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-apple-darwin10.0.0 -emit-obj -disable-free -main-file-name snow.i
-pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2
-target-linker-version 97.17 -resource-dir /usr/local/bin/../lib/clang/2.9 -O2
-ferror-limit 19 -fmessage-length 120 -stack-protector 1 -fblocks
-fdiagnostics-show-option -fcolor-diagnostics -o snow.o -x cpp-output snow.i
1. parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'snow.i'.
4. Running pass 'Module Verifier' on function '@decode_frame'
clang: error: unable to execute command: Illegal instruction
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Feb 2 03:17:46 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Feb 2011 03:17:46 -0600 (CST)
Subject: [LLVMbugs] [Bug 6065] ARM JIT should support ARMCompilationCallback
in thumb2
In-Reply-To:
References:
Message-ID: <20110202091746.EF3142A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6065
Xerxes R?nby changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |xerxes at zafena.se
Resolution| |DUPLICATE
--- Comment #6 from Xerxes R?nby 2011-02-02 03:17:45 CST ---
fixed in svn r124694
*** This bug has been marked as a duplicate of bug 9081 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 2 04:19:51 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Feb 2011 04:19:51 -0600 (CST)
Subject: [LLVMbugs] [Bug 9117] Chromium build broken after r124565
In-Reply-To:
References:
Message-ID: <20110202101951.C59722A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9117
Hans Wennborg changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Hans Wennborg 2011-02-02 04:19:51 CST ---
(In reply to comment #1)
> Is this a duplicate of 9114?
Yes, I think it's the same thing.
*** This bug has been marked as a duplicate of bug 9114 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 2 09:55:46 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Feb 2011 09:55:46 -0600 (CST)
Subject: [LLVMbugs] [Bug 9124] New: Allows using-declaration to refer to
scoped enumerator
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9124
Summary: Allows using-declaration to refer to scoped enumerator
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: schaub.johannes at googlemail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Clang is supposed to reject the below, but doesn't
enum class A { B };
int main() {
using A::B; // should be an error
}
Although the spec (N3225) doesn't say so currently (DR already filed), clang
should presumably also reject referring to an unscoped enumerator in a using
declaration:
enum A { B };
int main() {
using A::B; // presumably should be error too.
}
I think best may be to forbid the using declaration of having a nested name
specifier referring to an enumeration.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 2 11:27:29 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Feb 2011 11:27:29 -0600 (CST)
Subject: [LLVMbugs] [Bug 9125] New: Different behaviour amongst Clang
versions when sending a message to an assignment expression
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9125
Summary: Different behaviour amongst Clang versions when
sending a message to an assignment expression
Product: clang
Version: unspecified
Platform: PC
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
Mike Ash?s proposed the following [1]:
?One line property initialization with no autorelease: [self.property =
[[SomeClass alloc] init] release];?
This can be reduced to
[obj.property = rvalue method];
Clang 1.5 sends ?method? to obj.property whereas Clang 1.6 and GCC 4.2.1 send
?method? to rvalue. In the case of copy properties and assignment of a mutable
object to a property of immutable type, Mike Ash?s proposal leaks the mutable
object and releases the backing instance variable on Clang 1.5. In general, it
doesn?t work on Clang 1.5 unless the getter method returns the same object as
the argument that was passed to the setter method.
Reading the C standard, I?m tempted to think Clang 1.5 is correct:
?6.5.16.3 (?) An assignment expression has the value of the left operand after
the assignment (?)?
On the other hand, sending the message to rvalue saves one objc_msgSend() call
for obj.property?s getter method. In fact, as David Smith?s pointed out, for
multiple assignments such as
obj.property = obj.property2 = obj.property3 = rvalue;
Clang 1.6 and GCC 4.2.1 send three ObjC messages (three setters) whereas Clang
1.5 sends five message (three setters, two getters).
The following program can be used to test this behaviour:
#import
@interface Test : NSObject { id prop; }
@property (readwrite, nonatomic, retain) id prop;
@end
@implementation Test
@synthesize prop;
- (id)prop {
NSLog(@"getter");
return prop;
}
@end
int main()
{
Test *t = [[Test alloc] init];
NSLog(@"message to single assignment expression");
[t.prop = t prop];
NSLog(@"multiple assignments:");
t.prop = t.prop = t.prop = t;
return 0;
}
When built with Clang 1.5, the output is
message to single assignment expression
getter
getter
multiple assignments:
getter
getter
When built with Clang 1.6 or GCC 4.2.1, the output is
message to single assignment expression
getter
multiple assignments:
Since there?s no Objective-C specification, which behaviour is
expected/correct, or should this not be allowed at all?
This has been posted to objc-language at lists.apple.com [2].
[1] http://twitter.com/mikeash/status/32651143389642752
[2] http://lists.apple.com/archives/Objc-language/2011/Feb/msg00000.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 Wed Feb 2 11:36:38 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Feb 2011 11:36:38 -0600 (CST)
Subject: [LLVMbugs] [Bug 9106] qualify calls to addressof
In-Reply-To:
References:
Message-ID: <20110202173638.5B12E2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9106
Howard Hinnant changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Howard Hinnant 2011-02-02 11:36:38 CST ---
Committed revision 124726.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 2 13:29:42 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Feb 2011 13:29:42 -0600 (CST)
Subject: [LLVMbugs] [Bug 9126] New: __float128 crashes the compiler /
optimizer
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9126
Summary: __float128 crashes the compiler / optimizer
Product: dragonegg
Version: 2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: New Bugs
AssignedTo: baldrick at free.fr
ReportedBy: larrybartholdi at yahoo.com
CC: llvmbugs at cs.uiuc.edu
I've heard about llvm only 10 minutes ago, and tried something on the website's
"online compiler" 5 minutes ago:
#include
#include
__float128 factorial(__float128 X) {
if (X == 0.0) return 1.0;
return X*factorial(X-1);
}
int main(int argc, char **argv) {
printf("%LLg\n", factorial(atoi(argv[1])));
}
(I had initially tried float128 and _float128 types, which don't seem to be
recognized at all).
This crashes the compiler / optimizer:
/tmp/webcompile/_22203_0.c: In function 'factorial':
/tmp/webcompile/_22203_0.c:4: internal compiler error: Segmentation fault
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Feb 2 15:04:41 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Feb 2011 15:04:41 -0600 (CST)
Subject: [LLVMbugs] [Bug 9127] New: Load not being folded
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9127
Summary: Load not being folded
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
-------------
extern double sin( double );
typedef double (*UnaryFunType)(double);
struct Entry {
double in;
double out;
};
double foobar(double d, struct Entry *x) {
if (d == x->in)
return x->out;
return d;
}
--------------
gcc will produce
ucomisd (%rdi), %xmm0
jne L2
jp L2
movsd 8(%rdi), %xmm0
rep ; ret
llvm produces
movsd (%rdi), %xmm1
ucomisd %xmm0, %xmm1
jne LBB0_2
jp LBB0_2
movsd 8(%rdi), %xmm0
ret
Note that gcc folded the load into ucomisd.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 2 16:42:28 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Feb 2011 16:42:28 -0600 (CST)
Subject: [LLVMbugs] [Bug 9128] New: Assigning a pointer to _Bool should give
a warning
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9128
Summary: Assigning a pointer to _Bool should give a warning
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: tss at iki.fi
CC: llvmbugs at cs.uiuc.edu
I'd expect this to give two warnings, but none is given:
_Bool foo(void) {
_Bool x = (void *)0;
return (void *)0;
}
Not having this warning already caused a bug in my program, so this makes _Bool
type even worse to me than using "int" as the boolean type.
I guess this might be because C99 says:
"When any scalar value is converted to _Bool, the result is 0 if the value
compares equal to 0; otherwise, the result is 1."
If -Wall isn't good enough place for this, maybe a new -Wstrict-bool? (Actually
I'd prefer such warning to check for other things about booleans too, but
that's another thing.)
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 2 17:40:24 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Feb 2011 17:40:24 -0600 (CST)
Subject: [LLVMbugs] [Bug 9129] New: Compiling relative paths with parent
directories (../../file.c) broken
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9129
Summary: Compiling relative paths with parent directories
(../../file.c) broken
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: tss at iki.fi
CC: llvmbugs at cs.uiuc.edu
I have a test.c that works:
~% clang -c test.c
and this works:
~% mkdir m && cd m
~/m% clang -c ../test.c
but:
~/m/m% clang -c ../../test.c -Wall
error: error reading '../../test.c'
1 error generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Feb 2 20:08:54 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Feb 2011 20:08:54 -0600 (CST)
Subject: [LLVMbugs] [Bug 9114] Clang a bit too strict about types being
complete
In-Reply-To:
References:
Message-ID: <20110203020854.125FD2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9114
Anders Carlsson changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Anders Carlsson 2011-02-02 20:08:53 CST ---
Committed revision 124768.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 2 22:02:30 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Feb 2011 22:02:30 -0600 (CST)
Subject: [LLVMbugs] [Bug 9127] Load not being folded
In-Reply-To:
References:
Message-ID: <20110203040230.377512A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9127
Rafael ?vila de Esp?ndola changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Rafael ?vila de Esp?ndola 2011-02-02 22:02:29 CST ---
Fixed in 124773.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Feb 3 00:19:42 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Feb 2011 00:19:42 -0600 (CST)
Subject: [LLVMbugs] [Bug 9130] New: missing symbol definition
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9130
Summary: missing symbol definition
Product: clang
Version: trunk
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
When compiling
class nsOggCodecState {
virtual int StartTime() {
return -1;
}
};
class nsVorbisState : public nsOggCodecState {
virtual ~nsVorbisState();
};
nsVorbisState::~nsVorbisState() {
}
clang will produce
U __ZN15nsOggCodecState9StartTimeEv
gcc produces
S __ZN15nsOggCodecState9StartTimeEv
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Feb 3 00:37:26 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Feb 2011 00:37:26 -0600 (CST)
Subject: [LLVMbugs] [Bug 9130] missing symbol definition
In-Reply-To:
References:
Message-ID: <20110203063726.848912A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9130
Rafael ?vila de Esp?ndola changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Rafael ?vila de Esp?ndola 2011-02-03 00:37:26 CST ---
Fixed by reverting 124768.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Feb 3 00:37:38 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Feb 2011 00:37:38 -0600 (CST)
Subject: [LLVMbugs] [Bug 9114] Clang a bit too strict about types being
complete
In-Reply-To:
References:
Message-ID: <20110203063738.514B72A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9114
Rafael ?vila de Esp?ndola changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Feb 3 04:27:05 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Feb 2011 04:27:05 -0600 (CST)
Subject: [LLVMbugs] [Bug 9131] New: clang or static analyser should warn
about signed arithmetic overflow
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9131
Summary: clang or static analyser should warn about signed
arithmetic overflow
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
GAP (http://www.gap-system.org/) uses the following idiom to try to detect
overflowing multiplication. It is wrong because it uses undefined behaviour
(the result of an overflowing signed multiplication). It would be great if
either the compiler or the static analyser would warn about this.
int mul_overflows(int a, int b) {
int mul = a * b;
// Wrong attempt to detect overflow:
return (mul / b) != a;
}
This is particularly important because the optimizers convert this to
"return false;"!
Here are the real code snippets from GAP (variables have type Int, which
is long int):
...
ex = ex * pow;
/* check that n*pow fits into the exponent */
if ( ex/pow!=exs || (0> 2) * ((Int)r-1)+1;
if ((prod << 1)>> 1 != prod)
return (Obj) 0;
if ((((Int)l)<>HALF_A_WORD == (Int) l &&
(((Int)r)<>HALF_A_WORD == (Int) r)
return (Obj) prod;
if ((prod -1) / (l >> 2) == r-1)
return (Obj) prod;
else
return (Obj) 0;
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Feb 3 09:54:21 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Feb 2011 09:54:21 -0600 (CST)
Subject: [LLVMbugs] [Bug 9132] New: clang accepts declarators other than a
literal 'auto' as the return type of a function with a trailing-return-type
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9132
Summary: clang accepts declarators other than a literal 'auto'
as the return type of a function with a
trailing-return-type
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: richard-llvm at metafoo.co.uk
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
clang accepts this:
auto *f() -> int;
and declares f to have type "int*()".
clang crashes on this:
auto *main() -> int;
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Feb 3 14:03:09 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Feb 2011 14:03:09 -0600 (CST)
Subject: [LLVMbugs] [Bug 9133] New: clang emits crashing code at -O0
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9133
Summary: clang emits crashing code at -O0
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu
I believe this was introduced fairly recently, probably in the last 5 days.
[regehr at gamow tmp002]$ clang -O0 small.c -o small
[regehr at gamow tmp002]$ ./small
Segmentation fault
[regehr at gamow tmp002]$ clang -v
clang version 2.9 (trunk 124809)
Target: x86_64-unknown-linux-gnu
Thread model: posix
[regehr at gamow tmp002]$ cat small.c
static int g_1 = 0;
static int g_2 = 0;
static int *g_3 = 0;
static int *foo(int p)
{
char l_1[7][2][4];
int *l_2[5];
int l_3;
return &g_2;
}
int main(int argc, char* argv[])
{
g_3 = foo(1);
g_1 = *g_3;
return 0;
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Feb 3 14:16:06 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Feb 2011 14:16:06 -0600 (CST)
Subject: [LLVMbugs] [Bug 9134] New: register spilled to wrong location
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9134
Summary: register spilled to wrong location
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: SystemZ
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bagel99 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6096)
--> (http://llvm.org/bugs/attachment.cgi?id=6096)
test case
When registers are spilled around call sites, the first spill is to the wrong
stack offset.
The result of the test code produced by "llc -march=systemz" is:
zalloc: # @zalloc
stmg %r14, %r15, 112(%r15)
stg %r2, 168(%r15) # <--exceeds frame size
# spills to old %r15
aghi %r15, -184 # expand frame 160+24
brasl %r14, malloc
stg %r2, 160(%r15) # superfluous but OK
lg %r4, 168(%r15) # <--reload from new r15
lghi %r3, 0
brasl %r14, memset
lg %r1, 160(%r15)
stg %r1, 176(%r15)
lg %r2, 176(%r15)
lmg %r14, %r15, 296(%r15)
br %r14
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Feb 3 14:26:13 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Feb 2011 14:26:13 -0600 (CST)
Subject: [LLVMbugs] [Bug 9135] New: abort: Unsupported regclass to store
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9135
Summary: abort: Unsupported regclass to store
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: SystemZ
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bagel99 at gmail.com
CC: llvmbugs at cs.uiuc.edu
This was produced by a very large program and failed in a large function with
nested switch statements. The test case is very large, so in the spirt of
Fermat, I have omitted it. It is curious that the *.ll only aborts if it is
first optimized by "opt -std-compile-opts".
When I gdb llc, I can see that SystemZInstrInfo::storeRegToStackSlot is being
called with a TargetRegisterClass of CCR (i.e. the PSW).
Here is the abort backtrace:
Unsupported regclass to store
UNREACHABLE executed at SystemZInstrInfo.cpp:63!
0 llc 0x0000000000ea643f
1 llc 0x0000000000ea6f7a
2 libpthread.so.0 0x0000003f4420f3c0
3 libc.so.6 0x0000003f43a34085 gsignal + 53
4 libc.so.6 0x0000003f43a35a36 abort + 390
5 llc 0x0000000000e90d24 llvm::llvm_unreachable_internal(char
const*, char const*, unsigned int) + 356
6 llc 0x00000000005f9a05
7 llc 0x0000000000b9b48c
llvm::TargetInstrInfo::foldMemoryOperand(llvm::ilist_iterator,
llvm::SmallVectorImpl const&, int) const + 1068
8 llc 0x0000000000bf8006
llvm::LiveIntervals::tryFoldMemoryOperand(llvm::MachineInstr*&,
llvm::VirtRegMap&, llvm::MachineInstr*, llvm::SlotIndex,
llvm::SmallVector&, bool, int, unsigned int) + 438
9 llc 0x0000000000bf840a
llvm::LiveIntervals::rewriteInstructionForSpills(llvm::LiveInterval const&,
llvm::VNInfo const*, bool, llvm::SlotIndex, llvm::SlotIndex,
llvm::MachineInstr*, llvm::MachineInstr*, llvm::MachineInstr*, unsigned int,
int, bool, bool, bool, bool, llvm::VirtRegMap&, llvm::TargetRegisterClass
const*, llvm::SmallVector&, llvm::MachineLoopInfo const*, unsigned
int&, unsigned int, bool&, bool&, llvm::DenseMap, llvm::DenseMapInfo >&,
std::vector >&) + 746
10 llc 0x0000000000bf9ffc
llvm::LiveIntervals::rewriteInstructionsForSpills(llvm::LiveInterval const&,
bool, llvm::LiveRange const*&, llvm::MachineInstr*, llvm::MachineInstr*,
unsigned int, int, bool, bool, bool, bool, llvm::VirtRegMap&,
llvm::TargetRegisterClass const*, llvm::SmallVector&,
llvm::MachineLoopInfo const*, llvm::BitVector&, llvm::DenseMap >, llvm::DenseMapInfo, llvm::DenseMapInfo > > >&, llvm::BitVector&,
llvm::DenseMap >, llvm::DenseMapInfo, llvm::DenseMapInfo > > >&, llvm::DenseMap,
llvm::DenseMapInfo >&, std::vector >&) + 3020
11 llc 0x0000000000bfbfa6
llvm::LiveIntervals::addIntervalsForSpills(llvm::LiveInterval const&,
llvm::SmallVectorImpl const&, llvm::MachineLoopInfo
const*, llvm::VirtRegMap&) + 3078
12 llc 0x0000000000b6a14f
13 llc 0x0000000000b155d4
14 llc 0x0000000000b18dff
15 llc 0x0000000000b1a05d
16 llc 0x0000000000ddfc97
llvm::FPPassManager::runOnFunction(llvm::Function&) + 599
17 llc 0x0000000000ddfd5b
llvm::FPPassManager::runOnModule(llvm::Module&) + 75
18 llc 0x0000000000ddf827
llvm::MPPassManager::runOnModule(llvm::Module&) + 551
19 llc 0x0000000000ddf977 llvm::PassManagerImpl::run(llvm::Module&)
+ 167
20 llc 0x000000000053ea3d main + 4701
21 libc.so.6 0x0000003f43a1ee7d __libc_start_main + 253
22 llc 0x000000000053c9a9
Stack dump:
0. Program arguments: /home/bgl/work/llvm/Release+Asserts/bin/llc
-march=systemz main-s390x.bc
1. Running pass 'Function Pass Manager' on module 'main-s390x.bc'.
2. Running pass 'Linear Scan Register Allocator' on function '@lex_Next'
Aborted
I also have the output of "llc -march=systemz -debug" if that would be helpful.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Feb 3 17:16:24 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Feb 2011 17:16:24 -0600 (CST)
Subject: [LLVMbugs] [Bug 9136] New: llvm-config does not like being symlinked
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9136
Summary: llvm-config does not like being symlinked
Product: tools
Version: 2.8
Platform: PC
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: llvm-config
AssignedTo: unassignedbugs at nondot.org
ReportedBy: endobson at mac.com
CC: llvmbugs at cs.uiuc.edu
Currently I have a setup where my installation directory is not on the path for
all users, so I create the installation in /contrib/projects/llvm and then
symlink /contrib/projects/llvm/bin/llvm-config to /contrib/bin/llvm-config.
This puts llvm-config on the users path, but if one runs 'llvm-config
--lib-dir', one gets /contrib/lib instead of /contrib/projects/llvm/lib. This
prevents any symlinking of llvm-config from being useful.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Feb 3 22:21:52 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Feb 2011 22:21:52 -0600 (CST)
Subject: [LLVMbugs] [Bug 8748] Default template arguments in out-of-line
member definitions not rejected.
In-Reply-To:
References:
Message-ID: <20110204042152.BB64D2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8748
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-02-03 22:21:52 CST ---
Fixed in r124856.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 4 05:33:40 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Feb 2011 05:33:40 -0600 (CST)
Subject: [LLVMbugs] [Bug 9137] New: Parser crash with wrong code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9137
Summary: Parser crash with wrong code
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ismail at namtrac.org
CC: llvmbugs at cs.uiuc.edu
[~]> cat test.c
static __attribute__((always_inline)) inline void AV_COPY128(void *d, const
void *s)
: "=m"(*(struct v*)d)
[~]> clang test.c
Assertion failed: (getLang().CPlusPlus && "Call sites of this function should
be guarded by checking for C++"), function ParseOptionalCXXScopeSpecifier, file
ParseExprCXX.cpp, line 65.
0 clang 0x0000000101521bf2
llvm::SmallVectorTemplateBase::grow(unsigned long) +
754
1 clang 0x0000000101522a43
llvm::SmallVectorTemplateBase::grow(unsigned long) +
4419
2 libSystem.B.dylib 0x00007fff885db67a _sigtramp + 26
3 libSystem.B.dylib 0x0000000102033339 _sigtramp + 2040888537
4 clang 0x000000010001a762
std::vector
>::_M_insert_aux(__gnu_cxx::__normal_iterator > >,
llvm::PassRegistrationListener* const&) + 3474
5 clang 0x0000000100312364
llvm::SmallVectorTemplateCommon::operator[](unsigned
int) + 28356
6 clang 0x00000001002f99e9
clang::Parser::DeclaratorScopeObj::EnterDeclaratorScope() + 6105
7 clang 0x00000001002fa94f
clang::Parser::DeclaratorScopeObj::EnterDeclaratorScope() + 10047
8 clang 0x000000010033a23b
llvm::SmallVectorTemplateBase::grow(unsigned long) + 43339
9 clang 0x00000001002ee446 clang::Parser::ConsumeAnyToken() +
30534
10 clang 0x000000010033a505
llvm::SmallVectorTemplateBase::grow(unsigned long) + 44053
11 clang 0x000000010033a947
llvm::SmallVectorTemplateBase::grow(unsigned long) + 45143
12 clang 0x000000010033bc0f
llvm::SmallVectorTemplateBase::grow(unsigned long) + 49951
13 clang 0x000000010033be63
llvm::SmallVectorTemplateBase::grow(unsigned long) + 50547
14 clang 0x00000001002e4b1f llvm::IRBuilder
>::CreateAdd(llvm::Value*, llvm::Value*, llvm::Twine const&) + 463
15 clang 0x00000001002b4ccc llvm::IRBuilder
>::CreateIsNull(llvm::Value*, llvm::Twine const&) + 3980
16 clang 0x00000001000539f9 llvm::DenseMap,
llvm::DenseMapInfo >::grow(unsigned int) + 7849
17 clang 0x0000000100024962 std::_Rb_tree, std::less,
std::allocator >::_M_insert_unique(std::string const&) + 2002
18 clang 0x000000010001c5da
std::vector
>::_M_insert_aux(__gnu_cxx::__normal_iterator > >,
llvm::PassRegistrationListener* const&) + 11274
19 clang 0x0000000100023994 std::vector >::operator=(std::vector > const&) + 12260
20 clang 0x000000010001aee4
std::vector
>::_M_insert_aux(__gnu_cxx::__normal_iterator > >,
llvm::PassRegistrationListener* const&) + 5396
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-apple-darwin10.0.0 -emit-obj -mrelax-all -disable-free -main-file-name
testcase-min.i -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables
-target-cpu core2 -target-linker-version 97.17 -resource-dir
/usr/local/bin/../lib/clang/2.9 -ferror-limit 19 -fmessage-length 120
-stack-protector 1 -fblocks -fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/qk/qkch7RbJFkysE0a-GLNGMU+++TM/-Tmp-/cc-wFiz1e.o -x cpp-output
testcase-min.i
1. testcase-min.i:2:15: current parser token '"=m"'
clang: error: unable to execute command: Illegal instruction
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Feb 4 05:58:25 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Feb 2011 05:58:25 -0600 (CST)
Subject: [LLVMbugs] [Bug 9137] Parser crash with wrong code
In-Reply-To:
References:
Message-ID: <20110204115825.5DD112A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9137
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-02-04 05:58:24 CST ---
Fixed in Clang r124860.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 4 06:27:26 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Feb 2011 06:27:26 -0600 (CST)
Subject: [LLVMbugs] [Bug 9119] no error calling non-const method on const
object
In-Reply-To:
References:
Message-ID: <20110204122726.2CA552A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9119
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Douglas Gregor 2011-02-04 06:27:25 CST ---
*** This bug has been marked as a duplicate of bug 8315 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 4 06:58:07 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Feb 2011 06:58:07 -0600 (CST)
Subject: [LLVMbugs] [Bug 8315] Report error when applying a
pointer-to-const-member-function to non-const object
In-Reply-To:
References:
Message-ID: <20110204125807.5647C2A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8315
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Douglas Gregor 2011-02-04 06:58:06 CST ---
Fixed in Clang r124865.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 4 07:09:18 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Feb 2011 07:09:18 -0600 (CST)
Subject: [LLVMbugs] [Bug 8712] value dependent member in class template
In-Reply-To:
References:
Message-ID: <20110204130918.253292A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8712
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Douglas Gregor 2011-02-04 07:09:17 CST ---
Fixed in r124866.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 4 07:35:35 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Feb 2011 07:35:35 -0600 (CST)
Subject: [LLVMbugs] [Bug 8966] clang++ fails to compile static template
member variable
In-Reply-To:
References:
Message-ID: <20110204133535.90F372A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8966
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Douglas Gregor 2011-02-04 07:35:35 CST ---
Fun one. Fixed in Clang r124867.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 4 12:03:36 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Feb 2011 12:03:36 -0600 (CST)
Subject: [LLVMbugs] [Bug 8551] Wrong type for address-of anonymous union
member.
In-Reply-To:
References:
Message-ID: <20110204180336.E8F9A2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8551
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2011-02-04 12:03:36 CST ---
This is fixed on trunk.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Feb 4 12:58:46 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Feb 2011 12:58:46 -0600 (CST)
Subject: [LLVMbugs] [Bug 8957] Recognize ARM EABI triple
In-Reply-To:
References:
Message-ID: <20110204185846.A74782A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8957
Renato Golin changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Renato Golin 2011-02-04 12:58:46 CST ---
Clang patch committed on 124878
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 4 15:54:21 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Feb 2011 15:54:21 -0600 (CST)
Subject: [LLVMbugs] [Bug 9138] New: Missing builtins used in gcc 4.4.5 cmath
header
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9138
Summary: Missing builtins used in gcc 4.4.5 cmath header
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jbytheway+llvm at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=6101)
--> (http://llvm.org/bugs/attachment.cgi?id=6101)
Output from compiling cmath in C++0x mode
When #including the gcc 4.4.5 header there are many builtin functions
which clang does not support. In particular, the following yields the attached
53 errors:
$ clang++ --version
clang version 2.9 (trunk 124897)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ g++ --version
g++ (Gentoo 4.4.5 p1.0, pie-0.4.5) 4.4.5
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ cat cmath.cpp
#include
int main()
{
}
$ clang++ -std=gnu++0x -o cmath cmath.cpp -ferror-limit=100 > compile-output
2>&1
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Feb 4 16:12:03 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Feb 2011 16:12:03 -0600 (CST)
Subject: [LLVMbugs] [Bug 9139] New: CodeGen/ARM/vector-DAGCombine.ll fails
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9139
Summary: CodeGen/ARM/vector-DAGCombine.ll fails
Product: libraries
Version: trunk
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: evan.cheng at apple.com, llvmbugs at cs.uiuc.edu
This test fails on a beagleboard:
define void @i64_buildvector(i64* %ptr, <2 x i64>* %vp) nounwind {
; CHECK: i64_buildvector
; CHECK: vldr.64
%t0 = load i64* %ptr, align 4
%t1 = insertelement <2 x i64> undef, i64 %t0, i32 0
store <2 x i64> %t1, <2 x i64>* %vp
ret void
}
The produced assembly reads:
.globl i64_buildvector
.align 2
.type i64_buildvector,%function
i64_buildvector: @ @i64_buildvector
@ BB#0:
ldr r2, [r0]
ldr r0, [r0, #4]
vmov d16, r2, r0
vstmia r1, {d16, d17}
mov pc, lr
.Ltmp5:
.size i64_buildvector, .Ltmp5-i64_buildvector
On my x86-64 box I get:
@ BB#0:
vldr.64 d16, [r0]
vstmia r1, {d16, d17}
mov pc, lr
which matches the test. Do we need a full target triple to make this happen?
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 4 16:44:59 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Feb 2011 16:44:59 -0600 (CST)
Subject: [LLVMbugs] [Bug 9080] miscompile under -fomit-frame-pointer on
x86-64
In-Reply-To:
References:
Message-ID: <20110204224459.18D712A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9080
Nick Lewycky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Nick Lewycky 2011-02-04 16:44:58 CST ---
Fixed in r124903,
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20110131/116062.html
.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Feb 4 16:45:58 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Feb 2011 16:45:58 -0600 (CST)
Subject: [LLVMbugs] [Bug 9140] New: Assertion failure in clang++ in gnu++0x
mode
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9140
Summary: Assertion failure in clang++ in gnu++0x mode
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jbytheway+llvm at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=6102)
--> (http://llvm.org/bugs/attachment.cgi?id=6102)
Output from compiling, including assertion failure and backtrace
The following (invalid) code triggers an assertion failure in clang++.
The assertion is "SemaCXXCast.cpp:612: TryCastResult
TryStaticCast(clang::Sema&, clang::Expr*&, clang::QualType, bool, const
clang::SourceRange&, unsigned int&, clang::CastKind&, clang::CXXCastPath&):
Assertion `SrcType->getAs()->getDecl()->isScoped()' failed."; full
output in the attachment.
The source code has been reduced with multidelta, so looks a bit odd.
$ clang++ --version
clang version 2.9 (trunk 124897)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ cat assertion.cpp
template < typename _Tp > class allocator:public __gnu_cxx::new_allocator < _Tp
>
{
}
class c_storage_order {
template < typename T, std::size_t NumDims, typename Allocator =
std::allocator < T > >class multi_array;
template < typename T,
std::size_t NumDims >
class multi_array_ref:public const_multi_array_ref < T, NumDims, T * > {
} template < typename T, std::size_t NumDims,
typename Allocator > class multi_array:public multi_array_ref < T,
NumDims > {
typedef multi_array_ref < T, NumDims > super_type;
explicit multi_array():super_type((T *) initial_base_, c_storage_order(),
0, 0) {
}
enum {
initial_base_ = 0
};
};
class BoardState {
struct Board:utility::DataClass < Board, boost::multi_array < BoardState,
2 >, states > {
Board() {
$ clang++ --std=gnu++0x -o /dev/null assertion.cpp > compile-output 2>&1
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Feb 4 16:48:20 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Feb 2011 16:48:20 -0600 (CST)
Subject: [LLVMbugs] [Bug 9141] New: Assertion failure in clang++ compiling
invalid code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9141
Summary: Assertion failure in clang++ compiling invalid code
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jbytheway+llvm at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=6103)
--> (http://llvm.org/bugs/attachment.cgi?id=6103)
Output from compiling, including assertion failure and backtrace
The following (invalid) code triggers an assertion failure in clang++; it's a
FIXME so I guess it hardly needs a bug report, but I found it by accident while
trying to pin down #9140, so I thought I'd report it anyway.
The assertion is "ParseExprCXX.cpp:228: bool
clang::Parser::ParseOptionalCXXScopeSpecifier(clang::CXXScopeSpec&,
clang::ParsedType, bool, bool*): Assertion `false && "FIXME: Only type template
names supported here"' failed."; full output in the attachment.
The source code has been reduced with multidelta, so looks a bit odd.
$ clang++ --version
clang version 2.9 (trunk 124897)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ cat assertion.cpp
namespace result_of {
template < typename Sequence >
struct end:extension::end_impl <
typename detail::tag_of < Sequence >::type
>::template apply < Sequence >
{
};
}
template < typename Sequence >
inline typename result_of::end ::type const end(Sequence & seq)
{
typedef typename end < Sequence >::type end_;
$ clang++ -o /dev/null assertion.cpp > compile-output 2>&1
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Feb 4 17:49:45 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Feb 2011 17:49:45 -0600 (CST)
Subject: [LLVMbugs] [Bug 9142] New: [mc] unknown token "%r14" in movq
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9142
Summary: [mc] unknown token "%r14" in movq
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu
This one-line assembly file:
movq 8+(%r14), %mm0
doesn't assemble with llvm-mc:
$ llvm-mc -assemble x.s -arch=x86_64
.section __TEXT,__text,regular,pure_instructions
x.s:1:17: error: unknown token in expression
movq 8+(%r14), %mm0
^
but GAS accepts it, if noisily:
nlewycky at ducttape:~$ as x.s -o x.o
x.s: Assembler messages:
x.s:1: Warning: missing operand; zero assumed
nlewycky at ducttape:~$ objdump -d x.o
x.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <.text>:
0: 41 0f 6f 46 08 movq 0x8(%r14),%mm0
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 4 18:17:06 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Feb 2011 18:17:06 -0600 (CST)
Subject: [LLVMbugs] [Bug 9143] New: -Wuninitialized suggests `= 0` for enums
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9143
Summary: -Wuninitialized suggests `= 0` for enums
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu
hummer:src thakis$ cat test.cc
enum A {
A_a, A_b
};
A f() {
A a;
return a;
}
hummer:src thakis$ ~/src/llvm-svn/Release+Asserts/bin/clang -c test.cc -Wall
test.cc:6:10: warning: variable 'a' is possibly uninitialized when used here
[-Wuninitialized]
return a;
^
test.cc:5:3: note: variable 'a' is declared here
A a;
^
test.cc:5:6: note: add initialization to silence this warning
A a;
^
= 0
1 warning generated.
But doing this is of course not valid:
hummer:src thakis$ cat test.cc
enum A {
A_a, A_b
};
A f() {
A a = 0;
return a;
}
hummer:src thakis$ ~/src/llvm-svn/Release+Asserts/bin/clang -c test.cc -Wall
test.cc:5:5: error: cannot initialize a variable of type 'A' with an rvalue of
type 'int'
A a = 0;
^ ~
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 Feb 4 18:52:45 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Feb 2011 18:52:45 -0600 (CST)
Subject: [LLVMbugs] [Bug 9144] New: The static analyzer should warn when
+initialize doesn't call [super initialize]
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9144
Summary: The static analyzer should warn when +initialize
doesn't call [super initialize]
Product: clang
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: kc at omnigroup.com
CC: llvmbugs at cs.uiuc.edu
Overview:
The static analyzer should warn when +initialize doesn't call [super
initialize], since that can lead to inconsistent and unreliable behavior with
respect to initializing a class.
Discussion:
One should always call [super initialize] because that's what happens if
you don't implement +initialize--and you shouldn't change a subclass' behavior
when you implement a subclassed method.
In Objective C, a class' +initialize is supposed to be called for itself
and for every subclass which is initialized. This is the implemented and
documented behavior of the runtime.
This is an important feature of the language: the superclass may need to
register some information for each of its subclasses, e.g. to set up
class-specific mapping dictionaries, or to register CoreData change
notifications for dependent keys. The superclass doesn't and shouldn't know
which subclasses are non-implementing and the subclasses shouldn't need to know
what initialization the superclass needs to do, the superclass should be able
to do class-specific initialization for each of its subclasses.
I can think of no benefit to not calling [super initialize] except to avoid
some slight overhead--the same benefit one might achieve by not calling [super
init] (which also seems like terrible general advice). And there would be a
big downside in terms of consistency of behavior between classes which do or
don't implement +initialize and consistency of implementation between the way
you might implement +initialize and the way you would implement other methods.
Instead, as a general rule, one should know that any time they subclass any
method they should call the superclass' implementation (unless they are
intentionally trying to bypass/replace the logic provided by the superclass).
This is just as true for +initialize as it is for any other method.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 4 19:19:02 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Feb 2011 19:19:02 -0600 (CST)
Subject: [LLVMbugs] [Bug 9143] -Wuninitialized suggests `= 0` for enums
In-Reply-To:
References:
Message-ID: <20110205011902.9AECE2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9143
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |kremenek at apple.com
Resolution| |FIXED
--- Comment #1 from Ted Kremenek 2011-02-04 19:19:02 CST ---
Fixed here:
r124924
Now no fixit is emitted. That seems like a reasonable tradeoff, since it isn't
always clear what should be the "default" enum value.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Feb 4 22:36:20 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Feb 2011 22:36:20 -0600 (CST)
Subject: [LLVMbugs] [Bug 9114] Clang a bit too strict about types being
complete
In-Reply-To:
References:
Message-ID: <20110205043620.7F6242A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9114
Anders Carlsson changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Anders Carlsson 2011-02-04 22:36:20 CST ---
Let's try this again then:
Committed revision 124935.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 4 22:40:02 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Feb 2011 22:40:02 -0600 (CST)
Subject: [LLVMbugs] [Bug 9145] New: llvm-ld with clang is failing on OS X,
but not on Linux
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9145
Summary: llvm-ld with clang is failing on OS X, but not on
Linux
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: endobson at mac.com
CC: llvmbugs at cs.uiuc.edu
Trying to compile the following program:
eric at eric-dobsons-macbook () ~/proj/course/11Spring/compilers % cat tmp.ll
; ModuleID = 'tmp.ll'
define i32 @main(i32, i8**) {
entry:
ret i32 0
}
eric at eric-dobsons-macbook () ~/proj/course/11Spring/compilers % llvmc -clang -v
-o tmp.bin tmp.ll
llc -O2 tmp.ll -o /tmp/llvm_jjsfVp/tmp.s
as /tmp/llvm_jjsfVp/tmp.s -o /tmp/llvm_jjsfVp/tmp.o
llvm-ld -native -disable-internalize /tmp/llvm_jjsfVp/tmp.o -o tmp.bin
llvm-ld: warning: Ignoring file '/tmp/llvm_jjsfVp/tmp.o' because does not
contain bitcode.
Undefined symbols:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
llvm-ld:
But when compling with llvm-gcc it succeeds
eric at eric-dobsons-macbook () ~/proj/course/11Spring/compilers % llvmc -v -o
tmp.bin tmp.ll
llc -O2 tmp.ll -o /tmp/llvm_pFE0lx/tmp.s
llvm-gcc -c -x assembler /tmp/llvm_pFE0lx/tmp.s -o /tmp/llvm_pFE0lx/tmp.o
llvm-gcc /tmp/llvm_pFE0lx/tmp.o -o tmp.bin
and on linux it succeeds as well
endobson at cslab3d () ~/tmp % llvmc -clang -v -o tmp.bin tmp.bc
llc -O2 tmp.bc -o /tmp/llvm_MUIdwt/tmp.s
as /tmp/llvm_MUIdwt/tmp.s -o /tmp/llvm_MUIdwt/tmp.o
llvm-ld -native -disable-internalize /tmp/llvm_MUIdwt/tmp.o -o tmp.bin
If llvm-ld does not support this option on OS X then llvmc should not invoke it
in this manner.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 4 23:57:05 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Feb 2011 23:57:05 -0600 (CST)
Subject: [LLVMbugs] [Bug 9094] Assigning to self twice in init provokes
spurious warning about not assigning at all
In-Reply-To:
References:
Message-ID: <20110205055705.D45252A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9094
Argyrios Kyrtzidis changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Argyrios Kyrtzidis 2011-02-04 23:57:05 CST ---
Fixed at r124940. Thanks for the report!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Feb 5 04:18:06 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 5 Feb 2011 04:18:06 -0600 (CST)
Subject: [LLVMbugs] [Bug 9146] New: Possible bug in a stack unwinding
mechanism.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9146
Summary: Possible bug in a stack unwinding mechanism.
Product: clang
Version: 2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dmi3evsv at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
If an exception is thrown from an constructor during initialization of array
then no destructors for already constructed elements are called.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 5 09:26:25 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 5 Feb 2011 09:26:25 -0600 (CST)
Subject: [LLVMbugs] [Bug 9147] New: ./configure test craps out with clang
but not with gcc
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9147
Summary: ./configure test craps out with clang but not with gcc
Product: clang
Version: 2.7
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: stark at mit.edu
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6106)
--> (http://llvm.org/bugs/attachment.cgi?id=6106)
Configure test which works with gcc but not clang
Our ./configure test fails with clang but not with gcc as follows (the test is
attached)
$ gcc -c -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -D_GNU_SOURCE conftest.c
$ clang -c -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -D_GNU_SOURCE conftest.c
conftest.c:81:12: error: conflicting types for 'accept'
extern int accept (int, struct sockaddr *, socklen_t *);
^
In file included from conftest.c:79:
/usr/include/sys/socket.h:214:12: note: previous declaration is here
extern int accept (int __fd, __SOCKADDR_ARG __addr,
^
2 diagnostics generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Feb 5 11:01:46 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 5 Feb 2011 11:01:46 -0600 (CST)
Subject: [LLVMbugs] [Bug 9148] New: [ENH] Support the 'ms_abi' and
'sysv_abi' attributes
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9148
Summary: [ENH] Support the 'ms_abi' and 'sysv_abi' attributes
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: cdavis at mymail.mines.edu
CC: llvmbugs at cs.uiuc.edu
The Win64 and System V x86-64 ABIs have different calling conventions.
Currently, LLVM picks the right convention based on the target triple.
GCC does this too, but it also allows code to override the default using two
attributes, 'ms_abi' and 'sysv_abi', which pick the Win64 and System V x86-64
conventions, respectively.
Sixty-four-bit Wine (http://www.winehq.org/) uses the ms_abi attribute
extensively in order for its DLLs to have the correct calling convention.
Without this support, LLVM-based compilers can't build 64-bit Wine.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 5 14:25:35 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 5 Feb 2011 14:25:35 -0600 (CST)
Subject: [LLVMbugs] [Bug 9149] New: [MC] Disassembler fails to decode
instructions with alternate encodings
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9149
Summary: [MC] Disassembler fails to decode instructions with
alternate encodings
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nemerle5 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Assembling "movl %esi,%eax" with llvm-mc produces [0x89,0xc6]
But the same instruction can as well be encoded as [0x8b 0xf0]
Simple example:
echo "0x8b 0xf0" | ./llvm-mc -disassemble -triple=i386-unknown-unknown
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 5 15:15:39 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 5 Feb 2011 15:15:39 -0600 (CST)
Subject: [LLVMbugs] [Bug 9149] [MC] Disassembler fails to decode
instructions with alternate encodings
In-Reply-To:
References:
Message-ID: <20110205211539.1E5532A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9149
Artur Kuptel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Artur Kuptel 2011-02-05 15:15:38 CST ---
This can be solved the same way as http://llvm.org/bugs/show_bug.cgi?id=8873#c1
so I'm marking this as duplicate of 8873
*** This bug has been marked as a duplicate of bug 8873 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 5 15:44:36 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 5 Feb 2011 15:44:36 -0600 (CST)
Subject: [LLVMbugs] [Bug 9150] New: inaccurate results from divdc3 on x86_64
darwin10
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9150
Summary: inaccurate results from divdc3 on x86_64 darwin10
Product: compiler-rt
Version: unspecified
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: compiler-rt
AssignedTo: unassignedbugs at nondot.org
ReportedBy: howarth at nitro.med.uc.edu
CC: llvmbugs at cs.uiuc.edu
The lazy implementation of divdc3 in compiler-rt results in accurate results
for the following test...
--- divdc3_test.c.sav 2011-02-05 15:56:15.000000000 -0500
+++ divdc3_test.c 2011-02-05 16:46:31.000000000 -0500
@@ -49,8 +49,8 @@
int test__divdc3(double a, double b, double c, double d)
{
double _Complex r = __divdc3(a, b, c, d);
-// printf("test__divdc3(%f, %f, %f, %f) = %f + I%f\n",
-// a, b, c, d, creal(r), cimag(r));
+ printf("test__divdc3(%f, %f, %f, %f) = %f + I%f\n",
+ a, b, c, d, creal(r), cimag(r));
double _Complex dividend;
double _Complex divisor;
@@ -365,6 +365,7 @@
return 1;
}
}
+ test__divdc3(__DBL_MAX__ * 0.5, __DBL_MAX__ * 0.5,__DBL_MAX__ * 0.25,
__DBL_MAX__ * 0.25);
return 0;
}
which produces the inaccurate results...
gcc -I ../../lib divdc3_test.c ../../darwin_fat/Release/libcompiler_rt.a
./a.out
....
test__divdc3(89884656743115785407263711865852178399035283762922498299458738401578630390014269380294779316383439085770229476757191232117160663444732091384233773351768758493024955288275641038122745045194664472037934254227566971152291618451611474082904279666061674137398913102072361584369088590459649940625202013092062429184.000000,
89884656743115785407263711865852178399035283762922498299458738401578630390014269380294779316383439085770229476757191232117160663444732091384233773351768758493024955288275641038122745045194664472037934254227566971152291618451611474082904279666061674137398913102072361584369088590459649940625202013092062429184.000000,
44942328371557892703631855932926089199517641881461249149729369200789315195007134690147389658191719542885114738378595616058580331722366045692116886675884379246512477644137820519061372522597332236018967127113783485576145809225805737041452139833030837068699456551036180792184544295229824970312601006546031214592.000000,
44942328371557892703631855932926089199517641881461249149729369200789315195007134690147389658191719542885114738378595616058580331722366045692116886675884379246512477644137820519061372522597332236018967127113783485576145809225805737041452139833030837068699456551036180792184544295229824970312601006546031214592.000000)
= inf + I0.000000
compared to the accurate implementation of divdc3 in FSF gcc's libgcc...
gcc-4 -I ../../lib divdc3_test.c
/sw/lib/gcc4.6/lib/gcc/x86_64-apple-darwin10.7.0/4.6.0/libgcc.a
./a.out
...
test__divdc3(89884656743115785407263711865852178399035283762922498299458738401578630390014269380294779316383439085770229476757191232117160663444732091384233773351768758493024955288275641038122745045194664472037934254227566971152291618451611474082904279666061674137398913102072361584369088590459649940625202013092062429184.000000,
89884656743115785407263711865852178399035283762922498299458738401578630390014269380294779316383439085770229476757191232117160663444732091384233773351768758493024955288275641038122745045194664472037934254227566971152291618451611474082904279666061674137398913102072361584369088590459649940625202013092062429184.000000,
44942328371557892703631855932926089199517641881461249149729369200789315195007134690147389658191719542885114738378595616058580331722366045692116886675884379246512477644137820519061372522597332236018967127113783485576145809225805737041452139833030837068699456551036180792184544295229824970312601006546031214592.000000,
44942328371557892703631855932926089199517641881461249149729369200789315195007134690147389658191719542885114738378595616058580331722366045692116886675884379246512477644137820519061372522597332236018967127113783485576145809225805737041452139833030837068699456551036180792184544295229824970312601006546031214592.000000)
= 2.000000 + I0.000000
Not fixing this bug degrades the utility of compiler-rt for scientific
applications.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 5 17:24:16 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 5 Feb 2011 17:24:16 -0600 (CST)
Subject: [LLVMbugs] [Bug 9151] New: Assertion failed: ((Result ||
isa(D) || D->isInvalidDecl() ||
cast(ParentDC)->isInvalidDecl()) && "Unable to find instantiation of
declaration!")
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9151
Summary: Assertion failed: ((Result || isa(D)
|| D->isInvalidDecl() ||
cast(ParentDC)->isInvalidDecl()) && "Unable to
find instantiation of declaration!")
Product: clang
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: pawel.worach at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=6107)
--> (http://llvm.org/bugs/attachment.cgi?id=6107)
598.ii
Building mp4v2 (http://code.google.com/p/mp4v2/) 1.9.1 causes the following
clang assert:
In file included from src/bmff/typebmff.cpp:1:
src/bmff/typebmff.cpp:38:49: error: definition or redeclaration of 'data' not
in
a namespace enclosing 'Enum'
const EnumLanguageCode::Entry EnumLanguageCode::data[] = {
~~~~~~~~~~~~~~~~~~^
Assertion failed: ((Result || isa(D) || D->isInvalidDecl() ||
cast(ParentDC)->isInvalidDecl()) && "Unable to find instantiation of
declaration!"), function FindInstantiatedDecl, file
/usr/src-local/llvm/tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp, line
2994.
Stack dump:
0. Program arguments: /usr/opt/llvm/bin/clang -cc1 -triple
x86_64-unknown-freebsd9.0 -S -disable-free -main-file-name typebmff.ii
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -target-linker-version 2.15
-momit-leaf-frame-pointer -resource-dir /usr/opt/llvm/bin/../lib/clang/2.9
-ferror-limit 19 -fmessage-length 80 -fexceptions -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o typebmff.s -x c++-cpp-output
typebmff.ii
1. parser at end of file
2. ./src/enum.h:96:5: instantiating function definition 'Enum'
clang: error: unable to execute command: Abort trap: 6 (core dumped)
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)
Delta reduced test-case attached.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Feb 5 18:19:11 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 5 Feb 2011 18:19:11 -0600 (CST)
Subject: [LLVMbugs] [Bug 9152] New: File takes 1 minute to compile much
longer than with gcc or other similar files with llvm
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9152
Summary: File takes 1 minute to compile much longer than with
gcc or other similar files with llvm
Product: clang
Version: 2.7
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: stark at mit.edu
CC: llvmbugs at cs.uiuc.edu
In trying to build postgres there's one bison grammar that seems to take 1
minute to compile with clang. All the other files go by pretty quick but this
parser just seems to spin with 100% cpu for a minute.
I've attached the preprocessed source of the parser.
stark at raving:~/src$ time gcc -O2 -c -o preproc.o preproc.c
real 0m5.426s
user 0m5.230s
sys 0m0.150s
stark at raving:~/src$ time clang -O0 -c -o preproc.o preproc.c
real 0m1.146s
user 0m1.070s
sys 0m0.100s
stark at raving:~/src$ time clang -O1 -c -o preproc.o preproc.c
real 0m57.067s
user 0m56.820s
sys 0m0.210s
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 6 04:51:18 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 6 Feb 2011 04:51:18 -0600 (CST)
Subject: [LLVMbugs] [Bug 9153] New: http://libcxx.llvm.org/ build
instructions invalid for linux
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9153
Summary: http://libcxx.llvm.org/ build instructions invalid for
linux
Product: libc++
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
AssignedTo: hhinnant at apple.com
ReportedBy: cppljevans at suddenlink.net
CC: llvmbugs at cs.uiuc.edu
The web page:
http://libcxx.llvm.org/
uses:
export TRIPLE=-apple-
which, I assume, is invalid for linux systems, but there's no
mention of this on the page.
Also, there's:
sudo ln -sf path-to-libcxx/lib/libc++.1.dylib libc++.dylib
which won't work for linux since the shared library has a
different suffix than .dylib: On linux (or, to be precise
on ubuntu) the name is:
libc++.so.1.0
In addition, the buildit script needs to be modified as
reported in this post:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-February/013228.html
and the instructions about symlinks in /usr/lib need to be modfied
as reported in this post:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-February/013231.html
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Feb 6 05:14:59 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 6 Feb 2011 05:14:59 -0600 (CST)
Subject: [LLVMbugs] [Bug 9154] New: Assertion failed: (getCost() == C &&
"Cost exceeds InlineCost precision")
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9154
Summary: Assertion failed: (getCost() == C && "Cost exceeds
InlineCost precision")
Product: clang
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: pawel.worach at gmail.com
CC: llvmbugs at cs.uiuc.edu
This looks like a random crash building python's cmath module on FreeBSD/i386.
llvm/clang r124977, this is a fairly recent regression.
% /usr/local/llvm2/bin/clang -c -O2 059.i
Assertion failed: (getCost() == C && "Cost exceeds InlineCost precision"),
function InlineCost, file
/data/buildslave/freebsd-clang-i386/src-llvm/include/llvm/Analysis/InlineCost.h,
line 74.
Stack dump:
0. Program arguments: /usr/local/llvm2/bin/clang -cc1 -triple
i386-unknown-freebsd8.1 -emit-obj -disable-free -main-file-name 059.i
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-target-cpu i486 -target-linker-version 2.15 -momit-leaf-frame-pointer
-resource-dir /usr/local/llvm2/bin/../lib/clang/2.9 -O2 -ferror-limit 19
-fmessage-length 80 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics
-o 059.o -x cpp-output 059.i
1. parser at end of file
2. Per-module optimization passes
3. Running pass 'CallGraph Pass Manager' on module '059.i'.
clang: error: unable to execute command: Abort trap: 6 (core dumped)
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Feb 6 12:01:01 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 6 Feb 2011 12:01:01 -0600 (CST)
Subject: [LLVMbugs] [Bug 9155] New: NDEBUG is defined in debug configuration
for Visual Studio projects
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9155
Summary: NDEBUG is defined in debug configuration for Visual
Studio projects
Product: Build scripts
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: cmake
AssignedTo: unassignedbugs at nondot.org
ReportedBy: art.oriented at gmail.com
CC: llvmbugs at cs.uiuc.edu
I generated Visual Studio 2010 projects from cmake. However, I've found that
NDEBUG is defined in the debug configurations. Note that all other release
configurations also have this NDEBUG define.
So, we can't correctly use DEBUG macro in "Support\Debug.h". Even in the debug
configuration, DEBUG macro did not expand as in an optimized build
configuration.
It is very tedious to delete NDEBUG defines in every project files. Could you
resolve by fixing CMake configuration?
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 6 12:08:13 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 6 Feb 2011 12:08:13 -0600 (CST)
Subject: [LLVMbugs] [Bug 9156] New: CLANG_RESOURCE_DIR,
CXX_INCLUDE_* are missed in config.h
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9156
Summary: CLANG_RESOURCE_DIR, CXX_INCLUDE_* are missed in
config.h
Product: Build scripts
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: release blocker
Priority: P
Component: autoconf
AssignedTo: unassignedbugs at nondot.org
ReportedBy: art.oriented at gmail.com
CC: llvmbugs at cs.uiuc.edu
This is a new bug in the current trunk (as of Feb 6th 2011). It was okay with
2.8.
I'm actively using LLVM on Windows platform. I checked out the latest trunk
from SVN, and ran cmake to generate Visual Studio projects. However, "config.h"
missed several #define, so compilation isn't working (e.g., can't find an
identifier 'CLANG_RESOURCE_DIR' or 'CXX_INCLUDE_ROOT').
The missing #define I've seen so far:
<-------
#define CLANG_RESOURCE_DIR ""
/* Directories clang will search for headers */
#define C_INCLUDE_DIRS ""
/* Directory clang will search for libstdc++ headers */
#define CXX_INCLUDE_ROOT ""
/* Architecture of libstdc++ headers */
#define CXX_INCLUDE_ARCH ""
/* 32 bit multilib directory */
#define CXX_INCLUDE_32BIT_DIR ""
/* 64 bit multilib directory */
#define CXX_INCLUDE_64BIT_DIR ""
-------->
I just copied from the config.h of 2.8.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Feb 6 12:18:00 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 6 Feb 2011 12:18:00 -0600 (CST)
Subject: [LLVMbugs] [Bug 9157] New: Use of undeclared 'operator[]'
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9157
Summary: Use of undeclared 'operator[]'
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: treaves at silverfieldstech.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
I have a file with this line of code:
operator[](i)[j] = right[ i][ j];
llvm-g++ and g++ both compile it fine. clang++ gives the error in the summary.
Apple clang version 2.0 (tags/Apple/clang-134) (based on LLVM 2.9svn)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Feb 6 13:07:59 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 6 Feb 2011 13:07:59 -0600 (CST)
Subject: [LLVMbugs] [Bug 9155] NDEBUG is defined in debug configuration for
Visual Studio projects
In-Reply-To:
References:
Message-ID: <20110206190759.288CD2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9155
?scar Fuentes changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |ofv at wanadoo.es
Resolution| |FIXED
--- Comment #1 from ?scar Fuentes 2011-02-06 13:07:58 CST ---
Fixed in r124985.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 6 13:34:10 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 6 Feb 2011 13:34:10 -0600 (CST)
Subject: [LLVMbugs] [Bug 9158] New: Assertion failed in codegen
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9158
Summary: Assertion failed in codegen
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: nadav.rotem at intel.com
CC: llvmbugs at cs.uiuc.edu
; ModuleID = 'bugpoint-reduced-simplified.bc'
target triple = "x86_64-unknown-linux-gnu"
define fastcc void @m_387() nounwind {
entry:
%0 = load <4 x float>* undef
%1 = load <4 x float>* null
%merge68 = select <4 x i1> undef, <4 x float> %0, <4 x float> %1
store <4 x float> %merge68, <4 x float> addrspace(1)* undef
ret void
}
The codegen has the following optimization: If we select between the result of
two loads, then we can select between their pointers. However, this fails in
the case of vector select (where the selector is a vector).
Index: DAGCombiner.cpp
===================================================================
--- DAGCombiner.cpp (revision 2788)
+++ DAGCombiner.cpp (working copy)
@@ -6581,6 +6581,9 @@
bool DAGCombiner::SimplifySelectOps(SDNode *TheSelect, SDValue LHS,
SDValue RHS) {
+ // Cannot simplify select with vector condition
+ if (TheSelect->getOperand(0).getValueType().isVector()) return false;
+
// If this is a select from two identical things, try to pull the operation
// through the select.
if (LHS.getOpcode() == RHS.getOpcode() && LHS.hasOneUse() &&
RHS.hasOneUse()){
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 6 13:44:26 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 6 Feb 2011 13:44:26 -0600 (CST)
Subject: [LLVMbugs] [Bug 9156] CLANG_RESOURCE_DIR,
CXX_INCLUDE_* are missed in config.h
In-Reply-To:
References:
Message-ID: <20110206194426.E14E92A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9156
?scar Fuentes changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |ofv at wanadoo.es
Resolution| |INVALID
--- Comment #1 from ?scar Fuentes 2011-02-06 13:44:26 CST ---
Now Clang has its own config.h file on CMake builds. It is
tools/clang/include/clang/Config/config.h.
I just tested the VC++ IDE build and it worked fine. If it doesn't work for
you, please reopen this bug report showing the error messages.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 6 15:28:05 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 6 Feb 2011 15:28:05 -0600 (CST)
Subject: [LLVMbugs] [Bug 9154] Assertion failed: (getCost() == C && "Cost
exceeds InlineCost precision")
In-Reply-To:
References:
Message-ID: <20110206212805.C6AAE2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9154
Eric Christopher changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #9 from Eric Christopher 2011-02-06 15:28:05 CST ---
Sorry about that. Fixed thusly:
[issola:~/sources/llvm] echristo% svn ci
Sending lib/Analysis/InlineCost.cpp
Transmitting file data .
Committed revision 124991.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 6 16:08:31 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 6 Feb 2011 16:08:31 -0600 (CST)
Subject: [LLVMbugs] [Bug 3402] sse cannot be turned off for x86-64 -> linux
kernel panics
In-Reply-To:
References:
Message-ID: <20110206220831.ED5D92A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=3402
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #10 from Chris Lattner 2011-02-06 16:08:30 CST ---
This patch got applied a while ago.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Feb 6 20:10:20 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 6 Feb 2011 20:10:20 -0600 (CST)
Subject: [LLVMbugs] [Bug 9159] New: .svn installed in /usr/share/llvm/cmake
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9159
Summary: .svn installed in /usr/share/llvm/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: oroppas at gmail.com
CC: llvmbugs at cs.uiuc.edu
Hi,
I noticed the redundant hidden svn directory ended up being installed
system-wise.
$ ls -la /usr/share/llvm/cmake
total 68
drwxr-xr-x 3 root root 4096 Feb 5 19:50 .
drwxr-xr-x 3 root root 4096 Feb 5 19:50 ..
-rw-r--r-- 1 root root 3876 Feb 4 09:28 AddLLVM.cmake
-rw-r--r-- 1 root root 492 Feb 4 09:28 AddLLVMDefinitions.cmake
-rw-r--r-- 1 root root 3813 Feb 4 09:28 ChooseMSVCCRT.cmake
-rw-r--r-- 1 root root 702 Feb 4 09:28 CMakeLists.txt
-rw-r--r-- 1 root root 1031 Feb 4 09:28 CrossCompileLLVM.cmake
-rw-r--r-- 1 root root 5092 Feb 4 09:28 HandleLLVMOptions.cmake
-rw-r--r-- 1 root root 1995 Feb 4 09:31 LLVM.cmake
-rw-r--r-- 1 root root 6495 Feb 4 09:28 LLVMConfig.cmake
-rw-r--r-- 1 root root 6328 Feb 4 09:28 LLVMLibDeps.cmake
-rw-r--r-- 1 root root 2863 Feb 4 09:28 LLVMProcessSources.cmake
drwxr-xr-x 6 root root 4096 Feb 5 19:50 .svn
-rw-r--r-- 1 root root 1983 Feb 4 15:52 TableGen.cmake
Here's how I build LLVM/Clang:
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DCMAKE_CXX_FLAGS:STRING="-O2 -march=native -pipe" \
-DCMAKE_C_FLAGS:STRING="-O2 -march=native -pipe" \
-DLLVM_BUILD_EXAMPLES:BOOL=ON \
-DLLVM_BUILD_TESTS:BOOL=OFF \
-DLLVM_BUILD_TOOLS:BOOL=ON \
-DLLVM_ENABLE_THREADS:BOOL=ON \
-DLLVM_ENABLE_PEDANTIC:BOOL=ON \
-DLLVM_ENABLE_WARNINGS:BOOL=ON \
-DLLVM_ENABLE_WERROR:BOOL=OFF \
-DLLVM_TARGETS_TO_BUILD:STRING="X86;PTX" \
-DLLVM_TARGET_ARCH:STRING="X86" \
-DCLANG_BUILD_EXAMPLES:BOOL=ON \
-DCLANG_TEST_USE_VG:BOOL=OFF \
../$_svnmod || return 1
make || return 1
make DESTDIR=${pkgdir} install
Regards,
Ryuta
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 6 20:23:02 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 6 Feb 2011 20:23:02 -0600 (CST)
Subject: [LLVMbugs] [Bug 9159] .svn installed in /usr/share/llvm/cmake
In-Reply-To:
References:
Message-ID: <20110207022303.03D0F2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9159
?scar Fuentes changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |ofv at wanadoo.es
Resolution| |FIXED
--- Comment #1 from ?scar Fuentes 2011-02-06 20:23:02 CST ---
Fixed on r125001.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 7 08:15:17 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 7 Feb 2011 08:15:17 -0600 (CST)
Subject: [LLVMbugs] [Bug 9160] New: clang segmentation fault with -Wshadow
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9160
Summary: clang segmentation fault with -Wshadow
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: felix.ritter at mevis.fraunhofer.de
CC: llvmbugs at cs.uiuc.edu
clang version 2.9 (trunk 125005)
Target: x86_64-apple-darwin10
Thread model: posix
clang segfaults when the shadow warning is activated (-Wshadow), it does not
crash without this warning:
0 clang 0x0000000101524032 PrintStackTrace(void*) + 34
1 clang 0x0000000101524e83 SignalHandler(int) + 707
2 libSystem.B.dylib 0x00007fff847b767a _sigtramp + 26
3 libSystem.B.dylib 0x00000000002c5db0 _sigtramp + 2075191120
4 clang 0x00000001003d1047
clang::Sema::ActOnVariableDeclarator(clang::Scope*, clang::Declarator&,
clang::DeclContext*, clang::QualType, clang::TypeSourceInfo*,
clang::LookupResult&, clang::ASTMultiPtr, bool&)
+ 2887
5 clang 0x00000001003d7fc4
clang::Sema::HandleDeclarator(clang::Scope*, clang::Declarator&,
clang::ASTMultiPtr, bool) + 1492
6 clang 0x00000001002e8b21
clang::Parser::ParseDeclarationAfterDeclarator(clang::Declarator&,
clang::Parser::ParsedTemplateInfo const&) + 1649
7 clang 0x00000001002ec129
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*) + 761
8 clang 0x00000001002f5235
clang::Parser::ParseSimpleDeclaration(clang::ASTOwningVector&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, bool) +
853
9 clang 0x00000001002f5339
clang::Parser::ParseDeclaration(clang::ASTOwningVector&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 105
10 clang 0x00000001003250b6
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector&, bool) + 1910
11 clang 0x000000010032534e
clang::Parser::ParseCompoundStatementBody(bool) + 446
12 clang 0x0000000100324df6
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector&, bool) + 1206
13 clang 0x000000010032812c
clang::Parser::ParseIfStatement(clang::ParsedAttributes&) + 876
14 clang 0x0000000100324e3c
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector&, bool) + 1276
15 clang 0x000000010032534e
clang::Parser::ParseCompoundStatementBody(bool) + 446
16 clang 0x000000010032611a
clang::Parser::ParseCXXTryBlockCommon(clang::SourceLocation) + 154
17 clang 0x0000000100324cf3
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector&, bool) + 947
18 clang 0x000000010032534e
clang::Parser::ParseCompoundStatementBody(bool) + 446
19 clang 0x0000000100325817
clang::Parser::ParseFunctionStatementBody(clang::Decl*) + 135
20 clang 0x0000000100339f08
clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&) + 696
21 clang 0x00000001002ec556
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*) + 1830
22 clang 0x0000000100337515
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AccessSpecifier) + 165
23 clang 0x0000000100337957
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&,
clang::AccessSpecifier) + 407
24 clang 0x0000000100338c23
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 2787
25 clang 0x00000001002fb97f clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 1887
26 clang 0x00000001002f5624
clang::Parser::ParseDeclaration(clang::ASTOwningVector&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 852
27 clang 0x0000000100338b43
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 2563
28 clang 0x0000000100338e73
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 115
29 clang 0x00000001002e2c2f clang::ParseAST(clang::Sema&, bool) +
159
30 clang 0x00000001002b36cc clang::CodeGenAction::ExecuteAction() +
60
31 clang 0x0000000100053a99
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 393
32 clang 0x00000001000249c2
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1602
33 clang 0x000000010001c63a cc1_main(char const**, char const**,
char const*, void*) + 586
34 clang 0x00000001000239f4 main + 5588
35 clang 0x000000010001af34 start + 52
Stack dump:
0. Program arguments: /Users/ritter/Temp/llvm/Release+Asserts/bin/clang -cc1
-triple x86_64-apple-darwin10.0.0 -emit-obj -mrelax-all -disable-free
-main-file-name ML_mlSubImageBoxd.ii -pic-level 1 -mdisable-fp-elim
-masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 97.17
-resource-dir /Users/ritter/Temp/llvm/Release+Asserts/bin/../lib/clang/2.9
-Wshadow -ferror-limit 19 -fmessage-length 80 -stack-protector 1 -fblocks
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
ML_mlSubImageBoxd.o -x c++-cpp-output ML_mlSubImageBoxd.ii
1. source/mlSubImageBoxd.cpp:65:19: current parser token '('
2. source/mlSubImageBoxd.cpp:16:1: parsing namespace 'ml'
3. source/mlSubImageBoxd.cpp:46:3: parsing function body
'calcAATransformedBox'
4. source/mlSubImageBoxd.cpp:46:3: in compound statement ('{}')
5. source/mlSubImageBoxd.cpp:49:5: in compound statement ('{}')
6. source/mlSubImageBoxd.cpp:53:11: in compound statement ('{}')
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Feb 7 10:27:41 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 7 Feb 2011 10:27:41 -0600 (CST)
Subject: [LLVMbugs] [Bug 9161] New: Clang -Wall too noisy with uninitialized
variables in common idiom
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9161
Summary: Clang -Wall too noisy with uninitialized variables in
common idiom
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: stark at mit.edu
CC: llvmbugs at cs.uiuc.edu
stark at raving:~/src$ clang --version
clang version 2.9 (trunk 125005)
Target: x86_64-unknown-linux-gnu
Thread model: posix
The attached file demonstrates a common programming idiom where a variable is
initialized by passing a reference to it to a function. Clang assumes the
function might not initialize the variable when in fact the programmer knows it
will.
I realize neither option is palatable here but if clang can't prove that the
function has a code path that appears to fail to initialize the variable then
it's better off not printing spurious warnings.
$ clang -Wall test-llvm-uninitialized.c
test-llvm-uninitialized.c:14:10: warning: variable 'uninitialized' is possibly
uninitialized when used here [-Wuninitialized]
return(uninitialized);
^~~~~~~~~~~~~
test-llvm-uninitialized.c:7:2: note: variable 'uninitialized' is declared here
int uninitialized;
^
test-llvm-uninitialized.c:7:19: note: add initialization to silence this
warning
int uninitialized;
^
= 0
1 warning generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Feb 7 11:07:18 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 7 Feb 2011 11:07:18 -0600 (CST)
Subject: [LLVMbugs] [Bug 9157] Use of undeclared 'operator[]'
In-Reply-To:
References:
Message-ID: <20110207170718.342152A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9157
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Douglas Gregor 2011-02-07 11:07:17 CST ---
Without any context, there's no way we can determine whether your code is wrong
or whether Clang has a bug. I strongly suspect that your code is wrong, and
that you're hitting either
http://clang.llvm.org/compatibility.html#dep_lookup
or
http://clang.llvm.org/compatibility.html#dep_lookup_bases
both of which are common migration problems where g++/llvm-g++ accept code that
is actually incorrect.
If you believe that Clang is wrong, please provide a small, self-contained
example that demonstrates the problem you are seeing. The example should
compile with g++/llvm-g++ but not with Clang.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Feb 7 12:43:33 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 7 Feb 2011 12:43:33 -0600 (CST)
Subject: [LLVMbugs] [Bug 8963] Buffer Overflow Check False Positives
In-Reply-To:
References:
Message-ID: <20110207184333.AEA052A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8963
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #9 from Ted Kremenek 2011-02-07 12:43:32 CST ---
Awesome. Thanks for the feedback!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Feb 7 14:11:11 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 7 Feb 2011 14:11:11 -0600 (CST)
Subject: [LLVMbugs] [Bug 9162] New: Namespace and extern "C" gives problems
with forward struct declarations
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9162
Summary: Namespace and extern "C" gives problems with forward
struct declarations
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dimitry at andric.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Clang has a problem compiling the gstreamer backend for KDE's phonon
library. I encountered this issue with trunk r125004. The reduced C++
code goes like this:
namespace Gstreamer {
extern "C" {
typedef struct _ArtsSink ArtsSink;
struct _ArtsSink {
int sink;
};
}
int arts_sink_get_type()
{
return sizeof(ArtsSink);
}
}
Compiling this with clang++ gives:
fwddecl.cpp:10:12: error: invalid application of 'sizeof' to an incomplete type
'ArtsSink' (aka 'Gstreamer::_ArtsSink')
return sizeof(ArtsSink);
^ ~~~~~~~~~~
fwddecl.cpp:3:20: note: forward declaration of 'Gstreamer::_ArtsSink'
typedef struct _ArtsSink ArtsSink;
^
1 error generated.
Granted, it is a bit weird how the KDE guys forward declare the
_ArtsSink struct, but as far as I can see, it should still compile.
I tried this fragment with g++ 4.2.1 (FreeBSD base system compiler), g++
4.5.3, and Coumeau 4.3.10.1, and they all accept it without any
complaint.
Note: the error goes away when you eliminate either the namespace or the
'extern "C"' block. Both are required to produce the 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 Mon Feb 7 15:04:55 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 7 Feb 2011 15:04:55 -0600 (CST)
Subject: [LLVMbugs] [Bug 9163] New: R11 used but not saved
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9163
Summary: R11 used but not saved
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: SystemZ
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bagel99 at gmail.com
CC: llvmbugs at cs.uiuc.edu
In functions where a frame register is generated, R11 is used for that purpose
but the callers R11 is not saved unless a register in R6-R10 is saved.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 7 20:06:32 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 7 Feb 2011 20:06:32 -0600 (CST)
Subject: [LLVMbugs] [Bug 9123] [REGRESSION] Crash while compiling snow.c
from FFmpeg
In-Reply-To:
References:
Message-ID: <20110208020632.826FC2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9123
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #9 from Ted Kremenek 2011-02-07 20:06:31 CST ---
According to Dan Gohman this is now fixed in r125065.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 8 00:33:19 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Feb 2011 00:33:19 -0600 (CST)
Subject: [LLVMbugs] [Bug 9164] New: [MC] fsubp invalid operand for
instruction
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9164
Summary: [MC] fsubp invalid operand for instruction
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu
llvm-mc doesn't assemble this:
$ cat sub.s
fsubp %st, %st(2)
$ llvm/Debug+Asserts/bin/llvm-mc sub.s
.section __TEXT,__text,regular,pure_instructions
sub.s:1:14: error: invalid operand for instruction
fsubp %st, %st(2)
^
but gas seems fine with it:
$ as sub.s -o sub.o
$ objdump -d sub.o
sub.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <.text>:
0: de e2 fsubp %st,%st(2)
It'd be nice if we did that too!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Feb 8 03:08:50 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Feb 2011 03:08:50 -0600 (CST)
Subject: [LLVMbugs] [Bug 9165] New: Unable to select BUILD_VECTOR operation
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9165
Summary: Unable to select BUILD_VECTOR operation
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: nadav.rotem at intel.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6123)
--> (http://llvm.org/bugs/attachment.cgi?id=6123)
LL file reproducing the problem
When codegen the attached LL file using LLC, we hit the following problem.
This is a regression from 2.7. I have a fix ready for this in the DAGCombiner,
pending managerial approval. Will send a patch to the LLVM-commit soon.
LLVM ERROR: Cannot select: 0x1dfa9e0: v4i32 = BUILD_VECTOR 0x1dfa3e0,
0x1e044a0, 0x1df9fe0, 0x1e045a0 [ID=30]
0x1dfa3e0: i32 = Constant<0> [ORD=1] [ID=1]
0x1e044a0: i32 = extract_vector_elt 0x1e03690, 0x1e03b90 [ID=26]
0x1e03690: v4i32 = bit_convert 0x1e04da0 [ID=21]
0x1e04da0: v2i64,ch = load 0x1dcb0b8, 0x1e03490,
0x1df9fe0 [ID=17]
0x1dcb0b8: ch = EntryToken [ORD=1] [ID=0]
0x1e03490: i32 = Constant<32> [ID=4]
0x1df9fe0: i32 = undef [ORD=1] [ID=2]
0x1e03b90: i32 = Constant<1> [ID=5]
0x1df9fe0: i32 = undef [ORD=1] [ID=2]
0x1e045a0: i32 = extract_vector_elt 0x1e05600, 0x1e03b90 [ID=24]
0x1e05600: v4i32 = bit_convert 0x1dfa2e0 [ID=19]
0x1dfa2e0: v2i64,ch = load 0x1dcb0b8, 0x1dfa3e0,
0x1df9fe0 [ID=14]
0x1dcb0b8: ch = EntryToken [ORD=1] [ID=0]
0x1dfa3e0: i32 = Constant<0> [ORD=1] [ID=1]
0x1df9fe0: i32 = undef [ORD=1] [ID=2]
0x1e03b90: i32 = Constant<1> [ID=5]
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Feb 8 06:00:06 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Feb 2011 06:00:06 -0600 (CST)
Subject: [LLVMbugs] [Bug 9166] New: Code generated for function returning
struct incompatible with native ABI
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9166
Summary: Code generated for function returning struct
incompatible with native ABI
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: zvi.rackover at intel.com
CC: llvmbugs at cs.uiuc.edu
The Win32 native compiler, VC, generates a call to a function returning a
struct in the following manner:
1. The caller allocates a buffer which will be filled by the caller with the
return value
2. Before calling, the caller pushes the address of this buffer on the stack
3. Unlike other targets, such as Linux32, the callee does not pop the address
before returning
Currently, the Win32 target does not follow the above rules. This becomes an
issue when native-compiled and LLVM-compiled codes are mixed.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 8 12:21:46 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Feb 2011 12:21:46 -0600 (CST)
Subject: [LLVMbugs] [Bug 9160] clang segmentation fault with -Wshadow
In-Reply-To:
References:
Message-ID: <20110208182146.9FA132A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9160
Argyrios Kyrtzidis changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #8 from Argyrios Kyrtzidis 2011-02-08 12:21:46 CST ---
Fixed at r125097.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 8 13:01:36 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Feb 2011 13:01:36 -0600 (CST)
Subject: [LLVMbugs] [Bug 8926] clang asserts with illegal instruction
(!HasCachedLinkage || Linkage(CachedLinkage) == LI.linkage()),
function getLinkageAndVisibility
In-Reply-To:
References:
Message-ID: <20110208190136.E3EE92A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8926
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from John McCall 2011-02-08 13:01:36 CST ---
Fixed in r125104.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 8 13:23:40 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Feb 2011 13:23:40 -0600 (CST)
Subject: [LLVMbugs] [Bug 8986] Post-ra scheduler doesn't respect earlyclobber
In-Reply-To:
References:
Message-ID: <20110208192340.0BDA12A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8986
Andrew Trick changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #18 from Andrew Trick 2011-02-08 13:23:39 CST ---
Fixed in r125089. isNewRegClobberedByRefs checks to avoid renaming both defs
that clobber uses and uses that may be clobbered by defs.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 8 13:42:49 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Feb 2011 13:42:49 -0600 (CST)
Subject: [LLVMbugs] [Bug 9167] New: Linkage of anonymous tag types defined
in typedefs should not be cached
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9167
Summary: Linkage of anonymous tag types defined in typedefs
should not be cached
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rjmccall at apple.com
CC: llvmbugs at cs.uiuc.edu
The linkage of an anonymous tag type defined in a typedef can change.
Currently we handle this by clearing the linkage cache for that tag and its
children, but it is quite possible to build arbitrary type expressions
involving that type, and we have no way of clearing the linkage of those types.
dgregor points out that the only reasonable solution is to just not cache
linkage for tag types defined in typedefs until the end of the typedef.
The problem arises with things like this:
template struct A { void foo(); };
typedef struct {
void foo() { A::foo(); }
} B;
But also things like this:
typedef struct {
int x;
} *B_ptr, B_returning_fn(A), B;
Oh and by the way, you can put 'typedef' after the struct definition here, so
we just can't cache the linkage of anything involving an anonymous tag
definition until the end of that decl group.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 8 14:18:08 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Feb 2011 14:18:08 -0600 (CST)
Subject: [LLVMbugs] [Bug 9168] New: Wrong source location for
CXXMemberCallExpr
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9168
Summary: Wrong source location for CXXMemberCallExpr
Product: clang
Version: 2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: alr at google.com
CC: llvmbugs at cs.uiuc.edu
This is a regression.
For a fully qualified member, e.g.:
Foo::bar()
CXXMemberCallExpr::getSourceRange().getBegin() used to return the location of
'Foo' token:
Foo::bar()
^
Now it returns the location of bar token:
Foo::bar()
^
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Feb 8 16:10:06 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Feb 2011 16:10:06 -0600 (CST)
Subject: [LLVMbugs] [Bug 9169] New: inlined memcpy from/to global address
inefficient
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9169
Summary: inlined memcpy from/to global address inefficient
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: SystemZ
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bagel99 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6128)
--> (http://llvm.org/bugs/attachment.cgi?id=6128)
test case
The code produced from the test case could be a lot better with
base+displacement:
ff:
larl %r1, aa+24
lg %r1, 0(%r1)
larl %r2, bb+24
stg %r1, 0(%r2)
larl %r1, aa+16
lg %r1, 0(%r1)
larl %r2, bb+16
stg %r1, 0(%r2)
larl %r1, aa+8
lg %r1, 0(%r1)
larl %r2, bb+8
stg %r1, 0(%r2)
larl %r1, aa
lg %r1, 0(%r1)
larl %r2, bb
stg %r1, 0(%r2)
br %r14
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 8 17:49:01 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Feb 2011 17:49:01 -0600 (CST)
Subject: [LLVMbugs] [Bug 9170] New: Bad diagnostic when passing non-rvalue
to rvalue-reference
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9170
Summary: Bad diagnostic when passing non-rvalue to
rvalue-reference
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jyasskin at google.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
The below diagnostic should say something about how you can't bind an lvalue
(even one declared as T&&, although that's not the problem in this case) to an
rvalue parameter.
$ cat ~/tmp/test.cc
struct vector {
void swap(vector&& __x);
};
void foo() {
vector v, u;
v.swap(u);
}
$ clang++ -std=gnu++0x -c ~/tmp/test.cc
/home/jyasskin/tmp/test.cc:7:10: error: binding of reference to type 'vector'
to a value
of type 'vector' drops qualifiers
v.swap(u);
^
/home/jyasskin/tmp/test.cc:2:22: note: passing argument to parameter '__x' here
void swap(vector&& __x);
^
1 error generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Feb 8 19:19:45 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Feb 2011 19:19:45 -0600 (CST)
Subject: [LLVMbugs] [Bug 9171] New: Clang-built WebKit exhibits unique form
bug
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9171
Summary: Clang-built WebKit exhibits unique form bug
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: jon at jonshier.com
CC: llvmbugs at cs.uiuc.edu
I've filed a bug with WebKit, but it's likely this issue is more suited to the
clang/llvm folks. Using Apple clang version 2.0 (tags/Apple/clang-134), a
successful WebKit build exhibits a bizarre bug. Forms using the
multipart/form-data enctype no longer function. This functionality works
correctly in gcc and llvm-gcc (4.2). I'm l linking the WebKit bug I filed as it
has a link to a simple test for the form type which exhibits the issue.
Essentially, forms that use the multipart/form-data type do not function. That
is, the submit or whatever action button doesn't do anything. Such as this
bugzilla page. However, editing the form in WebKit's inspector and removing the
type sometimes allows the form to function properly, as long as no files are
attached.
https://bugs.webkit.org/show_bug.cgi?id=50306
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 8 20:04:16 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Feb 2011 20:04:16 -0600 (CST)
Subject: [LLVMbugs] [Bug 8864] DeclRefExpr assertion due to friend functions?
In-Reply-To:
References:
Message-ID: <20110209020416.8E98F2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8864
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |dgregor at apple.com
Resolution| |FIXED
--- Comment #4 from Douglas Gregor 2011-02-08 20:04:16 CST ---
Fixed in Clang r125157.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 8 23:38:49 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Feb 2011 23:38:49 -0600 (CST)
Subject: [LLVMbugs] [Bug 8848] Problem with
lib/Support/Windows/DynamicLibrary.inc and mingw-w64
In-Reply-To:
References:
Message-ID: <20110209053849.1D45F2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8848
NAKAMURA Takumi changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from NAKAMURA Takumi 2011-02-08 23:38:48 CST ---
I believe I fixed it in r125169, r125170 and around.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Feb 9 01:11:59 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Feb 2011 01:11:59 -0600 (CST)
Subject: [LLVMbugs] [Bug 4696] [meta] The AuroraUX source tree does not
fully compile with Clang
In-Reply-To:
References:
Message-ID: <20110209071159.618FE2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=4696
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |LATER
--- Comment #4 from Chris Lattner 2011-02-09 01:11:58 CST ---
Per the comments in this bug, there is no reason to have a meta bug here. This
has also dropped out of use..
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 9 04:24:18 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Feb 2011 04:24:18 -0600 (CST)
Subject: [LLVMbugs] [Bug 9172] New: Static variable in function scope
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9172
Summary: Static variable in function scope
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM assembly language parser
AssignedTo: unassignedbugs at nondot.org
ReportedBy: joerg at NetBSD.org
CC: llvmbugs at cs.uiuc.edu
ELFAsmParser::ParseDirectiveIdent has a static variable which should be
replaced with a class variable.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 9 07:21:19 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Feb 2011 07:21:19 -0600 (CST)
Subject: [LLVMbugs] [Bug 9173] New: getting very long instruction lines when
using instcombine
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9173
Summary: getting very long instruction lines when using
instcombine
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: ran.chachick at intel.com
CC: llvmbugs at cs.uiuc.edu
getting very long instruction line, when using instcombine.
attached is am ll file.
when instcombine is applied to the contained ll code, extremely long
instruction are generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Feb 9 08:35:15 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Feb 2011 08:35:15 -0600 (CST)
Subject: [LLVMbugs] [Bug 9174] New: problems with "Clang" CFE Internals
Manual web-page
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9174
Summary: problems with "Clang" CFE Internals Manual web-page
Product: Website
Version: unspecified
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Documentation
AssignedTo: unassignedbugs at nondot.org
ReportedBy: eliben at gmail.com
CC: llvmbugs at cs.uiuc.edu
For this page:
http://clang.llvm.org/docs/InternalsManual.html
* "The Diagnostic*Kinds.def files" section: no longer .def files, there are .td
files now
* In section "The format string", there's a sentence: "Arguments to the
diagnostic are numbered according to how they are specified by the C++ code
that produces them" - the last two words ("produces them") are linked to a
stale anchor on the webpage (at least my Firefox doesn't jump anywhere when
it's clicked)
* In the same section, there's another link on the word "translating" (sentence
starts with "Doing this prevents translating the "), which leads nowhere
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 9 11:23:40 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Feb 2011 11:23:40 -0600 (CST)
Subject: [LLVMbugs] [Bug 9175] New: ARM assertion failed when disassembling
LDM & STM
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9175
Summary: ARM assertion failed when disassembling LDM & STM
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: crabtw at gmail.com
CC: llvmbugs at cs.uiuc.edu
Message:
================
$ echo '0x10 0x00 0x93 0xe8'|Debug+Asserts/bin/llvm-mc -arch=arm --disassemble
-debug
Args: Debug+Asserts/bin/llvm-mc -arch=arm --disassemble -debug
Opcode=130 Name=LDMIA Format=ARM_FORMAT_LDSTMULFRM(10)
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6
5 4 3 2 1 0
-------------------------------------------------------------------------------------------------
| 1: 1: 1: 0| 1: 0: 0: 0| 1: 0: 0: 1| 0: 0: 1: 1| 0: 0: 0: 0| 0: 0: 0: 0| 0: 0:
0: 1| 0: 0: 0: 0|
-------------------------------------------------------------------------------------------------
llvm-mc:
/home/jyyou/src/llvm-trunk/lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp:1241:
bool DisassembleLdStMulFrm(llvm::MCInst&, unsigned int, uint32_t, short
unsigned int, unsigned int&, llvm::ARMBasicMCBuilder*): Assertion `NumOps >= 5
&& "LdStMulFrm expects NumOps >= 5"' failed.
================
It works fine while changing NumOps >= 5 into NumOps >= 4.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Feb 9 11:39:47 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Feb 2011 11:39:47 -0600 (CST)
Subject: [LLVMbugs] [Bug 9176] New: ARM assertion failed when disassembling
LDR & STR imm offset form
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9176
Summary: ARM assertion failed when disassembling LDR & STR imm
offset form
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: crabtw at gmail.com
CC: llvmbugs at cs.uiuc.edu
Message for ldr r0, [r2, #32]:
================
$ echo '0x20 0x00 0x92 0xe5'|Debug+Asserts/bin/llvm-mc -arch=arm --disassemble
-debug
Args: Debug+Asserts/bin/llvm-mc -arch=arm --disassemble -debug
Opcode=163 Name=LDRi12 Format=ARM_FORMAT_LDFRM(6)
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6
5 4 3 2 1 0
-------------------------------------------------------------------------------------------------
| 1: 1: 1: 0| 0: 1: 0: 1| 1: 0: 0: 1| 0: 0: 1: 0| 0: 0: 0: 0| 0: 0: 0: 0| 0: 0:
1: 0| 0: 0: 0: 0|
-------------------------------------------------------------------------------------------------
llvm-mc:
/home/jyyou/src/llvm-trunk/lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp:1078:
bool DisassembleLdStFrm(llvm::MCInst&, unsigned int, uint32_t, short unsigned
int, unsigned int&, bool, llvm::ARMBasicMCBuilder*): Assertion
`(OpInfo[OpIdx].RegClass == ARM::GPRRegClassID) && (OpInfo[OpIdx+1].RegClass <
0) && "Expect 1 reg operand followed by 1 imm operand"' failed.
================
Pre-indexed and post-indexed have no problem.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Feb 9 11:54:57 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Feb 2011 11:54:57 -0600 (CST)
Subject: [LLVMbugs] [Bug 8369] Support mregparm flag
In-Reply-To:
References:
Message-ID: <20110209175457.421A72A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8369
Daniel Dunbar changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Daniel Dunbar 2011-02-09 11:54:56 CST ---
Done here:
http://llvm.org/viewvc/llvm-project?view=rev&revision=125201
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 9 13:16:40 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Feb 2011 13:16:40 -0600 (CST)
Subject: [LLVMbugs] [Bug 9177] New: clang gets confused with alias and asm
labels
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9177
Summary: clang gets confused with alias and asm labels
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
Given
-------------------
int __attribute__((visibility("hidden"))) foo (void);
extern __typeof (foo) foo __asm__ ("INT_foo")
__attribute__((__visibility__("hidden"))) ;
int foo (void) {
}
extern __typeof (foo) EXT_foo __asm__("foo")
__attribute__((__alias__("INT_foo")));
--------------------
Clang will produce
---------------------------
@"\01foo" = alias i32 ()* @INT_foo
define hidden i32 @"\01INT_foo"() nounwind {
entry:
%retval = alloca i32, align 4
%0 = load i32* %retval
ret i32 %0
}
declare i32 @INT_foo()
--------------------------
Note how we have a declaration for INT_foo and a definition for "\01INT_foo".
This gets resolved by LLVM's codegen, but causes problems to LTO because the
alias foo is pointing to a declaration.
Producing
---------------------------
@"\01foo" = alias i32 ()* @"\01INT_foo"
define hidden i32 @"\01INT_foo"() nounwind {
entry:
%retval = alloca i32, align 4
%0 = load i32* %retval
ret i32 %0
}
--------------------------
would fix the problem.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Feb 9 13:39:38 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Feb 2011 13:39:38 -0600 (CST)
Subject: [LLVMbugs] [Bug 9178] New: NRVO after noreturn call causes clang to
produce invalid module
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9178
Summary: NRVO after noreturn call causes clang to produce
invalid module
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu
This program coaxes clang into producing an invalid module:
void abort() __attribute__((__noreturn__));
struct CoinModelLink {
CoinModelLink();
~CoinModelLink();
};
class CoinModel {
CoinModelLink firstInQuadraticColumn();
};
CoinModelLink CoinModel::firstInQuadraticColumn() {
abort();
CoinModelLink x;
return x;
}
which under "clang -cc1 -emit-llvm-bc" triggers the verifier into saying
"Instruction referencing instruction not embedded in a basic block!". Note that
if you run clang -O2 the verifier won't run and the crash is in SRoA instead.
Here's the verifier failure:
Instruction referencing instruction not embedded in a basic block!
%nrvo = alloca i1
store i1 false, i1* %nrvo
Broken module found, compilation aborted!
and here's the module at the time of the crash:
; ModuleID = '001.c'
target datalayout =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
target triple = "x86_64-unknown-linux-gnu"
%class.CoinModel = type { i8 }
%struct.CoinModelLink = type { i8 }
define void @_ZN9CoinModel22firstInQuadraticColumnEv(%class.CoinModel* sret
%agg.result, %class.CoinModel* %this) nounwind align 2 {
entry:
%this.addr = alloca %class.CoinModel*, align 8
%nrvo = alloca i1
store %class.CoinModel* %this, %class.CoinModel** %this.addr, align 8
%this1 = load %class.CoinModel** %this.addr
call void @_Z5abortv() noreturn
unreachable
return: ; No predecessors!
ret void
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Feb 9 13:51:44 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Feb 2011 13:51:44 -0600 (CST)
Subject: [LLVMbugs] [Bug 9179] New: Reports false positive
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9179
Summary: Reports false positive
Product: clang
Version: 2.7
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: michal at cihar.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6135)
--> (http://llvm.org/bugs/attachment.cgi?id=6135)
analysis output
I'm attaching full output, which contains the source as well, but the short
summary is:
warning: Null pointer passed as an argument to a 'nonnull' parameter
dt->Hour = atoi(time_start);
^ ~~~~~~~~~~
If you look at the line before, you can easily notice, that it can not be NULL,
because it's being checked:
if (time_start != NULL) {
dt->Hour = atoi(time_start);
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Feb 9 15:57:01 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Feb 2011 15:57:01 -0600 (CST)
Subject: [LLVMbugs] [Bug 9180] New: SystemZ another assembly syntax problem
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9180
Summary: SystemZ another assembly syntax problem
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: SystemZ
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bagel99 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6136)
--> (http://llvm.org/bugs/attachment.cgi?id=6136)
minimal test case
The MVI instruction doesn't accept negative numbers in GNU binutils.
Test case generates:
stib:
mvi 0(%r2), -1 <-- BAD
br %r14
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 9 16:01:47 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Feb 2011 16:01:47 -0600 (CST)
Subject: [LLVMbugs] [Bug 9181] New: Missed optimization on empty virtual
destructors
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9181
Summary: Missed optimization on empty virtual destructors
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jyasskin at google.com
CC: llvmbugs at cs.uiuc.edu
At the beginning of every virtual destructor, clang writes the class's vtable
into the objects vptr. If the base class is empty, though, it doesn't need to
do this, since after the return or delete call, the object is dead, and any
read of the vptr is undefined behavior.
$ cat test.cc
struct Base {
virtual ~Base() {}
};
struct Derived : Base {
~Derived();
};
Derived::~Derived() {}
$ clang++ -O3 -S -fverbose-asm test.cc -o -
...
_ZN7DerivedD0Ev: # @_ZN7DerivedD0Ev
# BB#0: # %invoke.cont
movq $_ZTV4Base+16, (%rdi)
jmp _ZdlPv # TAILCALL
...
_ZN7DerivedD2Ev: # @_ZN7DerivedD2Ev
# BB#0: # %entry
movq $_ZTV4Base+16, (%rdi)
ret
-emit-llvm shows:
define void @_ZN7DerivedD2Ev(%struct.Derived* %this) unnamed_addr align 2 {
entry:
%this.addr = alloca %struct.Derived*, align 8
store %struct.Derived* %this, %struct.Derived** %this.addr, align 8
%this1 = load %struct.Derived** %this.addr
%0 = bitcast %struct.Derived* %this1 to i8***
store i8** getelementptr inbounds ([4 x i8*]* @_ZTV7Derived, i64 0, i64 2),
i8*** %0
%1 = bitcast %struct.Derived* %this1 to %struct.Base*
call void @_ZN4BaseD2Ev(%struct.Base* %1)
ret void
}
define linkonce_odr void @_ZN4BaseD2Ev(%struct.Base* %this) unnamed_addr
nounwind align 2 {
entry:
%this.addr = alloca %struct.Base*, align 8
store %struct.Base* %this, %struct.Base** %this.addr, align 8
%this1 = load %struct.Base** %this.addr
%0 = bitcast %struct.Base* %this1 to i8***
store i8** getelementptr inbounds ([4 x i8*]* @_ZTV4Base, i64 0, i64 2),
i8*** %0
ret void
}
I think this could be fixed by calling
@llvm.lifetime.end(sizeof(Base), %this1) at the end of @_ZN4BaseD2Ev and
@llvm.lifetime.end(sizeof(Derived)-sizeof(Base), %this1+sizeof(Base)) in
@_ZN7DerivedD2Ev before the call to @_ZN4BaseD2Ev.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 9 17:00:37 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Feb 2011 17:00:37 -0600 (CST)
Subject: [LLVMbugs] [Bug 9182] New: spurious warning on overloaded-virtual
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9182
Summary: spurious warning on overloaded-virtual
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu, akyrtzi at gmail.com,
dgregor at apple.com
This code warns that the derived class hides a virtual function -- except that
it doesn't:
struct Base {
virtual void foo(int);
};
void Base::foo(int) { }
struct Derived : public Base {
virtual void foo(int);
void foo(int, int);
};
note that if you move the out-of-line Base::foo def'n after struct Derived,
then it doesn't warn any more. Here's the clang output:
$ clang++ -c x.cc -Woverloaded-virtual
x.cc:9:8: warning: 'Derived::foo' hides overloaded virtual function
[-Woverloaded-virtual]
void foo(int, int);
^
x.cc:5:12: note: hidden overloaded virtual function 'Base::foo' declared here
void Base::foo(int) { }
^
1 warning generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Feb 9 17:48:04 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Feb 2011 17:48:04 -0600 (CST)
Subject: [LLVMbugs] [Bug 9183] New: -fvisibility=internal not implemented
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9183
Summary: -fvisibility=internal not implemented
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: reid.kleckner at gmail.com
CC: llvmbugs at cs.uiuc.edu
I ran into this while compiling DynamoRIO with clang.
Does anyone even know what the heck it means? So far as I can tell, it's
identical to hidden visibility, except that you also promise that no one
outside the DSO you going to link can get a function pointer to functions with
internal visibility. That interpretation is based on this Intel doc:
http://software.intel.com/sites/products/documentation/studio/composer/en-us/2009/compiler_c/copts/common_options/option_fvisibility.htm
To aim for bug-for-bug compatibility with the gcc driver, I'd just interpret
internal as hidden. Alternatively, someone can go look at the gcc source and
see how they interpret internal.
If calling it hidden works, I can write 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 Wed Feb 9 19:01:45 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Feb 2011 19:01:45 -0600 (CST)
Subject: [LLVMbugs] [Bug 9184] New: PassManager should minimize number of
LoopPassManagers
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9184
Summary: PassManager should minimize number of LoopPassManagers
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Core LLVM classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: zwarich at apple.com
CC: llvmbugs at cs.uiuc.edu
Currently, this analysis usage (taken from LoopStrengthReduce)
AU.addRequired();
AU.addRequiredID(LoopSimplifyID);
AU.addRequired();
AU.addRequired();
AU.addRequired();
causes this pass order:
Natural Loop Information
Loop Pass Manager
Canonicalize natural loops
Scalar Evolution Analysis
Loop Pass Manager
Induction Variable Users
Canonicalize natural loops
Induction Variable Users
Loop Strength Reduction
The PassManager should move ScalarEvolution before all of the loop passes,
since they all preserve ScalarEvolution. It is easy enough to fix this by
changing the pass ordering, but in the future this could be done automatically.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 9 20:20:34 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Feb 2011 20:20:34 -0600 (CST)
Subject: [LLVMbugs] [Bug 9185] New: warn when code would be treated
differently under gcc
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9185
Summary: warn when code would be treated differently under gcc
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Attached are four testcases, all of which print "AAAAAAAAAAAAAAAAAAAAAA" when
compiled correctly, under clang.
Gcc prints "BBBBBBBBBBBBBBBBBBBBBB" for all of them. It would be really cool if
we could emit a warning in cases we can inexpensively detect where gcc is going
to miscompile the code. This would save lots of gcc to clang porting time.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Feb 9 23:07:00 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Feb 2011 23:07:00 -0600 (CST)
Subject: [LLVMbugs] [Bug 9187] New: LoopStrengthReduce violates LoopPass
rules
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9187
Summary: LoopStrengthReduce violates LoopPass rules
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: zwarich at apple.com
CC: llvmbugs at cs.uiuc.edu
LoopStrengthReduce violates LoopPass rules. When processing a loop, it will
potentially modify its parent loop's preheader. For example, run llc on this
reduction:
===
; ModuleID = 'bugpoint-reduced-simplified.bc'
target triple = "x86_64-apple-darwin10"
define void @myquicksort(i8* %a) nounwind ssp {
entry:
br i1 undef, label %loop1, label %return
loop1: ; preds = %bb13.loopexit,
%entry
%indvar419 = phi i64 [ %indvar.next420, %loop2.exit ], [ 0, %entry ]
%tmp474 = shl i64 %indvar419, 2
%tmp484 = add i64 %tmp474, 4
br label %loop2
loop2: ; preds = %loop1,
%loop2.backedge
%indvar414 = phi i64 [ %indvar.next415, %loop2.backedge ], [ 0, %loop1 ]
%tmp473 = mul i64 %indvar414, -4
%tmp485 = add i64 %tmp484, %tmp473
%storemerge4 = getelementptr i8* %a, i64 %tmp485
%0 = icmp ugt i8* %storemerge4, %a
br i1 false, label %loop2.exit, label %loop2.backedge
loop2.backedge: ; preds = %loop2
%indvar.next415 = add i64 %indvar414, 1
br label %loop2
loop2.exit: ; preds = %loop2
%indvar.next420 = add i64 %indvar419, 1
br i1 undef, label %loop1, label %return
return: ; preds = %loop2.exit, %entry
ret void
}
===
LSR gives this output:
===
define void @myquicksort(i8* %a) nounwind ssp {
entry:
br i1 undef, label %loop1.preheader, label %return
loop1.preheader: ; preds = %entry
%scevgep = getelementptr i8* %a, i64 4
br label %loop1
loop1: ; preds = %loop1.preheader,
%loop2.exit
%lsr.iv = phi i8* [ %scevgep, %loop1.preheader ], [ %scevgep1, %loop2.exit ]
%indvar419 = phi i64 [ %indvar.next420, %loop2.exit ], [ 0, %loop1.preheader
]
br label %loop2
loop2: ; preds = %loop2.backedge,
%loop1
%lsr.iv2 = phi i8* [ %scevgep3, %loop2.backedge ], [ %lsr.iv, %loop1 ]
%0 = icmp ugt i8* %lsr.iv2, %a
br i1 false, label %loop2.exit, label %loop2.backedge
loop2.backedge: ; preds = %loop2
%scevgep3 = getelementptr i8* %lsr.iv2, i64 -4
br label %loop2
loop2.exit: ; preds = %loop2
%indvar.next420 = add i64 %indvar419, 1
%scevgep1 = getelementptr i8* %lsr.iv, i64 4
br i1 false, label %loop1, label %return.loopexit
return.loopexit: ; preds = %loop2.exit
br label %return
return: ; preds = %return.loopexit,
%entry
ret void
}
===
LSR inserts the definition of %scevgep when processing loop2, not when
processing loop1.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 9 23:38:25 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Feb 2011 23:38:25 -0600 (CST)
Subject: [LLVMbugs] [Bug 8882] Need an "isexact" bit for shift left
In-Reply-To:
References:
Message-ID: <20110210053825.BF10D2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8882
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|DUPLICATE |
--- Comment #5 from Chris Lattner 2011-02-09 23:38:24 CST ---
Reopening this bug. The major work behind PR8862 is implemented, but I haven't
done the specific xform needed to resolve this issue yet.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 9 23:39:34 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Feb 2011 23:39:34 -0600 (CST)
Subject: [LLVMbugs] [Bug 8862] ashr, lshr, shl,
udiv should have an 'isexact' bit indicating it is known to only
shift out zeros
In-Reply-To:
References:
Message-ID: <20110210053934.28B2C2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8862
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Chris Lattner 2011-02-09 23:39:33 CST ---
This is now implemented in a series of patches leading up to r125267.
We now have get:
$ opt -instcombine -S
define i32 @test(i32 %X) {
%A = sdiv exact i32 %X, 4
%B = mul i32 %A, 4
ret i32 %B
}
^D
; ModuleID = ''
define i32 @test(i32 %X) {
ret i32 %X
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Feb 10 04:03:24 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Feb 2011 04:03:24 -0600 (CST)
Subject: [LLVMbugs] [Bug 9188] New: clang trunk assert '(!Qualifier &&
"Can't have an unnamed field with a qualifier!"),
function RebuildMemberExpr'
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9188
Summary: clang trunk assert '(!Qualifier && "Can't have an
unnamed field with a qualifier!"), function
RebuildMemberExpr'
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: felix.ritter at mevis.fraunhofer.de
CC: llvmbugs at cs.uiuc.edu
clang version 2.9 (trunk 125275)
Target: x86_64-apple-darwin10
Thread model: posix
Trying to compile vtk using clang issues the following stack trace:
Assertion failed: (!Qualifier && "Can't have an unnamed field with a
qualifier!"), function RebuildMemberExpr, file TreeTransform.h, line 1374.
0 clang 0x0000000101535182 PrintStackTrace(void*) + 34
1 clang 0x0000000101535fd3 SignalHandler(int) + 707
2 libSystem.B.dylib 0x00007fff847b767a _sigtramp + 26
3 libSystem.B.dylib 0x0000000104200000 _sigtramp + 2141489568
4 clang 0x000000010001a722 __assert_rtn + 66
5 clang 0x000000010059493d clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::RebuildMemberExpr(clang::Expr*,
clang::SourceLocation, bool, clang::NestedNameSpecifier*, clang::SourceRange,
clang::DeclarationNameInfo const&, clang::ValueDecl*, clang::NamedDecl*,
clang::TemplateArgumentListInfo const*, clang::NamedDecl*) + 1261
6 clang 0x00000001005ae60c clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformMemberExpr(clang::MemberExpr*) +
716
7 clang 0x000000010059fa11 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 1073
8 clang 0x00000001005ae39a clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformMemberExpr(clang::MemberExpr*) + 90
9 clang 0x000000010059fa11 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 1073
10 clang 0x00000001005b0d3a clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformBinaryOperator(clang::BinaryOperator*)
+ 90
11 clang 0x000000010059f84f clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 623
12 clang 0x00000001005b4dc1 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 2225
13 clang 0x00000001005b5297 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*,
bool) + 167
14 clang 0x00000001005b4a60 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 1360
15 clang 0x00000001005b688f clang::Sema::SubstStmt(clang::Stmt*,
clang::MultiLevelTemplateArgumentList const&) + 47
16 clang 0x00000001005c7a3f
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 2383
17 clang 0x00000001005c6e54
clang::Sema::PerformPendingInstantiations(bool) + 308
18 clang 0x00000001003521b1
clang::Sema::ActOnEndOfTranslationUnit() + 305
19 clang 0x00000001003391fe
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 190
20 clang 0x00000001002e301f clang::ParseAST(clang::Sema&, bool) +
159
21 clang 0x00000001002b45cc clang::CodeGenAction::ExecuteAction() +
60
22 clang 0x0000000100055df9
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 393
23 clang 0x00000001000248b2
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1602
24 clang 0x000000010001c51a cc1_main(char const**, char const**,
char const*, void*) + 586
25 clang 0x00000001000238d4 main + 5588
26 clang 0x000000010001ae04 start + 52
Stack dump:
0. Program arguments: /Users/ritter/Temp/llvm/Release+Asserts/bin/clang -cc1
-triple x86_64-apple-darwin10.0.0 -emit-obj -mrelax-all -disable-free
-main-file-name vtk_qualifier_crash.ii -pic-level 1 -mdisable-fp-elim
-masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 97.17
-resource-dir /Users/ritter/Temp/llvm/Release+Asserts/bin/../lib/clang/2.9
-ferror-limit 19 -fmessage-length 109 -stack-protector 1 -fblocks -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o vtk_qualifier_crash.o -x
c++-cpp-output vtk_qualifier_crash.ii
1. parser at end of file
2.
/Users/ritter/Developer.osxresearch/FMEwork/ThirdParty/Sources/vtk/currentVersion/IO/vtkOpenFOAMReader.cxx:2312:70:
instantiating function definition 'ReadNonuniformList'
clang: error: unable to execute command: Illegal instruction
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Feb 10 04:15:25 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Feb 2011 04:15:25 -0600 (CST)
Subject: [LLVMbugs] [Bug 9189] New: Spurious results in self = [self -init]
test
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9189
Summary: Spurious results in self = [self -init] test
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: csdavec at swan.ac.uk
CC: llvmbugs at cs.uiuc.edu
The missing "self = [(super or self) init...]" test in the static analyser
looks like a nice idea, but I've run it on our codebase, seen over a thousand
reports, and so far every single one of them that I've checked has been a false
positive, which makes the test a bit less useful.
One common case is in -initWithCoder:. Classes implementing this method should
only call [super initWithCoder:] if the superclass implements the NSCoding
protocol.
I'm not sure what the best way of solving this is. Ideally, we want two extra
annotations:
1) Specifying a designated initialiser for a class, so that all subclasses are
required to call that initialiser
2) Specify that an initialiser is expected to only call itself in the
superclass (annotation on the method declaration in the protocol). This is
true for -initWithCoder: and a few other things. This could actually be a more
general annotation, saying that a subclass implementation of any method is
expected to call the superclass version if it exists, but with a special case
for init*: methods, where it overrides the need to call [{self,super} init].
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Feb 10 07:20:06 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Feb 2011 07:20:06 -0600 (CST)
Subject: [LLVMbugs] [Bug 9190] New: "Unexpected illegal type!" assertion
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9190
Summary: "Unexpected illegal type!" assertion
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: marina.yatsina at intel.com
CC: llvmbugs at cs.uiuc.edu
I get "Unexpected illegal type!" assertion when trying to compile the following
kernel:
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f80:128:128-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32"
target triple = "i686-pc-win32"
define void @test() nounwind {
%1 = fdiv <3 x double> zeroinitializer, undef
%2 = fdiv <2 x double> zeroinitializer, undef
%3 = shufflevector <2 x double> %2, <2 x double> undef, <3 x i32>
%4 = insertelement <3 x double> %3, double undef, i32 2
%5 = bitcast <3 x double> %1 to <3 x i64>
%6 = bitcast <3 x double> %4 to <3 x i64>
%7 = sub <3 x i64> %5, %6
%8 = shufflevector <3 x i64> %7, <3 x i64> undef, <2 x i32>
%9 = xor <2 x i64> %8, zeroinitializer
%10 = add nsw <2 x i64> %9, zeroinitializer
%11 = shufflevector <2 x i64> %10, <2 x i64> undef, <3 x i32>
%12 = insertelement <3 x i64> %11, i64 0, i32 2
%13 = shufflevector <3 x i64> %12, <3 x i64> undef, <4 x i32>
%14 = shufflevector <4 x i64> %13, <4 x i64> undef, <2 x i32>
%15 = bitcast <2 x i64> %14 to <4 x i32>
%16 = shufflevector <4 x i32> %15, <4 x i32> undef, <4 x i32>
%17 = bitcast <4 x i32> %16 to <2 x i64>
%18 = shufflevector <2 x i64> %17, <2 x i64> undef, <2 x i32>
%19 = bitcast <2 x i64> %18 to <4 x i32>
%20 = shufflevector <4 x i32> %19, <4 x i32> undef, <3 x i32>
%21 = or <3 x i32> %20, zeroinitializer
store <3 x i32> %21, <3 x i32> addrspace(1)* undef, align 16
ret void
}
running "llc test.ll" produces:
llc: /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:800:
llvm::SDValue::SelectionDAGLegalize::LegalizeOp(llvm::SDValue):
Assertion `getTypeAction(Node->getValueType(i)) == Legal && "Unexpected illegal
type!"' failed.
Stack dump:
0. Program arguments: llc test.ll
1. Running pass 'Function Pass Manager' on module 'test.ll'.
2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@test'
Abort
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Feb 10 07:56:55 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Feb 2011 07:56:55 -0600 (CST)
Subject: [LLVMbugs] [Bug 9191] New: Assertion
`SrcType->getAs()->getDecl()->isScoped()' in invalid C++0x code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9191
Summary: Assertion
`SrcType->getAs()->getDecl()->isScoped()' in
invalid C++0x code
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=6147)
--> (http://llvm.org/bugs/attachment.cgi?id=6147)
Asserting invalid file
The attached, invalid C++ produces an assertion when compiled with -std=c++0x.
It does not crash with c++98.
This assertion is happening on a huge portion of boost when compiled in c++0x
mode, so fixing it should hopefully help get boost working with clang's c++0x
mode.
t.cc:1:6: error: ISO C++ forbids forward references to 'enum' types
enum test_unit_type;
^
t.cc:7:6: error: expected '}'
type ;
^
t.cc:6:1: note: to match this '{'
{
^
t.cc:8:2: error: expected ';' after struct
}};
^
;
t.cc:8:2: error: expected external declaration
t.cc:12:1: error: expected '{' after base class list
template
^
t.cc:10:29: error: expected ';' after struct
struct test_case : test_unit
^
;
t.cc:14:3: warning: expression result unused [-Wunused-value]
{ static_cast(UnitType::type ); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clang: SemaCXXCast.cpp:612: TryCastResult TryStaticCast(clang::Sema&,
clang::Expr*&, clang::QualType, bool, const clang::SourceRange&, unsigned int&,
clang::CastKind&, clang::CXXCastPath&): Assertion
`SrcType->getAs()->getDecl()->isScoped()' failed.
0 clang 0x0000000002355a69
1 clang 0x000000000235585c
2 libpthread.so.0 0x00007f4872d748f0
3 libc.so.6 0x00007f4872063a75 gsignal + 53
4 libc.so.6 0x00007f48720675c0 abort + 384
5 libc.so.6 0x00007f487205c941 __assert_fail + 241
6 clang 0x00000000012c21c9
7 clang 0x00000000012c1d93
8 clang 0x00000000012c0718
clang::Sema::BuildCXXNamedCast(clang::SourceLocation, clang::tok::TokenKind,
clang::TypeSourceInfo*, clang::Expr*, clang::SourceRange, clang::SourceRange) +
1178
9 clang 0x00000000014c04c3
10 clang 0x00000000014bfe5c
11 clang 0x00000000014bb94a
12 clang 0x00000000014b3236
13 clang 0x00000000014a6c62
14 clang 0x00000000014a65e8
15 clang 0x00000000014b9ab8
16 clang 0x00000000014ad202
17 clang 0x00000000014a6236
18 clang 0x00000000014a2dad clang::Sema::SubstStmt(clang::Stmt*,
clang::MultiLevelTemplateArgumentList const&) + 125
19 clang 0x00000000014cc67a
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 1740
20 clang 0x00000000014ce89f
clang::Sema::PerformPendingInstantiations(bool) + 341
21 clang 0x00000000012af1d6 clang::Sema::ActOnEndOfTranslationUnit()
+ 376
22 clang 0x0000000001271bd9
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 119
23 clang 0x000000000125b0e0 clang::ParseAST(clang::Sema&, bool) + 328
24 clang 0x0000000000fbf363 clang::ASTFrontendAction::ExecuteAction()
+ 263
25 clang 0x0000000001103d39 clang::CodeGenAction::ExecuteAction() +
951
26 clang 0x0000000000fbefb4 clang::FrontendAction::Execute() + 320
27 clang 0x0000000000fa659d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 751
28 clang 0x0000000000f536c5
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 858
29 clang 0x0000000000f455c9 cc1_main(char const**, char const**, char
const*, void*) + 1032
30 clang 0x0000000000f4ec2c main + 499
31 libc.so.6 0x00007f487204ec4d __libc_start_main + 253
32 clang 0x0000000000f44c39
Stack dump:
0. Program arguments: /llvmdebug/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
t.cc -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.20.1 -momit-leaf-frame-pointer -resource-dir /llvmdebug/bin/../lib/clang/2.9
-std=c++0x -ferror-limit 19 -fmessage-length 192 -fexceptions -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o t.o -x c++ t.cc
1. parser at end of file
2. t.cc:13:5: instantiating function definition 'get'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Feb 10 12:14:37 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Feb 2011 12:14:37 -0600 (CST)
Subject: [LLVMbugs] [Bug 9182] spurious warning on overloaded-virtual
In-Reply-To:
References:
Message-ID: <20110210181437.8003C2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9182
Argyrios Kyrtzidis changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Argyrios Kyrtzidis 2011-02-10 12:14:37 CST ---
Fixed at r125296. Thanks for the report!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Feb 10 14:46:59 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Feb 2011 14:46:59 -0600 (CST)
Subject: [LLVMbugs] [Bug 9193] New: clang should warn if 'else if' clause is
same as any previous 'if' clause
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9193
Summary: clang should warn if 'else if' clause is same as any
previous 'if' clause
Product: new-bugs
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sean at rogue-research.com
CC: llvmbugs at cs.uiuc.edu
Consider the following C snippit:
if (x == 5)
{
...
}
else if (x == 5)
{
...
}
I've made a typo in the 'else if' and accidentally tested condition.
It would be nice it clang could warn when it sees this.
With raw ints it's easy to see the mistake, but when they are constants, and
two constants accidentally have the same value, it's harder to find.
It would be happy with this in either the compiler or static analyzer.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Feb 10 15:01:16 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Feb 2011 15:01:16 -0600 (CST)
Subject: [LLVMbugs] [Bug 9194] New: clang should warn upon '== YES' with
Obj-C BOOL
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9194
Summary: clang should warn upon '== YES' with Obj-C BOOL
Product: new-bugs
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sean at rogue-research.com
CC: llvmbugs at cs.uiuc.edu
Since Objective-C predates C99, it defines it's own BOOL type instead of using
the standard bool. Unfortunately, Obj-C BOOL is in fact a 'signed char' and so
has 256 possible values instead of just 2.
It also defines NO=0 and YES=1. But what about the other 254 values? As per C
rules, they are all treated as true. As such, testing == NO is safe, but
testing == YES is not (since YES is not the only true value).
rdar://problem/6510042 suggests that Obj-C adopt the C99 bool, but until
then...
it would be nice if clang warned for any test of a BOOL variable with == YES
ex:
BOOL isOK = someBitField & someFlag; // isOK becomes, let's say, 66.
if (isOK == YES)
fail!
vs
bool isOK = someBitField & someFlag; // isOK becomes either 0 or 1
if (isOK == true)
success!
I would be happy with either the compiler or static analzyer warning about
this.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Feb 10 15:50:15 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Feb 2011 15:50:15 -0600 (CST)
Subject: [LLVMbugs] [Bug 9195] New: -Wformat=0 should be understood as an
alias for -Wno-format
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9195
Summary: -Wformat=0 should be understood as an alias for
-Wno-format
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu
Ubuntu's gcc supports -Wformat=0 to disable printf warnings. For compatibility,
it'd be nice if clang would understand that, too.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Feb 10 17:55:21 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Feb 2011 17:55:21 -0600 (CST)
Subject: [LLVMbugs] [Bug 9112] Assertion `(KnownZero2 & KnownOne2) == 0 &&
"Bits known to be one AND zero?"' failed.
In-Reply-To:
References:
Message-ID: <20110210235521.BBF152A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9112
Nick Lewycky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |nlewycky at google.com
Resolution| |FIXED
--- Comment #2 from Nick Lewycky 2011-02-10 17:55:20 CST ---
Fixed in r125319.
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20110207/116348.html
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Feb 10 20:19:01 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Feb 2011 20:19:01 -0600 (CST)
Subject: [LLVMbugs] [Bug 9196] New: false positive 'The left expression of
the compound assignment is an unitialized value. The computed value will be
garbage.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9196
Summary: false positive 'The left expression of the compound
assignment is an unitialized value. The computed
value will be garbage.
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: LetterRip at gmail.com
CC: llvmbugs at cs.uiuc.edu
Here is a simplified version of the code
void buggy(float rad) {
float vec[7][2]= {{0.195, 0.02}, {0.383, 0.067}, {0.55, 0.169}, {0.707,
0.293},
{0.831, 0.45}, {0.924, 0.617}, {0.98, 0.805}};
int a;
/* mult */
for(a=0; a<7; a++) {
vec[a][0]*= rad; vec[a][1]*= rad; /* claims bug is here */
}
}
The left expression of the compound assignment is an unitialized value. The
computed value will be garbage.
And the actual code, this is from Blender head, file is interface_draw.c
void uiDrawBox(int mode, float minx, float miny, float maxx, float maxy, float
rad)
{
float vec[7][2]= {{0.195, 0.02}, {0.383, 0.067}, {0.55, 0.169}, {0.707,
0.293},
{0.831, 0.45}, {0.924, 0.617}, {0.98, 0.805}};
int a;
/* mult */
for(a=0; a<7; a++) {
vec[a][0]*= rad; vec[a][1]*= rad; /* claims bug is here */
}
glBegin(mode);
/* start with corner right-bottom */
if(roundboxtype & 4) {
glVertex2f(maxx-rad, miny);
for(a=0; a<7; a++) {
glVertex2f(maxx-rad+vec[a][0], miny+vec[a][1]);
}
glVertex2f(maxx, miny+rad);
}
else glVertex2f(maxx, miny);
/* corner right-top */
if(roundboxtype & 2) {
glVertex2f(maxx, maxy-rad);
for(a=0; a<7; a++) {
glVertex2f(maxx-vec[a][1], maxy-rad+vec[a][0]);
}
glVertex2f(maxx-rad, maxy);
}
else glVertex2f(maxx, maxy);
/* corner left-top */
if(roundboxtype & 1) {
glVertex2f(minx+rad, maxy);
for(a=0; a<7; a++) {
glVertex2f(minx+rad-vec[a][0], maxy-vec[a][1]);
}
glVertex2f(minx, maxy-rad);
}
else glVertex2f(minx, maxy);
/* corner left-bottom */
if(roundboxtype & 8) {
glVertex2f(minx, miny+rad);
for(a=0; a<7; a++) {
glVertex2f(minx+vec[a][1], miny+rad-vec[a][0]);
}
glVertex2f(minx+rad, miny);
}
else glVertex2f(minx, miny);
glEnd();
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Feb 10 21:19:21 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Feb 2011 21:19:21 -0600 (CST)
Subject: [LLVMbugs] [Bug 9197] New: derived virtual destructor not called
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9197
Summary: derived virtual destructor not called
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu
This C++ test program should print "destructed!":
extern "C" int puts(const char *);
struct Test { ~Test() { puts("destructed!"); } };
struct Base {
virtual ~Base();
};
Base::~Base() { }
namespace {
struct Deriv : public Base {
Test t[1];
};
}
int main(void) {
Base *b = new Deriv();
delete b;
};
but doesn't when compiled by clang. The Base::~Base() destructor is called, but
not Deriv, which means that Test is never torn down. Either removing Deriv from
the anonymous namespace or making 't' not be an array masks 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 Feb 11 05:04:51 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Feb 2011 05:04:51 -0600 (CST)
Subject: [LLVMbugs] [Bug 9198] New: Idempotent Operation Test Ignores Sizes
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9198
Summary: Idempotent Operation Test Ignores Sizes
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: csdavec at swan.ac.uk
CC: llvmbugs at cs.uiuc.edu
This sequence generates a warning saying that the second store has no effect:
*(uint8_t*)address = (uint8_t)big;
*(uint16_t*)address = (uint16_t)big;
This is a bug, but not the kind of bug that is being reported. The second
store is completely overwriting the first store, so we should be getting a dead
assignment error, not an idempotent operation error.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Feb 11 06:14:47 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Feb 2011 06:14:47 -0600 (CST)
Subject: [LLVMbugs] [Bug 9199] New: Not properly lowering memcpy intrinsic
using LDMIA/STMIA on ARM
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9199
Summary: Not properly lowering memcpy intrinsic using
LDMIA/STMIA on ARM
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: vasiliy.korchagin at gmail.com
CC: llvmbugs at cs.uiuc.edu
llvm emits code for "memcpy" intrinsic on ARM as consecutive ldr/str commands,
and further combines them into ldm/stm with special pass after register
allocation. But ldm/stm commands require registers to go in ascending order,
what is often not so after regalloc, therefore some str/ldr commands remain.
For example such code:
struct Foo {int a, b, c, d; };
void CopyStruct(struct Foo *a, struct Foo *b) { *a = *b; }
compiled to:
ldmia r1, {r2, r3, r12}
ldr r1, [r1, #12]
stmia r0, {r2, r3, r12}
str r1, [r0, #12]
bx lr
I ran different tests and always regalloc allocates at least one register not
in ascending order.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 11 06:23:12 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Feb 2011 06:23:12 -0600 (CST)
Subject: [LLVMbugs] [Bug 9200] New: Zero-length VLA test doesn't do adequate
range propagation
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9200
Summary: Zero-length VLA test doesn't do adequate range
propagation
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: csdavec at swan.ac.uk
CC: llvmbugs at cs.uiuc.edu
The analyser is reporting incorrectly in this instance
2092 if (ptr == end)
3 Taking false branch
2093 {
2094 return 0;
2095 }
2096 else
2097 {
2098 unsigned len = (end - ptr) < 32 ? (end - ptr) : 31;
4 '?' condition is true
2099 char buf[len+1];
5 Declared variable-length array (VLA) has zero size
>From line 2092, it knows that ptr != end, therefore ptr - end is not 0. On
line 2098, it is taking the condition as true, therefore end - ptr < 32. This
means that end-ptr is guaranteed to be in the range 1-31. Therefore, the size
of the VLA is 2-32.
Note that even without the original case being propagated, the condition tells
us that len is in the range 0-31, therefore len + 1 can not be 0.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Feb 11 08:35:08 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Feb 2011 08:35:08 -0600 (CST)
Subject: [LLVMbugs] [Bug 8778] [Win64] incorrect stack frame with alloca(n)
and call
In-Reply-To:
References:
Message-ID: <20110211143508.478A02A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8778
NAKAMURA Takumi changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |geek4civic at gmail.com
Resolution| |FIXED
--- Comment #1 from NAKAMURA Takumi 2011-02-11 08:35:07 CST ---
Fixed in r124949. (chkstk issue is pending)
foo:
pushq %rbp
movq %rsp, %rbp
movq %rcx, %rdx
leaq 15(%rdx), %rax
andq $-16, %rax
movq %rsp, %rcx
subq %rax, %rcx
movq %rcx, %rsp
subq $48, %rsp
movq %rdx, 32(%rsp)
movq %rdx, %r8
movq %rdx, %r9
callq bar
movq %rbp, %rsp
popq %rbp
ret
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Feb 11 09:17:34 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Feb 2011 09:17:34 -0600 (CST)
Subject: [LLVMbugs] [Bug 9201] New: llc behaves in a confusing way when
there is no data layout string
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9201
Summary: llc behaves in a confusing way when there is no data
layout string
Product: tools
Version: 2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: llc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: blood.of.life at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6151)
--> (http://llvm.org/bugs/attachment.cgi?id=6151)
IR file that when assembled and passed to llc, triggers behaviour.
Running the following on my machine results in this:
$ llvm-as test6.ll; llc test6.bc
llvm-as: test6.ll:8:28: error: use of undefined value '%int'
store i1 %primitive, i1* %int
^
llc: /home/bernard/src/llvm-2.8/lib/Target/TargetData.cpp:293: unsigned int
llvm::TargetData::getAlignmentInfo(llvm::AlignTypeEnum, uint32_t, bool, const
llvm::Type*) const: Assertion `AlignType == VECTOR_ALIGN && "Unknown alignment
type!"' failed.
0 libLLVM-2.8.so 0xf6f2e4eb
1 libLLVM-2.8.so 0xf6f2e278
2 0xf771f400 __kernel_sigreturn + 0
Stack dump:
0. Program arguments: llc test6.bc
1. Running pass 'Function Pass Manager' on module 'test6.bc'.
2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@main'
Aborted
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Feb 11 13:29:19 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Feb 2011 13:29:19 -0600 (CST)
Subject: [LLVMbugs] [Bug 9190] "Unexpected illegal type!" assertion
In-Reply-To:
References:
Message-ID: <20110211192919.3BF8D2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9190
Nadav Rotem changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Nadav Rotem 2011-02-11 13:29:18 CST ---
Fixed in #125391
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 11 13:38:21 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Feb 2011 13:38:21 -0600 (CST)
Subject: [LLVMbugs] [Bug 9173] getting very long instruction lines when
using instcombine
In-Reply-To:
References:
Message-ID: <20110211193821.411FB2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9173
Nadav Rotem changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #13 from Nadav Rotem 2011-02-11 13:38:20 CST ---
Fixed in 125393
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 11 13:58:19 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Feb 2011 13:58:19 -0600 (CST)
Subject: [LLVMbugs] [Bug 9158] Assertion failed in codegen
In-Reply-To:
References:
Message-ID: <20110211195819.2D0992A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9158
Nadav Rotem changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Nadav Rotem 2011-02-11 13:58:18 CST ---
Fixed in 125398.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 11 14:13:44 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Feb 2011 14:13:44 -0600 (CST)
Subject: [LLVMbugs] [Bug 8648] Assertion `isa(Val) && "cast()
argument of incompatible type!"' failed
In-Reply-To:
References:
Message-ID: <20110211201345.449EA2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8648
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Ted Kremenek 2011-02-11 14:13:44 CST ---
Test case added in r125401.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 11 14:46:57 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Feb 2011 14:46:57 -0600 (CST)
Subject: [LLVMbugs] [Bug 9202] New: False unused function warning for extern
"C" function in unnamed namespace
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9202
Summary: False unused function warning for extern "C" function
in unnamed namespace
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: stephan.bergmann.secondary at googlemail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
$ clang --version
clang version 2.9 (trunk 125213)
Target: x86_64-apple-darwin10
Thread model: posix
$ printf 'namespace { extern "C" void f() {} }\n' > test.cc
$ clang -c -Wunused-function test.cc
test.cc:1:29: warning: unused function 'f' [-Wunused-function]
namespace { extern "C" void f() {} }
^
1 warning generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Feb 11 17:12:26 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Feb 2011 17:12:26 -0600 (CST)
Subject: [LLVMbugs] [Bug 9203] New: Warning about struct tag argument being
"visible outside of this function"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9203
Summary: Warning about struct tag argument being "visible
outside of this function"
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: tjw at omnigroup.com
CC: llvmbugs at cs.uiuc.edu
Compiling this with clang (r125414):
#import
@interface NSObject(Category)
- (BOOL)appendXML:(struct _OFXMLBuffer *)xml;
@end
now produces a warning that it didn't before.
struct-tag.m:4:27: warning: declaration of 'struct _OFXMLBuffer' will not be
visible outside of this function
- (BOOL)appendXML:(struct _OFXMLBuffer *)xml;
This is easily fixable by #import'ing the header that has a typedef for this
struct, but it has never produced a warning before and seems iffy to me. I'm
not enough of an expert on the C spec to say whether this is a regression or a
new correct behavior, though.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Feb 11 17:51:26 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Feb 2011 17:51:26 -0600 (CST)
Subject: [LLVMbugs] [Bug 9203] Warning about struct tag argument being
"visible outside of this function"
In-Reply-To:
References:
Message-ID: <20110211235126.D50492A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9203
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Feb 12 00:52:45 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 12 Feb 2011 00:52:45 -0600 (CST)
Subject: [LLVMbugs] [Bug 8238] CMake build process failed with undefined
reference
In-Reply-To:
References:
Message-ID: <20110212065245.5153A2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8238
Ryuta Suzuki changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #16 from Ryuta Suzuki 2011-02-12 00:52:43 CST ---
It seems to be fixed at least in clang 125433.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 12 00:57:29 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 12 Feb 2011 00:57:29 -0600 (CST)
Subject: [LLVMbugs] [Bug 9204] New: Please insert "-fno-use-cxa-atexit" as
default for Win32
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9204
Summary: Please insert "-fno-use-cxa-atexit" as default for
Win32
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: art.oriented at gmail.com
CC: llvmbugs at cs.uiuc.edu
http://llvm.org/bugs/show_bug.cgi?id=7276
This bug still happens for native Win32. So, C++ code causes link errors:
error LNK2019: unresolved external symbol ___dso_handle referenced
error LNK2019: unresolved external symbol ___cxa_atexit referenced
The fix would be very simple: just put '--fno-use-cxa-atexit' as default
argument. Please fix "tools\clang\lib\Driver\Tools.cpp" as follows (sorry I
don't have permit to commit yet):
// -fuse-cxa-atexit is default.
if (KernelOrKext ||
!Args.hasFlag(options::OPT_fuse_cxa_atexit,
options::OPT_fno_use_cxa_atexit,
getToolChain().getTriple().getOS() != llvm::Triple::Win32 &&
getToolChain().getTriple().getOS() != llvm::Triple::Cygwin &&
getToolChain().getTriple().getOS() != llvm::Triple::MinGW32
&&
getToolChain().getTriple().getOS() != llvm::Triple::MinGW64))
CmdArgs.push_back("-fno-use-cxa-atexit");
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 12 08:44:28 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 12 Feb 2011 08:44:28 -0600 (CST)
Subject: [LLVMbugs] [Bug 9165] Unable to select BUILD_VECTOR operation
In-Reply-To:
References:
Message-ID: <20110212144428.62C7F2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9165
Nadav Rotem changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Nadav Rotem 2011-02-12 08:44:27 CST ---
Fixed in 125435.
Accepted Duncan's comment and added a check if the generated type is legal.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 12 12:50:59 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 12 Feb 2011 12:50:59 -0600 (CST)
Subject: [LLVMbugs] [Bug 9116] assertion failed in
IdempotentOperationChecker.cpp
In-Reply-To:
References:
Message-ID: <20110212185059.D1F012A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9116
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Ted Kremenek 2011-02-12 12:50:59 CST ---
Fixed here: r125443
This was fallout from the additional support for properties.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 12 16:36:32 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 12 Feb 2011 16:36:32 -0600 (CST)
Subject: [LLVMbugs] [Bug 9205] New: cmath does not work with clang
-std=c++0x or -std=c++93
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=9205
Summary: cmath does not work with clang -std=c++0x or
-std=c++93
Product: libc++
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
AssignedTo: hhinnant at apple.com
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu
A simple:
#include
does not work on mac os x 10.6, with clang -std=c++0x or clang -std=c++93. It
works fine with -std=gnu++0x and -std=gnu++93.
I had assumed that -std=c++0x was the 'natural' extension to get c++0x support.
I can see I should probably be using gnu++0x. That is an unfortunate choice of
naming (but probably clang's fault).
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Feb 12 18:49:24 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 12 Feb 2011 18:49:24 -0600 (CST)
Subject: [LLVMbugs] [Bug 9197] derived virtual destructor not called
In-Reply-To:
References:
Message-ID: <20110213004924.528D12A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9197
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |rjmccall at apple.com
Resolution| |FIXED
--- Comment #4 from John McCall 2011-02-12 18:49:23 CST ---
Taking the class out of the anonymous namespace gives the implicit destructor
weak linkage, which suppresses -mconstructor-aliases.
The bug is that the code which decides whether a base destructor variant can be
emitted as an alias for the destructor of a base class was not looking through
array types when inspecting the type of a field. Fixed in r125447.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 12 20:54:55 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 12 Feb 2011 20:54:55 -0600 (CST)
Subject: [LLVMbugs] [Bug 9171] Clang-built WebKit exhibits unique form bug
In-Reply-To:
References:
Message-ID: <20110213025455.62FAE2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9171
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #4 from Chris Lattner 2011-02-12 20:54:54 CST ---
This was a webkit bug, and is fixed in their ToT:
I don't know how to build WebKit with clang, but I think that I know what's
going on. We do call -[NSFileManager fileSystemRepresentationWithPath:] with a
nil argument, it raises an exception, and we end up returning from
-[_WebSafeForwarder forwardInvocation:] with an uninitialized result.
This use of uninitialized result is a regression from shipping WebKit, I can
observe it with a gcc build - even though the form doesn't fail to submit for
me.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Feb 12 23:02:16 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 12 Feb 2011 23:02:16 -0600 (CST)
Subject: [LLVMbugs] [Bug 4900] clang: blender 2.49b renders wrong image
In-Reply-To:
References:
Message-ID: <20110213050216.5C3392A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=4900
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #12 from Chris Lattner 2011-02-12 23:02:15 CST ---
I'm assuming so then!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Feb 13 02:25:43 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 13 Feb 2011 02:25:43 -0600 (CST)
Subject: [LLVMbugs] [Bug 9120] not taking advantage of known pointer
alignment
In-Reply-To:
References:
Message-ID: <20110213082543.5D2CA2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9120
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Chris Lattner 2011-02-13 02:25:42 CST ---
Comment #2 is now simplified into:
define i1 @test(i32 %x, i32 %y) {
%C = icmp eq i32 %x, %y
ret i1 %C
}
We now compile the original testcase down to this:
define void @_Z3fooRKSt6vectorIiSaIiEE(%"class.std::vector"* nocapture %v) ssp
{
entry:
%tmp2.i = getelementptr inbounds %"class.std::vector"* %v, i64 0, i32 0, i64
8
%0 = bitcast i8* %tmp2.i to i32**
%tmp3.i = load i32** %0, align 8, !tbaa !0
%tmp5.i = bitcast %"class.std::vector"* %v to i32**
%tmp6.i = load i32** %tmp5.i, align 8, !tbaa !0
%cmp = icmp eq i32* %tmp3.i, %tmp6.i
br i1 %cmp, label %if.then, label %if.else
so this looks fixed!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Feb 13 02:35:08 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 13 Feb 2011 02:35:08 -0600 (CST)
Subject: [LLVMbugs] [Bug 9142] [mc] unknown token "%r14" in movq
In-Reply-To:
References:
Message-ID: <20110213083508.847B42A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9142
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Chris Lattner 2011-02-13 02:35:08 CST ---
We're not accepting this syntax, please fix the project upstream, see for
example:
http://llvm.org/bugs/show_bug.cgi?id=7352#c5
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Feb 13 02:36:17 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 13 Feb 2011 02:36:17 -0600 (CST)
Subject: [LLVMbugs] [Bug 9147] ./configure test craps out with clang but not
with gcc
In-Reply-To:
References:
Message-ID: <20110213083617.65CCD2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=9147
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Chris Lattner 2011-02-13 02:36:16 CST ---
This has been fixed since LLVM 2.7
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Feb 13 02:39:11 2011
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 13 Feb 2011 02:39:11 -0600 (CST)
Subject: [LLVMbugs] [Bug 9109] [patch] Fix of the shared library link on
Solaris
In-Reply-To: