VECTOR_TYPE fixes for aliasing, and dwarf2 output.
authorDaniel Berlin <dberlin@redhat.com>
Fri, 5 Jan 2001 17:22:30 +0000 (17:22 +0000)
committerDaniel Berlin <dberlin@gcc.gnu.org>
Fri, 5 Jan 2001 17:22:30 +0000 (17:22 +0000)
From-SVN: r38715

gcc/ChangeLog
gcc/c-common.c
gcc/dwarf2out.c

index 7ca0a8e2f5582939facc7041c59de8cd6a56bd21..7c0c7150f52c26ef4080f059341c91d98424d7ca 100644 (file)
@@ -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
index 577aa20c776a92d3e8b96537448fe7c3aa5fac5b..032837300ba13dbc05de7b6d44e391e08059bf3f 100644 (file)
@@ -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
index dabf0d13ffd0f0aeca49091a05b5702ddb75f572..66d7607fa70530aed1646c1018b22eda985a1ab5 100644 (file)
@@ -7341,6 +7341,7 @@ is_base_type (type)
     case FILE_TYPE:
     case OFFSET_TYPE:
     case LANG_TYPE:
+    case VECTOR_TYPE:
       return 0;
 
     default: