From bugzilla-daemon at llvm.org Fri Oct 1 00:37:04 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Oct 2010 00:37:04 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8244] dag combine miscompilation
In-Reply-To:
References:
Message-ID: <20101001053704.A518F2A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8244
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Chris Lattner 2010-10-01 00:37:04 CDT ---
Fixed in r115294
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 1 00:51:16 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Oct 2010 00:51:16 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8267] volatile structs are broken!
In-Reply-To:
References:
Message-ID: <20101001055116.B0FBF2A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8267
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Chris Lattner 2010-10-01 00:51:16 CDT ---
Fixed in r115296, thanks!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 1 00:54:22 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Oct 2010 00:54:22 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8268] New: constant folder misses negative GEP
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8268
Summary: constant folder misses negative GEP
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Core LLVM classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nicholas at mxc.ca
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5546)
--> (http://llvm.org/bugs/attachment.cgi?id=5546)
.ll of foo() after -O2
The C++ testcase on Linux is:
#include
using namespace std;
void foo() { string s; }
which optimizes down to nothing with gcc, but produces the attached .ll file in
clang++. The problem is this hideous constant expression:
i1 icmp eq ([0 x i32]* bitcast (i8* getelementptr (%"_Rep"* bitcast ([0 x i32]*
@foo to %"_Rep"*), i32 1, i32 0, i32 -12) to [0 x i32]*), [0 x i32]* @foo)
where %"_Rep" = type { [12 x i8] } . Target data is available, though offhand I
don't think it should be needed.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 1 01:36:47 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Oct 2010 01:36:47 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8269] New: clang produces incorrect fixit for
invalid main decl.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8269
Summary: clang produces incorrect fixit for invalid main decl.
Product: new-bugs
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bigcheesegs at gmail.com
CC: llvmbugs at cs.uiuc.edu
% echo unsigned int main(); | clang -x c -
(1) : error: 'main' must return 'int'
unsigned int main();
^~~~~~~~
int
1 error generated.
This would be "int int main();", which is even more invalid.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 1 01:49:11 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Oct 2010 01:49:11 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8200] MMX unpack instructions no longer get selected
In-Reply-To:
References:
Message-ID: <20101001064911.318D92A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8200
Bill Wendling changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #10 from Bill Wendling 2010-10-01 01:49:10 CDT ---
Nicolas, I applied your patch as r115298. Please test out the 2.8 branches on
your machine to see if they are okay 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 Fri Oct 1 04:02:59 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Oct 2010 04:02:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8266] memcpyopt miscompilation
In-Reply-To:
References:
Message-ID: <20101001090259.987122A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8266
Eric Christopher changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #7 from Eric Christopher 2010-10-01 04:02:59 CDT ---
Fixed thusly:
[ghostwheel:~/sources/llvm] echristo% svn ci
Sending lib/Transforms/Scalar/MemCpyOptimizer.cpp
Transmitting file data .
Committed revision 115305.
Needed the minimum of both alignments, not just the source since we might try
to write to the destination using a different alignment 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 Fri Oct 1 04:23:59 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Oct 2010 04:23:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8270] New: Duplicate symbol with extern inline in
C++
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8270
Summary: Duplicate symbol with extern inline in C++
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: pcgod99 at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
extern inline const int get_addrinfo_category();
const int get_addrinfo_category() { return 0; }
In a header file included from more than one file leads to the linker error:
multiple definition of `get_addrinfo_category()'
This works in GCC and breaks linking simple examples using Boost Asio.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 1 07:01:13 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Oct 2010 07:01:13 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7886] Codegen/X86/sibcall.ll test fails on
i686-apple-darwin8
In-Reply-To:
References:
Message-ID: <20101001120113.BD6122A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7886
NAKAMURA Takumi changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #4 from NAKAMURA Takumi 2010-10-01 07:01:13 CDT ---
Applied in r115215, thank you!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 1 11:19:11 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Oct 2010 11:19:11 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8272] New: Infinite loop in compile
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8272
Summary: Infinite loop in compile
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Clang seems to infinite loop on the attached test case, from the GCC test
suite:
--
ddunbar at giles:template (master)$ cat vtable2.C
// Use a small template instantiation depth to speed up testing
// { dg-options "-ftemplate-depth-5" }
// { dg-do compile }
// Origin: rullo.pat at tiscalinet.it
// Nathanael Nerode
// Wolfgang Bangerth
// PR c++/6749: Infinite loop generating vtable.
template struct inner {};
template struct parent {
virtual void f() // { dg-error "instantiation depth" }
{ parent > p; };
};
template struct parent;
ddunbar at giles:template (master)$ time xclang -c vtable2.C
C-c C-cAbort trap
real 0m55.865s
user 0m0.001s
sys 0m0.005s
ddunbar at giles:template (master)$
--
Sample shows that it is going crazy in the mangler.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 1 12:24:50 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Oct 2010 12:24:50 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8273] New: possible volatile bug
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8273
Summary: possible volatile bug
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu
Ok this is super nitpicky, but I think actually wrong.
We take this code:
int const volatile vol1 = 0;
int const vol2 = 0;
int main (void)
{
return 0;
}
and then run these commands:
[regehr at gamow ~]$ clang -O vol.c -o vol
[regehr at gamow ~]$ nm vol |grep vol
00000000004005cc R vol1
00000000004005cc R vol2
They have been put at the same location. I argue that this transformation is
illegal if any of the variables in question are volatile, because a
volatile-qualified object should only be loaded from or store to when the
abstract machine would do so.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 1 14:01:24 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Oct 2010 14:01:24 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8235] MachineFrameInfo assertion when compiling
ObjC code
In-Reply-To:
References:
Message-ID: <20101001190124.7FD5A2A6C130@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8235
Devang Patel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Devang Patel 2010-10-01 14:01:23 CDT ---
Fixed.
r115323
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 1 14:19:54 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Oct 2010 14:19:54 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8265] Derived type descriptor inaccuracy
In-Reply-To:
References:
Message-ID: <20101001191954.1B9AC2A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8265
Devang Patel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Devang Patel 2010-10-01 14:19:53 CDT ---
good catch.
Fixed r115325.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 1 14:22:30 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Oct 2010 14:22:30 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8255] llvm.dbg.declare documentation inaccurate
In-Reply-To:
References:
Message-ID: <20101001192230.BC3B72A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8255
Devang Patel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Devang Patel 2010-10-01 14:22:30 CDT ---
Fixed. r115326.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 1 17:06:51 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Oct 2010 17:06:51 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8135] Clang++ crashes on case ranges (GNU extension)
In-Reply-To:
References:
Message-ID: <20101001220652.510082A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8135
Gabor Greif changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #9 from Gabor Greif 2010-10-01 17:06:51 CDT ---
fixed in r115355
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 1 17:10:38 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Oct 2010 17:10:38 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8274] New: Debug block descriptor documentation
inconsistency
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8274
Summary: Debug block descriptor documentation inconsistency
Product: Documentation
Version: 2.7
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: General docs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: clemahieu at gmail.com
CC: llvmbugs at cs.uiuc.edu
http://llvm.org/releases/2.7/docs/SourceLevelDebugging.html#format_blocks
Lists block descriptors as only having a tag and a reference to a context
descriptor. Clang output has two additional integers, a line and column number
in this piece of metadata and the code has two optional parameters for line and
column number in DebugInfo.h:641
Documentation could describe if and when when line/column need to be used with
lexical blocks.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 1 17:19:31 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Oct 2010 17:19:31 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8008] provide fixit for removing of extra
qualification of members
In-Reply-To:
References:
Message-ID: <20101001221931.E3B3F2A6C131@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8008
Gabor Greif changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |pichet2000 at gmail.com
Resolution| |FIXED
--- Comment #2 from Gabor Greif 2010-10-01 17:19:31 CDT ---
fixed in r115347
minor (potential) simplification:
sometimes the operator-> is cascading and
one can write
+ Diag(Func->getLocation(), diag::note_member_def_close_match);
instead of
+ Diag((*Func)->getLocation(), diag::note_member_def_close_match);
I did not check whether it is the case here.
Anyway, thanks for the fix!!!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 1 17:31:55 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Oct 2010 17:31:55 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8275] New: LLVM lexical block tag number incorrect
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8275
Summary: LLVM lexical block tag number incorrect
Product: Documentation
Version: 2.7
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: General docs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: clemahieu at gmail.com
CC: llvmbugs at cs.uiuc.edu
http://llvm.org/releases/2.7/docs/SourceLevelDebugging.html#format_blocks
Lists lexical blocks as having a tag number 13, the actual number is 11.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 1 17:46:21 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Oct 2010 17:46:21 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8274] Debug block descriptor documentation
inconsistency
In-Reply-To:
References:
Message-ID: <20101001224621.D10262A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8274
Devang Patel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Devang Patel 2010-10-01 17:46:21 CDT ---
Fixed r115362.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 1 18:57:44 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Oct 2010 18:57:44 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8249] Assertion `!empty() && "Call to beginIndex()
on empty interval."' failed.
In-Reply-To:
References:
Message-ID: <20101001235744.088BA2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8249
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #2 from Jakob Stoklund Olesen 2010-10-01 18:57:43 CDT ---
Fixed in r115385
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 1 19:10:11 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Oct 2010 19:10:11 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8221] fatal error: error in backend: Cannot yet
select: intrinsic %llvm.x86.sse2.psll.dq
In-Reply-To:
References:
Message-ID: <20101002001011.580532A6C131@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8221
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Chris Lattner 2010-10-01 19:10:10 CDT ---
Fixed in a series of commits leading up to r115388
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 1 22:45:45 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Oct 2010 22:45:45 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8276] New: Invalid metadata is simply omitted,
no warning
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8276
Summary: Invalid metadata is simply omitted, no warning
Product: libraries
Version: 2.7
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: clemahieu at gmail.com
CC: llvmbugs at cs.uiuc.edu
When outputting machine assembly llc will simply drop any debug metadata that
it malformed. This makes it very hard to figure out bugs (obviously).
Two recommended warnings to add:
- Return instruction must have a DebugLoc
- Subprogram name metadata must match function name
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 1 23:45:28 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 1 Oct 2010 23:45:28 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8277] New: Clang (from XCode DP3) is unable to
parse a specialised member function template inside a specialised template
class
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8277
Summary: Clang (from XCode DP3) is unable to parse a
specialised member function template inside a
specialised template class
Product: clang
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: abdulla.kamar at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
The following code correctly compiles under GCC, but Clang complains that
there's an extraneous template specialisation:
template< typename S >
struct C
{
template< int >
void F( void )
{
}
};
template< typename S >
struct D
{
typedef C< int > A;
};
typedef D< int >::A A;
template<>
template<>
void A::F< 0 >( void )
{
}
int main( void )
{
return 0;
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Oct 2 00:42:14 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Oct 2010 00:42:14 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8278] New: MC-COFF: Incorrect relocations generated
for string constants... again...
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8278
Summary: MC-COFF: Incorrect relocations generated for string
constants... again...
Product: libraries
Version: trunk
Platform: All
OS/Version: All
Status: ASSIGNED
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: bigcheesegs at gmail.com
ReportedBy: bigcheesegs at gmail.com
CC: llvmbugs at cs.uiuc.edu
#include
int main(int argc, char **argv) {
printf("First String\n");
printf("Second String\n");
}
Prints:
First String
First String
Which is obviously wrong. There's a test almost identical to this in
test/MC/COFF/symbol-fragment-offset.ll that I thought tested this _exact_
problem. The aforementioned test currently passes, while this one currently
fails.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Oct 2 06:48:42 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Oct 2010 06:48:42 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8270] Duplicate symbol with extern inline in C++
In-Reply-To:
References:
Message-ID: <20101002114842.346862A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8270
Benjamin Jemlich changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Benjamin Jemlich 2010-10-02 06:48:41 CDT ---
*** This bug has been marked as a duplicate of bug 7389 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Oct 2 09:04:29 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Oct 2010 09:04:29 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8279] New: const volatile bug
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8279
Summary: const volatile bug
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu
Clang miscompiles the program below, it is not OK to optimize away the read
from g_1 in main after inlining func_1().
regehr at john-home:~$ clang -v
clang version 2.9 (trunk 115311)
Target: i386-pc-linux-gnu
Thread model: posix
regehr at john-home:~$ clang -O vol.c -S -o -
.file "vol.c"
.text
.globl main
.align 16, 0x90
.type main, at function
main:
pushl %ebp
movl %esp, %ebp
xorl %eax, %eax
popl %ebp
ret
.Ltmp0:
.size main, .Ltmp0-main
.type g_1, at object
.section .rodata.cst4,"aM", at progbits,4
.globl g_1
.align 4
g_1:
.long 1
.size g_1, 4
.section .note.GNU-stack,"", at progbits
regehr at john-home:~$ cat vol.c
const volatile int g_1 = 1;
static int func_1(void) {
return g_1;
}
int main (void)
{
func_1();
return 0;
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Oct 2 12:48:48 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Oct 2010 12:48:48 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8169] clang does not allow a getter to be named
"namespace" in ObjC++
In-Reply-To:
References:
Message-ID: <20101002174848.D83FC2A6C130@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8169
Anders Carlsson changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |andersca at mac.com
Resolution| |FIXED
--- Comment #2 from Anders Carlsson 2010-10-02 12:48:48 CDT ---
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20100927/035083.html
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Oct 2 14:57:12 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Oct 2010 14:57:12 -0500 (CDT)
Subject: [LLVMbugs] [Bug 4096] [Linux kernel] unsupported array designator
In-Reply-To:
References:
Message-ID: <20101002195712.AE5E72A6C131@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=4096
Alp Toker changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |alp at nuanti.com
Resolution| |FIXED
--- Comment #3 from Alp Toker 2010-10-02 14:57:11 CDT ---
This error doesn't appear in clang head (r115028). Closing bug, feel free to
re-open if the issue persists.
(The preprocessed file still errors out on an unrelated 'array size is
negative' sizeof, possibly caused by PR8256 or PR7951).
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Oct 2 14:57:33 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Oct 2010 14:57:33 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8280] New: Implement pshufw mnemonic
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8280
Summary: Implement pshufw mnemonic
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ismail at namtrac.org
CC: llvmbugs at cs.uiuc.edu
Saw this while compiling x264:
[~]> cat t2.c
int main()
{
asm ("pshufw");
}
[~]> clang t2.c
t2.c:4:10: error: invalid instruction mnemonic 'pshufw'
asm ("pshufw");
^
:1:2: note: instantiated into assembly here
pshufw
^
1 error generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Oct 2 14:59:36 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Oct 2010 14:59:36 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8281] New: Extremely slow assembling and
disassembling of some code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8281
Summary: Extremely slow assembling and disassembling of some
code
Product: libraries
Version: 2.7
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: llvm at henning-thielemann.de
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5550)
--> (http://llvm.org/bugs/attachment.cgi?id=5550)
disassembling this bitcode is awfully slow
Recently I wanted to move from LLVM-2.6 to LLVM-2.7. I encountered that some
LLVM code I generated through the Haskell/C interface to LLVM takes ages to
arrive in a bitcode file. This problem did not exist in LLVM-2.6. Now I found
that also assembling and disassembling that bitcode file is very slow.
$ time llvm-dis -o generator000-dis.ll generator000.bc
real 1m56.906s
user 1m56.511s
sys 0m0.300s
$ time llvm-as generator000-dis.ll
real 2m1.090s
user 2m0.584s
sys 0m0.304s
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Oct 2 16:05:42 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Oct 2010 16:05:42 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8280] Implement pshufw mnemonic
In-Reply-To:
References:
Message-ID: <20101002210542.14A582A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8280
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Chris Lattner 2010-10-02 16:05:41 CDT ---
We support pshufw, we just require it to have operands. The system assembler
produces:
t.s:1:suffix or operands invalid for `pshufw'
This is either an overreduced testcase or not supported usage.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Oct 2 16:56:11 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Oct 2010 16:56:11 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8283] New: Implement pavgusb
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8283
Summary: Implement pavgusb
Product: clang
Version: trunk
Platform: PC
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ismail at namtrac.org
CC: llvmbugs at cs.uiuc.edu
This is part of 3DNow! instruction set:
[~]> cat t3.c
int main()
{
asm("pavgusb 9(%esi, %edx), %mm3");
}
[~]> clang t3.c
t3.c:3:9: error: invalid instruction mnemonic 'pavgusb'
asm("pavgusb 9(%esi, %edx), %mm3");
^
:1:2: note: instantiated into assembly here
pavgusb 9(%esi, %edx), %mm3
^
1 error generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Oct 2 18:40:18 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 2 Oct 2010 18:40:18 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8253] Apparent false ambiguous conversion from
derived class to base class
In-Reply-To:
References:
Message-ID: <20101002234018.0EC472A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8253
d235j.1 at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #4 from d235j.1 at gmail.com 2010-10-02 18:40:17 CDT ---
Turned out to be buggy code. Can be closed.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 3 00:02:25 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 3 Oct 2010 00:02:25 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7590] C++ mangler output doesn't match gcc in some
cases
In-Reply-To:
References:
Message-ID: <20101003050225.3E2F32A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7590
Alp Toker changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |alp at nuanti.com
Resolution| |FIXED
--- Comment #3 from Alp Toker 2010-10-03 00:02:24 CDT ---
I'm getting the expected B, C, D, D with clang trunk (r115444) so this was
probably fixed (perhaps by r111591). Closing bug, please re-open if the issue
persists.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 3 00:42:57 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 3 Oct 2010 00:42:57 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8284] New: use of 'vsnprintf' causes backend crash
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8284
Summary: use of 'vsnprintf' causes backend crash
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: d235j.1 at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
When using 'vsnprintf' as seen in the attached testcase, the C++ compiler
crashes. This crash does not occur when using the C compiler.
Error output:
Assertion failed: (!Type.isNull() && "builtin va list type not initialized!"),
function DecodeTypeFromStr, file ASTContext.cpp, line 5287.
0 clang 0x00000001013c9052 std::vector
>::_M_insert_aux(__gnu_cxx::__normal_iterator > >,
llvm::sys::Path const&) + 11586
1 clang 0x00000001013c9ea3 std::vector
>::_M_insert_aux(__gnu_cxx::__normal_iterator > >,
llvm::sys::Path const&) + 15251
2 libSystem.B.dylib 0x00007fff825e135a _sigtramp + 26
3 libSystem.B.dylib 000000000000000000 _sigtramp + 2107763904
4 clang 0x000000010001eaa2
std::vector
>::_M_insert_aux(__gnu_cxx::__normal_iterator > >,
llvm::PassRegistrationListener* const&) + 6786
5 clang 0x000000010071d60d clang::ASTConsumer::~ASTConsumer() +
129373
6 clang 0x00000001007230c8 clang::ASTConsumer::~ASTConsumer() +
152600
7 clang 0x000000010035c5bb
llvm::SmallVectorTemplateBase::grow(unsigned long) +
79483
8 clang 0x00000001004457c7 llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned
int) + 248279
9 clang 0x00000001004c4966
llvm::DenseMap, llvm::DenseMapInfo
>::grow(unsigned int) + 142454
10 clang 0x0000000100445c08 llvm::DenseMap, llvm::DenseMapInfo >::grow(unsigned
int) + 249368
11 clang 0x00000001002f1a49
clang::Parser::ParsingClassDefinition::Pop() + 19129
12 clang 0x00000001002ee51b
clang::Parser::ParsingClassDefinition::Pop() + 5515
13 clang 0x00000001002f10a6
clang::Parser::ParsingClassDefinition::Pop() + 16662
14 clang 0x00000001002f0708
clang::Parser::ParsingClassDefinition::Pop() + 14200
15 clang 0x00000001002f10c3
clang::Parser::ParsingClassDefinition::Pop() + 16691
16 clang 0x00000001002f1691
clang::Parser::ParsingClassDefinition::Pop() + 18177
17 clang 0x000000010030fa25
clang::PragmaWeakHandler::~PragmaWeakHandler() + 9989
18 clang 0x000000010030fe66
clang::PragmaWeakHandler::~PragmaWeakHandler() + 11078
19 clang 0x0000000100310354
clang::PragmaWeakHandler::~PragmaWeakHandler() + 12340
20 clang 0x0000000100320d51
llvm::SmallVectorTemplateBase::grow(unsigned long) + 36929
21 clang 0x00000001002e17b0 clang::Parser::ConsumeAnyToken() +
65424
22 clang 0x00000001003210b1
llvm::SmallVectorTemplateBase::grow(unsigned long) + 37793
23 clang 0x00000001003214eb
llvm::SmallVectorTemplateBase::grow(unsigned long) + 38875
24 clang 0x0000000100321f2a
llvm::SmallVectorTemplateBase::grow(unsigned long) + 41498
25 clang 0x000000010032215a
llvm::SmallVectorTemplateBase::grow(unsigned long) + 42058
26 clang 0x00000001002cf8bf llvm::IRBuilder
>::CreateGEP(llvm::Value*, llvm::Value*, llvm::Twine const&) + 495
27 clang 0x000000010028b93c
llvm::DenseMap, unsigned
long long, llvm::DenseMapInfo >, llvm::DenseMapInfo >::grow(unsigned int) + 4220
28 clang 0x00000001000545c9 llvm::DenseMap,
llvm::DenseMapInfo >::grow(unsigned int) + 7193
29 clang 0x00000001000283ce std::_Rb_tree, std::less,
std::allocator >::_M_erase(std::_Rb_tree_node*) +
2670
30 clang 0x00000001000203f3
std::vector
>::_M_insert_aux(__gnu_cxx::__normal_iterator > >,
llvm::PassRegistrationListener* const&) + 13267
31 clang 0x0000000100026f44 std::vector >::operator=(std::vector > const&) + 11604
32 clang 0x000000010001ee18
std::vector
>::_M_insert_aux(__gnu_cxx::__normal_iterator > >,
llvm::PassRegistrationListener* const&) + 7672
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-apple-darwin10.0.0 -emit-obj -mrelax-all -disable-free -main-file-name
testcase.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables
-target-cpu core2 -target-linker-version 97.14 -resource-dir
/usr/local/lib/clang/2.9 -ferror-limit 19 -fmessage-length 220 -stack-protector
1 -fblocks -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
testcase.o -x c++ ./testcase.cpp
1. ./testcase.cpp:7:66: current parser token ')'
2. ./testcase.cpp:4:1: parsing function body 'pile_vprintf'
3. ./testcase.cpp:4:1: in compound statement ('{}')
clang: error: clang frontend command failed due to signal 4 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 3 05:40:24 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 3 Oct 2010 05:40:24 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8285] New: [patch] Implemented unregistering in JIT
of exception information
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8285
Summary: [patch] Implemented unregistering in JIT of exception
information
Product: libraries
Version: 2.8
Platform: Other
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: Target-Independent JIT
AssignedTo: unassignedbugs at nondot.org
ReportedBy: yuri at tsoft.com
CC: llvmbugs at cs.uiuc.edu
Please check in an attached patch.
Synopsys of the change: fixed the cleanup process of exception
information in JIT. Now JIT deregisters registered by it FDE structures
allowing consecutive JIT runs to succeed.
Note: tools like lli should delete ExecutionEngine object and not the
module. Module is deleted by ExecutionEngine. Also I am not sure if this
is proper for the module to be owned by ExecutionEngine. I think they
should be independently owned.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 3 08:40:29 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 3 Oct 2010 08:40:29 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8286] New: Invalid indirect branches processing
(x86 asm printer).
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8286
Summary: Invalid indirect branches processing (x86 asm
printer).
Product: libraries
Version: 2.8
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: crystaldragon at codedgers.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5556)
--> (http://llvm.org/bugs/attachment.cgi?id=5556)
bitcode file(for linux x86-64) with a lot of indirect branch instructions
M.bc from attachment can't be compiled:
llc M.bc -o M.s
gcc M.s -lm
/tmp/ccuBJJbW.o:(.rodata+0xf0): undefined reference to `.Ltmp58'
/tmp/ccuBJJbW.o:(.rodata+0x1a0): undefined reference to `.Ltmp59'
collect2: ld error 1
Probably reason - optimization in x86 asm printer, that drops basic blocks
labels without uses. It ignores global variables like this:
@blocks3 = internal constant [4 x i8*] [i8* blockaddress(@cffti, %bb), i8*
blockaddress(@cffti, %bb1), i8* blockaddress(@cffti, %return), i8*
blockaddress(@cffti, %return)] ; <[4 x i8*]*> [#uses=1]
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 3 11:56:37 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 3 Oct 2010 11:56:37 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8287] New: Codegen takes a very long time
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8287
Summary: Codegen takes a very long time
Product: tools
Version: trunk
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: llc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sreeram at tachyontech.net
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5557)
--> (http://llvm.org/bugs/attachment.cgi?id=5557)
hello world program.
Running llc on the attached file takes a very long time, about 15 seconds on a
Core i7 MacBookPro.
This is on x86-64, but i've observed similar results on x86-32 as well.
Here's the output from "time llc -time-passes hello.ll":
$ time llc -time-passes hello.ll
===-------------------------------------------------------------------------===
Instruction Selection and Scheduling
===-------------------------------------------------------------------------===
Total Execution Time: 13.3722 seconds (13.3728 wall clock)
---User Time--- --System Time-- --User+System-- ---Wall Time--- ---
Name ---
10.8450 ( 86.4%) 0.7995 ( 98.0%) 11.6444 ( 87.1%) 11.6449 ( 87.1%)
Instruction Scheduling
0.7267 ( 5.8%) 0.0011 ( 0.1%) 0.7278 ( 5.4%) 0.7279 ( 5.4%) DAG
Combining 1
0.4943 ( 3.9%) 0.0051 ( 0.6%) 0.4995 ( 3.7%) 0.4995 ( 3.7%)
Instruction Selection
0.3998 ( 3.2%) 0.0010 ( 0.1%) 0.4008 ( 3.0%) 0.4009 ( 3.0%) DAG
Legalization
0.0267 ( 0.2%) 0.0022 ( 0.3%) 0.0290 ( 0.2%) 0.0290 ( 0.2%)
Vector Legalization
0.0218 ( 0.2%) 0.0044 ( 0.5%) 0.0262 ( 0.2%) 0.0262 ( 0.2%)
Instruction Creation
0.0230 ( 0.2%) 0.0002 ( 0.0%) 0.0232 ( 0.2%) 0.0232 ( 0.2%) DAG
Combining 2
0.0180 ( 0.1%) 0.0002 ( 0.0%) 0.0182 ( 0.1%) 0.0182 ( 0.1%) Type
Legalization
0.0011 ( 0.0%) 0.0018 ( 0.2%) 0.0030 ( 0.0%) 0.0030 ( 0.0%)
Instruction Scheduling Cleanup
0.0002 ( 0.0%) 0.0000 ( 0.0%) 0.0002 ( 0.0%) 0.0002 ( 0.0%) DAG
Combining after legalize types
12.5565 (100.0%) 0.8157 (100.0%) 13.3722 (100.0%) 13.3728 (100.0%) Total
===-------------------------------------------------------------------------===
DWARF Emission
===-------------------------------------------------------------------------===
Total Execution Time: 0.0009 seconds (0.0009 wall clock)
---User Time--- --System Time-- --User+System-- ---Wall Time--- ---
Name ---
0.0006 ( 89.9%) 0.0003 ( 83.0%) 0.0008 ( 87.6%) 0.0008 ( 88.2%) DWARF
Exception Writer
0.0001 ( 10.1%) 0.0001 ( 17.0%) 0.0001 ( 12.4%) 0.0001 ( 11.8%) DWARF
Debug Writer
0.0006 (100.0%) 0.0003 (100.0%) 0.0009 (100.0%) 0.0009 (100.0%) Total
===-------------------------------------------------------------------------===
... Pass execution timing report ...
===-------------------------------------------------------------------------===
Total Execution Time: 15.6307 seconds (15.6314 wall clock)
---User Time--- --System Time-- --User+System-- ---Wall Time--- ---
Name ---
12.7550 ( 87.3%) 0.9641 ( 94.4%) 13.7191 ( 87.8%) 13.7198 ( 87.8%) X86
DAG->DAG Instruction Selection
0.9878 ( 6.8%) 0.0018 ( 0.2%) 0.9896 ( 6.3%) 0.9896 ( 6.3%) Stack
Slot Coloring
0.7672 ( 5.3%) 0.0136 ( 1.3%) 0.7808 ( 5.0%) 0.7808 ( 5.0%)
Linear Scan Register Allocator
0.0097 ( 0.1%) 0.0299 ( 2.9%) 0.0396 ( 0.3%) 0.0396 ( 0.3%)
Machine Function Analysis
0.0168 ( 0.1%) 0.0031 ( 0.3%) 0.0199 ( 0.1%) 0.0199 ( 0.1%) X86
AT&T-Style Assembly Printer
0.0163 ( 0.1%) 0.0014 ( 0.1%) 0.0176 ( 0.1%) 0.0176 ( 0.1%) Live
Variable Analysis
0.0128 ( 0.1%) 0.0010 ( 0.1%) 0.0138 ( 0.1%) 0.0138 ( 0.1%) Live
Interval Analysis
0.0092 ( 0.1%) 0.0001 ( 0.0%) 0.0093 ( 0.1%) 0.0093 ( 0.1%)
Calculate spill weights
0.0038 ( 0.0%) 0.0016 ( 0.2%) 0.0054 ( 0.0%) 0.0054 ( 0.0%) Live
Stack Slot Analysis
0.0038 ( 0.0%) 0.0001 ( 0.0%) 0.0038 ( 0.0%) 0.0038 ( 0.0%)
Simple Register Coalescing
0.0034 ( 0.0%) 0.0004 ( 0.0%) 0.0037 ( 0.0%) 0.0037 ( 0.0%)
Two-Address instruction pass
0.0033 ( 0.0%) 0.0001 ( 0.0%) 0.0034 ( 0.0%) 0.0034 ( 0.0%)
Prolog/Epilog Insertion & Frame Finalization
0.0025 ( 0.0%) 0.0005 ( 0.0%) 0.0029 ( 0.0%) 0.0029 ( 0.0%) Slot
index numbering
0.0016 ( 0.0%) 0.0004 ( 0.0%) 0.0020 ( 0.0%) 0.0020 ( 0.0%)
Virtual Register Map
0.0014 ( 0.0%) 0.0002 ( 0.0%) 0.0016 ( 0.0%) 0.0017 ( 0.0%)
Peephole Optimizations
0.0016 ( 0.0%) 0.0001 ( 0.0%) 0.0016 ( 0.0%) 0.0016 ( 0.0%)
Remove dead machine instructions
0.0013 ( 0.0%) 0.0000 ( 0.0%) 0.0013 ( 0.0%) 0.0013 ( 0.0%) X86
FP Stackifier
0.0005 ( 0.0%) 0.0007 ( 0.1%) 0.0012 ( 0.0%) 0.0012 ( 0.0%) Basic
Alias Analysis (default AA impl)
0.0012 ( 0.0%) 0.0001 ( 0.0%) 0.0012 ( 0.0%) 0.0012 ( 0.0%)
Control Flow Optimizer
0.0011 ( 0.0%) 0.0000 ( 0.0%) 0.0012 ( 0.0%) 0.0012 ( 0.0%)
Process Implicit Definitions.
0.0007 ( 0.0%) 0.0004 ( 0.0%) 0.0011 ( 0.0%) 0.0011 ( 0.0%)
MachineDominator Tree Construction
0.0008 ( 0.0%) 0.0000 ( 0.0%) 0.0008 ( 0.0%) 0.0008 ( 0.0%)
Machine Common Subexpression Elimination
0.0004 ( 0.0%) 0.0004 ( 0.0%) 0.0008 ( 0.0%) 0.0008 ( 0.0%)
Machine Natural Loop Construction
0.0007 ( 0.0%) 0.0000 ( 0.0%) 0.0007 ( 0.0%) 0.0007 ( 0.0%)
Dominator Tree Construction
0.0007 ( 0.0%) 0.0000 ( 0.0%) 0.0007 ( 0.0%) 0.0007 ( 0.0%)
Subregister lowering instruction pass
0.0005 ( 0.0%) 0.0001 ( 0.0%) 0.0007 ( 0.0%) 0.0007 ( 0.0%)
MachineDominator Tree Construction
0.0006 ( 0.0%) 0.0001 ( 0.0%) 0.0006 ( 0.0%) 0.0006 ( 0.0%)
Optimize for code generation
0.0006 ( 0.0%) 0.0001 ( 0.0%) 0.0006 ( 0.0%) 0.0006 ( 0.0%)
Module Verifier
0.0005 ( 0.0%) 0.0000 ( 0.0%) 0.0005 ( 0.0%) 0.0005 ( 0.0%) SSE
execution domain fixup
0.0005 ( 0.0%) 0.0000 ( 0.0%) 0.0005 ( 0.0%) 0.0005 ( 0.0%)
Dominator Tree Construction
0.0004 ( 0.0%) 0.0000 ( 0.0%) 0.0004 ( 0.0%) 0.0004 ( 0.0%)
Dominator Tree Construction
0.0003 ( 0.0%) 0.0000 ( 0.0%) 0.0004 ( 0.0%) 0.0004 ( 0.0%)
Module Verifier
0.0002 ( 0.0%) 0.0001 ( 0.0%) 0.0003 ( 0.0%) 0.0003 ( 0.0%)
Machine Natural Loop Construction
0.0002 ( 0.0%) 0.0000 ( 0.0%) 0.0003 ( 0.0%) 0.0003 ( 0.0%)
Machine Instruction LICM
0.0002 ( 0.0%) 0.0000 ( 0.0%) 0.0003 ( 0.0%) 0.0003 ( 0.0%)
Natural Loop Information
0.0002 ( 0.0%) 0.0000 ( 0.0%) 0.0002 ( 0.0%) 0.0002 ( 0.0%)
MachineDominator Tree Construction
0.0002 ( 0.0%) 0.0000 ( 0.0%) 0.0002 ( 0.0%) 0.0002 ( 0.0%)
Remove unreachable blocks from the CFG
0.0002 ( 0.0%) 0.0000 ( 0.0%) 0.0002 ( 0.0%) 0.0002 ( 0.0%)
Machine Instruction LICM
0.0001 ( 0.0%) 0.0001 ( 0.0%) 0.0002 ( 0.0%) 0.0002 ( 0.0%)
Eliminate PHI nodes for register allocation
0.0001 ( 0.0%) 0.0000 ( 0.0%) 0.0002 ( 0.0%) 0.0002 ( 0.0%)
Remove unreachable machine basic blocks
0.0001 ( 0.0%) 0.0000 ( 0.0%) 0.0002 ( 0.0%) 0.0002 ( 0.0%)
Machine code sinking
0.0001 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%)
Exception handling preparation
0.0001 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) Tail
Duplication
0.0001 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%)
Preliminary module verification
0.0001 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%)
Machine Natural Loop Construction
0.0001 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%)
Scalar Evolution Analysis
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) X86
Maximal Stack Alignment Check
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) Tail
Duplication
0.0001 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%)
Machine Natural Loop Construction
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) Post
RA top-down list latency scheduler
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) Code
Placement Optimizater
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%)
Optimize machine instruction PHIs
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) Local
Stack Slot Allocation
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%)
Insert stack protectors
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%) Lower
Garbage Collection Instructions
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%)
Analyze Machine Code For Garbage Collection
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%)
Preliminary module verification
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%) 0.0001 ( 0.0%)
Delete Garbage Collector Information
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%)
Canonicalize natural loops
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%)
Create Garbage Collector Module Metadata
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%)
Canonicalize natural loops
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Loop
Strength Reduction
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%)
Induction Variable Users
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%)
Induction Variable Users
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%)
Machine Module Information
14.6093 (100.0%) 1.0214 (100.0%) 15.6307 (100.0%) 15.6314 (100.0%) Total
real 0m15.691s
user 0m14.638s
sys 0m1.039s
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 3 13:08:33 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 3 Oct 2010 13:08:33 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8283] Implement pavgusb 3dNow! instruction
In-Reply-To:
References:
Message-ID: <20101003180833.B60B82A6C130@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8283
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Summary|Implement pavgusb |Implement pavgusb 3dNow!
| |instruction
--- Comment #1 from Chris Lattner 2010-10-03 13:08:33 CDT ---
Implemented in r115466.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 3 13:54:15 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 3 Oct 2010 13:54:15 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8288] New: ffmpeg fails to compile with internal
assembler due to pshufw problem
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8288
Summary: ffmpeg fails to compile with internal assembler due to
pshufw problem
Product: clang
Version: trunk
Platform: PC
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ismail at namtrac.org
CC: llvmbugs at cs.uiuc.edu
Minimal test case:
[~]> cat t4.c
int main()
{
asm("pshufw $0x90, %mm0, %mm5");
}
[~]> clang t4.c
t4.c:3:9: error: invalid operand for instruction
asm("pshufw $0x90, %mm0, %mm5");
^
:1:9: note: instantiated into assembly here
pshufw $0x90, %mm0, %mm5
^
1 error generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 3 14:09:36 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 3 Oct 2010 14:09:36 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8288] ffmpeg fails to compile with internal
assembler due to pshufw problem
In-Reply-To:
References:
Message-ID: <20101003190936.370B62A6C130@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8288
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Lattner 2010-10-03 14:09:35 CDT ---
Fixed in r115473
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 3 14:26:32 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 3 Oct 2010 14:26:32 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8289] New: Implement pswapd mnemonic
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8289
Summary: Implement pswapd mnemonic
Product: clang
Version: trunk
Platform: PC
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ismail at namtrac.org
CC: llvmbugs at cs.uiuc.edu
Another one from ffmpeg:
[~]> clang t6.c
t6.c:3:9: error: invalid instruction mnemonic 'pswapd'
asm("pswapd %mm1,%mm3");
^
:1:2: note: instantiated into assembly here
pswapd %mm1,%mm3
^
1 error generated.
[~]> cat t6.c
int main()
{
asm("pswapd %mm1,%mm3");
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 3 14:27:52 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 3 Oct 2010 14:27:52 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8290] New: Implement pfpnacc mnemonic
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8290
Summary: Implement pfpnacc mnemonic
Product: clang
Version: trunk
Platform: PC
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ismail at namtrac.org
CC: llvmbugs at cs.uiuc.edu
Another one from ffmpeg:
[~]> cat t7.c
int main()
{
asm("pfpnacc %mm2, %mm0");
}
[cartman at havana][22:28:24]
[~]> clang t7.c
t7.c:3:9: error: invalid instruction mnemonic 'pfpnacc'
asm("pfpnacc %mm2, %mm0");
^
:1:2: note: instantiated into assembly here
pfpnacc %mm2, %mm0
^
1 error generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 3 15:27:47 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 3 Oct 2010 15:27:47 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8290] Implement pfpnacc mnemonic
In-Reply-To:
References:
Message-ID: <20101003202747.E1D152A6C130@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8290
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2010-10-03 15:27:47 CDT ---
r115477.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 3 15:28:02 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 3 Oct 2010 15:28:02 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8289] Implement pswapd mnemonic
In-Reply-To:
References:
Message-ID: <20101003202802.1EF562A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8289
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2010-10-03 15:28:01 CDT ---
r115477.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 4 08:36:17 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Oct 2010 08:36:17 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8292] New: Clang does not sufficiently check
completely defined-ness of class template
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8292
Summary: Clang does not sufficiently check completely
defined-ness of class template
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: schaub-johannes at web.de
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
This template definition is rejected by comeau and GCC but not really by Clang
template
struct A
{
struct B { };
void f() { }
struct C {
int c[sizeof(A::B)];
};
void g() { }
};
int main() {
A b;
b.f();
b.g();
}
Clang does accept all the code up to until "b.g()" complaining that "g" was not
declared:
main1.cpp:18:5: error: no member named 'g' in 'A'
b.g();
It appears to me that it causes an implicit instantiation of A at
"sizeof(A::B)" and instantiates declarations of A for up to until
A::C, ignoring any data and function members declared past A::C.
I think this example is ill-formed already at "sizeof(A::B)" by
[temp.inst]p6 "If an implicit instantiation of a class template specialization
is required and the template is declared but not defined, the program is
ill-formed.".
This also makes the second example of PR7308 which writes "friend
A::operator A();" ill-formed.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 4 11:03:45 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Oct 2010 11:03:45 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8294] New: Obvious inline missed
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8294
Summary: Obvious inline missed
Product: libraries
Version: 1.0
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Interprocedural Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: clattner at apple.com
CC: llvmbugs at cs.uiuc.edu
This (from GCC PR45791):
struct Base {
virtual ~Base() {}
virtual void f() = 0;
};
struct Derived : Base {
Derived();
virtual void f() {}
};
struct Foo {
Foo(Base&);
};
Derived::Derived() {
Foo foo(*this);
}
Foo::Foo(Base& base) {
base.f();
}
int main() {
Derived d;
}
Compiles into this with clang -O3:
... lots of stuff...
define void @_ZN7DerivedC2Ev(%struct.Derived* %this) ssp align 2 {
entry:
%0 = bitcast %struct.Derived* %this to i32 (...)***
%1 = bitcast %struct.Derived* %this to i8***
store i8** getelementptr inbounds ([5 x i8*]* @_ZTV7Derived, i64 0, i64 2),
i8*** %1,
align 8
call void @_ZN7Derived1fEv(%struct.Derived* %this)
ret void
}
define linkonce_odr void @_ZN7Derived1fEv(%struct.Derived* nocapture %this)
nounwind readnone ssp align 2 {
entry:
ret void
}
It looks like we devirtualized a bunch of stuff but didn't inline the call to
_ZN7Derived1fEv.
incidentally, searching the GCC bugzilla for 'mozilla' turns up a bunch of
other related examples.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 4 11:33:04 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Oct 2010 11:33:04 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8295] New: clang doesn't complain about partial
template function specializations
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8295
Summary: clang doesn't complain about partial template function
specializations
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
hummer:src thakis$ cat testspec.cc
template
void f(const T& t) {
}
template
struct C {
};
template
void f >(const C& t) {
}
# clang doesn't complain:
hummer:src thakis$ ~/src/llvm/Release+Asserts/bin/clang -c testspec.cc
# gcc does:
hummer:src thakis$ gcc -c testspec.cc
testspec.cc:10: error: function template partial specialization ?f >? is
not allowed
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 4 11:52:30 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Oct 2010 11:52:30 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8275] LLVM lexical block tag number incorrect
In-Reply-To:
References:
Message-ID: <20101004165230.426592A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8275
Devang Patel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Devang Patel 2010-10-04 11:52:30 CDT ---
Good catch. This was wrong from day one!
Fixed in r115516.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 4 14:24:44 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Oct 2010 14:24:44 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8296] New: Assertion `!Type.isNull() && "builtin va
list type not initialized!"' failed
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8296
Summary: Assertion `!Type.isNull() && "builtin va list type not
initialized!"' failed
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: grzegorz.dabrowski at gmail.com
CC: llvmbugs at cs.uiuc.edu
clang version 2.9 (trunk 115541)
Target: i386-pc-linux-gnu
Thread model: posix
Test case:
extern "C" int vsnprintf(char *string, int size, char const *format,
__builtin_va_list ap);
void f() {
vsnprintf(__null, 0, __null, __null);
}
Output:
clang: ASTContext.cpp:5287: clang::QualType DecodeTypeFromStr(char const *&,
clang::ASTContext &, ASTContext::GetBuiltinTypeError &, bool &, bool):
Assertion `!Type.isNull() && "builtin va list type not initialized!"' failed.
0 clang 0x0947b42b
Stack dump:
0. Program arguments:
/home/stuff/download/SCM/llvm/Release+Asserts/bin/clang -cc1 -triple
i386-pc-linux-gnu -S -disable-free -main-file-name va.cpp -mrelocation-model
static -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4
-target-linker-version 2.20.51 -resource-dir
/home/stuff/download/SCM/llvm/Release+Asserts/lib/clang/2.9 -O0 -ferror-limit
19 -fmessage-length 158 -fexceptions -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-YJkhfG.s -x c++ tests-my/va.cpp
1. tests-my/va.cpp:4:44: current parser token ')'
2. tests-my/va.cpp:3:10: parsing function body 'f'
3. tests-my/va.cpp:3:10: in compound statement ('{}')
clang: error: clang frontend 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 Mon Oct 4 14:35:27 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Oct 2010 14:35:27 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8296] Assertion `!Type.isNull() && "builtin va list
type not initialized!"' failed
In-Reply-To:
References:
Message-ID: <20101004193527.0FDBC2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8296
Grzegorz Dabrowski changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Grzegorz Dabrowski 2010-10-04 14:35:26 CDT ---
*** This bug has been marked as a duplicate of bug 8284 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 4 14:59:59 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Oct 2010 14:59:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 1718] Nightly Tester script should checkout llvm-gcc
In-Reply-To:
References:
Message-ID: <20101004200000.0658D2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=1718
Daniel Dunbar changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |daniel at zuster.org
Resolution| |WONTFIX
--- Comment #1 from Daniel Dunbar 2010-10-04 14:59:59 CDT ---
The nightly test script is dying.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 4 17:00:18 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Oct 2010 17:00:18 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8297] New: machine licm crash on atomic cmpswap i64
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8297
Summary: machine licm crash on atomic cmpswap i64
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu
The attached testcase crashes:
nlewycky at ducttape:~$ llvm/Debug+Asserts/bin/llc c.ll
0 llc 0x00000000013b20ad
1 llc 0x00000000013b1ea0
2 libpthread.so.0 0x00007f26c08a98f0
3 llc 0x00000000009f3e1a llvm::Type::isPointerTy() const + 12
4 llc 0x0000000001306619 llvm::Value::getUnderlyingObject(unsigned
int) + 35
5 llc 0x00000000010221dc llvm::Value::getUnderlyingObject(unsigned
int) const + 32
6 llc 0x000000000117944a
7 llc 0x0000000000e3d851
llvm::AliasAnalysis::pointsToConstantMemory(llvm::Value const*) + 79
8 llc 0x0000000000fa587a
9 llc 0x0000000000fa59c1
10 llc 0x0000000000fa6315
11 llc 0x0000000000fa5368
12 llc 0x0000000000fa45a5
13 llc 0x0000000000f9c409
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 95
14 llc 0x00000000012df461
llvm::FPPassManager::runOnFunction(llvm::Function&) + 407
15 llc 0x00000000012df67e
llvm::FPPassManager::runOnModule(llvm::Module&) + 102
16 llc 0x00000000012df9b1
llvm::MPPassManager::runOnModule(llvm::Module&) + 459
17 llc 0x00000000012dfef1 llvm::PassManagerImpl::run(llvm::Module&)
+ 125
18 llc 0x00000000012e0447 llvm::PassManager::run(llvm::Module&) +
39
19 llc 0x00000000009cd373 main + 2341
20 libc.so.6 0x00007f26bfb83c4d __libc_start_main + 253
21 llc 0x00000000009cc349
Stack dump:
0. Program arguments: llvm/Debug+Asserts/bin/llc c.ll
1. Running pass 'Function Pass Manager' on module 'c.ll'.
2. Running pass 'Machine Instruction LICM' on function
'@_ZN4base6subtle25NoBarrier_AtomicIncrementEPVxx'
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 Mon Oct 4 21:36:06 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Oct 2010 21:36:06 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8175] Destructors for stack variables not firing on
goto from scope
In-Reply-To:
References:
Message-ID: <20101005023606.D02882A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8175
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #3 from John McCall 2010-10-04 21:36:06 CDT ---
The new test case is fixed in r115586, 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 Oct 4 21:55:25 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 4 Oct 2010 21:55:25 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8300] New: Crash when linking two bitcode files
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8300
Summary: Crash when linking two bitcode files
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Linker
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
Found while trying to bootstrap clang with LTO:
$ llvm-link -o foo.bc PassManager.o Pass.o
llvm-link: /home/espindola/llvm/llvm/lib/VMCore/Globals.cpp:230:
llvm::GlobalAlias::GlobalAlias(const llvm::Type*,
llvm::GlobalValue::LinkageTypes, const llvm::Twine&, llvm::Constant*,
llvm::Module*): Assertion `aliasee->getType() == Ty && "Alias and aliasee types
should match!"' 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 Oct 5 06:12:09 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Oct 2010 06:12:09 -0500 (CDT)
Subject: [LLVMbugs] [Bug 3803] Cannot bootstrap llvm-gcc on Tiger (with
Xcode 2.5 tools)
In-Reply-To:
References:
Message-ID: <20101005111209.BD0532A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=3803
Gabor Greif changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #2 from Gabor Greif 2010-10-05 06:12:09 CDT ---
Tiger is not supported any more. Will not fix.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Oct 5 06:16:18 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Oct 2010 06:16:18 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6513] crash on invalid (enum forward decl in
template arg list)
In-Reply-To:
References:
Message-ID: <20101005111618.D687B2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6513
Gabor Greif changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Gabor Greif 2010-10-05 06:16:18 CDT ---
A recent clang does give sensible error messages and does not crash any more:
gabor at google7:~$ cat > goo.cpp
template class GOVERN>
class Role : public FACILITY, protected GOVERN
{
friend class GOVERN;
};
gabor at google7:~$ ~/llvm-build/Debug+Asserts/bin/clang++ -o hh goo.cpp
goo.cpp:1:16: error: ISO C++ forbids forward references to 'enum' types
template
References:
Message-ID: <20101005145904.980622A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7374
Nathan Whitehorn changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Nathan Whitehorn 2010-10-05 09:59:03 CDT ---
This appears to have been fixed at some point. Revision 115520 no longer
exhibits this behavior.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 5 11:27:00 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Oct 2010 11:27:00 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8284] use of 'vsnprintf' causes backend crash
In-Reply-To:
References:
Message-ID: <20101005162700.F1F932A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8284
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Oct 5 14:48:43 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Oct 2010 14:48:43 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8278] MC-COFF: Incorrect relocations generated for
string constants... again...
In-Reply-To:
References:
Message-ID: <20101005194843.761A42A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8278
Michael Spencer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Michael Spencer 2010-10-05 14:48:43 CDT ---
Wow, I missed an obvious piece of information. The value stored at the
VirtualAddress in the section is used as the offset. No idea how I forgot that
one. The fix is the same fix as in r110104.
Fixed in r115656.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 5 17:41:22 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Oct 2010 17:41:22 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8307] New: Cannot compile mmx-builtins.c on MSVC
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8307
Summary: Cannot compile mmx-builtins.c on MSVC
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: Headers
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: wendling at apple.com
CC: llvmbugs at cs.uiuc.edu
The testcase CodeGen/mmx-builtins.c fails as below on the clang-i686-xp-msvc9
buildbot. It looks like something wrong the header files? It's trying to
#include errno.h, but can't find it.
******************** TEST 'Clang :: CodeGen/mmx-builtins.c' FAILED
********************Script:
--
D:/public/zorg/buildbot/osuosl/slave/clang-i686-xp-msvc9/llvm/build/bin/Debug\clang.EXE
-cc1
D:\public\zorg\buildbot\osuosl\slave\clang-i686-xp-msvc9\llvm\tools\clang\test\CodeGen\mmx-builtins.c
-O3 -triple=x86_64-apple-darwin -target-feature +ssse3 -S -o - | FileCheck
D:\public\zorg\buildbot\osuosl\slave\clang-i686-xp-msvc9\llvm\tools\clang\test\CodeGen\mmx-builtins.c
--
Exit Code: 1
Command Output (stdout):
--
Command 0:
"D:/public/zorg/buildbot/osuosl/slave/clang-i686-xp-msvc9/llvm/build/bin/Debug\clang.EXE"
"-cc1"
"D:\public\zorg\buildbot\osuosl\slave\clang-i686-xp-msvc9\llvm\tools\clang\test\CodeGen\mmx-builtins.c"
"-O3" "-triple=x86_64-apple-darwin" "-target-feature" "+ssse3" "-S" "-o" "-"
Command 0 Result: 1
Command 0 Output:
Command 0 Stderr:
In file included from
D:\public\zorg\buildbot\osuosl\slave\clang-i686-xp-msvc9\llvm\tools\clang\test\CodeGen\mmx-builtins.c:3:
In file included from
D:/public/zorg/buildbot/osuosl/slave/clang-i686-xp-msvc9/llvm/build/bin/lib/clang/2.9/include/tmmintrin.h:31:
In file included from
D:/public/zorg/buildbot/osuosl/slave/clang-i686-xp-msvc9/llvm/build/bin/lib/clang/2.9/include/pmmintrin.h:31:
In file included from
D:/public/zorg/buildbot/osuosl/slave/clang-i686-xp-msvc9/llvm/build/bin/lib/clang/2.9/include/emmintrin.h:31:
In file included from
D:/public/zorg/buildbot/osuosl/slave/clang-i686-xp-msvc9/llvm/build/bin/lib/clang/2.9/include/xmmintrin.h:37:
D:/public/zorg/buildbot/osuosl/slave/clang-i686-xp-msvc9/llvm/build/bin/lib/clang/2.9/include/mm_malloc.h:27:10:
fatal error: 'errno.h' file not found
#include
^
1 error generated.
Command 1: "FileCheck"
"D:\public\zorg\buildbot\osuosl\slave\clang-i686-xp-msvc9\llvm\tools\clang\test\CodeGen\mmx-builtins.c"
Command 1 Result: 1
Command 1 Output:
Command 1 Stderr:
D:\public\zorg\buildbot\osuosl\slave\clang-i686-xp-msvc9\llvm\tools\clang\test\CodeGen\mmx-builtins.c:6:12:
error: expected string not found in input
// CHECK: phaddw
^
:1:1: note: scanning from here
^
--
********************
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Oct 5 17:48:15 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Oct 2010 17:48:15 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8308] New: Module Verify is accepting bad LLVM IR
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8308
Summary: Module Verify is accepting bad LLVM IR
Product: tools
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: opt
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bnwest at rice.edu
CC: llvmbugs at cs.uiuc.edu
As seen at revision 115615, the following IR is bad yet verify accepts:
define float @bug_loop_v2(float* %a, i32 %start, i32 %stop, i32 %incr) nounwind
ssp {
entry:
%"alloca point" = bitcast i32 0 to i32
%0 = sub nsw i32 %start, 1
%1 = sext i32 %0 to i64
%2 = getelementptr float* %a, i64 %1
br label %bb1
bb: ; preds = %bb1
%3 = load float* %8, align 1
%4 = fadd float %3, %sum.0
%5 = getelementptr float* %8, %8
%6 = add i64 %9, %9
%7 = add nsw i32 %i.0, %i.0
br label %bb1
bb1: ; preds = %bb, %entry
%8 = phi float* [ %2, %entry ], [ %5, %bb ]
%9 = phi i64 [ %1, %entry ], [ %6, %bb ]
%i.0 = phi i32 [ %0, %entry ], [ %7, %bb ]
%sum.0 = phi float [ 0.000000e+00, %entry ], [ %4, %bb ]
%10 = icmp slt i32 %i.0, %stop
br i1 %10, label %bb, label %bb2
bb2: ; preds = %bb1
br label %return
return: ; preds = %bb2
ret float %sum.0
}
---
%5 = getelementptr float* %8, %8
is the bad IR.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 5 21:44:46 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Oct 2010 21:44:46 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8075] False positive with -Wuninitialized when
accessing *static* class members
In-Reply-To:
References:
Message-ID: <20101006024446.C5B412A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8075
Anders Carlsson changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |andersca at mac.com
Resolution| |FIXED
--- Comment #1 from Anders Carlsson 2010-10-05 21:44:46 CDT ---
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20101004/035173.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 Tue Oct 5 22:30:08 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Oct 2010 22:30:08 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8307] Cannot compile mmx-builtins.c on MSVC
In-Reply-To:
References:
Message-ID: <20101006033008.BDE642A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8307
Bill Wendling changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |wendling at apple.com
Resolution| |DUPLICATE
--- Comment #1 from Bill Wendling 2010-10-05 22:30:08 CDT ---
This is apparently PR6658.
*** This bug has been marked as a duplicate of bug 6658 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 5 22:33:04 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Oct 2010 22:33:04 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8307] Cannot compile mmx-builtins.c on MSVC
In-Reply-To:
References:
Message-ID: <20101006033304.933C52A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8307
Bill Wendling changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|DUPLICATE |
--- Comment #2 from Bill Wendling 2010-10-05 22:33:04 CDT ---
Nope. PR6658 is different...
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 5 23:22:59 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Oct 2010 23:22:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8310] New: Assertion !Type.isNull() && "buitin va
list type not initialized!" failed.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8310
Summary: Assertion !Type.isNull() && "buitin va list type not
initialized!" failed.
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jplevyak at acm.org
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=5565)
--> (http://llvm.org/bugs/attachment.cgi?id=5565)
clang output including backtrace
While compiling trunk of http://trafficserver.apache.org:
svn http://svn.apache.org/repos/asf/trafficserver/
with the clang patch from:
https://issues.apache.org/jira/browse/TS-427
https://issues.apache.org/jira/secure/attachment/12454729/ats-trunk.clang-trunk.patch
See attached output including backtrace.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 5 23:51:13 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 5 Oct 2010 23:51:13 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8311] New: test/CodeGen/X86/vec_cast.ll barfs with
-mtriple=x86_64-(mingw32|win32)
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8311
Summary: test/CodeGen/X86/vec_cast.ll barfs with
-mtriple=x86_64-(mingw32|win32)
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: geek4civic at gmail.com
CC: llvmbugs at cs.uiuc.edu
vec_cast.ll has 2 actions below.
; RUN: llc < %s -march=x86-64 -mcpu=core2
; RUN: llc < %s -march=x86-64 -mcpu=core2 -disable-mmx
llc barfs on mingw(and maybe msvc) or with -mtriple=x86_64-(mingw32|win32).
I guess this test might pass also for win64.
On CentOS5(x86-64)
$ Release+Asserts/bin/llc -mtriple=x86_64-win32 -mcpu=core2 <
~/llvm/test/CodeGen/X86/vec_cast.ll
llc: /home/chapuni/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1345:
llvm::SDValue::SelectionDAGLegalize::LegalizeOp(llvm::SDValue):
Assertion `ExtType != ISD::EXTLOAD && "EXTLOAD should always be supported!"'
failed.
0 llc 0x0000000000dd59af
1 llc 0x0000000000dd7c72
2 libpthread.so.0 0x00000039de00eb10
3 libc.so.6 0x00000039dd430265 gsignal + 53
4 libc.so.6 0x00000039dd431d10 abort + 272
5 libc.so.6 0x00000039dd4296e6 __assert_fail + 246
6 llc 0x0000000000982d32
7 llc 0x000000000097d5ae
8 llc 0x0000000000982790
9 llc 0x000000000098582a
10 llc 0x0000000000985fa5
llvm::SelectionDAG::Legalize(llvm::CodeGenOpt::Level) + 197
11 llc 0x000000000094aae3
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 979
12 llc 0x000000000094d096
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator, llvm::ilist_iterator, bool&) + 262
13 llc 0x000000000094d69f
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1487
14 llc 0x000000000094e1f8
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 248
15 llc 0x0000000000d1f47d
llvm::FPPassManager::runOnFunction(llvm::Function&) + 557
16 llc 0x0000000000d1f57b
llvm::FPPassManager::runOnModule(llvm::Module&) + 75
17 llc 0x0000000000d200d4
llvm::MPPassManager::runOnModule(llvm::Module&) + 500
18 llc 0x0000000000d20457 llvm::PassManagerImpl::run(llvm::Module&)
+ 167
19 llc 0x00000000005517bd main + 3581
20 libc.so.6 0x00000039dd41d994 __libc_start_main + 244
21 llc 0x000000000054f899 __gxx_personality_v0 + 697
Stack dump:
0. Program arguments: Release+Asserts/bin/llc -mtriple=x86_64-win32
-mcpu=core2
1. Running pass 'Function Pass Manager' on module ''.
2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@a'
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 Oct 6 02:29:40 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Oct 2010 02:29:40 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8312] New: clang doesn't handle -M/-MF properly
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8312
Summary: clang doesn't handle -M/-MF properly
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nicholas at mxc.ca
CC: llvmbugs at cs.uiuc.edu, daniel at zuster.org
There's a couple problems with the handling of the -MF flag. Let's compare with
gcc 4.2:
$ gcc-4.2 hello.c -M -MF hello.d -c -o hello.o
$ file hello.d hello.o
hello.d: ASCII text
hello.o: empty
$ rm hello.d hello.o
$ clang hello.c -M -MF hello.d -c -o hello.o
clang: warning: argument unused during compilation: '-MF hello.d'
clang: warning: argument unused during compilation: '-c'
$ llvm-commit/Debug+Asserts/bin/clang hello.c -MF hello.d -o hello.o
$ file hello.d hello.o
hello.d: ERROR: cannot open `hello.d' (No such file or directory)
hello.o: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically
linked (uses shared libs), for GNU/Linux 2.6.18, not stripped
I see two problems:
- GCC requires either -M or -MM whenever -MF is specified. Clang forbids them.
- Clang doesn't respect both -c and -M at the same time.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Oct 6 10:11:21 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Oct 2010 10:11:21 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8313] New: Use after free in the linker
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8313
Summary: Use after free in the linker
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Linker
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
To reproduce:
valgrind --num-callers=50
/home/espindola/llvm/build/Debug+Asserts/bin/llvm-link -o foo BasicBlock.o
LLVMContextImpl.o Metadata.o Value.o
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 6 10:36:29 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Oct 2010 10:36:29 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8310] Assertion !Type.isNull() && "buitin va list
type not initialized!" failed.
In-Reply-To:
References:
Message-ID: <20101006153629.0AB7E2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8310
John Plevyak changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from John Plevyak 2010-10-06 10:36:28 CDT ---
This bug was resolved.
Tested in 115787.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 6 11:28:29 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Oct 2010 11:28:29 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8314] New: Incorrect code generated with prototypes
and old-style function definitions.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8314
Summary: Incorrect code generated with prototypes and old-style
function definitions.
Product: clang
Version: 2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nbowler at draconx.ca
CC: llvmbugs at cs.uiuc.edu
When using old-style function definitions, clang seems to be ignoring any
prototypes that occur prior to the definition. This causes incorrect
code to be generated because required conversions are not performed.
Consider the following example:
#include
void foo(int);
void foo(x)
int x;
{
printf("%d\n", x);
}
int main(void)
{
/* The double argument here should be converted
to int according to the prototype. */
foo(42.0);
return 0;
}
But running clang test.c emits the following code for main:
0000000000400570 :
400570: 55 push %rbp
400571: 48 89 e5 mov %rsp,%rbp
400574: 48 83 ec 10 sub $0x10,%rsp
400578: b8 00 00 00 00 mov $0x0,%eax
40057d: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%rbp)
400584: f2 0f 10 05 04 01 00 movsd 0x104(%rip),%xmm0 #
400690 <_IO_stdin_used+0x8>
40058b: 00
40058c: 89 45 f8 mov %eax,-0x8(%rbp)
40058f: b0 01 mov $0x1,%al
400591: e8 aa ff ff ff callq 400540
400596: 8b 45 f8 mov -0x8(%rbp),%eax
400599: 48 83 c4 10 add $0x10,%rsp
40059d: 5d pop %rbp
40059e: c3 retq
40059f: 90 nop
which, of course, means foo is passed whatever happened to be in %edi at the
time, rather than 42 as expected (e.g., it prints the number of command-line
arguments on my system).
If the prototype is moved after the function definition, the program works
properly.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 6 12:48:41 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Oct 2010 12:48:41 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8315] New: Report error when applying a
pointer-to-const-member-function to non-const object
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8315
Summary: Report error when applying a
pointer-to-const-member-function to non-const object
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: benoit.belley at autodesk.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=5573)
--> (http://llvm.org/bugs/attachment.cgi?id=5573)
Test case
IClang fails to report an error when applying a pointer to a const member
function to non-const reference or pointer as demonstrated by the following
code example:
-----------------------------------------------------------------------------------------------------
class ClassA {};
typedef void (ClassA::*PtrToMem)();
typedef void (ClassA::*PtrToConstMem)() const;
void foo(
ClassA a,
const ClassA& a_const,
ClassA* ap,
const ClassA* ap_const,
PtrToMem ptr_to_mem,
PtrToConstMem ptr_to_const_mem
) {
(a.*ptr_to_mem)();
(a.*ptr_to_const_mem)();
(a_const.*ptr_to_mem)(); // expected-error{{invalid conversion from
'const ClassA*' to 'ClassA*'}}
(a_const.*ptr_to_const_mem)();
(ap->*ptr_to_mem)();
(ap->*ptr_to_const_mem)();
(ap_const->*ptr_to_mem)(); // expected-error{{invalid conversion from
'const ClassA*' to 'ClassA*'}}
(ap_const->*ptr_to_const_mem)();
}
-----------------------------------------------------------------------------------------------------
$ llvm/Debug+Asserts/bin/clang++ -c ptr_to_const_mem_bug.cpp
$
-----------------------------------------------------------------------------------------------------
I am currently using the SVN revision 114947 of clang.
Note that both the GNU g++ compiler and the Intel C++ compiler are properly
reporting the errors:
-----------------------------------------------------------------------------------------------------
$ g++ -c ptr_to_const_mem_bug.cpp
ptr_to_const_mem_bug.cpp: In function 'void foo(ClassA, const ClassA&, ClassA*,
const ClassA*, void (ClassA::*)(), void (ClassA::*)()const)':
ptr_to_const_mem_bug.cpp:18: error: invalid conversion from 'const ClassA*' to
'ClassA*'
ptr_to_const_mem_bug.cpp:24: error: invalid conversion from 'const ClassA*' to
'ClassA*?
$ icpc -c ptr_to_const_mem_bug.cpp
ptr_to_const_mem_bug.cpp(18): error: the object has cv-qualifiers that are not
compatible with the member function
object type is: const ClassA
(a_const.*ptr_to_mem)(); // expected-error{{invalid conversion from
'const ClassA*' to 'ClassA*'}}
^
ptr_to_const_mem_bug.cpp(24): error: the object has cv-qualifiers that are not
compatible with the member function
object type is: const ClassA
(ap_const->*ptr_to_mem)(); // expected-error{{invalid conversion from
'const ClassA*' to 'ClassA*'}}
^
compilation aborted for ptr_to_const_mem_bug.cpp (code 2)
$
-----------------------------------------------------------------------------------------------------
Cheers,
Benoit
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 6 17:00:25 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Oct 2010 17:00:25 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8317] New: X86InstrInfo::convertToThreeAddress
violates register class constraints
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8317
Summary: X86InstrInfo::convertToThreeAddress violates register
class constraints
Product: libraries
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: stoklund at 2pi.dk
CC: llvmbugs at cs.uiuc.edu
X86InstrInfo::convertToThreeAddress can change an SHL instruction into an LEA.
This can break register class constraints because LEA cannot take ESP as an
offset while SHL can.
LEA requires a GR32_NOSP register while SHL only requires a GR32.
This is an academic exercise since ESP is always reserved anyway, so it doesn't
cause any invalid code to be generated.
It does break the machine code verifier, though.
X86InstrInfo::convertToThreeAddress should switch the regclass of SrcReg from
GR32 to GR32_NOSP, and we may want to use GR32_NOSP as the default class for
i32 values.
The same applies to GR64_NOSP.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 6 17:39:34 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Oct 2010 17:39:34 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8318] New: ARM EABI: inefficient code
saving/restoring sp around function call
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8318
Summary: ARM EABI: inefficient code saving/restoring sp around
function call
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: john at bass-software.com
CC: llvmbugs at cs.uiuc.edu
ToT & built both llvm-gcc and clang for arm-unknown-eabi target.
This simple C program:
--8<--
int foo(int a);
int
bar (int a)
{
return 5 + foo(a);
}
--8<--
Get compiled with clang as:
$ clang -ccc-host-triple armv7-unknown-eabi -S -O3 -o test1.S test1.c && cat
test1.S
--8<--
.syntax unified
.cpu cortex-a8
.eabi_attribute 10, 2
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.file "test1.c"
.text
.globl bar
.align 2
.type bar,%function
bar:
push {r11, lr}
bl foo
mov r11, sp <== ???
add r0, r0, #5
mov sp, r11 <== ???
ldmia sp!, {r11, pc}
.Ltmp0:
.size bar, .Ltmp0-bar
--8<--
I.e. the save & restore of sp is very odd and unnecessary IMHO.
When using llvm-gcc I don't get that output:
$ arm-unknown-eabi-gcc -mcpu=cortex-a8 -O3 -S -O3 -o test1.S test1.c && cat
test1.S
--8<--
.syntax unified
.cpu cortex-a8
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.file "test1.c"
.text
.globl bar
.align 2
.type bar,%function
bar:
push {r11, lr}
bl foo
add r0, r0, #5
ldmia sp!, {r11, pc}
.Ltmp0:
.size bar, .Ltmp0-bar
.ident "GCC: (GNU) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build)"
--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 Wed Oct 6 19:07:52 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Oct 2010 19:07:52 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8317] X86InstrInfo::convertToThreeAddress violates
register class constraints
In-Reply-To:
References:
Message-ID: <20101007000752.F08432A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8317
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Jakob Stoklund Olesen 2010-10-06 19:07:52 CDT ---
Fixed in r115879
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 6 20:55:43 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Oct 2010 20:55:43 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8319] New: clang -O can't build ruby trunk
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8319
Summary: clang -O can't build ruby trunk
Product: clang
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: naruse at airemix.jp
CC: llvmbugs at cs.uiuc.edu
clang -O can't build ruby trunk, but clang -O0 can build ruby trunk.
So it seems some optimization breaks ruby.
Ruby's code can be obtain from http://svn.ruby-lang.org/
and I tried with following:
--
Ruby: r29419 on x86_64-freebsd8.1
clang version 2.9 (trunk 115816)
Target: x86_64-unknown-freebsd8.1
Thread model: posix
--
And its build process will crashes like following:
--
snipped...
/home/naruse/local/llvm/bin/clang -O -g -Wall -pedantic -Wno-long-long -Wno-gnu
-Wno-unknown-pragmas -fPIC -I. -I.ext/include/x86_64-freebsd8.1
-I../../src/ruby-trunk/include -I../../src/ruby-trunk -include ruby/config.h
-include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT -o dmyext.o -c
../../src/ruby-trunk/dmyext.c
/home/naruse/local/llvm/bin/clang -O -g -Wall -pedantic -Wno-long-long -Wno-gnu
-Wno-unknown-pragmas -fPIC -L. -rdynamic main.o dmydln.o dmyencoding.o
dmyversion.o miniprelude.o array.o bignum.o class.o compar.o complex.o
dir.o dln_find.o enum.o enumerator.o error.o eval.o load.o proc.o
file.o gc.o hash.o inits.o io.o marshal.o math.o node.o numeric.o
object.o pack.o parse.o process.o random.o range.o rational.o re.o
regcomp.o regenc.o regerror.o regexec.o regparse.o regsyntax.o ruby.o
safe.o signal.o sprintf.o st.o strftime.o string.o struct.o time.o
transcode.o util.o variable.o compile.o debug.o iseq.o vm.o vm_dump.o
thread.o cont.o ascii.o us_ascii.o unicode.o utf_8.o newline.o close.o
dmyext.o -lthr -lrt -lcrypt -lm -o miniruby
clang: warning: argument unused during compilation: '-g'
clang: warning: argument unused during compilation: '-rdynamic'
/usr/local/bin/ld: error in /usr/lib/crtend.o(.eh_frame); no .eh_frame_hdr
table will be created.
:1: [BUG] Segmentation fault
ruby 1.9.3dev (2010-10-07 trunk 29420) [x86_64-freebsd8.1]
-- control frame ----------
c:0003 p:0002 s:0006 b:0006 l:000005 d:000005 TOP :1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0008e8 d:0008e8 TOP
---------------------------
-- Ruby level backtrace information ----------------------------------------
:1:in `'
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
*** Signal 6
Stop in /home/naruse/obj/ruby-clang.
--
The crashed binary, miniruby, is a ruby subset binary to make full ruby's
files.
In my understanding, it is happend on insns.def:868.
--
860 DEFINE_INSN
861 trace
862 (rb_num_t nf)
863 ()
864 ()
865 {
866 rb_event_flag_t flag = (rb_event_flag_t)nf;
867
868 EXEC_EVENT_HOOK(th, flag, GET_SELF(), 0, 0 /* TODO: id, klass */);
869 }
--
And this GET_SELF() is:vm_insnhelper.h:146:
#define GET_SELF() (USAGE_ANALYSIS_REGISTER_HELPER(5, 0, GET_CFP()->self))
GET_CFP() is:
112 #define GET_CFP() (USAGE_ANALYSIS_REGISTER_HELPER(2, 0, REG_CFP))
REG_CFP is:
81 #define REG_CFP (reg_cfp)
This reg_cfp's value is vanished on clang -O, and crash.
If I change Ruby's code as it uses reg_cfp before this, clang seems not
optimize reg_cfp and ruby works well.
--- insns.def (revision 29420)
+++ insns.def (working copy)
@@ -864,6 +864,7 @@
()
{
rb_event_flag_t flag = (rb_event_flag_t)nf;
+ if (!reg_cfp) sleep(1);
EXEC_EVENT_HOOK(th, flag, GET_SELF(), 0, 0 /* TODO: id, klass */);
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 6 21:24:52 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Oct 2010 21:24:52 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8320] New: PECOFF: IMAGE_SYM_DTYPE_FUNCTION is
incompatible to GNU binutils
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8320
Summary: PECOFF: IMAGE_SYM_DTYPE_FUNCTION is incompatible to
GNU binutils
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: ASSIGNED
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: bigcheesegs at gmail.com
ReportedBy: geek4civic at gmail.com
CC: llvmbugs at cs.uiuc.edu
GNU ld/PECOFF assumes .type 0x20 for function.
LLVM emits .type 0x200, and GNU ld complains with warnings.
(it might be harmless for execution)
| c:/msysgit/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe:
Warning: type of symbol `_main' changed from 32 to 512 in
utils/not/Release/not.o
in include/llvm/Support/COFF.h,
IMAGE_SYM_DTYPE_FUNCTION = 2, ///< A function that returns a base type.
/// Type is formed as (base + (derived << SCT_COMPLEX_TYPE_SHIFT))
SCT_COMPLEX_TYPE_SHIFT = 8
it should be not 8 but 4 for compatibility to GNU binutils.
FYI I have never met .type 0x200 even in object files emitted by MSVS8.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 6 22:04:01 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Oct 2010 22:04:01 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8321] New: MC-COFF: bogus reloc fixups to disp8/32
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8321
Summary: MC-COFF: bogus reloc fixups to disp8/32
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: ASSIGNED
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: bigcheesegs at gmail.com
ReportedBy: geek4civic at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5576)
--> (http://llvm.org/bugs/attachment.cgi?id=5576)
pecoff object file w/o mc
; foo.ll
define void @foo() {
e:
br label %i
i:
br label %i
}
define void @bar() {
e:
br label %i
i:
br label %i
}
define void @baz() {
e:
call void @baz()
ret void
}
$ llc < foo.ll | as -o as-foo.o
$ llc -filetype=obj foo.ll -o mc-foo.o
* Disassembly of as-foo.o:
00000000 <_foo>:
0: eb fe jmp 0 <_foo>
00000010 <_bar>:
10: eb fe jmp 10 <_bar>
00000020 <_baz>:
20: 83 ec 04 sub $0x4,%esp
23: e8 f8 ff ff ff call 20 <_baz>
28: 83 c4 04 add $0x4,%esp
2b: c3 ret
* Disassembly of mc-foo.o:
00000000 <_foo>:
0: e9 00 00 00 00 jmp 5 <_foo+0x5>
00000010 <_bar>:
10: e9 10 00 00 00 jmp 25 <_baz+0x5>
00000020 <_baz>:
20: 83 ec 04 sub $0x4,%esp
23: e8 00 00 00 00 call 28 <_baz+0x8>
28: 83 c4 04 add $0x4,%esp
2b: c3 ret
mc-foo.o has also *unneeded* relocations.
RELOCATION RECORDS FOR [.text]:
OFFSET TYPE VALUE
00000001 DISP32 .text
00000011 DISP32 .text
00000024 DISP32 _baz+0xffffffe0
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 6 22:07:29 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 6 Oct 2010 22:07:29 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8322] New: Clang 2.8 Compile fails with: "address
of overloaded function 'XXX' cannot be converted to type 'YYY' ",
succeeds in GCC 4.4.1
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8322
Summary: Clang 2.8 Compile fails with: "address of overloaded
function 'XXX' cannot be converted to type 'YYY' ",
succeeds in GCC 4.4.1
Product: clang
Version: 2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: andy.somerville at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=5578)
--> (http://llvm.org/bugs/attachment.cgi?id=5578)
attachment version of failure example to make downloading easier
A somewhat complex code fails with:
error: address of overloaded function 'XXX' cannot be converted to type 'YYY'
Full details:
c++ src/failure.cpp
src/failure.cpp:19:65: error: address of overloaded function
'defaultMessageCreateFunction' cannot be converted to type
'function ()> const'
const function(void)>& factory_fn =
defaultMessageCreateFunction) {}
^
src/failure.cpp:30:13: note: in instantiation of default function argument
expression for 'init' required here
ops.template init(bind(fp, obj, _1));
^
src/failure.cpp:43:13: note: in instantiation of function template
specialization 'Foo::subscribe'
requested here
foo.subscribe( &FailureCase::callback, this);
^
src/failure.cpp:19:52: note: passing argument to parameter 'factory_fn' here
const function(void)>& factory_fn =
defaultMessageCreateFunction) {}
^
1 error generated.
src/failure.cpp (requires boost)
////////////////////////////////////////////////////////////////
#include
#include
#include
#include
using namespace boost;
template
inline shared_ptr defaultMessageCreateFunction()
{
return make_shared();
}
struct SubscribeOptions
{
template
void init(const function&)>& _callback,
const function(void)>& factory_fn =
defaultMessageCreateFunction) {}
};
class Foo
{
public:
template
void subscribe( void(T::*fp)(const shared_ptr&), T* obj)
{
SubscribeOptions ops;
ops.template init(bind(fp, obj, _1));
}
};
class FailureCase
{
class MessageType {};
typedef shared_ptr MessageTypeConstPtr;
public:
FailureCase()
{
foo.subscribe( &FailureCase::callback, this);
}
void callback(const MessageTypeConstPtr& msg) {}
Foo foo;
};
int main()
{
FailureCase failureCase;
return 0;
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Oct 7 01:30:16 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Oct 2010 01:30:16 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8251] MC-COFF: GlobalAlias is not emitted
In-Reply-To:
References:
Message-ID: <20101007063016.D11882A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8251
Michael Spencer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Michael Spencer 2010-10-07 01:30:16 CDT ---
Fixed in r115909.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Oct 7 05:11:41 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Oct 2010 05:11:41 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8323] New: ScheduleDAGSDNodes.cpp:301: ... "Node
already inserted!"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8323
Summary: ScheduleDAGSDNodes.cpp:301: ... "Node already
inserted!"
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: Edmund.Grimley-Evans at arm.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5580)
--> (http://llvm.org/bugs/attachment.cgi?id=5580)
Patch to demonstrate bug
I think this demonstrates a bug in the part of LLVM that handles
Selection DAGs. Unfortunately I can't demonstrate it without patching
LLVM. However, it's a small patch, so someone with the appropriate
experience can probably say very quickly whether the patch itself is
buggy.
This started off as a much larger patch that did something useful. I've
reduced it to a simple but silly patch that shows the same problem.
Some notes on the patch:
include/llvm/IntrinsicsARM.td: Add three intrinsics: magic_read,
magic_test_eq and magic_test_lt, which each map i32 to i32.
lib/Target/ARM/ARMISelLowering.h: Add three new DAG nodes: MAGIC_TEST
(set the flags), MAGIC_MRS (move flags to register), MAGIC_MSR (move
register to flags).
lib/Target/ARM/ARMInstrThumb2.td: Add an instruction for MAGIC_TEST. We
don't need instructions for the other two nodes as a peephole will
remove them.
lib/Target/ARM/ARMISelLowering.cpp: Two things:
1. In LowerINTRINSIC_WO_CHAIN map magic_read to MAGIC_TEST followed by
MAGIC_MRS, and map magic_test_?? to MAGIC_MSR followed by a CMOV.
2. In PerformDAGCombine shortcircuit magic_MRS followed by magic_MSR.
Now consider an example with magic_read followed by magic_test_eq:
// Debug+Asserts/bin/llc t1.ll
define arm_aapcscc i32 @f13(i32 %a) nounwind readnone {
entry:
%0 = tail call i32 @llvm.arm.magic.read(i32 %a)
%1 = tail call i32 @llvm.arm.magic.test.eq(i32 %0)
ret i32 %1
}
This gets mapped to a sequence of MAGIC_TEST, MAGIC_MRS, MAGIC_MSR,
CMOV. The peephole removes the MRS and MSR, and we're left with
MAGIC_READ followed by CMOV, which turns into:
magic_test r0
mov.w r0, #0
it eq
moveq r0, #1
bx lr
That's exactly what we expect. But now consider an example where the
output of magic_read is used by both magic_test_eq and magic_test_lt:
// Debug+Asserts/bin/llc t2.ll
define arm_aapcscc i32 @f13(i32 %a) nounwind readnone {
entry:
%0 = tail call i32 @llvm.arm.magic.read(i32 %a)
%1 = tail call i32 @llvm.arm.magic.test.eq(i32 %0)
%2 = tail call i32 @llvm.arm.magic.test.lt(i32 %0)
%add = add nsw i32 %2, %1
ret i32 %add
}
Now we get the assertion failure:
llc: ScheduleDAGSDNodes.cpp:301: void
llvm::ScheduleDAGSDNodes::BuildSchedUnits(): Assertion `N->getNodeId() == -1 &&
"Node already inserted!"' failed.
Can anyone confirm that this represents a 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 Oct 7 07:13:42 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Oct 2010 07:13:42 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8324] New: llvm-config --libdir results in wrong
output on most 64-bit Linux systems
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8324
Summary: llvm-config --libdir results in wrong output on most
64-bit Linux systems
Product: tools
Version: 2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: llvm-config
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bero at arklinux.org
CC: llvmbugs at cs.uiuc.edu
Most 64-bit Linux systems place their (native 64bit) libraries in /usr/lib64,
keeping /usr/lib for 32bit libraries for compatibility with legacy
applications.
llvm libraries are no exception - they're generally installed in /usr/lib64
llvm-config.in.in, line 69, however, hardcodes the assumption that things are
installed to $ABS_RUN_DIR/lib, causing it to output wrong values if it should
be $ABS_RUN_DIR/lib64
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Oct 7 07:21:14 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Oct 2010 07:21:14 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8325] New: Error on throwing pointer to pointee
with non public destructor
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8325
Summary: Error on throwing pointer to pointee with non public
destructor
Product: clang
Version: 2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: beckmann.maik at googlemail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
When throwing a pointer, clang wants the dtor of the pointee to be public.
class Error {
virtual ~Error() {}
public:
// uses decref() and incref() for reference counting
};
void throwing() {
throw new Error;
}
int main(int argc, char *argv[])
{
try { throwing(); }
catch (Error* e) { }
return 0;
}
// clang++ -o test test.cpp
// test.cpp:8:9: error: exception object of type 'Error' has private destructor
// throw new Error;
// ^
// test.cpp:2:11: note: declared private here
// virtual ~Error() {}
// ^
// 1 error generated.
% clang++ --version
clang version 2.8 (branches/release_28)
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 Oct 7 08:34:37 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Oct 2010 08:34:37 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8326] New: const union member in template class
gives invalid error
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8326
Summary: const union member in template class gives invalid
error
Product: clang
Version: 2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ext-llvm.org at sidvind.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=5583)
--> (http://llvm.org/bugs/attachment.cgi?id=5583)
test case
const_union_member.cpp:5:3: error: constructor for 'Foo' must explicitly
initialize the const member ''
Foo()
^
const_union_member.cpp:21:12: note: in instantiation of member function
'Foo::Foo' requested here
Foo baz;
^
const_union_member.cpp:11:9: note: '' declared here
const union {
Both gcc and msvc accepts the code, and no error is generated if const or
template is dropped.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Oct 7 08:39:01 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Oct 2010 08:39:01 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7981] -Wformat gives erronous warning for %lc
In-Reply-To:
References:
Message-ID: <20101007133901.D11732A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7981
Dan McGee changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |dan at archlinux.org
Resolution|FIXED |
--- Comment #4 from Dan McGee 2010-10-07 08:39:01 CDT ---
Not fixed in clang 2.8, I hope I'm not in error reopening this:
Test case:
$ cat test.c
#include
#include
int main(int argc, char *argv[])
{
wchar_t foo;
foo = L't';
printf("%lc", foo);
printf("%lc", (wint_t)foo);
}
$ gcc test.c && ./a.out
tt
$ clang test.c && ./a.out
test.c:9:12: warning: conversion specifies type 'int' but the argument has type
'wint_t' (aka 'unsigned int') [-Wformat]
printf("%lc", (wint_t)foo);
~~^ ~~~~~~~~~~~
%u
1 warning generated.
tt
$ clang --version
clang version 2.8 (branches/release_28)
Target: x86_64-unknown-linux-gnu
Thread model: posix
This compiled without warnings in clang 2.7.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Oct 7 09:24:45 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Oct 2010 09:24:45 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8327] New: LLVM miscompiles va_arg() on 64-bit
PowerPC, truncating address to 32 bits
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8327
Summary: LLVM miscompiles va_arg() on 64-bit PowerPC,
truncating address to 32 bits
Product: new-bugs
Version: trunk
Platform: Macintosh
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nwhitehorn at freebsd.org
CC: llvmbugs at cs.uiuc.edu
On 64-bit PowerPC, LLVM trunk (r115623) miscompiles va_arg:
%3 = va_arg i8** %foo, i8* ; [#uses=2]
to this code:
lis 3, 8191
ori 3, 3, 65535 # r3 now contains 0x1ffffff
ld 4, 296(31) # address of foo in r4
addi 4, 4, 7 # some kind of rounding with the next masking?
sldi 3, 3, 3 # r3 is now mask 0xfffffff8
and 3, 4, 3 # and with r4, truncating foo to 8-byte alignment
# (and killing top 32 bits)
addi 4, 3, 8 # increment foo (r4) to next VA arg
std 4, 296(31) # store back to foo
Because the generated mask is only 32 bits wide, anding it with the VA arg
pointer has the effect of zeroing the high 32-bits, causing a seg fault. I'm
not entirely sure why it goes to the trouble of all the rounding code here, but
the mask should at least be 64 bits on this platform.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Oct 7 09:33:27 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Oct 2010 09:33:27 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8328] New: Unable to call method of incomplete class
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8328
Summary: Unable to call method of incomplete class
Product: clang
Version: trunk
Platform: Other
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: yuri at tsoft.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Testcase below fails with the message: error: cannot dereference pointer into
incomplete class type 'D'
This is wrong. There is no problem in calling such method at all since the
class itself isn't used in the process.
Such pattern may be used by various projects and should compile fine. It works
in gcc.
rev.115483
--- testcase ---
class D;
typedef void (D::*Fn)();
void f(D *d, Fn fn) {
(d->*fn)();
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Oct 7 10:19:49 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Oct 2010 10:19:49 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8329] New: getDefaultArgRange() returns empty
SourceRange
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8329
Summary: getDefaultArgRange() returns empty SourceRange
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: bugzilla-clang at sogetthis.com
CC: llvmbugs at cs.uiuc.edu
When getDefaultArgRange() is called for any ParmVarDecl the resulting
SourceRange's beginning and end are equal. Both refer to the start of the
actual default argument. To get the real source range one has to adapt the end
of the range via Lexer::MeasureTokenLength().
Nevertheless the documentation for getDefaultArgRange() claims it will
"Retrieve the source range that covers the entire default argument." which is
IMHO outright wrong. So either the method needs to return the correct source
range or the comment and probably the method name need to be changed according
to what it actually does, e.g. getDefaultSourceLocation().
example
-------
void bluh(const ParmVarDecl& p, const SourceManager& sm) {
if(p.hasDefaultArg()) {
clang::SourceRange range = p.getDefaultArgRange();
range.getBegin().print(llvm::errs(), sm);
llvm::errs() << " - ";
range.getEnd().print(llvm::errs(), sm);
llvm::errs() << "'\n";
}
}
when wrapped and executed for this code
$ cat test.cpp
void blah(int a = 1);
prints
test.cpp:1:22 - test.cpp:1:22
expected output
test.cpp:1:22 - test.cpp:1:23
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Oct 7 13:32:57 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Oct 2010 13:32:57 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8330] New: tblgen isn't sufficiently meta
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8330
Summary: tblgen isn't sufficiently meta
Product: tools
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: TableGen
AssignedTo: unassignedbugs at nondot.org
ReportedBy: clattner at apple.com
CC: llvmbugs at cs.uiuc.edu
This crashes tblgen:
------
class Or4 Val> {
bits<8> V = {Val{7}, Val{6}, Val{5}, Val{4}, Val{3}, 1, Val{1}, Val{0} };
}
class Whatev x>;
multiclass X BaseOpc> {
def bar : Whatev.V >;
}
defm a : X<4>;
------
The problem is that tblgen needs to complete the instantiation of the anonymous
def "Or4", and when it does this there are still symbolic references
to BaseOpC. TableGen doesn't have a way to represent this and helpfully
responds by 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 Thu Oct 7 13:36:07 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Oct 2010 13:36:07 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8331] New: The return value of realloc should be
checked before the next write
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8331
Summary: The return value of realloc should be checked before
the next write
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: tom.care at uqconnect.edu.au
ReportedBy: tom.care at uqconnect.edu.au
CC: kremenek at apple.com, llvmbugs at cs.uiuc.edu
After a realloc, the return value should be null checked, especially if there
is an offset write to the pointer afterwards. A checker for this should be
relatively simple.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Oct 7 14:29:59 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Oct 2010 14:29:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8332] New: llvm-gcc inline asm regression wrt 2.7
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8332
Summary: llvm-gcc inline asm regression wrt 2.7
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
Both gcc and llvm-gcc from LLVM 2.7 accept this, however latest llvm-gcc says:
$ llvm-gcc -S asm-4.c
error: invalid operand in inline asm: 'test2 X${0:a}Y${0:a}Z'
This is on x86-64 linux. Testcase:
int main()
{
int z;
asm volatile ("test2 X%a0Y%a[arg]Z" : : [arg] "p" (&z));
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Oct 7 17:26:08 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Oct 2010 17:26:08 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8333] New: 0 size allocations
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8333
Summary: 0 size allocations
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Static Analyzer
AssignedTo: tom.care at uqconnect.edu.au
ReportedBy: tom.care at uqconnect.edu.au
CC: kremenek at apple.com, llvmbugs at cs.uiuc.edu
Allocations with a size of 0 are easy bugs to find.
See
http://hackitoergosum.org/wp-content/uploads/2010/04/HES10-jvanegue_zero-allocations.pdf
for examples.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Oct 7 18:58:12 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Oct 2010 18:58:12 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8321] MC-COFF: bogus reloc fixups to disp8/32
In-Reply-To:
References:
Message-ID: <20101007235812.ADAA32A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8321
Michael Spencer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Michael Spencer 2010-10-07 18:58:12 CDT ---
Fixed in r116013.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Oct 7 19:56:21 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Oct 2010 19:56:21 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8334] New: Wrong template parameter is used for
default copy constructor of template class
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8334
Summary: Wrong template parameter is used for default copy
constructor of template class
Product: clang
Version: trunk
Platform: Other
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: yuri at tsoft.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
In the attached example stl::list is redefined in different namespace with
different allocator.
Auto-generated copy constructor has wrong allocator template parameter and
fails in STL code:
In file included from /usr/include/c++/4.2/list:69:
/usr/include/c++/4.2/bits/stl_list.h:1179:30: error: invalid operands to binary
expression ('_Node_alloc_type'
(aka 'my_alloc >') and
'_Node_alloc_type')
if (_M_get_Node_allocator() != __x._M_get_Node_allocator())
~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Oct 7 22:17:43 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 7 Oct 2010 22:17:43 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8320] PECOFF: IMAGE_SYM_DTYPE_FUNCTION is
incompatible to GNU binutils
In-Reply-To:
References:
Message-ID: <20101008031743.554A72A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8320
Michael Spencer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #1 from Michael Spencer 2010-10-07 22:17:42 CDT ---
The correct value is indeed x20. Microsoft's documentation is contradictory,
but previous COFF standards all support a one byte type instead of two bytes.
Fixed in r116037.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 8 06:22:55 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Oct 2010 06:22:55 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8335] New: MC-COFF: Wrong section header with
module asm ".text"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8335
Summary: MC-COFF: Wrong section header with module asm ".text"
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: ASSIGNED
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: bigcheesegs at gmail.com
ReportedBy: geek4civic at gmail.com
CC: llvmbugs at cs.uiuc.edu
foo.ll:
module asm ".text"
module asm "_foo:"
module asm "ret"
$ llc -filetype=obj foo.ll
$ objdump -x foo.o
BFD: asm.o (.text): Section flag STYP_DSECT (0x1) ignored
BFD: asm.o (.text): Section flag STYP_DSECT (0x1) ignored
C:\msysgit\mingw\bin\objdump.exe: asm.o: File format not recognized
Sections = [
1 = {
Name = .text
VirtualSize = 0
VirtualAddress = 0
SizeOfRawData = 1
PointerToRawData = 0x3C
PointerToRelocations = 0x0
PointerToLineNumbers = 0x0
NumberOfRelocations = 0
NumberOfLineNumbers = 0
Charateristics = 0x100001
IMAGE_SCN_ALIGN_1BYTES
SectionData =
C3 |.|
Relocations = None
}
]
Module asm is used in X86JITInfo.cpp.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 8 09:26:49 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Oct 2010 09:26:49 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8336] New: clang hangs while optimizing a snippet
of C code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8336
Summary: clang hangs while optimizing a snippet of C code
Product: clang
Version: 2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: pipping at exherbo.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5590)
--> (http://llvm.org/bugs/attachment.cgi?id=5590)
minimal working example
I've tried to compile wpa_supplicant with clang 2.8. I believe this worked with
clang 2.7, it certainly does with gcc 4.4.4.
While compiling src/crypto/sha256.c, clang appears to hang (or take insanely
long with 100% cpu load)
This does not happen with gcc 4.4.4, or when optimization is turned of (-O1
hangs, -O0 does not). I believe it also didn't happen with clang 2.7 although
I'm not sure.
I've attached a minimal working example.
I'm on amd64 linux 2.6.35.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 Fri Oct 8 09:27:20 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Oct 2010 09:27:20 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8337] New: Dereference of null pointer
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8337
Summary: Dereference of null pointer
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: zdenek.kabelac at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5591)
--> (http://llvm.org/bugs/attachment.cgi?id=5591)
source file of problematic match
Bug reported by the clang static analyzer.
Description: Dereference of null pointer
File: lvm2.git/daemons/clvmd/clvmd.c
Line: 500
this is false positive - as could be seen from source - few lines above - there
is check of ptr clops - and child_init_signal(status) with non-zero status
parameter runs exit(status) - thus could never reach given condition
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 8 10:18:33 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Oct 2010 10:18:33 -0500 (CDT)
Subject: [LLVMbugs] [Bug 3406] [loop-index-split] llvm::SplitCriticalEdge
can't update DomFrontier info without DomTree info
In-Reply-To:
References:
Message-ID: <20101008151833.239902A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=3406
Devang Patel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |dpatel at apple.com
Resolution| |INVALID
--- Comment #3 from Devang Patel 2010-10-08 10:18:32 CDT ---
LoopIndexSplit pass has been removed from svn.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 8 10:19:10 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Oct 2010 10:19:10 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7933] Loop Index Split pass changes semantics of
source program
In-Reply-To:
References:
Message-ID: <20101008151910.86CCC2A6C130@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7933
Devang Patel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
CC| |dpatel at apple.com
Resolution| |INVALID
--- Comment #4 from Devang Patel 2010-10-08 10:19:09 CDT ---
LoopIndexSplit pass has been removed from svn.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 8 10:20:03 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Oct 2010 10:20:03 -0500 (CDT)
Subject: [LLVMbugs] [Bug 3089] Apparent miscompilation with
-loop-index-split -loop-rotate -loop-reduce
In-Reply-To:
References:
Message-ID: <20101008152003.3BEA62A6C130@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=3089
Devang Patel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #6 from Devang Patel 2010-10-08 10:20:02 CDT ---
LoopIndexSplit pass has been removed from svn.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 8 10:55:14 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Oct 2010 10:55:14 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8338] New: MC-COFF: section.bss always has .size as
0
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8338
Summary: MC-COFF: section.bss always has .size as 0
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: ASSIGNED
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: bigcheesegs at gmail.com
ReportedBy: geek4civic at gmail.com
CC: llvmbugs at cs.uiuc.edu
It seems mccoff emits .bss with size 0 in section headers.
In getSectionFileSize(), *virtual* section is treated as size zero.
A trivial patch. Now I can build FileCheck.exe and tblgen.exe with clang++
-integrated-as. opt.exe, clang.exe &c still crash for me.
--- a/lib/MC/WinCOFFObjectWriter.cpp
+++ b/lib/MC/WinCOFFObjectWriter.cpp
@@ -799,7 +799,7 @@ void WinCOFFObjectWriter::WriteObject(MCAssembler &Asm,
if (Sec->Number == -1)
continue;
- Sec->Header.SizeOfRawData = Layout.getSectionFileSize(i);
+ Sec->Header.SizeOfRawData = Layout.getSectionAddressSize(i);
if (IsPhysicalSection(Sec)) {
Sec->Header.PointerToRawData = offset;
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 8 11:33:37 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Oct 2010 11:33:37 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8339] New: Clang driver has trouble parsing
Gentoo-built linker version string
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8339
Summary: Clang driver has trouble parsing Gentoo-built linker
version string
Product: clang
Version: trunk
Platform: PC
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: cdavis at mymail.mines.edu
CC: llvmbugs at cs.uiuc.edu
Daniel, have I got a pathological driver test case for you.
I have a Gentoo prefix installed on one of my systems. As you may or may not
know, this is a setup where a Gentoo directory tree is installed in some other
directory on the system. This being Gentoo, they insist on building everything,
including the compiler and linker, from source.
Since the linker gets built from source (with patches), the version string is
modified like so:
chip at chips-computer-3 ~ $ ld -v
@(#)PROGRAM:ld PROJECT:ld64-97.14 (Gentoo binutils-apple-3.2.3-r1)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Note the added part in parentheses (with Clang-style emphasis added by me).
This isn't present in normal Apple builds of the linker. Unfortunately, the
-mlinker-version argument barfs on this when the driver passes it to the
frontend. This causes the tests Driver/hello.c and Driver/nostdincxx.cpp to
fail horribly.
I think we need to chop off the part in the parentheses when we build the
driver. What do you think?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 8 12:10:57 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Oct 2010 12:10:57 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8340] New: Is vector size zero allowed?
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8340
Summary: Is vector size zero allowed?
Product: Documentation
Version: trunk
Platform: Other
OS/Version: All
Status: NEW
Keywords: documentation
Severity: normal
Priority: P
Component: General docs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: llvm at henning-thielemann.de
CC: llvmbugs at cs.uiuc.edu
The documentation at
http://www.llvm.org/docs/LangRef.html#t_vector
says, that the vector size is an integer.
This suggests that the size can also be negative, but I think this is not
intended.
Nonetheless the question remains, whether vectors of size 0 are allowed or not.
Vectors exist merely for optimization purposes, which is different from arrays.
I use vectors for chunking arrays for optimization reasons. In this context
vectors of size zero make no sense.
In the Haskell interface to LLVM I like to have precise type constraints, that
is, if vectors of size zero are forbidden, then the type checker shall reject
vectors of size zero. If size zero is allowed, then the type checker shall
allow size zero as well.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 8 15:50:29 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Oct 2010 15:50:29 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6955] [designated inits] crash when compiling
arch/x86/kernel/cpu/common.c from linux kernel
In-Reply-To:
References:
Message-ID: <20101008205029.B01922A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6955
Alp Toker changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #6 from Alp Toker 2010-10-08 15:50:28 CDT ---
Landed r116098. Thanks dgregor!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 8 15:57:36 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Oct 2010 15:57:36 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6537] codegen hack due to designated init AST bug
In-Reply-To:
References:
Message-ID: <20101008205736.97A2F2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6537
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #9 from Douglas Gregor 2010-10-08 15:57:34 CDT ---
Fixed in r116098 by Alp Toker, hack removed in r116101.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 8 16:04:25 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Oct 2010 16:04:25 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8341] New: lit.site.cfg doesn't specify character
encoding. python complains on unicode paths.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8341
Summary: lit.site.cfg doesn't specify character encoding.
python complains on unicode paths.
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: bigcheesegs at gmail.com
CC: llvmbugs at cs.uiuc.edu
SyntaxError: Non-ASCI character '\xc3' in file
/llvm-2.8/tools/clang/test/lit.site.cfg on line 3, but no encoding
declared; see http://www.python.org/peps/pep-0263.html for details.
Where was some unicode path.
The fix in this case was to add:
# -*- coding: utf-8 -*-
But I'm not sure this is correct in the general case. People use other
encodings than utf-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 Fri Oct 8 16:27:48 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Oct 2010 16:27:48 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8329] getDefaultArgRange() returns incomplete
SourceRange
In-Reply-To:
References:
Message-ID: <20101008212748.20A622A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8329
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Douglas Gregor 2010-10-08 16:27:47 CDT ---
Clang is behaving correctly. See
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2010-August/010595.html
for an explanation of how source ranges work.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 8 17:55:26 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Oct 2010 17:55:26 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8342] New: Direct-initialization of class object by
its own class
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8342
Summary: Direct-initialization of class object by its own class
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: schaub-johannes at web.de
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Clang does not like the following code
struct A {
A(int) { }
explicit A(A const&) { }
};
int main() {
A a = 1;
}
The copy of the created A temporary to "a" is direct-initialization and so
needs to consider the explicit copy constructor. But clang says
main1.cpp:7:5: error: no viable constructor copying variable of type 'A'
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 8 18:32:03 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Oct 2010 18:32:03 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8343] New: [MC] No support for COFF assembly.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8343
Summary: [MC] No support for COFF assembly.
Product: libraries
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bigcheesegs at gmail.com
CC: llvmbugs at cs.uiuc.edu
Blocks: 8335
There is currently no support in MC for parsing COFF assembly. Add it.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 8 20:06:00 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Oct 2010 20:06:00 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8344] New: Scoped over.built OO_Conditional enum fix
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8344
Summary: Scoped over.built OO_Conditional enum fix
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: alp at nuanti.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
r116122 added C++0x scoped enum support. This is similar to our implementation
(which we never got round to upstreaming, need to find a way to push these
patches and get them reviewed faster), but we have an additional fix covering
C++ [over.built]p25 which I've updated to ToT and attached to this bug.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Oct 8 20:40:51 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 8 Oct 2010 20:40:51 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8345] New: Failure to compile templated atomic
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8345
Summary: Failure to compile templated atomic
Product: clang
Version: 2.8
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dustin at spy.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
I've got a class that wraps __sync_* functions and provides atomics of various
types. This fails to compile with clang if I use it with more than one type.
templated-atomic.cc:10:37: error: cannot initialize a parameter of type
'long long volatile *' with an rvalue of type 'int volatile *'
return __sync_add_and_fetch(&value, 1);
^~~~~~
templated-atomic.cc:21:5: note: in instantiation of member function
'Atomic::operator++' requested here
++ai;
^
1 error generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Oct 9 06:01:39 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 9 Oct 2010 06:01:39 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8343] [MC] No support for COFF assembly.
In-Reply-To:
References:
Message-ID: <20101009110139.0FB7B2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8343
Michael Spencer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Michael Spencer 2010-10-09 06:01:38 CDT ---
Fixed in r116150.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Oct 9 10:44:46 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 9 Oct 2010 10:44:46 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8335] MC-COFF: Wrong section header with module asm
".text"
In-Reply-To:
References:
Message-ID: <20101009154446.304412A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8335
Michael Spencer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #2 from Michael Spencer 2010-10-09 10:44:45 CDT ---
Fixed in r116151.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Oct 9 11:05:05 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 9 Oct 2010 11:05:05 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8338] MC-COFF: section.bss always has .size as 0
In-Reply-To:
References:
Message-ID: <20101009160505.76FAA2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8338
Michael Spencer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #1 from Michael Spencer 2010-10-09 11:05:05 CDT ---
Fixed in r116115.
Got any more bugs? :P
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Oct 9 15:18:05 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 9 Oct 2010 15:18:05 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8346] New: clang under windows/mingw inserts
visible standard library functions into object files
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8346
Summary: clang under windows/mingw inserts visible standard
library functions into object files
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ambrop7 at gmail.com
CC: llvmbugs at cs.uiuc.edu
> clang -O2 -c x.c
> clang -O2 -c y.c
> clang -o a.exe x.o y.o (or gcc)
y.o:fake:(.text+0x0): multiple definition of `strncasecmp'
x.o:fake:(.text+0x0): first defined here
y.o:fake:(.text+0x10): multiple definition of `strcasecmp'
x.o:fake:(.text+0x10): first defined here
collect2: ld returned 1 exit status
clang: error: linker (via gcc) command failed with exit code 1 (use -v to see
in
vocation)
How I set up clang:
Downloaded a 32-bit compiler from http://mingw-w64.sourceforge.net/ which I
unpacked to c:\\mingw.
Installed clang with:
> set PATH=%PATH%;c:\mingw\bin
> cmake ..\llvm -G "MinGW Makefiles" -DC_INCLUDE_DIRS=C:\\mingw\\i686-w64-mingw32\\include
> mingw32-make install
Did this before running the above clang commands:
> set PATH=%PATH%;c:\mingw\bin;C:\Program Files\LLVM\bin
Also made the following change to llvm to get it to compile:
--- lib/System/Win32/DynamicLibrary.inc (revision 116150)
+++ lib/System/Win32/DynamicLibrary.inc (working copy)
@@ -49,13 +49,11 @@
extern "C" {
// Use old callback if:
-// - Not using Visual Studio
// - Visual Studio 2005 or earlier but only if we are not using the Windows
SDK
// or Windows SDK version is older than 6.0
-// Use new callback if:
-// - Newer Visual Studio (comes with newer SDK).
-// - Visual Studio 2005 with Windows SDK 6.0+
-#if !defined(_MSC_VER) || _MSC_VER < 1500 && (!defined(VER_PRODUCTBUILD) ||
VER_PRODUCTBUILD < 6000)
+// - W32Api older than 3.12
+#if (defined(_MSC_VER) && _MSC_VER < 1500 && (!defined(VER_PRODUCTBUILD) ||
VER_PRODUCTBUILD < 6000)) || \
+ (defined(__W32API_VERSION) && (__W32API_MAJOR_VERSION < 3 ||
(__W32API_MAJOR_VERSION == 3 && __W32API_MINOR_VERSION < 12)))
static BOOL CALLBACK ELM_Callback(PSTR ModuleName,
ModuleBaseType ModuleBase,
ULONG ModuleSize,
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 10 02:12:53 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 10 Oct 2010 02:12:53 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8347] New: ARM VA_ARG
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8347
Summary: ARM VA_ARG
Product: tools
Version: trunk
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: llc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: pdox at alum.mit.edu
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5599)
--> (http://llvm.org/bugs/attachment.cgi?id=5599)
open_with_hook is a wrapper for open() which calls va_arg
It looks like Post-RA instruction reordering is causing the instruct
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 10 02:31:17 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 10 Oct 2010 02:31:17 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8348] New: [MC-COFF] COFF backend can't handle weak
symbols
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8348
Summary: [MC-COFF] COFF backend can't handle weak symbols
Product: libraries
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: bigcheesegs at gmail.com
ReportedBy: bigcheesegs at gmail.com
CC: llvmbugs at cs.uiuc.edu
.def _main;
.scl 2;
.type 32;
.endef
.text
.globl _main
.align 16, 0x90
_main: # @main
# BB#0: # %entry
subl $4, %esp
movl $_test_weak, %eax
testl %eax, %eax
je LBB0_2
# BB#1: # %if.then
calll _test_weak
movl $1, %eax
addl $4, %esp
ret
LBB0_2: # %return
xorl %eax, %eax
addl $4, %esp
ret
.weak _test_weak
llvm-mc -filetype=obj chrashes. as produces:
{
MachineType = IMAGE_FILE_MACHINE_I386 (0x14C)
NumberOfSections = 3
TimeDateStamp = 0
PointerToSymbolTable = 0xC0
NumberOfSymbols = 13
SizeOfOptionalHeader = 0
Characteristics = 0x104
IMAGE_FILE_LINE_NUMS_STRIPPED
IMAGE_FILE_32BIT_MACHINE
Sections = [
1 = {
Name = .text
VirtualSize = 0
VirtualAddress = 0
SizeOfRawData = 32
PointerToRawData = 0x8C
PointerToRelocations = 0xAC
PointerToLineNumbers = 0x0
NumberOfRelocations = 2
NumberOfLineNumbers = 0
Charateristics = 0x60500020
IMAGE_SCN_CNT_CODE
IMAGE_SCN_ALIGN_16BYTES
IMAGE_SCN_MEM_EXECUTE
IMAGE_SCN_MEM_READ
SectionData =
83 EC 04 B8 00 00 00 00 - 85 C0 74 0E E8 00 00 00 |..........t.....|
00 B8 01 00 00 00 83 C4 - 04 C3 31 C0 83 C4 04 C3 |..........1.....|
Relocations = [
0 = {
VirtualAddress = 0x4
SymbolTableIndex = 11
Type = IMAGE_REL_I386_DIR32 (6)
SymbolName = _test_weak
}
1 = {
VirtualAddress = 0xD
SymbolTableIndex = 11
Type = IMAGE_REL_I386_REL32 (20)
SymbolName = _test_weak
}
]
}
2 = {
Name = .data
VirtualSize = 0
VirtualAddress = 0
SizeOfRawData = 0
PointerToRawData = 0x0
PointerToRelocations = 0x0
PointerToLineNumbers = 0x0
NumberOfRelocations = 0
NumberOfLineNumbers = 0
Charateristics = 0xC0300040
IMAGE_SCN_CNT_INITIALIZED_DATA
IMAGE_SCN_ALIGN_4BYTES
IMAGE_SCN_MEM_READ
IMAGE_SCN_MEM_WRITE
SectionData = None
Relocations = None
}
3 = {
Name = .bss
VirtualSize = 0
VirtualAddress = 0
SizeOfRawData = 0
PointerToRawData = 0x0
PointerToRelocations = 0x0
PointerToLineNumbers = 0x0
NumberOfRelocations = 0
NumberOfLineNumbers = 0
Charateristics = 0xC0300080
IMAGE_SCN_CNT_UNINITIALIZED_DATA
IMAGE_SCN_ALIGN_4BYTES
IMAGE_SCN_MEM_READ
IMAGE_SCN_MEM_WRITE
SectionData = None
Relocations = None
}
]
Symbols = [
0 = {
Name = .file
Value = 0
SectionNumber = 65534
SimpleType = IMAGE_SYM_TYPE_NULL (0)
ComplexType = IMAGE_SYM_DTYPE_NULL (0)
StorageClass = IMAGE_SYM_CLASS_FILE (103)
NumberOfAuxSymbols = 1
AuxillaryData =
66 61 6B 65 00 00 00 00 - 00 00 00 00 00 00 00 00 |fake............|
00 00 |..|
}
2 = {
Name = _main
Value = 0
SectionNumber = 1
SimpleType = IMAGE_SYM_TYPE_NULL (0)
ComplexType = IMAGE_SYM_DTYPE_FUNCTION (2)
StorageClass = IMAGE_SYM_CLASS_EXTERNAL (2)
NumberOfAuxSymbols = 1
AuxillaryData =
00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 |................|
00 00 |..|
}
4 = {
Name = .text
Value = 0
SectionNumber = 1
SimpleType = IMAGE_SYM_TYPE_NULL (0)
ComplexType = IMAGE_SYM_DTYPE_NULL (0)
StorageClass = IMAGE_SYM_CLASS_STATIC (3)
NumberOfAuxSymbols = 1
AuxillaryData =
20 00 00 00 02 00 00 00 - 00 00 00 00 00 00 00 00 | ...............|
00 00 |..|
}
6 = {
Name = .data
Value = 0
SectionNumber = 2
SimpleType = IMAGE_SYM_TYPE_NULL (0)
ComplexType = IMAGE_SYM_DTYPE_NULL (0)
StorageClass = IMAGE_SYM_CLASS_STATIC (3)
NumberOfAuxSymbols = 1
AuxillaryData =
00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 |................|
00 00 |..|
}
8 = {
Name = .bss
Value = 0
SectionNumber = 3
SimpleType = IMAGE_SYM_TYPE_NULL (0)
ComplexType = IMAGE_SYM_DTYPE_NULL (0)
StorageClass = IMAGE_SYM_CLASS_STATIC (3)
NumberOfAuxSymbols = 1
AuxillaryData =
00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 |................|
00 00 |..|
}
10 = {
Name = .weak._test_weak._main
Value = 0
SectionNumber = 65535
SimpleType = IMAGE_SYM_TYPE_NULL (0)
ComplexType = IMAGE_SYM_DTYPE_NULL (0)
StorageClass = IMAGE_SYM_CLASS_EXTERNAL (2)
NumberOfAuxSymbols = 0
AuxillaryData =
}
11 = {
Name = _test_weak
Value = 0
SectionNumber = 0
SimpleType = IMAGE_SYM_TYPE_NULL (0)
ComplexType = IMAGE_SYM_DTYPE_NULL (0)
StorageClass = IMAGE_SYM_CLASS_WEAK_EXTERNAL (105)
NumberOfAuxSymbols = 1
AuxillaryData =
0A 00 00 00 01 00 00 00 - 00 00 00 00 00 00 00 00 |................|
00 00 |..|
}
]
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 10 02:45:30 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 10 Oct 2010 02:45:30 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8349] New: _Bool keyword is not defined in
-fms-extensions
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8349
Summary: _Bool keyword is not defined in -fms-extensions
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: bigcheesegs at gmail.com
CC: llvmbugs at cs.uiuc.edu
The _Bool keyword isn't defined when in -fms-extensions mode. I know the reason
is because one of the MS headers typedefs it, but this makes C99 code not work
on Windows.
I think that _Bool should always be a keyword, but allow typedefing it as a
ms-extension. The typedef _must_ be:
typedef bool _Bool;
Anything else is an error.
My reasoning for this is that extensions should be just that, extensions. No
standard features should be removed when extensions are enabled.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 10 13:20:43 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 10 Oct 2010 13:20:43 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8340] Is vector size zero allowed?
In-Reply-To:
References:
Message-ID: <20101010182043.8CE962A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8340
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Chris Lattner 2010-10-10 13:20:43 CDT ---
Fixed in r116167
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Oct 10 13:22:50 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 10 Oct 2010 13:22:50 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7854] User-definable arithmetic overflow handler
In-Reply-To:
References:
Message-ID: <20101010182250.7D7A42A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7854
Eelis changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Eelis 2010-10-10 13:22:49 CDT ---
The new -ftrapv-handler in r114192 is exactly what I wanted, 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 Sun Oct 10 13:34:15 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 10 Oct 2010 13:34:15 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8327] LLVM miscompiles va_arg() on 64-bit PowerPC,
truncating address to 32 bits
In-Reply-To:
References:
Message-ID: <20101010183415.E42C92A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8327
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Lattner 2010-10-10 13:34:15 CDT ---
Fixed in r116168
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 11 02:11:47 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 11 Oct 2010 02:11:47 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8350] New: Clang does not produce symbols for
typeinfo
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8350
Summary: Clang does not produce symbols for typeinfo
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: packadal at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Hi,
I have been trying clang on my project for some time now, and I have come with
a set of patches to make it compile successfully.
Clang produces nice error messages and I'd really be able to use it as my
default compiler.
However, I have a link error to typeinfo for two classes.
These classes inherit from a template class, laid out as follows:
template
class Base : public SubBase {
virtual void Foo();
};
#include "Base.cxx"
//Base.cxx
template
Base::Foo() { .... }
I moved the definitions into the header file, and the linker error disappeared.
However, the strange thing is that this base template class is used in 10
different instances, and only 2 cause link errors, so there might be more to it
that I can see.
The project I work on is open-source, and you can get the sources and try this
by yourself (however the patches to get it to compile with clang are not in
yet, so I'll attach them here if you want me to).
svn repo: https://auber.svn.sourceforge.net/svnroot/auber/tulip/trunk
website: http://www.tulip-software.org
Best regards
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 11 08:12:07 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 11 Oct 2010 08:12:07 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8351] New: void
LLVMAddLoopIndexSplitPass(LLVMPassManagerRef PM) is still in
llvm-c/Transforms/Scalar.h
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8351
Summary: void LLVMAddLoopIndexSplitPass(LLVMPassManagerRef PM)
is still in llvm-c/Transforms/Scalar.h
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: vslugovsky at gmail.com
CC: llvmbugs at cs.uiuc.edu
The LoopIndexSplit pass does not exist any longer, but it's still referenced
from an llvm-c header, which breaks an automatic API generation.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 11 11:42:15 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 11 Oct 2010 11:42:15 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8352] New: llc emits improper .comm for PECOFF
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8352
Summary: llc emits improper .comm for PECOFF
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: geek4civic at gmail.com
CC: llvmbugs at cs.uiuc.edu
$ echo '@foo = common global i32 0, align 4' | Release+Asserts/bin/llc.exe
-mtriple=i686-cygwin
.comm _foo,4,2 # @foo
# @foo
$ echo '@foo = common global i32 0, align 4' | Release+Asserts/bin/llc.exe
-mtriple=i686-cygwin | as
{standard input}: Assembler messages:
{standard input}:1: Error: junk at end of line, first unrecognized character is
`,'
--
It is valid;
$ echo '.comm _foo,4' | as
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 11 12:11:02 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 11 Oct 2010 12:11:02 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8353] New: r115248 break generation of debugging
info for obj-C ivars
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8353
Summary: r115248 break generation of debugging info for obj-C
ivars
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: devlists at shadowlab.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5601)
--> (http://llvm.org/bugs/attachment.cgi?id=5601)
Sample
The attempt to fix rdar://8493239 in r115248 breaks generation of debugging
informations for Obj-C ivars.
For the record:
------------------------
r115248 - 02:01 - fjahanian
Output debug info. for ivars declared in class
extension and implementation.
Fixes rdar://8493239
------------------------
After this change, all ivars are declared in dwarf as having the same offset,
and so the debugger display wrong information.
You can easily show the bug in the attached archive. Just compare foo_x86.s
generated using clang rev 115247 and r115248. The only differences are clang
revision and the ivar offsets in dwarfs info.
Ditto for foo_x86_64.s.
Maybe removing the test was not the good way to fix the problem ;-)
------------------------
r115258 - 03:01 - fjahanian
Remove test until further notice.
D /cfe/trunk/test/CodeGenObjC/debug-info-default-synth-ivar.m
------------------------
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 11 12:19:46 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 11 Oct 2010 12:19:46 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8354] New: MC-COFF: Don't emit local storage with
.bss$linkonce
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8354
Summary: MC-COFF: Don't emit local storage with .bss$linkonce
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: geek4civic at gmail.com
CC: llvmbugs at cs.uiuc.edu
.bss$linkonce_foobar would be unified by linker.
static and anonymous variables should not emitted to linkonce.
//////// foo.cc
int foo;
static int bar;
namespace {
int qux;
static int quux;
}
void fooset(int a0, int a1, int a2, int a3)
{
foo = a0;
bar = a1;
qux = a2;
quux = a3;
}
int fooget()
{
return foo + bar + qux + quux;
}
//////// bar.cc
extern int foo;
static int bar;
namespace {
int qux;
static int quux;
}
void barset(int a0, int a1, int a2, int a3)
{
foo = a0;
bar = a1;
qux = a2;
quux = a3;
}
int barget()
{
return foo + bar + qux + quux;
}
========
$ clang++ -O3 -S -emit-llvm foo.cc -o foo.ll
(snip)
@foo = global i32 0, align 4
@_ZL3bar = internal global i32 0, align 4
@_ZN12_GLOBAL__N_13quxE = internal global i32 0, align 4
@_ZN12_GLOBAL__N_1L4quuxE = internal global i32 0, align 4
$ clang++ -O3 -S -emit-llvm bar.cc -o bar.ll
(snip)
@foo = external global i32
@_ZL3bar = internal global i32 0, align 4
@_ZN12_GLOBAL__N_13quxE = internal global i32 0, align 4
@_ZN12_GLOBAL__N_1L4quuxE = internal global i32 0, align 4
========
$ llc -filetype=obj foo.ll
$ llc -filetype=obj bar.ll
$ ld foo.o bar.o -o foobar.exe
$ objdump -h foobar.exe
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 000000a8 00401000 00401000 00000400 2**4
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .data 00000004 00402000 00402000 00000600 2**2
CONTENTS, ALLOC, LOAD, DATA
2 .bss 0000000c 00403000 00403000 00000000 2**2
ALLOC
3 .idata 00000014 00404000 00404000 00000800 2**2
CONTENTS, ALLOC, LOAD, DATA
!!! size of .bss should be 0x18(4 * 6)!
$ nm -n --demangle foobar.exe
00402000 D _data_start__
00402000 D foo
00402004 D _data_end__
00403000 B _bss_start__
00403000 B _bss_end__
00403000 b .bss$linkonce__ZL3bar
00403000 b bar
00403004 b .bss$linkonce__ZN12_GLOBAL__N_13quxE
00403004 b (anonymous namespace)::qux
00403008 b .bss$linkonce__ZN12_GLOBAL__N_1L4quuxE
00403008 b (anonymous namespace)::quux
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 11 12:44:33 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 11 Oct 2010 12:44:33 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8351] void
LLVMAddLoopIndexSplitPass(LLVMPassManagerRef PM) is still in
llvm-c/Transforms/Scalar.h
In-Reply-To:
References:
Message-ID: <20101011174433.9B6BB2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8351
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Lattner 2010-10-11 12:44:33 CDT ---
Removed in r116209, 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 Oct 11 13:01:16 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 11 Oct 2010 13:01:16 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8355] New: clang++ generates incorrect code if
multiple classes with the same name are defined in the same function
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8355
Summary: clang++ generates incorrect code if multiple classes
with the same name are defined in the same function
Product: clang
Version: 2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: richard-llvm at metafoo.co.uk
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
clang++ generates incorrect code if two classes are defined with the same name
within a function. Specifically, the constructors for both classes use the
first class's vtable.
Consider the following code:
#include
struct I
{
virtual void F() const = 0;
};
void Go(const I &i)
{
i.F();
}
int main()
{
if (true)
{
struct C : I
{
void F() const { std::cout << "A" << std::endl; }
};
Go(C());
}
if (true)
{
struct C : I
{
void F() const { std::cout << "B" << std::endl; }
};
Go(C());
}
}
Under g++ and other compilers, this prints:
A
B
Under clang++, it prints:
A
A
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 11 13:24:52 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 11 Oct 2010 13:24:52 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8356] New: Don't do unprofitable narrowing of loads.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8356
Summary: Don't do unprofitable narrowing of loads.
Product: new-bugs
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jpbonn-keyword-llvmbug.a51747 at corniceresearch.com
CC: llvmbugs at cs.uiuc.edu
Our backend only does 32 bit loads. I noticed some loads were narrowed to 8
bits and then had to be reverted back to 32 bit loads. This patch prevents the
initial lowering. I've only tested this on my backend.
Index: CodeGen/SelectionDAG/TargetLowering.cpp
===================================================================
--- CodeGen/SelectionDAG/TargetLowering.cpp (revision 115815)
+++ CodeGen/SelectionDAG/TargetLowering.cpp (working copy)
@@ -1899,7 +1899,9 @@
else
bestOffset = (uint64_t)offset * (width/8);
bestMask = Mask.lshr(offset * (width/8) * 8);
- bestWidth = width;
+ EVT NewVT = EVT::getIntegerVT(*DAG.getContext(), width);
+ if (isNarrowingProfitable(Lod->getMemoryVT(), NewVT))
+ bestWidth = width;
break;
}
newMask = newMask << width;
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 11 14:05:29 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 11 Oct 2010 14:05:29 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8297] machine licm crash on atomic cmpswap i64
In-Reply-To:
References:
Message-ID: <20101011190529.AB2022A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8297
Andrew Trick changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Andrew Trick 2010-10-11 14:05:29 CDT ---
Fixed in 116214.
Test case test/CodeGen/X86/2010-10-08-cmpxchg8b.ll
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 11 14:53:14 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 11 Oct 2010 14:53:14 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8357] New: Crash inside fast register allocator on
PowerPC
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8357
Summary: Crash inside fast register allocator on PowerPC
Product: new-bugs
Version: trunk
Platform: Other
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nwhitehorn at freebsd.org
CC: llvmbugs at cs.uiuc.edu
With r116206, running llc on the attached IR causes an UNREACHABLE to be
reached:
llc vatest.ll -o foo.s -regalloc=fast -march=ppc32
UNREACHABLE executed!
Stack dump:
0. Program arguments: llc vatest.ll -regalloc=fast -march=ppc32
1. Running pass 'Function Pass Manager' on module 'vatest.ll'.
2. Running pass 'Fast Register Allocator' on function '@testing'
Abort trap: 6 (core dumped)
This seems to be appear only when targeting ppc32, and is a regression relative
to last week.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 11 15:43:40 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 11 Oct 2010 15:43:40 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8357] Crash inside fast register allocator on
PowerPC
In-Reply-To:
References:
Message-ID: <20101011204340.BA48E2A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8357
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Jakob Stoklund Olesen 2010-10-11 15:43:40 CDT ---
Fixed in r116222. 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 Oct 11 16:58:11 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 11 Oct 2010 16:58:11 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8352] llc emits improper .comm for PECOFF
In-Reply-To:
References:
Message-ID: <20101011215811.BBB4D2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8352
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |asl at math.spbu.ru
Resolution| |INVALID
--- Comment #2 from Anton Korobeynikov 2010-10-11 16:58:11 CDT ---
(In reply to comment #1)
> $ as --version
> GNU assembler (GNU Binutils) 2.19.1
>
> Is it older?
Yes. Read http://llvm.org/docs/GettingStarted.html#pf_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 Mon Oct 11 18:56:55 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 11 Oct 2010 18:56:55 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8353] r115248 break generation of debugging info
for obj-C ivars
In-Reply-To:
References:
Message-ID: <20101011235655.329B22A6C130@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8353
Fariborz Jahanian changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Fariborz Jahanian 2010-10-11 18:56:54 CDT ---
Fixed in r116273.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 11 21:01:45 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 11 Oct 2010 21:01:45 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8358] New: [cygwin] sys::Program::Execute should
use spawn
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8358
Summary: [cygwin] sys::Program::Execute should use spawn
Product: libraries
Version: 1.0
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: System Library
AssignedTo: unassignedbugs at nondot.org
ReportedBy: clattner at apple.com
CC: llvmbugs at cs.uiuc.edu
"fork" on cygwin is a horrible hack. Apparently the solution is to use the
cygwin spawn function which is both more efficient and also more reliable.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Oct 11 22:59:19 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 11 Oct 2010 22:59:19 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8359] New: ARM allocates invalid registers for
VFPv3-D16 (possibly allocating D16, D17 etc.)
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8359
Summary: ARM allocates invalid registers for VFPv3-D16
(possibly allocating D16, D17 etc.)
Product: tools
Version: trunk
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: llc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jvoung at google.com
CC: llvmbugs at cs.uiuc.edu
The ARM backend may end up allocating registers D16 to D31 when "-mattr=+vfp3"
is specified. However, this will not work for hardware that only supports 16
registers.
Attached is a possible fix, adding a new flag to support -"mattr=+vfp3,+d16".
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 12 02:55:51 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 12 Oct 2010 02:55:51 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8360] New: Resolve call to atoi with constant input
at compile time.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8360
Summary: Resolve call to atoi with constant input at compile
time.
Product: libraries
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bigcheesegs at gmail.com
CC: llvmbugs at cs.uiuc.edu
Ran into this while trying to get LLVM to not optimize away my contrived code.
Seems like an easy SimplifyLibCalls opt to implement to get used to transforms.
Filing this so I don't forget.
atoi("42") -> i32 42
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 12 08:22:36 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 12 Oct 2010 08:22:36 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8361] New: duplicated compare instruction
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8361
Summary: duplicated compare instruction
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: Edmund.Grimley-Evans at arm.com
CC: llvmbugs at cs.uiuc.edu
Keywords: duplicate duplicated redundant repeated compare comparison cmp
The compare instruction is repeated unnecessarily in the code generated from
this:
const char *f(int x, int y)
{
return x < y ? "<" : x == y ? "=" : ">";
}
I've seen this with the ARM and x86 back ends.
Currently on r116298.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 12 08:25:57 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 12 Oct 2010 08:25:57 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8362] New: Ran out of registers during register
allocation!
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8362
Summary: Ran out of registers during register allocation!
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5606)
--> (http://llvm.org/bugs/attachment.cgi?id=5606)
testcase
GCC can compile the attached asm, but llvm-gcc says:
$ llvm-gcc -S pr21291.c
cc1: error in backend: Ran out of registers during register allocation!
Please check your inline asm statement for invalid constraints:
INLINEASM , 0, 10, %reg16392, 10, %reg16393, 10, %reg16394,
10, %reg16395, 14, %EDI, 44, , 1, %reg0, 0,
%reg0, 2147483657, %ECX, 2147549193, %EBX, 2147614729, %ESI, 2147680265,
%reg16395, 14, %EFLAGS, 14, %EDX,
14, %EAX; GR32:%reg16392,16393,16394,16395,16395
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 12 09:10:50 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 12 Oct 2010 09:10:50 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8363] New: Assertion `PartVT.isInteger() &&
ValueVT.isInteger() && "Unknown mismatch!"' failed
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8363
Summary: Assertion `PartVT.isInteger() && ValueVT.isInteger()
&& "Unknown mismatch!"' failed
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5607)
--> (http://llvm.org/bugs/attachment.cgi?id=5607)
testcase .ll
$ llc part.ll
llc: llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:330: void
getCopyToParts(llvm::SelectionDAG&, llvm::DebugLoc, llvm::SDValue,
llvm::SDValue*, unsigned int, llvm::EVT, llvm::ISD::NodeType): Assertion
`PartVT.isInteger() && ValueVT.isInteger() && "Unknown mismatch!"' failed.
...
8 llc 0x00000000008baf2d
llvm::SelectionDAGBuilder::visitInlineAsm(llvm::ImmutableCallSite) + 14557
9 llc 0x00000000008c9dfc
llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) + 572
10 llc 0x00000000008b31ca llvm::SelectionDAGBuilder::visit(unsigned int,
llvm::User const&) + 394
11 llc 0x00000000008d922d
llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) + 45
12 llc 0x00000000008e7510
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator, llvm::ilist_iterator, bool&) + 160
13 llc 0x00000000008e7b74
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1476
14 llc 0x00000000008e882b
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 491
15 llc 0x0000000000cb65bd
llvm::FPPassManager::runOnFunction(llvm::Function&) + 557
16 llc 0x0000000000cb66bb llvm::FPPassManager::runOnModule(llvm::Module&)
+ 75
17 llc 0x0000000000cb6147 llvm::MPPassManager::runOnModule(llvm::Module&)
+ 503
18 llc 0x0000000000cb62c7 llvm::PassManagerImpl::run(llvm::Module&) + 167
19 llc 0x000000000051c335 main + 4117
20 libc.so.6 0x00007f3d774e8d8e __libc_start_main + 254
21 llc 0x000000000051a709
Stack dump:
0. Program arguments: llc part.ll
1. Running pass 'Function Pass Manager' on module 'part.ll'.
2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@f4'
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 Tue Oct 12 11:23:08 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 12 Oct 2010 11:23:08 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8359] ARM allocates invalid registers for VFPv3-D16
(possibly allocating D16, D17 etc.)
In-Reply-To:
References:
Message-ID: <20101012162308.0E1442A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8359
Bob Wilson changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |bob.wilson at apple.com
Resolution| |FIXED
--- Comment #2 from Bob Wilson 2010-10-12 11:23:07 CDT ---
Patch applied in svn 116310.
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 Oct 12 12:05:34 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 12 Oct 2010 12:05:34 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7715] clang++ gives wrong error about default
argument in kdatetime.h
In-Reply-To:
References:
Message-ID: <20101012170534.B45A22A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7715
Manuel Klimek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Manuel Klimek 2010-10-12 12:05:34 CDT ---
Fixed in r116311.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 12 13:28:22 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 12 Oct 2010 13:28:22 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6568] Assertion failed: Default argument is not yet
parsed!
In-Reply-To:
References:
Message-ID: <20101012182822.655922A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6568
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Douglas Gregor 2010-10-12 13:28:20 CDT ---
Fixed in Clang r116324.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 12 13:28:24 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 12 Oct 2010 13:28:24 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8245] Assertion failed: Default argument is not yet
parsed!
In-Reply-To:
References:
Message-ID: <20101012182824.8026A2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=8245
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2010-10-12 13:28:23 CDT ---
Fixed in Clang r116324.
--
Configure bugmail: http://llvm.org/bugs/userprefs.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 Oct 12 13:58:13 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 12 Oct 2010 13:58:13 -0500 (CDT)
Subject: [LLVMbugs] [Bug 8364] New: Verifier doesn't flag out-of-module
constants, BC writing crashes
Message-ID: