[Bug target/77728] [5/6/7/8 Regression] Miscompilation multiple vector iteration on ARM
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Apr 25 16:47:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77728
--- Comment #45 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Apr 25 16:46:34 2017
New Revision: 247258
URL: https://gcc.gnu.org/viewcvs?rev=247258&root=gcc&view=rev
Log:
PR target/77728
* config/arm/arm.c: Include gimple.h.
(aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
returns negative, increment ncrn only if it returned positive.
(arm_needs_doubleword_align): Return int instead of bool,
ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
members, but if there is any such non-FIELD_DECL
> PARM_BOUNDARY aligned decl, return -1 instead of false.
(arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
returns negative, increment nregs only if it returned positive.
(arm_setup_incoming_varargs): Likewise.
(arm_function_arg_boundary): Emit -Wpsabi note if
arm_needs_doubleword_align returns negative, return
DOUBLEWORD_ALIGNMENT only if it returned positive.
testsuite/
* g++.dg/abi/pr77728-1.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/abi/pr77728-1.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/arm/arm.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list