From bugzilla-daemon at llvm.org Mon Mar 1 07:22:29 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 07:22:29 -0600 (CST)
Subject: [LLVMbugs] [Bug 6447] New: Building C++ app fails with link error
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6447
Summary: Building C++ app fails with link error
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jpakkane at gmail.com
CC: llvmbugs at cs.uiuc.edu
I try to build Cuneiform OCR system with clang but it fails. Here's how to
duplicate using the latest bzr:
bzr branch lp:cuneiform-linux cf
cd cf
mkdir builddir
cd builddir
CC=/path/to/clang CXX=/path/to/clang++ cmake -DCMAKE_BUILD_TYPE=debug ..
make
Eventually you get this error:
Linking CXX executable ../../cuneiform
../Kern/cpage/libcpage.so.0.9.0: undefined reference to `BLOCK::~BLOCK()'
collect2: ld returned 1 exit status
But BLOCK::~BLOCK is defined in cuneiform_src/Kern/cpage/sources/cpp/block.h:
class BLOCK: public DATA
{
[stuff removed]
public:
BLOCK();
virtual ~BLOCK();
and its (empty) implementation is in the corresponding block.cpp:
BLOCK::~BLOCK()
{
}
And this file even gets included in the CMakeLists.txt.
The same code does work with GCC, MinGW, and MSVC.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 09:08:21 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 09:08:21 -0600 (CST)
Subject: [LLVMbugs] [Bug 6448] New: clang -fsyntax-only fails on something
g++ accepts
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6448
Summary: clang -fsyntax-only fails on something g++ accepts
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Blocks: 6266
when compiling the attached:
pes delta$ g++ -fsyntax-only ext-inst.cc && echo success
success
pes delta$ clang++ -fsyntax-only ext-inst.cc && echo success
ext-inst.cc:20:171: error: '_CharT' does not refer to a value
...= (_Rope_RopeLeaf<_CharT, _Alloc>*)this; __l->_Rope_RopeLeaf<_CharT,
_Alloc>::~_Rope_RopeLeaf(); ...
^
ext-inst.cc:19:31: note: declared at
template void
_Rope_RopeRep<_CharT, _Alloc>:: ...
^
ext-inst.cc:20:424: error: '_CharT' does not refer to a value
...= (_Rope_RopeConcatenation<_CharT, _Alloc>*)this;
__c->_Rope_RopeConcatenation<_CharT, _Alloc>:: ...
^
ext-inst.cc:19:31: note: declared at
template void
_Rope_RopeRep<_CharT, _Alloc>:: ...
^
ext-inst.cc:20:682: error: '_CharT' does not refer to a value
..._Alloc>*)this; __f->_Rope_RopeFunction<_CharT,
_Alloc>::~_Rope_RopeFunction(); _F_deallocate(__f, ...
^
ext-inst.cc:19:31: note: declared at
template void
_Rope_RopeRep<_CharT, _Alloc>:: ...
^
ext-inst.cc:20:935: error: '_CharT' does not refer to a value
...__ss = (_Rope_RopeSubstring<_CharT, _Alloc>*)this;
__ss->_Rope_RopeSubstring<_CharT, _Alloc>:: ...
^
ext-inst.cc:19:31: note: declared at
template void
_Rope_RopeRep<_CharT, _Alloc>:: ...
^
8 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 Mon Mar 1 09:28:11 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 09:28:11 -0600 (CST)
Subject: [LLVMbugs] [Bug 6449] New: clang -fsyntax-only fails on something
g++ accepts [2]
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6449
Summary: clang -fsyntax-only fails on something g++ accepts [2]
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Blocks: 6266
pes delta$ g++ -fsyntax-only locale-inst.cc && echo yes
yes
pes delta$ clang++ -fsyntax-only locale-inst.cc && echo yes
locale-inst.cc:27:95: error: redefinition of 'intl'
template const bool
moneypunct_byname<_CharT, _Intl>::intl;
^
locale-inst.cc:29:22: note: in instantiation of static data member
'std::moneypunct_byname::intl' requested
here
template class moneypunct_byname;
^
locale-inst.cc:23:88: note: previous definition is here
template const bool moneypunct<_CharT,
_Intl>::intl;
^
3 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 Mon Mar 1 09:46:20 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 09:46:20 -0600 (CST)
Subject: [LLVMbugs] [Bug 6450] New: LiveIntervals code doesn't properly
identify unspillable registers.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6450
Summary: LiveIntervals code doesn't properly identify
unspillable registers.
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: mwb.cde at googlemail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4342)
--> (http://llvm.org/bugs/attachment.cgi?id=4342)
LiveInterval patch - add no_spill field
The spiller code in LiveIntervalAnalysis.cpp and Spiller.cpp asserts
when passed a register with infinite weight even if the register is a
valid choice for spilling.
Registers that can't be spilled, because they are generated by the
spiller for a register placed on the stack, are identified by setting
their interval weight to HUGE_VALF (== inf). This makes them
indistinguishable from normal registers that have infinite weight,
which can occur with deeply nested loops such as generated by the test
case for bug 5846.
The attached LiveIntervals patch adds boolean field no_spill to class
LiveInterval, to indicate whether the interval represents a spillable
register, and updates the spiller code to set and test the field. It
does not change the setting and testing of the interval weight except
to remove the assertions so this patch should not affect any existing
code. The patch has been tested for the CodeGen component.
The RegAllocLinScan patch is a partial, untested change to
RegAllocLinearScan to make use of the no_spill field when trying to
find a register to spill. It gets the test-case for bug 5846 to
compile but is only meant as an example of use and has not been
tested.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 09:57:38 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 09:57:38 -0600 (CST)
Subject: [LLVMbugs] [Bug 6376] Assertion failed: ((Result ||
isa(D)) && "Unable to find instantiation of declaration!"),
function FindInstantiatedDecl, file SemaTemplateInstantiateDecl.cpp,
line 2306.
In-Reply-To:
References:
Message-ID: <20100301155738.97D182A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6376
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Douglas Gregor 2010-03-01 09:57:37 CST ---
Fixed in r97444.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 12:00:16 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 12:00:16 -0600 (CST)
Subject: [LLVMbugs] [Bug 6335] TargetLowering::SimplifyDemandedBits
incorrectly handles vector types on Truncate
In-Reply-To:
References:
Message-ID: <20100301180016.E921D2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6335
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Dan Gohman 2010-03-01 12:00:16 CST ---
Thanks for the report and patch. I applied a fix to trunk in r97461.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 12:21:19 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 12:21:19 -0600 (CST)
Subject: [LLVMbugs] [Bug 5825] c++ parser infinite loop
In-Reply-To:
References:
Message-ID: <20100301182119.2A4AB2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5825
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
CC| |rjmccall at apple.com
Resolution| |FIXED
--- Comment #4 from John McCall 2010-03-01 12:21:18 CST ---
Fixed in r97462.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 13:00:24 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 13:00:24 -0600 (CST)
Subject: [LLVMbugs] [Bug 6375] Assertion failed: (Result && "declaration was
not instantiated in this scope!")
In-Reply-To:
References:
Message-ID: <20100301190024.406072A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6375
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Douglas Gregor 2010-03-01 13:00:23 CST ---
Fixed in r97471.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 13:03:53 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 13:03:53 -0600 (CST)
Subject: [LLVMbugs] [Bug 6448] clang -fsyntax-only fails on something g++
accepts
In-Reply-To:
References:
Message-ID: <20100301190353.B7FDF2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6448
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Douglas Gregor 2010-03-01 13:03:53 CST ---
In all of these cases, the code is ill-formed because it is missing a
"template" keyword after the "->". We should produce a better diagnostic, but
that's PR5404.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 13:12:25 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 13:12:25 -0600 (CST)
Subject: [LLVMbugs] [Bug 6449] clang -fsyntax-only fails on something g++
accepts [2]
In-Reply-To:
References:
Message-ID: <20100301191225.229C32A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6449
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Douglas Gregor 2010-03-01 13:12:24 CST ---
Fixed in r97478.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 13:24:46 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 13:24:46 -0600 (CST)
Subject: [LLVMbugs] [Bug 2194] Wrong NoAlias from Andersens alias analysis
in combination with loop-reduce
In-Reply-To:
References:
Message-ID: <20100301192446.BAA692A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=2194
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |WONTFIX
--- Comment #2 from Chris Lattner 2010-03-01 13:24:46 CST ---
I just removed anders-aa from mainline.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Mar 1 13:25:00 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 13:25:00 -0600 (CST)
Subject: [LLVMbugs] [Bug 2451] Anders pass asserts on
extractelement/insertelement
In-Reply-To:
References:
Message-ID: <20100301192500.7DC362A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=2451
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #4 from Chris Lattner 2010-03-01 13:25:00 CST ---
I just removed anders-aa from mainline.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Mar 1 13:25:42 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 13:25:42 -0600 (CST)
Subject: [LLVMbugs] [Bug 3323] AliasAnalysis pass removed before function
pass can use it
In-Reply-To:
References:
Message-ID: <20100301192542.19E832A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=3323
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #4 from Chris Lattner 2010-03-01 13:25:41 CST ---
I just removed anders-aa from mainline, so this doesn't repro. If it remains a
problem we can investigate in the future.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 13:34:54 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 13:34:54 -0600 (CST)
Subject: [LLVMbugs] [Bug 6451] New: Missing diagnostics for jump crossing
initialization
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6451
Summary: Missing diagnostics for jump crossing initialization
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dgregor at apple.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
The jump diagnostics need to learn that we can't jump past an initialization in
C++:
terfin:clang dgregor$ cat t.C
struct X {
X();
};
void f() {
goto later;
X x;
later:
;
}
terfin:clang dgregor$ clang -fsyntax-only t.C
terfin:clang dgregor$ g++ -fsyntax-only t.C
t.C: In function ?void f()?:
t.C:8: error: jump to label ?later?
t.C:6: error: from here
t.C:7: error: crosses initialization of ?X 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 Mon Mar 1 14:23:26 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 14:23:26 -0600 (CST)
Subject: [LLVMbugs] [Bug 6452] New: Prevent an input structure from being
copied to the stack
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6452
Summary: Prevent an input structure from being copied to the
stack
Product: libraries
Version: 2.6
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: Register Allocator
AssignedTo: unassignedbugs at nondot.org
ReportedBy: llvm at henning-thielemann.de
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4347)
--> (http://llvm.org/bugs/attachment.cgi?id=4347)
an example where values are copied from an input struct to the stack, although
they could remain in the input struct
I have a function definition like
define i32 @_fun1(%param* noalias, i32, float* noalias)
that reads parameters from a struct type %param and writes results to a float
array of size with type i32. Now LLVM generates code that first copies all
parameters to the stack. This is correct in all circumstances but in my
application I can warrant that the parameter struct and the float array do not
overlap and thus the parameters could always be fetched directly from the
parameter struct. But maybe this isn't even a bug but a feature, because LLVM
expects faster memory access if all temporarily needed values are at one place
(on the stack)?
Maybe this is related to
http://llvm.org/bugs/show_bug.cgi?id=1819
http://llvm.org/bugs/show_bug.cgi?id=1821
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 14:45:32 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 14:45:32 -0600 (CST)
Subject: [LLVMbugs] [Bug 6453] New: LSR produces invalid IR
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6453
Summary: LSR produces invalid IR
Product: libraries
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: Loop Optimizer
AssignedTo: unassignedbugs at nondot.org
ReportedBy: stoklund at 2pi.dk
CC: llvmbugs at cs.uiuc.edu
This cropped up during a bugpoint session:
$ Release/bin/opt -loop-reduce -verify LoopReduce.ll -o /dev/null
Instruction does not dominate all uses!
%lsr.iv.next5 = add i32 %lsr.iv4, %lsr.iv2 ; [#uses=2]
%tmp9 = sub i32 %lsr.iv.next5, %tmp8 ; [#uses=1]
Broken module found, compilation aborted!
0 opt 0x000000010041ca92 PrintStackTrace(void*) + 34
1 opt 0x000000010041d27c SignalHandler(int) + 652
2 libSystem.B.dylib 0x00007fff8160deaa _sigtramp + 26
3 libSystem.B.dylib 0x00007fff5fbfeec0 _sigtramp + 3730772016
4 opt 0x00000001003e33b1 (anonymous
namespace)::Verifier::runOnFunction(llvm::Function&) + 2049
5 opt 0x00000001003b7f10
llvm::FPPassManager::runOnFunction(llvm::Function&) + 512
6 opt 0x00000001003b806b
llvm::FPPassManager::runOnModule(llvm::Module&) + 75
7 opt 0x00000001003b97ce
llvm::MPPassManager::runOnModule(llvm::Module&) + 478
8 opt 0x00000001003b9983
llvm::PassManagerImpl::run(llvm::Module&) + 147
9 opt 0x00000001003b9a0d llvm::PassManager::run(llvm::Module&) +
13
10 opt 0x00000001000465d7 main + 2951
11 opt 0x000000010003caa8 start + 52
Stack dump:
0. Program arguments: Release/bin/opt -loop-reduce -verify LoopReduce.ll -o
/dev/null
1. Running pass 'Function Pass Manager' on module 'LoopReduce.ll'.
2. Running pass 'Module Verifier' on function
'@_ZNK15PolynomialSpaceILi3EE13compute_indexEjRA3_j'
Abort trap
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Mar 1 14:53:02 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 14:53:02 -0600 (CST)
Subject: [LLVMbugs] [Bug 6454] New: clang -fsyntax-only fails on something
g++ accepts [3]
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6454
Summary: clang -fsyntax-only fails on something g++ accepts [3]
Product: clang
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: enhancement
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
pes delta$ g++ -fsyntax-only ext-inst.cc && echo success
success
pes delta$ clang++ -fsyntax-only ext-inst.cc && echo success
ext-inst.cc:9:5: warning: control reaches end of non-void function
[-Wreturn-type]
}
^
ext-inst.cc:37:41: error: use of undeclared identifier '_Data_allocate'
_CharT* __new_data = (_CharT*)
_Data_allocate(_S_rounded_up_size(__old_len + __len));
^
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 Mon Mar 1 14:56:02 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 14:56:02 -0600 (CST)
Subject: [LLVMbugs] [Bug 6455] New: Clear most significant 32 bits in the
elements <2 x i64> efficiently
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6455
Summary: Clear most significant 32 bits in the elements <2 x
i64> efficiently
Product: libraries
Version: 2.6
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: llvm at henning-thielemann.de
CC: llvmbugs at cs.uiuc.edu
I wanted to write a multiplication of two <2 x i 64> vectors that could be
implemented by pmuludq.
(See http://llvm.org/bugs/show_bug.cgi?id=6399)
I cleared the upper 32 bits of the vector elements of the factors before doing
the multiplication,
in order to show LLVM that pmuludq can be used instead of a full <2 x i 64>
multiplication.
(I was not sure whether LLVM understands this hint.)
However I found that clearing the upper 32 bits is sometimes compiled to quite
inefficient code depending on how I write it.
The first two of the following implementations lead to inefficient code,
and might be replaced automatically by the last one.
define <2 x i64> @_clearupper2xi64a(<2 x i64>) {
%x0 = extractelement <2 x i64> %0, i32 0
%x1 = extractelement <2 x i64> %0, i32 1
%trunc0 = trunc i64 %x0 to i32
%trunc1 = trunc i64 %x1 to i32
%ext0 = zext i32 %trunc0 to i64
%ext1 = zext i32 %trunc1 to i64
%v0 = insertelement <2 x i64> undef, i64 %ext0, i32 0
%v1 = insertelement <2 x i64> %v0, i64 %ext1, i32 1
ret <2 x i64> %v1
}
define <2 x i64> @_clearupper2xi64b(<2 x i64>) {
%x32 = bitcast <2 x i64> %0 to <4 x i32>
%r0 = insertelement <4 x i32> %x32, i32 zeroinitializer, i32 1
%r1 = insertelement <4 x i32> %r0, i32 zeroinitializer, i32 3
%r = bitcast <4 x i32> %r1 to <2 x i64>
ret <2 x i64> %r
}
define <2 x i64> @_clearupper2xi64c(<2 x i64>) {
%r = and <2 x i64> , %0
ret <2 x i64> %r
}
They are compiled to:
.align 16
.globl _clearupper2xi64a
.type _clearupper2xi64a, at function
_clearupper2xi64a: #
@_clearupper2xi64a
.Leh_func_begin7:
.LBB7_0:
pushl %ebp
.Llabel14:
movl %esp, %ebp
.Llabel15:
andl $-16, %esp
xorps %xmm1, %xmm1
movss %xmm0, %xmm1
movhlps %xmm0, %xmm0
movd %xmm0, %eax
movd %eax, %xmm2
movaps %xmm1, %xmm0
movlhps %xmm2, %xmm0
movl %ebp, %esp
popl %ebp
ret
.size _clearupper2xi64a, .-_clearupper2xi64a
.Leh_func_end7:
.align 16
.globl _clearupper2xi64b
.type _clearupper2xi64b, at function
_clearupper2xi64b: #
@_clearupper2xi64b
.Leh_func_begin8:
.LBB8_0:
pushl %ebp
.Llabel16:
movl %esp, %ebp
.Llabel17:
andl $-16, %esp
movaps %xmm0, %xmm1
pslldq $8, %xmm1
shufps $226, %xmm0, %xmm1
xorl %eax, %eax
movd %eax, %xmm0
movaps %xmm1, %xmm2
movss %xmm0, %xmm2
movaps %xmm1, %xmm0
shufps $36, %xmm2, %xmm0
movl %ebp, %esp
popl %ebp
ret
.size _clearupper2xi64b, .-_clearupper2xi64b
.Leh_func_end8:
.section .rodata.cst16,"aM", at progbits,16
.align 16
.LCPI9_0: # constant <4 x
i32>
.long 4294967295 # 0xFFFFFFFF
.zero 4
.long 4294967295 # 0xFFFFFFFF
.zero 4
.text
.align 16
.globl _clearupper2xi64c
.type _clearupper2xi64c, at function
_clearupper2xi64c: #
@_clearupper2xi64c
.Leh_func_begin9:
.LBB9_0:
pushl %ebp
.Llabel18:
movl %esp, %ebp
.Llabel19:
andl $-16, %esp
pand .LCPI9_0, %xmm0
movl %ebp, %esp
popl %ebp
ret
.size _clearupper2xi64c, .-_clearupper2xi64c
.Leh_func_end9:
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 14:56:23 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 14:56:23 -0600 (CST)
Subject: [LLVMbugs] [Bug 6454] clang -fsyntax-only fails on something g++
accepts [3]
In-Reply-To:
References:
Message-ID: <20100301205623.0F9B52A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6454
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Douglas Gregor 2010-03-01 14:56:22 CST ---
Clang is correct here. There are no type-dependent arguments in the call to
_Data_allocate, so name lookup fails at template definition 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 Mon Mar 1 15:00:19 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 15:00:19 -0600 (CST)
Subject: [LLVMbugs] [Bug 6451] Missing diagnostics for jump crossing
initialization
In-Reply-To:
References:
Message-ID: <20100301210019.EB1B62A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6451
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Chris Lattner 2010-03-01 15:00:19 CST ---
Implemented here:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20100301/028039.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 Mon Mar 1 15:01:05 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 15:01:05 -0600 (CST)
Subject: [LLVMbugs] [Bug 6450] LiveIntervals code doesn't properly identify
unspillable registers.
In-Reply-To:
References:
Message-ID: <20100301210105.D273C2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6450
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Jakob Stoklund Olesen 2010-03-01 15:01:05 CST ---
Fixed in r97496
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 15:01:41 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 15:01:41 -0600 (CST)
Subject: [LLVMbugs] [Bug 5846] Linear Scan Runs Out of Registers
In-Reply-To:
References:
Message-ID: <20100301210141.B53D32A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5846
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |stoklund at 2pi.dk
Resolution| |FIXED
--- Comment #2 from Jakob Stoklund Olesen 2010-03-01 15:01:41 CST ---
Fixed in r97496
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 15:06:34 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 15:06:34 -0600 (CST)
Subject: [LLVMbugs] [Bug 5933] bogus unused variable warning after error
In-Reply-To:
References:
Message-ID: <20100301210634.5D0252A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5933
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #9 from Chris Lattner 2010-03-01 15:06:33 CST ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20100301/028040.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 Mon Mar 1 15:18:01 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 15:18:01 -0600 (CST)
Subject: [LLVMbugs] [Bug 6456] New: clang -fsyntax-only fails on something
g++ accepts [4]
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6456
Summary: clang -fsyntax-only fails on something g++ accepts [4]
Product: clang
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: enhancement
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
pes delta$ cat locale-inst.cc
namespace std __attribute__ ((__visibility__ ("default"))) {
class locale {
class facet;
};
class locale::facet {
};
struct ctype_base {
};
}
namespace std __attribute__ ((__visibility__ ("default"))) {
template class __ctype_abstract_base : public
locale::facet, public ctype_base {
};
inline template class __ctype_abstract_base;
}
pes delta$ g++ -fsyntax-only locale-inst.cc && echo yes
yes
pes delta$ clang++ -fsyntax-only locale-inst.cc && echo yes
locale-inst.cc:13:18: error: expected unqualified-id
inline template class __ctype_abstract_base;
^
1 diagnostic 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 Mar 1 15:18:27 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 15:18:27 -0600 (CST)
Subject: [LLVMbugs] [Bug 6317] Clang gets confused with nested classes and
friend declarations
In-Reply-To:
References:
Message-ID: <20100301211827.4E9132A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6317
Chandler Carruth changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #5 from Chandler Carruth 2010-03-01 15:18:26 CST ---
Fixed in r97499, sorry for delays.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 15:20:04 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 15:20:04 -0600 (CST)
Subject: [LLVMbugs] [Bug 6376] Assertion failed: ((Result ||
isa(D)) && "Unable to find instantiation of declaration!"),
function FindInstantiatedDecl, file SemaTemplateInstantiateDecl.cpp,
line 2306.
In-Reply-To:
References:
Message-ID: <20100301212004.86AC22A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6376
Andrius Morkunas changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #4274|0 |1
is obsolete| |
Status|RESOLVED |REOPENED
Resolution|FIXED |
AssignedTo|unassignedclangbugs at nondot. |hinokind at gmail.com
|org |
--- Comment #6 from Andrius Morkunas 2010-03-01 15:20:03 CST ---
Created an attachment (id=4351)
--> (http://llvm.org/bugs/attachment.cgi?id=4351)
preprocessed file
This was failing with the same assert before, now fails with updated assert:
$ clang assert8v2.cc
Assertion failed: ((Result || isa(D) || D->isInvalidDecl() ||
cast(ParentDC)->isInvalidDecl()) && "Unable to find instantiation of
declaration!"), function FindInstantiatedDecl, file
SemaTemplateInstantiateDecl.cpp, line 2337.
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-freebsd8.0 -S -disable-free -main-file-name assert8v2.cc
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.1
-fmessage-length 157 -fexceptions -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-3UXV1F.s -x c++ assert8v2.cc
1. systemimagelist.cpp:44:66: current parser token 'Iterator'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
$ clang --version
clang version 1.1 (trunk 97498)
Target: x86_64-segfault-freebsd8.0
Thread model: posix
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Mar 1 15:22:17 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 15:22:17 -0600 (CST)
Subject: [LLVMbugs] [Bug 4946] tblgen generating insane function in cellspu
dag isel
In-Reply-To:
References:
Message-ID: <20100301212217.D41AA2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=4946
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #10 from Chris Lattner 2010-03-01 15:22:17 CST ---
Fixed by the new isel, 2.7 won't have this problem.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Mar 1 15:25:00 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 15:25:00 -0600 (CST)
Subject: [LLVMbugs] [Bug 5424] Sink SelectAddr into Emit_* functions
In-Reply-To:
References:
Message-ID: <20100301212500.E72BA2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5424
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #4 from Chris Lattner 2010-03-01 15:25:00 CST ---
The new isel doesn't have this code at all: problem defined away.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Mar 1 15:26:00 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 15:26:00 -0600 (CST)
Subject: [LLVMbugs] [Bug 5708] X86ISelDAGToDAG.ii is very to slow compile
with llvm-g++
In-Reply-To:
References:
Message-ID: <20100301212600.230782A6C130@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5708
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Chris Lattner 2010-03-01 15:25:59 CST ---
Fixed:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100301/097068.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 Mon Mar 1 15:38:04 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 15:38:04 -0600 (CST)
Subject: [LLVMbugs] [Bug 1401] Targets should model flags explicitly
In-Reply-To:
References:
Message-ID: <20100301213804.4C05E2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=1401
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Chris Lattner 2010-03-01 15:38:03 CST ---
I don't see a point of keeping this bug around anymore.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Mar 1 15:39:26 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 15:39:26 -0600 (CST)
Subject: [LLVMbugs] [Bug 3624] Tablegen incorrectly transoforming a pattern
In-Reply-To:
References:
Message-ID: <20100301213926.97C512A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=3624
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |INVALID
--- Comment #6 from Chris Lattner 2010-03-01 15:39:26 CST ---
The relevant code is not used in mainline anymore, welcome to the brave new
isel world. :)
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 15:41:29 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 15:41:29 -0600 (CST)
Subject: [LLVMbugs] [Bug 6456] clang -fsyntax-only fails on something g++
accepts [4]
In-Reply-To:
References:
Message-ID: <20100301214129.8219D2A6C133@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6456
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Douglas Gregor 2010-03-01 15:41:29 CST ---
Clang is doing the right thing here; the "inline" is spurious.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 15:41:53 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 15:41:53 -0600 (CST)
Subject: [LLVMbugs] [Bug 5993] infinite loop in backend on scheduling
mem-to-mem
In-Reply-To:
References:
Message-ID: <20100301214153.91C932A6C131@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5993
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #8 from Chris Lattner 2010-03-01 15:41:53 CST ---
The new isel shouldn't make cyclic dags for stuff like this.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Mar 1 16:09:46 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 16:09:46 -0600 (CST)
Subject: [LLVMbugs] [Bug 2590] TableGen generates different output on
different platforms
In-Reply-To:
References:
Message-ID: <20100301220946.3FD882A6C135@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=2590
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #8 from Chris Lattner 2010-03-01 16:09:45 CST ---
Fixed:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100301/097095.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 Mon Mar 1 16:07:08 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 16:07:08 -0600 (CST)
Subject: [LLVMbugs] [Bug 1401] Targets should model flags explicitly
In-Reply-To:
References:
Message-ID: <20100301220708.F2AD72A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=1401
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |gohman at apple.com
Resolution|FIXED |
--- Comment #6 from Dan Gohman 2010-03-01 16:07:08 CST ---
MVT::Flag is over-conservative. It's still desirable to replace it with more
precise physreg modeling.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 17:15:37 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 17:15:37 -0600 (CST)
Subject: [LLVMbugs] [Bug 6382] use of undeclared label
In-Reply-To:
References:
Message-ID: <20100301231537.622C62A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6382
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2010-03-01 17:15:37 CST ---
Fixed in r97518.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 17:32:57 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 17:32:57 -0600 (CST)
Subject: [LLVMbugs] [Bug 4885] Warnings from compiling llvm with icc
In-Reply-To:
References:
Message-ID: <20100301233257.896F32A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=4885
Erick Tryzelaar changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #17 from Erick Tryzelaar 2010-03-01 17:32:56 CST ---
It's been a while since I tried to compile llvm with icc, and it turns out that
it rebroke. I'll close this and file some new bugs.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Mar 1 17:49:45 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 17:49:45 -0600 (CST)
Subject: [LLVMbugs] [Bug 6376] Assertion failed: ((Result ||
isa(D)) && "Unable to find instantiation of declaration!"),
function FindInstantiatedDecl, file SemaTemplateInstantiateDecl.cpp,
line 2306.
In-Reply-To:
References:
Message-ID: <20100301234945.E2E9F2A6C131@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6376
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #9 from Douglas Gregor 2010-03-01 17:49:45 CST ---
Nice bug. Fixed again in r97524.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 19:00:44 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 19:00:44 -0600 (CST)
Subject: [LLVMbugs] [Bug 4791] PassMananger can't use alternate
AliasAnalysis with GVN
In-Reply-To:
References:
Message-ID: <20100302010044.A0F6F2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=4791
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|DUPLICATE |
--- Comment #2 from Dan Gohman 2010-03-01 19:00:44 CST ---
With 3323 being associated with -anders-aa, this bug is no longer a duplicate.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 19:13:15 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 19:13:15 -0600 (CST)
Subject: [LLVMbugs] [Bug 6457] New: Clang fails to model explicitly created
temporaries correctly
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6457
Summary: Clang fails to model explicitly created temporaries
correctly
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chandlerc at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
The summary is based on the discussion with John and Doug about the cause of a
rather mysterious diagnostic for entirely valid C++ code. Here is the test case
chandlerc at osiris build % cat t.cc
template struct X { explicit X(T* p = 0) { }; };
template struct Y { Y(int, const T& x); };
struct A { };
template
struct B {
B() : y(0, X()) { }
Y > y;
};
B b;
chandlerc at osiris build % ./bin/clang -fsyntax-only t.cc
t.cc:6:9: error: no matching constructor for initialization of 'Y
>'
B() : y(0, X()) { }
^
t.cc:9:8: note: in instantiation of member function 'B::B' requested here
B b;
^
t.cc:2:34: note: candidate constructor not viable: no known conversion from
'struct A *' to 'struct X const' for 2nd argument
template struct Y { Y(int, const T& x); };
^
t.cc:2:30: note: candidate constructor (the implicit copy constructor) not
viable: requires 1 argument, but 2 were provided
template struct Y { Y(int, const T& x); };
^
4 diagnostics generated.
After some digging and discussion, the root cause of the problem is that we are
somehow no longer building CXXTemporaryObjectExpr objects to represent explict
calls to constructors, and instead are building a CXXConstructCall, which as
Doug said, should actually be called CXXImplicitConstructCall or some such. In
fact, we never construct CXXTemporaryObjectExprs any more, probably a bad sign.
;]
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 19:18:55 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 19:18:55 -0600 (CST)
Subject: [LLVMbugs] [Bug 1754] Bunch of small memory leaks in LLVM
In-Reply-To:
References:
Message-ID: <20100302011855.9490C2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=1754
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |gohman at apple.com
Resolution| |FIXED
--- Comment #3 from Dan Gohman 2010-03-01 19:18:54 CST ---
The problems have been fixed; llc is now valgrind-clean on the testcase.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Mar 1 19:30:19 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 19:30:19 -0600 (CST)
Subject: [LLVMbugs] [Bug 6383] use of undeclared identifier
In-Reply-To:
References:
Message-ID: <20100302013019.16D122A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6383
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2010-03-01 19:30:18 CST ---
Fixed in r97534.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 19:36:39 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 19:36:39 -0600 (CST)
Subject: [LLVMbugs] [Bug 5812] clang fails to find dependent base class when
it's referenced via Derived::
In-Reply-To:
References:
Message-ID: <20100302013639.B30112A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5812
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #1 from Douglas Gregor 2010-03-01 19:36:39 CST ---
This is working as of r97535.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 20:00:02 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 20:00:02 -0600 (CST)
Subject: [LLVMbugs] [Bug 6453] LSR produces invalid IR
In-Reply-To:
References:
Message-ID: <20100302020002.8C6882A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6453
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Dan Gohman 2010-03-01 20:00:02 CST ---
Fixed in r97537.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 20:16:54 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 20:16:54 -0600 (CST)
Subject: [LLVMbugs] [Bug 6438] many functions that call
SelectionDAG::ComputeMaskedBits are broken with respect to vectors
In-Reply-To:
References:
Message-ID: <20100302021654.EA9EB2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6438
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Dan Gohman 2010-03-01 20:16:54 CST ---
Patch applied to trunk in 97538.
In the future, please send "diff -u" patches, such as those produced by svn
diff or diff -u. Thanks!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Mar 1 20:19:20 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 20:19:20 -0600 (CST)
Subject: [LLVMbugs] [Bug 6334] x86 cannot select sign_extend_inreg on vector
types
In-Reply-To:
References:
Message-ID: <20100302021920.66F2D2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6334
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |gohman at apple.com
Resolution| |WORKSFORME
--- Comment #1 from Dan Gohman 2010-03-01 20:19:20 CST ---
The testcase works for me, x86 and x86-64, with and without -disable-mmx.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 1 21:36:09 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 21:36:09 -0600 (CST)
Subject: [LLVMbugs] [Bug 4380] __builtin_object_size
In-Reply-To:
References:
Message-ID: <20100302033609.8E3412A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=4380
Eric Christopher changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #10 from Eric Christopher 2010-03-01 21:36:09 CST ---
Fixed now.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Mar 1 23:07:27 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 23:07:27 -0600 (CST)
Subject: [LLVMbugs] [Bug 6388] AC_HUGE_VAL_CHECK overwrite CXXFLAGS
In-Reply-To:
References:
Message-ID: <20100302050727.A197B2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6388
Eric Christopher changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Eric Christopher 2010-03-01 23:07:27 CST ---
Applied thusly:
[ghostwheel:~/sources/llvm] echristo% svn ci configure autoconf/m4/huge_val.m4
Sending autoconf/m4/huge_val.m4
Sending configure
Transmitting file data ..
Committed revision 97548.
Thanks!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Mar 1 23:17:48 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 1 Mar 2010 23:17:48 -0600 (CST)
Subject: [LLVMbugs] [Bug 6267] Documentation path is weird
In-Reply-To:
References:
Message-ID: <20100302051748.69C2D2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6267
Eric Christopher changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #5 from Eric Christopher 2010-03-01 23:17:48 CST ---
Fixed with this commit:
[ghostwheel:~/sources/llvm] echristo% svn ci configure autoconf/configure.ac
Sending autoconf/configure.ac
Sending configure
Transmitting file data ..
Committed revision 97549.
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 Mar 2 00:27:07 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 00:27:07 -0600 (CST)
Subject: [LLVMbugs] [Bug 5309] incorrect __SOFTFP__ breaks build on ARM
In-Reply-To:
References:
Message-ID: <20100302062707.8971C2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5309
Eric Christopher changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Mar 2 03:47:06 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 03:47:06 -0600 (CST)
Subject: [LLVMbugs] [Bug 6458] New: clang++ emits T while g++ emits U symbol
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6458
Summary: clang++ emits T while g++ emits U symbol
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
pes delta$ clang++ -c locale-inst.cc && nm locale-inst.o | grep _M_compare
.... warnings ....
4 diagnostics generated.
0000000000000000 T _ZNKSt7collateIcE10_M_compareEPKcS2_
pes delta$ g++ -c locale-inst.cc && nm locale-inst.o | grep _M_compare
U _ZNKSt7collateIcE10_M_compareEPKcS2_
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 2 06:25:45 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 06:25:45 -0600 (CST)
Subject: [LLVMbugs] [Bug 5309] incorrect __SOFTFP__ breaks build on ARM
In-Reply-To:
References:
Message-ID: <20100302122545.474462A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5309
Xerxes R?nby changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |xerxes at zafena.se
Resolution|FIXED |
--- Comment #3 from Xerxes R?nby 2010-03-02 06:25:44 CST ---
this change broke the armv5tejl (softfloat) buildbot
http://llvm.org/viewvc/llvm-project/?view=rev&revision=97554
can we redesign this to work with SOFTFP machines as well?
llvm[3]: Compiling ARMJITInfo.cpp for Debug build
/tmp/ccA22Bpb.s: Assembler messages:
/tmp/ccA22Bpb.s:26: Error: selected processor does not support `fstmfdd
sp!,{d0,d1,d2,d3,d4,d5,d6,d7}'
/tmp/ccA22Bpb.s:31: Error: selected processor does not support `fldmfdd
sp!,{d0,d1,d2,d3,d4,d5,d6,d7}'
make[3]: ***
[/wd/buildbot/llvm-arm-linux/llvm/lib/Target/ARM/Debug/ARMJITInfo.o] Error 1
make[3]: Leaving directory `/wd/buildbot/llvm-arm-linux/llvm/lib/Target/ARM'
make[2]: *** [ARM/.makeall] Error 2
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Mar 2 07:28:41 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 07:28:41 -0600 (CST)
Subject: [LLVMbugs] [Bug 5309] incorrect __SOFTFP__ breaks build on ARM
In-Reply-To:
References:
Message-ID: <20100302132841.D50FA2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5309
Xerxes R?nby changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #5 from Xerxes R?nby 2010-03-02 07:28:41 CST ---
Fix pushed hopefully this resolves all VFP and SOFTFP variants.
http://llvm.org/viewvc/llvm-project?view=rev&revision=97564
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 2 09:25:25 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 09:25:25 -0600 (CST)
Subject: [LLVMbugs] [Bug 6459] New: Assertion failed:
(DD->getOperatorDelete() && "operator delete missing - EmitDtorEpilogue"),
function EmitDtorEpilogue, file CGClass.cpp, line 1116.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6459
Summary: Assertion failed: (DD->getOperatorDelete() &&
"operator delete missing - EmitDtorEpilogue"),
function EmitDtorEpilogue, file CGClass.cpp, line
1116.
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ich at az2000.de
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
[ 28%] Building CXX object CMakeFiles/openlierox.dir/src/common/CWorm.o
Assertion failed: (DD->getOperatorDelete() && "operator delete missing -
EmitDtorEpilogue"), function EmitDtorEpilogue, file CGClass.cpp, line 1116.
0 clang 0x00edd1a0 main + 15560074
1 clang 0x00edd60a main + 15561204
2 libSystem.B.dylib 0x954282bb _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp + 1790803311
4 libSystem.B.dylib 0x9549c23a raise + 26
5 libSystem.B.dylib 0x954a8679 abort + 73
6 libSystem.B.dylib 0x9549d3db __assert_rtn + 101
7 clang 0x0013ffa6 main + 1285008
8 clang 0x0014096c main + 1287510
9 clang 0x001f35e4 main + 2019790
10 clang 0x00134bf7 main + 1239009
11 clang 0x001fbc7e main + 2054248
12 clang 0x001fbdd4 main + 2054590
13 clang 0x001fc02c main + 2055190
14 clang 0x002133a6 main + 2150288
15 clang 0x0001f3fc main + 102374
16 clang 0x00220154 main + 2202942
17 clang 0x0003f784 main + 234350
18 clang 0x0003f674 main + 234078
19 clang 0x00020f3b main + 109349
20 clang 0x00002a14 _mh_execute_header + 6676
21 clang 0x000064ff main + 233
22 clang 0x00001936 _mh_execute_header + 2358
23 clang 0x00000033 _mh_execute_header + 18446744073709547571
Stack dump:
0. Program arguments:
/Users/az/Programmierung/CppIDE/llvm-src/Debug/bin/clang -cc1 -triple
i386-apple-darwin9.0.0 -S -disable-free -main-file-name CWorm.cpp -pic-level 1
-mdisable-fp-elim -target-cpu yonah -g -resource-dir
/Users/az/Programmierung/CppIDE/llvm-src/Debug/lib/clang/1.1 -DDEBUG=1
-D_AI_DEBUG -D SYSTEM_DATA_DIR="/usr/share/games"
-I/Users/az/Programmierung/openlierox/./optional-includes/generated
-I/Users/az/Programmierung/openlierox/./include
-I/Users/az/Programmierung/openlierox/./src
-I/Users/az/Programmierung/openlierox/./libs/pstreams -I/usr/include/libxml2
-I/usr/local/include/libxml2
-I/Users/az/Programmierung/openlierox/./libs/breakpad/src
-I/Users/az/Programmierung/openlierox/./libs/hawknl/include
-I/Users/az/Programmierung/openlierox/./libs/libzip
-I/Users/az/Programmierung/openlierox/./libs/lua
-I/Users/az/Programmierung/openlierox/./build/Xcode/include
-I/Users/az/Programmierung/openlierox/./build/Xcode/freealut/include
-I/Library/Frameworks/SDL.framework/Headers
-I/Library/Frameworks/SDL_image.framework/Headers
-I/Library/Frameworks/SDL_mixer.framework/Headers
-I/Library/Frameworks/UnixImageIO.framework/Headers
-I/Library/Frameworks/GD.framework/Headers -F ./build/Xcode
-F/Library/Frameworks -Wall -fmessage-length 84 -pthread -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/P9/P9wWY+Z8HDeOPixVmDZ0J++++TI/-Tmp-/cc-mmfFCw.s -x c++
/Users/az/Programmierung/openlierox/src/common/CWorm.cpp
1. parser at end of file
2. Per-file LLVM IR generation
3. /Users/az/Programmierung/openlierox/src/common/CWorm.cpp:42:15:
Generating code for declaration 'CWorm::SkinDynDrawer::~SkinDynDrawer'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
make[2]: *** [CMakeFiles/openlierox.dir/src/common/CWorm.o] Error 250
make[1]: *** [CMakeFiles/openlierox.dir/all] Error 2
make: *** [all] Error 2
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Mar 2 09:49:36 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 09:49:36 -0600 (CST)
Subject: [LLVMbugs] [Bug 6460] New: Codegen aborts
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6460
Summary: Codegen aborts
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
./llvm-build/Debug/bin/clang -cc1 -S test.ii
clang:
/usr/local/google/home/espindola/llvm/llvm/include/llvm/Support/Casting.h:200:
typename llvm::cast_retty::ret_type llvm::cast(const Y&) [with X =
clang::VarDecl, Y = const clang::NamedDecl*]: Assertion `isa(Val) &&
"cast() argument of incompatible type!"' failed.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Mar 2 10:47:24 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 10:47:24 -0600 (CST)
Subject: [LLVMbugs] [Bug 6461] New: wrong error: functions that differ only
in their return type cannot be overloaded
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6461
Summary: wrong error: functions that differ only in their
return type cannot be overloaded
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ich at az2000.de
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
In file included from
/Users/az/Programmierung/openlierox/src/common/Process.cpp:83:
/Users/az/Programmierung/openlierox/./libs/pstreams/pstream.h:1742:28: error:
functions that differ only in their return type cannot be overloaded
basic_pstreambuf::wpipe()
^
/Users/az/Programmierung/openlierox/./libs/pstreams/pstream.h:221:7: note:
previous
declaration is here
wpipe();
^
The bug is, that the first occurance is only the declaration and the second one
the definition of the declaration.
The code seems correct and valid to me. Also, all versions of GCC I have tried
so far (I think GCC 3.4, several 4.*) accept this code.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Mar 2 10:53:12 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 10:53:12 -0600 (CST)
Subject: [LLVMbugs] [Bug 6462] New: wrong(?) error: member 'rdbuf' found in
multiple base classes of different types
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6462
Summary: wrong(?) error: member 'rdbuf' found in multiple base
classes of different types
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ich at az2000.de
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
/Users/az/Programmierung/openlierox/src/common/Process.cpp:96:9: error: member
'rdbuf' found in multiple base classes of different types
if(p->rdbuf()) p->rdbuf()->kill();
^
In file included from
/Users/az/Programmierung/openlierox/src/common/Process.cpp:11:
In file included from
/Users/az/Programmierung/openlierox/./include/Process.h:13:
In file included from /usr/include/c++/4.0.0/iostream:43:
In file included from /usr/include/c++/4.0.0/ostream:43:
In file included from /usr/include/c++/4.0.0/ios:49:
/usr/include/c++/4.0.0/bits/basic_ios.h:306:7: note: member found by ambiguous
name
lookup
rdbuf() const
^
In file included from
/Users/az/Programmierung/openlierox/src/common/Process.cpp:83:
/Users/az/Programmierung/openlierox/./libs/pstreams/pstream.h:315:7: note:
member
found by ambiguous name lookup
rdbuf() const;
^
I am not exactly sure about this. Maybe the clang error is valid.
The point is that all GCC versions I have tried so far accept it. And I think
ICC 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 Mar 2 10:55:30 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 10:55:30 -0600 (CST)
Subject: [LLVMbugs] [Bug 1675] instcombine neg(zext(bool)) to sext(bool)
In-Reply-To:
References:
Message-ID: <20100302165530.93A822A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=1675
Alastair Lynn changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |arplynn at gmail.com
Resolution| |FIXED
--- Comment #3 from Alastair Lynn 2010-03-02 10:55:30 CST ---
All of these transformations are now done apart from
select bool X, -1, 0 -> sext from bool
where the reverse is done.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 2 11:03:19 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 11:03:19 -0600 (CST)
Subject: [LLVMbugs] [Bug 6463] New: crash in clang::Type::getTypeClass()
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6463
Summary: crash in clang::Type::getTypeClass()
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ich at az2000.de
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Process: clang [94528]
Path: /Users/az/Programmierung/CppIDE/llvm-src/Debug/bin/clang
Identifier: clang
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: clang++ [94527]
Interval Since Last Report: 5899 sec
Crashes Since Last Report: 2
Per-App Interval Since Last Report: 0 sec
Per-App Crashes Since Last Report: 2
Date/Time: 2010-03-02 18:02:27.652 +0100
OS Version: Mac OS X 10.5.8 (9L30)
Report Version: 6
Anonymous UUID: C99325D9-953E-44CB-A0FE-88CB8BF0B517
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000008
Crashed Thread: 0
Application Specific Information:
Stack dump:
0. Program arguments:
/Users/az/Programmierung/CppIDE/llvm-src/Debug/bin/clang -cc1 -triple
i386-apple-darwin9.0.0 -S -disable-free -main-file-name test.cpp -pic-level 1
-mdisable-fp-elim -target-cpu yonah -resource-dir
/Users/az/Programmierung/CppIDE/llvm-src/Debug/lib/clang/1.1 -fmessage-length
84 -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/P9/P9wWY+Z8HDeOPixVmDZ0J++++TI/-Tmp-/cc-iGRXbn.s -x c++ test.cpp
1. test.cpp:8:32: current parser token '{'
Thread 0 Crashed:
0 clang 0x0005f7ed clang::Type::getTypeClass()
const + 9
1 clang 0x0009f99d
clang::TypeLoc::getTypeLocClass() const + 77
2 clang 0x0058183e
clang::TypeLocVisitor<(anonymous namespace)::NextLoc,
clang::TypeLoc>::Visit(clang::TypeLoc) + 24
3 clang 0x0057d3f5
clang::TypeLoc::getNextTypeLocImpl(clang::TypeLoc) + 31
4 clang 0x004e610a
clang::TypeLoc::getNextTypeLoc() const + 26
5 clang 0x0035257e
clang::TypeLocBuilder::pushImpl(clang::QualType, unsigned long) + 50
6 clang 0x00358409 clang::TypenameTypeLoc
clang::TypeLocBuilder::push(clang::QualType) + 79
7 clang 0x0035141d (anonymous
namespace)::CurrentInstantiationRebuilder::TransformTypenameType(clang::TypeLocBuilder&,
clang::TypenameTypeLoc, clang::QualType) + 727
8 clang 0x0035af56
clang::TreeTransform<(anonymous
namespace)::CurrentInstantiationRebuilder>::TransformType(clang::TypeLocBuilder&,
clang::TypeLoc, clang::QualType) + 2248
9 clang 0x0035b0ad
clang::TreeTransform<(anonymous
namespace)::CurrentInstantiationRebuilder>::TransformType(clang::TypeSourceInfo*,
clang::QualType) + 161
10 clang 0x0035b1b0
clang::TreeTransform<(anonymous
namespace)::CurrentInstantiationRebuilder>::TransformType(clang::QualType,
clang::QualType) + 178
11 clang 0x0035113d
clang::Sema::RebuildTypeInCurrentInstantiation(clang::QualType,
clang::SourceLocation, clang::DeclarationName) + 141
12 clang 0x0026d48a
clang::Sema::HandleDeclarator(clang::Scope*, clang::Declarator&,
clang::ASTMultiPtr<&(clang::ActionBase::DeleteTemplateParams(void*))>, bool) +
696
13 clang 0x00347455
clang::Sema::ActOnStartOfFunctionTemplateDef(clang::Scope*,
clang::ASTMultiPtr<&(clang::ActionBase::DeleteTemplateParams(void*))>,
clang::Declarator&) + 307
14 clang 0x005d5f03
clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&) + 773 (Parser.cpp:674)
15 clang 0x005ce67f
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&, clang::SourceLocation&,
clang::AccessSpecifier) + 1273 (ParseTemplate.cpp:256)
16 clang 0x005cf415
clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier) + 1009 (ParseTemplate.cpp:155)
17 clang 0x005cf500
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier) + 178 (ParseTemplate.cpp:32)
18 clang 0x005992d8
clang::Parser::ParseDeclaration(unsigned int, clang::SourceLocation&,
clang::CXX0XAttributeList) + 330
19 clang 0x005d5281
clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList) + 2067
(Parser.cpp:478)
20 clang 0x005d54b6
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 296 (Parser.cpp:368)
21 clang 0x00220082
clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&,
bool, bool, clang::CodeCompleteConsumer*) + 426
22 clang 0x0003f784
clang::ASTFrontendAction::ExecuteAction() + 266
23 clang 0x0003f674
clang::FrontendAction::Execute() + 260
24 clang 0x00020f3b
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 851
25 clang 0x00002a14 cc1_main(char const**, char
const**, char const*, void*) + 1292
26 clang 0x000064ff main + 233 (driver.cpp:179)
27 clang 0x00001936 start + 54
Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x00000000 ebx: 0x00581832 ecx: 0xbfffd42f edx: 0x00000000
edi: 0x00347322 esi: 0x03839e98 ebp: 0xbfffd398 esp: 0xbfffd390
ss: 0x0000001f efl: 0x00010286 eip: 0x0005f7ed cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
cr2: 0x00000008
Binary Images:
0x1000 - 0x10acfdb +clang ??? (???)
/Users/az/Programmierung/CppIDE/llvm-src/Debug/bin/clang
0x8fe00000 - 0x8fe2db43 dyld 97.1 (???) <458eed38a009e5658a79579e7bc26603>
/usr/lib/dyld
0x90dcc000 - 0x90dd0fff libmathCommon.A.dylib ??? (???)
/usr/lib/system/libmathCommon.A.dylib
0x9250c000 - 0x92569ffb libstdc++.6.dylib ??? (???)
<04b812dcec670daa8b7d2852ab14be60> /usr/lib/libstdc++.6.dylib
0x953bb000 - 0x95522ff3 libSystem.B.dylib ??? (???)
/usr/lib/libSystem.B.dylib
0x959c5000 - 0x959ccfe9 libgcc_s.1.dylib ??? (???)
/usr/lib/libgcc_s.1.dylib
0xffff0000 - 0xffff1780 libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 2 11:19:51 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 11:19:51 -0600 (CST)
Subject: [LLVMbugs] [Bug 6457] Clang fails to model explicitly created
temporaries correctly
In-Reply-To:
References:
Message-ID: <20100302171951.4C4852A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6457
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Douglas Gregor 2010-03-02 11:19:50 CST ---
Fixed in r97568.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 2 11:22:31 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 11:22:31 -0600 (CST)
Subject: [LLVMbugs] [Bug 6459] Assertion failed: (DD->getOperatorDelete() &&
"operator delete missing - EmitDtorEpilogue"), function EmitDtorEpilogue,
file CGClass.cpp, line 1116.
In-Reply-To:
References:
Message-ID: <20100302172231.15E6A2A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6459
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #4 from Douglas Gregor 2010-03-02 11:22:30 CST ---
*** This bug has been marked as a duplicate of bug 6294 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 2 11:32:10 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 11:32:10 -0600 (CST)
Subject: [LLVMbugs] [Bug 4398] passManager should always call releaseMemory
to avoid use-after-free bugs
In-Reply-To:
References:
Message-ID: <20100302173210.5B0042A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=4398
T?r?k Edwin changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from T?r?k Edwin 2010-03-02 11:32:09 CST ---
(In reply to comment #5)
> The patch is applied, right? Is this bug fixed?
I should've closed the bug after applying the patch, thanks for reminding.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 2 11:53:43 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 11:53:43 -0600 (CST)
Subject: [LLVMbugs] [Bug 5786] Assertion failed: (!E->isValueDependent() &&
"Should not see value dependent exprs!")
In-Reply-To:
References:
Message-ID: <20100302175343.16F742A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5786
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2010-03-02 11:53:42 CST ---
Fixed in r97570
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 2 12:26:57 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 12:26:57 -0600 (CST)
Subject: [LLVMbugs] [Bug 6311] clang++ -fsyntax-only crash
In-Reply-To:
References:
Message-ID: <20100302182657.5CFD12A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6311
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #2 from Douglas Gregor 2010-03-02 12:26:56 CST ---
We fixed problems in this area a week or two ago; this is no longer crashing.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Mar 2 12:30:48 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 12:30:48 -0600 (CST)
Subject: [LLVMbugs] [Bug 6430] Ran out of registers during register
allocation for vfwprintf
In-Reply-To:
References:
Message-ID: <20100302183048.43E9F2A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6430
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #1 from Jakob Stoklund Olesen 2010-03-02 12:30:47 CST ---
I cannot reproduce with TOT. Please verify, or provide the failing command.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 2 12:33:40 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 12:33:40 -0600 (CST)
Subject: [LLVMbugs] [Bug 6260] -regalloc=linearscan -O0 crash - assertion
"Ran out of registers during register allocation!"
In-Reply-To:
References:
Message-ID: <20100302183340.03CB22A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6260
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #4 from Jakob Stoklund Olesen 2010-03-02 12:33:39 CST ---
This no longer reproduces on TOT. Please verify.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 2 12:49:45 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 12:49:45 -0600 (CST)
Subject: [LLVMbugs] [Bug 6064] Assertion failure synthesizing an implicitly
defined copy constructor
In-Reply-To:
References:
Message-ID: <20100302184945.055A42A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6064
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #1 from Douglas Gregor 2010-03-02 12:49:44 CST ---
This seems to be fixed now.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Mar 2 12:53:15 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 12:53:15 -0600 (CST)
Subject: [LLVMbugs] [Bug 6350] Compiler assert on valid code
In-Reply-To:
References:
Message-ID: <20100302185315.472A42A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6350
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Douglas Gregor 2010-03-02 12:53:14 CST ---
This is the same assertion as 6100 on very, very similar code.
*** This bug has been marked as a duplicate of bug 6100 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 2 13:07:38 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 13:07:38 -0600 (CST)
Subject: [LLVMbugs] [Bug 6430] Ran out of registers during register
allocation for vfwprintf
In-Reply-To:
References:
Message-ID: <20100302190738.21CE52A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6430
Sergey Yakoushkin changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WORKSFORME |
--- Comment #2 from Sergey Yakoushkin 2010-03-02 13:07:37 CST ---
llc ./bugpoint-reduced-simplified.bc -relocation-model=pic
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 2 13:12:19 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 13:12:19 -0600 (CST)
Subject: [LLVMbugs] [Bug 6464] New: Assertion failed: (D->isOutOfLine())
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6464
Summary: Assertion failed: (D->isOutOfLine())
Product: clang
Version: trunk
Platform: Other
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P5
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: hinokind at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4362)
--> (http://llvm.org/bugs/attachment.cgi?id=4362)
testcase
$ cat assert12.cc
template class foo {}
bool foo::bar( a )
$ clang assert12.cc
assert12.cc:1:32: error: expected ';' after class
template class foo {}
^
;
assert12.cc:2:10: error: use of undeclared identifier 'X'
bool foo::bar( a )
^
assert12.cc:2:14: error: definition or redeclaration of 'bar' cannot name the
global scope
bool foo::bar( a )
~~^
assert12.cc:2:14: error: no member named 'bar' in the global namespace
bool foo::bar( a )
~~^
Assertion failed: (D->isOutOfLine()), function ActOnCXXEnterDeclInitializer,
file SemaDeclCXX.cpp, line 5743.
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-segfault-freebsd8.0 -S -disable-free -main-file-name assert12.cc
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.1
-fmessage-length 157 -fexceptions -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-eEcJ7Z.s -x c++ assert12.cc
1. assert12.cc:2:19: current parser token 'a'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
$ clang --version
clang version 1.1 (trunk 97574)
Target: x86_64-segfault-freebsd8.0
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 Mar 2 13:15:09 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 13:15:09 -0600 (CST)
Subject: [LLVMbugs] [Bug 6301] template instantiation limit too low?
In-Reply-To:
References:
Message-ID: <20100302191509.C92D82A6C130@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6301
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2010-03-02 13:15:09 CST ---
GCC uses a default template depth of 500. I've changed Clang to do the same in
r97579.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 2 13:25:12 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 13:25:12 -0600 (CST)
Subject: [LLVMbugs] [Bug 6465] New: DAGCombiner/SelectionDAG are not safe
when using vectors
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6465
Summary: DAGCombiner/SelectionDAG are not safe when using
vectors
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: micah.villmow at amd.com
CC: llvmbugs at cs.uiuc.edu
Akin to Bugs 6438/6335 there is a mismatch when passing in arguments to certain
functions that expect the bitsize between the scalar components to be
equivalent. However the calling function passes in the bitsize of the vector
instead of the scalartype.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 2 14:36:46 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 14:36:46 -0600 (CST)
Subject: [LLVMbugs] [Bug 6466] New: Assertion failed:
(BaseType->isPointerType())
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6466
Summary: Assertion failed: (BaseType->isPointerType())
Product: clang
Version: trunk
Platform: Other
OS/Version: FreeBSD
Status: NEW
Keywords: crash-on-invalid
Severity: normal
Priority: P5
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: hinokind at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4364)
--> (http://llvm.org/bugs/attachment.cgi?id=4364)
testcase
$ clang assert13.cc
<...>
Assertion failed: (BaseType->isPointerType()), function
BuildMemberReferenceExpr, file SemaExpr.cpp, line 2544.
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-segfault-freebsd8.0 -S -disable-free -main-file-name assert13.cc
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.1
-fmessage-length 157 -fexceptions -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-0JIKY1.s -x c++ assert13.cc
1. parser at end of file
2. assert13.cc:66:18: instantiating function definition
'MinimalModeMultiParadigm::HashAndTreeMaps::ProtoMap::relate'
3. assert13.cc:55:18: instantiating function definition
'MinimalModeMultiParadigm::HashAndTreeMaps::dynamicset
>::operator[]'
4. assert13.cc:31:17: instantiating function definition
'MinimalModeMultiParadigm::HashAndTreeMaps::Tree,
Handle>::member'
5. assert13.cc:35:22: instantiating function definition
'MinimalModeMultiParadigm::HashAndTreeMaps::Tree,
Handle>::splay'
6. assert13.cc:47:22: instantiating function definition
'MinimalModeMultiParadigm::HashAndTreeMaps::Node >::splay'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
$ clang --version
clang version 1.1 (trunk 97574)
Target: x86_64-segfault-freebsd8.0
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 Mar 2 14:40:38 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 14:40:38 -0600 (CST)
Subject: [LLVMbugs] [Bug 6467] New: JIT lazy compilation causes invalid value
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6467
Summary: JIT lazy compilation causes invalid value
Product: libraries
Version: 2.6
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P5
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: senorblanco at chromium.org
CC: llvmbugs at cs.uiuc.edu
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Mar 2 15:42:32 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 15:42:32 -0600 (CST)
Subject: [LLVMbugs] [Bug 6353] clang emits U symbol while gcc emits W one
In-Reply-To:
References:
Message-ID: <20100302214232.556622A6C130@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6353
Rafael ?vila de Esp?ndola changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #29 from Rafael ?vila de Esp?ndola 2010-03-02 15:42:32 CST ---
Trying again...
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Mar 2 16:00:51 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 16:00:51 -0600 (CST)
Subject: [LLVMbugs] [Bug 6468] New: 97592: -fblocks codegen with template
reference arg crash
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6468
Summary: 97592: -fblocks codegen with template reference arg
crash
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: major
Priority: P5
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: raila at illinois.edu
CC: llvmbugs at cs.uiuc.edu
The following snippet crashes with arg type template reference, but works
without arg type template reference:
#include
#include
template
class range {
public:
T _i;
range(T i) {_i = i;};
T get() {return _i;};
};
int main() {
// works
void (^bl)(range ) = ^(range i){printf("Hello Blocks %d\n",
i.get()); };
//crashes in godegen?
void (^bl2)(range& ) = ^(range& i){printf("Hello Blocks
%d\n", i.get()); };
return 0;
}
Here is the backtrace:
clang: ASTContext.cpp:3805: void
clang::ASTContext::getObjCEncodingForTypeImpl(clang::QualType, std::string&,
bool, bool, const clang::FieldDecl*, bool, bool): Assertion `0 && "@encode for
type not implemented!"' failed.
Program received signal SIGABRT, Aborted.
0x00000039410326c5 in raise () from /lib64/libc.so.6
(gdb) bt
#0 0x00000039410326c5 in raise () from /lib64/libc.so.6
#1 0x0000003941033ea5 in abort () from /lib64/libc.so.6
#2 0x000000394102b7b5 in __assert_fail () from /lib64/libc.so.6
#3 0x0000000000931aec in clang::ASTContext::getObjCEncodingForTypeImpl
(this=0x20fc3a0, T=..., S="v16@?0", ExpandPointedToStructures=true,
ExpandStructures=true, FD=0x0, OutermostType=true, EncodingProperty=false)
at ASTContext.cpp:3805
#4 0x000000000093059f in clang::ASTContext::getObjCEncodingForType
(this=0x20fc3a0, T=..., S="v16@?0", Field=0x0) at ASTContext.cpp:3510
#5 0x000000000092fb73 in clang::ASTContext::getObjCEncodingForBlock
(this=0x20fc3a0, Expr=0x218ee50, S="v16@?0") at ASTContext.cpp:3314
#6 0x0000000000661939 in
clang::CodeGen::CodeGenFunction::BuildDescriptorBlockDecl (this=0x7fffffffb4f0,
BE=0x218ee50,
BlockHasCopyDispose=false, Size=..., Ty=0x0, NoteForHelper=0x0) at
CGBlocks.cpp:57
#7 0x00000000006621b2 in clang::CodeGen::CodeGenFunction::BuildBlockLiteralTmp
(this=0x7fffffffb4f0, BE=0x218ee50) at CGBlocks.cpp:199
#8 0x00000000005edce6 in (anonymous
namespace)::ScalarExprEmitter::VisitBlockExpr (this=0x7fffffffa460,
BE=0x218ee50)
at CGExprScalar.cpp:1841
#9 0x00000000005ef0f8 in clang::StmtVisitor<::ScalarExprEmitter,
llvm::Value*>::Visit(clang::Stmt *) (this=0x7fffffffa460,
S=0x218ee50) at
/home/raila/dpc++/clang/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/StmtNodes.def:152
#10 0x00000000005edd47 in clang::CodeGen::CodeGenFunction::EmitScalarExpr
(this=0x7fffffffb4f0, E=0x218ee50, IgnoreResultAssign=false)
at CGExprScalar.cpp:1855
#11 0x00000000005b350d in
clang::CodeGen::CodeGenFunction::EmitLocalBlockVarDecl (this=0x7fffffffb4f0,
D=...) at CGDecl.cpp:527
#12 0x00000000005b14c7 in clang::CodeGen::CodeGenFunction::EmitBlockVarDecl
(this=0x7fffffffb4f0, D=...) at CGDecl.cpp:78
#13 0x00000000005b13be in clang::CodeGen::CodeGenFunction::EmitDecl
(this=0x7fffffffb4f0, D=...) at CGDecl.cpp:55
#14 0x000000000062d69b in clang::CodeGen::CodeGenFunction::EmitDeclStmt
(this=0x7fffffffb4f0, S=...) at CGStmt.cpp:632
#15 0x000000000062bd0a in clang::CodeGen::CodeGenFunction::EmitSimpleStmt
(this=0x7fffffffb4f0, S=0x218ee80) at CGStmt.cpp:129
#16 0x000000000062b8b8 in clang::CodeGen::CodeGenFunction::EmitStmt
(this=0x7fffffffb4f0, S=0x218ee80) at CGStmt.cpp:43
#17 0x000000000062bf2d in clang::CodeGen::CodeGenFunction::EmitCompoundStmt
(this=0x7fffffffb4f0, S=..., GetLast=false, AggLoc=0x0,
isAggVol=false) at CGStmt.cpp:160
#18 0x000000000062bce7 in clang::CodeGen::CodeGenFunction::EmitSimpleStmt
(this=0x7fffffffb4f0, S=0x218ef00) at CGStmt.cpp:128
#19 0x000000000062b8b8 in clang::CodeGen::CodeGenFunction::EmitStmt
(this=0x7fffffffb4f0, S=0x218ef00) at CGStmt.cpp:43
#20 0x000000000065b9c9 in clang::CodeGen::CodeGenFunction::EmitFunctionBody
(this=0x7fffffffb4f0, Args=...) at CodeGenFunction.cpp:252
#21 0x000000000065c05c in clang::CodeGen::CodeGenFunction::GenerateCode
(this=0x7fffffffb4f0, GD=..., Fn=0x2146fa0)
at CodeGenFunction.cpp:314
#22 0x000000000055ad86 in
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition (this=0x21194b0,
GD=...) at CodeGenModule.cpp:1259
#23 0x0000000000558fb5 in clang::CodeGen::CodeGenModule::EmitGlobalDefinition
(this=0x21194b0, GD=...) at CodeGenModule.cpp:690
#24 0x0000000000558d30 in clang::CodeGen::CodeGenModule::EmitGlobal
(this=0x21194b0, GD=...) at CodeGenModule.cpp:661
#25 0x000000000055c901 in clang::CodeGen::CodeGenModule::EmitTopLevelDecl
(this=0x21194b0, D=0x218bc30) at CodeGenModule.cpp:1704
#26 0x0000000000555e0d in (anonymous
namespace)::CodeGeneratorImpl::HandleTopLevelDecl (this=0x20fe450, DG=...) at
ModuleBuilder.cpp:65
#27 0x0000000000418a1e in (anonymous
namespace)::BackendConsumer::HandleTopLevelDecl (this=0x21052d0, D=...) at
CodeGenAction.cpp:142
#28 0x0000000000672ee3 in clang::ParseAST (PP=..., Consumer=0x21052d0, Ctx=...,
PrintStats=false, CompleteTranslationUnit=true,
CompletionConsumer=0x0) at ParseAST.cpp:72
#29 0x0000000000433d92 in clang::ASTFrontendAction::ExecuteAction
(this=0x20eefa0) at FrontendAction.cpp:219
#30 0x0000000000433a20 in clang::FrontendAction::Execute (this=0x20eefa0) at
FrontendAction.cpp:149
#31 0x000000000041e0bc in clang::CompilerInstance::ExecuteAction
(this=0x7fffffffd7e0, Act=...) at CompilerInstance.cpp:509
#32 0x0000000000408446 in cc1_main (ArgBegin=0x7fffffffe0e8,
ArgEnd=0x7fffffffe1d0,
Argv0=0x7fffffffe45c "/home/raila/dpc++/clang/llvm/Debug/bin/clang",
MainAddr=0x40c0dc) at cc1_main.cpp:268
#33 0x000000000040cfbe in main (argc=31, argv=0x7fffffffe0d8) at driver.cpp:179
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 2 16:32:59 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 16:32:59 -0600 (CST)
Subject: [LLVMbugs] [Bug 6469] New: llvm-as asserts on invalid IR involving
trailing comma with a misleading message
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6469
Summary: llvm-as asserts on invalid IR involving trailing comma
with a misleading message
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: matti.niemenmaa+llvmbugs at iki.fi
CC: llvmbugs at cs.uiuc.edu
The invalid IR below causes llvm-as from trunkish (r97475) to assert with the
following message:
While deleting: i32 %x
Use still stuck around after Def is destroyed: = add i32 %x, %x
; [#uses=0]
Use still stuck around after Def is destroyed: = add i32 %x, %x
; [#uses=0]
llvm-as: src/llvm/trunk/lib/VMCore/Value.cpp:75: virtual llvm::Value::~Value():
Assertion `use_empty() && "Uses remain when a value is destroyed!"' failed.
Stack dump:
0. Program arguments: llvm-as
0
define void @f() {
%x = add i32 undef, undef
%y = add i32 %x, %x,
ret void
}
The problem is obviously the trailing comma on the %y line.
Appending an extraneous comma to other kinds of instructions will cause the
same assertion to fire. The following causes it to print just "llvm-as:" before
exiting:
define void @f() {
%x = load i32* undef,
ret void
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Mar 2 16:42:44 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 16:42:44 -0600 (CST)
Subject: [LLVMbugs] [Bug 6470] New: Assertion failed: (false && "Ran out of
registers during register allocation!")
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6470
Summary: Assertion failed: (false && "Ran out of registers
during register allocation!")
Product: libraries
Version: trunk
Platform: Other
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P5
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: hinokind at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4367)
--> (http://llvm.org/bugs/attachment.cgi?id=4367)
testcase
i386-only, -O1 and above
$ cat assert14.c
int main() {
static char foo[2][8];
char *x=&foo[0][0];
char *y=&foo[1][0];
asm volatile(
"add %1, %%""esi"" \n\t"
:
: "g" (x), "g" (y)
: "%""eax", "%""ecx", "%""edx", "%""esi", "%""edi"
);
}
$ clang -m32 -O1 assert14.c
Assertion failed: (false && "Ran out of registers during register
allocation!"), function assignRegOrStackSlotAtInterval, file
RegAllocLinearScan.cpp, line 1179.
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
i386-segfault-freebsd8.0 -S -disable-free -main-file-name assert14.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu
pentium4 -resource-dir /usr/local/lib/clang/1.1 -O1 -fmessage-length 157
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-ZQW8dV.s
-x c assert14.c
1. parser at end of file
2. Code generation
3. Running pass 'Linear Scan Register Allocator' on function '@main'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
$ clang --version
clang version 1.1 (trunk 97589)
Target: x86_64-segfault-freebsd8.0
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 Mar 2 16:46:48 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 16:46:48 -0600 (CST)
Subject: [LLVMbugs] [Bug 6471] New: Missing destructor definition prevents
bootstrap on ELF systems
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6471
Summary: Missing destructor definition prevents bootstrap on
ELF systems
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
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 Instructions.ii with clang it is missing a strong definition of
the destructor
_ZN4llvm16UnaryInstructionD2Ev
This prevents bootstrapping clang on ELF systems.
I have delta running and will add a testcase shortly.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Mar 2 16:48:37 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 16:48:37 -0600 (CST)
Subject: [LLVMbugs] [Bug 6472] New: clang segfault
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6472
Summary: clang segfault
Product: clang
Version: trunk
Platform: Other
OS/Version: FreeBSD
Status: NEW
Keywords: crash-on-invalid
Severity: normal
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: hinokind at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4368)
--> (http://llvm.org/bugs/attachment.cgi?id=4368)
testcase
$ cat segv3.cc
class { friend class foo::bar;
$ clang segv3.cc
segv3.cc:1:22: error: use of undeclared identifier 'foo'
class { friend class foo::bar;
^
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-segfault-freebsd8.0 -S -disable-free -main-file-name segv3.cc
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.1
-fmessage-length 157 -fexceptions -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-uguqgU.s -x c++ segv3.cc
1. segv3.cc:1:30: current parser token ';'
2. segv3.cc:1:1: parsing struct/union/class body
clang: error: compiler command failed due to signal 11 (use -v to see
invocation)
$ clang --version
clang version 1.1 (trunk 97589)
Target: x86_64-segfault-freebsd8.0
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 Mar 2 17:51:28 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 17:51:28 -0600 (CST)
Subject: [LLVMbugs] [Bug 6473] New: __attribute__ weakref broken
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6473
Summary: __attribute__ weakref broken
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sorokin at rain.ifmo.ru
CC: llvmbugs at cs.uiuc.edu
ivan at ivan-desktop:~/d/llvm-build/Debug/bin$ g++ 3.cpp
ivan at ivan-desktop:~/d/llvm-build/Debug/bin$ ./clang++ 3.cpp
/tmp/cc-Ex8nJJ.o:(.gnu.linkonce.r._ZZ18__gthread_active_pvE20__gthread_active_ptr+0x0):
undefined reference to `pthread_cancel'
collect2: ld returned 1 exit status
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Mar 2 21:40:46 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 21:40:46 -0600 (CST)
Subject: [LLVMbugs] [Bug 6471] Missing destructor definition prevents
bootstrap on ELF systems
In-Reply-To:
References:
Message-ID: <20100303034046.39D4F2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6471
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from John McCall 2010-03-02 21:40:45 CST ---
This is a general bug in the derived-to-base destructor alias optimization.
We're doing the optimization even when we only have a declaration of the target
destructor in this translation unit ? which is to say, we're emitting an alias
to an unresolved symbol, which isn't representable in any object file format I
know of. Apparently the symptom is that alias just gets dropped at some point.
Fixed in r97637.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 2 22:39:03 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 22:39:03 -0600 (CST)
Subject: [LLVMbugs] [Bug 6462] wrong(?) error: member 'rdbuf' found in
multiple base classes of different types
In-Reply-To:
References:
Message-ID: <20100303043903.A48332A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6462
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Douglas Gregor 2010-03-02 22:39:03 CST ---
Fixed in r97640.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 2 23:43:11 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 2 Mar 2010 23:43:11 -0600 (CST)
Subject: [LLVMbugs] [Bug 4953] Integrate calling convention into Clang
function types
In-Reply-To:
References:
Message-ID: <20100303054311.032BC2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=4953
Charles Davis changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
CC| |cdavis at mymail.mines.edu
Resolution| |FIXED
--- Comment #7 from Charles Davis 2010-03-02 23:43:10 CST ---
Bug should be fixed now.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Mar 3 02:42:37 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 02:42:37 -0600 (CST)
Subject: [LLVMbugs] [Bug 6426] Structure layout is not correct in big endian.
In-Reply-To:
References:
Message-ID: <20100303084237.DC7692A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6426
hwalin changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #6 from hwalin 2010-03-03 02:42:36 CST ---
This is an invalid bug caused by incorrect LowerCall function.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 3 02:58:45 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 02:58:45 -0600 (CST)
Subject: [LLVMbugs] [Bug 6474] New: clang -fsyntax-only fails on something
g++ accepts [3]
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6474
Summary: clang -fsyntax-only fails on something g++ accepts [3]
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
pes delta$ g++ -fsyntax-only globals_io.cc && echo success
success
pes delta$ clang++ -fsyntax-only globals_io.cc && echo success
globals_io.cc:24:8: warning: control reaches end of non-void function
[-Wreturn-type]
}
^
globals_io.cc:25:80: error: explicit specialization of 'xsputn' after
instantiation
template<> inline std::streamsize
stdio_sync_filebuf::xsputn(const wchar_t* __s, ...
^
globals_io.cc:23:80: note: implicit instantiation first required here
template<> inline std::streamsize
stdio_sync_filebuf::xsgetn(wchar_t* __s, ...
^
3 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 Wed Mar 3 04:22:16 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 04:22:16 -0600 (CST)
Subject: [LLVMbugs] [Bug 6475] New: Inline asm bug with
atomic_exchange_and_add
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6475
Summary: Inline asm bug with atomic_exchange_and_add
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: gonsolo at gmail.com
CC: llvmbugs at cs.uiuc.edu
Clang fails to compile the following reduce testcase:
inline int atomic_exchange_and_add( int * pw, int dv )
{
int r;
__asm__ __volatile__
(
"lock\n\t"
"xadd %1, %0":
"=m"( *pw ), "=r"( r ):
"m"( *pw ), "1"( dv ):
"memory", "cc"
);
return r;
}
void release() {
int use_count_;
if( atomic_exchange_and_add( &use_count_, -1 ) == 1 ) { }
}
with the following error:
Stack dump:
0. Program arguments: /home/gonzo/bin/clang -cc1 -triple i386-pc-linux-gnu
-S -disable-free -disable-llvm-verifier -main-file-name bla3.cc
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu
pentium4 -resource-dir /home/gonzo/lib/clang/1.1 -fmessage-length 177
-fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/cc-zTnd86.s -x c++ bla3.cc
1. parser at end of file
2. Code generation
3. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_Z23atomic_exchange_and_addPii'
clang: error: compiler command failed due to signal 11 (use -v to see
invocation)
This is clang version 02ebc and llvm version eb6e04 on Ubuntu 9.10.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Mar 3 05:52:42 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 05:52:42 -0600 (CST)
Subject: [LLVMbugs] [Bug 6476] New: ARM JIT hits UNREACHABLE using
-mattr=+v6t2 and -mattr=+v7a
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6476
Summary: ARM JIT hits UNREACHABLE using -mattr=+v6t2 and
-mattr=+v7a
Product: libraries
Version: trunk
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: xerxes at zafena.se
CC: llvmbugs at cs.uiuc.edu
Expected output when runing lli on hello.ll (here using -mattr=+v6)
xerxes at xerxes:/sd/llvm-configure/test/ExecutionEngine/Output$ lli -mattr=+v6 <
hello.ll.tmp.bc Hello World
Actual output using -mattr=+v6t2
xerxes at xerxes:/sd/llvm-configure/test/ExecutionEngine/Output$ lli -mattr=+v6t2
< hello.ll.tmp.bc
ARMCodeEmitter::emitPseudoInstruction
UNREACHABLE executed at /media/disk/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:554!
0 libLLVM-2.7svn.so 0x408bf75c
Stack dump:
0. Program arguments: lli -mattr=+v6t2
1. Running pass 'ARM Machine Code Emitter' on function '@main'
Aborted
The same happens using -mattr=+v7a
xerxes at xerxes:/sd/llvm-configure/test/ExecutionEngine/Output$ lli -mcpu=generic
-mattr=+v7a < hello.ll.tmp.bc
ARMCodeEmitter::emitPseudoInstruction
UNREACHABLE executed at /media/disk/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:554!
0 libLLVM-2.7svn.so 0x408bf75c
Stack dump:
0. Program arguments: lli -mcpu=generic -mattr=+v7a
1. Running pass 'ARM Machine Code Emitter' 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 Wed Mar 3 05:59:33 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 05:59:33 -0600 (CST)
Subject: [LLVMbugs] [Bug 6476] ARM JIT hits UNREACHABLE using -mattr=+v6t2
and -mattr=+v7a
In-Reply-To:
References:
Message-ID: <20100303115933.14BDD2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6476
Xerxes R?nby changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Xerxes R?nby 2010-03-03 05:59:32 CST ---
*** This bug has been marked as a duplicate of bug 6265 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 3 08:46:12 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 08:46:12 -0600 (CST)
Subject: [LLVMbugs] [Bug 6477] New: Goto over object definition causes build
error
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6477
Summary: Goto over object definition causes build error
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jpakkane at gmail.com
CC: llvmbugs at cs.uiuc.edu
When you compile the attached file with clang++, it gives this error:
gototest.cxx:5:5: error: illegal goto into protected scope
goto ED_END;
^
gototest.cxx:6:18: note: jump bypasses variable initialization
std::fstream f;
If you comment out line 6, everything works.
This is a regression, as svn checkout from a couple of days ago worked just
fine. The same code compiles on g++ and MSVC without errors.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Mar 3 08:53:04 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 08:53:04 -0600 (CST)
Subject: [LLVMbugs] [Bug 6478] New: ARM CodeGen Running pass 'Prolog/Epilog
Insertion & Frame Finalization' on function '@"java.lang.String::getChars"'
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6478
Summary: ARM CodeGen Running pass 'Prolog/Epilog Insertion &
Frame Finalization' on function
'@"java.lang.String::getChars"'
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: xerxes at zafena.se
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4375)
--> (http://llvm.org/bugs/attachment.cgi?id=4375)
Testcase java.lang.String::getChars.ll
The attached testcase triggers this bug using LLVM IR produced using OpenJDK
Shark JIT when compiling java.lang.String::getChars
xerxes at xerxes-J464X:~$ llvm-as < java.lang.String::getChars.ll | llc -march=arm
.syntax unified
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.file ""
llc: /home/xerxes/llvm/include/llvm/CodeGen/MachineFrameInfo.h:289: int64_t
llvm::MachineFrameInfo::getObjectOffset(int) const: Assertion
`!isDeadObjectIndex(ObjectIdx) && "Getting frame offset for a dead object?"'
failed.
0 libLLVM-2.7svn.so 0x01cb5e96
1 libLLVM-2.7svn.so 0x01cb5d0b
2 libpthread.so.0 0x004ee2b8
3 libc.so.6 0x0074fa42 abort + 386
4 libc.so.6 0x00745748 __assert_fail + 248
5 libLLVM-2.7svn.so 0x013a70aa llvm::MachineFrameInfo::getStackSize() const +
0
6 libLLVM-2.7svn.so 0x014c8b91
llvm::ARMBaseRegisterInfo::emitPrologue(llvm::MachineFunction&) const + 1415
7 libLLVM-2.7svn.so 0x016f9d78
llvm::PEI::insertPrologEpilogCode(llvm::MachineFunction&) + 70
8 libLLVM-2.7svn.so 0x016f8043
llvm::PEI::runOnMachineFunction(llvm::MachineFunction&) + 427
9 libLLVM-2.7svn.so 0x016b8cdb
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 87
10 libLLVM-2.7svn.so 0x01864115
llvm::FPPassManager::runOnFunction(llvm::Function&) + 301
11 libLLVM-2.7svn.so 0x01863e54
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 90
12 libLLVM-2.7svn.so 0x01863af6 llvm::FunctionPassManager::run(llvm::Function&)
+ 140
13 llc 0x080590bb main + 3024
14 libc.so.6 0x00738bd6 __libc_start_main + 230
15 llc 0x08057bb1
Stack dump:
0. Program arguments: llc -march=arm
1. Running pass 'Prolog/Epilog Insertion & Frame Finalization' on function
'@"java.lang.String::getChars"'
Avbruten (SIGABRT) (minnesutskrift skapad)
This are a regression since LLVM 2.6
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Mar 3 09:25:14 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 09:25:14 -0600 (CST)
Subject: [LLVMbugs] [Bug 6479] New: zero extending i1 to i32 on x86
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6479
Summary: zero extending i1 to i32 on x86
Product: new-bugs
Version: 2.6
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: enhancement
Priority: P5
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: pete.cooper at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4377)
--> (http://llvm.org/bugs/attachment.cgi?id=4377)
intermediate test file
This curently generates a redundant zero extension as
movzbl %al, %eax
andl $1, %eax
which can just be
andl $1, %eax
I've written a new pattern for X86InstrInfo.td which removes the unused mov but
i wasn't sure where in that file to put it so i'm not attaching it as a patch
def : Pat<(i32 (and (i32 (anyext GR8 :$src)), (i32 1))),
(AND32ri (SUBREG_TO_REG (i32 0), GR8:$src, x86_subreg_8bit), 1)>;
Can someone please verify if i've done the right thing here. I get the right
result which is always a good start. Also, i've only seen this case (mask with
1) be output, but would it be better to match any constant in the 1-255 range
here, and if it is worth it, could someone please tell me how that would be
written.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 3 09:29:11 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 09:29:11 -0600 (CST)
Subject: [LLVMbugs] [Bug 6480] New: ARM Codegen asserts Running pass
'Control Flow Optimizer' on function '@"java.lang.String::getChars"'
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6480
Summary: ARM Codegen asserts Running pass 'Control Flow
Optimizer' on function '@"java.lang.String::getChars"'
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: xerxes at zafena.se
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4378)
--> (http://llvm.org/bugs/attachment.cgi?id=4378)
bugpoint-reduced-simplified.bc
the reduced bugpoint-reduced-simplified.bc from PR6478
hits a new bug so im filing a new bugreport.
Testcase
xerxes at xerxes-J464X:~$ llc < bugpoint-reduced-simplified.bc -march=arm
.syntax unified
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.file ""
llc: /home/xerxes/llvm/lib/CodeGen/RegisterScavenging.cpp:193: void
llvm::RegScavenger::forward(): Assertion `SubUsed && "Using an undefined
register!"' failed.
0 libLLVM-2.7svn.so 0x01893e96
1 libLLVM-2.7svn.so 0x01893d0b
2 libpthread.so.0 0x003142b8
3 libc.so.6 0x00181a42 abort + 386
4 libc.so.6 0x00177748 __assert_fail + 248
5 libLLVM-2.7svn.so 0x01305741 llvm::RegScavenger::forward() + 1181
6 libLLVM-2.7svn.so 0x010fca19
llvm::RegScavenger::forward(llvm::ilist_iterator) + 105
7 libLLVM-2.7svn.so 0x0121bcf4
llvm::BranchFolder::SplitMBBAt(llvm::MachineBasicBlock&,
llvm::ilist_iterator) + 358
8 libLLVM-2.7svn.so 0x0121cb16
llvm::BranchFolder::CreateCommonTailOnlyBlock(llvm::MachineBasicBlock*&,
unsigned int) + 488
9 libLLVM-2.7svn.so 0x0121d152
llvm::BranchFolder::TryTailMergeBlocks(llvm::MachineBasicBlock*,
llvm::MachineBasicBlock*) + 1468
10 libLLVM-2.7svn.so 0x0121d566
llvm::BranchFolder::TailMergeBlocks(llvm::MachineFunction&) + 428
11 libLLVM-2.7svn.so 0x0121b254
llvm::BranchFolder::OptimizeFunction(llvm::MachineFunction&,
llvm::TargetInstrInfo const*, llvm::TargetRegisterInfo const*,
llvm::MachineModuleInfo*) + 650
12 libLLVM-2.7svn.so 0x0121a982
13 libLLVM-2.7svn.so 0x01296cdb
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 87
14 libLLVM-2.7svn.so 0x01442115
llvm::FPPassManager::runOnFunction(llvm::Function&) + 301
15 libLLVM-2.7svn.so 0x01441e54
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 90
16 libLLVM-2.7svn.so 0x01441af6 llvm::FunctionPassManager::run(llvm::Function&)
+ 140
17 llc 0x080590bb main + 3024
18 libc.so.6 0x0016abd6 __libc_start_main + 230
19 llc 0x08057bb1
Stack dump:
0. Program arguments: llc -march=arm
1. Running pass 'Control Flow Optimizer' on function
'@"java.lang.String::getChars"'
Avbruten (SIGABRT) (minnesutskrift skapad)
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 3 11:02:00 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 11:02:00 -0600 (CST)
Subject: [LLVMbugs] [Bug 6481] New: instcombine incorrectly generates undefs
with icmp
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6481
Summary: instcombine incorrectly generates undefs with icmp
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: arplynn at gmail.com
CC: llvmbugs at cs.uiuc.edu
Take the example of:
define i1 @cond() nounwind readnone {
entry:
%cmp = icmp slt i8 undef, -128
ret i1 %cmp
}
instcombine turns this into ret i1 undef. This is not valid: there is no i8
value for which the condition is true.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Mar 3 11:38:03 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 11:38:03 -0600 (CST)
Subject: [LLVMbugs] [Bug 6482] New: llvm-link asserts with "Type mismatch in
constant table!" depending on linking order
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6482
Summary: llvm-link asserts with "Type mismatch in constant
table!" depending on linking order
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: major
Priority: P5
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: matti.niemenmaa+llvmbugs at iki.fi
CC: llvmbugs at cs.uiuc.edu
The attached two bitcode files are both individually fine, but llvm-link from
trunk (r97652) asserts if one links them in the order 'one.bc' 'two.bc':
$ llvm-link one.bc two.bc >/dev/null
llvm-link: src/llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp:203:
llvm::Constant* llvm::BitcodeReaderValueList::getConstantFwdRef(unsigned int,
const llvm::Type*): Assertion `Ty == V->getType() && "Type mismatch in constant
table!"' failed.
Stack dump:
0. Program arguments: llvm-link one.bc two.bc
Doing it in the other order is fine though:
$ llvm-link two.bc one.bc | llvm-dis | wc -l
1267
llvm-link from LLVM 2.6 copes fine regardless of the order, but it does produce
different output for the two cases. (Not necessarily unexpected?)
I think that this is the same problem that is preventing me from bugpointing a
misoptimization: bugpoint dies in the same way when it starts splitting the
testcase.
Using the 'delta' tool for several CPU-hours I managed to bring 'two.bc' down
from over a megabyte to the current 43K, but it's still a bit big; I hope it's
not so big as to make finding the problem unduly difficult.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 3 11:51:10 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 11:51:10 -0600 (CST)
Subject: [LLVMbugs] [Bug 6483] New: Assertion failure (Expected a direct
reference binding!) with boost
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6483
Summary: Assertion failure (Expected a direct reference
binding!) with boost
Product: clang
Version: trunk
Platform: Other
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: whitehorn at wisc.edu
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4381)
--> (http://llvm.org/bugs/attachment.cgi?id=4381)
Test case
When building headers similar to the attached reduced test case, I get an
assertion failure inside clang:
[nwhitehorn at comporellon /usr/home/nwhitehorn]$ clang++ test.cpp
Assertion failed: (ICS->UserDefined.After.ReferenceBinding &&
ICS->UserDefined.After.DirectBinding && "Expected a direct reference
binding!"), function CheckReferenceInit, file
/home/nwhitehorn/llvm/llvm-src/tools/clang/lib/Sema/SemaDeclCXX.cpp, line 4550.
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-freebsd9.0 -S -disable-free -main-file-name test.cpp
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.1
-fmessage-length 78 -fexceptions -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-4u7iDn.s -x c++ test.cpp
1. parser at end of file
2. test.cpp:35:7: instantiating function definition
'boost::archive::portable_binary_oarchive_impl
>::portable_binary_oarchive_impl'
3. /usr/local/include/boost/archive/basic_binary_oarchive.hpp:124:5:
instantiating function definition 'boost::archive::basic_binary_oarchive::basic_binary_oarchive'
4. /usr/local/include/boost/archive/detail/common_oarchive.hpp:66:5:
instantiating function definition
'boost::archive::detail::common_oarchive::common_oarchive'
5. /usr/local/include/boost/archive/detail/common_oarchive.hpp:34:18:
instantiating function definition
'boost::archive::detail::common_oarchive::vsave'
6. /usr/local/include/boost/archive/detail/interface_oarchive.hpp:63:15:
instantiating function definition
'boost::archive::detail::interface_oarchive::operator<<'
clang: error: compiler command failed due to signal 6 (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 Mar 3 13:17:49 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 13:17:49 -0600 (CST)
Subject: [LLVMbugs] [Bug 6477] Goto over object definition causes build error
In-Reply-To:
References:
Message-ID: <20100303191749.BFEFE2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6477
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Chris Lattner 2010-03-03 13:17:49 CST ---
I'm not sure what you mean, this is definitely invalid C++ code and gcc 4.2
rejects it:
$ gcc gototest.cxx
gototest.cxx: In function ?int main(int, char**)?:
gototest.cxx:8: error: jump to label ?ED_END?
gototest.cxx:5: error: from here
gototest.cxx:6: error: crosses initialization of ?std::fstream f?
We recently started enforcing this requirement.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 3 13:46:36 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 13:46:36 -0600 (CST)
Subject: [LLVMbugs] [Bug 6481] instcombine incorrectly generates undefs with
icmp
In-Reply-To:
References:
Message-ID: <20100303194636.ECE392A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6481
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Chris Lattner 2010-03-03 13:46:36 CST ---
You're right, fixed in r97659
Thanks!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Mar 3 14:16:18 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 14:16:18 -0600 (CST)
Subject: [LLVMbugs] [Bug 6444] Alpha Backend fails to compile _floatdisf
with internal compiler error.
In-Reply-To:
References:
Message-ID: <20100303201618.06FD72A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6444
Andrew Lenharth changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Mar 3 15:53:04 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 15:53:04 -0600 (CST)
Subject: [LLVMbugs] [Bug 6475] Inline asm bug with atomic_exchange_and_add
In-Reply-To:
References:
Message-ID: <20100303215304.C5D972A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6475
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #14 from Chris Lattner 2010-03-03 15:53:04 CST ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20100301/028107.html
thanks!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Mar 3 15:54:42 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 15:54:42 -0600 (CST)
Subject: [LLVMbugs] [Bug 6484] New: Improve diagnostic when there is an
extraneous '}'
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6484
Summary: Improve diagnostic when there is an extraneous '}'
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Keywords: quality-of-implementation
Severity: enhancement
Priority: P5
Component: parser
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dgregor at apple.com
CC: llvmbugs at cs.uiuc.edu
terfin:clang dgregor$ cat t2.c
void foo() { }
}
terfin:clang dgregor$ clang t2.c
t2.c:2:1: error: expected external declaration
}
^
1 diagnostic generated.
We can do better, with something like "extraneous closing brace ('}') at the
top level".
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 3 16:55:31 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 16:55:31 -0600 (CST)
Subject: [LLVMbugs] [Bug 5820] clang can't disambiguate calls to method in
base class in diamond-shaped heirarchy, even though the call is qualified
In-Reply-To:
References:
Message-ID: <20100303225531.3A5052A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5820
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Douglas Gregor 2010-03-03 16:55:30 CST ---
Implemented in r97674.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 3 16:57:36 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 16:57:36 -0600 (CST)
Subject: [LLVMbugs] [Bug 6458] clang++ emits T while g++ emits U symbol
In-Reply-To:
References:
Message-ID: <20100303225736.5EEED2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6458
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Mar 3 17:01:53 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 17:01:53 -0600 (CST)
Subject: [LLVMbugs] [Bug 6485] New: Diagnostic for using non-POD type with
va_start needs improvement
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6485
Summary: Diagnostic for using non-POD type with va_start needs
improvement
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: trivial
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rideau3 at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
coppro at overthere:~$ clang -x c++ -
#include
struct foo { virtual void bar(); };
void baz (foo f, ...) {
va_list v;
va_start(v, f);
}
// END OF TESTCASE
:7:3: error: cannot pass object of non-POD type 'struct foo' through
variadic function; call will abort at runtime [-Wnon-pod-varargs]
va_start(v, f);
^
:7:15: note: instantiated from:
va_start(v, f);
^
1 diagnostic generated.
// END OF OUTPUT
GCC does not issue a diagnostic here, however, it is good that clang do so
([support.runtime]/3). The diagnostic could bear improvement, however - prehaps
to something along the lines of "cannot use va_start on a parameter of non-POD
type 'struct foo'".
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Mar 3 18:24:29 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 18:24:29 -0600 (CST)
Subject: [LLVMbugs] [Bug 6465] DAGCombiner/SelectionDAG are not safe when
using vectors
In-Reply-To:
References:
Message-ID: <20100304002429.686EA2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6465
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |gohman at apple.com
Resolution| |FIXED
--- Comment #2 from Dan Gohman 2010-03-03 18:24:29 CST ---
The DAGCombiner.cpp part looks fine; I committed that in r97692. The
SelectionDAG.cpp part does not look right. There had been some confusion about
this in the tree, but now the type operand to vector SIGN_EXTEND_INREG is also
vector.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 3 22:00:04 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 22:00:04 -0600 (CST)
Subject: [LLVMbugs] [Bug 6486] New: likely integer wrong code bug
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6486
Summary: likely integer wrong code bug
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu
The -O1 result looks wrong. Seen using r97717.
regehr at john-home:~/volatile/bugs/tmp272$ clang -O0 small.c -o small -w
regehr at john-home:~/volatile/bugs/tmp272$ ./small
1
regehr at john-home:~/volatile/bugs/tmp272$ clang -O1 small.c -o small -w
regehr at john-home:~/volatile/bugs/tmp272$ ./small
0
regehr at john-home:~/volatile/bugs/tmp272$ cat small.c
#include
int g_43 = 0;
int *g_92[2];
int **const g_177 = &g_92[1];
static int func_55 (void)
{
g_43 = 1;
return 1;
}
int main(void)
{
(0 <= (0 != g_177)) && func_55();
printf ("%d\n", g_43);
return 0;
}
regehr at john-home:~/volatile/bugs/tmp272$ clang -v
clang version 1.1 (trunk)
Target: i386-pc-linux-gnu
Thread model: posix
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Mar 3 22:11:29 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 22:11:29 -0600 (CST)
Subject: [LLVMbugs] [Bug 6487] New: ice: Cannot create empty or backwards
range
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6487
Summary: ice: Cannot create empty or backwards range
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
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
Seen on Ubuntu 9.10 on x64 using clang r97662.
[regehr at gamow tmp273]$ clang -O2 small.c
clang:
/tmp/z/compiler-build/llvm-r97662/include/llvm/CodeGen/LiveInterval.h:231:
llvm::LiveRange::LiveRange(llvm::SlotIndex, llvm::SlotIndex, llvm::VNInfo*):
Assertion `S < E && "Cannot create empty or backwards range"' failed.
0 clang 0x000000000117320f
1 clang 0x00000000011739fd
2 libpthread.so.0 0x00007f11e745e190
3 libc.so.6 0x00007f11e67644b5 gsignal + 53
4 libc.so.6 0x00007f11e6767f50 abort + 384
5 libc.so.6 0x00007f11e675d481 __assert_fail + 241
6 clang 0x0000000000e5263f
7 clang 0x0000000000e4db7b
8 clang 0x0000000000e4fa69
9 clang 0x0000000000e5036f
10 clang 0x0000000000e50e8e
11 clang 0x0000000000e51d6c
12 clang 0x00000000010fd596
13 clang 0x00000000010fd771
14 clang 0x00000000010fd99e
15 clang 0x0000000000413436
16 clang 0x0000000000413a75
17 clang 0x00000000005f8544
18 clang 0x0000000000416c09
19 clang 0x00000000004095ce
20 clang 0x000000000040c36b main + 1771
21 libc.so.6 0x00007f11e674fabd __libc_start_main + 253
22 clang 0x0000000000407149
Stack dump:
0. Program arguments:
/tmp/z/compiler-install/llvm-gcc-r97662-install/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name small.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir
/tmp/z/compiler-install/llvm-gcc-r97662-install/lib/clang/1.1 -O2
-fmessage-length 85 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics
-o /tmp/cc-IZAtF0.s -x c small.c
1. parser at end of file
2. Code generation
3. Running pass 'Simple Register Coalescing' on function '@int325'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
[regehr at gamow tmp273]$ cat small.c
static unsigned char
foo (unsigned char ui1, unsigned char ui2)
{
return ui2 == 0 ? : (ui1 % ui2);
}
static unsigned bar (unsigned ui1, unsigned ui2)
{
return ui2 ? ui1 : (ui1 / ui2);
}
int safe (int);
short g_5;
short *g_37 = &g_5;
void int325 (int * p_66)
{
short l_71 = 7L;
if (*p_66 & safe (foo (bar (l_71, *g_37), l_71)), 1)
{
}
}
[regehr at gamow tmp273]$ clang -v
clang version 1.1 (trunk)
Target: x86_64-unknown-linux-gnu
Thread model: posix
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Mar 3 22:24:46 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 22:24:46 -0600 (CST)
Subject: [LLVMbugs] [Bug 6488] New: request for a bit more verbosity from
"clang -v"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6488
Summary: request for a bit more verbosity from "clang -v"
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu
As a bug reporter it would make my life easier (and hopefully yours!) if "clang
-v" reported:
- svn rev
- a flag indicating if there are local modifications
- configure options (or at least indicating Debug vs Release)
Thanks.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Mar 3 22:35:21 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 3 Mar 2010 22:35:21 -0600 (CST)
Subject: [LLVMbugs] [Bug 6489] New: ice: Cannot find live range
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6489
Summary: ice: Cannot find live range
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu
Seen with clang r97662 on x64 Linux.
[regehr at gamow tmp274]$ clang -O small.c -c
clang: SimpleRegisterCoalescing.cpp:2315: bool
llvm::SimpleRegisterCoalescing::JoinIntervals(llvm::LiveInterval&,
llvm::LiveInterval&, bool&): Assertion `lr && "Cannot find live range"' failed.
0 clang 0x000000000117320f
1 clang 0x00000000011739fd
2 libpthread.so.0 0x00007f2c03fe0190
3 libc.so.6 0x00007f2c032e64b5 gsignal + 53
4 libc.so.6 0x00007f2c032e9f50 abort + 384
5 libc.so.6 0x00007f2c032df481 __assert_fail + 241
6 clang 0x0000000000e4b97c
7 clang 0x0000000000e4eacd
8 clang 0x0000000000e5036f
9 clang 0x0000000000e50e8e
10 clang 0x0000000000e51d6c
11 clang 0x00000000010fd596
12 clang 0x00000000010fd771
13 clang 0x00000000010fd99e
14 clang 0x0000000000413436
15 clang 0x0000000000413a75
16 clang 0x00000000005f8544
17 clang 0x0000000000416c09
18 clang 0x00000000004095ce
19 clang 0x000000000040c36b main + 1771
20 libc.so.6 0x00007f2c032d1abd __libc_start_main + 253
21 clang 0x0000000000407149
Stack dump:
0. Program arguments:
/tmp/z/compiler-install/llvm-gcc-r97662-install/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name small.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir
/tmp/z/compiler-install/llvm-gcc-r97662-install/lib/clang/1.1 -O2
-fmessage-length 85 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics
-o /tmp/cc-T2FARQ.s -x c small.c
1. parser at end of file
2. Code generation
3. Running pass 'Simple Register Coalescing' on function '@func_56'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
[regehr at gamow tmp274]$ cat small.c
int qux (int, int);
static short
foo (short left, unsigned int right)
{
return 0;
}
static unsigned char
bar (unsigned char ui1, unsigned char ui2)
{
return (ui2 == 0) ? ((ui1)) : (ui1 / ui2);
}
static unsigned
baz (unsigned ui1, unsigned ui2)
{
return (ui2 == 0) ? ((ui1)) : (ui1 % ui2);
}
struct S0
{
};
int g_4[4][5];
int g_44 = 0xC733F7CFL;
int *g_87 = 0;
int **g_86 = (&g_87);
int ***g_85[1];
int *volatile g_116 = (&g_4[0][1]);
unsigned g_124 = -9L;
int g_140 = 6L;
struct S0 g_158[8] = {
};
struct S0 *g_160 = (&g_158[2]);
short g_306 = 0xFF2FL;
unsigned char g_312 = 1L;
const int func_35 (int ***p_36, unsigned p_37, int p_38, int p_39,
unsigned p_40);
void
func_56 (long p_57, int ***p_58)
{
signed char l_299 = 0xF5L;
const int *l_303 = (&g_4[0][1]);
const int **l_302 = (&l_303);
const int ***l_301[10][3];
int ***l_304[10];
int ***l_305[5];
unsigned l_307 = -3L;
int l_308[3];
int l_309 = -2L;
unsigned short l_310 = 0x04DFL;
int l_311[6][4];
short l_313 = 0x1479L;
unsigned long l_314 = -10L;
int l_315 = 0L;
struct S0 **l_316 = (&g_160);
unsigned long l_317 = 0L;
unsigned char l_318 = 0L;
int i;
for (i = 0; i < 3; i++)
l_308[i] = 9L;
(l_318) =
func_35 (p_58, l_299, (**l_302),
func_35 (l_304[8], (g_4[2][3]),
func_35 (l_305[4],
(((qux ((*g_116), (***l_301[1][1]))) >
0xF8A779C4L) >= func_35 (g_85[0], (g_124),
func_35 ((&g_86),
(g_44),
(p_57),
(*l_303),
(p_57)),
(g_306), (g_140))),
((bar ((qux ((l_307), l_308[0])), 5L)) >=
(baz ((qux ((p_57), (l_309))), -1L))),
(l_310),
((l_311[4][1] | (~(***l_301[1][2]))) ==
(foo (((g_312) & (l_313)), (l_314))))), l_315,
(0 != l_316)), (l_317));
}
[regehr at gamow tmp274]$ clang -v
clang version 1.1 (trunk)
Target: x86_64-unknown-linux-gnu
Thread model: posix
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Mar 4 00:55:29 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 00:55:29 -0600 (CST)
Subject: [LLVMbugs] [Bug 6486] likely integer wrong code bug
In-Reply-To:
References:
Message-ID: <20100304065529.C7A092A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6486
Nick Lewycky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Nick Lewycky 2010-03-04 00:55:29 CST ---
Fixed in r97721,
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100301/097244.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 Mar 4 01:00:58 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 01:00:58 -0600 (CST)
Subject: [LLVMbugs] [Bug 6490] New: Negative array dimensions allowed in
template instantiations
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6490
Summary: Negative array dimensions allowed in template
instantiations
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rideau3 at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
coppro at overthere:~$ clang -x c++ -
#include
template
struct bar {
int i [sizeof(T)-2];
};
int main () { bar b; printf("%d\n", sizeof(b.i)); };
coppro at overthere:~$ ./a.out
-4
coppro at overthere:~$
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 4 01:12:25 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 01:12:25 -0600 (CST)
Subject: [LLVMbugs] [Bug 6491] New: asmparser should check types on constant
forward refs
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6491
Summary: asmparser should check types on constant forward refs
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: LLVM assembly language parser
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nicholas at mxc.ca
CC: llvmbugs at cs.uiuc.edu
The .ll parser does not reject this code:
%fptr = type { i64(i64*)* }
@x = constant %fptr { i64(i64*)* @foo }
define void @foo() { unreachable }
and produces a module where @foo is defined 'i64 @foo(i64*) { unreachable }'.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Mar 4 01:59:17 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 01:59:17 -0600 (CST)
Subject: [LLVMbugs] [Bug 5291] JITEmitter holds iterator across set insert()
In-Reply-To:
References:
Message-ID: <20100304075917.27D592A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5291
Jeffrey Yasskin changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
AssignedTo|dalej at apple.com |jyasskin at google.com
--- Comment #1 from Jeffrey Yasskin 2010-03-04 01:59:16 CST ---
Fixed by r97720.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 4 02:26:10 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 02:26:10 -0600 (CST)
Subject: [LLVMbugs] [Bug 6492] New: NAN not a constant
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6492
Summary: NAN not a constant
Product: clang
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: enhancement
Priority: P5
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: holm at liacs.nl
CC: llvmbugs at cs.uiuc.edu
I have tested this on the clang build distributed with Snow Leopard, so if it
has already been fixed sorry in advance.
Using the NAN macro from math.h results in this diagnostics:
nantest.c:2:11: error: initializer element is not a compile-time constant
float x = NAN;
^~~
/usr/include/architecture/i386/math.h:66:25: note: instantiated from:
#define NAN __builtin_nanf("0x7fc00000") /* Constant ...
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 diagnostic generated.
where nantest.c contains the following:
---------------
#include
float x = NAN;
---------------
This works fine in GCC, but not in Clang and seem to be in violation of C99
7.12:5:
The macro
NAN is defined if and only if the implementation supports quiet NaNs for the
float type. It
expands to a _constant expression_ of type float representing a quiet NaN.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 4 02:27:18 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 02:27:18 -0600 (CST)
Subject: [LLVMbugs] [Bug 6493] New: LLVM-GCC fails on simple case
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6493
Summary: LLVM-GCC fails on simple case
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: major
Priority: P5
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: zhousheng00 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Seems operation on argument of 2d array of templated class will fail llvm-gcc
for example:
template
class T {
public:
int V;
};
T<4> test(T<4> a[4][8]) {
return a[3][3];
}
Tested with ToT LLVM-GCC, got
test.cpp: In function \u2018T<4> test(T<4> (*)[8])\u2019:
test.cpp:7: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Mar 4 02:37:34 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 02:37:34 -0600 (CST)
Subject: [LLVMbugs] [Bug 6492] NAN not a constant
In-Reply-To:
References:
Message-ID: <20100304083734.14FD82A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6492
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from John McCall 2010-03-04 02:37:33 CST ---
Yes, this has been fixed since then. Thanks for filing the bug!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Mar 4 04:04:25 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 04:04:25 -0600 (CST)
Subject: [LLVMbugs] [Bug 6447] Building C++ app fails with link error
In-Reply-To:
References:
Message-ID: <20100304100425.66D202A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6447
jpakkane at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from jpakkane at gmail.com 2010-03-04 04:04:24 CST ---
That patch fixed this error 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 Mar 4 11:54:47 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 11:54:47 -0600 (CST)
Subject: [LLVMbugs] [Bug 6430] Ran out of registers during register
allocation for vfwprintf
In-Reply-To:
References:
Message-ID: <20100304175447.2DD282A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6430
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |WORKSFORME
--- Comment #6 from Jakob Stoklund Olesen 2010-03-04 11:54:46 CST ---
This is probably fixed. It doesn't reproduce 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 Thu Mar 4 12:08:57 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 12:08:57 -0600 (CST)
Subject: [LLVMbugs] [Bug 6490] Negative array dimensions allowed in template
instantiations
In-Reply-To:
References:
Message-ID: <20100304180857.C6D5A2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6490
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Douglas Gregor 2010-03-04 12:08:57 CST ---
(In reply to comment #1)
> I don't think this is a bug.
>
> sizeof returns size_t, which is an unsigned integral type, so sizeof(char)-2
> gives an unsigned result, meaning the bug summary is wrong.
>
> The displayed result is perfectly reasonable too. size_t(-1) * 4, thanks to
> twos-complement, gives the same bit pattern as size_t(-1 * 4), and since you
> omitted the unsigned modifier on the format to printf, you're printing
> int(size_t(-4)), giving -4.
Right, the argument is unsigned, not negative. There is a bugg here, which is
that we're not diagnosing array overflow, which is here:
http://llvm.org/bugs/show_bug.cgi?id=1889
*** This bug has been marked as a duplicate of bug 1889 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 4 12:19:01 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 12:19:01 -0600 (CST)
Subject: [LLVMbugs] [Bug 6473] __attribute__ weakref is broken
In-Reply-To:
References:
Message-ID: <20100304181901.D44582A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6473
Rafael ?vila de Esp?ndola changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #9 from Rafael ?vila de Esp?ndola 2010-03-04 12:19:01 CST ---
Fixed in r97733.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 4 13:35:12 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 13:35:12 -0600 (CST)
Subject: [LLVMbugs] [Bug 6494] New: There are no tests for GVIndirectSymbols
in the JIT
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6494
Summary: There are no tests for GVIndirectSymbols in the JIT
Product: libraries
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P5
Component: Target-Independent JIT
AssignedTo: evan.cheng at apple.com
ReportedBy: jyasskin at google.com
CC: llvmbugs at cs.uiuc.edu
I added an abort() to both the MR.isIndirectSymbol() branch in
JITEmitter::finishFunction and JITResolverState::getGlobalToIndirectSymMap(),
and `make check-lit` passed anyway at r97723. This makes it hard to ensure that
other changes keep it working.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 4 13:51:05 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 13:51:05 -0600 (CST)
Subject: [LLVMbugs] [Bug 6473] __attribute__ weakref is broken
In-Reply-To:
References:
Message-ID: <20100304195105.2F1B82A6C135@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6473
Rafael ?vila de Esp?ndola changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #10 from Rafael ?vila de Esp?ndola 2010-03-04 13:51:04 CST ---
We are still missing static variables that use a weakref :-(
in
----------------------
extern void foo (void);
static void bar (void) __attribute__ ((__weakref__("foo")));
static void *const zed = (void *) &bar;
int f1(void) {
return zed != 0;
}
int f2(void) {
return bar != 0;
}
---------------------
We correctly avoid producing a undef for bar when compiling f2, but zed is
compiled as:
@zed = internal constant i8* bitcast (void ()* @bar to i8*), align 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 Thu Mar 4 13:54:30 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 13:54:30 -0600 (CST)
Subject: [LLVMbugs] [Bug 6360] Escaped stub can be destroyed prematurely
In-Reply-To:
References:
Message-ID: <20100304195430.5036E2A6C130@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6360
Jeffrey Yasskin changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #6 from Jeffrey Yasskin 2010-03-04 13:54:29 CST ---
(Answered Albert's question offline since it's not related to this bug.)
Should be fixed by r97737. Please reopen if it's not.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 4 14:27:05 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 14:27:05 -0600 (CST)
Subject: [LLVMbugs] [Bug 6495] New: extern const file-level variable with
initializer raises warning
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6495
Summary: extern const file-level variable with initializer
raises warning
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dlowe at bitmuse.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
This should be a warning in C, where a const file-level variable is externally
bound. In C++, however, it is internally bound by default. You're supposed to
use the extern keyword to bind it externally. Doing so in clang, however,
generates the warning.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Mar 4 14:36:42 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 14:36:42 -0600 (CST)
Subject: [LLVMbugs] [Bug 6496] New: bad Clang diagnostics when
signed/unsigned is combined with a typedef
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6496
Summary: bad Clang diagnostics when signed/unsigned is combined
with a typedef
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: zhanyong.wan at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
It's easy for a user to make the mistake of qualifying an integer typedef with
signed or unsigned. Clang's error messages aren't very helpful:
$ cat t.cc
typedef int Integer;
typedef unsigned Integer UnsignedInteger;
void Test() {
unsigned Integer foo;
unsigned bar = (unsigned Integer)-1;
}
$ clang t.cc
t.cc:2:18: error: typedef redefinition with different types ('unsigned int' vs
'int')
typedef unsigned Integer UnsignedInteger;
^
t.cc:1:13: note: previous definition is here
typedef int Integer;
^
t.cc:2:25: error: invalid token after top level declarator
typedef unsigned Integer UnsignedInteger;
^
;
t.cc:5:19: error: expected ';' at end of declaration
unsigned Integer foo;
^
;
t.cc:6:28: error: expected ')'
unsigned bar = (unsigned Integer)-1;
^
t.cc:6:18: note: to match this '('
unsigned bar = (unsigned Integer)-1;
^
6 diagnostics generated.
I'd expect to see something like "'unsigned' cannot be combined with a typedef
('Integer')."
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 4 14:42:46 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 14:42:46 -0600 (CST)
Subject: [LLVMbugs] [Bug 6489] ice: Cannot find live range
In-Reply-To:
References:
Message-ID: <20100304204246.C35862A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6489
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Jakob Stoklund Olesen 2010-03-04 14:42:46 CST ---
Fixed in r97742
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 4 15:02:14 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 15:02:14 -0600 (CST)
Subject: [LLVMbugs] [Bug 3153] OCaml binding's Makefile.ocaml creates
incorrect symlinks
In-Reply-To:
References:
Message-ID: <20100304210214.F044A2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=3153
Erick Tryzelaar changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |idadesub at users.sourceforge.
| |net
Resolution| |FIXED
--- Comment #7 from Erick Tryzelaar 2010-03-04 15:02:14 CST ---
Finally fixed in r97743!
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 4 15:05:01 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 15:05:01 -0600 (CST)
Subject: [LLVMbugs] [Bug 6480] ARM Codegen asserts Running pass 'Control
Flow Optimizer' on function '@"java.lang.String::getChars"'
In-Reply-To:
References:
Message-ID: <20100304210501.B23D72A6C131@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6480
Bob Wilson changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Bob Wilson 2010-03-04 15:05:01 CST ---
Fixed in svn r97745.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 4 15:05:35 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 15:05:35 -0600 (CST)
Subject: [LLVMbugs] [Bug 6333] SIGSEGV in 'X86 DAG->DAG Instruction
Selection'
In-Reply-To:
References:
Message-ID: <20100304210535.69E152A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6333
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Chris Lattner 2010-03-04 15:05:35 CST ---
Unfortunately this testcase was broken by recent llvm .bc changes. Can you
reduce a new testcase?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Mar 4 15:22:07 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 15:22:07 -0600 (CST)
Subject: [LLVMbugs] [Bug 3383] Assertion failed: Only trivial
vector-to-scalar conversions should get here!
In-Reply-To:
References:
Message-ID: <20100304212207.D7A0A2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=3383
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Dan Gohman 2010-03-04 15:22:07 CST ---
This now works on TOT.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Mar 4 15:28:06 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 15:28:06 -0600 (CST)
Subject: [LLVMbugs] [Bug 6473] __attribute__ weakref is broken
In-Reply-To:
References:
Message-ID: <20100304212806.97C052A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6473
Rafael ?vila de Esp?ndola changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #12 from Rafael ?vila de Esp?ndola 2010-03-04 15:28:06 CST ---
fixed in r97750
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 4 15:43:04 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 15:43:04 -0600 (CST)
Subject: [LLVMbugs] [Bug 6478] ARM CodeGen Running pass 'Prolog/Epilog
Insertion & Frame Finalization' on function '@"java.lang.String::getChars"'
In-Reply-To:
References:
Message-ID: <20100304214304.B71D52A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6478
Bob Wilson changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Bob Wilson 2010-03-04 15:43:04 CST ---
Fixed in svn r97755.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 4 15:45:31 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 15:45:31 -0600 (CST)
Subject: [LLVMbugs] [Bug 6497] New: Assertion failed:
(Node2Index[SU->NodeNum] > Node2Index[I->getSUnit()->NodeNum] && "Wrong
topological sorting"), function InitDAGTopologicalSorting,
file ScheduleDAG.cpp, line 462.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6497
Summary: Assertion failed: (Node2Index[SU->NodeNum] >
Node2Index[I->getSUnit()->NodeNum] && "Wrong
topological sorting"), function
InitDAGTopologicalSorting, file ScheduleDAG.cpp, line
462.
Product: libraries
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: enhancement
Priority: P5
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4392)
--> (http://llvm.org/bugs/attachment.cgi?id=4392)
testt case
on i386 I am getting this assert when compiling the attached with
clang -O2 r600_cp.c
I believe this is quite recent, it definitely wasnt there on Feb 13th
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 4 16:00:38 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 16:00:38 -0600 (CST)
Subject: [LLVMbugs] [Bug 6498] New: use .p2align instead of .align
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6498
Summary: use .p2align instead of .align
Product: compiler-rt
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: compiler-rt
AssignedTo: unassignedbugs at nondot.org
ReportedBy: gohman at apple.com
CC: llvmbugs at cs.uiuc.edu
compiler-rt currently uses .align directives for what appear to be intended as
power-of-2 alignment. The .p2align directive should be used instead, as .align
means byte alignment on some targets.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 4 16:32:42 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 16:32:42 -0600 (CST)
Subject: [LLVMbugs] [Bug 6499] New: clang can't produce jit code with glibc
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6499
Summary: clang can't produce jit code with glibc
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: castet.matthieu at free.fr
CC: llvmbugs at cs.uiuc.edu
clang identify as gcc, but in new glibc header if gcc is detected some function
in header are optimized as inline asm.
For example select.h contains [1]. This make llvm bytecode not runnable with
lli jit :
LLVM ERROR: JIT does not support inline asm!
[1]
#if defined __GNUC__ && __GNUC__ >= 2
# if __WORDSIZE == 64
# define __FD_ZERO_STOS "stosq"
# define __FD_SET_BTS "btsq"
# define __FD_CLR_BTR "btrq"
# define __FD_ISSET_BT "btq"
# else
# define __FD_ZERO_STOS "stosl"
# define __FD_SET_BTS "btsl"
# define __FD_CLR_BTR "btrl"
# define __FD_ISSET_BT "btl"
# endif
# define __FD_ZERO(fdsp) \
do { \
int __d0, __d1; \
__asm__ __volatile__ ("cld; rep; " __FD_ZERO_STOS \
: "=c" (__d0), "=D" (__d1) \
: "a" (0), "0" (sizeof (fd_set) \
/ sizeof (__fd_mask)), \
"1" (&__FDS_BITS (fdsp)[0]) \
: "memory"); \
} while (0)
#else
# define __FD_ZERO(set) \
do { \
unsigned int __i; \
fd_set *__arr = (set); \
for (__i = 0; __i < sizeof (fd_set) / sizeof (__fd_mask); ++__i) \
__FDS_BITS (__arr)[__i] = 0; \
} while (0)
#endif
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Mar 4 16:39:05 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 16:39:05 -0600 (CST)
Subject: [LLVMbugs] [Bug 6499] clang can't produce jit code with glibc
In-Reply-To:
References:
Message-ID: <20100304223905.5A7822A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6499
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Chris Lattner 2010-03-04 16:39:04 CST ---
The JIT doesn't support inline asm, this is covered by PR1343
*** This bug has been marked as a duplicate of bug 1343 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 4 17:06:02 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 17:06:02 -0600 (CST)
Subject: [LLVMbugs] [Bug 6500] New: lli -force-interpreter crash with asm
inline
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6500
Summary: lli -force-interpreter crash with asm inline
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: Interpreter
AssignedTo: unassignedbugs at nondot.org
ReportedBy: castet.matthieu at free.fr
CC: llvmbugs at cs.uiuc.edu
$ cat test.ll
; ModuleID = 'test.bc'
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32"
target triple = "i386-unknown-linux-gnu"
define i32 @main() nounwind {
entry:
tail call void asm sideeffect "ff_mlp_firorder_0:",
"~{dirflag},~{fpsr},~{flags}"() nounwind
ret i32 0
}
$ lli -force-interpreter test.bc
0 lli 0x086dfa58
Stack dump:
0. Program arguments: lli -force-interpreter test.bc
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 Thu Mar 4 17:12:40 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 17:12:40 -0600 (CST)
Subject: [LLVMbugs] [Bug 6500] lli -force-interpreter crash with asm inline
In-Reply-To:
References:
Message-ID: <20100304231240.AA5062A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6500
Nick Lewycky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |nlewycky at google.com
Resolution| |INVALID
--- Comment #1 from Nick Lewycky 2010-03-04 17:12:40 CST ---
What did you expect, exactly?
If you want a clean error + abort() upon trying to interpret inline assembly,
please implement it and send the patch to llvm-commits.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Mar 4 19:11:41 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 19:11:41 -0600 (CST)
Subject: [LLVMbugs] [Bug 6501] New: QOI: arguments passed/required mismatch
diagnostic
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6501
Summary: QOI: arguments passed/required mismatch diagnostic
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: echristo at gmail.com
CC: llvmbugs at cs.uiuc.edu
It would be useful when emitting a diagnostic for "too many/few arguments to
{thing} x" that it provide some numbers of what the expected and seen number of
arguments were.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Mar 4 19:25:58 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 19:25:58 -0600 (CST)
Subject: [LLVMbugs] [Bug 6502] New: Clang complains about indirect goto
jumping over initializations where GCC doesn't
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6502
Summary: Clang complains about indirect goto jumping over
initializations where GCC doesn't
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chandlerc at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
I know this code is terrifying, but some code generators produce this type of
pattern. The rationale for the combined switch and manually built indirect goto
table is to turn the goto-based solution off on compilers which don't support
it, and on for those that do. I haven't tried to reduce it by de-interleaving
them, not sure if that's relevant or not. It might be possible to reduce this
further, but this makes it an "interesting" test case without being enormous.
% cat t.cc
bool f(const unsigned* indices) {
static void* const dispatch_table[] = {
&&L1,
&&LEND,
};
for (const unsigned* next = indices; ; ) {
goto *dispatch_table[*next];
switch (*(next)) {
L1:
case 0: {
const int foo = 1.0;
(void)foo;
goto *dispatch_table[*(++next)];
break;
}
LEND:
case 1:
return true;
}
}
}
% ./bin/clang -fsyntax-only t.cc
t.cc:13:9: error: illegal indirect goto in protected scope, unknown effect on
scopes
goto *dispatch_table[*(++next)];
^
t.cc:11:19: note: jump bypasses variable initialization
const int foo = 1.0;
^
t.cc:6:24: note: jump bypasses variable initialization
for (const unsigned* next = indices; ; ) {
^
t.cc:7:5: error: illegal indirect goto in protected scope, unknown effect on
scopes
goto *dispatch_table[*next];
^
t.cc:6:24: note: jump bypasses variable initialization
for (const unsigned* next = indices; ; ) {
^
t.cc:4:5: error: address taken of label in protected scope, jump to it would
have unknown effect on scope
&&LEND,
^
t.cc:6:24: note: jump bypasses variable initialization
for (const unsigned* next = indices; ; ) {
^
t.cc:3:5: error: address taken of label in protected scope, jump to it would
have unknown effect on scope
&&L1,
^
t.cc:6:24: note: jump bypasses variable initialization
for (const unsigned* next = indices; ; ) {
^
9 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 Thu Mar 4 22:29:13 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 4 Mar 2010 22:29:13 -0600 (CST)
Subject: [LLVMbugs] [Bug 6503] New: ice: replaceAllUses of value with new
value of different type!
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6503
Summary: ice: replaceAllUses of value with new value of
different type!
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
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
Created an attachment (id=4394)
--> (http://llvm.org/bugs/attachment.cgi?id=4394)
failure-inducing input
Seen on x86.
regehr at john-home:~/volatile/bugs/tmp274$ clang -v
clang version 1.1 (trunk)
Target: i386-pc-linux-gnu
Thread model: posix
regehr at john-home:~/volatile/bugs/tmp274$ clang -O2 small.c
clang: Value.cpp:317: void llvm::Value::replaceAllUsesWith(llvm::Value*):
Assertion `New->getType() == getType() && "replaceAllUses of value with new
value of different type!"' failed.
0 clang 0x08edbe18
Stack dump:
0. Program arguments:
/home/regehr/z/compiler-install/llvm-gcc-r97760-install/bin/clang -cc1 -triple
i386-pc-linux-gnu -S -disable-free -main-file-name small.c -mrelocation-model
static -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4
-resource-dir
/home/regehr/z/compiler-install/llvm-gcc-r97760-install/lib/clang/1.1 -O2
-fmessage-length 85 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics
-o /tmp/cc-mau7RF.s -x c small.c
1. parser at end of file
2. Per-function optimization
3. Running pass 'Combine redundant instructions' on function '@int327'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
regehr at john-home:~/volatile/bugs/tmp274$ clang small.c -emit-llvm -S
regehr at john-home:~/volatile/bugs/tmp274$ opt -O2 small.s -o /dev/null
opt: Value.cpp:317: void llvm::Value::replaceAllUsesWith(llvm::Value*):
Assertion `New->getType() == getType() && "replaceAllUses of value with new
value of different type!"' failed.
0 opt 0x084aaae8
Stack dump:
0. Program arguments: opt -O2 small.s -o /dev/null
1. Running pass 'Combine redundant instructions' on function '@int327'
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 Mar 5 00:20:06 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 5 Mar 2010 00:20:06 -0600 (CST)
Subject: [LLVMbugs] [Bug 6497] Assertion failed: (Node2Index[SU->NodeNum] >
Node2Index[I->getSUnit()->NodeNum] && "Wrong topological sorting"),
function InitDAGTopologicalSorting, file ScheduleDAG.cpp, line 462.
In-Reply-To: