This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] boehm-gc remove darwin hack
- From: Ranjit Mathew <rmathew at hotmail dot com>
- To: "Boehm, Hans" <hans_boehm at hp dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, Java Patch List <java-patches at gcc dot gnu dot org>
- Date: Wed, 31 Dec 2003 13:07:47 +0530
- Subject: Re: [patch] boehm-gc remove darwin hack
- References: <0C3EFB691636964BBF914AE56AE83A89501EAC@hplex4.hpl.hp.com>
Boehm, Hans wrote:
> If I understand this correctly, It makes sense to leave this as is.
> (Except that I just added a comment to the upstream source stating
> that the __private_extern__ hack is required only for pre-3.4 gcc.)
>
> If I remove it from the upstream source, it breaks when built by itself
> with an older gcc. If we remove it just from the gcc tree, we get a
> divergence that's not strictly necessary. The package already contains lots
> of code that's not strictly useful in the gcc tree and is never built in
> that context.
Hans, can't we use the GCC pre-defined macros __GNUC__
and __GNUC_MINOR__ to hack around this problem?
http://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
Or am I missing something here?
Ranjit.
--
Ranjit Mathew Email: rmathew AT hotmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.tripod.com/