1. 30 Dec, 2002 12 commits
  2. 29 Dec, 2002 14 commits
    • h8300.md: Give internal names to anonymous insns. · c85263d2
      	* config/h8300/h8300.md: Give internal names to anonymous
      	insns.
      
      From-SVN: r60613
      Kazu Hirata committed
    • * config/h8300/h8300.md: Reorder some insns. · fbcb02cd
      From-SVN: r60611
      Kazu Hirata committed
    • New test. · b626ec1b
      From-SVN: r60610
      Gabriel Dos Reis committed
    • new test. · 17db6bcc
      From-SVN: r60609
      Gabriel Dos Reis committed
    • gcc_update (files_and_dependencies): Add gcc/intl/plural.c as depending on gcc/intl/plural.y. · 695a8bcf
      	* gcc_update (files_and_dependencies): Add gcc/intl/plural.c as
      	depending on gcc/intl/plural.y.
      
      From-SVN: r60607
      Gerald Pfeifer committed
    • configure.in (host_configargs): Replace reference to no-longer-defined buildopts… · ade82b16
      configure.in (host_configargs): Replace reference to no-longer-defined buildopts with --build=${build_alias}.
      
      * configure.in (host_configargs): Replace reference to
      no-longer-defined buildopts with --build=${build_alias}.
      * configure: Rebuilt.
      
      From-SVN: r60606
      Alexandre Oliva committed
    • re PR c++/2739 (g++ allows accessing private members) · f2551f35
      	PR c++/2739
      	* g++.dg/other/access2.C: New test.
      
      From-SVN: r60605
      Kriang Lerdsuwanakij committed
    • New test. · 348d9921
      From-SVN: r60604
      Gabriel Dos Reis committed
    • new test. · 5f77bfb5
      From-SVN: r60603
      Gabriel Dos Reis committed
    • anon-struct.C: No longer fails · 53101fd1
      	* g++.dg/other/anon-struct.C: No longer fails
      	* g++.old-deja/g++.brendan/parse4.C: Likewise.
      	* g++.old-deja/g++.brendan/parse5.C: Likewise.
      	* g++.old-deja/g++.brendan/parse6.C: Likewise.
      
      From-SVN: r60602
      Gabriel Dos Reis committed
    • Remove traditional C constructs 4/n. · 848eed92
      	* decl2.c (grok_method_quals, warn_if_unknown_interface,
      	grok_x_components, cp_build_parm_decl, build_artificial_parm,
      	maybe_retrofit_in_chrg, grokclassfn, grok_array_decl,
      	delete_sanity, check_member_template, check_java_method,
      	check_classfn, finish_static_data_member_decl, grokfield,
      	grokbitfield, grokoptypename, grok_function_init,
      	cplus_decl_attributes, constructor_name, defer_fn,
      	build_anon_union_vars, finish_anon_union, coerce_new_type,
      	coerce_delete_type, comdat_linkage, maybe_make_one_only,
      	key_method, import_export_vtable, import_export_class,
      	output_vtable_inherit, import_export_decl, import_export_tinfo,
      	build_cleanup, get_guard, get_guard_bits, get_guard_cond,
      	set_guard, start_objects, finish_objects,
      	start_static_storage_duration_function,
      	finish_static_storage_duration_function, get_priority_info,
      	start_static_initialization_or_destruction,
      	finish_static_initialization_or_destruction,
      	do_static_initialization, do_static_destruction,
      	prune_vars_needing_no_initialization, write_out_vars,
      	reparse_decl_as_expr, finish_decl_parsing, namespace_ancestor,
      	add_using_namespace, merge_functions, ambiguous_decl,
      	lookup_using_namespace, lookup_using_namespace,
      	qualified_lookup_using_namespace, set_decl_namespace,
      	decl_namespace, current_decl_namespace, push_decl_namespace,
      	pop_decl_namespace, push_scope, pop_scope, add_function,
      	arg_assoc_namespace, arg_assoc_template_arg, arg_assoc,
      	lookup_arg_dependent, do_namespace_alias,
      	validate_nonmember_using_decl, do_nonmember_using_decl,
      	do_toplevel_using_decl, do_local_using_decl,
      	do_class_using_decl, do_using_directive, check_default_args,
      	mark_used, handle_class_head): Use C90 prototypings.  Use booleans.
      	* parser.c (cp_parser_class_head): Use booleanss.
      	* decl.c (walk_globals, walk_vtables): Likewise.
      	* cp-tree.h (walk_globals_pred, walk_globals_fn, walk_vtables,
      	walk_globals): Change return type from 'int' to 'bool'.
      	* rtti.c (init_rtti_processing, build_headof, throw_bad_cast
      	throw_bad_typeid, get_tinfo_decl_dynamic, typeid_ok_p,
      	build_typeid, tinfo_name, get_tinfo_decl, get_tinfo_ptr,
      	get_typeid, ifnonnull, build_dynamic_cast_1, build_dynamic_cast,
      	qualifier_flags, tinfo_base_init, generic_initializer,
      	ptr_initializer, dfs_class_hint_mark, ptm_initializer,
      	dfs_class_hint_unmark, class_hint_flags, class_initializer,
      	typeinfo_in_lib_p, get_pseudo_ti_init, create_pseudo_type_info,
      	get_pseudo_ti_desc, create_tinfo_types, emit_support_tinfos,
      	unemitted_tinfo_decl_p, emit_tinfo_decl): Likewise.
      	* repo.c (repo_compile_flags, repo_template_declared,
      	repo_template_defined, repo_class_defined, repo_get_id,
      	repo_template_used, repo_vtable_used, repo_inline_used,
      	repo_tinfo_used, repo_template_instantiated, extract_string,
      	open_repo_file, afgets, init_repo, reopen_repo_file_for_write,
      	finish_repo): Likewise.
      	* ptree.c (cxx_print_decl, cxx_print_type, cxx_print_identifier,
      	cxx_print_xnode): Likewise..
      	* cp-lang.c (ok_to_generate_alias_set_for_type, cxx_get_alias_set,
      	cxx_warn_unused_global_decl, cp_expr_size): Likewise.
      	* cxxfilt.c (demangle_it, print_demangler_list, usage,
      	standard_symbol_characters, hp_symbol_characters, main, fatal):
      	Likewise.
      	(strip_underscore):  Change type from 'int' to 'bool'.
      	(main): Use boolean constants.
      
      From-SVN: r60601
      Gabriel Dos Reis committed
    • h8300-protos.h: Add prototypes for const_int_qi_operand and const_int_hi_operand. · 2873836b
      	* config/h8300/h8300-protos.h: Add prototypes for
      	const_int_qi_operand and const_int_hi_operand.
      	* config/h8300/h8300.c (const_int_qi_operand): New.
      	(const_int_hi_operand): Likewise.
      	* config/h8300/h8300.md (three peepholes): New.
      
      From-SVN: r60600
      Kazu Hirata committed
    • Daily bump. · b63d28bf
      From-SVN: r60597
      GCC Administrator committed
    • change error to warning · 65e7cadd
      From-SVN: r60590
      Jason Merrill committed
  3. 28 Dec, 2002 14 commits
    • cpp.texi, [...]: Use @copying. · bdefb2ab
      gcc:
      	* doc/cpp.texi, doc/gcc.texi, doc/gccint.texi, doc/install.texi:
      	Use @copying.
      
      gcc/ada:
      	* gnat_rm.texi, gnat_ug.texi: Use @copying.
      	* gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
      	gnat_ug_wnt.texi: Regenerate.
      
      gcc/f:
      	* g77.texi: Use @copying.
      
      gcc/java:
      	* gcj.texi: Use @copying.
      
      gcc/treelang:
      	* treelang.texi: Use @copying.
      
      libstdc++-v3:
      	* docs/html/17_intro/porting.texi: Use @copying.
      	* docs/html/17_intro/porting.html: Regenerate.
      
      From-SVN: r60587
      Joseph Myers committed
    • configure.in: Increase makeinfo version requirement to 4.[2-9]. · a38f87a9
      	* configure.in: Increase makeinfo version requirement to 4.[2-9].
      	* configure: Regenerate.
      	* doc/install.texi: Update Texinfo version requirement.
      
      From-SVN: r60583
      Joseph Myers committed
    • configure.in (host_configargs): Replace reference to no-longer-defined buildopts… · 903de295
      configure.in (host_configargs): Replace reference to no-longer-defined buildopts with --build=${build_alias}.
      
      * configure.in (host_configargs): Replace reference to
      no-longer-defined buildopts with --build=${build_alias}.
      * configure: Rebuilt.
      
      From-SVN: r60582
      Alexandre Oliva committed
    • acx.m4: Name cache variables properly. · 5888b7f2
      * acx.m4: Name cache variables properly.
      (NCN_STRICT_CHECK_TOOL): If program is not found and
      value-if-not-found is empty, use ${ncn_tool_prefix}$2 or $2,
      depending on whether build != host or not.
      (NCN_STRICT_CHECK_TARGET_TOOL): Ditto, with the target prefix.
      
      From-SVN: r60581
      Alexandre Oliva committed
    • Makefile.tpl ($(NOTPARALLEL)): Move to the end. · e245b0ea
      * Makefile.tpl ($(NOTPARALLEL)): Move to the end.  Bring uses of
      program_transform_name to standard idiom.
      (AUTOGEN, AUTOCONF): Define.
      (Makefile.in): Use $(AUTOGEN).
      (Makefile): Depend on config.status, and use autoconf-style rule to
      build it.  Move original commands to...
      (config.status): ... this new target.
      (configure): Add $(srcdir).  Depend on config/acx.m4.  Use
      $(AUTOCONF).
      * Makefile.in: Rebuilt.
      
      From-SVN: r60580
      Alexandre Oliva committed
    • Remove traditional C constructs 3/n. · b746c5dc
      	* cvt.c (cp_convert_to_pointer, convert_to_pointer_force,
      	build_up_reference, warn_ref_binding, convert_to_reference,
      	convert_from_reference, convert_lvalue, cp_convert, ocp_convert,
      	convert_to_void, convert, convert_force, build_type_conversion,
      	build_expr_type_conversion, type_promotes_to,
      	perform_qualification_conversions): Use C90 prototyping style.
      	* decl2.c (grok_array_decl): Use boolean constant.
      	(delete_sanity): Likewise.
      	* typeck.c (build_unary_op): Likewise.
      	* semantics.c (finish_switch_cond): Likewise.
      	* parser.c (cp_parser_direct_new_declarator): Likewise.
      	* init.c (build_new): Likewise.
      
      From-SVN: r60574
      Gabriel Dos Reis committed
    • i386.c (x86_function_profiler): Mark labelno as possibly unused. · b9b21a05
      	* config/i386/i386.c (x86_function_profiler): Mark labelno as
      	possibly unused.
      
      From-SVN: r60573
      Andreas Jaeger committed
    • * g++.dg/parse/angle-bracket.C (main): No longer fails. · c7ab2b4d
      From-SVN: r60572
      Gabriel Dos Reis committed
    • * gcc_update (configure): Depend on configure.in. · e1c1b6a5
      From-SVN: r60571
      Alexandre Oliva committed
    • c-parse.in (yyprint): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX for correct format. · c14bc6db
      	* c-parse.in (yyprint): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX for
      	correct format.
      
      From-SVN: r60570
      Andreas Jaeger committed
    • Makefile.tpl: Fix dramatic bustage due to change in program_transform_name. · 53fbfb58
      	* Makefile.tpl: Fix dramatic bustage due to change in
      	program_transform_name.
      	* Makefile.in: Regenerate.
      
      	* configure.in: Remove unnecessary PATH setting.
      	* configure: Regnerate.
      
      	* configure.in: Don't default to unprefixed tools unless
      	the native tools will work.
      	* configure: Regenerate.
      
      From-SVN: r60568
      Nathanael Nerode committed
    • Daily bump. · 1dd0faf3
      From-SVN: r60567
      GCC Administrator committed
    • Make-lang.in (po-generated): Remove parse.c. · a723baf1
      	* Make-lang.in (po-generated): Remove parse.c.
      	(CXX_OBJS): Remove parse.o and spew.o.  Add parser.o.
      	($(srcdir)/cp/parse.h): Remove target.
      	($(srcdir)/cp/parse.c): Likewise.
      	(gt-cp-parse.h): Likewise.
      	(gt-cp-parser.h): New target.
      	(c++.distclean): Do not remove parse.output.
      	(c++.maintainer-clean): Do not remove parse.c or parse.h.
      	(cp/spew.o): Remove target.
      	(cp/lex.o): Adjust dependencies.
      	(cp/pt.o): Likewise.
      	(cp/parse.o): Likewise.
      	(cp/TAGS): Do not mention parse.c.
      	(cp/parser.o): New target.
      	* NEWS: Mention the new parser.
      	* call.c (build_scoped_method_call): Simplify.
      	(build_method_call): Likewise.
      	(build_new_function_call): Adjust calls to add_function_candidate
      	and add_template_candidate.
      	(build_new_op): Improve handling of erroroneous operands.
      	(convert_default_arg): Remove circular argument processing.
      	(name_as_c_string): New function.
      	(build_new_method_call): Use it.
      	(perform_implicit_conversion): Use error_operand_p.
      	* class.c (finish_struct_anon): Use constructor_name_p.
      	(check_field_decls): Likewise.
      	(pop_nested_class): Use OVL_NEXT, not OVL_CHAIN.
      	(resolve_address_of_overloaded_function): Likewise.
      	(instantiate_type): Tweak pointer-to-member handling.
      	(get_primary_binfo): Remove incorrect assertion.
      	* config-lang.in (gtfiles): Add parser.c, remove parse.c.
      	* cp-tree.h (DEFARG_TOKENS): New macro.
      	(default_arg): New structure.
      	(cp_tree_node_structure_enum): Add TS_CP_DEFAULT_ARG.
      	(lang_tree_node): Add default_arg.
      	(cp_tree_index): Add CPTI_TYPE_INFO_REF_TYPE.
      	(type_info_ref_type): New macro.
      	(saved_scope): Make processing_explicit_instantiation a boolean.
      	(check_access): New field.
      	(unparsed_text): Remove.
      	(language_function): Remove unparsed_inlines.
      	(error_operand_p): New macro.
      	(lang_decl): Adjust pending_inline_info.
      	(DEFARG_POINTER): Remove.
      	(tag_types): Add typenames.
      	(lookup_ualified_name): Declare.
      	(lookup_name_real): Likewise.
      	(shadow_tag): Adjust prototype.
      	(get_scope_of_declarator): Declare it.
      	(process_next_inline): Remove it.
      	(check_for_missing_semicolon): Likewise.
      	(maybe_get_template_decl_from_type_decl): Declare it.
      	(finish_label_stmt): Adjust prototype.
      	(finish_non_static_data_meber): Declare it.
      	(finish_pseudo_destructor_call_expr): Rename to ...
      	(finish_pseudo_destructor_expr): ... this.
      	(finish_compound_literal): Declare it.
      	(begin_inline_definitions): Remove it.
      	(init_spew): Remove.
      	(peekyylex): Likewise.
      	(arbitrate_lookup): Likewise.
      	(frob_opname): Likewise.
      	(maybe_snarf_defarg): Likewise.
      	(add_defarg_fn): Likewise.
      	(do_pending_defargs): Likewise.
      	(done_pending_defargs): Likewise.
      	(unprocessed_defarg_fn): Likewise.
      	(replace_defarg): Likewise.
      	(end_input): Likewise.
      	(get_overloaded_fn): Likewise.
      	* cvt.c (convert_to_reference): Improve error handling.
      	* decl.c (lookup_name_real): Do not declare it static.
      	(maybe_push_to_top_level): Set check_access.
      	(identifier_type_value): Adjust call to lookup_name_real.
      	(lookup_qualified_name): New method.
      	(lookup_name_real): Remove special-case parsing code.
      	(lookup_name-nonclass): Adjust call to lookup_name_real.
      	(lookup_name_namespace_only): Likewise.
      	(lookup_name): Likewise.
      	(check_tag_decl): Return the type declared.
      	(shadow_tag): Likewise.
      	(register_dtor_fn): Tweak check_access.
      	(grokfndecl): Use constructor_name_p.
      	(get_scope_of_declarator): New function.
      	(grokdeclarator): Obscure tweaks for slightly different declarator
      	representations.
      	(start_method): Return error_mark_node to indicate failure.
      	(cp_tree_node_structure_enum): Use TS_CP_DEFAULT_ARG for DEFAULT_ARGs.
      	* decl2.c (constructor_name_full): Simplify.
      	(constructor_name): Use it.
      	(build_expr_from_tree): Adjust for changes to do new parser.
      	(push_scope): Improve robustness.
      	(validate_nonmember_using_decl): Process declarations, not names.
      	(do_class_using_decl): Likewise.
      	(handle_class_head): Do not mess with CLASSTYPE_DECLARED_CLASS
      	here.
      	* error.c (dump_expr): Handle IDENTIFIER_NODEs and BASELINKs.
      	* expr.c (cxx_expand_expr): Handle BASELINKs.
      	* init.c (member_init_ok_or_else): Issue more errors.
      	(build_offset_ref): Tweak handling of FUNCTION_DECLs.
      	* lex.c: Do not include parse.h.
      	(yypring): Do not declare.
      	(yylval): Likewise.
      	(make_reference_declarator): Remove error-generating code.
      	(rid_to_yy): Remove.
      	(cxx_init): Do not call init_spew.
      	(yypring): Remove.
      	(check_for_missing_semicolon): Remove.
      	* lex.h (got_scope): Remove.
      	(got_object): Remove.
      	* method.c (hack_identifier): Use finish_non_static_data_member.
      	(implicitly_declare_fn): Adjust use of constructor_name.
      	* parser.c: New file.
      	* pt.c (parse.h): Do not include it.
      	(maybe_get_template_decl_from_template): Do not declare it.
      	(finish_member_template_decl): Tweak.
      	(begin_explicit_instantiation): Adjust for
      	processing_explicit_instantiation being boolean.
      	(end_explicit_instantiation): Likewise.
      	(maybe_process_partial_specialization): Tighten specialization
      	test.
      	(retrieve_local_specialization): Adjust ue of hash table.
      	(eq_local_specializations): New function.
      	(register_local_specialization): Likewise.
      	(push_template_decl_real): Remove unnecessary test.
      	(maybe_get_template_decl_from_type_decl): Don't make it static.
      	(for_each_template_parm_r): Handle TYPEOF_TYPE.
      	(tsubst_copy): Use retrieive_local_specialization to handle
      	PARM_DECL.  Adjust handling of CONST_DECLs.  Handle BASELINKs.
      	Handle COMPONENT_REFs with pseudo-destructor-expressions.
      	Simplify handling of CALL_EXPR and METHOD_CALL_EXPR.
      	(tsubst_expr): Pass decls, not names, to do_local_using_decl.
      	(unify): Tweak handling of CONST_DECLs.
      	(regenerate_decl_from_template): Use push_nested_class.
      	(template_for_substitution): New funciton.
      	(instantiate_decl): Use it.  Register parameters as local
      	specializations.
      	* rtti.c (init_rtti_processing): Set type_info_ref_type.
      	(build_typeid): Use it.
      	(get_typeid): Likeise.
      	* search.c (accessible_p): Use check_access, not
      	flag_access_control.
      	(adjust_result_of_qualified_name_lookup): Pay attention to the
      	context_class.
      	* semantics.c (finish_asm_stmt): Adjust error handling.
      	(finish_label_stmt): Return the statement.
      	(finish_non_static_data_member): New function.
      	(finish_class_expr): Handle BASELINKs.
      	(finish_call_expr): Handle PSEUDO_DTOR_EXPR.
      	(finish_object_call_expr): Simplify handling during templates.
      	(finish_pseudo_destructor_call_expr): Rename to ...
      	(finish_pseudo_dtor_expr): ... this.
      	(finish_compound_literal): New function.
      	(begin_inline_definitions): Remove.
      	(finish_sizeof): Remove special template handling.
      	* spew.c: Do not include parse.h.
      	* tree.c (get_overloaded_fn): Remove.
      	* typeck.c (build_class_member_access_expr): Handle
      	PSEUDO_DTOR_EXPR.  Adjust handling of static member functions.
      	(lookup_destructor): New function.
      	(finish_class_member_access_expr): Use it.
      	(convert_arguments): Simplify.
      	(build_unary_op): Handle BASELINKs.
      
      From-SVN: r60560
      Mark Mitchell committed