1. 24 Oct, 2002 1 commit
  2. 17 Sep, 2002 1 commit
  3. 06 Sep, 2002 3 commits
  4. 03 Sep, 2002 1 commit
  5. 27 Aug, 2002 1 commit
  6. 26 Aug, 2002 1 commit
  7. 20 Aug, 2002 2 commits
    • objc-act.c (building_objc_message_expr): Rename to current_objc_message_selector. · 9f05cef3
       2002-08-19  Ziemowit Laski  <zlaski@apple.com>
      
             * objc/objc-act.c (building_objc_message_expr): Rename to
             current_objc_message_selector.
      
      From-SVN: r56453
      Ziemowit Laski committed
    • objc-act.c (build_ivar_chain): Remove. · 1bd5981b
      [gcc]
      2002-08-19  Ziemowit Laski  <zlaski@apple.com>
      
              * objc/objc-act.c (build_ivar_chain): Remove.
              (objc_copy_list): Likewise.
              (get_class_ivars): Inline call to removed build_ivar_chain
              function.  Save off a clean copy of ivars in the CLASS_OWN_IVARS
              slot; use that slot (rather than CLASS_IVARS) when accessing
              ivars for base classes.  Call copy_list and chainon instead of
              objc_copy_list.
              (build_private_template): Call get_class_ivars instead of
              build_ivar_chain.
              (start_class): Allocate room for the CLASS_OWN_IVARS slot.
              (continue_class): Call get_class_ivars instead of
              build_ivar_chain.
              (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
              of DECL_BIT_FIELD (which may have been cleared).
              * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
      
      [gcc/testsuite]
      2002-08-19  Ziemowit Laski  <zlaski@apple.com>
      
              * objc.dg/bitfield-1.m: New test.
              * objc.dg/bitfield-2.m: New test.
      
      From-SVN: r56451
      Ziemowit Laski committed
  8. 10 Aug, 2002 2 commits
    • c-opts.c (set_std_cxx98, [...]): New. · f749a36b
      	* c-opts.c (set_std_cxx98, set_std_c89): New.
      	(COMMAND_LINE_OPTIONS): Move more from cppinit.c.
      	(c_common_decode_option): Handle new switches from cppinit.c.
      	Add -std=gnu++98.
      	* cppinit.c (set_lang): Rename cpp_set_lang.  Export.
      	(no_arg, no_num): Remove.
      	(COMMAND_LINE_OPTIONS): Move more to c-opts.c.  Drop all lang-
      	switches apart from -lang-objc and lang-asm.
      	(cpp_handle_option): Similarly.
      	* cpplib.h (cpp_set_lang): New.
      	* doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
      	-std=gnu++98.
      	* objc/lang-specs.h: Remove -ansi.
      cp:
      	* lang-specs.h: Remove -ansi.
      
      From-SVN: r56185
      Neil Booth committed
    • c-common.c (flag_objc): New. · 0f7866e7
      2002-08-09  Ziemowit Laski  <zlaski@apple.com>
      
              * c-common.c (flag_objc): New.
              * c-common.h (c_language_kind): Get rid of clk_objective_c
              enum value.
              (flag_objc): New extern declaration.
              * c-decl.c (implicitly_declare): Call objc_check_decl
              instead of maybe_objc_check_decl.
              (finish_decl): Likewise.
              (grokfield): Likewise.
              (finish_struct): Likewise.
              * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
              (maybe_objc_comptypes): Rename to objc_comptypes.
              (maybe_building_objc_message_expr): Rename to
              objc_message_selector.
              * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
              replace with flag_objc as needed.
              * c-opts.c (c_common_init_options): Likewise.
              (c_common_decode_option): Likewise.
              * c-parse.in (init_reswords): Likewise.
              * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
              (maybe_objc_comptypes): Rename to objc_comptypes.
              (maybe_building_objc_message_expr): Rename to
              objc_message_selector.
              * c-typeck.c (comptypes): Call objc_comptypes instead of
              maybe_objc_comptypes, and/or objc_message_selector instead of
              (comp_target_types): Likewise.
              (convert_for_assignment): Likewise.
              (warn_for_assignment): Likewise.
              * cppinit.c (init_builtins): Set __OBJC__ manifest constant
              independently of those for other languages.
              * objc/objc-act.c (maybe_objc_comptypes): Delete.
              (maybe_objc_check_decl): Delete.
              (maybe_building_objc_message_expr): Rename to
              objc_message_selector.
              * objc/objc-lang.c (objc_init_options): Use clk_c instead of
              clk_objective_c; set flag_objc flag.
      
      From-SVN: r56173
      Ziemowit Laski committed
  9. 08 Aug, 2002 2 commits
    • objc-act.c (build_selector_translation_table): Issue warning... · 7b9be5c7
              * objc/objc-act.c (build_selector_translation_table): Issue
      	warning, when  -Wselector is used,if method for which selector
      	is being created does not exist.
      
      Testsuite:
      	*objc.dg/selector-1.m: New test
      
      From-SVN: r56142
      Devang Patel committed
    • configure.in (enable_coverage): New enable switch. · 22aa533e
      	* configure.in (enable_coverage): New enable switch.
      	* configure: Rebuilt.
      	* Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
      	(INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
      	(ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
      	(mostlyclean): Remove coverage files.
      	* doc/install.texi: Document enable_coverage.
      
      	* cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
      	* ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
      	* f/Make-lang.in (f.mostlyclean): Remove coverage files.
      	* java/Make-lang.in (java.mostlyclean): Remove coverage files.
      	* objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
      	* treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
      	files.
      
      From-SVN: r56126
      Nathan Sidwell committed
  10. 07 Aug, 2002 1 commit
    • Makefile.in (c-opts.o, [...]): Update. · 0b6f2917
      	* Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
      	* c-common.c: Don't include tree-inline.h.
      	(c_common_init_options, c_common_post_options): Move to c-opts.c.
      	* c-common.h (c_common_decode_option): New.
      	* c-decl.c (c_decode_option): Remove.
      	* c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
      	* c-opts.c: New file.
      	* c-tree.h (c_decode_option): Remove.
      	* doc/passes.texi: Update.
      	* objc/objc-act.c (objc_decode_option): Remove.
      	* objc/objc-act.h (objc_decode_option): Remove.
      	* objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
      	c_common_decode_option.
      cp:
      	* Make-lang.in (CXX_C_OBJS): Update.
      	* cp-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
      	* cp-tree.h (cxx_decode_option): Remove.
      	* decl2.c (compare_options, lang_f_options, unsupported_options,
      	cxx_decode_option): Remove.
      testsuite:
      	* objc.dg/const-str-2.m: Update.
      	* gcc.dg/cpp/c++98.c: Change to C extension.
      	* gcc.dg/cpp/c++98-pedantic.c: Similarly.
      	* gcc.dg/cpp/cpp.exp: Process .C extensions too.
      
      From-SVN: r56105
      Neil Booth committed
  11. 01 Aug, 2002 2 commits
  12. 29 Jul, 2002 1 commit
  13. 25 Jul, 2002 1 commit
  14. 23 Jul, 2002 1 commit
    • defaults.h (obstack_chunk_alloc, [...]): Default definition. · 4fa31c2a
      	* defaults.h (obstack_chunk_alloc, obstack_chunk_free):
      	Default definition.
      	* gcse.c: Don't define obstack_chunk_free.
      	* collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
      	flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
      	integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
      	reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
      	Don't define obstack macros.
      cp:
      	* class.c, method.c, pt.c, search.c: Similarly.
      
      From-SVN: r55665
      Neil Booth committed
  15. 14 Jul, 2002 1 commit
  16. 09 Jul, 2002 1 commit
  17. 02 Jul, 2002 2 commits
  18. 01 Jul, 2002 2 commits
    • tree.h: Modify builtin_function interface to take an extra argument ATTRS... · 6a2dd09a
      	* tree.h:  Modify builtin_function interface to take an extra
      	argument ATTRS, which is a tree representing an attribute list.
      
      	* c-decl.c (builtin_function): Accept additional parameter.
      	* objc/objc-act.c (builtin_function): Likewise.
      	* f/com.c (builtin_function): Likewise.
      	* java/decl.c (builtin_function): Likewise.
      	* ada/utils.c (builtin_function): Likewise.
      	* cp/decl.c (builtin_function): Likewise.
      	(builtin_function_1): Likewise.
      
      	* c-common.c (c_common_nodes_and_builtins): Pass an additional
      	NULL_TREE argument to builtin_function.  (builtin_function_2):
      	Likewise.
      	* cp/call.c (build_java_interface_fn_ref): Likewise.
      	* objc/objc-act.c (synth_module_prologue): Likewise.
      	* java/decl.c (java_init_decl_processing): Likewise.
      	* f/com.c (ffe_com_init_0): Likewise.
      
      	* config/alpha/alpha.c (alpha_init_builtins): Pass an additional
      	NULL_TREE argument builtin_function.
      	* config/arm/arm.c (def_builtin): Likewise.
      	* config/c4x/c4x.c (c4x_init_builtins): Likewise.
      	* config/i386/i386.c (def_builtin): Likewise.
      	* config/ia64/ia64.c (def_builtin): Likewise.
      	* config/rs6000/rs6000.c (def_builtin): Likewise.
      
      From-SVN: r55161
      Roger Sayle committed
    • objc-act.c (finish_file): Avoid finish_objc() if -fsyntax-only. · 118f8dc1
      2002-06-30  Devang Patel  <dpatel@apple.com>
      
              * objc/objc-act.c (finish_file): Avoid finish_objc() if
              -fsyntax-only.
      
      2002-06-30  Devang Patel  <dpatel@apple.com>
      
              * objc.dg/fsyntax-only.m: New test.
      
      From-SVN: r55125
      Devang Patel committed
  19. 11 Jun, 2002 1 commit
    • objc-act.c (warn_with_ivar): Adjust calls to diagnostic_count_error. · 13f0d49c
      	* objc/objc-act.c (warn_with_ivar): Adjust calls to
      	diagnostic_count_error.
      	(warn_with_method): Likewise.
      
      	* diagnostic.h (warnings_are_errors_message): New field of
      	diagnostic_context.
      	(diagnostic_count_error): Rename to
      	diagnostic_count_diagnostic to
      	match semantics.
      	* diagnostic.c: Adjust calls to diagnostic_count_error through
      	out.
      	(diagnostic_count_diagnostic): Make aware of other kinds of
      	diagnostics.
      	(diagnostic_initialize): Initialize
      	warnings_are_errors_message field.
      
      f/
      2002-06-12  Gabriel Dos Reis  <gdr@codesourcery.com>
      
      	    * bad.c (ffebad_start_): Adjust calls to
                    diagnostic_count_error.
      
      From-SVN: r54532
      Gabriel Dos Reis committed
  20. 06 Jun, 2002 1 commit
  21. 05 Jun, 2002 1 commit
    • toplev.h (report_error_function): Remove. · 47b69537
      	* toplev.h (report_error_function): Remove.
      
      	* diagnostic.h (location_t): New datatype.
      	(text_info): Likewise.
      	(diagnostic_info): Likewise.
      	(output_prefix): New macro.
      	(diagnostic_last_function_changed): Likewise.
      	(diagnostic_set_last_function): Likewise.
      	(diagnostic_last_module_changed): Likewise.
      	(diagnostic_set_last_module): Likewise.
      	(report_diagnostic): Now macro.
      	(diagnostic_set_info): Declare.
      
      	* diagnostic.c (report_problematic_module): Rename to
      	diagnostic_repor_current_module.
      	(set_diagnostic_context): Remove.
      	(count_error): Rename to diagnostic_error_count.
      	(error_function_changed): Remove.
      	(record_last_error_function): Likewise.
      	(error_module_changed): Likewise.
      	(record_last_error_module): Likewise.
      	(context_as_prefix): Rename to diagnostic_build_prefix.
      	(flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
      	(diagnostic_set_info): New function.
      
      	* objc/objc-act.c: #include diagnostic.h
      	(error_with_ivar): Adjust call to count_error.
      	(warn_with_method): Likewise.
      	* objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
      
      cp/
      2002-06-04  Gabriel Dos Reis  <gdr@codesourcery.com>
      
      	* error.c (cp_diagnostic_starter): Adjust call.
      	(maybe_print_instantiation_context): Change prototype to take a
      	'diagnostic_info *'.
      	(print_instantiation_full_context): Likewise.
      	(print_instantiation_partial_context): Likewise.
      	(cp_diagnostic_starter): Likewise.
      	(cp_diagnostic_finalizer): Likewise.
      	(cp_print_error_function): Likewise.
      	(cp_printer): Take a secondary parameter as a 'text_info *'.
      	Remove output_state savings.  Adjust calls.
      
      f/
      2002-06-04  Gabriel Dos Reis  <gdr@codesourcery.com>
      
      	* bad.c (ffebad_start_): Adjust call to count_error.
      	* Make-lang.in (f/bad.o): Depend on diagnostic.h
      	* bad.c: #include diagnostic.h
      
      From-SVN: r54291
      Gabriel Dos Reis committed
  22. 04 Jun, 2002 1 commit
  23. 31 May, 2002 1 commit
  24. 25 May, 2002 1 commit
    • Makefile.in (C_COMMON_H): Fix. · 81a75f0f
      	* Makefile.in (C_COMMON_H): Fix.
      	Update other targets.
      	* c-common.c: Don't include c-lex.h.
      	(builtin_define_with_value): Make static and prototype.
      	(builtin_define_std): Move from c-lex.h.
      	* c-common.h (init_c_lex): Move from c-lex.h.
      	* c-decl.c: Don't include c-lex.h.
      	(make_pointer_declarator): Move from c-parse.in.
      	* c-lex.c: Don't include c-lex.h.
      	* c-lex.h: Remove.
      	* c-parse.in: Don't include c-lex.h; include c-pragma.h.
      	(make_pointer_declarator): Move to c-decl.c.
      	* c-pragma.c: Don't include c-lex.h.
      	* c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
      	* c-tree.h (make_pointer_declarator): New.
      cp:
      	* lex.c: Don't include c-lex.h.
      	* parse.y, spew.c: Don't include c-lex.h; include c-pragma.h.
      doc:
      	* passes.texi, tm.texi: Update.
      objc:
      	* Make-lang.in: Update and correct.
      	* objc-act.c: Don't include c-lex.h or cpplib.h.
      treelang:
      	* treetree.c: Don't include c-lex.h.
      config:
      	* darwin-c.c: Don't include c-lex.h.
      	* c4x/c4x-c.c: Don't include c-lex.h.
      	* c4x/t-c4x: Update.
      	* i370/i370-c.c: Don't include c-lex.h.
      	* i370/t-i370: Update.
      	* i960/i960-c.c: Don't include c-lex.h.
      	* i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
      	* i960/t-960bare: Update.
      	* i960/t-vxworks: Update.
      	* rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
      	* rs6000/t-darwin: Update.
      	* rs6000/t-rs6000-c-rule: Update.
      	* v850/v850-c.c: Don't include c-lex.h.
      	* v850/v850.c: Don't include c-lex.h or cpplib.h.
      
      From-SVN: r53876
      Neil Booth committed
  25. 22 May, 2002 1 commit
    • re PR preprocessor/6517 (gcc hangs on C compile with multiple "-I-") · e5f3b786
      	PR preprocessor/6517
      	* Makefile.in: Update.
      	* c-common.c (c_common_post_options): Add preprocessor
      	errors to the error count.
      	* c-lang.c (c_post_options): Kill.
      	(LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
      	* hooks.h: Add header guards.
      	* langhooks-def.h: Include hooks.h.
      	(LANG_HOOKS_POST_OPTIONS): Update.
      	* langhooks.h (struct lang_hooks): Update post_options.
      	* toplev.c (parse_options_and_default_flags): Update.
      cp:
      	* cp-lang.c (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
      	* cp-tree.h (cxx_post_options): Kill.
      	* cp-lex.c (cxx_post_options): Kill.
      objc:
      	* objc-lang.c (objc_post_options): Kill.
      	(LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
      
      From-SVN: r53724
      Neil Booth committed
  26. 14 May, 2002 1 commit
  27. 26 Apr, 2002 1 commit
    • c-common.c (fix_string_type): Split out of ... · b84a3874
              * c-common.c (fix_string_type): Split out of ...
              (combine_strings): ... here.  Take a varray, not a tree list.
              (c_expand_builtin_printf): Use fix_string_type.
              * c-common.h: Update decls.
              * c-parse.in (string): Remove.  Update all uses to use STRING
              instead, and not call combine_strings.
              (yylexstring): New.
              (_yylex): Use it.
              * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
              (build_asm_stmt): Likewise.
              * objc/objc-act.c (my_build_string): Use fix_string_type.
              (build_objc_string_object): Build varray for combine_strings.
      
              * parse.y (string): Remove.  Update all uses to use STRING
              instead, and not call combine_strings.
              * rtti.c (tinfo_name): Use fix_string_type.
              * semantics.c (finish_asm_stmt): Don't call combine_strings.
              * spew.c (yylexstring): New.
              (read_token): Use it.
      
      	* g++.dg/parse/concat1.C: New.
      	* gcc.dg/concat2.c: New.
      
      From-SVN: r52790
      Richard Henderson committed
  28. 25 Apr, 2002 1 commit
    • c-common.h (c_common_parse_file): Update. · ff45c01e
      	* c-common.h (c_common_parse_file): Update.
      	* c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
      	* c-lex.c (YYDEBUG): Get from c-lex.h.
      	(c_common_parse_file): Update.
      	* c-lex.h (YYDEBUG, yydebug): New.
      	* c-parse.in (YYDEBUG): Get from c-lex.h.
      	(c_set_yydebug): Remove.
      	* c-tree.h (c_set_yydebug): Remove.
      	* langhooks-def.h (lhd_do_nothing_i): New.
      	(lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
      	(LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
      	* langhooks.c  (lhd_do_nothing_i): New.
      	(lhd_set_yydebug): Remove.
      	* langhooks.h (struct lang_hooks): Update.
      	* toplev.c (set_yydebug): New.
      	(compile_file): Update call to parse_file hook.
      	(decode_d_option): Update.
      ada:
      	* misc.c (gnat_parse_file): Update.
      cp:
      	* cp-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
      	* cp-tree.h (cxx_set_yydebug): Die.
      	* lex.c (YYDEBUG): Get from c-lex.h.
      	(cxx_set_yydebug): Remove.
      	* parse.y: Include c-lex.h.
      	(YYDEBUG): Get from c-lex.h.
      f:
      	* com.h (ffe_parse_file): Update.
      	* lex.c (ffe_parse_file): Update.
      java:
      	* java-tree.h (java_parse_file): Update.
      	(java_set_yydebug): Remove.
      	* jcf-parse.c (yydebug): Remove.
      	(java_set_yydebug): Die.
      	(java_parse_file): Update.
      	* lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
      objc:
      	* objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
      
      From-SVN: r52753
      Neil Booth committed
  29. 24 Apr, 2002 1 commit
    • attribs.c (c_common_attribute_table): Move table and handlers to c-common.c. · 349ae713
      	* attribs.c (c_common_attribute_table): Move table and handlers
      	to c-common.c.
      	(format_attribute_table, lang_attribute_table,
      	lang_attribute_common): Remove.
      	(init_attributes): Replace NULL pointers with pointers to the
      	empty table.
      	(handle_packed_attribute, handle_nocommon_attribute,
      	handle_common_attribute, handle_noreturn_attribute,
      	handle_noinline_attribute, handle_always_inline_attribute,
      	handle_used_attribute, handle_unused_attribute,
      	handle_const_attribute, handle_transparent_union_attribute,
      	handle_constructor_attribute, handle_destructor_attribute,
      	handle_mode_attribute, handle_section_attribute,
      	handle_aligned_attribute, handle_weak_attribute,
      	handle_alias_attribute, handle_visibility_attribute,
      	handle_no_instrument_function_attribute, handle_malloc_attribute,
      	handle_no_limit_stack_attribute, handle_pure_attribute,
      	handle_deprecated_attribute, handle_vector_size_attribute,
      	vector_size_helper): Move to c-common.c.
      	* c-common.c (c_common_attribute_table,
      	handle_packed_attribute, handle_nocommon_attribute,
      	handle_common_attribute, handle_noreturn_attribute,
      	handle_noinline_attribute, handle_always_inline_attribute,
      	handle_used_attribute, handle_unused_attribute,
      	handle_const_attribute, handle_transparent_union_attribute,
      	handle_constructor_attribute, handle_destructor_attribute,
      	handle_mode_attribute, handle_section_attribute,
      	handle_aligned_attribute, handle_weak_attribute,
      	handle_alias_attribute, handle_visibility_attribute,
      	handle_no_instrument_function_attribute, handle_malloc_attribute,
      	handle_no_limit_stack_attribute, handle_pure_attribute,
      	handle_deprecated_attribute, handle_vector_size_attribute,
      	vector_size_helper): Move from attribs.c.
      	* c-common.h (c_common_attribute_table,
      	c_common_format_attribute_table): New.
      	* c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
      	LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
      	* langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
      	LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
      	(LANG_HOOKS_INITIALIZER): Update.
      	* langhooks.h (struct lang_hooks): 3 new attribute hooks.
      	* target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
      	* target.h: Update comment.
      	* tree.c (default_target_attribute_table): Remove.
      	* tree.h (default_target_attribute_table, format_attribute_table,
      	lang_attribute_table, lang_attribute_common): Remove.
      ada:
      	* misc.c (gnat_init): Don't set lang_attribute_common.
      cp:
      	* cp-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
      	LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE):
      	Redefine.
      	* cp-tree.h (cp_attribute_table): Rename.
      	* decl.c (lang_attribute_table): Remove declaration.
      	(cxx_init_decl_processing): Don't set it.
      	* tree.c (cp_attribute_table): Rename.
      objc:
      	* objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
      	LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
      
      From-SVN: r52730
      Neil Booth committed
  30. 20 Apr, 2002 1 commit
    • Makefile.in: Update. · b03e38e1
      	* Makefile.in: Update.
      	* decl.c (push_c_function_context, pop_c_function_context,
      	mark_c_function_context): Rename for consistency.
      	* c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
      	* c-tree.h (push_c_function_context, pop_c_function_context,
      	mark_c_function_context): Rename for consistency.
      	* c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
      	LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
      	* function.c (init_lang_status, save_lang_status,
      	restore_lang_status, mark_lang_status, free_lang_status):
      	Move to langhooks.h.
      	(push_function_context_to, pop_function_context_from,
      	free_after_parsing, prepare_function_start, ggc_mark_struct_function):
      	Update.
      	* function.h (init_lang_status, save_lang_status,
      	restore_lang_status, mark_lang_status, free_lang_status):
      	Move to langhooks.h.
      	* langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
      	LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
      	LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
      	LANG_HOOKS_FUNCTION_INITIALIZER): New.
      	(LANG_HOOKS_INITIALIZER): Update.
      	(lhd_do_nothing_f): New.
      	* langhooks.h (struct lang_hooks_for_functions): New.
      	(struct lang_hooks): New hooks.
      	* langhooks.c (lhd_do_nothing_f): New.
      cp:
      	* cp-lang.c (LANG_HOOKS_FUNCTION_INIT,
      	LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_MARK): Redefine.
      	* cp-tree.h (cxx_push_function_context, cxx_pop_function_context,
      	cxx_mark_function_context): New.
      	* decl.c (push_cp_function_context, pop_cp_function_context,
      	mark_cp_function_context): Rename for consistency.
      	(cxx_init_decl_processing): Don't set old hooks.
      objc:
      	* objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
      	LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
      
      From-SVN: r52551
      Neil Booth committed
  31. 19 Apr, 2002 1 commit
    • builtins.c: Include langhooks.h. · ab393bf1
      	* builtins.c: Include langhooks.h.
      	(lang_type_promotes_to): Remove.
      	(expand_builtin_va_arg): Use new hook.
      	* c-common.c (c_common_nodes_and_builtins): Don't set hook.
      	(simple_type_promotes_to): Move to c-typeck.c.
      	* c-common.h (simple_type_promotes_to): Remove.
      	* c-decl.c (duplicate_decls, grokdeclarator): Update.
      	* c-format.c: Include langhooks.h.
      	(check_format_types): Update.
      	* c-tree.h (c_type_promotes_to): New.
      	* c-typeck.c (c_type_promotes_to): Move from c-common.c.
      	(type_lists_compatible_p): Update.
      	* langhooks-def.h (lhd_type_promotes_to): New.
      	(LANG_HOOKS_TYPE_PROMOTES_TO): New.
      	(LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
      	* langhooks.c (lhd_type_promotes_to): New.
      	* langhooks.h (struct lang_hooks_for_types): New hook.
      	* tree.h (lang_type_promotes_to): Remove.
      cp:
      	* call.c (convert_type_from_ellipsis): Rename, update.
      	* cp-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
      	* cp-tree.h (convert_type_from_ellipsis): Rename.
      	* decl.c (cxx_init_decl_processing): Don't set hook.
      objc:
      	* objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
      
      From-SVN: r52512
      Neil Booth committed
  32. 18 Apr, 2002 1 commit
    • c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine. · 7a228918
      	* c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
      	* c-tree.h (c_incomplete_type_error): New.
      	* c-typeck.c (require_complete_type, build_component_ref): Update.
      	(incomplete_type_error): Rename.
      	* langhooks-def.h (lhd_incomplete_type_error): New.
      	(LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
      	(LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
      	* langhooks.c (lhd_incomplete_type_error): New.
      	* langhooks.h (struct lang_hooks_for_types): New hook.
      	* tree.c (size_in_bytes): Use new hook.
      	* tree.h (incomplete_type_error): Remove.
      ada:	* gigi.h (incomplete_type_error): Remove.
      	* utils.c (incomplete_type_error): Remove.
      cp:
      	* call.c (build_new_method_call): Update.
      	* cp-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
      	* cp-tree.h (cxx_incomplete_type_error): New.
      	* decl.c (grokdeclarator, grokparms): Update.
      	* decl2.c (check_classfn): Update.
      	* pt.c (tsubst): Update.
      	* typeck.c (complete_type_or_else, expr_sizeof,
      	decay_conversion): Update.
      	* typeck2.c (incomplete_type_error): Rename.
      	(add_exception_specifier): Update.
      f:
      	* com.c (incomplete_type_error): Remove.
      java:
      	* typeck.c (incomplete_type_error): Remove.
      objc:
      	* objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
      
      From-SVN: r52480
      Neil Booth committed