expr.c (expand_assignment): Handle misaligned DECLs.
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 28 Aug 2019 10:18:23 +0000 (10:18 +0000)
committerBernd Edlinger <edlinger@gcc.gnu.org>
Wed, 28 Aug 2019 10:18:23 +0000 (10:18 +0000)
commit70cdb21e579191fe9f0f1d45e328908e59c0179e
tree87bd6c87d5f7ac587e7732bc7828111ec593e9ed
parente62506f36294bc26b9a64bcfd2464464ef784b72
expr.c (expand_assignment): Handle misaligned DECLs.

2019-09-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
    Richard Biener  <rguenther@suse.de>

* expr.c (expand_assignment): Handle misaligned DECLs.
(expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
* function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
too.
(assign_parm_setup_stack): Allocate properly aligned stack slots.
* varasm.c (build_constant_desc): Align constants of misaligned types.
* config/arm/predicates.md (aligned_operand): New predicate.
* config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
aligned_operand to check restrictions on memory addresses.
* config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
* config/arm/vec-common.md (mov<VALL>): Likewise.

Co-Authored-By: Richard Biener <rguenther@suse.de>
From-SVN: r274986
gcc/ChangeLog
gcc/config/arm/arm.md
gcc/config/arm/neon.md
gcc/config/arm/predicates.md
gcc/config/arm/vec-common.md
gcc/expr.c
gcc/function.c
gcc/varasm.c