This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch][lto] remove var_decls from the size of structs


This fixes

void f(int a, struct {int b[a];} c) {}

OK for lto if bootstraps and tests are OK?
	
2008-06-26  Rafael Espindola  <espindola@google.com>

	Based on http://gcc.gnu.org/ml/gcc-patches/2007-11/msg00523.html
	and http://gcc.gnu.org/ml/gcc-patches/2008-03/msg00349.html

	* tree.c (decl_for_uid_map): New.
	(init_ttree): Initialize decl_for_uid_map.
	(make_node_stat): call insert_decl_to_uid_decl_map.
	(insert_decl_to_uid_decl_map): New.
	(reset_type_lang_specific): Handle RECORD_TYPE.
	(reset_lang_specific): New.
	(free_lang_specifics): Call reset_lang_specific.
	
Cheers,
-- 
Rafael Avila de Espindola

Google Ireland Ltd.
Gordon House
Barrow Street
Dublin 4
Ireland

Registered in Dublin, Ireland
Registration Number: 368047

Attachment: struct-size.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]