1. 20 Nov, 2003 2 commits
    • Makefile.in (extraclean): Delete. · a03ad584
      gcc:
      	* Makefile.in (extraclean): Delete.
      	* configure.in (target_list): Remove extraclean.
      	* configure: Regenerate.
      	* doc/makefile.texi, doc/sourcebuild.texi: Update.
      	* objc/Make-lang.in (objc.extraclean): Delete.
      
      gcc/ada:
      	* Make-lang.in (ada.extraclean): Delete.
      
      gcc/cp:
      	* Make-lang.in (c++.extraclean): Delete.
      
      gcc/f:
      	* Make-lang.in (f77.extraclean): Delete.
      
      gcc/java:
      	* Make-lang.in (java.extraclean): Delete.
      
      gcc/treelang:
      	* Make-lang.in (treelang.extraclean): Delete.
      
      From-SVN: r73759
      Joseph Myers committed
    • Makefile.in (lang_checks): Add. · 49a41726
      gcc:
      	* Makefile.in (lang_checks): Add.
      	(check-c++, check-f77, check-java, check-g++, check-g77,
      	check-objc): Remove hardcoded targets.
      	* doc/sourcebuild.texi: Document testsuite hooks.
      	* objc/Make-lang.in (check-objc, lang_checks): Add.
      
      gcc/cp:
      	* Make-lang.in (check-g++, lang_checks): Add.
      
      gcc/f:
      	* Make-lang.in (check-f77, lang_checks): Add.
      
      gcc/java:
      	* Make-lang.in (check-java): Add.
      
      gcc/treelang:
      	* Make-lang.in: Remove obsolete comment.
      
      From-SVN: r73758
      Joseph Myers committed
  2. 16 Nov, 2003 1 commit
  3. 02 Nov, 2003 1 commit
  4. 23 Oct, 2003 1 commit
  5. 20 Oct, 2003 1 commit
    • Makefile.in (install-info): Simplify. · 97ae108d
      	* Makefile.in (install-info): Simplify.
      	($(DESTDIR)$(infodir)/%.info): New rule.
      	* configure.in (target_list): Remove install-info.
      	* doc/.cvsignore (gcc.info*): Remove.
      	(gccint.info*): Likewise.
      	(gccinstall.info*): Likewise.
      	(cpp.info*): Likewise.
      	(cppinternals.info*): Likewise.
      	(*.info*): Add it.
      	* doc/sourcebuild.texi: Update description of install-info.
      	* objc/Make-lang.in (objc.install-info): Remove.
      
      2003-10-20  Mark Mitchell  <mark@codesourcery.com>
      
      	* Make-lang.in (ada.install-info): Remove target.
      	(info): New target.
      	(install-info): Likewise.
      	(gnat_ug_unx.info): Simplify rule.
      	(gnat_ug_vmx.info): Likewise.
      	(gnat_ug_vxw.info): Likewise.
      	(gnat_ug_wnt.info): Likewise.
      	(gnat_rm.info): Likewise.
      	(gnat-style.info): Likewise.
      
      2003-10-20  Mark Mitchell  <mark@codesourcery.com>
      
      	* Make-lang.in (c++.install-info): Remove.
      
      Mon Oct 20 13:49:43 2003  Mark Mitchell  <mark@codesourcery.com>
      
      	* Make-lang.in (.PHONY): Remove f77.info, f77.install-info.
      	(info): Update dependencies.
      	($(srcdir)/f/g77.info): Replace with ...
      	($(docobjdir)/g77.info): ... this.
      	(f77.install-info): Remove.
      	(install-info): New target.
      
      2003-10-20  Mark Mitchell  <mark@codesourcery.com>
      
      	* Make-lang.in (info): Update dependencies.
      	(java.install-info): Remove.
      	($(srcdir)/java/gcj.info): Replace with ...
      	($(docobjdir)/gcj.info): ... this.
      
      2003-10-20  Mark Mitchell  <mark@codesourcery.com>
      
      	* Make-lang.in (info): Use docobjdir.
      	($(srcdir)/treelang/treelang.info): Replace with ...
      	($(docobjdir)/treelang/treelang.info): ... this.
      	(install-info): New target.
      
      From-SVN: r72718
      Mark Mitchell committed
  6. 16 Oct, 2003 1 commit
  7. 15 Oct, 2003 1 commit
  8. 06 Oct, 2003 1 commit
    • re PR bootstrap/12512 (Pattern rule for %.dvi breaks make dvi in objc) · 62b81e45
      	PR bootstrap/12512
      	* Makefile.in (info): Use double-colon rules.
      	(dvi): Likewise.
      	(generated-manpages): Likewise.
      	* configure.in: Do not create lang.info, lang.dvi, or
      	lang.generated-manpages hooks.
      	* configure: Regenerated.
      	* objc/Make-lang.in (objc.info): Remove.
      	(objc.dvi): Remove.
      	(objc.generated-manpages): Remove.
      	* doc/sourcebuild.texi: Update description of info, dvi, and
      	generated-manpages hooks.
      
      	* Make-lang.in (ada.info): Replace with ...
      	(info): ... this.
      	(ada.dvi): Replace with ...
      	(dvi): ... this.
      
      	* Make-lang.in (c++.info): Remove.
      	(c++.dvi): Remove.
      	(c++.generated-manpages): Replace with ...
      	(generated-manpages): ... this.
      
      	* Make-lang.in (f77.info): Replace with ...
      	(info): ... this.
      	(f77.dvi): Replace with ...
      	(dvi): ... this.
      	(f77.generated-manpages): Replace with ...
      	(generated-manpages): ... this.
      
      	* Make-lang.in (java.info): Replace with ...
      	(info): ... this.
      	(java.dvi): Replace with ...
      	(dvi): ... this.
      	(java.generated-manpages): Replace with ...
      
      	* Make-lang.in (treelang.info): Replace with ...
      	(info): ... this.
      	* Make-lang.in (treelang.dvi): Replace with ...
      	(dvi): ... this.
      
      From-SVN: r72135
      Mark Mitchell committed
  9. 03 Oct, 2003 2 commits
    • objc-act.c (lookup_category): Mark as 'inline'. · be1bbc41
      2003-10-03  Ziemowit Laski  <zlaski@apple.com>
      
              * objc/objc-act.c (lookup_category): Mark as 'inline'.
      
      From-SVN: r72081
      Ziemowit Laski committed
    • objc-act.c (add_method_to_hash_list, [...]): New functions. · 81ff723b
      [gcc]
      2003-10-03  Alexander Malmberg  <alexander@malmberg.org>
                  Ziemowit Laski  <zlaski@apple.com>
      
              * objc/objc-act.c (add_method_to_hash_list, lookup_category):
              New functions.
              (lookup_method_in_hash_lists): New parameter indicating whether
              we are messaging 'Class' or 'id'.
              (check_duplicates): Likewise; do not assume all methods will
              be either class or instance methods.
              (generate_category, finish_class): Use lookup_category().
              (add_method): Use add_method_to_hash_list(); insert instance
              methods of root classes into the global class method hash table.
              (add_category): Use lookup_category(); avoid constructing
              duplicate categories.
              (really_start_method): Add method to corresponding @interface,
              if not already there (and if the @interface exists).
              (finish_message_expr, finish_objc): Adjust calls to
              check_duplicates().
      
      [gcc/testsuite]
      2003-10-03  Alexander Malmberg  <alexander@malmberg.org>
                  Ziemowit Laski  <zlaski@apple.com>
      
              * objc.dg/method-6.m ('starboard'): Move prototype from 'Base' to
              'Derived', so that it is never considered a class method; add
              new warning for '+port' method ambiguity.
              * objc.dg/method-12.m: Include <objc/objc.h> instead of
              <objc/objc-api.h> (needed on Mac OS X).
              * objc.dg/method-13.m: New test.
      
      Co-Authored-By: Ziemowit Laski <zlaski@apple.com>
      
      From-SVN: r72080
      Alexander Malmberg committed
  10. 30 Sep, 2003 1 commit
  11. 29 Sep, 2003 1 commit
  12. 26 Sep, 2003 3 commits
  13. 25 Sep, 2003 2 commits
  14. 22 Sep, 2003 1 commit
  15. 21 Sep, 2003 2 commits
    • tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const. · 7e2af53a
      	* tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
      	(TREE_FILENAME, TREE_LINENO): Likewise.
      	(set_tree_locus, copy_tree_locus, set_tree_file_line): New.
      	(TREE_LOCUS_SET_P): New.
      	* c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
      	diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
      	print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
      	tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
      	config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
      
      ada/
      	* trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
      	change to const.
      
      cp/
      	* class.c, cp-tree.h, decl.c, decl2.c, error.c, init.c,
      	method.c, optimize.c, pt.c, semantics.c, tree.c: Update for
      	DECL_SOURCE_LOCATION rename and change to const.
      
      f/
      	* com.c, ste.c: Update for DECL_SOURCE_LOCATION rename and
      	change to const.
      
      java/
      	* class.c, decl.c, jcf-parse.c, jcf-write.c, parse.y,
      	resource.c: Update for DECL_SOURCE_LOCATION rename and change to const.
      
      treelang/
      	* treetree.c: Update for DECL_SOURCE_LOCATION rename and
      	change to const.
      
      From-SVN: r71636
      Richard Henderson committed
    • c-format.c (gcc_diag_char_table): Add %J. · ddd2d57e
              * c-format.c (gcc_diag_char_table): Add %J.
              (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
              (check_format_types): Fix wanted_type name lookup.
              (init_dynamic_diag_info): Setup %J.
              * diagnostic.c (text_specifies_location): Implement %J.
              * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
              dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
              tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
              config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
              config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
      
              * tree-inline.c: Include intl.h
              (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
              * Makefile.in (tree-inline.o): Update.
      cp/
              * decl.c, decl2.c, pt.c: Use %J in diagnostics.
      java/
              * check-init.c, class.c, decl.c, expr.c: Use %J in diagnostics.
      testsuite/
              * gcc.dg/format/gcc_diag-1.c: Add tests for %J.
      
      From-SVN: r71619
      Richard Henderson committed
  16. 14 Sep, 2003 1 commit
  17. 05 Sep, 2003 1 commit
    • cgraph.c (cgraph_mark_reachable_node): Split out from ... · 8dafba3c
              * cgraph.c (cgraph_mark_reachable_node): Split out from ...
              (cgraph_mark_needed_node): Remove needed argument.
              * cgraph.h: Update to match.
              * cgraphunit.c (decide_is_function_needed): Split out from ...
              (cgraph_finalize_function): Reorg.  Avoid deferred_inline_function
              if we generated the function.
              (record_call_1): Update for cgraph_mark_reachable_node.
              * varasm.c (mark_referenced): Likewise.
              * objc/objc-act.c (mark_referenced_methods): Likewise.
      
              * decl2.c (mark_member_pointers_and_eh_handlers): Update for
              change in cgraph_mark_needed_node arguments.
      
      From-SVN: r71104
      Richard Henderson committed
  18. 04 Sep, 2003 1 commit
    • targhooks.c: New file. · 61f71b34
      	* targhooks.c: New file.
      	* targhooks.h: New file.
      	* Makefile.in: Add targhooks.o support.
      	(function.o): Depend on$(TARGET_H).
      	(stmt.o): Likewise.
      	(combine.o): Depend on $(TREE_H) and $(TARGET_H).
      	* builtins.c (apply_args_size, expand_builtin_apply_args_1,
      	expand_builtin_apply): Convert to calls.struct_value_rtx hook.
      	(expand_builtin_saveregs): Convert to
      	calls.expand_builtin_saveregs hook.
      	* c-decl.c (start_decl): Handle new calls.promote_prototypes hook
      	here, instead of ...
      	(get_parm_info) ... here.
      	(store_parm_decls_oldstyle): Convert to calls.promote_prototypes
      	hook.
      	(finish_function): Handle calls.promote_prototypes hook here too.
      	* c-typeck.c (convert_arguments): Convert to
      	calls.promote_prototypes hook.
      	(c_convert_parm_for_inlining): Likewise.
      	* calls.c (initialize_argument_information): Convert to
      	calls.promote_function_args hook.
      	(expand_call): Convert to calls.struct_value_rtx,
      	calls.strict_argument_naming,
      	calls.pretend_outgoing_varargs_named, and
      	calls.promote_function_return hooks.  Pass fndecl to
      	aggregate_value_p.  Initialize CUMULATIVE_ARGS before calling
      	hooks, so they can use that.
      	(emit_library_call_value_1): Likewise.
      	* combine.c (setup_incoming_promotions): Convert to
      	calls.promote_function_args hook.
      	* emit-rtl.c: Convert to calls.struct_value_rtx hook.
      	* expr.c (expand_assignment): Pass call to aggregate_value_p.
      	(expand_expr): Likewise.
      	* expr.h: Remove support for SETUP_INCOMING_VARARGS,
      	STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
      	RETURN_IN_MEMORY macro defaults.
      	* final.c (profile_function): Convert to calls.struct_value_rtx
      	hook.
      	* function.c (aggregate_value_p): Accept function type tree as
      	second parameter; try to deduce fntype from it.  Convert to
      	calls.return_in_memory hook.
      	(assign_parms): Convert to calls.setup_incoming_varargs,
      	calls.strict_argument_naming, calls.promote_function_args,
      	calls.pretend_outgoing_varargs_named hooks.  Pass fndecl to
      	aggregate_value_p.
      	(expand_function_start): Likewise.  Convert to
      	calls.struct_value_rtx hook.
      	(expand_function_end): Convert to calls.promote_function_return hook.
      	(allocate_struct_function): Pass fndecl to aggregate_value_p.
      	* hard-reg-set.h: Update comments to new hook names.
      	* integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
      	* reg-stack.c (stack_result): Likewise.
      	* rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
      	* stmt.c (expand_value_return): Convert to
      	calls.promote_function_return hook.
      	* target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
      	TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
      	TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
      	TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
      	TARGET_STRICT_ARGUMENT_NAMING,
      	TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
      	* target.h: Likewise.
      	* tree.h (aggregate_value_p): Also takes a tree to deduce function
      	attributes from (for target hooks).
      	* doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
      	PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
      	STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
      	EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
      	STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
      	to hooks.
      
      	* config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
      	to aggregate_value_p.
      	* config/arm/arm.c (arm_init_cumulative_args,
      	arm_output_mi_thunk): Likewise.
      	* config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
      	Likewise.
      	* config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
      	mips_can_use_return_insn): Likewise.
      	* config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
      	* config/s390/s390.c (s390_output_mi_thunk): Likewise.
      	* config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
      	aggregate_value_p.
      	* config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
      	function to aggregate_value_p.
      	* objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
      	aggregate_value_p.
      
      	* config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
      	(sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
      	sh_function_arg_advance, sh_pass_in_reg_p): New.  * config/sh/sh.c
      	(sh_handle_renesas_attribute, sh_promote_prototypes,
      	sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
      	sh_setup_incoming_varargs, sh_strict_argument_naming,
      	sh_pretend_outgoing_varargs_named): New decls.
      	(targetm): Add new hooks.
      	(calc_live_regs): Save MACL and MACH if the function has the
      	renesas attribute.
      	(sh_expand_prologue): Support renesas attribute.
      	(sh_builtin_saveregs): Make static.
      	(sh_build_va_list): Support renesas attribute.
      	(sh_va_start): Likewise.
      	(sh_va_arg): Likewise.
      	(sh_promote_prototypes): New.
      	(sh_function_arg): New, moved from sh.h.  Support renesas
      	attribute.
      	(sh_function_arg_advance): Likewise.
      	(sh_return_in_memory): Likewise.
      	(sh_strict_argument_naming): Likewise.
      	(sh_pretend_outgoing_varargs_named): Likewise.
      	(sh_struct_value_rtx): New.
      	(sh_attribute): Add renesas attribute.
      	(sh_handle_renesas_attribute): New.
      	(sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
      	(sh_ms_bitfield_layout_p): Support renesas attribute also.
      	(sh_output_mi_thunk): Pass function to aggregate_value_p.  *
      	config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
      	-mhitachi.
      	(STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
      	target hooks.
      	(sh_args): Add renesas_abi flag.
      	(INIT_CUMULATIVE_ARGS): Set it.  Pass fndecl to aggregate_value_p.
      	(FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
      	(PASS_IN_REG_P): Support renesas attribute.  Pass DF and TF on the
      	stack for the renesas abi.
      	(STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
      	SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
      	PROMOTE_PROTOTYPES): Moved to sh.c.  * config/sh/sh.md (call): Set
      	call cookie to indicate renesas calls.
      
      	* decl.c (finish_function): Pass fndecl to aggregate_value_p.
      
      	* misc.c (default_pass_by_ref): Convert to calls.return_in_memory
      	hook.
      
      From-SVN: r71048
      DJ Delorie committed
  19. 03 Sep, 2003 1 commit
    • Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency. · 4a46cbfb
      	* Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
      	* c-decl.c (finish_function):  Kill arguments, always use cgraph path.
      	* c-objc-common.c: Kill include of gt-c-objc-common.h
      	(expand_deferred_fns, deffer_fn): Kill function.
      	(deferred_fns): Kill variable.
      	(finish_cdtor): Update finish_function call.
      	(c_objc_common_finish_file): Always call cgraph code.
      	* c-parse.c: Regenerate.
      	* c-parse.y: Regenerate.
      	* c-tree.h (finish_function): Update prototype.
      
      	* objc-acct.c (build_module_descriptor, finish_method_def):
      	Update call of finish_function.
      
      	* cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
      	forward prototype.
      	(cgraph_finalize_function): In non-unit-at-a-time mode analyze the
      	function and assemble it if needed.
      	(cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
      	mode.
      	(cgraph_optimize): Likewise.
      	(cgraph_expand_function): In non-unit-at-a-time mode keep function body
      	even when it has no inline callees.
      	* c-parse.in: Update calls to finish_function.
      
      From-SVN: r71028
      Jan Hubicka committed
  20. 29 Aug, 2003 1 commit
    • tree-optimize.c: New file. · 4985cde3
      gcc/
              * tree-optimize.c: New file.
              * Makefile.in (OBJS-archive): Add tree-optimize.o.
              (tree-optimize.o): New.
              * c-decl.c (store_parm_decls): Use allocate_struct_function.
              (finish_function): Don't free_after_parsing or free_after_compilation.
              (set_save_expr_context): Move to tree-optimize.c.
              (c_expand_body_1): Use tree_rest_of_compilation.
              * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
              * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
              * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
              iterate until closure.
              * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
              LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
              (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
              * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
              * toplev.h (tree_rest_of_compilation): Declare it.
      
      gcc/cp/
              * cp-lang.c (LANG_HOOKS_RTL_EXPAND_START): New.
              (LANG_HOOKS_RTL_EXPAND_STMT): New.
              * cp-tree.h (cxx_expand_function_start): Declare.
              * decl.c (start_function): Use allocate_struct_function.
              Move stmts_are_full_exprs_p assertion from expand_body.
              Do not free_after_parsing or free_after_compilation.
              (cxx_push_function_context): Move code to set struct function
              data from genrtl_start_function.
              * optimize.c (optimize_function): Don't inc/dec function_depth.
              * semantics.c (expand_body): Use tree_rest_of_compilation.
              (cxx_expand_function_start): Rename from genrtl_start_function,
              omit bits done by tree_rest_of_compilation.
              (genrtl_finish_function): Remove.
              (clear_decl_rtl): Move to ../tree-optimize.c.
      
      Co-Authored-By: Jason Merrill <jason@redhat.com>
      
      From-SVN: r70933
      Richard Henderson committed
  21. 20 Aug, 2003 1 commit
  22. 19 Aug, 2003 1 commit
    • PR c++/10538, PR c/5582 · 3390f9c9
      ChangeLog:
              * langhooks-def.h (lhd_decl_uninit): Declare.
              (LANG_HOOKS_DECL_UNINIT): New macro.
              (LANG_HOOKS_INITIALIZER): Adjust.
              * langhooks.h (struct lang_hooks): Add new field
              decl_uninit.
              * langhooks.c (lhd_decl_uninit): Define.
              * c-common.c (c_decl_uninit_1): New function.
              (c_decl_uninit): New function.
              (warn_init_self): Define.
              * c-common.h (c_decl_uninit): Declare.
              (warn_init_self): Declare.
              * c.opt: Introduce -Winit-self.
              * c-opts.c (c_common_handle_options): Set warn_init_self.
              * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
              * objc/objc-lang.c  (LANG_HOOKS_DECL_UNINIT): Define.
              * function.c (uninitialized_vars_warning): Call the language hook.
              * doc/invoke.texi: Document -Winit-self.
      
      
      cp/ChangeLog:
              * cp/cp-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
      
      
      testsuite:
              * gcc.dg/uninit-D.c: New Test.
              * gcc.dg/uninit-E.c: New Test.
              * gcc.dg/uninit-F.c: New Test.
              * gcc.dg/uninit-G.c: New Test.
      
      From-SVN: r70574
      Andrew Pinski committed
  23. 04 Aug, 2003 1 commit
    • c-common.c (flag_noniso_default_format_attributes): Delete. · 03aa99d4
      	* c-common.c (flag_noniso_default_format_attributes): Delete.
      	(built_in_attribute): Don't define/undefine DEF_FN_ATTR.
      	(c_attrs_initialized): Delete.
      	(c_common_nodes_and_builtins): Don't test c_attrs_initialized,
      	always call c_init_attributes.
      	(c_init_attributes): Don't define/undefine DEF_FN_ATTR.  Don't
      	set c_attrs_initialized when done.
      	(c_common_insert_default_attributes): Delete.
      	* c-common.h (flag_noniso_default_format_attributes): Delete.
      	(c_coomon_insert_default_attributes): Delete prototype.
      	* c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
      	flag_noniso_default_format_attributes.
      
      	* c-decl.c (c_insert_default_attributes): Delete.
      	* c-tree.h (c_insert_default_attributes): Delete prototype.
      
      	* attribs.c (decl_attributes): Don't call insert_default_attributes
      	langhook.  Update function description comment.
      	* langhooks.h (lang_hooks): Remove insert_default_attributes field.
      	* langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
      	* c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
      	* system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
      
      cp/
      	* decl.c (cxx_insert_default_attributes): Delete.
      	* cp-tree.h (cxx_insert_default_attributes): Don't prototype.
      	* cp-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
      
      objc/
      	* objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
      
      From-SVN: r70155
      Roger Sayle committed
  24. 31 Jul, 2003 1 commit
  25. 25 Jul, 2003 1 commit
    • objc-act.c (objc_check_decl): Don't use xxx_with_decl. · cd475805
              * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
              (objc_declare_class): Likewise.
              (error_with_ivar): Likewise.
              (start_class): Likewise.
              (warn_with_method): Likewise.
      
      java/
              * expr.c (expand_java_field_op): Don't use xxx_with_decl
              (expand_java_field_op): Likewise.
              * class.c (layout_class_method): Likewise
              (emit_register_classes): Likewise.
              * decl.c (pushdecl): Likewise.
              (poplevel): Likewise.
              (force_poplevels): Likewise.
              (give_name_to_locals): Likewise.
              * check-init.c (check_for_initialization): Likewise.
      
      From-SVN: r69780
      Gabriel Dos Reis committed
  26. 19 Jul, 2003 1 commit
    • fixfixes.c [...]: Remove unnecessary casts. · c68b0a84
      gcc:
      	* fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
      	fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
      
      f:
      	* com.c data.c expr.c fini.c g77spec.c global.c lab.c lex.c name.c
      	sta.c stc.c std.c storag.c stt.c stw.c symbol.c target.c type.c:
      	Remove unnecessary casts.
      
      cp:
      	* call.c class.c decl.c decl2.c g++spec.c lex.c parser.c pt.c rtti.c
      	semantics.c typeck.c: Remove unnecessary casts.
      
      java:
      	* class.c java-tree.h jcf-write.c jvspec.c: Remove unnecessary
      	casts.
      
      treelang:
      	* treetree.c: Remove unnecessary casts.
      
      From-SVN: r69593
      Kaveh R. Ghazi committed
  27. 17 Jul, 2003 5 commits
    • re PR middle-end/11498 (asm can't be used to give a variable its own name) · 26e0dcb3
      	PR 11498
      	* Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
      	(langhooks.o): Add $(GGC_H), gt-langhooks.h.
      	(GTFILES): Add langhooks.c.
      	(gt-langhooks.h): New.
      	* c-common.h (c_static_assembler_name): Prototype.
      	* c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
      	* objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
      	* c-opts.c: Include langhooks-def.h.
      	(c_static_assembler_name): New.
      	* langhooks.c: Include ggc.h.  Include gt-langhooks.h.
      	(var_labelno): New.
      	(lhd_set_decl_assembler_name): Give static objects with context
      	unique names.
      	* varasm.c (var_labelno): Delete.
      	(make_decl_rtl): Don't change the assembler name once it's set.
      
      From-SVN: r69527
      Geoffrey Keating committed
    • objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to c_write_global_declarations. · 36c6d174
      	* objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
      	c_write_global_declarations.
      
      From-SVN: r69525
      Zack Weinberg committed
    • Missed this hunk - belongs with the previous patch · b92ef8fd
      From-SVN: r69521
      Zack Weinberg committed
    • c-decl.c: Fix typos in several comments. · eb1dfbb2
      	* c-decl.c: Fix typos in several comments.  Remove all
      	#if 0 blocks; reindent as needed.  Remove unused argument
      	to declare_parm_level; all callers changed.
      	* c-parse.in: Update calls to declare_parm_level.  Avoid
      	issuing a double warning in some circumstances.
      	* c-typeck.c: Update calls to declare_parm_level.
      	* c-tree.h: Update prototype of declare_parm_level.
      
      	* c-pragma.c (apply_pragma_weak): Don't complain about a
      	redundant #pragma weak.
      
      	* objc/objc-act.c (forward_declare_categories,
      	build_selector_reference_decl, build_class_reference_decl,
      	build_objc_string_decl, synth_forward_declarations,
      	build_protocol_reference): Set TREE_PUBLIC on synthetic
      	forward decl to 0, consistent with eventual definition.
      	Correct comments to match.
      
      cp:
      	* pt.c (get_bindings): Make definition consistent with
      	forward declaration.
      
      From-SVN: r69519
      Zack Weinberg committed
    • c.opt: Document Uncodumented; use it. · f2ac9964
      	* c.opt: Document Uncodumented; use it.  Document ObjC options.
      	* opts.c (print_filtered_help): Skip undocumented switches.
      	* opts.h (CL_UNDOCUMENTED): New.
      	* opts.sh: Handle Undocumented.
      	* toplev.c (documented_lang_options): Prevent its becoming empty.
      f:
      	* lang-options.h: Remove.
      	* lang.opt: Document most options.
      objc:
      	* lang-options.h: Remove.
      
      From-SVN: r69494
      Neil Booth committed
  28. 14 Jul, 2003 1 commit
  29. 11 Jul, 2003 1 commit
    • Index: ChangeLog · d1bd0ded
      2003-07-10  Geoffrey Keating  <geoffk@apple.com>
      
      	* c-decl.c (finish_decl): Handle 'used' here...
      	* cgraphunit.c (cgraph_finalize_function): ... and here ...
      	* c-common.c: (handle_used_attribute): ... not here.
      
      	* configure.in (onstep): Support --enable-intermodule.
      	* Makefile.in (OBJS-common): New.
      	(OBJS-md): New.
      	(OBJS-archive): New.
      	(OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
      	(OBJS-onestep): New.
      	(libbackend.a): Support @onestep@.
      	(libbackend.o): New.
      	* configure: Regenerate.
      
      	* c-common.h (c_reset_state): New prototype.
      	(c_parse_file): New prototype.
      	(finish_file): Move prototype from c-tree.h.
      	* c-decl.c: Include <hashtab.h>.
      	(builtin_decls): New.
      	(current_file_decl): New.
      	(duplicate_decls): Add extra parameter. Change all callers.  Don't
      	output duplicate common symbols.
      	(link_hash_hash): New.
      	(link_hash_eq): New.
      	(poplevel): Handle popping of the top level.
      	(warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
      	(pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
      	(pushdecl_top_level): Likewise.
      	(redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
      	(c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
      	(finish_decl): Handle TRANSLATION_UNIT_DECL.
      	(merge_translation_unit_decls): New.
      	(c_write_global_declarations): New.
      	(c_reset_state): New.
      	(implicitly_declare): Handle TRANSLATION_UNIT_DECL.
      	* c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
      	* c-objc-common.c (c_cannot_inline_tree_fn): Handle
      	TRANSLATION_UNIT_DECL.
      	(c_objc_common_finish_file): Call merge_translation_unit_decls.
      	* c-opts.c (in_fnames): Rename from in_fname.
      	(c_common_decode_option): Handle multiple input filenames.
      	(c_common_post_options): Likewise.
      	(c_common_parse_file): Likewise; also, call c_parse_file rather than
      	yyparse.
      	* c-parse.in: Move cleanup code to c_parse_file.
      	(free_parser_stacks): Move contents to c_parse_file.
      	(c_parse_file): New.
      	* c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
      	for integer types.
      	(C_DECL_FILE_SCOPE): New.
      	(finish_file): Move prototype to c-common.h.
      	(merge_translation_unit_decls): New prototype.
      	(comptypes): Add extra parameter to prototype.
      	(c_write_global_declarations): New prototype.
      	* c-typeck.c (tagged_types_tu_compatible_p): New.
      	(function_types_compatible_p): Add extra parameter, change all callers.
      	(type_lists_compatible_p): Likewise.
      	(comptypes): Likewise.
      	(struct tagged_tu_seen): New.
      	(tagged_tu_seen_base): New.
      	(build_unary_op): Handle TRANSLATION_UNIT_DECL.
      	(c_mark_addressable): Remove #if 0 code.
      	* calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
      	comment explaining why it shouldn't have to.
      	* cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
      	options.
      	* cppinit.c (cpp_read_next_file): New.
      	(cpp_read_main_file): Use it.
      	* cpplib.c (undefine_macros): New.
      	(cpp_undef_all): New.
      	* cpplib.h (cpp_read_next_file): Prototype.
      	(cpp_undef_all): Prototype.
      	* langhooks-def.h (write_global_declarations): Remove prototype.
      	* toplev.h (write_global_declarations): Add prototype.
      	* tree.c (decl_type_context): Use switch statement, handle
      	TRANSLATION_UNIT_DECL.
      	* tree.def: Update documentation for TRANSLATION_UNIT_DECL.
      	(TRANSLATION_UNIT_DECL): New kind of tree.
      	* tree.h: Update documentation for TRANSLATION_UNIT_DECL.
      	* Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
      	* doc/invoke.texi: Make attempt to document new functionality.
      
      	2003-05-19  Per Bothner <bothner@apple.com>
      
      	* gcc.c (combine_inputs): New.
      	(process_command): Set combine_inputs.
      	(do_spec_1): Handle combine_inputs.
      	(main): Likewise.
      
      Index: cp/ChangeLog
      2003-07-10  Geoffrey Keating  <geoffk@apple.com>
      
      	* decl.c (cp_finish_decl): Handle 'used' attribute.
      
      	* cp-lang.c (c_reset_state): New dummy routine.
      	* cp-tree.h (finish_file): Move prototype to c-common.h.
      	* parser.c (c_parse_file): Rename from yyparse; don't call finish_file.
      
      From-SVN: r69224
      Geoffrey Keating committed
  30. 09 Jul, 2003 1 commit