This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [CFT] x64 SEH, test 2
- From: Olivier Hainque <hainque at adacore dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: ktietz70 at googlemail dot com, GCC Patches <gcc-patches at gcc dot gnu dot org>, hainque at adacore dot com
- Date: Wed, 18 Aug 2010 23:35:12 +0200
- Subject: Re: [CFT] x64 SEH, test 2
- References: <4C6C0CF4.6060608@redhat.com>
Richard Henderson wrote:
> We'll have to come up with some other mechanism to handle
> highly aligned user data. E.g. via alloca. Which reminds me,
> didn't the AdaCore folk contribute something along those lines
> once upon a time?
Hmm, we have the make_aligning_type circuitry in gigi (gcc-interface/decl.c)
for this purpose in Ada. This triggers for alignments > BIGGEST_ALIGNMENT
(assumes that things are fine up to that, counting on the stack realignment
for x86).
The general idea is to craft a record with a field whose offset expression
derives from the record's base address.
Olivier