From bugzilla-daemon at cs.uiuc.edu Sun Nov 1 00:00:01 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 1 Nov 2009 00:00:01 -0500
Subject: [LLVMbugs] [Bug 5354] alsa-lib fails to compile because of jump
issues
In-Reply-To:
Message-ID: <200911010500.nA1501an010072@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5354
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #3 from Chris Lattner 2009-11-01 00:00:00 ---
I think the resolution of this is "behaves correctly". VLAs + indirect goto
don't mix.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 1 09:36:29 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 1 Nov 2009 09:36:29 -0600
Subject: [LLVMbugs] [Bug 5358] llc -tailcallopt generates segfaulting code
In-Reply-To:
Message-ID: <200911011536.nA1FaTLv002116@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5358
Florian B??ther changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WORKSFORME |
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 1 10:31:08 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 1 Nov 2009 10:31:08 -0600
Subject: [LLVMbugs] [Bug 5362] New: Ran out of registers during register
allocation
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5362
Summary: Ran out of registers during register allocation
Product: libraries
Version: 2.6
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: castet.matthieu at free.fr
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3735)
--> (http://llvm.org/bugs/attachment.cgi?id=3735)
preprocessed file (sorry for the big file, I didn't manage to reduce it)
While compiling ffmpeg, the compilation abort with
$ clang -fomit-frame-pointer -O3 /tmp/mpegvideo_mmx.i -c -o /tmp/p.o
In file included from libavcodec/x86/mpegvideo_mmx.c:26:
In file included from ./libavcodec/avcodec.h:30:
In file included from ./libavutil/avutil.h:56:
In file included from ./libavutil/common.h:328:
./libavutil/mem.h:66:79: warning: 'alloc_size' attribute ignored
...int size) __attribute__((__malloc__)) __attribute__((alloc_size(1)));
^
./libavutil/mem.h:80:63: warning: 'alloc_size' attribute ignored
void *av_realloc(void *ptr, unsigned int size) __attribute__((alloc_size(2)));
^
./libavutil/mem.h:100:80: warning: 'alloc_size' attribute ignored
...int size) __attribute__((__malloc__)) __attribute__((alloc_size(1)));
^
fatal error: error in backend: Ran out of registers during register allocation!
Please check your inline asm statement for invalid constraints:
INLINEASM , 10, %EAX, 9, %reg1346, 9, %reg1299, 9,
%reg1343, 9, %reg1341, 9, %reg1344, 2147483657, %EAX, 14,
%EFLAGS
Note that if we remove the "-fomit-frame-pointer" option there is no error.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun Nov 1 10:34:14 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 1 Nov 2009 10:34:14 -0600
Subject: [LLVMbugs] [Bug 5362] Ran out of registers during register
allocation
In-Reply-To:
Message-ID: <200911011634.nA1GYEkP004525@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5362
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |asl at math.spbu.ru
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Anton Korobeynikov 2009-11-01 10:34:14 ---
*** This bug has been marked as a duplicate of bug 5010 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 1 12:59:40 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 1 Nov 2009 12:59:40 -0600
Subject: [LLVMbugs] [Bug 5364] New: Assertion `SRC && " Invalid subregister
index in EXTRACT_SUBREG"'
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5364
Summary: Assertion `SRC && "Invalid subregister index in
EXTRACT_SUBREG"'
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: asl at math.spbu.ru
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3737)
--> (http://llvm.org/bugs/attachment.cgi?id=3737)
bugpoint reduction
Consider the attached bytecode. Running llc -mcpu=cortex-a8 yeilds:
$ ./llc bugpoint-reduced-simplified.bc -mcpu=cortex-a8
llc: /home/asl/proj/llvm/src_arm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp:410:
void llvm::InstrEmitter::EmitSubregNode(llvm::SDNode*,
llvm::DenseMap,
llvm::DenseMapInfo >&): Assertion `SRC && "Invalid subregister
index in EXTRACT_SUBREG"' failed.
most probably it's due to recent cross-regclass matching stuff (I haven't
verified this 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 Nov 1 17:49:03 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 1 Nov 2009 17:49:03 -0600
Subject: [LLVMbugs] [Bug 5365] New: __attribute__ ((__transparent_union__))
implementation is incomplete
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5365
Summary: __attribute__ ((__transparent_union__)) implementation
is incomplete
Product: clang
Version: 2.6
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: harriman at acm.org
CC: clattner at apple.com, llvmbugs at cs.uiuc.edu,
edwintorok at gmail.com, sharparrow1 at yahoo.com,
daniel at zuster.org, krj at rajaratnam.dk, dgregor at apple.com
Depends on: 2015
Created an attachment (id=3738)
--> (http://llvm.org/bugs/attachment.cgi?id=3738)
test case - works with gcc, error with clang
The fix for Bug #2015 implemented one aspect of
__attribute__((__transparent_union__)); however, this test case shows that
clang still does not fully implement the gcc semantics.
typedef union { struct s *sp; } u __attribute__ ((__transparent_union__));
extern void g(u);
extern void g(struct s *sp);
The above code is accepted by gcc, but rejected by clang, like this:
clang -c clang091101a.c
clang091101a.c:3:13: error: conflicting types for 'g'
extern void g(struct s *sp);
^
clang091101a.c:2:13: note: previous declaration is here
extern void g(u);
^
The incompatibility causes trouble with the Gnu Autoconf macro
AC_SELECT_ARGTYPES, which attempts to determine suitable types
for definition of variables to be passed to the select() function.
The Autoconf macro guesses at the parameter types and tries to
redeclare select(). If the compiler rejects the redeclaration,
then the macro concludes that those types can't be passed to
select(). With clang, all of the guesses fail.
The same technique is used in some other Autoconf macros and scripts.
For example, when trying to build PostgreSQL 8.4 on RHEL 5 Linux with
clang, the autoconf-generated 'configure' script fails because of this.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun Nov 1 18:14:59 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 1 Nov 2009 18:14:59 -0600
Subject: [LLVMbugs] [Bug 5364] Assertion `SRC && "Invalid subregister index
in EXTRACT_SUBREG"'
In-Reply-To:
Message-ID: <200911020014.nA20ExVb021506@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5364
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Anton Korobeynikov 2009-11-01 18:14:58 ---
Fixed in:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20091026/090192.html
Testcase here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20091026/090193.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 Nov 1 18:24:31 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 1 Nov 2009 18:24:31 -0600
Subject: [LLVMbugs] [Bug 5366] New: Assertion on
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5366
Summary: Assertion on
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: asl at math.spbu.ru
CC: llvmbugs at cs.uiuc.edu
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun Nov 1 18:29:23 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 1 Nov 2009 18:29:23 -0600
Subject: [LLVMbugs] [Bug 5367] New: Regalloc lost regclass information
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5367
Summary: Regalloc lost regclass information
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: asl at math.spbu.ru
CC: llvmbugs at cs.uiuc.edu
Consider the bytecode attached. Running llc fails with:
$ ./llc bugpoint-reduced-simplified.ll -mcpu=cortex-a8 -enable-unsafe-fp-math
llc: /home/asl/proj/llvm/src_arm/lib/CodeGen/LowerSubregs.cpp:232:
bool::LowerSubregsInstructionPass::LowerInsert(llvm::MachineInstr*):
Assertion `DstSubReg && "invalid subregister index for register"' failed.
it seems that it tries to emit insert_subreg instruction for high DP register,
which does not have 32-bit subregs. This actually means that regclass
information was lost during RA.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 1 20:56:19 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 1 Nov 2009 20:56:19 -0600
Subject: [LLVMbugs] [Bug 5135] int/double conversion problems in profile info
In-Reply-To:
Message-ID: <200911020256.nA22uJff026763@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5135
Edward O'Callaghan changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Edward O'Callaghan 2009-11-01 20:56:18 ---
Reproducible on DragonFly BSD 2.4.1 i386 with stock GCC.
Fixed Verified to work.
Committed Revision 85779.
"Apply fix for PR5135, Credit to Andreas Neustifter."
Resolution -> "FIXED".
Many Thanks,
Edward O'Callaghan.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 2 09:11:05 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 2 Nov 2009 09:11:05 -0600
Subject: [LLVMbugs] [Bug 5369] New: LLVM tests fail on DragonFly BSD 2.4.1
i386.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5369
Summary: LLVM tests fail on DragonFly BSD 2.4.1 i386.
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: eocallaghan at auroraux.org
CC: llvmbugs at cs.uiuc.edu
G'Day,
The following LLVM tests fail on DragonFly BSD 2.4.1 i386.
FAIL: /home/edward/llvm/llvm/test/MC/MachO/comm-1.s
Failed with exit(1) at line 1
while running: llvm-mc -triple i386-apple-darwin9
/home/edward/llvm/llvm/test/MC/MachO/comm-1.s -filetype=obj -o - | macho-dump |
FileCheck /home/edward/llvm/llvm/test/MC/MachO/comm-1.s
env: python: No such file or directory
/home/edward/llvm/llvm/test/MC/MachO/comm-1.s:10:25: error: expected string not
found in input
// CHECK: ('cputype', 7)
^
:1:1: note: scanning from here
^
FAIL: /home/edward/llvm/llvm/test/MC/MachO/data.s
Failed with exit(1) at line 1
while running: llvm-mc -triple i386-apple-darwin9
/home/edward/llvm/llvm/test/MC/MachO/data.s -filetype=obj -o - | macho-dump |
FileCheck /home/edward/llvm/llvm/test/MC/MachO/data.s
env: python: No such file or directory
/home/edward/llvm/llvm/test/MC/MachO/data.s:17:25: error: expected string not
found in input
// CHECK: ('cputype', 7)
^
:1:1: note: scanning from here
^
FAIL: /home/edward/llvm/llvm/test/MC/MachO/lcomm-attributes.s
Failed with exit(1) at line 1
while running: llvm-mc -triple i386-apple-darwin9
/home/edward/llvm/llvm/test/MC/MachO/lcomm-attributes.s -filetype=obj -o - |
macho-dump | FileCheck /home/edward/llvm/llvm/test/MC/MachO/lcomm-attributes.s
env: python: No such file or directory
/home/edward/llvm/llvm/test/MC/MachO/lcomm-attributes.s:17:25: error: expected
string not found in input
// CHECK: ('cputype', 7)
^
:1:1: note: scanning from here
^
FAIL: /home/edward/llvm/llvm/test/MC/MachO/reloc.s
Failed with exit(1) at line 1
while running: llvm-mc -triple i386-apple-darwin9
/home/edward/llvm/llvm/test/MC/MachO/reloc.s -filetype=obj -o - | macho-dump
--dump-section-data | FileCheck /home/edward/llvm/llvm/test/MC/MachO/reloc.s
env: python: No such file or directory
/home/edward/llvm/llvm/test/MC/MachO/reloc.s:33:25: error: expected string not
found in input
// CHECK: ('cputype', 7)
^
:1:1: note: scanning from here
^
FAIL: /home/edward/llvm/llvm/test/MC/MachO/section-align-1.s
Failed with exit(1) at line 1
while running: llvm-mc -triple i386-apple-darwin9
/home/edward/llvm/llvm/test/MC/MachO/section-align-1.s -filetype=obj -o - |
macho-dump | FileCheck /home/edward/llvm/llvm/test/MC/MachO/section-align-1.s
env: python: No such file or directory
/home/edward/llvm/llvm/test/MC/MachO/section-align-1.s:9:25: error: expected
string not found in input
// CHECK: ('cputype', 7)
^
:1:1: note: scanning from here
^
FAIL: /home/edward/llvm/llvm/test/MC/MachO/section-align-2.s
Failed with exit(1) at line 1
while running: llvm-mc -triple i386-apple-darwin9
/home/edward/llvm/llvm/test/MC/MachO/section-align-2.s -filetype=obj -o - |
macho-dump | FileCheck /home/edward/llvm/llvm/test/MC/MachO/section-align-2.s
env: python: No such file or directory
/home/edward/llvm/llvm/test/MC/MachO/section-align-2.s:17:25: error: expected
string not found in input
// CHECK: ('cputype', 7)
^
:1:1: note: scanning from here
^
FAIL: /home/edward/llvm/llvm/test/MC/MachO/sections.s
Failed with exit(1) at line 1
while running: llvm-mc -triple i386-apple-darwin9
/home/edward/llvm/llvm/test/MC/MachO/sections.s -filetype=obj -o - | macho-dump
| FileCheck /home/edward/llvm/llvm/test/MC/MachO/sections.s
env: python: No such file or directory
/home/edward/llvm/llvm/test/MC/MachO/sections.s:51:25: error: expected string
not found in input
// CHECK: ('cputype', 7)
^
:1:1: note: scanning from here
^
FAIL: /home/edward/llvm/llvm/test/MC/MachO/symbol-flags.s
Failed with exit(1) at line 1
while running: llvm-mc -triple i386-apple-darwin9
/home/edward/llvm/llvm/test/MC/MachO/symbol-flags.s -filetype=obj -o - |
macho-dump | FileCheck /home/edward/llvm/llvm/test/MC/MachO/symbol-flags.s
env: python: No such file or directory
/home/edward/llvm/llvm/test/MC/MachO/symbol-flags.s:43:25: error: expected
string not found in input
// CHECK: ('cputype', 7)
^
:1:1: note: scanning from here
^
FAIL: /home/edward/llvm/llvm/test/MC/MachO/symbol-indirect.s
Failed with exit(1) at line 1
while running: llvm-mc -triple i386-apple-darwin9
/home/edward/llvm/llvm/test/MC/MachO/symbol-indirect.s -filetype=obj -o - |
macho-dump | FileCheck /home/edward/llvm/llvm/test/MC/MachO/symbol-indirect.s
env: python: No such file or directory
/home/edward/llvm/llvm/test/MC/MachO/symbol-indirect.s:72:25: error: expected
string not found in input
// CHECK: ('cputype', 7)
^
:1:1: note: scanning from here
^
FAIL: /home/edward/llvm/llvm/test/MC/MachO/symbols-1.s
Failed with exit(1) at line 1
while running: llvm-mc -triple i386-apple-darwin9
/home/edward/llvm/llvm/test/MC/MachO/symbols-1.s -filetype=obj -o - |
macho-dump | FileCheck /home/edward/llvm/llvm/test/MC/MachO/symbols-1.s
env: python: No such file or directory
/home/edward/llvm/llvm/test/MC/MachO/symbols-1.s:19:25: error: expected string
not found in input
// CHECK: ('cputype', 7)
^
:1:1: note: scanning from here
^
FAIL: /home/edward/llvm/llvm/test/MC/MachO/values.s
Failed with exit(1) at line 1
while running: llvm-mc -triple i386-apple-darwin9
/home/edward/llvm/llvm/test/MC/MachO/values.s -filetype=obj -o - | macho-dump |
FileCheck /home/edward/llvm/llvm/test/MC/MachO/values.s
env: python: No such file or directory
/home/edward/llvm/llvm/test/MC/MachO/values.s:20:25: error: expected string not
found in input
// CHECK: ('cputype', 7)
^
:1:1: note: scanning from here
^
FAIL: /home/edward/llvm/llvm/test/MC/MachO/zerofill-1.s
Failed with exit(1) at line 1
while running: llvm-mc -triple i386-apple-darwin9
/home/edward/llvm/llvm/test/MC/MachO/zerofill-1.s -filetype=obj -o - |
macho-dump --dump-section-data | FileCheck
/home/edward/llvm/llvm/test/MC/MachO/zerofill-1.s
env: python: No such file or directory
/home/edward/llvm/llvm/test/MC/MachO/zerofill-1.s:11:25: error: expected string
not found in input
// CHECK: ('cputype', 7)
^
:1:1: note: scanning from here
^
FAIL: /home/edward/llvm/llvm/test/MC/MachO/zerofill-2.s
Failed with exit(1) at line 1
while running: llvm-mc -triple i386-apple-darwin9
/home/edward/llvm/llvm/test/MC/MachO/zerofill-2.s -filetype=obj -o - |
macho-dump --dump-section-data | FileCheck
/home/edward/llvm/llvm/test/MC/MachO/zerofill-2.s
env: python: No such file or directory
/home/edward/llvm/llvm/test/MC/MachO/zerofill-2.s:8:25: error: expected string
not found in input
// CHECK: ('cputype', 7)
^
:1:1: note: scanning from here
^
FAIL: /home/edward/llvm/llvm/test/MC/MachO/zerofill-3.s
Failed with exit(1) at line 1
while running: llvm-mc -triple i386-apple-darwin9
/home/edward/llvm/llvm/test/MC/MachO/zerofill-3.s -filetype=obj -o - |
macho-dump --dump-section-data | FileCheck
/home/edward/llvm/llvm/test/MC/MachO/zerofill-3.s
env: python: No such file or directory
/home/edward/llvm/llvm/test/MC/MachO/zerofill-3.s:22:25: error: expected string
not found in input
// CHECK: ('cputype', 7)
^
:1:1: note: scanning from here
^
....
Running /home/edward/llvm/llvm/test/Transforms/SimplifyLibCalls/dg.exp ...
FAIL: /home/edward/llvm/llvm/test/Transforms/SimplifyLibCalls/floor.ll
Failed with exit(1) at line 6
while running: not /usr/bin/grep {call.*nearbyint(} floor.ll.tmp
%E = call double @nearbyint(double %D) ; [#uses=1]
child process exited abnormally
.....
=== Summary ===
# of expected passes 4117
# of unexpected failures 15
# of expected failures 27
gmake[1]: *** [check-local] Error 1
gmake[1]: Leaving directory `/home/edward/llvm/llvm/test'
gmake: *** [check] Error 2
Cheers,
Edward.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon Nov 2 10:09:37 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 2 Nov 2009 10:09:37 -0600
Subject: [LLVMbugs] [Bug 5370] New: Debug info for nameless global crashes
codegen
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5370
Summary: Debug info for nameless global crashes codegen
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3744)
--> (http://llvm.org/bugs/attachment.cgi?id=3744)
testcase .ll
$ llc debug_noname.ll
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct NULL not valid
I hit this a lot with Fortran (llvm-gcc crashes on about two thirds of the
Fortran programs I have here when building with debug info). The reason is
that Fortran generates CONSTANT_DECL nodes, which become nameless LLVM global
variables (these nodes never have an assembler name). This results in llvm-gcc
generating debug info where there is no display name. DwarfWriter calls
DwarfDebug::CreateGlobalVariableDIE, which calls getDisplayName, which tries to
dereference a NULL 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 Mon Nov 2 15:56:53 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 2 Nov 2009 15:56:53 -0600
Subject: [LLVMbugs] [Bug 5373] New: assertion error in infinite loop
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5373
Summary: assertion error in infinite loop
Product: new-bugs
Version: trunk
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jxyang at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu, regehr at cs.utah.edu
The following small program caused assertion failure at O1 and above. It's seen
on Ubuntu Jaunty on x86.
jason at lajiao:~/rp-trunk/tests$ clang -v
clang version 1.1 (trunk 85811)
Target: i386-pc-linux-gnu
=============================================
#include
#include
int32_t* func_16(int** p_18, int* p_20)
{
uint32_t i;
for (i = 6; i >= 0; i++)
{
assert (p_18 == 0);
assert (p_20 == 0); // fail!!!
}
return 0;
}
/* ---------------------------------------- */
int main(void)
{
func_16(0, 0);
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 Mon Nov 2 17:23:10 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 2 Nov 2009 17:23:10 -0600
Subject: [LLVMbugs] [Bug 5374] New: DAG Combiner inserts illegal nodes.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5374
Summary: DAG Combiner inserts illegal nodes.
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: tilmann.scheller at googlemail.com
CC: llvmbugs at cs.uiuc.edu
TargetLowering::SimplifyDemandedBits() inserts nodes without checking whether
they are legal on the target or not.
I ran into this issue with a target which custom lowers srl.
E.g. on ppc32 the following LLVM IR:
define i32 @foo(i32 %A, i32 %B) {
bb0:
%r1 = xor i32 %B, -1
%r2 = and i32 %r1, %A
%r3 = sub i32 %A, %B
%r4 = or i32 %A, %r1
%r5 = and i32 %r3, %r4
%r6 = or i32 %r5, %r2
%r7 = ashr i32 %r6, 31
%r8 = and i32 %r7, 1
%r9 = xor i32 %r7, -1
%r10 = and i32 %r9, 0
%r11 = or i32 %r10, %r8
%r12 = and i32 %r11, 1
ret i32 %r12
}
triggers the following optimization:
...
Replacing.2 0x2c44030: i32 = sra 0x2c43e40, 0x2c43f38
With: 0x2c44318: i32 = srl 0x2c43e40, 0x2c43f38
...
On ppc32 this transformation is valid, however on targets where slr is custom
lowered it is not.
The optimization is done at line 1227 of TargetLowering.cpp.
It seems that SimplifyDemandedBits() never checks whether it is allowed to
insert a certain node, so there are possibly many other ways to trigger this
bug.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon Nov 2 18:07:33 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 2 Nov 2009 18:07:33 -0600
Subject: [LLVMbugs] [Bug 5375] New: Too many redundant neon / vfp reg-reg
moves are generated
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5375
Summary: Too many redundant neon / vfp reg-reg moves are
generated
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: asl at math.spbu.ru
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3748)
--> (http://llvm.org/bugs/attachment.cgi?id=3748)
Small testcase
We are generating too much extra reg-reg moves mostly due to weak subreg
lowering - it's not able to fold the stuff.
Consider the attached testcase (I think it's the smalles one possible). We have
the following code generated:
fldd d0, .LCPI1_0
fldd d2, .LCPI1_1
vmov d1, d2
bl baz
d2 is killed at vmov, thus vmov should be folded into fldd.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 2 23:54:54 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 2 Nov 2009 23:54:54 -0600
Subject: [LLVMbugs] [Bug 5367] Regalloc lost regclass information
In-Reply-To:
Message-ID: <200911030554.nA35ssCA010615@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5367
Evan Cheng changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Evan Cheng 2009-11-02 23:54:53 ---
Fixed.
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20091102/090285.html
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20091102/090286.html
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20091102/090287.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 Nov 3 01:26:12 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 3 Nov 2009 01:26:12 -0600
Subject: [LLVMbugs] [Bug 4913] unittests should build with build and test
with make check
In-Reply-To:
Message-ID: <200911030726.nA37QC7x013892@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4913
Daniel Dunbar changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Daniel Dunbar 2009-11-03 01:26:12 ---
What do you know, I did this. It will become default behavior once DejaGNU is
killed.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 3 03:45:52 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 3 Nov 2009 03:45:52 -0600
Subject: [LLVMbugs] [Bug 5379] New: Optional Configuration Items
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5379
Summary: Optional Configuration Items
Product: Documentation
Version: 2.6
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: General docs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: gmarkhor at gmail.com
CC: llvmbugs at cs.uiuc.edu
"Optional Configuration Items" of llvm-doc/html/GettingStarted.html. You should
change
$ echo ':llvm:M::llvm::/path/to/lli:' > /proc/sys/fs/binfmt_misc/register
to
$ echo ':llvm:M::BC::/path/to/lli:' > /proc/sys/fs/binfmt_misc/register
as the format signature is BC, not llvm.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 3 05:28:15 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 3 Nov 2009 05:28:15 -0600
Subject: [LLVMbugs] [Bug 5380] New: cppcheck on the whole source tree as of
3.10.2009
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5380
Summary: cppcheck on the whole source tree as of 3.10.2009
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Archive library
AssignedTo: unassignedbugs at nondot.org
ReportedBy: gmarkhor at gmail.com
CC: llvmbugs at cs.uiuc.edu
Here is the cppcheck output ran at the source tree root:
cppcheck -a -q .
[./examples/BrainF/BrainF.h:80]: (all) Memory leak: BrainF::module
[./lib/CodeGen/DwarfEHPrepare.cpp:324]: (all) Memory leak: Store
[./lib/CodeGen/PrologEpilogInserter.h:33]: (error) Invalid number of character
({). Can't process file.
[./lib/CodeGen/StackProtector.cpp:173]: (all) Memory leak: LI
[./lib/Transforms/IPO/LowerSetJmp.cpp:461]: (all) Memory leak: BufPtr
[./lib/Transforms/Instrumentation/RSProfiling.cpp:276]: (all) Memory leak: l
[./lib/Transforms/Utils/InlineFunction.cpp:362]: (all) Memory leak: DestCast
[./lib/Transforms/Utils/InlineFunction.cpp:362]: (all) Memory leak: SrcCast
[./lib/VMCore/TypesContext.h:217]: (error) Class TypeMapBase which is inherited
by class TypeMap does not have a virtual destructor
[./lib/VMCore/TypesContext.h:217]: (error) Class TypeMapBase which is inherited
by class TypeMap does not have a virtual destructor
[./lib/VMCore/TypesContext.h:217]: (error) Class TypeMapBase which is inherited
by class TypeMap does not have a virtual destructor
[./lib/VMCore/TypesContext.h:217]: (error) Class TypeMapBase which is inherited
by class TypeMap does not have a virtual destructor
[./lib/VMCore/TypesContext.h:217]: (error) Class TypeMapBase which is inherited
by class TypeMap does not have a virtual
destructor
[./lib/VMCore/TypesContext.h:217]: (error) Class TypeMapBase which is inherited
by class TypeMap does not have a virtual destructor
[./lib/VMCore/TypesContext.h:217]: (error) Class TypeMapBase which is inherited
by class TypeMap does not have a virtual destructor
[./lib/VMCore/Type.cpp:534]: (all) Memory leak: Holder
[./tools/gold/gold-plugin.cpp:407]: (all) Memory leak: objFile
[./tools/llc/llc.cpp:154]: (all) Memory leak: FDOut
[./tools/llc/llc.cpp:205]: (all) Memory leak: FDOut
[./tools/llvm-mc/AsmParser.h:49]: (all) Memory leak:
AsmParser::SectionUniquingMap
[./tools/llvm-mc/llvm-mc.cpp:208]: (all) Memory leak: Out
[./tools/opt/opt.cpp:531]: (all) Memory leak: FPasses
[./utils/TableGen/CodeGenDAGPatterns.cpp:133]: (error) Same iterator is used
with both depcounts and DepVars
[./utils/TableGen/CodeGenDAGPatterns.cpp:2084]: (all) Memory leak: Pattern
[./utils/TableGen/TGParser.cpp:1108]: (all) Memory leak: Result
[./utils/TableGen/TableGen.cpp:179]: (all) Memory leak: Out
Hope it will help to improve llvm. source was taken from svn on 3.10.2009
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 3 09:35:15 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 3 Nov 2009 09:35:15 -0600
Subject: [LLVMbugs] [Bug 5381] New: Assertion failed instead of proper
diagnostic on offsetof of incomplete type
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5381
Summary: Assertion failed instead of proper diagnostic on
offsetof of incomplete type
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: parser
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: abramobagnara at tin.it
CC: llvmbugs at cs.uiuc.edu
The attached one line C program shows the problem:
$ llvm_new/Debug/bin/clang-cc bug_clang.c
clang-cc: SemaLookup.cpp:817: bool
clang::Sema::LookupQualifiedName(clang::Sema::LookupResult&,
clang::DeclContext*, clang::DeclarationName,
clang::Sema::LookupNameKind, bool): Assertion `(!isa(LookupCtx)
|| LookupCtx->isDependentContext() ||
cast(LookupCtx)->isDefinition() ||
Context.getTypeDeclType(cast(LookupCtx))->getAs()
->isBeingDefined()) && "Declaration context must already be complete!"'
failed.
0 clang-cc 0x00000000010b55af
1 clang-cc 0x00000000010b5b0e
2 libpthread.so.0 0x00000036aa80f0f0
3 libc.so.6 0x00000036a9c32f05 gsignal + 53
4 libc.so.6 0x00000036a9c34a73 abort + 387
5 libc.so.6 0x00000036a9c2bef9 __assert_fail + 233
6 clang-cc 0x000000000076397c
7 clang-cc 0x0000000000732d8a
8 clang-cc 0x00000000008a645b
9 clang-cc 0x00000000008a8acd
10 clang-cc 0x00000000008a9dc7
11 clang-cc 0x00000000008a310e
12 clang-cc 0x00000000008a4237
13 clang-cc 0x00000000008bae4a
14 clang-cc 0x00000000008be769
15 clang-cc 0x00000000008becc6
16 clang-cc 0x000000000088c578
17 clang-cc 0x000000000088d07b
18 clang-cc 0x000000000088d6bf
19 clang-cc 0x000000000088d773
20 clang-cc 0x00000000006b50b7
21 clang-cc 0x000000000042c63b
22 clang-cc 0x000000000042d79b main + 3320
23 libc.so.6 0x00000036a9c1e576 __libc_start_main + 230
24 clang-cc 0x0000000000424bc9
Stack dump:
0. Program arguments: llvm_new/Debug/bin/clang-cc bug_clang.c
1. bug_clang.c:7:34: current parser token ';'
2. bug_clang.c:6:18: parsing function body 'f'
3. bug_clang.c:6:18: in compound statement ('{}')
Aborted
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Tue Nov 3 10:46:57 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 3 Nov 2009 10:46:57 -0600
Subject: [LLVMbugs] [Bug 5382] New: error: elements in iterator range [
__first, __last) do not form a heap
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5382
Summary: error: elements in iterator range [ __first, __last)
do not form a heap
Product: new-bugs
Version: trunk
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
I get the crash below in a clang build with expensive checks.
NOTE: I turned on expensive checks just now. Possibly this will result in more
reports like this. If these are annoying just let me know...
regehr at john-home:~/volatile/tmp222$ clang -v
clang version 1.1 (trunk 85862)
Target: i386-pc-linux-gnu
Thread model: posix
regehr at john-home:~/volatile/tmp222$ clang -O small.c
small.c:3:34: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
unsigned char func_2 (short p_3, int8p_4, unsigned char p_5, int8p_6);
^
small.c:3:62: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
unsigned char func_2 (short p_3, int8p_4, unsigned char p_5, int8p_6);
^
small.c:12:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/usr/include/c++/4.4/bits/stl_heap.h:357:error: elements in iterator range [
__first, __last) do not form a heap with respect to the predicate __comp
.
Objects involved in the operation:
iterator "__first" @ 0x0xbfb87478 {
type =
N11__gnu_debug14_Safe_iteratorIN9__gnu_cxx17__normal_iteratorIPPN4llvm5SUnitENSt6__norm6vectorIS5_SaIS5_EEEEENSt7__debug6vectorIS5_S9_EEEE
(mutable iterator);
state = dereferenceable (start-of-sequence);
references sequence with type `NSt7__debug6vectorIPN4llvm5SUnitESaIS3_EEE' @
0x0xbfb87478
}
iterator "__last" @ 0x0xbfb87464 {
type =
N11__gnu_debug14_Safe_iteratorIN9__gnu_cxx17__normal_iteratorIPPN4llvm5SUnitENSt6__norm6vectorIS5_SaIS5_EEEEENSt7__debug6vectorIS5_S9_EEEE
(mutable iterator);
state = past-the-end;
references sequence with type `NSt7__debug6vectorIPN4llvm5SUnitESaIS3_EEE' @
0x0xbfb87464
}
0 clang-cc 0x09402cbb
1 clang-cc 0x09402af2
2 0x00adf400 __kernel_sigreturn + 0
3 libc.so.6 0x0015b932 abort + 386
4 libstdc++.so.6 0x004cc1c2 __gnu_debug::_Error_formatter::_M_error() const +
370
5 clang-cc 0x08e768cb
6 clang-cc 0x08e7579c
7 clang-cc 0x08e73b7c
8 clang-cc 0x08e70997
9 clang-cc 0x08e6dc3f
10 clang-cc 0x08f98450
11 clang-cc 0x08e780df
12 clang-cc 0x08e0d0f5
13 clang-cc 0x08e0bb94
14 clang-cc 0x08e0ddaf
15 clang-cc 0x08e0b641
16 clang-cc 0x08f31f83
17 clang-cc 0x09358748
18 clang-cc 0x09358492
19 clang-cc 0x09358111
20 clang-cc 0x0808bd5e
21 clang-cc 0x0808b186
22 clang-cc 0x08398a7a
23 clang-cc 0x08058ca8
24 clang-cc 0x0805a55e main + 4010
25 libc.so.6 0x00144b56 __libc_start_main + 230
26 clang-cc 0x08054181
Stack dump:
0. Program arguments:
/home/regehr/z/tmp/llvm-gcc-r85862-install/bin/../libexec/clang-cc -triple
i386-pc-linux-gnu -S -disable-free -main-file-name small.c --relocation-model
static --disable-fp-elim --unwind-tables=0 --mcpu=pentium4 --fmath-errno=1 -O2
-fexceptions=0 -fdiagnostics-show-option -o /tmp/cc-nLLCN2.s -x c small.c
1. parser at end of file
2. Code generation
3. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@func_15'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
regehr at john-home:~/volatile/tmp222$ cat small.c
unsigned char g_141;
unsigned char g_153;
unsigned char func_2 (short p_3, int8p_4, unsigned char p_5, int8p_6);
unsigned char *func_15 (long long p_16)
{
unsigned char *l_154 = &g_153;
if (func_2
(func_2 (1, 0x42L, g_141, 0)
&& func_26 (*l_154, 0), -1L, p_16, p_16 > (*l_154 <= 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 Tue Nov 3 13:08:39 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 3 Nov 2009 13:08:39 -0600
Subject: [LLVMbugs] [Bug 2891] JIT doesn't handle "out of JIT memory"
condition well
In-Reply-To:
Message-ID: <200911031908.nA3J8dqV022467@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=2891
reid.kleckner at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reid.kleckner at gmail.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #8 from reid.kleckner at gmail.com 2009-11-03 13:08:38 ---
I fixed this in r76902, but it opened up this bug:
http://llvm.org/bugs/show_bug.cgi?id=5201 .
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 3 13:53:02 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 3 Nov 2009 13:53:02 -0600
Subject: [LLVMbugs] [Bug 5384] New: Crash on call to exit()
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5384
Summary: Crash on call to exit()
Product: libraries
Version: 2.6
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Core LLVM classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: evan at fallingsnow.net
CC: llvmbugs at cs.uiuc.edu
The following backtrace appeared when a process using LLVM crashed after
calling exit:
Thread 0: Dispatch queue: com.apple.main-thread
0 rbx 0x0000000100622823
llvm::RegisterPassParser::NotifyRemove(char const*) +
131
1 rbx 0x00000001006130fa
llvm::MachinePassRegistry::Remove(llvm::MachinePassRegistryNode*) + 74
2 libSystem.B.dylib 0x00007fff8023c274 __cxa_finalize + 203
3 libSystem.B.dylib 0x00007fff8023c18c exit + 18
4 rbx 0x000000010005651a
rubinius::quit_handler(int) + 90 (environment.cpp:131)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 3 15:53:18 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 3 Nov 2009 15:53:18 -0600
Subject: [LLVMbugs] [Bug 5380] cppcheck on the whole source tree as of
3.10.2009
In-Reply-To:
Message-ID: <200911032153.nA3LrIKO029249@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5380
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #3 from Chris Lattner 2009-11-03 15:53:18 ---
All the memory leaks look bogus. It doesn't realize that new (...
somebasicblock) transfers ownership to the basic block. (as one example). If
you're interested in doing this, please run it on mainline SVN head. These
results are too old to do anything with. Thanks for working on this 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 Tue Nov 3 16:18:01 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 3 Nov 2009 16:18:01 -0600
Subject: [LLVMbugs] [Bug 5269] liveintervals ICE: Shouldn't be alive across
any blocks!
In-Reply-To:
Message-ID: <200911032218.nA3MI1xd030321@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5269
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #2 from Jakob Stoklund Olesen 2009-11-03 16:18:00 ---
I can reproduce this error at r84737, but not at r85954 (TOT today).
John, can you confirm?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 3 17:24:53 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 3 Nov 2009 17:24:53 -0600
Subject: [LLVMbugs] [Bug 5386] New: Non linear time on the size of a
function argument
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5386
Summary: Non linear time on the size of a function argument
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
I would expect that we would take constant time to produce assembly for
----------------------------
%0 = type <{ [FOO x i32] }>
define void @verify(%0) {
entry:
ret void
}
----------------------------
but it looks like we take time O(FOO^2).
100: 0m0.018s
200: 0m0.023s
400: 0m0.032s
800: 0m0.064s
1600: 0m0.190s
3200: 0m0.597s
6400: 0m2.335s
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 3 22:43:11 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 3 Nov 2009 22:43:11 -0600
Subject: [LLVMbugs] [Bug 4981] [Sema] invalid use of '__builtin_offsetof'
crashes clang-cc
In-Reply-To:
Message-ID: <200911040443.nA44hBN0011412@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4981
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Chris Lattner 2009-11-03 22:43:10 ---
John fixed this in r85999 I think.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed Nov 4 00:03:33 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 4 Nov 2009 00:03:33 -0600
Subject: [LLVMbugs] [Bug 5381] Assertion failed instead of proper diagnostic
on offsetof of incomplete type
In-Reply-To:
Message-ID: <200911040603.nA463XtD014103@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5381
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Chris Lattner 2009-11-04 00:03:32 ---
I think this was just fixed 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 Wed Nov 4 00:15:45 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 4 Nov 2009 00:15:45 -0600
Subject: [LLVMbugs] [Bug 5379] Optional Configuration Items
In-Reply-To:
Message-ID: <200911040615.nA46Fj18014567@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5379
Nick Lewycky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Nick Lewycky 2009-11-04 00:15:44 ---
Fixed in r86009.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 4 00:26:36 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 4 Nov 2009 00:26:36 -0600
Subject: [LLVMbugs] [Bug 5387] New: incorrect integer conversion with -O1
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5387
Summary: incorrect integer conversion with -O1
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chenyang at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu, regehr at cs.utah.edu,
jxyang at cs.utah.edu
Using trunk 85610, the code below shows wrong behavior. The for loop should be
infinite.
yang at yang-working:~$ clang -O1 -o small small.c
yang at yang-working:~$ ./small
Done!
yang at yang-working:~$ cat small.c
#include
static unsigned short foo(unsigned short ui1, unsigned short ui2)
{
return (ui1 - ui2);
}
static int bar(void)
{
int l_2 = 0;
for (l_2 = -1; (l_2 > -25); l_2 = foo(l_2, 1))
{
}
return 0;
}
int main(void)
{
bar();
printf("Done!\n");
return 0;
}
yang at yang-working:~$ clang -v
clang version 1.1 (trunk 85610)
Target: i386-pc-linux-gnu
Thread model: posix
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed Nov 4 04:16:36 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 4 Nov 2009 04:16:36 -0600
Subject: [LLVMbugs] [Bug 5387] incorrect integer conversion with -O1
In-Reply-To:
Message-ID: <200911041016.nA4AGaEW005053@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5387
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |baldrick at free.fr
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Duncan Sands 2009-11-04 04:16:35 ---
*** This bug has been marked as a duplicate of bug 965 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 4 07:49:46 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 4 Nov 2009 07:49:46 -0600
Subject: [LLVMbugs] [Bug 5390] New: Problems in __builtin_offsetof locations
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5390
Summary: Problems in __builtin_offsetof locations
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: parser
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: abramobagnara at tin.it
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3761)
--> (http://llvm.org/bugs/attachment.cgi?id=3761)
Source used to show the problems
The attached C source show two different problems:
$ llvm_new/Debug/bin/clang-cc -W -Wall bug_clang2.c
bug_clang2.c:11:7: error: too many arguments to function call
fun(333);
~~~ ^~~
bug_clang2.c:12:7: error: too many arguments to function call
fun(__builtin_offsetof(struct s, g));
~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bug_clang2.c:13:7: error: too many arguments to function call
fun(__builtin_offsetof(struct s, f));
~~~ ^
3 diagnostics generated.
1) As seen in diagnostic for line 12, the end location of
__builtin_offsetof is not the right paren but the end of location of
subexpression (like in all other prefix unary operators). This is wrong
for __builtin_offsetof.
2) Worse in diagnostic for line 13, the end location of
__builtin_offsetof is invalid (here I don't fully understand how this
happens).
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 4 07:56:59 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 4 Nov 2009 07:56:59 -0600
Subject: [LLVMbugs] [Bug 5391] New: assertion triggered in
LiveIntervalAnalysis
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5391
Summary: assertion triggered in LiveIntervalAnalysis
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Register Allocator
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nunoplopes at sapo.pt
CC: llvmbugs at cs.uiuc.edu
$ llc -o x a.ll
llc: LiveIntervalAnalysis.cpp:525: void
llvm::LiveIntervals::handlePhysicalRegisterDef(llvm::MachineBasicBlock*,
llvm::ilist_iterator, llvm::SlotIndex,
llvm::MachineOperand&, llvm::LiveInterval&, llvm::MachineInstr*): Assertion
`!mi->getOperand(DefIdx).isEarlyClobber() && "Two address instruction is an
early clobber?"' failed.
$ cat a.ll
%0 = type { i32, i32 }
define void @safe_address(i32 %res, i32 %size, i32 %offset) nounwind {
entry:
%0 = call %0 asm "mull $3\0A\09addl $4,$0\0A\09adcl $1,$1",
"=&{ax},=&{dx},%0,rm,rm,~{dirflag},~{fpsr},~{flags}"(i32 %res, i32 %size, i32
%offset) nounwind
ret void
}
reduced C code:
void safe_address(int res, int size, int offset) {
unsigned long overflow = 0;
__asm__ ("mull %3\n\taddl %4,%0\n\tadcl %1,%1" : "=&a"(res), "=&d" (overflow)
: "%0"(res), "rm"(size), "rm"(offset));
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed Nov 4 10:47:25 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 4 Nov 2009 10:47:25 -0600
Subject: [LLVMbugs] [Bug 5393] New: llvm-link crashes with `Entry == 0 && "
Value really did already have handles?"'
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5393
Summary: llvm-link crashes with `Entry == 0 && "Value really did
already have handles?"'
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Linker
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nunoplopes at sapo.pt
CC: llvmbugs at cs.uiuc.edu
$ llvm-link php_pcre.ll zlib.ll -o a.bc
llvm-link: Value.cpp:449: void llvm::ValueHandleBase::AddToUseList(): Assertion
`Entry == 0 && "Value really did already have handles?"' failed
the input is given in attach. note that if you compile the files first to .bc,
then llvm-link doesn't crash. changing the order of the input files also
"fixes" the problem.
valgrind report: http://pastebin.com/m4bcbb5d3
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 4 11:39:21 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 4 Nov 2009 11:39:21 -0600
Subject: [LLVMbugs] [Bug 5394] New: ISCCP crashes
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5394
Summary: ISCCP crashes
Product: libraries
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: Transformation Utilities
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3764)
--> (http://llvm.org/bugs/attachment.cgi?id=3764)
test case
pes /tmp$ clang -O2 tree-pretty-print.c
In file included from
/data/home/rdivacky/clangbsd/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/tree-pretty-print.c:1:
In file included from
/data/home/rdivacky/clangbsd/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/tree-pretty-print.c:1:
In file included from
/data/home/rdivacky/clangbsd/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/tree-pretty-print.c:28:
In file included from
/data/home/rdivacky/clangbsd/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/diagnostic.h:26:
/data/home/rdivacky/clangbsd/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/pretty-print.h:310:22:
warning: 'format' attribute argument not supported:
__gcc_diag__
__attribute__ ((__format__ (__gcc_diag__, 2 ,3))) __attribute__
((__nonnull__ (2)));
^
/data/home/rdivacky/clangbsd/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/pretty-print.h:313:22:
warning: 'format' attribute argument not supported:
__gcc_diag__
__attribute__ ((__format__ (__gcc_diag__, 2 ,3))) __attribute__
((__nonnull__ (2)));
^
Stack dump:
0. Program arguments: /usr/local/bin/../libexec/clang-cc -triple
x86_64-unknown-freebsd7.2 -S -disable-free -main-file-name tree-pretty-print.c
--relocation-model static --disable-fp-elim --unwind-tables=1 --mcpu=x86-64
--fmath-errno=1 -O2 -fmessage-length 152 -fexceptions=0
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-XDVXB1.s -x c
/tmp/tree-pretty-print.c
1. parser at end of file
2. Per-module optimization passes
3. Running pass 'Interprocedural Sparse Conditional Constant Propagation'
on module '/tmp/tree-pretty-print.c'.
clang: error: compiler command failed due to signal 10 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed Nov 4 12:58:00 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 4 Nov 2009 12:58:00 -0600
Subject: [LLVMbugs] [Bug 5394] ISCCP crashes
In-Reply-To:
Message-ID: <200911041858.nA4Iw0Hl027952@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5394
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Chris Lattner 2009-11-04 12:57:59 ---
Fixed in r86036, thanks!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed Nov 4 14:47:15 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 4 Nov 2009 14:47:15 -0600
Subject: [LLVMbugs] [Bug 5395] New: ValueMap mutex unit tests fail when llvm
configured with --disable-threads
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5395
Summary: ValueMap mutex unit tests fail when llvm configured with
--disable-threads
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
I build llvm with --disable-threads. I noticed that "make unittests" gives:
[ FAILED ] 3 tests, listed below:
[ FAILED ] ValueMapTest/0.LocksMutex, where TypeParam = llvm::Value
[ FAILED ] ValueMapTest/1.LocksMutex, where TypeParam = llvm::Instruction
[ FAILED ] ValueMapTest/2.LocksMutex, where TypeParam = llvm::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 Wed Nov 4 18:38:39 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 4 Nov 2009 18:38:39 -0600
Subject: [LLVMbugs] [Bug 5397] New: Rename diagnostic classes
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5397
Summary: Rename diagnostic classes
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Basic
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
Clang's diagnostic classes are confusingly named:
1. DiagnosticInfo is in fact "Diagnostic".
2. "Diagnostic" should be something like DiagnosticsEngine.
3. DiagnosticClient could be renamed to DiagnosticConsumer for consistency.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 4 19:13:15 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 4 Nov 2009 19:13:15 -0600
Subject: [LLVMbugs] [Bug 5393] llvm-link crashes with resolving metadata
In-Reply-To:
Message-ID: <200911050113.nA51DFfZ010232@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5393
devang.patel changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |devang.patel at gmail.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from devang.patel 2009-11-04 19:13:15 ---
Fixed in r86091.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 4 23:37:52 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 4 Nov 2009 23:37:52 -0600
Subject: [LLVMbugs] [Bug 3071] CommandLine. h assertion failed with linking
LLVM to a shared library
In-Reply-To:
Message-ID: <200911050537.nA55bqhT019027@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3071
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Chris Lattner 2009-11-04 23:37:51 ---
THis happens when you get a .o file linked into both the main application and
the plugin.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 4 23:40:58 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 4 Nov 2009 23:40:58 -0600
Subject: [LLVMbugs] [Bug 4376] lli -fast crashes with thread-local variables
In-Reply-To:
Message-ID: <200911050540.nA55ewig019159@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4376
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #4 from Chris Lattner 2009-11-04 23:40:57 ---
*** This bug has been marked as a duplicate of bug 3654 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 4 23:42:48 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 4 Nov 2009 23:42:48 -0600
Subject: [LLVMbugs] [Bug 5399] New: Need 'x86_icebp' debug intrinsic for x86
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5399
Summary: Need 'x86_icebp' debug intrinsic for x86
Product: libraries
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: eugeny.grishul at gmail.com
CC: llvmbugs at cs.uiuc.edu
It will be great to add intrinsic 'x86_icebp' with opcode 0xF1 ( not
documented, but supported by all x86 hardware ) intrinsic for X86 to simplify
JIT debugging with Visual Studio ( it breaks execution and immediately jumps to
disassembly without prompting ).
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 4 23:47:03 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 4 Nov 2009 23:47:03 -0600
Subject: [LLVMbugs] [Bug 5384] Crash on call to exit()
In-Reply-To:
Message-ID: <200911050547.nA55l3DR019526@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5384
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Chris Lattner 2009-11-04 23:47:03 ---
It's fairly impossible to do anything with this without more info :)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 5 08:03:13 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 5 Nov 2009 08:03:13 -0600
Subject: [LLVMbugs] [Bug 5313] Optimisation "loop-rotate" generate unoptimal
dirty code
In-Reply-To:
Message-ID: <200911051403.nA5E3DFl018925@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5313
Sylv??re Teissier changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu Nov 5 11:29:46 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 5 Nov 2009 11:29:46 -0600
Subject: [LLVMbugs] [Bug 4542] TargetData should be null if target data
string in module is not provided
In-Reply-To:
Message-ID: <200911051729.nA5HTkL7026319@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4542
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Dan Gohman 2009-11-05 11:29:46 ---
Kenneth Uildriks implemented the change in opt and updated all the tests in
r85900.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 5 13:06:24 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 5 Nov 2009 13:06:24 -0600
Subject: [LLVMbugs] [Bug 4930] Simple code breaks with llc
In-Reply-To:
Message-ID: <200911051906.nA5J6OWn030074@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4930
Bill Wendling changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |wendling at apple.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Bill Wendling 2009-11-05 13:06:23 ---
It looks like this is 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 Nov 5 13:27:06 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 5 Nov 2009 13:27:06 -0600
Subject: [LLVMbugs] [Bug 5402] New: attribute noreturn doesn' t work if
specified in front of a function pointer decl
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5402
Summary: attribute noreturn doesn't work if specified in front of
a function pointer decl
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: parser
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: benny.kra at gmail.com
CC: llvmbugs at cs.uiuc.edu, mrs at apple.com
test case:
#define NORETURN __attribute__((__noreturn__))
NORETURN void (*a)();
void (*b)() NORETURN;
NORETURN void x() {
a();
}
NORETURN void y() {
b();
}
clang complains:
t.c:8:1: warning: function declared 'noreturn' should not return
[-Winvalid-noreturn]
}
^
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 5 16:41:58 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 5 Nov 2009 16:41:58 -0600
Subject: [LLVMbugs] [Bug 5402] attribute noreturn doesn' t work if specified
in front of a function pointer decl
In-Reply-To:
Message-ID: <200911052241.nA5Mfwf5006022@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5402
Nuno Lopes changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nunoplopes at sapo.pt
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Nuno Lopes 2009-11-05 16:41:57 ---
*** This bug has been marked as a duplicate of bug 2461 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 5 18:12:22 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 5 Nov 2009 18:12:22 -0600
Subject: [LLVMbugs] [Bug 5315] Incorrect return type of SSE2 pack intrinics
In-Reply-To:
Message-ID: <200911060012.nA60CMn2009233@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5315
Eric Christopher changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #5 from Eric Christopher 2009-11-05 18:12:21 ---
I needed to fix up some testcases as well, but committed thusly:
Sending include/llvm/IntrinsicsX86.td
Sending test/CodeGen/X86/2006-04-04-CrossBlockCrash.ll
Sending test/CodeGen/X86/2006-05-01-SchedCausingSpills.ll
Sending test/CodeGen/X86/2007-05-17-ShuffleISelBug.ll
Sending test/CodeGen/X86/vec_zero-2.ll
Transmitting file data .....
Committed revision 86203.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 5 20:19:29 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 5 Nov 2009 20:19:29 -0600
Subject: [LLVMbugs] [Bug 5406] New: Invalid call lowering on ARM
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5406
Summary: Invalid call lowering on ARM
Product: tools
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: llvm-gcc
AssignedTo: rafael.espindola at gmail.com
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
In the C code
-------------
typedef struct { char x[3]; } A0;
void foo (int i, ...);
int main (void)
{
A0 a3;
a3.x[0] = 0;
a3.x[0] = 0;
a3.x[2] = 26;
foo (1, a3 );
return 0;
}
------------
The call is lowered by llvm-gcc to
tail call arm_aapcscc void (i32, ...)* @foo(i32 11, i16 0, i8 26) nounwind
Which is incorrect. All of a3 should be passed in R1 and the above call splits
it in R1 and R2.
clang produces correct code:
%tmp11 = insertvalue [1 x i32] undef, i32 1703936, 0 ; <[1 x i32]> [#uses=1]
%tmp12 = insertvalue %0 undef, [1 x i32] %tmp11, 0 ; <%0> [#uses=1]
tail call arm_aapcscc void (i32, ...)* @foo(i32 1, %0 %tmp12) nounwind
Note that 1703936 is 0x1a0000 which is 26 with two 0 bytes added.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 5 22:28:01 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 5 Nov 2009 22:28:01 -0600
Subject: [LLVMbugs] [Bug 5325] GlobalVariable ctor doesn't need to take a
context
In-Reply-To:
Message-ID: <200911060428.nA64S1Gi017866@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5325
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Lattner 2009-11-05 22:27:58 ---
done in r86231
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 6 08:46:43 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 6 Nov 2009 08:46:43 -0600
Subject: [LLVMbugs] [Bug 5410] New: Crash in coalescer
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5410
Summary: Crash in coalescer
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: asl at math.spbu.ru
CC: llvmbugs at cs.uiuc.edu
Consider the attached bytecode (both original & bugpoint-reduced). Running llc
yields a crash in coalescer:
$ ./llc -mcpu=cortex-a8 bugpoint-reduced-simplified.bc
0 llc 0x0000000000cb28d6
1 llc 0x0000000000cb2e72
2 libpthread.so.0 0x00007f0e3041b6f0
3 llc 0x0000000000a3306f
llvm::SimpleRegisterCoalescing::JoinIntervals(llvm::LiveInterval&,
llvm::LiveInterval&, bool&) + 2527
4 llc 0x0000000000a3931e
llvm::SimpleRegisterCoalescing::JoinCopy(llvm::CopyRec&, bool&) + 7898
5 llc 0x0000000000a39f9a
llvm::SimpleRegisterCoalescing::CopyCoalesceInMBB(llvm::MachineBasicBlock*,
std::vector >&) + 1142
6 llc 0x0000000000a3a14e
llvm::SimpleRegisterCoalescing::joinIntervals() + 232
7 llc 0x0000000000a3a66f
llvm::SimpleRegisterCoalescing::runOnMachineFunction(llvm::MachineFunction&) +
735
8 llc 0x00000000009b8cb5
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 83
9 llc 0x0000000000c3595f
llvm::FPPassManager::runOnFunction(llvm::Function&) + 329
10 llc 0x0000000000c375ef
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 111
11 llc 0x0000000000c37796
llvm::FunctionPassManager::run(llvm::Function&) + 112
12 llc 0x0000000000401ec0 main + 3064
13 libc.so.6 0x00007f0e2f744a44 __libc_start_main + 244
14 llc 0x0000000000400249
Stack dump:
0. Program arguments: ./llc -mcpu=cortex-a8 bugpoint-reduced-simplified.bc
1. Running pass 'Simple Register Coalescing' on function '@aaa'
valgrind is not quite as well:
$ valgrind ./llc -mcpu=cortex-a8 bugpoint-reduced-simplified.bc
==19537== Memcheck, a memory error detector.
==19537== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.
==19537== Using LibVEX rev 1884, a library for dynamic binary translation.
==19537== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.
==19537== Using valgrind-3.4.1, a dynamic binary instrumentation framework.
==19537== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al.
==19537== For more details, rerun with: -v
==19537==
==19537== Invalid read of size 8
==19537== at 0xA3306F:
llvm::SimpleRegisterCoalescing::JoinIntervals(llvm::LiveInterval&,
llvm::LiveInterval&, bool&) (SimpleRegisterCoalescing.cpp:2233)
==19537== by 0xA3931D:
llvm::SimpleRegisterCoalescing::JoinCopy(llvm::CopyRec&, bool&)
(SimpleRegisterCoalescing.cpp:1652)
==19537== by 0xA39F99:
llvm::SimpleRegisterCoalescing::CopyCoalesceInMBB(llvm::MachineBasicBlock*,
std::vector >&)
(SimpleRegisterCoalescing.cpp:2427)
==19537== by 0xA3A14D: llvm::SimpleRegisterCoalescing::joinIntervals()
(SimpleRegisterCoalescing.cpp:2448)
==19537== by 0xA3A66E:
llvm::SimpleRegisterCoalescing::runOnMachineFunction(llvm::MachineFunction&)
(SimpleRegisterCoalescing.cpp:2717)
==19537== by 0x9B8CB4:
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(MachineFunctionPass.cpp:27)
==19537== by 0xC3595E: llvm::FPPassManager::runOnFunction(llvm::Function&)
(PassManager.cpp:1330)
==19537== by 0xC375EE: llvm::FunctionPassManagerImpl::run(llvm::Function&)
(PassManager.cpp:1282)
==19537== by 0xC37795: llvm::FunctionPassManager::run(llvm::Function&)
(PassManager.cpp:1212)
==19537== by 0x401EBF: main (llc.cpp:392)
==19537== Address 0x10 is not stack'd, malloc'd or (recently) free'd
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 6 09:01:53 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 6 Nov 2009 09:01:53 -0600
Subject: [LLVMbugs] [Bug 5411] New: Another regscavenger assertion
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5411
Summary: Another regscavenger assertion
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Backend: ARM
AssignedTo: evan.cheng at apple.com
ReportedBy: asl at math.spbu.ru
CC: llvmbugs at cs.uiuc.edu
Consider attached bytecode. llc fails with:
$ ./llc -mcpu=cortex-a8 bugpoint-reduced-simplified.ll
llc: /home/asl/proj/llvm/src_arm/lib/CodeGen/RegisterScavenging.cpp:196: void
llvm::RegScavenger::forward(): Assertion `SubUsed && "Using an undefined
register!"' failed.
0 llc 0x0000000000cb28d6
1 llc 0x0000000000cb2e72
2 libpthread.so.0 0x00007f5075b006f0
3 libc.so.6 0x00007f5074e3c9c5 gsignal + 53
4 libc.so.6 0x00007f5074e3de70 abort + 272
5 libc.so.6 0x00007f5074e35edf __assert_fail + 239
6 llc 0x0000000000a14b24 llvm::RegScavenger::forward() + 1112
7 llc 0x00000000005d0bf9
llvm::RegScavenger::forward(llvm::ilist_iterator) + 109
8 llc 0x00000000009dfa09
llvm::PEI::scavengeFrameVirtualRegs(llvm::MachineFunction&) + 1339
9 llc 0x00000000009e1593
llvm::PEI::runOnMachineFunction(llvm::MachineFunction&) + 483
10 llc 0x00000000009b8cb5
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 83
11 llc 0x0000000000c3595f
llvm::FPPassManager::runOnFunction(llvm::Function&) + 329
12 llc 0x0000000000c375ef
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 111
13 llc 0x0000000000c37796
llvm::FunctionPassManager::run(llvm::Function&) + 112
14 llc 0x0000000000401ec0 main + 3064
15 libc.so.6 0x00007f5074e29a44 __libc_start_main + 244
16 llc 0x0000000000400249
Stack dump:
0. Program arguments: ./llc -mcpu=cortex-a8 bugpoint-reduced-simplified.ll
1. Running pass 'Prolog/Epilog Insertion & Frame Finalization' on function
'@aaa'
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 6 09:18:04 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 6 Nov 2009 09:18:04 -0600
Subject: [LLVMbugs] [Bug 5412] New: Crash in regalloc
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5412
Summary: Crash in regalloc
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: asl at math.spbu.ru
CC: llvmbugs at cs.uiuc.edu
Consider the bytecode attached (unreduced, reduction leads to PR5411). Running
llc leads to:
$ ./llc -mcpu=cortex-a8 1.ll
llc: /home/asl/proj/llvm/src_arm/include/llvm/CodeGen/MachineOperand.h:253:
void llvm::MachineOperand::setIsDead(bool): Assertion `isReg() && IsDef &&
"Wrong MachineOperand accessor"' failed.
0 llc 0x0000000000cb28d6
1 llc 0x0000000000cb2e72
2 libpthread.so.0 0x00007fa75fc116f0
3 libc.so.6 0x00007fa75ef4d9c5 gsignal + 53
4 libc.so.6 0x00007fa75ef4ee70 abort + 272
5 libc.so.6 0x00007fa75ef46edf __assert_fail + 239
6 llc 0x00000000004b8627 llvm::MachineOperand::setIsDead(bool) +
113
7 llc 0x0000000000a74b29
8 llc 0x0000000000a78106
9 llc 0x0000000000a7ddec
10 llc 0x0000000000a7e54e
11 llc 0x00000000009ed1af
12 llc 0x00000000009b8cb5
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 83
13 llc 0x0000000000c3595f
llvm::FPPassManager::runOnFunction(llvm::Function&) + 329
14 llc 0x0000000000c375ef
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 111
15 llc 0x0000000000c37796
llvm::FunctionPassManager::run(llvm::Function&) + 112
16 llc 0x0000000000401ec0 main + 3064
17 libc.so.6 0x00007fa75ef3aa44 __libc_start_main + 244
18 llc 0x0000000000400249
Stack dump:
0. Program arguments: ./llc -mcpu=cortex-a8 1.ll
1. Running pass 'Linear Scan Register Allocator' on function '@aaa'
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 6 10:41:06 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 6 Nov 2009 10:41:06 -0600
Subject: [LLVMbugs] [Bug 5413] New: \u in wide string literals is broken
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5413
Summary: \u in wide string literals is broken
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: parser
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu
Repro:
thakis-macbookpro:~/src/chrome-git/src thakis$ cat test.c
#include
#include
int main() {
wchar_t* s1 = L"\xFF8e";
wchar_t* s2 = L"\uFF8e";
printf("%d\n", sizeof(wchar_t));
printf("%x\n", s1[0]);
printf("%x\n", s1[1]);
printf("%x\n", s2[0]);
printf("%x\n", s2[1]);
printf("%x\n", s2[2]);
printf("%x\n", s2[3]);
}
thakis-macbookpro:~/src/chrome-git/src thakis$ clang -o test test.c
thakis-macbookpro:~/src/chrome-git/src thakis$ ./test
4
ff8e
0
8ebeef
a6425
a7825
0
thakis-macbookpro:~/src/chrome-git/src thakis$ clang --version
clang version 1.1 (trunk 86239)
Target: i386-apple-darwin9
Thread model: posix
I would've expected that both L"\xFF8e" and L"\uFF8e" produce the same data. On
gcc, they do.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri Nov 6 11:40:11 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 6 Nov 2009 11:40:11 -0600
Subject: [LLVMbugs] [Bug 5414] New: Assertion `!isNull() && "Invalid
descriptor!"' failed
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5414
Summary: Assertion `!isNull() && "Invalid descriptor!"' 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: baldrick at free.fr
CC: dpatel at apple.com, llvmbugs at cs.uiuc.edu
Created an attachment (id=3779)
--> (http://llvm.org/bugs/attachment.cgi?id=3779)
testcase .ll
I'm getting this debug info assertion failure when trying to built the
llvm-gcc Ada front-end. This is a recent regression.
$ llc invalid_descriptor.bc
llc: llvm/lib/Analysis/DebugInfo.cpp:141: bool
llvm::DIDescriptor::isDerivedType() const: Assertion `!isNull() && "Invalid
descriptor!"' failed.
...
4 libc.so.6 0xf74ed648 __assert_fail + 248
5 llc 0x08a2aa2e llvm::DIDescriptor::isDerivedType() const + 114
6 llc 0x08a2b6a0 llvm::DIDerivedType::getOriginalTypeSize() const + 102
7 llc 0x08a2b6cc llvm::DIDerivedType::getOriginalTypeSize() const + 146
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 6 11:58:36 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 6 Nov 2009 11:58:36 -0600
Subject: [LLVMbugs] [Bug 5370] Debug info for nameless global crashes codegen
In-Reply-To:
Message-ID: <200911061758.nA6Hwab4028939@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5370
devang.patel changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |devang.patel at gmail.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from devang.patel 2009-11-06 11:58:35 ---
NIce test case. Thanks!.
Fixed in r86259.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 6 12:24:58 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 6 Nov 2009 12:24:58 -0600
Subject: [LLVMbugs] [Bug 5414] Assertion `!isNull() && "Invalid
descriptor!"' failed
In-Reply-To:
Message-ID: <200911061824.nA6IOwdf030138@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5414
devang.patel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from devang.patel 2009-11-06 12:24:57 ---
Meanwhile, added defensive patch in code gen.
r86269.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 6 13:16:27 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 6 Nov 2009 13:16:27 -0600
Subject: [LLVMbugs] [Bug 5417] New: llvm-extract doesn't strip out dead
metadata
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5417
Summary: llvm-extract doesn't strip out dead metadata
Product: tools
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: extract
AssignedTo: unassignedbugs at nondot.org
ReportedBy: clattner at apple.com
CC: dpatel at apple.com, llvmbugs at cs.uiuc.edu
Created an attachment (id=3781)
--> (http://llvm.org/bugs/attachment.cgi?id=3781)
testcase
I'd expect this to remove all the dead metadata, but it doesn't:
llvm-extract -func tree_ssa_forward_propagate_single_use_vars 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 Fri Nov 6 21:28:08 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 6 Nov 2009 21:28:08 -0600
Subject: [LLVMbugs] [Bug 5421] New: llc crash on i128 switch
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5421
Summary: llc crash on i128 switch
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
--
ddunbar at giles:tmp$ cat x.ll
; ModuleID = ''
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-apple-darwin10.0"
define void @f0() {
entry:
switch i128 undef, label %exit [
i128 55340232221128654848, label %exit
i128 92233720368547758080, label %exit
i128 73786976294838206464, label %exit
i128 147573952589676412928, label %exit
]
exit:
unreachable
}
ddunbar at giles:tmp$ llc < x.ll
Assertion failed: (getMinSignedBits() <= 64 && "Too many bits for int64_t"),
function getSExtValue, file
/Volumes/Data/Users/ddunbar/llvm/include/llvm/ADT/APInt.h, line 1060.
0 llc 0x0000000100bb7acb PrintStackTrace(void*) + 38
1 llc 0x0000000100bb8059 SignalHandler(int) + 336
2 libSystem.B.dylib 0x00007fff80ab00aa _sigtramp + 26
3 libSystem.B.dylib 0x00007fff5fbfe1b0 _sigtramp + 3742687520
4 libSystem.B.dylib 0x00007fff80b2c0b4 __pthread_markcancel + 0
5 llc 0x0000000100266280 llvm::APInt::getSExtValue() const + 148
6 llc 0x00000001008049c9 llvm::ConstantInt::getSExtValue() const
+ 25
7 llc 0x00000001008049ed
llvm::SelectionDAGLowering::Case::size() const + 33
8 llc 0x00000001007ecc74
llvm::SelectionDAGLowering::handleJTSwitchCase(llvm::SelectionDAGLowering::CaseRec&,
std::vector >&, llvm::Value*,
llvm::MachineBasicBlock*) + 226
9 llc 0x00000001007ef43e
llvm::SelectionDAGLowering::visitSwitch(llvm::SwitchInst&) + 1036
10 llc 0x00000001007f02c9
llvm::SelectionDAGLowering::visit(unsigned int, llvm::User&) + 363
11 llc 0x00000001007f06e4
llvm::SelectionDAGLowering::visit(llvm::Instruction&) + 44
12 llc 0x000000010080afd0
llvm::SelectionDAGISel::SelectBasicBlock(llvm::BasicBlock*,
llvm::ilist_iterator,
llvm::ilist_iterator) + 716
13 llc 0x000000010080bb94
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function&,
llvm::MachineFunction&, llvm::MachineModuleInfo*, llvm::DwarfWriter*,
llvm::TargetInstrInfo const&) + 2684
14 llc 0x000000010080ca41
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 989
15 llc 0x00000001008e1e01
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 83
16 llc 0x0000000100b3de26
llvm::FPPassManager::runOnFunction(llvm::Function&) + 336
17 llc 0x0000000100b3fc03
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 111
18 llc 0x0000000100b3fdb2
llvm::FunctionPassManager::run(llvm::Function&) + 112
19 llc 0x0000000100030511 main + 3256
20 llc 0x000000010002f114 start + 52
21 llc 0x0000000000000001 start + 4294774561
Stack dump:
0. Program arguments: llc
1. Running pass 'X86 DAG->DAG Instruction Selection' on function '@f0'
Abort trap
ddunbar at giles:tmp$
--
(from llvm-gcc compile of clang).
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 7 01:52:10 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 7 Nov 2009 01:52:10 -0600
Subject: [LLVMbugs] [Bug 5421] llc crash on i128 switch
In-Reply-To:
Message-ID: <200911070752.nA77qASe025752@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5421
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Lattner 2009-11-07 01:52:10 ---
Fixed:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20091102/090550.html
I will investigate what is causing these to be generated separately.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 7 09:22:57 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 7 Nov 2009 09:22:57 -0600
Subject: [LLVMbugs] [Bug 5423] New: SubReg survived till asmprinting
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5423
Summary: SubReg survived till asmprinting
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Backend: ARM
AssignedTo: evan.cheng at apple.com
ReportedBy: asl at math.spbu.ru
CC: llvmbugs at cs.uiuc.edu, stoklund at 2pi.dk
Un-XFAIL'ing of 2009-11-07-SubRegAsmPrinting.ll leads to assertion in the
asmprinting since the subreg is survived to that stage. w/o assert we will end
with assembler complaint, since fconsts cannot surely have a D reg as a
destination :)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 7 11:16:05 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 7 Nov 2009 11:16:05 -0600
Subject: [LLVMbugs] [Bug 5199] msp430 backend: ice: Cannot yet select
In-Reply-To:
Message-ID: <200911071716.nA7HG5EY026094@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5199
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Anton Korobeynikov 2009-11-07 11:16:04 ---
Committed as r86384
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 7 11:25:44 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 7 Nov 2009 11:25:44 -0600
Subject: [LLVMbugs] [Bug 5424] New: Sink SelectAddr into Emit_* functions
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5424
Summary: Sink SelectAddr into Emit_* functions
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
Code sequences like this are very common in X86ISelDAGToDAG:
--
SDValue N01 = N0.getOperand(1);
SDValue CPTmpN01_0;
SDValue CPTmpN01_1;
SDValue CPTmpN01_2;
SDValue CPTmpN01_3;
SDValue CPTmpN01_4;
if (SelectAddr(N, N01, CPTmpN01_0, CPTmpN01_1, CPTmpN01_2, CPTmpN01_3,
CPTmpN01_4)) {
SDNode *Result = Emit_4(N, X86::ADD8rm, MVT::i8, CPTmpN01_0,
CPTmpN01_1, CPTmpN01_2, CPTmpN01_3, CPTmpN01_4);
return Result;
}
--
It may be valuable to split SelectAddr into a predicate (CanSelectAddr) and an
extract function which pulls out the SDValue operands. This would allow us to
write the above code as:
--
if (CanSelectAddr(N, N0.getOperand(1)))
return Emit_4(N, X86::ADD8rm, MVT::i8);
--
where the extraction has been moved to Emit_4. This would probably be a compile
time (of X86ISelDAGToDAG) win, and may be a compile performance win.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 7 11:55:01 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 7 Nov 2009 11:55:01 -0600
Subject: [LLVMbugs] [Bug 5425] New: Sema should not depend on
libclangAnalysis
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5425
Summary: Sema should not depend on libclangAnalysis
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: kremenek at apple.com, llvmbugs at cs.uiuc.edu, mrs at apple.com
Sema is using the CFG object from Analysis, this is layering violation.
The CFG should probably be moved to AST?
Once done, please remove the clangAnalysis library from CIndex.so's link.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 7 12:09:39 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 7 Nov 2009 12:09:39 -0600
Subject: [LLVMbugs] [Bug 5114] LLVMContext memory leaks!
In-Reply-To:
Message-ID: <200911071809.nA7I9dHp028084@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5114
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Chris Lattner 2009-11-07 12:09:39 ---
Ok, please reopen if it's still a problem.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sat Nov 7 15:45:22 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 7 Nov 2009 15:45:22 -0600
Subject: [LLVMbugs] [Bug 5428] New: Get rid of darwin'isms in the build
system
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5428
Summary: Get rid of darwin'isms in the build system
Product: compiler-rt
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: compiler-rt
AssignedTo: unassignedbugs at nondot.org
ReportedBy: asl at math.spbu.ru
CC: llvmbugs at cs.uiuc.edu
Currently build system of compiler-rt contains many darwinism's and behaves
differently on darwin and non-darwin systems (e.g. in order to build target foo
on non-darwin we need to do "make TargetArchs=foo foo" if foo != i386, etc).
We need to get rid of this.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sat Nov 7 15:47:45 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 7 Nov 2009 15:47:45 -0600
Subject: [LLVMbugs] [Bug 5429] New: Library should be configurable
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5429
Summary: Library should be configurable
Product: compiler-rt
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: compiler-rt
AssignedTo: unassignedbugs at nondot.org
ReportedBy: asl at math.spbu.ru
CC: llvmbugs at cs.uiuc.edu
Each target should be able to select:
1. Which functions it wants to include into the library (e.g. di/ti mode
generic stuff is pretty useless for 16 bit targets)
2. There should be way to provide extra configuration options for the library
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 8 03:10:12 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 8 Nov 2009 03:10:12 -0600
Subject: [LLVMbugs] [Bug 5161] make llvm-test fails to run
In-Reply-To:
Message-ID: <200911080910.nA89AChj007930@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5161
Daniel Dunbar changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel at zuster.org
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Daniel Dunbar 2009-11-08 03:10:11 ---
The main issues are fixed as of r86452, any remaining issues are hopefully one
off test failures or missing site.exp issues, but 'make check' should generally
work for a cmake build (I have only tested with cmake makefiles currently,
project files may have a few niggling issues).
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun Nov 8 13:09:26 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 8 Nov 2009 13:09:26 -0600
Subject: [LLVMbugs] [Bug 5431] New: gcc 4.1.2 build failure
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5431
Summary: gcc 4.1.2 build failure
Product: clang
Version: trunk
Platform: PC
URL: http://yoyodyne.ath.cx/tmp/moo.c
OS/Version: DragonFly BSD
Status: NEW
Severity: normal
Priority: P2
Component: parser
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: swildner at erpicon.de
CC: llvmbugs at cs.uiuc.edu
Hi everybody,
this test case (see URL) compiles using gcc (tested with 4.1.2 and 4.4.2) but
fails with clang:
zoot# clang -fno-color-diagnostics -o moo moo.c
moo.c:7:1: error: redefinition of 'moo'
moo(void)
^
moo.c:2:1: note: previous definition is here
moo(void)
^
2 diagnostics generated.
It's a simplified case of the definitions of exact_log2() and floor_log2() in
gcc 4.1.2's source on DragonFly.
Sascha
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 8 13:21:07 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 8 Nov 2009 13:21:07 -0600
Subject: [LLVMbugs] [Bug 5431] gcc 4.1.2 build failure
In-Reply-To:
Message-ID: <200911081921.nA8JL7X4018319@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5431
Edward O'Callaghan changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Edward O'Callaghan 2009-11-08 13:21:07 ---
This looks to be a duplicate of 5253.
Cheers,
Edward.
*** This bug has been marked as a duplicate of bug 5253 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 8 21:12:30 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 8 Nov 2009 21:12:30 -0600
Subject: [LLVMbugs] [Bug 5159] sroa and other passes does a rotten job on
vector code from the gcc plugin
In-Reply-To:
Message-ID: <200911090312.nA93CUDK003771@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5159
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|DUPLICATE |
--- Comment #2 from Chris Lattner 2009-11-08 21:12:28 ---
This is better on mainline, but still not fixed. Reopening since I'm going to
close PR3451
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 8 21:16:03 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 8 Nov 2009 21:16:03 -0600
Subject: [LLVMbugs] [Bug 3451] Instcombine should break up insane integer
phi nodes
In-Reply-To:
Message-ID: <200911090316.nA93G3sv003883@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3451
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #10 from Chris Lattner 2009-11-08 21:16:03 ---
This has been largely fixed in the lead up to r86503. The testcase in PR5159
is still not fixed so I'm closing this and reopening 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 Sun Nov 8 22:27:42 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 8 Nov 2009 22:27:42 -0600
Subject: [LLVMbugs] [Bug 2926] Assertions fail when linking symbol aliases
In-Reply-To:
Message-ID: <200911090427.nA94Rgt8006558@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=2926
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Chris Lattner 2009-11-08 22:27:41 ---
I think this has been fixed.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun Nov 8 22:29:35 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 8 Nov 2009 22:29:35 -0600
Subject: [LLVMbugs] [Bug 3704] llvm-ld release built can' t correctly link
bc which contains debug information
In-Reply-To:
Message-ID: <200911090429.nA94TZXN006654@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3704
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun Nov 8 22:30:22 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 8 Nov 2009 22:30:22 -0600
Subject: [LLVMbugs] [Bug 4313] tablegen doesn't work when compiled with LTO
In-Reply-To:
Message-ID: <200911090430.nA94UMAR006700@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4313
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #16 from Chris Lattner 2009-11-08 22:30:21 ---
refixed 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 Nov 8 22:47:49 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 8 Nov 2009 22:47:49 -0600
Subject: [LLVMbugs] [Bug 5049] incorrect asserting conditions in
TargetLowering.h
In-Reply-To:
Message-ID: <200911090447.nA94lnHo007438@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5049
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Lattner 2009-11-08 22:47:48 ---
Fixed in r86514, 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 Sun Nov 8 22:57:33 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 8 Nov 2009 22:57:33 -0600
Subject: [LLVMbugs] [Bug 5104] printf returns 1 even when it fails if
-simplify-libcalls is used
In-Reply-To:
Message-ID: <200911090457.nA94vXAG007827@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5104
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Chris Lattner 2009-11-08 22:57:31 ---
Fixed in r86515, 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 Nov 9 01:33:08 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 9 Nov 2009 01:33:08 -0600
Subject: [LLVMbugs] [Bug 5434] New: Infinite loop in instcombine
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5434
Summary: Infinite loop in instcombine
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3790)
--> (http://llvm.org/bugs/attachment.cgi?id=3790)
testcase .ll
opt -instcombine on the attached testcase appears to run forever.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 9 03:16:37 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 9 Nov 2009 03:16:37 -0600
Subject: [LLVMbugs] [Bug 5436] New: scalarrepl wrong simplification
(confused by [0 x i8]?)
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5436
Summary: scalarrepl wrong simplification (confused by [0 x i8]?)
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3791)
--> (http://llvm.org/bugs/attachment.cgi?id=3791)
testcase .ll
What should get stored is: 2 at offset 0, 72 at offset 4, 105 at offset 8,
but after -scalarrepl only the 105 store is left, and is at the wrong offset.
Here's the bad output (I added -instcombine to make it easier to read):
$ opt -scalarrepl -instcombine bad.2.ll -S -o -
...
define %base* @c330001_0__indef_func_1() {
entry:
%0 = call i32 @system__secondary_stack__ss_allocate(i32 24) ; [#uses=2]
%1 = inttoptr i32 %0 to %base* ; <%base*> [#uses=1]
%2 = inttoptr i32 %0 to i32* ; [#uses=1]
store i32 105, i32* %2, align 4
ret %base* %1
}
...
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon Nov 9 04:03:32 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 9 Nov 2009 04:03:32 -0600
Subject: [LLVMbugs] [Bug 5437] New: Assertion `L->isLCSSAForm()' failed
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5437
Summary: Assertion `L->isLCSSAForm()' 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: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3792)
--> (http://llvm.org/bugs/attachment.cgi?id=3792)
testcase .ll
Yes, there is an indirect branch.
$ opt -loop-rotate rotate.bc -disable-output
opt: /home/duncan/LLVM/llvm.top/llvm/lib/Transforms/Utils/LCSSA.cpp:164:
virtual bool::LCSSA::runOnLoop(llvm::Loop*, llvm::LPPassManager&):
Assertion `L->isLCSSAForm()' failed.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon Nov 9 04:28:24 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 9 Nov 2009 04:28:24 -0600
Subject: [LLVMbugs] [Bug 5438] New: Small example where gcc produces better
code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5438
Summary: Small example where gcc produces better code
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
>From the Felix von Leitner talk:
int bar(int a,int b) {
return (a<0) == (b<0);
}
gcc-4.4 gives (x86-64):
movl %edi, %eax
notl %eax
xorl %esi, %eax
shrl $31, %eax
ret
llvm-gcc gives:
testl %edi, %edi
setns %al
testl %esi, %esi
sets %cl
xorb %al, %cl
movzbl %cl, %eax
ret
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon Nov 9 04:48:50 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 9 Nov 2009 04:48:50 -0600
Subject: [LLVMbugs] [Bug 5439] New: Exceptions crash after calling
freeMachineCodeForFunction()
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5439
Summary: Exceptions crash after calling
freeMachineCodeForFunction()
Product: new-bugs
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: oliver at plexim.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3793)
--> (http://llvm.org/bugs/attachment.cgi?id=3793)
Example application to demonstrate crash
Hi all,
we're facing a problem when enabling exception handling in JIT and calling
ExecutionEngine::freeMachineCodeForFunction(). If an exception is thrown
afterwards anywhere in the application (outside of llvm), the whole application
crashes.
As far as I can see this is due to an exception frame being registered in
JITEmitter::finishFunction() which is not (and currently cannot) be
unregistered when the function is freed again.
I've attached a small test program that demonstrates the problem. It needs to
be compiled with "make REQUIRES_EH=1". If run without arguments (i.e. no
exception handling enabled in JIT), all is fine. If argument "-enable-eh" is
used, the test application crashes once the exception is thrown.
Note: A workaround for this problem seems to be to throw and catch a dummy
exception before instantiating the execution engine. However, in the project
I'm working on the whole llvm code is used in a shared library which may be
loaded and unloaded several times during the runtime of the application. In
this case the workaround fails.
All tests were done on OS X 10.5.8, using llvm trunk rev. 86536 and llvm 2.6.
Kind regards,
Oliver Schwartz
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 9 08:28:48 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 9 Nov 2009 08:28:48 -0600
Subject: [LLVMbugs] [Bug 5441] New: Load not simplified in spite of
llvm.invariant.start/end
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5441
Summary: Load not simplified in spite of llvm.invariant.start/end
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3794)
--> (http://llvm.org/bugs/attachment.cgi?id=3794)
testcase .ll
In the following testcase, there are a few places in which a value
is stored to an alloca, which is then immediately declared invariant,
for example:
store i8* %adjusted, i8** %6, align 1
%7 = bitcast i8** %6 to i8* ; [#uses=2]
%8 = call { }* @llvm.invariant.start(i64 24, i8* %7) ; <{ }*> [#uses=1]
Later the stored value is loaded out again:
%17 = bitcast %"struct __builtin_trampoline"* %1 to i8** ; [#uses=1]
%adjusted4 = load i8** %17, align 1 ; [#uses=1]
The load should be eliminated, and the stored value (%adjusted in this
case) used. However the optimizers fail to perform this simplification.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 9 08:32:13 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 9 Nov 2009 08:32:13 -0600
Subject: [LLVMbugs] [Bug 5149] MIPS code generator crash when compiling
GCC's _muldi3.o
In-Reply-To:
Message-ID: <200911091432.nA9EWDtr014968@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5149
Bruno Cardoso Lopes changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Bruno Cardoso Lopes 2009-11-09 08:32:12 ---
Fixed in r86543
http://llvm.org/viewvc/llvm-project?rev=86543&view=rev
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 9 10:41:04 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 9 Nov 2009 10:41:04 -0600
Subject: [LLVMbugs] [Bug 5442] New: llvm-gcc miscompiles LLVM on
powerpc-apple-darwin9
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5442
Summary: llvm-gcc miscompiles LLVM on powerpc-apple-darwin9
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: evan.cheng at apple.com, nicholas at mxc.ca,
llvmbugs at cs.uiuc.edu
I recently switched the smooshlab powerpc-apple-darwin9 to do a two stage LLVM
build. The second build of LLVM (Release, using the stage one llvm-gcc) fails
to pass the tests because tblgen is crashing in the LLVMC tests:
--
spang:test buildslave$ (export
PATH=/Volumes/SandBox/zorg/buildbot/smooshlab/slave/build.llvm-gcc-powerpc-darwin9/llvm.obj/Release/bin:/Volumes/SandBox/zorg/buildbot/smooshlab/slave/build.llvm-gcc-powerpc-darwin9/llvm.src/test/Scripts:"$PATH";
ignore tblgen -I
/Volumes/SandBox/zorg/buildbot/smooshlab/slave/build.llvm-gcc-powerpc-darwin9/llvm.src/test/LLVMC/../../include
--gen-llvmc
/Volumes/SandBox/zorg/buildbot/smooshlab/slave/build.llvm-gcc-powerpc-darwin9/llvm.src/test/LLVMC/MultiplePluginPriorities.td)
tblgen: More than one 'PluginPriority' instance found: most probably an error!
spang:test buildslave$ (export
PATH=/Volumes/SandBox/zorg/buildbot/smooshlab/slave/build.llvm-gcc-powerpc-darwin9/llvm.obj.2/Release/bin:/Volumes/SandBox/zorg/buildbot/smooshlab/slave/build.llvm-gcc-powerpc-darwin9/llvm.src/test/Scripts:"$PATH";
ignore tblgen -I
/Volumes/SandBox/zorg/buildbot/smooshlab/slave/build.llvm-gcc-powerpc-darwin9/llvm.src/test/LLVMC/../../include
--gen-llvmc
/Volumes/SandBox/zorg/buildbot/smooshlab/slave/build.llvm-gcc-powerpc-darwin9/llvm.src/test/LLVMC/MultiplePluginPriorities.td)
terminate called without an active exception
0 tblgen 0x0015621c main + 158684
1 tblgen 0x00156ba4 main + 161124
2 libSystem.B.dylib 0x956da9fc _sigtramp + 68
Stack dump:
0. Program arguments: tblgen -I
/Volumes/SandBox/zorg/buildbot/smooshlab/slave/build.llvm-gcc-powerpc-darwin9/llvm.src/test/LLVMC/../../include
--gen-llvmc
/Volumes/SandBox/zorg/buildbot/smooshlab/slave/build.llvm-gcc-powerpc-darwin9/llvm.src/test/LLVMC/MultiplePluginPriorities.td
/Volumes/SandBox/zorg/buildbot/smooshlab/slave/build.llvm-gcc-powerpc-darwin9/llvm.src/test/Scripts/ignore:
line 9: 16504 Abort trap "$@"
--
It looks like LLVM (stage 2) is getting miscompiled.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 9 12:28:41 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 9 Nov 2009 12:28:41 -0600
Subject: [LLVMbugs] [Bug 5437] Assertion `L->isLCSSAForm()' failed
In-Reply-To:
Message-ID: <200911091828.nA9ISfk8024428@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5437
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Dan Gohman 2009-11-09 12:28:40 ---
Fixed in r86569.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 9 13:38:05 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 9 Nov 2009 13:38:05 -0600
Subject: [LLVMbugs] [Bug 5425] Sema should not depend on libclangAnalysis
In-Reply-To:
Message-ID: <200911091938.nA9Jc5Ud027054@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5425
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Ted Kremenek 2009-11-09 13:38:05 ---
This isn't a layering violation. We explictly decided to allow Sema to depend
on libAnalysis.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 9 13:51:18 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 9 Nov 2009 13:51:18 -0600
Subject: [LLVMbugs] [Bug 5425] split libAnalysis into libAnalysis and
libChecker
In-Reply-To:
Message-ID: <200911091951.nA9JpIX0027525@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5425
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
Summary|Sema should not depend on |split libAnalysis into
|libclangAnalysis |libAnalysis and libChecker
--- Comment #3 from Ted Kremenek 2009-11-09 13:51:18 ---
Daniel and I discussed this offline. The issue is that libAnalysis contains
both code for "basic analysis" (that can be used for compiler warnings) and the
static analyzer. Ideally those two pieces should be separate since we don't
want compiler-only Clang executables to have to link in the static analyzer.
Going forward, libAnalysis can have the "fundamental" analysis code (CFGs,
etc.) and libChecker the path-sensitive engine and the static analysis checks.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 9 15:00:39 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 9 Nov 2009 15:00:39 -0600
Subject: [LLVMbugs] [Bug 5434] Infinite loop in instcombine
In-Reply-To:
Message-ID: <200911092100.nA9L0dOr030764@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5434
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Lattner 2009-11-09 15:00:39 ---
This doesn't inf loop for me, please reverify that it does for you. If so,
please include a dump of the instcombine -debug output you're seeing.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 9 15:31:58 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 9 Nov 2009 15:31:58 -0600
Subject: [LLVMbugs] [Bug 5443] New: missed x86 optimization for flags
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5443
Summary: missed x86 optimization for flags
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: clattner at apple.com
CC: llvmbugs at cs.uiuc.edu
X86-64 compiles this code:
define {i64, i1} @addo.apint.i64 ( i64 %left, i64 %right )
{
entry:
%extleft = zext i64 %left to i65
%extright = zext i64 %right to i65
%sum = add i65 %extleft, %extright
%res.0 = trunc i65 %sum to i64
%overflow = and i65 %sum, -18446744073709551616
%res.1 = icmp ne i65 %overflow, 0
%final0 = insertvalue {i64, i1} undef, i64 %res.0, 0
%final1 = insertvalue {i64, i1} %final0, i1 %res.1, 1
ret {i64, i1} %final1
}
define {i64, i1} @addo.intrinsics.i64 ( i64 %left, i64 %right )
{
entry:
%call = call {i64, i1} @llvm.uadd.with.overflow.i64 ( i64 %left, i64
%right )
ret {i64, i1} %call
}
declare {i64, i1} @llvm.uadd.with.overflow.i64 ( i64 %left, i64 %right )
nounwind readnone
to:
_addo.apint.i64: ## @addo.apint.i64
xorl %ecx, %ecx
movq %rdi, %rax
addq %rsi, %rax
adcq $0, %rcx
testb $1, %cl
setne %dl
ret
_addo.intrinsics.i64: ##
@addo.intrinsics.i64
movq %rdi, %rax
addq %rsi, %rax
setb %dl
ret
They should be equivalent and we're probably only a dag combine away from
getting the former case to compile to the latter 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 Mon Nov 9 17:59:26 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 9 Nov 2009 17:59:26 -0600
Subject: [LLVMbugs] [Bug 5445] New: MIPS code generator crash when compiling
GCC's _mulsc3.o
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5445
Summary: MIPS code generator crash when compiling GCC's _mulsc3.o
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nbd at openwrt.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3795)
--> (http://llvm.org/bugs/attachment.cgi?id=3795)
Simplified bugpoint testcase
When trying to generate an llvm-gcc-4.2 toolchain with llvm r86543, I get the
following error while trying to generate _mulsc3.o:
cc1: error in backend: Cannot yet select: 0x1418710d8: f32 =
ConstantFP<-0.000000e+00>
When emitting LLVM bitcode and running llc on it, it changes to:
LLVM ERROR: Cannot yet select: 0x10181eed8: f32 = ConstantFP<-0.000000e+00>
Simplified bugpoint testcase is 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 Nov 9 18:27:17 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 9 Nov 2009 18:27:17 -0600
Subject: [LLVMbugs] [Bug 5446] New: SIGSEGV in a regression for CVC3 built
with LLVM
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5446
Summary: SIGSEGV in a regression for CVC3 built with LLVM
Product: new-bugs
Version: 2.6
Platform: PC
URL: http://www.cs.nyu.edu/acsys/cvc3/download.html
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: dejan at cs.nyu.edu
CC: llvmbugs at cs.uiuc.edu, dejan at cs.nyu.edu
Created an attachment (id=3796)
--> (http://llvm.org/bugs/attachment.cgi?id=3796)
Full backtrace for SIGSEGV in test/bin/test compiled with LLVM
When compiling the CVC3 theorem prover one of the regressions fails with a
segfault that seems to be a LLVM compiler issue.
Build succeeds, but one of the C++ regression fails with a SIGSEGV while
throwing an (expected) exception with the following trace:
get_cie_encoding() at 0x8cca9ca
classify_object_over_fdes() at 0x8ccaad3
search_object() at 0x8ccb96a
_Unwind_Find_FDE() at 0x8ccc045
uw_frame_state_for() at 0x8cc95f4
uw_init_context_1() at 0x8cc9ad1
_Unwind_RaiseException() at 0x8cca287
__cxa_throw() at 0x8cbff86
CVC3::Theory::newSubtypeExpr() at
/home/dejan/eclipse-cxx/cvc3/src/theory_core/theory.cpp:839
CVC3::VCL::subtypeType() at /home/dejan/eclipse-cxx/cvc3/src/vcl/vcl.cpp:709
test8() at /home/dejan/eclipse-cxx/cvc3/test/main.cpp:781
main() at /home/dejan/eclipse-cxx/cvc3/test/main.cpp:1,966
I'm using the LLVM that's packaged with the latest Ubuntu. You can reproduce
the bug by downloading cvc3 from the url and configuring it as
./configure --with-build=debug --enable-static
CXX=/usr/lib/llvm/llvm/gcc-4.2/bin/llvm-g++
CC=/usr/lib/llvm/llvm/gcc-4.2/bin/llvm-gcc
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon Nov 9 18:31:30 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 9 Nov 2009 18:31:30 -0600
Subject: [LLVMbugs] [Bug 5448] New: MemoryBuffer copies input file for page
sized files
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5448
Summary: MemoryBuffer copies input file for page sized files
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Core LLVM classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
This is bad, such files aren't *that* unlikely, and mmap is a big performance
win. I think in most situations we can just mmap an extra page, but need to
verify/test.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 9 18:55:22 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 9 Nov 2009 18:55:22 -0600
Subject: [LLVMbugs] [Bug 5428] Get rid of darwin'isms in the build system
In-Reply-To:
Message-ID: <200911100055.nAA0tMYx008806@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5428
Edward O'Callaghan changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |eocallaghan at auroraux.org
Depends on| |5429
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #1 from Edward O'Callaghan 2009-11-09 18:55:22 ---
I am going to close this as 'WONTFIX' as dep on 5429.
As the 'next-gen' Compiler-RT build system is based on the portable cmake
system which solves all these makefile drama's..
Cheers,
Edward.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Mon Nov 9 18:58:00 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 9 Nov 2009 18:58:00 -0600
Subject: [LLVMbugs] [Bug 5428] Get rid of darwin'isms in the build system
In-Reply-To:
Message-ID: <200911100058.nAA0w0XF008911@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5428
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WONTFIX |
--- Comment #2 from Anton Korobeynikov 2009-11-09 18:58:00 ---
(In reply to comment #1)
> As the 'next-gen' Compiler-RT build system is based on the portable cmake
> system which solves all these makefile drama's..
As soon as current cmake build system is unusable in many situations when
makefile-based one is, this PR cannot be closed. Sorry.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 9 20:36:48 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 9 Nov 2009 20:36:48 -0600
Subject: [LLVMbugs] [Bug 5445] MIPS code generator crash when compiling
GCC's _mulsc3.o
In-Reply-To:
Message-ID: <200911100236.nAA2amrj012619@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5445
Bruno Cardoso Lopes changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Bruno Cardoso Lopes 2009-11-09 20:36:48 ---
Fixed on r86651
http://llvm.org/viewvc/llvm-project?rev=86651&view=rev
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 10 01:35:16 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 10 Nov 2009 01:35:16 -0600
Subject: [LLVMbugs] [Bug 5449] New: clang crashes on float constant
evaluation
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5449
Summary: clang crashes on float constant evaluation
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: critical
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: xuzhongxing at gmail.com
CC: llvmbugs at cs.uiuc.edu
clang crashes on this code:
void f() {
float a = 0.0;
const float roundfac = 0.6 / (((void) (0)), 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 Tue Nov 10 01:49:59 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 10 Nov 2009 01:49:59 -0600
Subject: [LLVMbugs] [Bug 5445] MIPS code generator crash when compiling
GCC's _mulsc3.o
In-Reply-To:
Message-ID: <200911100749.nAA7nxjT023843@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5445
Felix Fietkau changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #3 from Felix Fietkau 2009-11-10 01:49:59 ---
I hit very similar instance of this with the updated code in the same source
file:
LLVM ERROR: Cannot yet select: 0x1018417e0: f64 = ConstantFP<0.000000e+00>
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Tue Nov 10 01:58:21 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 10 Nov 2009 01:58:21 -0600
Subject: [LLVMbugs] [Bug 5450] New: Identical cases in a SwitchInst causes
an assertion failure
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5450
Summary: Identical cases in a SwitchInst causes an assertion
failure
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: ian at mckellar.org
CC: llvmbugs at cs.uiuc.edu
Using the LLVM API it's possible to create a SwitchInst where several of the
cases have the same value. During code generation this now causes a crash. I'm
working against the LLVM snapshot used in unladen-swallow. I'll attach a test
case in a sec....
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 10 05:41:16 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 10 Nov 2009 05:41:16 -0600
Subject: [LLVMbugs] [Bug 5452] New: cc1: error in backend: Stack realignment
in presense of dynamic allocas is not supported
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5452
Summary: cc1: error in backend: Stack realignment in presense of
dynamic allocas is not supported
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: timo.lindfors at iki.fi
CC: llvmbugs at cs.uiuc.edu
Steps to reproduce:
1) Configure llvm-gcc-4.2 with
../llvm-gcc-4.2/configure --prefix=$HOME/install --program-prefix=llvm-
--enable-llvm=$HOME/scm/llvm --enable-languages=c,c++
--target=i686-pc-linux-gnu --with-tune=generic --with-arch=pentium4
2) run make -j3
Expected results:
2) llvm-gcc-4.2 builds from source
Actual results:
2) build fails with
/home/lindi/scm/llvm-gcc-4.2-obj/./prev-gcc/xgcc
-B/home/lindi/scm/llvm-gcc-4.2-obj/./prev-gcc/
-B/home/lindi/install/i686-pc-linux-gnu/bin/ -c -O2 -g -fomit-frame-pointer
-DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I.
-I../../llvm-gcc-4.2/gcc -I../../llvm-gcc-4.2/gcc/.
-I../../llvm-gcc-4.2/gcc/../include -I../../llvm-gcc-4.2/gcc/../libcpp/include
-I../../llvm-gcc-4.2/gcc/../libdecnumber -I../libdecnumber
-I/home/lindi/scm/llvm/include -DENABLE_LLVM -I/home/lindi/scm/llvm/include
-I/home/lindi/scm/llvm/include -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
-D__STDC_CONSTANT_MACROS ../../llvm-gcc-4.2/gcc/c-errors.c -o c-errors.o
cc1: error in backend: Stack realignment in presense of dynamic allocas is not
supported
More info:
1) distro is debian stable
2) architecture is x86
3) llvm-gcc-4.2 revision is 86487
4) llvm revision is 86681
5) This was probably made visible by http://llvm.org/bugs/show_bug.cgi?id=2962
?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 10 13:24:46 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 10 Nov 2009 13:24:46 -0600
Subject: [LLVMbugs] [Bug 5458] New: reassociate introduces undef for no
apparent reason
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5458
Summary: reassociate introduces undef for no apparent reason
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3803)
--> (http://llvm.org/bugs/attachment.cgi?id=3803)
reduced .ll testcase
I have no idea what reassociate thinks it's doing. The attached reduced .ll
file shows an example where "opt -reassociate" adds a new 'mul undef, undef'
and an 'add undef, undef', then goes off and uses those in a way that
introduces undefinedness into the program.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 10 13:26:31 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 10 Nov 2009 13:26:31 -0600
Subject: [LLVMbugs] [Bug 5459] New: undefined reference to .LBBxxx
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5459
Summary: undefined reference to .LBBxxx
Product: new-bugs
Version: trunk
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 like PR4732 but I'm filing a new one since in the discussion that one
was indicated as being fixed.
regehr at john-home:~/volatile/tmp232$ llvm-gcc -O2 small.c -w
/tmp/ccGZusJr.o: In function `func_9':
small.c:(.text+0x4a): undefined reference to `.LBB1_1'
collect2: ld returned 1 exit status
regehr at john-home:~/volatile/tmp232$ llvm-gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --enable-checking=release --enable-optimized
--prefix=/home/regehr/z/tmp/llvm-gcc-r86665-install
--program-prefix=llvm-r86665- --enable-languages=c,c++
--enable-llvm=/home/regehr/z/tmp/llvm-r86665
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5653) (LLVM build)
regehr at john-home:~/volatile/tmp232$ cat small.c
static unsigned char
foo (short _si1, unsigned char _si2)
{
return _si1 && _si2 && _si1 + _si2 || _si1 && _si2 <= 0 && _si2 < _si1
|| _si1 <= _si2 && _si1 + _si1 ? : _si1;
}
static unsigned char
bar (short _si1, unsigned char _si2)
{
return _si1 ? : 0;
}
static unsigned char
baz (short _left, int _right)
{
return _left || _right || _right >= 1 * 8 || _left ? : _left;
}
static unsigned char
buz (unsigned short _ui1, unsigned char _ui2)
{
return _ui1;
}
static unsigned char
biz (unsigned _left, int _right)
{
return _right >= 1 * 8 ? : 1 << _right;
}
volatile unsigned char g_11;
unsigned char g_28;
unsigned char g_31;
const unsigned char *g;
unsigned char g_52;
unsigned char g_55;
unsigned char g_59;
int *func_12 (int *p_13, char p_14, unsigned long long p_15);
char func_22 (unsigned short p_23, int p_24, int p_25, int *p_26,
unsigned long long p_27);
int func_32 (const int *p_33, int p_34, unsigned short p_35);
int *func_48 (long long p_49, unsigned short p_50, unsigned long long p_51);
unsigned char *
func_9 (int *p_10)
{
for (0; g_11 >= 0; 1)
{
func_12 (1,
func_22 (0x6CDBL, g_52, func_32 (p_10, g_59, 0) >= 1, 1, g
&& bar (baz (g_55, g_31), 0)), 1);
0 ? 0 : __assert ("== 0", "small.c", __PRETTY_FUNCTION__);
}
}
int *
func_12 (int *p_13, char p_14, unsigned long long p_15)
{
}
char
func_22 (unsigned short p_23, int p_24, int p_25, int *p_26,
unsigned long long p_27)
{
}
int
func_32 (const int *p_33, int p_34, unsigned short p_35)
{
func_48 (!g <= 0, p_34, foo (biz (1, buz (g_28, 0)), p_34));
g = 0;
}
int *
func_48 (long long p_49, unsigned short p_50, unsigned long long p_51)
{
}
int
main (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 Tue Nov 10 15:24:32 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 10 Nov 2009 15:24:32 -0600
Subject: [LLVMbugs] [Bug 5358] llc -tailcallopt generates segfaulting code
In-Reply-To:
Message-ID: <200911102124.nAALOWZc002189@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5358
Florian B??ther changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #12 from Florian B??ther 2009-11-10 15:24:31 ---
I just tried compiling with the svn head revision:
fbu at leon:~/devel/llvm-svn> svn info
Revision: 86711
fbu at leon:~/devel/llvm-svn> ./configure --prefix=/home/fbu/devel/llvm-svn-build
--enable-binding=ocaml --enable-optimized
Now, compiling the sample as in #4 yields the sourcecode that Arnold has
posted. The compiled program then runs without errors.
I think this fixes the bug then; For production use, i will have to resort to
using svn-head or wait for version 2.7, right?
Thanks again for your help,
Florian
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 10 16:04:33 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 10 Nov 2009 16:04:33 -0600
Subject: [LLVMbugs] [Bug 5450] Identical cases in a SwitchInst causes an
assertion failure
In-Reply-To:
Message-ID: <200911102204.nAAM4XcH003707@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5450
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #3 from Chris Lattner 2009-11-10 16:04:32 ---
Right, this is invalid IR:
http://llvm.org/docs/LangRef.html#i_switch
"The table is not allowed to contain duplicate constant entries."
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 10 16:56:32 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 10 Nov 2009 16:56:32 -0600
Subject: [LLVMbugs] [Bug 5450] Identical cases in a SwitchInst causes an
assertion failure
In-Reply-To:
Message-ID: <200911102256.nAAMuWO7006071@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5450
Ian McKellar changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #4 from Ian McKellar 2009-11-10 16:56:32 ---
(In reply to comment #2)
> Yes, LLVM assumes that API users generate correct code. Does the verifier catch
> this case? If so, then it's not a bug.
>
The llvm::verifyFunction succeeds, so I guess it's a bug, just not the one I
thought. I'm reopening and attaching an updated test case.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 10 17:52:12 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 10 Nov 2009 17:52:12 -0600
Subject: [LLVMbugs] [Bug 5460] New: Assertion failed: (NScope && "Unable to
find working scope! ")
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5460
Summary: Assertion failed: (NScope && "Unable to find working
scope!")
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: pawel.worach at gmail.com
CC: dpatel at apple.com, llvmbugs at cs.uiuc.edu
Blocks: 3696
Created an attachment (id=3806)
--> (http://llvm.org/bugs/attachment.cgi?id=3806)
t.bc
Assertion failed: (NScope && "Unable to find working scope!"), function
getUpdatedDbgScope, file DwarfDebug.cpp, line 1325.
Stack dump:
0. Program arguments: llc t.bc
1. Running pass 'X86 AT&T-Style Assembly Printer' on function
'@htab_find_with_hash'
Abort (core dumped)
llvm/clang r86753.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 10 18:18:54 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 10 Nov 2009 18:18:54 -0600
Subject: [LLVMbugs] [Bug 5460] Assertion failed: (NScope && "Unable to find
working scope!")
In-Reply-To:
Message-ID: <200911110018.nAB0IsYG009223@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5460
devang.patel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from devang.patel 2009-11-10 18:18:54 ---
Fixed in r86763.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 10 19:11:21 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 10 Nov 2009 19:11:21 -0600
Subject: [LLVMbugs] [Bug 5461] New: alloca generated code overwrites return
address on the stack
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5461
Summary: alloca generated code overwrites return address on the
stack
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: vargaz at gmail.com
CC: llvmbugs at cs.uiuc.edu
Testcase:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
define private i32 @foo () {
BB0:
ret i32 0
}
define i32 @"main"() {
%1 = alloca [5 x i8], align 16 ; <[5 x i8]*> [#uses=1]
%.sub = getelementptr inbounds [5 x i8]* %1, i64 0, i64 0 ; [#uses=1]
call void @llvm.memset.i32(i8* %.sub, i8 0, i32 16, i32 16)
%2 = call i32 @foo() ; [#uses=1]
ret i32 %2
}
declare void @llvm.memset.i32(i8 *, i8,
i32, i32)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Platform: debian unstable on amd64.
Compile with:
llvm-as bug.ll && llc bug.bc && gcc bug.s
Generated code:
00000000004004b0 :
4004b0: 48 83 ec 08 sub $0x8,%rsp
4004b4: 0f 57 c0 xorps %xmm0,%xmm0
4004b7: 0f 29 04 24 movaps %xmm0,(%rsp)
4004bb: e8 e0 ff ff ff callq 4004a0
4004c0: 48 83 c4 08 add $0x8,%rsp
4004c4: c3 retq
The movaps instruction will overwrite the return address on the stack, causing
a crash.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Tue Nov 10 19:14:51 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 10 Nov 2009 19:14:51 -0600
Subject: [LLVMbugs] [Bug 5461] alloca generated code overwrites return
address on the stack
In-Reply-To:
Message-ID: <200911110114.nAB1EpWf011816@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5461
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Chris Lattner 2009-11-10 19:14:50 ---
your code has undefined behavior, this is not an llvm bug.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Tue Nov 10 23:56:54 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 10 Nov 2009 23:56:54 -0600
Subject: [LLVMbugs] [Bug 3906] Remove condprop pass
In-Reply-To:
Message-ID: <200911110556.nAB5usg1021993@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3906
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Chris Lattner 2009-11-10 23:56:53 ---
Fixed in r86810
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 11 11:37:21 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 11 Nov 2009 11:37:21 -0600
Subject: [LLVMbugs] [Bug 5450] Verifier should reject Switch with duplicate
cases
In-Reply-To:
Message-ID: <200911111737.nABHbLKD030223@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5450
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
Summary|Identical cases in a |Verifier should reject
|SwitchInst is illegal but |Switch with duplicate cases
|passes verifier |
--- Comment #6 from Chris Lattner 2009-11-11 11:37:21 ---
implemented in r86846
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 11 14:47:07 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 11 Nov 2009 14:47:07 -0600
Subject: [LLVMbugs] [Bug 5465] New: malloc() fails to fail correctly at -O1
or above
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5465
Summary: malloc() fails to fail correctly at -O1 or above
Product: clang
Version: 2.6
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Basic
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: pigeon768 at hotmail.com
CC: llvmbugs at cs.uiuc.edu
consider the following:
$ cat test.c
#include
#include
int main() {
size_t size = 0;
size = ~size;
int * a = malloc(size);
if(a)
printf("Successfully allocated %lX bytes of memory at %lX.\n",size,a);
else
printf("Failed to allocate %lX bytes of memory.\n",size);
}
$ clang -O0 test.c -o test.O0 && ./test.O0
Failed to allocate FFFFFFFFFFFFFFFF bytes of memory.
$ clang -O1 test.c -o test.O1 && ./test.O1
Successfully allocated FFFFFFFFFFFFFFFF bytes of memory at 7FD4D15BA010.
distro is Gentoo ~amd64. glibc is version 2.11 and compiled with gcc.
Apologies if this is a dupe, or caused by gcc compiled glibc conflicts. I'm not
quite sure exactly what to search for, but searching for 'malloc' didn't appear
to find anything relevant.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 11 14:52:10 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 11 Nov 2009 14:52:10 -0600
Subject: [LLVMbugs] [Bug 5465] malloc() fails to fail correctly at -O1 or
above
In-Reply-To:
Message-ID: <200911112052.nABKqA7Y005467@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5465
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Lattner 2009-11-11 14:52:10 ---
This is fixed 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 Wed Nov 11 15:09:48 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 11 Nov 2009 15:09:48 -0600
Subject: [LLVMbugs] [Bug 5466] New: lli -force-interpreter unable to resolve
external symbols?
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5466
Summary: lli -force-interpreter unable to resolve external
symbols?
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: timo.lindfors at iki.fi
CC: llvmbugs at cs.uiuc.edu
Steps to reproduce:
1) cat > foo.c < bar.c <
void do_hello(void) {
printf("Hello world\n");
}
EOF
3) clang -c -emit-llvm foo.c
4) clang -fPIC -c bar.c
5) gcc -shared -Wl,-soname,libbar.so.1 -o libbar.so bar.o -lc
6) LD_LIBRARY_PATH=. lli -load libbar.so -force-interpreter foo.o
Expected results:
6) program prints "Hello world" // lli interpretes foo.o bitcode and uses FFI
to call do_hello in libbar.so.
Actual reults:
6) lli prints
LLVM ERROR: Tried to execute an unknown external function: void ()* do_hello
More info:
1) The program runs if I remove "-force-interpreter"
2) distro is debian stable
3) architecture is x86
4) llvm revision is 86876
5) clang revision is 86879
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 11 16:23:18 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 11 Nov 2009 16:23:18 -0600
Subject: [LLVMbugs] [Bug 5466] lli -force-interpreter unable to resolve
external symbols?
In-Reply-To:
Message-ID: <200911112223.nABMNIBL008742@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5466
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Chris Lattner 2009-11-11 16:23:17 ---
When you configure llvm, you need to enable FFI support. it is probably best
to ask about this on llvmdev.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 11 17:07:50 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 11 Nov 2009 17:07:50 -0600
Subject: [LLVMbugs] [Bug 5406] Invalid call lowering on ARM
In-Reply-To:
Message-ID: <200911112307.nABN7o1F010638@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5406
Bob Wilson changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Bob Wilson 2009-11-11 17:07:50 ---
Fixed in svn r86892.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 11 18:17:26 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 11 Nov 2009 18:17:26 -0600
Subject: [LLVMbugs] [Bug 5470] New: TableGen crashes on some undef bit values
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5470
Summary: TableGen crashes on some undef bit values
Product: tools
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: TableGen
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bob.wilson at apple.com
CC: llvmbugs at cs.uiuc.edu
The following test will crash TableGen:
// RUN: tblgen %s
class x {
field bits<32> A;
}
class y B> : x {
let A{21-20} = B;
}
def z : y<{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 Nov 11 18:47:48 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 11 Nov 2009 18:47:48 -0600
Subject: [LLVMbugs] [Bug 5459] undefined reference to .LBBxxx
In-Reply-To:
Message-ID: <200911120047.nAC0lmHN014358@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5459
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Dan Gohman 2009-11-11 18:47:48 ---
I believe this problem is the same as one that I fixed as part my recent
BranchFolding changes. The testcase now passes for me.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Wed Nov 11 18:52:22 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Wed, 11 Nov 2009 18:52:22 -0600
Subject: [LLVMbugs] [Bug 5471] New: infinite loop with InstCombine
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5471
Summary: infinite loop with InstCombine
Product: libraries
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: alexmac at adobe.com
CC: llvmbugs at cs.uiuc.edu
If you have some mismatched calling conventions you can get the InstCombine
pass into an infinite loop. This took me a while to track down so it would be
good if we could fix this, or assert, so that others don't fall into the same
trap.
Here is a minimal bit of code that repros the problem. The invoke instruction
should be marked with the correct calling convention, but it is not.
InstCombine then gets into a loop adding and removing the redundant store inst.
// ----------------------------------------------------
define arm_apcscc i32 @func2() {
ret i32 0
}
define arm_apcscc void @brokenfunc() {
store i1 true, i1* undef
%1 = invoke i32 @func2() to label %exit unwind label %exit
exit:
ret void
}
// ----------------------------------------------------
Please let me know what you think the best thing to do is.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Thu Nov 12 11:01:38 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 12 Nov 2009 11:01:38 -0600
Subject: [LLVMbugs] [Bug 5474] New: clang packed struct crash
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5474
Summary: clang packed struct crash
Product: new-bugs
Version: trunk
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, chenyang at cs.utah.edu
Valgrind says it's a null ptr deref.
regehr at john-home:~/volatile/tmp237$ clang -v
clang version 1.1 (trunk 86913)
Target: i386-pc-linux-gnu
Thread model: posix
regehr at john-home:~/volatile/tmp237$ clang small.c
0 clang-cc 0x09017e48
Stack dump:
0. Program arguments:
/home/regehr/z/tmp/llvm-gcc-r86913-install/bin/../libexec/clang-cc -triple
i386-pc-linux-gnu -S -disable-free -main-file-name small.c --relocation-model
static --disable-fp-elim --unwind-tables=0 --mcpu=pentium4 --fmath-errno=1
-fmessage-length 80 -fexceptions=0 -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-wcDdUE.s -x c small.c
1. parser at end of file
2. small.c:22:11: LLVM IR generation of declaration 'g'
3. small.c:22:11: Generating code for declaration 'g'
clang: error: compiler command failed due to signal 11 (use -v to see
invocation)
regehr at john-home:~/volatile/tmp237$ cat small.c
struct S0
{
long long f0;
};
#pragma pack(push)
#pragma pack(1)
struct S2
{
struct S0 f0;
};
#pragma pack(pop)
struct S4
{
short f0;
unsigned f1;
short f3;
const volatile struct S2 f4;
};
struct S4 g = {
6L, 0L, 0xFD52280335900B08LL, 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 Nov 12 12:54:18 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Thu, 12 Nov 2009 12:54:18 -0600
Subject: [LLVMbugs] [Bug 658] register allocators need callee saved regs
In-Reply-To:
Message-ID: <200911121854.nACIsIPR003162@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=658
Dale Johannesen changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dalej at apple.com
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Dale Johannesen 2009-11-12 12:54:17 ---
We have dropped support for IA64 so it seems we can close this.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri Nov 13 07:14:02 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 13 Nov 2009 07:14:02 -0600
Subject: [LLVMbugs] [Bug 5480] New: lli -force-interpreter tries to lookup
symbols that still have \x01 in their name
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5480
Summary: lli -force-interpreter tries to lookup symbols that
still have \x01 in their name
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: timo.lindfors at iki.fi
CC: llvmbugs at cs.uiuc.edu
Steps to reproduce:
1) cat > testcase.c <
#include
#include
#include
int main(int argc, char *argv[]) {
struct stat fileinfo;
stat("/etc/motd", &fileinfo);
printf("%d\n", fileinfo.st_ino);
return 0;
}
EOF
2) llvm-gcc -c -o testcase.bc -emit-llvm -O2 testcase.c
3) lli -force-interpreter testcase.bc
Expected results:
3) lli runs the program and it prints the inode number of /etc/motd
Actual results:
3) LLVM ERROR: Tried to execute an unknown external function: i32 (i32, i8*, {
i64, i16, i32, i32, i32, i32, i32, i64, i16, i64, i32, i64, { i32, i32 }, {
i32, i32 }, { i32, i32 }, i64 }*)* __xstat64
More info:
1) lli tries to dlsym "\x01__xstat64" but the \x01 in the error message just is
not visible in terminal.
2) distro is debian stable
3) llvm revision is 86985
4) llvm-gcc revision is 86986
5) A very crude patch to fix the issue is
Index: lib/System/DynamicLibrary.cpp
===================================================================
--- lib/System/DynamicLibrary.cpp (revision 86985)
+++ lib/System/DynamicLibrary.cpp (working copy)
@@ -70,6 +70,9 @@
}
void* DynamicLibrary::SearchForAddressOfSymbol(const char* symbolName) {
+ if (symbolName && symbolName[0] == '\1') {
+ symbolName++;
+ }
// First check symbols added via AddSymbol().
if (ExplicitSymbols) {
std::map::iterator I =
but I don't yet understand enough LLVM to figure out where this really should
be done. In Mangler perhaps?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 13 10:16:04 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 13 Nov 2009 10:16:04 -0600
Subject: [LLVMbugs] [Bug 5481] New: Formal arguments missing from DWARF
output unless -fast-isel is used
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5481
Summary: Formal arguments missing from DWARF output unless -fast-
isel is used
Product: new-bugs
Version: trunk
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
Created an attachment (id=3810)
--> (http://llvm.org/bugs/attachment.cgi?id=3810)
test.bc
When the attached file is compiled with llc the output is missing debug
information on the "foo" argument of f() unless the -fast-isel option is used.
$ llc -fast-isel < test.bc | grep foo || echo "Not found"
.asciz "foo" # DW_AT_name
$ llc < test.bc | grep foo || echo "Not found"
Not found
The .bc file was produced from the following source using llvm-gcc:
int f(int foo)
{
return foo;
}
I'm using svn r87105.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 13 12:22:01 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 13 Nov 2009 12:22:01 -0600
Subject: [LLVMbugs] [Bug 5482] New: StringRef is miscompiled by gcc-4.2 and
gcc-4.3.1
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5482
Summary: StringRef is miscompiled by gcc-4.2 and gcc-4.3.1
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Support Libraries
AssignedTo: unassignedbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
The attached example is miscompiled by gcc-4.2 and gcc-4.3.1. This is probably
bad enough that we should find a workaround.
In this particular example the problem only occurs when the string split
results in an empty LHS (I think).
--
ddunbar at ozzy:StringRef$ g++ -I $(llvm-config --src-root)/include $(llvm-config
--cppflags) harness.cpp splitlines.cpp && ./a.out
0: string (5): 'hello'
1: string (5): 'world'
2: string (1): 'a'
3: string (5): 'hello'
4: string (0): ''
5: string (5): 'world'
6: string (1): 'a'
7: string (0): ''
ddunbar at ozzy:StringRef$ g++ -O2 -I $(llvm-config --src-root)/include
$(llvm-config --cppflags) harness.cpp splitlines.cpp && ./a.out
0: string (5): 'hello'
1: string (10): '
world
a
'
2: string (5): 'world'
3: string (1): 'a'
4: string (1): '
'
5: string (5): 'hello'
6: string (10): '
world
a
'
7: string (5): 'world'
8: string (1): 'a'
9: string (1): '
'
ddunbar at ozzy:StringRef$
--
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 13 14:38:19 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 13 Nov 2009 14:38:19 -0600
Subject: [LLVMbugs] [Bug 5410] Crash in coalescer
In-Reply-To:
Message-ID: <200911132038.nADKcJEZ019615@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5410
Evan Cheng changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Evan Cheng 2009-11-13 14:38:18 ---
Fixed.
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20091109/091071.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 Nov 13 15:24:14 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 13 Nov 2009 15:24:14 -0600
Subject: [LLVMbugs] [Bug 5474] clang packed struct crash
In-Reply-To:
Message-ID: <200911132124.nADLOE70021451@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5474
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2009-11-13 15:24:13 ---
Fixed in r88696.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 13 15:36:18 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 13 Nov 2009 15:36:18 -0600
Subject: [LLVMbugs] [Bug 5485] New: Running pass 'Loop Strength Reduction'
on basic block '%for .body.i1659' crash
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5485
Summary: Running pass 'Loop Strength Reduction' on basic block
'%for.body.i1659' crash
Product: libraries
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: Transformation Utilities
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3813)
--> (http://llvm.org/bugs/attachment.cgi?id=3813)
test case
when running clang -O2 on the attached test case I am getting:
witten /tmp# clang -O2 hdac.c
... warnings ....
Stack dump:
0. Program arguments: /usr/local/bin/../libexec/clang-cc -triple
i386-unknown-freebsd9.0 -S -disable-free -main-file-name hdac.c
--relocation-model static --disable-fp-elim --unwind-tables=0 --mcpu=pentium4
--fmath-errno=1 -O2 -fmessage-length 152 -fexceptions=0
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-1WPusO.s -x c hdac.c
1. parser at end of file
2. Code generation
3. Running pass 'Loop Pass Manager' on function '@hdac_attach2'
4. Running pass 'Loop Strength Reduction' on basic block '%for.body.i1659'
clang: error: compiler command failed due to signal 11 (use -v to see
invocation)
witten /tmp#
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri Nov 13 16:26:24 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 13 Nov 2009 16:26:24 -0600
Subject: [LLVMbugs] [Bug 5486] New: assert on llvm-as for call to external
function whose definition is after call
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5486
Summary: assert on llvm-as for call to external function whose
definition is after call
Product: libraries
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Core LLVM classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: samuraileumas at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3814)
--> (http://llvm.org/bugs/attachment.cgi?id=3814)
minimal test case of call to external function.
On Intel-based systems the attached test code fails to assemble in llvm-as with
an assert that something tried to ++ past the end of an ilist.
It contains code that declares an external function after it is called. It is
syntactically correct but semantically different from what is being expected.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 13 17:24:39 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 13 Nov 2009 17:24:39 -0600
Subject: [LLVMbugs] [Bug 5411] Another regscavenger assertion
In-Reply-To:
Message-ID: <200911132324.nADNOdCv026251@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5411
Evan Cheng changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Evan Cheng 2009-11-13 17:24:38 ---
Fixed.
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20091109/091089.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 Nov 13 20:04:04 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 13 Nov 2009 20:04:04 -0600
Subject: [LLVMbugs] [Bug 5490] New: More skipping confusion (#endif)
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5490
Summary: More skipping confusion (#endif)
Product: clang
Version: unspecified
Platform: PC
OS/Version: NetBSD
Status: NEW
Severity: normal
Priority: P2
Component: preprocessor
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: neil at daikokuya.co.uk
CC: llvmbugs at cs.uiuc.edu
Different to bug 2291, clang rejects the following in pedantic-errors mode, but
the #endif is fine and not rejectable as it is in the controlled group of #if 0
and therefore part of the skipped group.
extern int x;
#if 0
#if 1
#endif 2
#endif
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Fri Nov 13 20:10:02 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 13 Nov 2009 20:10:02 -0600
Subject: [LLVMbugs] [Bug 5412] Crash in regalloc
In-Reply-To:
Message-ID: <200911140210.nAE2A2Yq031586@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5412
Evan Cheng changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Evan Cheng 2009-11-13 20:10:02 ---
Fixed.
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20091109/091095.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 Nov 13 21:04:57 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 13 Nov 2009 21:04:57 -0600
Subject: [LLVMbugs] [Bug 5423] ARM: SubReg survived till asmprinting
In-Reply-To:
Message-ID: <200911140304.nAE34vF4001010@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5423
Evan Cheng changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Evan Cheng 2009-11-13 21:04:57 ---
Fixed.
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20091109/091098.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 Nov 13 22:06:38 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Fri, 13 Nov 2009 22:06:38 -0600
Subject: [LLVMbugs] [Bug 5491] New: Add FileCheck option to not count lines
matching CHECK
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5491
Summary: Add FileCheck option to not count lines matching CHECK
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Basic
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
When running FileCheck on clang based tests that rewrite the input, its error
prone to write tests with CHECK lines, since FileCheck will always match the
CHECK line in the output to the check line in the source. That is:
--
// RUN: clang-cc -fixit %s -o - | FileCheck %s
// CHECK: some thing to be check in the output
blarg
--
will always pass, assuming clang-cc doesn't crash. I'd like FileCheck to
optionally ignore lines in the input which are themselves check lines.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 14 10:17:20 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 14 Nov 2009 10:17:20 -0600
Subject: [LLVMbugs] [Bug 5495] New: Assert failure "Interval does not exist
for register" during llvm-gcc build
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5495
Summary: Assert failure "Interval does not exist for register"
during llvm-gcc build
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3818)
--> (http://llvm.org/bugs/attachment.cgi?id=3818)
testcase .ll
Crash while building libstdc++-v3/src/istream.cc. Bugpoint reduced testcase
attached:
$ llc coalesce.bc
llc: llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h:90: llvm::LiveInterval&
llvm::LiveIntervals::getInterval(unsigned int): Assertion `I != r2iMap_.end()
&& "Interval does not exist for register"' failed.
...
llvm::SimpleRegisterCoalescing::JoinCopy(llvm::CopyRec&, bool&) + 5001
8 llc 0x00000000012d89ef
llvm::SimpleRegisterCoalescing::CopyCoalesceInMBB(llvm::MachineBasicBlock*,
std::vector >&) + 1257
9 llc 0x00000000012d8cd0 llvm::SimpleRegisterCoalescing::joinIntervals()
+ 624
10 llc 0x00000000012da005
llvm::SimpleRegisterCoalescing::runOnMachineFunction(llvm::MachineFunction&) +
827
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 14 12:30:52 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 14 Nov 2009 12:30:52 -0600
Subject: [LLVMbugs] [Bug 4894] Crash while emitting debug information for
complex Objective-C classes
In-Reply-To:
Message-ID: <200911141830.nAEIUqbv011663@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=4894
David Chisnall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #9 from David Chisnall 2009-11-14 12:30:51 ---
This bug went away for a bit, but it seems to have reappeared with recent
versions. There seem to be a couple of problems. The original test case that
I uploaded now crashes with a failure in new, and this trace:
#0 0x2974ede7 in kill () from /lib/libc.so.7
#1 0x29540347 in raise () from /lib/libthr.so.3
#2 0x2974d91a in abort () from /lib/libc.so.7
#3 0x295b3ce0 in __gnu_cxx::__verbose_terminate_handler () from
/usr/lib/libstdc++.so.6
#4 0x295b84ea in std::set_unexpected () from /usr/lib/libstdc++.so.6
#5 0x295b8532 in std::terminate () from /usr/lib/libstdc++.so.6
#6 0x295b842a in __cxa_throw () from /usr/lib/libstdc++.so.6
#7 0x2960d37e in operator new () from /usr/lib/libstdc++.so.6
#8 0x09201a68 in llvm::MDNode::get (Context=@0x298070ac, Vals=0xbfbfaf20,
NumVals=10)
at Metadata.cpp:86
#9 0x090f290e in llvm::DIFactory::CreateDerivedType (this=0x29840788, Tag=13,
Context=
{DbgNode = 0x29f47ca0}, Name=0x29dd92cc "_view", CompileUnit=@0xbfbfb0e8,
LineNumber=335,
SizeInBits=32, AlignInBits=32, OffsetInBits=96, Flags=2,
DerivedFrom=@0xbfbfb0e0)
at DebugInfo.cpp:764
#10 0x081debc0 in clang::CodeGen::CGDebugInfo::CreateType (this=0x29840780,
Ty=0x29c7b480,
Unit=@0xbfbfb1cc) at CGDebugInfo.cpp:681
#11 0x081d9f17 in clang::CodeGen::CGDebugInfo::CreateTypeNode (this=0x29840780,
Ty=
{Value = {Value = 700953728}}, Unit=@0xbfbfb298) at CGDebugInfo.cpp:864
#12 0x081da587 in clang::CodeGen::CGDebugInfo::getOrCreateType
(this=0x29840780, Ty=
{Value = {Value = 700953728}}, Unit=@0xbfbfb308) at CGDebugInfo.cpp:832
#13 0x081e110c in clang::CodeGen::CGDebugInfo::CreatePointerLikeType
(this=0x29840780, Tag=15,
Ty=0x29c7b4c0, PointeeTy={Value = {Value = 700953728}}, Unit=@0xbfbfb37c)
at CGDebugInfo.cpp:263
#14 0x081e13d1 in clang::CodeGen::CGDebugInfo::CreateType (this=0x29840780,
Ty=0x29c7b4c0,
Unit=@0xbfbfb3d4) at CGDebugInfo.cpp:248
#15 0x081d9ebf in clang::CodeGen::CGDebugInfo::CreateTypeNode (this=0x29840780,
Ty=
{Value = {Value = 700953792}}, Unit=@0xbfbfb4a8) at CGDebugInfo.cpp:862
#16 0x081da587 in clang::CodeGen::CGDebugInfo::getOrCreateType
(this=0x29840780, Ty=
{Value = {Value = 700953792}}, Unit=@0xbfbfb620) at CGDebugInfo.cpp:832
#17 0x081de8f3 in clang::CodeGen::CGDebugInfo::CreateType (this=0x29840780,
Ty=0x29c7b0a0,
Unit=@0xbfbfb72c) at CGDebugInfo.cpp:637
#18 0x081d9f17 in clang::CodeGen::CGDebugInfo::CreateTypeNode (this=0x29840780,
Ty=
{Value = {Value = 700952736}}, Unit=@0xbfbfb7f8) at CGDebugInfo.cpp:864
#19 0x081da587 in clang::CodeGen::CGDebugInfo::getOrCreateType
(this=0x29840780, Ty=
{Value = {Value = 700952736}}, Unit=@0xbfbfb950) at CGDebugInfo.cpp:832
#20 0x081de718 in clang::CodeGen::CGDebugInfo::CreateType (this=0x29840780,
Ty=0x29c59d28,
Unit=@0xbfbfba7c) at CGDebugInfo.cpp:623
#21 0x081d9f17 in clang::CodeGen::CGDebugInfo::CreateTypeNode (this=0x29840780,
Ty=
{Value = {Value = 700816680}}, Unit=@0xbfbfbb48) at CGDebugInfo.cpp:864
#22 0x081da587 in clang::CodeGen::CGDebugInfo::getOrCreateType
(this=0x29840780, Ty=
{Value = {Value = 700816680}}, Unit=@0xbfbfbbb8) at CGDebugInfo.cpp:832
#23 0x081e110c in clang::CodeGen::CGDebugInfo::CreatePointerLikeType
(this=0x29840780, Tag=15,
Ty=0x29c59d68, PointeeTy={Value = {Value = 700816680}}, Unit=@0xbfbfbc2c)
at CGDebugInfo.cpp:263
#24 0x081e13d1 in clang::CodeGen::CGDebugInfo::CreateType (this=0x29840780,
Ty=0x29c59d68,
Unit=@0xbfbfbc84) at CGDebugInfo.cpp:248
#25 0x081d9ebf in clang::CodeGen::CGDebugInfo::CreateTypeNode (this=0x29840780,
Ty=
{Value = {Value = 700816744}}, Unit=@0xbfbfbd58) at CGDebugInfo.cpp:862
#26 0x081da587 in clang::CodeGen::CGDebugInfo::getOrCreateType
(this=0x29840780, Ty=
{Value = {Value = 700816744}}, Unit=@0xbfbfbed0) at CGDebugInfo.cpp:832
#27 0x081de8f3 in clang::CodeGen::CGDebugInfo::CreateType (this=0x29840780,
Ty=0x29ea8370,
Unit=@0xbfbfbfdc) at CGDebugInfo.cpp:637
#28 0x081d9f17 in clang::CodeGen::CGDebugInfo::CreateTypeNode (this=0x29840780,
Ty=
{Value = {Value = 703234928}}, Unit=@0xbfbfc0a8) at CGDebugInfo.cpp:864
#29 0x081da587 in clang::CodeGen::CGDebugInfo::getOrCreateType
(this=0x29840780, Ty=
{Value = {Value = 703234928}}, Unit=@0xbfbfc200) at CGDebugInfo.cpp:832
#30 0x081de718 in clang::CodeGen::CGDebugInfo::CreateType (this=0x29840780,
Ty=0x29fba498,
Unit=@0xbfbfc32c) at CGDebugInfo.cpp:623
#31 0x081d9f17 in clang::CodeGen::CGDebugInfo::CreateTypeNode (this=0x29840780,
Ty=
{Value = {Value = 704357528}}, Unit=@0xbfbfc3f8) at CGDebugInfo.cpp:864
#32 0x081da587 in clang::CodeGen::CGDebugInfo::getOrCreateType
(this=0x29840780, Ty=
{Value = {Value = 704357528}}, Unit=@0xbfbfc468) at CGDebugInfo.cpp:832
#33 0x081e110c in clang::CodeGen::CGDebugInfo::CreatePointerLikeType
(this=0x29840780, Tag=15,
Ty=0x29fba4d8, PointeeTy={Value = {Value = 704357528}}, Unit=@0xbfbfc4dc)
at CGDebugInfo.cpp:263
#34 0x081e13d1 in clang::CodeGen::CGDebugInfo::CreateType (this=0x29840780,
Ty=0x29fba4d8,
Unit=@0xbfbfc534) at CGDebugInfo.cpp:248
#35 0x081d9ebf in clang::CodeGen::CGDebugInfo::CreateTypeNode (this=0x29840780,
Ty=
{Value = {Value = 704357592}}, Unit=@0xbfbfc608) at CGDebugInfo.cpp:862
#36 0x081da587 in clang::CodeGen::CGDebugInfo::getOrCreateType
(this=0x29840780, Ty=
{Value = {Value = 704357592}}, Unit=@0xbfbfc76c) at CGDebugInfo.cpp:832
#37 0x081dc641 in clang::CodeGen::CGDebugInfo::EmitDeclare (this=0x29840780,
Decl=0x29fba550,
Tag=256, Storage=0x29fdd54c, Builder=@0xbfbfd424) at CGDebugInfo.cpp:1004
#38 0x081dde6a in clang::CodeGen::CGDebugInfo::EmitDeclareOfAutoVariable
(this=0x29840780,
Decl=0x29fba550, Storage=0x29fdd54c, Builder=@0xbfbfd424) at
CGDebugInfo.cpp:1366
#39 0x081e9a2d in clang::CodeGen::CodeGenFunction::EmitLocalBlockVarDecl
(this=0xbfbfd3a0,
D=@0x29fba550) at CGDecl.cpp:414
#40 0x081ea82f in clang::CodeGen::CodeGenFunction::EmitBlockVarDecl
(this=0xbfbfd3a0,
D=@0x29fba550) at CGDecl.cpp:72
#41 0x081ea971 in clang::CodeGen::CodeGenFunction::EmitDecl (this=0xbfbfd3a0,
D=@0x29fba550)
at CGDecl.cpp:49
#42 0x08254075 in clang::CodeGen::CodeGenFunction::EmitDeclStmt
(this=0xbfbfd3a0, S=@0x29fba6c0)
at CGStmt.cpp:555
#43 0x08255aee in clang::CodeGen::CodeGenFunction::EmitSimpleStmt
(this=0xbfbfd3a0, S=0x29fba6c0)
at CGStmt.cpp:129
#44 0x08254155 in clang::CodeGen::CodeGenFunction::EmitStmt (this=0xbfbfd3a0,
S=0x29fba6c0)
at CGStmt.cpp:43
#45 0x082558cf in clang::CodeGen::CodeGenFunction::EmitCompoundStmt
(this=0xbfbfd3a0,
S=@0x29fba740, GetLast=false, AggLoc=0x0, isAggVol=false) at CGStmt.cpp:162
#46 0x08255acc in clang::CodeGen::CodeGenFunction::EmitSimpleStmt
(this=0xbfbfd3a0, S=0x29fba740)
at CGStmt.cpp:128
#47 0x08254155 in clang::CodeGen::CodeGenFunction::EmitStmt (this=0xbfbfd3a0,
S=0x29fba740)
at CGStmt.cpp:43
#48 0x082556d5 in clang::CodeGen::CodeGenFunction::EmitIfStmt (this=0xbfbfd3a0,
S=@0x29fba770)
at CGStmt.cpp:326
#49 0x0825433b in clang::CodeGen::CodeGenFunction::EmitStmt (this=0xbfbfd3a0,
S=0x29fba770)
at CGStmt.cpp:89
#50 0x082558cf in clang::CodeGen::CodeGenFunction::EmitCompoundStmt
(this=0xbfbfd3a0,
S=@0x29fba790, GetLast=false, AggLoc=0x0, isAggVol=false) at CGStmt.cpp:162
#51 0x08255acc in clang::CodeGen::CodeGenFunction::EmitSimpleStmt
(this=0xbfbfd3a0, S=0x29fba790)
at CGStmt.cpp:128
#52 0x08254155 in clang::CodeGen::CodeGenFunction::EmitStmt (this=0xbfbfd3a0,
S=0x29fba790)
at CGStmt.cpp:43
#53 0x082556d5 in clang::CodeGen::CodeGenFunction::EmitIfStmt (this=0xbfbfd3a0,
S=@0x29fba7c0)
at CGStmt.cpp:326
#54 0x0825433b in clang::CodeGen::CodeGenFunction::EmitStmt (this=0xbfbfd3a0,
S=0x29fba7c0)
at CGStmt.cpp:89
#55 0x082558cf in clang::CodeGen::CodeGenFunction::EmitCompoundStmt
(this=0xbfbfd3a0,
S=@0x29fba7e0, GetLast=false, AggLoc=0x0, isAggVol=false) at CGStmt.cpp:162
#56 0x08255acc in clang::CodeGen::CodeGenFunction::EmitSimpleStmt
(this=0xbfbfd3a0, S=0x29fba7e0)
at CGStmt.cpp:128
#57 0x08254155 in clang::CodeGen::CodeGenFunction::EmitStmt (this=0xbfbfd3a0,
S=0x29fba7e0)
at CGStmt.cpp:43
#58 0x0821d996 in clang::CodeGen::CodeGenFunction::GenerateObjCMethod
(this=0xbfbfd3a0,
OMD=0x29fba100) at CGObjC.cpp:134
#59 0x0819b83d in clang::CodeGen::CodeGenModule::EmitTopLevelDecl
(this=0x29812200, D=0x29fba100)
at CodeGenModule.cpp:1753
#60 0x081951d0 in HandleTopLevelDecl (this=0x298068c0, DG={D = 0x29fba100}) at
ModuleBuilder.cpp:67
#61 0x08169da0 in HandleTopLevelDecl (this=0x29857200, D={D = 0x29fba100}) at
Backend.cpp:130
#62 0x08389d7a in clang::ParseAST (PP=@0x298611c0, Consumer=0x29857200,
Ctx=@0x2988a400,
PrintStats=false, CompleteTranslationUnit=true, CompletionConsumer=0x0) at
ParseAST.cpp:72
#63 0x080920aa in clang::ASTFrontendAction::ExecuteAction (this=0x2980a8c0)
at FrontendAction.cpp:218
#64 0x08092196 in clang::FrontendAction::Execute (this=0x2980a8c0) at
FrontendAction.cpp:148
#65 0x08087d82 in main (argc=61, argv=0xbfbfe068) at clang-cc.cpp:377
In another example I now get a failure that the debug info generator now
attempts to replace one value with a value of a different type, giving this
trace:
#4 0x0923788d in llvm::Value::replaceAllUsesWith (this=0x29fb10a0,
New=0x2a111670)
at Value.cpp:332
#5 0x090f3b6b in llvm::DIDerivedType::replaceAllUsesWith (this=0xbfbfc704,
D=@0xbfbfc6fc)
at DebugInfo.cpp:304
#6 0x081dee43 in clang::CodeGen::CGDebugInfo::CreateType (this=0x298406c0,
Ty=0x29c53e68,
Unit=@0xbfbfc86c) at CGDebugInfo.cpp:702
#7 0x081d9f17 in clang::CodeGen::CGDebugInfo::CreateTypeNode (this=0x298406c0,
Ty=
{Value = {Value = 700792424}}, Unit=@0xbfbfc938) at CGDebugInfo.cpp:864
#8 0x081da587 in clang::CodeGen::CGDebugInfo::getOrCreateType
(this=0x298406c0, Ty=
{Value = {Value = 700792424}}, Unit=@0xbfbfca90) at CGDebugInfo.cpp:832
#9 0x081de718 in clang::CodeGen::CGDebugInfo::CreateType (this=0x298406c0,
Ty=0x29fa6bb0,
Unit=@0xbfbfcbbc) at CGDebugInfo.cpp:623
#10 0x081d9f17 in clang::CodeGen::CGDebugInfo::CreateTypeNode (this=0x298406c0,
Ty=
{Value = {Value = 704277424}}, Unit=@0xbfbfcc88) at CGDebugInfo.cpp:864
#11 0x081da587 in clang::CodeGen::CGDebugInfo::getOrCreateType
(this=0x298406c0, Ty=
{Value = {Value = 704277424}}, Unit=@0xbfbfccf8) at CGDebugInfo.cpp:832
#12 0x081e110c in clang::CodeGen::CGDebugInfo::CreatePointerLikeType
(this=0x298406c0, Tag=15,
Ty=0x29fa6bf0, PointeeTy={Value = {Value = 704277424}}, Unit=@0xbfbfcd6c)
at CGDebugInfo.cpp:263
#13 0x081e13d1 in clang::CodeGen::CGDebugInfo::CreateType (this=0x298406c0,
Ty=0x29fa6bf0,
Unit=@0xbfbfcdc4) at CGDebugInfo.cpp:248
#14 0x081d9ebf in clang::CodeGen::CGDebugInfo::CreateTypeNode (this=0x298406c0,
Ty=
{Value = {Value = 704277488}}, Unit=@0xbfbfce98) at CGDebugInfo.cpp:862
#15 0x081da587 in clang::CodeGen::CGDebugInfo::getOrCreateType
(this=0x298406c0, Ty=
{Value = {Value = 704277488}}, Unit=@0xbfbfcffc) at CGDebugInfo.cpp:832
#16 0x081dc641 in clang::CodeGen::CGDebugInfo::EmitDeclare (this=0x298406c0,
Decl=0x29fa84e0,
Tag=257, Storage=0x29f3f8cc, Builder=@0xbfbfd644) at CGDebugInfo.cpp:1004
#17 0x081dde2a in clang::CodeGen::CGDebugInfo::EmitDeclareOfArgVariable
(this=0x298406c0,
Decl=0x29fa84e0, AI=0x29f3f8cc, Builder=@0xbfbfd644) at
CGDebugInfo.cpp:1379
#18 0x081e84de in clang::CodeGen::CodeGenFunction::EmitParmDecl
(this=0xbfbfd5c0, D=@0x29fa84e0,
Arg=0x29f3cf10) at CGDecl.cpp:611
#19 0x081d4388 in clang::CodeGen::CodeGenFunction::EmitFunctionProlog
(this=0xbfbfd5c0,
FI=@0x2980aee0, Fn=0x29f4cba0, Args=@0xbfbfd470) at CGCall.cpp:636
#20 0x0826ccd0 in clang::CodeGen::CodeGenFunction::StartFunction
(this=0xbfbfd5c0, GD=
{Value = {Value = 704283728}}, RetTy={Value = {Value = 696770616}},
Fn=0x29f4cba0,
Args=@0xbfbfd470, StartLoc={ID = 394}) at CodeGenFunction.cpp:206
#21 0x0821c597 in clang::CodeGen::CodeGenFunction::StartObjCMethod
(this=0xbfbfd5c0,
OMD=0x29fa8450, CD=0x29fa6860) at CGObjC.cpp:124
#22 0x0821d975 in clang::CodeGen::CodeGenFunction::GenerateObjCMethod
(this=0xbfbfd5c0,
OMD=0x29fa8450) at CGObjC.cpp:133
#23 0x0819b83d in clang::CodeGen::CodeGenModule::EmitTopLevelDecl
(this=0x29812200, D=0x29fa8450)
at CodeGenModule.cpp:1753
#24 0x081951d0 in HandleTopLevelDecl (this=0x29806680, DG={D = 0x29fa8450}) at
ModuleBuilder.cpp:67
#25 0x08169da0 in HandleTopLevelDecl (this=0x29857200, D={D = 0x29fa8450}) at
Backend.cpp:130
#26 0x08389d7a in clang::ParseAST (PP=@0x298621c0, Consumer=0x29857200,
Ctx=@0x2988b400,
PrintStats=false, CompleteTranslationUnit=true, CompletionConsumer=0x0) at
ParseAST.cpp:72
#27 0x080920aa in clang::ASTFrontendAction::ExecuteAction (this=0x2980a840)
at FrontendAction.cpp:218
#28 0x08092196 in clang::FrontendAction::Execute (this=0x2980a840) at
FrontendAction.cpp:148
#29 0x08087d82 in main (argc=52, argv=0xbfbfe284) at clang-cc.cpp:377
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 14 22:01:24 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sat, 14 Nov 2009 22:01:24 -0600
Subject: [LLVMbugs] [Bug 5496] New: error compiling Compiling
BasicBlockTracing.ll on mingw
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5496
Summary: error compiling Compiling BasicBlockTracing.ll on mingw
Product: compiler-rt
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: compiler-rt
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sherpya at gmail.com
CC: llvmbugs at cs.uiuc.edu
I'm using latest llvm and llvm-gcc from repo.or.cz git repository
(I hope is enough up-to-date), this problem sits here for a while
I can build llvm-gcc then when I try to build llvm I get:
llvm[2]: Compiling BasicBlockTracing.ll to BasicBlockTracing.bc for Release
build (bytecode)
c:\Work\llvm\build-llvm\Release\bin\opt.exe:
c:/Work/llvm/build-llvm/runtime/libprofile/Release/BasicBlockTracing.ll:1:2:
error: expected top-level entity
.file "BasicBlockTracing.c"
^
make[2]: ***
[/c/Work/llvm/build-llvm/runtime/libprofile/Release/BasicBlockTracing.bc] Error
1
the ll file starts with:
.file "BasicBlockTracing.c"
.text
.p2align 4,,15
.globl _llvm_start_basic_block_tracing
.def _llvm_start_basic_block_tracing; .scl 2; .type 32; .endef
_llvm_start_basic_block_tracing:
pushl %ebx
I configure it with:
CC=llvm-gcc CXX=llvm-g++ \
../llvm/configure \
--enable-optimized \
--prefix=/mingw/llvm \
--program-prefix=llvm- \
--target=i686-pc-mingw32 \
--enable-targets=host \
--enable-bindings=none \
--disable-shared \
--disable-bootstrap \
--disable-nls \
--with-tune=generic \
--with-cpu=i686 \
--disable-win32-registry \
--enable-languages=c,c++ \
--disable-sjlj-exceptions
configure options for llvm-gcc:
../llvm-gcc-4.2/configure \
--enable-optimized \
--prefix=/mingw/llvm \
--program-prefix=llvm- \
--target=i686-pc-mingw32 \
--enable-targets=host \
--disable-shared \
--disable-bootstrap \
--disable-nls \
--with-tune=generic \
--with-cpu=i686 \
--disable-win32-registry \
--enable-languages=c,c++ \
--disable-sjlj-exceptions
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 15 03:17:50 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 15 Nov 2009 03:17:50 -0600
Subject: [LLVMbugs] [Bug 5497] New:
../../../../llvm-gcc-4.2-svn/libstdc++-v3/src/istream.cc: 647: internal
compiler error: Segmentation fault
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5497
Summary: ../../../../llvm-gcc-4.2-svn/libstdc++-
v3/src/istream.cc:647: internal compiler error:
Segmentation fault
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: andrew.canis at gmail.com
CC: llvmbugs at cs.uiuc.edu
Just got the latest version of llvm (r88844 and llvm-gcc-4.2 (r88796) from svn.
I can make llvm fine.
Making llvm-gcc-4.2 fails with the error:
Making all in src
make[4]: Entering directory
`/home/acanis/work/llvm/llvm-gcc-4.2-objects/i686-pc-linux-gnu/libstdc++-v3/src'
/bin/sh ../libtool --tag CXX --mode=compile
/home/acanis/work/llvm/llvm-gcc-4.2-objects/./gcc/xgcc -shared-libgcc
-B/home/acanis/work/llvm/llvm-gcc-4.2-objects/./gcc -nostdinc++
-L/home/acanis/work/llvm/llvm-gcc-4.2-objects/i686-pc-linux-gnu/libstdc++-v3/src
-L/home/acanis/work/llvm/llvm-gcc-4.2-objects/i686-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/acanis/work/llvm/llvm-gcc-4.2-objects/../llvm-gcc-4.2-install//i686-pc-linux-gnu/bin/
-B/home/acanis/work/llvm/llvm-gcc-4.2-objects/../llvm-gcc-4.2-install//i686-pc-linux-gnu/lib/
-isystem
/home/acanis/work/llvm/llvm-gcc-4.2-objects/../llvm-gcc-4.2-install//i686-pc-linux-gnu/include
-isystem
/home/acanis/work/llvm/llvm-gcc-4.2-objects/../llvm-gcc-4.2-install//i686-pc-linux-gnu/sys-include
-I/home/acanis/work/llvm/llvm-gcc-4.2-objects/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu
-I/home/acanis/work/llvm/llvm-gcc-4.2-objects/i686-pc-linux-gnu/libstdc++-v3/include
-I/home/acanis/work/llvm/llvm-gcc-4.2-svn/libstdc++-v3/libsupc++
-fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -O2
-D_GNU_SOURCE -c -o istream.lo
../../../../llvm-gcc-4.2-svn/libstdc++-v3/src/istream.cc
/home/acanis/work/llvm/llvm-gcc-4.2-objects/./gcc/xgcc -shared-libgcc
-B/home/acanis/work/llvm/llvm-gcc-4.2-objects/./gcc -nostdinc++
-L/home/acanis/work/llvm/llvm-gcc-4.2-objects/i686-pc-linux-gnu/libstdc++-v3/src
-L/home/acanis/work/llvm/llvm-gcc-4.2-objects/i686-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/acanis/work/llvm/llvm-gcc-4.2-objects/../llvm-gcc-4.2-install//i686-pc-linux-gnu/bin/
-B/home/acanis/work/llvm/llvm-gcc-4.2-objects/../llvm-gcc-4.2-install//i686-pc-linux-gnu/lib/
-isystem
/home/acanis/work/llvm/llvm-gcc-4.2-objects/../llvm-gcc-4.2-install//i686-pc-linux-gnu/include
-isystem
/home/acanis/work/llvm/llvm-gcc-4.2-objects/../llvm-gcc-4.2-install//i686-pc-linux-gnu/sys-include
-I/home/acanis/work/llvm/llvm-gcc-4.2-objects/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu
-I/home/acanis/work/llvm/llvm-gcc-4.2-objects/i686-pc-linux-gnu/libstdc++-v3/include
-I/home/acanis/work/llvm/llvm-gcc-4.2-svn/libstdc++-v3/libsupc++
-fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -O2
-D_GNU_SOURCE -c ../../../../llvm-gcc-4.2-svn/libstdc++-v3/src/istream.cc
-fPIC -DPIC -o .libs/istream.o
../../../../llvm-gcc-4.2-svn/libstdc++-v3/src/istream.cc:647: internal compiler
error: Segmentation fault
$ uname -a
Linux acanis-desktop 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC
2009 i686 GNU/Linux
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 15 04:03:23 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 15 Nov 2009 04:03:23 -0600
Subject: [LLVMbugs] [Bug 5497]
../../../../llvm-gcc-4.2-svn/libstdc++-v3/src/istream.cc:647: internal
compiler error: Segmentation fault
In-Reply-To:
Message-ID: <200911151003.nAFA3NBs023271@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5497
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |baldrick at free.fr
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Duncan Sands 2009-11-15 04:03:23 ---
*** This bug has been marked as a duplicate of bug 5495 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 15 12:49:42 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 15 Nov 2009 12:49:42 -0600
Subject: [LLVMbugs] [Bug 5501] New: Useless memory accesses removal from
loops
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5501
Summary: Useless memory accesses removal from loops
Product: new-bugs
Version: 2.6
Platform: PC
OS/Version: Windows XP
Status: NEW
Keywords: code-quality
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bearophile at mailas.com
CC: llvmbugs at cs.uiuc.edu
While testing the LDC compiler I have seen that the SciMark2 benchmark
(http://math.nist.gov/scimark2/ ) shows two performance problems compared to
Java (Java is about 20-30% faster), here I have reduced one of them to almost
minimal C code:
#include "stdlib.h"
// Reduced Scimark2 SOR benchmark
void test(int N, double omega, double** G) {
double omega_over_four = omega * 0.25;
double one_minus_omega = 1.0 - omega;
int j, i = 1;
double* Gi = G[i];
double* Gim1 = G[i - 1];
double* Gip1 = G[i + 1];
for (j = 1; j < N - 1; j++)
Gi[j] = omega_over_four * (Gim1[j] + Gip1[j] + Gi[j - 1] + Gi[j + 1]) +
one_minus_omega * Gi[j];
}
int main() {
int N = 100;
double** mat = (double**)malloc(sizeof(double*) * N);
int i;
for (i = 0; i < N; i++)
mat[i] = (double*)malloc(sizeof(double) * N);
test(N, 1.25, mat);
return 0;
}
Inner loop of test(), using llvm-gcc 2.6 (32 bit, on Windows):
llvm-gcc -Wall -O3 -fomit-frame-pointer -msse3 -march=native -ffast-math
LBB1_2:
movapd %xmm1, %xmm2
mulsd 8(%ecx,%edi,8), %xmm2
movsd 8(%esi,%edi,8), %xmm3
addsd 8(%edx,%edi,8), %xmm3
addsd (%ecx,%edi,8), %xmm3
addsd 16(%ecx,%edi,8), %xmm3
mulsd %xmm0, %xmm3
addsd %xmm2, %xmm3
movsd %xmm3, 8(%ecx,%edi,8)
incl %edi
cmpl %eax, %edi
jne LBB1_2
I think the performance difference is caused by the 32bit Java server JIT that
reduces the number of memory accesses in the inner loop from 6 to 4, as in code
like (code not tested):
void test(int N, double omega, double** G) { // Scimark2 SOR reduced
double omega_over_four = omega * 0.25;
double one_minus_omega = 1.0 - omega;
int j, i = 1;
double* Gi = G[i];
double* Gim1 = G[i - 1];
double* Gip1 = G[i + 1];
double pred = Gi[0];
double curr = Gi[1];
double succ = Gi[2];
for (j = 1; j < N - 1; j++) {
pred = omega_over_four * (Gim1[j] + Gip1[j] + pred + succ) +
one_minus_omega * curr;
Gi[i] = pred;
curr = succ;
succ = Gi[i + 1];
}
}
On IRC has said:
hm! there's a number of loads that are trivially provably consequtive in
memory, but i don't think we have a pass that even tries to fold them
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 15 14:30:59 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 15 Nov 2009 14:30:59 -0600
Subject: [LLVMbugs] [Bug 5502] New: Assertion on IndirectBrInst failed
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5502
Summary: Assertion on IndirectBrInst failed
Product: new-bugs
Version: trunk
Platform: Other
URL: http://rene-ladan.nl/tb/errors/8-clang-FreeBSD/fuse-
0.10.0.2_1.log
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rene at freebsd.org
CC: llvmbugs at cs.uiuc.edu
When compiling z80_ops.c (see end of log), the assertion
(!isa(Preds[i]->getTerminator()) && "Cannot split an edge from
an IndirectBrInst") fails.
FreeBSD 8.0-RC2, i386, llvm/clang from svn revision 88856
clang-cc was built without debug symbols, the backtrace from gdb shows:
> #37 0x08e69403 in llvm::callDefaultCtor ()
> No symbol table info available.
> Previous frame inner to this frame (corrupt stack?)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 15 14:35:05 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 15 Nov 2009 14:35:05 -0600
Subject: [LLVMbugs] [Bug 5503] New: __attribute__ aligned does not work as
expected on mingw32
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5503
Summary: __attribute__ aligned does not work as expected on
mingw32
Product: tools
Version: 2.6
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: llvm-gcc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sherpya at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3822)
--> (http://llvm.org/bugs/attachment.cgi?id=3822)
test case
There is a bug on gcc/binutils, resolved on latest svn revisions
__attribute__ aligned does not work well with commons
since the info about alignment is lost when producing coff objects
this can be a problem when vectorizing (dunno on llvm) with -O3 and cpu with
sse, or simply using some inline sse code that expects 16-byte aligned
data
there are 2 kind of aligned, global or local
by using -fno-common on gcc the problem is workarounded
on llvm, with -fno-common only global declarations are aligned
I'm attaching a test case
here my outputs:
llvm-gcc:
Local Aligned 16: 8
Local Aligned 32: 8
Global Aligned 16: 8
Global Aligned 32: 8
llvm-gcc with -fno-common:
Local Aligned 16: 8
Local Aligned 32: 8
Global Aligned 16: 0
Global Aligned 32: 0
gcc with -fno-common:
Local Aligned 16: 0
Local Aligned 32: 0
Global Aligned 16: 0
Global Aligned 32: 0
link to gcc bug:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37216
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 15 15:21:50 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 15 Nov 2009 15:21:50 -0600
Subject: [LLVMbugs] [Bug 5504] New: llvm::sys::Memory::
InvalidateInstructionCache breaks compilation against ARM
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5504
Summary: llvm::sys::Memory::InvalidateInstructionCache breaks
compilation against ARM
Product: new-bugs
Version: 2.6
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: max.wolf at gmx.de
CC: llvmbugs at cs.uiuc.edu
in order to compile against ARM on the maemo platform i had to remove the
"__clear_cache" call in Memory.cpp.
I have no idea, if removing the call is the correct solution, but at least it
solves the compilation problem and the comment suggests a problem anyway.
# elif defined(__arm__) && defined(__GNUC__)
// FIXME: Can we safely always call this for __GNUC__ everywhere?
//char *Start = (char*) Addr;
//char *End = Start + Len;
__clear_cache(Start, End);
# endif
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun Nov 15 16:02:24 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 15 Nov 2009 16:02:24 -0600
Subject: [LLVMbugs] [Bug 5504] llvm::sys::Memory::
InvalidateInstructionCache breaks compilation against ARM
In-Reply-To:
Message-ID: <200911152202.nAFM2O8L002928@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5504
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |asl at math.spbu.ru
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Anton Korobeynikov 2009-11-15 16:02:23 ---
You need to use more or less recent toolchain to compile stuff (e.g.
codesourcery 2009q1 one)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun Nov 15 18:08:24 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 15 Nov 2009 18:08:24 -0600
Subject: [LLVMbugs] [Bug 5505] New: Assertion failed: Reg >= X86::FP0 && Reg
<= X86::FP6 && " Expected FP register!"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5505
Summary: Assertion failed: Reg >= X86::FP0 && Reg <= X86::FP6 &&
"Expected FP register!"
Product: compiler-rt
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: compiler-rt
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sherpya at gmail.com
CC: llvmbugs at cs.uiuc.edu
I've got this error while compiling atan2f.c from mingw runtime with -O >= 1
with -O0 works fine:
Assertion failed: Reg >= X86::FP0 && Reg <= X86::FP6 && "Expected FP
register!",
file c:/proj/llvm/src/lib/Target/X86/X86FloatingPoint.cpp, line 179
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
atan2f.c:15: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
test case:
#include
float
atan2f (float y, float x)
{
float res;
asm ("fpatan" : "=t" (res) : "u" (y), "0" (x) : "st(1)");
return res;
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 15 18:31:02 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 15 Nov 2009 18:31:02 -0600
Subject: [LLVMbugs] [Bug 5505] Assertion failed: Reg >= X86::FP0 && Reg <=
X86::FP6 && " Expected FP register!"
In-Reply-To:
Message-ID: <200911160031.nAG0V2sj008497@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5505
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |asl at math.spbu.ru
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Anton Korobeynikov 2009-11-15 18:31:01 ---
Please set proper "product" in the PRs as well. The assertion is not connected
with compiler-rt library at all (consider reading http://compiler-rt.llvm.org)
at least.
*** This bug has been marked as a duplicate of bug 879 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 15 18:33:06 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 15 Nov 2009 18:33:06 -0600
Subject: [LLVMbugs] [Bug 5496] error compiling Compiling
BasicBlockTracing.ll on mingw
In-Reply-To:
Message-ID: <200911160033.nAG0X6VG008673@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5496
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Anton Korobeynikov 2009-11-15 18:33:06 ---
Closing as invalid then
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun Nov 15 20:10:15 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 15 Nov 2009 20:10:15 -0600
Subject: [LLVMbugs] [Bug 5495] Assert failure "Interval does not exist for
register" during llvm-gcc build
In-Reply-To:
Message-ID: <200911160210.nAG2AF2w012597@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5495
Lang Hames changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #11 from Lang Hames 2009-11-15 20:10:14 ---
Applied Andrew's patch in r88880. Thanks for that Andrew!
My fix to ProcessImplicitDefs was committed in r88881.
That resolves both issues. :)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Sun Nov 15 21:50:39 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 15 Nov 2009 21:50:39 -0600
Subject: [LLVMbugs] [Bug 5491] Add FileCheck option to not count lines
matching CHECK
In-Reply-To:
Message-ID: <200911160350.nAG3odP9015834@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5491
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #1 from Chris Lattner 2009-11-15 21:50:39 ---
I don't think this is important enough to warrant a filecheck feature. Most
fixit checks should be written as "run the bad input into clang in fixit mode
and verify that clang reparses it with no diagnostics". If this isn't enough,
I recommend using a regex that is anchored to the start of the line, ensuring
that the CHECK: lines aren't matched.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 15 22:31:42 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Sun, 15 Nov 2009 22:31:42 -0600
Subject: [LLVMbugs] [Bug 5449] clang crashes on float constant evaluation
In-Reply-To:
Message-ID: <200911160431.nAG4Vgem017287@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5449
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sharparrow1 at yahoo.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2009-11-15 22:31:40 ---
Fixed in r88885.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 16 03:28:23 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 16 Nov 2009 03:28:23 -0600
Subject: [LLVMbugs] [Bug 3666] X86 backend converts calls to constant
addresses to indirect calls.
In-Reply-To:
Message-ID: <200911160928.nAG9SNkP009775@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=3666
tobias changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ubub at gmx.net
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #5 from tobias 2009-11-16 03:28:22 ---
When upgrading from 2.5 to 2.6 this patch seems to break stuff:
llvm 2.5 outputs the following assembly:
movl $12345678, %eax
call *%eax
this is correct, but indirect, as documented in the initial comment.
the initial comment says that llvm 2.6 _should_ output:
call *12345678
the above assembly calls the function pointer _stored_ at address 12345678.
this is not the same as calling the function at address 12345678, which is what
the IR would like to do.
actually llvm 2.6 outputs the following assembly:
call 12345678
the above assembly calls the function pointer relative to the current program
counter (IPC+12345678 -> crash). this is not the same as calling the function
at the absolute address 12345678, which is what the IR would like to do.
perhaps someone with good x86 at&t assembly knowledge can shed some light on
it.
I have already tried:
call 12345678 - . - 1
this works but I don't know if it is fully relocatable when linked as a shared
library.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 16 04:17:29 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 16 Nov 2009 04:17:29 -0600
Subject: [LLVMbugs] [Bug 5507] New: Visibility warning from gcc-4.4 when
compiling DwarfDebug. cpp
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5507
Summary: Visibility warning from gcc-4.4 when compiling
DwarfDebug.cpp
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: dpatel at apple.com, llvmbugs at cs.uiuc.edu
lib/CodeGen/AsmPrinter/DwarfDebug.cpp:127: warning: ???llvm::DbgVariable???
declared with greater visibility than the type of its field
???llvm::DbgVariable::TheDIE???
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 16 05:16:50 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 16 Nov 2009 05:16:50 -0600
Subject: [LLVMbugs] [Bug 5508] New: debug info for local static variables
doesn't say they' re local
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5508
Summary: debug info for local static variables doesn't say
they're local
Product: tools
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: llvm-gcc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jay.foad at antixlabs.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3823)
--> (http://llvm.org/bugs/attachment.cgi?id=3823)
source file
If I compile the attached source with "llvm-gcc -g -S -emit-llvm f.c", I get
the following debug info for the local static variable "i":
!0 = metadata !{i32 458804, i32 0, metadata !1, metadata !"i", metadata !"i",
metadata !"i.1080", metadata !1, i32 3, metadata !2, i1 true, i1 true, i32*
@i.1080}; [DW_TAG_variable ]
!1 = metadata !{i32 458769, i32 0, i32 1, metadata !"f.c", metadata
!"/home/foad/", metadata !"4.2.1 (Based on Apple Inc. build 5653) (LLVM
build)", i1 true, i1 false, metadata !"", i32 0}; [DW_TAG_compile_unit ]
!2 = metadata !{i32 458788, metadata !1, metadata !"int", metadata !1, i32 0,
i64 32, i64 32, i64 0, i32 0, i32 5}; [DW_TAG_base_type ]
There's nothing in here that encodes the fact that "i" is local to the function
"f" -- it looks just like a global variable.
I guess the obvious way to encode this information would be to set the global
variable descriptor's "context" to the descriptor for the subprogram "f",
instead of the compile unit.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 16 09:25:13 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 16 Nov 2009 09:25:13 -0600
Subject: [LLVMbugs] [Bug 5510] New: Timer class is not thread safe.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5510
Summary: Timer class is not thread safe.
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Support Libraries
AssignedTo: unassignedbugs at nondot.org
ReportedBy: hans at hanshq.net
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3824)
--> (http://llvm.org/bugs/attachment.cgi?id=3824)
Test program
Using different instances of Timer in different threads is not safe.
When running the attached C++ code on a multiprocessor machine I get the
following error:
a.out: Timer.cpp:172: void llvm::Timer::stopTimer(): Assertion `I !=
ActiveTimers->end() && "stop but no startTimer?"' failed.
Aborted
(compiled with g++ TimerTest.cpp -pthread `./llvm-config --cxxflags --ldflags
--libs`)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 16 11:03:23 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 16 Nov 2009 11:03:23 -0600
Subject: [LLVMbugs] [Bug 408] Need a target-independent machine code verifier
In-Reply-To:
Message-ID: <200911161703.nAGH3NlN025877@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=408
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Jakob Stoklund Olesen 2009-11-16 11:03:23 ---
The verifier is enabled with -verify-machineinstrs.
More features are welcome.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 16 13:21:55 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 16 Nov 2009 13:21:55 -0600
Subject: [LLVMbugs] [Bug 5507] Visibility warning from gcc-4.4 when
compiling DwarfDebug.cpp
In-Reply-To:
Message-ID: <200911161921.nAGJLtek032193@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5507
devang.patel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from devang.patel 2009-11-16 13:21:55 ---
I am not seeing this warning. (I'm confused why?).
However, does r88939 help ?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 16 13:32:13 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 16 Nov 2009 13:32:13 -0600
Subject: [LLVMbugs] [Bug 5507] Visibility warning from gcc-4.4 when
compiling DwarfDebug.cpp
In-Reply-To:
Message-ID: <200911161932.nAGJWDrh032681@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5507
Benjamin Kramer changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |benny.kra at gmail.com
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #2 from Benjamin Kramer 2009-11-16 13:32:13 ---
(In reply to comment #1)
> I am not seeing this warning. (I'm confused why?).
I think it was introduced in GCC 4.3.
> However, does r88939 help ?
We get a different warning now:
In file included from DwarfDebug.h:23,
from DwarfDebug.cpp:14:
include/llvm/ADT/ValueMap.h: In instantiation of
'llvm::ValueMapIterator,
llvm::DenseMapInfo >, llvm::DbgScope*,
llvm::DenseMapInfo, llvm::DenseMapInfo > >,
llvm::DenseMapInfo >, llvm::MDNode*>::ValueTypeProxy':
DwarfDebug.cpp:2050: instantiated from here
include/llvm/ADT/ValueMap.h:289: warning:
'llvm::ValueMapIterator,
llvm::DenseMapInfo >, llvm::DbgScope*,
llvm::DenseMapInfo, llvm::DenseMapInfo > >,
llvm::DenseMapInfo >, llvm::MDNode*>::ValueTypeProxy' declared
with greater visibility than the type of its field
'llvm::ValueMapIterator,
llvm::DenseMapInfo >, llvm::DbgScope*,
llvm::DenseMapInfo, llvm::DenseMapInfo > >,
llvm::DenseMapInfo >, llvm::MDNode*>::ValueTypeProxy::second'
I think it's the same warning Jeff tried to fix in r85873.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 16 15:44:54 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 16 Nov 2009 15:44:54 -0600
Subject: [LLVMbugs] [Bug 5508] debug info for local static variables doesn't
say they're local
In-Reply-To:
Message-ID: <200911162144.nAGLis8b006730@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5508
devang.patel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from devang.patel 2009-11-16 15:44:54 ---
Fixed in r88970.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 16 17:00:44 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Mon, 16 Nov 2009 17:00:44 -0600
Subject: [LLVMbugs] [Bug 5525] New: llc generates duplicate labels
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5525
Summary: llc generates duplicate labels
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: timo.lindfors at iki.fi
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3825)
--> (http://llvm.org/bugs/attachment.cgi?id=3825)
bc file that causes llc to generate duplicate labels
Steps to reproduce:
1) llc --relocation-model=pic -o bugpoint.safe.bc.llc.s bugpoint.safe.bc
2) gcc -x assembler -fno-strict-aliasing bugpoint.safe.bc.llc.s -x none -shared
-o bugpoint.safe.bc.llc.s.so -O2
Expected results:
2) gcc accepts the code generated by llc
Actual results:
2) gcc prints a large number of errors about duplicate labels:
bugpoint.safe.bc.llc.s: Assembler messages:
bugpoint.safe.bc.llc.s:33685: Error: symbol `.Lfunc_end76' is already defined
bugpoint.safe.bc.llc.s:34029: Error: symbol `.Lfunc_end76' is already defined
bugpoint.safe.bc.llc.s:34491: Error: symbol `.Lfunc_end76' is already defined
bugpoint.safe.bc.llc.s:34953: Error: symbol `.Lfunc_end76' is already defined
bugpoint.safe.bc.llc.s:35338: Error: symbol `.Lfunc_end76' is already defined
...
bugpoint.safe.bc.llc.s:61089: Error: symbol `.Ldebug_frame_begin76' is already
defined
bugpoint.safe.bc.llc.s:61122: Error: symbol `.Ldebug_frame_end76' is already
defined
bugpoint.safe.bc.llc.s:61125: Error: symbol `.Ldebug_frame_begin76' is already
defined
bugpoint.safe.bc.llc.s:61158: Error: symbol `.Ldebug_frame_end76' is already
defined
bugpoint.safe.bc.llc.s:61161: Error: symbol `.Ldebug_frame_begin76' is already
defined
...
More info:
1) I was trying to use bugpoint to reduce a crash in JIT but then noticed that
after a few reduction rounds llc stopped working.
2) llvm revision is 87031
3) distro is debian stable
4) architecture is x86
5) gcc version is 4.3.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 Tue Nov 17 02:52:20 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 17 Nov 2009 02:52:20 -0600
Subject: [LLVMbugs] [Bug 5533] New: UNREACHABLE executed at
X86ATTAsmPrinter.cpp:415!
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5533
Summary: UNREACHABLE executed at X86ATTAsmPrinter.cpp:415!
Product: libraries
Version: 2.6
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Target Description Classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jirislaby at gmail.com
CC: llvmbugs at cs.uiuc.edu
cmdline:
~xslaby/llvm-gcc-4.2-2.6-x86_64-linux/bin/llvm-gcc -Wp,-MD,init/.main.o.d
-nostdinc -isystem
/usr/lib64/llvm-gcc/lib64/gcc/x86_64-unknown-linux-gnu/4.2.1/include
-I/home/l/latest/xxx/arch/x86/include -Iinclude -I/home/l/latest/xxx/include
-include include/generated/autoconf.h -I/home/l/latest/xxx/init -Iinit
-D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -Werror-implicit-function-declaration
-Wno-format-security -fno-delete-null-pointer-checks -m64 -mtune=generic
-mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args
-DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-fno-omit-frame-pointer -fno-optimize-sibling-calls -pg
-Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow
-fprofile-arcs -ftest-coverage -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(main)" -D"KBUILD_MODNAME=KBUILD_STR(main)"
-D"DEBUG_HASH=30" -D"DEBUG_HASH2=43" /home/l/latest/xxx/init/main.c -E >main.E
Output:
Unknown pcrel immediate operand
UNREACHABLE executed at X86ATTAsmPrinter.cpp:415!
/home/l/latest/xxx/init/main.c:907: internal compiler error: Aborted
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Tue Nov 17 03:17:22 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 17 Nov 2009 03:17:22 -0600
Subject: [LLVMbugs] [Bug 5507] Visibility warning from gcc-4.4 when
compiling DwarfDebug.cpp
In-Reply-To:
Message-ID: <200911170917.nAH9HMKb014285@zion.cs.uiuc.edu>
http://llvm.org/bugs/show_bug.cgi?id=5507
Nick Lewycky changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nicholas at mxc.ca
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #6 from Nick Lewycky 2009-11-17 03:17:21 ---
Okay. So I applied *a* fix, but it might not be good enough: I removed
VISIBILITY_HIDDEN from the whole directory.
As far as I can tell, this is the right thing to do. Having a class contain a
member of hidden visibility is a real bug, if you every try to hand that class*
to someone else to use it. That rule affects the whole object hierarchy all the
way down. Either all of it needs to be hidden or none of it can be.
I also looked into other ways to mark things hidden. Anonymous namespaces are
the most obvious, but all of these hidden classes are used in more than one
translation unit. You can also put all of this stuff in a namespace debug
VISIBILITY_HIDDEN, but it's still all subject to the hierarchy rule mentioned
above.
If the extra symbols are a real, non-cosmetic problem, please reopen this bug!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Tue Nov 17 04:09:03 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 17 Nov 2009 04:09:03 -0600
Subject: [LLVMbugs] [Bug 5534] New: Local register allocator assertion "
Silently clearing a virtual register?" failed
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5534
Summary: Local register allocator assertion "Silently clearing a
virtual register?" 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: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3829)
--> (http://llvm.org/bugs/attachment.cgi?id=3829)
testcase .ll
This is a recent regression.
$ llc regalloc_crash.ll -O0 -regalloc=local
llc: llvm/lib/CodeGen/RegAllocLocal.cpp:859:
void::RALocal::AllocateBasicBlock(llvm::MachineBasicBlock&): Assertion
`(!PhysRegsUsed[PhysReg] || PhysRegsUsed[PhysReg] == -1) && "Silently clearing
a virtual register?"' failed.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at cs.uiuc.edu Tue Nov 17 05:33:22 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 17 Nov 2009 05:33:22 -0600
Subject: [LLVMbugs] [Bug 5535] New: Invalid labels (eg: .L5_4_set_-1)
generated by llc with -relocation-model=pic
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5535
Summary: Invalid labels (eg: .L5_4_set_-1) generated by llc with
-relocation-model=pic
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3831)
--> (http://llvm.org/bugs/attachment.cgi?id=3831)
testcase .ll
This is a recent regression and breaks the Fortran llvm-gcc build.
Labels are being output with minus signs in them (perhaps this
means the label was deleted, in which case it shouldn't be output).
$ llc -relocation-model=pic labels.bc && gcc -c labels.s
labels.s: Assembler messages:
labels.s:3037: Error: expected comma after ".L5_4_set_"
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?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 Nov 17 06:15:43 2009
From: bugzilla-daemon at cs.uiuc.edu (bugzilla-daemon at cs.uiuc.edu)
Date: Tue, 17 Nov 2009 06:15:43 -0600
Subject: [LLVMbugs] [Bug 5537] New: opt -strip does not remove all debug
information
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5537
Summary: opt -strip does not remove all debug information
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: timo.lindfors at iki.fi
CC: llvmbugs at cs.uiuc.edu
Steps to reproduce:
1) cat > testcase.c <
int main(int argc, char *argv[]) {
puts("Hello world");
return 0;
}
EOF
2) llvm-gcc -c -emit-llvm -g testcase.c
3) opt -strip testcase.o -o - | llvm-dis -o - -
4) llvm-gcc -c -emit-llvm testcase.c
5) llvm-dis -o - testcase.o
Expected results:
3 & 5) Using -g and opt -strip should cancel each other and result in no
debugging information.
Actual results:
3) opt -strip did not remove all debugging information:
; 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:32:32-n8:16:32"
target triple = "i386-pc-linux-gnu"
@0 = private constant [12 x i8] c"Hello world\00", align 1 ; <[12 x i8]*>
[#uses=1]
define i32 @main(i32, i8**) nounwind {
%3 = alloca i32 ; [#uses=2]
%4 = alloca i8** ; [#uses=2]
%5 = alloca i32 ; [#uses=2]
%6 = alloca i32 ;