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]

[PATCH]: Fix aliasing for VECTOR_TYPE's



This patch informs alias analysis that we have no idea what vector types
alias, since, well, we don't (at least, right now, anyway).

I think this is the right place to put it, or should it go in
get_alias_set itself? 
I just followed where most of the code like it had been placed.

--Dan

*** /boot/home/write/egcs/gcc/c-common.c	Tue Jan  2 02:04:52 2001
--- c-common.c	Wed Jan  3 14:21:04 2001
*************** lang_get_alias_set (t)
*** 5016,5021 ****
--- 5016,5025 ----
  {
    tree u;
   
+   /* We know nothing about vector types */
+   if (TREE_CODE (t) == VECTOR_TYPE)
+ 	  return 0;
+   
    /* Permit type-punning when accessing a union, provided the access
       is directly through the union.  For example, this code does not
       permit taking the address of a union member and then storing


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