r132264 - in /trunk/gcc: ChangeLog testsuite/Ch...

jakub@gcc.gnu.org jakub@gcc.gnu.org
Tue Feb 12 18:35:00 GMT 2008


Author: jakub
Date: Tue Feb 12 18:35:05 2008
New Revision: 132264

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132264
Log:
	PR c++/35144
	* tree-sra.c (sra_build_assignment): fold_convert SRC if copying
	non-compatible pointers.
	(generate_element_copy): If SRC and DST are RECORD_TYPEs with
	different FIELD_DECLs, try harder by comparing field offsets, sizes
	and types.

	* g++.dg/tree-ssa/pr35144.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/tree-ssa/pr35144.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-sra.c



More information about the Gcc-cvs mailing list