]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2015-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
authoredlinger <edlinger@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Dec 2015 15:24:52 +0000 (15:24 +0000)
committeredlinger <edlinger@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Dec 2015 15:24:52 +0000 (15:24 +0000)
        * unwind-generic.h (_Unwind_GetTextRelBase): Call __builtin_abort
        instead of abort to avoid dependency on stdlib.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231697 138bc75d-0d04-0410-961f-82ee72b054a4

libgcc/ChangeLog
libgcc/unwind-generic.h

index 6c73ab852b7ec76d4a9e22752af66306f9010160..f6f030b76dc3305177580d2c229196dd1f4341a7 100644 (file)
@@ -1,3 +1,8 @@
+2015-12-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
+
+       * unwind-generic.h (_Unwind_GetTextRelBase): Call __builtin_abort
+       instead of abort to avoid dependency on stdlib.h.
+
 2015-12-09  John David Anglin  <danglin@gcc.gnu.org>
 
        * config/pa/fptr.c (__canonicalize_funcptr_for_compare): Remove code
index a51ffd6b6c3807fff47909a997173f19d81393f6..8276c2d7b960fc634182fb1f6e5f2acf0c91e7e7 100644 (file)
@@ -221,8 +221,6 @@ _Unwind_SjLj_Resume_or_Rethrow (struct _Unwind_Exception *);
    compatible with the standard ABI for IA-64, we inline these.  */
 
 #ifdef __ia64__
-#include <stdlib.h>
-
 static inline _Unwind_Ptr
 _Unwind_GetDataRelBase (struct _Unwind_Context *_C)
 {
@@ -233,7 +231,7 @@ _Unwind_GetDataRelBase (struct _Unwind_Context *_C)
 static inline _Unwind_Ptr
 _Unwind_GetTextRelBase (struct _Unwind_Context *_C __attribute__ ((__unused__)))
 {
-  abort ();
+  __builtin_abort ();
   return 0;
 }