re PR tree-optimization/50444 (-ftree-sra ignores alignment)
authorRichard Guenther <rguenther@suse.de>
Fri, 27 Jan 2012 14:54:37 +0000 (14:54 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 27 Jan 2012 14:54:37 +0000 (14:54 +0000)
commit223453574e2860830258588ce0104d8971c43ee3
treedafa0ce7d5bb9bfc0cf46d5f2fb1426c73e95f91
parente08120b1ffde961adf63c2cc95f0416690a17bae
re PR tree-optimization/50444 (-ftree-sra ignores alignment)

2012-01-27  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/50444
* expr.c (mem_ref_refers_to_non_mem_p): New function.
(expand_assignment): Use it.  Properly handle misaligned
bases when expanding stores to component references.
(expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
refactor that case.

From-SVN: r183629
gcc/ChangeLog
gcc/expr.c