aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuraid Madina <duraid@octopus.com.au>2005-11-06 04:29:30 +0000
committerDuraid Madina <duraid@octopus.com.au>2005-11-06 04:29:30 +0000
commit21687e8f63cfe095a2c81b0d3a344edb1df8289f (patch)
tree28c8af4008a96898fc383dd345b4ce072eb0172e
parent49b1602a401c7f8d309150b52f406b6f55e00b84 (diff)
ask for 16-byte aligned jmpbufs. This should unbreak C++ on IA64 (and
a bunch of other things) but is currently ignored by the code generator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24206 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/IA64/IA64TargetMachine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/IA64/IA64TargetMachine.cpp b/lib/Target/IA64/IA64TargetMachine.cpp
index 3760f489b5..f62253db7b 100644
--- a/lib/Target/IA64/IA64TargetMachine.cpp
+++ b/lib/Target/IA64/IA64TargetMachine.cpp
@@ -92,7 +92,8 @@ bool IA64TargetMachine::addPassesToEmitFile(PassManager &PM,
PM.add(createLowerGCPass());
// FIXME: Implement the invoke/unwind instructions!
- PM.add(createLowerInvokePass());
+ PM.add(createLowerInvokePass(704, 16)); // on ia64 linux, jmpbufs are 704
+ // bytes and must be 16byte aligned
// FIXME: Implement the switch instruction in the instruction selector!
PM.add(createLowerSwitchPass());