[LLVMbugs] [Bug 6109] New: llvm-gcc fails to compile libgcc on linux arm (aapcs)
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Thu Jan 21 21:59:50 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6109
Summary: llvm-gcc fails to compile libgcc on linux arm (aapcs)
Product: tools
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: llvm-gcc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4087)
--> (http://llvm.org/bugs/attachment.cgi?id=4087)
testcase
Attaching the .i too since the bug might be in llvm-gcc.
------------------------------
./cc1 -fpreprocessed libgcov.i -quiet -dumpbase libgcov.c -auxbase-strip
libgcc/./_gcov.o -g -g -O2 -O2 -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -version -fPIC -o libgcov.s
GNU C version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build)
(arm-none-linux-gnueabi)
compiled by GNU C version 4.2.4 (Ubuntu 4.2.4-1ubuntu4).
GGC heuristics: --param ggc-min-expand=150 --param ggc-min-heapsize=131072
Compiler executable checksum: 733941845f500241ed6fb8c33dff1192
Instruction does not dominate all uses!
%lsr.iv.next485 = add i32 %lsr.iv484, 131072 ; <i32> [#uses=2]
%lsr.iv484 = phi i32 [ 27197440, %bb78.preheader ], [ %lsr.iv.next485, %bb77
] ; <i32> [#uses=1]
Broken module found, compilation aborted!
../../llvm-gcc-4.2/gcc/libgcov.c:644: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.org/bugs/> for instructions.
--------------------------------
Using -O0 + llc works. Opt fails:
pt -std-compile-opts libgcov.ll -o test.ll
0 opt 0x0000000000ba096a
1 opt 0x0000000000ba0f06
2 libpthread.so.0 0x00007fc9c28237d0
3 opt 0x0000000000794e4e llvm::Value::getValueID() const + 12
4 opt 0x0000000000794e6d bool llvm::isa_impl<llvm::Constant,
llvm::Value>(llvm::Value const&) + 21
5 opt 0x00000000007955f9 llvm::isa_impl_wrap<llvm::Constant,
llvm::Value const, llvm::Value const>::doit(llvm::Value const&) + 21
6 opt 0x0000000000795613 bool
llvm::isa_impl_cl<llvm::Value>::isa<llvm::Constant>(llvm::Value const&) + 21
7 opt 0x000000000079562d bool
llvm::isa_impl_cl<llvm::Value*>::isa<llvm::Constant>(llvm::Value*) + 21
8 opt 0x00000000007cac0c bool llvm::isa<llvm::Constant,
llvm::Value*>(llvm::Value* const&) + 24
9 opt 0x00000000007cb469 llvm::cast_retty<llvm::Constant,
llvm::Value*>::ret_type llvm::dyn_cast<llvm::Constant,
llvm::Value*>(llvm::Value* const&) + 21
10 opt 0x0000000000b4bfbe
11 opt 0x0000000000b5257e
12 opt 0x0000000000b5259d
13 opt 0x0000000000b52924
14 opt 0x0000000000b52a3c
15 opt 0x0000000000b52a81
16 opt 0x0000000000b52ad6
17 opt 0x0000000000b52b1b
18 opt 0x0000000000b53492
19 opt 0x0000000000b534eb
20 opt 0x0000000000b21168
llvm::FPPassManager::runOnFunction(llvm::Function&) + 336
21 opt 0x0000000000b2132f
llvm::FPPassManager::runOnModule(llvm::Module&) + 81
22 opt 0x0000000000b20e54
llvm::MPPassManager::runOnModule(llvm::Module&) + 372
23 opt 0x0000000000b22c83 llvm::PassManagerImpl::run(llvm::Module&)
+ 111
24 opt 0x0000000000b22ce5 llvm::PassManager::run(llvm::Module&) +
33
25 opt 0x00000000007a27c2 main + 3488
26 libc.so.6 0x00007fc9c1b331c4 __libc_start_main + 244
27 opt 0x0000000000794619
bugpoint crashes too
--
Configure 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