1. 03 Oct, 2001 1 commit
    • c-parse.in (objc_inherit_code, [...]): Make static. · 8607f1bc
      2001-10-03  Ziemowit Laski  <zlaski@apple.com>
      
              * c-parse.in (objc_inherit_code, objc_pq_context,
              objc_public_flag): Make static.
              (objc_interface_context, objc_implementation_context,
              objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
              global tree array in objc/objc-act.[ch].
              (methoddef): Remove unnecessary code.
      
              * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
              Hoist struct definitions to objc-act.h.
              (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
              cat_count): Place declaration in objc-act.h.
              (objc_tree_index): Move enumeration to objc-act.h.
              (objc_global_trees): Place declaration and macro accessors in
              objc-act.h.
              (implementation_context): Remove duplicate; use
              objc_implementation_context instead:
              (method_context): Remove duplicate; use objc_method_context
              instead.
              (objc_ellipsis_node, objc_method_prototype_template,
              implemented_classes, function_type): Move global vars to
              objc_global_trees.
              (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
              (build_message_expr): Move actual construction of ObjC message
              send nodes to finish_message_expr.
              (finish_message_expr): New routine, contains code formerly in
              build_message_expr.
              * objc/objc-act.h (finish_message_expr): New prototype.
              (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
              declarations; these vars are now part of objc_global_trees.
              (objc_tree_index, objc_global_trees): Move definitions from
              objc-act.c.
              * objc/objc-tree.def: Update copyright info.
      
      From-SVN: r46000
      Ziemowit Laski committed
  2. 13 Sep, 2001 1 commit
    • c-parse.in (yyerror): Const-ification and/or static-ization. · 83182544
      	* c-parse.in (yyerror): Const-ification and/or static-ization.
      	* c-typeck.c (push_member_name): Likewise.
      	* collect2.c (main): Likewise.
      	* dbxout.c (dbxout_parms): Likewise.
      	* diagnostic.c (format_with_decl): Likewise.
      	* dwarf2out.c (output_ranges): Likewise.
      	* dwarfout.c (fundamental_type_code): Likewise.
      	* except.c (dw2_output_call_site_table): Likewise.
      	* gcc.c (do_spec_1): Likewise.
      	* genopinit.c (optabs): Likewise.
      	* objc/objc-act.c (synth_id_with_class_suffix, start_class,
      	gen_declaration_1, handle_impent): Likewise.
      	* protoize.c (default_include, in_system_include_dir, abspath):
      	Likewise.
      	* sched-vis.c (visualize_stall_cycles): Likewise.
      	* sdbout.c (plain_type_1, sdbout_end_function,
      	sdbout_end_epilogue): Likewise.
      	* varasm.c (decode_reg_name): Likewise.
      
      	* 1750a.c (mod_regno_adjust): Likewise.
      	* alpha.c (alpha_write_one_linkage,
      	unicosmk_output_default_externs): Likewise.
      	* arm.c (arm_condition_codes): Likewise.
      	* arm.h (arm_condition_codes): Likewise.
      	* avr.c (output_movsisf, encode_section_info): Likewise.
      	* darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
      	Likewise.
      	* i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
      	* i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
      	* m88k.c (output_function_profiler): Likewise.
      	* mips.c (mips_output_conditional_branch): Likewise.
      	* ns32k.c (ns32k_out_reg_names): Likewise.
      	* ns32k.h (ns32k_out_reg_names): Likewise.
      	* pj.c (pj_output_rval): Likewise.
      	* rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
      	* sparc.c (sparc_flat_function_prologue,
      	sparc_flat_function_epilogue): Likewise.
      
      cp:
      	* decl.c (warn_extern_redeclared_static, cp_make_fname_decl):
      	Const-ification.
      	* pt.c (tsubst_decl): Likewise.
      
      f:
      	* bad.c (ffebad_finish): Const-ification and/or static-ization.
      	* intrin.c (ffeintrin_cmp_name_): Likewise.
      	* stc.c (ffestc_R904): Likewise.
      
      java:
      	* expr.c (expand_invoke): Const-ification.
      	* parse.y (patch_method_invocation): Likewise.
      
      From-SVN: r45581
      Kaveh R. Ghazi committed
  3. 06 Sep, 2001 1 commit
  4. 18 Aug, 2001 1 commit
    • except.c (TYPE_HASH): Delete. · 1c0cc57e
      	* except.c (TYPE_HASH): Delete.
      
      	* objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
      	HOST_WIDE_INT.
      
      	* tree.c (TYPE_HASH): Delete.
      
      	* tree.h (TYPE_HASH): Define.
      
      ch:
      	* tree.c (TYPE_HASH): Moved to ../tree.h.
      
      cp:
      	* decl.c: Cast argument to size_t, not HOST_WIDE_INT, in calls to
      	GNU_xref_start_scope and GNU_xref_end_scope.
      
      	* tree.c (TYPE_HASH): Moved to ../tree.h.
      
      From-SVN: r45004
      Kaveh R. Ghazi committed
  5. 09 Aug, 2001 1 commit
  6. 07 Aug, 2001 1 commit
    • varasm.c (assemble_constructor): Take a symbol_ref and a priority instead of a bare string. · 47907859
              * varasm.c (assemble_constructor): Take a symbol_ref and a
              priority instead of a bare string.  Move priority handling
              here from cp/decl2.c.
              * output.h: Update decls.
      
              * c-decl.c (c_expand_body): Update calls to assemble_constructor
              and assemble_destructor.
              * profile.c (output_func_start_profiler): Likewise.
              * objc/objc-act.c (finish_objc): Likewise.
              (build_module_descriptor): Return the symbol not the symbol name.
      
              * ch/grant.c (chill_finish_compile): Pass a symbol_ref and priority
              to assemble_constructor.
      
              * cp/decl2.c (finish_objects): Pass a symbol_ref and priority to
              assemble_{constructor,destructor}.  Remove priority handling.
      
              * java/class.c (emit_register_classes): Pass a symbol_ref and priority
              to assemble_constructor.
      
      From-SVN: r44678
      Richard Henderson committed
  7. 04 Aug, 2001 1 commit
    • Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h are also on line-map.h. · ef6e958a
      	* Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
      	are also on line-map.h.
      	* cppfiles.c (stack_include_file): Update.
      	* cpphash.h (struct cpp_buffer): New member return_at_eof.
      	(_cpp_pop_buffer): New.
      	* cppinit.c (cpp_destroy, cpp_finish): Update.
      	(do_includes): Mark each buffer to return at EOF.
      	* cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
      	return as requested.
      	* cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
      	(cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
      	* cpplib.h (cpp_pop_buffer): Remove.
      	(cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
      	* cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
      	buffers.
      	* cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
      	to pop buffers.
      	(do_preprocessing): Update.
      	* fix-header.c (read_scan_file): Update.  No need to pop buffers.
      	* c-parse.in (_yylex): Similarly.
      	* scan-decls.c (scan_decls): Similarly.
      	* line-map.h: Update comments.
      
      	* cp/spew.c (read_token): No need to pop buffers.
      
      	* objc/Make-lang.in (objc-act.o): Update dependencies.
      
      From-SVN: r44634
      Neil Booth committed
  8. 01 Aug, 2001 1 commit
    • c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for contextualizing… · f2e6e530
      c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for contextualizing Objective-C class name lookup by the...
      
      2001-08-01  Ziemowit Laski  <zlaski@apple.com>
      
              * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
      	contextualizing Objective-C class name lookup by the lexer.
      	(typespec_reserved_nonattr): Disable ObjC class name lookup after
      	seeing a TYPESPEC.
      	(protocoldef): Add support for forward @protocol declarations.
      	(yylexname): Suppress ObjC class name lookup in certain contexts;
      	re-enable after lookup is complete.
      	(_yylex): Re-enable ObjC class name lookup when certain
      	punctuation marks are seen.
      
      	* objc/objc-act.c (check_protocol_recursively): New function used
      	for finding circular dependencies in protocols.
      	(objc_declare_protocols): New function for handling forward
      	@protocol declarations.
      	(receiver_is_class_object): Detect the case when 'self' is used
      	inside of a class method.
      	(build_message_expr): Issue a warning if class method is desired
      	but instance method is found instead.
      	(conforms_to_protocol): Streamline.
      	(objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
      	protocol Foo, even if 'Bar foo' does not.
      	(check_protocols): Streamline.
      	(start_protocol): Add checks for circular and duplicate protocol
      	definitions.
      	(encode_aggregate_within): For typedefs of structs, encode the
      	underlying struct.
      	* objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
      	(objc_declare_protocols): New prototype.
      
      From-SVN: r44536
      Ziemowit Laski committed
  9. 23 Jul, 2001 1 commit
  10. 08 Jul, 2001 1 commit
    • c-common.c (decl_attributes): Only take a single attributes parameter. · f7a4cec0
      	* c-common.c (decl_attributes): Only take a single attributes
      	parameter.
      	* c-common.h (decl_attributes): Update prototype.
      	* c-decl.c (start_decl, start_function): Only take a single
      	attributes parameter.  Update calls to decl_attributes.
      	(finish_struct, finish_enum): Update calls to decl_attributes.
      	(push_parm_decl): Expect unified list of attributes.  Update call
      	to decl_attributes.
      	* c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
      	notype_nested_function, component_declarator,
      	component_notype_declarator, label): Update calls to
      	decl_attributes.
      	(absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
      	lists that are passed to push_parm_decl.
      	* c-tree.h (start_function, start_decl): Update prototypes.
      	* config/sh/sh-protos.h, config/sh/sh.c
      	(sh_pragma_insert_attributes): Only take a single attributes
      	parameter.
      	* config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
      	* doc/tm.texi (INSERT_ATTRIBUTES): Update.
      	* objc/objc-act.c (define_decl, generate_objc_symtab_decl,
      	build_module_descriptor, generate_static_references,
      	generate_strings, build_selector_translation_table,
      	generate_descriptor_table, generate_protocols,
      	generate_ivars_list, generate_dispatch_table,
      	generate_protocol_list, generate_category,
      	generate_shared_structures, really_start_method, add_objc_decls,
      	generate_classref_translation_entry): Update calls to start_decl
      	and start_function.
      	(build_tmp_function_decl, start_method_def): Unify attribute lists
      	that are passed to push_parm_decl.
      
      cp:
      	* decl.c (grokdeclarator), decl2.c (cplus_decl_attributes): Update
      	calls to decl_attributes.
      
      testsuite:
      	* gcc.c-torture/compile/20010701-1.c,
      	g++.old-deja/g++.ext/attrib6.C: New tests.
      
      From-SVN: r43850
      Joseph Myers committed
  11. 28 Jun, 2001 1 commit
  12. 22 Jun, 2001 1 commit
  13. 20 Jun, 2001 1 commit
  14. 28 May, 2001 2 commits
  15. 26 May, 2001 1 commit
  16. 20 May, 2001 2 commits
    • hashtable.c (calc_hash): Fix HASHSTEP definition. · a078edf8
      	* hashtable.c (calc_hash): Fix HASHSTEP definition.
      	* stringpool.c (make_identifier): No statistics here anymore.
      	* objc-act.c (steup_string_decl): Remove redundant check.
      
      From-SVN: r42337
      Neil Booth committed
    • Makefile.in (OBJS, [...]): Update. · 2a967f3d
      	* Makefile.in (OBJS, LIBCPP_OBJS, LIBCPP_DEPS,
      	cpplib.o, cpphash.o, fix-header): Update.
      	(hashtable.o): New target.
      	* c-common.h: Include cpplib.h.  Define C_RID_CODE and
      	struct c_common_identifier here.
      	* c-lang.c (c_init_options): Update.  Call set_identifier_size.
      	* c-lex.c (c_lex): Update.
      	* c-pragma.h: Update.
      	* c-tree.h (struct lang_identifier): Contain c_common_identifier.
      	Delete rid_code.
      	(C_RID_CODE): Delete.
      	* cpphash.c: Rewrite to use hashtable.c.
      	* cpphash.h: Update include guards.
      	(struct cpp_reader): Remove hashtab.
      	hash_ob and buffer_ob are no longer pointers.  Add hash_table
      	and our_hashtable.
      	(HASHSTEP, _cpp_init_hashtable,	_cpp_lookup_with_hash): Delete.
      	(_cpp_cleanup_hashtable): Rename _cpp_destroy_hashtable.
      	(_cpp_cleanup_stacks): Rename _cpp_init_directives.
      	* cppinit.c (cpp_create_reader): Update.
      	* cpplex.c (cpp_ideq, parse_identifier, cpp_output_token): Update.
      	(cpp_interpret_charconst): Eliminate warning.
      	* cpplib.c (do_pragma, do_endif, push_conditional,
      	cpp_push_buffer, cpp_pop_buffer): Update.
      	(_cpp_init_stacks): Rename cpp_init_directives.
      	(_cpp_cleanup_stacks): Remove.
      	* cpplib.h: Update include guards.  Include tree-core.h and c-rid.h.
      	(cpp_hashnode, cpp_token, NODE_LEN, NODE_NAME,
      	 cpp_forall_identifiers, cpp_create_reader): Update.
      	(C_RID_CODE, cpp_make_node): New.
      	(c_common_identifier): New identifier node for C front ends.
      	* cppmain.c (main): Update.
      	* fix-header.c (read_scan_file): Update.
      	* flags.h (id_clash_len): Make unsigned.
      	* ggc.h (ggc_mark_nonnull_tree): New.
      	* hashtable.c: New.
      	* hashtable.h: New.
      	* stringpool.c: Update comments and copyright.  Update to use
      	hashtable.c.
      	* toplev.c (approx_sqrt): Move to hashtable.c.
      	(id_clash_len): Make unsigned.
      	* toplev.h (ident_hash): New.
      	* tree.c (gcc_obstack_init): Move to hashtable.c.
      	* tree.h: Include hashtable.h.
      	(IDENTIFIER_POINTER, IDENTIFIER_LENGTH): Update.
      	(GCC_IDENT_TO_HT_IDENT, HT_IDENT_TO_GCC_IDENT): New.
      	(struct tree_identifier): Update.
      	(make_identifier): New.
      cp:
      	* cp-tree.h (struct lang_identifier, C_RID_YYCODE): Update.
      	(C_RID_CODE): Remove.
      	* lex.c (cxx_init_options): Call set_identifier_size.  Update.
      	(init_parse): Don't do it here.
      objc:
      	* objc-act.c (objc_init_options): Call set_identifier_size. Update.
      
      From-SVN: r42334
      Neil Booth committed
  17. 16 May, 2001 1 commit
    • c-common.h (RID_FIRST_PQ): New. · 4c521bad
      	* c-common.h (RID_FIRST_PQ): New.
      	* c-parse.in (objc_pq_context): New.
      	(objc parser): Set objc_pq_context rather than calling
      	remember_protocol_qualifiers and forget_protocol_qualifiers.
      	Don't call save_and_forget_protocol_qualifiers.
      	(yylexname): Handle objc protocol qualifiers here.
      	* stringpool.c (struct str_header): Replace with sp_hashnode.
      	(SP_EMPTY, SP_LEN, SP_TREE, SP_STR, SP_VALID): New.
      	(alloc_string): Rename alloc_ident.  Use the SP_ accessors.
      	Allocate an IDENTIFIER_NODE for each identifier.
      	(FORALL_STRINGS, set_identifier): Delete.
      	(FORALL_IDS, expand_string_table, stringpool_statistics): Update.
      	(ggc_alloc_string): Use an obstack.
      	(get_identifier, maybe_get_identifier, mark_string_hash): Update.
      	* tree.h: Update comments.
      	(set_identifier): Delete.
      	* objc/objc-act.c (N_PQ, saved_pq, saved_not_pq,
      	save_and_forget_protocol_qualifiers, forget_protocol_qualifiers,
      	remember_protocol_qualifiers): Delete.
      
      From-SVN: r42132
      Neil Booth committed
  18. 15 May, 2001 1 commit
  19. 02 May, 2001 1 commit
  20. 01 May, 2001 2 commits
    • objc-act.c (build_module_descriptor): Clear DECL_CONTEXT of UOBJC_MODULES_decl. · d54d2a05
              * objc/objc-act.c (build_module_descriptor): Clear DECL_CONTEXT
              of UOBJC_MODULES_decl.
              (generate_strings): Clear DECL_CONTEXT of new decl nodes.
              (generate_descriptor_table): Ditto.
              (generate_protocols): Ditto.
              (generate_protocol_list): Ditto.
              (generate_classref_translation_entry): Ditto.
      
      From-SVN: r41736
      Stan Shebs committed
    • bitmap.c: Change NULL_PTR to NULL or "(rtx*)0". · 6496a589
      	* bitmap.c: Change NULL_PTR to NULL or "(rtx*)0".
      	* c-common.c: Likewise.
      	* c-decl.c: Likewise.
      	* combine.c: Likewise.
      	* rs6000.c: Likewise.
      	* except.c: Likewise.
      	* explow.c: Likewise.
      	* expr.c: Likewise.
      	* fold-const.c: Likewise.
      	* function.c: Likewise.
      	* gcc.c: Likewise.
      	* gcse.c: Likewise.
      	* integrate.c: Likewise.
      	* loop.c: Likewise.
      	* objc/objc-act.c: Likewise.
      	* recog.c: Likewise.
      	* reg-stack.c: Likewise.
      	* reload.c: Likewise.
      	* reload1.c: Likewise.
      	* simplify-rtx.c: Likewise.
      	* stmt.c: Likewise.
      	* varasm.c: Likewise.
      
      From-SVN: r41722
      Kaveh R. Ghazi committed
  21. 29 Apr, 2001 1 commit
  22. 13 Apr, 2001 1 commit
  23. 28 Mar, 2001 1 commit
    • objc-act.c (objc_init): Use dump_base_name. · e804281e
      	* objc/objc-act.c (objc_init): Use dump_base_name.
              (gen_declaration): Clear the buffer arg.
              (gen_declaration_1): New function, body of gen_declaration.
              (adorn_decl): Call gen_declaration_1 instead of gen_declaration.
              (gen_method_decl): Ditto, plus always clear buffer arg.
              (error_with_ivar): Simplify.
              (warn_with_method): Ditto.
              (build_message_expr): Don't clear buffers.
              (dump_interface): Ditto.
              (objc_debug): Ditto.
              (build_keyword_selector): Clear the buffer by only zeroing
              the first element.
              (objc_implementation_context): Declare.
              (start_class): Warn about missing @end.
              (finish_objc): Ditto.
      
      From-SVN: r40895
      Stan Shebs committed
  24. 27 Mar, 2001 1 commit
    • Makefile.in (SYSTEM_H): Define. · 911e6107
      	* Makefile.in (SYSTEM_H): Define.
      	Depend on $(SYSTEM_H), not system.h.
      
      	* objc/Make-lang.in: Depend on $(SYSTEM_H), not system.h.
      
      cp:
      	* Make-lang.in: Depend on $(SYSTEM_H), not system.h.
      
      f:
      	* Make-lang.in: Depend on $(SYSTEM_H), not system.h.
      
      java:
      	* Make-lang.in: Depend on $(SYSTEM_H), not system.h.
      
      From-SVN: r40883
      Kaveh R. Ghazi committed
  25. 20 Mar, 2001 2 commits
  26. 15 Mar, 2001 1 commit
    • varasm.c (assemble_alias): Use DECL_ASSEMBLER_NAME... · 19e7881c
      	* varasm.c (assemble_alias): Use DECL_ASSEMBLER_NAME, not the
      	contents of the RTL, to determine the name of the object.
      
      	* tree.h (DECL_RTL): Allocate RTL lazily.
      	(SET_DECL_RTL): New macro.
      	(DECL_RTL_SET_P): Likewise.
      	(COPY_DECL_RTL): Likewise.
      	(DECL_RTL_IF_SET): Likewise.
      	* varasm.c (make_decl_rtl): Add assertions about the kind of
      	declaration we are processing.
      	* c-decl.c (duplicate_decls): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
      	(start_decl): Likewise.
      	(finish_decl): Likewise.
      	* c-semantics.c (emit_local_var): Likewise.
      	* calls.c (expand_call): Likewise.
      	* dbxout.c (dbxout_symbol): Likewise.
      	* emit-rtl.c (unshare_all_rtl): Likewise.
      	(unshare_all_decls): Likewise.
      	(reset_used_decls): Likewise.
      	* expr.c (store_constructor): Likewise.
      	(safe_from_p): Likewise.
      	(expand_expr): Likewise.
      	* function.c (put_var_into_stack): Likewise.
      	(instantiate_decls_1): Likewise.
      	(assign_parms): Likewise.
      	(expand_function_start): Likewise.
      	(expand_function_end): Likewise.
      	* ggc-common.c (gcc_mark_trees): Likewise.
      	* integrate.c (function_cannot_inline_p): Likewise.
      	(copy_decl_for_inlining): Likewise.
      	(expand_inline_function): Likewise.
      	(integrate_parm_decls): Likewise.
      	(integrate_decl_tree): Likewise.
      	* print-tree.c (print_node): Likewise.
      	* reg-stack.c (stack_result): Likewise.
      	* stmt.c (label_rtx): Likewise.
      	(expand_return): Likewise.
      	(expand_decl): Likewise.
      	(expand_decl_cleanup): Likewise.
      	(expand_anon_union_decl): Likewise.
      	* toplev.c (check_global_declarations): Likewise.
      	(rest_of_decl_compilation): Likewise.
      	* tree.c (simple_cst_equal): Likewise.
      	* objc/objc-act.c (generate_static_references): Likewise.
      
      	* class.c (build_clone): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
      	* cp-tree.h (DECL_IN_MEMORY_P): Likewise.
      	* decl.c (duplicate_decls): Likewise.
      	(builtin_function): Likewise.
      	(build_library_fn): Likewise.
      	(build_cp_library_fn): Likewise.
      	(check_initializer): Likewise.
      	(cp_finish_decl): Likewise.
      	* decl2.c (grokfield): Likewise.
      	(grok_function_init): Remove #if 0'd code.
      	(finish_anon_union): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
      	* friend.c (do_friend): Likewise.
      	* init.c (get_temp_regvar): Likewise.
      	* method.c (make_thunk): Likewise.
      	* pt.c (tsubst_friend_function): Likewise.
      	(tsubst_decl): Likewise.
      	(regenerate_decl_from_template): Likewise.
      	* semantics.c (genrtl_named_return_value): Likewise.
      	(expand_body): Likewise.
      	(genrtl_finish_function): Likewise.
      	* tree.c (cp_tree_equal): Likewise.
      
      	* com.c (ffecom_member_phase_2): Use COPY_DECL_RTL,
      	DECL_RTL_SET_P, etc.
      	(duplicate_decls): Likewise.
      	(start_decl): Likewise.
      
      	* class.c (build_static_field_ref): Likewise.
      	(make_method_value): Likewise.
      	(get_dispatch_table): Likewise.
      
      	* decl.c (push_jvm_slot): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
      
      From-SVN: r40482
      Mark Mitchell committed
  27. 09 Mar, 2001 1 commit
  28. 07 Mar, 2001 1 commit
  29. 06 Mar, 2001 1 commit
    • objc-act.c (objc_add_static_instance): Set DECL_INITIAL and DECL_DEFER_OUTPUT on… · 69f8cbfa
      objc-act.c (objc_add_static_instance): Set DECL_INITIAL and DECL_DEFER_OUTPUT on the decl we create...
      
      	* objc/objc-act.c (objc_add_static_instance): Set DECL_INITIAL
      	and DECL_DEFER_OUTPUT on the decl we create, before calling
      	rest_of_decl_compilation.
      testsuite:
              * objc/execute/string1.m, objc/execute/string2.m: Compare the
              result of -cString against what we expect it to be; don't just
              print it out for no one to read.
      
      	* objc/execute/string3.m, objc/execute/string4.m: New tests.
      	Based on testcases provided by Nicola Pero.
      
      From-SVN: r40261
      Zack Weinberg committed
  30. 02 Mar, 2001 2 commits
    • gcc.c, [...]: Add zero initializer for cpp_spec field to all array elements. · f7143427
      	* gcc.c, cp/lang-specs.h, f/lang-specs.h, java/lang-specs.h,
      	objc/lang-specs.h: Add zero initializer for cpp_spec field to
      	all array elements.
      	* cp/lang-specs.h: Don't put an #ifdef inside the initializer
      	list; set a default for CPLUSPLUS_CPP_SPEC and use it.
      
      From-SVN: r40173
      Zack Weinberg committed
    • stringpool.c (set_identifier): New function. · 71b7be38
      	* stringpool.c (set_identifier): New function.
      	* tree.h: Prototype it.
      
      	* c-parse.in: Kill D_YES. If compiled for objc, call
      	save_and_forget_protocol_qualifiers from init_reswords.
      	* objc/objc-act.c (remember_protocol_qualifiers,
      	forget_protocol_qualifiers): Don't diddle C_IS_RESERVED_WORD.
      	Swap out the non-keyword IDENTIFIER_NODEs for keyword ones, or
      	vice versa.
      	(save_and_forget_protocol_qualifiers): New function.
      	* c-lex.h: Prototype save_and_forget_protocol_qualifiers.
      
      From-SVN: r40170
      Zack Weinberg committed
  31. 16 Feb, 2001 1 commit
  32. 04 Feb, 2001 1 commit
    • diagnostic.h (set_internal_error_function): Renamed. · 400500c4
      	* diagnostic.h (set_internal_error_function): Renamed.
      	* toplev.h (internal_error): Renamed from fatal.
      	(pfatal_with_name): Deleted.
      	(fatal_io_error): Now has printf-style arguments.
      	* diagnostic.c (pfatal_with_name): Deleted.
      	(fatal_io_error): Rework to have args in printf-style.
      	(set_internal_error_function): Renamed from set_fatal_function.
      	(internal_error): Renamed from fatal.
      	(error_recursion, fancy_abort): Call internal_error instead of fatal.
      	* dwarf2out.c (get_cfa_from_loc_descr): Likewise.
      	* emit-rtl.c (gen_realpart, gen_imagpart): Likewise.
      	* expr.c (check_max_integer_computation_mode, expand_expr): Likewise.
      	* flow.c (verify_flow_info): Likewise.
      	* config/arm/arm.c (thumb_unexpanded_epilogue): Likewise.
      	* config/mips/mips.c (save_restore_insns): Likewise.
      	* cp/init.c (build_java_class_ref): Likewise.
      	(dsp16xx_reg_class_from_letter): Likewise.
      	(limit_reload_class, double_reg_to_memory): Likewise.
      	(print_operand_address, emit_1600_code_shift): Likewise.
      	(gen_tst_reg, gen_compare_reg): Likewise.
      	* config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Likewise.
      	* cp/decl.c (pushdecl): Likewise.
      	* java/check-init.c (check_init): Likewise.
      	* java/expr.c (java_lang_expand_expr): Likewise.
      	* java/jcf-parse.c (get_constant): Likewise.
      	* java/mangle.c (java_mangle_decl): Likewise.
      	* java/parse.y (make_nested_class_name, java_complete_lhs): Likewise.
      	(operator_string): Likewise.
      
      	* except.c (duplicate_eh_handlers): Call abort instead of fatal.
      	* flow.c (verify_flow_info): Likewise.
      	* ch/convert.c (convert): Likewise.
      	* ch/except.c (pop_handler, chill_check_no_handlers): Likewise.
      	* ch/expr.c (chill_expand_expr): Likewise.
      	* ch/parse.c (peek_token_, pushback_token, require): Likewise.
      	* config/arm/arm.c (thumb_load_double_from_address): Likewise.
      	* config/avr/avr.c (pttreg_to_str, unique_section): Likewise.
      	(avr_normalize_condition): Likewise.
      	* config/c4x/c4x.c (c4x_emit_libcall, c4x_valid_operands): Likewise.
      	* config/dsp16xx/dsp16xx.c (dsp16xx_reg_class_from_letter): Likewise.
      	(limit_reload_class, double_reg_to_memory): Likewise.
      	(print_operand_address, emit_1600_code_shift): Likewise.
      	(gen_tst_reg, gen_compare_reg): Likewise.
      	* config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Likewise.
      	* cp/decl.c (pushdecl): Likewise.
      	* java/check-init.c (check_init): Likewise.
      	* java/class.c (build_class_ref): Likewise.
      	* java/constants.c (write_constant_pool): Likewise.
      	* java/decl.c (start_java_method): Likewise.
      	* java/expr.c (push_type, java_stack_pop, java_stack_swap): Likewise.
      	(java_stack_dup, encode_newarray_type): Likewise.
      	(build_java_array_length_access): Likewise.
      	(build_java_check_indexed_type, expand_java_pushc): Likewise.
      	(build_java_soft_divmod, build_invokeinterface): Likewise.
      	* java/java-tree.h (INNER_CLASS_P): Likewise.
      	* java/jcf-parse.c (parse_signature, get_name_constant): Likewise.
      	(give_name_to_class, get_class_constant): Likewise.
      	* java/jcf-write.c (CHECK_PUT, CHECK_OP, get_access_flags): Likewise.
      	(find_constant_index, generate_bytecode_conditional): Likewise.
      	(generate_bytecode_insns, perform_relocations): Likewise.
      	* java/lex.c (java_unget_unicode, java_lex): Likewise.
      	* java/mangle.c (mangle_type, mangle_record_type): Likewise.
      	(mangle_pointer_type, mangle_array_type, init_mangling): Likewise.
      	(finish_mangling): Likewise.
      	* java/parse.h (MARK_FINAL_PARMS): Likewise.
      	* java/parse.y (pop_current_osb, unreachable_stmt_error): Likewise.
      	(obtain_incomplete_type, java_complete_class): Likewise.
      	(java_check_regular_methods, java_complete_expand_method): Likewise.
      	(cut_identifier_in_qualified, check_deprecation): Likewise.
      	(patch_invoke, find_applicable_accessible_methods_list): Likewise.
      	(java_complete_lhs, lookup_name_in_blocks): Likewise.
      	(check_final_variable_indirect_assignment, build_unaryop): Likewise.
      	* java/typeck.c (set_local_type, parse_signature_type): Likewise.
      	(parse_signature_string, build_java_signature): Likewise;
      	(set_java_signature): Likewise.
      	* java/verify.c (type_stack_dup, CHECK_PC_IN_RANGE): Likewise.
      
      	* c-parse.in (methoddef): Call fatal_error instead of fatal.
      	* objc/objc-act.c (build_ivar_chain): Likewise.
      	* cp/except.c (decl_is_java_type): Likewise.
      	* cp/init.c (build_java_class_ref): Likewise.
      	* cp/init.c (build_new_1): Likewise.
      	* f/com.c (ffecom_init_0): Likewise.
      	* java/class.c (add_method, build_static_field_ref): Likewise.
      	* java/expr.c (build_known_method_ref, expand_invoke): Likewise.
      	* java/jcf-parse.c (get_constant, jcf_parse): Likewise.
      	* java/lex.c (java_new_new_lexer): Likewise.
      	* java/jv-scan.c (main): Likewise.
      	(fatal_error): Renamed from fatal.
      
      	* dwarfout.c (dwarfout_init): Call fatal_io_error instead of
      	pfatal_with_name.
      	* graph.c (clean_graph_dump_file): Likewise.
      	* profile.c (init_branch_prob): Likewise.
      	* ch/grant.c (write_grant_file): Likewise.
      	* ch/lex.c (init_parse, same_file, yywrap): Likewise.
      	* f/com.c (init_parse): Likewise.
      	* java/jcf-parse.c (yyparse): Likewise.
      	* objc/objc-act.c (objc_init): Likewise.
      
      	* java/jcf-parse.c (jcf_parse_source): Call fatal_io_error, not fatal.
      	(yyparse): Likewise.
      	* java/jcf-write.c (make_class_file_name, write_classfile): Likewise.
      	* java/lex.c (java_get_line_col): Likewise.
      
      	* hash.c (hash_allocate): Don't check for failure returns from
      	obstack functions that can't fail.
      	(hash_table_init_n, hash_table_init): Likewise; also now return void.
      	* hash.h (hash_table_init_n, hash_table_init): Now return void.
      	* cp/decl.c (build_typename_type): hash_table_init now returns void.
      
      	* ch/lang.c (GNU_xref_begin, GNU_xref_end): Deleted.
      	* ch/lex.c (convert_bitstring): Delete check for alloca failure.
      	* config/dsp16xx/dsp16xx.c (dsp16xx_invalid_register_for_compare):
      	Deleted.
      	* config/dsp16xx/dsp16xx.md (unnamed cmphi): Call abort instead of it.
      
      	* f/com.c (ffecom_decode_include_option_): Make errors non-fatal.
      	* f/lex.c (ffelex_cfelex_, ffelex_get_directive_line_): Likewise.
      	(ffelex_hash_): Likewise.
      	* config/arm/arm.c (arm_override_options): Likewise.
      	* config/avr/avr.c (avr_override_options): Likewise.
      	* config/c4x/c4x.c (c4x_expand_prologue): Likewise.
      	* config/dsp16xx/dsp16xx.c (function_prologue): Likewise.
      	* config/h8300/h8300.c (h8300_init_once): Likewise.
      	* config/mips/mips.c (override_options): Likewise.
      	* config/i386/i386.c (override_options): Likewise, rework.
      	* config/m68k/m68k.c (override_options): Likewise.
      	* cp/decl.c (init_decl_processing): Likewise.
      	* java/jcf-parse.c (load_class): Likewise.
      
      	* config/dsp16xx/dsp16xx.c (print_operand): Call output_operand_lossage
      	instead of fatal.
      	* config/mips/mips.c (print_operand): Likewise.
      
      	* java/lex.c (byteswap_init, need_byteswap): Only #ifdef HAVE_ICONV.
      	* objc/objc_act.c (objc_check_decl): Remove unneeded fatal call.
      	(get_object_reference): Likewise.
      
      From-SVN: r39443
      Richard Kenner committed
  33. 29 Jan, 2001 1 commit
    • tree.c, tree.h (build_parse_node): Remove; was identical to build_nt. · 718b8ea5
      	* tree.c, tree.h (build_parse_node): Remove; was identical to
      	build_nt.
      	* c-lang.c (start_cdtor), objc/objc-act.c
      	(build_module_descriptor): Use build_nt instead of
      	build_parse_node.
      
      cp:
      	* decl2.c (build_expr_from_tree), lex.c (make_pointer_declarator,
      	make_reference_declarator, make_call_declarator), method.c
      	(implicitly_declare_fn), parse.y (namespace_using_decl,
      	notype_unqualified_id, expr_or_declarator, new_type_id,
      	after_type_declarator, direct_after_type_declarator,
      	notype_declarator, complex_notype_declarator,
      	complex_direct_notype_declarator, qualified_id,
      	notype_qualified_id, overqualified_id, direct_new_declarator,
      	absdcl, direct_abstract_declarator, conversion_declarator), pt.c
      	(tsubst), semantics.c (begin_constructor_declarator): Use build_nt
      	instead of build_parse_node.
      
      From-SVN: r39332
      Joseph Myers committed
  34. 10 Jan, 2001 2 commits
    • output.h (make_function_rtl): Remove prototype. · 6c418184
      	* output.h (make_function_rtl): Remove prototype.
      	(make_decl_rtl): Likewise.
      	* varasm.c (make_function_rtl): Remove.
      	(make_decl_rtl): Determine top-levelness from DECL_CONTEXT, rather
      	than from a third parameter.
      	* tree.h (make_decl_rtl): Remove last parameter.
      	* c-decl.c (builtin_function): Remove last argument in call to
      	make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
      	(start_function): Likewise.
      	* except.c (call_get_eh_context): Likewise.
      	* expr.c (emit_block_move): Likewise.
      	(clear_storage): Likewise.
      	* profile.c (output_func_start_profiler): Likewise.
      	* toplev.c (rest_of_decl_compilation): Likewise.
      	* objc/objc-act.c (create_builtin_decl): Likewise.
      	(synth_module_prologue): Likewise.
      	(generate_static_reference): Likewise.
      	(build_selector_reference_decl): Likewise.
      	(build_class_reference_decl): Likewise.
      	(build_objc_string_decl): Likewise.
      	(build_protocol_reference): Likewise.
      
      	* class.c (finish_struct_1):  Remove last argument in call to
      	make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
      	* decl.c (builtin_function): Likewise.
      	(build_cp_library_fn): Likewise.
      	(check_initializer): Likewise.
      	(make_rtl_for_nonlocal_decl): Likewise.
      	(cp_finish_decl): Likewise.
      	(start_function): Likewise.
      	* decl2.c (finish_anon_union): Likewise.
      	* friend.c (do_friend): Likewise.
      	* init.c (build_java_class_ref): Likewise.
      	* method.c (make_thunk): Likewise.
      	* pt.c (tsubst_friend_function): Likewise.
      	* semantics.c (expand_body): Likewise.
      
      	* com.c (ffecom_init_zero_):  Remove last argument in call to
      	make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
      	(ffecom_lookup_label_): Likewise.
      	(builtin_function): Likewise.
      	(start_function): Likewise.
      
      	* class.c (build_utf8_ref): Remove last argument in call to
      	make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
      	(build_class_ref): Likewise.
      	(build_static_field_ref): Likewise.
      	(get_dispatch_table): Likewise.
      	(layout_class_method): Likewise.
      	(emit_register_classes): Likewise.
      	* constants.c (build_constant_data_ref): Likewise.
      	* decl.c (builtin_function): Likewise.
      	(create_primitive_vtable): Likewise.
      	* expr.c (build_known_method_def): Likewise.
      	(build_jni_stub): Likewise.
      	(java_lang_expand_expr): Likewise.
      
      From-SVN: r38884
      Mark Mitchell committed
    • c-lang.c (lang_hooks): Update. · ee811cfd
              * c-lang.c (lang_hooks): Update.
              (lang_decode_option): Remove.
              (lang_init_options): Rename c_init_options.
              * toplev.c (main): Use lang_hooks for lang_init_options
              and lang_decode_option.
              * toplev.h (lang_hooks): Add 2 new hooks.
              * tree.h: Remove lang_init_options and lang_decode_option.
              * cp/cp-tree.h (lang_decode_option): Rename cxx_decode_option.
              * cp/decl2.c: Similarly.
              * cp/lex.c (lang_init_options): Rename cxx_init_options.
              (lang_hooks): Update.
              * f/com.c (f_init, f_finish): Rename ffe_init, ffe_finish
              for consistency.
              (lang_init_options): Rename ffe_init_options.
              (lang_hooks): Update.
              (lang_decode_option): Remove.
              * java/lang.c (lang_init_options): Rename java_init_options.
              (lang_decode_option): Rename java_decode_option.
              (lang_hooks): Update.
              * objc/objc-act.c (lang_init_options): Rename objc_init_options.
              (lang_decode_option): Rename objc_decode_option.
              (lang_hooks): Update.
      
      From-SVN: r38856
      Neil Booth committed