[libcxxabi] r212232 - Fix a warning about undeclared call to abort().

Dan Albert danalbert at google.com
Wed Jul 2 15:44:35 PDT 2014


Author: danalbert
Date: Wed Jul  2 17:44:35 2014
New Revision: 212232

URL: http://llvm.org/viewvc/llvm-project?rev=212232&view=rev
Log:
Fix a warning about undeclared call to abort().

Modified:
    libcxxabi/trunk/src/Unwind/config.h

Modified: libcxxabi/trunk/src/Unwind/config.h
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/Unwind/config.h?rev=212232&r1=212231&r2=212232&view=diff
==============================================================================
--- libcxxabi/trunk/src/Unwind/config.h (original)
+++ libcxxabi/trunk/src/Unwind/config.h Wed Jul  2 17:44:35 2014
@@ -58,13 +58,15 @@
   #endif
 
 #else
-  // ARM EHABI.
+  #include <stdlib.h>
+
   static inline void assert_rtn(const char* func, const char* file, int line, const char* msg)  __attribute__ ((noreturn));
   static inline void assert_rtn(const char* func, const char* file, int line, const char* msg) {
     fprintf(stderr, "libunwind: %s %s:%d - %s\n",  func, file, line, msg);
     assert(false);
     abort();
   }
+
   #define _LIBUNWIND_BUILD_ZERO_COST_APIS (__i386__ || __x86_64__ || __arm64__ || __arm__)
   #define _LIBUNWIND_BUILD_SJLJ_APIS      0
   #define _LIBUNWIND_SUPPORT_FRAME_APIS   (__i386__ || __x86_64__)





More information about the cfe-commits mailing list