1. 17 Jun, 2004 18 commits
    • tree-cfg.c (tree_make_forwarder_block): Use SET_PHI_RESULT. · d00ad49b
      
      2004-06-16  Andrew MacLeod  <amacleod@redhat.com>
      
      	* tree-cfg.c (tree_make_forwarder_block):  Use SET_PHI_RESULT.
      	* tree-flow-inline.h (get_use_op_ptr):  Return a use_operand_p.
      	(get_use_from_ptr, get_def_from_ptr):  New.  Return operand pointers.
      	(get_def_op_ptr):  Return a def_operand_p instead of a 'tree *'.
      	(get_v_may_def_result_ptr):  Return a def_operand_p.
      	(get_v_may_def_op_ptr, get_vuse_op_ptr):   Return a use_operand_p.
      	(get_v_must_def_op_ptr):  Return a def_operand_p.
      	(get_phi_result_ptr):  New.  Return a pointer to the result of a PHI.
      	(get_phi_arg_def_ptr):  New.  Return a pointer to an argument of a PHI.
      	(phi_element_for_edge):  Remove.
      	* tree-flow.h (propagate_value, replace_exp):  Change prototype.
      	(propagate_tree_value):  Add new prototype.
      	(phi_element_for_edge):  Remove prototype.
      	* tree-into-ssa.c (mark_def_sites):  Use new operand types.
      	(prepare_operand_for_rename):  Split into two functions.
      	(prepare_use_operand_for_rename):  Prepare use operands.
      	(prepare_def_operand_for_rename):  Prepare def operands.
      	(rewrite_stmt):  Use new operand types.
      	(rewrite_operand):  Use new operand types, change parameter type.
      	* tree-outof-ssa.c (replace_variable):  Split into two functions.
      	(replace_use_variable):  Rewrite uses.
      	(replace_def_variable):  Rewrite defs.
      	(rewrite_trees, rewrite_vars_out_of_ssa):  Use new operand types.
      	* tree-phinodes.c (make_phi_node, resize_phi_node):  Use new types.
      	(add_phi_arg, remove_phi_arg_num):  Use new operand types.
      	* tree-ssa-ccp.c (substitute_and_fold):  Use new operand types.
      	(ccp_fold, replace_uses_in):  Use new operand types.
      	* tree-ssa-copy.c (replace_ssa_names):  Rename to replace_ssa_names_ann
      	and no longer set the value, change parameter type.
      	(replace_exp_1):  Use new operand types.
      	(propagate_value):  Change parameter type, use new operand types.
      	(propagate_tree_value):  Propagate_value without SSA operands.
      	(replace_exp, cprop_operand, cprop_into_stmt):  Use new operand types.
      	(cprop_into_successor_phis):  Use new operand types.
      	* tree-ssa-dom.c (thread_across_edge):  Use new operand types.
      	(eliminate_redundant_computations):  Use new operand types.
      	* tree-ssa-dse.c (fix_phi_uses):  Use new operand_types.
      	(fix_stmt_v_may_defs):  Use new operand_types.
      	* tree-ssa-live.c (create_ssa_var_map):  Use new operand_types.
      	(build_tree_conflict_graph):  Use new operand_types.
      	* tree-ssa-loop.c (duplicate_blocks):  Use PHI_ARG_DEF_FROM_EDGE.
      	* tree-ssa-operands.c (struct freelist_d):  Remove.
      	(check_optype_freelist, add_optype_freelist):  Remove.
      	(allocate_def_optype, allocate_use_optype, allocate_v_may_def_optype,
      	allocate_vuse_optype, allocate_v_must_def_optype):  Call ggc_alloc.
      	(free_uses, free_defs, free_vuses, free_v_may_defs, free_v_must_defs):
      	Call ggc_free instead of add_optype_freelist.
      	(init_ssa_operands, fini_ssa_operands):  Remove free list code.
      	(finalize_ssa_defs, finalize_ssa_uses):  Set new use/def operands.
      	* tree-ssa-operands.h (struct def_optype_d):  Change underlying type.
      	(struct use_optype_d):  Change underlying type.
      	(def_operand_p, use_operand_p):  New types for pointers to operands.
      	(USE_OP, DEF_OP, V_MAY_DEF_RESULT, V_MAY_DEF_OP, VUSE_OP,
      	V_MUST_DEF_OP):  Use new pointer type instead of dereferencing directly.
      	(USE_FROM_PTR, DEF_FROM_PTR):  New macros to "dereference" operand
      	pointer types.
      	(SET_USE, SET_DEF):  New macros to set operands from their pointer.
      	(SET_USE_OP, SET_DEF_OP, SET_V_MAY_DEF_RESULT, SET_V_MAY_DEF_OP,
      	SET_VUSE_OP, SET_V_MUST_DEF_OP): New SET routines for operands.
      	(PHI_RESULT_PTR, PHI_RESULT, SET_PHI_RESULT):  Macros to manage the
      	PHI result as an operand.
      	(PHI_ARG_DEF_PTR, PHI_ARG_DEF, SET_PHI_ARG_DEF, PHI_ARG_DEF_FROM_EDGE,
      	PHI_ARG_DEF_PTR_FROM_EDGE):  Macros to manage the PHI arguments.
      	* tree-ssa-pre.c (eliminate):  Call propagate_tree_value.
      	* tree-tailcall.c (independent_of_stmt_p, propagate_through_phis):  Use
      	PHI_ARG_DEF_FROM_EDGE.
      	* tree.h (PHI_RESULT):  Renamed to PHI_RESULT_TREE.
      	(PHI_ARG_DEF):  Renamed to PHI_ARG_DEF_TREE.
      
      From-SVN: r83298
      Andrew MacLeod committed
    • re PR tree-optimization/15991 (phi nodes with identical arguments still remain at t50.tailc) · d7621d3c
      	PR tree-optimization/15991
      	* tree-cfg.c (tree_block_label): Export.
      	* tree-flow-inline.h (bsi_after_labels): New function.
      	* tree-flow.h (bsi_after_labels, tree_block_label): Declare.
      	* tree-ssa.c (propagate_into_addr): New function.
      	(replace_immediate_uses): Handle propagation of pointer constants.
      	(raise_value): Do not restrict propagation of pointer constants.
      	* tree-ssanames.c (duplicate_ssa_name): New function.
      	* tree.h (duplicate_ssa_name): Declare.
      
      From-SVN: r83297
      Zdenek Dvorak committed
    • * c-parse.in: Unify Objective-C token names. · f2b5cf97
      From-SVN: r83296
      David Ayers committed
    • Bug 14610 · c50a0116
      	Bug 14610
      	* Makefile.in (min-insn-modes.o): Correct dependencies.
      	* real.c (encode_ieee_extended, decode_ieee_extended): Always
      	produce/consume 12-byte little-endian Intel format.
      	(encode_ieee_extended_128, decode_ieee_extended_128): Delete.
      	(encode_ieee_extended_motorola, decode_ieee_extended_motorola)
      	(encode_ieee_extended_intel_96, decode_ieee_extended_intel_96)
      	(encode_ieee_extended_intel_128, decode_ieee_extended_intel_128):
      	New functions which convert between 12-byte little-endian Intel
      	format and the desired format.
      	(ieee_extended_motorola_format, ieee_extended_intel_96_round_53_format)
      	(ieee_extended_intel_96_format, ieee_extended_intel_128_format):
      	Update.
      testsuite:
      	* gcc.dg/ia64-float80-1.c, gcc.dg/ia64-float80-2.c: New testcases.
      
      From-SVN: r83295
      Zack Weinberg committed
    • expmed.c (expand_mult_const): In sanity check... · 42eb30b5
      	* expmed.c (expand_mult_const): In sanity check, compare only
      	the bits of val and val_so_far that are significant in the
      	result mode.
      
      From-SVN: r83294
      Zack Weinberg committed
    • ZipFile.getInputStream returns null if entry not found. · 1616280e
      From-SVN: r83293
      Anthony Green committed
    • re PR java/13948 (GCJ segmentation fault while compiling GL4Java .class files) · cfb6b4b8
      	Fixes PR java/13948
      	* parse.y (java_layout_seen_class_methods): Ensure class is loaded
      	before trying to lay out its methods.
      	* jcf-parse.c (read_class): Track parsed files using canonical paths
      	obtained via lrealpath from libiberty.
      	(java_parse_file): Likewise.
      	(parse_source_file_1): Rename formal parameter to reflect its
      	modified purpose. Minor formatting fix.
      
      From-SVN: r83292
      Ranjit Mathew committed
    • Add extension directory contents to the class path. · 794c3bee
      From-SVN: r83291
      Anthony Green committed
    • tree-ssa-pre.c: Update comments. · ca072a31
      2004-06-17  Daniel Berlin  <dberlin@dberlin.org>
      
      	* tree-ssa-pre.c:  Update comments.
      	(val_expr_pair_eq): Factor code from here.
      	(expr_pred_trans_eq): and here.
      	(expressions_equal_p): To here.
      	(print_value_set): Print value for expression.
      	(phi_trans_lookup): Rename some variables.
      	(lookup): Ditto.
      	(value_exists_in_set_bitmap): Ditto.
      	(value_remove_from_set_bitmap): Ditto.
      	(value_insert_into_set_bitmap): Ditto.
      
      From-SVN: r83290
      Daniel Berlin committed
    • * tree-ssa.doxy: Update for doxygen 1.3.5. · 5bed2809
      From-SVN: r83289
      Diego Novillo committed
    • s390-modes.def (CCL3mode): New machine mode. · 5d880bd2
      	* config/s390/s390-modes.def (CCL3mode): New machine mode.
      	* config/s390/s390.c (s390_match_ccmode_set): Support CCL3mode.
      	(s390_alc_comparison, s390_slb_comparison): Likewise.
      	(s390_branch_condition_mask): Likewise.
      	* config/s390/s390.md ("*subdi3_cc2", "*subdi3_cconly2"): New.
      	("*subsi3_cc2", "*subsi3_cconly2"): New.
      
      	* config/s390/s390.h (PREDICATE_CODE): Accept SIGN_EXTEND and
      	ZERO_EXTEND for s390_alc_comparison and s390_slb_comparison.
      	* config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
      	Handle SIGN_EXTEND and ZERO_EXTEND.
      
      	* config/s390/s390-protos.h (s390_expand_addcc): New prototype.
      	* config/s390/s390.c (s390_expand_addcc): New function.
      	* config/s390/s390.md ("adddicc", "addsicc"): New expanders.
      	("*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg"): New insns.
      	("sltu", "sgtu", "sleu", "sgeu"): New expanders.
      
      From-SVN: r83287
      Ulrich Weigand committed
    • tree-alias-common.c: Add whitespace. · ac534736
      	* tree-alias-common.c: Add whitespace.
      	* tree-inline.c: Correct comment about this file's purpose.
      	* tree-optimize.c: Likewise.
      	* tree-tailcall.c: Likewise.
      
      From-SVN: r83286
      Ben Elliston committed
    • tree-alias-ander.h: Add standard top-of-file comment. · d96f6b59
      	* tree-alias-ander.h: Add standard top-of-file comment.
      	* tree-alias-common.h: Likewise.
      	* tree-alias-type.h: Likewise.
      
      From-SVN: r83285
      Ben Elliston committed
    • tree-ssa-pre.c (compute_avail): Value number uses as well. · f44272ee
      2004-06-16  Daniel Berlin  <dberlin@dberlin.org>
      
      	* tree-ssa-pre.c (compute_avail): Value number uses as well.
      	Strip useless type conversions.
      	Casts have to be treated slightly different than normal unaries.
      
      From-SVN: r83283
      Daniel Berlin committed
    • c-common.def (COMPOUND_STMT): Remove. · 5882f0f3
              * c-common.def (COMPOUND_STMT): Remove.
              * c-common.c (finish_fname_decls): Don't look through it.
              * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
              * c-common.h (COMPOUND_BODY): Remove.
              (c_common_stmt_codes): Remove COMPOUND_STMT.
              * c-dump.c (c_dump_tree): Likewise.
              * c-gimplify.c (c_gimplify_stmt): Likewise.
              * c-pretty-print.c (pp_c_statement): Likewise.
              * tree.h (DECL_SAVED_TREE): Update commentary.
              * doc/c-tree.texi (ASM_EXPR): Rename from ASM_STMT.
              (CASE_LABEL_EXPR): Rename from CASE_LABEL.
              (GOTO_EXPR): Rename from GOTO_STMT.
              (GOTO_FAKE_P): Remove.
              (COMPOUND_STMT): Remove.
              (HANDLER): Update wrt COMPOUND_STMT.
              (STMT_EXPR): Likewise.
              (LABEL_EXPR): Rename from LABEL_STMT.
              (SCOPE_STMT): Remove.
              * objc/objc-act.c (objc_build_try_catch_finally_stmt): Don't look
              through COMPOUND_STMT.
      cp/
              * cp-tree.h (COMPOUND_STMT_TRY_BLOCK, COMPOUND_STMT_BODY_BLOCK): Kill.
              (BIND_EXPR_TRY_BLOCK, BIND_EXPR_BODY_BLOCK): New.
              * cxx-pretty-print.c (pp_cxx_function_definition): Move handling
              of CTOR_INITIALIZER ...
              (pp_cxx_statement): ... here.
              * decl.c (begin_function_body): Don't set COMPOUND_STMT_BODY_BLOCK.
              (finish_function): Use alloc_stmt_list to zap entire function.
              * parser.c (cp_parser_compound_statement): Update commentary.
              * pt.c (tsubst_expr): Use BIND_EXPR instead of COMPOUND_STMT.
              * semantics.c (begin_compound_stmt, finish_compound_stmt): Likewise.
              (finish_stmt_expr): Don't look through COMPOUND_STMT.
      
      From-SVN: r83281
      Richard Henderson committed
    • c-common.h (c_begin_if_stmt, [...]): Remove decls. · 9e51cf9d
              * c-common.h (c_begin_if_stmt, c_begin_while_stmt,
              c_finish_while_stmt_cond): Remove decls.
              * c-parse.in (if_prefix): Don't save c_begin_if_stmt result.
              * c-typeck.c (c_begin_if_stmt): Return void.
              (c_begin_else): Tidy.  Save stmt_count.
              * c-tree.h (c_begin_if_stmt): Update decl.
              * objc/objc-act.c (objc_build_try_enter_fragment,
              objc_build_extract_fragment, objc_build_try_epilogue,
              objc_build_catch_stmt, objc_build_catch_epilogue,
              objc_build_finally_prologue, objc_build_finally_epilogue): Update
              for if builder function changes.
      
      From-SVN: r83280
      Richard Henderson committed
    • Daily bump. · 902fd62c
      [[Split portion of a mixed commit.]]
      
      From-SVN: r83278.2
      GCC Administrator committed
    • Daily bump. · 71da1d19
      [[Split portion of a mixed commit.]]
      
      From-SVN: r83277.2
      GCC Administrator committed
  2. 16 Jun, 2004 22 commits