From bugzilla-daemon at cs.uiuc.edu Fri May 1 14:18:48 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 1 May 2009 14:18:48 -0500
Subject: [LLVMbugs] [Bug 4116] New: promotion of bit-field differs from gcc
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4116
Summary: promotion of bit-field differs from gcc
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
clang and llvm-gcc differ in the promotion rules for bit-fields. I'm not sure
yet who is correct, filing while I try to figure it out.
--
ddunbar at lordcrumb:tmp$ cat t.c
long long f0(void) {
struct { unsigned f0 : 16; } x = { 18 };
struct { unsigned f1 : 16; } y = { 22 };
return (long long) (x.f0 - y.f1);
}
long long f1(void) {
struct { unsigned f0 : 16; } x = { 18 };
struct { unsigned f1 ; } y = { 22 };
return (long long) (x.f0 - y.f1);
}
ddunbar at lordcrumb:tmp$ llvm-gcc -O3 -emit-llvm -S -o - t.c
; ModuleID = 't.c'
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i386-apple-darwin10.0"
define i64 @f0() nounwind readnone ssp {
entry:
ret i64 -4
}
define i64 @f1() nounwind readnone ssp {
entry:
ret i64 4294967292
}
ddunbar at lordcrumb:tmp$ clang -O3 -emit-llvm -S -o - t.c
; ModuleID = 't.c'
target datalayout =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "x86_64-apple-darwin10.0"
define i64 @f0() nounwind readnone {
entry:
ret i64 4294967292
}
define i64 @f1() nounwind readnone {
entry:
ret i64 4294967292
}
--
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri May 1 15:19:54 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 1 May 2009 15:19:54 -0500
Subject: [LLVMbugs] [Bug 4116] promotion of bit-field is incorrect
In-Reply-To:
Message-ID: <200905012019.n41KJsOO032016@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4116
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Eli Friedman 2009-05-01 15:19:54 ---
*** This bug has been marked as a duplicate of bug 3500 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri May 1 15:20:52 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 1 May 2009 15:20:52 -0500
Subject: [LLVMbugs] [Bug 4117] New: ./configure fails when there' s
whitespace in the working directory
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4117
Summary: ./configure fails when there's whitespace in the working
directory
Product: new-bugs
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Keywords: portability
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: joachimb at gmail.com
CC: llvmbugs at cs.uiuc.edu
When calling ./configure from this path:
21:56:39 nevyn:llvm$ pwd
/Users/nevyn/Development/Libraries and sources/C/llvm
./configure fails with:
./config.status: line 828: /Users/nevyn/Development/Libraries: No such file or
directory
/bin/sh: /Users/nevyn/Development/Libraries: No such file or directory
config.status: executing lib/Makefile commands
./config.status: line 830: /Users/nevyn/Development/Libraries: No such file or
directory
/bin/sh: /Users/nevyn/Development/Libraries: No such file or directory
config.status: executing lib/sample/Makefile commands
./config.status: line 832: /Users/nevyn/Development/Libraries: No such file or
directory
/bin/sh: /Users/nevyn/Development/Libraries: No such file or directory
config.status: executing tools/Makefile commands
./config.status: line 834: /Users/nevyn/Development/Libraries: No such file or
directory
/bin/sh: /Users/nevyn/Development/Libraries: No such file or directory
config.status: executing tools/sample/Makefile commands
./config.status: line 836: /Users/nevyn/Development/Libraries: No such file or
directory
/bin/sh: /Users/nevyn/Development/Libraries: No such file or directory
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri May 1 16:19:23 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 1 May 2009 16:19:23 -0500
Subject: [LLVMbugs] [Bug 3500] Wrong type computed for member access to
unsigned bitfield
In-Reply-To:
Message-ID: <200905012119.n41LJN78001576@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3500
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dgregor at apple.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Douglas Gregor 2009-05-01 16:19:19 ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090427/016580.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 cs.uiuc.edu Fri May 1 17:52:22 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 1 May 2009 17:52:22 -0500
Subject: [LLVMbugs] [Bug 4118] New: Register allocator not respecting early
clobber on inline asm
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4118
Summary: Register allocator not respecting early clobber on
inline asm
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2916)
--> (http://llvm.org/bugs/attachment.cgi?id=2916)
Testcase (bitcode)
Testcase attached; to reproduce, use the following command, at least on my
computer:
llc x2.bc -o - | fgrep "REGSA: %eax %eax"
I'm on Ubuntu Linux on x86-32 using a Core Duo (hopefully, that doesn't make a
difference).
The relevant inline asm is as follows:
%0 = call i32 asm sideeffect "REGSA: $0 $1 $2",
"=&{ax},r,r,~{cx},~{bx},~{dx},~{si},~{memory},~{dirflag},~{fpsr},~{flags}"(i8*
%arrayidx.i.i, %struct.CABACContext* %tmp3.i.i) nounwind ;
[#uses=1]
Unfortunately, it's difficult to simplify a testcase like this; the construct
in question isn't generally broken, just not working in this particular case.
Testcase reduced from libavcodec/h264.c in ffmpeg.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri May 1 18:08:33 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 1 May 2009 18:08:33 -0500
Subject: [LLVMbugs] [Bug 4119] New: Pointer alignment assumptions incorrect
for User*, causing bad behaviour in Use
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4119
Summary: Pointer alignment assumptions incorrect for User*,
causing bad behaviour in Use
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: critical
Priority: P2
Component: Core LLVM classes
AssignedTo: sdt at rapidmind.com
ReportedBy: sdt at rapidmind.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2917)
--> (http://llvm.org/bugs/attachment.cgi?id=2917)
Workaround that sets the default available bits to 2 instead of 3
This is a bug that's technically been around for a while, but was uncovered by
r67979. It causes various random crashes under Windows.
>From an email to llvm-dev:
The issue is with PointerLikeTypeTraits::NumLowBitsAvailable. This is set
to 3, which basically assumes that unless the traits are specialized for a
particular pointer type, objects of that type are allocated with malloc() and
aligned to 8 bytes.
While PointerLikeTypeTraits is overloaded for Use*, it is not overloaded for
User*. lib/VMCore/Use.cpp uses a PointerIntPair, and things go
bad. Users are typically allocated in an array after a bunch of Uses, which are
12 bytes in size, so they may actually only be aligned to 4 bytes.
The attached patch (which I don't intend to commit, it's just a workaround)
works around this simply by dropping this down to 2 bits, which gets us past
our problem on Windows.
To actually solve this properly I see two main options:
(1) we could specialize PointerLikeTypeTraits for User*, and leave the default
value of NumLowBitsAvailable at 3.
(2) we could drop the default NumLowBitsAvailable to 2 (or even use _alignof
and similar compiler-specific extensions to determine it), and allow classes
that assert that they are only ever allocated through malloc to relax it back
up to 3.
My preference would be for option (2), due to the difficulty of tracking this
bug down, and the risk of future similar bugs happening. However, I'd
appreciate some feedback from the LLVM developer community on this. Please let
me know what you think, and I'll be happy to prepare a patch.
I'm still wondering why this wasn't an issue on other platforms. One
possibility is that Use is being bumped up to 16 bytes in size, and thus Users
never get placed at less than an 8-byte boundary. However, in that case, the
whole point of the "use diet" optimization is lost! I'll investigate and try to
find out.
I'm also still not sure why the assertion in PointerIntPair::setPointer() did
not get triggered by the User::allocHungOffUses() implementation in Use.cpp.
Perhaps the assertion is wrong (it looks reasonable, though) or perhaps there
is something else going on I haven't seen yet. I'll look into this some more 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 cs.uiuc.edu Fri May 1 18:49:23 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 1 May 2009 18:49:23 -0500
Subject: [LLVMbugs] [Bug 4119] Pointer alignment assumptions incorrect for
User*, causing bad behaviour in Use
In-Reply-To:
Message-ID: <200905012349.n41NnNtq006713@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4119
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Chris Lattner 2009-05-01 18:49:23 ---
I dropped the default to 2 bits:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090427/076954.html
And added a patch to clang to compensate for this:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090427/016609.html
I'm still curious why no assertion happens, it could be a miscompilation by
your host compiler or something.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri May 1 19:33:44 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 1 May 2009 19:33:44 -0500
Subject: [LLVMbugs] [Bug 3500] Wrong type computed for member access to
unsigned bitfield
In-Reply-To:
Message-ID: <200905020033.n420XiD6008254@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3500
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #5 from Douglas Gregor 2009-05-01 19:33:43 ---
Thanks, Eli! Re-opening until I get *all* of the cases.
The (x.x+=1)+1 case is interesting, and it makes me wonder: how hard are we
supposed to try to determine whether an expression is a bit-field? We currently
look through parentheses and implicit casts, but appears that we also have to
look into binary operators that are assignments, too. Now I'm worried about,
e.g., "true? x.x : 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 cs.uiuc.edu Fri May 1 19:36:33 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 1 May 2009 19:36:33 -0500
Subject: [LLVMbugs] [Bug 4117] ./configure fails when there' s whitespace in
the working directory
In-Reply-To:
Message-ID: <200905020036.n420aXCe008393@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4117
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #1 from Chris Lattner 2009-05-01 19:36:33 ---
This is a known problem. Unfortunately, if you get past the configure script,
the makefiles have a ton of similar problems. Workaround is to create a
directory without a space and do a symlink to 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 cs.uiuc.edu Fri May 1 21:18:49 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 1 May 2009 21:18:49 -0500
Subject: [LLVMbugs] [Bug 4121] New: Assertion `it != mi2iMap_.end() &&
"Invalid instruction!"' failed.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4121
Summary: Assertion `it != mi2iMap_.end() && "Invalid
instruction!"' failed.
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu
Seen using r70531 on Ubuntu Hardy on x86.
regehr at john-home:~/volatile/tmp156$ llvm-gcc -O2 small.c
small.c: In function ???func_30???:
small.c:37: warning: assignment makes integer from pointer without a cast
cc1:
/home/regehr/z/tmp/llvm-r70531/include/llvm/CodeGen/LiveIntervalAnalysis.h:209:
unsigned int llvm::LiveIntervals::getInstructionIndex(llvm::MachineInstr*)
const: Assertion `it != mi2iMap_.end() && "Invalid instruction!"' failed.
small.c: At top level:
small.c:40: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
regehr at john-home:~/volatile/tmp156$ cat small.c
char safe_add_func_int8_t_s_s (char _si1, char _si2)
{
return _si1 > 0 && 0 > 127 - _si2 && -128 - _si2 ? : 1 + _si2;
}
short safe_sub_func_int16_t_s_s (short _si1, short _si2)
{
return _si1 << 1 * 8 - 1 - _si2 < 0 ? _si1 : _si1 - _si2;
}
char safe_mod_func_uint8_t_u_u (char _ui1, char _ui2)
{
return _ui2 ? : (_ui1 % _ui2);
}
char safe_lshift_func_uint8_t_u_s (char _left, int _right)
{
return _right >= 1 * 8 || 1 >> _right ? : 1 << _right;
}
int uint8;
char g_51;
char g_109;
int g_159;
char func_30 (int p_31, char p_32, char p_33, char p_34)
{
char l_52;
char l;
if (func_30
(1,
safe_add_func_int8_t_s_s (safe_mod_func_uint8_t_u_u
(safe_lshift_func_uint8_t_u_s (l_52, g_109),
safe_sub_func_int16_t_s_s (g_159, 1)),
g_51), 1, 1))
uint8;
for (1; 1; l = safe_sub_func_int16_t_s_s)
{
}
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri May 1 21:26:37 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 1 May 2009 21:26:37 -0500
Subject: [LLVMbugs] [Bug 4123] New: clang: Assertion `New != this &&
"this->replaceAllUsesWith( this) is NOT valid!"' failed.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4123
Summary: clang: Assertion `New != this && "this-
>replaceAllUsesWith(this) is NOT valid!"' failed.
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu, jxyang at cs.utah.edu
Seen using r70531 on Ubuntu Hardy on x86.
regehr at john-home:~/volatile/tmp157$ clang -O2 -w small.c
clang-cc: Value.cpp:328: void llvm::Value::replaceAllUsesWith(llvm::Value*):
Assertion `New != this && "this->replaceAllUsesWith(this) is NOT valid!"'
failed.
0 clang-cc 0x09021428
Stack dump:
0. Program arguments:
/home/regehr/z/tmp/llvm-gcc-r70531-install/bin/../libexec/clang-cc -triple
i386-pc-linux-gnu -S -disable-free -main-file-name small.c --relocation-model
static --disable-fp-elim --unwind-tables=0 --fmath-errno=1 -O2 -w
-fdiagnostics-show-option -o /tmp/cc-wxGkRp.s -x c small.c
1. parser at end of file
2. Per-module optimization passes
3. Running pass 'CallGraph Pass Manager' on module 'small.c'.
regehr at john-home:~/volatile/tmp157$ cat small.c
static char safe_sub_func_uint8_t_u_u (char _ui1, char _ui2)
{
return _ui1 - _ui2;
}
struct S0
{
int f0;
};
struct S1
{
char f0;
struct S0 f3;
};
struct S2
{
struct S1 f0;
int f1;
};
struct S1 func_120 (int p_121, int16p_122, uint32p_123, uint32p_124,
struct S2 p_125, struct S1 p_127, uint32p_128);
struct S2 func_96 (int p_98, int16p_99, int16p_101, int16p_102, struct S1
p_103,
int16p_104, int16p_105, int16p_106)
{
for (p_103.f0;; p_103.f0)
{
}
}
struct S1 func_113 (char p_114)
{
struct S2 l_232 = {
{
}
, 5L, 0x65B3L
};
struct S2 l_235 = {
{
}
, 0L
};
struct S1 l_256 = {
};
struct S1 l_263 = {
};
struct S1 l_281 = {
};
if (func_9func82
(func_96
(l_256.f3.f0, 1, 1, 1,
func_120 (l_235.f1, p_114, p_114, l_263.f0, l_232, l_281, 1), 1, 1,
1)), 1)
{
for (1; 1; p_114 = safe_sub_func_uint8_t_u_u (p_114, 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 cs.uiuc.edu Fri May 1 21:32:06 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 1 May 2009 21:32:06 -0500
Subject: [LLVMbugs] [Bug 4124] New: null ptr dereferenced
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4124
Summary: null ptr dereferenced
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu, jxyang at cs.utah.edu
Seen using r70531 on Ubuntu Hardy on x86.
regehr at john-home:~/volatile/tmp158$ valgrind --trace-children=yes llvm-gcc -O3
small.c
==2526== Memcheck, a memory error detector.
==2526== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==2526== Using LibVEX rev 1804, a library for dynamic binary translation.
==2526== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==2526== Using valgrind-3.3.0, a dynamic binary instrumentation framework.
==2526== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==2526== For more details, rerun with: -v
==2526==
==2528== Memcheck, a memory error detector.
==2528== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==2528== Using LibVEX rev 1804, a library for dynamic binary translation.
==2528== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==2528== Using valgrind-3.3.0, a dynamic binary instrumentation framework.
==2528== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==2528== For more details, rerun with: -v
==2528==
==2528== Invalid read of size 4
==2528== at 0x88D5655:
llvm::SimpleRegisterCoalescing::JoinIntervals(llvm::LiveInterval&,
llvm::LiveInterval&, bool&) (in
/home/regehr/z/tmp/llvm-gcc-r70531-install/libexec/gcc/i686-pc-linux-gnu/4.2.1/cc1)
==2528== Address 0x8 is not stack'd, malloc'd or (recently) free'd
small.c:51: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
==2528==
==2528== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 23 from 1)
==2528== malloc/free: in use at exit: 542,819 bytes in 1,778 blocks.
==2528== malloc/free: 8,794 allocs, 7,016 frees, 1,627,093 bytes allocated.
==2528== For counts of detected errors, rerun with: -v
==2528== searching for pointers to 1,778 not-freed blocks.
==2528== checked 1,807,200 bytes.
==2528==
==2528== LEAK SUMMARY:
==2528== definitely lost: 0 bytes in 0 blocks.
==2528== possibly lost: 1,028 bytes in 24 blocks.
==2528== still reachable: 541,791 bytes in 1,754 blocks.
==2528== suppressed: 0 bytes in 0 blocks.
==2528== Rerun with --leak-check=full to see details of leaked memory.
==2526==
==2526== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 23 from 1)
==2526== malloc/free: in use at exit: 18,964 bytes in 73 blocks.
==2526== malloc/free: 491 allocs, 418 frees, 42,008 bytes allocated.
==2526== For counts of detected errors, rerun with: -v
==2526== searching for pointers to 73 not-freed blocks.
==2526== checked 153,916 bytes.
==2526==
==2526== LEAK SUMMARY:
==2526== definitely lost: 4,314 bytes in 32 blocks.
==2526== possibly lost: 0 bytes in 0 blocks.
==2526== still reachable: 14,650 bytes in 41 blocks.
==2526== suppressed: 0 bytes in 0 blocks.
==2526== Rerun with --leak-check=full to see details of leaked memory.
regehr at john-home:~/volatile/tmp158$ cat small.c
int safe_rshift_func_int64_t_s_u (int _left, int _right)
{
return 1 * 8 ? _left : 1;
}
short safe_unary_minus_func_uint16_t_u (short _ui)
{
return -_ui;
}
int g_11;
char g_96;
int func_21 (char p_22, int p_24, char p_25)
{
if (1 & g_11)
{
func_70 (func_59 (1));
}
}
uint82 (int p_13, char p_14)
{
for (1; 1; 1)
{
func_59 (func_51 (safe_rshift_func_int64_t_s_u (g_11, 0))
&& func_21 (g_96, p_14, 1));
}
}
int func_51 (int p_52)
{
if (safe_unary_minus_func_uint16_t_u (p_52) || !p_52)
for (g_11 = 1; 0; 1)
{
}
else
{
return 1;
}
return p_52;
}
int func_59 (int p_60, int p_61)
{
g_11 = 1;
}
int func_70 (int32p_72)
{
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri May 1 21:47:17 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 1 May 2009 21:47:17 -0500
Subject: [LLVMbugs] [Bug 4125] New: clang wrong code at all optimization
levels
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4125
Summary: clang wrong code at all optimization levels
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu, jxyang at cs.utah.edu
Seen using r70531 on Ubuntu Hardy on x86.
regehr at john-home:~/volatile/tmp159$ llvm-gcc -O0 small.c -o small -w
regehr at john-home:~/volatile/tmp159$ ./small
checksum = 0
regehr at john-home:~/volatile/tmp159$ clang -O0 small.c -o small -w
regehr at john-home:~/volatile/tmp159$ ./small
checksum = 1
regehr at john-home:~/volatile/tmp159$ cat small.c
#include
#include
struct S1
{
uint8_t f0;
uint8_t f1;
};
struct S1 g_5 = {
1L, 0xD8564F5E99A55AEFLL
};
struct S1 g_158 = {
0xF5395DFB6A07BBA0LL, -9L
};
struct S1 g_297 = {
0x48FFBA5703788BE3LL, 1L
};
struct S1 g_313 = {
-8L, 1L
};
struct S1 func_1 (void);
uint32_t func_2 (uint8_t p_4, struct S1 p_6, uint8_t p_7);
int32_t func_23 (int32_t p_24, uint8_t p_25);
uint16_t func_35 (uint8_t p_37, int32_t p_39, int32_t p_40, uint32_t p_42,
int64_t p_43);
int32_t func_45 (int32_t p_46, struct S1 p_47);
struct S1 func_72 (uint16_t p_73);
struct S1 func_92 (struct S1 p_93);
struct S1 func_96 (uint32_t p_98, struct S1 p_99);
struct S1 func_1 (void)
{
uint8_t l_3 = 0;
struct S1 l_326 = {
3L, 0xEB43ED56C7AF7ED3LL
};
uint8_t l_327 = 1;
uint8_t l_328 = 1;
func_2 (1, func_92 (func_72 (1)),
func_23 (1,
func_45 (func_45
(1,
func_96 (func_35
(g_313.f1, l_327, l_328, l_3, 1),
l_326)), func_96 (l_3,
func_96 (func_35
(g_313.f1,
l_326.f1,
l_326.f0,
g_297.f1,
l_326.f1),
func_96
(g_313.f0,
l_326))))));
return g_158;
}
uint32_t func_2 (uint8_t p_4, struct S1 p_6, uint8_t p_7)
{
return 1;
}
int32_t func_23 (int32_t p_24, uint8_t p_25)
{
return g_5.f1;
}
uint16_t func_35 (uint8_t p_37, int32_t p_39, int32_t p_40, uint32_t p_42,
int64_t p_43)
{
g_5.f0 = p_42;
return 1;
}
int32_t func_45 (int32_t p_46, struct S1 p_47)
{
return 1;
}
struct S1 func_72 (uint16_t p_73)
{
return g_5;
}
struct S1 func_92 (struct S1 p_93)
{
return g_158;
}
struct S1 func_96 (uint32_t p_98, struct S1 p_99)
{
return g_5;
}
int main (void)
{
func_1 ();
printf ("checksum = %d\n", g_5.f0);
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 cs.uiuc.edu Sat May 2 01:13:22 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 2 May 2009 01:13:22 -0500
Subject: [LLVMbugs] [Bug 4125] clang wrong code at all optimization levels
In-Reply-To:
Message-ID: <200905020613.n426DMI9019203@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4125
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Eli Friedman 2009-05-02 01:13:21 ---
This testcase has unspecified behavior because the evaluation order of
arguments to a function is unspecified. clang and llvm-gcc are putting the two
calls to func_35 in different orders.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sat May 2 12:47:13 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 2 May 2009 12:47:13 -0500
Subject: [LLVMbugs] [Bug 4126] New: conditional jump to nowhere
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4126
Summary: conditional jump to nowhere
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu, jxyang at cs.utah.edu
Seen using r70624 on Ubuntu Hardy on x86.
One of the functions in the emitted code contains this strange-looking body:
uint8func_52:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
movl 8(%ebp), %eax
testl %eax, %eax
jne .LBB9_1
jle .LBB9_1
movl $0, (%esp)
call funcmul_
addl $8, %esp
popl %ebp
ret
regehr at john-home:~/volatile/tmp158$ llvm-gcc -Os small.c
/tmp/ccgm63CD.o: In function `uint8func_52':
small.c:(.text+0x55): undefined reference to `funcmul_'
small.c:(.text+0x43): undefined reference to `.LBB9_1'
small.c:(.text+0x49): undefined reference to `.LBB9_1'
collect2: ld returned 1 exit status
regehr at john-home:~/volatile/tmp158$ cat small.c
typedef int int16_t;
typedef int int32_t;
__extension__ typedef int int64_t;
typedef char uint8_t;
typedef int uint32_t;
__extension__ typedef int uint64_t;
static uint8_t
safe_mul_func_int16_t_s_s (int16_t _si1, int16_t _si2)
{
return _si2 > 0 && _si1 > 1 + _si2 && _si2 < -32767 - 1 + _si1 && +1
|| _si2 ? : _si2;
}
static int16_t
safe_div_func_int32_t_s_s (int32_t _si1, uint8_t _si2)
{
return -2147483647 - 1 == 1 ? : _si1;
}
int crc32 (int x)
{
}
static void
crc32_8bytes (uint64_t val)
{
crc32 (val >> 0);
crc32 (val >> 8);
crc32 (val >> 16);
}
volatile uint8_t g_89;
uint8_t g_93;
uint8_t
func_2 (uint32_t p_4, uint8_t p_5, uint8_t p_7, uint8_t p_8, uint8_t p_9)
{
}
uint82 (uint8_t p_13, uint8_t p_14)
{
}
uint81 (int64p_22)
{
}
uint8func_52 (uint64_t p_53)
{
uint8_t l_91;
funcmul_ (func_2
(1, g_93, safe_div_func_int32_t_s_s (p_53, 1)
|| safe_mul_func_int16_t_s_s (l_91, p_53), 1, 1));
}
uint84 (uint8p_56)
{
}
uint87 (uint8p_58)
{
}
uint89 (int64_t p_61, uint8_t p_62)
{
}
int
main (void)
{
crc32_8bytes (g_89);
crc32_8bytes (g_93);
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sat May 2 23:34:13 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 2 May 2009 23:34:13 -0500
Subject: [LLVMbugs] [Bug 4084] fix-it diagnostics on multiple lines need
fixin'
In-Reply-To:
Message-ID: <200905030434.n434YDSR005295@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4084
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dgregor at apple.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2009-05-02 23:34:12 ---
Fixed in r70656, by suppressing fix-it output if we can't show *all* of the
fixes 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 cs.uiuc.edu Sun May 3 03:15:32 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 03:15:32 -0500
Subject: [LLVMbugs] [Bug 4129] New: clang parser crash: terminate called
after throwing an instance of 'std::out_of_range' what():
basic_string::erase
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4129
Summary: clang parser crash: terminate called after throwing an
instance of 'std::out_of_range'
what(): basic_string::erase
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2920)
--> (http://llvm.org/bugs/attachment.cgi?id=2920)
testcase-min.i
$ clang testcase-min.i
testcase-min.i:1:62: warning: declaration of 'struct bts_tracer' will not be
visible outside of this function
struct bts_trace { struct ds_trace ds; int (*read)(struct bts_tracer
*tracer, const void *at, struct bts_struct ...
^
testcase-min.i:1:111: warning: declaration of 'struct bts_struct' will not be
visible outside of this function
struct bts_trace { struct ds_trace ds; int (*read)(struct bts_tracer
*tracer, const void *at, struct bts_struct ...
^
testcase-min.i:1:150: warning: declaration of 'struct bts_tracer' will not be
visible outside of this function
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::erase
0 clang-cc 0x000000000105dfdf
1 clang-cc 0x000000000105e3d9
2 libpthread.so.0 0x00007f7792b0a7b0
3 libc.so.6 0x00007f7791e2a115 gsignal + 53
4 libc.so.6 0x00007f7791e2b633 abort + 387
5 libstdc++.so.6 0x00007f77926b0e65 __gnu_cxx::__verbose_terminate_handler()
+ 277
6 libstdc++.so.6 0x00007f77926af256
7 libstdc++.so.6 0x00007f77926af283
8 libstdc++.so.6 0x00007f77926af37e
9 libstdc++.so.6 0x00007f779264ec17 std::__throw_out_of_range(char const*) +
103
10 clang-cc 0x00000000006acfb8
11 clang-cc 0x00000000006ae1ec
12 clang-cc 0x00000000006af60b
13 clang-cc 0x000000000078c285
14 clang-cc 0x00000000005ad925
15 clang-cc 0x00000000005b67a2
16 clang-cc 0x00000000007310d5
17 clang-cc 0x00000000007252a1
18 clang-cc 0x0000000000726077
19 clang-cc 0x0000000000727824
clang::Parser::ParseDirectDeclarator(clang::Declarator&) + 676
20 clang-cc 0x00000000007230aa
21 clang-cc 0x0000000000728963
22 clang-cc 0x000000000072978b
23 clang-cc 0x00000000007316b6
24 clang-cc 0x00000000007252a1
25 clang-cc 0x000000000071d482
26 clang-cc 0x000000000071edf2
27 clang-cc 0x000000000071f206
28 clang-cc 0x00000000005ad5e3
29 clang-cc 0x000000000047f19f
30 clang-cc 0x0000000000480631 main + 1985
31 libc.so.6 0x00007f7791e165a6 __libc_start_main + 230
32 clang-cc 0x000000000042b5a9
Stack dump:
0. Program arguments: /usr/local/bin/../libexec/clang-cc -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name testcase-min.i
--relocation-model static --disable-fp-elim --unwind-tables=1 --fmath-errno=1
-fdiagnostics-show-option -o /tmp/cc-ZzEXpP.s -x cpp-output testcase-min.i
1. testcase-min.i:1:161: current parser token '*'
2. testcase-min.i:1:2: parsing struct/union body 'bts_trace'
If I reformat the input using topformflat clang no longer crashes, it only
crashes if everything is on one line.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 3 03:30:37 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 03:30:37 -0500
Subject: [LLVMbugs] [Bug 4130] New: clang infloops on invalid C code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4130
Summary: clang infloops on invalid C code
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
$ time gcc testcase-min.i
testcase-min.i:1: error: expected ???=???, ???,???, ???;???, ???asm??? or
???__attribute__??? before ???ptep_get_and_clear???
real 0m0.007s
user 0m0.004s
sys 0m0.008s
However clang infloops:
$ clang testcase-min.i
^C
Here is the testcase-min.i:
static inline __attribute__((always_inline)) pte_t ptep_get_and_clear(struct
mm_struct *mm, unsigned long addr, pte_t *ptep) {
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 3 03:39:40 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 03:39:40 -0500
Subject: [LLVMbugs] [Bug 4129] clang parser crash: terminate called after
throwing an instance of 'std::out_of_range' what(): basic_string::erase
In-Reply-To:
Message-ID: <200905030839.n438de3i023379@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4129
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Chris Lattner 2009-05-03 03:39:39 ---
*** This bug has been marked as a duplicate of bug 4128 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 3 04:20:50 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 04:20:50 -0500
Subject: [LLVMbugs] [Bug 4131] New: clang: error: indirection requires
pointer operand ('void' invalid)
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4131
Summary: clang: error: indirection requires pointer operand
('void' invalid)
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
Blocks: 4068
clang -MD -MF kernel/.smp.o.d -nostdinc -isystem include -Iinclude
-I/home/edwin/builds/linux-2.6/arch/x86/include -include
include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef-Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -O2 -m64 -march=core2 -mno-red-zone
-mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-Iarch/x86/include/asm/mach-default -Wframe-larger-than=2048
-fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls
-Wdeclaration-after-statement -Wno-pointer-sign -fwrapv -fno-dwarf2-cfi-asm
-D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(smp)"
-D"KBUILD_MODNAME=KBUILD_STR(smp)" -c -o kernel/.tmp_smp.o kernel/smp.c
warning: unknown warning option: -Wframe-larger-than=2048
kernel/smp.c:14:8: error: variable has incomplete type 'typeof(struct
call_single_queue)' (aka 'struct call_single_queue')
static DEFINE_PER_CPU(struct call_single_queue, call_single_queue);
^
:201:1: note: instantiated from:
per_cpu__call_single_queue
^
kernel/smp.c:14:8: note: forward declaration of 'struct call_single_queue'
static DEFINE_PER_CPU(struct call_single_queue, call_single_queue);
^
kernel/smp.c:14:30: note: instantiated from:
static DEFINE_PER_CPU(struct call_single_queue, call_single_queue);
^
kernel/smp.c:42:34: error: indirection requires pointer operand ('void'
invalid)
struct call_single_queue *q = &per_cpu(call_single_queue, i);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:57:3: note: instantiated from:
(*SHIFT_PERCPU_PTR(&per_cpu_var(var), per_cpu_offset(cpu)))
^
kernel/smp.c:67:35: error: indirection requires pointer operand ('void'
invalid)
struct call_single_queue *dst = &per_cpu(call_single_queue, cpu);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:57:3: note: instantiated from:
(*SHIFT_PERCPU_PTR(&per_cpu_var(var), per_cpu_offset(cpu)))
^
kernel/smp.c:155:33: error: indirection requires pointer operand ('void'
invalid)
struct call_single_queue *q = &__get_cpu_var(call_single_queue);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:59:3: note: instantiated from:
(*SHIFT_PERCPU_PTR(&per_cpu_var(var), my_cpu_offset))
^
5 diagnostics generated.
make[1]: *** [kernel/smp.o] Error 1
make: *** [kernel/smp.o] Error 2
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 3 04:38:18 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 04:38:18 -0500
Subject: [LLVMbugs] [Bug 4131] clang: error: indirection requires pointer
operand ('void' invalid)
In-Reply-To:
Message-ID: <200905030938.n439cIeD016426@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4131
T??r??k Edwin changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from T??r??k Edwin 2009-05-03 04:37:52 ---
*** This bug has been marked as a duplicate of bug 4065 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 3 04:38:17 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 04:38:17 -0500
Subject: [LLVMbugs] [Bug 4063] clang -MD -MF doesn't create dependency file
for .S source files
In-Reply-To:
Message-ID: <200905030938.n439cHpL016400@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4063
Daniel Dunbar changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Daniel Dunbar 2009-05-03 04:38:01 ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090427/016686.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 cs.uiuc.edu Sun May 3 05:16:54 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 05:16:54 -0500
Subject: [LLVMbugs] [Bug 4132] New: clang: wrong preprocessing of .S file:
Error: invalid character '%' in mnemonic
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4132
Summary: clang: wrong preprocessing of .S file: Error: invalid
character '%' in mnemonic
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
Blocks: 4068
Created an attachment (id=2924)
--> (http://llvm.org/bugs/attachment.cgi?id=2924)
clang -E
arch/x86/crypto/aes-x86_64-asm_64.S:190: Error: invalid character '%' in
mnemonic
clang -MD -MF arch/x86/crypto/.aes-x86_64-asm_64.o.d -nostdinc -isystem
include -Iinclude -I/home/edwin/builds/linux-2.6/arch/x86/include -include
include/linux/autoconf.h -D__KERNEL__ -D__ASSEMBLY__ -m64 -DCONFIG_AS_CFI=1
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -Iarch/x86/include/asm/mach-default -DMODULE
-c -o arch/x86/crypto/aes-x86_64-asm_64.o arch/x86/crypto/aes-x86_64-asm_64.S
-E -o x.s
gcc -MD -MF arch/x86/crypto/.aes-x86_64-asm_64.o.d -nostdinc -isystem
/usr/lib/gcc/x86_64-linux-gnu/4.3.3/include -Iinclude
-I/home/edwin/builds/linux-2.6/arch/x86/include -include
include/linux/autoconf.h -D__KERNEL__ -D__ASSEMBLY__ -m64 -DCONFIG_AS_CFI=1
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -Iarch/x86/include/asm/mach-default -DMODULE
arch/x86/crypto/aes-x86_64-asm_64.S -E -o y.s
clang's x.s is not compilable by gcc -c, but gcc's y.s is compilable by clang.
I'm attaching preprocessed files, however clang's preprocessed file is invalid
in this case i 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 cs.uiuc.edu Sun May 3 06:01:46 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 06:01:46 -0500
Subject: [LLVMbugs] [Bug 4133] New: clang: symbol declared as always_inline
and extern considered internal
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4133
Summary: clang: symbol declared as always_inline and extern
considered internal
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
Blocks: 4068
The kernel fails to link:
net/unix/af_unix.c:(.text+0x6d779): undefined reference to `mutex_lock'
net/built-in.o: In function `unix_dgram_recvmsg':
net/unix/af_unix.c:(.text+0x6e9af): undefined reference to `mutex_lock'
net/built-in.o: In function `unix_autobind':
net/unix/af_unix.c:(.text+0x6f30f): undefined reference to `mutex_lock'
net/built-in.o: In function `unix_stream_recvmsg':
net/unix/af_unix.c:(.text+0x70531): undefined reference to `mutex_lock'
net/unix/af_unix.c:(.text+0x70966): undefined reference to `mutex_lock
Testcase:
$ gcc -c testcase-min.i -o x.o
0000000000000000 T mutex_lock
$ clang testcase-min.i -c -o x.o
$ nm x.o
$ clang testcase-min.i -c -o x.o -std=gnu89
$ nm x.o
$ cat testcase-min.i
void inline __attribute__ ((always_inline))
__attribute__ ((__section__ (".sched.text"))) mutex_lock (struct mutex
*lock)
{
}
extern
typeof (mutex_lock)
mutex_lock;
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 3 06:11:06 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 06:11:06 -0500
Subject: [LLVMbugs] [Bug 4134] New: clang: __builtin_extract_return_addr not
implemented
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4134
Summary: clang: __builtin_extract_return_addr not implemented
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
Blocks: 4068
Testcase:
unsigned long foo(unsigned long addr)
{
return (unsigned long) __builtin_extract_return_addr((void*)addr);
}
int main()
{}
$ clang foo.c
tmp/cc-y3kFrH.o: In function `foo':
x.c:(.text+0x1b): undefined reference to `__builtin_extract_return_addr'
collect2: ld returned 1 exit status
$ gcc foo.c
$
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 3 06:43:02 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 06:43:02 -0500
Subject: [LLVMbugs] [Bug 4135] New: PointerMayBeCaptured() vs.
readonly/readnone
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4135
Summary: PointerMayBeCaptured() vs. readonly/readnone
Product: new-bugs
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: fvbommel at wxs.nl
CC: llvmbugs at cs.uiuc.edu
PointerMayBeCaptured (in Analysis/CaptureTracking) assumes that
readonly/readnone functions returning void can't capture their pointer
arguments. Due to the "visible to caller functions" clauses in the attribute
definitions this isn't technically correct.
(If this is resolved by changing the attribute descriptions to remove those
clauses, please also update PointerMayBeCaptured to handle readonly/readnone
functions returning pointers by tracking the return value)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 3 10:59:00 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 10:59:00 -0500
Subject: [LLVMbugs] [Bug 4136] New: Infinite recursion in scheduler
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4136
Summary: Infinite recursion in scheduler
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: asl at math.spbu.ru
CC: gohman at apple.com, llvmbugs at cs.uiuc.edu
Created an attachment (id=2926)
--> (http://llvm.org/bugs/attachment.cgi?id=2926)
Testcase
Consider attached bitecode. It seems that scheduler just infinitely loops on it
and then crashes due to stack exhaustion.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 3 11:08:40 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 11:08:40 -0500
Subject: [LLVMbugs] [Bug 4137] New: Miscompilation of heavy-phi code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4137
Summary: Miscompilation of heavy-phi code
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: asl at math.spbu.ru
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2927)
--> (http://llvm.org/bugs/attachment.cgi?id=2927)
Original bytecode
Consider the .bc attached. Currently llc produces invalid code for it (running
the resulting binary would yield "sort test failed"). CBE works fine.
Bugpoint reduced "safe" and "test" parts are attached as well. The bytecode
itself was derived from
/SingleSource/Benchmarks/Adobe-C++/stepanov_abstraction.cpp after some bc=>bc
transformation.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 3 12:14:33 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 12:14:33 -0500
Subject: [LLVMbugs] [Bug 4138] New: GEP is not of right type for indices!
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4138
Summary: GEP is not of right type for indices!
Product: tools
Version: 2.5
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: llvm-ld
AssignedTo: unassignedbugs at nondot.org
ReportedBy: mattp223 at renzelmann.com
CC: llvmbugs at cs.uiuc.edu
Hello,
As an experiment, I'm attempting to port user-mode Linux 2.6.29 to LLVM. In my
day-old attempt at a port, LLVM gets relatively far before encountering a
problem.
Build environment/platform: LLVM 2.5, using the LLVM-2.5 GCC front end for GCC
4.2.1. Used GCC 4.2.4 for building LLVM. Platform is RHEL 5, kernel
2.6.18-128.1.6.el5.
Here's the output of a slightly-reduced test case. You can download the
object/bitcode files for this test from here:
http://pages.cs.wisc.edu/~mjr/files/test_case.tbz
I can provide the complete source code as well, if desired, since it's straight
from the Linux 2.6.29 kernel.
======================================
> llvm-ld -verify-each -disable-opt -disable-inlining -v -r -o proc.o base.o proc_tty.o cmdline.o cpuinfo.o
Linking bitcode file 'base.o'
Linked in file 'base.o'
Linking bitcode file 'proc_tty.o'
Linked in file 'proc_tty.o'
Linking bitcode file 'cmdline.o'
Linked in file 'cmdline.o'
Linking bitcode file 'cpuinfo.o'
Linked in file 'cpuinfo.o'
GEP is not of right type for indices!
%29 = getelementptr %struct.inode* %2, i32 0, i32 22 ;
<%struct.inode_operations**> [#uses=1]
{ i32 (%struct.inode*, %struct.dentry*, i32, %struct.nameidata*)*,
%struct.dentry* (%struct.inode*, %struct.dentry*, %struct.nameidata*)*, i32
(%struct.dentry*, %struct.inode*, %struct.dentry*)*, i32 (%struct.inode*,
%struct.dentry*)*, i32 (%struct.inode*, %struct.dentry*, i8*)*, i32
(%struct.inode*, %struct.dentry*, i32)*, i32 (%struct.inode*,
%struct.dentry*)*, i32 (%struct.inode*, %struct.dentry*, i32, i32)*, i32
(%struct.inode*, %struct.dentry*, %struct.inode*, %struct.dentry*)*, i32
(%struct.dentry*, i8*, i32)*, i8* (%struct.dentry*, %struct.nameidata*)*, void
(%struct.dentry*, %struct.nameidata*, i8*)*, void (%struct.inode*)*, i32
(%struct.inode*, i32)*, i32 (%struct.dentry*, %struct.iattr*)*, i32
(%struct.vfsmount*, %struct.dentry*, %struct.kstat*)*, i32 (%struct.dentry*,
i8*, i8*, i32, i32)*, i32 (%struct.dentry*, i8*, i8*, i32)*, i32
(%struct.dentry*, i8*, i32)*, i32 (%struct.dentry*, i8*)*, void
(%struct.inode*, i64, i64)*, i32 (%struct.inode*, i32, i64, i64)*, i32
(%struct.inode*, %struct.fiemap_extent_info*, i64, i64)* }*Instruction does not
dominate all uses!
%29 = getelementptr %struct.inode* %2, i32 0, i32 22 ;
<%struct.inode_operations**> [#uses=1]
store %struct.inode_operations* %27, %struct.inode_operations** %29,
align 4
Broken module found, compilation aborted!
0 llvm-ld 0x083571de
1 libc.so.6 0x002ccac1 abort + 257
2 llvm-ld 0x082fa195
./test.sh: line 5: 14575 Aborted llvm-ld -verify-each
-disable-opt -disable-inlining -v -r -o proc.o base.o proc_tty.o cmdline.o
cpuinfo.o
======================================
These objects were produced using commands like this:
======================================
llvm-gcc
-Wp,-MD,fs/proc/.page.o.d
-nostdinc
-isystem
/scratch/sym/llvm-gcc4.2-2.5-x86-linux-RHEL4/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/include
-Iinclude
-I/scratch/sym/linux-2.6.29-llvm/arch/um/include
-include include/linux/autoconf.h
-D__KERNEL__
-I/scratch/sym/linux-2.6.29-llvm/arch/um/sys-i386
-I/scratch/sym/linux-2.6.29-llvm/arch/x86/include
-Wall
-Wundef
-Wstrict-prototypes
-Wno-trigraphs
-fno-strict-aliasing
-fno-common
-Werror-implicit-function-declaration
-Os
-emit-llvm
-D__arch_um__
-DSUBARCH=\"i386\"
-I/scratch/sym/linux-2.6.29-llvm/arch/um/include/shared
-I/scratch/sym/linux-2.6.29-llvm/arch/um/sys-i386/shared
-I/scratch/sym/linux-2.6.29-llvm/arch/um/include/shared/skas
-Dvmap=kernel_vmap
-Din6addr_loopback=kernel_in6addr_loopback
-Din6addr_any=kernel_in6addr_any
-funit-at-a-time
-march=i686
-Wa,-mtune=generic32
-mpreferred-stack-boundary=2
-ffreestanding
-D_LARGEFILE64_SOURCE
-Derrno=kernel_errno
-Dsigprocmask=kernel_sigprocmask
-Dmktime=kernel_mktime
-fno-stack-protector
-fno-omit-frame-pointer
-fno-optimize-sibling-calls
-g
-Wdeclaration-after-statement
-Wno-pointer-sign
-fwrapv
-D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(page)"
-D"KBUILD_MODNAME=KBUILD_STR(proc)"
-c
-o fs/proc/page.o fs/proc/page.c
======================================
I recognize this is a huge mess compared to some of the test cases you normally
deal with. If you would like me to try anything else, aside from writing a
patch ;), or you need more information, please let me know.
Thanks and regards,
Matt
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 3 12:48:57 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 12:48:57 -0500
Subject: [LLVMbugs] [Bug 3373] cannot tie inline asm operands of different
widths
In-Reply-To:
Message-ID: <200905031748.n43HmvI1009526@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3373
T??r??k Edwin changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #28 from T??r??k Edwin 2009-05-03 12:48:56 ---
(In reply to comment #27)
> This appears to be fixed...
>
Closing then.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 3 13:00:17 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 13:00:17 -0500
Subject: [LLVMbugs] [Bug 3373] cannot tie inline asm operands of different
widths
In-Reply-To:
Message-ID: <200905031800.n43I0HcT009920@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3373
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #29 from Duncan Sands 2009-05-03 13:00:16 ---
This was reported as an llvm-gcc problem, but was not fixed in llvm-gcc.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 3 13:14:34 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 13:14:34 -0500
Subject: [LLVMbugs] [Bug 4133] clang: symbol declared as always_inline and
extern considered internal
In-Reply-To:
Message-ID: <200905031814.n43IEYl2010456@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4133
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Eli Friedman 2009-05-03 13:14:33 ---
Fixed in r70786.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 3 13:32:48 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 13:32:48 -0500
Subject: [LLVMbugs] [Bug 4140] New: clang -print-file-name not consistent
with gcc
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4140
Summary: clang -print-file-name not consistent with gcc
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
Blocks: 4068
$ gcc -print-file-name=libncursesw.so
/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../../lib/libncursesw.so
$ clang
libncursesw.so
This is causing silent failures during evaluating of certain variables in
Makefile, which in turn leads to link failures because a required -l line is
missing.
$ make HOSTCC=clang CC=clang menuconfig
fails with lots of undefined references to symbols in ncurses
The link line is:
clang -o scripts/kconfig/mconf scripts/kconfig/mconf.o
scripts/kconfig/zconf.tab.o scripts/kconfig/lxdialog/checklist.o
scripts/kconfig/lxdialog/util.o scripts/kconfig/lxdialog/inputbox.o
scripts/kconfig/lxdialog/textbox.o scripts/kconfig/lxdialog/yesno.o
scripts/kconfig/lxdialog/menubox.o
vs. the link line with gcc:
gcc -o scripts/kconfig/mconf scripts/kconfig/mconf.o
scripts/kconfig/zconf.tab.o scripts/kconfig/lxdialog/checklist.o
scripts/kconfig/lxdialog/util.o scripts/kconfig/lxdialog/inputbox.o
scripts/kconfig/lxdialog/textbox.o scripts/kconfig/lxdialog/yesno.o
scripts/kconfig/lxdialog/menubox.o -lncursesw
This is because check-lxdialog.sh -ldflags clang outputs nothing:
/bin/sh -x
/home/edwin/builds/linux-2.6/scripts/kconfig/lxdialog/check-lxdialog.sh
-ldflags clang
+ tmp=.lxdialog.tmp
+ trap 'rm -f .lxdialog.tmp' 0 1 2 3 15
+ '[' 2 -eq 0 ']'
+ cc=
+ case "$1" in
+ shift
+ cc=clang
+ ldflags
+ for ext in so a dylib
+ for lib in ncursesw ncurses curses
+ clang -print-file-name=libncursesw.so
+ grep -q /
+ '[' 1 -eq 0 ']'
+ for lib in ncursesw ncurses curses
+ clang -print-file-name=libncurses.so
+ grep -q /
+ '[' 1 -eq 0 ']'
+ for lib in ncursesw ncurses curses
+ clang -print-file-name=libcurses.so
+ grep -q /
+ '[' 1 -eq 0 ']'
+ for ext in so a dylib
+ for lib in ncursesw ncurses curses
+ clang -print-file-name=libncursesw.a
+ grep -q /
+ '[' 1 -eq 0 ']'
+ for lib in ncursesw ncurses curses
+ clang -print-file-name=libncurses.a
+ grep -q /
+ '[' 1 -eq 0 ']'
+ for lib in ncursesw ncurses curses
+ clang -print-file-name=libcurses.a
+ grep -q /
+ '[' 1 -eq 0 ']'
+ for ext in so a dylib
+ for lib in ncursesw ncurses curses
+ clang -print-file-name=libncursesw.dylib
+ grep -q /
+ '[' 1 -eq 0 ']'
+ for lib in ncursesw ncurses curses
+ clang -print-file-name=libncurses.dylib
+ grep -q /
+ '[' 1 -eq 0 ']'
+ for lib in ncursesw ncurses curses
+ clang -print-file-name=libcurses.dylib
+ grep -q /
+ '[' 1 -eq 0 ']'
+ exit 1
+ rm -f .lxdialog.tmp
This is how gcc behaves:
+ tmp=.lxdialog.tmp
+ trap 'rm -f .lxdialog.tmp' 0 1 2 3 15
+ '[' 2 -eq 0 ']'
+ cc=
+ case "$1" in
+ shift
+ cc=gcc
+ ldflags
+ for ext in so a dylib
+ for lib in ncursesw ncurses curses
+ gcc -print-file-name=libncursesw.so
+ grep -q /
+ '[' 0 -eq 0 ']'
+ echo -lncursesw
-lncursesw
+ exit
+ rm -f .lxdialog.tmp
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 3 13:51:09 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 13:51:09 -0500
Subject: [LLVMbugs] [Bug 4135] PointerMayBeCaptured() vs. readonly/readnone
In-Reply-To:
Message-ID: <200905031851.n43Ip9c8012269@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4135
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #12 from Chris Lattner 2009-05-03 13:51:09 ---
I updated langref to make it explicit that readnone/readonly cannot throw. I
don't think there is anything left in this bug to do.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 3 14:16:17 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 14:16:17 -0500
Subject: [LLVMbugs] [Bug 4132] clang: wrong preprocessing of .S file: Error:
invalid character '%' in mnemonic
In-Reply-To:
Message-ID: <200905031916.n43JGHfm013194@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4132
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Eli Friedman 2009-05-03 14:16:17 ---
Fixed in r70793.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 3 14:24:26 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 14:24:26 -0500
Subject: [LLVMbugs] [Bug 4134] clang: __builtin_extract_return_addr not
implemented
In-Reply-To:
Message-ID: <200905031924.n43JOQ2L013533@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4134
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2009-05-03 14:24:26 ---
Fixed in r70794.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 3 14:33:22 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 14:33:22 -0500
Subject: [LLVMbugs] [Bug 4141] New: PointerMayBeCaptured() can do better for
readonly/ readnone function calls.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4141
Summary: PointerMayBeCaptured() can do better for
readonly/readnone function calls.
Product: new-bugs
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: fvbommel at wxs.nl
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2935)
--> (http://llvm.org/bugs/attachment.cgi?id=2935)
Proposed patch
PointerMayBeCaptured() currently only treats calls to readonly/readnone
functions differently if they return 'void', but it could also handle them if
they return a pointer (by tracking whether the return value escapes).
>From the testcase in the attached patch:
---
declare i8* @external_identity(i8*) readonly
define void @nc6(i8* %p) {
call i8* @external_identity(i8* %p)
ret void
}
---
That %p parameter should be marked 'nocapture' by "opt -functionattrs". There's
no way it could escape.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 3 17:36:48 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 17:36:48 -0500
Subject: [LLVMbugs] [Bug 2524] bogus error when taking the address of a
noproto function decl
In-Reply-To:
Message-ID: <200905032236.n43Mam5x020102@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=2524
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Eli Friedman 2009-05-03 17:36:47 ---
"Fixed" (downgraded to a warning) in r70805.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 3 17:38:31 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 3 May 2009 17:38:31 -0500
Subject: [LLVMbugs] [Bug 4036] `opt -verify` crashes on Windows
In-Reply-To:
Message-ID: <200905032238.n43McVxc020179@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4036
Mikhail Glushenkov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #9 from Mikhail Glushenkov 2009-05-03 17:38:31 ---
Couldn't reproduce this with recent trunk. This bug really seems to be a
duplicate of bug 4119.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon May 4 02:52:38 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 4 May 2009 02:52:38 -0500
Subject: [LLVMbugs] [Bug 4145] New: Bulds fail on Cygwin with error message
about dwarf version
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4145
Summary: Bulds fail on Cygwin with error message about dwarf
version
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: magnus.reftel at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2940)
--> (http://llvm.org/bugs/attachment.cgi?id=2940)
Output from "make > dwarf_error.txt 2>&1" after a failing build
Since Wednesday or Thursday last week, builds have failed on Cygwin with error
messages like the following:
/usr/lib/gcc/i686-pc-cygwin/4.3.2/../../../../i686-pc-cygwin/bin/ld: Dwarf
Error: found dwarf version '8242', this reader only handles version 2
information.
/c/temp/llvm-svn/Debug/lib/LLVMXCore.o:XCoreTargetMachine.cpp:(.rdata$_ZTVN4llvm18XCoreTargetMachineE[vtable
for llvm::XCoreTargetMachine]+0x4c): undefined reference to
`llvm::LLVMTargetMachine::addPassesToEmitMachineCode(llvm::PassManagerBase&,
llvm::MachineCodeEmitter&, llvm::CodeGenOpt::Level)'
I'm attaching the make output from building again after a failure.
I am currently running revision 70826, but have had autobuild running since
around 15:00 UTC on April 30. No builds have succeeded. The last revision that
I know did not have this problem was 70374. Current svn info output:
$ svn info
Path: .
URL: http://llvm.org/svn/llvm-project/llvm/trunk
Repository Root: http://llvm.org/svn/llvm-project
Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
Revision: 70826
Node Kind: directory
Schedule: normal
Last Changed Author: evancheng
Last Changed Rev: 70821
Last Changed Date: 2009-05-04 05:30:11 +0200 (Mon, 04 May 2009)
And config.status --version:
$ ./config.status --version
llvm config.status 2.6svn
configured by ./configure, generated by GNU Autoconf 2.60,
with options "'--prefix=/opt/llvm-svn' 'CC=gcc-4'
'CFLAGS=-I/opt/llvm-svn/lib/libffi-3.0.8/include/'
'LDFLAGS=-L/opt/llvm-svn/lib/'
'CPPFLAGS=-I/opt/llvm-svn/lib/libffi-3.0.8/include/' 'CXX=g++-4'
'CXXFLAGS=-I/opt/llvm-svn/lib/libffi-3.0.8/include/'"
Copyright (C) 2006 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify 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 cs.uiuc.edu Mon May 4 03:12:28 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 4 May 2009 03:12:28 -0500
Subject: [LLVMbugs] [Bug 4145] Bulds fail on Cygwin with error message about
dwarf version
In-Reply-To:
Message-ID: <200905040812.n448CSFw016764@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4145
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |asl at math.spbu.ru
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Anton Korobeynikov 2009-05-04 03:12:28 ---
(In reply to comment #0)
> /usr/lib/gcc/i686-pc-cygwin/4.3.2/../../../../i686-pc-cygwin/bin/ld: Dwarf
> Error: found dwarf version '8242', this reader only handles version 2
> information.
> /c/temp/llvm-svn/Debug/lib/LLVMXCore.o:XCoreTargetMachine.cpp:(.rdata$_ZTVN4llvm18XCoreTargetMachineE[vtable
> for llvm::XCoreTargetMachine]+0x4c): undefined reference to
> `llvm::LLVMTargetMachine::addPassesToEmitMachineCode(llvm::PassManagerBase&,
> llvm::MachineCodeEmitter&, llvm::CodeGenOpt::Level)'
Your gcc is broken then - it generates invalid debug information. This is not
an LLVM bug. Try release version instead, maybe it will 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 cs.uiuc.edu Mon May 4 03:29:07 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 4 May 2009 03:29:07 -0500
Subject: [LLVMbugs] [Bug 4146] New: scalarrepl crash on i1 store
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4146
Summary: scalarrepl crash on i1 store
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
$ opt -scalarrepl testcase.bc
opt: llvm/lib/VMCore/Instructions.cpp:2356:
llvm::TruncInst::TruncInst(llvm::Value*, const llvm::Type*, const std::string&,
llvm::Instruction*): Assertion `castIsValid(getOpcode(), S, Ty) && "Illegal
Trunc"' failed.
Here's the testcase:
%wrapper = type { i1 }
define void @f() {
entry:
%w = alloca %wrapper, align 8 ; <%wrapper*> [#uses=1]
%0 = getelementptr %wrapper* %w, i64 0, i32 0 ;
[#uses=1]
store i1 true, i1* %0
ret void
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon May 4 03:30:41 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 4 May 2009 03:30:41 -0500
Subject: [LLVMbugs] [Bug 4147] New: llvm-ar rs and llvm-ranlib do not
produce archive index
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4147
Summary: llvm-ar rs and llvm-ranlib do not produce archive index
Product: tools
Version: 2.5
Platform: PC
OS/Version: Linux
Status: NEW
Severity: blocker
Priority: P2
Component: llvm-ranlib
AssignedTo: unassignedbugs at nondot.org
ReportedBy: wagner at it.neclab.eu
CC: llvmbugs at cs.uiuc.edu
Using LLVM-2.5 I have the problem not being able to link against llvm-ar
created libs, because the linker is missing the index:
> could not read symbols: Archive has no index; run ranlib to add one
However the library was created using 'llvm-ar rs'.
Manually creating the index using 'llvm-ranlib' does not help either.
If the library is created with 'llvm-ar r' only and 'llvm-ranlib' is used to
add the index later, the library file is not altered, size and content do not
change after calling ranlib.
'llvm-ranlib -verbose' does not print a table either.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon May 4 04:39:32 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 4 May 2009 04:39:32 -0500
Subject: [LLVMbugs] [Bug 4145] Bulds fail on Cygwin with error message about
dwarf version
In-Reply-To:
Message-ID: <200905040939.n449dWvR020344@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4145
Magnus Reftel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #3 from Magnus Reftel 2009-05-04 04:39:26 ---
Building for debug on a supported platform with the currently shipping version
on the complier should work, or it should be listed as a known issue in the
release notes.
Anyway, the problem may not be the dwarf version, but undefined references. In
the clean build output (see attachment 2941), the dwarf version warnings are
preceeded by the following:
llvm[2]: Linking Debug executable llc
Info: resolving std::cerr by linking to __imp___ZSt4cerr (auto-import)
Info: resolving std::basic_string,
std::allocator >::_Rep::_S_max_size by linking to
__imp___ZNSs4_Rep11_S_max_sizeE (auto-import)
Info: resolving std::basic_string,
std::allocator >::_Rep::_S_empty_rep_storage by linking to
__imp___ZNSs4_Rep20_S_empty_rep_storageE (auto-import)
Info: resolving std::nothrow by linking to __imp___ZSt7nothrow (auto-import)
Info: resolving VTT for std::basic_ifstream > by
linking to __imp___ZTTSt14basic_ifstreamIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_ifstream >
by linking to __imp___ZTVSt14basic_ifstreamIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_filebuf > by
linking to __imp___ZTVSt13basic_filebufIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_streambuf >
by linking to __imp___ZTVSt15basic_streambufIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_ios > by
linking to __imp___ZTVSt9basic_iosIcSt11char_traitsIcEE (auto-import)
Info: resolving std::basic_string,
std::allocator >::_Rep::_S_terminal by linking to
__imp___ZNSs4_Rep11_S_terminalE (auto-import)
Info: resolving VTT for std::basic_ofstream > by
linking to __imp___ZTTSt14basic_ofstreamIcSt11char_traitsIcEE (auto-import)
Info: resolving vtable for std::basic_ofstream >
by linking to __imp___ZTVSt14basic_ofstreamIcSt11char_traitsIcEE (auto-import)
Info: resolving VTT for std::basic_ostringstream,
std::allocator > by linking to
__imp___ZTTSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE (auto-import)
Info: resolving vtable for std::basic_ostringstream, std::allocator > by linking to
__imp___ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE (auto-import)
Info: resolving vtable for std::basic_stringbuf,
std::allocator > by linking to
__imp___ZTVSt15basic_stringbufIcSt11char_traitsIcESaIcEE (auto-import)
Info: resolving vtable for std::basic_stringstream, std::allocator > by linking to
__imp___ZTVSt18basic_stringstreamIcSt11char_traitsIcESaIcEE (auto-import)
Info: resolving VTT for std::basic_stringstream,
std::allocator > by linking to
__imp___ZTTSt18basic_stringstreamIcSt11char_traitsIcESaIcEE (auto-import)
Info: resolving std::cout by linking to __imp___ZSt4cout (auto-import)
Info: resolving std::cin by linking to __imp___ZSt3cin
(auto-import/usr/lib/gcc/i686-pc-cygwin/4.3.2/../../../../i686-pc-cygwin/bin/ld:
warning: auto-importing has been activated without --enable-auto-import
specified on the command line.
This should work unless it involves constant data structures referencing
symbols from auto-imported DLLs./c/temp/llvm-svn/tools/llc/Debug/llc.o: In
function `ForceCodegenLinking':
/c/temp/llvm-svn/include/llvm/CodeGen/LinkAllCodegenComponents.h:46: undefined
reference to `llvm::createBURRListDAGScheduler(llvm::SelectionDAGISel*,
llvm::CodeGenOpt::Level)'
/c/temp/llvm-svn/include/llvm/CodeGen/LinkAllCodegenComponents.h:47: undefined
reference to `llvm::createTDRRListDAGScheduler(llvm::SelectionDAGISel*,
llvm::CodeGenOpt::Level)'
/c/temp/llvm-svn/include/llvm/CodeGen/LinkAllCodegenComponents.h:48: undefined
reference to `llvm::createTDListDAGScheduler(llvm::SelectionDAGISel*,
llvm::CodeGenOpt::Level)'
/c/temp/llvm-svn/include/llvm/CodeGen/LinkAllCodegenComponents.h:49: undefined
reference to `llvm::createFastDAGScheduler(llvm::SelectionDAGISel*,
llvm::CodeGenOpt::Level)'
/c/temp/llvm-svn/include/llvm/CodeGen/LinkAllCodegenComponents.h:50: undefined
reference to `llvm::createDefaultScheduler(llvm::SelectionDAGISel*,
llvm::CodeGenOpt::Level)'
/c/temp/llvm-svn/tools/llc/Debug/llc.o: In function `main':
/c/temp/llvm-svn/tools/llc/llc.cpp:258: undefined reference to
`llvm::cl::opt >::operator char() const'
/c/temp/llvm-svn/tools/llc/Debug/llc.o: In function `basic_parser':
/c/temp/llvm-svn/include/llvm/Support/CommandLine.h:531: undefined reference to
`vtable for llvm::cl::basic_parser'
/c/temp/llvm-svn/tools/llc/Debug/llc.o: In function `parser':
/c/temp/llvm-svn/include/llvm/Support/CommandLine.h:686: undefined reference to
`vtable for llvm::cl::parser'
/c/temp/llvm-svn/tools/llc/Debug/llc.o:/c/temp/llvm-svn/include/llvm/Support/CommandLine.h:281:
undefined reference to `llvm::cl::opt
>::setInitialValue(char const&)'
/c/temp/llvm-svn/tools/llc/Debug/llc.o: In function `~basic_parser':
/c/temp/llvm-svn/include/llvm/Support/CommandLine.h:531: undefined reference to
`vtable for llvm::cl::basic_parser'
/c/temp/llvm-svn/tools/llc/Debug/llc.o: In function `~parser':
/c/temp/llvm-svn/include/llvm/Support/CommandLine.h:686: undefined reference to
`vtable for llvm::cl::parser'
/c/temp/llvm-svn/tools/llc/Debug/llc.o: In function `~opt':
/c/temp/llvm-svn/include/llvm/Support/CommandLine.h:833: undefined reference to
`vtable for llvm::cl::opt >'
/c/temp/llvm-svn/tools/llc/Debug/llc.o: In function `opt >':
/c/temp/llvm-svn/include/llvm/Support/CommandLine.h:909: undefined reference to
`vtable for llvm::cl::opt >'
/c/temp/llvm-svn/include/llvm/Support/CommandLine.h:912: undefined reference to
`llvm::cl::opt >::done()'
/usr/lib/gcc/i686-pc-cygwin/4.3.2/../../../../i686-pc-cygwin/bin/ld: Dwarf
Error: Abbrev offset (2007759) greater than or equal to .debug_abbrev size
(24497).
/c/temp/llvm-svn/Debug/lib/LLVMMSP430.o:MSP430AsmPrinter.cpp:(.text+0x87c):
undefined reference to `llvm::AsmPrinter::AsmPrinter(llvm::raw_ostream&,
llvm::TargetMachine&, llvm::TargetAsmInfo const*, llvm::CodeGenOpt::Level,
bool)'
/usr/lib/gcc/i686-pc-cygwin/4.3.2/../../../../i686-pc-cygwin/bin/ld: Dwarf
Error: found dwarf version '30', this reader only handles version 2
information.
/c/temp/llvm-svn/Debug/lib/LLVMMSP430.o:MSP430AsmPrinter.cpp:(.text+0xab5):
undefined reference to `llvm::DwarfWriter::RecordSourceLine(unsigned int,
unsigned int, llvm::DICompileUnit)'
The GCC version I'm using is
$ g++-4 --version
g++-4 (GCC) 4.3.2 20080827 (beta) 2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
and ld is
$ ld --version
GNU ld (GNU Binutils) 2.18.50.20080625
Copyright 2007 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon May 4 05:32:09 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 4 May 2009 05:32:09 -0500
Subject: [LLVMbugs] [Bug 4145] Bulds fail on Cygwin with error message about
dwarf version
In-Reply-To:
Message-ID: <200905041032.n44AW9sU021999@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4145
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Anton Korobeynikov 2009-05-04 05:31:32 ---
(In reply to comment #3)
> Building for debug on a supported platform with the currently shipping version
> on the complier should work, or it should be listed as a known issue in the
> release notes.
Note that you're using beta snapshot-based compiler which can be pretty buggy
(this already happened with cygwin in the past) especially for gcc secondary
priority platform. I verified that mingw debug build is ok, that's why I assume
that nothing is broken in LLVM codebase itself.
There were already problems with linkers for COFF targets which prevented LLVM
build someday (see note in "Broken compilers and tools" section).
I added an entry here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090504/077100.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 cs.uiuc.edu Mon May 4 06:03:52 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 4 May 2009 06:03:52 -0500
Subject: [LLVMbugs] [Bug 4149] New: JIT fails when requiring exact size
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4149
Summary: JIT fails when requiring exact size
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nicolas at capens.net
CC: llvmbugs at cs.uiuc.edu
When JITMemoryManager.SizeRequired is set to true, recent revisions hit the
assert in X86InstrInfo::sizeOfImm.
The SizeRequired flag is very useful when using a custom JITMemoryManager
implementation (e.g. to compile functions eagerly instead of lazily).
Unfortunately this feature was broken in revision 68645. For reproducing this
it should suffice to set SizeRequired to true in the constructor of
JITMemoryManager, and then run the Fibonacci sample.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon May 4 07:14:31 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 4 May 2009 07:14:31 -0500
Subject: [LLVMbugs] [Bug 4152] New: [Linux kernel] invalid asm constraint 'i'
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4152
Summary: [Linux kernel] invalid asm constraint 'i'
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jgarzik at pobox.com
CC: llvmbugs at cs.uiuc.edu
Blocks: 4068
Created an attachment (id=2943)
--> (http://llvm.org/bugs/attachment.cgi?id=2943)
pre-processed source code: arch/x86/kernel/process_64.c
clang -MD -MF arch/x86/kernel/.process_64.o.d -nostdinc -isystem include
-Iinclude -I/spare/repo/linux-2.6/arch/x86/include -include
include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Os -m64 -mtune=generic -mno-red-zone
-mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-Wframe-larger-than=2048 -fno-omit-frame-pointer -fno-optimize-sibling-calls -g
-pg -Wdeclaration-after-statement -Wno-pointer-sign -fwrapv -fno-dwarf2-cfi-asm
-D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(process_64)"
-D"KBUILD_MODNAME=KBUILD_STR(process_64)" -D"DEBUG_HASH=48" -D"DEBUG_HASH2=34"
-c -o arch/x86/kernel/.tmp_process_64.o arch/x86/kernel/process_64.c
clang: warning: the clang compiler does not yet support '-pg'
warning: unknown warning option: -Wframe-larger-than=2048
llvm: error: Invalid operand for inline asm constraint 'i'!
make[1]: *** [arch/x86/kernel/process_64.o] Error 1
make: *** [arch/x86/kernel] Error 2
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon May 4 07:49:38 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 4 May 2009 07:49:38 -0500
Subject: [LLVMbugs] [Bug 3967] llvm-gcc handles regparm incorrectly
In-Reply-To:
Message-ID: <200905041249.n44CncM6026640@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3967
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Duncan Sands 2009-05-04 07:49:35 ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090504/077102.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 cs.uiuc.edu Mon May 4 08:03:34 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 4 May 2009 08:03:34 -0500
Subject: [LLVMbugs] [Bug 4145] Linking lcc fails on Cygwin
In-Reply-To:
Message-ID: <200905041303.n44D3Y5Y027118@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4145
Magnus Reftel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
Summary|Bulds fail on Cygwin with |Linking lcc fails on Cygwin
|error message about dwarf |
|version |
--- Comment #5 from Magnus Reftel 2009-05-04 08:03:30 ---
It appears not to be related to debug or to the compiler version. I've build
for retail (using --enable-optimized when configuring) and build with GCC 4 and
GCC 3.4.4, and I get link errors in both. The warnings about the dwarf version
go away though, so it seems that was a red herring.
$ svn info
Path: .
URL: http://llvm.org/svn/llvm-project/llvm/trunk
Repository Root: http://llvm.org/svn/llvm-project
Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
Revision: 70845
Node Kind: directory
Schedule: normal
Last Changed Author: evancheng
Last Changed Rev: 70821
Last Changed Date: 2009-05-04 05:30:11 +0200 (Mon, 04 May 2009)
GCC 4
$ ./config.status --version
llvm config.status 2.6svn
configured by ./configure, generated by GNU Autoconf 2.60,
with options "'--prefix=/opt/llvm-svn' '--enable-optimized' 'CC=gcc-4'
'CFLAGS=-I/opt/llvm-svn/lib/libffi-3.0.8/include' 'LDFLAGS=-L/opt/llvm-svn/lib'
'CPPFLAGS=-I/opt/llvm-svn/lib/libffi-3.0.8/include' 'CXX=g++-4'
'CXXFLAGS=-I/opt/llvm-svn/lib/libffi-3.0.8/include'"
Copyright (C) 2006 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
Attaching clean build output as 78045_optimized_gcc4.txt
GCC 3
$ ./config.status --version
llvm config.status 2.6svn
configured by ./configure, generated by GNU Autoconf 2.60,
with options "'--prefix=/opt/llvm-svn' '--enable-optimized' 'CC=gcc'
'CFLAGS=-I/opt/llvm-svn/lib/libffi-3.0.8/include' 'LDFLAGS=-L/opt/llvm-svn/lib'
'CPPFLAGS=-I/opt/llvm-svn/lib/libffi-3.0.8/include' 'CXX=g++'
'CXXFLAGS=-I/opt/llvm-svn/lib/libffi-3.0.8/include'"
Copyright (C) 2006 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
Attaching clean build output as 78045_optimized_gcc3.txt
$ gcc --version
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon May 4 11:51:36 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 4 May 2009 11:51:36 -0500
Subject: [LLVMbugs] [Bug 4141] PointerMayBeCaptured() can do better for
readonly/ readnone function calls.
In-Reply-To:
Message-ID: <200905041651.n44Gpac8002212@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4141
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Duncan Sands 2009-05-04 11:51:35 ---
I applied your patch with some tweaks:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090504/077110.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 cs.uiuc.edu Mon May 4 14:26:03 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 4 May 2009 14:26:03 -0500
Subject: [LLVMbugs] [Bug 4154] New: -fast and -tailcallopt don't combine
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4154
Summary: -fast and -tailcallopt don't combine
Product: libraries
Version: 2.5
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: arigo at tunes.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2951)
--> (http://llvm.org/bugs/attachment.cgi?id=2951)
wrong result of "llc -fast -tailcallopt"
"llc -fast -tailcallopt" gives wrong results on the small attached file.
The issue is that there is a "addl 4, %esp" after the "call *%eax", which is
(correctly) not there if compiled with "llc -tailcallopt".
This seems to be tailcallopt not generating the correct calls in "fast" mode.
It was discovered by playing with the JIT compiler. (Obviously, the call in
question is not meant to be a tail call; this is part of a more complete set of
functions, and some other calls elsewhere are the ones meant to be tail calls.)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon May 4 14:52:36 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 4 May 2009 14:52:36 -0500
Subject: [LLVMbugs] [Bug 4154] -fast and -tailcallopt don't combine
In-Reply-To:
Message-ID: <200905041952.n44Jqa82010088@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4154
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gohman at apple.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Dan Gohman 2009-05-04 14:52:35 ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090504/077128.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 cs.uiuc.edu Mon May 4 15:18:27 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 4 May 2009 15:18:27 -0500
Subject: [LLVMbugs] [Bug 4147] llvm-ar rs and llvm-ranlib do not produce
archive index
In-Reply-To:
Message-ID: <200905042018.n44KIRqf010953@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4147
Nick Lewycky changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nlewycky at google.com
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Nick Lewycky 2009-05-04 15:18:26 ---
The llvm-ar format can't be read by your system linker on linux. Use normal
system ar and ranlib.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon May 4 23:57:57 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 4 May 2009 23:57:57 -0500
Subject: [LLVMbugs] [Bug 4156] New: ICE: Assertion `isa(Val) &&
"cast() argument of incompatible type!"' failed.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4156
Summary: ICE: Assertion `isa(Val) && "cast() argument of
incompatible type!"' failed.
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu, jxyang at cs.utah.edu
Seen using r70938 on Ubuntu Hardy on x86.
regehr at john-home:~/volatile/tmp163$ llvm-gcc -O small.c
small.c: In function ???int322???:
small.c:51: warning: assignment makes integer from pointer without a cast
cc1: /home/regehr/z/tmp/llvm-r70938/include/llvm/Support/Casting.h:199:
typename llvm::cast_retty::ret_type llvm::cast(const Y&) [with X =
llvm::CallInst, Y = llvm::Instruction*]: Assertion `isa(Val) && "cast()
argument of incompatible type!"' failed.
small.c: At top level:
small.c:58: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
regehr at john-home:~/volatile/tmp163$ cat small.c
typedef char int8_t;
typedef int int16_t;
typedef char uint8_t;
typedef int uint32_t;
uint8_t
safe_add_func_int8_t_s_s (int8_t _si1, uint8_t _si2)
{
}
uint8_t
safe_add_func_int16_t_s_s (int16_t _si1, uint8_t _si2)
{
return 32767 - _si2 < -_si2 ? : 1;
}
uint32_t
safe_sub_func_uint32_t_u_u (uint32_t _ui1, uint32_t _ui2)
{
}
uint8_t g_11;
uint8_t g_38;
uint8_t
func_12 (int8_t p_14, uint8_t p_16, uint8_t p_17, uint8_t p_19)
{
return g_11;
}
uint8_t
func_27 (uint32p_28)
{
return g_38;
}
uint8_t
func_30 (int64p_31)
{
}
uint8_t
func_33 (uint32p_35)
{
}
int322 (uint32_t p_43)
{
uint8_t l_44;
uint8_t l_45;
for (1; p_43; safe_add_func_int8_t_s_s)
{
uint8_t l_48;
for (1; p_43; 1)
for (1; l_44; l_44 = safe_sub_func_uint32_t_u_u)
{
func_30 (func_27 (l_45));
func_33 (func_27 (1) || safe_add_func_int16_t_s_s (g_38, 1));
l_45 = func_12 (p_43, l_48, g_38, 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 cs.uiuc.edu Tue May 5 03:39:09 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 5 May 2009 03:39:09 -0500
Subject: [LLVMbugs] [Bug 4157] New: Using ENV generates wrong source code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4157
Summary: Using ENV generates wrong source code
Product: tools
Version: trunk
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: TableGen
AssignedTo: unassignedbugs at nondot.org
ReportedBy: martin.nowack at inf.tu-dresden.de
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2953)
--> (http://llvm.org/bugs/attachment.cgi?id=2953)
Patch for ENV bug
Using the ENV macro the generated code contains an additional brace ')' - the
attached patch fixes the behavior.
The problem persists at least since 2.5 and also in trunk.
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 cs.uiuc.edu Tue May 5 04:24:16 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 5 May 2009 04:24:16 -0500
Subject: [LLVMbugs] [Bug 4158] New: support arbitrary-width integers in the
C backend
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4158
Summary: support arbitrary-width integers in the C backend
Product: libraries
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Backend: C
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
Currently it is not possible to use the C backend if the bitcode contains i256,
i512, or anything >128, due to:
extern llvmUInt128llc: CBackend.cpp:484:
llvm::raw_ostream&::CWriter::printSimpleType(llvm::raw_ostream&, const
llvm::Type*, bool, const std::string&): Assertion `NumBits <= 128 && "Bit
widths > 128 not implemented yet"' failed.
Would it be possible for the C backend to use the type legalization framework,
and tell it that it supports only i8, i16, i32, i64, (and possibly i128)?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Tue May 5 07:34:47 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 5 May 2009 07:34:47 -0500
Subject: [LLVMbugs] [Bug 4157] Using ENV generates wrong source code
In-Reply-To:
Message-ID: <200905051234.n45CYl9U022139@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4157
Mikhail Glushenkov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Mikhail Glushenkov 2009-05-05 07:34:43 ---
Applied, 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 cs.uiuc.edu Tue May 5 11:04:42 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 5 May 2009 11:04:42 -0500
Subject: [LLVMbugs] [Bug 4159] New: forward_as does not use second argument
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4159
Summary: forward_as does not use second argument
Product: tools
Version: trunk
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: TableGen
AssignedTo: unassignedbugs at nondot.org
ReportedBy: martin.nowack at inf.tu-dresden.de
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2956)
--> (http://llvm.org/bugs/attachment.cgi?id=2956)
patch to fix forward
Using forward_as to substitute a parameter with a new one does not use the new
parameter in the generated file. This bug at least exists for 2.5
Patch attached to fix this.
By the way, please update the online documentation
(http://www.llvm.org/docs/CompilerDriver.html).
The provided example for forward_as omits the comma between the arguments.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Tue May 5 20:41:28 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 5 May 2009 20:41:28 -0500
Subject: [LLVMbugs] [Bug 4159] forward_as does not use second argument
In-Reply-To:
Message-ID: <200905060141.n461fSdK020405@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4159
Mikhail Glushenkov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Mikhail Glushenkov 2009-05-05 20:41:27 ---
Applied, 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 cs.uiuc.edu Tue May 5 23:34:23 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 5 May 2009 23:34:23 -0500
Subject: [LLVMbugs] [Bug 4161] New: need to pass codegen options through to
lto
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4161
Summary: need to pass codegen options through to lto
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: lto
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nicholas at mxc.ca
CC: rafael.espindola at gmail.com, llvmbugs at cs.uiuc.edu
Some LTO options such as PIC and FP elimination should be passed from the
frontend through to the backend. For debugging, it'd be nice to pass -fast
through too.
Some of the options (like target triple) are stored in the .bc, but we need to
sort out what options go where and how we make them flow through from llvm-gcc
to the gold plugin, into libLTO and make it all the way to codegen. Every
option that llvm-gcc supports should probably have a matching option unless
it's in the bitcode.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed May 6 01:55:14 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 6 May 2009 01:55:14 -0500
Subject: [LLVMbugs] [Bug 3277] llvm-g++ front-end outputing code that is not
folded by irbuilder?
In-Reply-To:
Message-ID: <200905060655.n466tENn031784@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3277
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #14 from Duncan Sands 2009-05-06 01:55:13 ---
I guess this can be considered fixed now that we have ODR linkage types.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed May 6 01:59:16 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 6 May 2009 01:59:16 -0500
Subject: [LLVMbugs] [Bug 2163] Codegen illegally reorders division by zero
before function call
In-Reply-To:
Message-ID: <200905060659.n466xGEn031945@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=2163
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |baldrick at free.fr
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #4 from Duncan Sands 2009-05-06 01:59:15 ---
This seems to have been 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 cs.uiuc.edu Wed May 6 02:08:12 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 6 May 2009 02:08:12 -0500
Subject: [LLVMbugs] [Bug 3403] llc: "Do not know how to split the result of
this operator!"
In-Reply-To:
Message-ID: <200905060708.n4678C32032238@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3403
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |baldrick at free.fr
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #1 from Duncan Sands 2009-05-06 02:08:11 ---
This seems to have been fixed at some point.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed May 6 03:56:59 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 6 May 2009 03:56:59 -0500
Subject: [LLVMbugs] [Bug 3754] FunctionAttrs pass marks function with
MallocInst as readnone
In-Reply-To:
Message-ID: <200905060856.n468uwOZ014112@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3754
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Duncan Sands 2009-05-06 03:55:44 ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090504/077169.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 cs.uiuc.edu Wed May 6 06:25:28 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 6 May 2009 06:25:28 -0500
Subject: [LLVMbugs] [Bug 4165] New: LLVM_ENABLE_THREADS
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4165
Summary: LLVM_ENABLE_THREADS
Product: Build scripts
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Makefiles
AssignedTo: unassignedbugs at nondot.org
ReportedBy: thebohemian at gmx.net
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2963)
--> (http://llvm.org/bugs/attachment.cgi?id=2963)
fix to use proper macro in lib/System/Mutex.cpp
In the file lib/System/Mutex.cpp the preprocessor macro ENABLE_THREADS is
evaluated. However there is no such macro when the cmake buildsystem is in use.
Instead there is LLVM_ENABLE_THREADS.
I believe it is the source file which needs to be fixed. However it is possible
that the autotools build system needs to be adjusted accordingly.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed May 6 06:32:03 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 6 May 2009 06:32:03 -0500
Subject: [LLVMbugs] [Bug 4093] LegalizeDAG does not allow expansion of
subtraction operation
In-Reply-To:
Message-ID: <200905061132.n46BW3ST020144@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4093
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Duncan Sands 2009-05-06 06:31:56 ---
Applied here, with cleanups (spaces not tabs, use
AllOnesValue to be 128 bit safe, eliminate the
fp case - SUB is not valid for floating point, etc):
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090504/077170.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 cs.uiuc.edu Wed May 6 07:09:47 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 6 May 2009 07:09:47 -0500
Subject: [LLVMbugs] [Bug 4060] building with g++-4.4 causes ocaml test to
fail
In-Reply-To:
Message-ID: <200905061209.n46C9lIG021465@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4060
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Duncan Sands 2009-05-06 07:09:46 ---
Nick fixed this.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed May 6 07:22:39 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 6 May 2009 07:22:39 -0500
Subject: [LLVMbugs] [Bug 2752] Ocaml bindings for parameter attributes
In-Reply-To:
Message-ID: <200905061222.n46CMdcZ021916@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=2752
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #13 from Duncan Sands 2009-05-06 07:22:23 ---
Applied here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090504/077171.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 cs.uiuc.edu Wed May 6 07:34:18 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 6 May 2009 07:34:18 -0500
Subject: [LLVMbugs] [Bug 4166] New: Assert while trying to compile using ldc
with arm as target on x86 host
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4166
Summary: Assert while trying to compile using ldc with arm as
target on x86 host
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: fredridv at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2964)
--> (http://llvm.org/bugs/attachment.cgi?id=2964)
Output from 'ldc -c tango/net/cluster/tina/CacheThread.d -oftest.bc'
A slightly modified ldc (to get it to cross compile for an arm target) running
on linux x86 gives the following error while compiling a file in the tango
library:
ldc: TwoAddressInstructionPass.cpp:800: virtual
bool::TwoAddressInstructionPass::runOnMachineFunction(llvm::MachineFunction&):
Assertion `TargetRegisterInfo::isVirtualRegister(regB) && "cannot update
physical register live information"' failed.
0 ldc 0x08add088
Stack dump:
0. Running pass 'Two-Address instruction pass' on function
'@_D5tango3net7cluster4tina11CacheThread11CacheThread4loadMFE5tango3net7cluster4tina14ProtocolWriter14ProtocolWriter7CommandAaAaZv'
./build-tango.sh: line 110: 32166 Aborted (core dumped) $DC
$ARCH $WARN -c $INLINE $DEBUG $RELEASE $POSIXFLAG -version=Tango -of$OBJNAME
$FILENAME
Compilation of tango/net/cluster/tina/CacheThread.d failed
ldc is from hg, Mon May 04 13:32:16 2009 +0200, rev. 1299:847b767b2d0b,
tango is 0.99.8,
llvm is svn rev. 70630.
I couldn't get bugpoint to reduce the file size, so I attach the bitcode file
produced by ldc.
The error is reproducible by running 'llc -march=arm test.bc'.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed May 6 08:47:23 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 6 May 2009 08:47:23 -0500
Subject: [LLVMbugs] [Bug 2655] memcpyopt doesn't zap an alloca + memmove
In-Reply-To:
Message-ID: <200905061347.n46DlNUP024856@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=2655
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #8 from Duncan Sands 2009-05-06 08:47:16 ---
The memcpy is now no longer present, though perhaps for the wrong reasons.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed May 6 09:28:56 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 6 May 2009 09:28:56 -0500
Subject: [LLVMbugs] [Bug 4165] LLVM_ENABLE_THREADS
In-Reply-To:
Message-ID: <200905061428.n46ESuPR026365@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4165
??scar Fuentes changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from ??scar Fuentes 2009-05-06 09:28:53 ---
Applied. 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 cs.uiuc.edu Wed May 6 11:21:09 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 6 May 2009 11:21:09 -0500
Subject: [LLVMbugs] [Bug 2655] memcpyopt doesn't zap an alloca + memmove
In-Reply-To:
Message-ID: <200905061621.n46GL9NU030387@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=2655
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WORKSFORME |
--- Comment #9 from Chris Lattner 2009-05-06 11:21:06 ---
The memcpy isn't present, but the memmove is. Taking the code from the
description, adding nocapture to the stret result and using:
$ llvm-as < t.ll | opt -memcpyopt | llvm-dis
gives:
define void @foo(%struct.out* nocapture sret %agg.result) {
entry:
%out = alloca %struct.out, align 4 ; <%struct.out*>
[#uses=3]
%tmp = getelementptr %struct.out* %out, i32 0, i32 0 ;
[#uses=1]
%call = call i32 @bar() ; [#uses=1]
store i32 %call, i32* %tmp
%tmp1 = getelementptr %struct.out* %out, i32 0, i32 1 ;
[#uses=1]
%call2 = call i32 @bar() ; [#uses=1]
store i32 %call2, i32* %tmp1
%tmp3 = bitcast %struct.out* %agg.result to i8* ;
[#uses=1]
%tmp4 = bitcast %struct.out* %out to i8* ;
[#uses=1]
call void @llvm.memmove.i32(i8* %tmp3, i8* %tmp4, i32 8, i32 4)
ret void
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed May 6 12:46:08 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 6 May 2009 12:46:08 -0500
Subject: [LLVMbugs] [Bug 2163] Codegen illegally reorders division by zero
before function call
In-Reply-To:
Message-ID: <200905061746.n46Hk85g000822@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=2163
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gohman at apple.com
Status|RESOLVED |REOPENED
Resolution|WORKSFORME |
--- Comment #5 from Dan Gohman 2009-05-06 12:45:56 ---
Here's a new testcase which still reproduces the problem:
declare i32 @x()
define i32 @foo(i32 %a, i32 %b) nounwind {
%t0 = tail call i32 @x() nounwind
%t1 = sdiv i32 %a, %b
ret i32 %t1
}
Currently the div is scheduled before the call on x86 and x86-64.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed May 6 13:28:53 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 6 May 2009 13:28:53 -0500
Subject: [LLVMbugs] [Bug 4166] Assert while trying to compile using ldc with
arm as target on x86 host
In-Reply-To:
Message-ID: <200905061828.n46ISru5002346@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4166
Evan Cheng changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Evan Cheng 2009-05-06 13:28:49 ---
Fixed.
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090504/077185.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 cs.uiuc.edu Wed May 6 15:26:32 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 6 May 2009 15:26:32 -0500
Subject: [LLVMbugs] [Bug 4169] New: llvm-config --src-root should print
canonical path
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4169
Summary: llvm-config --src-root should print canonical path
Product: tools
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: minor
Priority: P2
Component: llvm-config
AssignedTo: unassignedbugs at nondot.org
ReportedBy: fawzi at gmx.ch
CC: llvmbugs at cs.uiuc.edu
llvm-config --src-root returns
/Users/fawzi/d/ldc/llvm-build/../llvm/
in my configuration, and that becomes invalid if the build directory is
deleted... even if the src directory is still present.
It is not difficult to keep a directory, but returning a canonicalized path
would be better.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed May 6 16:12:19 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 6 May 2009 16:12:19 -0500
Subject: [LLVMbugs] [Bug 4126] conditional jump to nowhere
In-Reply-To:
Message-ID: <200905062112.n46LCJ3S008119@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4126
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Dan Gohman 2009-05-06 16:12:18 ---
Yes, fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090504/077153.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 cs.uiuc.edu Wed May 6 20:20:05 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 6 May 2009 20:20:05 -0500
Subject: [LLVMbugs] [Bug 4170] New: llc crashes when emitting code for
variable sized ( zero length) array
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4170
Summary: llc crashes when emitting code for variable sized (zero
length) array
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jvb at wongr.net
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2967)
--> (http://llvm.org/bugs/attachment.cgi?id=2967)
test case
Hi
llc crashes on this test case with an assertion failure (.bc file is attached)
define void @test([0 x i32] %x) {
entry:
%y = extractvalue [0 x i32] %x, 0
ret void
}
llc:
/home/julian/rcs-data/llvm-svn/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:4011:
llvm::SDVTList llvm::SelectionDAG::getVTList(const llvm::MVT*, unsigned int):
Assertion `0 && "Cannot have nodes without results!"' failed.
I am using a fresh SVN checkout:
$ llc --version
Low Level Virtual Machine (http://llvm.org/):
llvm version 2.6svn
Optimized build with assertions.
Built May 7 2009(01:19:30).
I am not very familiar with the internals of LLVM but the problem might be that
ComputeValueVTs in SelectionDAGBuild.cpp thinks that a zero length array
comprises of no types.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed May 6 21:01:13 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 6 May 2009 21:01:13 -0500
Subject: [LLVMbugs] [Bug 4171] New: darwin-string-literals test failure on
ppc32 for utf-16 string
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4171
Summary: darwin-string-literals test failure on ppc32 for utf-16
string
Product: clang
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Keywords: miscompilation, portability
Severity: normal
Priority: P2
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: cianci66 at mac.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2969)
--> (http://llvm.org/bugs/attachment.cgi?id=2969)
llvm-ir file produced by test.
The test is being run on powerpc-apple-darwin9.6.0
The test expects
@__utf16_string_ = internal global [35 x i8] c"h\00e\00l\00l\00o\00 \00\92!
\00\03& \00\90! \00w\00o\00r\00l\00d\00\00", section "__TEXT,__ustring", align
2
to be produced. The test produces
@__utf16_string_ = internal global [35 x i8] c"\00h\00e\00l\00l\00o\00 !\92\00
&\03\00 !\90\00 \00w\00o\00r\00l\00d\00", section "__TEXT,__ustring", align 2
See attached .ll file.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu May 7 03:12:37 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 7 May 2009 03:12:37 -0500
Subject: [LLVMbugs] [Bug 4145] Linking lcc fails on Cygwin
In-Reply-To:
Message-ID: <200905070812.n478Cbq1007706@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4145
Magnus Reftel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |INVALID
--- Comment #11 from Magnus Reftel 2009-05-07 03:12:31 ---
Re-tested with a pristine 70826, and it worked. There must have been some junk
in my working directory that didn't go away after "make clean" but still
managed to ruin my builds.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu May 7 09:17:27 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 7 May 2009 09:17:27 -0500
Subject: [LLVMbugs] [Bug 4172] New: false positive: Branch condition
evaluates to an uninitialized value
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4172
Summary: false positive: Branch condition evaluates to an
uninitialized value
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: dimhen at gmail.com
CC: llvmbugs at cs.uiuc.edu
scan-build gcc -Wall -O3 tst.c
produce
ANALYZE: tst.c foo
tst.c:15:5: warning: Branch condition evaluates to an uninitialized value.
if(k==0)
^ ~
1 diagnostic generated.
scan-build: 1 bugs found.
I use rev. #71157
#pr -n tst.c
1 struct blob {
2 int n;
3 void *p;
4 } B;
5
6 extern void bar(struct blob*);
7
8 int foo(void)
9 {
10 int k;
11 B.n = sizeof(k);
12 B.p = (void*) &k;
13 bar(&B);
14
15 if(k==0)
16 return 0;
17 else
18 return 1;
19 }
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu May 7 09:43:36 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 7 May 2009 09:43:36 -0500
Subject: [LLVMbugs] [Bug 4173] New: false positive: Dereference of null
pointer
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4173
Summary: false positive: Dereference of null pointer
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: dimhen at gmail.com
CC: llvmbugs at cs.uiuc.edu
scan-build gcc -Wall -O3 -c tst1.c
produce
ANALYZE: tst1.c foo
tst1.c:21:10: warning: Dereference of null pointer
pB->n = 0;
~~~~^
1 diagnostic generated.
scan-build: 1 bugs found.
cat tst1.c
#include
struct blob {
int n;
void *p;
};
extern void bar(FILE**);
void foo(int x, int *y)
{
struct blob *pB = NULL;
if( !(x & 0x16) )
bar((FILE**) (void*)&pB);
if( !(x & 0x16) ) {
if(*y==0) {
*y = 5;
} else {
pB->n = 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 cs.uiuc.edu Thu May 7 10:42:20 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 7 May 2009 10:42:20 -0500
Subject: [LLVMbugs] [Bug 4174] New: LoopIndexSplit executes loop body too
many times!
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4174
Summary: LoopIndexSplit executes loop body too many times!
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: major
Priority: P2
Component: Loop Optimizer
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jay.foad at antixlabs.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2970)
--> (http://llvm.org/bugs/attachment.cgi?id=2970)
test case
With the attached test case, I get:
$ llvm-as -o - s.ll | lli
0
1
2
3
but:
$ llvm-as -o - s.ll | opt -f -loop-index-split | lli
0
1
2
2
3
4
LoopIndexSplit has completely broken how many times the loop iterates! This
test case is reduced from a loop that was mysteriously misbehaving deep inside
a C++ application.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu May 7 11:27:55 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 7 May 2009 11:27:55 -0500
Subject: [LLVMbugs] [Bug 3841] clang's stdint.h is found before platform
stdint.h
In-Reply-To:
Message-ID: <200905071627.n47GRtjf024952@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3841
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Eli Friedman 2009-05-07 11:27:46 ---
This should be fixed with r70806; let me know if there are still issues.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu May 7 12:06:25 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 7 May 2009 12:06:25 -0500
Subject: [LLVMbugs] [Bug 4176] New: llvm-gcc regparm uses incorrect calling
convention with structures
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4176
Summary: llvm-gcc regparm uses incorrect calling convention with
structures
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu
struct a {unsigned char a,b,c;};
__attribute((regparm(1))) int a(struct a x) { return x.a+x.b+x.c; }
struct c {unsigned x,y;};
__attribute((regparm(2))) int d(struct c x) { return x.x+x.y; }
struct h {int a:5,b:5,c:5;};
__attribute((regparm(3))) int h(struct h x) { return x.a+x.b+x.c; }
llvm-gcc passes all of the above in memory instead of registers, which is not
compatible with gcc. See bug 3782 comment 2 for more related testcases.
These are manufactured testcases, so I'm not sure they matter much, but I
figured I should file it for completeness.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu May 7 13:25:06 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 7 May 2009 13:25:06 -0500
Subject: [LLVMbugs] [Bug 4173] false positive: Dereference of null pointer
In-Reply-To:
Message-ID: <200905071825.n47IP6cs028526@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4173
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|llvmbugs at cs.uiuc.edu |xuzhongxing at gmail.com
Status|NEW |ASSIGNED
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu May 7 14:06:20 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 7 May 2009 14:06:20 -0500
Subject: [LLVMbugs] [Bug 4177] New: strcpy optimizer gets endian wrong
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4177
Summary: strcpy optimizer gets endian wrong
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: md at bu.edu
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2971)
--> (http://llvm.org/bugs/attachment.cgi?id=2971)
sample program
I have a small program example which uses strcpy to concatenate the strings
"hello\0" and "\n\0". When I compile through opt -O1, it is okay. When I
compile through opt -O2 or higher, it makes a mistake. bugpoint isolates this
to "Found miscompiling passes: -inline -simplify-libcalls -instcombine" but I
can point specifically to the line of asm output which is incorrect.
LLVM opt -O2 outputs:
movw $2560, 5(%rbx)
and 2560 is 0x0A00 in hex. The problem is that on a little-endian architecture
this write comes out to:
0x23e2010: 104 'h' 101 'e' 108 'l' 108 'l' 111 'o' 0 '\0' 10 '\n'
the nul and the newline are in the wrong order. The instruction should have
been
movw $10, 5(%rbx)
I attached bug.ll which can reproduce the error by:
cat bug.ll | llvm-as | opt -O2 | llc > bug.s && gcc bug.s
LLVM from SVN (r70985)
Debian Linux 2.6.26 amd64
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu May 7 14:08:43 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 7 May 2009 14:08:43 -0500
Subject: [LLVMbugs] [Bug 4178] New: missed optimization: global variable not
inlined
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4178
Summary: missed optimization: global variable not inlined
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: Global Analyses
AssignedTo: unassignedbugs at nondot.org
ReportedBy: micah.villmow at amd.com
CC: llvmbugs at cs.uiuc.edu
In this example, the global variable can be inlined and thus removing a load
operation.
; ModuleID = 'test-opt.bc'
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16:16-i32:32:32:32-i64:64:64:64-f32:32:32:32-f64:64:64:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i686-pc-win32"
@y = global i32 3, align 4 ; [#uses=1]
define void @test_and(i32 %x, i32 addrspace(1)* %res) {
entry:
%tmp = load i32* @y ; [#uses=2]
%tmp1 = add i32 %tmp, %tmp ; [#uses=1]
%arrayidx = getelementptr i32 addrspace(1)* %res, i32 %tmp1
; [#uses=1]
%arrayidx6 = getelementptr i32 addrspace(1)* %res, i32 %x
; [#uses=1]
%tmp7 = load i32 addrspace(1)* %arrayidx6 ;
[#uses=1]
store i32 %tmp7, i32 addrspace(1)* %arrayidx
ret void
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu May 7 14:50:00 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 7 May 2009 14:50:00 -0500
Subject: [LLVMbugs] [Bug 4178] missed optimization: global variable not
inlined
In-Reply-To:
Message-ID: <200905071950.n47Jo0t3031212@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4178
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |asl at math.spbu.ru
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Anton Korobeynikov 2009-05-07 14:50:00 ---
No, it cannot. global is externally visible and thus can be changed outside.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu May 7 19:22:36 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 7 May 2009 19:22:36 -0500
Subject: [LLVMbugs] [Bug 4123] clang: Assertion `New != this &&
"this->replaceAllUsesWith(this) is NOT valid!"' failed.
In-Reply-To:
Message-ID: <200905080022.n480MaYr007455@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4123
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Eli Friedman 2009-05-07 19:22:36 ---
Fixed in r71199.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri May 8 01:22:01 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 8 May 2009 01:22:01 -0500
Subject: [LLVMbugs] [Bug 4149] JIT fails when requiring exact size
In-Reply-To:
Message-ID: <200905080622.n486M1FH017501@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4149
Nicolas Capens changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Nicolas Capens 2009-05-08 01:22:01 ---
Fixed in revision 70929 by Zoltan Varga's patch.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri May 8 02:04:48 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 8 May 2009 02:04:48 -0500
Subject: [LLVMbugs] [Bug 4177] strcpy optimizer gets endian wrong
In-Reply-To:
Message-ID: <200905080704.n4874mMu018732@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4177
Nick Lewycky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #7 from Nick Lewycky 2009-05-08 02:04:46 ---
I've committed the appropriate change to disable this optimization when no
TargetData is present (r71210) but it won't take effect until we actually have
a "no TargetData" state instead of substituting in a default target. That's
being tracked in bug 760.
Closing this bug as 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 cs.uiuc.edu Fri May 8 07:09:28 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 8 May 2009 07:09:28 -0500
Subject: [LLVMbugs] [Bug 4180] New: MDNodes may be used after being destroyed
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4180
Summary: MDNodes may be used after being destroyed
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: fvbommel at wxs.nl
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2975)
--> (http://llvm.org/bugs/attachment.cgi?id=2975)
Valgrind output for example program
I'm seeing crashes due to invalid pointer accesses from
==24533== at 0x498DDF:
llvm::FoldingSetImpl::FindNodeOrInsertPos(llvm::FoldingSetNodeID const&,
void*&) (in /home/urxae/tmp/llvm-test/mdnode/test)
==24533== by 0x40C9C1: llvm::MDNode::get(llvm::Constant* const*, unsigned)
(in /home/urxae/tmp/llvm-test/mdnode/test)
These seem to be because MDNodes don't get removed from the MDNodeSet global
upon destruction.
I'm attaching full valgrind output for the following program:
=====
#include "llvm/Module.h"
#include "llvm/Type.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Constants.h"
#include "llvm/GlobalVariable.h"
using namespace llvm;
int main() {
const Type* Ty = Type::Int32Ty;
char buf[20];
const unsigned MAX = 100;
for (unsigned i = 0; i < MAX; i++) {
snprintf(buf, 20, "var_%u", i);
Module* M = new Module("test");
Constant* vals[] = {
new GlobalVariable(Ty, true, GlobalValue::WeakODRLinkage,
UndefValue::get(Ty), buf, M),
};
Constant* node = MDNode::get(vals, sizeof(vals) / sizeof(vals[0]));
delete M;
}
return 0;
}
=====
(If you can't reproduce, try increasing the loop count)
The patch is extremely trivial, once problem is diagnosed:
######
Index: lib/VMCore/Constants.cpp
===================================================================
--- lib/VMCore/Constants.cpp (revision 71118)
+++ lib/VMCore/Constants.cpp (working copy)
@@ -1714,6 +1714,7 @@
}
void MDNode::destroyConstant() {
+ MDNodeSet->RemoveNode(this);
destroyConstantImpl();
}
######
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri May 8 07:13:22 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 8 May 2009 07:13:22 -0500
Subject: [LLVMbugs] [Bug 4180] MDNodes may be used after being destroyed
In-Reply-To:
Message-ID: <200905081213.n48CDMWg006498@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4180
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |baldrick at free.fr
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Duncan Sands 2009-05-08 07:13:20 ---
Looks like another manifestation of PR4046, though I didn't check if this
is really the case.
*** This bug has been marked as a duplicate of bug 4046 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri May 8 08:35:59 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 8 May 2009 08:35:59 -0500
Subject: [LLVMbugs] [Bug 4181] New: Crash in libgomp: invalid MVT
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4181
Summary: Crash in libgomp: invalid MVT
Product: libraries
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: Core LLVM classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: ed at 80386.nl
CC: llvmbugs at cs.uiuc.edu
Blocks: 3696
The following C code causes Clang to crash. I'm filing this bug here, because
the failed assertion is in libllvmcore:
int
main(int argc, char *argv[])
{
__sync_val_compare_and_swap((void **)0, (void *)0, (void *)0);
}
Crash:
Assertion failed: (0 && "Invalid MVT!"), function getMVTString, file
/home/ed/projects/freebsd-clang/usr.bin/clang/lib/libllvmcore/../../../../contrib/llvm/lib/VMCore/ValueTypes.cpp,
line 86.
Stack dump:
0. Program arguments:
/usr/obj/home/ed/projects/freebsd-clang/tmp/usr/bin/../libexec/clang-cc -triple
x86_64-undermydesk-freebsd8.0 -emit-llvm -disable-free -main-file-name
llvm-crash.c --relocation-model static --disable-fp-elim --unwind-tables=1
--mcpu=x86-64 --fmath-errno=1 -fdiagnostics-show-option -o foo.ll -x c
llvm-crash.c
1. parser at end of file
2. llvm-crash.c:2:1: LLVM IR generation of declaration 'main'
3. llvm-crash.c:3:1: LLVM IR generation of compound statement ('{}')
Code is based on libgomp sources.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri May 8 10:48:20 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 8 May 2009 10:48:20 -0500
Subject: [LLVMbugs] [Bug 4181] Crash in libgomp: invalid MVT
In-Reply-To:
Message-ID: <200905081548.n48FmKs9014028@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4181
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Eli Friedman 2009-05-08 10:48:18 ---
And this just got fixed in r71218.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri May 8 10:55:15 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 8 May 2009 10:55:15 -0500
Subject: [LLVMbugs] [Bug 4146] scalarrepl crash on i1 store
In-Reply-To:
Message-ID: <200905081555.n48FtFi9014308@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4146
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Lattner 2009-05-08 10:55:10 ---
Fixed, thanks!
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090504/077248.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 cs.uiuc.edu Fri May 8 11:01:08 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 8 May 2009 11:01:08 -0500
Subject: [LLVMbugs] [Bug 4182] New: RegionStore.cpp fails to compile under
MSVC
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4182
Summary: RegionStore.cpp fails to compile under MSVC
Product: clang
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Keywords: portability
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: abbeyj at gmail.com
CC: llvmbugs at cs.uiuc.edu
/lib/Analysis/RegionStore.cpp fails to compile under MSVC. It gets confused by
having two different variables both named SR but with different types:
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/RegionStore.cpp?annotate=71213#l1056
and
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/RegionStore.cpp?annotate=71213#l1066
This can be worked around by renaming the second one to SRs (for example).
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri May 8 11:10:39 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 8 May 2009 11:10:39 -0500
Subject: [LLVMbugs] [Bug 3886] Crash when building Xorg/Cairo's pixman
In-Reply-To:
Message-ID: <200905081610.n48GAd3M014860@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3886
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Chris Lattner 2009-05-08 11:10:38 ---
It looks like this works now, presumably due to nate's shuffle fixes? If this
still fails for you, please reopen with a new testcase. 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 cs.uiuc.edu Fri May 8 13:24:13 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 8 May 2009 13:24:13 -0500
Subject: [LLVMbugs] [Bug 4152] [Linux kernel] invalid asm constraint 'i'
In-Reply-To:
Message-ID: <200905081824.n48IODP1020719@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4152
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Chris Lattner 2009-05-08 13:24:13 ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090504/077265.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 cs.uiuc.edu Fri May 8 13:55:46 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 8 May 2009 13:55:46 -0500
Subject: [LLVMbugs] [Bug 4130] clang infloops on invalid C code
In-Reply-To:
Message-ID: <200905081855.n48ItkiK022185@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4130
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #1 from Chris Lattner 2009-05-08 13:55:44 ---
Works for me, I get:
t.c:1:46: error: unknown type name 'pte_t'
static inline __attribute__((always_inline)) pte_t ptep_get_and_clear(struct
^
t.c:2:1: warning: declaration of 'struct mm_struct' will not be visible outside
of this function
mm_struct *mm, unsigned long addr, pte_t *ptep) {
^
t.c:2:47: error: unknown type name 'pte_t'
mm_struct *mm, unsigned long addr, pte_t *ptep) {
^
t.c:2:61: error: expected '}'
mm_struct *mm, unsigned long addr, pte_t *ptep) {
^
4 diagnostics generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri May 8 15:46:14 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 8 May 2009 15:46:14 -0500
Subject: [LLVMbugs] [Bug 4184] New: Type in LangRef, alloca Instruction
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4184
Summary: Type in LangRef, alloca Instruction
Product: Documentation
Version: trunk
Platform: PC
URL: http://llvm.org/docs/LangRef.html#i_alloca
OS/Version: Linux
Status: NEW
Severity: trivial
Priority: P2
Component: General docs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: me22.ca at gmail.com
CC: llvmbugs at cs.uiuc.edu
"The operation is undefiend if"
should be
"The operation is undefined if"
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri May 8 15:50:02 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 8 May 2009 15:50:02 -0500
Subject: [LLVMbugs] [Bug 4184] Type in LangRef, alloca Instruction
In-Reply-To:
Message-ID: <200905082050.n48Ko1Fm026514@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4184
Bill Wendling changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |wendling at apple.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Bill Wendling 2009-05-08 15:49:59 ---
Fixed. Thanks!
Sending docs/LangRef.html
Transmitting file data .
Committed revision 71260.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri May 8 16:33:35 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 8 May 2009 16:33:35 -0500
Subject: [LLVMbugs] [Bug 4100] assertion failed,
"Re-defining a live register!"
In-Reply-To:
Message-ID: <200905082133.n48LXZmR028283@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4100
Bob Wilson changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Bob Wilson 2009-05-08 16:33:34 ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090504/077235.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 cs.uiuc.edu Fri May 8 18:30:04 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 8 May 2009 18:30:04 -0500
Subject: [LLVMbugs] [Bug 4182] RegionStore.cpp fails to compile under MSVC
In-Reply-To:
Message-ID: <200905082330.n48NU4Nc031897@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4182
Zhongxing Xu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Zhongxing Xu 2009-05-08 18:30:03 ---
Does this fix the problem?
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090504/017026.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 cs.uiuc.edu Fri May 8 21:54:58 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 8 May 2009 21:54:58 -0500
Subject: [LLVMbugs] [Bug 3886] Crash when building Xorg/Cairo's pixman
In-Reply-To:
Message-ID: <200905090254.n492sw0f009738@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3886
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #8 from Eli Friedman 2009-05-08 21:54:58 ---
Both testcases are still broken with "clang -m64 -O3". I'll attach bitcode
testcases in a moment.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sat May 9 08:02:58 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 9 May 2009 08:02:58 -0500
Subject: [LLVMbugs] [Bug 3171] not optimizing trivial loop (trip count
computation)
In-Reply-To:
Message-ID: <200905091302.n49D2wgA007998@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3171
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2009-05-09 08:02:51 ---
Fixed in r71354.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sat May 9 09:34:33 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 9 May 2009 09:34:33 -0500
Subject: [LLVMbugs] [Bug 4102] Write after free in debug info writer with
fast isel
In-Reply-To:
Message-ID: <200905091434.n49EYX61010866@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4102
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #3 from Eli Friedman 2009-05-09 09:34:33 ---
Yeah, I can't reproduce anymore.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sat May 9 09:39:31 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 9 May 2009 09:39:31 -0500
Subject: [LLVMbugs] [Bug 1227] [scev] Can't compute trip count of simple loop
In-Reply-To:
Message-ID: <200905091439.n49EdV0l011071@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=1227
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #9 from Eli Friedman 2009-05-09 09:39:31 ---
This appears to be working 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 cs.uiuc.edu Sun May 10 09:56:54 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 10 May 2009 09:56:54 -0500
Subject: [LLVMbugs] [Bug 4136] Infinite recursion in scheduler
In-Reply-To:
Message-ID: <200905101456.n4AEusid027029@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4136
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Anton Korobeynikov 2009-05-10 09:56:13 ---
Done:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090504/077272.html
Testcase here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090504/077338.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 cs.uiuc.edu Sun May 10 12:59:34 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 10 May 2009 12:59:34 -0500
Subject: [LLVMbugs] [Bug 4185] New: x87 inline asm assertion
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4185
Summary: x87 inline asm assertion
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nicholas at mxc.ca
CC: rafael.espindola at gmail.com, llvmbugs at cs.uiuc.edu
Created an attachment (id=2980)
--> (http://llvm.org/bugs/attachment.cgi?id=2980)
testcase
I thought I'd already filed this once before but couldn't find it while
searching, not even through closed bugs. On x86-32 without SSE, this testcase
crashes:
$ llvm-as < c.ll | llc -mattr=-sse
llc: X86FloatingPoint.cpp:995:
void::FPS::handleSpecialFP(llvm::ilist_iterator&):
Assertion `(StackTop == 1 || StackTop == 2) && "Stack should have one or two
element on it to return!"' failed.
0 llc 0x089a99e2
1 llc 0x089a9f89
2 0xffffe400 __kernel_sigreturn + 0
Stack dump:
0. Program arguments: llc -mattr=-sse
1. Running pass 'X86 FP Stackifier' on function '@test'
Aborted
It'd be awfully nice if that worked.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 10 16:04:58 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 10 May 2009 16:04:58 -0500
Subject: [LLVMbugs] [Bug 4186] New: missed IR opt: eliminate unused bitcast
in call
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4186
Summary: missed IR opt: eliminate unused bitcast in call
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
The bitcast below can be eliminated:
--
ddunbar at frank:test$ cat t.c
void f0(void) {
f1();
}
void f1(void);
ddunbar at frank:test$ llvm-gcc -O3 -emit-llvm -S -o - t.c
t.c:5: warning: conflicting types for ???f1???
t.c:2: warning: previous implicit declaration of ???f1??? was here
; ModuleID = 't.c'
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
target triple = "i386-pc-linux-gnu"
define void @f0() nounwind {
entry:
%0 = tail call i32 (...)* bitcast (void ()* @f1 to i32 (...)*)()
nounwind ; [#uses=0]
ret void
}
declare void @f1()
--
The example C code is lame, but this situation also occurs during linking.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 10 16:23:35 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 10 May 2009 16:23:35 -0500
Subject: [LLVMbugs] [Bug 4187] New: GVN eliminates load across free?
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4187
Summary: GVN eliminates load across free?
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: resistor at mac.com, llvmbugs at cs.uiuc.edu
GVN eliminates the second load in this example, which I believe is invalid.
This didn't happen in 2.4, I believe.
--
; ModuleID = '2007-10-11-illegal-access-after-free-and-branch.c'
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i386-apple-darwin10"
declare void @klee_make_symbolic(i8* %addr, i32 %nbytes) nounwind ssp;
define i32 @f0() nounwind ssp {
entry:
%t0 = malloc [3 x i8]
%.sub = getelementptr [3 x i8]* %t0, i32 0, i32 0
call void @klee_make_symbolic(i8* %.sub, i32 3) nounwind
%t2 = load i8* %.sub, align 4
free [3 x i8]* %t0
%t8 = load i8* %.sub, align 4
%t9 = zext i8 %t8 to i32
ret i32 %t9
}
--
Here:
--
ddunbar at ubuntu:regression$ llvm-as < load-elim.ll | opt -gvn | llvm-dis
; ModuleID = ''
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i386-apple-darwin10"
declare void @klee_make_symbolic(i8*, i32) nounwind ssp
define i32 @f0() nounwind ssp {
entry:
%t0 = malloc [3 x i8] ; <[3 x i8]*> [#uses=2]
%.sub = getelementptr [3 x i8]* %t0, i32 0, i32 0 ;
[#uses=2]
call void @klee_make_symbolic(i8* %.sub, i32 3) nounwind
%t2 = load i8* %.sub, align 4 ; [#uses=1]
free [3 x i8]* %t0
%t9 = zext i8 %t2 to i32 ; [#uses=1]
ret i32 %t9
}
--
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 10 18:39:38 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 10 May 2009 18:39:38 -0500
Subject: [LLVMbugs] [Bug 4187] GVN eliminates load across free?
In-Reply-To:
Message-ID: <200905102339.n4ANdcm6010973@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4187
Owen Anderson changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Owen Anderson 2009-05-10 18:39:37 ---
I talked to Daniel about this, and explained why the transformation is valid.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun May 10 22:41:41 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 10 May 2009 22:41:41 -0500
Subject: [LLVMbugs] [Bug 4188] New: ICE: Dereferencing end()!
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4188
Summary: ICE: Dereferencing end()!
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu
Seen using r71415 on Ubuntu Hardy on x86.
regehr at john-home:~/volatile/tmp164$ llvm-gcc -O2 small.c
cc1: /home/regehr/z/tmp/llvm-r71415/include/llvm/ADT/ilist.h:192:
llvm::ilist_iterator::operator typename bidirectional_iterator::pointer() const [with NodeTy = llvm::MachineBasicBlock]: Assertion
`Traits::getNext(NodePtr) != 0 && "Dereferencing end()!"' failed.
small.c:19: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
regehr at john-home:~/volatile/tmp164$ cat small.c
static char foo (int _si1, char _si2)
{
return 1 < +_si1 && _si2 && _si1 < +_si2 || _si2 && _si1
&& _si2 + _si1 ? : _si1;
}
volatile int g_9;
int func_88 (int p_90, char p_91)
{
}
int86 (int p_87)
{
for (1;;)
{
func_88 (foo (g_9, p_87), 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 cs.uiuc.edu Mon May 11 02:26:55 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 11 May 2009 02:26:55 -0500
Subject: [LLVMbugs] [Bug 4186] missed IR opt: eliminate unused bitcast in
call
In-Reply-To:
Message-ID: <200905110726.n4B7Qts2023925@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4186
Daniel Dunbar changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #5 from Daniel Dunbar 2009-05-11 02:26:55 ---
Well, as soon as I click the right button that is.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon May 11 05:48:02 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 11 May 2009 05:48:02 -0500
Subject: [LLVMbugs] [Bug 4189] New: redundant load from constant not
eliminated
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4189
Summary: redundant load from constant not eliminated
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
void
copy_text (char *p)
{
const char *text = "hello world/n";
do
{
*p = *text;
}
while (*text++);
}
->
@.str = internal constant [14 x i8] c"hello world/n\00" ; <[14 x i8]*>
[#uses=1]
define void @copy_text(i8* nocapture %p) nounwind {
entry:
br label %bb
bb: ; preds = %bb, %entry
%indvar = phi i64 [ 0, %entry ], [ %indvar.next, %bb ] ;
[#uses=2]
%tmp = add i64 %indvar, ptrtoint ([14 x i8]* @.str to i64)
; [#uses=1]
%text.0 = inttoptr i64 %tmp to i8* ; [#uses=2]
%0 = load i8* %text.0, align 1 ; [#uses=1]
store i8 %0, i8* %p, align 1
%1 = load i8* %text.0, align 1 ; [#uses=1]
%2 = icmp eq i8 %1, 0 ; [#uses=1]
%indvar.next = add i64 %indvar, 1 ; [#uses=1]
br i1 %2, label %return, label %bb
return: ; preds = %bb
ret void
}
The second load is redundant.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon May 11 08:29:48 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 11 May 2009 08:29:48 -0500
Subject: [LLVMbugs] [Bug 4046] Use after free in
test/Feature/embeddedmetadata.ll
In-Reply-To:
Message-ID: <200905111329.n4BDTmhm016313@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4046
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Duncan Sands 2009-05-11 08:29:38 ---
This was fixed recently.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon May 11 09:26:58 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 11 May 2009 09:26:58 -0500
Subject: [LLVMbugs] [Bug 4190] New: Internal compiler error
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4190
Summary: Internal compiler error
Product: tools
Version: 2.5
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: blocker
Priority: P2
Component: llvm-g++
AssignedTo: unassignedbugs at nondot.org
ReportedBy: luc_j_bourhis at mac.com
CC: llvmbugs at cs.uiuc.edu, luc_j_bourhis at mac.com
Short
----
llvm-g++-4.2 -o cctbx/miller/boost_python/phase_transfer.o -c -fPIC
-fno-strict-aliasing -w -ftemplate-depth-130 -g2 -O0 -fno-inline -fopenmp -fPIC
-fno-strict-aliasing -w -g2 -O0 -fno-inline -fopenmp
phase_transfer.preprocessed.cpp
where phase_transfer.preprocessed.cpp is the file attached to this bug report
results in
/Users/luc/Developer/cctbx/cctbx_project/scitbx/array_family/ref.h: In member
function ???const ElementType& scitbx::af::const_ref::operator[](size_t) const [with ElementType =
cctbx::miller::index, AccessorType = scitbx::af::trivial_accessor]???:
/Users/luc/Developer/cctbx/cctbx_project/scitbx/array_family/ref.h:79: internal
compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
Longer
-----
I experimented to compile the CCTBX (http://cctbx.sourceforge.net) with
llvm-g++-4.2 from the 2.5 release. It resulted in an internal compiler error. I
then preprocessed the source file llvm-g++-4.2 choked upon so as to provide a
self-contained source file exposing the problem.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon May 11 14:38:31 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 11 May 2009 14:38:31 -0500
Subject: [LLVMbugs] [Bug 4193] New: llvm-gcc segfault on broken code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4193
Summary: llvm-gcc segfault on broken code
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
Got this when delta reducing PR4190. Unfortunately delta latched onto a
different segmentation fault...
$ llvm-gcc -c barf.ii
barf.ii:4: error: ISO C++ forbids declaration of ???codecvt??? with no type
barf.ii:4: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
$ cat barf.ii
struct __sbuf {}
FILE;
extern "C" {
extern template const codecvt&
use_facet >(const locale&);
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon May 11 15:59:55 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 11 May 2009 15:59:55 -0500
Subject: [LLVMbugs] [Bug 4195] New: assertion failure in CodePlacementOpt
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4195
Summary: assertion failure in CodePlacementOpt
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bob.wilson at apple.com
CC: llvmbugs at cs.uiuc.edu
The attached testcase causes an assertion failure when compiled with llc. It
appears to be a recent regression.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon May 11 16:56:24 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 11 May 2009 16:56:24 -0500
Subject: [LLVMbugs] [Bug 4188] ICE: crash in branchfolding
In-Reply-To:
Message-ID: <200905112156.n4BLuOhG006060@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4188
Dale Johannesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Dale Johannesen 2009-05-11 16:56:23 ---
Fixed.
http://llvm.org/viewvc/llvm-project?view=rev&revision=71478
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon May 11 18:16:57 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 11 May 2009 18:16:57 -0500
Subject: [LLVMbugs] [Bug 4090] Assertion failed: Re-defining a live
register!", lib/CodeGen/ RegisterScavenging.cpp, line 272
In-Reply-To:
Message-ID: <200905112316.n4BNGvRG008947@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4090
Lang Hames 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 cs.uiuc.edu Mon May 11 21:36:48 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 11 May 2009 21:36:48 -0500
Subject: [LLVMbugs] [Bug 1301] [LSR/IndVars] Ada array traversal with a
non-word index type optimizations
In-Reply-To:
Message-ID: <200905120236.n4C2amOg015573@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=1301
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #13 from Dan Gohman 2009-05-11 21:36:47 ---
After a long series of patches, culminating with this patch:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090511/077422.html
all of these loops are now optimized down to four instructions: store, inc,
cmp, jne. All
the arithmetic is now done at "word" size.
There are a few more minor opportunities remaining; the cmp could be eliminated
by
making the loop count to zero instead of from zero, and the loop could be made
to use
one register instead of two via full strength reduction, however all the issues
specific to
non-"word" index types are now addressed.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon May 11 22:50:27 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 11 May 2009 22:50:27 -0500
Subject: [LLVMbugs] [Bug 4195] assertion failure in CodePlacementOpt
In-Reply-To:
Message-ID: <200905120350.n4C3oRv4017921@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4195
Bob Wilson changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Bob Wilson 2009-05-11 22:50:26 ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090511/077423.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 cs.uiuc.edu Tue May 12 08:40:14 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 12 May 2009 08:40:14 -0500
Subject: [LLVMbugs] [Bug 4200] New: Pass Manager Hangs
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4200
Summary: Pass Manager Hangs
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: npjohnso at cs.princeton.edu
CC: llvmbugs at cs.uiuc.edu
With this particular pattern of passes requiring one another and LoopSimplify
and CallGraph, pass manager never terminates.
I have confirmed this with gcc 4.1.2 and 4.2.4 against llvm svn revision 68820.
To recreate this bug,
Compile the attached C++ source code to a shared library
Run opt:
opt -load ./libBug.so -after input.bc -o output.bc
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Tue May 12 10:08:36 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 12 May 2009 10:08:36 -0500
Subject: [LLVMbugs] [Bug 4201] New: llvm.smul.with.overflow.i32 not
implemented on PPC
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4201
Summary: llvm.smul.with.overflow.i32 not implemented on PPC
Product: new-bugs
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: ewasylishen at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2988)
--> (http://llvm.org/bugs/attachment.cgi?id=2988)
A simple test case
Hi, just found that the llvm.*.with.overflow intrinsics are not implemented on
PowerPC, and target independent lowering is also not supported for these, so
you can't use them. I've attached a simple test case.
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 cs.uiuc.edu Tue May 12 11:57:18 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 12 May 2009 11:57:18 -0500
Subject: [LLVMbugs] [Bug 4202] New: constant pools out of range
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4202
Summary: constant pools out of range
Product: libraries
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bob.wilson at apple.com
CC: llvmbugs at cs.uiuc.edu
A number of the MultiSource tests are failing on ARM because the constant pools
are too far away from the loads that reference them. Most of the offsets are
only slightly too large. For example:
/Volumes/LocalHD/bwilson/nightly/test/llvm/Release/bin/llc -O3
-relocation-model=pic -mcpu=arm1136jf-s -f Output/treecc.llvm.bc -o
Output/treecc.llc.s
gcc Output/treecc.llc.s -o Output/treecc.llc -lm -arch armv6 -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.Internal.sdk
Output/treecc.llc.s:9173:bad immediate value for offset (4112)
Output/treecc.llc.s:9084:bad immediate value for offset (4104)
Output/treecc.llc.s:9056:bad immediate value for offset (4108)
Output/treecc.llc.s:9037:bad immediate value for offset (4108)
Output/treecc.llc.s:8971:bad immediate value for offset (4104)
Output/treecc.llc.s:8948:bad immediate value for offset (4104)
Output/treecc.llc.s:8898:bad immediate value for offset (4100)
Output/treecc.llc.s:8647:bad immediate value for offset (4104)
make[3]: [Output/treecc.llc] Error 1 (ignored)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Tue May 12 13:20:01 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 12 May 2009 13:20:01 -0500
Subject: [LLVMbugs] [Bug 4203] New: Linux/PPC ABI: Obvious way of calling a
C function which takes a struct paramater doesn' t work
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4203
Summary: Linux/PPC ABI: Obvious way of calling a C function which
takes a struct paramater doesn't work
Product: new-bugs
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: ewasylishen at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2989)
--> (http://llvm.org/bugs/attachment.cgi?id=2989)
a test case
Hi,
Suppose I compile a C function with gcc which takes a single struct parameter,
struct foo { float a, float b };
I would expect to call it from LLVM in the same way, i.e.:
call void @some_function(%struct.foo %examplestruct)
(where %struct.foo = type { float, float }).
This doesn't work (the C function gets nonsense values.) Instead, what does
work is calling it from LLVM by passing a pointer to the struct I want to pass:
call void @some_function(%struct.foo* %pointer_to_examplestruct)
I have attached a simple test case which demonstrates the problem.
The output is:
./fails
x=262253949499549329478747984903838629888.000000, y=0.000000
./works
x=3.140000, y=15.900000
I think, ideally, the 'fails' executable should produce the correct result,
"x=3.140000, y=15.900000".
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 cs.uiuc.edu Tue May 12 13:46:58 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 12 May 2009 13:46:58 -0500
Subject: [LLVMbugs] [Bug 4203] Linux/PPC ABI: Obvious way of calling a C
function which takes a struct paramater doesn' t work
In-Reply-To:
Message-ID: <200905121846.n4CIkw3M001356@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4203
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Chris Lattner 2009-05-12 13:46:58 ---
Unfortunately, this is not how LLVM interacts with native ABIs. You need to
know about the native ABI to know how structs are passed by value. This is
annoying, but we don't have a good solution for this. You'll note that
llvm-gcc (or clang) produce different llvm ir for functions returning structs
when targetting x86-32 and x86-64 for example.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Tue May 12 16:14:15 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 12 May 2009 16:14:15 -0500
Subject: [LLVMbugs] [Bug 4204] New: clang rejects valid redeclaration of
function declared in nested scope
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4204
Summary: clang rejects valid redeclaration of function declared
in nested scope
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
If I am not mistaken, clang is incorrect to reject the following program:
--
ddunbar at lordcrumb:tmp$ cat t.c
void f0(void) {
extern void g0(void);
}
g0(void) {}
ddunbar at lordcrumb:tmp$ gcc -std=gnu89 -c t.c
t.c:4: warning: conflicting types for 'g0'
t.c:2: warning: previous declaration of 'g0' was here
ddunbar at lordcrumb:tmp$ clang -std=gnu89 -c t.c
t.c:4:1: error: conflicting types for 'g0'
g0(void) {}
^
t.c:2:15: note: previous declaration is here
extern void g0(void);
^
2 diagnostics generated.
--
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Tue May 12 17:30:38 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 12 May 2009 17:30:38 -0500
Subject: [LLVMbugs] [Bug 4206] New: crash in simplify lib calls
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4206
Summary: crash in simplify lib calls
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
simplify lib calls crashes on the attached .bc file, generated by clang:
--
ddunbar at lordcrumb:tmp$ opt -std-compile-opts < t.bc > t.opt.bc
Assertion failed: (S1->getType() == S2->getType() && "Cannot create binary
operator with two operands of differing type!"), function Create, file
Instructions.cpp, line 1606.
0 opt 0x00000001003aba5a PrintStackTrace(void*) + 38
1 opt 0x00000001003abf6a SignalHandler(int) + 288
2 libSystem.B.dylib 0x00007fff87c8890a _sigtramp + 26
3 libSystem.B.dylib 0x00000001012dbc50 _sigtramp + 2036675424
4 libSystem.B.dylib 0x00007fff87ce7072 __assert_rtn + 237
5 opt 0x000000010032384a
llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*,
llvm::Value*, std::string const&, llvm::Instruction*) + 106
6 opt 0x000000010018983e
llvm::BinaryOperator::CreateAdd(llvm::Value*, llvm::Value*, std::string const&)
+ 48
7 opt 0x00000001001b2c99 llvm::IRBuilder::CreateAdd(llvm::Value*, llvm::Value*, char const*) + 137
8 opt 0x00000001001a83b9 (anonymous
namespace)::FFSOpt::CallOptimizer(llvm::Function*, llvm::CallInst*,
llvm::IRBuilder&) + 413
9 opt 0x00000001001a7dd1 (anonymous
namespace)::LibCallOptimization::OptimizeCall(llvm::CallInst*, llvm::TargetData
const&, llvm::IRBuilder&) + 105
10 opt 0x00000001001aecdd (anonymous
namespace)::SimplifyLibCalls::runOnFunction(llvm::Function&) + 495
11 opt 0x000000010033f126
llvm::FPPassManager::runOnFunction(llvm::Function&) + 256
12 opt 0x000000010021f993 (anonymous
namespace)::CGPassManager::runOnModule(llvm::Module&) + 623
13 opt 0x000000010033db93
llvm::MPPassManager::runOnModule(llvm::Module&) + 203
14 opt 0x000000010033f589
llvm::PassManagerImpl::run(llvm::Module&) + 111
15 opt 0x000000010033f5eb llvm::PassManager::run(llvm::Module&)
+ 33
16 opt 0x0000000100056f46 main + 4608
17 opt 0x000000010004aa48 start + 52
18 opt 0x0000000000000002 start + 4294661614
Stack dump:
0. Running pass 'CallGraph Pass Manager' on module ''.
1. Running pass 'Simplify well-known library calls' on function
'@test_ffsl'
Abort trap
--
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Tue May 12 17:51:17 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 12 May 2009 17:51:17 -0500
Subject: [LLVMbugs] [Bug 4207] New: TableGen Cannot Slice List Arguments
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4207
Summary: TableGen Cannot Slice List Arguments
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: TableGen
AssignedTo: unassignedbugs at nondot.org
ReportedBy: greened at obbligato.org
CC: llvmbugs at cs.uiuc.edu
The attached seemingly trivial testcase crashes TableGen with:
tblgen:
/ptmp/dag/llvm-project.modified/llvm/trunk/utils/TableGen/Record.cpp:642:
virtual llvm::Init* llvm::VarInit::resolveListElementReference(llvm::Record&,
const llvm::RecordVal*, unsigned int): Assertion `LI && "Invalid list
element!"' failed.
The problem appears to be that 'vals' is a VarInit in the BB context.
Taking out one layer of classes (e. g. having One and Two derive from BB) AND
commenting out the definition of BBB makes the problem go away. Strangely,
leaving BBB defined causes the same crash even though it is referenced nowhere
and does not take any slices.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Tue May 12 21:27:49 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 12 May 2009 21:27:49 -0500
Subject: [LLVMbugs] [Bug 4204] clang rejects valid redeclaration of function
declared in nested scope
In-Reply-To:
Message-ID: <200905130227.n4D2Rn88020316@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4204
Daniel Dunbar changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #3 from Daniel Dunbar 2009-05-12 21:27:48 ---
Yes.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Tue May 12 23:43:22 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 12 May 2009 23:43:22 -0500
Subject: [LLVMbugs] [Bug 4121] Assertion `it != mi2iMap_.end() && "Invalid
instruction!"' failed.
In-Reply-To:
Message-ID: <200905130443.n4D4hMqG025873@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4121
Lang Hames 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 cs.uiuc.edu Wed May 13 00:15:46 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 13 May 2009 00:15:46 -0500
Subject: [LLVMbugs] [Bug 4208] New: isIntegerType() returns true for vectors
of integers
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4208
Summary: isIntegerType() returns true for vectors of integers
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Keywords: code-cleanup
Severity: normal
Priority: P2
Component: AST
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: clattner at apple.com
CC: llvmbugs at cs.uiuc.edu
isIntegerType() currently returns true for vectors of integers. This is really
dangerous because a lot of sema uses this predicate and probably doesn't expect
vectors. Should should follow the lead of complex and has a isVectorOfInteger
method or something like that instead.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed May 13 01:26:33 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 13 May 2009 01:26:33 -0500
Subject: [LLVMbugs] [Bug 4206] crash in simplify lib calls
In-Reply-To:
Message-ID: <200905130626.n4D6QXSd029360@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4206
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Chris Lattner 2009-05-13 01:26:33 ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090511/077483.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 cs.uiuc.edu Wed May 13 05:48:39 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 13 May 2009 05:48:39 -0500
Subject: [LLVMbugs] [Bug 4210] New: optimisation breaks AES code from MySQL
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4210
Summary: optimisation breaks AES code from MySQL
Product: clang
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: df at sun.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2993)
--> (http://llvm.org/bugs/attachment.cgi?id=2993)
standalone test case
When building MySQL 5.0 with clang (at least for a Mac OS X x86_64 target),
turning on optimisation (-O1 or above) breaks AES encryption/decryption
functionality as compared to a build without optimisation (-O0).
The attached standalone test case was extracted from the MySQL 5.0 code base.
I'm sorry that it is still quite large, I've not had much luck with extracting
the individual bit that is optimised badly, but I have reduced it to one code
path in one function that shows the problem.
To compile:
clang -o rijndael_test_O0 rijndael_bug.c -O0
clang -o rijndael_test_O1 rijndael_bug.c -O0
clang -o rijndael_test_O1V rijndael_bug.c -O0 -DVOLATILE=volatile
The output of rijndael_test_O0 is as follows:
39 25 cc 14 d7 5 ef 4e e9 c7 fb cd 40 22 ed 29
The output of rijndael_test_O1 is as follows:
39 25 cc 14 d7 5 ef 4e e9 c7 fb d1 40 22 ed 29
Note that the 12th byte is different.
The output of rijndael_test_O1V is the same as rijndael_test_O0:
39 25 cc 14 d7 5 ef 4e e9 c7 fb cd 40 22 ed 29
The difference between O1 and O1V is that a "volatile" statement is added to
the variable declaration in the rijndaelEncrypt function. In fact it seems to
be sufficient to declare *one* of these variables volatile to make the problem
go away.
I have inserted one comment into the source:
/* Value of t1 will be different depending on optimisation */
At this location, a value t1 is computed as follows:
t1= (Te0[(s1 >> 24) ] ^
Te1[(s2 >> 16) & 0xff] ^
Te2[(s3 >> 8) & 0xff] ^
Te3[(s0 ) & 0xff] ^
rk[5]);
The result of this calculation is different when optimisation is turned on. I
wasn't able to reproduce this with the snippet on its own.
The full version of the rijndaelEncrypt function in the MySQL code base has an
alternate code path that can be enabled with -DFULL_UNROLL. I removed this
codepath from the test case because it does not exhibit the problem.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed May 13 19:05:42 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 13 May 2009 19:05:42 -0500
Subject: [LLVMbugs] [Bug 3343] llc abort with -pre-alloc-split
In-Reply-To:
Message-ID: <200905140005.n4E05gvl020049@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3343
Owen Anderson changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Owen Anderson 2009-05-13 19:05:39 ---
This was fixed a while back.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed May 13 23:28:37 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 13 May 2009 23:28:37 -0500
Subject: [LLVMbugs] [Bug 4124] null ptr dereferenced
In-Reply-To:
Message-ID: <200905140428.n4E4Sava028286@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4124
Lang Hames changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Lang Hames 2009-05-13 23:28:24 ---
This was being caused by TwoAddressInstructionPass::FindLastUseInMBB returning
an instruction that is not, in fact, the nearest previous use. This in turn
lead to incorrect live interval information and finally the crash during
coalescing. The fault occured because FindLastUseInMBB assumed reg_iterator
would iterate over defs/uses in the order they appear in the basic block. I'm
not sure if this assumption _should_ hold, but it certainly didn't in this
case.
Fix committed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090511/077556.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 cs.uiuc.edu Thu May 14 15:40:26 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 14 May 2009 15:40:26 -0500
Subject: [LLVMbugs] [Bug 4207] TableGen Cannot Slice List Arguments
In-Reply-To:
Message-ID: <200905142040.n4EKeQbi010762@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4207
David Greene changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from David Greene 2009-05-14 15:40:20 ---
Fixed in r71787.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu May 14 19:00:45 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 14 May 2009 19:00:45 -0500
Subject: [LLVMbugs] [Bug 4212] New: bugpoint doesn't reduce global variables
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4212
Summary: bugpoint doesn't reduce global variables
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: bugpoint
AssignedTo: nicholas at mxc.ca
ReportedBy: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu
The global variable reduction in CrashDebugger.cpp uses the ListReducer, but
the actual implementation of the test is buggy; it always removes all of the
globals instead of leaving some of them intact.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu May 14 21:25:12 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 14 May 2009 21:25:12 -0500
Subject: [LLVMbugs] [Bug 4213] New: Cannot create call to void function
using C++ API
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4213
Summary: Cannot create call to void function using C++ API
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: matthew at loar.name
CC: llvmbugs at cs.uiuc.edu
When attempting to create a call to a function with a return type of
Type::VoidTy using the C++ API, I get the following assertion failure:
"molc: Value.cpp:182: void llvm::Value::setName(const char*, unsigned int):
Assertion `getType() != Type::VoidTy && "Cannot assign a name to void values!"'
failed."
This appears to be because the CallInst class ultimately is derived from Value.
The type that is passed to the Value constructor is the return type of the
called function. The CallInst constructor then calls setName(), triggering the
assert.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu May 14 23:25:44 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 14 May 2009 23:25:44 -0500
Subject: [LLVMbugs] [Bug 4213] Cannot create call to void function using C++
API
In-Reply-To:
Message-ID: <200905150425.n4F4PiFK027395@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4213
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Eli Friedman 2009-05-14 23:25:42 ---
This is definitely invalid; C++ code in LLVM creates calls to void functions
all the time. Try using an empty name for the instruction.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri May 15 00:47:01 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 15 May 2009 00:47:01 -0500
Subject: [LLVMbugs] [Bug 4214] New: Internal compile error when function
declared with void formal parameter
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4214
Summary: Internal compile error when function declared with void
formal parameter
Product: new-bugs
Version: unspecified
Platform: Sun
OS/Version: Solaris
Status: NEW
Keywords: crash-on-invalid
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: mike.emmerik at sun.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2997)
--> (http://llvm.org/bugs/attachment.cgi?id=2997)
C source code that shows the bug
An Internal Compile Error results when llvm-gcc encounters a function
declaration with a void parameter. This is illegal C, but I found it in some
real code (so some compiler, probably an old version of Sun Studio, must allow
this). In any case, llvm should not fall over on this input.
Steps to reproduce:
1) Create test.c with this content:
typedef void vt;
void (*func_ptr)(vt my_vt);
2) llvm-gcc -c -o test.o test.c
Actual results:
test.c:3: warning: parameter 1 ('my_vt') has void type
Assertion failed: ValueType != Type::VoidTy && "Pointer to void is not valid,
use sbyte* instead!", file Type.cpp, line 1311
test.c:3: internal compiler error: Abort
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
Expected results:
test.c:3: warning: parameter 1 ('my_vt') has void type
and a valid test.o and test.o.bc.
Build data and platform:
llvm-gcc4.2-2.4 built from source on Solaris 11.
Additional builds and platforms:
Also happens on llvm-gcc4.2-2.5 on Solaris 11.
Additional information:
The following patch fixes the ICE:
*** new.h Fri May 15 15:07:12 2009
--- ../../llvm-gcc4.2-2.4.source/gcc/llvm-abi.h Fri May 15 15:06:40 2009
***************
*** 421,426 ****
--- 421,428 ----
// not include variable sized fields here.
std::vector Elts;
if (isPassedByInvisibleReference(type)) { // variable size -> by-ref.
+ if (Ty->getTypeID() == Type::VoidTyID)
+ Ty = Type::Int8Ty; // void* -> sbyte* Added MVE
const Type *PtrTy = PointerType::getUnqual(Ty);
C.HandleByInvisibleReferenceArgument(PtrTy, type);
ScalarElts.push_back(PtrTy);
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri May 15 02:02:26 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 15 May 2009 02:02:26 -0500
Subject: [LLVMbugs] [Bug 4210] optimisation breaks AES code from MySQL
In-Reply-To:
Message-ID: <200905150702.n4F72QjZ001276@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4210
Evan Cheng changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #19 from Evan Cheng 2009-05-15 02:02:25 ---
Fixed.
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090511/077632.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 cs.uiuc.edu Fri May 15 06:50:46 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 15 May 2009 06:50:46 -0500
Subject: [LLVMbugs] [Bug 4216] New: Consecutive small memory accesses not
merged in a bigger access
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4216
Summary: Consecutive small memory accesses not merged in a bigger
access
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: code-quality
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: quickslyver at free.fr
CC: llvmbugs at cs.uiuc.edu
struct control_reg
{
int a:3;
int b:2;
int c:1;
int d:4;
int e:3;
int f:3;
};
struct control_reg test_bitfield(struct control_reg c)
{
c.a=2;
c.d=3;
c.f=4;
return c;
}
--------------------
With clang -03 this give:
--------------------
define void @test_bitfield(%struct.control_reg* noalias nocapture sret
%agg.result, %struct.control_reg* nocapture byval %c) nounwind {
entry:
%tmp = bitcast %struct.control_reg* %c to i32* ;
[#uses=2]
%bf.prev.low = load i32* %tmp ; [#uses=1]
%bf.prev.lo.cleared10 = or i32 %bf.prev.low, 32962 ;
[#uses=1]
%bf.new.lo11 = and i32 %bf.prev.lo.cleared10, -25350 ;
[#uses=1]
store i32 %bf.new.lo11, i32* %tmp
%c.0 = getelementptr %struct.control_reg* %c, i32 0, i32 0
; [#uses=1]
%tmp20 = load i8* %c.0, align 4 ; [#uses=1]
%c.1 = getelementptr %struct.control_reg* %c, i32 0, i32 1
; [#uses=1]
%tmp21 = load i8* %c.1, align 1 ; [#uses=1]
%c.2 = getelementptr %struct.control_reg* %c, i32 0, i32 2
; [#uses=1]
%tmp22 = load i8* %c.2, align 2 ; [#uses=1]
%c.3 = getelementptr %struct.control_reg* %c, i32 0, i32 3
;