[llvm-commits] CVS: llvm-gcc/libstdc++-v3/libsupc++/eh_term_handler.cc
Chris Lattner
lattner at cs.uiuc.edu
Fri Nov 19 09:42:28 PST 2004
Changes in directory llvm-gcc/libstdc++-v3/libsupc++:
eh_term_handler.cc updated: 1.3 -> 1.4
---
Log message:
Change from the default terminate handler to use abort. This makes is so
that any program that uses EH will not have to pull in all of the string
libraries and demangler and a ton of other stuff from libstdc++. Yaay
for link times. :)
---
Diffs of the changes: (+2 -2)
Index: llvm-gcc/libstdc++-v3/libsupc++/eh_term_handler.cc
diff -u llvm-gcc/libstdc++-v3/libsupc++/eh_term_handler.cc:1.3 llvm-gcc/libstdc++-v3/libsupc++/eh_term_handler.cc:1.4
--- llvm-gcc/libstdc++-v3/libsupc++/eh_term_handler.cc:1.3 Thu Feb 5 10:05:49 2004
+++ llvm-gcc/libstdc++-v3/libsupc++/eh_term_handler.cc Fri Nov 19 11:42:14 2004
@@ -37,13 +37,13 @@
to "std::abort", and rebuilding the library. In a freestanding mode, we
default to this latter approach. */
-#if ! _GLIBCXX_HOSTED
+#if ! _GLIBCXX_HOSTED || __llvm__
# include <cstdlib>
#endif
/* The current installed user handler. */
std::terminate_handler __cxxabiv1::__terminate_handler =
-#if _GLIBCXX_HOSTED
+#if _GLIBCXX_HOSTED && !__llvm__
__gnu_cxx::__verbose_terminate_handler;
#else
std::abort;
More information about the llvm-commits
mailing list