[Bug libgomp/78468] [7 regression] libgomp.c/reduction-10.c and many more FAIL
ebotcazou at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Nov 28 08:51:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78468
--- Comment #19 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> Another approach may be to make the middleend ask the backend for the actual
> value of REGNO_POINTER_ALIGN (VIRTUAL_STACK_DYNAMIC_REGNUM). Since on Sparc
> the address is always 4 mod 8, we'd get an additional gap for *each*
> alloca() if the size is still required to be a multiple of STACK_BOUNDARY.
I think that the patch is simply incorrect and should be reverted, it very
likely breaks other ports than PowerPC and SPARC and the failure more is quite
nasty.
IMO it's fundamentally backwards: instead of making it so that the alignment of
VIRTUAL_STACK_DYNAMIC_REGNUM is honored by every dynamic allocation, it assumes
that it is already honored to optimize the dynamic allocation.
More information about the Gcc-bugs
mailing list