summaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authoredlinger <edlinger@138bc75d-0d04-0410-961f-82ee72b054a4>2015-12-16 15:24:52 +0000
committeredlinger <edlinger@138bc75d-0d04-0410-961f-82ee72b054a4>2015-12-16 15:24:52 +0000
commit9ff935787b3a1703268d7124a605c35ea55cc242 (patch)
tree9a47275e020c2ab35a867b5e38ae6c8fd160ac05 /libgcc
parent5ca941ee3644b5ba4555cb72c53a043add2f05bb (diff)
downloadlinaro-gcc-9ff935787b3a1703268d7124a605c35ea55cc242.tar.gz
linaro-gcc-9ff935787b3a1703268d7124a605c35ea55cc242.tar.bz2
linaro-gcc-9ff935787b3a1703268d7124a605c35ea55cc242.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231697 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/ChangeLog5
-rw-r--r--libgcc/unwind-generic.h4
2 files changed, 6 insertions, 3 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 6c73ab852b7..f6f030b76dc 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -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
diff --git a/libgcc/unwind-generic.h b/libgcc/unwind-generic.h
index a51ffd6b6c3..8276c2d7b96 100644
--- a/libgcc/unwind-generic.h
+++ b/libgcc/unwind-generic.h
@@ -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;
}