[LLVMbugs] [Bug 7716] New: GlobalMerge pass breaks ARM EH info

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 26 11:05:18 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7716

           Summary: GlobalMerge pass breaks ARM EH info
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: daniel at zuster.org
                CC: llvmbugs at cs.uiuc.edu


Clang is failing on ctor_dtor_count-2 and many other tests in the LLVM test
suite. This is a regression starting with r109359:
--
ddunbar at ozzy-3:EH (master)$ rm -rf Output && mkdir Output && clang++ -O3 -mllvm
-disable-llvm-optzns -mthumb -arch armv7 -fomit-frame-pointer -mdynamic-no-pic
-c ctor_dtor_count-2.cpp -o Output/ctor_dtor_count-2.bc -emit-llvm && opt
-std-compile-opts -std-link-opts Output/ctor_dtor_count-2.bc -o
Output/ctor_dtor_count-2.linked.bc && llc -asm-verbose=false
-enable-correct-eh-support -O3 -mcpu cortex-a8 -relocation-model pic
Output/ctor_dtor_count-2.linked.bc -o /dev/null
Assertion failed: ((GV || isa<ConstantPointerNull>(V)) && "TypeInfo must be a
global variable or NULL"), function ExtractTypeInfo, file
/Volumes/Data/ddunbar/llvm/lib/CodeGen/Analysis.cpp, line 121.
0  llc               0x0000000100be5ab5 PrintStackTrace(void*) + 53
1  llc               0x0000000100be5fd3 SignalHandler(int) + 371
2  libSystem.B.dylib 0x00007fff83ead35a _sigtramp + 26
3  libSystem.B.dylib 0x00007fff83e520aa tiny_malloc_from_free_list + 1196
4  libSystem.B.dylib 0x00007fff83f289b4 __pthread_markcancel + 0
5  llc               0x000000010068acd1 llvm::ExtractTypeInfo(llvm::Value*) +
385
6  llc               0x00000001004865a2 llvm::AddCatchInfo(llvm::CallInst
const&, llvm::MachineModuleInfo*, llvm::MachineBasicBlock*) + 978
7  llc               0x00000001005a44d3
llvm::SelectionDAGBuilder::visitIntrinsicCall(llvm::CallInst const&, unsigned
int) + 7619
8  llc               0x00000001005824df
llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) + 367
9  llc               0x000000010057c4d9
llvm::SelectionDAGBuilder::visit(unsigned int, llvm::User const&) + 1033
10 llc               0x000000010057ba10
llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) + 128
11 llc               0x00000001005c66c3
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 179
12 llc               0x00000001005c6443
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1891
13 llc               0x00000001005c543a
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 842
14 llc               0x0000000100715b21
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 97
15 llc               0x0000000100aec9c5
llvm::FPPassManager::runOnFunction(llvm::Function&) + 389
16 llc               0x0000000100aecd41
llvm::FPPassManager::runOnModule(llvm::Module&) + 129
17 llc               0x0000000100aecf79
llvm::MPPassManager::runOnModule(llvm::Module&) + 473
18 llc               0x0000000100aed6c9
llvm::PassManagerImpl::run(llvm::Module&) + 185
19 llc               0x0000000100aedb1d llvm::PassManager::run(llvm::Module&) +
29
20 llc               0x0000000100001ad4 main + 2900
21 llc               0x0000000100000f34 start + 52
Stack dump:
0.    Program arguments: llc -asm-verbose=false -enable-correct-eh-support -O3
-mcpu cortex-a8 -relocation-model pic Output/ctor_dtor_count-2.linked.bc -o
/dev/null 
1.    Running pass 'Function Pass Manager' on module
'Output/ctor_dtor_count-2.linked.bc'.
2.    Running pass 'ARM Instruction Selection' on function '@main'
Abort trap
ddunbar at ozzy-3:EH (master)$ 
--

-- 
Configure 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