1. 20 Nov, 2003 3 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
    • re PR rtl-optimization/13024 (gcj can't build current rhug) · c2a141a0
      Fix PR java/13024.
      * except.c (prepare_eh_table_type): Allocate variable-sized
      buffer `buf' with alloca.
      
      From-SVN: r73752
      Jeff Sturm committed
  2. 18 Nov, 2003 2 commits
    • re PR java/12857 (Illegal method modifier when loading a generated .class) · b8ca854a
      Fix PR java/12857.
      
      decl.c (java_init_decl_processing): Don't initialize
      class_not_found_type_node, no_class_def_found_type_node.
      
      java-tree.h (JTI_CLASS_NOT_FOUND_TYPE_NODE,
      JTI_NO_CLASS_DEF_FOUND_TYPE_NODE): Remove from java_tree_index.
      (class_not_found_type_node, no_class_def_found_type_node):
      Don't define.
      
      parse.y (build_dot_class_method_invocation): Add this_class
      argument.  Qualify method invocations to a different class.
      (create_new_parser_context): Initialize saved_data_ctx to 0.
      (java_parser_context_save_global): Initialize saved_data_ctx to 1.
      (build_dot_class_method): Don't load classes.  Register
      incomplete types.
      (build_incomplete_class_ref): Special cases for interfaces
      and inner classes.  Move build_dot_class_method call to here...
      (patch_incomplete_class_ref): ...from here.  Pass current_class
      to build_dot_class_method_invocation.
      (build_assertion): Pass class_type to
      build_dot_class_method_invocation.
      (encapsulate_with_try_catch): Handle EXPR_WITH_FILE_LOCATION node.
      
      From-SVN: r73691
      Jeff Sturm committed
    • re PR java/12739 (gcj emits dead bytecode) · a78e4fa7
      Fix PR java/12739.
      * java-tree.h (BLOCK_EMPTY_P): Define.
      * parse.y (java_complete_lhs): Check for empty blocks
      in TRY_FINALLY_EXPR case.
      
      From-SVN: r73690
      Jeff Sturm committed
  3. 17 Nov, 2003 1 commit
    • java-tree.h (LOCAL_VAR_OUT_OF_SCOPE_P): New. · 6bbb4ad3
      2003-09-12  Andrew Haley  <aph@redhat.com>
      
              * java-tree.h (LOCAL_VAR_OUT_OF_SCOPE_P): New.
              (struct lang_decl_var:freed): New variable.
              * decl.c (poplevel): Mark local vars that have gone out of scope.
              (push_jvm_slot): Don't use the RTL of a var that has gone out of
              scope.
      
      From-SVN: r73675
      Andrew Haley committed
  4. 16 Nov, 2003 2 commits
  5. 13 Nov, 2003 1 commit
  6. 12 Nov, 2003 2 commits
  7. 11 Nov, 2003 1 commit
  8. 10 Nov, 2003 1 commit
  9. 08 Nov, 2003 1 commit
  10. 06 Nov, 2003 1 commit
  11. 04 Nov, 2003 1 commit
    • Makefile.in (cpp.dvi): New target split from cpp.info. · 63069342
      2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* Makefile.in (cpp.dvi): New target split from cpp.info.
      	(gcc.dvi):  New target split from gcc.info.
      	(gccint.dvi): New target split from gccint.info.
      	(cppinternals.dvi): New target split from cppinternals.info
      	(gccinstall.info): New specific rule.
      	(gccinstall.dvi): Likewise.
      	(dvi): Move targets to $(docobjdir).
      	($(docobjdir)/%.dvi): New implicit rule.
      
      ada/
      2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* Make-lang.in (dvi): Move targets to $(docobjdir).
      	(gnat_ug_vms.dvi): Simplify rule and adjust target.
      	(gnat_ug_wnt.dvi): Likewise.
      	(gnat_ug_unx.dvi): Likewise.
      	(gnat_ug_vxw.dvi): Likewise.
      	(gnat_rm.dvi): Likewise.
      	(gnat-style.dvi): Likewise.
      
      f/
      2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* Make-lang.in (dvi): Move targets to $(docobjdir).
      	(g77.dvi): Simplify rule.
      	(g77.info): Sinplify rule.
      	(g77.1): Delete.
      	(g77.pod): New intermediate rule.
      
      java/
      2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* Make-lang.in (dvi): Move targets to $(docobjdir).
      	(gcj.dvi): Simplify rule and adjust target.
      	(gcj.info): Simplify rule.
      	(gcj.pod): New intermediate rule.
      	(gcjh.pod): Likewise.
      	(jv-scan.pod): Likewise.
      	(jcf-dump.pod): Likewise.
      	(gij.pod): Likewise.
      	(jv-convert.pod): Likewise.
      	(rmic.pod): Likewise.
      	(rmiregistry.pod): Likewise.
      	(gcj.1): Delete.
      	(gcjh.1): Delete.
      	(jv-scan.1): Delete.
      	(jcf-dump.1): Delete.
      	(gij.1): Delete.
      	(jv-convert.1): Delete.
      	(rmic.1): Delete.
      	(rmiregistry.1): Delete.
      
      treelang/
      2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* Make-lang.in (dvi): Move targets to $(docobjdir).
      	(treelang.dvi): Simplify rule and adjust target.
      	(treelang.info): Simplify rule.
      	(parse.o): Correct dependencies.
      	(TREE_EXE): Delete doubled suffix append.
      
      From-SVN: r73238
      Kelley Cook committed
  12. 03 Nov, 2003 1 commit
  13. 02 Nov, 2003 1 commit
  14. 28 Oct, 2003 1 commit
  15. 24 Oct, 2003 3 commits
    • Correct misapplied patch. · e194201c
      From-SVN: r72891
      Andrew Haley committed
    • jcf-parse.c (jcf_parse): Fix args to fatal_error(). · 7b8af2b5
      2003-10-24  David S. Miller  <davem@redhat.com>
      
      	* jcf-parse.c (jcf_parse): Fix args to fatal_error().
      
      From-SVN: r72890
      David S. Miller committed
    • lang.c (LANG_HOOKS_GET_CALLEE_FNDECL): New. · 90471585
      2003-10-22  Andrew Haley  <aph@redhat.com>
      
              * lang.c (LANG_HOOKS_GET_CALLEE_FNDECL): New.
              (java_get_callee_fndecl): New.
      
              * jcf-parse.c (java_parse_file): Call emit_catch_table().
      
              * java-tree.h (ctable_decl): New.
              (catch_classes):  New.
              (java_tree_index): Add JTI_CTABLE_DECL, JTI_CATCH_CLASSES.
      
              * decl.c (java_init_decl_processing): Add catch_class_type.
              Add ctable_decl.
              Add catch_classes field.
      
              * class.c (build_indirect_class_ref): Break out from
              build_class_ref.
              (make_field_value): Check flag_indirect_dispatch.
              (make_class_data): Ditto.
              Tidy uses of PUSH_FIELD_VALUE.
              Add field catch_classes.
              (make_catch_class_record): New.
      
              * java-tree.h (PUSH_FIELD_VALUE): Tidy.
      
      2003-10-22  Andrew Haley  <aph@redhat.com>
      
              * java/lang/natClass.cc (initializeClass): Call
              _Jv_linkExceptionClassTable.
              (_Jv_LinkSymbolTable): Call )_Jv_ThrowNoSuchMethodError.  Call
              _Jv_Defer_Resolution on a method whose ncode is NULL.
              (_Jv_linkExceptionClassTable): New function.
              (_Jv_LayoutVTableMethods): If superclass looks like a constant pool
              entry, look it up.
              * java/lang/Class.h (struct _Jv_CatchClass): New.
              (_Jv_linkExceptionClassTable): New friend.
              (_Jv_Defer_Resolution): New friend.
              (class Class.catch_classes): New field.
              * include/java-interp.h (Jv_Defer_Resolution): New method.
              (_Jv_PrepareClass): Make a friend of _Jv_MethodBase.
              (_Jv_MethodBase.deferred): New field.
              (_Jv_Defer_Resolution): New function.
              * resolve.cc (_Jv_PrepareClass): Resolve deferred handlers.
              * exception.cc (get_ttype_entry): Change return type to void**.
              (PERSONALITY_FUNCTION): Remove all code related to using a
              Utf8Const* for a match type.  Change match type to be a pointer to
              a pointer, rather than a pointer to a Class.
              * defineclass.cc (handleCodeAttribute): Initialize
              method->deferred.
              (handleMethodsEnd): Likewise.
      
      From-SVN: r72886
      Andrew Haley committed
  16. 22 Oct, 2003 3 commits
  17. 21 Oct, 2003 2 commits
    • re PR java/12586 (gnu.java.net name mangling bug) · ed2506a4
              Fix for PR java/12586.
              * mangle.c (find_compression_record_match): Don't iterate through
              package namespace elements unless they all match compression_table
              entries.
      
      From-SVN: r72779
      Bryce McKinlay committed
    • Make-lang.in (info): Honor $(parsedir) and $(docobjdir). · 036a75ac
      2003-10-20  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* Make-lang.in (info): Honor $(parsedir) and $(docobjdir).
      	(generate-manpages): Likewise.
      	(java.maintainer-clean): Likewise.
      	(gcj.info): Likewise.
      	(gcj.1): Likewise.
      	(gcjh.1): Likewise.
      	(jv-scan.1): Likewise.
      	(jcf-dump.1): Likewise.
      	(gij.1): Likewise.
      	(jv-convert.1): Likewise.
      	(rmic.1): Likewise.
      	(rmiregistry.1): Likewise.
      	(java.install-man): Likewise.
      	(parse-scan.o): Move and define complete compile line.
      	(parse.o): Likewise.
      	(jcf-tree-inline.o): Move.
      
      From-SVN: r72739
      Kelley Cook committed
  18. 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
  19. 14 Oct, 2003 1 commit
    • config.gcc, [...]: Replace uses of target_alias with target_noncanonical. · 43aba518
      gcc:
      	* config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
      	target_alias with target_noncanonical.
      
      ada:
      	* Make-lang.in: Replace uses of $(target_alias) with
      	$(target_noncanonical).
      	* ada/Makefile.in: Remove unused mention of $(target_alias).
      
      cp:
      	* Make-lang.in: Replace uses of $(target_alias) with
      	$(target_noncanonical).
      
      java:
      	* Make-lang.in: Replace uses of $(target_alias) with
      	$(target_noncanonical).
      
      From-SVN: r72487
      Nathanael Nerode committed
  20. 09 Oct, 2003 2 commits
    • decl.c (java_init_decl_processing): Declare signers field. · ae125b17
      	* decl.c (java_init_decl_processing): Declare signers field.
      	* class.c (make_class_data): Set signers field.
      
      From-SVN: r72270
      Tom Tromey committed
    • stmt.c (resolve_asm_operand_names): Call check_unique_operand_names here. · 1456deaf
              * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
              here.
              (expand_asm_operands): Not here.
              (parse_input_constraint): No longer static.
              * tree.h: Declare it.
      
              * coverage.c (build_ctr_info_value): Use build_decl to make a
              VAR_DECL.
              (create_coverage): Likewise.
      java/
              * parse.y (patch_assignment): Use make_node to create a BLOCK.
              * parse.h (BUILD_PTR_FROM_NAME): Use make_node to create a
              POINTER_TYPE.
      cp/
              * tree.c (build_cplus_new): Use build_decl to create a VAR_DECL.
              (build_target_expr_with_type): Likewise.
      
              * pt.c (instantiate_class_template): Sanity check that our
              enclosing class has been instantiated.
      
      From-SVN: r72255
      Jason Merrill committed
  21. 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
  22. 05 Oct, 2003 1 commit
  23. 03 Oct, 2003 1 commit
  24. 01 Oct, 2003 1 commit
    • jcf-parse.c (java_parse_file): Write otable and atable. · 9dfc2ec2
      2003-10-01  Andrew Haley  <aph@redhat.com>
      
              * jcf-parse.c (java_parse_file): Write otable and atable.
              * java-tree.h (atable_methods): New.
              (atable_decl): New.
              (atable_syms_decl): New.
              (enum java_tree_index): Add JTI_ATABLE_METHODS, JTI_ATABLE_DECL,
              JTI_ATABLE_SYMS_DECL.  Rename JTI_METHOD_SYMBOL* to JTI_SYMBOL*.
              (symbol_*type): Rename method_symbol* to symbol*type.
              (emit_offset_symbol_table): Delete.
              (emit_symbol_table): New.
              (get_symbol_table_index): New.
              (atable_type): New.
              * expr.c (build_field_ref): Handle flag_indirect_dispatch.
              (build_known_method_ref): Likewise.
              (get_symbol_table_index): Rename from get_offset_table_index.
              Parameterize to allow re-use by differing types of symbol table.
              (build_invokevirtual): Pass table to get_offset_table_index.
              * decl.c (java_init_decl_processing): Push types and decls for
              atable and atable_syyms.
              * class.c (build_static_field_ref): Handle flag_indirect_dispatch.
              (make_class_data): Add new fields atable and atable_syms.
              (emit_symbol_table): Rename from emit_offset_symbol_table.
              Parameterize to allow re-use by different types of symbol table.
              (build_symbol_entry): Renamed from build_method_symbols_entry.
      
      2003-10-01  Andrew Haley  <aph@redhat.com>
      
              * java/lang/natClass.cc (initializeClass): Check for otable and
              atable.
              (_Jv_LinkOffsetTable): Check for existence of atable.  Rewrite
              loops using for().  Search superinterfaces.  Check for fields as
              well as methods.  Initialize atable as well as otable: check for
              static methods as well as virtual methods.
              * java/lang/Class.h (struct _Jv_AddressTable): New.
              (atable): New.
              (atable_syms): New.
              * include/jvm.h (_Jv_equalUtf8Consts): constify.
              * prims.cc (_Jv_equalUtf8Consts): constify.
      
      From-SVN: r71979
      Andrew Haley committed
  25. 30 Sep, 2003 1 commit
  26. 28 Sep, 2003 4 commits
    • c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not file and line separately. · 436fac17
              * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
              file and line separately.
      
      f/
              * com.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
              file and line separately.
      java/
              * check-init.c (check_init): Save and restore input_location
              instead of file and line separately.
              * decl.c (java_expand_body): Likewise.
              * jcf-write.c (generate_bytecode_insns): Likewise.
              * parse.y (safe_layout_class): Likewise.
              * jcf-parse.c (read_class, parse_class_file): Likewise.
              (java_parse_file): Use %H for warning locator.
      
      From-SVN: r71886
      Richard Henderson committed
    • expr.c (java_check_reference): Use the semantics of COND_EXPRs with void-type… · 37e2180d
      expr.c (java_check_reference): Use the semantics of COND_EXPRs with void-type branches instead of using a...
      
      
      	* expr.c (java_check_reference): Use the semantics of COND_EXPRs
      	with void-type branches instead of using a COMPOUND_EXPR.
      
      From-SVN: r71883
      Roger Sayle committed
    • decl.c (java_optimize_inline, [...]): Remove. · 9220b1ba
      * decl.c (java_optimize_inline, dump_function): Remove.
      * java-tree.h (java_optimize_inline): Remove declaration.
      * jcf-parse.c (java_parse_file): Assume flag_unit_at_a_time is set.
      * parse.y (source_end_java_method, java_expand_classes):
      Likewise.  Remove dead code.
      
      From-SVN: r71882
      Jeff Sturm committed
    • toplev.c (flag_evaluation_order): New global variable. · c67e6e14
      	* toplev.c (flag_evaluation_order): New global variable.
      	* flags.h (flag_evaluation_order): Prototype here.
      	* expr.c (expand_operands): If we need to preserve observable
      	evaluation order, protect exp1 from clobbering exp0's result.
      
      	* java/lang.c (java_init_options): Set flag_evaluation_order.
      	* java/expr.c (force_evaluation_order): Don't attempt to force
      	evaluation order of binary operations using save_expr.
      	* java/parse.y (java_complete_lhs): No longer need to call
      	force_evaluation_order when constructing binary operators.
      
      From-SVN: r71873
      Roger Sayle committed