[Bug tree-optimization/50444] [4.6/4.7 Regression] -ftree-sra ignores alignment
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jan 27 15:12:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50444
--- Comment #17 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-27 14:54:44 UTC ---
Author: rguenth
Date: Fri Jan 27 14:54:37 2012
New Revision: 183629
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183629
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/expr.c
More information about the Gcc-bugs
mailing list