This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [CFT] x64 SEH, test 2


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


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