1. 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
  2. 27 Sep, 2003 1 commit
  3. 24 Sep, 2003 1 commit
  4. 23 Sep, 2003 2 commits
  5. 22 Sep, 2003 1 commit
  6. 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
  7. 18 Sep, 2003 3 commits
    • tree.def (FFS_EXPR, [...]): Delete unused tree codes. · 96123432
      	* tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
      	PARITY_EXPR): Delete unused tree codes.
      	* c-common.c (c_common_truthvalue_conversion): Delete references
      	to FFS_EXPR and POPCOUNT_EXPR.
      	* c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
      	(pp_c_expression): Likewise.
      	* expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
      	CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
      	* fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
      	CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.  Add support for calls to
      	BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
      	and long long variants.
      
      	* cp/lex.c (init_operators): Remove operator_name_info for FFS_EXPR.
      	* cp/class.c (instantiate_type): Remove FFS_EXPR case.
      
      	* f/com.c (ffecom_overlap_): Remove FFS_EXPR case.
      	(ffecom_tree_canonize_ref_): Likewise.
      	(ffe_truthvalue_conversion): Likewise.
      
      	* java/expr.c (java_truthvalue_conversion): Remove FFS_EXPR case.
      	* java/check-init.c (check_init): Likewise.
      
      From-SVN: r71525
      Roger Sayle committed
    • jcf-write.c (generate_bytecode_insns): Add MIN_EXPR and MAX_EXPR. · 1319e88e
      2003-09-16  Andrew Haley  <aph@redhat.com>
      
              * jcf-write.c (generate_bytecode_insns): Add MIN_EXPR and MAX_EXPR.
      
      From-SVN: r71514
      Andrew Haley committed
  8. 17 Sep, 2003 2 commits
  9. 16 Sep, 2003 1 commit
  10. 11 Sep, 2003 1 commit
    • cgraphunit.c (cgraph_finalize_function): Add nested arg. · 6b00c969
              * cgraphunit.c (cgraph_finalize_function): Add nested arg.
              Tweek tests for function already generated.
              (cgraph_expand_function): Don't double announce in !unit-at-a-time.
              * cgraph.h (cgraph_finalize_function): Update for extra arg.
              * c-decl.c (finish_function): Likewise.
      
              * semantics.c (expand_or_defer_fn): Update for new
              cgraph_finalize_function argument.
      
              * parse.y (source_end_java_method): Update for new
              cgraph_finalize_function argument.
      
      From-SVN: r71298
      Richard Henderson committed
  11. 10 Sep, 2003 1 commit
  12. 03 Sep, 2003 2 commits
    • decl.c (java_expand_body): New function. · 916b57ce
      * decl.c (java_expand_body): New function.
      * expr.c (build_class_init): Set DECL_IGNORED_P.
      * java-tree.h (start_complete_expand_method,
      java_expand_body): Declare.
      * jcf-parse.c (cgraph.h): Include.
      (java_parse_file): Handle flag_unit_at_a_time.
      * lang.c (LANG_HOOKS_TREE_INLINING_START_INLINING,
      LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
      (java_estimate_num_insns): Use walk_tree_without_duplicates.
      (java_start_inlining): New function.
      * parse.h (java_finish_classes): Declare.
      * parse.y: Include cgraph.h.
      (block): Don't special-case empty block production.
      (craft_constructor): Set DECL_INLINE.
      (source_end_java_method): Handle flag_unit_at_a_time.
      Replace inline code with call to java_expand_body.
      (start_complete_expand_method): Remove static modifier.
      (java_expand_method_bodies): Patch function tree for
      class initialization and/or synchronization as needed.
      Don't begin RTL expansion yet.
      (java_expand_classes): Check flag_unit_at_a_time before
      calling finish_class.
      (java_finish_classes): New function.
      (java_complete_lhs): Ensure COMPOUND_EXPR has non-NULL type.
      (patch_assignment): Set DECL_CONTEXT on temporary variable.
      (emit_test_initialization): Set DECL_IGNORED_P.
      
      From-SVN: r71024
      Jeff Sturm committed
    • builtins.c (enum builtin_type): Delete unused enumeration. · e71d3aae
      	* builtins.c (enum builtin_type): Delete unused enumeration.
      	* Make-lang.in (java/builtins.o): Remove built-types.def dependency.
      
      From-SVN: r71023
      Roger Sayle committed
  13. 28 Aug, 2003 1 commit
  14. 20 Aug, 2003 2 commits
    • [multiple changes] · f2f3f409
      2003-01-31  Andrew Haley  <aph@redhat.com>
      
      	* except.c (prepare_eh_table_type): Use new encoding for exception
      	handlers when using -fno-assume-compiled.
      
      2003-08-20  Andrew Haley  <aph@redhat.com>
      
      	* gnu/gcj/runtime/StackTrace.java (getClass): New method.
      	* gnu/gcj/runtime/natStackTrace.cc (getClass): New method.
      	(classAt): Break out class lookup function into getClass().
      	* exception.cc (PERSONALITY_FUNCTION): Use new encoding for exception
      	handlers when using -fno-assume-compiled.
      
      From-SVN: r70605
      Andrew Haley committed
    • gcj.texi (Extensions): Added xref. · b7d6f12a
      	* gcj.texi (Extensions): Added xref.
      	(libgcj Runtime Properties): Document
      	gnu.gcj.runtime.VMClassLoader.library_control.
      
      From-SVN: r70601
      Tom Tromey committed
  15. 13 Aug, 2003 2 commits
  16. 12 Aug, 2003 1 commit
    • parse.y (java_check_regular_methods): Typo fixes. · aecf4109
      	* parse.y (java_check_regular_methods): Typo fixes.  Call
      	check_interface_throws_clauses.  Use
      	check_concrete_throws_clauses.
      	(check_interface_throws_clauses): New function.
      	(check_concrete_throws_clauses): New function.
      	(hack_is_accessible_p): New function.
      	(find_most_specific_methods_list): Added FIXME.
      	* typeck.c (lookup_do): Use `flags' argument to decide what to
      	do.  Reimplemented.
      	(lookup_argument_method_generic): New function.
      	(lookup_argument_method2): Removed.
      	* jcf.h (ACC_INVISIBLE): New define.
      	* jcf-write.c (generate_classfile): Skip invisible methods.
      	* class.c (add_miranda_methods): New function.
      	(layout_class_methods): Use it.
      	(get_access_flags_from_decl): Use ACC_INVISIBLE.
      	* java-tree.h (METHOD_INVISIBLE): New define.
      	(lang_decl_func) [invisible]: New field.
      	(lookup_argument_method_generic): Declare.
      	(SEARCH_INTERFACE): New define.
      	(SEARCH_SUPER): Likewise.
      	(SEARCH_ONLY_INTERFACE): Likewise.
      	(SEARCH_VISIBLE): Likewise.
      	(lookup_argument_method2): Removed declaration.
      
      From-SVN: r70388
      Tom Tromey committed
  17. 05 Aug, 2003 2 commits
    • re PR java/11600 (CloneNotSupportedException not checked on super.clone()) · 90281aec
      	Fix for PR java/11600:
      	* parse.y (java_complete_lhs): See whether we're calling a method
      	on an array.
      	(check_thrown_exceptions): Added `is_array_call' argument;
      	fixed `clone' checking; updated all callers.
      
      From-SVN: r70180
      Tom Tromey committed
    • tree.h (DID_INLINE_FUNC): Remove macro. · b3c3af2f
      2003-08-05  Steven Bosscher  <steven@gcc.gnu.org>
      
      	* tree.h (DID_INLINE_FUNC): Remove macro.
      	(DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
      	add tree check for FUNCTION_DECL.
      	(DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
      	(struct tree_decl): Rename inlined_function_flag to
      	declared_inline_flag.
      	* c-common.h (c_lang_decl): Remove.
      	(DECL_ESTIMATED_INSNS): Remove.
      	* c-tree.h (struct lang_decl): Don't include c_lang_decl.
      	(DECL_DECLARED_INLINE_P): Remove.
      	* c-decl.c (grokdeclarator): Update comment.  With -finline-functions,
      	do not reset DECL_DECLARED_INLINE_P.  Don't use DID_INLINE_FUNC.
      	(finish_function): Make uninlinable a bool.  Fixup call to
      	tree_inlinable_function_p() and fix some code style issues.
      	* cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
      	* cgraph.c (dump_cgraph): Likewise.
      	* cgraphunit.c (cgraph_decide_inlining): Likewise
      	(cgraph_finalize_compilation_unit): Likewise.
      	Also update call to tree_inlinable_function_p().
      	(cgraph_default_inline_p): Don't use DID_INLINE_FUNC.  Instead
      	look at DECL_DECLARED_INLINE and reverse logic.
      	* print-tree.c (print_node): Likewise.
      	* toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
      	* tree-inline.h (tree_inlinable_function_p): Make a bool.  Update
      	prototype.
      	* tree-inline.c (inlinable_function_p): Split up in this function to
      	check for basic inlining inhibiting conditions, and new
      	limits_allow_inlining() function.  Warn if inlining is impossible
      	because the inline candidate calls alloca or uses sjlj exceptions.
      	(limits_allow_inlining): this new function to check if the inlining
      	limits are satisfied.  Throttle from currfn_max_inline_insns, not from
      	MAX_INLINE_INSNS_SINGLE.  The latter only makes sense if
      	MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
      	Update prototypes.
      	(tree_inlinable_function_p): Make a bool.  Update call to
      	inlinable_function_p
      	(expand_call_inline): Use limits_allow_inlining() when not in
      	unit-at-a-time mode to decide on inlining.  Don't use DID_INLINE_FUNC,
      	instead see if the function was declared `inline'.
      
      cp/
      	* cp-tree.h (struct lang_decl): Don't include c_lang_decl.
      	(DECL_DECLARED_INLINE_P): Remove.
      	* decl2.c (import_export_decl): Only look at DECL_DECLARED_INLINE_P
      	if decl is a FUNCTION_DECL.  This never made sense, but now it is
      	required to avoid a tree check failure.
      	* decl.c (grokfndecl): Don't touch DID_INLINE_FUNC.
      	* optimize.c (maybe_clone_body): Likewise.
      
      java/
      	* java-tree.h (DECL_ESTIMATED_INSNS): Remove.
      
      From-SVN: r70174
      Steven Bosscher committed
  18. 04 Aug, 2003 1 commit
  19. 28 Jul, 2003 1 commit
  20. 25 Jul, 2003 2 commits
  21. 24 Jul, 2003 1 commit
    • tree.h (boolean_type_node): Move from C/C++/Java frontends. · de7df9eb
              * tree.h (boolean_type_node): Move from C/C++/Java frontends.
              (boolean_true_node, boolean_false_node): Likewise.
              (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
              * tree.c (build_common_tree_nodes): Init boolean_type_node.
              (build_common_tree_nodes_2): Init boolean_{true,false}_node.
              * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
              * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
              (truthvalue_true_node): Renamed from boolean_true_node.
              (truthvalue_false_node): Renamed from boolean_false_node.
              * c-decl.c: Just set truthvalue_* to integer_*.
              * c-*.[ch]: s/boolean/truthvalue/.  s/c_bool/boolean/.
              * cp/decl.c: Just set truthvalue_* to boolean_*.
              * java/java-tree.h: Move boolean_type_node et al to the back end.
      
      From-SVN: r69758
      Jason Merrill committed
  22. 19 Jul, 2003 2 commits
    • 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
    • common.opt: Document --param. · 2cc98056
      	* common.opt:  Document --param.
      	* opts.c (columns, undocumented_msg): New.
      	(print_help): Get number of columns from environment.  Print
      	--param help.  Tweak newline handling.
      	(print_param_help): New.
      	(print_filtered_help): Better handling of duplicates.  Complain
      	about undocumented switches.
      	(print_switch): New.
      	(wrap_help): Improve wrapping, use COLUMNS.
      	* opts.sh: Ignore comments in records.
      	* params.def: Fix typos and remove trailing periods.
      	* toplev.c (display_help): Don't dump --param help.
      	* doc/sourcebuild.texi: Update.
      java:
      	* lang.opt: Don't show -MD_ and -MDD_.
      
      From-SVN: r69581
      Neil Booth committed
  23. 18 Jul, 2003 1 commit
  24. 17 Jul, 2003 1 commit
    • c-common.c (c_estimate_num_insns_1): Don't handle METHOD_CALL_EXPR. · d944c82d
      2003-07-17  Steven Bosscher  <steven@gcc.gnu.org>
      
      	* c-common.c (c_estimate_num_insns_1): Don't handle
      	METHOD_CALL_EXPR.
      	* expr.c (safe_from_p): Likewise.
      	* gengtype.c (adjust_field_tree_exp): Likewise.
      	* stmt.c (warn_if_unused_value): Likewise
      	* tree.c (first_rtl_op): Likewise.
      	* tree.def: Don't define METHOD_CALL_EXPR.
      	* java/lang.c (java_estimate_num_insns_1): Don't handle
      	METHOD_CALL_EXPR.
      
      From-SVN: r69511
      Steven Bosscher committed
  25. 15 Jul, 2003 1 commit
  26. 09 Jul, 2003 1 commit
    • java-tree.h (DECL_NUM_STMTS): Rename to... · 084c1779
      	* java-tree.h (DECL_NUM_STMTS): Rename to...
      	(DECL_ESTIMATED_INSNS): ... this.
      	* lang.c (java_estimate_num_insns, java_estimate_num_insns_1):
      	New static functions.
      	(LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): Define.
      	* parser.y (add_stmt_to_compound): Do not account statements.
      
      	* cp-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
      	* decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
      	(start_function): Use DECL_ESTIMATED_INSNS.
      	* optimize.c (maybe_clone_body): Use DECL_ESTIMATED_INSNS.
      
      	* decl2.c (maybe_emit_vtables): Fix marking vtables as needed in
      	unit-at-a-time
      
      	* c-common.c (c_estimate_num_insns_1): New static function.
      	(c_estimate_num_insns): New global function.
      	* c-common.h (DECL_NUM_STMTS): Rename to...
      	(DECL_ESTIMATED_INSNS): ... this.
      	(c_estimate_num_insns): Declare.
      	* c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
      	* c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
      	* c-semantics.c (add_stmt): Do not account statements.
      	* langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
      	New.
      	* langhooks.h (lang_hooks_for_tree_inlining): Add
      	estimate_num_insns
      	* params.def (max-inline-insns-auto, max-inline-insns-auto): set
      	to 100.
      	(max-inline-insns): set to 300.
      	(min-inline-insns): set to 10.
      	* tree-inline.c (struct inline_data): Rename inlined_stmts to
      	inlined-insns.
      	(INSNS_PER_STMT): Kill.
      	(inlinable_function_p): Compute and store body size.
      	(expand_call_inline): Likewise.
      	(optimize_inline_calls): Likewise.
      
      From-SVN: r69113
      Jan Hubicka committed