This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Check for availability of backtrace() for boehm-gc on uClibc


Hi,

uClibc does not currently have support for backtrace(). Iff support
would be added, then we would hint that via __UCLIBC_HAS_BACKTRACE__.

We are carrying this snippet since about 4.0.0 now. I fear that boem-gc
upstream != gcc, though?

boehm-gc/ChangeLog:
2008-10-07  Bernhard Reutner-Fischer  <>

	* include/gc.h (GC_HAVE_BUILTIN_BACKTRACE): Add check for
	__UCLIBC_HAS_BACKTRACE__.

Ok for trunk?
--- gcc-4.0.0/boehm-gc/include/gc.h-orig	2005-04-28 22:28:57.000000000 -0500
+++ gcc-4.0.0/boehm-gc/include/gc.h	2005-04-28 22:30:38.000000000 -0500
@@ -500,7 +500,7 @@
 #ifdef __linux__
 # include <features.h>
 # if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 || __GLIBC__ > 2) \
-     && !defined(__ia64__)
+     && !defined(__ia64__) || defined(__UCLIBC_HAS_BACKTRACE__)
 #   ifndef GC_HAVE_BUILTIN_BACKTRACE
 #     define GC_HAVE_BUILTIN_BACKTRACE
 #   endif

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]