[Gc] Fwd: Re[2]: PATCH: Add x32 support to boehm-gc

Ivan Maidanski ivmai at mail.ru
Tue May 1 08:20:14 PDT 2012


Hi H.J.,

I've applied your patches both to bdwgc and libatomic_ops (and both to master and release branches).

Regards.

Mon, 30 Apr 2012 16:44:32 -0700 "H.J. Lu" <hjl.tools at gmail.com>:
> On Mon, Apr 30, 2012 at 3:52 PM, Boehm, Hans <hans.boehm at hp.com> wrote:
> > It's better to send them both to the GC mailing list, gc at linux.hpl.hp.com.  But I don't recall seeing them there, and I also couldn't find them in the archives.  Ivan has been taking care of most of the maintenance, and has generally been acting as gatekeeper.
> 
> I did it on April 16:
> 
> ----
> Date: Mon, 16 Apr 2012 09:37:30 -0700
> From: "H.J. Lu" <hongjiu.lu at intel.com>
> To: "H.J. Lu" <hjl.tools at gmail.com>
> Cc: Hans_Boehm at hp.com, gc at linux.hpl.hp.com
> Subject: [libatomic_ops] PATCH: Add x32 support
> User-Agent: Mutt/1.5.21 (2010-09-15)
> 
> Hi,
> 
> Here are 2 small patches to add x32 support to libatomic_ops.  X32 info
> can be found at
> 
> https://sites.google.com/site/x32abi/
> ....
> 
> H.J.
> > Hans
> >
> >> -----Original Message-----
> >> From: H.J. Lu [mailto:hjl.tools at gmail.com]
> >> Sent: Monday, April 30, 2012 2:55 PM
> >> To: Boehm, Hans
> >> Cc: Ivan Maidanski
> >> Subject: Re: PATCH: Add x32 support to boehm-gc
> >>
> >> On Mon, Apr 30, 2012 at 2:17 PM, Boehm, Hans <hans.boehm at hp.com> wrote:
> >> > H.J. -
> >> >
> >> > I can't find the earlier message.
> >> >
> >> > Ivan - Did you get it?
> >> >
> >> > I also only see one patch here.
> >>
> >> Here are 2 patches for bdwgc.  I also submitted 2 x32 patches for
> >> libatomic_ops.  Please let me know if I should also send 2
> >> libatomic_ops patches to you.
> >>
> >> Thanks.
> >>
> >> H.J.
> >> --
> >> > What I see here looks uncontroversial, in spite of the fact that I'm
> >> not a fan of a third x86 Linux ABI.
> >> >
> >> > Hans
> >> >
> >> >> -----Original Message-----
> >> >> From: H.J. Lu [mailto:hongjiu.lu at intel.com]
> >> >> Sent: Sunday, April 29, 2012 10:28 AM
> >> >> To: gcc-patches at gcc.gnu.org
> >> >> Cc: hboehm at gcc.gnu.org
> >> >> Subject: PATCH: Add x32 support to boehm-gc
> >> >>
> >> >> Hi,
> >> >>
> >> >> This patch adds x32 support to boehm-gc.  The same patch has been
> >> >> sent to the boehm-gc mailing list. Tested on Linux/x32 and
> >> Linux/x86-
> >> >> 64.
> >> >> OK for trunk?
> >> >>
> >> >> Thanks.
> >> >>
> >> >>
> >> >> H.J.
> >> >> ----- Forwarded message from "H.J. Lu" <hongjiu.lu at intel.com> -----
> >> >> Date: Mon, 16 Apr 2012 09:39:20 -0700
> >> >> From: "H.J. Lu" <hongjiu.lu at intel.com>
> >> >> To: "H.J. Lu" <hjl.tools at gmail.com>
> >> >> Cc: Hans_Boehm at hp.com, gc at linux.hpl.hp.com
> >> >> Subject: [bdwgc] PATCH: Add x32 support
> >> >> User-Agent: Mutt/1.5.21 (2010-09-15)
> >> >>
> >> >> Hi,
> >> >>
> >> >> Here are 2 small patches to add x32 support to bdwgc.  X32 info can
> >> >> be found at
> >> >>
> >> >> https://sites.google.com/site/x32abi/
> >> >>
> >> >> They are fully tested on Linux/x32 and Linux/x86-64.
> >> >>
> >> >> Thanks.
> >> >>
> >> >>
> >> >> H.J.
> >> >> ---
> >> >> From 16ea9de35f16f0859c40862f8ef310c0dde6082c Mon Sep 17 00:00:00
> >> >> 2001
> >> >> From: "H.J. Lu" <hjl.tools at gmail.com>
> >> >> Date: Mon, 16 Apr 2012 09:26:07 -0700
> >> >> Subject: [PATCH 1/2] Define ALIGNMENT and CPP_WORDSZ for x32
> >> >>
> >> >>       * include/private/gcconfig.h: (ALIGNMENT): Set to 4 for x32.
> >> >>       (CPP_WORDSZ): Set to 32 for x32.
> >> >> diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h
> >> >> index a163e47..918d100 100644
> >> >> --- a/include/private/gcconfig.h
> >> >> +++ b/include/private/gcconfig.h
> >> >> @@ -2117,8 +2117,13 @@
> >> >>
> >> >>  # ifdef X86_64
> >> >>  #   define MACH_TYPE "X86_64"
> >> >> -#   define ALIGNMENT 8
> >> >> -#   define CPP_WORDSZ 64
> >> >> +#   ifdef __ILP32__
> >> >> +#     define ALIGNMENT 4
> >> >> +#     define CPP_WORDSZ 32
> >> >> +#   else
> >> >> +#     define ALIGNMENT 8
> >> >> +#     define CPP_WORDSZ 64
> >> >> +#   endif
> >> >>  #   ifndef HBLKSIZE
> >> >>  #     define HBLKSIZE 4096
> >> >>  #   endif
> >> >> --
> >> >> 1.7.6.5
> >> >
> >>
> >>
> >>
> >> --
> >> H.J.
> 
> 
> 
> -- 
> H.J.
> 
----------------



More information about the Gc mailing list