This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: PATCH: PR target/35657: TDmode isn't aligned at 128bit when passing to a function
- From: "Kreitzer, David L" <david dot l dot kreitzer at intel dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>, Mark Mitchell <mark at codesourcery dot com>
- Cc: Uros Bizjak <ubizjak at gmail dot com>, Richard Guenther <richard dot guenther at gmail dot com>, Jan Hubicka <jh at suse dot cz>, GCC Patches <gcc-patches at gcc dot gnu dot org>, "Girkar, Milind" <milind dot girkar at intel dot com>, Jan Hubicka <hubicka at ucw dot cz>
- Date: Tue, 29 Apr 2008 17:04:15 -0700
- Subject: RE: PATCH: PR target/35657: TDmode isn't aligned at 128bit when passing to a function
- Accept-language: en-US
- Acceptlanguage: en-US
- References: <6dc9ffc80803270633v25be5051i90bf86a6a2182822@mail.gmail.com> <5787cf470803270702o76651c11gb9ef9eea338fe3e8@mail.gmail.com> <20080327143353.GR4732@kam.mff.cuni.cz> <84fc9c000803270940p54c47c3bg312311d5e5cb4f98@mail.gmail.com> <47EBDF4F.4050000@codesourcery.com> <6dc9ffc80803271103g72363d05se74349d083e3631e@mail.gmail.com> <5787cf470804282324t566fc0c1ke1f093f1aec7c766@mail.gmail.com> <48174AA7.2010207@codesourcery.com> <6dc9ffc80804291127j3fee515cm8f8443cdab0e47a1@mail.gmail.com>
Yes, I plan to write up a more formal ABI update by the end of the week, but the basic idea is that all three 8-byte scalar types should be treated the same for alignment purposes. This means that long long, double, and _Decimal64 are aligned to 4 bytes within structures and in the outgoing parameter block.
Thanks,
David Kreitzer
IA-32/Intel(R) 64 Code Generation
Intel Compiler Lab
-----Original Message-----
From: H.J. Lu [mailto:hjl.tools@gmail.com]
Sent: Tuesday, April 29, 2008 2:27 PM
To: Mark Mitchell
Cc: Uros Bizjak; Richard Guenther; Jan Hubicka; GCC Patches; Girkar, Milind; Jan Hubicka; Kreitzer, David L
Subject: Re: PATCH: PR target/35657: TDmode isn't aligned at 128bit when passing to a function
Hi,
We are investigating ia32 Linux ABI update for all the new H/W and S/W
features. We want consistent alignment for all 8 byte types. That is to
align them to 4 byte. David has an update for ia32 Linux psABI to address
this.
David, can you post a formal ia32 ABI update on alignment of 8 byte
types to ia32 psABI group?
Thanks.
H.J.
On Tue, Apr 29, 2008 at 9:19 AM, Mark Mitchell <mark@codesourcery.com> wrote:
> Uros Bizjak wrote:
>
>
> > Has the conclusion w.r.t. to TDmode alignment been reached? Looking
> > into the thread at [1], I don't think that we have authoritative
> > answer on this issue. I think that to avoid possible ABI
> > incompatibilities with future gcc versions, this should be finalized
> > before 4.3.1 is released.
> >
>
> I agree. If we don't already have a P1 issue, please open one. We can
> always decide to downgrade it, but we shoudn't forget.
>
> Thanks,
>
>
>
> --
> Mark Mitchell
> CodeSourcery
> mark@codesourcery.com
> (650) 331-3385 x713
>
>