This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH]: Fix aliasing for VECTOR_TYPE's
- To: gcc-patches at gcc dot gnu dot org
- Subject: [PATCH]: Fix aliasing for VECTOR_TYPE's
- From: Daniel Berlin <dan at www dot cgsoftware dot com>
- Date: Wed, 3 Jan 2001 15:12:54 -0500 (EST)
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