From bugzilla-daemon at llvm.org Thu Jul 1 00:11:04 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Jul 2010 00:11:04 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6972] virtual derived constructor with "throw()" is
seen as too lax when templates are involved
In-Reply-To:
References:
Message-ID: <20100701051104.D79AF2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6972
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2010-07-01 00:11:04 CDT ---
Fixed in r107385.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 1 00:18:17 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Jul 2010 00:18:17 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7539] New: llc crashes on functions with union as
an argument
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7539
Summary: llc crashes on functions with union as an argument
Product: libraries
Version: 2.7
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: matt.giuca at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5151)
--> (http://llvm.org/bugs/attachment.cgi?id=5151)
Simplified test case which crashes llc
Any function I try with a union as an argument seems to compile OK until it
gets to llc, and then I get an error "UNREACHABLE executed!" An example
(bitcode attached):
target triple = "i386-pc-linux-gnu"
define void @union_fail(union { i32 } %x) nounwind readnone {
entry:
ret void
}
Note that it's fine if you pass a pointer to a union, just not a union object,
struct containing a union, etc. With --march=x86:
UNREACHABLE executed!
0 libLLVM-2.7.so.1 0x017e4698
Stack dump:
0. Program arguments: llc bugpoint-reduced-simplified.ll
1. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@union_fail'
Aborted
I tried a number of architectures, and they all crash on different passes, but
with the same error. For example, --march=arm:
UNREACHABLE executed!
0 libLLVM-2.7.so.1 0x018a7698
Stack dump:
0. Program arguments: llc --march=arm bugpoint-reduced-simplified.ll
1. Running pass 'ARM Instruction Selection' on function '@union_fail'
Aborted
This affects all architectures, so I have filed it under Common Code Generator
Code.
Running Ubuntu 10.04, using the version of LLVM that came with Ubuntu 10.04
(llvm 2.7-0ubuntu1).
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 1 05:34:13 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Jul 2010 05:34:13 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7540] New: Assertion failed: (Emitted && "Unable to
issue a copy instruction!\n"), function EmitSpecialNode,
file InstrEmitter.cpp, line 807.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7540
Summary: Assertion failed: (Emitted && "Unable to issue a copy
instruction!\n"), function EmitSpecialNode, file
InstrEmitter.cpp, line 807.
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu
I am getting this when trying to:
clang -c -m32 -O2 comconsole.c
....warnings...
Assertion failed: (Emitted && "Unable to issue a copy instruction!\n"),
function EmitSpecialNode, file InstrEmitter.cpp, line 807.
Stack dump:
0. Program arguments: clang -c -m32 -O2 comconsole.c
1. parser at end of file
2. Code generation
3. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@comc_probe'
Abort (core dumped)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 1 05:53:38 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Jul 2010 05:53:38 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7495] LLVM/Clang does not allow ivar access for
synthesised ivars without @synthesized
In-Reply-To:
References:
Message-ID: <20100701105338.148132A6C130@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7495
Dave Verwer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |dave.verwer at shinydevelopmen
| |t.com
Resolution|WORKSFORME |
--- Comment #4 from Dave Verwer 2010-07-01 05:53:37 CDT ---
I just found out about the plans to change this functionality from Martin and I
would like to suggest that the proposed change as mentioned by Fariborz is not
made.
I don't like the idea of accessing completely undeclared ivars, it makes it too
easy to write misleading code mistakenly accessing an ivar that is not
explicitly defined rather than accessing it through the accessors.
I would like to propose it works like this:
* If an ivar is undeclared (with or without synthesize), the ivar is not
directly accessible but the property is created and is accessible through the
getters and setters/dot syntax.
* When you do need to access an ivar directly it must be explicitly declared
and synthesized.
This way there is no magic at all and in the majority of cases the ivar and
synthesize can still be omitted.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 1 09:36:48 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Jul 2010 09:36:48 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7541] New: Exception-specification diagnostics
missing critical information
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7541
Summary: Exception-specification diagnostics missing critical
information
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Keywords: quality-of-implementation
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dgregor at apple.com
CC: llvmbugs at cs.uiuc.edu, sebastian.redl at getdesigned.at,
dgregor at apple.com
Several of the exception-specification diagnostics provide too little
information to be useful, particularly when we're checking for compatibility
between exception-specifications. For example:
t.cpp:11:39: error: target exception specification is not superset of source
Y &(Y::*yptr1)(const Y&) throw(A) = &Y::operator=;
and
test/CXX/except/except.spec/p14.cpp:12:8: error: exception specification of
overriding function is more lax than base version
struct X2 : public X0, public X1 { }; // expected-error 2{{exception ...
^
test/CXX/except/except.spec/p14.cpp:7:11: note: overridden virtual function is
here
virtual ~X0() throw(A); // expected-note{{overridden virtual function ...
^
should say what the actual exception specifications are or, perhaps, which
types are missing (in the "not a superset" diagnostic) or have been added (in
the "more lax" diagnostic).
As a secondary nit, we probably shouldn't use the term "lax". "Permissive",
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 llvm.org Thu Jul 1 10:20:17 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Jul 2010 10:20:17 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7542] New: clang signal 6 (sometimes with "Bogus
start position hint!")
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7542
Summary: clang signal 6 (sometimes with "Bogus start position
hint!")
Product: new-bugs
Version: 2.7
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu
Created an attachment (id=5153)
--> (http://llvm.org/bugs/attachment.cgi?id=5153)
failure-inducing C
Argh, here's another program that makes my clang behave non-deterministically.
clang reliably crashes but doesn't always give the assert failure notice.
Apologies for non-reduced testcase.
regehr at john-home:~/volatile/bugs/tmp322$ clang -v
clang version 2.8 (trunk 107352)
Target: i386-pc-linux-gnu
Thread model: posix
regehr at john-home:~/volatile/bugs/tmp322$ clang -w small.c -Os
clang: LiveInterval.cpp:128: bool llvm::LiveInterval::overlapsFrom(const
llvm::LiveInterval&, const llvm::LiveRange*) const: Assertion `(StartPos->start
<= i->start || StartPos == other.begin()) && StartPos != other.end() && "Bogus
start position hint!"' failed.
0 clang 0x090a4d08
Stack dump:
0. Program arguments:
/home/regehr/z/compiler-install/llvm-gcc-r107352-install/bin/clang -cc1 -triple
i386-pc-linux-gnu -S -disable-free -main-file-name small.c -mrelocation-model
static -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4
-resource-dir
/home/regehr/z/compiler-install/llvm-gcc-r107352-install/lib/clang/2.8 -Os -w
-ferror-limit 19 -fmessage-length 91 -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-ZMnM8A.s -x c small.c
1. parser at end of file
2. Code generation
3. Running pass 'Simple Register Coalescing' on function '@func_85'
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 1 12:02:05 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Jul 2010 12:02:05 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7543] New: exception not caught after rethrow
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7543
Summary: exception not caught after rethrow
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: release blocker
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: thom.heller at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Exceptions will not get caught after rethrowing.
The attached code illustrates the problem.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 1 12:13:42 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Jul 2010 12:13:42 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7544] New: Wrong offset for struct member
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7544
Summary: Wrong offset for struct member
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: ofv at wanadoo.es
CC: llvmbugs at cs.uiuc.edu
Consider this llvm assembly code that assigns values to the data members of a
struct:
; ModuleID = 'lp0'
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:32:32-v128:128:128-a0:0:64-f80:32:32"
target triple = "i686-pc-win32"
%0 = type { i32, double }
declare void @abort()
define void @mainf() {
%sdafo_ = alloca %0 ; <%0*> [#uses=2]
%pts1_4 = getelementptr %0* %sdafo_, i32 0, i32 0 ; [#uses=1]
store i32 15, i32* %pts1_4
%pts1_1 = getelementptr %0* %sdafo_, i32 0, i32 1 ; [#uses=1]
store double 2.100000e+001, double* %pts1_1
ret void
}
All data is aligned to 32 bits (with the platform's default settings for the
datalayout, the result is the same) but the generated assembly code is:
.def _mainf;
.scl 2;
.type 32;
.endef
.text
.globl _mainf
.align 16, 0x90
_mainf: # @mainf
# BB#0:
subl $20, %esp
Ltmp0:
movl $15, (%esp)
movl $1077215232, 12(%esp) # imm = 0x40350000
movl $0, 8(%esp)
addl $20, %esp
ret
The second data member (with type `double') is 12 bytes away from the first
data member of type `int', leaving 8 bytes of padding between 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 llvm.org Thu Jul 1 12:19:16 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Jul 2010 12:19:16 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7545] New: X86MCInstLower DWARF exception in -O0 -g
test
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7545
Summary: X86MCInstLower DWARF exception in -O0 -g test
Product: libraries
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: stoklund at 2pi.dk
CC: llvmbugs at cs.uiuc.edu
The attached bitcode files are from the Geryon-PIC-O0-g__llvm-gcc_PROD__x86_64
nightly tester running on trunk.
The crash llc with an Assertion failed: (MI->getOperand(0).isReg() &&
MI->getOperand(3).isImm()), function getDebugValueLocation, file
lib/Target/X86/AsmPrinter/X86MCInstLower.cpp, line 520
llc -asm-verbose=false -O0 -relocation-model pic -disable-fp-elim
Output/office-stringsearch.llvm.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 llvm.org Thu Jul 1 12:33:21 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Jul 2010 12:33:21 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7546] New: x86-64 -O0 -g miscompiles 253.perlbmk
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7546
Summary: x86-64 -O0 -g miscompiles 253.perlbmk
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: stoklund at 2pi.dk
CC: llvmbugs at cs.uiuc.edu
Some of the benchmarks are failing:
diff -u 253.perlbmk.out-{nat,llc}
--- 253.perlbmk.out-nat 2010-07-01 03:42:02.000000000 -0700
+++ 253.perlbmk.out-llc 2010-07-01 03:42:24.000000000 -0700
@@ -31,7 +31,7 @@
ok 18
ok 19
ok 20
-ok 21
+not ok 21
ok 22
ok 23
ok 24
@@ -579,10 +579,10 @@
ok 11
ok 12
ok 13
-ok 14
+not ok 14
ok 15
-ok 16
-ok 17
+not ok 16
+not ok 17
ok 18
ok 19
ok 20
@@ -600,20 +600,20 @@
ok 32
ok 33
ok 34
-ok 35
-ok 36
+not ok 35
+not ok 36
ok 37
-ok 38
-ok 39
-ok 40
-ok 41
+not ok 38
+not ok 39
+not ok 40
+not ok 41
ok 42
ok 43
-ok 44
-ok 45
+not ok 44
+not ok 45
ok 46
ok 47
-ok 48
+not ok 48 505550505
ok 49
ok 50
ok 51
@@ -734,23 +734,23 @@
ok 23
# takeuchi(18, 12, 6) = 7
1..18
-ok 1
-ok 2
-ok 3
-ok 4
-ok 5
-ok 6
-ok 7
-ok 8
-ok 9
-ok 10
-ok 11
-ok 12
-ok 13
-ok 14
-ok 15
-ok 16
-ok 17
+not ok 1
+not ok 2
+not ok 3
+not ok 4
+not ok 5
+not ok 6
+not ok 7
+not ok 8
+not ok 9
+not ok 10
+not ok 11
+not ok 12
+not ok 13
+not ok 14
+not ok 15
+not ok 16
+not ok 17
ok 18
1..51
ok 1
@@ -902,10 +902,10 @@
ok 11
ok 12
ok 13
-ok 14
+not ok 14
ok 15
-ok 16
-ok 17
+not ok 16
+not ok 17
ok 18
ok 19
ok 20
@@ -943,7 +943,7 @@
ok 22
ok 23
ok 24
-ok 25
+not ok 25
ok 26
ok 27
ok 28
@@ -956,11 +956,11 @@
ok 35
ok 36
ok 37
-ok 38
+not ok 38
ok 39
-ok 40
-ok 41
-ok 42
+not ok 40
+not ok 41
+not ok 42
ok 43
ok 44
ok 45
@@ -975,10 +975,10 @@
ok 54
ok 55
ok 56
-ok 57
-ok 58
-ok 59
-ok 60
+not ok 57
+not ok 58
+not ok 59
+not ok 60
ok 61
ok 62
1..97
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 1 12:37:10 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Jul 2010 12:37:10 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7547] New: x86-64 -O0 -g miscompiles
2004-03-15-IndirectGoto
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7547
Summary: x86-64 -O0 -g miscompiles 2004-03-15-IndirectGoto
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: stoklund at 2pi.dk
CC: llvmbugs at cs.uiuc.edu
The test SingleSource/Regression/C/2004-03-15-IndirectGoto is miscompiled on
x86-64 when building with -O0 -g:
diff -u 2004-03-15-IndirectGoto.out-{nat,llc}
--- 2004-03-15-IndirectGoto.out-nat 2010-07-01 03:12:13.000000000 -0700
+++ 2004-03-15-IndirectGoto.out-llc 2010-07-01 03:12:18.000000000 -0700
@@ -2,11 +2,5 @@
B
C
D
-B
-C
-D
-C
-D
-D
E
exit 0
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 1 12:42:02 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Jul 2010 12:42:02 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7549] New: x86-64 -O0 -g tests crash
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7549
Summary: x86-64 -O0 -g tests crash
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: stoklund at 2pi.dk
CC: llvmbugs at cs.uiuc.edu
These tests crash when built with -O0 -g on x86-64, Darwin PIC:
External/SPEC/CINT2000/176_gcc/176_gcc [LLC, LLC compile]
MultiSource/Applications/JM/lencod/lencod [LLC, LLC compile]
SingleSource/Benchmarks/Shootout-C++/except [LLC, LLC compile]
SingleSource/Regression/C++/EH/ctor_dtor_count [LLC, LLC compile]
SingleSource/UnitTests/ObjC/exceptions [LLC, LLC compile]
TEST Output/exceptions.llc FAILED: process terminated by signal (exit status
134)!
TEST Output/ctor_dtor_count.llc FAILED: process terminated by signal (exit
status 134)!
TEST Output/except.llc FAILED: process terminated by signal (exit status 134)!
TEST Output/lencod.llc FAILED: process terminated by signal (exit status 139)!
TEST ../176.gcc.llc FAILED: process terminated by signal (exit status 139)!
Exit status 134 = SIGABRT = abort(3) call
Exit status 139 = SIGSEGV = segmentation violation
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 1 12:48:35 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Jul 2010 12:48:35 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7550] New: x86-64 -O0 -g consumer-lame loops
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7550
Summary: x86-64 -O0 -g consumer-lame loops
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: stoklund at 2pi.dk
CC: llvmbugs at cs.uiuc.edu
The MultiSource/Benchmarks/MiBench/consumer-lame/consumer-lame test times out
after 500s when built with -O0 -g on x86-64, but the corresponding gcc-built
binary runs in less than a second.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 1 12:51:32 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Jul 2010 12:51:32 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7551] New: x86-64 -O0 -g miscompiles ClamAV test
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7551
Summary: x86-64 -O0 -g miscompiles ClamAV test
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: stoklund at 2pi.dk
CC: llvmbugs at cs.uiuc.edu
MultiSource/Applications/ClamAV/clamscan produces different output when built
with -O0 -g on x86-64.
There is extra output on stderr:
--- clamscan.out-nat 2010-07-01 03:14:07.000000000 -0700
+++ clamscan.out-llc 2010-07-01 03:14:25.000000000 -0700
@@ -2,6 +2,15 @@
LibClamAV Warning: *** The virus database is older than 7 days! ***
LibClamAV Warning: *** Please update it as soon as possible. ***
LibClamAV Warning: **************************************************
+ERROR: Scanning README
+ERROR: EADME: OK
+ERROR: Scanning clam-v2.rar
+LibClamAV Warning: RAR code not compiled-in
+ERROR: lam-v2.rar: OK
+ERROR: Scanning clam-v3.rar
+LibClamAV Warning: RAR code not compiled-in
+ERROR: lam-v3.rar: OK
+ERROR: Scanning clam.cab
Initializing the engine (devel-20071218)
Initializing phishcheck module
@@ -246,19 +255,10 @@
* Submodule %10s: %s
-Scanning README
-README: OK
-Scanning clam-v2.rar
-LibClamAV Warning: RAR code not compiled-in
Recognized %s file
-clam-v2.rar: OK
-Scanning clam-v3.rar
-LibClamAV Warning: RAR code not compiled-in
Recognized %s file
-clam-v3.rar: OK
-Scanning clam.cab
Recognized %s file
in cli_scanmscab()
@@ -314,7 +314,15 @@
SizeOfCode: 0x%x
-SizeOfInitializedData: 0x%x
+SizeOfERROR: lam.cab: OK
+ERROR: Scanning clam.exe
+ERROR: lam.exe: OK
+ERROR: Scanning clam.exe.bz2
+ERROR: lam.exe.bz2: OK
+ERROR: Scanning clam.zip
+ERROR: lam.zip: OK
+ERROR: Scanning clamdoc.tar.gz
+InitializedData: 0x%x
SizeOfUninitializedData: 0x%x
@@ -360,8 +368,6 @@
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 1 15:24:45 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Jul 2010 15:24:45 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7475] checker-242 doesn't reset nullity assumptions
after function call
In-Reply-To:
References:
Message-ID: <20100701202445.B43F22A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7475
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Ted Kremenek 2010-07-01 15:24:45 CDT ---
Fixed:
http://llvm.org/viewvc/llvm-project?view=rev&revision=107423
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 1 15:51:29 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Jul 2010 15:51:29 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6895] Vector literal/casting confusion.
In-Reply-To:
References:
Message-ID: <20100701205129.1AA7F2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6895
John Thompson changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from John Thompson 2010-07-01 15:51:28 CDT ---
Fixed in r107347.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 1 16:28:47 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Jul 2010 16:28:47 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7552] New: Alignment on loads with
__attribute__((packed))
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7552
Summary: Alignment on loads with __attribute__((packed))
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: arplynn at gmail.com
CC: llvmbugs at cs.uiuc.edu
When emitting loads from __attribute__((packed)) structs, clang will happily
tell LLVM to use the natural alignment of the type. This is wrong - it should
work out the alignment for the struct, or at least use align 1.
Test case:
struct foo {
char a;
int b;
} __attribute__((packed));
int bees(struct foo* bar) { return bar->b; }
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 1 16:56:23 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Jul 2010 16:56:23 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7552] Alignment on loads with
__attribute__((packed))
In-Reply-To:
References:
Message-ID: <20100701215623.7633D2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7552
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |asl at math.spbu.ru
Resolution| |DUPLICATE
--- Comment #1 from Anton Korobeynikov 2010-07-01 16:56:23 CDT ---
*** This bug has been marked as a duplicate of bug 5598 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 1 17:35:02 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Jul 2010 17:35:02 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7554] New: .o generated by clang is over 2m larger
than the one produced by gcc
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7554
Summary: .o generated by clang is over 2m larger than the one
produced by gcc
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: evan at chromium.org
CC: llvmbugs at cs.uiuc.edu
I am looking into why gcc Chrome is ~600mb while clang builds of Chrome are
1.7gb. (Both with debugging symbols.) I've attached the preprocessed version
of one of the files that differs the most between the two compilers.
With the same input file, I can generate two output files:
g++ -pthread -O0 -g -c -o profile.gcc profile.ii
../llvm/Release/bin/clang++ -pthread -O0 -g -c -o profile.gcc profile.ii
Their sizes differ significantly:
-rw-r--r-- 1 evanm evanm 4709032 2010-07-01 15:30 profile.clang
-rw-r--r-- 1 evanm evanm 2570352 2010-07-01 15:30 profile.gcc
gzipped file attached.
llvm$ svn info . tools/clang/ | grep Revision
Revision: 107405
Revision: 107405
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 1 19:57:42 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Jul 2010 19:57:42 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7547] x86-64 -O0 -g miscompiles
2004-03-15-IndirectGoto
In-Reply-To:
References:
Message-ID: <20100702005742.492BC2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7547
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |gohman at apple.com
Resolution| |FIXED
--- Comment #1 from Dan Gohman 2010-07-01 19:57:42 CDT ---
This is fixed temporarily by r107393, and properly by r107454.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 1 21:46:09 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Jul 2010 21:46:09 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7555] New: Warn for missing braces around indented
statements
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7555
Summary: Warn for missing braces around indented statements
Product: clang
Version: unspecified
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jediknil at belkadan.com
CC: llvmbugs at cs.uiuc.edu
Might be a dream, but Clang should have a warning for this sort of code:
if (!valid(str))
log("Invalid input: %s", str);
return NULL;
return process(str);
The "return NULL" line is clearly supposed to be part of the consequent block.
A fixit would be nice but not always correct, since maybe a user just forgot to
dedent in some cases.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 2 10:59:21 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 2 Jul 2010 10:59:21 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7546] x86-64 -O0 -g miscompiles 253.perlbmk
In-Reply-To:
References:
Message-ID: <20100702155921.2A1AE2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7546
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Jakob Stoklund Olesen 2010-07-02 10:59:20 CDT ---
This failure is no longer present in r107460
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 2 11:02:17 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 2 Jul 2010 11:02:17 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7550] x86-64 -O0 -g consumer-lame loops
In-Reply-To:
References:
Message-ID: <20100702160217.905BC2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7550
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Jakob Stoklund Olesen 2010-07-02 11:02:17 CDT ---
This test no longer fails in r107460.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 2 12:20:36 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 2 Jul 2010 12:20:36 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7556] New: Temporary object with trivial destructor
but non-trivial destructor isn't getting destroyed
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7556
Summary: Temporary object with trivial destructor but
non-trivial destructor isn't getting destroyed
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dgregor at apple.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
terfin:clang dgregor$ cat t.cpp
struct A { ~A(); }; void foo() { A(); }
terfin:clang dgregor$ clang++ -cc1 -ast-dump t.cpp
void foo() (CompoundStmt 0x104c0fa60
(CXXZeroInitValueExpr 0x104c10c30 'struct A'))
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 2 13:01:02 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 2 Jul 2010 13:01:02 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7557] New: Integrated assembler bug while building
mozilla/js/src/jsnum.cpp
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7557
Summary: Integrated assembler bug while building
mozilla/js/src/jsnum.cpp
Product: clang
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: Nomis101 at web.de
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Blocks: 5511
If I build Mozilla Firefox with clang on Mac OS X, than it stops at:
/Volumes/Developer/temp/src/mozilla/js/src/jsobj.cpp:6207:1: warning: unused
function 'ReservedSlotIndexOK' [-Wunused-function]
ReservedSlotIndexOK(JSContext *cx, JSObject *obj, JSClass *clasp,
^
/Volumes/Developer/temp/src/mozilla/js/src/jsnum.cpp:675:9: error: unrecognized
instruction
asm("fstcw %0" : "=m" (control) : );
^
:1:2: note: instantated into assembly here
fstcw -14(%ebp)
^
/Volumes/Developer/temp/src/mozilla/js/src/jsnum.cpp:675:9: error: unrecognized
instruction
asm("fstcw %0" : "=m" (control) : );
^
:1:2: note: instantated into assembly here
fstcw -14(%ebp)
^
5 warnings and 2 errors generated.
make[5]: *** [jsnum.o] Error 1
make[5]: *** Waiting for unfinished jobs....
Eli told me this is a integrated assembler bug, which doesn't show up on Linux.
Affected file:
http://hg.mozilla.org/mozilla-central/file/d261faaa483a/js/src/jsnum.cpp
clang version 2.8 (trunk 107428), Target: x86_64-apple-darwin10, Mac OS X
10.6.4
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 2 15:22:32 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 2 Jul 2010 15:22:32 -0500 (CDT)
Subject: [LLVMbugs] [Bug 5125] clang always generates stackframe when inline
asm is present
In-Reply-To:
References:
Message-ID: <20100702202232.95E8E2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5125
Dale Johannesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #19 from Dale Johannesen 2010-07-02 15:22:31 CDT ---
Fixed in 107506; at least, GCC-style inline asm should now work the same as
gcc. Playing more with Apple gcc's asm blocks, gcc-4.2 is quite inconsistent
about whether it does this; for example, this case
void foo() {
asm {
int 3
}
}
gets the stack aligned with -m32 -fomit-stack-pointer, but not with most other
options. Proper emulation will wait until we have some actual asm-block code
to deal with.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 2 15:44:34 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 2 Jul 2010 15:44:34 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7558] New: msp430: llc runs away on simple program
with long (32-bit) arithmetic
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7558
Summary: msp430: llc runs away on simple program with long
(32-bit) arithmetic
Product: new-bugs
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: ransford at cs.umass.edu
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5158)
--> (http://llvm.org/bugs/attachment.cgi?id=5158)
bitcode program that makes llc run away
This program makes llc (tested against ToT) eat memory like mad. My system has
limited resources, so I have no choice but to kill llc after its rsize tops
4GB. I haven't seen it finish. I've run llc under gdb and it seems to be
getting stuck in llvm::SUnit::ComputeHeight.
int main (void) {
unsigned long S[2] = {1, 2};
unsigned long i = 0;
unsigned long j = 0;
unsigned int ofs = 0;
i += S[ofs++];
j += S[ofs];
return 0;
}
I've compiled this bitcode file with clang from the llvm-msp430 project
(https://www.fooe.net/trac/llvm-msp430), but since this seems to be a codegen
bug, I'm submitting only the bitcode. I'd be happy to provide more on demand.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Jul 3 02:26:21 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 3 Jul 2010 02:26:21 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7559] New: __attribute((flatten)) not supported
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7559
Summary: __attribute((flatten)) not supported
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Per summary, __attribute((flatten)) isn't supported at the moment. From gcc
docs, "For a function marked with this attribute, every call inside this
function will be inlined, if possible." Implemented in gcc 4.1 (so anything
that uses it will assume clang supports it).
This attribute is used quite a bit in ffmpeg.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Jul 3 03:05:01 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 3 Jul 2010 03:05:01 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7560] New: Type merging not performed on local
extern declarations in C++
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7560
Summary: Type merging not performed on local extern
declarations in C++
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rideau3 at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
The following invalid program is accepted in C++ mode (though not in C mode):
extern int i[];
void foo () { extern int i [3]; }
void bar () { extern int i [4]; }
In C mode, we correctly diagnose that this involves declaring i with two
different types.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Jul 3 04:01:33 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 3 Jul 2010 04:01:33 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7561] New: wiki.llvm.org - Database down
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7561
Summary: wiki.llvm.org - Database down
Product: Website
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: General Website
AssignedTo: unassignedbugs at nondot.org
ReportedBy: grosser at fim.uni-passau.de
CC: llvmbugs at cs.uiuc.edu
The wiki does not work since two days.
I always get:
(Can't contact the database server: Can't connect to local MySQL server through
socket '/var/run/mysqld/mysqld.sock' (2) (localhost))
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Jul 3 10:15:03 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 3 Jul 2010 10:15:03 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7562] New: -mem2reg -indvars segfaults
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7562
Summary: -mem2reg -indvars segfaults
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Loop Optimizer
AssignedTo: unassignedbugs at nondot.org
ReportedBy: grosser at fim.uni-passau.de
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5160)
--> (http://llvm.org/bugs/attachment.cgi?id=5160)
Segfault with opt -mem2reg -indvars
Hi,
running "opt -mem2reg -indvars" on the attached test case leads to a SIGSEGV
because of stack space exhaustion.
Neither opt -mem2reg, opt -indvars nor opt -mem2reg -loopsimplify -indvars
crashes.
During the crash Indvars is introducing more and more canonical induction
variables, but does not recognize that it has already inserted one. I believe
this is because the
LI->getCanonicalInductionVariable() function expects a loop header with just
two predecessors. However in this case there are three.
Two possible solutions I thought about are:
* Change LI->getCanonicalInductionVariable() to not depend on loop simplified
form
* Require all users of SCEVExpander to ask for LoopSimplified loops.
Part of the backtrace until it repeats:
--------------------------------------------------------------
#21891 0x00007ffff5f2c12f in llvm::SCEVExpander::expand (this=0x7fffffffe070,
S=0x672140) at
/home/grosser/Projekte/llvm/git/lib/Analysis/ScalarEvolutionExpander.cpp:1297
#21892 0x00007ffff5f2c1ee in llvm::SCEVExpander::expandCodeFor
(this=0x7fffffffe070, SH=0x672140, Ty=0x0) at
/home/grosser/Projekte/llvm/git/lib/Analysis/ScalarEvolutionExpander.cpp:1255
#21893 0x00007ffff5f2d787 in llvm::SCEVExpander::expandCodeFor
(this=0x7fffffffe070, SH=0x672140, Ty=0x0, I=0x672c00) at
/home/grosser/Projekte/llvm/git/lib/Analysis/ScalarEvolutionExpander.cpp:1250
#21894 0x00007ffff5f2d86b in
llvm::SCEVExpander::getOrInsertCanonicalInductionVariable (this=0x7fffffffe070,
L=0x66f760, Ty=0x65e9c8) at
/home/grosser/Projekte/llvm/git/lib/Analysis/ScalarEvolutionExpander.cpp:1344
#21895 0x00007ffff5f2f87f in llvm::SCEVExpander::visitAddRecExpr
(this=0x7fffffffe070, S=0x672140) at
/home/grosser/Projekte/llvm/git/lib/Analysis/ScalarEvolutionExpander.cpp:1138
#21896 0x00007ffff5f34423 in llvm::SCEVVisitor::visit (this=0x7fffffffe070, S=0x672140) at
/home/grosser/Projekte/llvm/git/include/llvm/Analysis/ScalarEvolutionExpressions.h:588
#21897 0x00007ffff5f2c12f in llvm::SCEVExpander::expand (this=0x7fffffffe070,
S=0x672140) at
/home/grosser/Projekte/llvm/git/lib/Analysis/ScalarEvolutionExpander.cpp:1297
#21898 0x00007ffff5f2f547 in llvm::SCEVExpander::visitAddRecExpr
(this=0x7fffffffe070, S=0x671a50) at
/home/grosser/Projekte/llvm/git/lib/Analysis/ScalarEvolutionExpander.cpp:1100
#21899 0x00007ffff5f34423 in llvm::SCEVVisitor::visit (this=0x7fffffffe070, S=0x671a50) at
/home/grosser/Projekte/llvm/git/include/llvm/Analysis/ScalarEvolutionExpressions.h:588
#21900 0x00007ffff5f2c12f in llvm::SCEVExpander::expand (this=0x7fffffffe070,
S=0x671a50) at
/home/grosser/Projekte/llvm/git/lib/Analysis/ScalarEvolutionExpander.cpp:1297
#21901 0x00007ffff5f2c1ee in llvm::SCEVExpander::expandCodeFor
(this=0x7fffffffe070, SH=0x671a50, Ty=0x65e9c8) at
/home/grosser/Projekte/llvm/git/lib/Analysis/ScalarEvolutionExpander.cpp:1255
#21902 0x00007ffff5f2edc4 in llvm::SCEVExpander::visitSMaxExpr
(this=0x7fffffffe070, S=0x671c80) at
/home/grosser/Projekte/llvm/git/lib/Analysis/ScalarEvolutionExpander.cpp:1206
#21903 0x00007ffff5f34436 in llvm::SCEVVisitor::visit (this=0x7fffffffe070, S=0x671c80) at
/home/grosser/Projekte/llvm/git/include/llvm/Analysis/ScalarEvolutionExpressions.h:590
#21904 0x00007ffff5f2c12f in llvm::SCEVExpander::expand (this=0x7fffffffe070,
S=0x671c80) at
/home/grosser/Projekte/llvm/git/lib/Analysis/ScalarEvolutionExpander.cpp:1297
#21905 0x00007ffff5f2c1ee in llvm::SCEVExpander::expandCodeFor
(this=0x7fffffffe070, SH=0x671c80, Ty=0x65e9c8) at
/home/grosser/Projekte/llvm/git/lib/Analysis/ScalarEvolutionExpander.cpp:1255
#21906 0x00007ffff5f2d604 in llvm::SCEVExpander::visitAddExpr
(this=0x7fffffffe070, S=0x6720d0) at
/home/grosser/Projekte/llvm/git/lib/Analysis/ScalarEvolutionExpander.cpp:721
#21907 0x00007ffff5f343e4 in llvm::SCEVVisitor::visit (this=0x7fffffffe070, S=0x6720d0) at
/home/grosser/Projekte/llvm/git/include/llvm/Analysis/ScalarEvolutionExpressions.h:582
#21908 0x00007ffff5f2c12f in llvm::SCEVExpander::expand (this=0x7fffffffe070,
S=0x6720d0) at
/home/grosser/Projekte/llvm/git/lib/Analysis/ScalarEvolutionExpander.cpp:1297
#21909 0x00007ffff5f2c1ee in llvm::SCEVExpander::expandCodeFor
(this=0x7fffffffe070, SH=0x6720d0, Ty=0x65e9c8) at
/home/grosser/Projekte/llvm/git/lib/Analysis/ScalarEvolutionExpander.cpp:1255
#21910 0x00007ffff5f2d787 in llvm::SCEVExpander::expandCodeFor
(this=0x7fffffffe070, SH=0x6720d0, Ty=0x65e9c8, I=0x666560) at
/home/grosser/Projekte/llvm/git/lib/Analysis/ScalarEvolutionExpander.cpp:1250
#21911 0x00007ffff708b8e9 in RewriteLoopExitValues (this=0x665530, L=0x66f3a0,
Rewriter=...) at
/home/grosser/Projekte/llvm/git/lib/Transforms/Scalar/IndVarSimplify.cpp:301
#21912 0x00007ffff708c234 in runOnLoop (this=0x665530, L=0x66f3a0, LPM=...) at
/home/grosser/Projekte/llvm/git/lib/Transforms/Scalar/IndVarSimplify.cpp:504
#21913 0x00007ffff5eb06dd in llvm::LPPassManager::runOnFunction (this=0x66c670,
F=...) at /home/grosser/Projekte/llvm/git/lib/Analysis/LoopPass.cpp:269
#21914 0x00007ffff572f109 in llvm::FPPassManager::runOnFunction (this=0x6649b0,
F=...) at /home/grosser/Projekte/llvm/git/lib/VMCore/PassManager.cpp:1433
#21915 0x00007ffff572f361 in llvm::FPPassManager::runOnModule (this=0x6649b0,
M=...) at /home/grosser/Projekte/llvm/git/lib/VMCore/PassManager.cpp:1453
#21916 0x00007ffff572ed41 in llvm::MPPassManager::runOnModule (this=0x663bf0,
M=...) at /home/grosser/Projekte/llvm/git/lib/VMCore/PassManager.cpp:1507
#21917 0x00007ffff5731c67 in llvm::PassManagerImpl::run (this=0x6636a0, M=...)
at /home/grosser/Projekte/llvm/git/lib/VMCore/PassManager.cpp:1588
#21918 0x00007ffff5731cc9 in llvm::PassManager::run (this=0x7fffffffe850,
M=...) at /home/grosser/Projekte/llvm/git/lib/VMCore/PassManager.cpp:1631
#21919 0x0000000000437e9d in main (argc=4, argv=0x7fffffffea38) at
/home/grosser/Projekte/llvm/git/tools/opt/opt.cpp:550
----------------------------------------------------------------------------
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Jul 4 14:19:01 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 4 Jul 2010 14:19:01 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7561] wiki.llvm.org - Database down
In-Reply-To:
References:
Message-ID: <20100704191901.AC2A72A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7561
Daniel Berlin changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Daniel Berlin 2010-07-04 14:19:01 CDT ---
Apparently i run it ;)
It had been running so long i didn't realize it was on google2.
I just restarted mysql and it's happy again.
google2 recently went through a distro upgrade for security reasons (from
ubuntu 8.04 LTS to 10.04 LTS), and somewhere along the way mysql got installed
(though all the data was still there).
Fixed now
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Jul 4 17:25:09 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 4 Jul 2010 17:25:09 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7544] Wrong offset for struct member
In-Reply-To:
References:
Message-ID: <20100704222509.90D652A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7544
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #3 from Chris Lattner 2010-07-04 17:25:09 CDT ---
This is behaving correctly. The target settings override what is in the .ll
file. We see this in X86Subtarget.h:
std::string getDataLayout() const {
const char *p;
if (is64Bit())
p = "e-p:64:64-s:64-f64:64:64-i64:64:64-f80:128:128-n8:16:32:64";
else if (isTargetDarwin())
p = "e-p:32:32-f64:32:64-i64:32:64-f80:128:128-n8:16:32";
else if (isTargetMingw() || isTargetWindows())
p = "e-p:32:32-f64:64:64-i64:64:64-f80:32:32-n8:16:32";
else
p = "e-p:32:32-f64:32:64-i64:32:64-f80:32:32-n8:16:32";
Which causes windows to get f64:64:64.
-Chris
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Jul 4 17:41:01 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 4 Jul 2010 17:41:01 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7537] Unable to issue a copy instruction!
In-Reply-To:
References:
Message-ID: <20100704224101.7AA4E2A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7537
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Chris Lattner 2010-07-04 17:41:00 CDT ---
Reduced testcase:
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"
define void @int327(i32* nocapture %p_38) nounwind {
entry:
%tmp1 = load i32* %p_38 ; [#uses=1]
%conv = trunc i32 %tmp1 to i16 ; [#uses=1]
%sext = mul i16 %conv, -14592 ; [#uses=1]
%conv315 = lshr i16 %sext, 8 ; [#uses=1]
%conv5 = trunc i16 %conv315 to i8 ; [#uses=1]
%tmp7 = load i8* undef ; [#uses=1]
%mul.i13 = mul i8 %conv5, %tmp7 ; [#uses=1]
%tobool = icmp eq i8 %mul.i13, 0 ; [#uses=1]
br i1 %tobool, label %lor.rhs, label %lor.end
lor.rhs: ; preds = %entry
unreachable
lor.end: ; preds = %entry
ret void
}
Fails very very similarly to: PR7540, duping it.
*** This bug has been marked as a duplicate of bug 7540 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Jul 4 17:47:02 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 4 Jul 2010 17:47:02 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7514] clang signal 11
In-Reply-To:
References:
Message-ID: <20100704224702.E501C2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7514
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Chris Lattner 2010-07-04 17:47:02 CDT ---
Dan fixed this in r107071 but didn't close the bug.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Jul 4 17:57:24 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 4 Jul 2010 17:57:24 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7518] [x86, mmx] terrible codegen of <2 x float>
In-Reply-To:
References:
Message-ID: <20100704225724.3216C2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7518
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #15 from Chris Lattner 2010-07-04 17:57:23 CDT ---
Fixed in r107600.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Jul 4 18:20:59 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 4 Jul 2010 18:20:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7486] clang: hard to understand error message for
missing macro declaration
In-Reply-To:
References:
Message-ID: <20100704232059.AF16C2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7486
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Chris Lattner 2010-07-04 18:20:59 CDT ---
Thanks for filing this, but I don't think this is common enough to be worth
cluttering up the parser to support. Stop using macros ;-)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Jul 4 18:21:44 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 4 Jul 2010 18:21:44 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7512] LLVM ERROR: Cannot yet select: 0x28ecb778:
f80 = ConstantFP [ID=8]
In-Reply-To:
References:
Message-ID: <20100704232145.036D42A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7512
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #9 from Chris Lattner 2010-07-04 18:21:44 CDT ---
Looks fixed, thanks!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 5 03:38:22 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Jul 2010 03:38:22 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7564] New: Assertion `... && "Size mismatch!"'
failed.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7564
Summary: Assertion `... && "Size mismatch!"' failed.
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jay.foad at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5163)
--> (http://llvm.org/bugs/attachment.cgi?id=5163)
obfuscated test case
On the attached source file I get:
$ /home/jay/clang/objdir/Debug/bin/clang -cc1 -w -S obf.c
clang: /home/jay/svn/llvm-project/cfe/trunk/lib/CodeGen/CGExprConstant.cpp:401:
static
llvm::Constant*::ConstStructBuilder::BuildStruct(clang::CodeGen::CodeGenModule&,
clang::CodeGen::CodeGenFunction*, clang::InitListExpr*): Assertion
`llvm::RoundUpToAlignment(Builder.NextFieldOffsetInBytes,
Builder.getAlignment(Result)) == Builder.getSizeInBytes(Result) && "Size
mismatch!"' failed.
...
0. Program arguments: /home/jay/clang/objdir/Debug/bin/clang -cc1 -w -S
obf.c
1. parser at end of file
2. Per-file LLVM IR generation
3. obf.c:795:13: Generating code for declaration 'ABHFBF'
4. obf.c:796:2: LLVM IR generation of compound statement ('{}')
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 5 04:41:13 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Jul 2010 04:41:13 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7565] New: linker command failed due to signal 11
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7565
Summary: linker command failed due to signal 11
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: niebuhr at niebuhrt.de
CC: llvmbugs at cs.uiuc.edu
I compiled my project with
clang++ -O4 -I ~/odemx/odemx/odemx/install/include/ -L
~/odemx/odemx/odemx/install/lib/ -lOdemX -lPocoXML -lPocoSQLite -lPocoData
-lPocoFoundation -lpthread -ldl -o main *.cpp
I attached the error log (generated with clang -v ... ). What do I have to do,
to give you the information that you need?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 5 04:48:14 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Jul 2010 04:48:14 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7566] New: clang++ crashes when includes are not
found
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7566
Summary: clang++ crashes when includes are not found
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: niebuhr at niebuhrt.de
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5164)
--> (http://llvm.org/bugs/attachment.cgi?id=5164)
error log generated with the -v flag
I just misspelled one of my include paths while compiling. Usually the compiler
just complains that the file was not found, but this time it crashes because an
assertion failed.
compiling with "clang++ -v -o main *.cpp" gives me the attached error log.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 5 10:18:38 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Jul 2010 10:18:38 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7567] New: clang generates movaps instruction for
insufficiently aligned local on stack
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7567
Summary: clang generates movaps instruction for insufficiently
aligned local on stack
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jay.foad at gmail.com
CC: llvmbugs at cs.uiuc.edu
If I compile this source:
typedef __attribute__ ((aligned(16))) struct { unsigned long long x[2]; } L;
int one(L x);
int two(L x, L y) { return one(x) || one(y); }
with "clang -cc1 -S", I get:
two:
subq $88, %rsp
movq %rdi, 72(%rsp)
movq %rsi, 80(%rsp)
movq %rdx, 56(%rsp)
movq %rcx, 64(%rsp)
movaps 72(%rsp), %xmm0
movaps %xmm0, 32(%rsp)
...
Memory arguments to movaps are required to be 16-byte aligned, but the argument
"72(%rsp)" is only 8-byte aligned. This causes a segmentation fault at run
time.
I'm using LLVM and Clang built from trunk this morning, on Ubuntu 10.4 64-bit.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 5 10:20:15 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Jul 2010 10:20:15 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7568] New: linker errors compiling perl from
spec2006
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7568
Summary: linker errors compiling perl from spec2006
Product: new-bugs
Version: 2.7
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu
This is odd... when I try to build perl from SPEC2006 I get very many linker
errors of this form:
Opcode.c:(.text+0x8a0): multiple definition of `__signbitf'
The preprocessed SPEC code gets this from math.h:
extern int __signbitf (float __value);
The function is never referenced by the C file.
The .o file in question does in fact improperly define the symbol, so the
linker is right to croak:
$ nm Opcode.o |grep signbitf
000008a0 T __signbitf
The behavior disappears when I manually preprocess the file and then compile
it.
Perhaps it's relevant that the SPEC header files destroy the attributes that
math.h was using? For example here's what we get by including math.h from a
bare C program without all the SPEC crap:
extern int __signbitf (float __value) __attribute__ ((__nothrow__))
__attribute__ ((__const__));
Is clang somehow getting confused about library functions here?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 5 10:45:00 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Jul 2010 10:45:00 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7569] New: clang optimizer produces bad instruction
-O1 but not at -O0
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7569
Summary: clang optimizer produces bad instruction -O1 but not
at -O0
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sean at rogue-research.com
CC: llvmbugs at cs.uiuc.edu
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.6.2
BuildVersion: 10C2234
$ clang --version
clang version 2.8 (trunk 107463)
Target: x86_64-apple-darwin10
Thread model: posix
$ cat crash.c
int main() {
*(int*)0 = 0;
return 0;
}
-------------------------------------------------
$ gcc crash.c -O0 -o crash-gcc-O0
$ gcc crash.c -O0 -o crash-gcc-O0.s -S
$ gcc crash.c -O1 -o crash-gcc-O1
$ gcc crash.c -O1 -o crash-gcc-O1.s -S
$ ./crash-gcc-O0
[1] 23639 segmentation fault ./crash-gcc-O0
$ ./crash-gcc-O1
[1] 23641 segmentation fault ./crash-gcc-O1
$ diff crash-gcc-O0.s crash-gcc-O1.s
9,10c9
< movl $0, %eax
< movl $0, (%rax)
---
> movl $0, 0
-------------------------------------------------
$ clang crash.c -O0 -o crash-clang-O0
$ clang crash.c -O0 -o crash-clang-O0.s -S
$ clang crash.c -O1 -o crash-clang-O1
$ clang crash.c -O1 -o crash-clang-O1.s -S
$ ./crash-clang-O0
[1] 23642 segmentation fault ./crash-clang-O0
$ ./crash-clang-O1
[1] 23644 illegal hardware instruction ./crash-clang-O1
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ???
The optimizer seems to get confused and produces
a bad instruction:
$ diff crash-clang-O0.s crash-clang-O1.s
11,16c11
< movl $0, -4(%rbp)
< movabsq $0, %rax
< movl $0, (%rax)
< xorl %eax, %eax
< popq %rbp
< ret
---
> ud2
^^^ Undefined Instruction!
Interestingly, changing the bad "pointer" value to '1'
fixes it:
$ cat crash.c
int main() {
*(int*)1 = 0;
return 0;
}
$ clang crash.c -O0 -o crash-clang-O0
$ clang crash.c -O0 -o crash-clang-O0.s -S
$ clang crash.c -O1 -o crash-clang-O1
$ clang crash.c -O1 -o crash-clang-O1.s -S
$ ./crash-clang-O0
[1] 23726 segmentation fault ./crash-clang-O0
$ ./crash-clang-O1
[1] 23728 segmentation fault ./crash-clang-O1
$ diff crash-clang-O0.s crash-clang-O1.s
11,13c11
< movl $0, -4(%rbp)
< movabsq $1, %rax
< movl $0, (%rax)
---
> movl $0, 1
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 5 13:03:40 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Jul 2010 13:03:40 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7564] Assertion `... && "Size mismatch!"' failed.
In-Reply-To:
References:
Message-ID: <20100705180340.E682F2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7564
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Chris Lattner 2010-07-05 13:03:40 CDT ---
Fixed in r107621
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 5 15:21:23 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Jul 2010 15:21:23 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7567] clang generates movaps instruction for
insufficiently aligned local on stack
In-Reply-To:
References:
Message-ID: <20100705202123.D595B2A6C133@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7567
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Chris Lattner 2010-07-05 15:21:23 CDT ---
Fixed in r107627, thanks!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 5 17:02:44 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Jul 2010 17:02:44 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7570] New: williams.c (from 2001 IOCCC) crashes
analyzer
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7570
Summary: williams.c (from 2001 IOCCC) crashes analyzer
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: bruce.r.stephens at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5166)
--> (http://llvm.org/bugs/attachment.cgi?id=5166)
failures from 2001 IOCCC
The 2004 entries all processed fine. One file from 2001 caused a crash, and
(for what it's worth) I attach the failed directory.
This is using llvm 107625, clang 107628.
I just edited Makefile, changing the compiler lines and ran "scan-build make
all".
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 5 22:31:23 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Jul 2010 22:31:23 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7529] Missing memoperands prevents ARM load/store
folding in a few cases
In-Reply-To:
References:
Message-ID: <20100706033123.DAE132A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7529
Evan Cheng changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Evan Cheng 2010-07-05 22:31:23 CDT ---
Fixed: 107591. Jakob, please verify.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 5 22:39:57 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Jul 2010 22:39:57 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7529] Missing memoperands prevents ARM load/store
folding in a few cases
In-Reply-To:
References:
Message-ID: <20100706033957.0E33B2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7529
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #3 from Jakob Stoklund Olesen 2010-07-05 22:39:56 CDT ---
I think your patch in 107591 is definitely correct, and it should provide more
ldm/stm folding, but the original 107114 only changed the behavior for loads
and stores without any memoperands.
107591 doesn't add memoperands to to loads and stores that don't have any,
right?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon Jul 5 22:52:56 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Jul 2010 22:52:56 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7543] exception not caught after rethrow
In-Reply-To:
References:
Message-ID: <20100706035256.25D152A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7543
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from John McCall 2010-07-05 22:52:55 CDT ---
I've substantially revised IR generation in r107631. That said, the given test
case should have passed before; the outer caught type is the same as the inner
caught type.
If the problem isn't fixed, please give us some more information to help us
reproduce the problem ? OS distribution and version, command line you're using,
etc.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 6 03:38:43 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Jul 2010 03:38:43 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7571] New: wctype.h: unknown type name 'wint_t'
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7571
Summary: wctype.h: unknown type name 'wint_t'
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Headers
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jay.foad at gmail.com
CC: llvmbugs at cs.uiuc.edu
I get:
$ cat c.c
#include
#include
$ clang -c c.c
In file included from c.c:2:
/usr/include/wctype.h:112:22: error: unknown type name 'wint_t'
extern int iswalnum (wint_t __wc) __THROW;
^
/usr/include/wctype.h:118:22: error: unknown type name 'wint_t'
extern int iswalpha (wint_t __wc) __THROW;
^
...
Under bug 6691, Clang's stddef.h was fixed to define wint_t if __need_wint_t is
#defined. I think the problem is that that is done inside the "#ifndef
__STDDEF_H ... #endif" that wraps the whole file, so it only works if stddef.h
was never previously included.
I'm using Ubuntu 10.4 x86_64. The system headers come from package libc6-dev
version 2.11.1-0ubuntu7.1.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 6 06:23:32 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Jul 2010 06:23:32 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7572] New: Crash analyzing coreutils-6.9
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7572
Summary: Crash analyzing coreutils-6.9
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: bruce.r.stephens at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5167)
--> (http://llvm.org/bugs/attachment.cgi?id=5167)
contents of failures from coreutils-6.9
This is with llvm @107641, clang @107646
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 6 08:50:16 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Jul 2010 08:50:16 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7573] New: Assertion `Emitted && "Unable to issue a
copy instruction!\n"' failed
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7573
Summary: Assertion `Emitted && "Unable to issue a copy
instruction!\n"' failed
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jay.foad at gmail.com
CC: llvmbugs at cs.uiuc.edu
I get:
$ cat jay.c
double f(void) {}
$ clang -O -mno-sse jay.c
...
clang:
/home/jay/svn/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/InstrEmitter.cpp:807:
void llvm::InstrEmitter::EmitSpecialNode(llvm::SDNode*, bool, bool,
llvm::DenseMap,
llvm::DenseMapInfo >&): Assertion `Emitted && "Unable to issue a
copy instruction!\n"' failed.
I'm running on Ubuntu 10.4 x86_64. I built clang and llvm from the trunk this
morning.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 6 09:26:06 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Jul 2010 09:26:06 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7574] New: Assertion `isStackEmpty() && "Stack not
empty at end of basic block?"' failed
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7574
Summary: Assertion `isStackEmpty() && "Stack not empty at end
of basic block?"' failed
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jay.foad at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5169)
--> (http://llvm.org/bugs/attachment.cgi?id=5169)
test case
With the attached source file I get:
$ clang -m32 -mno-sse -O -c jay.c
clang:
/home/jay/svn/llvm-project/llvm/trunk/lib/Target/X86/X86FloatingPoint.cpp:300:
bool::FPS::processBasicBlock(llvm::MachineFunction&,
llvm::MachineBasicBlock&): Assertion `isStackEmpty() && "Stack not empty at end
of basic block?"' failed.
...
I'm running on Ubuntu 10.4 x86_64. I built llvm and clang from trunk this
morning.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 6 09:26:35 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Jul 2010 09:26:35 -0500 (CDT)
Subject: [LLVMbugs] [Bug 5094] clang -fstack-protector fails to link
(undefined reference to `__stack_chk_guard')
In-Reply-To:
References:
Message-ID: <20100706142635.672E92A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5094
Nelson Elhage changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |nelhage at mit.edu
Resolution| |FIXED
--- Comment #5 from Nelson Elhage 2010-07-06 09:26:34 CDT ---
This should be fixed by llvm r107640.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 6 10:40:37 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Jul 2010 10:40:37 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7575] New: Assertion " " from boost::array
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7575
Summary: Assertion " " from boost::array
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=5170)
--> (http://llvm.org/bugs/attachment.cgi?id=5170)
asserting array example
The attached code causes the following assertion:
While deleting: { { i8 } }* %
Use still stuck around after Def is destroyed: %arrayidx6 = getelementptr
inbounds %"struct.std::basic_string"* , i64 %8 ;
<%"struct.std::basic_string"*> [#uses=1]
clang: Value.cpp:75: virtual llvm::Value::~Value(): Assertion `use_empty() &&
"Uses remain when a value is destroyed!"' failed.
The code is reduced from a testcase of boost::array. The test has been broken
(in clang) in the last few days, it works with a 2-week old version of the
compiler. I have not attempted to further reduce when it was broken.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 6 10:52:55 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Jul 2010 10:52:55 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7576] New: clang takes a long time to build a c
file with -O2
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7576
Summary: clang takes a long time to build a c file with -O2
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: vince at kyllikki.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5171)
--> (http://llvm.org/bugs/attachment.cgi?id=5171)
Intermediate source from clang compile
The NetSurf project (http://netsurf-browser.org/) has a single file which takes
an unusually long time to compile with -O2 optimisation turned on.
The smallest test case I can currently reproduce the issue with is building the
file (/content/urldb.c within our codebase) as part of the test suite.
Here are the tests showing the compile time for clang and gcc with and without
-O2
$ clang --version
clang version 2.0 (trunk 106560)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ gcc --version
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ time clang -std=c99 -g -O2 -D_BSD_SOURCE -D_POSIX_C_SOURCE -I.. `pkg-config
--cflags libxml-2.0 libcurl` ../content/urldb.c ../utils/url.c ../utils/utils.c
../utils/messages.c ../utils/hashtable.c ../utils/filename.c
../test/urldbtest.c -o urldbtest `pkg-config --libs libxml-2.0 libcurl`
real 1m55.421s
user 1m49.927s
sys 0m1.228s
$ time clang -std=c99 -g -O0 -D_BSD_SOURCE -D_POSIX_C_SOURCE -I.. `pkg-config
--cflags libxml-2.0 libcurl` ../content/urldb.c ../utils/url.c ../utils/utils.c
../utils/messages.c ../utils/hashtable.c ../utils/filename.c
../test/urldbtest.c -o urldbtest `pkg-config --libs libxml-2.0 libcurl`
real 0m1.577s
user 0m1.200s
sys 0m0.192s
$ time gcc -std=c99 -g -O2 -D_BSD_SOURCE -D_POSIX_C_SOURCE -I.. `pkg-config
--cflags libxml-2.0 libcurl` ../content/urldb.c ../utils/url.c ../utils/utils.c
../utils/messages.c ../utils/hashtable.c ../utils/filename.c
../test/urldbtest.c -o urldbtest `pkg-config --libs libxml-2.0 libcurl`
real 0m3.229s
user 0m2.696s
sys 0m0.308s
$ time gcc -std=c99 -g -O0 -D_BSD_SOURCE -D_POSIX_C_SOURCE -I.. `pkg-config
--cflags libxml-2.0 libcurl` ../content/urldb.c ../utils/url.c ../utils/utils.c
../utils/messages.c ../utils/hashtable.c ../utils/filename.c
../test/urldbtest.c -o urldbtest `pkg-config --libs libxml-2.0 libcurl`
real 0m1.242s
user 0m0.920s
sys 0m0.196s
The specific file that is taking the time is content/urldb.c
$ time clang -std=c99 -c -g -O2 -D_BSD_SOURCE -D_POSIX_C_SOURCE -I..
`pkg-config --cflags libxml-2.0 libcurl` ../content/urldb.c
real 1m50.883s
user 1m47.823s
sys 0m0.764s
$ time clang -std=c99 -c -g -O0 -D_BSD_SOURCE -D_POSIX_C_SOURCE -I..
`pkg-config --cflags libxml-2.0 libcurl` ../content/urldb.c
real 0m0.649s
user 0m0.520s
sys 0m0.060s
I saved the intermediate files (-save-temps) from the previous compile
(attached) and re-tested
time clang -c -O0 urldb.i
real 0m0.645s
user 0m0.512s
sys 0m0.028s
[16:49 vince at derik ~/netsurf/netsurf-trunk/test]$ time clang -c -O2 urldb.i
real 1m52.981s
user 1m48.683s
sys 0m0.892s
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 6 12:35:59 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Jul 2010 12:35:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7575] ICE in EH logic compiling boost::array
In-Reply-To:
References:
Message-ID: <20100706173559.403A72A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7575
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from John McCall 2010-07-06 12:35:58 CDT ---
Indeed it was. Fixed in r107676.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 6 13:17:44 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Jul 2010 13:17:44 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7577] New: no debug info is generated for
"find_strings"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7577
Summary: no debug info is generated for "find_strings"
Product: Runtime Libraries
Version: trunk
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: other
AssignedTo: unassignedbugs at nondot.org
ReportedBy: dpatel at apple.com
CC: llvmbugs at cs.uiuc.edu
In this example, llvm is not generating debug info for "find_strings" variable.
@.str = private constant [4 x i8] c"one\00", align 1 ; <[4 x i8]*> [#uses=1]
@.str1 = private constant [4 x i8] c"two\00", align 1 ; <[5 x i8]*> [#uses=1]
@C.9.2167 = internal constant [2 x i8*] [i8* getelementptr inbounds ([4 x i8]*
@.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8]* @.str1, i64 0, i64
0)]
!38 = metadata !{i32 524329, metadata !"pbmsrch.c", metadata
!"/Users/grawp/LLVM/test-suite/MultiSource/Benchmarks/MiBench/office-stringsearch",
metadata !39} ; [ DW_TAG_file_type ]
!39 = metadata !{i32 524305, i32 0, i32 1, metadata !"pbmsrch.c", metadata
!"/Users/grawp/LLVM/test-suite/MultiSource/Benchmarks/MiBench/office-stringsearch",
metadata !"4.2.1 (Based on Apple Inc. build 5658) (LLVM build 9999)", i1 true,
i1 false, metadata !"", i32 0} ; [ DW_TAG_compile_unit ]
!46 = metadata !{i32 524303, metadata !38, metadata !"", metadata !38, i32 0,
i64 64, i64 64, i64 0, i32 0, metadata !47} ; [ DW_TAG_pointer_type ]!97 =
metadata !{i32 524334, i32 0, metadata !38, metadata !"main", metadata !"main",
metadata !"main", metadata !38, i32 73, metadata !98, i1 false, i1 true, i32 0,
i32 0, null, i1 false, i1 false, null} ; [ DW_TAG_subprogram ]!101 = metadata
!{[2 x i8*]* @C.9.2167}
!47 = metadata !{i32 524324, metadata !38, metadata !"char", metadata !38, i32
0, i64 8, i64 8, i64 0, i32 0, i32 6} ; [ DW_TAG_base_type ]
!97 = metadata !{i32 524334, i32 0, metadata !38, metadata !"main", metadata
!"main", metadata !"main", metadata !38, i32 73, metadata !98, i1 false, i1
true, i32 0, i32 0, null, i1 false, i1 false, null} ; [ DW_TAG_subprogram ]
!98 = metadata !{i32 524309, metadata !38, metadata !"", metadata !38, i32 0,
i64 0, i64 0, i64 0, i32 0, null, metadata !99, i32 0, null} ; [
DW_TAG_subroutine_type ]
!99 = metadata !{metadata !100}
!100 = metadata !{i32 524324, metadata !38, metadata !"int", metadata !38, i32
0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ]
!101 = metadata !{[2 x i8*]* @C.9.2167}
!102 = metadata !{i32 524544, metadata !103, metadata !"find_strings", metadata
!38, i32 75, metadata !104} ; [ DW_TAG_auto_variable ]
!103 = metadata !{i32 524299, metadata !97, i32 73, i32 0} ; [
DW_TAG_lexical_block ]
!104 = metadata !{i32 524289, metadata !38, metadata !"", metadata !38, i32 0,
i64 85312, i64 64, i64 0, i32 0, metadata !46, metadata !105, i32 0, null} ; [
DW_TAG_array_type ]
!105 = metadata !{metadata !106}
!106 = metadata !{i32 524321, i64 0, i64 1332} ; [ DW_TAG_subrange_type ]
!107 = metadata !{i32 73, i32 0, metadata !103, null}
define i32 @main() nounwind ssp {
bb.nph:
tail call void @llvm.dbg.declare(metadata !101, metadata !102), !dbg !107
ret i32 0, !dbg !107
}
declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 6 13:19:15 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Jul 2010 13:19:15 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7545] X86MCInstLower DWARF exception in -O0 -g test
In-Reply-To:
References:
Message-ID: <20100706181915.09DBE2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7545
Devang Patel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Devang Patel 2010-07-06 13:19:14 CDT ---
Fixed the crash. r107678.
File PR 7577 to track missing debug 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 llvm.org Tue Jul 6 13:38:50 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Jul 2010 13:38:50 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7578] New: undefined reference to
`_Unwind_Resume_or_Rethrow'
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7578
Summary: undefined reference to `_Unwind_Resume_or_Rethrow'
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: physhh at googlemail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
I tested this on mingw32 4.5 and 3.4.5.
How to reproduce:
#include
int main()
{
std::set foo;
foo.insert(123);
return 0;
}
Error:
undefined reference to `_Unwind_Resume_or_Rethrow'
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 6 14:52:01 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Jul 2010 14:52:01 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7417] fixits need to be de-duped somehow
In-Reply-To:
References:
Message-ID: <20100706195201.3E5852A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7417
Nick Lewycky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #12 from Nick Lewycky 2010-07-06 14:52:00 CDT ---
Fixed in r107690.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 6 18:27:26 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Jul 2010 18:27:26 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7528] [inline asm] spandsp compilation failure
In-Reply-To:
References:
Message-ID: <20100706232726.9DCD82A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7528
Dale Johannesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Dale Johannesen 2010-07-06 18:27:26 CDT ---
fixed in 107727.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 6 18:47:33 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Jul 2010 18:47:33 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7454] Should not custom lower [EH_SJLJ_LONGJMP]!;
UNREACHABLE executed at X86ISelLowering.cpp:7576!
In-Reply-To:
References:
Message-ID: <20100706234733.B1A382A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7454
Jim Grosbach changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Jim Grosbach 2010-07-06 18:47:33 CDT ---
Fixed in r107734. __builtin_longjmp() is effectively a nop for x86 now, just
like it is from llvm-gcc. __builtin_setjmp() is similarly just a constant '0'.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 6 18:53:58 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Jul 2010 18:53:58 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7572] Crash analyzing coreutils-6.9
In-Reply-To:
References:
Message-ID: <20100706235358.2E0282A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7572
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue Jul 6 19:02:21 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Jul 2010 19:02:21 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7570] williams.c (from 2001 IOCCC) crashes analyzer
In-Reply-To:
References:
Message-ID: <20100707000221.830322A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7570
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |kremenek at apple.com
Resolution| |DUPLICATE
--- Comment #1 from Ted Kremenek 2010-07-06 19:02:21 CDT ---
This no longer appears in TOT, and appears to have been fixed in r107738. This
is the same issue as PR 7572.
*** This bug has been marked as a duplicate of bug 7572 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 7 00:10:09 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 00:10:09 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7528] [inline asm] spandsp compilation failure
In-Reply-To:
References:
Message-ID: <20100707051009.DFA7F2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7528
ojab changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #9 from ojab 2010-07-07 00:10:09 CDT ---
Still the same crash, preprocessed source is the same.
clang version 2.8 (trunk 107753)
Target: x86_64-unknown-linux-gnu
Thread model: posix
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 7 01:14:44 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 01:14:44 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7569] warn about store to null
In-Reply-To:
References:
Message-ID: <20100707061444.645DD2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7569
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Chris Lattner 2010-07-07 01:14:43 CDT ---
Warning implemented in r107756
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 7 04:42:32 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 04:42:32 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7581] New: SimpleRegisterCoalescing crash: Interval
does not exist for register
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7581
Summary: SimpleRegisterCoalescing crash: Interval does not
exist for register
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
Reduced by bugpoint from the x86-64 dragonegg buildbot failure.
$ llc coalesce.bc
llc: llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h:94: llvm::LiveInterval&
llvm::LiveIntervals::getInterval(unsigned int): Assertion `I != r2iMap_.end()
&& "Interval does not exist for register"' failed.
...
5 libc.so.6 0x00007fb6d1efba61 __assert_fail + 241
6 llc 0x0000000000a88208 llvm::LiveIntervals::getInterval(unsigned int)
+ 200
7 llc 0x0000000000aba593
llvm::SimpleRegisterCoalescing::RemoveCopyByCommutingDef(llvm::CoalescerPair
const&, llvm::MachineInstr*) + 1411
8 llc 0x0000000000abd3df
llvm::SimpleRegisterCoalescing::JoinCopy(llvm::CopyRec&, bool&) + 3807
9 llc 0x0000000000abd91f
llvm::SimpleRegisterCoalescing::CopyCoalesceInMBB(llvm::MachineBasicBlock*,
std::vector >&) + 1151
10 llc 0x0000000000abdfce llvm::SimpleRegisterCoalescing::joinIntervals()
+ 750
11 llc 0x0000000000abf2f6
llvm::SimpleRegisterCoalescing::runOnMachineFunction(llvm::MachineFunction&) +
4566
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 7 04:42:56 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 04:42:56 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7582] New: Add triple support for Minix to llvm
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7582
Summary: Add triple support for Minix to llvm
Product: new-bugs
Version: trunk
Platform: Other
OS/Version: other
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: reeuwijk at few.vu.nl
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5174)
--> (http://llvm.org/bugs/attachment.cgi?id=5174)
Patch for Minix triples in llvm
The attached patch adds support for Minix triples to llvm. This is needed for
clang support of Minix, which is submitted as a separate patch.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 7 04:43:58 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 04:43:58 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7583] New: Clang driver support for Minix
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7583
Summary: Clang driver support for Minix
Product: clang
Version: trunk
Platform: Other
OS/Version: other
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: reeuwijk at few.vu.nl
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5176)
--> (http://llvm.org/bugs/attachment.cgi?id=5176)
A patch to add Minix driver support
The attached patch adds drivers for the Minix assembler and loader. This patch
needs a patch to llvm to support Minix triples. This patch has been submitted
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 llvm.org Wed Jul 7 08:34:21 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 08:34:21 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7584] New: Bad code generated for Remainder
operation
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7584
Summary: Bad code generated for Remainder operation
Product: clang
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: esteaqui at hotmail.com
CC: llvmbugs at cs.uiuc.edu
When clang is fed an unsigned int as the divisor on the Remainder operand (%)
the generated code is faulty.
According to C99 specc, the sign of the remainder shall be the same as the sign
of the dividend.
Also, assuming n: dividend and d: divisor, "n / d x d - n == n % d"
(assuming a truncating division)
This bug is further explained by the attached source code.
As an example, following C99:
2 % 5 = 2
-2 % 5 = -2
But clang generates
2 % 5 = 2
-2 % 5 = 4
I got my C99 specification from
http://www.open-std.org/jtc1/sc22/WG14/www/docs/n1256.pdf (relevant page is 82,
mark 6.5.5.6)
and also from
http://en.wikipedia.org/wiki/Modulo_operation ("Integer modulo operators in
various programming languages")
If my interpretation of the standard is wrong, please let me know and mark the
bug as invalid.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 7 09:49:29 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 09:49:29 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7581] SimpleRegisterCoalescing crash: Interval does
not exist for register
In-Reply-To:
References:
Message-ID: <20100707144929.EF9562A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7581
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |stoklund at 2pi.dk
Resolution| |FIXED
--- Comment #2 from Jakob Stoklund Olesen 2010-07-07 09:49:29 CDT ---
Fixed in r107780
Thanks, Duncan!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 7 10:53:14 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 10:53:14 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7582] Add triple support for Minix to llvm
In-Reply-To:
References:
Message-ID: <20100707155314.BA6712A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7582
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Lattner 2010-07-07 10:53:14 CDT ---
Thanks, applied in r107785. Please send patches to the llvm-commits list
instead of filing bugs, thanks!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 7 11:02:16 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 11:02:16 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7583] Clang driver support for Minix
In-Reply-To:
References:
Message-ID: <20100707160216.86E1C2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7583
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Lattner 2010-07-07 11:02:16 CDT ---
Applied in r107788, thanks. In the future, please stay within 80 columns (I
took care of it this time) and send patches to cfe-commits. Thanks!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 7 11:07:04 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 11:07:04 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7584] Bad code generated for Remainder operation
In-Reply-To:
References:
Message-ID: <20100707160704.5D4422A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7584
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Chris Lattner 2010-07-07 11:07:04 CDT ---
Clang agrees with GCC here. I don't have time to go language lawyer this, but
I'm pretty sure we're right. :)
If the quotient a/b is representable, the expression (a/b)*b + a%b shall equal
a. Note that -2/5 is 0, not -1.
-Chris
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 7 12:03:09 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 12:03:09 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7585] New: Assertion failed: (Emitted && "Unable to
issue a copy instruction!\n"), function EmitSpecialNode,
file InstrEmitter.cpp, line 807.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7585
Summary: Assertion failed: (Emitted && "Unable to issue a copy
instruction!\n"), function EmitSpecialNode, file
InstrEmitter.cpp, line 807.
Product: clang
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu
on i386 with TOT:
witten delta# clang -O2 vga.c
vga.c:77:1: warning: declaration does not declare anything
typedef struct video_driver {
^~~~~~~
vga.c:108:250: warning: excess elements in struct initializer [-pedantic]
...vga_load_state, vga_set_origin, vga_read_hw_cursor, vga_set_hw_cursor,
vga_set_hw_cursor_shape, vga_blank_display, vga_mmap_buf, vga_dev_ioctl, ...
^~~~~~~~~~~~~~~~~~~~~~~
vga.c:110:19: warning: excess elements in struct initializer [-pedantic]
"vga", &vgavidsw, vga_configure};
^~~~~~~~~~~~~
vga.c:121:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Assertion failed: (Emitted && "Unable to issue a copy instruction!\n"),
function EmitSpecialNode, file InstrEmitter.cpp, line 807.
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
i386-unknown-freebsd9.0 -S -disable-free -main-file-name vga.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu
i486 -resource-dir /usr/local/lib/clang/2.8 -O2 -ferror-limit 19
-fmessage-length 152 -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-LPdrmk.s -x c vga.c
1. parser at end of file
2. Code generation
3. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@vga_set_hw_cursor'
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 7 12:55:41 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 12:55:41 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7586] New: possible integer wrong code bug on x64
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7586
Summary: possible integer wrong code bug on x64
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu
[regehr at gamow ~]$ clang -O1 foo.c -o foo
[regehr at gamow ~]$ ./foo
checksum g_166 = -10
[regehr at gamow ~]$ clang -O2 foo.c -o foo
[regehr at gamow ~]$ ./foo
checksum g_166 = -2
[regehr at gamow ~]$ clang -v
clang version 2.8 (trunk 107688)
Target: x86_64-unknown-linux-gnu
Thread model: posix
[regehr at gamow ~]$ cat small.c
extern int printf (__const char *__restrict __format, ...);
int g_14 = 0xE8B0D193L;
int g_66 = -10L;
short foo(short s1, short s2)
{
return s1 * s2;
}
int main(void)
{
int *l_320 = &g_14;
char l_441 = -9L;
if (((foo(l_441, (*l_320))) <= -1L))
g_66 = 1;
else
g_66 = 0;
printf("checksum g_66 = %d\n", g_66);
return g_66;
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 7 13:09:29 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 13:09:29 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7585] Assertion failed: (Emitted && "Unable to
issue a copy instruction!\n"), function EmitSpecialNode,
file InstrEmitter.cpp, line 807.
In-Reply-To:
References:
Message-ID: <20100707180929.A215B2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7585
Roman Divacky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Roman Divacky 2010-07-07 13:09:29 CDT ---
nevermind. it's a dupe of my own bug report :(
*** This bug has been marked as a duplicate of bug 7540 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 7 13:32:53 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 13:32:53 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7587] New: segfault on parsing,
related to a complex default value for a template parameter
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7587
Summary: segfault on parsing, related to a complex default
value for a template parameter
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: orzel at freehackers.org
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=5180)
--> (http://llvm.org/bugs/attachment.cgi?id=5180)
file to reproduce the problem
The problem appears with recent trunk (updated today, svn rev 107795, but has
been here for several weeks).
The original code is from eigen (homepage: http://eigen.tuxfamily.org/, code:
http://bitbucket.org/eigen/eigen/), but i've narrowed it to this file.
g++ and lot of other compilers have no problem with this. For this narrowed
problem, g++ will fail because of m_matrix being undeclared, but this is
something else.
clang segfault this way:
orzel at berlioz /home/orzel% /home/orzel/svn/llvm/Release/bin/clang++
~/clang.problem.cpp
clang: SemaTemplateInstantiate.cpp:881:
clang::QualType::TemplateInstantiator::TransformTemplateTypeParmType(clang::TypeLocBuilder&,
clang::TemplateTypeParmTypeLoc, clang::QualType): Assertion
`TemplateArgs(T->getDepth(), T->getIndex()).getKind() == TemplateArgument::Type
&& "Template argument kind mismatch"' failed.
0 clang 0x00000000015629cf
1 clang 0x000000000156351a
2 libpthread.so.0 0x00007f54da6461b0
3 libc.so.6 0x00007f54d995e555 gsignal + 53
4 libc.so.6 0x00007f54d995f9d6 abort + 390
5 libc.so.6 0x00007f54d99570c5 __assert_fail + 245
6 clang 0x0000000000818f98
7 clang 0x0000000000819407
8 clang 0x0000000000825ee2
9 clang 0x0000000000827cdc
10 clang 0x0000000000817892
11 clang 0x0000000000819407
12 clang 0x000000000081961d
13 clang 0x0000000000819e89
14 clang 0x000000000081a30e
15 clang 0x0000000000817ad7
16 clang 0x0000000000819407
17 clang 0x000000000081dda8
18 clang 0x00000000007e20f9
19 clang 0x00000000007f5ece
20 clang 0x00000000007f8e34
21 clang 0x00000000007f9440
22 clang 0x0000000000b0e1c8
23 clang 0x0000000000b034b6
24 clang 0x0000000000acf548
25 clang 0x0000000000addd6a
26 clang 0x0000000000aea810
27 clang 0x0000000000aed13d
28 clang 0x0000000000aee10d
29 clang 0x0000000000addf86
30 clang 0x0000000000b0c44b
31 clang 0x0000000000b0f74b
32 clang 0x0000000000b1115b
33 clang 0x0000000000ae15a7
34 clang 0x0000000000ad3850
35 clang 0x0000000000ad3fba
36 clang 0x0000000000678cbb
37 clang 0x00000000005275c4
38 clang 0x00000000004273ad
39 clang 0x00000000004096b5
40 clang 0x0000000000410195 main + 2629
41 libc.so.6 0x00007f54d994ab6d __libc_start_main + 253
42 clang 0x00000000004075c9
Stack dump:
0. Program arguments: /home/orzel/svn/llvm/Release/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name clang.problem.cpp
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir
/home/orzel/svn/llvm/Release/lib/clang/2.8 -ferror-limit 19 -fmessage-length
172 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/cc-UeX0i4.s -x c++ /home/orzel/clang.problem.cpp
1. /home/orzel/clang.problem.cpp:27:20: at annotation token
2. /home/orzel/clang.problem.cpp:10:50: parsing struct/union/class body
'VectorwiseOp'
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 7 15:33:46 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 15:33:46 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7540] subreg related scheduler crash: "Unable to
issue a copy instruction!"
In-Reply-To:
References:
Message-ID: <20100707203346.6DA3F2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7540
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Jakob Stoklund Olesen 2010-07-07 15:33:46 CDT ---
Fixed in r107809
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 7 17:35:31 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 17:35:31 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7195] [MC] unrecognized instruction "callw FOO"
In-Reply-To:
References:
Message-ID: <20100707223532.03BDB2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7195
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Chris Lattner 2010-07-07 17:35:31 CDT ---
Implemented in r107825/107826.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 7 17:35:32 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 17:35:32 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7556] Temporary object with trivial default
constructor but non-trivial destructor isn't getting destroyed
In-Reply-To:
References:
Message-ID: <20100707223532.8974A2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7556
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2010-07-07 17:35:32 CDT ---
Fixed in r107827.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 7 18:17:22 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 18:17:22 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7399] LLVM doesn't properly parse section names (or
emit them into .ll files)
In-Reply-To:
References:
Message-ID: <20100707231722.03A852A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7399
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Chris Lattner 2010-07-07 18:17:21 CDT ---
The asmprinter is now fixed in r107834 and we can now round trip through .ll
files successfully. Thanks!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 7 18:18:56 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 18:18:56 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7467] Code ok in C++ mode does not parse in C++0x
mode
In-Reply-To:
References:
Message-ID: <20100707231856.1E29E2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7467
Sebastian Redl changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sebastian.redl at getdesigned.
| |at
Resolution| |FIXED
--- Comment #1 from Sebastian Redl 2010-07-07 18:18:55 CDT ---
"Fixed" in r107853. Our C++0x handling of destructors was broken because the
specification is still in flux.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 7 18:24:39 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 18:24:39 -0500 (CDT)
Subject: [LLVMbugs] [Bug 4499] clang rejects valid character constants
beginning with three backslashes
In-Reply-To:
References:
Message-ID: <20100707232439.77F852A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=4499
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Chris Lattner 2010-07-07 18:24:38 CDT ---
Applied in r107836, thanks Kyle!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 7 18:37:48 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 18:37:48 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7556] Temporary object with trivial default
constructor but non-trivial destructor isn't getting destroyed
In-Reply-To:
References:
Message-ID: <20100707233748.62A602A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7556
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #2 from Douglas Gregor 2010-07-07 18:37:48 CDT ---
Fix reverted in r107837 due to bootstrap breakage.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 7 19:28:18 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 19:28:18 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7437] Address space not being correctly preserved
In-Reply-To:
References:
Message-ID: <20100708002818.938392A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7437
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Chris Lattner 2010-07-07 19:28:18 CDT ---
Second half was a scalarrepl bug, fixed in r107846. We now compile the example
to this:
define void @Test(%struct.anon addrspace(2)* nocapture %pPtr) nounwind ssp {
entry:
%pPtr15.0 = getelementptr inbounds %struct.anon addrspace(2)* %pPtr, i64 0,
i32 0, i64 0 ; [#uses=2]
%tmp = load float addrspace(2)* %pPtr15.0, align 4 ; [#uses=1]
%sub = fadd float %tmp, -5.000000e+00 ; [#uses=1]
store float %sub, float addrspace(2)* %pPtr15.0, align 4
ret void
}
Thanks!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed Jul 7 23:15:56 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Jul 2010 23:15:56 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7588] New: Wrong code for _mm_shufflehi_epi16
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7588
Summary: Wrong code for _mm_shufflehi_epi16
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Headers
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: astrange at ithinksw.com
CC: llvmbugs at cs.uiuc.edu
Using checker-243 -O3 -m32 -march=pentium-m.
Source:
#include
__m128i a(__m128i b)
{
return _mm_shufflehi_epi16(b, 1 | (0 << 2) | (3 << 4) | (2 << 6));
}
gcc:
_a:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
pshufhw $177, %xmm0, %xmm0
leave
ret
clang:
_a: ## @a
## BB#0: ## %entry
pushl %ebp
movl %esp, %ebp
pextrw $5, %xmm0, %eax
movlhps %xmm0, %xmm0
pshufhw $-76, %xmm0, %xmm0
pinsrw $4, %eax, %xmm0
popl %ebp
ret
It looks like the macro definition in xmmintrin is wrong.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 8 01:14:25 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Jul 2010 01:14:25 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7556] Temporary object with trivial default
constructor but non-trivial destructor isn't getting destroyed
In-Reply-To:
References:
Message-ID: <20100708061425.43F0F2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7556
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Douglas Gregor 2010-07-08 01:14:25 CDT ---
Re-fixed in r107857.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 8 03:12:01 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Jul 2010 03:12:01 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7589] New: GVN incorrectly kills instructions
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7589
Summary: GVN incorrectly kills instructions
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: zhousheng00 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Here is input ll code:
; ModuleID = 'error.bc'
target datalayout =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
target triple = "x86_64-unknown-linux-gnu"
define i16 @BlockCol([65 x i16]* %row2col, [64 x i16]* %colout, i4 %i) nounwind
{
entry:
%row2col.addr1 = getelementptr [65 x i16]* %row2col, i64 0, i64 64 ;
[#uses=1]
%row2col.load = load i16* %row2col.addr1, align 1 ; [#uses=1]
%dc_scaler = trunc i16 %row2col.load to i8 ; [#uses=0]
br label %bb
bb: ; preds = %entry
%0 = zext i4 %i to i64 ; [#uses=0]
%.cast28 = zext i4 %i to i7 ; [#uses=0]
%.cast27 = zext i4 %i to i6 ; [#uses=0]
%.cast27.cast = zext i4 %i to i5 ; [#uses=1]
%.cast26 = zext i4 %i to i5 ; [#uses=1]
%sum532 = or i5 %.cast26, -16 ; [#uses=1]
%sum5.cast = zext i5 %sum532 to i64 ; [#uses=1]
%row2col.addr.1.26 = getelementptr [65 x i16]* %row2col, i64 0, i64
%sum5.cast ; [#uses=1]
%row2col.load.1.2 = load i16* %row2col.addr.1.26, align 1 ; [#uses=1]
%sum1334 = or i5 %.cast27.cast, -16 ; [#uses=1]
%sum13.cast31 = sext i5 %sum1334 to i6 ; [#uses=1]
%sum13.cast = zext i6 %sum13.cast31 to i64 ; [#uses=1]
%row2col.addr.1.614 = getelementptr [65 x i16]* %row2col, i64 0, i64
%sum13.cast ; [#uses=1]
%row2col.load.1.6 = load i16* %row2col.addr.1.614, align 1 ; [#uses=1]
%.ret = add i16 %row2col.load.1.6, %row2col.load.1.2 ; [#uses=1]
ret i16 %.ret
}
After GVN, the LoadInst "%row2col.load.1.6" is replaced with
"%row2col.load.1.2", however the address %sum5.cast and %sum13.cast are
obviously different.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 8 03:17:08 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Jul 2010 03:17:08 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7590] New: C++ mangler output not correct in some
cases
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7590
Summary: C++ mangler output not correct in some cases
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: thom.heller at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
The C++ mangler seems to have problems with template-template parameters.
Here is the output of the attached test-case after piping through c++filt:
$ clang++ mangle_test.cpp && ./a.out | c++filt -t
A
A
A
Z
Z
Z
The correct output should be:
A
A
A
Z
Z
Z
Note, that a call to abi::__cxa_demangle gives the same results
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 8 04:10:28 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Jul 2010 04:10:28 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7591] New: exception Failure("There are two
interfaces of module Llvm_executionengine.")
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7591
Summary: exception Failure("There are two interfaces of module
Llvm_executionengine.")
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: ojab at ojab.ru
CC: llvmbugs at cs.uiuc.edu
During `make install`
make[2]: Leaving directory `/sources/llvm/bindings/ocaml'
Fatal error: exception Failure("There are two interfaces of module
Llvm_executionengine.")
make[1]: *** [regen-ocamldoc] Error 2
make[1]: Target `install' not remade because of errors.
llvm svn r107860, ocaml-3.11.2, linux x86_64.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 8 05:25:17 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Jul 2010 05:25:17 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7592] New: (a == 0 || a < 0 || a > 0)
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7592
Summary: (a == 0 || a < 0 || a > 0)
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: Edmund.Grimley-Evans at arm.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5187)
--> (http://llvm.org/bugs/attachment.cgi?id=5187)
test cases
Perhaps someone is interested in this. In the two functions defined below (the
code is also in the attachment) the call to unused() is unreachable. GCC 4.4.1
seems to get this right, but Clang/LLVM rev 107760 didn't when invoked like
this:
clang -cc1 -triple thumbv7-eabi -O3 -target-cpu cortex-a8 -S tri.c -o tri.s
int unused();
int f1(int a)
{
return a == 0 ? 11 : a < 0 ? 22 : a > 0 ? 33 : unused();
}
int f2(int a)
{
if (a == 0)
return 11;
if (a < 0)
return 22;
if (a > 0)
return 33;
return unused();
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 8 06:06:46 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Jul 2010 06:06:46 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7593] New: Assertion failed:
(castIsValid(getOpcode(), S, Ty) && "Illegal BitCast")
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7593
Summary: Assertion failed: (castIsValid(getOpcode(), S, Ty) &&
"Illegal BitCast")
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: themiwi at users.sourceforge.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
While compiling a file on Mac OS X 10.6.4 with clang++ 2.8 (trunk 107757),
clang++ aborted with the following error message:
Assertion failed: (castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"),
function BitCastInst, file
/Users/mwild/Downloads/llvm/lib/VMCore/Instructions.cpp, line 2647.
Stack dump:
0. Program arguments: /Users/mwild/root/software/clang-svn-dbg/bin/clang
-cc1 -triple x86_64-apple-darwin10.0.0 -emit-obj -mrelax-all -disable-free
-main-file-name IPstream.C.i -pic-level 1 -mdisable-fp-elim -masm-verbose
-munwind-tables -target-cpu core2 -resource-dir
/Users/mwild/root/software/clang-svn-dbg/lib/clang/2.8 -ferror-limit 19
-fmessage-length 190 -stack-protector 1 -fblocks -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o IPstream.C.o -x c++
CMakeFiles/OpenFOAM.dir/db/IOstreams/Pstreams/IPstream.C.i
1. parser at end of file
2. Per-file LLVM IR generation
3.
/Users/mwild/Projects/FreeFOAM/src/OpenFOAM/db/IOstreams/Pstreams/IPstream.C:71:29:
Generating code for declaration 'Foam::IPstream::readFromBuffer'
4.
/Users/mwild/Projects/FreeFOAM/src/OpenFOAM/db/IOstreams/Pstreams/IPstream.C:72:1:
LLVM IR generation of compound statement ('{}')
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)
The preprocessed source is attached. Compile with
$ clang++ -c -x c++ IPstream.C.i
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 8 06:55:36 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Jul 2010 06:55:36 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7367] Opt crash on attached .bc file when built by
msvc 2010
In-Reply-To:
References:
Message-ID: <20100708115536.D55AD2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7367
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #19 from Duncan Sands 2010-07-08 06:55:35 CDT ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100705/103839.html
Thanks for tracking it down!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 8 10:36:26 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Jul 2010 10:36:26 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7595] New: DWARF debug info does not handle forward
declarations properly
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7595
Summary: DWARF debug info does not handle forward declarations
properly
Product: clang
Version: trunk
Platform: Other
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: kan at freebsd.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5190)
--> (http://llvm.org/bugs/attachment.cgi?id=5190)
Create DICompositeType node with FlagFwdDecl for forward declatations of
scructs and unions
Given the following trivial example:
struct a;
union b;
void foo(struct a *ptr_a, union b *ptr_b)
{
}
clang 2.7 and trunk both end up generating the following DWARF info fragment do
describe pointers to struct a and union b:
<1>< 229> DW_TAG_structure_type
DW_AT_name fwd.type.0
DW_AT_byte_size 0
DW_AT_decl_file 2 /home/kan/test/ctf/test.c
DW_AT_decl_line 1
<1>< 244> DW_TAG_pointer_type
DW_AT_type <229>
DW_AT_byte_size 8
DW_AT_decl_file 2 /home/kan/test/ctf/test.c
DW_AT_decl_line 0
<1>< 252> DW_TAG_union_type
DW_AT_name fwd.type.1
DW_AT_byte_size 0
DW_AT_decl_file 2 /home/kan/test/ctf/test.c
DW_AT_decl_line 2
<1>< 267> DW_TAG_pointer_type
DW_AT_type <252>
DW_AT_byte_size 8
DW_AT_decl_file 2 /home/kan/test/ctf/test.c
DW_AT_decl_line 0
Note the use of fictitious zero-sized structures fwd.type.[12].
Attached patch attempts to fix this, by emitting proper struct and enum
definitions with DW_AT_declaration=1 for forward declarations. This results in
the following (correct) DWARF fragment:
<1>< 229> DW_TAG_structure_type
DW_AT_name a
DW_AT_declaration yes(1)
<1>< 233> DW_TAG_pointer_type
DW_AT_type <229>
DW_AT_byte_size 8
DW_AT_decl_file 2 /home/kan/test/ctf/test.c
DW_AT_decl_line 0
<1>< 241> DW_TAG_union_type
DW_AT_name b
DW_AT_declaration yes(1)
<1>< 245> DW_TAG_pointer_type
DW_AT_type <241>
DW_AT_byte_size 8
DW_AT_decl_file 2 /home/kan/test/ctf/test.c
DW_AT_decl_line 0
Note proper names and DW_TAG_declaration use and notice that respective
pointers now actually make sense.
As a side effect, this makes OpenSolaris' ctftools work properly on FreeBSD
kernel compiled with clang, instead of taking ages to compile, mostly sifting
though tons of fwd.type. fictitious types.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 8 11:33:04 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Jul 2010 11:33:04 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7596] New: Assertion failed: (0 && "Unexpected
Start and End labels for a inlined scope!")
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7596
Summary: Assertion failed: (0 && "Unexpected Start and End
labels for a inlined scope!")
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: pawel.worach at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5192)
--> (http://llvm.org/bugs/attachment.cgi?id=5192)
t.bc.gz
% llc t.bc
Assertion failed: (0 && "Unexpected Start and End labels for a inlined
scope!"), function constructInlinedScopeDIE, file DwarfDebug.cpp, line 1506.
Stack dump:
0. Program arguments:
/usr/home/buildbot/buildbot/clang-i686-freebsd/llvm/Debug+Asserts/bin/llc -o
bugpoint-test-program.bc-sJo88m.llc.s bugpoint-test-program.bc-sJo88m
1. Running pass 'Function Pass Manager' on module
'bugpoint-test-program.bc-sJo88m'.
2. Running pass 'X86 AT&T-Style Assembly Printer' on function '@fpathconf'
When trying to reduce this with bugpoint it dies too:
bugpoint -run-llc t.bc
Read input file : 't.bc'
*** All input ok
Initializing execution environment: Found gcc: /usr/bin/gcc
Running the code generator to test for a crash:
Error running tool:
/usr/home/buildbot/buildbot/clang-i686-freebsd/llvm/Debug+Asserts/bin/llc -o
bugpoint-test-program.bc-sJo88m.llc.s bugpoint-test-program.bc-sJo88m
Assertion failed: (0 && "Unexpected Start and End labels for a inlined
scope!"), function constructInlinedScopeDIE, file DwarfDebug.cpp, line 1506.
Stack dump:
0. Program arguments:
/usr/home/buildbot/buildbot/clang-i686-freebsd/llvm/Debug+Asserts/bin/llc -o
bugpoint-test-program.bc-sJo88m.llc.s bugpoint-test-program.bc-sJo88m
1. Running pass 'Function Pass Manager' on module
'bugpoint-test-program.bc-sJo88m'.
2. Running pass 'X86 AT&T-Style Assembly Printer' on function '@fpathconf'
*** Debugging code generator crash!
Checking to see if we can delete global inits: Unknown constant!
UNREACHABLE executed at BitcodeWriter.cpp:905!
Stack dump:
0. Program arguments:
/home/buildbot/buildbot/clang-i686-freebsd/llvm/Debug+Asserts/bin/bugpoint
-run-llc t.bc
Abort
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 8 11:35:50 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Jul 2010 11:35:50 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7594] Initializing static member variable with call
to constructor causes assert to fail
In-Reply-To:
References:
Message-ID: <20100708163550.66D5D2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7594
Nico Weber changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dgregor at apple.com,
| |llvmbugs at cs.uiuc.edu,
| |nicolasweber at gmx.de
Component|Frontend |C++
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 8 13:19:26 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Jul 2010 13:19:26 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7597] New: Crash creating object without defined
constructor.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7597
Summary: Crash creating object without defined constructor.
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dlarimer at gmail.com
CC: llvmbugs at cs.uiuc.edu
I was attempting to compile code with clang that compiled fine with gcc and
VC++. I was unable to determine the exact "cause" of the clang crash because
it could be triggered by various arrangements of the code and showed no clear
"pattern".
If I directly specify the type (instead of using the template parameter) it
works. If I use a template parameter and then instantiate the class with the
template parameter set to the same type it crashes.
If i construct on the stack it works. If I construct via new it crashes clang;
Given the following code
class SomeType{};
template DelegateType = DefautlDelegateType >
struct stub
{
// lots of nested struct declarations here.
}
namespace bb {
class server
{
template
server( boost::shared_ptr& ptr )
{
stub x; // works
new stub; // works
stub y; // works
new stub; // with T == SomeType crashes clang, unless stub
defines a constructor
}
};
}
Assertion failed: ((Record->hasTrivialCopyConstructor() ||
Record->hasTrivialCopyAssignment()) && "Trying to aggregate-copy a type without
a trivial copy " "constructor or assignment operator"), function
EmitAggregateCopy, file
/Users/dlarimer/projects/llvm/tools/clang/lib/CodeGen/CGExprAgg.cpp, line 792.
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-apple-darwin10.0.0 -emit-obj -mrelax-all -disable-free -main-file-name
serv.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables
-target-cpu core2 -resource-dir /usr/local/lib/clang/2.8 -D QT_NO_DEBUG_OUTPUT
-D __STDC_LIMIT_MACROS -I /Users/dlarimer/projects/fl/libraries -I
/Users/dlarimer/projects/fl/libraries/core -I
/Users/dlarimer/projects/fl/libraries/drivers -I /usr/local/include
-ferror-limit 19 -fmessage-length 270 -stack-protector 1 -fblocks -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o CMakeFiles/bbs.dir/serv.cpp.o
-x c++ /Users/dlarimer/projects/fl/libraries/fl/backbone/serv.cpp -v
1. parser at end of file
2. Per-file LLVM IR generation
3. /Users/dlarimer/projects/fl/libraries/fl/backbone/server.hpp:20:5:
Generating code for declaration 'bb::server::server'
4. /Users/dlarimer/projects/fl/libraries/fl/backbone/server.hpp:22:5: LLVM
IR generation of compound statement ('{}')
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 8 13:38:22 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Jul 2010 13:38:22 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7587] segfault on parsing,
related to a complex default value for a template parameter
In-Reply-To:
References:
Message-ID: <20100708183822.241B52A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7587
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Douglas Gregor 2010-07-08 13:38:21 CDT ---
Fixed in r107895.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 8 14:57:04 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Jul 2010 14:57:04 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7595] DWARF debug info does not handle forward
declarations properly
In-Reply-To:
References:
Message-ID: <20100708195704.1C4AC2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7595
devang.patel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from devang.patel 2010-07-08 14:57:03 CDT ---
Thanks! I applied your patch. r107900.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 8 15:10:03 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Jul 2010 15:10:03 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7588] Wrong code for _mm_shufflehi_epi16
In-Reply-To:
References:
Message-ID: <20100708201004.016DF2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7588
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2010-07-08 15:10:03 CDT ---
Fixed in r107902.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 8 16:07:58 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Jul 2010 16:07:58 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7598] New: Spurious error involving enums,
conditional expressions, and const return values
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7598
Summary: Spurious error involving enums, conditional
expressions, and const return values
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: matthewbg at google.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5193)
--> (http://llvm.org/bugs/attachment.cgi?id=5193)
test case
Below, v has type Enum; the return type of g() is 'const Enum', which is a
little suspicious, but not AFAICT illegal.
% clang -fsyntax-only conditional_enum.cc
conditional_enum.cc:10:8: error: cannot initialize a variable of type 'Enum'
with an rvalue of type 'int'
Enum e = false ? g() : v;
^ ~~~~~~~~~~~~~~~
1 error generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 8 16:37:30 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Jul 2010 16:37:30 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7566] clang++ crashes when includes are not found
In-Reply-To:
References:
Message-ID: <20100708213730.DEF202A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7566
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Chris Lattner 2010-07-08 16:37:30 CDT ---
*** This bug has been marked as a duplicate of bug 7481 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 8 17:39:34 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Jul 2010 17:39:34 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7596] Assertion failed: (0 && "Unexpected Start and
End labels for a inlined scope!")
In-Reply-To:
References:
Message-ID: <20100708223934.1BEB02A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7596
devang.patel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |devang.patel at gmail.com
Resolution| |FIXED
--- Comment #1 from devang.patel 2010-07-08 17:39:33 CDT ---
Fixed r107923.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 8 18:07:55 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Jul 2010 18:07:55 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7594] Initializing static member variable with call
to constructor causes assert to fail
In-Reply-To:
References:
Message-ID: <20100708230755.7EA1F2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7594
Sebastian Redl changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #2 from Sebastian Redl 2010-07-08 18:07:55 CDT ---
Fixed in r107927.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 8 20:44:09 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Jul 2010 20:44:09 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7600] New: Incorrect return type from
__sync_val_compare_and_swap builtin
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7600
Summary: Incorrect return type from __sync_val_compare_and_swap
builtin
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chandlerc at gmail.com
CC: llvmbugs at cs.uiuc.edu
% cat t.cc
void *foo(void **m) {
void *newval = 0;
void *oldval = 0;
return __sync_val_compare_and_swap(m, oldval, newval);
}
% ./clang -fsyntax-only t.cc
t.cc:4:10: error: cannot initialize return object of type 'void *' with an
rvalue of type 'long long'
return __sync_val_compare_and_swap(m, oldval, newval);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 8 22:05:22 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Jul 2010 22:05:22 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6889] memory unsafety crash bug
In-Reply-To:
References:
Message-ID: <20100709030522.C09702A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6889
John Regehr changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
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 llvm.org Thu Jul 8 22:11:42 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Jul 2010 22:11:42 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7601] New: x64 clang segfault
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7601
Summary: x64 clang segfault
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu
Valgrind says it's a null-ptr deref.
[regehr at bethe tmp602]$ clang -v
clang version 2.8 (trunk 107853)
Target: x86_64-unknown-linux-gnu
Thread model: posix
[regehr at bethe tmp602]$ clang -O2 -c small.c
small.c:36:1: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
int326 (struct S0 p_7, struct S3 p_8, int16_t p_9, int16_t p_10, uint8_t p_11)
^
small.c:38:12: warning: incompatible pointer types initializing 'int32_t *'
(aka 'int *') with an expression of type 'int16_t *' (aka 'short *')
int32_t *l_431 = &g_432;
^ ~~~~~~
0 clang 0x0000000001353a2f
1 clang 0x0000000001355ac2
2 libpthread.so.0 0x00007fdd45ac6190
3 clang 0x0000000000fecdc9
4 clang 0x0000000000fee266
5 clang 0x0000000000fee64f
6 clang 0x0000000000feeefe
7 clang 0x0000000000ff0015
8 clang 0x00000000012d6e9d
9 clang 0x00000000012d707b
10 clang 0x00000000012d736c
11 clang 0x000000000050a67e
12 clang 0x000000000050678b
13 clang 0x00000000006159cf
14 clang 0x00000000005076f4
15 clang 0x000000000042711d
16 clang 0x000000000040a02b
17 clang 0x0000000000410281 main + 3185
18 libc.so.6 0x00007fdd44db7abd __libc_start_main + 253
19 clang 0x0000000000407779
Stack dump:
0. Program arguments:
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r107853-install/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name small.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r107853-install/lib/clang/2.8
-O2 -ferror-limit 19 -fmessage-length 86 -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-y4sLYQ.s -x c small.c
1. parser at end of file
2. Code generation
3. Running pass 'Simple Register Coalescing' on function '@int326'
clang: error: clang frontend command failed due to signal 11 (use -v to see
invocation)
[regehr at bethe tmp602]$ cat small.c
typedef short int int16_t;
typedef int int32_t;
typedef unsigned char uint8_t;
typedef unsigned int uint32_t;
typedef unsigned long int uint64_t;
static int16_t
safe_mod_func_int32_t_s_s (int32_t si1, int32_t si2)
{
return si2 == 0 || si1 && si2 == 1 ? si1 : (si1 % si2);
}
static uint64_t
safe_div_func_uint64_t_u_u (uint64_t ui1, uint64_t ui2)
{
return ui2 == 0 ? ui1 : (ui1 / ui2);
}
struct S0
{
uint32_t f0;
};
struct S2
{
const unsigned f1:1;
};
struct S3
{
};
int16_t g_51;
const int16_t *g_200 = &g_51;
const int16_t **volatile g_199 = &g_200;
struct S2 g_403[7] = {
};
int16_t g_432;
int326 (struct S0 p_7, struct S3 p_8, int16_t p_9, int16_t p_10, uint8_t p_11)
{
int32_t *l_431 = &g_432;
*l_431 =
p_7.f0 <=
safe_mod_func_int32_t_s_s (safe_div_func_uint64_t_u_u (**g_199, *l_431) |
+*l_431, *l_431) || g_403[2].f1;
return 0;
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu Jul 8 23:36:25 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Jul 2010 23:36:25 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7601] x64 clang segfault
In-Reply-To:
References:
Message-ID: <20100709043625.4B4452A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7601
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Jakob Stoklund Olesen 2010-07-08 23:36:24 CDT ---
Fixed in r107955
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 9 00:31:33 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 9 Jul 2010 00:31:33 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7602] New: Cannot emit physreg copy instruction
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7602
Summary: Cannot emit physreg copy instruction
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: pawel.worach at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5195)
--> (http://llvm.org/bugs/attachment.cgi?id=5195)
bugpoint-reduced-simplified.bc
Fails when building freebsd/sbin/newfs/mkfs.c with clang version 2.8 (trunk
107952)
% llc bugpoint-reduced-simplified.bc
Cannot emit physreg copy instruction
UNREACHABLE executed at
/Users/pwo/src/llvm/lib/CodeGen/TargetInstrInfoImpl.cpp:381!
0 llc 0x00000001005fecb2 std::_Rb_tree, std::less,
std::allocator
>::_M_erase(std::_Rb_tree_node*) + 8546
1 llc 0x00000001005ff169 std::_Rb_tree, std::less,
std::allocator
>::_M_erase(std::_Rb_tree_node*) + 9753
2 libSystem.B.dylib 0x00007fff85e6835a _sigtramp + 26
3 libSystem.B.dylib 0x0000000100900000 _sigtramp + 2057927872
4 llc 0x00000001005e3285 llvm::cl::opt >::~opt() + 8517
5 llc 0x00000001003c4b6e
std::vector,
std::allocator >
>::_M_insert_aux(__gnu_cxx::__normal_iterator*, std::vector,
std::allocator > > >,
std::pair const&) + 5934
6 llc 0x00000001003194be llvm::Pass*
llvm::callDefaultCtor() + 3214
7 llc 0x000000010032b1d5 llvm::PassInfo::~PassInfo() + 117
8 llc 0x000000010058ff2b llvm::cl::parser::~parser() + 21947
9 llc 0x00000001005901fb llvm::cl::parser::~parser() + 22667
10 llc 0x0000000100590366 llvm::cl::parser::~parser() + 23030
11 llc 0x0000000100590a8c llvm::cl::parser::~parser() + 24860
12 llc 0x00000001005912fd llvm::cl::parser::~parser() + 27021
13 llc 0x0000000100015a81 void
llvm::cl::ValuesClass::apply > >(llvm::cl::opt >&) const + 12257
14 llc 0x0000000100014444 void
llvm::cl::ValuesClass::apply > >(llvm::cl::opt >&) const + 6564
15 llc 0x0000000000000002 void
llvm::cl::ValuesClass::apply > >(llvm::cl::opt >&) const + 4294890850
Stack dump:
0. Program arguments: llc bugpoint-reduced-simplified.bc
1. Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.bc'.
2. Running pass 'Subregister lowering instruction pass' on function '@mkfs'
Abort
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 9 00:55:51 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 9 Jul 2010 00:55:51 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7603] New: Wiki - Cannot edit wiki pages
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7603
Summary: Wiki - Cannot edit wiki pages
Product: Website
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: General Website
AssignedTo: unassignedbugs at nondot.org
ReportedBy: grosser at fim.uni-passau.de
CC: llvmbugs at cs.uiuc.edu, dberlin at dberlin.org
After saving a changed page I always get this error message:
Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show
detailed debugging information.
Could you have a look?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 9 00:57:01 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 9 Jul 2010 00:57:01 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7602] Cannot emit physreg copy instruction
In-Reply-To:
References:
Message-ID: <20100709055702.09E552A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7602
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Jakob Stoklund Olesen 2010-07-09 00:57:01 CDT ---
Fixed in r107957. Thanks!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 9 02:33:40 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 9 Jul 2010 02:33:40 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7273] error in sse code with _mm_set1_ps
In-Reply-To:
References:
Message-ID: <20100709073340.C7BC02A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7273
Mikko Lehtonen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #2 from Mikko Lehtonen 2010-07-09 02:33:40 CDT ---
It would seem that this got fixed at some point (I'm testing with r107124).
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 9 04:05:35 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 9 Jul 2010 04:05:35 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7604] New: clang doesn't find gcc-4.4.4's headers
on GenToo
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7604
Summary: clang doesn't find gcc-4.4.4's headers on GenToo
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jarausch at igpm.rwth-aachen.de
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Compiling any C++ program (e.g. hello world) fails because the C++ header files
are not found.
The -v command line option shows that it tries to locate
/usr/lib/gcc/x86_64-pc-linux-gnu/V.V.V/include
with V.V.V upto 4.4.3
But I have gcc-4.4.4 (or 4.5.0 or 4.6-git) installed,
so clang fails with
fatal error: 'iostream' file not found
This is on a Gentoo system (bleeding edge)
Thanks for looking into it,
Helmut.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 9 05:04:03 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 9 Jul 2010 05:04:03 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7605] New: CreateMalloc() and CreateFree() are not
orthogonal
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7605
Summary: CreateMalloc() and CreateFree() are not orthogonal
Product: libraries
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: Core LLVM classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: hvdieren at elis.ugent.be
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5196)
--> (http://llvm.org/bugs/attachment.cgi?id=5196)
Proposed patch
CreateMalloc() takes an optional malloc()-function argument when inserting the
code at the end of a basic block, but not when inserting the code before an
instruction.
CreateFree() returns the code generated when inserting at the end of a basic
block but not when inserting before an instruction.
Better to make them orthogonal; works better for my project because I use a lot
of template function where the insertion point type (Instruction * or
BasicBlock *) is abstracted as a template argument.
Patch makes these changes. Impacts Instructions.h Instructions.cpp
GlobalOpt.cpp
Kind regards,
Hans Vandierendonck
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 9 06:00:09 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 9 Jul 2010 06:00:09 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7606] New: Poor diagnostic for a typo of ','
instead of '; ' at the end of an statement
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7606
Summary: Poor diagnostic for a typo of ',' instead of ';' at
the end of an statement
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Keywords: quality-of-implementation
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chandlerc at gmail.com
CC: llvmbugs at cs.uiuc.edu
This diagnostic could be a *lot* better, at the least poniting at the ','
operator, and the two expression operands instead of the curly on the next
line. Still better would be to suggest a ';', at least if the next token is a
'}'.
% cat t3.cc
int foo() {
return 42,
}
% gcc -fsyntax-only t3.cc
t3.cc: In function 'int foo()':
t3.cc:3: error: expected primary-expression before '}' token
t3.cc:3: error: expected ';' before '}' token
% clang -fsyntax-only t3.cc
t3.cc:3:1: error: expected expression
}
^
t3.cc:3:2: error: expected '}'
}
^
2 errors generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 9 06:50:08 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 9 Jul 2010 06:50:08 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7607] New: Assertion failure: Use still stuck
around after Def is destroyed
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7607
Summary: Assertion failure: Use still stuck around after Def is
destroyed
Product: new-bugs
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: wotte at dre.vanderbilt.edu
CC: llvmbugs at cs.uiuc.edu
Reproduced with latest trunk. I have been unable to narrow down a test case,
perhaps this will help someone with more expertise to track down the bug.
I have attached the preprocessed source file.
clang++ -ftemplate-depth-23 -Wall -Wpointer-arith -g -pipe -pipe
-I/Users/Shared/workspace/DOC_ROOT_clang/ACE -DACE_HAS_EXCEPTIONS
-D__ACE_INLINE__ -I.. -DACE_BUILD_DLL -c -o .shobj/Filecache.o Filecache.cpp
While deleting: { [233 x i8], [7 x i8] }* %
Use still stuck around after Def is destroyed: %arrayidx15 = getelementptr
inbounds %class.ACE_RW_Thread_Mutex* , i64 %11 ;
<%class.ACE_RW_Thread_Mutex*> [#uses=1]
Assertion failed: (use_empty() && "Uses remain when a value is destroyed!"),
function ~Value, file Value.cpp, line 75.
0 clang 0x00000001010c4aba PrintStackTrace(void*) + 38
1 clang 0x00000001010c4fc8 SignalHandler(int) + 254
2 libSystem.B.dylib 0x00007fff86acf80a _sigtramp + 26
3 libSystem.B.dylib 0x00007fff86a7450a tiny_malloc_from_free_list + 1196
4 libSystem.B.dylib 0x00007fff86b4aef0 __pthread_markcancel + 0
5 clang 0x0000000101060742 llvm::Value::~Value() + 364
6 clang 0x0000000100ffcf63 llvm::User::~User() + 107
7 clang 0x0000000101004112 llvm::Instruction::~Instruction() + 110
8 clang 0x0000000101004d49
llvm::UnaryInstruction::~UnaryInstruction() + 35
9 clang 0x0000000101016e87 llvm::CastInst::~CastInst() + 39
10 clang 0x000000010101738f llvm::BitCastInst::~BitCastInst() + 35
11 clang 0x0000000100e9f919
llvm::ilist_node_traits::deleteNode(llvm::Instruction*) + 39
12 clang 0x0000000100e9fd0f llvm::iplist
>::erase(llvm::ilist_iterator) + 37
13 clang 0x0000000100f9b94f llvm::iplist
>::erase(llvm::ilist_iterator,
llvm::ilist_iterator) + 35
14 clang 0x0000000100f9b9a8 llvm::iplist >::clear() + 62
15 clang 0x0000000100f9aaf6 llvm::BasicBlock::~BasicBlock() + 328
16 clang 0x000000010021d934
DestroyCleanup(clang::CodeGen::CodeGenFunction&, llvm::BasicBlock*,
llvm::BasicBlock*) + 272
17 clang 0x000000010021e035
clang::CodeGen::CodeGenFunction::PopCleanupBlock() + 457
18 clang 0x000000010016de72
clang::CodeGen::CodeGenFunction::EmitDestructorBody(llvm::SmallVector, 16u>&) + 590
19 clang 0x0000000100220a79
clang::CodeGen::CodeGenFunction::GenerateCode(clang::CodeGen::GlobalDecl,
llvm::Function*) + 1285
20 clang 0x0000000100161708
clang::CodeGen::CodeGenModule::EmitCXXDestructor(clang::CXXDestructorDecl
const*, clang::CXXDtorType) + 362
21 clang 0x0000000100229521
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::CodeGen::GlobalDecl)
+ 249
22 clang 0x00000001002296a3
clang::CodeGen::CodeGenModule::EmitGlobal(clang::CodeGen::GlobalDecl) + 273
23 clang 0x0000000100160c40
clang::CodeGen::CodeGenModule::EmitCXXDestructors(clang::CXXDestructorDecl
const*) + 122
24 clang 0x00000001002299a5
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 645
25 clang 0x0000000100246a6e (anonymous
namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) + 76
26 clang 0x000000010021afc4 (anonymous
namespace)::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 138
27 clang 0x0000000100257b29 clang::ParseAST(clang::Preprocessor&,
clang::ASTConsumer*, clang::ASTContext&, bool, bool,
clang::CodeCompleteConsumer*) + 440
28 clang 0x0000000100077fcc
clang::ASTFrontendAction::ExecuteAction() + 256
29 clang 0x000000010021b8e4 clang::CodeGenAction::ExecuteAction() +
826
30 clang 0x00000001000780da clang::FrontendAction::Execute() + 256
31 clang 0x000000010005b4cf
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 709
32 clang 0x0000000100027e3c cc1_main(char const**, char const**,
char const*, void*) + 1762
33 clang 0x000000010002ef05 main + 335
34 clang 0x0000000100026d5c start + 52
Stack dump:
0. Program arguments: /Users/Shared/workspace/llvm/Debug/bin/clang -cc1
-triple x86_64-apple-darwin10.0.0 -emit-obj -mrelax-all -disable-free
-main-file-name Filecache.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose
-munwind-tables -target-cpu core2 -g -resource-dir
/Users/Shared/workspace/llvm/Debug/lib/clang/2.8 -D ACE_HAS_EXCEPTIONS -D
__ACE_INLINE__ -D ACE_BUILD_DLL -I /Users/Shared/workspace/DOC_ROOT_clang/ACE
-I .. -Wall -Wpointer-arith -ftemplate-depth 23 -ferror-limit 19
-fmessage-length 202 -stack-protector 1 -fblocks -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o .shobj/Filecache.o -x c++
Filecache.cpp
1. Filecache.cpp:240:1: current parser token 'ACE_Filecache_Object'
2. Filecache.cpp:236:16: LLVM IR generation of declaration
'ACE_Filecache::~ACE_Filecache'
3. Filecache.cpp:236:16: Generating code for declaration
'ACE_Filecache::~ACE_Filecache'
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 9 08:45:13 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 9 Jul 2010 08:45:13 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7608] New: ARMv4 JIT forgets to set the lr register
when making a indirect function call
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7608
Summary: ARMv4 JIT forgets to set the lr register when making a
indirect function call
Product: libraries
Version: trunk
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: xerxes at zafena.se
CC: llvmbugs at cs.uiuc.edu
ARMv4 JIT forgets to set lr when making a indirect function call
this makes the called function fail to return properly.
Testcase:
; RUN: llvm-as %s -o %t.bc
; RUN: lli %t.bc > /dev/null
@.LC0 = internal global [12 x i8] c"Hello World\00" ; <[12 x i8]*>
[#uses=1]
declare i32 @puts(i8*)
define i32 @main() {
; program prints Hello World two times using two differnt ways of
calling puts.
call i32 @puts(i8* getelementptr ([12 x i8]* @.LC0, i64 0, i64 0))
; second call to puts, this time using a indirect call
; calling puts this way triggers a sigsegv on armv4 when puts return.
; change 1085233504 to match the real address to puts
call i32 inttoptr (i32 1085233504 to i32 (i8*)*)(i8* getelementptr ([12
x i8]* @.LC0, i64 0, i64 0))
ret i32 0
}
Output:
xerxes at xerxes:~/bug.bx$ lli mtest.bc
Hello World
Hello World
0 libLLVM-2.8svn.so 0x407d7d28
Stack dump:
0. Program arguments: lli mtest.bc
Segmentation fault
(disassembled jited armv4 code that fail)
0x410b4010: push {r4, lr}
0x410b4014: ldr r4, [pc, #24] ; 0x410b4034
0x410b4018: mov r0, r4
0x410b401c: bl 0x41134008
0x410b4020: ldr r1, [pc, #16] ; 0x410b4038
0x410b4024: mov r0, r4
0x410b4028: bx r1 <--------- calling puts through a register
0x410b402c: mov r0, #0 ; 0x0
0x410b4030: pop {r4, pc}
testcase passes when enabeling armv5 instructions
xerxes at xerxes:~/bug.bx$ lli -mattr=+v5t mtest.bc
Hello World
Hello World
(disassembled jited armv5 code that works)
0x410b4010: push {r4, lr}
0x410b4014: ldr r4, [pc, #24] ; 0x410b4034
0x410b4018: mov r0, r4
0x410b401c: bl 0x41134008
0x410b4020: ldr r1, [pc, #16] ; 0x410b4038
0x410b4024: mov r0, r4
0x410b4028: blx r1 <-------- on armv5 the code works because blx
sets lr before the branch.
0x410b402c: mov r0, #0 ; 0x0
0x410b4030: pop {r4, pc}
(statically compiled armv4 code using llc that works)
stmdb sp!, {r4, lr}
ldr r4, .LCPI0_0
mov r0, r4
bl puts
ldr r1, .LCPI0_1
mov r0, r4
mov lr, pc <----------- here lr gets set before the bx call.
bx r1
mov r0, #0
ldmia sp!, {r4, pc}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 9 09:19:16 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 9 Jul 2010 09:19:16 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7609] New: Asm generated by clang causes errors
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7609
Summary: Asm generated by clang causes errors
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jpakkane at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5199)
--> (http://llvm.org/bugs/attachment.cgi?id=5199)
Outputs of -E and -S for the problematic source
I'm building the Cuneiform project (http://launchpad.net/cuneiform-linux) with
the newest svn clang. I get the following error:
[ 33%] Building CXX object
cuneiform_src/Kern/smetric/CMakeFiles/smetric.dir/src/ugol.cpp.o
/tmp/cc-dnDyv6.s: Assembler messages:
/tmp/cc-dnDyv6.s:140: Error: suffix or operands invalid for `movapd'
/tmp/cc-dnDyv6.s:325: Error: suffix or operands invalid for `movapd'
clang: error: assembler (via gcc) command failed with exit code 1 (use -v to
see invocation)
I'll attach the preprocessed source and asm file to this bug but both of the
erroneous lines look like this:
movapd %xmm0, %st(0)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 9 10:32:24 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 9 Jul 2010 10:32:24 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7610] New: Sibling call optimization broken
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7610
Summary: Sibling call optimization broken
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: davidterei at gmail.com
CC: llvmbugs at cs.uiuc.edu
In LLVM trunk the Sibling call optimization seems to be broken. Specifically it
doesn't catch as many cases as it does in 2.7. The case it no longer catches I
think is calls to unknown functions (e.g function pointers).
Example LLVM stub program:
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"
define cc10 void @__stginit_ZCMain(i32* %Base_Arg, i32* %Sp_Arg, i32* %Hp_Arg,
i32 %R1_Arg) nounwind {
cm1:
%nm3 = getelementptr i32* %Sp_Arg, i32 1
%nm9 = load i32* %Sp_Arg
%nma = inttoptr i32 %nm9 to void (i32*, i32*, i32*, i32)*
tail call cc10 void %nma(i32* %Base_Arg, i32* %nm3, i32* %Hp_Arg, i32
%R1_Arg) nounwind
ret void
}
Under 2.8svn this compiles with 'llc -O3' to:
__stginit_ZCMain:
subl $4, %esp
movl %ebp, %eax
leal 4(%eax), %ebp
call *(%eax)
addl $4, %esp
ret
Under 2.7 this compiles with 'llc -O3' to:
__stginit_ZCMain:
movl (%ebp), %eax
addl $4, %ebp
jmpl *%eax
Cheers,
David
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 9 11:42:47 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 9 Jul 2010 11:42:47 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7611] New: Not emitting covariant thunk
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7611
Summary: Not emitting covariant thunk
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dgregor at apple.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Given:
struct A
{
virtual A* f();
};
struct B: virtual A
{
virtual A* f();
};
struct C: B
{
virtual C* f();
};
C* C::f() { return 0; }
clang is omitting the virtual this+virtual return thunk
(_ZTcv0_n12_v0_n16_N1C1fEv), and emitting a virtual this only thunk
(_ZTv0_n12_N1C1fEv) instead.
(thanks to Jason M for reporting this issue!)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 9 12:10:47 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 9 Jul 2010 12:10:47 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7609] Asm generated by clang causes errors
In-Reply-To:
References:
Message-ID: <20100709171047.99D802A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7609
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Jakob Stoklund Olesen 2010-07-09 12:10:47 CDT ---
This should be fixed by Bob's revert in r107987.
Please verify.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 9 12:30:00 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 9 Jul 2010 12:30:00 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7612] New: invalid IR from clang -emit-llvm
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7612
Summary: invalid IR from clang -emit-llvm
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: gohman at apple.com
CC: llvmbugs at cs.uiuc.edu
For this testcase:
int main(void) { return 0; }
clang does this:
$ clang -emit-llvm a.c
Alloca array size must be i32
%retval = alloca i32, i32 ()* @main, align 2 ; [#uses=1]
Instruction does not dominate all uses!
%retval = alloca i32, i32 ()* @main, align 2 ; [#uses=1]
store i32 0, i32* %retval
Broken module found, compilation aborted!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 9 12:48:27 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 9 Jul 2010 12:48:27 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7612] invalid IR from clang -emit-llvm
In-Reply-To:
References:
Message-ID: <20100709174827.31EB52A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7612
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #1 from Chris Lattner 2010-07-09 12:48:26 CDT ---
Works with r107993.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 9 13:43:47 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 9 Jul 2010 13:43:47 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7613] New: Win32 build problems
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7613
Summary: Win32 build problems
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: John.Thompson.JTSoftware at gmail.com
CC: llvmbugs at cs.uiuc.edu
(Should there be a "Build" component or other catch-all for things that don't
fit the other categories?)
The cmake-based Visual Studio build is somewhat broken, at least for VS 2008,
which is what I'm using.
With the Visual Studio solution and project files built by cmake for VS2008, if
you do a build or rebuild on ALL_BUILD, the final build step for the libclang
project will fail with a message about not being able to write to Clang.ilk, or
sometimes the clang.pdb file. Then, the c-index-test link will fail with a
bunch of unresolved references, because libclang.lib didn't build properly, or
something.
The work-around is to go back and rebuild libclang alone, and then to a "build"
on the rest.
This leads me to believe there is some sort of dependency problem, or maybe
there is some mixing of different project types.
If someone who knows both cmake and Visual Studio could fix it, that would be
great.
Otherwise I will take a crack at it sometime, though there will be a learning
curve for me about cmake.
-John
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 9 14:00:21 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 9 Jul 2010 14:00:21 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7600] Incorrect return type from
__sync_val_compare_and_swap builtin
In-Reply-To:
References:
Message-ID: <20100709190021.AF9FF2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7600
Chandler Carruth changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Chandler Carruth 2010-07-09 14:00:21 CDT ---
Fixed in r108002.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 9 14:44:06 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 9 Jul 2010 14:44:06 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7614] New: undefined reference when using VLA
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7614
Summary: undefined reference when using VLA
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: grzegorz.dabrowski at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
$ uname -a
Linux kaliber 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 07:54:58 UTC 2010
i686 GNU/Linux
$ clang -v
clang version 2.8 (trunk 107677)
Target: i386-pc-linux-gnu
Thread model: posix
$ cat vla.cpp
#include
int main() {
int buffer[std::max(1, 2)];
return 0;
}
$ clang vla.cpp
/tmp/cc-nhweyo.o: In function `main':
vla.cpp:(.text+0x31): undefined reference to `int const& std::max(int
const&, int const&)'
collect2: ld returned 1 exit status
clang: error: linker (via gcc) command failed with exit code 1 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 9 15:04:19 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 9 Jul 2010 15:04:19 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7269] -Wno-main is not supported
In-Reply-To:
References:
Message-ID: <20100709200419.716EB2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7269
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |FIXED
--- Comment #2 from Eli Friedman 2010-07-09 15:04:19 CDT ---
r108006 should fix the "unknown warning" warnings, and there really isn't any
point to keeping this open for the missing diagnostic.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Fri Jul 9 15:38:55 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 9 Jul 2010 15:38:55 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7615] New: GVN doesn't update AliasAnalysis
correctly
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7615
Summary: GVN doesn't update AliasAnalysis correctly
Product: new-bugs
Version: 2.7
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: willdtz at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5200)
--> (http://llvm.org/bugs/attachment.cgi?id=5200)
Test case (for dejagnu/lit style) demonstrating the issue
GVN queries the AliasAnalysis on values that didn't exist when the AA was
executed. This causes all stateful AA's to break (aka any that actually
compute their results in runOn*). The "debug-aa" pass in mainline helps catch
these -- attached is a testcase demonstrating an example demonstrating 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 llvm.org Sat Jul 10 15:25:46 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 10 Jul 2010 15:25:46 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7616] New: clang-analyzer not warn about
set-but-unused aggregates
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7616
Summary: clang-analyzer not warn about set-but-unused
aggregates
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: dimhen at gmail.com
CC: llvmbugs at cs.uiuc.edu
with the following test program there are no diagnostics about set-but-unused
union/struct/array
[root at wellesberg clang_errs]# cat aggregate.c
typedef struct {
int a;
} S;
typedef union {
int b;
long c;
} U;
void foo()
{
S s;
U u;
int x[10];
s.a = 42;
u.b = 42;
x[0] = 42;
}
[root at wellesberg clang_errs]# scan-build gcc -c aggregate.c
scan-build: 'clang' executable not found in
'/usr/src/llvm/tools/clang/tools/scan-build/bin'.
scan-build: Using 'clang' from path: /usr/src/llvm/Release+Asserts/bin/clang
ANALYZE: aggregate.c foo
scan-build: Removing directory '/tmp/scan-build-2010-07-11-2' because it
contains no reports.
[root at wellesberg clang_errs]# clang -v
clang version 2.8 (trunk 108050)
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 llvm.org Sat Jul 10 18:57:58 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 10 Jul 2010 18:57:58 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7617] New: Message accuracy and change request
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7617
Summary: Message accuracy and change request
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: echristo at gmail.com
CC: llvmbugs at cs.uiuc.edu
>From Carl-Daniel Hailfinger :
I just stumbled across a typo in a header file of a heavily modified
flashrom codebase which looked like this:
int write_sector_jedec_common(struct flashchip *flash, uint8_t *src, int start,
int len, unsigned int mask)
/* m29f400bt.c */
int probe_m29f400bt(struct flashchip *flash);
Note the missing semicolon for the write_sector_jedec_common prototype.
gcc (4.2.1) has this diagnostic:
jedec.c: In function ?write_sector_jedec_common?:
jedec.c:35: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{?
token
jedec.c:42: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{?
token
jedec.c:62: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{?
token
jedec.c:74: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{?
token
jedec.c:79: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{?
token
jedec.c:96: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{?
token
jedec.c:104: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{?
token
jedec.c:204: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{?
token
jedec.c:234: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{?
token
jedec.c:263: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{?
token
jedec.c:293: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{?
token
jedec.c:322: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{?
token
jedec.c:341: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{?
token
jedec.c:379: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{?
token
jedec.c:399: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{?
token
jedec.c:417: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{?
token
jedec.c:428: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{?
token
jedec.c:441: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{?
token
jedec.c:449: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{?
token
jedec.c:457: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{?
token
jedec.c:465: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{?
token
jedec.c:470: error: old-style parameter declarations in prototyped function
definition
jedec.c:470: error: expected ?{? at end of input
cc1: warnings being treated as errors
jedec.c:470: warning: no return statement in function returning non-void
clang (llvm-clang-2.6.99svn97231) has this diagnostic:
In file included from jedec.c:26:
./chipdrivers.h:83:1: error: expected function body after function declarator
int probe_m29f400bt(struct flashchip *flash);
^
1 diagnostic generated.
While the clang diagnostic was a lot more helpful in pinpointing the
actual error because it complained about the header instead of the
source file including it, the diagnostic could be improved a bit by the
following:
- Change the wording from "error: expected function body after function
declarator" to "error: expected function body or semicolon after
function declarator/prototype".
- Print the preceding code line as well because that's where the
semicolon is missing.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat Jul 10 23:14:20 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 10 Jul 2010 23:14:20 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7603] Wiki - Cannot edit wiki pages
In-Reply-To:
References:
Message-ID: <20100711041420.DD62C2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7603
Daniel Berlin changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Daniel Berlin 2010-07-10 23:14:20 CDT ---
Fixed
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Jul 11 00:24:32 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 11 Jul 2010 00:24:32 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7618] New: miscompile with optimization (derived
from ffmpeg)
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7618
Summary: miscompile with optimization (derived from ffmpeg)
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5204)
--> (http://llvm.org/bugs/attachment.cgi?id=5204)
Testcase
Testcase attached. To reproduce, run the following on x86-64 Linux:
$ clang tester.c -O3
$ ./a.out
Segmentation fault
$ clang tester.c
$ ./a.out
0028004800280028002800280028ffffffe0002b0000000000280028002800280028ffffffe0002b
0028002800000000ffffffff00000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000
$ gcc tester.c -O3 -std=c99
$ ./a.out
0028004800280028002800280028ffffffe0002b0000000000280028002800280028ffffffe0002b0028002800000000ffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
I'm not sure how to go about finding the issue here...
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Jul 11 11:29:03 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 11 Jul 2010 11:29:03 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7619] New: Typo in IRBuilder.h - CreateAShr
generator incorrect
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7619
Summary: Typo in IRBuilder.h - CreateAShr generator incorrect
Product: libraries
Version: 2.7
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Support Libraries
AssignedTo: unassignedbugs at nondot.org
ReportedBy: kv1d at spamex.com
CC: llvmbugs at cs.uiuc.edu
This is a simple one. One of the CreateAShr cases (the one with an integer
shift count) has a typo that results in a compilation error if its used.
On line 462 in IRBuilder.h I think CreateSShr should be CreateAShr
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Jul 11 13:14:52 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 11 Jul 2010 13:14:52 -0500 (CDT)
Subject: [LLVMbugs] [Bug 916] llvm-gcc4 doesn't build on ppc-linux
In-Reply-To:
References:
Message-ID: <20100711181452.07FA72A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=916
Nick Lewycky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Jul 11 14:46:11 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 11 Jul 2010 14:46:11 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7619] Typo in IRBuilder.h - CreateAShr generator
incorrect
In-Reply-To:
References:
Message-ID: <20100711194612.0198A2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7619
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Chris Lattner 2010-07-11 14:46:11 CDT ---
This is already 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 llvm.org Sun Jul 11 17:42:40 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 11 Jul 2010 17:42:40 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7617] poor recovery with missing ;
after function prototype
In-Reply-To:
References:
Message-ID: <20100711224240.5FD4D2A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7617
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |quality-of-implementation
Status|NEW |RESOLVED
Resolution| |FIXED
Summary|Message accuracy and change |poor recovery with missing
|request |; after function prototype
--- Comment #1 from Chris Lattner 2010-07-11 17:42:39 CDT ---
Fixed in r108105, we now get a fixit hint for the missing ; also.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Jul 11 18:09:45 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 11 Jul 2010 18:09:45 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7264] [patch] implemented address-of-label feature
in JIT
In-Reply-To:
References:
Message-ID: <20100711230945.63BFC2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7264
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #11 from Chris Lattner 2010-07-11 18:09:44 CDT ---
Duping this to 6744, please follow up there, thanks!
*** This bug has been marked as a duplicate of bug 6744 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun Jul 11 18:18:21 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 11 Jul 2010 18:18:21 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7214] Assertion `Reg >= X86::FP0 && Reg <= X86::FP6
&& "Expected FP register!"
In-Reply-To:
References:
Message-ID: <20100711231821.334802A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7214
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #6 from Chris Lattner