aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@redhat.com>2001-01-05 17:22:30 +0000
committerDaniel Berlin <dberlin@gcc.gnu.org>2001-01-05 17:22:30 +0000
commit604bb87de90164862b561526770dd9c265114971 (patch)
tree5c7d7acbe85dd8bb20134cf3638fd0e40b817f45
parent220bce48e55cf7c052b513e39b4da0df8346ed18 (diff)
downloadgcc-604bb87de90164862b561526770dd9c265114971.zip
gcc-604bb87de90164862b561526770dd9c265114971.tar.gz
gcc-604bb87de90164862b561526770dd9c265114971.tar.bz2
VECTOR_TYPE fixes for aliasing, and dwarf2 output.
From-SVN: r38715
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/c-common.c6
-rw-r--r--gcc/dwarf2out.c1
3 files changed, 13 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7ca0a8e..7c0c715 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2001-01-05 Daniel Berlin <dberlin@redhat.com>
+
+ * c-common.c (lang_get_alias_set): Say we know nothing of
+ VECTOR_TYPE aliasing.
+
+ * dwarf2out.c (is_base_type): Handle VECTOR_TYPE properly.
+
2001-01-05 Bruce Korb <bkorb@gnu.org>
* fixinc/mkfixinc.sh(vax-*-bsd): convert exit and atexit calls to
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 577aa20..0328373 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -5037,7 +5037,11 @@ lang_get_alias_set (t)
tree t;
{
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
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index dabf0d1..66d7607 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -7341,6 +7341,7 @@ is_base_type (type)
case FILE_TYPE:
case OFFSET_TYPE:
case LANG_TYPE:
+ case VECTOR_TYPE:
return 0;
default: