From 566c6181e6dd7180ccc249e0b781da7a41340e50 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Sun, 10 Dec 2006 05:09:29 +0000 Subject: [PATCH] c-opts.c (c_common_parse_file): Unconditionally give a warning, suitable for the language, if set_yydebug is true. * c-opts.c (c_common_parse_file): Unconditionally give a warning, suitable for the language, if set_yydebug is true. * c-pragma.h: Define enum pragma_omp_clause here. Don't define YYDEBUG or declare yydebug. * c-parser.c (yydebug, enum pragma_omp_clause): Delete. * cp/parser.c: Likewise. From-SVN: r119704 --- gcc/ChangeLog | 30 ++++--- gcc/c-opts.c | 26 ++++-- gcc/c-parser.c | 24 ------ gcc/c-pragma.h | 23 +++++- gcc/cp/ChangeLog | 206 ++++++++++++++++++++++++----------------------- gcc/cp/parser.c | 23 ------ 6 files changed, 163 insertions(+), 169 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 16ba624f608a1..ed4b84317e8e8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2006-12-09 Zack Weinberg + + * c-opts.c (c_common_parse_file): Unconditionally give a warning, + suitable for the language, if set_yydebug is true. + * c-pragma.h: Define enum pragma_omp_clause here. Don't define + YYDEBUG or declare yydebug. + * c-parser.c (yydebug, enum pragma_omp_clause): Delete. + 2006-12-09 Jan Hubicka * cgraph.c: Update copyright. @@ -104,18 +112,18 @@ 2006-12-08 Andrew MacLeod * Makefile.in: Add new file tree-ssa-ter.c. - * tree-outof-ssa.c (struct temp_expr_table_d, new_temp_expr_table, - free_temp_expr_table, add_value_to_version_list, - add_value_to_partition_list, remove_value_from_partition_list, - add_dependence, check_replaceable, finish_expr, mark_replaceable, - kill_expr, kill_virtual_exprs, find_replaceable_in_bb, + * tree-outof-ssa.c (struct temp_expr_table_d, new_temp_expr_table, + free_temp_expr_table, add_value_to_version_list, + add_value_to_partition_list, remove_value_from_partition_list, + add_dependence, check_replaceable, finish_expr, mark_replaceable, + kill_expr, kill_virtual_exprs, find_replaceable_in_bb, find_replaceable_exprs, dump_replaceable_exprs): Move to tree-ssa-ter.c. * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs): Add prototypes. * tree-ssa-ter.c: New file using code moved from tree-outof-ssa.c. (struct value_expr_d): Remove. (struct temp_expr_table_d): Rename fields, add explicit vector of - replaceable expressions instead of sharing. Change value_expr_p's to + replaceable expressions instead of sharing. Change value_expr_p's to bitmap. Delete free_list. (new_temp_expr_table): Rename fields, count number of ssa_names in each partition. @@ -131,7 +139,7 @@ partition list, free the bitmap if it is empty. (add_dependence): Use renamed field, cleanup. Don't add a dependence on partitions with only one member. - (is_replaceable_p): New. Split out replaceability check from + (is_replaceable_p): New. Split out replaceability check from check_replaceable. (process_replaceable): New. Code split from check_replaceable. (check_replaceable): Removed. @@ -208,7 +216,7 @@ (struct gcc_target): Add record_gcc_switches and record_gcc_switches_section fields. * target-def.h (TARGET_ASM_RECORD_GCC_SWITCHES): Provide a - default definition. + default definition. (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Provide a default definition. * toplev.c (print_single_switch): Simplify by providing a @@ -218,9 +226,9 @@ (print_to_asm_out_file): New function. (print_to_stderr): New function. (init_asm_output): If flag_record_gcc_switches is set then if - the target supports recording the switches then emit them into - the assembler output file, otherwise tell the user that the - switch is not supported. + the target supports recording the switches then emit them into + the assembler output file, otherwise tell the user that the + switch is not supported. * varasm.c (eld_record_gcc_switches): New function. Example handler for the record_gcc_switches target hook. * doc/tm.texi (TARGET_ASM_RECORD_GCC_SWITCHES): Document the new diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 36026fd869bcd..dcb68a16ffffd 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -1163,14 +1163,26 @@ c_common_parse_file (int set_yydebug) { unsigned int i; - /* Enable parser debugging, if requested and we can. If requested - and we can't, notify the user. */ -#if YYDEBUG != 0 - yydebug = set_yydebug; -#else if (set_yydebug) - warning (0, "YYDEBUG was not defined at build time, -dy ignored"); -#endif + switch (c_language) + { + case clk_c: + warning(0, "The C parser does not support -dy, option ignored"); + break; + case clk_objc: + warning(0, + "The Objective-C parser does not support -dy, option ignored"); + break; + case clk_cxx: + warning(0, "The C++ parser does not support -dy, option ignored"); + break; + case clk_objcxx: + warning(0, + "The Objective-C++ parser does not support -dy, option ignored"); + break; + default: + gcc_unreachable (); + } i = 0; for (;;) diff --git a/gcc/c-parser.c b/gcc/c-parser.c index a54674ff01dad..d53b15526c1b1 100644 --- a/gcc/c-parser.c +++ b/gcc/c-parser.c @@ -59,10 +59,6 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA #include "cgraph.h" -/* Miscellaneous data and functions needed for the parser. */ - -int yydebug; - /* Objective-C specific parser/lexer information. */ static int objc_pq_context = 0; @@ -200,26 +196,6 @@ static const struct resword reswords[] = }; #define N_reswords (sizeof reswords / sizeof (struct resword)) -/* All OpenMP clauses. OpenMP 2.5. */ -typedef enum pragma_omp_clause { - PRAGMA_OMP_CLAUSE_NONE = 0, - - PRAGMA_OMP_CLAUSE_COPYIN, - PRAGMA_OMP_CLAUSE_COPYPRIVATE, - PRAGMA_OMP_CLAUSE_DEFAULT, - PRAGMA_OMP_CLAUSE_FIRSTPRIVATE, - PRAGMA_OMP_CLAUSE_IF, - PRAGMA_OMP_CLAUSE_LASTPRIVATE, - PRAGMA_OMP_CLAUSE_NOWAIT, - PRAGMA_OMP_CLAUSE_NUM_THREADS, - PRAGMA_OMP_CLAUSE_ORDERED, - PRAGMA_OMP_CLAUSE_PRIVATE, - PRAGMA_OMP_CLAUSE_REDUCTION, - PRAGMA_OMP_CLAUSE_SCHEDULE, - PRAGMA_OMP_CLAUSE_SHARED -} pragma_omp_clause; - - /* Initialization routine for this file. */ void diff --git a/gcc/c-pragma.h b/gcc/c-pragma.h index a38d95aececd2..9a3ff976b1c17 100644 --- a/gcc/c-pragma.h +++ b/gcc/c-pragma.h @@ -49,9 +49,26 @@ typedef enum pragma_kind { PRAGMA_FIRST_EXTERNAL } pragma_kind; -/* Cause the `yydebug' variable to be defined. */ -#define YYDEBUG 1 -extern int yydebug; + +/* All clauses defined by OpenMP 2.5. + Used internally by both C and C++ parsers. */ +typedef enum pragma_omp_clause { + PRAGMA_OMP_CLAUSE_NONE = 0, + + PRAGMA_OMP_CLAUSE_COPYIN, + PRAGMA_OMP_CLAUSE_COPYPRIVATE, + PRAGMA_OMP_CLAUSE_DEFAULT, + PRAGMA_OMP_CLAUSE_FIRSTPRIVATE, + PRAGMA_OMP_CLAUSE_IF, + PRAGMA_OMP_CLAUSE_LASTPRIVATE, + PRAGMA_OMP_CLAUSE_NOWAIT, + PRAGMA_OMP_CLAUSE_NUM_THREADS, + PRAGMA_OMP_CLAUSE_ORDERED, + PRAGMA_OMP_CLAUSE_PRIVATE, + PRAGMA_OMP_CLAUSE_REDUCTION, + PRAGMA_OMP_CLAUSE_SCHEDULE, + PRAGMA_OMP_CLAUSE_SHARED +} pragma_omp_clause; extern struct cpp_reader* parse_in; diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1a8d126bcf2e2..e72ffeb51679d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2006-12-09 Zack Weinberg + + * parser.c (yydebug, enum pragma_omp_clause): Delete. + 2006-12-07 Mark Mitchell PR c++/29732 @@ -11,10 +15,10 @@ 2006-12-07 Lee Millward - PR c++/29980 - * cp_parser_elaborated_type_specifier: Check - the return value of check_elaborated_type_specifier. - + PR c++/29980 + * cp_parser_elaborated_type_specifier: Check + the return value of check_elaborated_type_specifier. + 2006-12-06 Mark Mitchell PR c++/29730 @@ -37,7 +41,7 @@ 2006-12-05 Aldy Hernandez Merge from gimple-tuples-branch. - + 2006-10-05 Aldy Hernandez * cp-gimplify.c (cp_gimplify_expr): Adjust for GIMPLE_MODIFY_STMT. @@ -47,7 +51,7 @@ 2006-09-28 Aldy Hernandez - * cp-tree.h (union lang_tree_node): Gimple statements do not + * cp-tree.h (union lang_tree_node): Gimple statements do not have a TREE_CHAIN. (TREE_INDIRECT_USING): Look in base. @@ -71,7 +75,7 @@ Call for_each_template_parm on TYPE_MIN_VALUE and TYPE_MAX_VALUE. 2006-12-03 Richard Henderson - Andrew Pinski + Andrew Pinski PR C++/14329 * error.c (cp_printer) <'D'>: Handle DECL_DEBUG_EXPR. @@ -93,8 +97,8 @@ (start_preparsed_function): Define and document value of DECL_INITIAL before and after routine. (finish_function): Check DECL_INITIAL invariant. - * parser.c - (cp_parser_function_definition_from_specifiers_and_declarator): + * parser.c + (cp_parser_function_definition_from_specifiers_and_declarator): Skip duplicate function definitions. 2006-12-01 Volker Reichelt @@ -123,7 +127,7 @@ * rtti.c (get_tinfo_decl): Handle return value from pushdecl_top_level_and_finish. -2006-11-29 Lee Millward +2006-11-29 Lee Millward PR c++/29022 * parser.c (cp_parser_class_head): Move processing @@ -131,7 +135,7 @@ (cp_parser_class_specifier) ...here. Take an extra tree* parameter for any base classes. Only process them if the opening brace was found. - + 2006-11-28 Jakub Jelinek PR c++/29735 @@ -160,29 +164,29 @@ 2006-11-21 Douglas Gregor - * cp-tree.def (STATIC_ASSERT): New. + * cp-tree.def (STATIC_ASSERT): New. * cp-objcp-common.c (cp_tree_size): Handle STATIC_ASSERT. * error.c (dump_decl): Handle STATIC_ASSERT. * cp-tree.h (STATIC_ASSERT_CONDITION): New. - (STATIC_ASSERT_MESSAGE): New. + (STATIC_ASSERT_MESSAGE): New. (STATIC_ASSERT_SOURCE_LOCATION): New. (struct tree_static_assert): New. (enum cp_tree_node_structure_enum): Add TS_CP_STATIC_ASSERT. (union lang_tree_node): Add static_assertion. - (finish_static_assert): Declare. + (finish_static_assert): Declare. * cxx-pretty-print.c (pp_cxx_statement): Handle STATIC_ASSERT. (pp_cxx_declaration): Handle STATIC_ASSERT. * pt.c (instantiate_class_template): Handle STATIC_ASSERT members. - (tsubst_expr): Handle STATIC_ASSERT statements. + (tsubst_expr): Handle STATIC_ASSERT statements. * semantics.c (finish_static_assert): New. - * lex.c (D_CPP0X): New. - (reswords): Add static_assert keyword. - (init_reswords): If not flag_cpp0x, mask out C++0x keywords. - * parser.c (cp_parser_block_declaration): Parse static + * lex.c (D_CPP0X): New. + (reswords): Add static_assert keyword. + (init_reswords): If not flag_cpp0x, mask out C++0x keywords. + * parser.c (cp_parser_block_declaration): Parse static assertions. - (cp_parser_static_assert): New. - (cp_parser_member_declaration): Parse static assertions. + (cp_parser_static_assert): New. + (cp_parser_member_declaration): Parse static assertions. 2006-11-21 Jakub Jelinek @@ -207,7 +211,7 @@ perform_or_defer_access_check. * class.c (alter_access, resolve_address_of_overloaded_function): Likewise. - * decl.c (make_typename_type, make_unbound_class_template): Likewise. + * decl.c (make_typename_type, make_unbound_class_template): Likewise. * search.c (lookup_member): Likewise. * friend.c (add_friend): Likewise. * parser.c (cp_parser_template_id, @@ -221,7 +225,7 @@ (build_op_delete_call): Adjusted the call to perform_or_defer_access_check. (build_over_call): Likewise. - + 2006-11-16 Dirk Mueller * name-lookup.c (begin_scope): Use GGC_CNEW instead of @@ -319,7 +323,7 @@ 2006-10-28 Andrew Pinski PR C++/29295 - * typeck.c (build_unary_op): Use same_type_p when comparing to + * typeck.c (build_unary_op): Use same_type_p when comparing to boolean type. 2006-10-29 Dirk Mueller @@ -349,27 +353,27 @@ * rtti.c (tinfo_base_init): The type info string is always global. 2006-10-20 Lee Millward - Mark Mitchell + Mark Mitchell + + PR c++/28053 + * decl2.c (grokbitfield): Detect invalid non-integral + types earlier when possible. - PR c++/28053 - * decl2.c (grokbitfield): Detect invalid non-integral - types earlier when possible. - 2006-10-18 Mark Shinwell PR c++/26884 * typeck2.c (digest_init): Raise error upon attempts to initialize arrays with variables. -2006-10-17 Lee Millward +2006-10-17 Lee Millward + + PR c++/27952 + * cp-tree.h (xref_basetypes): Return bool instead of void. + * decl.c (xref_basetypes): Adjust definition. Return false + if the class bases are invalid. + * parser.c (cp_parser_class_head): Check the return value + from xref_basetypes. - PR c++/27952 - * cp-tree.h (xref_basetypes): Return bool instead of void. - * decl.c (xref_basetypes): Adjust definition. Return false - if the class bases are invalid. - * parser.c (cp_parser_class_head): Check the return value - from xref_basetypes. - 2006-10-17 Mark Mitchell PR c++/28261 @@ -443,7 +447,7 @@ set the type to error_mark_node. (grokdeclarator): Check the return type of check_var_type. * class.c (finish_struct_1): Robustify. - + 2006-10-11 Mark Mitchell PR c++/29175 @@ -453,17 +457,17 @@ 2006-10-11 Lee Millward PR c++/29024 - * cp-tree (struct cp_decl_specifier_seq): Rename to - conflicting_specifiers_p - * parser.c (cp_parser_set_storage_class): Set - conflicting_specifiers_p for the input decl specifier - if a typedef specifier is present. Rename uses of - multiple_specifiers_p to conflicting_specifiers_p. - (cp_parser_decl_specifier_seq) : If a storage - class specifier has already been set for this declaration, - set conflicting_specifiers_p to true on the decl_specs. - * decl.c (grokdeclarator): Rename uses of - multiple_specifiers_p to conflicting_specifiers_p. + * cp-tree (struct cp_decl_specifier_seq): Rename to + conflicting_specifiers_p + * parser.c (cp_parser_set_storage_class): Set + conflicting_specifiers_p for the input decl specifier + if a typedef specifier is present. Rename uses of + multiple_specifiers_p to conflicting_specifiers_p. + (cp_parser_decl_specifier_seq) : If a storage + class specifier has already been set for this declaration, + set conflicting_specifiers_p to true on the decl_specs. + * decl.c (grokdeclarator): Rename uses of + multiple_specifiers_p to conflicting_specifiers_p. 2006-10-10 Brooks Moses @@ -524,31 +528,31 @@ PR c++/29080 * parser.c (cp_parser_postfix_dot_deref_expression): Use BASELINK_ACCESS_BINFO as the qualifying scope when calling - adjust_result_of_qualified_name_lookup. + adjust_result_of_qualified_name_lookup. 2006-09-25 Lee Millward - PR c++/27329 - PR c++/26938 - * cp-tree.h (redeclare_class_template): Adjust declaration - to return bool instead of void. - * pt.c (redeclare_class_template): Update definition. + PR c++/27329 + PR c++/26938 + * cp-tree.h (redeclare_class_template): Adjust declaration + to return bool instead of void. + * pt.c (redeclare_class_template): Update definition. Return false on error. - * decl.c (xref_tag): Return error_mark_node if + * decl.c (xref_tag): Return error_mark_node if redeclare_class_template returned false. PR c++/27667 - * cp-tree.h (begin_specialization): Return bool + * cp-tree.h (begin_specialization): Return bool instead of void. - * pt.c (check_specialization_scope): Likwise. - Adjust comment. Return false if a specialization + * pt.c (check_specialization_scope): Likwise. + Adjust comment. Return false if a specialization isn't permitted in the current scope. - (begin_specialization): Use the return value of - check_specialization_scope. - * parser.c (cp_parser_explicit_specialization): If - begin_specialization returned false, skip the rest + (begin_specialization): Use the return value of + check_specialization_scope. + * parser.c (cp_parser_explicit_specialization): If + begin_specialization returned false, skip the rest of the specialization. - + 2006-09-21 Mark Mitchell PR c++/29016 @@ -559,12 +563,12 @@ PR c++/28861 * decl.c (shadow_tag): Return error_mark_node - if maybe_process_partial_specialization failed. + if maybe_process_partial_specialization failed. PR c++/28303 - * decl.c (grokdeclarator): Return error_mark_node on - declaration with two or more data types. - + * decl.c (grokdeclarator): Return error_mark_node on + declaration with two or more data types. + 2006-09-20 Danny Smith PR target/27650 @@ -660,7 +664,7 @@ * tree.c (build_cplus_new): Set it. PR c++/26696 - * cvt.c (convert_to_void): Replace a subexpression with no side + * cvt.c (convert_to_void): Replace a subexpression with no side effects with void_zero_node. * tree.c (is_overloaded_fn): Look through COMPONENT_REF. (get_first_fn): Ditto. @@ -673,13 +677,13 @@ where the name is a type used incorrectly. PR c++/26671 - * typeck.c (maybe_warn_about_returning_address_of_local): Look - through COMPONENT_REF and ARRAY_REF. + * typeck.c (maybe_warn_about_returning_address_of_local): Look + through COMPONENT_REF and ARRAY_REF. PR c++/26102 * name-lookup.c (do_class_using_decl): Try to find the base even if bases_dependent_p. - * pt.c (type_dependent_expression_p): A USING_DECL is dependent. + * pt.c (type_dependent_expression_p): A USING_DECL is dependent. PR c++/19809 * pt.c (tsubst_friend_function): Set DECL_INITIAL before pushdecl. @@ -756,7 +760,7 @@ fields can't be packed. PR c++/26577 - * cvt.c (convert_to_void): Don't automatically load from volatiles + * cvt.c (convert_to_void): Don't automatically load from volatiles of TREE_ADDRESSABLE type. 2006-08-28 Volker Reichelt @@ -777,13 +781,13 @@ specialization-after-instantiation. * decl2.c (mark_used): Mark the main function used when one of its clones is used. - + 2006-08-27 Lee Millward PR c++/26573 * class.c (check_field_decls): Don't issue error about local classes containing static data members. - + 2006-08-26 Joseph S. Myers PR c++/24009 @@ -808,7 +812,7 @@ parameters, return 1 if either is error_mark_node. (current_template_args): Robustify. (redeclare_class_template): Likewise. - + 2006-08-26 Mark Mitchell PR c++/28588 @@ -874,7 +878,7 @@ 2006-08-23 Jason Merrill PR c++/27714 - * pt.c (push_template_decl_real): A friend template with class + * pt.c (push_template_decl_real): A friend template with class scope isn't primary. 2006-08-23 Benjamin Smedberg @@ -886,7 +890,7 @@ 2006-08-22 Jason Merrill PR c++/23372 - * call.c (build_over_call): Don't make a copy here if build_call + * call.c (build_over_call): Don't make a copy here if build_call will make one too. 2006-08-22 Andrew Pinski @@ -905,7 +909,7 @@ 2006-08-22 Jason Merrill PR c++/28659 - * typeck.c (merge_types): If either of the types have the right + * typeck.c (merge_types): If either of the types have the right attributes, return that one. * tree.c (cp_build_type_attribute_variant): Make sure we aren't @@ -936,7 +940,7 @@ PR c++/28741 * tree.c (decl_anon_ns_mem_p): Robustify. * decl2.c (determine_visibility): Likewise. - + 2006-08-20 Mark Mitchell PR c++/28341 @@ -967,7 +971,7 @@ PR c++/28346 * pt.c (tsubst_qualified_id): Do not strip references from - OFFSET_REFs. + OFFSET_REFs. 2006-08-17 Volker Reichelt @@ -1010,7 +1014,7 @@ PR c++/28594 * pt.c (process_template_parm): Robustify. - + 2006-08-14 Steve Ellcey PR c++/28288 @@ -1043,13 +1047,13 @@ PR c++/28641 * pt.c (type_unification_real): Robustify. - + 2006-08-03 Lee Millward PR c++/28347 * decl.c (start_decl): Return error_mark_node if a diagnostic was issed for an invalid typedef initialization. - + 2006-08-03 Volker Reichelt PR c++/27508 @@ -1126,7 +1130,7 @@ (mangle_class_name_for_template): Likewise. (tsubst_template_parms): Likewise. * error.c (dump_template_argument_list): Likewise. - + 2006-07-28 Kazu Hirata * cp-tree.h: Fix a comment typo. @@ -1184,15 +1188,15 @@ * tree.c (decl_linkage): Only return lk_external if it's set. PR c++/28409 - * decl2.c (constrain_visibility): Ignore the anonymous namespace + * decl2.c (constrain_visibility): Ignore the anonymous namespace for extern "C" decls. (VISIBILITY_STATIC): Rename to VISIBILITY_ANON. - * decl2.c (constrain_visibility): Remove specified and reason + * decl2.c (constrain_visibility): Remove specified and reason parameters. Don't touch decls that already have explicit visibility. - (determine_visibility): Do copy DECL_VISIBILITY_SPECIFIED from + (determine_visibility): Do copy DECL_VISIBILITY_SPECIFIED from template. - (determine_visibility_from_class): Reverse sense of + (determine_visibility_from_class): Reverse sense of DECL_VISIBILITY_SPECIFIED test for target-specific visibility rules. (constrain_class_visibility): Only complain about member visibility if the member type is another class. Don't change visibility of the @@ -1229,7 +1233,7 @@ PR c++/28260 * decl.c (duplicate_decls): Return error_mark_node on ambiguous declaration. - + 2006-07-18 Steve Ellcey PR c++/27495 @@ -1269,13 +1273,13 @@ * decl2.c (acceptable_java_type): Robustify. Use proper Boolean return type instead of return 1. (check_java_method): Don't issue error about - type not being an acceptable Java parameter if + type not being an acceptable Java parameter if it's error_mark_node. - + PR c++/28269 * parser.c (cp_parser_elaborated_type_specifier): Return early if an invalid type was detected. - + 2006-07-15 Volker Reichelt PR c++/28249 @@ -1319,7 +1323,7 @@ * decl.c (define_label): Return error_mark_node on error. * semantics.c (finish_label_stmt): Don't call add_stmt for invalid labels. - + 2006-07-06 Jason Merrill PR c++/28279 @@ -1347,13 +1351,13 @@ 2006-07-01 Jason Merrill PR c++/28215 - * method.c (make_thunk): Unset DECL_USE_TEMPLATE and + * method.c (make_thunk): Unset DECL_USE_TEMPLATE and DECL_TEMPLATE_INFO. 2006-06-30 Jason Merrill PR c++/26577 - * call.c (build_new_method_call): Force evaluation of the + * call.c (build_new_method_call): Force evaluation of the instance pointer, not the object. 2006-06-30 Kazu Hirata @@ -1363,7 +1367,7 @@ 2006-06-30 Jason Merrill PR c++/18698 - * decl2.c (grokfield): Only try to treat the decl as an access + * decl2.c (grokfield): Only try to treat the decl as an access declaration if the scope is a class. 2006-06-29 Jason Merrill @@ -1417,7 +1421,7 @@ 2006-06-28 Jason Merrill PR c++/27424 - * pt.c (convert_template_argument): Pass all template arguments + * pt.c (convert_template_argument): Pass all template arguments on to coerce_template_template_parms. 2006-06-25 Lee Millward @@ -1428,7 +1432,7 @@ returning NULL_TREE, instead check for error_mark_node to indicate failure. * decl.c (grokdeclarator): Adjust block comment. - + 2006-06-25 Lee Millward PR c++/28051 @@ -1436,7 +1440,7 @@ invalid types. * name-lookup.c (push_class_level_binding): Robustify. (do_class_using_decl): Return early if name is error_mark_node. - + 2006-06-23 Steve Ellcey PR c++/28114 @@ -1472,7 +1476,7 @@ PR c++/27821 * decl.c (grokdeclarator): Return error_mark_node on invalid uses of the scope resolution operator. - + 2006-06-22 Volker Reichelt PR c++/28111 diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index d7611ed71ff14..98bc2e07d28eb 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -18073,25 +18073,6 @@ cp_parser_objc_statement (cp_parser * parser) { /* OpenMP 2.5 parsing routines. */ -/* All OpenMP clauses. OpenMP 2.5. */ -typedef enum pragma_omp_clause { - PRAGMA_OMP_CLAUSE_NONE = 0, - - PRAGMA_OMP_CLAUSE_COPYIN, - PRAGMA_OMP_CLAUSE_COPYPRIVATE, - PRAGMA_OMP_CLAUSE_DEFAULT, - PRAGMA_OMP_CLAUSE_FIRSTPRIVATE, - PRAGMA_OMP_CLAUSE_IF, - PRAGMA_OMP_CLAUSE_LASTPRIVATE, - PRAGMA_OMP_CLAUSE_NOWAIT, - PRAGMA_OMP_CLAUSE_NUM_THREADS, - PRAGMA_OMP_CLAUSE_ORDERED, - PRAGMA_OMP_CLAUSE_PRIVATE, - PRAGMA_OMP_CLAUSE_REDUCTION, - PRAGMA_OMP_CLAUSE_SCHEDULE, - PRAGMA_OMP_CLAUSE_SHARED -} pragma_omp_clause; - /* Returns name of the next clause. If the clause is not recognized PRAGMA_OMP_CLAUSE_NONE is returned and the token is not consumed. Otherwise appropriate pragma_omp_clause is @@ -19441,8 +19422,4 @@ c_parse_file (void) the_parser = NULL; } -/* This variable must be provided by every front end. */ - -int yydebug; - #include "gt-cp-parser.h"