summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authordberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-16 17:57:34 +0000
committerdberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-16 17:57:34 +0000
commit684b9d798479712b7ffc8094cd1867a16b984dbc (patch)
tree08e781385bd8b32d3c2729426f48f9357fb1c5f2 /gcc
parent02fe78e0195da69030c7f9c1c35a8a1914d85109 (diff)
downloadppe42-gcc-684b9d798479712b7ffc8094cd1867a16b984dbc.tar.gz
ppe42-gcc-684b9d798479712b7ffc8094cd1867a16b984dbc.zip
2001-01-16 Daniel Berlin <dberlin@redhat.com>
* cvt.c (ocp_convert): Handle vector type conversion * typeck2.c (digest_init): Handle vector type initializations git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39071 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/cvt.c2
-rw-r--r--gcc/cp/typeck2.c2
3 files changed, 8 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 4988985dcd4..e013065e390 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2001-01-16 Daniel Berlin <dberlin@redhat.com>
+
+ * cvt.c (ocp_convert): Handle vector type conversion
+ * typeck2.c (digest_init): Handle vector type initializations
+
2001-01-16 Phil Edwards <pme@sources.redhat.com>
* g++spec.c: Don't add libraries needlessly if -fsyntax-only
diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c
index 7936983c28a..ff7d4bc4cea 100644
--- a/gcc/cp/cvt.c
+++ b/gcc/cp/cvt.c
@@ -794,6 +794,8 @@ ocp_convert (type, expr, convtype, flags)
if (code == POINTER_TYPE || code == REFERENCE_TYPE
|| TYPE_PTRMEMFUNC_P (type))
return fold (cp_convert_to_pointer (type, e, 0));
+ if (code == VECTOR_TYPE)
+ return fold (convert_to_vector (type, e));
if (code == REAL_TYPE || code == COMPLEX_TYPE)
{
if (IS_AGGR_TYPE (TREE_TYPE (e)))
diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c
index 5cccddcfe34..a7e71e59ded 100644
--- a/gcc/cp/typeck2.c
+++ b/gcc/cp/typeck2.c
@@ -545,7 +545,7 @@ digest_init (type, init, tail)
if (code == INTEGER_TYPE || code == REAL_TYPE || code == POINTER_TYPE
|| code == ENUMERAL_TYPE || code == REFERENCE_TYPE
- || code == BOOLEAN_TYPE || code == COMPLEX_TYPE
+ || code == BOOLEAN_TYPE || code == COMPLEX_TYPE || code == VECTOR_TYPE
|| TYPE_PTRMEMFUNC_P (type))
{
if (raw_constructor)
OpenPOWER on IntegriCloud