This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] [PATCH] 32-bit pointers in x86-64
- From: "Andrew Pinski" <pinskia at gmail dot com>
- To: "Jan Beulich" <jbeulich at novell dot com>
- Cc: Luca <luca dot b633 at gmail dot com>, gcc at gcc dot gnu dot org, binutils at sourceware dot org, linux-kernel at vger dot kernel dot org
- Date: Wed, 5 Dec 2007 02:48:07 -0800
- Subject: Re: [RFC] [PATCH] 32-bit pointers in x86-64
- References: <1ba5638c0711250829o416e3ccasba572d3c205ea7f4@mail.gmail.com> <de8d50360711251045l4566f894m92fbb32d00fa362@mail.gmail.com> <47567DF8.76E4.0078.0@novell.com>
On 12/5/07, Jan Beulich <jbeulich@novell.com> wrote:
> >>> "Andrew Pinski" <pinskia@gmail.com> 25.11.07 19:45 >>>
> >On 11/25/07, Luca <luca.b633@gmail.com> wrote:
> >> 7.1. Add __attribute__((pointer_size(XXX))) and #pragma pointer_size
> >> to allow 64-bit pointers in 32-bit mode and viceversa
> >
> >This is already there, try using __attribute__((mode(DI) )).
>
> Hmm, unless this is a new feature in 4.3, I can't seem to get this to work on
> either i386 (using mode DI) or x86-64 (using mode SI). Could you clarify?
This only works when you add support for the different pointer modes.
I was saying the middle support for this feature was already there,
just the target support was not.
Also there are issues with mode on pointers for C++, I don't know what
they are though.
Note this feature is used on the s390 target and also the ia64-hpux targets.
--Pinski