diff options
author | Paolo Bonzini <bonzini@gcc.gnu.org> | 2009-04-16 09:11:39 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gcc.gnu.org> | 2009-04-16 09:11:39 +0000 |
commit | b6fc2cdb350cd4f4d1591264caf57ad07a7ff78a (patch) | |
tree | d76cd3e5993a1a60d42ee32e88262c35591e9e3a /gcc/cp | |
parent | b4763f5c4a9d2bde0963bbb9422aa3480c5e81da (diff) | |
download | gcc-b6fc2cdb350cd4f4d1591264caf57ad07a7ff78a.zip gcc-b6fc2cdb350cd4f4d1591264caf57ad07a7ff78a.tar.gz gcc-b6fc2cdb350cd4f4d1591264caf57ad07a7ff78a.tar.bz2 |
c-common.c (vector_targets_convertible_p, [...]): Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
2009-04-16 Paolo Bonzini <bonzini@gnu.org>
* c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
* c-typeck.c (really_start_incremental_init): Likewise.
* target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
(TARGET_INITIALIZER): Remove it.
* target.h (struct target): Remove vector_opaque_p.
* tree.c (build_opaque_vector_type): New.
* tree.h (TYPE_VECTOR_OPAQUE): New.
(build_opaque_vector_type): Declare.
* doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
* config/rs6000/rs6000.c (build_opaque_vector_type,
rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
(rs6000_init_builtins): Use build_opaque_vector_type for
opaque_V4SI_type_node.
cp:
2009-04-16 Paolo Bonzini <bonzini@gnu.org>
* decl.c (check_initializer): Use TYPE_VECTOR_OPAQUE
instead of targetm.vector_opaque_p.
From-SVN: r146153
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/decl.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 0cd3460..c0fa5ba 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2009-04-16 Le-Chun Wu <lcwu@google.com> + + * decl.c (check_initializer): Use TYPE_VECTOR_OPAQUE + instead of targetm.vector_opaque_p. + 2009-04-15 Le-Chun Wu <lcwu@google.com> PR c++/39551 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 2c13e84..707bd33 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -5157,7 +5157,7 @@ check_initializer (tree decl, tree init, int flags, tree *cleanup) decl); init = build_tree_list (NULL_TREE, init); } - else if ((*targetm.vector_opaque_p) (type)) + else if (TREE_CODE (type) == VECTOR_TYPE && TYPE_VECTOR_OPAQUE (type)) { error ("opaque vector types cannot be initialized"); init = error_mark_node; |