On 21 Jun 2016 21:10, Jeff Law wrote:
> On 06/21/2016 06:59 PM, Mike Frysinger wrote:
> > On 21 Jun 2016 15:46, Jeff Law wrote:
> >
> >> If accepted into upstream Boehm-GC, then this is obviously acceptable in
> >> GCC's copy.
> >
> > so changes can be pushed directly if it's already in upstream ?
> > my original goal is already fixed in upstream, but it's not in
> > gcc's copy ...
> 
> Yes.  Ideally we'd just resync at some point in the near future, but if 
> you want to cherry-pick a fix from upstream so it gets fixed sooner, 
> that's fine.

great, then i'll cherry pick the fix as it was merged upstream,
and pursue the updated version via upstream's github.
-mike
From cc481b795b819595d2d1a5d671448c9894d1f05c Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vap...@gentoo.org>
Date: Wed, 22 Jun 2016 10:04:18 -0400
Subject: [PATCH] boehm-gc: pull in upstream fix for uClibc

2007-12-18  Hans Boehm <hans.bo...@hp.com> (really Radek Polak)

	* include/gc.h: Don't define GC_HAVE_BUILTIN_BACKTRACE for uclibc.
---
 boehm-gc/ChangeLog    | 4 ++++
 boehm-gc/include/gc.h | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog
index 6896c67b757a..208b18efd4ea 100644
--- a/boehm-gc/ChangeLog
+++ b/boehm-gc/ChangeLog
@@ -1,3 +1,7 @@
+2016-06-22  Mike Frysinger  <vap...@gentoo.org>
+
+	* include/gc.h: Don't define GC_HAVE_BUILTIN_BACKTRACE for uclibc.
+
 2016-03-29  Samuel Thibault  <samuel.thiba...@ens-lyon.org>
 
 	* configure.host: Set gc_use_mmap on *-kfreebsd-gnu* and *-gnu*.
diff --git a/boehm-gc/include/gc.h b/boehm-gc/include/gc.h
index 6b38f2d0e6ca..fca98ffb61d5 100644
--- a/boehm-gc/include/gc.h
+++ b/boehm-gc/include/gc.h
@@ -503,7 +503,7 @@ GC_API GC_PTR GC_malloc_atomic_ignore_off_page GC_PROTO((size_t lb));
 #if defined(__linux__) || defined(__GLIBC__)
 # include <features.h>
 # if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 || __GLIBC__ > 2) \
-     && !defined(__ia64__)
+     && !defined(__ia64__) && !defined(__UCLIBC__)
 #   ifndef GC_HAVE_BUILTIN_BACKTRACE
 #     define GC_HAVE_BUILTIN_BACKTRACE
 #   endif
-- 
2.8.2

Attachment: signature.asc
Description: Digital signature

Reply via email to