[Gc] sun solaris and C++ bug

Boehm, Hans hans.boehm at hp.com
Fri Jan 20 14:56:29 PST 2006


This is partially, but not completely, fixed in my version.  I expect
the best workaround is to remove the entire

#if defined(sparc) ...

block including the offending code from gc.h.  The comment states that
this works around a Solaris 2.4 bug, which probably just isn't that
interesting anymore.  Let me know whether you run into any problems with
that approach.

I put an alternate fix in my tree for now, but it's getting sufficiently
messy that I would rather just rip this out.  (Trying to mix C++ with
K&R C just isn't much fun, especially since I can't test this code at
the moment.)


> -----Original Message-----
> From: gc-bounces at napali.hpl.hp.com 
> [mailto:gc-bounces at napali.hpl.hp.com] On Behalf Of Sean Middleditch
> Sent: Friday, January 20, 2006 12:35 PM
> To: gc at napali.hpl.hp.com
> Subject: [Gc] sun solaris and C++ bug
> With GC version 6.6, the GC_INIT macro breaks when compiling 
> a C++ app on a Sparc machine w/ Solaris 9.
> Basically, the "extern end, etext;" is illegal C++ and 
> GC_noop isn't declared anywhere.
> (Please CC me on replies, I'm not subscribed.)
> -- 
> Sean Middleditch <smiddle at twp.ypsilanti.mi.us>
> Charter Township of Ypsilanti
> _______________________________________________
> Gc mailing list
> Gc at linux.hpl.hp.com 
> https://www.hpl.hp.com/hosted/linux/mail-archives/gc/

More information about the Gc mailing list