[llvm-commits] llvm-gcc: generate itanium style exception handling code

Duncan Sands baldrick at free.fr
Sun Jul 8 03:30:58 PDT 2007


This patch causes llvm-gcc to output itanium style exception handling
code.  It does not turn on zero cost exceptions (they cannot be turned
on until llvm-gcc is capable of correctly building the unwinder in the
runtime library - this is PR1379).  Tested by bootstrapping the compiler
and running the entire testsuite.  There were no regressions.

Ciao,

Duncan.

Index: gcc.llvm/gcc/llvm-convert.cpp
===================================================================
--- gcc.llvm.orig/gcc/llvm-convert.cpp	2007-07-06 15:22:45.000000000 +0200
+++ gcc.llvm/gcc/llvm-convert.cpp	2007-07-06 15:23:01.000000000 +0200
@@ -63,7 +63,7 @@
 extern int get_pointer_alignment (tree exp, unsigned int max_align);
 }
 
-//#define ITANIUM_STYLE_EXCEPTIONS
+#define ITANIUM_STYLE_EXCEPTIONS
 
 //===----------------------------------------------------------------------===//
 //                   Matching LLVM Values with GCC DECL trees



More information about the llvm-commits mailing list