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 COMMITTED: Change alias_set_type from HOST_WIDE_INT to int


Back here I started working on changing the type used for alias sets
from HOST_WIDE_INT to int:
    http://gcc.gnu.org/ml/gcc-patches/2007-08/msg00625.html

That got interrupted by stage 3.  I have now committed this patch to
complete the work.  This should cause the compiler to use marginally
less memory and run marginally faster.

Bootstrapped and tested on i686-pc-linux-gnu.

Ian


2008-03-05  Ian Lance Taylor  <iant@google.com>

	* alias.h (alias_set_type): Change from HOST_WIDE_INT to int.


Index: alias.h
===================================================================
--- alias.h	(revision 132963)
+++ alias.h	(working copy)
@@ -22,8 +22,13 @@ along with GCC; see the file COPYING3.  
 
 #include "coretypes.h"
 
-/* The type of an alias set.  */
-typedef HOST_WIDE_INT alias_set_type;
+/* The type of an alias set.  Code currently assumes that variables of
+   this type can take the values 0 (the alias set which aliases
+   everything) and -1 (sometimes indicating that the alias set is
+   unknown, sometimes indicating a memory barrier) and -2 (indicating
+   that the alias set should be set to a unique value but has not been
+   set yet).  */
+typedef int alias_set_type;
 
 extern alias_set_type new_alias_set (void);
 extern alias_set_type get_alias_set (tree);


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