diff options
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 59b238b..2e336f4 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -3199,8 +3199,6 @@ init_decl_processing () /* Prepare to check format strings against argument lists. */ init_function_format_info (); - init_iterators (); - incomplete_decl_finalize_hook = finish_incomplete_decl; /* Record our roots. */ @@ -3580,14 +3578,6 @@ finish_decl (decl, init, asmspec_tree) if (TREE_CODE (decl) == PARM_DECL) init = 0; - if (ITERATOR_P (decl)) - { - if (init == 0) - error_with_decl (decl, "iterator has no initial value"); - else - init = save_expr (init); - } - if (init) { if (TREE_CODE (decl) != TYPE_DECL) @@ -4254,7 +4244,6 @@ grokdeclarator (declarator, declspecs, decl_context, initialized) if (specbits & 1 << (int) RID_EXTERN) nclasses++; if (specbits & 1 << (int) RID_REGISTER) nclasses++; if (specbits & 1 << (int) RID_TYPEDEF) nclasses++; - if (specbits & 1 << (int) RID_ITERATOR) nclasses++; /* Warn about storage classes that are invalid for certain kinds of declarations (parameters, typenames, etc.). */ @@ -4315,18 +4304,6 @@ grokdeclarator (declarator, declspecs, decl_context, initialized) else if (current_binding_level == global_binding_level && specbits & (1 << (int) RID_AUTO)) error ("top-level declaration of `%s' specifies `auto'", name); - else if ((specbits & 1 << (int) RID_ITERATOR) - && TREE_CODE (declarator) != IDENTIFIER_NODE) - { - error ("iterator `%s' has derived type", name); - type = error_mark_node; - } - else if ((specbits & 1 << (int) RID_ITERATOR) - && TREE_CODE (type) != INTEGER_TYPE) - { - error ("iterator `%s' has noninteger type", name); - type = error_mark_node; - } } /* Now figure out the structure of the declarator proper. @@ -4879,9 +4856,6 @@ grokdeclarator (declarator, declspecs, decl_context, initialized) TREE_STATIC (decl) = (specbits & (1 << (int) RID_STATIC)) != 0; TREE_PUBLIC (decl) = DECL_EXTERNAL (decl); } - - if (specbits & 1 << (int) RID_ITERATOR) - ITERATOR_P (decl) = 1; } /* Record `register' declaration for warnings on & |