re PR middle-end/64516 (arm: wrong unaligned load generated)
authorRichard Biener <rguenther@suse.de>
Mon, 13 Jun 2016 07:34:45 +0000 (07:34 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 13 Jun 2016 07:34:45 +0000 (07:34 +0000)
commitf57f53d3a5a0b18fdf5cef76247aed5f4b1e5610
tree67f378aa91a113aa2504bf2746b17d80db874e88
parentf423253bd71fe25fc97e9aef002e33dd1619f0d4
re PR middle-end/64516 (arm: wrong unaligned load generated)

2016-06-13  Richard Biener  <rguenther@suse.de>

PR middle-end/64516
* fold-const.c (fold_unary_loc): Preserve alignment when
folding a VIEW_CONVERT_EXPR into a MEM_REF.

* gcc.dg/align-3.c: New testcase.

From-SVN: r237355
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/align-3.c [new file with mode: 0644]