This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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]

Re: [patch] boehm-gc remove darwin hack


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/


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