summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-05-14 22:45:26 +0000
committerobrien <obrien@FreeBSD.org>2001-05-14 22:45:26 +0000
commit0983569edaffe5df7454b4a9059b16b6a61dd249 (patch)
treee0cb5f5410a4964edfd2387749793a380e6ba73e /contrib
parent9de7e180cbab0770de7744fd2b28277acbe601ae (diff)
downloadFreeBSD-src-0983569edaffe5df7454b4a9059b16b6a61dd249.zip
FreeBSD-src-0983569edaffe5df7454b4a9059b16b6a61dd249.tar.gz
Make it easy for people to use define DWARF2 exceptions unwinding.
If "WANT_DWARF2_UNWIND" you get it. Note that this is a different C++ ABI than the FreeBSD default. So you will need to recompile all your C++ apps that uses exceptions if you turn this on. I am adding it here for Yahoo!'s use and for those that want to be early adopters to what I will make as the default with the GCC 3.0 import.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/gcc/config/freebsd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/gcc/config/freebsd.h b/contrib/gcc/config/freebsd.h
index 13a099d..1b47acb 100644
--- a/contrib/gcc/config/freebsd.h
+++ b/contrib/gcc/config/freebsd.h
@@ -152,9 +152,14 @@ Boston, MA 02111-1307, USA. */
#undef HANDLE_SYSV_PRAGMA
#define HANDLE_SYSV_PRAGMA
+#ifdef WANT_DWARF2_UNWIND
/* FreeBSD ELF uses across the board will now use DWARF2 unwinding as the IA-64
psABI requires it. */
+#define DWARF2_UNWIND_INFO 1
+#else
+/* Maintain compatibility with the FreeBSD {3,4}.x C++ ABI. */
#define DWARF2_UNWIND_INFO 0
+#endif
/* Do not use ``thunks'' to implement C++ vtables. This method still has
fatal bugs. Also, GCC 3.0 will have a new C++ ABI that may not even
OpenPOWER on IntegriCloud