r187558 - in /branches/google/gcc-4_6-mobile/vt...

ctice@gcc.gnu.org ctice@gcc.gnu.org
Tue May 15 21:30:00 GMT 2012


Author: ctice
Date: Tue May 15 21:29:59 2012
New Revision: 187558

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187558
Log:
Remove redundancy from class hierarchy and from
calls to register pairs.

2012-05-15  Caroline Tice  <cmtice@google.com>

        * gcc/cp/vtable-class-hierarchy.c (struct node2): Rename tree fields,
        add offset field. 'base_id' became 'base_map_var_decl';	'vptr_id'
        became 'vtable_decl'.
	(tree_two_key_insert): 	Renamed	function to 'tree_three_key_insert'.
        Added parameter	for third key. 	Modified code to insert	appropriately
        for three keys instead of two.
        (record_register_pairs): Renamed first two parameters, added third
        parameter.  Calculate offset value. Change call	to
	tree_two_key_insert to a call to tree_three_key_insert,	and pass
        offset as third	key.
        (register_vptr_fields):	 Remove	code that checks already_registered
        for ztt_decl. Add already_registered check inside loop.	Add
        val_vtbl_decl and used that for checks and messages instead of
        vtbl_var_decl.
        (register_other_binfo_vtables):	 Add already_registered check.
        (register_all_pairs):  Add third argument to call to
        record_register_pairs.
        (linked_list_insert):  Modify to check list for	class before
        inserting it; don't insert it if it's already in the list.



Modified:
    branches/google/gcc-4_6-mobile/vtable-security/ChangeLog.vtable-security
    branches/google/gcc-4_6-mobile/vtable-security/gcc/cp/vtable-class-hierarchy.c



More information about the Gcc-cvs mailing list