[LLVMbugs] [Bug 7306] New: LzmaEnc.c fails to compile
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jun 4 15:04:03 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7306
Summary: LzmaEnc.c fails to compile
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nelchael at gentoo.org
CC: llvmbugs at cs.uiuc.edu
LzmaEnc.c (from Lzma SDK 9.12, http://www.7-zip.org/sdk.html) fails to compile
with -O1 but succeeds with -O2 and -O0:
(clang/llvm trunk, revision 105489)
$ cd <LZMA SDK directory>/C/
$ clang -D_7ZIP_ST -O1 -c LzmaEnc.c
Instruction does not dominate all uses!
%tmp3425 = mul i32 %umax3424, -1 ; <i32> [#uses=1]
%tmp3426 = add i32 %tmp3425, -1 ; <i32> [#uses=1]
Broken module found, compilation aborted!
0 clang 0x0000000001519eb4
1 clang 0x0000000001519d78
2 libpthread.so.0 0x00007f4a771c6150
3 libc.so.6 0x00007f4a764e21a5 gsignal + 53
4 libc.so.6 0x00007f4a764e35d0 abort + 384
5 clang 0x00000000014ac96b
6 clang 0x00000000014ac64c
7 clang 0x0000000001481a75
8 clang 0x000000000148173f
9 clang 0x00000000014813ef
10 clang 0x000000000042908b
11 clang 0x0000000000427d4d
12 clang 0x00000000006ad02a
13 clang 0x0000000000443c48
14 clang 0x00000000004438b3
15 clang 0x000000000042e2ea
16 clang 0x00000000004092df
17 clang 0x0000000000411eb0 main + 342
18 libc.so.6 0x00007f4a764cebbd __libc_start_main + 253
19 clang 0x0000000000407ca9
Stack dump:
0. Program arguments: /home/nelchael/devel/llvm/Debug/bin/clang -cc1
-triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name LzmaEnc.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir
/home/nelchael/devel/llvm/Debug/lib/clang/2.0 -D_7ZIP_ST -O1 -ferror-limit 19
-fmessage-length 194 -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-lVeStn.s -x c LzmaEnc.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Module Verifier' on function '@GetOptimum'
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.
More information about the llvm-bugs
mailing list