From 604bb87de90164862b561526770dd9c265114971 Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Fri, 5 Jan 2001 17:22:30 +0000 Subject: [PATCH] VECTOR_TYPE fixes for aliasing, and dwarf2 output. From-SVN: r38715 --- gcc/ChangeLog | 7 +++++++ gcc/c-common.c | 6 +++++- gcc/dwarf2out.c | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7ca0a8e2f55..7c0c7150f52 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2001-01-05 Daniel Berlin + + * 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 * fixinc/mkfixinc.sh(vax-*-bsd): convert exit and atexit calls to diff --git a/gcc/c-common.c b/gcc/c-common.c index 577aa20c776..032837300ba 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 dabf0d13ffd..66d7607fa70 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: -- 2.30.2