ask for 16-byte aligned jmpbufs. This should unbreak C++ on IA64 (and
authorDuraid Madina <duraid@octopus.com.au>
Sun, 6 Nov 2005 04:29:30 +0000 (04:29 +0000)
committerDuraid Madina <duraid@octopus.com.au>
Sun, 6 Nov 2005 04:29:30 +0000 (04:29 +0000)
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

lib/Target/IA64/IA64TargetMachine.cpp

index 3760f489b52763319024f243641d988052da0b21..f62253db7b5dc8ba1f6bc451af65373e426892ee 100644 (file)
@@ -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());