[cfe-commits] Alignment of return from __builtin_alloca

Joerg Sonnenberger joerg at britannica.bec.de
Thu Jun 7 14:40:41 PDT 2012


On Thu, Jun 07, 2012 at 02:23:13PM -0700, David Sehr wrote:
> I have recently been debugging a failure with one of the tests from
> the gcc torture test suite and discovered that gcc and llvm seem to
> differ on whether __builtin_alloca is aligned more than 0mod4 (gcc
> thinks it's aligned by what clang stores inTargetInfo::SuitableAlign).

It should ensure that the stack alignment invariance from the ABI is
honored. I don't think it should provide a stricter alignment.
Please be very careful when changing this to not violate the above.

Joerg



More information about the cfe-commits mailing list