Skip to content
Snippets Groups Projects
  1. May 18, 2007
    • Geoffrey Keating's avatar
      Index: gcc/java/ChangeLog · 8d5b1b67
      Geoffrey Keating authored
      2007-05-18  Geoffrey Keating  <geoffk@apple.com>
      
      	* jcf-dump.c (HANDLE_MAGIC): Use 'unsigned long' for %lx.
      	(print_constant): Likewise.
      
      Index: gcc/ChangeLog
      2007-05-18  Geoffrey Keating  <geoffk@apple.com>
      
      	* dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
      	(output_die): Use 'unsigned long' with %x.
      	* sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
      	HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
      	* tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
      
      Index: gcc/cp/ChangeLog
      2007-05-18  Geoffrey Keating  <geoffk@apple.com>
      
      	* mangle.c (write_real_cst): Use 'unsigned long' for %lx.
      
      From-SVN: r124839
      8d5b1b67
  2. May 14, 2007
    • Rafael Avila de Espindola's avatar
      c-common.c (warnings_for_convert_and_check): Use unsigned_type_for instead of... · ca5ba2a3
      Rafael Avila de Espindola authored
      c-common.c (warnings_for_convert_and_check): Use unsigned_type_for instead of c_common_unsigned_type.
      
      gcc/
             * c-common.c (warnings_for_convert_and_check): Use unsigned_type_for
             instead of c_common_unsigned_type.
             (c_common_unsigned_type): Remove.
             (shorten_compare): Use c_common_signed_or_unsigned_type instead of
             c_common_unsigned_type.
             (c_common_nodes_and_builtins): Use unsigned_type_for instead of
             c_common_unsigned_type.
             * c-common.h (c_common_unsigned_type): Remove.
             * c-decl.c (grokdeclarator): Use unsigned_type_for instead of
             c_common_unsigned_type.
             * c-format.c (check_format_types): Use unsigned_type_for instead of
             c_common_unsigned_type.
             * c-objc-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
             * c-typeck.c (convert_for_assignment): Use unsigned_type_for instead of
             c_common_unsigned_type.
             * convert.c (convert_to_integer): Use unsigned_type_for instead of
             lang_hooks.types.unsigned_type.
             * expmed.c (make_tree): Use unsigned_type_for instead of
             lang_hooks.types.unsigned_type.
             * fold-const.c (fold_negate_expr): Use unsigned_type_for instead of
             lang_hooks.types.unsigned_type.
             (build_range_check): Likewise.
             (fold_unary): Likewise.
             (fold_binary): Likewise.
             (fold_ternary): Likewise.
             * langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
             * langhooks.h (lang_hooks_for_types): Remove unsigned_type.
             * tree.c (get_unsigned_type): New.
             (unsigned_type_for): Use get_unsigned_type instead of
             lang_hooks.types.unsigned_type
      
      gcc/ada
             * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
      
      gcc/cp
             * cp-objcp-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
             * decl.c (grokdeclarator): Use unsigned_type_for instead of
             c_common_unsigned_type.
      
      gcc/fortran
             * f95-lang.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
             * trans-intrinsic.c (gfc_conv_intrinsic_ishft): Use unsigned_type_for
             instead of gfc_unsigned_type.
             * trans-stmt.c (gfc_trans_do): Use unsigned_type_for instead of
             gfc_unsigned_type.
             * trans-types.c (gfc_unsigned_type): Remove.
             * trans-types.h (gfc_unsigned_type): Remove.
      
      gcc/java
             * expr.c (build_java_binop): Use unsigned_type_for instead of
             java_unsigned_type.
             * java-tree.h (java_unsigned_type): Remove.
             * lang.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
             * typeck.c (java_unsigned_type): Remove.
      
      gcc/treelang
             * treetree.c (tree_lang_unsigned_type): Remove.
             (LANG_HOOKS_UNSIGNED_TYPE): Remove.
      
      From-SVN: r124715
      ca5ba2a3
  3. Apr 21, 2007
    • Andrew Pinski's avatar
      tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs. · 3d95caa4
      Andrew Pinski authored
      2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
              (GENERIC_NEXT): New function macro.
              (PHI_CHAIN): Use phi_node's new chain variable.
              (tree_phi_node): Change tree_common to tree_base
              and add the chain field.
              * tree-phinodes.c (make_phi_node): Don't set
              TREE_TYPE on the new node.
              * c-decl.c (lang_tree_node): Use GENERIC_NEXT
              instead of checking GIMPLE_TUPLE_P in chain_next.
              * tree-vect-transform.c
              (get_initial_def_for_induction): Look at
              PHI_RESULT_TREE for the type of the phi node.
              (update_vuses_to_preheader): Use PHI_CHAIN
              instead of TREE_CHAIN on the phi node.
              * tree-ssa-structalias.c (compute_points_to_sets):
              Likewise.
              (ipa_pta_execute): Likewise.
      2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * cp-tree.h (lang_tree_node): Use GENERIC_NEXT
              instead of checking GIMPLE_STMT_P in chain_next.
      2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
              instead of checking GIMPLE_STMT_P in chain_next.
      2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * f95-lang.c (lang_tree_node): Use GENERIC_NEXT
              instead of checking GIMPLE_STMT_P in chain_next.
      2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * java-tree.h (lang_tree_node): Use GENERIC_NEXT
              instead of checking GIMPLE_STMT_P in chain_next.
      
      From-SVN: r124021
      3d95caa4
  4. Apr 06, 2007
  5. Apr 03, 2007
    • Andrew Haley's avatar
      jvgenmain.c (main): Change main to use class$, not class$$. · 696fbee7
      Andrew Haley authored
      2007-04-03  Andrew Haley  <aph@redhat.com>
      
              * jvgenmain.c (main): Change main to use class$, not class$$.
              (do_mangle_classname): Likewise.
              * class.c (hide): New function.
              (add_field): Hide everything that shouldn't be visible outside a
              DSO.
              (build_static_class_ref): Likewise.
              (build_classdollar_field): Likewise.
              (make_class_data): Likewise.
              (layout_class_method): Likewise.
              * expr.c (special_method_p): New function.
      
              * class.c (push_class): Don't bogusly guess the source filename.
              * jcf-parse.c (give_name_to_class): Don't set input_location from
              DECL_ARTIFICIAL decls.
      
      From-SVN: r123476
      696fbee7
  6. Mar 30, 2007
    • Rafael Avila de Espindola's avatar
      typeck.c (java_signed_or_unsigned_type): Remove. · 47ecd38d
      Rafael Avila de Espindola authored
      gcc/java/ChangeLog:
         * typeck.c (java_signed_or_unsigned_type): Remove.
         (java_signed_type): use get_signed_or_unsigned_type instead of
      java_signed_or_unsigned_type.
         (java_unsigned_type): Ditto.
         * lang.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
         * java-tree.h (java_signed_or_unsigned_type): Remove
      
      gcc/Changelog:
         * tree.h(get_signed_or_unsigned_type): New
         * fold-const.c (operand_equal_for_comparison_p): Use
      get_signed_or_unsigned_type instead of
      lang_hooks.types.signed_or_unsigned_type.
         * expr.c (store_expr): Ditto.
         * langhooks.c (get_signed_or_unsigned_type): New.
           (lhd_signed_or_unsigned_type): New
         * langhooks.h (lhd_signed_or_unsigned_type): New.
         * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
      
      gcc/treelang/ChangeLog:
         * treetree.c (tree_lang_signed_or_unsigned_type): Remove.
         (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE) Remove.
      
      gcc/ada/ChangeLog:
          * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
      instead of gnat_signed_or_unsigned_type.
          * utils.c (gnat_signed_or_unsigned_type): Remove.
          * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
          * gigi.h (gnat_signed_or_unsigned_type): Remove
      
      gcc/forrtan/trans-types.c:
         * trans-types.c (gfc_signed_or_unsigned_type): Remove.
           (gfc_unsigned_type): Use get_signed_or_unsigned_type instead of
      gfc_signed_or_unsigned_type.
           (gfc_signed_type): Ditto.
         * trans-types.h (gfc_signed_or_unsigned_type): Remove.
         * f95-lang.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
      
      From-SVN: r123373
      47ecd38d
  7. Mar 27, 2007
    • Tom Tromey's avatar
      Index: gcc/java/ChangeLog · d2bbc952
      Tom Tromey authored
      from  Tom Tromey  <tromey@redhat.com>
      
      	* Make-lang.in (JAVA_MANFILES): Removed grmiregistry.1.
      	(java.maintainer-clean): Likewise.
      	(java.install-man): Likewise.
      	(.INTERMEDIATE): Removed grmiregistry.pod.
      	(grmiregistry.pod): Removed.
      	* gcj.texi (Invoking gcjh): Removed.
      	(Invoking gjnih): Likewise.
      	(Invoking grmiregistry): Likewise.
      	(direntry): Updated.
      	(Top): Likewise.
      	(which-gcj): Removed.
      
      Index: libjava/classpath/ChangeLog
      from  Tom Tromey  <tromey@redhat.com>
      
      	* doc/cp-tools.texinfo (gcjh Tool): Added more text.
      	(rmid Tool): Likewise.
      
      2007-03-25  Dalibor Topic  <robilad@kaffe.org>
      
      	* doc/cp-tools.texinfo: Fix node ordering.
      
      2007-03-19  Matthias Klose  <doko@ubuntu.com>
      
      	* doc/Makefile.am: Build a gcjh(1) man page.
      	* doc/cp-tools.texinfo: Add documentation for gcjh.
      
      From-SVN: r123253
      d2bbc952
  8. Mar 02, 2007
  9. Feb 27, 2007
  10. Feb 18, 2007
  11. Feb 15, 2007
    • Sandra Loosemore's avatar
      tree.h (enum tree_code_class): Add tcc_vl_exp. · 5039610b
      Sandra Loosemore authored
      
      2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
      	    Brooks Moses  <brooks.moses@codesourcery.com>
      	    Lee Millward  <lee.millward@codesourcery.com>
      
      	* tree.h (enum tree_code_class): Add tcc_vl_exp.
      	(VL_EXP_CLASS_P): New.
      	(TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
      	TREE_CODE_LENGTH.
      	(TREE_OPERAND_CHECK_CODE): Likewise.
      	(GIMPLE_STMT_OPERAND_CHECK): Likewise.
      	(TREE_RTL_OPERAND_CHECK): Likewise.
      	(tree_operand_check_failed): Make second parameter the whole tree
      	instead of its code.  Fixed callers.
      	(VL_EXP_CHECK): New.
      	(TREE_OPERAND_LENGTH): New.
      	(VL_EXP_OPERAND_LENGTH): New.
      	(CALL_EXPR_FN): New.
      	(CALL_EXPR_STATIC_CHAIN): New.
      	(CALL_EXPR_ARGS): New.
      	(CALL_EXPR_ARG): New.
      	(call_expr_nargs): New.
      	(CALL_EXPR_ARGP): New.
      	(build_nt_call_list): Declare.
      	(build_vl_exp_stat): Declare.
      	(build_vl_exp): New.
      	(build_call_list): Declare.
      	(build_call_nary): Declare.
      	(build_call_valist): Declare.
      	(build_call_array): Declare.
      	(call_expr_arg): Declare.
      	(call_expr_argp): Declare.
      	(call_expr_arglist): Declare.
      	(fold_build_call_list): Declare.
      	(fold_build_call_list_initializer): Declare.
      	(fold_call_expr): Declare to replace fold_builtin.
      	(fold_builtin_fputs): Update to agree with modified definition.
      	(fold_builtin_strcpy): Likewise.
      	(fold_builtin_strncpy): Likewise.
      	(fold_builtin_memory_chk): Likewise.
      	(fold_builtin_stxcpy_chk): Likewise.
      	(fold_builtin_strncpy_chk): Likewise.
      	(fold_builtin_next_arg): Likewise.
      	(fold_build_call_expr): Declare.
      	(fold_builtin_call_list): Declare.
      	(fold_builtin_call_valist): Declare.
      	(build_call_expr): Declare.
      	(validate_arglist): Update to agree with modified definition.
      	(tree_operand_length): New.
      	(call_expr_arg_iterator): New.
      	(init_call_expr_arg_iterator): New.
      	(next_call_expr_arg): New.
      	(first_call_expr_arg): New.
      	(more_call_expr_args_p): New.
      	(FOR_EACH_CALL_EXPR_ARG): New.
      
      	* tree.c (tree_code_class_string): Add entries for tcc_vl_exp
      	and tcc_gimple_stmt.
      	(tree_code_size): Update documentation.  Use sizeof (tree) rather
      	than sizeof (char *).
      	(tree_size): Likewise.  Add case for tcc_vl_exp.
      	(tree_node_structure): Add case for tcc_vl_exp.
      	(contains_placeholder_p): Likewise.
      	(substitute_in_expr): Likewise.
      	(substitute_placeholder_in_expr): Likewise.
      	(stabilize_reference_1): Likewise.
      	(build3_stat): Remove logic for CALL_EXPRs.  Replace with assertion
      	to diagnose breakage of this interface for constructing CALL_EXPRs.
      	(build_nt): Add similar assertion here.
      	(build_nt_call_list): New.
      	(simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
      	(iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
      	TREE_CODE_LENGTH.
      	(get_callee_fndecl): Use new CALL_EXPR accessors.
      	(tree_operand_check_failed): Change parameters to pass entire node
      	instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
      	(process_call_operands): New.
      	(build_vl_exp_stat): New.
      	(build_call_list): New.
      	(build_call_nary): New.
      	(build_call_valist): New.
      	(build_call_array): New.
      	(walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
      	(call_expr_arglist): New.
      
      	* tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
      	tcc_vl_exp instead of a fixed-size tcc_expression.
      
      	* doc/c-tree.texi (CALL_EXPR): Document new representation and
      	accessors for CALL_EXPRs.
      	(AGGR_INIT_EXPR): Likewise.
      
      2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
      	    Brooks Moses  <brooks.moses@codesourcery.com>
      	    Lee Millward  <lee.millward@codesourcery.com>
      
      	* builtins.c (c_strlen): Return NULL_TREE instead of 0.
      	(expand_builtin_nonlocal_goto): Change parameter to be entire
      	CALL_EXPR instead of an arglist.  Use new CALL_EXPR accessors.
      	(expand_builtin_prefetch): Likewise.
      	(expand_builtin_classify_type): Likewise.
      	(mathfn_built_in): Return NULL_TREE instead of 0.
      	(expand_errno_check): Use new CALL_EXPR accessors.
      	(expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
      	Return NULL_RTX instead of 0.
      	(expand_builtin_mathfn_2): Likewise.
      	(expand_builtin_mathfn_3): Likewise.
      	(expand_builtin_interclass_mathfn): Likewise.
      	(expand_builtin_sincos): Likewise.
      	(expand_builtin_cexpi): Likewise.
      	(expand_builtin_int_roundingfn): Likewise.
      	(expand_builtin_int_roundingfn_2): Likewise.
      	(expand_builtin_pow): Likewise.
      	(expand_builtin_powi): Likewise.
      	(expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
      	of arglist, fixing callers appropriately.  Use new CALL_EXPR
      	accessors and constructors.  Return NULL_RTX instead of 0.
      	(expand_builtin_strstr): Likewise.
      	(expand_builtin_strchr): Likewise.
      	(expand_builtin_strrchr): Likewise.
      	(expand_builtin_strpbrk): Likewise.
      	(expand_builtin_memcpy): Likewise.
      	(expand_builtin_mempcpy): Likewise.
      	(expand_builtin_mempcpy_args): New.
      	(expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
      	(expand_builtin_memmove_args): New.
      	(expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
      	(expand_movstr): Likewise.
      	(expand_builtin_strcpy): Likewise.
      	(expand_builtin_strcpy_args): New.
      	(expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
      	(expand_builtin_strncpy): Likewise.
      	(expand_builtin_memset): Likewise.
      	(expand_builtin_memset_args): New.
      	(expand_builtin_bzero): Similarly to expand_builtin_memset.
      	(expand_builtin_memcmp): Likewise.
      	(expand_builtin_strcmp): Likewise.
      	(expand_builtin_strncmp): Likewise.
      	(expand_builtin_strcat): Likewise.
      	(expand_builtin_strncat): Likewise.
      	(expand_builtin_strspn): Likewise.
      	(expand_builtin_strcspn): Likewise.
      	(expand_builtin_args_info): Likewise.
      	(expand_builtin_va_start): Likewise.
      	(gimplify_va_arg_expr): Likewise.
      	(expand_builtin_va_end): Likewise.
      	(expand_builtin_va_copy): Likewise.
      	(expand_builtin_frame_address): Likewise.
      	(expand_builtin_alloca): Likewise.
      	(expand_builtin_bswap): Likewise.
      	(expand_builtin_unop): Likewise.
      	(expand_builtin_fputs): Likewise.
      	(expand_builtin_expect): Likewise.
      	(expand_builtin_fabs): Likewise.
      	(expand_builtin_copysign): Likewise.
      	(expand_builtin_printf): Likewise.
      	(expand_builtin_fprintf): Likewise.
      	(expand_builtin_sprintf): Likewise.
      	(expand_builtin_init_trampoline): Likewise.
      	(expand_builtin_signbit): Likewise.
      	(expand_builtin_fork_or_exec): Likewise.
      	(expand_builtin_sync_operation): Likewise.
      	(expand_builtin_compare_and_swap): Likewise.
      	(expand_builtin_lock_test_and_set): Likewise.
      	(expand_builtin_lock_release): Likewise.
      	(expand_builtin): Likewise.
      	(builtin_mathfn_code): Likewise.
      
      	(fold_builtin_constant_p): Pass call arguments individually instead
      	of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
      	accessors and constructors.  Return NULL_TREE instead of 0.
      	(fold_builtin_expect): Likewise.
      	(fold_builtin_classify_type): Likewise.
      	(fold_builtin_strlen): Likewise.
      	(fold_builtin_nan): Likewise.
      	(integer_valued_real_p): Likewise.
      	(fold_trunc_transparent_mathfn): Likewise.
      	(fold_fixed_mathfn): Likewise.
      	(fold_builtin_cabs): Likewise.
      	(fold_builtin_sqrt): Likewise.
      	(fold_builtin_cbrt): Likewise.
      	(fold_builtin_cos): Likewise.
      	(fold_builtin_cosh): Likewise.
      	(fold_builtin_tan): Likewise.
      	(fold_builtin_sincos): Likewise.
      	(fold_builtin_cexp): Likewise.
      	(fold_builtin_trunc): Likewise.
      	(fold_builtin_floor): Likewise.
      	(fold_builtin_ceil): Likewise.
      	(fold_builtin_round): Likewise.
      	(fold_builtin_int_roundingfn): Likewise.
      	(fold_builtin_bitop): Likewise.
      	(fold_builtin_bswap): Likewise.
      	(fold_builtin_logarithm): Likewise.
      	(fold_builtin_hypot): Likewise.
      	(fold_builtin_pow): Likewise.
      	(fold_builtin_powi): Likewise.
      	(fold_builtin_exponent): Likewise.
      	(fold_builtin_memset): Likewise.
      	(fold_builtin_bzero): Likewise.
      	(fold_builtin_memory_op): Likewise.
      	(fold_builtin_bcopy): Deleted; call site changed to invoke
      	fold_builtin_memory_op directly.
      	(fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
      	(fold_builtin_strncpy): Likewise.
      	(fold_builtin_memcmp): Likewise.
      	(fold_builtin_strcmp): Likewise.
      	(fold_builtin_strncmp): Likewise.
      	(fold_builtin_signbit): Likewise.
      	(fold_builtin_copysign): Likewise.
      	(fold_builtin_isascii): Likewise.
      	(fold_builtin_toascii): Likewise.
      	(fold_builtin_isdigit): Likewise.
      	(fold_builtin_fabs): Likewise.
      	(fold_builtin_abs): Likewise.
      	(fold_builtin_fmin_fmax): Likewise.
      	(fold_builtin_carg): Likewise.
      	(fold_builtin_classify): Likewise.
      	(fold_builtin_unordered_cmp): Likewise.
      
      	(fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
      	New functions split out from fold_builtin_1.
      	(fold_builtin_n): New.
      	(fold_builtin_varargs): New.
      	(fold_builtin): Deleted.  Most callers changed to use fold_call_expr
      	instead.
      	(fold_call_expr): New.
      	(build_function_call_expr): Rewrite to use new helper function.
      	(fold_builtin_call_list): New.
      	(build_call_expr): New.
      	(fold_builtin_call_valist): New.
      	(rewrite_call_expr): New.
      	(validate_arg): New.
      	(validate_arglist): Change parameter to be entire CALL_EXPR instead
      	of an arglist.  Change return type to bool.  Use new CALL_EXPR
      	accessors.
      
      	(fold_builtin_strstr):  Pass call arguments individually instead
      	of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
      	accessors and constructors.  Return NULL_TREE instead of 0.
      	(fold_builtin_strchr): Likewise.
      	(fold_builtin_strrchr): Likewise.
      	(fold_builtin_strpbrk): Likewise.
      	(fold_builtin_strcat): Likewise.
      	(fold_builtin_strncat): Likewise.
      	(fold_builtin_strspn): Likewise.
      	(fold_builtin_strcspn): Likewise.
      	(fold_builtin_fputs): Likewise.
      	(fold_builtin_next_arg): Likewise.
      	(fold_builtin_sprintf): Likewise.
      
      	(expand_builtin_object_size): Use new CALL_EXPR accessors.  Use
      	NULL_RTX instead of 0.
      	(expand_builtin_memory_chk): Likewise.
      	(maybe_emit_chk_warning): Likewise.
      	(maybe_emit_sprintf_chk_warning): Likewise.
      
      	(fold_builtin_object_size): Pass call arguments individually instead
      	of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
      	accessors and constructors.  Return NULL_TREE instead of 0.
      	(fold_builtin_memory_chk): Likewise.
      	(fold_builtin_stxcpy_chk): Likewise.
      	(fold_builtin_strncpy_chk): Likewise.
      	(fold_builtin_strcat_chk): Likewise.
      	(fold_builtin_strcat_chk): Likewise.
      	(fold_builtin_strncat_chk): Likewise.
      	(fold_builtin_sprintf_chk): Likewise.
      	(fold_builtin_snprintf_chk): Likewise.
      	(fold_builtin_printf): Likewise.
      	(fold_builtin_vprintf): Likewise.
      
      	* fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
      	constructors.
      	(operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
      	(make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
      	(extract_muldiv_1): Add VL_EXP_CLASS_P case.
      	(fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
      	(fold_unary): Likewise.
      	(fold_binary): Likewise.
      	(fold_ternary): Remove CALL_EXPR case, since they are no longer
      	ternary expressions.
      	(fold): Add logic for tcc_vl_exp.
      	(fold_checksum_tree):  Make it know about tcc_vl_exp.  Use
      	TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
      	(fold_build3_stat): Add assertion to flag broken interface for
      	constructing CALL_EXPRs.
      	(fold_build_call_list): New.
      	(fold_build_call_list_initializer): New.
      	(tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
      	constructors.
      	(fold_strip_sign_ops): Likewise.
      
      2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
      	    Brooks Moses  <brooks.moses@codesourcery.com>
      	    Lee Millward  <lee.millward@codesourcery.com>
      
      	* tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
      	accessors and dump arguments explicitly.
      
      	* tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
      	TREE_CODE_LENGTH.
      	(dump_generic_node): Use new CALL_EXPR accessors and walk arguments
      	explicitly.
      	(print_call_name): Use new CALL_EXPR accessors.
      
      	* print-tree.c (print_node): Add case tcc_vl_exp.  Print
      	CALL_EXPR arguments explicitly instead of as a list.  Use
      	TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
      
      	* tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
      	(vrp_visit_stmt): Likewise.
      
      	* tree-ssa-loop-im.c (outermost_invariant_loop_expr):  Make it
      	know about tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of
      	TREE_CODE_LENGTH.
      	(force_move_till_expr): Likewise.
      
      	* targhooks.c (default_external_stack_protect_fail): Use
      	build_call_expr instead of build_function_call_expr.
      	(default_hidden_stack_protect_fail): Likewise.
      
      	* tree-complex.c (expand_complex_libcall): Use build_call_expr to
      	build the call.
      
      	* cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
      	and walk arguments explicitly.
      
      	* tree-ssa-loop-niter.c (simplify_replace_tree): Use
      	TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
      	(expand_simple_operations): Likewise.
      	(infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
      
      	* gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
      	of TREE_CODE_LENGTH.
      	(walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
      
      	* optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
      	instead of TREE_CODE_LENGTH.
      
      	* value_prof.c (tree_ic): Use new CALL_EXPR accessors.
      	(tree_ic_transform): Likewise.
      	(interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
      	parameter instead of arglist.  Fix callers.
      	(tree_stringop_fixed_value): Use new CALL_EXPR accessors.
      	(tree_stringops_transform): Likewise.
      	(tree_indirect_call_to_profile): Likewise.
      	(tree_stringops_values_to_profile): Likewise.
      
      	* tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
      	(eliminate_tail_call): Likewise.
      
      	* ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
      
      	* tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
      	Use TREE_OPERAND_LENGTH and generalize to handle any number of
      	operands.
      	(instantiate_parameters_1): Can't handle tcc_vl_exp here.
      
      	* omp-low.c (build_omp_barrier): Use build_call_expr.
      	(lower_rec_input_clauses): Likewise.
      	(lower_reduction_clauses): Likewise.
      	(expand_parallel_call): Likewise.
      	(maybe_catch_exception): Likewise.
      	(expand_omp_for_generic): Likewise.
      	(expand_omp_for_static_nochunk): Likewise.
      	(expand_omp_sections): Likewise.
      	(lower_omp_single_simple): Likewise.
      	(lower_omp_single_copy): Likewise.
      	(lower_omp_master): Likewise.
      	(lower_omp_ordered): Likewise.
      	(lower_omp_critical): Likewise.
      
      	* ipa-reference.c (check-call): Use new CALL_EXPR iterator.
      	(scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
      
      	* tree-gimple.c (is_gimple_call_addr): Fix doc.
      	(recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
      	TREE_CODE_LENGTH.  Add tcc_vl_exp case.
      
      	* tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
      	and generalize to handle any number of operands.
      	(chrec_contains_undetermined): Likewise.
      	(tree_contains_chrecs): Likewise.
      	(evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
      
      	* cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
      
      	* tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors.  Use
      	fold_call_expr instead of fold_builtin.
      	(ccp_fold_builtin): Likewise.  Update calls into builtins.c to
      	match declarations there.
      	(fold_stmt): Use new CALL_EXPR constructor and accessors.  Doc
      	updates.
      
      	* tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
      	TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
      
      	* ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
      	(scan_function): Add case tcc_vl_exp for CALL_EXPR.
      
      	* tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
      	accessors.
      
      	* tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
      	(execute_cse_sincos): Use new CALL_EXPR accessors.
      
      	* tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
      
      	* gimple-low.c (lower_function_body): Use build_call_expr.
      	(lower_builtin_setjmp): Likewise.
      
      	* expr.c (emit_block_move_via_libcall): Use build_call_expr.
      	(set_storage_via_libcall): Likewise.
      	(safe_from_p): Add tcc_vl_exp case.  Use TREE_OPERAND_LENGTH
      	instead of TREE_CODE_LENGTH.
      	(expand_expr_real_1): Use new CALL_EXPR accessors.
      
      	* tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
      	generalize to handle any number of operands.
      	(TB_parent_eq): Likewise.
      
      	* predict.c (expr_expected_value): Use new CALL_EXPR accessors.
      	(strip_builtin_expect): Likewise.
      
      	* function.c (gimplify_parameters): Use build_call_expr.
      
      	* tree-vectorizer.c (vect_is_simple_reduction): Use TREE_OPERAND_LENGTH
      	instead of TREE_CODE_LENGTH.
      
      	* ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
      	(scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
      
      	* tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
      	iterators.
      
      	* gimplify.c (build_stack_save_restore): Use build_call_expr.
      	(gimplify_decl_expr): Likewise.
      	(gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
      	Use new CALL_EXPR iterators.
      	(gimplify_modify_expr_to_memcpy): Use build_call_expr.
      	(gimplify_modify_expr_to_memset): Likewise.
      	(gimplify_variable_sized_compare): Likewise.
      	(gimplify_omp_atomic_fetch_op): Likewise.
      	(gimplify_omp_atomic_pipeline): Likewise.
      	(gimplify_omp_atomic_mutex): Likewise.
      	(gimplify_function_tree): Likewise.
      
      	* calls.c (alloca_call_p): Use new CALL_EXPR accessors.
      	(call_expr_flags): Likewise.
      	(expand_call): Likewise.
      
      	* except.c (expand_builtin_eh_return_data_regno): Pass entire
      	CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR 
              accessors.
      
      	* coverage.c (create_coverage): Use build_call_expr.
      
      	* tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
      	(temp_call_expr_obstack): New.
      	(pool_copy_list): Delete.
      	(temp_copy_call_expr): New.
      	(phi_translate): Add case tcc_vl_exp for CALL_EXPR.  Use new
      	CALL_EXPR accessors.  Get rid of special goo for copying argument
      	lists and use temp_copy_call_expr instead.
      	(valid_in_sets): Add case tcc_vl_exp for CALL_EXPR.  Use new
      	CALL_EXPR accessors.
      	(create_expression_by_pieces): Likewise.  Use build_call_array
      	to construct the result instead of fold_build3.
      	(create_value_expr_from): Add tcc_vl_exp.  Delete special goo for
      	dealing with argument lists.
      	(init_pre): Remove references to expression_node_pool and
      	list_node_pool.  Init temp_call_expr_obstack instead.
      	(fini_pre): Remove references to expression_node_pool and
      	list_node_pool.
      
      	* tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
      	and walk arguments explicitly instead of as a list.
      
      	* tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
      	(mx_register_decls): Likewise.
      	(mudflap_register_call): Likewise.
      	(mudflap_finish_file): Likewise.
      
      	* ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
      	(ipa_callsite_compute_param): Likewise.
      
      	* tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
      	accessors and constructor.
      
      	* tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
      	accessors and constructor.
      	(convert_tramp_reference): Likewise. 
      	(convert_call_expr): Likewise.
      	(finalize_nesting_tree_1): Likewise.
      
      	* tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
      	accessors.
      
      	* tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
      
      	* tree-inline.c (initialize_inlined_parameters): Pass entire
      	CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
      	accessors.
      	(estimate_num_insns_1): Use new CALL_EXPR accessors.
      	(expand_call_inline): Tidy up call to initialize_inlined_parameters.
      
      	* tree-vect-transform.c (vect_create_epilog_for_reduction):  Use
      	TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
      	(vectorizable_reduction): Likewise.
      	(vectorizable_call): Use new CALL_EXPR iterators.
      	(vectorizable_conversion): Use build_call_expr.
      	(vectorizable_operation): Use TREE_OPERAND_LENGTH.
      	(vect_gen_widened_results_half): Use build_call_expr.
      	(vect_setup_realignment): Likewise.
      	(vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
      
      	* tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
      	(pass_through_call): Likewise.
      	(compute_object_sizes): Likewise.  Use fold_call_expr instead of
      	fold_builtin.
      
      	* tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
      	(tree_gen_pow2_profiler): Likewise.
      	(tree_gen_one_value_profiler): Likewise.
      	(tree_gen_ic_func_profiler): Likewise.
      	(tree_gen_average_profiler): Likewise.
      	(tree_gen_ior_profiler): Likewise.
      
      	* tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
      	(find_func_aliases): Use new CALL_EXPR accessors.  Add case
      	tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
      
      	* tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
      	of TREE_CODE_LENGTH.
      
      	* stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
      	of TREE_CODE_LENGTH.
      
      	* convert.c (convert_to_real): Use new CALL_EXPR accessors and
      	constructor.
      	(convert_to_integer): Likewise.
      
      	* tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
      	accessors.
      
      2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
      	    Brooks Moses  <brooks.moses@codesourcery.com>
      	    Lee Millward  <lee.millward@codesourcery.com>
      
      	* config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
      	accessors.
      	* config/frv/frv.c (frv_expand_builtin): Likewise.
      	* config/s390/s390.c (s390_expand_builtin): Likewise.
      
      	* config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
      	(sparc_expand_builtin): Use new CALL_EXPR accessors.
      
      	* config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
      	(ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
      	instead of arglist.  Use new CALL_EXPR accessors on it.  Fix callers.
      	(ix86_expand_store_builtin): Likewise.
      	(ix86_expand_unop_builtin): Likewise.
      	(ix86_expand_unop1_builtin): Likewise.
      	(ix86_expand_sse_compare): Likewise.
      	(ix86_expand_sse_comi): Likewise.
      	(ix86_expand_vec_init_builtin): Likewise.
      	(ix86_expand_vec_ext_builtin): Likewise.
      	(ix86_expand_vec_set_builtin): Likewise.
      	(ix86_expand_builtin): Use new CALL_EXPR accessors.
      
      	* config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
      	* config/c4x/c4x.c (c4x_expand_builtin): Likewise.
      
      	* config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
      	instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
      	(iq2000_expand_builtin): Use new CALL_EXPR accessors.
      
      	* config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
      	build_call_expr.
      	* config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
      	(rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
      	arglist.  Use new CALL_EXPR accessors.  Fix callers.
      	(altivec_expand_abs_builtin): Likewise.
      	(rs6000_expand_binop_builtin): Likewise.
      	(altivec_expand_predicate_builtin): Likewise.
      	(altivec_expand_lv_builtin): Likewise.
      	(spe_expand_stv_builtin): Likewise.
      	(altivec_expand_stv_builtin): Likewise.
      	(rs6000_expand_ternop_builtin): Likewise.
      	(altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
      	(altivec_expand_st_builtin): Likewise.
      	(altivec_expand_dst_builtin): Likewise.
      	(altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
      	arglist.  Use new CALL_EXPR accessors.  Fix callers.
      	(altivec_expand_vec_set_builtin): Likewise.
      	(altivec_expand_vec_ext_builtin): Likewise.
      	(altivec_expand_builtin): Use new CALL_EXPR accessors.
      	(spe_expand_builtin): Likewise.
      	(spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
      	arglist.  Use new CALL_EXPR accessors.  Fix callers.
      	(spe_expand_evsel_builtin): Likewise.
      	(rs6000_expand_builtin): Use new CALL_EXPR accessors.  VCFUX and
      	FCFSX cases must construct whole new CALL_EXPR, not just arglist.
      
      	* config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
      	instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
      	(arm_expand_unop_builtin): Likewise.
      	(arm_expand_builtin): Use new CALL_EXPR accessors.
      
      	* config/mips/mips.c (mips_expand_builtin):  Use new CALL_EXPR
      	accessors.
      
      	* config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire CALL_EXPR
      	instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
      	(bfin_expand_unop_builtin): Likewise.
      	(bfin_expand_builtin): Use new CALL_EXPR accessors.
      
      2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
      	    Brooks Moses  <brooks.moses@codesourcery.com>
      	    Lee Millward  <lee.millward@codesourcery.com>
      
      	* c-semantics.c (build_stmt): Add internal diagnostic check.
      
      	* c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
      	accessors.  Print arguments explicitly instead of as a list.
      
      	* c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
      
      	* c-omp.c (c_finish_omp_barrier): Use build_call_expr.
      	(c_finish_omp_flish): Likewise.
      
      	* c-common.c (verify_tree): Use new CALL_EXPR accessors.  Traverse
      	arguments explicitly instead of as a list.  Use TREE_OPERAND_LENGTH
      	instead of TREE_CODE_LENGTH.
      	(check_function_arguments_recurse): Use new CALL_EXPR accessors.
      	(c_warn_unused_result): Likewise.
      
      2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
      	    Brooks Moses  <brooks.moses@codesourcery.com>
      	    Lee Millward  <lee.millward@codesourcery.com>
      
      	* cp-tree.def (AGGR_INIT_EXPR): Adjust documentation.
      	Change class to tcc_vl_exp.
      
      	* call.c (build_call): Use build_call_list instead 
      	of build3. 
      	(build_over_call): Likewise.
      	(build_new_method_call): Use build_min_non_dep_call_list 
      	instead of build_min_non_dep.
      
      	* error.c (dump_call_expr_args): New function.
      	(dump_aggr_init_expr_args): New function.
      	(dump_expr) <AGGR_INIT_EXPR, CALL_EXPR, INDIRECT_REF>: Use them. 
      	Update to use new CALL_EXPR and AGGR_INIT_EXPR accessor macros.
      
      	* cvt.c (convert_to_void): Use build_call_array instead
      	of build3; use new AGGR_INIT_EXPR accessor macros.
      
      	* mangle.c (write_expression): Use TREE_OPERAND_LENGTH
      	instead of TREE_CODE_LENGTH.
      
      	* dump.c (cp_dump_tree) <AGGR_INIT_EXPR>: Update to use new
      	AGGR_INIT_EXPR accessor macros.
      
      	* cp-gimplify.c (cp_gimplify_init_expr): Use 
      	AGGR_INIT_EXPR_SLOT to set the slot operand.
      
      	* cp-tree.h (AGGR_INIT_EXPR_FN): New macro.
      	(AGGR_INIT_EXPR_SLOT): New macro.
      	(AGGR_INIT_EXPR_ARG): New macro.
      	(aggr_init_expr_nargs): New macro.
      	(AGGR_INIT_EXPR_ARGP): New macro.
      	(aggr_init_expr_arg_iterator): New.
      	(init_aggr_init_expr_arg_iterator): New.
      	(next_aggr_init_expr_arg): New.
      	(first_aggr_init_expr_arg): New.
      	(more_aggr_init_expr_args_p): New.
      	(FOR_EACH_AGGR_INIT_EXPR_ARG): New.
      	(stabilize_aggr_init): New declaration.
      	(build_min_non_dep_call_list): Likewise.
      
      	* tree.c (process_aggr_init_operands): New function.
      	(build_aggr_init_array) New function.
      	(build_cplus_new): Update to use new CALL_EXPR and
      	AGGR_INIT_EXPR accessor macros. Replace use of build3 with
      	build_aggr_init_array.
      	(build_min_non_dep_call_list) New function.
      	(build_min_nt): Assert input code parameter is not a variable
      	length expression class.
      	(build_min, build_min_non_dep): Likewise.
      	(cp_tree_equal) <CALL_EXPR>: Iterate through the arguments
      	to check for equality instead of recursing. Handle tcc_vl_exp
      	tree code classes.
      	(stabilize_call): Update to only handle CALL_EXPRs, not 
      	AGGR_INIT_EXPRs; use new CALL_EXPR accessor macros.
      	(stabilize_aggr_init): New function.
      	(stabilize_init): Use it.
      
      	* cxx-pretty-print.c (pp_cxx_postfix_expression)
      	<AGGR_INIT_EXPR, CALL_EXPR>: Update to use new CALL_EXPR and
      	AGGR_INIT_EXPR accessor macros and argument iterators.
      	
      	* pt.c (tsubst_copy) <CALL_EXPR>: Replace build_nt with
      	build_vl_exp. Iterate through the operands, recursively 
      	processing each one.
      	(tsubst_copy_and_build) <CALL_EXPR>: Update to use new
      	CALL_EXPR accessor macros.
      	(value_dependent_expression_p) <default>: Handle tcc_vl_exp
      	tree code classes. Use TREE_OPERAND_LENGTH instead of 
      	TREE_CODE_LENGTH.
      
      	* semantics.c (finish_call_expr): Use build_nt_call_list
      	instead of build_nt.
      	(simplify_aggr_init_expr): Update to use new AGGR_INIT_EXPR 
      	accessor macros. Use build_call_array to construct the 
      	CALL_EXPR node instead of build3
      	
      	* decl2.c (build_offset_ref_call_from_tree): Use 
      	build_nt_call_list and build_min_non_dep_call_list instead
      	of build_min_nt and build_min_non_dep.
      
      	* parser.c (cp_parser_postfix_expression) <CPP_OPEN_PAREN>:
      	Use build_nt_call_list instead of build_min_nt.
      
      2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
      	    Brooks Moses  <brooks.moses@codesourcery.com>
      	    Lee Millward  <lee.millward@codesourcery.com>
      
      	* java-tree.h (BUILD_MONITOR_ENTER): Use build_call_nary instead
      	of build3.
      	(BUILD_MONITOR_EXIT): Likewise.
      
      	* java-gimplify.c (java_gimplify_component_ref): Use build_call_expr.
      	(java_gimplify_modify_expr): Likewise.
      
      	* class.c (cache_this_class_ref): Use build_call_expr.
      	(build_static_field_ref): Likewise.
      	(emit_indirect_register_classes): Likewise.
      	(emit_register_classes): Likewise.
      
      	* resource.c (write_resource_constructor): Use build_call_expr.
      
      	* builtins.c (builtin_creator_function): Change interpretation of
      	the second parameter to be the whole CALL_EXPR instead of the arglist.
      	(max_builtin): Tweak parameter list.  Use new CALL_EXPR accessors.
      	(min_builtin): Likewise.
      	(abs_builtin): Likewise.
      	(java_build_function_call_expr): Likewise.
      	(convert_real): Likewise.
      	(UNMARSHAL3): Likewise.
      	(UNMARSHAL4): Likewise.
      	(UNMARSHAL5): Likewise.
      	(build_arglist_for_builtin): Delete.  Fix callers to use
      	build_call_expr instead.
      	(putObject_builtin): Tweak parameter list.  Use new CALL_EXPR
      	accessors.
      	(compareAndSwapInt_builtin): Likewise.
      	(compareAndSwapLong_builtin): Likewise.
      	(compareAndSwapObject_builtin): Likewise.
      	(putVolatile_builtin): Likewise.
      	(getVolatile_builtin): Likewise.
      	(VMSupportsCS8_builtin): Likewise.
      	(check_for_builtin): Pass entire CALL_EXPR to builtin expander
      	instead of arglist.
      
      	* expr.c (build_java_athrow): Use build_call_nary instead of build3.
      	(build_java_throw_out_of_bounds_exception): Likewise.
      	(java_check_reference): Likewise.
      	(build_java_arraystore_check): Likewise.
      	(build_newarray): Likewise.
      	(build_anewarray): Likewise.
      	(expand_java_multinewarray): Use build_call_list instead of build3.
      	(build_java_monitor): Use build_call_nary instead of build3.
      	(java_create_object): Likewise.
      	(expand_java_NEW): Likewise.
      	(build_instanceof): Likewise.
      	(expand_java_CHECKCAST): Likewise.
      	(build_java_soft_divmod): Likewise.
      	(build_java_binop): Likewise.
      	(build_field_ref): Likewise.
      	(build_class_init): Likewise.
      	(rewrite_arglist_getcaller): Use build_call_expr.
      	(build_invokeinterface):  Use build_call_nary instead of build3.
      	(expand_invoke): Use build_call_list instead of build3.
      	(build_jni_stub): Use build_call_nary, build_call_list, or
      	build_call_expr instead	of build3.
      	(expand_java_field_op): Use build_call_expr instead of build3.
      	(force_evaluation_order): Use new CALL_EXPR accessors.
      
      	* lang.c (java_get_callee_fndecl): Use new CALL_EXPR accessors.
      
      2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
      	    Brooks Moses  <brooks.moses@codesourcery.com>
      	    Lee Millward  <lee.millward@codesourcery.com>
      
      	* objc-act.c (receiver_is_class_object): Use new CALL_EXPR accessors.
      	(objc_get_callee_fndecl): Likewise.
      
      2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
      	    Brooks Moses  <brooks.moses@codesourcery.com>
      	    Lee Millward  <lee.millward@codesourcery.com>
      
      	* trans-expr.c (gfc_conv_power_op): Use build_call_expr.
      	(gfc_conv_string_tmp): Likewise.
      	(gfc_conv_concat_op): Likewise.
      	(gfc_build_compare_string): Likewise.
      	(gfc_conv_function_call): Use build_call_list instead of build3.
      
      	* trans-array.c (gfc_trans_allocate_array_storage): Use
      	build_call_expr.
      	(gfc_grow_array): Likewise.
      	(gfc_trans_array_ctor_element): Likewise.
      	(gfc_trans_array_constructor_value): Likewise.
      	(gfc_array_allocate): Likewise.
      	(gfc_array_deallocate): Likewise.
      	(gfc_trans_auto_array_allocation): Likewise.
      	(gfc_trans_dummy_array_bias): Likewise.
      	(gfc_conv_array_parameter): Likewise.
      	(gfc_trans_dealloc_allocated): Likewise.
      	(gfc_duplicate_allocatable): Likewise.
      
      	* trans-openmp.c (gfc_trans_omp_barrier): Use build_call_expr.
      	(gfc_trans_omp_flush): Likewise.
      
      	* trans-stmt.c (gfc_conv_elementel_dependencies): Use build_call_expr.
      	(gfc_trans_pause): Likewise.
      	(gfc_trans_stop): Likewise.
      	(gfc_trans_character_select): Likewise.
      	(gfc_do_allocate): Likewise.
      	(gfc_trans_assign_need_temp): Likewise.
      	(gfc_trans_pointer_assign_need_temp): Likewise.
      	(gfc_trans_forall_1): Likewise.
      	(gfc_trans_where_2): Likewise.
      	(gfc_trans_allocate): Likewise.
      	(gfc_trans_deallocate): Likewise.
      
      	* trans.c (gfc_trans_runtime_check): Use build_call_expr.
      
      	* trans-io.c (gfc_trans_open): Use build_call_expr.
      	(gfc_trans_close): Likewise.
      	(build_filepos): Likewise.
      	(gfc_trans_inquire): Likewise.
      	(NML_FIRST_ARG): Delete.
      	(NML_ADD_ARG): Delete.
      	(transfer_namelist_element): Use build_call_expr.
      	(build_dt): Likewise.
      	(gfc_trans_dt_end): Likewise.
      	(transfer_expr): Likewise.
      	(transfer_array-desc): Likewise.
      
      	* trans-decl.c (gfc_generate_function_code): Use build_call_expr.
      	(gfc_generate_constructors): Likewise.
      
      	* trans-intrinsic.c (gfc_conv_intrinsic_ctime): Use build_call_expr.
      	(gfc_conv_intrinsic_fdate): Likewise.
      	(gfc_conv_intrinsic_ttynam): Likewise.
      	(gfc_conv_intrinsic_array_transfer): Likewise.
      	(gfc_conv_associated): Likewise.
      	(gfc_conv_intrinsic_si_kind): Likewise.
      	(gfc_conv_intrinsic_trim): Likewise.
      	(gfc_conv_intrinsic_repeat: Likewise.
      	(gfc_conv_intrinsic_iargc): Likewise.
      
      Co-Authored-By: default avatarBrooks Moses <brooks.moses@codesourcery.com>
      Co-Authored-By: default avatarLee Millward <lee.millward@codesourcery.com>
      
      From-SVN: r122018
      5039610b
    • David Daney's avatar
      Make-lang.in (JAVA_MANFILES): Add doc/gc-analyze.1. · 7f40378f
      David Daney authored
      gcc/java:
      2007-02-15  David Daney  <ddaney@avtrex.com>
      
      	* Make-lang.in (JAVA_MANFILES): Add doc/gc-analyze.1.
      	(java.maintainer-clean):Add gc-analyze.1.
      	(.INTERMEDIATE): Add gc-analyze.pod.
      	(gc-analyze.pod): New rule.
      	(java.install-man): Install gc-analyze.1
      	* gcj.texi: Add new section for the gc-analyze program.
      
      libjava:
      2007-02-15  Johannes Schmidt  <jschmidt@avtrex.com>
      	David Daney  <ddaney@avtrex.com>
      
      	* configure.ac: Create vm-tools-packages file.  Add 
      	gnu/gcj/tools/gc_analyze to standard.omit and vm-tools-packages.
      	Check for /proc/self/maps.
      	* Makefile.am (bin_PROGRAMS): Added gc-analyze.
      	(gc_analyze_SOURCES): New.
      	(gc_analyze_LDFLAGS): New.
      	(gc_analyze_LINK): New.
      	(gc_analyze_LDADD): New.
      	(gc_analyze_DEPENDENCIES): New.
      	(nat_source_files): Add gnu/gcj/util/natGCInfo.cc.
      	* Makefile.in: Regenerated.
      	* configure: Regenerated.
      	* include/config.h.in: Regenerated.
      	* sources.am: Regenerated.
      	* scripts/makemake.tcl: Don't include gc-analyze classes in libgcj.
      	* gnu/gcj/tools/gc_analyze/SymbolLookup.java: New.
      	* gnu/gcj/tools/gc_analyze/ObjectMap.java: New.
      	* gnu/gcj/tools/gc_analyze/MemoryMap.java: New.
      	* gnu/gcj/tools/gc_analyze/SymbolTable.java: New.
      	* gnu/gcj/tools/gc_analyze/BlockMap.java: New.
      	* gnu/gcj/tools/gc_analyze/BytePtr.java: New.
      	* gnu/gcj/tools/gc_analyze/ItemList.java: New.
      	* gnu/gcj/tools/gc_analyze/ToolPrefix.java: New.
      	* gnu/gcj/tools/gc_analyze/MemoryAnalyze.java: New.
      	* gnu/gcj/util/GCInfo.java: New.
      	* gnu/gcj/util/GCInfo.h: New.
      	* gnu/gcj/util/natGCInfo.cc: New.
      	* gnu/gcj/util/UtilPermission.java: New.
      	* gnu/gcj/util/UtilPermission.h: New.
      	* classpath/tools/gnu/gcj/tools/gc_analyze/SymbolTable.class: New.
      	* classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap$ObjectItem.class: New.
      	* classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$RangeComparator.class: New.
      	* classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$PtrMarks.class: New.
      	* classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$Range.class: New.
      	* classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap.class: New.
      	* classpath/tools/gnu/gcj/tools/gc_analyze/BytePtr.class: New.
      	* classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$SubstringComparator.class: New.
      	* classpath/tools/gnu/gcj/tools/gc_analyze/ItemList.class: New.
      	* classpath/tools/gnu/gcj/tools/gc_analyze/ToolPrefix.class: New.
      	* classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze.class: New.
      	* classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1$Info.class: New.
      	* classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1.class: New.
      	* classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$2.class: New.
      	* classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$3.class: New.
      	* classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$4.class: New.
      	* classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$OptionParser.class: New.
      	* classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$SizeKind.class: New.
      	* classpath/tools/gnu/gcj/tools/gc_analyze/SymbolLookup.class: New.
      	* classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap.class: New.
      	* classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap.class: New.
      	* classpath/lib/gnu/gcj/util/GCInfo.class: New.
      	* classpath/lib/gnu/gcj/util/UtilPermission.class: New.
      
      libjava/classpath:
      2007-02-15  David Daney  <ddaney@avtrex.com>
      
      	* tools/Makefile.am (TOOLS_ZIP): Add classes from vm-tools-packages.
      	* tools/Makefile.in: Regenerated.
      
      From-SVN: r122007
      7f40378f
  12. Feb 07, 2007
    • Andrew Haley's avatar
      class.c (uncache_this_class_ref): New. · 56c9f04b
      Andrew Haley authored
      2007-02-07  Andrew Haley  <aph@redhat.com>
      
              * class.c (uncache_this_class_ref): New.
              * expr.c (build_jni_stub): Initialize the class.
              (expand_byte_code): Call uncache_this_class_ref after generating
              code.
      
      From-SVN: r121695
      56c9f04b
  13. Feb 06, 2007
  14. Feb 03, 2007
  15. Feb 02, 2007
    • Andrew Haley's avatar
      expr.c (expand_byte_code): Call cache_this_class_ref() and cache_cpool_data_ref(). · b4e18eee
      Andrew Haley authored
      2007-02-02  Andrew Haley  <aph@redhat.com>
      
              * expr.c (expand_byte_code): Call cache_this_class_ref() and
              cache_cpool_data_ref().
              Set TYPE_CPOOL_DATA_REF.
              (cache_cpool_data_ref): New function.
              * constants.c (build_ref_from_constant_pool): Remove special-case
              code for flag_indirect_classes.
              (build_constant_data_ref): Move special-case code for
              flag_indirect_classes here from build_ref_from_constant_pool.
              * decl.c (finish_method): Move class initialization from here to
              cache_this_class_ref.
              * class.c (cache_this_class_ref): New function.
              (build_class_ref): Use this_classdollar for the ouput class.
      
      From-SVN: r121508
      b4e18eee
    • David Daney's avatar
      class.c (is_compiled_class): Move check to avoid reloading current class. · 4969f3ea
      David Daney authored
      	* class.c (is_compiled_class): Move check to avoid reloading
      	current class.
      	(layout_class_method): Don't calculate DECL_EXTERNAL if it is
      	already set.
      
      From-SVN: r121506
      4969f3ea
  16. Feb 01, 2007
  17. Jan 31, 2007
  18. Jan 30, 2007
  19. Jan 29, 2007
  20. Jan 24, 2007
    • Andrew Haley's avatar
      [multiple changes] · c863b570
      Andrew Haley authored
      2007-01-24  Andrew Haley  <aph@redhat.com>
      
              * jcf-parse.c (HANDLE_SYNTHETIC_ATTRIBUTE): current_class is a
              type node, not a decl, so use TYPE_SYNTHETIC not CLASS_SYNTHETIC.
      
      2007-01-22  Andrew Haley  <aph@redhat.com>
      
              * builtins.c (VMSupportsCS8_builtin): New function.
      
      From-SVN: r121118
      c863b570
    • Andrew Pinski's avatar
      re PR java/30454 (empty "zip" file in class path can cause leakage of file streams) · a5abc980
      Andrew Pinski authored
      2007-01-23  Andrew Pinski  <pinskia@gmail.com>
      
      	PR java/30454
      	* jcf-io.c (opendir_in_zip): Close the file
      	and free zipf before returning after an error.
      
      From-SVN: r121101
      a5abc980
  21. Jan 16, 2007
  22. Jan 15, 2007
    • Tom Tromey's avatar
      lang.c (dump_compound_expr): Removed case. · b7e89938
      Tom Tromey authored
      	* lang.c (dump_compound_expr) <EXPR_WITH_FILE_LOCATION>: Removed
      	case.
      	* java-gimplify.c (java_gimplify_expr) <EXPR_WITH_FILE_LOCATION>:
      	Removed case.
      	* java-tree.h (EXPR_WFL_EMIT_LINE_NOTE): Removed.
      	(EXPR_WFL_NODE): Likewise.
      	(EXPR_WFL_LINECOL): Likewise.
      	(EXPR_WFL_FILENAME): Likewise.
      	(EXPR_WFL_LINENO): Likewise.
      	(build_expr_wfl, expr_add_location): Don't declare.
      	(build_unknown_wfl): Removed.
      	(EXPR_WFL_FILENAME_NODE): Removed.
      	(EXPR_WFL_COLNO): Removed.
      	(EXPR_WFL_SET_LINECOL): Removed.
      	(DECL_FUNCTION_WFL): Removed.
      	(DECL_FIELD_FINAL_WFL): Removed.
      	(struct lang_decl_func) <wfl>: Removed field.
      	<called_constructor>: Likewise.
      	<inner_access>: Likewise.
      	(struct lang_decl_var) <wfl>: Removed field.
      	(DECL_CONSTRUCTOR_CALLS): Removed.
      	(DECL_FUNCTION_ACCESS_DECL): Likewise.
      	(DECL_FUNCTION_INNER_ACCESS): Likewise.
      	(DECL_SPECIFIC_COUNT): Likewise.
      	* java-tree.def (EXPR_WITH_FILE_LOCATION): Removed.
      	* expr.c (build_expr_wfl): Removed.
      	(expr_add_location): Likewise.
      
      From-SVN: r120804
      b7e89938
  23. Jan 13, 2007
    • Tom Tromey's avatar
      jcf-dump.c (main): Updated call to find_class. · 6ef795d2
      Tom Tromey authored
      	* jcf-dump.c (main): Updated call to find_class.
      	* lang.c (java_init): Removed dead code.
      	* jcf-parse.c (read_class): Don't use java_source field.  Removed
      	dead code.
      	(parse_zip_file_entries): Don't use java_source field.
      	(process_zip_dir): Likewise.
      	(jcf_parse): Removed dead code.
      	(java_parse_file): Likewise.
      	(read_class): Updated call to find_class.
      	* jcf-io.c (find_class): Don't use java_source field.  Removed
      	'source_ok' argument, .java logic.
      	* jcf.h (JCF) <java_source>: Removed field.
      	(JCF_ZERO): Updated.	(find_class): Updated.
      	* decl.c: Removed dead code.
      	* class.c: Removed dead code.
      
      From-SVN: r120745
      6ef795d2
  24. Jan 11, 2007
    • Tom Tromey's avatar
      typeck.c (convert): Don't use flag_emit_class_files. · 6e63e240
      Tom Tromey authored
      	* typeck.c (convert): Don't use flag_emit_class_files.
      	* lang.c (java_post_options): Don't use flag_emit_class_files.
      	(java_handle_option): Don't use flag_extraneous_semicolon or
      	flag_redundant.
      	* jcf-parse.c (HANDLE_CONSTANTVALUE): Don't use
      	flag_emit_class_files.
      	(load_class): Likewise.
      	* java-tree.h (flag_emit_class_files): Don't declare.
      	(STATIC_CLASS_INIT_OPT_P): Don't use flag_emit_class_files.
      	(flag_extraneous_semicolon): Don't declare.
      	(flag_not_overriding): Likewise.
      	(flag_static_local_jdk1_1): Likewise.
      	(flag_redundant): Likewise.
      	* expr.c (build_newarray): Don't use flag_emit_class_files.
      	* class.c (DEFAULT_ENABLE_ASSERT): Don't use
      	flag_emit_class_files.
      	(build_class_ref): Likewise.
      	* builtins.c (check_for_builtin): Don't use
      	flag_emit_class_files.
      
      From-SVN: r120687
      6e63e240
    • Paolo Bonzini's avatar
      configure.ac (strict1_warn): Rename to strict_warn. · 8b1f719a
      Paolo Bonzini authored
      2007-01-11  Paolo Bonzini  <bonzini@gnu.org>
      
      	* configure.ac (strict1_warn): Rename to strict_warn.
      	(WERROR, --enable-werror, symlink hacks, stage1_cflags,
      	cc_set_by_configure, quoted_cc_set_by_configure,
      	stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
      	all_boot_languages, all_stagestuff): Remove.
      	(target_list): Remove bootstrap targets.
      	* Makefile.in (quickstrap): Unconditionally make a synonym of all.
      	(BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
      	REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
      	SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
      	VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
      	STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
      	stage1_copy, stage2_build, stage2_copy, stageprofile_build,
      	stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
      	stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
      	bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
      	bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
      	unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
      	restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
      	cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
      	*compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
      	stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
      	stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
      	risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
      	(ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
      	(STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
      	(mostlyclean): Adjust.
      	(clean, distclean): Don't mention bootstrap stuff.
      	* configure: Regenerate.
      	* ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
      	java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
      	treelang/config-lang.in (stagestuff): Remove.
      	* doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
      	stageprofile, stagefeedback, stagestuff): Remove mention.
      
      From-SVN: r120670
      8b1f719a
  25. Jan 10, 2007
    • Tom Tromey's avatar
      fold-const.c (fold_truthop): Don't check can_use_bit_fields_p. · 08f0e79e
      Tom Tromey authored
      gcc
      	* fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
      	(fold_binary): Likewise.
      	* langhooks.c (lhd_can_use_bit_fields_p): Removed.
      	* langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
      	(LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
      	(LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
      	* langhooks.h (struct lang_hooks): Removed field
      	'can_use_bit_fields_p'.
      gcc/java
      	* lang.c (java_can_use_bit_fields_p): Removed.
      	(LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
      
      From-SVN: r120647
      08f0e79e
  26. Jan 09, 2007
  27. Jan 08, 2007
    • Richard Guenther's avatar
      tree.h (build_int_cst_wide_type): Export. · 2ac7cbb5
      Richard Guenther authored
      2007-01-08  Richard Guenther  <rguenther@suse.de>
      
      	* tree.h (build_int_cst_wide_type): Export.
      	* tree.c (build_int_cst_wide_type): New function.
      	(build_int_cst_wide): Fix comment.
      	* builtins.c (fold_builtin_object_size): Use build_int_cst
      	to build -1 or 0 of the correct type.  Use fit_double_type
      	to check for overflow.
      	* fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
      	to build the mask.
      	(decode_field_reference): Likewise.
      	(all_ones_mask_p): Likewise.
      	(native_interpret_int): Use build_int_cst_wide_type.
      	(fold_binary): Use build_int_cst_type to build an all-ones
      	value.
      	* stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
      
      	java/
      	* lex.c (do_java_lex): Use build_int_cst_wide_type.
      	* jcf-parse.c (get_constant): Likewise.
      
      	cp/
      	* cvt.c (cp_convert_to_pointer): Use build_int_cst_type.
      
      	ada/
      	* cuintp.c (build_cst_from_int): Use built_int_cst_type.
      	* trans.c (gnat_to_gnu): Likewise.
      
      From-SVN: r120596
      2ac7cbb5
  28. Dec 11, 2006
    • Jan Hubicka's avatar
      Move all varpool routines out of cgraph/cgraphunit to varpool.c · 8a4a83ed
      Jan Hubicka authored
      	Move all varpool routines out of cgraph/cgraphunit to varpool.c
      	* cgraph.c: Update comments.
      	(cgraph_varpool_hash,
      	cgraph_varpool_nodes, cgraph_varpool_last_needed_node
      	cgraph_varpool_node_name, cgraph_varpool_node,
      	cgraph_varpol_mode_for_asm, cgraph_varpool_mark_needed_node,
      	cgraph_variable_initializer_availability): Move to
      	varpool.c and drop cgraph_ prefixes.
      	(cgraph_varpool_enqueue_needed_node, cgraph_varpool_reset_queue,
      	cgraph_varpool_first_unanalyzed_node, cgraph_varpool_finalize_decl):
      	move to varpool.c; drop cgraph_ prefix; make static.
      	(dump_cgraph_varpool_node): Move to varpool.c under name
      	dump_varpool_node.
      	(dump_varpool, hash_varpool_node, eq_varpool_node,
      	decide_is_variable_needed): Move to varpool.c
      	(decl_assembler_name_equal): Move to tree.c.
      	(availability_names): Rename to ...
      	(cgraph_availability_names): ... this one.
      	(dump_cgraph_node): Update.
      	* cgraph.h: Reorder declarations now in varpool.c
      	(cgraph_vailablity_names): Declare.
      	(struct cgraph_varpool_node): Rename to ...
      	(struct varpool_node): ... this one.
      	(cgraph_varpool_first_unanalyzed_node, cgraph_varpool_nodes_queue,
      	cgraph_varpool_first_unanalyzed_node, cgraph_varpool_node,
      	cgraph_varpool_node_for_asm, cgraph_varpool_mark_needed_node,
      	cgraph_varpool_finalize_decl, cgraph_varpool_enqueue_needed_node,
      	cgraph_varpool_reset_queue, cgraph_varpool_assemble_pending_decls,
      	cgraph_variable_initializer_availability): Rename to ...
      	(varpool_first_unanalyzed_node, varpool_nodes_queue,
      	varpool_first_unanalyzed_node, varpool_node,
      	varpool_node_for_asm, varpool_mark_needed_node,
      	varpool_finalize_decl, varpool_enqueue_needed_node,
      	varpool_assemble_pending_decls, variable_initializer_availability):
      	Rename to ...
      	* tree.c (decl_assembler_name_equal): Move here from cgraph.c.
      	* tree.h (decl_assembler_name_equal): Declare.
      	* omp-low.c (lower_omp_critical): Update.
      	* ipa-reference (analyze_variable, static_execute): Likewise.
      	* toplev.c (wrapup_global_declaration_2, compile_file): Update.
      	* cgraphunit.c: Update comments.
      	(cgraph_varpool_assembled_nodes_queue): Move to varpool.c under name
      	varpool_assembled_nodes_queue.
      	(cgraph_varpool_analyze_pending_decls): Move to varpool.c under name
      	varpool_analyze_pending_decls.
      	(cgraph_varpool_remove_unreferenced_decls): Move to varpool.c under name
      	varpool_remove_unreferenced_decls.
      	(record_reference): Update.
      	(cgraph_create_edges): Update.
      	(record_referneces_in_initializer): New function.
      	(cgraph_varpool_assemble_decl): Move to varpool.c under name
      	varpool_assemble_decl; make global.
      	(cgraph_varpool_assemble_pending_decls): Move to varpool.c under name
      	varpool_assemble_pending_decls.
      	(process_function_and_variable_attributes, cgraph_finalize_compilation_unit,
      	struct cgraph_order_sort, cgraph_output_in_order,
      	cgraph_function_and_variable_invisibility, cgraph_optimize,
      	cgraph_increase_alignment): Update.
      	* dwarf2out.c (decls_for_scope): Likewise.
      	* ipa-type-escape.c (analyze_variable, type_escape_execute): Likewise.
      	* except.c (output_ttype): Likewise.
      	* varasm.c (mark_decl_referenced): Likewise.
      	(find_decl_and_mark_referenced, assemble_alias): update.
      	* Makefile.in: Add varpool.c, gt-varpool.c and remove gt-cgraphunit.c
      	* passes.c (rest_of_decl_compilation): Update.
      
      	* cp/decl2.c (var_finalized_p): Update for renamed varpool functions.
      	* fortran/f59-lang.c (gfc_expand_function): Update for renamed varpool functions.
      
      From-SVN: r119731
      8a4a83ed
  29. Dec 05, 2006
  30. Nov 12, 2006
  31. Nov 11, 2006
    • Richard Guenther's avatar
      tree.def (FIX_CEIL_EXPR, [...]): Remove unused tree codes. · f9f770a8
      Richard Guenther authored
      2006-11-11  Richard Guenther  <rguenther@suse.de>
      
      	* tree.def (FIX_CEIL_EXPR, FIX_FLOOR_EXPR, FIX_ROUND_EXPR):
      	Remove unused tree codes.
      	* tree-vrp.c (extract_range_from_unary_expr): Remove handling
      	of FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
      	* tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
      	* tree.c (stabilize_reference): Likewise.
      	* fold-const.c (fold_convert_const_int_from_real, operand_equal_p,
      	fold_unary): Likewise.
      	* tree-gimple.c (is_gimple_cast): Likewise.
      	* dwarf2out.c (loc_descriptor_from_tree_1): Likewise.
      	* expr.c (expand_expr_real_1): Likewise.
      	* tree-eh.c (tree_could_trap_p): Likewise.
      	* gimplify.c (gimplify_expr): Likewise.
      	* tree-inline.c (estimate_num_insns_1): Likewise.
      	* tree-cfg.c (verify_expr): Likewise.
      
      	cp/
      	* typeck.c (build_unary_op): Likewise.
      
      	java/
      	* check-init.c (check_init): Likewise.
      
      	ada/
      	* trans.c (maybe_stabilize_reference): Likewise.
      
      	fortran/
      	* trans-intrinsic.c (enum rounding_mode): New enum.
      	(build_fix_expr, gfc_conv_intrinsic_aint, gfc_conv_intrinsic_mod,
      	gfc_conv_intrinsic_function): Use it instead of FIX_CEIL_EXPR,
      	FIX_FLOOR_EXPR, FIX_ROUND_EXPR and FIX_TRUNC_EXPR.
      
      From-SVN: r118692
      f9f770a8
  32. Oct 23, 2006
    • Rafael Ávila de Espíndola's avatar
      decl.c: Include langhooks.h. · c79efc4d
      Rafael Ávila de Espíndola authored
             * gcc/java/decl.c: Include langhooks.h.
             (builtin_function): Remove.
             (java_init_decl_processing): Replace calls to builtin_function
             with add_builtin_function.
      
             * gcc/java/Make-lang.in (jc1$(exeext)): Depend on and link with
             attribs.o.
             (java/decl.o): Depend on langhooks.h.
      
             * gcc/java/java-tree.h (builtin_function): Remove.
      
             * gcc/tree.c (local_define_builtin): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/objc/objc-act.c (synth_module_prologue): Replace calls to
             builtin_function with add_builtin_function.
             (build_next_objc_exception_stuff): Replace calls to
             builtin_function with add_builtin_function.
             (build_objc_exception_stuff): Replace calls to
             builtin_function with add_builtin_function.
      
             * gcc/objcp/objcp-decl.h (objcp_builtin_function): Remove.
      
             * gcc/cp/decl.c (builtin_function_1): Move common code to
             add_builtin_function.
             (builtin_function): Rename to cxx_builtin_function.
             Change the signature.
      
             * gcc/cp/call.c: Include langhooks.h.
             (build_java_interface_fn_ref):  Replace calls to
             builtin_function with add_builtin_function.
      
             * gcc/cp/Make-lang.in (cp/call.o): Depend on langhooks.h.
      
             * gcc/cp/cp-objcp-common.h (LANG_HOOKS_BUILTIN_FUNCTION): Define as
             cxx_builtin_function.
      
             * gcc/cp/cp-tree.h (builtin_function): Rename to cxx_builtin_function.
             Change the signature.
      
             * gcc/c-objc-common.h (LANG_HOOKS_BUILTIN_FUNCTION): Define as
             c_builtin_function.
      
             * gcc/c-tree.h (builtin_function): Rename to c_builtin_function. Change
             the signature.
      
             * gcc/ada/utils.c (builtin_function): Rename to gnat_builtin_function.
             Move common code to add_builtin_function.
      
             * gcc/ada/misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
             gnat_builtin_function.
      
             * gcc/ada/gigi.h (builtin_function): Rename to gnat_builtin_function.
             Change the signature.
      
             * gcc/c-decl.c (builtin_function): Rename to c_builtin_function. Move
             common code to add_builtin_function.
      
             * gcc/fortran/Make-lang.in (f951$(exeext)): Depend on and link with
             attribs.o.
      
             * gcc/fortran/trans.h (builtin_function): Rename to
             gfc_builtin_function. Change the signature.
      
             * gcc/fortran/f95-lang.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
             gfc_builtin_function.
             (builtin_function): Rename to gfc_builtin_function. Move common
             code to builtin_function.
             (gfc_define_builtin): Replace calls to builtin_function with
             gfc_define_builtin.
      
             * gcc/langhooks.c (add_builtin_function): New function.
             (lhd_builtin_function): New function.
      
             * gcc/langhooks.h (struct lang_hooks): Change the signature of
             builtin_function.
             (add_builtin_function): New function.
      
             * gcc/treelang/treetree.c (builtin_function): Remove.
      
             * gcc/tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Replace
             calls to lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/c-common.c (decl_builtin_1): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/config/alpha/alpha.c (alpha_init_builtins): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/config/frv/frv.c (def_builtin): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/config/s390/s390.c (s390_init_builtins): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/config/sparc/sparc.c (def_builtin): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/config/i386/i386.c (def_builtin): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
             (def_builtin): Replace calls to lang_hooks.builtin_function with
             add_builtin_function.
      
             * gcc/config/sh/sh.c (sh_media_init_builtins): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/config/c4x/c4x.c (c4x_init_builtins): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/config/stormy16/stormy16.c (xstormy16_init_builtins):
             Replace calls to lang_hooks.builtin_function with
             add_builtin_function.
      
             * gcc/config/iq2000/iq2000.c (def_builtin):
             Replace calls to lang_hooks.builtin_function with
             add_builtin_function.
      
             * gcc/config/ia64/ia64.c (def_builtin): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/config/rs6000/rs6000.c (def_builtin): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
             (altivec_init_builtins): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/config/arm/arm.c (def_mbuiltin): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
             (arm_init_tls_builtins): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/config/mips/mips.c (mips_init_builtins): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/config/bfin/bfin.c (def_builtin): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/langhooks-def.h (lhd_builtin_function): New function.
             (LANG_HOOKS_BUILTIN_FUNCTION): Define as lhd_builtin_function.
      
      From-SVN: r117981
      c79efc4d
  33. Oct 10, 2006
    • Brooks Moses's avatar
      --(top level)-------------------------------------------- · b5422ad7
      Brooks Moses authored
      2006-10-10  Brooks Moses  <bmoses@stanford.edu>
      
      	* Makefile.def: Added pdf target handling.
      	* Makefile.tpl: Added pdf target handling.
      	* Makefile.in: Regenerated.
      
      ---fixincludes--------------------------------------------
      
      2006-10-10  Brooks Moses  <bmoses@stanford.edu>
      
      	* Makefile.in: Added empty "pdf" target.
      
      ---gcc----------------------------------------------------
      
      2006-10-10  Brooks Moses  <bmoses@stanford.edu>
      
      	* configure.ac: Added pdf to "Make-hooks"
      	* Makefile.in: Added TEXI2PDF definition, and various pdf-file
      	targets and *.pdf file patterns in cleanup targets.
      	* configure: Regenerated.
      
      ---gcc/cp-------------------------------------------------
      
      2006-10-10  Brooks Moses  <bmoses@stanford.edu>
      
      	* Make-lang.in: Added "c++.pdf" target support.
      
      ---gcc/fortran--------------------------------------------
      
      2006-10-10  Brooks Moses  <bmoses@stanford.edu>
      
      	* Make-lang.in: Added "fortran.pdf", "gfortran.pdf" target
      	support.
      
      ---gcc/java-----------------------------------------------
      
      2006-10-10  Brooks Moses  <bmoses@stanford.edu>
      
      	* Make-lang.in: Added "java.pdf", "gcj.pdf" target support.
      
      ---gcc/objc-----------------------------------------------
      
      2006-10-10  Brooks Moses  <bmoses@stanford.edu>
      
      	* Make-lang.in: Added empty "objc.pdf" target.
      
      ---gcc/objcp----------------------------------------------
      
      2006-10-10  Brooks Moses  <bmoses@stanford.edu>
      
      	* Make-lang.in: Added empty "obj-c++.pdf" target.
      
      ---gcc/treelang-------------------------------------------
      
      2006-10-10  Brooks Moses  <bmoses@stanford.edu>
      
      	* Make-lang.in: Added "treelang.pdf" target support.
      
      ---gnattools----------------------------------------------
      
      2006-10-10  Brooks Moses  <bmoses@stanford.edu>
      
      	* Makefile.in: Added empty "pdf" target.
      
      ---libcpp-------------------------------------------------
      
      2006-10-10  Brooks Moses  <bmoses@stanford.edu>
      
      	* Makefile.in: Added empty "pdf" target.
      
      ---libdecnumber-------------------------------------------
      
      2006-10-10  Brooks Moses  <bmoses@stanford.edu>
      
      	* Makefile.in: Added empty "pdf" target.
      
      ---libiberty----------------------------------------------
      
      2006-10-10  Brooks Moses  <bmoses@stanford.edu>
      
      	* Makefile.in: Added "pdf", "libiberty.pdf" target support.
      	* testsuite/Makefile.in: Added empty "pdf" target.
      
      ---libobjc------------------------------------------------
      
      2006-10-10  Brooks Moses  <bmoses@stanford.edu>
      
      	* Makefile.in: Added empty "pdf" target.
      
      From-SVN: r117618
      b5422ad7
Loading