From bugzilla-daemon at cs.uiuc.edu Thu Jan 1 09:52:48 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 1 Jan 2009 09:52:48 -0600
Subject: [LLVMbugs] [Bug 3274] i1 promotion is not simplified by LegalizeDAG
In-Reply-To:
Message-ID: <200901011552.n01FqmAT032363@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3274
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Duncan Sands 2009-01-01 09:52:47 ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20081229/071590.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 Jan 2 02:41:21 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 2 Jan 2009 02:41:21 -0600
Subject: [LLVMbugs] [Bug 3277] New: llvm-g++ front-end outputing code that
is not folded by irbuilder?
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3277
Summary: llvm-g++ front-end outputing code that is not folded by
irbuilder?
Product: tools
Version: 1.0
Platform: PC
OS/Version: All
Status: NEW
Keywords: slow-compile
Severity: normal
Priority: P2
Component: llvm-g++
AssignedTo: unassignedbugs at nondot.org
ReportedBy: clattner at apple.com
CC: llvmbugs at cs.uiuc.edu
On this testcase (Reduced from kc++):
class impl_abstract_phylum {
public:
virtual int subphylum(int) const;
virtual ~impl_abstract_phylum() { }
};
int impl_abstract_phylum::subphylum(int no) const {
return 0;
}
llvm-g++ -O0 is producing:
define linkonce void
@_ZN20impl_abstract_phylumD1Ev(%struct.impl_abstract_phylum* %this) nounwind {
entry:
...
br label %bb
bb: ; preds = %entry
%2 = trunc i32 0 to i8 ; [#uses=1]
%toBool = icmp ne i8 %2, 0 ; [#uses=1]
br i1 %toBool, label %bb1, label %bb2
bb1: ; preds = %bb
%3 = load %struct.impl_abstract_phylum** %this_addr, align 4
%4 = bitcast %struct.impl_abstract_phylum* %3 to i8* ;
[#uses=1]
call void @_ZdlPv(i8* %4) nounwind
br label %bb2
This is curious for two reasons: 1) we're emitting obviously dead code, which
slows down compilation at -O0. 2) IRbuilder should be folding the %2 truncate
instruction!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri Jan 2 08:23:35 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 2 Jan 2009 08:23:35 -0600
Subject: [LLVMbugs] [Bug 3278] New: ParseAssemblyString does not add
definitions to the passed module anymore
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3278
Summary: ParseAssemblyString does not add definitions to the
passed module anymore
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: cmdkeen at gmx.de
CC: llvmbugs at cs.uiuc.edu
The behaviour of ParseAssemblyString changed between the LLVM 2.1 and 2.2
releases. Until 2.1 a call like this
Module* parsedModule = ParseAssemblyString( code, targetModule, &errorInfo );
added the globals, types and functions in code to targetModule. Since 2.2 this
does not happen anymore.
The documentation still states that targetModule is "A module to add the
assembly too.".
Also see this thread
http://lists.cs.uiuc.edu/pipermail/llvmdev/2008-December/018994.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 Jan 2 22:06:36 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 2 Jan 2009 22:06:36 -0600
Subject: [LLVMbugs] [Bug 3210] missing CPUID entry for Core2 Quad
In-Reply-To:
Message-ID: <200901030406.n0346a1t012493@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3210
Evan Cheng changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Evan Cheng 2009-01-02 22:06:35 ---
Ah, I didn't see your proposed patch until now. Anyway, it's fixed with 61555,
61556, and 61602. I wonder if we should add a new processor names for Atom and
Corei7.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 3 02:40:13 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 3 Jan 2009 02:40:13 -0600
Subject: [LLVMbugs] [Bug 3257] llvm-gcc rejects "+g" constraint
In-Reply-To:
Message-ID: <200901030840.n038eDCG022515@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3257
Evan Cheng changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |evan.cheng at apple.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Evan Cheng 2009-01-03 02:40:13 ---
What does this inline asm mean? :-) Anyway, it's fixed:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20081229/071672.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 Jan 3 03:31:14 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 3 Jan 2009 03:31:14 -0600
Subject: [LLVMbugs] [Bug 3279] New: Failed bootstrap: Unsupported asm: input
constraint with a matching output constraint of incompatible type!
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3279
Summary: Failed bootstrap: Unsupported asm: input constraint with
a matching output constraint of incompatible type!
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
With SVN r61604 llvm-gcc bootstrap fails in libgomp:
$ /home/edwin/llvm-bootstrap/llvm-obj/./gcc/xgcc
-B/home/edwin/llvm-bootstrap/llvm-obj/./gcc/
-B/home/edwin/llvm-bootstrap/llvm-obj/../install/x86_64-unknown-linux-gnu/bin/
-B/home/edwin/llvm-bootstrap/llvm-obj/../install/x86_64-unknown-linux-gnu/lib/
-isystem
/home/edwin/llvm-bootstrap/llvm-obj/../install/x86_64-unknown-linux-gnu/include
-isystem
/home/edwin/llvm-bootstrap/llvm-obj/../install/x86_64-unknown-linux-gnu/sys-include
-DHAVE_CONFIG_H -I. -I../../../llvm-gcc4.2/libgomp -I.
-I../../../llvm-gcc4.2/libgomp/config/linux/x86
-I../../../llvm-gcc4.2/libgomp/config/linux
-I../../../llvm-gcc4.2/libgomp/config/posix -I../../../llvm-gcc4.2/libgomp
-Wall -Werror -pthread -ftls-model=initial-exec -O2 -g -O2 -MT lock.lo -MD -MP
-MF .deps/lock.Tpo -c ../../../llvm-gcc4.2/libgomp/config/linux/lock.c -fPIC
-DPIC -o .libs/lock.o
Unsupported asm: input constraint with a matching output constraint of
incompatible type!
Bugpoint reduced testcase:
; ModuleID = 'bugpoint-reduced-simplified.bc'
target datalayout =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
target triple = "x86_64-unknown-linux-gnu"
%struct.omp_nest_lock_t = type { i32, i32 }
@gomp_ialias_omp_init_lock = alias void (i32*)* @omp_init_lock ; [#uses=0]
@gomp_ialias_omp_init_nest_lock = alias void (%struct.omp_nest_lock_t*)*
@omp_init_nest_lock ; [#uses=0]
@gomp_ialias_omp_destroy_lock = alias void (i32*)* @omp_destroy_lock
; [#uses=0]
@gomp_ialias_omp_destroy_nest_lock = alias void (%struct.omp_nest_lock_t*)*
@omp_destroy_nest_lock ; [#uses=0]
@gomp_ialias_omp_set_lock = alias void (i32*)* @omp_set_lock ; [#uses=0]
@gomp_ialias_omp_set_nest_lock = alias void (%struct.omp_nest_lock_t*)*
@omp_set_nest_lock ; [#uses=0]
@gomp_ialias_omp_unset_lock = alias void (i32*)* @omp_unset_lock
; [#uses=0]
@gomp_ialias_omp_unset_nest_lock = alias void (%struct.omp_nest_lock_t*)*
@omp_unset_nest_lock ; [#uses=0]
@gomp_ialias_omp_test_lock = alias i32 (i32*)* @omp_test_lock ; [#uses=0]
@gomp_ialias_omp_test_nest_lock = alias i32 (%struct.omp_nest_lock_t*)*
@omp_test_nest_lock ; [#uses=0]
declare void @omp_init_lock(i32* nocapture) nounwind
declare void @omp_destroy_lock(i32* nocapture) nounwind readnone
declare void @omp_destroy_nest_lock(%struct.omp_nest_lock_t* nocapture)
nounwind readnone
declare i32 @omp_test_nest_lock(%struct.omp_nest_lock_t*) nounwind
declare void @omp_set_nest_lock(%struct.omp_nest_lock_t*) nounwind
define void @omp_unset_nest_lock(%struct.omp_nest_lock_t* %lock) nounwind {
entry:
br i1 false, label %bb, label %return
bb: ; preds = %entry
%asmtmp.i = tail call i64 asm sideeffect "syscall",
"={ax},0,{di},{si},{dx},~{dirflag},~{fpsr},~{flags},~{memory},~{cx},~{r11}"(i32
202, i32* null, i32 1, i32 1) nounwind ; [#uses=0]
ret void
return: ; preds = %entry
ret void
}
declare void @omp_init_nest_lock(%struct.omp_nest_lock_t* nocapture) nounwind
declare i32 @omp_test_lock(i32*) nounwind
declare void @omp_unset_lock(i32*) nounwind
declare void @omp_set_lock(i32*) nounwind
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 3 13:24:34 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 3 Jan 2009 13:24:34 -0600
Subject: [LLVMbugs] [Bug 3250] ice: shiftAmt <= BitWidth && "Invalid shift
amount"
In-Reply-To:
Message-ID: <200901031924.n03JOYSZ020204@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3250
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gohman at apple.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Dan Gohman 2009-01-03 13:24:32 ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20081229/071686.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 Jan 4 14:45:22 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 4 Jan 2009 14:45:22 -0600
Subject: [LLVMbugs] [Bug 3278] ParseAssemblyString does not add definitions
to the passed module anymore
In-Reply-To:
Message-ID: <200901042045.n04KjMj1009434@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3278
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Chris Lattner 2009-01-04 14:45:21 ---
Sorry for the delay on this, and thanks for filing the bugzilla! This patch
should fix it, please verify:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20081229/071712.html
-Chris
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 4 21:41:41 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 4 Jan 2009 21:41:41 -0600
Subject: [LLVMbugs] [Bug 3281] New: diagnostics in LLParser
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3281
Summary: diagnostics in LLParser
Product: libraries
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: LLVM assembly language parser
AssignedTo: unassignedbugs at nondot.org
ReportedBy: gohman at apple.com
CC: llvmbugs at cs.uiuc.edu
I ran a bunch of polygen-generated testcases through
the new AsmParser implementation. Attached are some
testcases that either trigger assertion failures
due to llvm-as not diagnosing invalid constructs,
some that are rejected by the old AsmParser and
accepted by the new AsmParser and look questionable,
and some that are rejected by the new AsmParser that
look questionable.
FWIW, the new AsmParser also correctly diagnoses many
errors that the old one missed :-).
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 5 02:27:04 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 5 Jan 2009 02:27:04 -0600
Subject: [LLVMbugs] [Bug 3281] diagnostics in LLParser
In-Reply-To:
Message-ID: <200901050827.n058R4tn031919@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3281
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Chris Lattner 2009-01-05 02:27:04 ---
I fixed the rest in a series of patches.
It would be nice to remove deprecated crapola from your polygen grammar, such
as attributes on function types, vicmp/vfcmp etc. See the FIXMEs in
LLParser.cpp for the deprecated stuff.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 5 02:53:57 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 5 Jan 2009 02:53:57 -0600
Subject: [LLVMbugs] [Bug 3279] Failed bootstrap: Unsupported asm: input
constraint with a matching output constraint of incompatible type!
In-Reply-To:
Message-ID: <200901050853.n058rvl6006137@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3279
Evan Cheng changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Evan Cheng 2009-01-05 02:53:56 ---
Doh. I accidentally inverted a comparison in 61604. This is fixed now. Sorry
about the breakge.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 5 03:37:25 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 5 Jan 2009 03:37:25 -0600
Subject: [LLVMbugs] [Bug 3282] New: New testsuite failure: test/Assembler/
2005-05-05-OpaqueUndefValues.ll
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3282
Summary: New testsuite failure: test/Assembler/2005-05-05-
OpaqueUndefValues.ll
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
According to buildbot this fails since r61682.
FAIL:
/home/edwin/llvm-bootstrap/llvm/test/Assembler/2005-05-05-OpaqueUndefValues.ll
Failed with exit(1) at line 1
while running: llvm-as <
/home/edwin/llvm-bootstrap/llvm/test/Assembler/2005-05-05-OpaqueUndefValues.ll
| llvm-dis | llvm-as
BC!^L^@^@ESC^@^@^@^A^P^@^@^P^@^@^@^G<81>#<91>A^DI^F^P29<92>^A<84>^L%^E^H^Y^^^D<8B>b<80>^@E^BB
<92>^KB^D^P2^T^XI
2D$H
<90>!#Dr<80><8C>^@!<86>
<8A>
d^L^_^@^@Q ^@^@^F^@^@^@ e<82><84>^@&@H^E &@^EB^B^@^@^@^@^@^@llvm-as:
:4:16: invalid type for undef constant
@x = global %t undef
^
llvm-dis: Invalid bitcode signaturesh: acroread: command not found
I don't know if the test is wrong, or asmparser is wrong.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 5 11:40:05 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 5 Jan 2009 11:40:05 -0600
Subject: [LLVMbugs] [Bug 3281] diagnostics in LLParser
In-Reply-To:
Message-ID: <200901051740.n05He5cn029692@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3281
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #6 from Dan Gohman 2009-01-05 11:40:04 ---
Here are a few more polygen-generated testcases, tested
with the latest svn.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon Jan 5 12:12:42 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 5 Jan 2009 12:12:42 -0600
Subject: [LLVMbugs] [Bug 3282] New testsuite failure: test/Assembler/
2005-05-05-OpaqueUndefValues.ll
In-Reply-To:
Message-ID: <200901051812.n05ICg4d030937@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3282
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Lattner 2009-01-05 12:12:42 ---
Fixed, thanks!
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090105/071773.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 Jan 5 17:46:18 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 5 Jan 2009 17:46:18 -0600
Subject: [LLVMbugs] [Bug 3235] instcombine crash on i128
In-Reply-To:
Message-ID: <200901052346.n05NkI1Q010549@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3235
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #7 from Chris Lattner 2009-01-05 17:46:18 ---
Fixed, thanks!
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090105/071824.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 Jan 6 05:21:25 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 6 Jan 2009 05:21:25 -0600
Subject: [LLVMbugs] [Bug 3283] New: llc crash on random .bc file
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3283
Summary: llc crash on random .bc file
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
With SVN r61805 I run:
$ llvm-as x.bc && llc x.bc -f
I get this:
llc: TargetData.cpp:468: unsigned char llvm::TargetData::getAlignment(const
llvm::Type*, bool) const: Assertion `Ty->isSized() && "
Cannot getTypeInfo() on a type that is unsized!"' failed.
0 llc 0x0000000000c2dd1f
1 libc.so.6 0x00007fd7d0afcf60
2 libc.so.6 0x00007fd7d0afced5 gsignal + 53
3 libc.so.6 0x00007fd7d0afe3f3 abort + 387
4 libc.so.6 0x00007fd7d0af5dc9 __assert_fail + 233
5 llc 0x0000000000b5ee5e llvm::TargetData::getAlignment(llvm::Type
const*, bool) const + 222
6 llc 0x0000000000718e76
7 llc 0x000000000071a4d9
8 llc 0x0000000000bc2ff6 llvm::FunctionPassManager::doFinalization() +
198
9 llc 0x0000000000500618 main + 4216
10 libc.so.6 0x00007fd7d0ae91a6 __libc_start_main + 230
11 llc 0x00000000004feae9 std::ios_base::Init::~Init() + 57
Aborted
This is either a bug in llvm-as (for accepting invalid bitcode), or a bug in
llc, this is the .ll file:
hidden thread_local addrspace(39) constant opaque undef
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 6 05:56:52 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 6 Jan 2009 05:56:52 -0600
Subject: [LLVMbugs] [Bug 3284] New: llvm-as crashing on 'fp128
zeroinitializer'
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3284
Summary: llvm-as crashing on 'fp128 zeroinitializer'
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
Using SVN r61805:
llvm-as: APFloat.cpp:2849: void llvm::APFloat::initFromAPInt(const
llvm::APInt&, bool): Assertion `0' failed.
0 llvm-as 0x000000000054a03f
1 libc.so.6 0x00007f39c38d0f60
2 libc.so.6 0x00007f39c38d0ed5 gsignal + 53
3 libc.so.6 0x00007f39c38d23f3 abort + 387
4 libc.so.6 0x00007f39c38c9dc9 __assert_fail + 233
5 llvm-as 0x000000000051b053 llvm::APFloat::APFloat(llvm::APInt const&,
bool) + 51
6 llvm-as 0x0000000000498634 llvm::Constant::getNullValue(llvm::Type
const*) + 500
7 llvm-as 0x000000000046b8f8
llvm::LLParser::ConvertGlobalValIDToValue(llvm::Type const*, llvm::ValID&,
llvm::Constant*&) + 360
8 llvm-as 0x0000000000472563 llvm::LLParser::ParseGlobalValue(llvm::Type
const*, llvm::Constant*&) + 211
9 llvm-as 0x0000000000472668 llvm::LLParser::ParseGlobal(std::string
const&, char const*, unsigned int, bool, unsigned int) + 248
10 llvm-as 0x0000000000479368 llvm::LLParser::ParseNamedGlobal() + 248
11 llvm-as 0x000000000047aa2d llvm::LLParser::ParseTopLevelEntities() + 189
12 llvm-as 0x000000000047aeb4 llvm::LLParser::Run() + 20
13 llvm-as 0x00000000004627b0 llvm::ParseAssemblyFile(std::string const&,
llvm::ParseError&) + 480
14 llvm-as 0x000000000044dc3a main + 154
15 libc.so.6 0x00007f39c38bd1a6 __libc_start_main + 230
16 llvm-as 0x000000000044d719 __gxx_personality_v0 + 433
Aborted
Testcase:
@o = linkonce protected constant fp128 zeroinitializer
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From yonggangluo at hotmail.com Tue Jan 6 08:02:07 2009
From: yonggangluo at hotmail.com (=?gb2312?B?WW9uZ2dhbmcgTHVvICjC3tPCuNUp?=)
Date: Tue, 6 Jan 2009 22:02:07 +0800
Subject: [LLVMbugs] Cmake report errors on svn 61806
Message-ID:
CMake Error at cmake/modules/GetTargetTriple.cmake:14 (message):
Failed to execute D:/svn/llvm/autoconf/config.guess
Call Stack (most recent call first):
cmake/config-ix.cmake:59 (get_target_triple)
CMakeLists.txt:105 (include)
What's happened?
I am using TDM MinGW g++ 4.3.2
and Perl 5.10
and sh version is 3.1.0
I am using CMake system to generate CodeBlocks project files.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.uiuc.edu/pipermail/llvmbugs/attachments/20090106/827bbe1c/attachment.html
From ofv at wanadoo.es Tue Jan 6 11:55:43 2009
From: ofv at wanadoo.es (=?windows-1252?Q?=D3scar_Fuentes?=)
Date: Tue, 06 Jan 2009 18:55:43 +0100
Subject: [LLVMbugs] Cmake report errors on svn 61806
In-Reply-To: ("Yonggang Luo
=?gb2312?B?KMLe08IJuNUpIidz?= message of "Tue,
6 Jan 2009 22:02:07 +0800")
References:
Message-ID:
"Yonggang Luo"
writes:
> CMake Error at cmake/modules/GetTargetTriple.cmake:14 (message):
> Failed to execute D:/svn/llvm/autoconf/config.guess
>
> Call Stack (most recent call first):
>
> cmake/config-ix.cmake:59 (get_target_triple)
>
> CMakeLists.txt:105 (include)
>
> What's happened?
>
> I am using TDM MinGW g++ 4.3.2
>
> and Perl 5.10
>
> and sh version is 3.1.0
>
> I am using CMake system to generate CodeBlocks project files.
First, please file a proper bug report with as much information as you
can. This mailing list is not for reporting bugs.
CodeBlocks is not tested.
The problem consists on GetTargetTriple.cmake using
autoconf/config.guess for all compiler/platforms except MSVC. Can your
shell execute autoconf/config.guess ? If the answer is yes, the problem
is elsewhere. If no, modify cmake/modules/GetTargetTriple.cmake for
returning a fixed answer just like it does for MSVC. Removing the
if/else altogether and leaving the
set( ${var} "i686-pc-win32" PARENT_SCOPE )
should work. Of course, this is not acceptable as a general solution, so
you need to look on what is missing for supporting CodeBlocks.
HTH.
--
Oscar
From bugzilla-daemon at cs.uiuc.edu Tue Jan 6 14:03:27 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 6 Jan 2009 14:03:27 -0600
Subject: [LLVMbugs] [Bug 3286] New: Assertion failed: (0 && "Unknown stmt
kind!") when calling Stmt->dumpAll();
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3286
Summary: Assertion failed: (0 && "Unknown stmt kind!") when
calling Stmt->dumpAll();
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: AST
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: alexei.svitkine at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2366)
--> (http://llvm.org/bugs/attachment.cgi?id=2366)
code that triggers the assert
When running the attached code, an assert triggers in the StmtVisitor code.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Tue Jan 6 14:46:00 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 6 Jan 2009 14:46:00 -0600
Subject: [LLVMbugs] [Bug 3287] New: Vector of float with length 2 broken on
x86
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3287
Summary: Vector of float with length 2 broken on x86
Product: new-bugs
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: lennart at augustsson.net
CC: llvmbugs at cs.uiuc.edu
Vectors of float on the x86 use the MM registers and not the MMX registers
which wreaks havoc. Here is a simple test program which prints nan instead of
1.
If you comment out the (pointless) store it prints 1.
This is with llvm-2.4.
foo.ll:
define double @foo(<2 x float>*) {
store <2 x float> < float 1.000000e+00, float 2.000000e+00 >, <2 x
float>* %0
ret double 1.000000e+00
}
c.c:
double foo(float *);
main()
{
float fs[2];
printf("%g\n", foo(fs));
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 6 14:53:55 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 6 Jan 2009 14:53:55 -0600
Subject: [LLVMbugs] [Bug 3288] New: Multi-dimensional aggregate assert
failure in SelectionDAGLowering
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3288
Summary: Multi-dimensional aggregate assert failure in
SelectionDAGLowering
Product: libraries
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: markleone at gmail.com
CC: llvmbugs at cs.uiuc.edu
Inserting at certain offsets in a multi-dimensional aggregate tickles an
index-related assert-failure in SelectionDAGLowering:
%i = insertvalue [2 x [2 x i32]] undef, [2 x i32] undef, 1
It doesn't matter whether the operands are undef, but the 1 index is
significant.
Assertion failed: (Begin + idx <= End), function operator[], file
llvm-trunk/include/llvm/ADT/SmallVector.h, line 127.
llc llvm::SmallVectorImpl::operator[](unsigned int) + 86
llc llvm::SelectionDAGLowering::visitInsertValue(llvm::InsertValueInst&) +
775
llc llvm::SelectionDAGLowering::visit(unsigned int, llvm::User&) + 1487
llc llvm::SelectionDAGLowering::visit(llvm::Instruction&) + 40
llc llvm::SelectionDAGISel::SelectBasicBlock(llvm::BasicBlock*,
llvm::ilist_iterator,
llvm::ilist_iterator) + 95
llc llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function&,
llvm::MachineFunction&, llvm::MachineModuleInfo*, llvm::TargetInstrInfo const&)
+ 2100
llc llvm::SelectionDAGISel::runOnFunction(llvm::Function&) + 852
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 6 19:03:25 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 6 Jan 2009 19:03:25 -0600
Subject: [LLVMbugs] [Bug 3286] Assertion failed: (0 && "Unknown stmt kind!")
when calling Stmt- >dumpAll();
In-Reply-To:
Message-ID: <200901070103.n0713P4h026545@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3286
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Chris Lattner 2009-01-06 19:03:25 ---
ParseAST is deallocating the AST before you access it. Please run your app
through debug malloc or valgrind.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 6 19:51:57 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 6 Jan 2009 19:51:57 -0600
Subject: [LLVMbugs] [Bug 3289] New: Assertion `LRegs.size() == 1 && "Can't
handle this yet!"' failed.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3289
Summary: Assertion `LRegs.size() == 1 && "Can't handle this
yet!"' failed.
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu
Seen using r61781 on Ubuntu Hardy on x86.
Versions before and including 61492 are fine, later versions display this bug.
regehr at john-home:~/volatile/tmp110$ llvm-gcc -O2 small.c
cc1: ScheduleDAGRRList.cpp:713:
void::ScheduleDAGRRList::ListScheduleBottomUp(): Assertion
`LRegs.size() == 1 && "Can't handle this yet!"' failed.
small.c:18: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
regehr at john-home:~/volatile/tmp110$ cat small.c
char safe_mul_func_uint8_t_u_u (char _ui1, char _ui2)
{
return _ui1 * _ui2;
}
int g_54;
int func_66 (short p_68)
{
int l_71 = 0x0ABB00F6L;
if (func_33
(1 ^ (safe_mod_ (safe_mul_func_uint8_t_u_u (p_68 * l_71, 1)), 1) ? 1
: (g_54
&& 1) - safe_mod_ (safe_mul_func_uint8_t_u_u (p_68 * l_71,
func_40 (1))), 1))
{
}
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Tue Jan 6 19:57:23 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 6 Jan 2009 19:57:23 -0600
Subject: [LLVMbugs] [Bug 3290] New: scalarrepl doesn' t promote alloca in
2008-03-24-BitField-And-Alloca.c
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3290
Summary: scalarrepl doesn't promote alloca in 2008-03-24-
BitField-And-Alloca.c
Product: libraries
Version: 1.0
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: clattner at apple.com
CC: llvmbugs at cs.uiuc.edu
This is split off from bug 3232, where we learned that diabling gcc's inliner
caused a perf regression in 2008-03-24-BitField-And-Alloca.c because scalarrepl
isn't promoting the allocas anymore.
This in turn is because of how the struct is being passed by value to a
function: due to the ABI lowering stuff in the front-end, it is passed as an
i64, so we get this code, which confuses scalarrepl:
%struct.Key = type { { i32, i32 } }
...
%iospec = alloca %struct.Key ; <%struct.Key*> [#uses=3]
...
%2 = bitcast %struct.Key* %iospec to i64* ;
[#uses=1]
store i64 %key_token2, i64* %2, align 8
Perhaps scalarrepl can handle this the same way it handles memcpy.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 7 09:45:34 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 7 Jan 2009 09:45:34 -0600
Subject: [LLVMbugs] [Bug 3292] New: Assertion `i*2 < getNumOperands() &&
"Invalid value number! "' failed.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3292
Summary: Assertion `i*2 < getNumOperands() && "Invalid value
number!"' failed.
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu
Seen using r61781 on Ubuntu Hardy on x86.
Versions before and including 61492 are fine, later versions display this bug.
regehr at john-home:~/volatile/tmp111$ llvm-gcc -O2 small.c
cc1: /home/regehr/llvm/include/llvm/Instructions.h:1928: llvm::Value*
llvm::PHINode::getIncomingValue(unsigned int) const: Assertion `i*2 <
getNumOperands() && "Invalid value number!"' failed.
small.c:36: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
regehr at john-home:~/volatile/tmp111$ cat small.c
unsigned safe_sub_func_int64_t_s_s (int _si1, unsigned _si2)
{
return ((_si1 ^ _si2) & (-_si2 ^ _si2)) < 0 ? : _si1 - _si2;
}
unsigned g_24;
unsigned g_30;
unsigned g_94;
unsigned func_25 (int p_27, unsigned p_29, unsigned p_31, unsigned p_33,
unsigned p_34)
{
return g_24;
}
int func_40 (int p_42, int p_43)
{
unsigned l_45 = 0;
for (g_30 = 1; g_30; g_30 = g_30 - 1)
{
unsigned l_47 = 0;
for (g_30 = 19; g_30; g_30 = safe_sub_func_int64_t_s_s (g_30, 1))
{
unsigned l_46 = 0;
if (func_25 (l_45, l_46, l_46, l_47, 1))
return 1;
}
}
return g_30;
}
void func_15 (int p_16)
{
unsigned l_20 = 0;
func_40 (g_94, l_20);
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From yonggangluo at hotmail.com Wed Jan 7 12:18:25 2009
From: yonggangluo at hotmail.com (=?gb2312?B?WW9uZ2dhbmcgTHVvICjC3tPCuNUp?=)
Date: Thu, 8 Jan 2009 02:18:25 +0800
Subject: [LLVMbugs] The rm command can't be running under cmd.exe
Message-ID:
- COMMAND rm -f *${CMAKE_CXX_OUTPUT_EXTENSION}
+ COMMAND del /Q *${CMAKE_CXX_OUTPUT_EXTENSION}
because rm -f is can be running on -ix system. and msys and cygwin system.
but the problem is rm -f can't be running on windows system.
on windows operating system. only del /Q can be running?
and cmake have a solution to this problem . That's ${RM}
# The command to remove a file.
RM = D:\Tools\cmake\bin\cmake.exe -E remove -f
the cmake submit this variable to resolve this problem.
but i don't know how to use it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.uiuc.edu/pipermail/llvmbugs/attachments/20090108/3a716343/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AddPartiallyLinkedObject.cmake.diff
Type: application/octet-stream
Size: 696 bytes
Desc: not available
Url : http://lists.cs.uiuc.edu/pipermail/llvmbugs/attachments/20090108/3a716343/attachment.obj
From ofv at wanadoo.es Wed Jan 7 13:27:13 2009
From: ofv at wanadoo.es (=?windows-1252?Q?=D3scar_Fuentes?=)
Date: Wed, 07 Jan 2009 20:27:13 +0100
Subject: [LLVMbugs] The rm command can't be running under cmd.exe
References:
Message-ID:
"Yonggang Luo (??????)"
writes:
> - COMMAND rm -f *${CMAKE_CXX_OUTPUT_EXTENSION}
> + COMMAND del /Q *${CMAKE_CXX_OUTPUT_EXTENSION}
On the future, please file bug reports at
http://www.llvm.org/bugs/
I've committed r61875, which replaces rm with "cmake -R remove", but
I'm afraid that more work is needed for using the build on Windows/Mingw
with a non-posix environment.
[snip]
--
Oscar
From bugzilla-daemon at cs.uiuc.edu Wed Jan 7 15:02:28 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 7 Jan 2009 15:02:28 -0600
Subject: [LLVMbugs] [Bug 3293] New: llvm-gcc: llvm-gcc/gcc/libgcc2.c:809:
internal compiler error: Aborted
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3293
Summary: llvm-gcc: llvm-gcc/gcc/libgcc2.c:809: internal compiler
error: Aborted
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: compile-fail
Severity: blocker
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: dknoto at next.com.pl
CC: llvmbugs at cs.uiuc.edu
System:
Linux wenus 2.6.24.7_desktop-2 #1 SMP PREEMPT Sun Jun 22 18:23:12 CEST 2008
x86_64 Dual-Core_AMD_Opteron(tm)_Processor_2210 PLD Linux
GCC:
Reading specs from /usr/lib64/gcc/amd64-pld-linux/4.1.2/specs
Target: amd64-pld-linux
Configured with: ../configure --program-suffix=4 --prefix=/usr
--with-local-prefix=/usr/local --libdir=/usr/lib64 --libexecdir=/usr/lib64
--infodir=/usr/share/info --mandir=/usr/share/man
--x-libraries=/usr/X11R6/lib64 --enable-shared --enable-threads=posix
--enable-languages=c,c++ --enable-c99 --enable-long-long --enable-nls
--disable-werror --with-gnu-as --with-gnu-ld --with-demangler-in-ld
--with-system-zlib --with-slibdir=/lib64 --without-system-libunwind --without-x
--disable-multilib --with-gxx-include-dir=/usr/include/c++/4.1.2
--disable-libstdcxx-pch --enable-__cxa_atexit --enable-libstdcxx-allocator=new
amd64-pld-linux
Thread model: posix
gcc version 4.1.2 (PLD-Linux)
LLVM: SVN r61858
LLVM-GCC: SVN r61862
Compilation:
$ ../llvm-gcc/configure --prefix=/usr/local/llvm/
--enable-languages=c,c++,fortran --enable-llvm=$PWD/../llvm --disable-bootstrap
--disable-multilib
$ make
Result:
[...]
make[4]: Leaving directory
`/home/users/dknoto/Oprogramowanie/Low.Level.Virtual.Machine/llvm-gcc-objects/gcc'
/home/users/dknoto/Oprogramowanie/Low.Level.Virtual.Machine/llvm-gcc-objects/./gcc/xgcc
-B/home/users/dknoto/Oprogramowanie/Low.Level.Virtual.Machine/llvm-gcc-objects/./gcc/
-B/usr/local/llvm//x86_64-unknown-linux-gnu/bin/
-B/usr/local/llvm//x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/llvm//x86_64-unknown-linux-gnu/include -isystem
/usr/local/llvm//x86_64-unknown-linux-gnu/sys-include -O2 -O2 -mtune=opteron
-O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I.
-I../../llvm-gcc/gcc -I../../llvm-gcc/gcc/. -I../../llvm-gcc/gcc/../include
-I../../llvm-gcc/gcc/../libcpp/include -I../../llvm-gcc/gcc/../libdecnumber
-I../libdecnumber
-I/home/users/dknoto/Oprogramowanie/Low.Level.Virtual.Machine/llvm-gcc-objects/../llvm/include
-I/home/users/dknoto/Oprogramowanie/Low.Level.Virtual.Machine/llvm/include
-DL_popcountsi2 -fvisibility=hidden -DHIDE_EXPORTS -c
../../llvm-gcc/gcc/libgcc2.c -o libgcc/./_popcountsi2.o
cc1: StringMap.cpp:177: void
llvm::StringMapImpl::RemoveKey(llvm::StringMapEntryBase*): Assertion `V == V2
&& "Didn't find key?"' failed.
../../llvm-gcc/gcc/libgcc2.c:809: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
make[3]: *** [libgcc/./_popcountsi2.o] Error 1
make[3]: Leaving directory
`/home/users/dknoto/Oprogramowanie/Low.Level.Virtual.Machine/llvm-gcc-objects/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory
`/home/users/dknoto/Oprogramowanie/Low.Level.Virtual.Machine/llvm-gcc-objects/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory
`/home/users/dknoto/Oprogramowanie/Low.Level.Virtual.Machine/llvm-gcc-objects'
make: *** [all] Error 2
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed Jan 7 22:27:05 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 7 Jan 2009 22:27:05 -0600
Subject: [LLVMbugs] [Bug 3294] New: another math bug
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3294
Summary: another math bug
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu
This looks a lot like PR 3275 but it is still wrong in r61912 on Ubuntu Hardy
on x86.
LLVM up to and including r59527 gets this right, since then it is wrong.
regehr at john-home:~/volatile/tmp112$ llvm-gcc -O0 small.c -o small
regehr at john-home:~/volatile/tmp112$ ./small
-1
regehr at john-home:~/volatile/tmp112$ llvm-gcc -O1 small.c -o small
regehr at john-home:~/volatile/tmp112$ ./small
10
regehr at john-home:~/volatile/tmp112$ cat small.c
#include
unsigned g_9;
void func_1 (void);
void func_1 (void)
{
for (g_9 = 11; g_9 < (unsigned)-8; g_9--)
{
}
}
int
main (void)
{
func_1 ();
printf ("%d\n", g_9);
return 0;
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed Jan 7 23:43:34 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 7 Jan 2009 23:43:34 -0600
Subject: [LLVMbugs] [Bug 3295] New: loop-reduce / scalar-evolution crash
expanding {0, +, 2, +, 2} addrec
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3295
Summary: loop-reduce / scalar-evolution crash expanding
{0,+,2,+,2} addrec
Product: libraries
Version: trunk
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Loop Optimizer
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nicholas at mxc.ca
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2369)
--> (http://llvm.org/bugs/attachment.cgi?id=2369)
testcase
opt -loop-reduce b.bc crashes trying to emit an addrec of {0,+,2,+,2} because
the SCEV for %indvar returns CouldNotCompute.
And that's correct. This "loop" has a i1 false for a branch condition, meaning
that scev won't analyze it. I'm not sure who's at fault 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 Thu Jan 8 00:16:09 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 8 Jan 2009 00:16:09 -0600
Subject: [LLVMbugs] [Bug 3296] New: another math bug
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3296
Summary: another math bug
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu
This is possibly the same bug as PR 3275 and/or PR 3294. However, this one
first manifests in r61826. This in on Ubuntu Hardy on x86.
Much of this bulky test input is irrelevant to the problem which involves only
the induction variable. However, removing code from the body of the loop makes
the problem go away.
llvm-gcc is not valgrind-clean at -O2 for this testcase.
regehr at john-home:~/volatile/tmp113$ llvm-gcc -O1 small.c -o small
regehr at john-home:~/volatile/tmp113$ ./small
0
regehr at john-home:~/volatile/tmp113$ llvm-gcc -O2 small.c -o small
regehr at john-home:~/volatile/tmp113$ ./small
-20
regehr at john-home:~/volatile/tmp113$ cat small.c
#include
#include
#include
#define safe_add_macro_int64_t_s_s(si1,si2) \
((((((int64_t)(si1))>((int64_t)0)) &&
(((int64_t)(si2))>((int64_t)0)) && (((int64_t)(si1)) >
((INT64_MAX)-((int64_t)(si2))))) \
|| ((((int64_t)(si1))<((int64_t)0)) &&
(((int64_t)(si2))<((int64_t)0)) && (((int64_t)(si1)) <
((INT64_MIN)-((int64_t)(si2)))))) \
? ((int64_t)(si1)) \
: (((int64_t)(si1)) + ((int64_t)(si2))) \
)
static int64_t
safe_add_func_int64_t_s_s(int64_t _si1, int64_t _si2)
{
return safe_add_macro_int64_t_s_s(_si1,_si2);
}
#define safe_lshift_macro_uint16_t_u_s(left,right) \
(((((int)(right)) < ((uint16_t)0)) \
|| (((int)(right)) >= sizeof(uint16_t)*CHAR_BIT) \
|| (((uint16_t)(left)) > ((UINT16_MAX) >>
((int)(right))))) \
? ((uint16_t)(left)) \
: (((uint16_t)(left)) << ((int)(right))))
static uint16_t
safe_lshift_func_uint16_t_u_s(uint16_t _left, int _right)
{
return safe_lshift_macro_uint16_t_u_s(_left,_right);
}
#define safe_sub_macro_int8_t_s_s(si1,si2) \
((((((int8_t)(si1))^((int8_t)(si2))) \
& (((((int8_t)(si1)) ^ ((((int8_t)(si1))^((int8_t)(si2))) \
& (((int8_t)1) <<
(sizeof(int8_t)*CHAR_BIT-1))))-((int8_t)(si2)))^((int8_t)(si2)))) <
((int8_t)0)) \
? ((int8_t)(si1)) \
: (((int8_t)(si1)) - ((int8_t)(si2))) \
)
#define safe_mod_macro_int16_t_s_s(si1,si2) \
(((((int16_t)(si2)) == ((int16_t)0)) || ((((int16_t)(si1)) == (INT16_MIN)) &&
(((int16_t)(si2)) == ((int16_t)-1)))) \
? ((int16_t)(si1)) \
: (((int16_t)(si1)) % ((int16_t)(si2))))
#define safe_mul_macro_uint8_t_u_u(ui1,ui2) \
(((uint8_t)(ui1)) * ((uint8_t)(ui2)))
static uint8_t
safe_mul_func_uint8_t_u_u (uint8_t _ui1, uint8_t _ui2)
{
return safe_mul_macro_uint8_t_u_u(_ui1,_ui2);
}
uint32_t g_14;
void func_13 (uint32_t p_15);
void func_13 (uint32_t p_15)
{
for (g_14 = -21; g_14 >= 12; g_14 = safe_add_func_int64_t_s_s (g_14, 1))
{
uint32_t l_17 = 1;
uint32_t l_20;
(safe_lshift_func_uint16_t_u_s
((safe_sub_macro_int8_t_s_s (p_15, 1)), 1))
&& (safe_mod_macro_int16_t_s_s (l_17, p_15)) ||
safe_mul_func_uint8_t_u_u (l_20, 1);
}
}
int main (void)
{
func_13 (1);
printf ("%d\n", g_14);
return 0;
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu Jan 8 09:34:29 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 8 Jan 2009 09:34:29 -0600
Subject: [LLVMbugs] [Bug 3298] New: Assertion `New != this &&
"this->replaceAllUsesWith(this) is NOT valid!"'
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3298
Summary: Assertion `New != this && "this-
>replaceAllUsesWith(this) is NOT valid!"'
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu
This works up to and including r61492 on Ubuntu Hardy on x86, and breaks in
more recent versions.
regehr at john-home:~/volatile/tmp115$ llvm-gcc -O2 small.c
cc1: Value.cpp:317: void llvm::Value::replaceAllUsesWith(llvm::Value*):
Assertion `New != this && "this->replaceAllUsesWith(this) is NOT valid!"'
failed.
small.c:29: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
regehr at john-home:~/volatile/tmp115$ cat small.c
char
safe_div_func_char_s_s (char _si1, char _si2)
{
return 1 && _si2 ? : _si2;
}
int
safe_sub_func_int64_t_s_s (int _si1, int _si2)
{
return 1 << _si2;
}
int
func (int p_79, int p_80)
{
char l_82 = 1;
for (p_80 = 0; p_80;)
{
for (p_79 = 1; p_79 <= 0; p_79 = safe_sub_func_int64_t_s_s (p_79, 0)) {
l_82 = 0;
}
if (p_80) {
for (; p_80; p_80 = 1) {
safe_div_func_char_s_s (p_79, l_82);
}
}
}
return safe (l_82);
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 8 11:17:03 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 8 Jan 2009 11:17:03 -0600
Subject: [LLVMbugs] [Bug 3299] New: LLVM optimizer can' t eliminate loop
with floating point counter
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3299
Summary: LLVM optimizer can't eliminate loop with floating point
counter
Product: libraries
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: Loop Optimizer
AssignedTo: unassignedbugs at nondot.org
ReportedBy: syoyofujita at gmail.com
CC: llvmbugs at cs.uiuc.edu
LLVM optimizer fails to eliminate following dead loop with floating point
counter.
(The exception is that i is incremented by 1.0f)
/* floop.c */
void
func() {
float i;
for (i = 0.0f; i < 1000.0f; i += 1.2f) {
}
}
$ clang -emit-llvm-bc floop.c
$ opt -std-compile-opts floop.bc | llvm-dis
opt -std-compile-opts test.bc | llvm-dis
; ModuleID = ''
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i386-apple-darwin9"
define void @func(...) nounwind readnone {
entry:
br label %for.inc
for.inc: ; preds = %for.inc, %entry
%i.0.reg2mem.0 = phi float [ 0.000000e+00, %entry ], [ %add, %for.inc
]; [#uses=1]
%add = add float %i.0.reg2mem.0, 0x3FF3333340000000 ;
[#uses=2]
%cmp = fcmp olt float %add, 1.000000e+03 ;
[#uses=1]
br i1 %cmp, label %for.inc, label %return
return: ; preds = %for.inc
ret void
}
(loop wasn't eliminated after optimization)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 8 11:50:07 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 8 Jan 2009 11:50:07 -0600
Subject: [LLVMbugs] [Bug 3301] New: x(x){} confuses clang.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3301
Summary: x(x){} confuses clang.
Product: clang
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: AST
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: bolzoni at cs.unipr.it
CC: llvmbugs at cs.uiuc.edu, bagnara at cs.unipr.it
Small test case:
$ cat x.c
x(x){ return x; }
$ clang x.c
f.c:1:1: error: redefinition of 'x' as different kind of symbol
x(x){ return x; }
^
f.c:1:3: note: previous definition is here
x(x){ return x; }
^
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 Jan 8 13:05:49 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 8 Jan 2009 13:05:49 -0600
Subject: [LLVMbugs] [Bug 3281] diagnostics in LLParser
In-Reply-To:
Message-ID: <200901081905.n08J5nAS030671@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3281
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #10 from Chris Lattner 2009-01-08 13:05:48 ---
Thanks Dan, 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 Thu Jan 8 23:47:17 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 8 Jan 2009 23:47:17 -0600
Subject: [LLVMbugs] [Bug 3290] scalarrepl doesn' t promote alloca in
2008-03-24-BitField-And-Alloca.c
In-Reply-To:
Message-ID: <200901090547.n095lHgA027515@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3290
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #8 from Chris Lattner 2009-01-08 23:47:17 ---
Part 3 is implemented here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090105/071949.html
This test is now passing, reenabled here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090105/071950.html
-Chris
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 8 23:58:58 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 8 Jan 2009 23:58:58 -0600
Subject: [LLVMbugs] [Bug 3270] Strange function declaration brings confusion
to clang.
In-Reply-To:
Message-ID: <200901090558.n095ww8L027911@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3270
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #2 from Chris Lattner 2009-01-08 23:58:57 ---
Seems fine to me, this compiles as expected:
struct u { int a; };
struct u f();
struct u *s, g();
void foo() { g(); }
The AST dump also looks right:
(CompoundStmt 0x2004a50
(CallExpr 0x2004a30 'struct u'
(ImplicitCastExpr 0x2004a10 'struct u (*)()'
(DeclRefExpr 0x20049d0 'struct u ()' FunctionDecl='g'
0x20048c0))))
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 9 00:08:53 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 9 Jan 2009 00:08:53 -0600
Subject: [LLVMbugs] [Bug 3298] Assertion `New != this &&
"this->replaceAllUsesWith(this) is NOT valid!"'
In-Reply-To:
Message-ID: <200901090608.n0968rCm028281@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3298
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Chris Lattner 2009-01-09 00:08:53 ---
Fixed:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090105/071953.html
Thanks John and DanspaceG!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 9 00:12:47 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 9 Jan 2009 00:12:47 -0600
Subject: [LLVMbugs] [Bug 3302] New: yet another math bug??
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3302
Summary: yet another math bug??
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu
This one first appears in r61493 on Ubuntu Hardy on x86.
Unlike 3294 and 3296, it does not involve the induction variable.
Also, unlike the others, this testcase is super simple, so should be an easy
one!
llvm-gcc is valgrind-clean at -O2 for this testcase.
regehr at john-home:~/volatile/tmp118$ llvm-gcc -O1 small.c -o small
regehr at john-home:~/volatile/tmp118$ ./small
11
regehr at john-home:~/volatile/tmp118$ llvm-gcc -O2 small.c -o small
regehr at john-home:~/volatile/tmp118$ ./small
1
regehr at john-home:~/volatile/tmp118$ cat small.c
#include
static unsigned
safe_sub_func_unsigned_u_u (unsigned _ui1, unsigned _ui2)
{
return _ui1 - _ui2;
}
unsigned g_57;
void func_1 (void);
void func_1 (void)
{
unsigned l_65;
for (l_65 = 10; l_65 < 19; l_65 = safe_sub_func_unsigned_u_u (l_65, 1))
{
g_57++;
}
}
int
main (void)
{
func_1 ();
printf ("%d\n", g_57);
return 0;
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri Jan 9 02:02:22 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 9 Jan 2009 02:02:22 -0600
Subject: [LLVMbugs] [Bug 2293] lli/llc crash with "Cannot promote to smaller
type"
In-Reply-To:
Message-ID: <200901090802.n0982Mod031843@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=2293
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Dan Gohman 2009-01-09 02:02:22 ---
LegalizeTypes is now enabled by default in svn. The given testcase
now compiles cleanly.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 9 02:16:59 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 9 Jan 2009 02:16:59 -0600
Subject: [LLVMbugs] [Bug 2659] redundant movl generated on x86
In-Reply-To:
Message-ID: <200901090816.n098Gxm4032435@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=2659
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Dan Gohman 2009-01-09 02:16:59 ---
This is fixed in r61847.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 9 03:08:43 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 9 Jan 2009 03:08:43 -0600
Subject: [LLVMbugs] [Bug 3303] New: CMake building config files for Mingw32
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3303
Summary: CMake building config files for Mingw32
Product: tools
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Keywords: build-problem, portability
Severity: major
Priority: P2
Component: llvm-config
AssignedTo: unassignedbugs at nondot.org
ReportedBy: yonggangluo at hotmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2372)
--> (http://llvm.org/bugs/attachment.cgi?id=2372)
for llvm svn version
Because the config files are not write proper for Mingw32, so I modified these
files. And now it can work on Windows platform proper for mingw32-make, and can
be execute under cmd.exe, and don't need run a bash . But it's also need msys
now.
because it's can execute by cmd.exe, so it's can work with CodeBlocks -win32.
But I don't test it under ix-like system. So please test it before commit it.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri Jan 9 06:06:34 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 9 Jan 2009 06:06:34 -0600
Subject: [LLVMbugs] [Bug 3304] New: Crash in RewriteStoreUserOfWholeAlloca
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3304
Summary: Crash in RewriteStoreUserOfWholeAlloca
Product: new-bugs
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
$ opt -scalarrepl x.bc -disable-output
opt: lib/VMCore/Type.cpp:1023: static const llvm::IntegerType*
llvm::IntegerType::get(unsigned int): Assertion `NumBits >= MIN_INT_BITS &&
"bitwidth too small"' failed.
...
The bitwidth is zero! Doubtless due to the empty struct type. Testcase:
%struct.c37304a__vrec = type { i8, %struct.c37304a__vrec___disc___XVN }
%struct.c37304a__vrec___disc___XVN = type {
%struct.c37304a__vrec___disc___XVN___O }
%struct.c37304a__vrec___disc___XVN___O = type { }
define void @_ada_c37304a() {
entry:
%v = alloca %struct.c37304a__vrec ;
<%struct.c37304a__vrec*> [#uses=1]
%0 = getelementptr %struct.c37304a__vrec* %v, i32 0, i32 0
; [#uses=1]
store i8 8, i8* %0, align 1
unreachable
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri Jan 9 09:15:43 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 9 Jan 2009 09:15:43 -0600
Subject: [LLVMbugs] [Bug 3293] llvm-gcc: llvm-gcc/gcc/libgcc2.c:809:
internal compiler error: Aborted
In-Reply-To:
Message-ID: <200901091515.n09FFhcE026293@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3293
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #3 from Duncan Sands 2009-01-09 09:15:42 ---
> I wrote the gcc version in bug report, 4.1.2 (+ PLD patches).
So you did, d'oh! The gcc 4.1.2 compiler is known to be
broken on many platforms, see
http://llvm.org/docs/GettingStarted.html#brokengcc
The typical symptom is that people get the error you are
getting, so I'm pretty sure this is the cause.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 9 12:19:18 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 9 Jan 2009 12:19:18 -0600
Subject: [LLVMbugs] [Bug 3304] Crash in RewriteStoreUserOfWholeAlloca
In-Reply-To:
Message-ID: <200901091819.n09IJI95032752@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3304
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Chris Lattner 2009-01-09 12:19:18 ---
Sorry, I'm being an idiot again. Fixed here, thanks!
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090105/071965.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 Jan 9 12:35:36 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 9 Jan 2009 12:35:36 -0600
Subject: [LLVMbugs] [Bug 3305] New: clang emits wrong type warning:
incompatible pointer types passing 'struct logfile *',
expected ' struct logfile *'
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3305
Summary: clang emits wrong type warning: incompatible pointer
types passing 'struct logfile *', expected 'struct
logfile *'
Product: clang
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu
attached (gcc -E processed) test case emits this:
....
screen.c:6101:17: warning: incompatible pointer types passing 'struct logfile
*', expected 'struct logfile *'
logfwrite(p->w_log, buf, strlen(buf));
^~~~~~~~
there are many cases of this strange warning, clang as of Jan 7th does not
exhibit this behaviour
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 9 14:44:45 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 9 Jan 2009 14:44:45 -0600
Subject: [LLVMbugs] [Bug 3306] New: gcc compat: empty declarations are
errors not warnings
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3306
Summary: gcc compat: empty declarations are errors not warnings
Product: clang
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: trivial
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
clang rejects this code which gcc accepts with a warning:
--
__attribute__((visibility("default")));
--
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 9 14:54:55 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 9 Jan 2009 14:54:55 -0600
Subject: [LLVMbugs] [Bug 3307] New: gcc compat: clang rejects pointer/ int
mismatch in conditional expression
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3307
Summary: gcc compat: clang rejects pointer/int mismatch in
conditional expression
Product: clang
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
clang rejects the following code which gcc accepts with a warning:-
--
ddunbar at lordcrumb:hard$ cat conditional-compat.c
void f0(int a0, void *a1, int a2) {
a0 ? a1 : a2;
}
ddunbar at lordcrumb:hard$ clang -fsyntax-only conditional-compat.c
conditional-compat.c:2:6: error: incompatible operand types ('void *' and
'int')
a0 ? a1 : a2;
^ ~~ ~~
1 diagnostic generated.
ddunbar at lordcrumb:hard$ gcc -fsyntax-only conditional-compat.c
conditional-compat.c: In function 'f0':
conditional-compat.c:2: warning: pointer/integer type mismatch in conditional
expression
--
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 10 14:12:26 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 10 Jan 2009 14:12:26 -0600
Subject: [LLVMbugs] [Bug 3311] New: llvm-gcc bootstrap broken on x86-64 linux
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3311
Summary: llvm-gcc bootstrap broken on x86-64 linux
Product: new-bugs
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
Fails during stage2, when running the compiler built with the compiler
built during stage1:
xgcc ... -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions
-fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-omit-frame-pointer
-fno-asynchronous-unwind-tables \
-c ../../gcc-4.2.llvm/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
In file included from /usr/include/string.h:423,
from ../../gcc-4.2.llvm/gcc/tsystem.h:103,
from ../../gcc-4.2.llvm/gcc/crtstuff.c:68:
/usr/include/bits/string2.h: In function ???__strpbrk_c2???:
/usr/include/bits/string2.h:1129: internal compiler error: Segmentation fault
Steps to reproduce: bootstrap llvm-gcc. A non-bootstrap build is not enough.
I see this on two different x86-64 linux boxes.
Bisection shows it was broken by this commit:
------------------------------------------------------------------------
r61847 | evancheng | 2009-01-07 03:08:57 +0100 (Wed, 07 Jan 2009) | 10 lines
The coalescer does not coalesce a virtual register to a physical register if
any of the physical register's sub-register live intervals overlaps with the
virtual register. This is overly conservative. It prevents a extract_subreg
from being coalesced away:
v1024 = EDI // not killed
=
= EDI
One possible solution is for the coalescer to examine the sub-register live
intervals in the same manner as the physical register. Another possibility is
to examine defs and uses (when needed) of sub-registers. Both solutions are too
expensive. For now, look for "shortvirtual intervals" and scan instructions to
look for conflict instead.
This is a small win on x86-64. e.g. It shaves 403.gcc by ~80 instructions.
------------------------------------------------------------------------
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sat Jan 10 16:39:56 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 10 Jan 2009 16:39:56 -0600
Subject: [LLVMbugs] =?utf-8?q?=5BBug_3312=5D_New=3A__Recent_breakage_relat?=
=?utf-8?b?ZWQgdG8g4oCYZW51bXPigJkgaW4gcjYyMDE2?=
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3312
Summary: Recent breakage related to ???enums??? in r62016
Product: clang
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: danchr at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2375)
--> (http://llvm.org/bugs/attachment.cgi?id=2375)
getopt.i (preprocessed, darwin/ppc)
I was recently able to compile GNU Emacs using Clang, but now I get compiler
errors. Reverting r62016 fixed one of the files, the pre-processed output of
which is attached below.
This may be related to an ???enum??? being declared within a ???struct???.
2009-01-09 Douglas Gregor
* lib/Sema/SemaDecl.cpp:
Don't bother setting NextDeclarator for EnumConstantDecls. It isn't
used
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 11 09:13:25 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 11 Jan 2009 09:13:25 -0600
Subject: [LLVMbugs] [Bug 3313] New: LangRef never defines syntax for type
symbol table
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3313
Summary: LangRef never defines syntax for type symbol table
Product: Documentation
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: General docs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nicholas at mxc.ca
CC: llvmbugs at cs.uiuc.edu
This sort of code:
%struct.foo = type { i32, i32 }
is never defined by the LangRef, though it's used in the example for
getelementptr. That should be in there somewhere. It should also make it clear
whether it applies to all Types or just StructType, and what the behaviour is
on multiple definitions of the same type (currently we silently collapse them
and pick one name).
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun Jan 11 13:21:42 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 11 Jan 2009 13:21:42 -0600
Subject: [LLVMbugs] [Bug 3314] New: clang treats local array with constant
var as size as VLA
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3314
Summary: clang treats local array with constant var as size as
VLA
Product: clang
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: AST
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: pelle at morth.org
CC: llvmbugs at cs.uiuc.edu
Example:
void tests_const_var_array(void)
{
const int sz = 10;
int arr[sz];
arr[0] = 1;
}
$ ccc -c bing.c
bing.c
clang -emit-llvm-bc -x c -o bing.o bing.c
Assertion failed: (0 && "FIXME: Local VLAs not implemented yet"), function
EmitLocalBlockVarDecl, file
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-devel/work/llvm-53722/tools/clang/lib/CodeGen/CGDecl.cpp,
line 162.
Expected result:
clang should realize sz is constant and treat this as a normal array, not a
VLA.
If nothing else, this should be considered when local VLAs are implemented.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 11 13:53:12 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 11 Jan 2009 13:53:12 -0600
Subject: [LLVMbugs] [Bug 3314] clang treats local array with constant var as
size as VLA
In-Reply-To:
Message-ID: <200901111953.n0BJrCu5013263@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3314
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Chris Lattner 2009-01-11 13:53:11 ---
Clang is doing the right thing there. Per the C definition, that is a VLA. I
would much rather implement VLAs that add hacks to work around them being
missing. Thanks for filing the bug 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 Sun Jan 11 14:26:13 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 11 Jan 2009 14:26:13 -0600
Subject: [LLVMbugs] [Bug 3315] New: Error on the attached file
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3315
Summary: Error on the attached file
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Target Description Classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: andersca at mac.com
CC: llvmbugs at cs.uiuc.edu
The attached file causes the following error in llc
Cannot yet select: 0x180ecf4: ch = declare 0x180f024, 0x180ef14, 0x180ee04
0 llc 0x008704ae char const* std::find(char
const*, char const*, char const&) + 98
1 llc 0x008709e3 llvm::sys::PrintStackTraceOnErrorSignal() +
593
2 libSystem.B.dylib 0x9655b2bb _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp + 1772768623
4 libSystem.B.dylib 0x965cf23a raise + 26
5 libSystem.B.dylib 0x965db679 abort + 73
6 llc 0x0032ba2d (anonymous
namespace)::X86ISelAddressMode::dump() + 1185
7 llc 0x00340291 bool
llvm::isa_impl_cl::isa(llvm::SDNode*) +
13813
8 llc 0x0045710b llvm::cast_retty::ret_type llvm::dyn_cast(llvm::SDValue const&) + 1024401
9 llc 0x002baec7
llvm::createX86ISelDag(llvm::X86TargetMachine&, bool) + 16145
10 llc 0x0045b363 llvm::cast_retty::ret_type llvm::dyn_cast(llvm::SDValue const&) + 1041385
11 llc 0x002bd923
llvm::createX86ISelDag(llvm::X86TargetMachine&, bool) + 26989
12 llc 0x005811d8 llvm::SelectionDAGISel::CodeGenAndEmitDAG() +
2930
13 llc 0x00582e4f
llvm::SelectionDAGISel::SelectBasicBlock(llvm::BasicBlock*,
llvm::ilist_iterator,
llvm::ilist_iterator) + 575
14 llc 0x00583698
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function&,
llvm::MachineFunction&, llvm::MachineModuleInfo*, llvm::TargetInstrInfo const&)
+ 2100
15 llc 0x00583a55
llvm::SelectionDAGISel::runOnFunction(llvm::Function&) + 873
16 llc 0x007f51bc
llvm::FPPassManager::runOnFunction(llvm::Function&) + 270
17 llc 0x007f5412
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 116
18 llc 0x007f5598
llvm::FunctionPassManager::run(llvm::Function&) + 156
19 llc 0x000034c5 main + 2615
20 llc 0x00002236 start + 54
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 11 14:54:16 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 11 Jan 2009 14:54:16 -0600
Subject: [LLVMbugs] [Bug 3313] LangRef never defines syntax for type symbol
table
In-Reply-To:
Message-ID: <200901112054.n0BKsG8f015375@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3313
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Lattner 2009-01-11 14:54:15 ---
Here ya go:
http://llvm.org/docs/LangRef.html#namedtypes
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 11 21:21:43 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 11 Jan 2009 21:21:43 -0600
Subject: [LLVMbugs] [Bug 3244] ice: Don't know how to copy this physical
register!
In-Reply-To:
Message-ID: <200901120321.n0C3Lh1t027925@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3244
Evan Cheng changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Evan Cheng 2009-01-11 21:21:42 ---
Fixed.
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090105/072022.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 Jan 12 09:02:20 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 12 Jan 2009 09:02:20 -0600
Subject: [LLVMbugs] [Bug 3288] Multi-dimensional aggregate assert failure in
SelectionDAGLowering
In-Reply-To:
Message-ID: <200901121502.n0CF2Kat029054@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3288
Mark Leone changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Mark Leone 2009-01-12 09:02:16 ---
Fixed by Dan Gohman in r61828.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 12 11:53:32 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 12 Jan 2009 11:53:32 -0600
Subject: [LLVMbugs] [Bug 3316] New: Constant folding for 'frem' is flaky
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3316
Summary: Constant folding for 'frem' is flaky
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: markleone at gmail.com
CC: llvmbugs at cs.uiuc.edu
Constant folding for 'frem' seems flaky for certain values. For example, "frem
float 0.1, 1.0" returns -0.9 when constant folded:
define float @test1() {
entry:
%y = frem float 0x3FB99999A0000000, 1.0
ret float %y
}
@x = global float 0x3FB99999A0000000 ; float 0.1
define float @test2() {
%x = load float* @x
%y = frem float %x, 1.0
ret float %y
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 12 12:07:06 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 12 Jan 2009 12:07:06 -0600
Subject: [LLVMbugs] [Bug 3317] New: APint error during x86 lowering
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3317
Summary: APint error during x86 lowering
Product: libraries
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nicolas.geoffray at lip6.fr
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2381)
--> (http://llvm.org/bugs/attachment.cgi?id=2381)
Bug test case
With the attached test case, I try to compile with llc -march=x86 (other
platforms work) but get the error:
llc: APInt.cpp:942: llvm::APInt& llvm::APInt::zext(uint32_t): Assertion `width
> BitWidth && "Invalid APInt ZeroExtend request"' failed.
0 llc 0x08a241ee
1 0xffffe420 + 0
2 0xffffe410 + 16
3 libc.so.6 0xb7cf4d90 gsignal + 80
4 libc.so.6 0xb7cf67f8 abort + 392
5 libc.so.6 0xb7cedcce __assert_fail + 238
6 llc 0x089e66c2 llvm::APInt::zext(unsigned int) + 242
7 llc 0xffffffff llvm::APInt::zext(unsigned int) + 4150368815
The complete backtrace is:
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7d06d90 in raise () from /lib/i686/libc.so.6
#2 0xb7d087f8 in abort () from /lib/i686/libc.so.6
#3 0xb7cffcce in __assert_fail () from /lib/i686/libc.so.6
#4 0x089e66c2 in llvm::APInt::zext ()
#5 0x0867cb1b in llvm::TargetLowering::SimplifyDemandedBits ()
#6 0x0867f3b4 in llvm::TargetLowering::SimplifyDemandedBits ()
#7 0x0859924f in (anonymous namespace)::DAGCombiner::SimplifyDemandedBits ()
#8 0x085ad7b3 in (anonymous namespace)::DAGCombiner::visitXOR ()
#9 0x085c3dac in (anonymous namespace)::DAGCombiner::visit ()
#10 0x085c4844 in (anonymous namespace)::DAGCombiner::combine ()
#11 0x085c6096 in (anonymous namespace)::DAGCombiner::Run ()
#12 0x085c65d0 in llvm::SelectionDAG::Combine ()
#13 0x08663f72 in llvm::SelectionDAGISel::CodeGenAndEmitDAG ()
#14 0x08665c68 in llvm::SelectionDAGISel::SelectBasicBlock ()
#15 0x08667be3 in llvm::SelectionDAGISel::SelectAllBasicBlocks ()
#16 0x08668f80 in llvm::SelectionDAGISel::runOnFunction ()
#17 0x089a5f2e in llvm::FPPassManager::runOnFunction ()
#18 0x089a6b4c in llvm::FunctionPassManagerImpl::run ()
#19 0x089a6d7f in llvm::FunctionPassManager::run ()
#20 0x08118cb4 in main ()
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 12 12:51:20 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 12 Jan 2009 12:51:20 -0600
Subject: [LLVMbugs] [Bug 3305] clang emits wrong type warning: incompatible
pointer types passing 'struct logfile *', expected ' struct logfile *'
In-Reply-To:
Message-ID: <200901121851.n0CIpKPj006053@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3305
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Douglas Gregor 2009-01-12 12:51:19 ---
Fixed in r62091
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 12 12:51:33 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 12 Jan 2009 12:51:33 -0600
Subject: [LLVMbugs] =?utf-8?q?=5BBug_3312=5D__Recent_breakage_related_to_?=
=?utf-8?b?4oCYZW51bXPigJk=?=
In-Reply-To:
Message-ID: <200901121851.n0CIpXEq006087@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3312
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #6 from Douglas Gregor 2009-01-12 12:51:33 ---
Fixed in r62091
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 12 13:47:09 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 12 Jan 2009 13:47:09 -0600
Subject: [LLVMbugs] [Bug 3318] New: Aggregate return error in
CCState::AnalyzeCallResult
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3318
Summary: Aggregate return error in CCState::AnalyzeCallResult
Product: libraries
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: markleone at gmail.com
CC: llvmbugs at cs.uiuc.edu
I'm getting an error ("Call result #2 has unhandled type i32") for a function
that returns an aggregate in CCState::AnalyzeCallResult. For example,
declare [3 x i32] @test1()
define void @test2() {
%x = call [3 x i32] @test1()
ret void
}
The error is also triggered for aggregates like {i32, i32, i32}, but it works
fine for [2 x i32] or {i32, i32}. Here's the stack trace:
llvm::CCState::AnalyzeCallResult(llvm::CallSDNode*, bool (*)(unsigned int,
llvm::MVT, llvm::MVT, llvm::CCValAssign::LocInfo, llvm::ISD::ArgFlagsTy,
llvm::CCState&)) + 309
llvm::X86TargetLowering::LowerCallResult(llvm::SDValue, llvm::SDValue,
llvm::CallSDNode*, unsigned int, llvm::SelectionDAG&) + 138
llvm::X86TargetLowering::LowerCALL(llvm::SDValue, llvm::SelectionDAG&) + 7702
llvm::X86TargetLowering::LowerOperation(llvm::SDValue, llvm::SelectionDAG&) +
1761
llvm::cast_retty::ret_type
llvm::cast(llvm::DebugInfoDesc*
const&) + 45271
llvm::cast_retty::ret_type
llvm::cast(llvm::DebugInfoDesc*
const&) + 223622
llvm::cast_retty::ret_type
llvm::cast(llvm::DebugInfoDesc*
const&) + 224700
llvm::SelectionDAG::Legalize(bool) + 64
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 2080
llvm::SelectionDAGISel::SelectBasicBlock(llvm::BasicBlock*,
llvm::ilist_iterator,
llvm::ilist_iterator) + 575
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function&,
llvm::MachineFunction&, llvm::MachineModuleInfo*, llvm::TargetInstrInfo const&)
+ 2100
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 12 15:13:40 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 12 Jan 2009 15:13:40 -0600
Subject: [LLVMbugs] [Bug 3319] New: remove useless warning in printf checker
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3319
Summary: remove useless warning in printf checker
Product: clang
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu
clang emits a warning for this:
string-literal.c:5:14: warning: format string is not a string literal
(potentially insecure)
printf(i == 1 ? "yes" : "no");
^~~~~~~~~~~~~~~~~~~~~
the attached patch implements checking of ConditionalOperators, test case is
also 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 Jan 12 16:20:46 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 12 Jan 2009 16:20:46 -0600
Subject: [LLVMbugs] [Bug 3318] Aggregate return error in
CCState::AnalyzeCallResult
In-Reply-To:
Message-ID: <200901122220.n0CMKkmK014911@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3318
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gohman at apple.com
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Dan Gohman 2009-01-12 16:20:46 ---
This problem is being tracked with PR2660.
*** This bug has been marked as a duplicate of bug 2660 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 12 17:10:31 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 12 Jan 2009 17:10:31 -0600
Subject: [LLVMbugs] [Bug 3319] remove useless warning in printf checker
In-Reply-To:
Message-ID: <200901122310.n0CNAV6N017066@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3319
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Ted Kremenek 2009-01-12 17:10:30 ---
(In reply to comment #5)
> Created an attachment (id=2384)
--> (http://llvm.org/bugs/attachment.cgi?id=2384) [details]
> new version of the patch
>
Applied:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090112/010779.html
Thanks so much!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 12 17:43:10 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 12 Jan 2009 17:43:10 -0600
Subject: [LLVMbugs] [Bug 1750] clang rejects ia32_signal.i (anonymous unions)
In-Reply-To:
Message-ID: <200901122343.n0CNhAYU018361@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=1750
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #15 from Douglas Gregor 2009-01-12 17:43:09 ---
Closing this bug; we've dealt with all of the subproblems.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 12 21:59:55 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 12 Jan 2009 21:59:55 -0600
Subject: [LLVMbugs] [Bug 3311] llvm-gcc bootstrap broken on x86-64 linux
In-Reply-To:
Message-ID: <200901130359.n0D3xtaI027014@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3311
Evan Cheng changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #14 from Evan Cheng 2009-01-12 21:59:55 ---
Fixed.
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090112/072061.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 Jan 12 23:19:41 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 12 Jan 2009 23:19:41 -0600
Subject: [LLVMbugs] [Bug 3320] New: volatile array bug in llvm-g++
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3320
Summary: volatile array bug in llvm-g++
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu
We'd expect the compiler to generate code reading each element of a[] twice,
but that is not what happens on Ubuntu Hardy on x86 using r62045. Oddly,
llvm-gcc gets this case right.
regehr at john-home:~$ cat vol.c
#define N 3
typedef volatile int vint;
int sum(vint a[N]) {
int sum = 0;
unsigned i;
for (i = 0; i < N; i++)
sum += a[i] + a[i];
return sum;
}
regehr at john-home:~$ llvm-g++ -O3 vol.c -S -o - -fomit-frame-pointer
.ident "GCC: (GNU) 4.2.1 (Based on Apple Inc. build 5628) (LLVM
build)"
.file "vol.c"
.text
.align 16
.globl _Z3sumPVi
.type _Z3sumPVi, at function
_Z3sumPVi:
movl 4(%esp), %eax
movl 4(%eax), %ecx
movl (%eax), %edx
addl %edx, %edx
leal (%edx,%ecx,2), %ecx
movl 8(%eax), %eax
leal (%ecx,%eax,2), %eax
ret
.size _Z3sumPVi, .-_Z3sumPVi
.section .note.GNU-stack,"", at progbits
regehr at john-home:~$
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 13 06:55:23 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 13 Jan 2009 06:55:23 -0600
Subject: [LLVMbugs] [Bug 3321] New: incorrect optimisation of linked list
code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3321
Summary: incorrect optimisation of linked list code
Product: libraries
Version: 2.4
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Interprocedural Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jay.foad at antixlabs.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2385)
--> (http://llvm.org/bugs/attachment.cgi?id=2385)
source file
The attached program should return 42. But if I build it with llvm-gcc on
Linux/x86, I get non-deterministic results:
$ ~/llvm/llvm-gcc4.2-2.4-x86-linux-RHEL4/bin/llvm-gcc -O2 -o f f.c
$ ./f ; echo $?
212
$ ./f ; echo $?
164
$ ./f ; echo $?
212
$ ./f ; echo $?
180
It looks like the optimizers have replaced all my code with "ret i32 undef".
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 13 10:12:13 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 13 Jan 2009 10:12:13 -0600
Subject: [LLVMbugs] [Bug 3251] ice: Invalid node ID for RAUW analysis!
In-Reply-To:
Message-ID: <200901131612.n0DGCDGc031174@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3251
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Duncan Sands 2009-01-13 10:12:12 ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090112/072095.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 Jan 13 14:01:18 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 13 Jan 2009 14:01:18 -0600
Subject: [LLVMbugs] [Bug 3310] declaration of vars with undefined structured
type is rejected
In-Reply-To:
Message-ID: <200901132001.n0DK1Ix4006650@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3310
Nuno Lopes changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |llvmbugs at cs.uiuc.edu,
| |nunoplopes at sapo.pt
AssignedTo|kremenek at apple.com |unassignedclangbugs at nondot.o
| |rg
Component|Static Analyzer |Semantic Analyzer
Summary|Analyzer failures when |declaration of vars with
|scanning coreboot firmware |undefined structured type is
| |rejected
--- Comment #1 from Nuno Lopes 2009-01-13 14:01:17 ---
the parser rejects are all reduced to this simple test case:
struct foo bar;
'gcc -fsyntax-only' accepts this with *no warning* (weird..), while clang
rejects it.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Tue Jan 13 14:04:58 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 13 Jan 2009 14:04:58 -0600
Subject: [LLVMbugs] [Bug 1954] incorrect type+warning for "unnamed" union
In-Reply-To:
Message-ID: <200901132004.n0DK4wng006810@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=1954
Nuno Lopes changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #8 from Nuno Lopes 2009-01-13 14:04:58 ---
I believe this is now 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 Jan 13 14:19:14 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 13 Jan 2009 14:19:14 -0600
Subject: [LLVMbugs] [Bug 2248] Clang cannot compile its preprocessed output
with same flags
In-Reply-To:
Message-ID: <200901132019.n0DKJELU007472@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=2248
Nuno Lopes changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nunoplopes at sapo.pt
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Nuno Lopes 2009-01-13 14:19:13 ---
this bug is not reproduceable with bundled headers.
This was probably related with gcc's PR35460 (i.e. broken headers in some
systems).
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 13 18:13:23 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 13 Jan 2009 18:13:23 -0600
Subject: [LLVMbugs] [Bug 3321] incorrect optimisation of linked list code
In-Reply-To:
Message-ID: <200901140013.n0E0DNnn016914@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3321
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Chris Lattner 2009-01-13 18:13:23 ---
Fixed:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090112/072133.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 Jan 14 00:37:44 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 14 Jan 2009 00:37:44 -0600
Subject: [LLVMbugs] [Bug 3322] New: __dyld_misaligned_stack_error on Mac OS
X 10. 5 x86 when using system call
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3322
Summary: __dyld_misaligned_stack_error on Mac OS X 10.5 x86 when
using system call
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Interpreter
AssignedTo: unassignedbugs at nondot.org
ReportedBy: alexei.svitkine at gmail.com
CC: llvmbugs at cs.uiuc.edu
When using the Interpeter to execute the following code compiled with clang:
#include ::visitCall
(this=0x1c054f0, I=@0x1c0a518) at Instruction.def:159
#10 0x002f6b2a in llvm::InstVisitor::visit
(this=0x1c054f0, I=@0x1c0a518) at Instruction.def:159
#11 0x002e9e17 in llvm::Interpreter::run (this=0x1c054f0) at Execution.cpp:1345
#12 0x002eeda4 in llvm::Interpreter::runFunction (this=0x1c054f0, F=0x1c09290,
ArgValues=@0xbffff3ec) at Interpreter.cpp:100
#13 0x0031639b in llvm::ExecutionEngine::runFunctionAsMain (this=0x1c054f0,
Fn=0x1c09290, argv=@0xbffff614, envp=0x0) at ExecutionEngine.cpp:357
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 14 04:54:49 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 14 Jan 2009 04:54:49 -0600
Subject: [LLVMbugs] [Bug 3323] New: AliasAnalysis pass removed before
function pass can use it
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3323
Summary: AliasAnalysis pass removed before function pass can use
it
Product: libraries
Version: 2.3
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core LLVM classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: hvdieren at elis.ugent.be
CC: hvdieren at elis.ugent.be, llvmbugs at cs.uiuc.edu
The following command line suggests that the LICM pass can use the Andersens
Alias Analysis (for instance) to do its alias analysis:
$ opt -debug-pass=Structure -disable-opt -basicaa -anders-aa -licm in.bc -f -o
out.bc
But as the output shows, the AndersensAA, which is a ModulePass, is destroyed
before the FunctionPasses are run!
Pass Arguments: -anders-aa -domtree -loops -loopsimplify -domfrontier
-scalar-evolution -licm -preverify -domtree -verify
Target Data Layout
Basic Alias Analysis (default AA impl)
ModulePass Manager
Andersen's Interprocedural Alias Analysis
-- Andersen's Interprocedural Alias Analysis
FunctionPass Manager
Dominator Tree Construction
Natural Loop Construction
Canonicalize natural loops
Dominance Frontier Construction
Scalar Evolution Analysis
Loop Pass Manager
Loop Invariant Code Motion
-- Loop Invariant Code Motion
-- Canonicalize natural loops
-- Basic Alias Analysis (default AA impl)
-- Natural Loop Construction
-- Dominator Tree Construction
-- Dominance Frontier Construction
-- Scalar Evolution Analysis
Preliminary module verification
Dominator Tree Construction
Module Verifier
-- Preliminary module verification
-- Dominator Tree Construction
-- Module Verifier
Bitcode Writer
-- Bitcode Writer
The problem is thus that FunctionPasses (and other finer-grain passes) can
never benefit from detailed AliasAnalysis passes, which are invariably
ModulePasses.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 14 05:02:11 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 14 Jan 2009 05:02:11 -0600
Subject: [LLVMbugs] [Bug 3324] New: [XCore] assertion rematerialising LDWSP
instruction
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3324
Summary: [XCore] assertion rematerialising LDWSP instruction
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: richard at xmos.com
CC: llvmbugs at cs.uiuc.edu
In the target description LDWSP implicitly uses the SP register. This causes
LiveIntervals to assert when rematerialising stack slot loads with the
following code:
define double @f1(double %a, double %b, double %c, double %d, double %e, double
%f, double %g) nounwind {
entry:
br i1 false, label %bb113, label %bb129
bb113: ; preds = %entry
ret double 0.000000e+00
bb129: ; preds = %entry
%tmp134 = sub double %b, %a ; [#uses=1]
%tmp136 = sub double %tmp134, %c ; [#uses=1]
%tmp138 = add double %tmp136, %d ; [#uses=1]
%tmp140 = sub double %tmp138, %e ; [#uses=1]
%tmp142 = add double %tmp140, %f ; [#uses=1]
%tmp.0 = mul double %tmp142, 0.000000e+00 ;
[#uses=1]
ret double %tmp.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 Wed Jan 14 05:09:16 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 14 Jan 2009 05:09:16 -0600
Subject: [LLVMbugs] [Bug 3325] New: ipsccp vs invoke
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3325
Summary: ipsccp vs invoke
Product: libraries
Version: 2.4
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jay.foad at antixlabs.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2387)
--> (http://llvm.org/bugs/attachment.cgi?id=2387)
test case
The attached test program should return 42:
$ llvm-as -f -o invoke.bc invoke.ll
$ lli invoke.bc ; echo $?
42
But ipsccp breaks it:
$ opt -f -o opt.bc invoke.bc -ipsccp
$ lli opt.bc ; echo $?
16
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From xaero_1 at hotmail.com Wed Jan 14 02:31:53 2009
From: xaero_1 at hotmail.com (Lee Wanghao)
Date: Wed, 14 Jan 2009 16:31:53 +0800
Subject: [LLVMbugs] Ubuntu LLVM compiled a page of Simit-ARM with errors
Message-ID:
Hi Everyone,
I am new to LLVM and I am not sure if its capable of being a compilation
strategy to accelerate Dynamic Compiled Instruction set Simulation.
I have tried changing the source code of: http://simit-arm.sourceforge.net/ to
compile pages of C++ code (translated from Arm Assembly) on the fly using
llvm-g++ and it gave the following errors:
In file included from
/home/wanghao/Desktop/SimIt-ARM-3.0/build/include/bittypes.h:22,
from
/home/wanghao/Desktop/SimIt-ARM-3.0/build/include/misc.h:20,
from
/home/wanghao/Desktop/SimIt-ARM-3.0/build/include/armemul.h:20,
from
/home/wanghao/Desktop/SimIt-ARM-3.0/build/include/arch.hpp:120,
from
/home/wanghao/Desktop/SimIt-ARM-3.0/build/include/arch_jit.hpp:20,
from /home/wanghao/.ema/u512//Xcompiled_0.cpp:1:
/usr/include/inttypes.h:385: error: `__extern_inline' does not name a type
/usr/include/inttypes.h:401: error: `__extern_inline' does not name a type
/usr/include/inttypes.h:415: error: `__extern_inline' does not name a type
/usr/include/inttypes.h:432: error: `__extern_inline' does not name a type
In file included from
/home/wanghao/Desktop/SimIt-ARM-3.0/build/include/dyn_arm_emul.hpp:18,
from /home/wanghao/.ema/u512//Xcompiled_0.cpp:2:
/usr/include/pthread.h:1110: error: expected constructor, destructor, or type
conversion
/usr/include/pthread.h:1110: error: expected `,' or `;'
Total user time : 3.188 sec.
Total system time: 0.472 sec.
Simulation user time : 2.892 sec.
Simulation system time: 0.400 sec.
Caching user time : 0.296 sec.
Caching system time: 0.072 sec.
Simulation speed : 2.285e+07 inst/sec.
Total instructions : 83634854 (83M)
Requested blocks : 1.
Cache-hit count : 0.
Connected servers/threads : 2 of 2.
Compilation count :
thread 0: 0
thread 1: 0
Please also advise on whether LLVM-GCC is able to do any aid to Instruction Set
Simulation. Thanks in advance.
Regards
Wang Hao Lee
_________________________________________________________________
More than messages?check out the rest of the Windows Live?.
http://www.microsoft.com/windows/windowslive/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.uiuc.edu/pipermail/llvmbugs/attachments/20090114/93a325b2/attachment.html
From bugzilla-daemon at cs.uiuc.edu Wed Jan 14 12:34:01 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 14 Jan 2009 12:34:01 -0600
Subject: [LLVMbugs] [Bug 3324] [XCore] assertion rematerialising LDWSP
instruction
In-Reply-To:
Message-ID: <200901141834.n0EIY1gh032252@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3324
Richard Osborne changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Richard Osborne 2009-01-14 12:34:01 ---
Fixed in r62238
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090112/072150.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 Jan 14 15:01:50 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 14 Jan 2009 15:01:50 -0600
Subject: [LLVMbugs] [Bug 3325] ipsccp vs invoke
In-Reply-To:
Message-ID: <200901142101.n0EL1o1a004876@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3325
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Chris Lattner 2009-01-14 15:01:49 ---
Nice catch, your patch looks great! I committed it with a testcase here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090112/072158.html
Thanks!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From echeng at apple.com Wed Jan 14 12:20:45 2009
From: echeng at apple.com (Evan Cheng)
Date: Wed, 14 Jan 2009 10:20:45 -0800
Subject: [LLVMbugs] Ubuntu LLVM compiled a page of Simit-ARM with errors
In-Reply-To:
References:
Message-ID: <1F4C6884-0634-4117-871A-CC9DA856A8BE@apple.com>
Place post these types of questions to llvmdev.
That said, this looks like a frontend issue.
Evan
On Jan 14, 2009, at 12:31 AM, Lee Wanghao wrote:
> Hi Everyone,
>
> I am new to LLVM and I am not sure if its capable of being a
> compilation
> strategy to accelerate Dynamic Compiled Instruction set Simulation.
>
> I have tried changing the source code of: http://simit-arm.sourceforge.net/
> to
> compile pages of C++ code (translated from Arm Assembly) on the fly
> using
> llvm-g++ and it gave the following errors:
>
> In file included from
> /home/wanghao/Desktop/SimIt-ARM-3.0/build/include/bittypes.h:22,
> from
> /home/wanghao/Desktop/SimIt-ARM-3.0/build/include/misc.h:20,
> from
> /home/wanghao/Desktop/SimIt-ARM-3.0/build/include/armemul.h:20,
> from
> /home/wanghao/Desktop/SimIt-ARM-3.0/build/include/arch.hpp:120,
> from
> /home/wanghao/Desktop/SimIt-ARM-3.0/build/include/arch_jit.hpp:20,
> from /home/wanghao/.ema/u512//Xcompiled_0.cpp:1:
> /usr/include/inttypes.h:385: error: `__extern_inline' does not name
> a type
> /usr/include/inttypes.h:401: error: `__extern_inline' does not name
> a type
> /usr/include/inttypes.h:415: error: `__extern_inline' does not name
> a type
> /usr/include/inttypes.h:432: error: `__extern_inline' does not name
> a type
> In file included from
> /home/wanghao/Desktop/SimIt-ARM-3.0/build/include/dyn_arm_emul.hpp:18,
> from /home/wanghao/.ema/u512//Xcompiled_0.cpp:2:
> /usr/include/pthread.h:1110: error: expected constructor,
> destructor, or type
> conversion
> /usr/include/pthread.h:1110: error: expected `,' or `;'
> Total user time : 3.188 sec.
> Total system time: 0.472 sec.
> Simulation user time : 2.892 sec.
> Simulation system time: 0.400 sec.
> Caching user time : 0.296 sec.
> Caching system time: 0.072 sec.
> Simulation speed : 2.285e+07 inst/sec.
> Total instructions : 83634854 (83M)
> Requested blocks : 1.
> Cache-hit count : 0.
> Connected servers/threads : 2 of 2.
> Compilation count :
> thread 0: 0
> thread 1: 0
>
> Please also advise on whether LLVM-GCC is able to do any aid to
> Instruction Set
> Simulation. Thanks in advance.
>
> Regards
> Wang Hao Lee
> check out the rest of the Windows Live?. More than mail?Windows
> Live? goes way beyond your inbox.More than messages
> _______________________________________________
> LLVMbugs mailing list
> LLVMbugs at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.uiuc.edu/pipermail/llvmbugs/attachments/20090114/67c4bc8c/attachment.html
From bugzilla-daemon at cs.uiuc.edu Wed Jan 14 23:15:24 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 14 Jan 2009 23:15:24 -0600
Subject: [LLVMbugs] [Bug 2746] handling casts to union transparently
In-Reply-To:
Message-ID: <200901150515.n0F5FOsJ021022@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=2746
Seo Sanghyeon changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sanxiyn at gmail.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Seo Sanghyeon 2009-01-14 23:15:22 ---
Fixed in r62255.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 15 03:25:30 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 15 Jan 2009 03:25:30 -0600
Subject: [LLVMbugs] [Bug 3326] New: missed optimization with -m32: empty
functions shouldn' t contain push/mov/pop
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3326
Summary: missed optimization with -m32: empty functions shouldn't
contain push/mov/pop
Product: new-bugs
Version: unspecified
Platform: PC
URL: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38854
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
LLVM exhibits same missed optimization as gcc with -m32.
Testcase:
void noop(char* foo) {}
$ llvm-gcc -O2 x.c -S -m32
noop:
pushl %ebp
movl %esp, %ebp
popl %ebp
ret
It shouldn't contain the push/mov/pop, and indeed without -m32 it doesn't:
noop:
.Leh_func_begin1:
.Llabel1:
ret
However I can't reproduce this with
llvm-gcc -S -emit-llvm -m32 -O2 | llvm-as | llc -march=x86
I tried -mcpu=i486 too.
Is gcc still using LLVM for code generation with -m32?
What is special in llvm-gcc's invocation of the code generator?
Here is the bitcode, and llc correctly generates the code w/o push/mov/pop
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
target triple = "i386-unknown-linux-gnu"
define void @noop(i8* nocapture %foo) nounwind readnone {
entry:
ret void
}
Both llvm and llvm-gcc were compiled from same revision (r62238).
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 15 03:50:01 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 15 Jan 2009 03:50:01 -0600
Subject: [LLVMbugs] [Bug 3327] New: ia64 target problems with ELF sections
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3327
Summary: ia64 target problems with ELF sections
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Backend: IA64
AssignedTo: unassignedbugs at nondot.org
ReportedBy: romixlev at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Hi,
Compilation of the the following very simple file crashes with
--march=ia64 on my x86 machine.
; ModuleID = 'bugpoint-reduced-simplified.bc'
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
target triple = "i386-pc-linux-gnu"
@x = weak global [8 x i32] zeroinitializer, align 32 ; <[8
x i32]*> [#uses=0]
@.str = internal constant [4 x i8] c"%c \00" ; <[4 x i8]*> [#uses=0]
@rows = weak global [8 x i32] zeroinitializer, align 32 ; <[8
x i32]*> [#uses=0]
@up = weak global [15 x i32] zeroinitializer, align 32 ; <[15
x i32]*> [#uses=0]
@down = weak global [15 x i32] zeroinitializer, align 32
; <[15 x i32]*> [#uses=0]
declare i32 @print() nounwind
declare i32 @printf(i8*, ...) nounwind
declare i32 @putchar(i32)
declare i32 @queens(i32) nounwind
define i32 @main() nounwind {
entry:
unreachable
}
I use this command to compile:
llc -f bugpoint-reduced-simplified.bc --regalloc=linearscan --march=ia64
The assertion is:
llc: /opt/llvm/lib/Target/ELFTargetAsmInfo.cpp:133: const
llvm::Section* llvm::ELFTargetAsmInfo::MergeableStringSection(const
llvm::GlobalVariable*) const: Assertion `getCStringSection() &&
"Should have string section prefix"' failed.
Please see more details and test BC file at:
http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-January/019382.html
-Roman
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 15 03:58:19 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 15 Jan 2009 03:58:19 -0600
Subject: [LLVMbugs] [Bug 3326] missed optimization with -m32: empty
functions shouldn' t contain push/mov/pop
In-Reply-To:
Message-ID: <200901150958.n0F9wJeO007941@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3326
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |asl at math.spbu.ru
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Anton Korobeynikov 2009-01-15 03:58:18 ---
This is proper behaviour. LLC defaults to FP elimination, gcc - not.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu Jan 15 04:47:20 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 15 Jan 2009 04:47:20 -0600
Subject: [LLVMbugs] [Bug 3328] New: LLVM optmization loop optimization
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3328
Summary: LLVM optmization loop optimization
Product: libraries
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Loop Optimizer
AssignedTo: unassignedbugs at nondot.org
ReportedBy: manoel at fonetica.com.br
CC: llvmbugs at cs.uiuc.edu
#include
#include
//
int TESTE ( int parami ,int paraml )
{
int varx=0;
int nI =0;
if( parami > 0 )
{
varx = parami;
}
else
{
varx = 1;
}
for( nI = 1 ; nI <= paraml; nI++) //here
{
varx = varx + parami+ 1;
}
return varx ;
}
int main(int argc, char **argv)
{
if( argc < 3 )
return 0;
return TESTE(atoi(argv[1]),atoi(argv[2]));
}
LLVM should eliminate the loop and do a direct calculation instead.
The MSVC is great in this example and gcc-4.3 also eliminates the loop entirely
and directly calculates the value of varx.
It looks like LLVM's scalar evolution code isn't handling your testcase well.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu Jan 15 07:00:25 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 15 Jan 2009 07:00:25 -0600
Subject: [LLVMbugs] [Bug 3329] New: g++.dg/warn/pr23075.C fails
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3329
Summary: g++.dg/warn/pr23075.C fails
Product: tools
Version: 2.4
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: minor
Priority: P2
Component: llvm-g++
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jay.foad at antixlabs.com
CC: llvmbugs at cs.uiuc.edu
The GCC 4.2.1 testsuite test g++.dg/warn/pr23075.C (attached) passed in llvm
2.3 but fails in llvm 2.4, because it produces a bogus "no return statement"
warning:
$ llvm-g++ -c -O2 -Wreturn-type pr23075.C
pr23075.C: In function ???int foo()???:
pr23075.C:8: error: return-statement with no value, in function returning
???int???
pr23075.C:9: warning: no return statement in function returning non-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 Jan 15 08:30:26 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 15 Jan 2009 08:30:26 -0600
Subject: [LLVMbugs] [Bug 3330] New: ImplicitCastExpr with NULL pointer to
subexpression.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3330
Summary: ImplicitCastExpr with NULL pointer to subexpression.
Product: clang
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: AST
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: bolzoni at cs.unipr.it
CC: llvmbugs at cs.uiuc.edu, bagnara at cs.unipr.it
Test case:
--->
enum E {
A,
B = A + (((-2UL << 20) - (-10UL << 20)) >> 12) - 1,
C
};
---<
to see the bug you need to modify the function
void DeclContextPrinter::PrintDeclContext(const DeclContext*, unsigned)
in the file Driver/ASTConsumer.cpp.
seek for `case Decl::EnumConstant:', add
--->
const Expr* e = ECD-> getInitExpr();
if (e) {
e-> dumpAll();
}
---<
just before the break statement.
Recompile.
The output of clang -print-decl-contexts will be:
--->
(ImplicitCastExpr 0x1e84af0 'int'
(BinaryOperator 0x1e849f0 'unsigned long' '-'
(BinaryOperator 0x1e84930 'unsigned long' '+'
(ImplicitCastExpr 0x1e848f0 'unsigned long'
(DeclRefExpr 0x1e844f0 'int' EnumConstant='A' 0x1e84490))
(ParenExpr 0x1e848b0 'unsigned long'
(BinaryOperator 0x1e84870 'unsigned long' '>>'
(ParenExpr 0x1e847f0 'unsigned long'
(BinaryOperator 0x1e847b0 'unsigned long' '-'
(ParenExpr 0x1e84630 'unsigned long'
(BinaryOperator 0x1e845f0 'unsigned long' '<<'
(UnaryOperator 0x1e84570 'unsigned long' prefix '-'
(IntegerLiteral 0x1e84530 'unsigned long' 2))
(IntegerLiteral 0x1e845b0 'int' 20)))
(ParenExpr 0x1e84770 'unsigned long'
(BinaryOperator 0x1e84730 'unsigned long' '<<'
(UnaryOperator 0x1e846b0 'unsigned long' prefix '-'
(IntegerLiteral 0x1e84670 'unsigned long' 10))
(IntegerLiteral 0x1e846f0 'int' 20)))))
(IntegerLiteral 0x1e84830 'int' 12))))
(ImplicitCastExpr 0x1e849b0 'unsigned long'
(IntegerLiteral 0x1e84970 'int' 1))))
(ImplicitCastExpr 0x1e84b30 'int'
<<>>)
[translation unit] 0x1e6dfa0
[struct] __va_list_tag
[omitted]
__builtin_va_list
[enum] E
A
B
C
---<
The last ImplicitCastExpr has NULL as sub-expression.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 15 10:26:09 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 15 Jan 2009 10:26:09 -0600
Subject: [LLVMbugs] [Bug 3332] New: Maintenance of CallGraph after
self-inlining broken
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3332
Summary: Maintenance of CallGraph after self-inlining broken
Product: libraries
Version: trunk
Platform: All
URL: http://paste.lisp.org/display/73611
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: Transformation Utilities
AssignedTo: unassignedbugs at nondot.org
ReportedBy: ggreif at gmail.com
CC: llvmbugs at cs.uiuc.edu
Obviously my private changes have unearthed a latent bug in InlineFunction.
Here is the relevant gdb session:
Breakpoint 5, UpdateCallGraphAfterInlining (CS=@0xbffff33c,
FirstNewBlock={> =
{>
= {}, }, NodePtr = 0x6306850},
ValueMap=@0xbffff2d8, CG=@0x6303130) at InlineFunction.cpp:151
151 const Function *Caller =
CS.getInstruction()->getParent()->getParent();
(gdb) n
152 const Function *Callee = CS.getCalledFunction();
(gdb)
153 CallGraphNode *CalleeNode = CG[Callee];
(gdb)
154 CallGraphNode *CallerNode = CG[Caller];
(gdb)
158 for (CallGraphNode::iterator I = CalleeNode->begin(),
(gdb)
159 E = CalleeNode->end(); I != E; ++I) {
(gdb) call CalleeNode->dump()
Call graph node for function: 'fib'
Calls function 'fib'
Calls function 'fib'
(gdb) n
158 for (CallGraphNode::iterator I = CalleeNode->begin(),
(gdb) p CalleeNode->begin()
$99 = {
_M_current = 0x6302d90
}
(gdb) p CalleeNode->end()
$100 = {
_M_current = 0x6302da0
}
(gdb) n
160 const Instruction *OrigCall = I->first.getInstruction();
(gdb)
162 DenseMap::iterator VMI =
ValueMap.find(OrigCall);
(gdb)
164 if (VMI != ValueMap.end() && VMI->second) {
(gdb)
167 if (Instruction *NewCall = dyn_cast(VMI->second))
(gdb)
168 CallerNode->addCalledFunction(CallSite::get(NewCall),
I->second);
(gdb)
158 for (CallGraphNode::iterator I = CalleeNode->begin(),
(gdb) p CalleeNode->begin()
$101 = {
_M_current = 0x6306f50
}
(gdb) p CalleeNode->end()
$102 = {
_M_current = 0x6306f68
}
(gdb) p I
$103 = {
_M_current = 0x6302d90
}
(gdb) p E
$104 = {
_M_current = 0x6302da0
}
(gdb)
Preliminary analysis is that the callsites in the CallGraphNode are iterated
over, but in the iteration the very vector of callsites is appended to, which
causes invalidation of the iterators.
This triggers for me on an existing testcase, and I'll paste it here later
along with a patch for a fix.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu Jan 15 12:42:04 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 15 Jan 2009 12:42:04 -0600
Subject: [LLVMbugs] [Bug 3332] Maintenance of CallGraph after self-inlining
broken
In-Reply-To:
Message-ID: <200901151842.n0FIg4GS027827@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3332
Gabor Greif changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Gabor Greif 2009-01-15 12:42:03 ---
fixed by r62271.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 15 13:20:38 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 15 Jan 2009 13:20:38 -0600
Subject: [LLVMbugs] [Bug 3330] ImplicitCastExpr with NULL pointer to
subexpression.
In-Reply-To:
Message-ID: <200901151920.n0FJKcmv029608@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3330
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Chris Lattner 2009-01-15 13:20:37 ---
Fixed, thanks!
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090112/010859.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 Jan 15 13:43:34 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 15 Jan 2009 13:43:34 -0600
Subject: [LLVMbugs] [Bug 3333] New: No warning when shifting invalid amount
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3333
Summary: No warning when shifting invalid amount
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: alexei.svitkine at gmail.com
CC: llvmbugs at cs.uiuc.edu
When using operators ">>" or "<<", the valid range for the shift amount is [0,
# bits in type).
GCC gives appropriate warnings when the shift amount is an out-of-range
constant, such as:
"warning: right shift count is negative"
and
"warning: left shift count >= width of type"
However, clang does not present any warnings on the same code. An example
input:
#include
int main(void)
{
int i = 1;
printf("%d\n", i>>-1);
return 0;
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu Jan 15 13:48:45 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 15 Jan 2009 13:48:45 -0600
Subject: [LLVMbugs] [Bug 3334] New: Interpreter asserts on out of range
shift amount
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3334
Summary: Interpreter asserts on out of range shift amount
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Interpreter
AssignedTo: unassignedbugs at nondot.org
ReportedBy: alexei.svitkine at gmail.com
CC: llvmbugs at cs.uiuc.edu
When using the Interpreter variety of ExecutionEngine, an out of range shift
amount causes an assert to trigger. However, the same inputs to the regular
ExecutionEngine runs fine (producing an undefined result, but that's OK).
For example, the issue is visible when the following code is compiled with
clang and then executed through llvm:
int main(void) { int i=1; i<<100; return 0; }
When using the Interpreter, the following assert is triggered:
Assertion failed: (shiftAmt <= BitWidth && "Invalid shift amount"), function
shl, file /llvm/include/llvm/ADT/APInt.h, line 681.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 15 14:29:59 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 15 Jan 2009 14:29:59 -0600
Subject: [LLVMbugs] [Bug 3335] New: instcombine ignores addrspace in
InstCombineStoreToCast
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3335
Summary: instcombine ignores addrspace in InstCombineStoreToCast
Product: new-bugs
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Keywords: miscompilation
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: luked at cs.rochester.edu
CC: llvmbugs at cs.uiuc.edu, luked at cs.rochester.edu
Created an attachment (id=2391)
--> (http://llvm.org/bugs/attachment.cgi?id=2391)
Simple IR file that demonstrates problem
instcombine drops addrspace in load/stores that have a bitcast address
parameter.
Run testcase with opt -instcombine -debug to see this behavior.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu Jan 15 15:23:06 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 15 Jan 2009 15:23:06 -0600
Subject: [LLVMbugs] [Bug 3338] New: crash during compilation with clang
0.139 (second crash)
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3338
Summary: crash during compilation with clang 0.139 (second crash)
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jordan.breeding at mac.com
CC: llvmbugs at cs.uiuc.edu
Here is the text:
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_ParserCreate
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_ParserCreateNS
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_ParserCreate_MM
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c parserCreate
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c parserInit
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c moveToFreeBindingList
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_ParserReset
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_SetEncoding
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_ExternalEntityParserCreate
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c destroyBindings
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_ParserFree
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_UseParserAsHandlerArg
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_UseForeignDTD
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_SetReturnNSTriplet
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_SetUserData
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_SetBase
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_GetBase
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_GetSpecifiedAttributeCount
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_GetIdAttributeIndex
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_SetElementHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetStartElementHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_SetEndElementHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetCharacterDataHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetProcessingInstructionHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_SetCommentHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetCdataSectionHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetStartCdataSectionHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetEndCdataSectionHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_SetDefaultHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetDefaultHandlerExpand
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetDoctypeDeclHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetStartDoctypeDeclHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetEndDoctypeDeclHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetUnparsedEntityDeclHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetNotationDeclHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetNamespaceDeclHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetStartNamespaceDeclHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetEndNamespaceDeclHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetNotStandaloneHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetExternalEntityRefHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetExternalEntityRefHandlerArg
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetSkippedEntityHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetUnknownEncodingHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetElementDeclHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetAttlistDeclHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_SetEntityDeclHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_SetXmlDeclHandler
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_SetParamEntityParsing
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_Parse
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_ParseBuffer
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_GetBuffer
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_StopParser
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_ResumeParser
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_GetParsingStatus
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_GetErrorCode
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_GetCurrentByteIndex
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_GetCurrentByteCount
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_GetInputContext
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_GetCurrentLineNumber
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
XML_GetCurrentColumnNumber
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_FreeContentModel
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_MemMalloc
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_MemRealloc
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_MemFree
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_DefaultCurrent
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_ErrorString
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_ExpatVersion
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_ExpatVersionInfo
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c XML_GetFeatureList
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c storeRawNames
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c contentProcessor
ANALYZE: /Volumes/Secure Image/Source
Code/git/svn/Max/Frameworks/expat/expat/lib/xmlparse.c
externalEntityInitProcessor
Assertion failed: (isa(Val) && "cast() argument of incompatible type!"),
function cast, file
/private/tmp/checker-0.139-build/include/llvm/Support/Casting.h, line 199.
0 clang 0x00a90cd2 std::vector
>::_M_insert_aux(__gnu_cxx::__normal_iterator > >,
llvm::sys::Path const&) + 7746
1 libSystem.B.dylib 0x926be2bb _sigtramp + 43
2 libSystem.B.dylib 0xffffffff _sigtramp + 1838423407
3 libSystem.B.dylib 0x9273223a raise + 26
4 libSystem.B.dylib 0x9273e679 abort + 73
5 libSystem.B.dylib 0x927333db __assert_rtn + 101
6 clang 0x002d84fb
clang::DiagCollector::HandleDiagnostic(clang::Diagnostic::Level,
clang::DiagnosticInfo const&) + 28763
7 clang 0x002dffb1
clang::DiagCollector::HandleDiagnostic(clang::Diagnostic::Level,
clang::DiagnosticInfo const&) + 60177
8 clang 0x0030d69e clang::CFGBlock::operator[](unsigned long)
const + 81054
9 clang 0x0030d28c clang::CFGBlock::operator[](unsigned long)
const + 80012
10 clang 0x0030d28c clang::CFGBlock::operator[](unsigned long)
const + 80012
11 clang 0x0030d28c clang::CFGBlock::operator[](unsigned long)
const + 80012
12 clang 0x0030d28c clang::CFGBlock::operator[](unsigned long)
const + 80012
13 clang 0x0030e988 clang::CFGBlock::operator[](unsigned long)
const + 85896
14 clang 0x003041c3 clang::CFGBlock::operator[](unsigned long)
const + 42947
15 clang 0x00304995 clang::CFGBlock::operator[](unsigned long)
const + 44949
16 clang 0x003040bf clang::CFGBlock::operator[](unsigned long)
const + 42687
17 clang 0x0030f120 clang::CFGBlock::operator[](unsigned long)
const + 87840
18 clang 0x003159a1
clang::GRCoreEngine::ProcessStmt(clang::Stmt*,
clang::GRStmtNodeBuilderImpl&) + 97
19 clang 0x002f8e86
llvm::ImutAVLFactory
>::Add_internal(std::pair const&,
llvm::ImutAVLTree >*) + 9414
20 clang 0x002f9098
llvm::ImutAVLFactory
>::Add_internal(std::pair const&,
llvm::ImutAVLTree >*) + 9944
21 clang 0x0000a0b7 llvm::cast_retty::ret_type llvm::cast(clang::Type* const&) + 9911
22 clang 0x00009968 llvm::cast_retty::ret_type llvm::cast(clang::Type* const&) + 8040
23 clang 0x00009db5 llvm::cast_retty::ret_type llvm::cast(clang::Type* const&) + 9141
24 clang 0x0034f56b
std::vector
>::_M_fill_insert(__gnu_cxx::__normal_iterator > >, unsigned long,
clang::IdentifierResolver::IdDeclInfo const&) + 1483
25 clang 0x0004c6e6
clang::TokenRewriter::AddTokenAfter(std::_List_const_iterator,
char const*) + 5622
26 clang 0x0004f79d
clang::TokenRewriter::AddTokenAfter(std::_List_const_iterator,
char const*) + 18093
27 clang 0x00002536 _mh_execute_header + 5430
28 clang 0x0000001a _mh_execute_header + 18446744073709547546
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 15 16:45:19 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 15 Jan 2009 16:45:19 -0600
Subject: [LLVMbugs] [Bug 3339] New: Bug when compiling OS kernel code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3339
Summary: Bug when compiling OS kernel code
Product: libraries
Version: 2.4
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: compile-fail
Severity: major
Priority: P2
Component: Backend: C
AssignedTo: unassignedbugs at nondot.org
ReportedBy: yim6 at illinois.edu
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2392)
--> (http://llvm.org/bugs/attachment.cgi?id=2392)
Testcase that causes a compile error
The attached is a testcase which causes a back-end error in LLVM 2.4.
These types of assembly routines are mainly used in OS kernels.
I checked that GCC 4.3 works for this routine.
The error messsage is ...
Couldn't allocate output reg for constraint 'A'!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri Jan 16 03:48:39 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 16 Jan 2009 03:48:39 -0600
Subject: [LLVMbugs] [Bug 3340] New: "warning: cannot pass object of non-POD
type 'char []' through variadic function;
call will abort at runtime" suddenly appears
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3340
Summary: "warning: cannot pass object of non-POD type 'char []'
through variadic function; call will abort at runtime"
suddenly appears
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu
when compiling screen with clang I am suddenly getting this:
screen.c:3577:36: warning: cannot pass object of non-POD type 'char []' through
variadic function; call will abort at runtime
Panic(0, "Screen version %s", version);
^
this wasnt the case a week or so ago... I attached "ccc -E" produced version of
screen.c as a 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 Fri Jan 16 09:34:28 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 16 Jan 2009 09:34:28 -0600
Subject: [LLVMbugs] [Bug 3341] New: clang gets confused by redefinition of
extern inline functions.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3341
Summary: clang gets confused by redefinition of extern inline
functions.
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: AST
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: bolzoni at cs.unipr.it
CC: llvmbugs at cs.uiuc.edu
--->
/* from c torture. */
inline extern int foo () { return 0; }
inline extern int bar () { return 0; }
inline static int bar () { return foo(); }
---<
$ gcc -W -Wall -pedantic -c -o file.o file.c
no problem
$ clang file.c
20021120-1.c:4:19: error: redefinition of 'bar'
inline static int bar () { return foo(); }
^
20021120-1.c:3:19: note: previous definition is here
inline extern int bar () { return 0; }
^
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 Fri Jan 16 10:50:21 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 16 Jan 2009 10:50:21 -0600
Subject: [LLVMbugs] [Bug 3340] "warning: cannot pass object of non-POD type
'char []' through variadic function;
call will abort at runtime" suddenly appears
In-Reply-To:
Message-ID: <200901161650.n0GGoLPb018791@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3340
Anders Carlsson changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andersca at mac.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Anders Carlsson 2009-01-16 10:50:20 ---
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090112/010881.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 Jan 16 11:09:01 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 16 Jan 2009 11:09:01 -0600
Subject: [LLVMbugs] [Bug 3339] Bug when compiling OS kernel code
In-Reply-To:
Message-ID: <200901161709.n0GH91CF019518@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3339
Andrew Lenharth changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |alenhar2 at uiuc.edu
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Andrew Lenharth 2009-01-16 11:09:00 ---
As mentioned on the email list, this has been reported multiple times and
fixed.
*** This bug has been marked as a duplicate of bug 1779 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 16 13:25:43 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 16 Jan 2009 13:25:43 -0600
Subject: [LLVMbugs] [Bug 3342] New: Distinguish pointer incompatibilities
where only sign differs from other incompatibilities
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3342
Summary: Distinguish pointer incompatibilities where only sign
differs from other incompatibilities
Product: clang
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: danchr at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2397)
--> (http://llvm.org/bugs/attachment.cgi?id=2397)
First attempt???
Lots of legacy code happily compares loads of pointers of incompatible signs.
The attached patch is a rough stab at implementing the -Wno-pointer-sign flag
that GCC has for suppressing these.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 16 13:28:40 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 16 Jan 2009 13:28:40 -0600
Subject: [LLVMbugs] [Bug 3338] crash in CFGBlock with clang 0.139 (second
crash)
In-Reply-To:
Message-ID: <200901161928.n0GJSeFo024272@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3338
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #3 from Ted Kremenek 2009-01-16 13:28:40 ---
This looks like a duplicate of PR 3337. This should be fixed in checker-0.140.
*** This bug has been marked as a duplicate of bug 3337 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 16 14:13:41 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 16 Jan 2009 14:13:41 -0600
Subject: [LLVMbugs] [Bug 3335] instcombine ignores addrspace in
InstCombineStoreToCast
In-Reply-To:
Message-ID: <200901162013.n0GKDfci026098@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3335
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Lattner 2009-01-16 14:13:40 ---
Fixed, thanks for the small testcase:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090112/072267.html
Note that instcombine probably does a similar xform for loads. If you notice
this, please file another bugzilla with a test case and I'll fix asap. Thanks!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri Jan 16 14:17:49 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 16 Jan 2009 14:17:49 -0600
Subject: [LLVMbugs] [Bug 3334] Interpreter asserts on out of range shift
amount
In-Reply-To:
Message-ID: <200901162017.n0GKHnRC026464@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3334
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Lattner 2009-01-16 14:17:48 ---
These have undefined behavior, but should not crash the interpreter obviously.
Fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090112/072268.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 Jan 16 14:43:10 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 16 Jan 2009 14:43:10 -0600
Subject: [LLVMbugs] [Bug 3343] New: llc abort with -pre-alloc-split
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3343
Summary: llc abort with -pre-alloc-split
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: resistor at mac.com, llvmbugs at cs.uiuc.edu
While testing MachineLICM I found a regression in
test/CodeGen/X86/pre-split2.ll. By making a minor edit
to this testcase, I can reproduce the failure without running
MachineLICM. Attached is the modified 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 Fri Jan 16 16:40:32 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 16 Jan 2009 16:40:32 -0600
Subject: [LLVMbugs] [Bug 2477] clang misparses "//*" in C89 mode
In-Reply-To:
Message-ID: <200901162240.n0GMeWgZ031529@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=2477
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Chris Lattner 2009-01-16 16:40:29 ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090112/010918.html
Thanks Eli,
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 17 10:10:13 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 17 Jan 2009 10:10:13 -0600
Subject: [LLVMbugs] [Bug 3344] New: clang unconditionally rejects code with
too many braces that is accepted by gcc
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3344
Summary: clang unconditionally rejects code with too many braces
that is accepted by gcc
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: parser
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: bagnara at cs.unipr.it
CC: llvmbugs at cs.uiuc.edu, bolzoni at cs.unipr.it
$ cat bug1.c
struct S
{
int i;
};
struct S s =
{
{{ 1 }}
};
$ gcc -w -c bug1.c
$ clang -w bug1.c
bug1.c:8:3: error: too many braces around scalar initializer
{{ 1 }}
^~~~~~~
1 diagnostic generated.
$
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sat Jan 17 10:42:35 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 17 Jan 2009 10:42:35 -0600
Subject: [LLVMbugs] [Bug 3345] New: clang rejects asm code accepted by gcc
and icc
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3345
Summary: clang rejects asm code accepted by gcc and icc
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, bolzoni at cs.unipr.it
This code comes straight from the Linux kernel.
$ cat /tmp/bug2.c
unsigned long __clear_user(void *addr, unsigned long size)
{
long __d0;
asm volatile(
" testq %[size8],%[size8]\n"
" jz 4f\n"
"0: movq %[zero],(%[dst])\n"
" addq %[eight],%[dst]\n"
" decl %%ecx ; jnz 0b\n"
"4: movq %[size1],%%rcx\n"
" testl %%ecx,%%ecx\n"
" jz 2f\n"
"1: movb %b[zero],(%[dst])\n"
" incq %[dst]\n"
" decl %%ecx ; jnz 1b\n"
"2:\n"
".section .fixup,\"ax\"\n"
"3: lea 0(%[size1],%[size8],8),%[size8]\n"
" jmp 2b\n"
".previous\n"
".section __ex_table,\"a\"\n"
" .align 8\n"
" .quad 0b,3b\n"
" .quad 1b,2b\n"
".previous"
: [size8] "=c"(size), [dst] "=&D" (__d0)
: [size1] "r"(size & 7), "[size8]" (size / 8), "[dst]"(addr),
[zero] "r" (0UL), [eight] "r" (8UL));
return size;
}
$ gcc -w -c /tmp/bug2.c
$ icc -w -c /tmp/bug2.c
$ clang /tmp/bug2.c
/tmp/bug2.c:29:28: error: invalid input constraint '[size8]' in asm
: [size1] "r"(size & 7), "[size8]" (size / 8), "[dst]"(addr),
^
1 diagnostic generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sat Jan 17 20:07:01 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 17 Jan 2009 20:07:01 -0600
Subject: [LLVMbugs] [Bug 3345] clang rejects asm code accepted by gcc and icc
In-Reply-To:
Message-ID: <200901180207.n0I271xm027660@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3345
Anders Carlsson changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andersca at mac.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Anders Carlsson 2009-01-17 20:07:00 ---
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090112/010970.html
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090112/010973.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 Jan 17 21:47:37 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 17 Jan 2009 21:47:37 -0600
Subject: [LLVMbugs] [Bug 3346] New: Possible bug in linear scan allocator
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3346
Summary: Possible bug in linear scan allocator
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Register Allocator
AssignedTo: unassignedbugs at nondot.org
ReportedBy: resistor at mac.com
CC: llvmbugs at cs.uiuc.edu
If you apply the attached patch to enable pre-alloc splitting with phi join
creation, telecom-FFT is miscompiled. This occurs at iteration 5 of pre-alloc
splitting (-pre-split-limit=5). However, looking at the diffs from
before/after that iteration, the transformation looks sounds. Could this be a
bug later in codegen (regalloc?) that's being exposed?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 18 08:41:11 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 18 Jan 2009 08:41:11 -0600
Subject: [LLVMbugs] [Bug 3347] New: llvm-config 2.4 - libpsapi,
libimagehlp in wrong order
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3347
Summary: llvm-config 2.4 - libpsapi, libimagehlp in wrong order
Product: tools
Version: 2.4
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: llvm-config
AssignedTo: unassignedbugs at nondot.org
ReportedBy: duncan at duncanpierce.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2408)
--> (http://llvm.org/bugs/attachment.cgi?id=2408)
Corrects order for --libs, may be wrong for --libnames, --libfiles
llvm-config --cxxflags --ldflags --libs core gives:
-I/include -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -O2
-fomit-frame-pointer -Woverloaded-virtual
-L/lib -lpsapi -limagehlp -lm
-lLLVMCore -lLLVMSupport -lLLVMSystem
The -lpsapi -limagehlp need to be at the end for ld to resolve all the symbols
correctly. (Probably the -lm too but I didn't experience problems with this).
A patch for llvm-config.in.in is attached which gets things working on MinGW
but it's not tested elsewhere.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 18 08:51:29 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 18 Jan 2009 08:51:29 -0600
Subject: [LLVMbugs] [Bug 3348] New: llvm-config 2.4 in msys. bat - double
slashes in generated paths
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3348
Summary: llvm-config 2.4 in msys.bat - double slashes in
generated paths
Product: tools
Version: 2.4
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: llvm-config
AssignedTo: unassignedbugs at nondot.org
ReportedBy: duncan at duncanpierce.org
CC: llvmbugs at cs.uiuc.edu
When run from msys.bat (but not when run from DOS prompt), llvm-config outputs
double slashes for pathnames:
$ llvm-config --cxxflags --ldflags --libs
-I//include [...]
-L//lib [...]
-lLLVMLinker [...]
//lib/LLVMExecutionEngine.o [...]
g++ (3.4.5 at least) fails to understand these. llvm-config produces single
slashes from DOS prompt, and g++ works correctly.
My llvm-config was built using ./configure --prefix=
This may not be the correct way of configuring for "top level" installation.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 18 13:19:02 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 18 Jan 2009 13:19:02 -0600
Subject: [LLVMbugs] [Bug 3322] [interpreter] __dyld_misaligned_stack_error
on Mac OS X 10. 5 x86 when using system call
In-Reply-To:
Message-ID: <200901181919.n0IJJ2WA003579@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3322
Alexei Svitkine changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #6 from Alexei Svitkine 2009-01-18 13:19:01 ---
*** This bug has been marked as a duplicate of bug 2128 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 18 13:42:22 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 18 Jan 2009 13:42:22 -0600
Subject: [LLVMbugs] [Bug 2510] Non-power-of-2 _Bool vector asserts
In-Reply-To:
Message-ID: <200901181942.n0IJgMVM004629@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=2510
Nuno Lopes changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nunoplopes at sapo.pt
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Nuno Lopes 2009-01-18 13:42:21 ---
Nate Begeman fixed this yesterday.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 18 14:00:36 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 18 Jan 2009 14:00:36 -0600
Subject: [LLVMbugs] [Bug 3349] New: clang rejects apparently valid code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3349
Summary: clang rejects apparently valid code
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, bolzoni at cs.unipr.it
This but was discovered trying to parse diffutils-2.8.1:
$ cat bug.c
struct re_pattern_buffer ignore_regexp;
struct re_pattern_buffer {
unsigned char *buffer;
};
$ gcc -Wall -W -c bug.c
$ icc -w2 -c bug.c
$ clang -w bug.c
bug.c:1:26: error: variable has incomplete type 'struct re_pattern_buffer'
struct re_pattern_buffer ignore_regexp;
^
1 diagnostic generated.
$
This code parses OK also with the Comeau C compiler.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 18 14:25:44 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 18 Jan 2009 14:25:44 -0600
Subject: [LLVMbugs] [Bug 3350] New: clang rejects valid code involving va_end
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3350
Summary: clang rejects valid code involving va_end
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, bolzoni at cs.unipr.it
This bug was discovered trying to parse coreutils-6.12:
$ cat bug.c
#include
void
foo(const char *command_name, va_list authors) {
(void) command_name;
va_end (authors);
}
$ gcc -c -W -Wall bug.c
$ icc -c bug.c
$ clang bug.c
bug.c:6:3: error: incompatible type passing 'struct __va_list_tag *', expected
'__builtin_va_list &'
va_end (authors);
^~~~~~
1 diagnostic generated.
$
This code parses OK also with the Comeau C compiler.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 18 14:29:45 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 18 Jan 2009 14:29:45 -0600
Subject: [LLVMbugs] [Bug 3351] New: constant folding should fold this
constant expr
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3351
Summary: constant folding should fold this constant expr
Product: libraries
Version: 1.0
Platform: PC
OS/Version: All
Status: NEW
Keywords: code-quality
Severity: normal
Priority: P2
Component: Global Analyses
AssignedTo: unassignedbugs at nondot.org
ReportedBy: clattner at apple.com
CC: llvmbugs at cs.uiuc.edu
483.xalancbmk retains this awesome constant expr until codegen:
%0 = load i16* getelementptr ([7 x i16]*
@_ZN11xercesc_2_5L17gIdeographicCharsE, i32 0, i32 add (i32 ashr (i32 sub (i32
ptrtoint (i16* getelementptr ([7 x i16]*
@_ZN11xercesc_2_5L17gIdeographicCharsE, i32 0, i32 4) to i32), i32 ptrtoint ([7
x i16]* @_ZN11xercesc_2_5L17gIdeographicCharsE to i32)), i32 1), i32 1)), align
4 ; [#uses=0]
This should get folded at the sub.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 18 14:35:15 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 18 Jan 2009 14:35:15 -0600
Subject: [LLVMbugs] [Bug 3349] clang rejects apparently valid code
In-Reply-To:
Message-ID: <200901182035.n0IKZFSl006840@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3349
Daniel Dunbar changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel at zuster.org
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Daniel Dunbar 2009-01-18 14:35:15 ---
*** This bug has been marked as a duplicate of bug 3310 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 18 18:25:12 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 18 Jan 2009 18:25:12 -0600
Subject: [LLVMbugs] [Bug 3352] New: Not implemented? "Cannot yet select"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3352
Summary: Not implemented? "Cannot yet select"
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: lennart at augustsson.net
CC: llvmbugs at cs.uiuc.edu
When trying to generate code for the abs function for a 4 element vector of
float, I get the message below.
LLVM code:
define <4 x float> @vabs(<4 x float>) {
L1:
%1 = fcmp olt <4 x float> %0, zeroinitializer
%2 = sub <4 x float> zeroinitializer, %0
%3 = select <4 x i1> %1, <4 x float> %2, <4 x float> %0
ret <4 x float> %3
}
Error:
Cannot yet select: 0x100b97c: i32 = X86ISD::CMP 0x100b86c, 0x100b42c
0 llc 0x008f1c5c
_ZNSt8_Rb_treeIN4llvm3sys4PathES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE13insert_uniqueERKS2_
+ 7948
1 libSystem.B.dylib 0x9526d2bb _sigtramp + 43
2 ??? 0xffffffff 0x0 + 4294967295
3 libSystem.B.dylib 0x952e123a raise + 26
4 libSystem.B.dylib 0x952ed679 abort + 73
5 llc 0x0030c6d0
_ZNK4llvm14ilist_iteratorINS_6SDNodeEEcvPS1_Ev + 176
6 llc 0x00365b3f
_ZN48_GLOBAL__N_X86ISelDAGToDAG.cpp_00000000_274AD75D18X86ISelAddressMode4dumpEv
+ 362831
7 llc 0x0040f1d6
_ZN48_GLOBAL__N_X86ISelDAGToDAG.cpp_00000000_274AD75D18X86ISelAddressMode4dumpEv
+ 1056742
8 llc 0x002a5c82
_ZNK4llvm13TargetMachine12getSubtargetINS_12X86SubtargetEEERKT_v + 133762
9 llc 0x00413cb3
_ZN48_GLOBAL__N_X86ISelDAGToDAG.cpp_00000000_274AD75D18X86ISelAddressMode4dumpEv
+ 1075907
10 llc 0x002a8d03
_ZNK4llvm13TargetMachine12getSubtargetINS_12X86SubtargetEEERKT_v + 146179
11 llc 0x005fd97b
_ZNK4llvm14TargetLowering15getNumRegistersENS_3MVTE + 22779
12 llc 0x005ff977
_ZNK4llvm14TargetLowering15getNumRegistersENS_3MVTE + 30967
13 llc 0x00600127
_ZNK4llvm14TargetLowering15getNumRegistersENS_3MVTE + 32935
14 llc 0x006017fc
_ZNK4llvm14TargetLowering15getNumRegistersENS_3MVTE + 38780
15 llc 0x0086e19f _ZN4llvm12FunctionPassD1Ev +
33839
16 llc 0x0086e738 _ZN4llvm12FunctionPassD1Ev +
35272
17 llc 0x0086e8e6 _ZN4llvm12FunctionPassD1Ev +
35702
18 llc 0x00002b67 _mh_execute_header + 7015
19 llc 0x00001836 _mh_execute_header + 2102
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 18 18:37:11 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 18 Jan 2009 18:37:11 -0600
Subject: [LLVMbugs] [Bug 3292] Assertion `i*2 < getNumOperands() && "Invalid
value number!"' failed.
In-Reply-To:
Message-ID: <200901190037.n0J0bBg8014554@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3292
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Chris Lattner 2009-01-18 18:37:11 ---
Fixed here, thanks!
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090112/072327.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 Jan 18 18:42:27 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 18 Jan 2009 18:42:27 -0600
Subject: [LLVMbugs] [Bug 3302] yet another math bug??
In-Reply-To:
Message-ID: <200901190042.n0J0gRWt014774@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3302
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Chris Lattner 2009-01-18 18:42:26 ---
I think this got fixed by the recent SCEV reversions.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 18 18:45:02 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 18 Jan 2009 18:45:02 -0600
Subject: [LLVMbugs] [Bug 3296] another math bug
In-Reply-To:
Message-ID: <200901190045.n0J0j2pF014876@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3296
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Chris Lattner 2009-01-18 18:45:01 ---
I think this got fixed with the recent SCEV reversions.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 18 18:47:11 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 18 Jan 2009 18:47:11 -0600
Subject: [LLVMbugs] [Bug 3294] another math bug
In-Reply-To:
Message-ID: <200901190047.n0J0lBis014992@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3294
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Chris Lattner 2009-01-18 18:47:10 ---
This now works, I think this was fixed by the SCEV reversions.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 18 18:52:07 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 18 Jan 2009 18:52:07 -0600
Subject: [LLVMbugs] [Bug 3207] Crash on invalid in DeclGroupOwningRef
In-Reply-To:
Message-ID: <200901190052.n0J0q73E015298@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3207
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Lattner 2009-01-18 18:52:06 ---
this got fixed along the way
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 18 18:55:21 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 18 Jan 2009 18:55:21 -0600
Subject: [LLVMbugs] [Bug 3119] maybe a loop miscompilation
In-Reply-To:
Message-ID: <200901190055.n0J0tL2f015478@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3119
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Chris Lattner 2009-01-18 18:55:20 ---
this works for me with mainline. I'm assuming it was fixed by the reversion of
the buggy SCEV stuff.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 18 20:47:14 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 18 Jan 2009 20:47:14 -0600
Subject: [LLVMbugs] [Bug 3016] simplifycfg creates dead code and then
creates invalid code because of it
In-Reply-To:
Message-ID: <200901190247.n0J2lE88019978@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3016
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Summary|null ptr dereference |simplifycfg creates dead
| |code and then creates
| |invalid code because of it
--- Comment #6 from Chris Lattner 2009-01-18 20:47:12 ---
Fixed here, thanks!
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090112/072338.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 Jan 18 20:51:17 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 18 Jan 2009 20:51:17 -0600
Subject: [LLVMbugs] [Bug 3006] llc: assertion failure with inline asm
In-Reply-To:
Message-ID: <200901190251.n0J2pHXS020177@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3006
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Chris Lattner 2009-01-18 20:51:16 ---
This should be rejected by the front-end now. llc produces:
Unsupported asm: input constraint with a matching output constraint of
incompatible type!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 18 20:52:29 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 18 Jan 2009 20:52:29 -0600
Subject: [LLVMbugs] [Bug 2999] miscompilation due to gcc inliner?
In-Reply-To:
Message-ID: <200901190252.n0J2qTCl020258@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=2999
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #8 from Chris Lattner 2009-01-18 20:52:29 ---
This appears to work on mainline.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun Jan 18 22:01:31 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 18 Jan 2009 22:01:31 -0600
Subject: [LLVMbugs] [Bug 3295] loop-reduce / scalar-evolution crash
expanding {0, +, 2, +, 2} addrec
In-Reply-To:
Message-ID: <200901190401.n0J41VP7022791@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3295
Nick Lewycky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Nick Lewycky 2009-01-18 22:01:31 ---
Yes, this was fixed by the recent SCEV reversion.
After the branch, I plan to fix this properly by removing the "round up to next
power of 2" logic in SCEV, but I consider that too dangerous this close to the
release.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 19 11:17:08 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 19 Jan 2009 11:17:08 -0600
Subject: [LLVMbugs] [Bug 3353] New: Infinite loop while building libxml
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3353
Summary: Infinite loop while building libxml
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: opt
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
To reproduce:
opt test.bc -inline -jump-threading -licm -loop-unswitch -gvn -simplifycfg
-verify -o t.bc
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon Jan 19 14:19:28 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 19 Jan 2009 14:19:28 -0600
Subject: [LLVMbugs] [Bug 3354] New: apparent bad interaction between math
and short-circuit
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3354
Summary: apparent bad interaction between math and short-circuit
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu
The attached program displays this behavior on x86 Linux:
[regehr at babel tmp30]$ llvm-gcc -O small.c -o small
small.c: In function ???main???:
small.c:19: warning: division by zero
small.c:19: warning: division by zero
[regehr at babel tmp30]$ ./small
x=1
Floating point exception
The thing is, the divide-by-zero behaviors are all protected by
short-circuiting operations, and should never fire. I claim that LLVM's -O0
behavior is what must occur at all optimization levels:
[regehr at babel tmp30]$ llvm-gcc -O0 small.c -o small
small.c: In function ???main???:
small.c:19: warning: division by zero
small.c:19: warning: division by zero
[regehr at babel tmp30]$ ./small
x=1
x=0
The macro in the attached code is simply a macroized version of the 2nd safe
multiplication fragment here:
https://www.securecoding.cert.org/confluence/display/cplusplus/INT32-CPP.+Ensure+that+operations+on+signed+integers+do+not+result+in+overflow
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 19 15:07:02 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 19 Jan 2009 15:07:02 -0600
Subject: [LLVMbugs] [Bug 2980] llc crashes with Cannot yet select:
0xa60d794: ch = declare 0xa60d568, 0xa60d70c, 0xa60d8a4
In-Reply-To:
Message-ID: <200901192107.n0JL724x007531@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=2980
Devang Patel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Devang Patel 2009-01-19 15:07:01 ---
Added verification check to flag invalid debug info.
rev. 62526.
If llvm-gcc FE is generating this invalid debug info, then pl. file separate PR
to track llvm-gcc bug. Thanks.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon Jan 19 15:20:59 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 19 Jan 2009 15:20:59 -0600
Subject: [LLVMbugs] [Bug 3316] Constant folding for 'frem' is flaky
In-Reply-To:
Message-ID: <200901192120.n0JLKxYt008024@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3316
Dale Johannesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Dale Johannesen 2009-01-19 15:20:58 ---
I see, currently the FP-to-integer conversions are always called with
TowardsZero, except this one place. So the bug calling it with
NearestTiesToEven would never show up anywhere else. This fixes both bugs.
Neil, please review.
http://llvm.org/viewvc/llvm-project?view=rev&revision=62528
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 19 15:21:02 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 19 Jan 2009 15:21:02 -0600
Subject: [LLVMbugs] [Bug 3353] Infinite loop while building libxml
In-Reply-To:
Message-ID: <200901192121.n0JLL27P008043@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3353
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Chris Lattner 2009-01-19 15:21:02 ---
Fixed, sorry for the breakage!
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090119/072364.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 Jan 19 15:56:28 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 19 Jan 2009 15:56:28 -0600
Subject: [LLVMbugs] [Bug 3354] apparent bad interaction between math and
short-circuit
In-Reply-To:
Message-ID: <200901192156.n0JLuSJV009357@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3354
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Chris Lattner 2009-01-19 15:56:27 ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090119/072366.html
Reassociate was moving a constant expression to a different block under the
assumption that constants can't have side effects. I think that this is a
reasonable expectation, so I changed x/0 to constant fold into undef as is
allowed by langref.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 19 16:04:56 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 19 Jan 2009 16:04:56 -0600
Subject: [LLVMbugs] [Bug 3018] bug in SelectionDAG::ReplaceAllUsesWith
In-Reply-To:
Message-ID: <200901192204.n0JM4uv9009675@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3018
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon Jan 19 16:05:51 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 19 Jan 2009 16:05:51 -0600
Subject: [LLVMbugs] [Bug 3354] apparent bad interaction between math and
short-circuit
In-Reply-To:
Message-ID: <200901192205.n0JM5pCL009739@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3354
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #4 from Eli Friedman 2009-01-19 16:05:51 ---
(In reply to comment #3)
> Reassociate was moving a constant expression to a different block under the
> assumption that constants can't have side effects. I think that this is a
> reasonable expectation, so I changed x/0 to constant fold into undef as is
> allowed by langref.
That's only a workaround... what if the denominator is an unfoldable constant?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Jan 19 16:56:17 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 19 Jan 2009 16:56:17 -0600
Subject: [LLVMbugs] [Bug 3355] New: llvm handles inline functions in C99
poorly
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=3355
Summary: llvm handles inline functions in C99 poorly
Product: libraries
Version: trunk
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Support Libraries
AssignedTo: unassignedbugs at nondot.org
ReportedBy: dalej at apple.com
CC: llvmbugs at cs.uiuc.edu
A refresher: the semantics of function definitions declared "inline" in C99
are that the body may be substituted into callers within that compilation unit,
but this should not create an external definition for use in other compilation
units. There must be a (non-inline) definition in some other compilation unit,
and there is no requirement that it be functionally equivalent to the one in
this file; it's "unspecified behavior" if that happens (not "undefined").
Note that gcc-89 provides equivalent functionality using "extern inline" in a
way that's incompatible with C99, and that comments within the gcc sources use
"extern inline" for these semantics. Also note C++ semantics for inline are
completely different, but you knew that.
Moving the inlining phase from gcc to llvm sort of broke this. Currently we
(i.e. cgraph in llvm-gcc) treats these functions by not passing them into
llvm's inliner, which is correct but not very useful. If we do pass them in we
should have a way to tell llvm not to generate a definition for them, and I
don't think there is one. (Although pretending they are static may work OK in
practice; if something doesn't get inlined that will wind up invoking a
different leg of unspecified behavior, which is conformant but may be
surprising. It's a hack, though.)
For always-inline C99 inline functions, llvm needs to see the bodies for
correctness. I've fixed that case using the "static" hack (a static definition
may be emitted, but that's harmless since nothing can reference it). But even
here I'd prefer to have a way to tell llvm not to emit the body, for QOI if
nothing else.
So I'm suggesting an IR extension 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 neil at daikokuya.co.uk Mon Jan 19 17:09:45 2009
From: neil at daikokuya.co.uk (Neil Booth)
Date: Tue, 20 Jan 2009 08:09:45 +0900
Subject: [LLVMbugs] [Bug 3316] Constant folding for 'frem' is flaky
In-Reply-To: <200901192120.n0JLKxYt008024@zion.cs.uiuc.edu>
References:
<200901192120.n0JLKxYt008024@zion.cs.uiuc.edu>
Message-ID: <20090119230945.GB14812@daikokuya.co.uk>
bugzilla-daemon at cs.uiuc.edu wrote:-
> http://llvm.org/bugs/show_bug.cgi?id=3316
>
>
> Dale Johannesen changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> Status|NEW |RESOLVED
> Resolution| |FIXED
>
>
>
>
> --- Comment #6 from Dale Johannesen 2009-01-19 15:20:58 ---
> I see, currently the FP-to-integer conversions are always called with
> TowardsZero, except this one place. So the bug calling it with
> NearestTiesToEven would never show up anywhere else. This fixes both bugs.
> Neil, please review.
> http://llvm.org/viewvc/llvm-project?view=rev&revision=62528
I'll take a look later; no time now. But I left a comment in / above
the frem implementation pointing out that it isn't close to being
correct. It will need a complete rewrite and will have to look like
the other operations before it can be called correct.
Neil.
From dalej at apple.com Mon Jan 19 17:19:26 2009
From: dalej at apple.com (Dale Johannesen)
Date: Mon, 19 Jan 2009 15:19:26 -0800
Subject: [LLVMbugs] [Bug 3316] Constant folding for 'frem' is flaky
In-Reply-To: <20090119230945.GB14812@daikokuya.co.uk>
References:
<200901192120.n0JLKxYt008024@zion.cs.uiuc.edu>
<20090119230945.GB14812@daikokuya.co.uk>
Message-ID: <61EFD60E-4E39-4479-BDB5-265EAD23DB74@apple.com>
On Jan 19, 2009, at 3:09 PMPST, Neil Booth wrote:
> bugzilla-daemon at cs.uiuc.edu wrote:-
>
>> http://llvm.org/bugs/show_bug.cgi?id=3316
>>
>> --- Comment #6 from Dale Johannesen 2009-01-19
>> 15:20:58 ---
>> I see, currently the FP-to-integer conversions are always called with
>> TowardsZero, except this one place. So the bug calling it with
>> NearestTiesToEven would never show up anywhere else. This fixes
>> both bugs.
>> Neil, please review.
>> http://llvm.org/viewvc/llvm-project?view=rev&revision=62528
>
> I'll take a look later; no time now. But I left a comment in / above
> the frem implementation pointing out that it isn't close to being
> correct. It will need a complete rewrite and will have to look like
> the other operations before it can be called correct.
Ah, that's what TRT means.
Could you be more specific about what doesn't work (when you have time)?
From bugzilla-daemon at cs.uiuc.edu Mon Jan 19 18:54:45 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 19 Jan 2009 18:54:45 -0600
Subject: [LLVMbugs] [Bug 2128] interpreter should bind functions by type
In-Reply-To:
Message-ID: <200901200054.n0K0sjRM015246@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=2128
Nick Lewycky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #9 from Nick Lewycky