diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2003-03-01 01:12:08 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2003-03-01 01:12:08 +0000 |
commit | 704a0bbdd39085147faef60f84d7dc8bbfcd9ccf (patch) | |
tree | 2f8e24c5e57fadcdd288a11414b642d42fc094c2 /gcc | |
parent | 3f53c0dc86b5d312743835190536681b50cd911c (diff) | |
download | gcc-704a0bbdd39085147faef60f84d7dc8bbfcd9ccf.zip gcc-704a0bbdd39085147faef60f84d7dc8bbfcd9ccf.tar.gz gcc-704a0bbdd39085147faef60f84d7dc8bbfcd9ccf.tar.bz2 |
parser.c (cp_parser_init_declarator): Revert opaque vector_opaque_p change.
2003-02-28 Aldy Hernandez <aldyh@redhat.com>
* parser.c (cp_parser_init_declarator): Revert opaque
vector_opaque_p change.
Do not include target.h.
From-SVN: r63599
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/parser.c | 9 |
2 files changed, 7 insertions, 8 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 8fd10b1..78d4f26 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2003-02-28 Aldy Hernandez <aldyh@redhat.com> + + * parser.c (cp_parser_init_declarator): Revert opaque + vector_opaque_p change. + Do not include target.h. + 2003-02-28 Mark Mitchell <mark@codesourcery.com> PR c++/9879 diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 9ff6ab5..fb02453 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -34,7 +34,6 @@ #include "diagnostic.h" #include "toplev.h" #include "output.h" -#include "target.h" /* The lexer. */ @@ -9703,13 +9702,7 @@ cp_parser_init_declarator (cp_parser* parser, /* Parse the initializer. */ if (is_initialized) - { - if ((*targetm.vector_opaque_p) (TREE_TYPE (decl))) - cp_parser_error (parser, "opaque vector types cannot be initialized"); - - initializer = cp_parser_initializer (parser, - &is_parenthesized_init); - } + initializer = cp_parser_initializer (parser, &is_parenthesized_init); else { initializer = NULL_TREE; |