From cf11aefc9126a841605e7a1c13ba907e13074b78 Mon Sep 17 00:00:00 2001 From: Duraid Madina Date: Sun, 6 Nov 2005 04:29:30 +0000 Subject: [PATCH] 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. llvm-svn: 24206 --- lib/Target/IA64/IA64TargetMachine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Target/IA64/IA64TargetMachine.cpp b/lib/Target/IA64/IA64TargetMachine.cpp index 3760f489b52..f62253db7b5 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());