gcc/gcc ChangeLog.struct-reorg struct-reorg.c

ctice@gcc.gnu.org ctice@gcc.gnu.org
Wed Jun 15 18:27:00 GMT 2005


CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	struct-reorg-branch
Changes by:	ctice@gcc.gnu.org	2005-06-15 18:27:26

Modified files:
	gcc            : ChangeLog.struct-reorg struct-reorg.c 

Log message:
	More minor bug fixes and upgrades to struct-reorg optimization.
	
	2005-06-15  Caroline Tice  <ctice@apple.com>
	
	* struct-reorg.c (find_and_substitute_types_and_vars): Use
	equivalent_types_p, instead of ==, to compare types.
	(recursively_copy_node): New function.
	(build_new_stmts):  Replace call to copy_node with call to
	recursively_copy_node; properly initialize decl.rtl for new decls.
	(collect_struct_use_data):  Fix bug that assumed base addresses would
	not be used directly in addition exprs.
	(is_recursive_struct):  Add check for pointer-fields named "next".
	(do_reorg):  Remove hack that turned off tree_sra; rearrange logic
	that decides which reorganization to perform.
	(program_redefines_malloc_p): New function.
	(reorg_structs): Add test that disables struct reorg optimization if
	program_redefines_malloc_p returns true.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.struct-reorg.diff?cvsroot=gcc&only_with_tag=struct-reorg-branch&r1=1.1.2.37&r2=1.1.2.38
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/struct-reorg.c.diff?cvsroot=gcc&only_with_tag=struct-reorg-branch&r1=1.1.2.26&r2=1.1.2.27



More information about the Gcc-cvs mailing list