[PATCH, PowerPC] ABI fixes / improvements for powerpc64-linux

Ulrich Weigand Ulrich.Weigand at de.ibm.com
Thu Jul 10 10:31:49 PDT 2014

Hal Finkel <hfinkel at anl.gov> wrote on 10.07.2014 17:40:34:

> > Indeed.  It seems the TargetInfo code should set the "Realign" flag
> > on the Indirect ABI node if the type alignment is larger than the
> > alignment in the parameter area; this is done on other platforms
> > but not on PowerPC right now.
> >
> > This will cause code to be generated that realigns the incoming
> > parameter.  I'll add that flag (and test cases) to the patch as
> > I commit it ...
> Thanks!

Patch to support aligned byval aggregates now committed as
revision 212743.

[ I have not committed the third patch yet.  Further testing on ELFv2
showed it causing bootstrap failures; it seems it doesn't work as I
had expected in some cases where optimizers re-write a local function's
argument list ...   I'll withdraw the patch for now, and try to come
up with something else as part of the ELFv2 patch set.   For ELFv1,
the patch was just an optimization anyway. ]


More information about the cfe-commits mailing list