2014-05-15  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/61090
	* tree-sra.c (sra_modify_expr): Pass the current gsi to
	build_ref_for_model.

testsuite/
	* gcc.dg/tree-ssa/pr61090.c: New test.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210476 138bc75d-0d04-0410-961f-82ee72b054a4