From bugzilla-daemon at cs.uiuc.edu Mon Jun 1 00:25:49 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 1 Jun 2009 00:25:49 -0500
Subject: [LLVMbugs] [Bug 4283] Clang's preprocessor doesn' t support
multibyte character constants
In-Reply-To:
Message-ID: <200906010525.n515Pngd019766@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4283
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Eli Friedman 2009-06-01 00:25:48 ---
Fixed in r72686.
--
Configure bugmail: http://llvm.org/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 Jun 1 03:29:22 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 1 Jun 2009 03:29:22 -0500
Subject: [LLVMbugs] [Bug 4289] New: Crash when using K&R-style function
pointers
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4289
Summary: Crash when using K&R-style function pointers
Product: clang
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: parser
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ed at 80386.nl
CC: llvmbugs at cs.uiuc.edu
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon Jun 1 04:16:15 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 1 Jun 2009 04:16:15 -0500
Subject: [LLVMbugs] [Bug 4286] Assertion failed: (use_empty() && " Uses
remain when a value is destroyed!"), function ~Value
In-Reply-To:
Message-ID: <200906010916.n519GFtg005877@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4286
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Eli Friedman 2009-06-01 04:16:00 ---
Fixed in r72688.
--
Configure bugmail: http://llvm.org/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 Jun 1 04:28:10 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 1 Jun 2009 04:28:10 -0500
Subject: [LLVMbugs] [Bug 4287] Varargs + K&R doesn't work nicely
In-Reply-To:
Message-ID: <200906010928.n519SAnR006445@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4287
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Eli Friedman 2009-06-01 04:27:50 ---
Meh, may as well call it legal. Fixed in r72689.
--
Configure bugmail: http://llvm.org/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 Jun 1 05:05:09 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 1 Jun 2009 05:05:09 -0500
Subject: [LLVMbugs] [Bug 4289] Crash when using function pointers on
K&R-style functions
In-Reply-To:
Message-ID: <200906011005.n51A59Va009388@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4289
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Eli Friedman 2009-06-01 05:04:58 ---
Fixed in r72690.
--
Configure bugmail: http://llvm.org/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 Jun 1 08:16:15 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 1 Jun 2009 08:16:15 -0500
Subject: [LLVMbugs] [Bug 4290] New: err_implicit_decl_requires_stdio too
strict to make autoconf work.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4290
Summary: err_implicit_decl_requires_stdio too strict to make
autoconf work.
Product: clang
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ed at 80386.nl
CC: llvmbugs at cs.uiuc.edu
Blocks: 3696
The following code doesn't build with Clang:
char vfprintf();
test.c:1:6: error: implicit declaration of 'vfprintf' requires inclusion of the
header
This means that autoconf is unable to detect it properly and apps miscompile.
--
Configure bugmail: http://llvm.org/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 Jun 1 12:39:35 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 1 Jun 2009 12:39:35 -0500
Subject: [LLVMbugs] [Bug 4291] New: don't emit ".cpu generic" on arm linux
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4291
Summary: don't emit ".cpu generic" on arm linux
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu
The ".cpu" directive doesn't seem to be documented as being supported in
binutils as, but it works anyways (seemingly supporting the same syntax as the
-mcpu=... flag) which means that ".cpu generic" is illegal:
x.s: Assembler messages:
x.s:2: Error: unknown cpu `generic'
For examples of legal .cpu values, you could see
http://sourceware.org/binutils/docs/as/ARM-Options.html but specifying "arm7"
for example causes this:
x.s: Assembler messages:
x.s:25: Error: selected processor does not support `bx lr'
Just removing the .cpu line produces a binary that actually runs.
--
Configure bugmail: http://llvm.org/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 Jun 1 13:46:46 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 1 Jun 2009 13:46:46 -0500
Subject: [LLVMbugs] [Bug 4293] New: PIC is broken on ppc32-linux
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4293
Summary: PIC is broken on ppc32-linux
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Backend: PowerPC
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3049)
--> (http://llvm.org/bugs/attachment.cgi?id=3049)
testcase
This is the source of the one "make check" failure on ppc32-linux. Bugpoint
runs llc -relocation-model=pic and that breaks the reduction of
test/BugPoint/misopt-basictest.ll.
$ Debug/bin/llc -reloaction-model=pic x.bc -f -o x.s
$ gcc x.s -o x.exe
x.s: Assembler messages:
x.s:14: Error: bad expression
x.s:14: Error: syntax error; found `L' but expected `,'
x.s:14: Error: junk at end of line: `L1$pb"@ha'
x.s:14: Error: bad expression
x.s:14: Error: syntax error; found `L' but expected `('
x.s:14: Error: junk at end of line: `L1$pb"@l(3)'
The problem is these:
lis 3, .LC0-"L1$pb"@ha
la 3, .LC0-"L1$pb"@l(3)
which probably would work fine if only "L1$pb" were defined anywhere in the .s
file.
By contrast the .s generated by gcc -fPIC looks like:
[...]
.section ".got2","aw"
.LCTOC1 = .+32768
.section ".text"
.section ".got2","aw"
.LC1:
.long .LC0
[... later on in main]
addis 30,30,.LCTOC1-.LCF0 at ha
addi 30,30,.LCTOC1-.LCF0 at l
lwz 3,.LC1-.LCTOC1(30)
bl puts+32768 at plt
[... def'n of .LC0 same as llvm's .s]
or with gcc -fpic:
[... no def'n of .LCTOC1 or .LC1]
addis 30,30,_GLOBAL_OFFSET_TABLE_-.LCF0 at ha
addi 30,30,_GLOBAL_OFFSET_TABLE_-.LCF0 at l
lwz 3,.LC0 at got(30)
bl puts at plt
[... def'n of .LC0 below]
--
Configure bugmail: http://llvm.org/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 Jun 1 14:03:55 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 1 Jun 2009 14:03:55 -0500
Subject: [LLVMbugs] [Bug 4291] don't emit ".cpu generic" on arm linux
In-Reply-To:
Message-ID: <200906011903.n51J3tiP029871@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4291
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Anton Korobeynikov 2009-06-01 14:03:55 ---
Fixed in
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090601/078232.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 Jun 1 20:05:51 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 1 Jun 2009 20:05:51 -0500
Subject: [LLVMbugs] [Bug 3517] poor handling of extern inline function
In-Reply-To:
Message-ID: <200906020105.n5215paj009757@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3517
Dale Johannesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #10 from Dale Johannesen 2009-06-01 20:05:51 ---
Fixed in llvm-gcc by fix for 4262, right Duncan? Extern inline handling looks
OK to me.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon Jun 1 22:47:04 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 1 Jun 2009 22:47:04 -0500
Subject: [LLVMbugs] [Bug 137] [llvmg++] Code is generated for empty classes
In-Reply-To:
Message-ID: <200906020347.n523l4xk014659@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=137
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #9 from Chris Lattner 2009-06-01 22:47:03 ---
We still generate useless code, but I think this is a failing of g++, and we're
not going to fix it. For example, at -O0 this generates a useless i8 store:
struct x {};
void foo(x *P) {
*P = x();
}
Closing as 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 Tue Jun 2 02:55:55 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 2 Jun 2009 02:55:55 -0500
Subject: [LLVMbugs] [Bug 4288] Mixed up # line directives with -E -dD
In-Reply-To:
Message-ID: <200906020755.n527ttTY003087@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4288
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2009-06-02 02:55:55 ---
Fixed in r72724.
--
Configure bugmail: http://llvm.org/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 Jun 2 03:16:57 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 2 Jun 2009 03:16:57 -0500
Subject: [LLVMbugs] [Bug 4296] New: Add parser detection/error recovery for
nested functions
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4296
Summary: Add parser detection/error recovery for nested functions
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: parser
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Even if clang never ends up supporting nested functions, it would be nice if we
could detect what's going on and give an easily recognizable error message.
Currently, it gives "expected ';' at end of declaration", which isn't obvious
without going in and looking at the file in question.
--
Configure bugmail: http://llvm.org/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 Jun 2 07:03:56 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 2 Jun 2009 07:03:56 -0500
Subject: [LLVMbugs] [Bug 4297] New: llc: Assertion `castIsValid(getOpcode(),
S, Ty) && " Illegal PtrToInt"' failed.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4297
Summary: llc: Assertion `castIsValid(getOpcode(), S, Ty) &&
"Illegal PtrToInt"' 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: fvbommel at wxs.nl
CC: llvmbugs at cs.uiuc.edu
I'm getting an assertion failure from llc that doesn't seem to be caused by any
instruction in my code (it complains about ptrtoint, which isn't in there).
This is the assertion:
$ llc bugpoint-reduced-simplified.bc
llc: Instructions.cpp:2463: llvm::PtrToIntInst::PtrToIntInst(llvm::Value*,
const llvm::Type*, const std::string&, llvm::Instruction*): Assertion
`castIsValid(getOpcode(), S, Ty) && "Illegal PtrToInt"' failed.
0 llc 0x0000000000d63cdf
1 llc 0x0000000000d640e9
2 libpthread.so.0 0x00007f5bba7700f0
3 libc.so.6 0x00007f5bb986c015 gsignal + 53
4 libc.so.6 0x00007f5bb986db83 abort + 387
5 libc.so.6 0x00007f5bb9864d89 __assert_fail + 233
6 llc 0x0000000000ce38e8
7 llc 0x0000000000be83ce
8 llc 0x0000000000beb728
9 llc 0x0000000000cfd109
llvm::FPPassManager::runOnFunction(llvm::Function&) + 489
10 llc 0x0000000000cfdb26
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 166
11 llc 0x0000000000cfdd6b
llvm::FunctionPassManager::run(llvm::Function&) + 75
12 llc 0x0000000000516c09 main + 4649
13 libc.so.6 0x00007f5bb9857466 __libc_start_main + 230
14 llc 0x0000000000514df9
Stack dump:
0. Program arguments: llc bugpoint-reduced-simplified.bc
1. Running pass 'Optimize for code generation' on function '@_Dmain'
Aborted
And this is the code:
$ llvm-dis [#uses=1]
define fastcc i32 @_Dmain(%"char[][]" %unnamed) {
entry:
%tmp = getelementptr [7 x i8]* @.str, i32 0, i32 0 ;
[#uses=1]
br i1 undef, label %foreachbody, label %foreachend
foreachbody: ; preds = %entry
%tmp4 = getelementptr i8* %tmp, i32 undef ;
[#uses=1]
%tmp5 = load i8* %tmp4 ; [#uses=0]
unreachable
foreachend: ; preds = %entry
ret i32 0
}
(I'm using r72443, if that matters)
--
Configure bugmail: http://llvm.org/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 Jun 2 14:33:39 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 2 Jun 2009 14:33:39 -0500
Subject: [LLVMbugs] [Bug 4298] New: Strange position-independent code,
relocatable references problem.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4298
Summary: Strange position-independent code, relocatable
references problem.
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Solaris
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: eocallaghan at auroraux.org
CC: llvmbugs at cs.uiuc.edu
Hi,
While trying to build the latest (At revision 72733.) svn trunk on AuroraUX (A
OpenSolaris derived distribution; Same result on SXCE snv_110), We hit a
strange position-independent code, relocatable references problem that has been
exceedingly hard to debug so far.
"ld: fatal: relocations remain against allocatable but non-writable sections"
Details of the failed build here:
http://pkg.auroraux.org/llvm_fail.txt
Configure Info:
./configure --prefix=/export/home2/edward/lab/TEST_BUILDS/llvm/test1
--enable-optimized --enable-assertions --enable-expensive-checks
Moving /usr/bin/ld aside 'fixes' the problem. Looking at a diff of the
config.log by moving /usr/bin/ld aside --export-dynamic gets set to 'yes' and
comes into effect, not sure of how much relevance's, although a very
interesting observation.
Tinkering around we figured that something may not have been getting built with
-fPIC somewhere somehow..
So we past --enable-pic=no at the end of the configure line seems to work
around this issue!
Details of the pass build (--enable-pic=no) here:
http://pkg.auroraux.org/llvm_pass_disable-pic.txt
The only other *idea* I could come up with is that there is hand-written
assembler code that has not been coded with the appropriate
position-independent prototypes.
I been trying very hard to try to fix this myself, however, am at a bit of a
loss, any pointers would be greatly appreciated.
System LD Info:
$ /usr/bin/ld --version
ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1652
$ /usr/sfw/bin/gld --version
GNU ld version 2.15
Stock Solaris GCC Info:
$ /usr/sfw/bin/gcc --version
gcc (GCC) 3.4.3 (csl-sol210-3_4-20050802)
PATH setup:
$ echo $PATH
/usr/sfw/bin:/usr/gnu/bin:/opt/SUNWspro/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/bin:/usr/sbin:/usr/X11/bin:/usr/ccs/bin
Thanks for your time,
Edward O'Callaghan.
-
http://www.auroraux.org/
--
Configure bugmail: http://llvm.org/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 Jun 2 15:05:47 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 2 Jun 2009 15:05:47 -0500
Subject: [LLVMbugs] [Bug 4299] New: clang doesn' t apply __weak consistently
to pointer dereferences
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4299
Summary: clang doesn't apply __weak consistently to pointer
dereferences
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Testcase (compile with "clang-cc -triple i686-apple-darwin -x objective-c
-fobjc-gc -emit-llvm"):
__weak id* g1;
id* __weak g2;
id f1() { return *g1; }
id f2() { return *g2; }
Per the documentation, the compiled versions of both functions should contain
two calls to objc_read_weak, but that isn't true in clang: f2 only contains one
call to objc_read_weak. (I haven't checked against a Darwin gcc myself, but
Fariborz says that gcc generates the right thing here.)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Tue Jun 2 16:29:46 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 2 Jun 2009 16:29:46 -0500
Subject: [LLVMbugs] [Bug 4297] llc: Assertion `castIsValid(getOpcode(), S,
Ty) && " Illegal PtrToInt"' failed.
In-Reply-To:
Message-ID: <200906022129.n52LTk67032290@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4297
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Dan Gohman 2009-06-02 16:29:45 ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090601/078280.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 Jun 3 04:05:10 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 3 Jun 2009 04:05:10 -0500
Subject: [LLVMbugs] [Bug 4225] Failed assertion: "Wrong MachineOperand
accessor" in setIsKill()
In-Reply-To:
Message-ID: <200906030905.n5395AXT001227@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4225
Evan Cheng changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Evan Cheng 2009-06-03 04:04:57 ---
Fixed.
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090601/078295.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 Jun 3 04:09:43 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 3 Jun 2009 04:09:43 -0500
Subject: [LLVMbugs] [Bug 4303] New: llvm.dbg.declare vs -instcombine
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4303
Summary: llvm.dbg.declare vs -instcombine
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Core LLVM classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jay.foad at antixlabs.com
CC: llvmbugs at cs.uiuc.edu
I get a verification failure when I run this test case through -instcombine:
$ cat d.ll
define void @f() {
%a = alloca {}
call void @llvm.dbg.declare({}* %a, {}* null)
ret void
}
declare void @llvm.dbg.declare({}*, {}*)
$ llvm-as -o - d.ll | opt -f -o /dev/null -instcombine
invalid llvm.dbg.declare intrinsic call
call void @llvm.dbg.declare({ }* null, { }* null)
Broken module found, compilation aborted!
0 opt 0x0844ccc8
Stack dump:
0. Running pass 'Function Pass Manager' on module ''.
1. Running pass 'Module Verifier' on function '@f'
Aborted
The problem is that -instcombine replaces the alloca with null:
if (isa(AI) && AI.getAllocatedType()->isSized()) {
// If alloca'ing a zero byte object, replace the alloca with a null
pointer.
// Note that we only do this for alloca's, because malloc should allocate
// and return a unique pointer, even for a zero byte allocation.
if (TD->getTypeAllocSize(AI.getAllocatedType()) == 0)
return ReplaceInstUsesWith(AI, Constant::getNullValue(AI.getType()));
// If the alignment is 0 (unspecified), assign it the preferred alignment.
if (AI.getAlignment() == 0)
AI.setAlignment(TD->getPrefTypeAlignment(AI.getAllocatedType()));
}
but -verify asserts that the first arguments to llvm.dbg.declare is non-null:
case Intrinsic::dbg_declare: // llvm.dbg.declare
if (Constant *C = dyn_cast(CI.getOperand(1)))
Assert1(C && !isa(C),
"invalid llvm.dbg.declare intrinsic call", &CI);
break;
I don't think -verify should be making ad-hoc checks about debug intrinsics,
because it places too high a burden on optimisation passes to make sure they
don't break these checks. So I would vote for removing that check.
--
Configure bugmail: http://llvm.org/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 Jun 3 04:55:36 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 3 Jun 2009 04:55:36 -0500
Subject: [LLVMbugs] [Bug 4290] err_implicit_decl_requires_stdio too strict
to make autoconf work.
In-Reply-To:
Message-ID: <200906030955.n539ta70003361@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4290
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2009-06-03 04:55:30 ---
Fixed in r72760.
--
Configure bugmail: http://llvm.org/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 Jun 3 05:45:46 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 3 Jun 2009 05:45:46 -0500
Subject: [LLVMbugs] [Bug 3678] Invalid input/output constraint when
compiling FreeBSD's libm/ OpenSSL on AMD64
In-Reply-To:
Message-ID: <200906031045.n53AjkVn005314@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3678
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|REOPENED |RESOLVED
Resolution| |INVALID
--- Comment #19 from Eli Friedman 2009-06-03 05:45:35 ---
As far as I can tell, the correct constraint to use here is actually "x". If
that doesn't work for some reason, please reopen.
--
Configure bugmail: http://llvm.org/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 Jun 3 07:38:25 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 3 Jun 2009 07:38:25 -0500
Subject: [LLVMbugs] [Bug 4304] New: Missing pedantic warning for use of
designators in c89 mode
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4304
Summary: Missing pedantic warning for use of designators in c89
mode
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Simple testcase (run with clang -std=c89 -pedantic):
int a[5] = { [2] = 1 };
Should warn in C89 mode because C89 didn't have designators.
--
Configure bugmail: http://llvm.org/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 Jun 3 07:41:49 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 3 Jun 2009 07:41:49 -0500
Subject: [LLVMbugs] [Bug 4305] New: clang missing pedantic warning for use
of universal character name in c89 mode
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4305
Summary: clang missing pedantic warning for use of universal
character name in c89 mode
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: preprocessor
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Testcase (clang -std=c89 -pedantic):
char* x = "\u1234";
Should give a warning because universal character names are not valid in C89.
--
Configure bugmail: http://llvm.org/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 Jun 3 07:46:12 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 3 Jun 2009 07:46:12 -0500
Subject: [LLVMbugs] [Bug 4306] New: clang missing pedantic warning for
non-constant initializer for aggregate in c89 mode
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4306
Summary: clang missing pedantic warning for non-constant
initializer for aggregate in c89 mode
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Testcase (clang -c89 -pedantic):
struct x {int x;};
void a(int y) { struct x x = {y}; }
This should warn because it's a constraint violation in C89.
--
Configure bugmail: http://llvm.org/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 Jun 3 07:50:04 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 3 Jun 2009 07:50:04 -0500
Subject: [LLVMbugs] [Bug 4307] New: clang missing pedantic warning for use
of flexible array member in c89 mode
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4307
Summary: clang missing pedantic warning for use of flexible array
member in c89 mode
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Testcase (clang -pedantic -std=c89):
struct x { int x,y[]; };
Should warn because this feature does not exist in C89.
--
Configure bugmail: http://llvm.org/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 Jun 3 08:26:53 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 3 Jun 2009 08:26:53 -0500
Subject: [LLVMbugs] [Bug 4308] New: clang: add support for -m32
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4308
Summary: clang: add support for -m32
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
This is needed to build the ACPI/realmode code for a 64-bit Linux kernel.
Currently clang does this:
clang: warning: argument unused during compilation: '-m32'
/tmp/cc-j5tdcX.s: Assembler messages:
/tmp/cc-j5tdcX.s:40: Error: bad register name `%r15'
/tmp/cc-j5tdcX.s:41: Error: bad register name `%r14'
/tmp/cc-j5tdcX.s:42: Error: bad register name `%rbx'
/tmp/cc-j5tdcX.s:43: Error: bad register name `%rip)'
/tmp/cc-j5tdcX.s:46: Error: bad register name `%rip)'
/tmp/cc-j5tdcX.s:51: Error: bad register name `%r14d'
/tmp/cc-j5tdcX.s:52: Error: bad register name `%r15d'
/tmp/cc-j5tdcX.s:55: Error: bad register name `%rbx)'
/tmp/cc-j5tdcX.s:56: Error: bad register name `%rbx'
/tmp/cc-j5tdcX.s:57: Error: bad register name `%rbx'
/tmp/cc-j5tdcX.s:65: Error: bad register name `%r15d'
/tmp/cc-j5tdcX.s:87: Error: bad register name `%r14d'
/tmp/cc-j5tdcX.s:109: Error: bad register name `%rip)'
/tmp/cc-j5tdcX.s:120: Error: bad register name `%rip)'
/tmp/cc-j5tdcX.s:126: Error: bad register name `%rip)'
/tmp/cc-j5tdcX.s:131: Error: bad register name `%rbx'
/tmp/cc-j5tdcX.s:132: Error: bad register name `%r14'
/tmp/cc-j5tdcX.s:133: Error: bad register name `%r15'
--
Configure bugmail: http://llvm.org/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 Jun 3 10:57:01 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 3 Jun 2009 10:57:01 -0500
Subject: [LLVMbugs] [Bug 4311] New: Null-pointer dereference in
Traits::getNext(NodePtr) when buildt optimized.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4311
Summary: Null-pointer dereference in Traits::getNext(NodePtr)
when buildt optimized.
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: SunOS
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: eocallaghan at auroraux.org
CC: llvmbugs at cs.uiuc.edu
Test Case:
-bash-3.2$ cat > example.c
#include
int main() {
printf("Hi.\n");
return 0;
}
Trace:
-bash-3.2$ ./test1/bin/clang example.c
Assertion failed: Traits::getNext(NodePtr) != 0 && "Dereferencing end()!", file
/export/home2/edward/lab/TEST_BUILDS/llvm/llvm/include/llvm/ADT/ilist.h, line
197
0 clang-cc 0x09b37eee PrintStackTrace(void*) + 22
1 clang-cc 0x09e45df0 PrintStackTrace(void*) + 3202840
2 clang-cc 0000000000 PrintStackTrace(void*) + 4132208936
3 clang-cc 0x6834ec83 PrintStackTrace(void*) + 1585540523
Stack dump:
0. Program arguments:
/export/home2/edward/lab/TEST_BUILDS/llvm/test1/bin/../libexec/clang-cc -triple
i386-pc-solaris2.11 -S -disable-free -main-file-name example.c
--relocation-model static --disable-fp-elim --unwind-tables=0 --mcpu=pentium4
--fmath-errno=1 -fdiagnostics-show-option -o /tmp/cc-Uoaivy.s -x c example.c
1. parser at end of file
2. Code generation
3. Running pass 'X86 DAG->DAG Instruction Selection' on function '@main'
Configure Line:
./configure --prefix=/export/home2/edward/lab/TEST_BUILDS/llvm/test1
--enable-optimized --enable-assertions --enable-expensive-checks
--enable-pic=no
Building with, --enable-optimized=no , instead allows one to again build a
Hello world test app.
However tests still fail as can be seen in the following log:
http://pkg.auroraux.org/gmake_check_non-opti.log
Core File:
http://pkg.auroraux.org/core.7z
Anything else be sure to let me know,
Thanks for your time,
Edward O'Callaghan.
-
http://www.auroraux.org/
--
Configure bugmail: http://llvm.org/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 Jun 3 11:27:44 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 3 Jun 2009 11:27:44 -0500
Subject: [LLVMbugs] [Bug 4311] Null-pointer dereference in
Traits::getNext(NodePtr) when buildt optimized.
In-Reply-To:
Message-ID: <200906031627.n53GRip7017221@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4311
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #4 from Duncan Sands 2009-06-03 11:27:44 ---
I don't think there is anything to see here. Various versions of gcc 3.4.x
have proven to miscompile LLVM in the past, see
http://llvm.org/docs/GettingStarted.html#brokengcc
So this is presumably more of the same, and there's not much we can do about
it.
The testsuite problems should be moved to another bug report.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed Jun 3 11:31:42 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 3 Jun 2009 11:31:42 -0500
Subject: [LLVMbugs] [Bug 4313] New: tablegen crashes when compiled with LTO
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4313
Summary: tablegen crashes when compiled with LTO
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
If I compile LLVM with LTO on Linux, by using instructions from here
http://llvm.org/docs/GoldPlugin.html#lto_autotools, and additionally doing
make ENABLE_OPTIMIZED=1 OPTIMIZE_OPTION=-O4, then tablegen crashes with heap
corruption.
OPTIMIZE_OPTION=-O3 works fine, valgrind is clean; with OPTIMIZE_OPTION=-O4
valgrind reports use-after-free.
I can reproduce this with llvm-ld too, -disable-opt works fine, defaults create
bugged tblgen.
Here's how I've run bugpoint:
bugpoint -run-llc -safe-run-llc -internalize -ipsccp -globalopt -constmerge
-deadargelim -instcombine -basiccg -inline -prune-eh -globalopt -globaldce
-basiccg -argpromotion -instcombine -jump-threading -domtree -domfrontier
-scalarrepl -basiccg -functionattrs -globalsmodref-aa -domtree -loops
-loopsimplify -domfrontier -licm -memdep -gvn -memdep -memcpyopt -dse
-instcombine -jump-threading -domtree -domfrontier -mem2reg -simplifycfg
-globaldce -instcombine -simplifycfg -adce -globaldce -preverify -domtree
-verify /home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/AsmWriterEmitter.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/CallingConvEmitter.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/ClangDiagnosticsEmitter.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/CodeEmitterGen.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/CodeGenDAGPatterns.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/CodeGenInstruction.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/CodeGenTarget.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/DAGISelEmitter.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/FastISelEmitter.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/InstrEnumEmitter.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/InstrInfoEmitter.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/IntrinsicEmitter.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/LLVMCConfigurationEmitter.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/Record.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/RegisterInfoEmitter.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/SubtargetEmitter.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/TGLexer.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/TGParser.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/TGSourceMgr.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/TGValueTypes.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/TableGen.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/TableGenBackend.o
-Xlinker=-lLLVMSupport -Xlinker=-lLLVMSystem -Xlinker=/usr/lib/libstdc++.so.6
-Xlinker=-lpthread -Xlinker=-ldl --args -I /home/edwin/llvm-svn/llvm/lib/VMCore
-I /home/edwin/llvm-svn/llvm/include -I /home/edwin/llvm-svn/llvm/include -I
/home/edwin/llvm-svn/llvm/lib/Target
/home/edwin/llvm-svn/llvm/include/llvm/Intrinsics.td -o
/home/edwin/llvm-svn/llvm-lto/lib/VMCore/Release/Intrinsics.gen.tmp
-gen-intrinsic
I haven't got a reduced .bc file yet, will attach when I have one.
--
Configure bugmail: http://llvm.org/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 Jun 3 12:22:47 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 3 Jun 2009 12:22:47 -0500
Subject: [LLVMbugs] [Bug 4314] New: llvm-ld's LTO segfaults in '
Interprocedural Sparse Conditional Constant Propagation'
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4314
Summary: llvm-ld's LTO segfaults in 'Interprocedural Sparse
Conditional Constant Propagation'
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: compile-fail
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: matti.niemenmaa+llvmbugs at iki.fi
CC: llvmbugs at cs.uiuc.edu
Assembling and linking the following:
%T = type { i32 }
define void @foo() {
call %T @bar()
ret void
}
define internal %T @bar() {
%x = alloca %T
%y = load %T* %x
ret %T %y
}
Results in the following:
$ llvm-as arst.ll -f && llvm-ld arst.bc
0 llvm-ld 0x00000000006e41df
1 llvm-ld 0x00000000006e45cd
2 libpthread.so.0 0x00007f3b9be93850
3 llvm-ld 0x000000000053d3c8
4 llvm-ld 0x00000000005406cb
5 llvm-ld 0x0000000000541b98
6 llvm-ld 0x0000000000542edd
7 llvm-ld 0x000000000067fb10
llvm::MPPassManager::runOnModule(llvm::Module&) + 304
8 llvm-ld 0x000000000068049b
llvm::PassManagerImpl::run(llvm::Module&) + 171
9 llvm-ld 0x000000000048886f llvm::Optimize(llvm::Module*) + 1231
10 llvm-ld 0x000000000048f810 main + 1120
11 libc.so.6 0x00007f3b9af8e9ed __libc_start_main + 253
12 llvm-ld 0x0000000000487ab9
Stack dump:
0. Program arguments: llvm-ld arst.bc
1. Running pass 'Interprocedural Sparse Conditional Constant Propagation'
on module 'a.out'.
With -disable-opt it works fine.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed Jun 3 12:23:15 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 3 Jun 2009 12:23:15 -0500
Subject: [LLVMbugs] [Bug 4315] New: Assertion failed: " Operands of AddRec
must be loop-invariant!"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4315
Summary: Assertion failed: "Operands of AddRec must be loop-
invariant!"
Product: libraries
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: ed at 80386.nl
CC: llvmbugs at cs.uiuc.edu
Blocks: 3696
Created an attachment (id=3052)
--> (http://llvm.org/bugs/attachment.cgi?id=3052)
Reduced testcase
I'm seeing the following crash when building a FreeBSD kernel (with LLVM+Clang
r72770):
cc -O2 -pipe llvm-crash.c -o llvm-crash
Assertion failed: (Operands[i]->isLoopInvariant(l) && "Operands of AddRec must
be loop-invariant!"), function SCEVAddRecExpr, file
/home/ed/projects/freebsd-clang/usr.bin/clang/lib/libllvmanalysis/../../../../contrib/llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h,
line 394.
Stack dump:
0. Program arguments: /usr/bin/../libexec/clang-cc -triple
x86_64-undermydesk-freebsd8.0 -S -disable-free -main-file-name llvm-crash.c
--relocation-model static --disable-fp-elim --unwind-tables=1 --mcpu=x86-64
--fmath-errno=1 -O2 -fdiagnostics-show-option -o /tmp/cc-ij5lLq.s -x c
llvm-crash.c
1. parser at end of file
2. Per-module optimization passes
3. Running pass 'CallGraph Pass Manager' on module 'llvm-crash.c'.
4. Running pass 'Loop Pass Manager' on function '@crash'
5. Running pass 'Canonicalize Induction Variables' on basic block
'%for.cond'
--
Configure bugmail: http://llvm.org/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 Jun 3 12:37:22 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 3 Jun 2009 12:37:22 -0500
Subject: [LLVMbugs] [Bug 4316] New: Assertion failed: "Ptr must be a pointer
to Val type!"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4316
Summary: Assertion failed: "Ptr must be a pointer to Val type!"
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
I'm seeing the following crash with LLVM+Clang r72770:
cc -O2 -pipe llvm-crash.c -o llvm-crash
Assertion failed: (getOperand(0)->getType() ==
cast(getOperand(1)->getType())->getElementType() && "Ptr must be a
pointer to Val type!"), function AssertOK, file
.../llvm/lib/VMCore/Instructions.cpp, line 920.
Stack dump:
0. Program arguments: /usr/bin/../libexec/clang-cc -triple
x86_64-undermydesk-freebsd8.0 -S -disable-free -main-file-name llvm-crash.c
--relocation-model static --disable-fp-elim --unwind-tables=1 --mcpu=x86-64
--fmath-errno=1 -O2 -fdiagnostics-show-option -o /tmp/cc-YwucJT.s -x c
llvm-crash.c
1. parser at end of file
2. llvm-crash.c:7:1: LLVM IR generation of declaration 'crash'
3. llvm-crash.c:8:1: LLVM IR generation of compound statement ('{}')
Code:
union un {
int i;
char *c;
};
void
crash(char *buffer)
{
boom((union un)buffer);
}
I can't seem to generate any LLVM IR.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed Jun 3 14:00:27 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 3 Jun 2009 14:00:27 -0500
Subject: [LLVMbugs] [Bug 4308] clang: add support for -m32
In-Reply-To:
Message-ID: <200906031900.n53J0Rhj023598@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4308
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Eli Friedman 2009-06-03 14:00:26 ---
This was working, but I broke it; fixed in r72794. Sorry for any
inconvenience.
--
Configure bugmail: http://llvm.org/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 Jun 3 14:17:30 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 3 Jun 2009 14:17:30 -0500
Subject: [LLVMbugs] [Bug 4317] New: llc: Assertion `i != PredBlocks.size()
&& " No reachable preds?"' failed.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4317
Summary: llc: Assertion `i != PredBlocks.size() && "No reachable
preds?"' 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: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3054)
--> (http://llvm.org/bugs/attachment.cgi?id=3054)
bugpoint-reduced-simplified.bc
While reducing a miscompilation with bugpoint, it has found a crash in llc too:
llc: /home/edwin/llvm-svn/llvm/include/llvm/Analysis/Dominators.h:273: void
llvm::DominatorTreeBase::Split(llvm::DominatorTreeBase&, typename GraphT::NodeType*) [with N = llvm::BasicBlock*,
GraphT = llvm::GraphTraits, NodeT = llvm::BasicBlock]:
Assertion `i != PredBlocks.size() && "No reachable preds?"' failed.
0 llc 0x0000000000d6923f
1 llc 0x0000000000d69639
2 libpthread.so.0 0x00007f8ca26a97b0
3 libc.so.6 0x00007f8ca19c9065 gsignal + 53
4 libc.so.6 0x00007f8ca19cc153 abort + 387
5 libc.so.6 0x00007f8ca19c2159 __assert_fail + 233
6 llc 0x0000000000bbe663 void
llvm::DominatorTreeBase::Split
>(llvm::DominatorTreeBase::NodeType>&,
llvm::GraphTraits::NodeType*) +3203
7 llc 0x0000000000bbc4ff
8 llc 0x0000000000bbc986
9 llc 0x0000000000d02059
llvm::FPPassManager::runOnFunction(llvm::Function&) + 489
10 llc 0x0000000000d02316
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 166
11 llc 0x0000000000d0255b
llvm::FunctionPassManager::run(llvm::Function&) + 75
12 llc 0x0000000000518189 main + 4633
13 libc.so.6 0x00007f8ca19b55a6 __libc_start_main + 230
14 llc 0x00000000005163b9
Stack dump:
0. Program arguments: llc bugpoint-reduced-simplified.bc
1. Running pass 'Exception handling preparation' on function
'@_ZN4llvm16IntrinsicEmitter28EmitIntrinsicToGCCBuiltinMapERKSt6vectorINS_16CodeGenIntrinsicESaIS2_EERSo'
Aborted
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed Jun 3 15:14:15 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 3 Jun 2009 15:14:15 -0500
Subject: [LLVMbugs] [Bug 4315] Assertion failed: "Operands of AddRec must be
loop-invariant!"
In-Reply-To:
Message-ID: <200906032014.n53KEFnh026586@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4315
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Dan Gohman 2009-06-03 15:14:15 ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090601/078324.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 Jun 3 15:45:23 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 3 Jun 2009 15:45:23 -0500
Subject: [LLVMbugs] [Bug 4316] Assertion failed: "Ptr must be a pointer to
Val type!"
In-Reply-To:
Message-ID: <200906032045.n53KjNRs027791@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4316
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Eli Friedman 2009-06-03 15:45:23 ---
Fixed in r72803.
--
Configure bugmail: http://llvm.org/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 Jun 3 16:42:38 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 3 Jun 2009 16:42:38 -0500
Subject: [LLVMbugs] [Bug 4317] llc: Assertion `i != PredBlocks.size() && "No
reachable preds?"' failed.
In-Reply-To:
Message-ID: <200906032142.n53Lgcvq030031@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4317
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2009-06-03 16:42:37 ---
Fixed in r72810.
--
Configure bugmail: http://llvm.org/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 Jun 3 18:48:28 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 3 Jun 2009 18:48:28 -0500
Subject: [LLVMbugs] [Bug 4320] New: Support building tests in parallel ( at
least for Nightly Test)
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4320
Summary: Support building tests in parallel (at least for Nightly
Test)
Product: Test Suite
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Programs Tests
AssignedTo: unassignedbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
Most of the time spent doing a nightly test is building the various projects (I
believe). We should extend the infrastructure so there is a way to only build
the targets we don't care about timing. That way we could do the nightlytest in
two stages, the first could build all the input files (in parallel), and then
the second could do the standard -j1 testing of the programs.
--
Configure bugmail: http://llvm.org/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 Jun 3 20:22:36 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 3 Jun 2009 20:22:36 -0500
Subject: [LLVMbugs] [Bug 4321] New: linearscan leaves virtual register in
MBB livein set
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4321
Summary: linearscan leaves virtual register in MBB livein set
Product: libraries
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: gohman at apple.com
CC: llvmbugs at cs.uiuc.edu
In the attached testcase compiled with
llc -march=x86 -print-machineinstrs
basic block bb246 has virtual register %reg1025 in its livein
set after register allocation.
When the post-RA scheduler is enabled (with
-disable-post-RA-scheduler=false), this leads to an assertion
failure because it doesn't expect to find virtual registers
in MBB livein sets.
--
Configure bugmail: http://llvm.org/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 Jun 4 01:59:13 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 4 Jun 2009 01:59:13 -0500
Subject: [LLVMbugs] [Bug 4322] New: llc: Assertion
`FuncInfo->CatchInfoFound.size() == FuncInfo->CatchInfoLost.size() && " Not
all catch info was assignedto a landing pad!"' failed.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4322
Summary: llc: Assertion `FuncInfo->CatchInfoFound.size() ==
FuncInfo->CatchInfoLost.size() && "Not all catch info
was assignedto a landing pad!"' 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: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
Blocks: 4313
Created an attachment (id=3056)
--> (http://llvm.org/bugs/attachment.cgi?id=3056)
bugpoint-reduced-simplified.bc
While reducing a miscompilation with bugpoint it found a LLC crash:
llc bugpoint-reduced-simplified.bc
llc:
/home/edwin/llvm-svn/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:340:
virtual bool llvm::SelectionDAGISel::runOnFunction(llvm::Function&): Assertion
`FuncInfo->CatchInfoFound.size() == FuncInfo->CatchInfoLost.size() && "Not all
catch info was assignedto a landing pad!"' failed.
0 llc 0x0000000000d6923f
1 llc 0x0000000000d69639
2 libpthread.so.0 0x00007f441694a7b0
3 libc.so.6 0x00007f4415c6a065 gsignal + 53
4 libc.so.6 0x00007f4415c6d153 abort + 387
5 libc.so.6 0x00007f4415c63159 __assert_fail + 233
6 llc 0x0000000000a30a07
llvm::SelectionDAGISel::runOnFunction(llvm::Function&) + 3943
7 llc 0x0000000000d02059
llvm::FPPassManager::runOnFunction(llvm::Function&) + 489
8 llc 0x0000000000d02316
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 166
9 llc 0x0000000000d0255b
llvm::FunctionPassManager::run(llvm::Function&) + 75
10 llc 0x0000000000518189 main + 4633
11 libc.so.6 0x00007f4415c565a6 __libc_start_main + 230
12 llc 0x00000000005163b9
Stack dump:
0. Program arguments: llc bugpoint-reduced-simplified.bc
1. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_ZN4llvm16IntrinsicEmitter28EmitIntrinsicToGCCBuiltinMapERKSt6vectorINS_16CodeGenIntrinsicESaIS2_EERSo'
Aborted
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu Jun 4 02:40:25 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 4 Jun 2009 02:40:25 -0500
Subject: [LLVMbugs] [Bug 4322] llc: Assertion
`FuncInfo->CatchInfoFound.size() == FuncInfo-> CatchInfoLost.size() && "Not
all catch info was assignedto a landing pad!"' failed.
In-Reply-To:
Message-ID: <200906040740.n547ePq7023502@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4322
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |baldrick at free.fr
Status|NEW |RESOLVED
Resolution| |LATER
--- Comment #1 from Duncan Sands 2009-06-04 02:40:24 ---
This is a known limitation of llc: eh.selector calls need to be in
landing pads. Running bugpoint on code with exception handling
often results in eh.selector calls outside of landing pads, causing
this crash. This is just one in a wide range of tricky problems with
eh.selector that I am working on.
--
Configure bugmail: http://llvm.org/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 Jun 4 08:48:26 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 4 Jun 2009 08:48:26 -0500
Subject: [LLVMbugs] [Bug 4323] New: Tail recursion elimination doesn' t move
loads above nounwind readonly call
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4323
Summary: Tail recursion elimination doesn't move loads above
nounwind readonly call
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
Created an attachment (id=3061)
--> (http://llvm.org/bugs/attachment.cgi?id=3061)
Patch to check CI->mayHaveSideEffects() when looking at a load.
opt -tailcallelim refuses to eliminate a tail call if it's followed by load,
even if the call is both nounwind and readonly.
An example where it would be safe to do this:
----
define fastcc i32 @_D4test3sumFPiiiZi(i32* %a_arg, i32 %a_len_arg, i32
%start_arg) nounwind readonly {
entry:
%tmp2 = icmp slt i32 %start_arg, %a_len_arg ;
[#uses=1]
br i1 %tmp2, label %else, label %if
if: ; preds = %entry
ret i32 0
else: ; preds = %entry
%tmp4 = sext i32 %start_arg to i64 ; [#uses=1]
%tmp6 = getelementptr i32* %a_arg, i64 %tmp4 ;
[#uses=1]
%tmp10 = add i32 %start_arg, 1 ; [#uses=1]
%tmp11 = tail call fastcc i32 @_D4test3sumFPiiiZi(i32* %a_arg, i32
%a_len_arg, i32 %tmp10) ; [#uses=1]
%tmp12 = load i32* %tmp6 ; [#uses=1]
%tmp13 = add i32 %tmp12, %tmp11 ; [#uses=1]
ret i32 %tmp13
}
----
I'm attaching a small patch that remedies the situation.
Note that I used CI->mayHaveSideEffects() instead of CI->onlyReadsMemory() to
correctly handle the case where the call may throw and the load may introduce
undefined behavior[1]. This way, the transformation does not take place in that
case.
[1]: For example, if the pointer being loaded from may be null but the call
will throw in this case it's not safe to move the load before the call since
that would produce undefined behavior instead of an exception.
--
Configure bugmail: http://llvm.org/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 Jun 4 13:17:00 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 4 Jun 2009 13:17:00 -0500
Subject: [LLVMbugs] [Bug 4324] New: GNU89: extern inline may not be followed
by regular function
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4324
Summary: GNU89: extern inline may not be followed by regular
function
Product: clang
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ed at 80386.nl
CC: llvmbugs at cs.uiuc.edu
Blocks: 3696
GCC accepts the following code, while Clang does not. Code is taken from ratbox
ircd.
extern void func(void);
extern inline void
func(void)
{
}
void
func(void)
{
}
$ cc llvm-crash.c -o llvm-crash -std=gnu89
llvm-crash.c:9:1: error: redefinition of 'func'
func(void)
^
llvm-crash.c:4:1: note: previous definition is here
func(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 Thu Jun 4 13:27:51 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 4 Jun 2009 13:27:51 -0500
Subject: [LLVMbugs] [Bug 4324] GNU89: extern inline may not be followed by
regular function
In-Reply-To:
Message-ID: <200906041827.n54IRpJY021951@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4324
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #2 from Douglas Gregor 2009-06-04 13:27:50 ---
We're not going to implement this feature.
--
Configure bugmail: http://llvm.org/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 Jun 4 13:55:09 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 4 Jun 2009 13:55:09 -0500
Subject: [LLVMbugs] [Bug 4325] New: clang: Rev 72572 breaks volatile code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4325
Summary: clang: Rev 72572 breaks volatile code
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: miscompilation, regression
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: quickslyver at free.fr
CC: llvmbugs at cs.uiuc.edu, mrs at apple.com
after rev 72572, clang does the "while comparison" on the lvalue instead of the
rvalue in the above c code:
-------------Original C Code:
#define DEBUG_BASE 0x2000
void print(const char* text)
{
unsigned volatile char * const debug_device=(unsigned char *
const)DEBUG_BASE;
while(*debug_device=*text++);
}
-------------Clang Rev 72571 llvm generated code (O3):
define void @print(i8* nocapture %text) nounwind noinline {
entry:
br label %while.cond
while.cond: ; preds = %while.cond, %entry
%indvar = phi i32 [ 0, %entry ], [ %indvar.next, %while.cond ]
; [#uses=2]
%text.addr.0 = getelementptr i8* %text, i32 %indvar ;
[#uses=1]
%tmp1 = load i8* %text.addr.0 ; [#uses=2]
volatile store i8 %tmp1, i8* inttoptr (i32 8192 to i8*), align 8192
%tobool = icmp eq i8 %tmp1, 0 ; [#uses=1]
%indvar.next = add i32 %indvar, 1 ; [#uses=1]
br i1 %tobool, label %while.end, label %while.cond
while.end: ; preds = %while.cond
ret void
}
-------------diff between 72571 and 72572:
@@ -32,9 +32,10 @@
while.cond: ; preds = %while.cond, %entry
%indvar = phi i32 [ 0, %entry ], [ %indvar.next, %while.cond ]
; [#uses=2]
%text.addr.0 = getelementptr i8* %text, i32 %indvar ;
[#uses=1]
- %tmp1 = load i8* %text.addr.0 ; [#uses=2]
+ %tmp1 = load i8* %text.addr.0 ; [#uses=1]
volatile store i8 %tmp1, i8* inttoptr (i32 8192 to i8*), align 8192
- %tobool = icmp eq i8 %tmp1, 0 ; [#uses=1]
+ %tmp3 = volatile load i8* inttoptr (i32 8192 to i8*), align 8192
; [#uses=1]
+ %tobool = icmp eq i8 %tmp3, 0 ; [#uses=1]
%indvar.next = add i32 %indvar, 1 ; [#uses=1]
br i1 %tobool, label %while.end, label %while.cond
-------------Clang Rev 72572 llvm generated code (O3):
define void @print(i8* nocapture %text) nounwind noinline {
entry:
br label %while.cond
while.cond: ; preds = %while.cond, %entry
%indvar = phi i32 [ 0, %entry ], [ %indvar.next, %while.cond ]
; [#uses=2]
%text.addr.0 = getelementptr i8* %text, i32 %indvar ;
[#uses=1]
%tmp1 = load i8* %text.addr.0 ; [#uses=1]
volatile store i8 %tmp1, i8* inttoptr (i32 8192 to i8*), align 8192
%tmp3 = volatile load i8* inttoptr (i32 8192 to i8*), align 8192
; [#uses=1]
%tobool = icmp eq i8 %tmp3, 0 ; [#uses=1]
%indvar.next = add i32 %indvar, 1 ; [#uses=1]
br i1 %tobool, label %while.end, label %while.cond
while.end: ; preds = %while.cond
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 Jun 4 14:24:58 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 4 Jun 2009 14:24:58 -0500
Subject: [LLVMbugs] [Bug 4326] New: Crash when initializing variable with
structure offset
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4326
Summary: Crash when initializing variable with structure offset
Product: clang
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: parser
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ed at 80386.nl
CC: llvmbugs at cs.uiuc.edu
Blocks: 3696
This code causes Clang to crash without any message:
struct f {
int a;
};
int arr = ((void *)&(((struct f *)0)->a)) - (void *)0;
$ make llvm-crash
cc -O2 -pipe -fno-strict-aliasing llvm-crash.c -o llvm-crash
Stack dump:
0. Program arguments: /usr/bin/../libexec/clang-cc -triple
x86_64-undermydesk-freebsd8.0 -S -disable-free -main-file-name llvm-crash.c
--relocation-model static --disable-fp-elim --unwind-tables=1 --mcpu=x86-64
--fmath-errno=1 -O2 -fdiagnostics-show-option -o /tmp/cc-sNsmLz.s -x c
llvm-crash.c
1. llvm-crash.c:5:54: current parser token ';'
*** Error code 248
Stop in /home/ed.
--
Configure bugmail: http://llvm.org/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 Jun 4 14:44:14 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 4 Jun 2009 14:44:14 -0500
Subject: [LLVMbugs] [Bug 4325] clang: Rev 72572 breaks volatile code
In-Reply-To:
Message-ID: <200906041944.n54JiERW024921@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4325
Mike Stump changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Mike Stump 2009-06-04 14:44:14 ---
>From the standard:
An assignment expression has the value of the left operand after the
assignment
If the left operand is volatile, that means that we must read the operand to
know what the value is. I aware of the controversy and why you might prefer or
think there should be no read. The C standard should be improved in this area.
The C++ standard is perfectly clear however. I'd recommend pursuing this with
the comp.std.c or the C committee.
As it is, very portable code _must_ not use the value of assignment
expressions, if the lhs is volatile and they do not want it read.
--
Configure bugmail: http://llvm.org/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 Jun 4 15:04:22 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 4 Jun 2009 15:04:22 -0500
Subject: [LLVMbugs] [Bug 4326] Crash when initializing variable with
structure offset
In-Reply-To:
Message-ID: <200906042004.n54K4Mus025724@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4326
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2009-06-04 15:04:21 ---
Fixed in r72886.
--
Configure bugmail: http://llvm.org/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 Jun 4 15:54:27 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 4 Jun 2009 15:54:27 -0500
Subject: [LLVMbugs] [Bug 4321] linearscan leaves virtual register in MBB
livein set
In-Reply-To:
Message-ID: <200906042054.n54KsRZL027506@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4321
Evan Cheng changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |evan.cheng at apple.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Evan Cheng 2009-06-04 15:54:27 ---
Fixed.
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090601/078391.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 Jun 4 16:32:14 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 4 Jun 2009 16:32:14 -0500
Subject: [LLVMbugs] [Bug 4327] New: Missed optimization on
Benchmarks/Shootout/objinst
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4327
Summary: Missed optimization on Benchmarks/Shootout/objinst
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3063)
--> (http://llvm.org/bugs/attachment.cgi?id=3063)
test script
clang used to not honor -mllvm -disable-llvm-optzns and so would end up running
-O3 level optimizations twice. It turns out this was giving a very dramatic
speedup on Benchmarks/Shootout/objinst:
--
ddunbar at lordcrumb:x$ cat test.sh
#!/bin/bash
for count in 0 1 2 3 4; do
name="x$count"
clang -m32 -O0 -c objinst.c -o $name.bc -emit-llvm
i=0;
while (($i < $count)); do
opt -std-compile-opts $name.bc -o $name.bc -f
i=$((i + 1));
done
llvm-ld $name.bc -o $name.linked -lc
llc -O3 -f $name.linked.bc -o $name.linked.s
gcc $name.linked.s -o $name -m32 -fomit-frame-pointer -mdynamic-no-pic -lm
echo "-- $count iterations (opt -std-compile-opts) --"
time ./$name > /dev/null
done
ddunbar at lordcrumb:x$ ./test.sh
-- 0 iterations (opt -std-compile-opts) --
real 0m9.705s
user 0m9.699s
sys 0m0.004s
-- 1 iterations (opt -std-compile-opts) --
real 0m9.566s
user 0m9.560s
sys 0m0.005s
-- 2 iterations (opt -std-compile-opts) --
real 0m4.916s
user 0m4.912s
sys 0m0.003s
-- 3 iterations (opt -std-compile-opts) --
real 0m4.658s
user 0m4.652s
sys 0m0.004s
-- 4 iterations (opt -std-compile-opts) --
real 0m0.028s
user 0m0.026s
sys 0m0.002s
--
The full reduction to < .1s is probably not fair, but it might be worth looking
into the difference between running -O3 once and twice.
Drop the attached test in a directory with objinst.c to run.
--
Configure bugmail: http://llvm.org/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 Jun 4 16:55:47 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 4 Jun 2009 16:55:47 -0500
Subject: [LLVMbugs] [Bug 4328] New: Nightly test should have some kind of
"rotation" mechanism
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4328
Summary: Nightly test should have some kind of "rotation"
mechanism
Product: Test Suite
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Programs Tests
AssignedTo: unassignedbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
It would be nice if NewNightlyTest.pl had some kind of option for "rotating"
build directories, in conjunction with -noremove. Keeping the previous N
nightly test build directories would make it much easier to quickly analyze
failures.
--
Configure bugmail: http://llvm.org/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 Jun 5 00:12:36 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 5 Jun 2009 00:12:36 -0500
Subject: [LLVMbugs] [Bug 4331] New: Floating point ICE with llvm-gcc 2.5
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4331
Summary: Floating point ICE with llvm-gcc 2.5
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: OpenBSD
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jsg at openbsd.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3065)
--> (http://llvm.org/bugs/attachment.cgi?id=3065)
preprocessed output
llvm on OpenBSD/i386 -current with llvm-gcc 2.5 fails to compile
s_fmin.c/s_fminf.c/s_fminl.c in libm.
For example
llvm-gcc (GCC) 4.2.1 (Based on Apple Inc. build 5636) (LLVM build)
llvm-gcc -O2 -pipe -g -I/usr/src/lib/libm/src -I/usr/src/lib/libm/src/ld80 -c
/usr/src/lib/libm/src/s_fmin.c -o s_fmin.o
assertion "Op.isUse() && (Op.isKill() || getFPReg(Op) == FirstFPRegOp ||
MI->killsRegister(Op.getReg())) && "Ret only defs operands, and values aren't
live beyond it"" failed: file
"/data/obj/portbuild/llvm-2.5/llvm-2.5/lib/Target/X86/X86FloatingPoint.cpp",
line 1072, function "handleSpecialFP"
/usr/src/lib/libm/src/s_fmin.c:49: internal compiler error: Abort trap
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri Jun 5 00:29:00 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 5 Jun 2009 00:29:00 -0500
Subject: [LLVMbugs] [Bug 4332] New: Alignment related ICE with llvm-gcc 2.5
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4332
Summary: Alignment related ICE with llvm-gcc 2.5
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: OpenBSD
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jsg at openbsd.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3066)
--> (http://llvm.org/bugs/attachment.cgi?id=3066)
preprocessed output
With llvm-gcc 2.5 on OpenBSD/i386 -current compiling libc the following ICE is
seen:
llvm-gcc (GCC) 4.2.1 (Based on Apple Inc. build 5636) (LLVM build)
llvm-gcc -O2 -pipe -g -DLIBC_SCCS -DSYSLIBC_SCCS -I/usr/src/lib/libc/include
-DAPIWARN -DYP -I/usr/src/lib/libc/yp -D__DBINTERFACE_PRIVATE
-I/usr/src/lib/libc/gdtoa -I/usr/src/lib/libc/arch/i386/gdtoa -DINFNAN_CHECK
-DMULTIPLE_THREADS -DNO_FENV_H -DUSE_LOCALE -I/usr/src/lib/libc -DRESOLVSORT
-DPOSIX_MISTAKE -DFLOATING_POINT -DNLS -c /usr/src/lib/libc/stdlib/malloc.c
-o malloc.o
assertion "Alignment && "LValue alignment cannot be zero!"" failed: file
".././../gcc/llvm-internal.h", line 275, function "getAlignment"
/usr/src/lib/libc/stdlib/malloc.c: In function 'omalloc':
/usr/src/lib/libc/stdlib/malloc.c:1119: internal compiler error: Abort trap
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri Jun 5 02:48:17 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 5 Jun 2009 02:48:17 -0500
Subject: [LLVMbugs] [Bug 3256] valgrind reports invalid reads in
Sema::ActOnPopScope
In-Reply-To:
Message-ID: <200906050748.n557mHiE021572@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3256
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #2 from Eli Friedman 2009-06-05 02:48:07 ---
This doesn't seem to be an issue 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 Fri Jun 5 03:20:30 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 5 Jun 2009 03:20:30 -0500
Subject: [LLVMbugs] [Bug 3443] recent regression: undeclared function isn' t
infered the right type
In-Reply-To:
Message-ID: <200906050820.n558KUY7028687@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3443
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #15 from Eli Friedman 2009-06-05 03:20:30 ---
stpcpy builtin added in r72936.
--
Configure bugmail: http://llvm.org/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 Jun 5 12:12:11 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 5 Jun 2009 12:12:11 -0500
Subject: [LLVMbugs] [Bug 4333] New: configure should support --disable-ffi
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4333
Summary: configure should support --disable-ffi
Product: Build scripts
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: autoconf
AssignedTo: unassignedbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
EOM.
--
Configure bugmail: http://llvm.org/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 Jun 5 12:53:21 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 5 Jun 2009 12:53:21 -0500
Subject: [LLVMbugs] [Bug 4334] New: scan-build gives no reports
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4334
Summary: scan-build gives no reports
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: lbalbalba at gmail.com
CC: llvmbugs at cs.uiuc.edu
Im trying to build a cpp program called 'desmume' (www.desmume.org) using
llvm/clang in the following manner :
scan-build ./configure
scan-build make
But scan-build then just gives me the following message :
"scan-build: Removing directory '/tmp/scan-build-2009-06-05-1' because it
contains no reports."
Does anyone know what might be going on here ?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri Jun 5 12:56:57 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 5 Jun 2009 12:56:57 -0500
Subject: [LLVMbugs] [Bug 4334] scan-build gives no reports
In-Reply-To:
Message-ID: <200906051756.n55HuvR3017690@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4334
John Smith changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri Jun 5 20:15:23 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 5 Jun 2009 20:15:23 -0500
Subject: [LLVMbugs] [Bug 4336] New: Iterating over use-def chains doesn' t
seem to be deterministic.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4336
Summary: Iterating over use-def chains doesn't seem to be
deterministic.
Product: libraries
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: Core LLVM classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jlerouge at apple.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3069)
--> (http://llvm.org/bugs/attachment.cgi?id=3069)
Pass to print use-def chains.
Hello,
It seems like iterating over use-def chains is not deterministic. It seems uses
are not always stored in the same order.
The attached patch adds a pass that iterates over the use-def chains, printing
all the instructions in the file "usedef.txt0".
By modifying opt command line, the order in which values are printed is
sometimes different.
Example:
$ ../Debug/bin/opt --load LLVMHello.dylib --load LLVMUseDef.dylib -checkusedef
./MultiSource/Benchmarks/ASCI_Purple/SMG2000/Output/random.bc >/dev/null
$ md5 usedef.txt0
MD5 (usedef.txt0) = 39fbfb368fc1857d790072a16839124f
$ ../Debug/bin/opt --load LLVMUseDef.dylib -checkusedef
./MultiSource/Benchmarks/ASCI_Purple/SMG2000/Output/random.bc >/dev/null
$ md5 usedef.txt0
MD5 (usedef.txt0) = 3f79a6ff1668d640f456484d588dfc2d
So, in this case, loading the Hello dylib seems to be enough to expose the non
determinism, even though the hello pass doesn't even run.
In this case, the diff is in the order in which uses for a global are showed:
diff -u ref1.txt usedef.txt0
--- ref1.txt 2009-06-05 17:51:48.000000000 -0700
+++ usedef.txt0 2009-06-05 17:51:57.000000000 -0700
@@ -1,14 +1,14 @@
@Seed = internal global i32 13579 ; [#uses=4]
Use Begin:
- store i32 %3, i32* @Seed, align 4
-
%4 = load i32* @Seed, align 4 ; [#uses=1]
store i32 %3, i32* @Seed, align 4
%1 = load i32* @Seed, align 4 ; [#uses=1]
+ store i32 %3, i32* @Seed, align 4
+
Use End:
I found that from all the bc files in the llvm-test build,
./MultiSource/Benchmarks/ASCI_Purple/random.bc was the smallest one to
reproduce the problem on my machine (Leopard 10.5.7, LLVM svn r72977).
The problem also seems to happen with LLVM 2.5.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri Jun 5 23:23:26 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 5 Jun 2009 23:23:26 -0500
Subject: [LLVMbugs] [Bug 2598] fptosint fails when asked to convert v2f32
(0.0, 0, 0) to v2i32 (0 , 0)
In-Reply-To:
Message-ID: <200906060423.n564NQAh008703@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=2598
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Eli Friedman 2009-06-05 23:23:24 ---
Fixed in r72983.
--
Configure bugmail: http://llvm.org/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 Jun 6 01:33:13 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 6 Jun 2009 01:33:13 -0500
Subject: [LLVMbugs] [Bug 4333] configure should support --disable-ffi
In-Reply-To:
Message-ID: <200906060633.n566XDFV012986@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4333
Nick Lewycky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Nick Lewycky 2009-06-06 01:33:12 ---
The flag is "--disable-libffi".
--
Configure bugmail: http://llvm.org/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 Jun 6 04:29:41 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 6 Jun 2009 04:29:41 -0500
Subject: [LLVMbugs] [Bug 4337] New: fprintf makes Clang die
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4337
Summary: fprintf makes Clang die
Product: clang
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: AST
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ed at 80386.nl
CC: llvmbugs at cs.uiuc.edu
Blocks: 3696
The following code makes LLVM/Clang r72995 die:
void fprintf(void);
Assertion failed: (false && "a decl that inherits DeclContext isn't handled"),
function castToDeclContext, file .../llvm/tools/clang/lib/AST/DeclBase.cpp,
line 341.
--
Configure bugmail: http://llvm.org/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 Jun 6 09:02:08 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 6 Jun 2009 09:02:08 -0500
Subject: [LLVMbugs] [Bug 4338] New: Assertion failed:
(!N1.getValueType().isInteger() && " Illegal setcc for integer!")
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4338
Summary: Assertion failed: (!N1.getValueType().isInteger() &&
"Illegal setcc for integer!")
Product: libraries
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: ed at 80386.nl
CC: llvmbugs at cs.uiuc.edu
Blocks: 3696
I'm seeing the following crash when compiling the following code and enabling
-O1 or higher. This is LLVM+Clang r72995:
static const char p[1] = { 1 };
int
crash(const unsigned char *source)
{
return (p[*source] == 4 && (*source < 0x80 || *source > 0xBF));
}
; ModuleID = 'llvm-crash.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-undermydesk-freebsd8.0"
@p = internal constant [1 x i8] c"\01", align 1 ; <[1 x i8]*> [#uses=1]
define i32 @crash(i8* nocapture %source) nounwind readonly {
entry:
%tmp1 = load i8* %source ; [#uses=3]
%idxprom = zext i8 %tmp1 to i64 ; [#uses=1]
%arrayidx = getelementptr [1 x i8]* @p, i64 0, i64 %idxprom
; [#uses=1]
%tmp2 = load i8* %arrayidx ; [#uses=1]
%cmp = icmp eq i8 %tmp2, 4 ; [#uses=1]
br i1 %cmp, label %land.rhs, label %land.end
land.rhs: ; preds = %entry
%cmp7 = icmp sgt i8 %tmp1, -1 ; [#uses=1]
br i1 %cmp7, label %land.end, label %lor.rhs
lor.rhs: ; preds = %land.rhs
%cmp12 = icmp ugt i8 %tmp1, -65 ; [#uses=1]
%phitmp = zext i1 %cmp12 to i32 ; [#uses=1]
ret i32 %phitmp
land.end: ; preds = %land.rhs, %entry
%0 = phi i32 [ 0, %entry ], [ 1, %land.rhs ] ;
[#uses=1]
ret i32 %0
}
Assertion failed: (!N1.getValueType().isInteger() && "Illegal setcc for
integer!"), function FoldSetCC, file
.../llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp, line 1404.
Stack dump:
0. Program arguments: /usr/bin/../libexec/clang-cc -triple
x86_64-undermydesk-freebsd8.0 -S -disable-free -main-file-name llvm-crash.c
--relocation-model static --disable-fp-elim --unwind-tables=1 --mcpu=x86-64
--fmath-errno=1 -O1 -fdiagnostics-show-option -o /tmp/cc-5rm5vI.s -x c
llvm-crash.c
1. parser at end of file
2. Code generation
3. Running pass 'X86 DAG->DAG Instruction Selection' on function '@crash'
--
Configure bugmail: http://llvm.org/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 Jun 6 10:40:49 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 6 Jun 2009 10:40:49 -0500
Subject: [LLVMbugs] [Bug 4339] New: Clang assertion failure with vector
operation
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4339
Summary: Clang assertion failure with vector operation
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: arplynn at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3070)
--> (http://llvm.org/bugs/attachment.cgi?id=3070)
Simple test-case.
Clang dies with an assertion failure during codegen when compiling the attached
testcase.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sat Jun 6 11:41:20 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 6 Jun 2009 11:41:20 -0500
Subject: [LLVMbugs] [Bug 4337] fprintf makes Clang die
In-Reply-To:
Message-ID: <200906061641.n56GfKqG012829@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4337
Ed Schouten changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Ed Schouten 2009-06-06 11:41:20 ---
It turns out there was this mysterious miscompilation, somewhere in the system.
After reinstalling my Jail with a system not built by Clang itself, I am not
able to reproduce.
I am closing this ticket for now. Sorry for the inconvenience.
--
Configure bugmail: http://llvm.org/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 Jun 6 11:41:49 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 6 Jun 2009 11:41:49 -0500
Subject: [LLVMbugs] [Bug 4338] Assertion failed:
(!N1.getValueType().isInteger() && " Illegal setcc for integer!")
In-Reply-To:
Message-ID: <200906061641.n56GfnhN012877@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4338
Ed Schouten changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Ed Schouten 2009-06-06 11:41:49 ---
Same as 4337; probably caused by a miscompilation earlier on.
--
Configure bugmail: http://llvm.org/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 Jun 6 14:09:42 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 6 Jun 2009 14:09:42 -0500
Subject: [LLVMbugs] [Bug 4339] Clang assertion failure with vector operation
In-Reply-To:
Message-ID: <200906061909.n56J9g9r017837@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4339
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2009-06-06 14:09:41 ---
Fixed in r73005.
--
Configure bugmail: http://llvm.org/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 Jun 6 14:31:43 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 6 Jun 2009 14:31:43 -0500
Subject: [LLVMbugs] [Bug 4340] New: Missed optimisations with vectors.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4340
Summary: Missed optimisations with vectors.
Product: libraries
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: minor
Priority: P2
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: arplynn at gmail.com
CC: llvmbugs at cs.uiuc.edu
Here is a very short test-case:
define void @vz(<4 x float>* nocapture %val) nounwind {
entry:
%tmp1 = load <4 x float>* %val ; <<4 x float>> [#uses=1]
%vecins = insertelement <4 x float> %tmp1, float 0.000000e+00, i32 0
; <<4 x float>> [#uses=1]
%vecins4 = insertelement <4 x float> %vecins, float 0.000000e+00, i32 1
; <<4 x float>> [#uses=1]
%vecins7 = insertelement <4 x float> %vecins4, float 0.000000e+00, i32
2 ; <<4 x float>> [#uses=1]
%vecins10 = insertelement <4 x float> %vecins7, float 0.000000e+00, i32
3 ; <<4 x float>> [#uses=1]
store <4 x float> %vecins10, <4 x float>* %val
ret void
}
Two missed things here: the redundant load and the fact that the whole thing
could be reduced to store <4 x float> , <4 x float>* %val
--
Configure bugmail: http://llvm.org/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 Jun 6 15:08:25 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 6 Jun 2009 15:08:25 -0500
Subject: [LLVMbugs] [Bug 4340] Missed optimisations with vectors.
In-Reply-To:
Message-ID: <200906062008.n56K8PPe019800@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4340
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2009-06-06 15:08:25 ---
Fixed in r73006.
--
Configure bugmail: http://llvm.org/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 Jun 6 18:13:50 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 6 Jun 2009 18:13:50 -0500
Subject: [LLVMbugs] [Bug 4314] llvm-ld's LTO segfaults in ' Interprocedural
Sparse Conditional Constant Propagation'
In-Reply-To:
Message-ID: <200906062313.n56NDoMu025602@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4314
Nick Lewycky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #1 from Nick Lewycky 2009-06-06 18:13:50 ---
Fixed in r73007,
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090601/078460.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 Sat Jun 6 18:54:43 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 6 Jun 2009 18:54:43 -0500
Subject: [LLVMbugs] [Bug 4342] New: llvm-gcc frontend passes non-absolute
path to gold plugin
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4342
Summary: llvm-gcc frontend passes non-absolute path to gold
plugin
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: llvm-gcc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nicholas at mxc.ca
CC: rafael.espindola at gmail.com, llvmbugs at cs.uiuc.edu
If I run "llvm-gcc -use-gold-plugin -flto -O2 hello.c -o hello" then llvm-gcc
will run collect2 with "-plugin-opt=gcc=llvm-gcc" which doesn't work. It's
expecting a full path (in my case /usr/local/bin/llvm-gcc).
Can we fix this in the gcc frontend (so it always passes the absolute path to
itself)? Or do we need to make libLTO willing to do a PATH lookup?
--
Configure bugmail: http://llvm.org/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 Jun 6 19:17:25 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 6 Jun 2009 19:17:25 -0500
Subject: [LLVMbugs] [Bug 4039] LegalizeDAG does not allow custom lowering of
EXTRACT_SUBVECTOR
In-Reply-To:
Message-ID: <200906070017.n570HPZ5027704@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4039
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Eli Friedman 2009-06-06 19:17:25 ---
This should be fixed with the LegalizeDAG refactoring; please reopen 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 Sat Jun 6 19:36:30 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 6 Jun 2009 19:36:30 -0500
Subject: [LLVMbugs] [Bug 3627] vector widening crash
In-Reply-To:
Message-ID: <200906070036.n570aUHp028356@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3627
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #1 from Eli Friedman 2009-06-06 19:36:29 ---
This seems to work now; please reopen if it's still an issue.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sat Jun 6 20:08:17 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 6 Jun 2009 20:08:17 -0500
Subject: [LLVMbugs] [Bug 3628] PPC Backend crashes with cannot select v4i32
SRA instruction
In-Reply-To:
Message-ID: <200906070108.n5718HqP029238@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3628
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2009-06-06 20:08:15 ---
Fixed in r73009.
--
Configure bugmail: http://llvm.org/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 Jun 7 03:31:40 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 7 Jun 2009 03:31:40 -0500
Subject: [LLVMbugs] [Bug 4343] New: documentation missing for how to emit
bitcode and machine code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4343
Summary: documentation missing for how to emit bitcode and
machine code
Product: Documentation
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: General docs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: john at johnnowak.com
CC: llvmbugs at cs.uiuc.edu
[04:21am] johnnowak: where in the documentation does it discuss how to emit
bitcode and machine code?
[04:21am] johnnowak: i can't seem to track it down
[04:22am] ddunbar__: not sure if its in the actual docs
[04:23am] ddunbar__: see include/llvm/Bitcode/ReaderWriter.h though
[04:23am] johnnowak: you'd think discussing how to generate code would be part
of the documentation for a compiler infrastructure
[04:23am] ddunbar__: patches welcome!
[04:23am] ddunbar__: I thought the tutorial covered this stuff though
[04:24am] johnnowak: it doesn't
[04:24am] edwin: opt -load=yourplugin.so input.bc -o output.bc
[04:26am] johnnowak: i'd hope that you wouldn't want people unfamiliar with the
project submitting essential pieces of documentation for basic yet critical
functionality
[04:27am] ddunbar__: johnnowak: file a docs bug if you like
--
Configure bugmail: http://llvm.org/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 Jun 7 12:52:54 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 7 Jun 2009 12:52:54 -0500
Subject: [LLVMbugs] [Bug 2562] MMX inserts fail
In-Reply-To:
Message-ID: <200906071752.n57Hqs7s032066@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=2562
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |WORKSFORME
--- Comment #16 from Eli Friedman 2009-06-07 12:52:53 ---
Okay then, resolving.
--
Configure bugmail: http://llvm.org/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 Jun 7 13:05:37 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 7 Jun 2009 13:05:37 -0500
Subject: [LLVMbugs] [Bug 2544] vector uitofp does not select on x86 with SSE2
In-Reply-To:
Message-ID: <200906071805.n57I5bIq032469@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=2544
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Eli Friedman 2009-06-07 13:05:37 ---
I fixed this recently by adding UINT_TO_FP to the list of operations expanded
on x86. We could probably generate better code by custom-lowering, but the
current result is good enough for 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 Jun 7 13:36:49 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 7 Jun 2009 13:36:49 -0500
Subject: [LLVMbugs] [Bug 4344] New: llc asserts on frameaddress intrinsic on
ARM
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4344
Summary: llc asserts on frameaddress intrinsic on ARM
Product: tools
Version: trunk
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: llc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: larsivar at igesund.net
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3071)
--> (http://llvm.org/bugs/attachment.cgi?id=3071)
reduced and simplified bugpoint bc
Reproduced with a snippet using the frameaddress intrinsic when cross compiling
for ARM.
Relevant arguments could be
-march=arm
-mtriple=asm-linuxeabi-unknown-gnu
-gcc=~/android/prebuilt/linux-x86/toolchain/arm-eabi-4.3.1/bin/arm-eabi-gcc
bugpoint reduction attached.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon Jun 8 00:50:03 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 8 Jun 2009 00:50:03 -0500
Subject: [LLVMbugs] [Bug 4345] New: __func__ is a predefined identifier,
not a keyword
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4345
Summary: __func__ is a predefined identifier, not a keyword
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: clattner at apple.com
CC: llvmbugs at cs.uiuc.edu
I think that this should be legal:
void foo() { { int __func__ = 4; }}
__func__ is not a keyword according to C99, it is a predefined identifier. See
also C99 6.4.2.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 Jun 8 08:31:00 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 8 Jun 2009 08:31:00 -0500
Subject: [LLVMbugs] [Bug 4345] __func__ is a predefined identifier,
not a keyword
In-Reply-To:
Message-ID: <200906081331.n58DV0CQ016481@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4345
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Chris Lattner 2009-06-08 08:30:58 ---
Ah, right!
--
Configure bugmail: http://llvm.org/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 Jun 8 17:23:28 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 8 Jun 2009 17:23:28 -0500
Subject: [LLVMbugs] [Bug 4349] New: Internal compiler error: Assertion `Ty
&& " GEP indices invalid!"' failed
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4349
Summary: Internal compiler error: Assertion `Ty && "GEP indices
invalid!"' failed
Product: libraries
Version: 2.5
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core LLVM classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: mcuelenaere at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3072)
--> (http://llvm.org/bugs/attachment.cgi?id=3072)
Preprocessed source
When compiling the Rockbox source code as simulator, I encountered the
following bug:
cc1: /build/buildd/llvm-2.2/lib/VMCore/Constants.cpp:1862: static
llvm::Constant* llvm::ConstantExpr::getGetElementPtr(llvm::Constant*,
llvm::Value* const*, unsigned int): Assertion `Ty && "GEP indices invalid!"'
failed.
/home/mcuelenaere/rockbox/apps/plugins/rockboy/save.c:155: internal compiler
error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
I attached the preprocessed source as requested.
--
Configure bugmail: http://llvm.org/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 Jun 9 09:40:45 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 9 Jun 2009 09:40:45 -0500
Subject: [LLVMbugs] [Bug 4350] New: clang mishandles the format printf
attribute
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4350
Summary: clang mishandles the format printf attribute
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: bagnara at cs.unipr.it
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3074)
--> (http://llvm.org/bugs/attachment.cgi?id=3074)
Patch fixing the problem
When clang 72105 parses
#include
extern int vprintf(const char*, va_list);
it erroneously produces the invalid format printf attribute
extern int vprintf(const char*, va_list)
__attribute__ ((__format__ (printf, 1, 2)));
instead of
extern int vprintf(const char*, va_list)
__attribute__ ((__format__ (printf, 1, 0)));
The attached patch fixes 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 Tue Jun 9 13:01:48 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 9 Jun 2009 13:01:48 -0500
Subject: [LLVMbugs] [Bug 4351] New: Compile-time constants with comparisons
of function addresses cannot be determined
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4351
Summary: Compile-time constants with comparisons of function
addresses cannot be determined
Product: clang
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ed at 80386.nl
CC: llvmbugs at cs.uiuc.edu
Blocks: 3696
Clang chokes on the following piece of code:
void
foo(void)
{
}
int p = (foo == (void *)0) ? 1 : 2;
test.c:6:9: error: initializer element is not a compile-time constant
int p = (foo == (void *)0) ? 1 : 2;
^~~~~~~~~~~~~~~~~~~~~~~~~~
1 diagnostic generated.
I agree, the code is quite silly, but I'm running into pieces of kernel source
that use 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 Tue Jun 9 16:24:31 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 9 Jun 2009 16:24:31 -0500
Subject: [LLVMbugs] [Bug 4342] llvm-gcc frontend passes non-absolute path to
gold plugin
In-Reply-To:
Message-ID: <200906092124.n59LOVwQ024859@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4342
Rafael ??vila de Esp??ndola changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Rafael ??vila de Esp??ndola 2009-06-09 16:24:30 ---
Fixed in revision 73146. We now pass the assembler to the plugin. It is the
same assembler that gcc itself would use, so this is probably the correct
solution.
--
Configure bugmail: http://llvm.org/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 Jun 9 16:35:31 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 9 Jun 2009 16:35:31 -0500
Subject: [LLVMbugs] [Bug 4353] New: Escape sequence accepted by GCC and
triggers warning in clang
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4353
Summary: Escape sequence accepted by GCC and triggers warning in
clang
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: catfish.man at gmail.com
CC: llvmbugs at cs.uiuc.edu
Adium uses the \E escape sequence for the escape key, which GCC accepts without
complaint. When building with clang we get warnings along the lines of "Unknown
escape sequence '\E'".
--
Configure bugmail: http://llvm.org/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 Jun 9 20:32:53 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 9 Jun 2009 20:32:53 -0500
Subject: [LLVMbugs] [Bug 4353] Escape sequence accepted by GCC and triggers
warning in clang
In-Reply-To:
Message-ID: <200906100132.n5A1WrQb031494@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4353
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2009-06-09 20:32:53 ---
Fixed in r73153.
--
Configure bugmail: http://llvm.org/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 Jun 9 23:02:15 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 9 Jun 2009 23:02:15 -0500
Subject: [LLVMbugs] [Bug 4350] clang mishandles the format printf attribute
In-Reply-To:
Message-ID: <200906100402.n5A42Fj7002982@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4350
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2009-06-09 23:02:15 ---
Okay, committed in r73157. You can usually just send this sort of thing to
cfe-commits, though.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed Jun 10 05:29:58 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 10 Jun 2009 05:29:58 -0500
Subject: [LLVMbugs] [Bug 4355] New: configure does not pass options to
BuildTools subdir
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4355
Summary: configure does not pass options to BuildTools subdir
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: e0325716 at student.tuwien.ac.at
CC: llvmbugs at cs.uiuc.edu, e0325716 at student.tuwien.ac.at
When cross-compiling LLVM the build tools are created in BuildTools subdir but
the configure there does not use the same options as the regular build.
When I configure the project with
../llvm-c7/configure --prefix=/nfs/a5/astifter/astifter/llvm/llvm-ppc64-install
--enable-optimized --disable-assertions --host=ppc64-linux
then the configure in BuildTools is done with
../../llvm-svn/configure
This has the effect that the BuildTools/Debug directory contains the
executables whereas the build is searching for them in
BuildTools/Release-Asserts.
A manual workaround for now is to symlink these two directories in BuildTools.
--
Configure bugmail: http://llvm.org/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 Jun 10 12:43:59 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 10 Jun 2009 12:43:59 -0500
Subject: [LLVMbugs] [Bug 4357] New: Crappy code generated for simple loop
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4357
Summary: Crappy code generated for simple loop
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: evan.cheng at apple.com
CC: llvmbugs at cs.uiuc.edu
int hcf(int a, int b)
{
while (a != 0)
{
if (a < b) b -= a;
else a -= b;
}
return b;
}
David Majnemer has a piece of code that shows less than optimal code generation
for llvm.
This is what icc generates:
8048624 :
8048624: 8b 54 24 04 mov 0x4(%esp),%edx
8048628: 8b 44 24 08 mov 0x8(%esp),%eax
804862c: 85 d2 test %edx,%edx
804862e: 74 0c je 804863c
8048630: 3b d0 cmp %eax,%edx
8048632: 7d 04 jge 8048638
8048634: 2b c2 sub %edx,%eax
8048636: eb f8 jmp 8048630
8048638: 2b d0 sub %eax,%edx
804863a: 75 f4 jne 8048630
804863c: c3 ret
This is what llvm-gcc generates with -fomit-frame-pointer:
_hcf:
movl 8(%esp), %eax
movl 4(%esp), %ecx
jmp LBB1_3
LBB1_1:
cmpl %eax, %ecx
jl LBB1_5
subl %eax, %ecx
LBB1_3:
testl %ecx, %ecx
jne LBB1_1
ret
LBB1_5:
subl %ecx, %eax
jmp LBB1_3
clang does something even more horrible:
_hcf:
pushl %esi
movl 12(%esp), %eax
movl 8(%esp), %ecx
jmp LBB1_5
.align 4,0x90
LBB1_1:
xorl %edx, %edx
movl %eax, %esi
jmp LBB1_3
.align 4,0x90
LBB1_2:
subl %ecx, %esi
addl %ecx, %edx
LBB1_3:
cmpl %esi, %ecx
jl LBB1_2
addl %edx, %ecx
subl %eax, %ecx
movl %esi, %eax
LBB1_5:
testl %ecx, %ecx
jne LBB1_1
popl %esi
ret
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed Jun 10 13:12:02 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 10 Jun 2009 13:12:02 -0500
Subject: [LLVMbugs] [Bug 4360] New: clang crashes on solaris.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4360
Summary: clang crashes on solaris.
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Solaris
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: eocallaghan at auroraux.org
CC: llvmbugs at cs.uiuc.edu
Hi,
llvm/clang;
At revision 73170.
I get the follow trace from clang that crashes instantly on both Solaris &
AuroraUX when run.
(gdb) bt
#0 0xfef60fe0 in malloc_unlocked () from /usr/lib/libmalloc.so.1
#1 0xfef60ab1 in malloc () from /usr/lib/libmalloc.so.1
#2 0xfee99f32 in __cxa_demangle () from /usr/sfw/lib/libstdc++.so.6
#3 0x080d9525 in PrintStackTrace () at Signals.inc:210
#4 0x080d926f in SignalHandler (Sig=11) at Signals.inc:136
#5 0xfecbd0af in __sighndlr () from /lib/libc.so.1
#6 0xfecb01af in call_user_handler () from /lib/libc.so.1
#7
#8 0xfef60fe0 in malloc_unlocked () from /usr/lib/libmalloc.so.1
#9 0xfef60ab1 in malloc () from /usr/lib/libmalloc.so.1
#10 0xfeeac0a9 in operator new () from /usr/sfw/lib/libstdc++.so.6
#11 0xfee7d946 in std::string::_Rep::_S_create () from
/usr/sfw/lib/libstdc++.so.6
#12 0x080982b2 in std::string::_S_construct (__beg=0x810e2c4
"/export/home2/edward/lab/TEST_BUILDS/llvm/test1/bin", __end=0x810e2f7 "",
__a=@0x80475b0)
at basic_string.tcc:150
#13 0xfee7fcb3 in std::basic_string,
std::allocator >::basic_string () from /usr/sfw/lib/libstdc++.so.6
#14 0x0809ad9d in Driver (this=0x8047684, _Name=0x810c6a4 "clang",
_Dir=0x810e2c4 "/export/home2/edward/lab/TEST_BUILDS/llvm/test1/bin",
_DefaultHostTriple=0x810d324 "i386-pc-solaris2.11",
_DefaultImageName=0x80da5d7 "a.out", _Diags=@0x80476f4) at Driver.cpp:52
#15 0x080962c4 in main (argc=1, argv=0x8047ccc) at driver.cpp:178
Regards,
Edward.
--
Configure bugmail: http://llvm.org/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 Jun 10 14:39:26 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 10 Jun 2009 14:39:26 -0500
Subject: [LLVMbugs] [Bug 4361] New: DAGCombine incorrectly generates 64bit
ext load from 16 bit load on a platform with 32bit aligned addresses
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4361
Summary: DAGCombine incorrectly generates 64bit ext load from 16
bit load on a platform with 32bit aligned addresses
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: micah.villmow at amd.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3076)
--> (http://llvm.org/bugs/attachment.cgi?id=3076)
incorrect extension of 16bit into 64bit
The following test case is a conversion routine from a ushort to a ulong:
define void @test_convert_ulong_ushort_kernel(i16 addrspace(1)* %src, i64
addrspace(1)* %dest) nounwind {
entry:
%call = tail call i32 @get_global_id(i32 0) nounwind ;
[#uses=0]
%tmp2 = load i16 addrspace(1)* %src ; [#uses=1]
%conv.i.i = zext i16 %tmp2 to i64 ; [#uses=1]
store i64 %conv.i.i, i64 addrspace(1)* %dest
ret void
}
declare i32 @get_global_id(i32)
However, in DAGCombiner.cpp:visitSIGN_EXTEND:3054 and
DAGCombiner.cpp:visitZERO_EXTEND:3148, an incorrect conversion occurs as shown
in incorrectsext.dot which will be attached later. The problem is that it is
converting the 16bit load and an extension to 64bit to a 64bit sign extended
load followed by an and of the lower 16 bits. This works fine if the address
that the 16bit load is from is aligned to the 32bit boundary but does not work
if aligned to the 16bit boundary.
If I comment out the blocks that contain this conversion:
// fold (sext (sextload x)) -> (sext (truncate (sextload x)))
// fold (sext ( extload x)) -> (sext (truncate (sextload x)))
and
// fold (zext (load x)) -> (zext (truncate (zextload x)))
then the code gets generated as expected, a 16bit load followed by a zext as
specified in correctsext.dot.
I set all sextload/zextload's to expand via
setLoadExtAction(ISD::SEXTLOAD, VT, Expand);
setLoadExtAction(ISD::ZEXTLOAD, VT, Expand);
Where VT is all the value types that I support.
I also set
allowUnalignedMemoryAccesses = false;
The above bitcode given linear values 0-> (N-1) as input to short produces 0,
0, 2, 2, 4, 4, etc... as the second 16bit value does not get correctly shifted
into position.
With my backend, all 8/16 bit loads/stores MUST NOT be removed/combined as I
have custom assembly written that correctly handles the unaligned cases.
--
Configure bugmail: http://llvm.org/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 Jun 10 18:22:44 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 10 Jun 2009 18:22:44 -0500
Subject: [LLVMbugs] [Bug 4366] New: instcombine and simplifycfg mishandle
stores to null in non-zero address-space
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4366
Summary: instcombine and simplifycfg mishandle stores to null in
non-zero address-space
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
Testcase:
define void @a() {
store i32 0, i32 addrspace(1)* null
ret void
}
simplifycfg illegally turns this into "unreachable", and instcombine illegally
turns this into a store of an undef value. Neither transformation should touch
this store: there should be a check for the address-space, similar to the check
in InstCombiner::visitLoadInst.
--
Configure bugmail: http://llvm.org/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 Jun 10 20:32:47 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 10 Jun 2009 20:32:47 -0500
Subject: [LLVMbugs] [Bug 4361] DAGCombine incorrectly generates 64bit ext
load from 16 bit load on a platform with 32bit aligned addresses
In-Reply-To:
Message-ID: <200906110132.n5B1Wlg6022631@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4361
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #10 from Eli Friedman 2009-06-10 20:32:47 ---
Marking this invalid; the report is based on a misunderstanding of the
definition of an extending load.
--
Configure bugmail: http://llvm.org/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 Jun 11 05:27:33 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 11 Jun 2009 05:27:33 -0500
Subject: [LLVMbugs] [Bug 4368] New: Suggest lowering the severity of bad
quoting
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4368
Summary: Suggest lowering the severity of bad quoting
Product: clang
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: preprocessor
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ed at 80386.nl
CC: llvmbugs at cs.uiuc.edu
Blocks: 3696
I just saw a port (libproxy) that calls the C compiler as follows:
cc -o conftest -DFOO=\\\"bar\\\" conftest.c
GCC:
: warning: missing terminating " character
Clang:
In file included from :105:
:1:14: error: missing terminating '"' character
#define FOO \"bar\"
^
1 diagnostic generated.
This causes random configure tests to return the wrong result.
--
Configure bugmail: http://llvm.org/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 Jun 11 12:44:17 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 11 Jun 2009 12:44:17 -0500
Subject: [LLVMbugs] [Bug 4370] New: Debug/Function.o is 700k
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4370
Summary: Debug/Function.o is 700k
Product: libraries
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: System Library
AssignedTo: unassignedbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
This is ridiculous, no?
--
Configure bugmail: http://llvm.org/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 Jun 11 12:55:33 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 11 Jun 2009 12:55:33 -0500
Subject: [LLVMbugs] [Bug 4366] instcombine and simplifycfg mishandle stores
to null in non-zero address-space
In-Reply-To:
Message-ID: <200906111755.n5BHtXS1031094@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4366
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Chris Lattner 2009-06-11 12:55:32 ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090608/078565.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 Jun 11 13:15:23 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 11 Jun 2009 13:15:23 -0500
Subject: [LLVMbugs] [Bug 4371] New: much bigger resulting code than with gcc
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4371
Summary: much bigger resulting code than with gcc
Product: clang
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu
lev /tmp$ gcc -c -O2 ansi.c && nm -S ansi.o | grep WriteString
0000000000004970 000000000000190a T WriteString
lev /tmp$ clang -c -O2 ansi.c && nm -S ansi.o | grep WriteString
ansi.c:2891:13: warning: format string is not a string literal (potentially
insecure) [-Wformat-security]
LMsg(err, str);
^~~
1 diagnostic generated.
00000000000003d0 000000000000328e T WriteString
note the size of the WriteString function --- 190a vs 328e, thats quite a lot!
attached test case
this is most probably something in llvm codegen or llvm itself. I dont know
--
Configure bugmail: http://llvm.org/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 Jun 11 13:54:24 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 11 Jun 2009 13:54:24 -0500
Subject: [LLVMbugs] [Bug 4372] New: Calls to defined functions without a
prototype aren' t transformed to direct calls
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4372
Summary: Calls to defined functions without a prototype aren't
transformed to direct calls
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Testcase:
__attribute((always_inline)) void foo() {}
int main(void) { foo(); return 0; }
Output of clang-cc -emit-llvm -O0:
define void @foo() nounwind alwaysinline {
entry:
ret void
}
define i32 @main() nounwind {
entry:
%retval = alloca i32 ; [#uses=2]
call void (...)* bitcast (void ()* @foo to void (...)*)()
store i32 0, i32* %retval
%0 = load i32* %retval ; [#uses=1]
ret i32 %0
}
EmitCall needs to be doing something similar to
ReplaceUsesOfNonProtoTypeWithRealFunction.
I think I introduced this issue recently with the fix to bug 4289, which
introduces the bitcast in question.
--
Configure bugmail: http://llvm.org/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 Jun 11 14:16:50 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 11 Jun 2009 14:16:50 -0500
Subject: [LLVMbugs] [Bug 4366] instcombine and simplifycfg mishandle stores
to null in non-zero address-space
In-Reply-To:
Message-ID: <200906111916.n5BJGoNC001239@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4366
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #3 from Eli Friedman 2009-06-11 14:16:50 ---
The simplifycfg part hasn't been fixed yet.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu Jun 11 15:51:43 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 11 Jun 2009 15:51:43 -0500
Subject: [LLVMbugs] [Bug 4349] Internal compiler error: Assertion `Ty &&
"GEP indices invalid!" ' failed
In-Reply-To:
Message-ID: <200906112051.n5BKphjn004457@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4349
Dale Johannesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Dale Johannesen 2009-06-11 15:51:43 ---
(In reply to comment #2)
> Created an attachment (id=3073)
--> (http://llvm.org/bugs/attachment.cgi?id=3073) [details]
> reduced .c testcase
>
> With current LLVM, this causes a very different error:
>
> $ llvm-gcc x.c
> cc1: ../../src/gcc/llvm-convert.cpp:7318: static llvm::Constant*
> TreeConstantToLLVM::EmitLV(tree_node*): Assertion `((((enum tree_code)
> (((exp)->common.type))->common.code) == VOID_TYPE) || LV->getType() ==
> ConvertType(((exp)->common.type))->getPointerTo()) && "LValue of constant has
> wrong type!"' failed.
This is fixed:
http://llvm.org/viewvc/llvm-project?view=rev&revision=73205
http://llvm.org/viewvc/llvm-project?view=rev&revision=73206
I realize Rockbox doesn't compile yet, but I'd like to close this one and track
the other problem under its existing report, PR 3518.
--
Configure bugmail: http://llvm.org/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 Jun 11 16:03:22 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 11 Jun 2009 16:03:22 -0500
Subject: [LLVMbugs] [Bug 4371] much bigger resulting code than with gcc
In-Reply-To:
Message-ID: <200906112103.n5BL3MMS004794@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4371
Roman Divacky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Roman Divacky 2009-06-11 16:03:21 ---
yes this fixes my test case completely.... feel free to reopen if it does not
fix this issue for you
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu Jun 11 18:51:06 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 11 Jun 2009 18:51:06 -0500
Subject: [LLVMbugs] [Bug 4373] New: Aggregate store tickles assert in
BitcodeReaderValueList:: getValueFwdRef
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4373
Summary: Aggregate store tickles assert in
BitcodeReaderValueList::getValueFwdRef
Product: libraries
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: minor
Priority: P2
Component: Bitcode Reader
AssignedTo: unassignedbugs at nondot.org
ReportedBy: markleone at gmail.com
CC: llvmbugs at cs.uiuc.edu
The following code tickles an assert failure in the bitcode reader.
To replicate: llvm-as -o - test.ll | llvm-dis
@foo = weak global { i32 } zeroinitializer
@bar = weak global i32 0
define void @test() {
entry:
store { i32 } zeroinitializer, { i32 }* @foo
store i32 1, i32* @bar
ret void
}
Assertion failed: ((Ty == 0 || Ty == V->getType()) && "Type mismatch in value
table!"), function getValueFwdRef, file BitcodeReader.cpp, line 215.
in llvm::BitcodeReaderValueList::getValueFwdRef at BitcodeReader.cpp:215
in llvm::BitcodeReader::getFnValueByID at BitcodeReader.h:160
in llvm::BitcodeReader::getValue at BitcodeReader.h:196
in llvm::BitcodeReader::ParseFunctionBody at BitcodeReader.cpp:1869
--
Configure bugmail: http://llvm.org/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 Jun 11 20:48:55 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 11 Jun 2009 20:48:55 -0500
Subject: [LLVMbugs] [Bug 1285] Fix consistency of FP operators: add -> fadd,
etc
In-Reply-To:
Message-ID: <200906120148.n5C1mtYY013647@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=1285
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Eli Friedman 2009-06-11 20:48:54 ---
I think this is fixed, now that we have fadd, fsub, and fmul.
--
Configure bugmail: http://llvm.org/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 Jun 12 00:21:38 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 12 Jun 2009 00:21:38 -0500
Subject: [LLVMbugs] [Bug 4373] Aggregate store tickles assert in
BitcodeReaderValueList:: getValueFwdRef
In-Reply-To:
Message-ID: <200906120521.n5C5LcPw019664@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4373
Nick Lewycky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Nick Lewycky 2009-06-12 00:21:38 ---
Fixed in r73220:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090608/078599.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 Jun 12 01:11:06 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 12 Jun 2009 01:11:06 -0500
Subject: [LLVMbugs] [Bug 4374] New: incorrect instcombine optimization
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4374
Summary: incorrect instcombine optimization
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: llvm at laurentm.net
CC: llvmbugs at cs.uiuc.edu
The following transfomation is incorrect: fsub(a,fsub(b,c)) =>
fadd(a,fsub(c,b))
For example:
float
func(float a, float b) {
return -(a - b);
}
llvm-gcc generates:
define float @func(float %a, float %b) nounwind {
entry:
%tmp3 = sub float %a, %b ; [#uses=1]
%tmp4 = sub float -0.000000e+00, %tmp3 ; [#uses=1]
ret float %tmp4
}
opt -instcombine generates:
define float @func(float %a, float %b) nounwind {
entry:
%tmp3 = sub float %b, %a ; [#uses=1]
ret float %tmp3
}
The result of func(x,x) should be -0.0f not +0.0f.
InstructionCombining.cpp at 2621
...
if (Op1I->hasOneUse()) {
// Replace (x - (y - z)) with (x + (z - y)) if the (y - z) subexpression
// is not used by anyone else...
//
if (Op1I->getOpcode() == Instruction::FSub) {
// Swap the two operands of the subexpr...
Value *IIOp0 = Op1I->getOperand(0), *IIOp1 = Op1I->getOperand(1);
Op1I->setOperand(0, IIOp1);
Op1I->setOperand(1, IIOp0);
// Create the new top level fadd instruction...
return BinaryOperator::CreateFAdd(Op0, Op1);
}
}
...
--
Configure bugmail: http://llvm.org/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 Jun 12 05:44:16 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 12 Jun 2009 05:44:16 -0500
Subject: [LLVMbugs] [Bug 4375] New: llvm-g++ trips over __extern_inline with
-O2
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4375
Summary: llvm-g++ trips over __extern_inline with -O2
Product: tools
Version: 2.5
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: llvm-g++
AssignedTo: unassignedbugs at nondot.org
ReportedBy: paul at floorball-flamingos.nl
CC: llvmbugs at cs.uiuc.edu
This is with the RHEL4 binary distribution of llvm-gcc 4.2 (for llvm 2.5), on
Gentoo Linux (w/ 32-bit kernel and libs). GCC 4.3.2 has no problems with same
code.
12:39|melis at juggle2:~/projects/bih> cat t.cxx
#include
12:39|melis at juggle2:~/projects/bih> g++ -c -I /usr/include/python2.5 t.cxx
12:39|melis at juggle2:~/projects/bih> g++ -c -I /usr/include/python2.5 -O2 t.cxx
12:40|melis at juggle2:~/projects/bih> llvm-g++ -c -I /usr/include/python2.5 t.cxx
12:40|melis at juggle2:~/projects/bih> llvm-g++ -c -I /usr/include/python2.5 -O2
t.cxx
In file included from /usr/include/python2.5/Python.h:46,
from t.cxx:1:
/usr/include/stdlib.h:278: error: expected constructor, destructor, or type
conversion before 'double'
/usr/include/stdlib.h:283: error: expected constructor, destructor, or type
conversion before 'int'
/usr/include/stdlib.h:288: error: expected constructor, destructor, or type
conversion before 'long'
/usr/include/stdlib.h:297: error: expected constructor, destructor, or type
conversion before 'long'
In file included from /usr/include/python2.5/unicodeobject.h:118,
from /usr/include/python2.5/Python.h:88,
from t.cxx:1:
/usr/include/wchar.h:334: error: '__extern_inline' does not name a type
/usr/include/wchar.h:340: error: expected constructor, destructor, or type
conversion before 'int'
/usr/include/wchar.h:345: error: '__extern_inline' does not name a type
In file included from /usr/include/signal.h:33,
from /usr/include/python2.5/pyfpe.h:129,
from /usr/include/python2.5/Python.h:156,
from t.cxx:1:
/usr/include/bits/sigset.h:118: error: expected constructor, destructor, or
type conversion before 'int'
/usr/include/bits/sigset.h:119: error: expected constructor, destructor, or
type conversion before 'int'
/usr/include/bits/sigset.h:120: error: expected constructor, destructor, or
type conversion before 'int'
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri Jun 12 07:20:45 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 12 Jun 2009 07:20:45 -0500
Subject: [LLVMbugs] [Bug 4376] New: lli -fast crashes with thread-local
variables
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4376
Summary: lli -fast crashes with thread-local variables
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: marks at dcs.gla.ac.uk
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3085)
--> (http://llvm.org/bugs/attachment.cgi?id=3085)
Thread local test program
lli -fast seg-faults on the attached input.
lli (no flags) prints OK as it should:
$ lli thread.bc
OK
$ lli -fast thread.bc
0 lli 0x0874f79e
Segmentation fault
If the thread-local is changed to an ordinary global, then lli -fast runs OK.
--
Configure bugmail: http://llvm.org/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 Jun 12 11:31:47 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 12 Jun 2009 11:31:47 -0500
Subject: [LLVMbugs] [Bug 4278] X86-64 -tailcallopt calling convention
specification seems out-of-sync with regular cc
In-Reply-To:
Message-ID: <200906121631.n5CGVlWI021689@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4278
Arnold Schwaighofer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Arnold Schwaighofer 2009-06-12 11:31:43 ---
Fixed see: http://llvm.org/viewvc/llvm-project?view=rev&revision=73233.
Thank you Frits for bringing this to my attention!
--
Configure bugmail: http://llvm.org/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 Jun 12 12:02:15 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 12 Jun 2009 12:02:15 -0500
Subject: [LLVMbugs] [Bug 4377] New: Emitting llvm bitcode and then
assembling throws multiple definition error
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4377
Summary: Emitting llvm bitcode and then assembling throws
multiple definition error
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: chster at cs.berkeley.edu
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3087)
--> (http://llvm.org/bugs/attachment.cgi?id=3087)
Contains three files, rng.cpp, rng.h, annealer_thread.cpp
The source files come from a PARSEC benchmark.
When I emit llvm bitcode and then assemble native code I get the following
error:
+ llvm-g++ -emit-llvm annealer_thread.cpp -c -o annealer_thread.o
+ llvm-g++ -emit-llvm rng.cpp -c -o rng.o
+ llc annealer_thread.o -f -o annealer_thread.s
+ llvm-g++ -c annealer_thread.s -o annealer_thread.o
+ llc rng.o -f -o rng.s
+ llvm-g++ -c rng.s -o rng.o
+ llvm-g++ annealer_thread.o rng.o
rng.o: In function `MTRand::reload()':
rng.s:(.text+0x50): multiple definition of `MTRand::reload()'
annealer_thread.o:annealer_thread.s:(.text+0xa0): first defined here
collect2: ld returned 1 exit status
When I don't everything works:
+ llvm-g++ annealer_thread.cpp -c -o annealer_thread.o
+ llvm-g++ rng.cpp -c -o rng.o
+ llvm-g++ rng.o annealer_thread.o
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri Jun 12 13:43:39 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 12 Jun 2009 13:43:39 -0500
Subject: [LLVMbugs] [Bug 3518] undefined reference to __compound_literal.*
In-Reply-To:
Message-ID: <200906121843.n5CIhdET025889@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3518
Dale Johannesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Dale Johannesen 2009-06-12 13:43:39 ---
Fixed here. I've confirmed that all the tests in the gcc testsuite that were
failing this way now pass.
http://llvm.org/viewvc/llvm-project?view=rev&revision=73238
http://llvm.org/viewvc/llvm-project?view=rev&revision=73239
--
Configure bugmail: http://llvm.org/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 Jun 12 14:08:15 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 12 Jun 2009 14:08:15 -0500
Subject: [LLVMbugs] [Bug 1285] Fix consistency of FP operators: add -> fadd,
etc
In-Reply-To:
Message-ID: <200906121908.n5CJ8Fj0026862@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=1285
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gohman at apple.com
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #4 from Dan Gohman 2009-06-12 14:08:15 ---
LLVM still lacks a real fneg.
--
Configure bugmail: http://llvm.org/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 Jun 12 14:16:33 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 12 Jun 2009 14:16:33 -0500
Subject: [LLVMbugs] [Bug 4377] Emitting llvm bitcode and then assembling
throws multiple definition error
In-Reply-To:
Message-ID: <200906121916.n5CJGXeV027223@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4377
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |baldrick at free.fr
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #2 from Duncan Sands 2009-06-12 14:16:33 ---
Works for me on x86-32 linux and x86-64 linux with svn head. Maybe
Christos is using 2.5 and it was fixed since? Christos, feel free
to reopen if this is still a problem with latest llvm/llvm-gcc from
the subversion repository.
--
Configure bugmail: http://llvm.org/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 Jun 12 14:24:10 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 12 Jun 2009 14:24:10 -0500
Subject: [LLVMbugs] [Bug 4374] incorrect instcombine optimization
In-Reply-To:
Message-ID: <200906121924.n5CJOAwB027550@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4374
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Dan Gohman 2009-06-12 14:24:10 ---
No, it predates the add -> fadd change.
Fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090608/078631.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 Jun 12 14:38:40 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 12 Jun 2009 14:38:40 -0500
Subject: [LLVMbugs] [Bug 4378] New: LLVM IR has no floating-point negate
operator
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4378
Summary: LLVM IR has no floating-point negate operator
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: gohman at apple.com
CC: llvmbugs at cs.uiuc.edu
Sign-bit manipulation operations copysign and abs can be done with
libm calls, but there is currently no simple way to get a proper
floating-point negate operation in LLVM IR.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri Jun 12 14:39:08 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 12 Jun 2009 14:39:08 -0500
Subject: [LLVMbugs] [Bug 1285] Fix consistency of FP operators: add -> fadd,
etc
In-Reply-To:
Message-ID: <200906121939.n5CJd8O8028001@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=1285
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #8 from Dan Gohman 2009-06-12 14:39:08 ---
It's also not equivalent when x is NaN.
I opened PR4378 to track the lack of fneg.
--
Configure bugmail: http://llvm.org/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 Jun 12 16:01:31 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 12 Jun 2009 16:01:31 -0500
Subject: [LLVMbugs] [Bug 4366] instcombine and simplifycfg mishandle stores
to null in non-zero address-space
In-Reply-To:
Message-ID: <200906122101.n5CL1VtM031014@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4366
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Chris Lattner 2009-06-12 16:01:30 ---
aha, nice catch, fixed:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090608/078641.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 Jun 12 16:31:58 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 12 Jun 2009 16:31:58 -0500
Subject: [LLVMbugs] [Bug 2243] PHI coalescing / tail merging missing
opportunity
In-Reply-To:
Message-ID: <200906122131.n5CLVwb2031997@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=2243
Dale Johannesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Dale Johannesen 2009-06-12 16:31:58 ---
This was fixed, probably a long time ago. Might have been 52985.
--
Configure bugmail: http://llvm.org/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 Jun 12 16:53:19 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 12 Jun 2009 16:53:19 -0500
Subject: [LLVMbugs] [Bug 4380] New: __builtin_object_size
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4380
Summary: __builtin_object_size
Product: tools
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: llvm-gcc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: devang.patel at gmail.com
CC: llvmbugs at cs.uiuc.edu
In this example, builtin_object_size is not lowered by llvm-gcc.
---
typedef struct _MyFoo {
int x, y;
} MyFoo;
void foobar() {
int y;
#pragma omp parallel for schedule(dynamic,4)
for (y=0; y < 64; y++)
{
MyFoo *p, *q;
__builtin___memcpy_chk (q,
p,
sizeof(p),
__builtin_object_size (q, 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 Jun 12 19:27:06 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 12 Jun 2009 19:27:06 -0500
Subject: [LLVMbugs] [Bug 4372] Calls to defined functions without a
prototype aren' t transformed to direct calls
In-Reply-To:
Message-ID: <200906130027.n5D0R6hL005714@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4372
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Lattner 2009-06-12 19:27:05 ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090608/018117.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 Sat Jun 13 18:54:40 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 13 Jun 2009 18:54:40 -0500
Subject: [LLVMbugs] [Bug 4368] Suggest lowering the severity of bad quoting
In-Reply-To:
Message-ID: <200906132354.n5DNseAO032486@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4368
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Chris Lattner 2009-06-13 18:54:39 ---
I don't see how this can possibly make sense. I tried:
#define FOO \"bar\"
const char *P =
FOO;
and both GCC 4.0 and 4.2 reject it with an error.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sat Jun 13 21:21:14 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 13 Jun 2009 21:21:14 -0500
Subject: [LLVMbugs] [Bug 4386] New: Constant evaluation doesn' t handle
converting the address of a weak global to a boolean correctly
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4386
Summary: Constant evaluation doesn't handle converting the
address of a weak global to a boolean correctly
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Testcase:
__attribute((weak)) int foo();
int a = !foo;
clang currently evaluates "!foo" to zero; it should give an error.
I'm not sure how this should end up working with the following case:
int s(); int a = s == 0; int s() __attribute((weak));
--
Configure bugmail: http://llvm.org/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 Jun 13 21:22:03 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 13 Jun 2009 21:22:03 -0500
Subject: [LLVMbugs] [Bug 4351] Compile-time constants with comparisons of
function addresses cannot be determined
In-Reply-To:
Message-ID: <200906140222.n5E2M3YG004258@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4351
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Eli Friedman 2009-06-13 21:22:02 ---
Fixed in r73321; I filed bug 4386 on the weak global issue.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun Jun 14 03:52:09 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 14 Jun 2009 03:52:09 -0500
Subject: [LLVMbugs] [Bug 4388] New: clang: preprocessor output missing
newline
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4388
Summary: clang: preprocessor output missing newline
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: preprocessor
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
Blocks: 4068
clang -E -MD -MF arch/x86/kernel/acpi/realmode/.wakeup.lds.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__ -P -C -D__ASSEMBLY__ -o
arch/x86/kernel/acpi/realmode/wakeup.lds
arch/x86/kernel/acpi/realmode/wakeup.lds.S
Creates:
/*
* Automatically generated C config: don't edit
* Linux kernel version: 2.6.30
* Sun Jun 14 11:37:11 2009
*/# 2 "" 2 3
gcc creates:
/*
* Automatically generated C config: don't edit
* Linux kernel version: 2.6.30
* Sun Jun 14 11:37:11 2009
*/
Notice the missing newline before #2.
gcc doesn't output #2 at all.
However even if I manually add a newline, ld still rejects it.
I think no #2 should be output, to be compatible with gcc.
ld:arch/x86/kernel/acpi/realmode/wakeup.lds:6: ignoring invalid character `#'
in expression
Input file:
/*
* wakeup.ld
*
* Linker script for the real-mode wakeup code
*/
#undef i386
#include "wakeup.h"
--
Configure bugmail: http://llvm.org/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 Jun 14 04:37:01 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 14 Jun 2009 04:37:01 -0500
Subject: [LLVMbugs] [Bug 4389] New: clang: wrong scoping: refuses to compile
global variable name same as local variable name
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4389
Summary: clang: wrong scoping: refuses to compile global variable
name same as local variable name
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
Blocks: 4068
$ clang testcase-min.i
testcase-min.i:4:12: error: redefinition of 'index' as different kind of symbol
static int index[8];
^
testcase-min.i:2:9: note: previous definition is here
int index = bar();
^
2 diagnostics generated.
testcase-min.i:
static void foo () {
int index = bar();
}
static int index[8];
gcc compiles this code fine, and if I move the 'static int index[8]' before
foo(), then clang compiles it as well.
Why does clang still see the definition of the local index variable at the time
the global index variable is defined?
--
Configure bugmail: http://llvm.org/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 Jun 14 05:57:11 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 14 Jun 2009 05:57:11 -0500
Subject: [LLVMbugs] [Bug 4390] New: clang: wrong struct initializer
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4390
Summary: clang: wrong struct initializer
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 creates this initializer for a struct:
@sysfs_root = global %0 <{ %struct.anon <{ i32 1 }>, %struct.anon
zeroinitializer, %struct.sysfs_dirent* null, %struct.sysfs_dirent* null, i8*
getelementptr ([1 x i8]* @.str, i32 0, i32 0), %union.anon zeroinitializer,
%union.anon zeroinitializer, i8 0, i8 0, i8 0, i8 0, i32 1, i64 1, i8 0, i8 0,
i8 0, i8 0, i8 0, i8 0, i16 16877 }>, align 8 ; <%0*> [#uses=1]
While llvm-gcc creates this initializer for same struct:
@sysfs_root = global %0 { %struct.atomic_t { i32 1 }, [20 x i8]
zeroinitializer, i8* getelementptr ([1 x i8]* @.str, i32 0, i32 0), [16 x i8]
zeroinitializer, i32 1, i64 1, i16 16877, [14 x i8] zeroinitializer }, align 32
; <%0*> [#uses=1]
This causes a panic when trying to boot the linux kernel compiled with clang.
Testcase below, when run with clang it aborts, when run
with llvm-gcc or gcc it doesn't:
struct hlist_node {
struct hlist_node *next, **pprev;
};
struct hlist_head {
struct hlist_node *first;
};
typedef unsigned short umode_t;
typedef unsigned long __kernel_ino_t;
typedef __kernel_ino_t ino_t;
struct sysfs_elem_dir {
struct kobject *kobj;
struct sysfs_dirent *children;
};
struct sysfs_elem_bin_attr {
struct bin_attribute *bin_attr;
struct hlist_head buffers;
};
typedef struct {
volatile int counter;
} atomic_t;
struct sysfs_elem_attr {
struct attribute *attr;
struct sysfs_open_dirent *open;
};
struct sysfs_elem_symlink {
struct sysfs_dirent *target_sd;
};
struct sysfs_dirent {
atomic_t s_count;
atomic_t s_active;
struct sysfs_dirent *s_parent;
struct sysfs_dirent *s_sibling;
const char *s_name;
union {
struct sysfs_elem_dir s_dir;
struct sysfs_elem_symlink s_symlink;
struct sysfs_elem_attr s_attr;
struct sysfs_elem_bin_attr s_bin_attr;
};
unsigned int s_flags;
ino_t s_ino;
umode_t s_mode;
struct iattr *s_iattr;
};
struct sysfs_dirent sysfs_root = {
.s_name = "",
.s_count = { (1) },
.s_flags = 0x0001,
.s_mode = 0040000 | 00700 | (00400|00040|00004) | (00100|00010|00001),
.s_ino = 1,
};
struct iattr *foo()
{
return sysfs_root.s_iattr;
}
umode_t bar()
{
return sysfs_root.s_mode;
}
int main()
{
if (foo() || bar() != 16877)
abort();
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun Jun 14 09:27:10 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 14 Jun 2009 09:27:10 -0500
Subject: [LLVMbugs] [Bug 4391] New: Pretty-printing nested unary plus/minus
prints preincrement /predecrement
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4391
Summary: Pretty-printing nested unary plus/minus prints
preincrement/predecrement
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: AST
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: bagnara at cs.unipr.it
CC: llvmbugs at cs.uiuc.edu
$ cat bug.c
int g(void) {
int a = + +3;
int b = - -3;
}
$ clang-cc -ast-print bug.c
typedef __int128_t __int128_t;
typedef __uint128_t __uint128_t;
struct __va_list_tag {
unsigned int gp_offset;
unsigned int fp_offset;
void *overflow_arg_area;
void *reg_save_area;
};
int g() {
int a = ++3;
int b = --3;
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun Jun 14 09:49:04 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 14 Jun 2009 09:49:04 -0500
Subject: [LLVMbugs] [Bug 4392] New: llvm-gcc-4.2 configure script doesn't
recognize makeinfo 4. 11
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4392
Summary: llvm-gcc-4.2 configure script doesn't recognize makeinfo
4.11
Product: Build scripts
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: autoconf
AssignedTo: unassignedbugs at nondot.org
ReportedBy: gohman at apple.com
CC: llvmbugs at cs.uiuc.edu
llvm-gcc-4.2/gcc/configure.ac thinks that makeinfo vesion 4.11 is
older than version 4.4, making it too old to use. This is due to
the following code:
# See if makeinfo has been installed and is modern enough
# that we can use it.
gcc_AC_CHECK_PROG_VER(MAKEINFO, makeinfo, --version,
[GNU texinfo.* \([0-9][0-9.]*\)],
[4.[4-9]*])
The 4.[4-9]* doesn't match 4.11. As a result, llvm-gcc-4.2 doesn't
build the documentation.
--
Configure bugmail: http://llvm.org/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 Jun 14 12:14:35 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 14 Jun 2009 12:14:35 -0500
Subject: [LLVMbugs] [Bug 4393] New: Default AA used instead of supplied AA
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4393
Summary: Default AA used instead of supplied AA
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: dpatel at apple.com, llvmbugs at cs.uiuc.edu
If a pass doesn't preserve AA (such as -simplify-cfg), then the passmanager
will remove the custom AA supplied on the commandline from AvailableAnalysis,
and thus the next time another pass needs AA (for example -gvn) it will
find the immutable basic AA as implementation.
The workaround is to manually rerun the custom AA after a pass that doesn't
preserve AA. This shouldn't be necessarry, the passmanager should remember
what the preferred implementation for an interface/analysisgroup is,
and rerun it if it was invalidated.
If I try to implement a custom AA as an immutablepass, then it is impossible to
use it, even if there is no other pass between -custom-aa and -gvn.
The reason is that the custom AA will get basicAA added as dependency (by the
the parent AliasAnalysis::getAnalysisUsage), and thus
ImmutablePasses will contain BasicAA, then my CustomAA
findAnalysis will thus find BasicAA as implementing AliasAnalysis, before my
pass, thus my pass is never chosen as implementing the interface.
The reason is that dependent analysis are added to various lists
(immutablepasses), before the analysis itself.
I think the passmanager shouldn't rely on the order analysis are added to
immutablepasses (since there is no way to add your own AA as first),
but instead use another Map that specifies the preferred implementation.
--
Configure bugmail: http://llvm.org/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 Jun 14 15:58:18 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 14 Jun 2009 15:58:18 -0500
Subject: [LLVMbugs] [Bug 4388] clang: preprocessor output missing newline
In-Reply-To:
Message-ID: <200906142058.n5EKwItK011156@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4388
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Eli Friedman 2009-06-14 15:58:17 ---
*** This bug has been marked as a duplicate of bug 2741 ***
--
Configure bugmail: http://llvm.org/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 Jun 14 16:42:57 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 14 Jun 2009 16:42:57 -0500
Subject: [LLVMbugs] [Bug 4390] clang: wrong struct initializer
In-Reply-To:
Message-ID: <200906142142.n5ELgv1A012800@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4390
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2009-06-14 16:42:56 ---
Thanks for the nice testcase! Fixed in r73349.
--
Configure bugmail: http://llvm.org/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 Jun 14 17:27:12 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 14 Jun 2009 17:27:12 -0500
Subject: [LLVMbugs] [Bug 4332] Alignment related ICE with llvm-gcc 2.5
In-Reply-To:
Message-ID: <200906142227.n5EMRC2Z014407@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4332
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #8 from Duncan Sands 2009-06-14 17:27:11 ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090608/078682.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 Jun 14 17:42:25 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 14 Jun 2009 17:42:25 -0500
Subject: [LLVMbugs] [Bug 4391] Pretty-printing nested unary plus/minus
prints preincrement/ predecrement
In-Reply-To:
Message-ID: <200906142242.n5EMgPAJ014949@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4391
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2009-06-14 17:42:24 ---
Fixed in r73356, but -ast-print has a lot of broken edge cases at the moment if
you expect the output to be 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 Jun 14 19:52:53 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 14 Jun 2009 19:52:53 -0500
Subject: [LLVMbugs] [Bug 4393] Default AA used instead of supplied AA
In-Reply-To:
Message-ID: <200906150052.n5F0qrjf019328@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4393
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Chris Lattner 2009-06-14 19:52:53 ---
This is correct behavior. Not doing this would require rerunning the analysis
group implementation, which would be bad.
--
Configure bugmail: http://llvm.org/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 Jun 14 20:25:44 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 14 Jun 2009 20:25:44 -0500
Subject: [LLVMbugs] [Bug 2741] PP output loses line count with -C
In-Reply-To:
Message-ID: <200906150125.n5F1Pii6020339@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=2741
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Chris Lattner 2009-06-14 20:25:43 ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090608/018166.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 Jun 15 01:57:06 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 15 Jun 2009 01:57:06 -0500
Subject: [LLVMbugs] [Bug 4388] clang: preprocessor output missing newline
In-Reply-To:
Message-ID: <200906150657.n5F6v6qQ031161@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4388
T??r??k Edwin changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|DUPLICATE |
--- Comment #2 from T??r??k Edwin 2009-06-15 01:57:05 ---
This was not fixed when PR2741 was fixed:
$ clang -E -nostdinc -include x.h -P -C foo.S
/* foo */# 2 "" 2 3
/*
* wakeup.ld
*
* Linker script for the real-mode wakeup code
*/
$ cat x.h
/* foo */
$ cat foo.S
/*
* wakeup.ld
*
* Linker script for the real-mode wakeup code
*/
The #2 is still there in clang's output.
--
Configure bugmail: http://llvm.org/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 Jun 15 04:58:35 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 15 Jun 2009 04:58:35 -0500
Subject: [LLVMbugs] [Bug 4388] clang: preprocessor output missing newline
In-Reply-To:
Message-ID: <200906150958.n5F9wZcp016426@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4388
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Eli Friedman 2009-06-15 04:58:32 ---
Sorry about that; should actually be fixed in r73382.
--
Configure bugmail: http://llvm.org/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 Jun 15 05:30:08 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 15 Jun 2009 05:30:08 -0500
Subject: [LLVMbugs] [Bug 4395] New: clang: extra spaces in preprocessor
output
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4395
Summary: clang: extra spaces in preprocessor output
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
When compiling the linux kernel, vmlinux.lds gets extra spaces in the output,
causing the linker to reject it.
Testcase:
#define NOTES .notes : AT(ADDR(.notes) - LOAD_OFFSET) {
VMLINUX_SYMBOL(__start_notes) = .; *(.note.*) VMLINUX_SYMBOL(__stop_notes) = .;
}
$ clang -E -P -C foo.h
.notes : AT(ADDR(.notes) - LOAD_OFFSET) { VMLINUX_SYMBOL(__start_notes) = .;
*(.note. *) VMLINUX_SYMBOL(__stop_notes) = .; }
$ gcc -E -P -C foo.h
.notes : AT(ADDR(.notes) - LOAD_OFFSET) { VMLINUX_SYMBOL(__start_notes) = .;
*(.note.*) VMLINUX_SYMBOL(__stop_notes) = .; }
Notice the difference: (.note.*) vs (.note. *)
If I manually remove those spaces (they occur in 3 places), then the linker
accepts vmlinux.lds.
--
Configure bugmail: http://llvm.org/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 Jun 15 08:25:35 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 15 Jun 2009 08:25:35 -0500
Subject: [LLVMbugs] [Bug 4396] New: Assertion `(PhysReg == 0 || !isChain) &&
" Chain dependence via physreg data?"' failed.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4396
Summary: Assertion `(PhysReg == 0 || !isChain) && "Chain
dependence via physreg data?"' 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: fvbommel at wxs.nl
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3094)
--> (http://llvm.org/bugs/attachment.cgi?id=3094)
The bitcode in question.
The attached (reduced) bitcode file produces the following assert in llc
-tailcallopt:
llc: ScheduleDAGSDNodes.cpp:201: void
llvm::ScheduleDAGSDNodes::AddSchedEdges(): Assertion `(PhysReg == 0 ||
!isChain) && "Chain dependence via physreg data?"' failed.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon Jun 15 09:32:45 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 15 Jun 2009 09:32:45 -0500
Subject: [LLVMbugs] [Bug 4360] clang crashes on solaris.
In-Reply-To:
Message-ID: <200906151432.n5FEWjIC025910@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4360
Edward O'Callaghan changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #3 from Edward O'Callaghan 2009-06-15 09:32:45 ---
It looks like malloc_unlocked is a leaf routine which is attempting to fetch
some data from the parent's stack slot and that slot contains 'zero'.. which
malloc_unlocked isn't expecting.
After *much* work, this looks to be a mis-compile by Sun's old GCC.
Unfortunately there is not much I can do about that, Sun should update there
GCC to 4.x.x already ;(
> This page should include:
$ /usr/sfw/bin/gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/specs
Configured with: /builds2/sfwnv-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++,f77,objc
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-20050802)
< http://llvm.org/docs/GettingStarted.html#brokengcc
Closing as "WONTFIX", Unless someone else has a say, then please reopen.
Cheers,
Edward.
--
Configure bugmail: http://llvm.org/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 Jun 15 09:46:29 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 15 Jun 2009 09:46:29 -0500
Subject: [LLVMbugs] [Bug 4396] Assertion `(PhysReg == 0 || !isChain) && "
Chain dependence via physreg data?"' failed.
In-Reply-To:
Message-ID: <200906151446.n5FEkT5H026437@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4396
Arnold Schwaighofer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Arnold Schwaighofer 2009-06-15 09:46:29 ---
CheckTailCallReturnConstraints is missing a check on the
incomming chain of the RETURN node. The incomming chain must
be the outgoing chain of the CALL node. This causes the
backend to identify tail calls that are not tail calls.
Fixed in .
--
Configure bugmail: http://llvm.org/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 Jun 15 10:47:46 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 15 Jun 2009 10:47:46 -0500
Subject: [LLVMbugs] [Bug 4397] New: 2008-06-03-DomFrontier.ll test fails on
Solaris.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4397
Summary: 2008-06-03-DomFrontier.ll test fails on Solaris.
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Solaris
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: eocallaghan at auroraux.org
CC: llvmbugs at cs.uiuc.edu
Good day,
FAIL:
/export/home/edward/lab/llvm/llvm/test/Transforms/LoopIndexSplit/2008-06-03-DomFrontier.ll
Failed with signal(SIGABRT) at line 1
while running: llvm-as <
/export/home/edward/lab/llvm/llvm/test/Transforms/LoopIndexSplit/2008-06-03-DomFrontier.ll
| opt -loop-rotate -loop-unswitch -loop-index-split -instcombine
-disable-output
Dominator Information for WirelessCreatePSK
Pass 'Rotate Loops'
----- Valid -----
DomFrontier for BB%entry is:
DomFrontier for BB%bb52 is: %bb52
DomFrontier for BB%bb63 is: %bb63%bb52.loopexit%bb63.preheader
DomFrontier for BB%bb68 is: %bb63
DomFrontier for BB%bb.nph is: %bb142.loopexit
DomFrontier for BB%bb131 is: %bb63
DomFrontier for BB%bb142 is: %bb52.loopexit%bb63.preheader
DomFrontier for BB%bb142.loopexit is: %bb52.loopexit%bb63.preheader
DomFrontier for BB%bb52.loopexit is: %bb52.backedge
DomFrontier for BB%bb63.preheader is: %bb52.loopexit%bb63.preheader
DomFrontier for BB%bb142.preheader is: %bb52.backedge
DomFrontier for BB%bb52.backedge is: %bb52
DomFrontier for BB%bb131.clone is: %bb142.loopexit%bb89.clone
DomFrontier for BB%bb131.bb63.clone_crit_edge is:
%bb52.loopexit%bb63.preheader
DomFrontier for BB%bb89.clone is: %bb142.loopexit%bb89.clone
DomFrontier for BB%bb63.clone is: %bb142.loopexit%bb89.clone
DomFrontier for BB%bb.nph7 is: %bb52.loopexit
DomFrontier for BB%bb63.clone.bb142.loopexit_crit_edge is: %bb142.loopexit
DomFrontier for BB%bb142.bb52.loopexit_crit_edge is: %bb52.loopexit
----- Invalid -----
DomFrontier for BB%entry is:
DomFrontier for BB%bb52 is: %bb52
DomFrontier for BB%bb63 is: %bb52.loopexit%bb63.preheader
DomFrontier for BB%bb68 is: %bb63
DomFrontier for BB%bb.nph is: %bb142.loopexit
DomFrontier for BB%bb131 is: %bb63
DomFrontier for BB%bb142 is: %bb52.loopexit%bb63.preheader
DomFrontier for BB%bb142.loopexit is: %bb52.loopexit%bb63.preheader
DomFrontier for BB%bb52.loopexit is: %bb52.backedge
DomFrontier for BB%bb63.preheader is: %bb52.loopexit%bb63.preheader
DomFrontier for BB%bb142.preheader is: %bb52.backedge
DomFrontier for BB%bb52.backedge is: %bb52
DomFrontier for BB%bb131.clone is: %bb142.loopexit%bb89.clone
DomFrontier for BB%bb131.bb63.clone_crit_edge is:
%bb52.loopexit%bb63.preheader
DomFrontier for BB%bb89.clone is: %bb142.loopexit%bb89.clone
DomFrontier for BB%bb63.clone is: %bb142.loopexit%bb89.clone
DomFrontier for BB%bb.nph7 is: %bb52.loopexit
DomFrontier for BB%bb63.clone.bb142.loopexit_crit_edge is: %bb142.loopexit
DomFrontier for BB%bb142.bb52.loopexit_crit_edge is: %bb52.loopexit
Assertion failed: 0 && "Invalid dominator info", file PassManager.cpp, line 727
0 opt 0x089d8812 char const* std::find(char const*,
char const*, char const&) + 376
1 opt 0x089d8fd0 llvm::sys::RemoveFileOnSignal(llvm::sys::Path const&,
std::string*) + 596
2 libc.so.1 0xfeb5d1df __sighndlr + 15
3 libc.so.1 0xfeb5025f call_user_handler + 687
4 libc.so.1 0xfeb623b5 _lwp_kill + 21
5 libc.so.1 0xfeb0ac2a raise + 34
6 libc.so.1 0xfeae203c abort + 116
7 libc.so.1 0xfeae230a __assert + 130
8 opt 0x08921d61 llvm::PMDataManager::verifyDomInfo(llvm::Pass&,
llvm::Function&) + 855
9 opt 0x087c71e7 llvm::LPPassManager::runOnFunction(llvm::Function&) +
1309
10 opt 0x08921eaf llvm::FPPassManager::runOnFunction(llvm::Function&) +
289
11 opt 0x0892205c llvm::FPPassManager::runOnModule(llvm::Module&) + 110
12 opt 0x08920cc8 llvm::MPPassManager::runOnModule(llvm::Module&) + 236
13 opt 0x0892230c llvm::PassManagerImpl::run(llvm::Module&) + 124
14 opt 0x08922371 llvm::PassManager::run(llvm::Module&) + 39
15 opt 0x084c060d main + 4771
16 opt 0x084997a0 _start + 128
Stack dump:
0. Running pass 'Function Pass Manager' on module ''.
1. Running pass 'Loop Pass Manager' on function '@WirelessCreatePSK'
(gdb) bt
#0 0xfeb623b5 in _lwp_kill () from /lib/libc.so.1
#1 0xfeb5aadc in thr_kill () from /lib/libc.so.1
#2 0xfeb0ac2a in raise () from /lib/libc.so.1
#3 0xfeae20ba in abort () from /lib/libc.so.1
#4 0xfeae230a in _assert () from /lib/libc.so.1
#5 0x08932dbd in llvm::PMDataManager::verifyDomInfo (this=0x8ad9d98,
P=@0x8acf938, F=@0x8ad5180) at PassManager.cpp:727
#6 0x087d3683 in llvm::LPPassManager::runOnFunction (this=0x8ad9d88,
F=@0x8ad5180) at LoopPass.cpp:245
#7 0x08932f0b in llvm::FPPassManager::runOnFunction (this=0x8ad8268,
F=@0x8ad5180) at PassManager.cpp:1343
#8 0x089330b8 in llvm::FPPassManager::runOnModule (this=0x8ad8268,
M=@0x8accc40) at PassManager.cpp:1366
#9 0x08931d24 in llvm::MPPassManager::runOnModule (this=0x8ad6e78,
M=@0x8accc40) at PassManager.cpp:1411
#10 0x08933368 in llvm::PassManagerImpl::run (this=0x8ad4118, M=@0x8accc40) at
PassManager.cpp:1480
#11 0x089333cd in llvm::PassManager::run (this=0x8046eb0, M=@0x8accc40) at
PassManager.cpp:1509
#12 0x084c873d in main (argc=6, argv=0x8047088) at opt.cpp:483
bash-3.2$ uname -sv
SunOS snv_115
bash-3.2$ echo $PATH
/opt/gcc4/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/bin:/usr/sbin:/usr/X11/bin:/usr/ccs/bin:/usr/sfw/bin:/usr/gnu/bin:/opt/csw/bin:/opt/clang/bin
bash-3.2$ which gcc
/opt/gcc4/bin/gcc
bash-3.2$ which llvm-as
/opt/clang/bin/llvm-as
bash-3.2$ llvm-as --version
Low Level Virtual Machine (http://llvm.org/):
llvm version 2.6svn
DEBUG build with assertions.
Built Jun 14 2009(19:20:10).
bash-3.2$ gcc --version
gcc (GCC) 4.2.4
Regards,
Edward.
--
Configure bugmail: http://llvm.org/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 Jun 15 14:26:52 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 15 Jun 2009 14:26:52 -0500
Subject: [LLVMbugs] [Bug 4397] 2008-06-03-DomFrontier.ll test fails on
Solaris.
In-Reply-To:
Message-ID: <200906151926.n5FJQqbU003983@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4397
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |baldrick at free.fr
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Duncan Sands 2009-06-15 14:26:52 ---
This is due to turning on expensive checks - it is not solaris
specific. This is the remaining unsolved problem in PR4238.
*** This bug has been marked as a duplicate of bug 4238 ***
--
Configure bugmail: http://llvm.org/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 Jun 15 14:48:10 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 15 Jun 2009 14:48:10 -0500
Subject: [LLVMbugs] [Bug 4375] llvm-g++ trips over __extern_inline starting
from -O1
In-Reply-To:
Message-ID: <200906151948.n5FJmAJx004942@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4375
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #7 from Duncan Sands 2009-06-15 14:48:07 ---
I'm closing this because it's a gcc-4.2 problem that I doubt we want
to do anything about (especially as there's a workaround!).
--
Configure bugmail: http://llvm.org/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 Jun 15 14:49:06 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 15 Jun 2009 14:49:06 -0500
Subject: [LLVMbugs] [Bug 4395] clang: extra spaces in preprocessor output
In-Reply-To:
Message-ID: <200906151949.n5FJn6gX005007@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4395
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Eli Friedman 2009-06-15 14:49:05 ---
Fixed in r73408.
--
Configure bugmail: http://llvm.org/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 Jun 16 00:16:51 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 16 Jun 2009 00:16:51 -0500
Subject: [LLVMbugs] [Bug 4336] Iterating over use-def chains doesn't seem to
be deterministic.
In-Reply-To:
Message-ID: <200906160516.n5G5GpkA024728@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4336
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Chris Lattner 2009-06-16 00:16:50 ---
Fixed here, many thanks Julien!
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090615/078780.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 Jun 16 02:00:31 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 16 Jun 2009 02:00:31 -0500
Subject: [LLVMbugs] [Bug 4201] llvm.smul.with.overflow.i32 not implemented
on PPC
In-Reply-To:
Message-ID: <200906160700.n5G70V4L028054@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4201
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2009-06-16 02:00:30 ---
Fixed in r73477.
--
Configure bugmail: http://llvm.org/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 Jun 16 02:18:16 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 16 Jun 2009 02:18:16 -0500
Subject: [LLVMbugs] [Bug 4398] New: passManager should always call
releaseMemory to avoid use-after-free bugs
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4398
Summary: passManager should always call releaseMemory to avoid
use-after-free bugs
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: gohman at apple.com, llvmbugs at cs.uiuc.edu
Currently some passes call releaseMemory (or their equivalent) in their run
function, some don't (for example ScalarEvolution).
According to the documentation "This method is called after the run* method for
the class, before the next call of run* in your pass."
However the PassManager doesn't do this for on-the-fly passes, which can cause
use-after-free bugs if you are using ScalarEvolution from a ModulePass
(LoopInfo is rerun, but ScalarEvolution still has stale data from the previous
LoopInfo run).
As discusses on llvm-commits the following should happen:
- PassManager should call releaseMemory for on-the-fly passes too
- PassManager should assert if it forgot to call releaseMemory
- passes that have a releaseMemory equivalent should have the method renamed
to releaseMemory
- passes should no longer call releaseMemory in their run function
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Tue Jun 16 08:24:31 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 16 Jun 2009 08:24:31 -0500
Subject: [LLVMbugs] [Bug 4400] New: Structure Alignment in MSVC
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4400
Summary: Structure Alignment in MSVC
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Keywords: portability
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: manoel at fonetica.com.br
CC: llvmbugs at cs.uiuc.edu
In Windows plataform with MSVC:
target datalayout =
"p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:1-f80:32:32"
%FIRSTSTRU = type { i32, double, i32, i8* }
If I define a strucutre like %FIRSTSTRU and a function like :
define i32 @STRUFUN(%FIRSTSTRU* %OUTRASTRU) {
entry:
ret i32 1
}
in the C side I do
struct xfirstStru
{
int var1;
double var2;
int var3;
char *var4;
};
typedef struct xfirstStru osX ;
typedef osX* PosX ;
PosX xf = (PosX) malloc( sizeof(osX) );
char *paux = (char*) malloc( 256 );
strcpy(paux,"teste C - LLVM");
memset(xf,0,sizeof(osX));
and we call the LLVM function from the C function,
fp_StruFun(xf);
the fields , from the double one, are not at the expected position.
--
Configure bugmail: http://llvm.org/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 Jun 16 08:34:12 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 16 Jun 2009 08:34:12 -0500
Subject: [LLVMbugs] [Bug 4400] Structure Alignment in MSVC
In-Reply-To:
Message-ID: <200906161334.n5GDYCJ0023173@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4400
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |asl at math.spbu.ru
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Anton Korobeynikov 2009-06-16 08:33:54 ---
You have to insert necessary padding for the fields. For example, llvm-gcc for
mingw32 produces the following code:
%struct.osX = type { i32, [4 x i8], double, i32, i8* }
--
Configure bugmail: http://llvm.org/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 Jun 16 12:40:53 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 16 Jun 2009 12:40:53 -0500
Subject: [LLVMbugs] [Bug 4401] New: Assertion failure in ScheduleDAGRList:
instruction released too many times
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=4401
Summary: Assertion failure in ScheduleDAGRList: instruction
released too many times
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: reid.kleckner at gmail.com
CC: llvmbugs at cs.uiuc.edu
I'm working on unladen-swallow and I was running our regression suite with
python configured to always JIT compile everything, and I ran into this
assertion error:
*** Scheduling failed! ***
SU(1): 0x7f89479a2548: i64,ch = CopyFromReg 0x1238918, 0x7f8955387510
has been released too many times!
python: ScheduleDAGRRList.cpp:205:
void::ScheduleDAGRRList::ReleasePred(llvm::SUnit*, const llvm::SDep*):
Assertion `0' failed.
My platform triple is: x86_64-unknown-linux-gnu
The suite takes hours to run because it tests a lot of Python edge cases by
generating absurdly large fragments of code and having Python execute them and
LLVM doesn't like absurdly large code fragments, so I ran it under GDB in case
it crashed. I currently have it stopped at the assertion failure, and I'm
going to try to dig out the LLVM IR from the program so I can provide a stand
alone test case.
Here's the backtrace:
#0 0x00007f897a04f095 in raise () from /lib/libc.so.6
#1 0x00007f897a050af0 in abort () from /lib/libc.so.6
#2 0x00007f897a0482df in __assert_fail () from /lib/libc.so.6
#3 0x0000000000939418 in (anonymous namespace)::ScheduleDAGRRList::ReleasePred
()
#4 0x000000000093945a in (anonymous
namespace)::ScheduleDAGRRList::ReleasePredecessors ()
#5 0x000000000093a4bf in (anonymous
namespace)::ScheduleDAGRRList::ScheduleNodeBottomUp ()
#6 0x000000000093eb9c in (anonymous
namespace)::ScheduleDAGRRList::ListScheduleBottomUp ()
#7 0x000000000093fb60 in (anonymous namespace)::ScheduleDAGRRList::Schedule ()
#8 0x0000000000a1b241 in llvm::ScheduleDAG::Run ()
#9 0x00000000008c5fb4 in llvm::SelectionDAGISel::CodeGenAndEmitDAG ()
#10 0x00000000008c7339 in llvm::SelectionDAGISel::SelectBasicBlock ()
#11 0x00000000008c9615 in llvm::SelectionDAGISel::SelectAllBasicBlocks ()
#12 0x00000000008caa21 in llvm::SelectionDAGISel::runOnFunction ()
#13 0x0000000000ca4f55 in llvm::FPPassManager::runOnFunction ()
#14 0x0000000000ca538d in llvm::FunctionPassManagerImpl::run ()
#15 0x0000000000ca55b6 in llvm::FunctionPassManager::run ()
#16 0x00000000009a7ab9 in llvm::JIT::runJITOnFunctionUnlocked ()
#17 0x00000000009a82d1 in llvm::JIT::getPointerToFunction ()
#18 0x000000000057bcc1 in PyEval_EvalCodeEx (co=0x7f897b315160,
globals=0x7f88d965cda0, locals=0x7f88d965cda0, args=0x0, argcount=0,
kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0)
at Python/eval.cc:3763
#19 0x000000000057cca2 in PyEval_EvalCode (co=0xd22, globals=0xd22, locals=0x6)
at Python/eval.cc:541
#20 0x0000000000591bd0 in PyImport_ExecCodeModuleEx (
name=0x7fff83354c05 "longlist", co=0x7f897b315160,
pathname=0x7fff83353b40 "longlist.pyo") at Python/import.c:687
#21 0x0000000000592065 in load_compiled_module (
name=0x7fff83354c05 "longlist", cpathname=0x7fff83353b40 "longlist.pyo",
fp=) at Python/import.c:815
#22 0x0000000000592c79 in import_submodule (mod=0x11cbc00,
subname=0x7fff83354c05 "longlist", fullname=0x7fff83354c05 "longlist")
at Python/import.c:2552
#23 0x00000000005931cd in load_next (mod=0x527e050, altmod=0x11cbc00,
p_name=, buf=0x7fff83354c00 "test.longlist",
p_buflen=0x7fff83354bf0) at Python/import.c:2376
#24 0x0000000000593539 in PyImport_ImportModuleLevel (
name=, globals=0x7f88da336d80,
locals=, fromlist=0x11cbc00, level=-1)
at Python/import.c:2094
#25 0x0000000000573549 in builtin___import__ (self=,
args=, kwds=)
at Python/bltinmodule.c:49
#26 0x00000000004fd81d in PyObject_Call (func=0x7f897b30a518,
arg=0x7f88d50e5f18, kw=0x0) at Objects/abstract.c:2487
#27 0x0000000000573d66 in PyEval_CallObjectWithKeywords (func=0x7f897b30a518,
arg=0x7f88d50e5f18, kw=0x0) at Python/eval.cc:42
#28 0x000000000056e980 in builtin_import_name (self=,
args=) at Python/bltinmodule.c:1170
#29 0x000000000057c8a2 in _PyEval_CallFunction (pp_stack=0x7fff83355de8,
oparg=) at Python/eval.cc:3843
#30 0x00007f8908651cad in ?? ()
#31 0x00007f88da336d80 in ?? ()
#32 0x00007f8922969559 in ?? () from /usr/lib/libGL.so.1
#33 0x00007f897b32ca48 in ?? ()
#34 0x00007f891a72e3b0 in ?? ()
#35 0x0000000000000000 in ?? ()
As you can see it trails off into nonsense, because GDB can't make backtraces
for JITed code yet.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Tue Jun 16 13:02:47 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 16 Jun 2009 13:02:47 -0500
Subject: [LLVMbugs] [Bug 4228] Duplicate debug symbol in recursively
included file
In-Reply-To:
Message-ID: <200906161802.n5GI2lnT000695@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4228
devang.patel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from devang.patel 2009-06-16 13:02:46 ---
Fixed.
revision 73520.
--
Configure bugmail: http://llvm.org/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 Jun 16 13:12:27 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 16 Jun 2009 13:12:27 -0500
Subject: [LLVMbugs] [Bug 4240] clang: broken debug info for restrict
In-Reply-To:
Message-ID: <200906161812.n5GICRMb001134@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4240
devang.patel changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |devang.patel at gmail.com
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #3 from devang.patel