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] Pack alias_set_entry


With Ians change of alias_set_type to int this shrinks the size 
of the structure by 8 bytes on x86_64.  Committed as obvious.

Richard.

2008-03-06  Richard Guenther  <rguenther@suse.de>

	* alias.c (struct alias_set_entry): Move has_zero_child field
	to pack with alias_set.

Index: alias.c
===================================================================
*** alias.c	(revision 132966)
--- alias.c	(working copy)
*************** struct alias_set_entry GTY(())
*** 133,138 ****
--- 133,142 ----
    /* The alias set number, as stored in MEM_ALIAS_SET.  */
    alias_set_type alias_set;
  
+   /* Nonzero if would have a child of zero: this effectively makes this
+      alias set the same as alias set zero.  */
+   int has_zero_child;
+ 
    /* The children of the alias set.  These are not just the immediate
       children, but, in fact, all descendants.  So, if we have:
  
*************** struct alias_set_entry GTY(())
*** 141,150 ****
       continuing our example above, the children here will be all of
       `int', `double', `float', and `struct S'.  */
    splay_tree GTY((param1_is (int), param2_is (int))) children;
- 
-   /* Nonzero if would have a child of zero: this effectively makes this
-      alias set the same as alias set zero.  */
-   int has_zero_child;
  };
  typedef struct alias_set_entry *alias_set_entry;
  
--- 145,150 ----


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