1. 01 May, 2005 4 commits
    • * zh_CN.po: New file. · a192121a
      From-SVN: r99064
      Joseph Myers committed
    • re PR tree-optimization/18316 (Missed IV optimization) · 9be872b7
      	PR tree-optimization/18316
      	PR tree-optimization/19126
      	* tree.c (build_int_cst_type): Avoid shift by size of type.
      	* tree-scalar-evolution.c (simple_iv): Add allow_nonconstant_step
      	argument.
      	* tree-scalar-evolution.h (simple_iv): Declaration changed.
      	* tree-ssa-loop-ivopts.c (struct iv_cand): Add depends_on
      	field.
      	(dump_cand): Dump depends_on information.
      	(determine_biv_step): Add argument to simple_iv call.
      	(contains_abnormal_ssa_name_p): Handle case expr == NULL.
      	(find_bivs, find_givs_in_stmt_scev): Do not require step to be a
      	constant.
      	(add_candidate_1): Record depends_on for candidates.
      	(tree_int_cst_sign_bit, constant_multiple_of): New functions.
      	(get_computation_at, get_computation_cost_at, may_eliminate_iv):
      	Handle ivs with nonconstant step.
      	(iv_ca_set_remove_invariants, iv_ca_set_add_invariants): New functions.
      	(iv_ca_set_no_cp, iv_ca_set_cp): Handle cand->depends_on.
      	(create_new_iv): Unshare the step before passing it to create_iv.
      	(free_loop_data): Free cand->depends_on.
      	(build_addr_strip_iref): New function.
      	(find_interesting_uses_address): Use build_addr_strip_iref.
      	(strip_offset_1): Split the recursive part from strip_offset.
      	Strip constant offset component_refs and array_refs.
      	(strip_offset): Split the recursive part to strip_offset_1.
      	(add_address_candidates): Removed.
      	(add_derived_ivs_candidates): Do not use add_address_candidates.
      	(add_iv_value_candidates): Add candidates with stripped constant
      	offset.  Consider all candidates with initial value 0 important.
      	(struct affine_tree_combination): New.
      	(aff_combination_const, aff_combination_elt, aff_combination_scale,
      	aff_combination_add_elt, aff_combination_add,
      	tree_to_aff_combination, add_elt_to_tree, aff_combination_to_tree,
      	fold_affine_sum): New functions.
      	(get_computation_at): Use fold_affine_sum.
      	* tree-ssa-loop-manip.c (create_iv): Handle ivs with nonconstant step.
      	* tree-ssa-loop-niter.c (number_of_iterations_exit): Add argument
      	to simple_iv call.
      
      	* gcc.dg/tree-ssa/loop-8.c: New test.
      
      From-SVN: r99059
      Zdenek Dvorak committed
    • i386.md (movmemsi): Also active when TARGET_INLINE_ALL_STRINGOPS. · 600f3598
              * config/i386/i386.md (movmemsi): Also active when
              TARGET_INLINE_ALL_STRINGOPS.
              * gcc.dg/inline-mcpy.c: New test.
      
      From-SVN: r99054
      Michael Matz committed
    • Daily bump. · af650ada
      [[Split portion of a mixed commit.]]
      
      From-SVN: r99052.2
      GCC Administrator committed
  2. 30 Apr, 2005 10 commits
  3. 29 Apr, 2005 26 commits
    • 2005-04-29 Michael Koch <konqueror@gmx.de> · bf5d810f
      	* java/net/NetworkInterface.java
      	(static): Removed.
      	(NetworkInterface(String,InetAddress)): Made package-private.
      	(NetworkInterface(String,InetAddress[])): New constructor.
      	(getRealNetworkInterfaces): Removed.
      	(getByName): Use VMNetworkInterface.getInterfaces().
      	(getByInetAddress): Likewise.
      	(getNetworkInterfaces): Likewise.
      	* java/net/VMNetworkInterface.java,
      	java/net/natVMNetworkInterfaceNoNet.cc,
      	java/net/natVMNetworkInterfacePosix.c,c
      	java/net/natVMNetworkInterfaceWin32.cc: New files.
      	* java/net/natNetworkInterfaceNoNet.cc,
      	java/net/natNetworkInterfacePosix.cc,
      	 java/net/natNetworkInterfaceWin32.cc: Removed.
      	* configure.ac
      	* Makefile.am
      	* configure, Makefile.in: Regenerated.
      
      From-SVN: r99021
      Michael Koch committed
    • gengtype.c (write_func_for_structure): Split out ... · 2d82317d
              * gengtype.c (write_func_for_structure): Split out ...
              (output_type_enum): ... new function.  Fix thinko accessing
              TYPE_PARAM_STRUCT data.
      
      Co-Authored-By: Daniel Jacobowitz <dan@codesourcery.com>
      
      From-SVN: r99020
      Richard Henderson committed
    • tree.c (build_block): Removed unused 'tags' argument. · 22e8617b
      gcc:
      	* tree.c (build_block): Removed unused 'tags' argument.
      	* tree.h (build_block): Removed argument.
      gcc/java:
      	* expr.c (build_jni_stub): Updated for change to build_block.
      gcc/treelang:
      	* treetree.c (poplevel): Updated for change to build_block.
      gcc/fortran:
      	* f95-lang.c (poplevel): Updated for change to build_block.
      
      From-SVN: r99019
      Tom Tromey committed
    • expr.c (force_evaluation_order): Declare 'saved' earlier. · 5e4b794a
      2005-04-29  Andrew Pinski  <pinskia@gcc.gnu.org>
      
      	* expr.c (force_evaluation_order): Declare 'saved' earlier.
      
      From-SVN: r99018
      Andrew Pinski committed
    • Class.h (_Jv_ResolvePoolEntry): Declare as friend. · cfbb2638
      2005-04-29  Andrew Haley  <aph@redhat.com>
      
      	* java/lang/Class.h (_Jv_ResolvePoolEntry): Declare as friend.
      
      From-SVN: r99016
      Andrew Haley committed
    • re PR tree-optimization/21272 (SSA_NAME def follows use with -ftree-vectorize) · 13ea650c
      2005-04-29  Devang Patel  <dpatel@apple.com>
      
              PR tree-optimization/21272
              PR tree-optimization/21266
              * tree-if-conv.c (find_phi_replacement_condition): Fix think-o.
      
      From-SVN: r99013
      Andrew Pinski committed
    • re PR libstdc++/21238 (conflicting "typedef __numpunct_cache<_CharT> … · a70c902e
      re PR libstdc++/21238 (conflicting "typedef __numpunct_cache<_CharT>    __cache_type;" in std::numpunct<CharT> makes specialization impossible)
      
      2005-04-29  Paolo Carlini  <pcarlini@suse.de>
      
      	PR libstdc++/21238
      	* include/bits/locale_facets.tcc (num_get::_M_extract_float,
      	num_get::_M_extract_int, num_get::do_get(bool&),
      	num_put::_M_insert_int, num_put::_M_insert_float,
      	num_put::do_put(bool), money_get::_M_extract,
      	money_put::_M_insert): Adjust the __cache_type typedef not to
      	forward to a numpunct/moneypunct typedef.
      	* testsuite/testsuite_character.h: Add pod_uint and its numpunct
      	and moneypunct specializations.
      	* testsuite/testsuite_character.cc: Add numpunct<pod_uint>::id
      	and moneypunct<pod_uint>::id.
      	* testsuite/22_locale/num_get/3.cc: New.
      	* testsuite/22_locale/num_put/3.cc: Likewise.
      	* testsuite/22_locale/money_get/3.cc: Likewise.
      	* testsuite/22_locale/money_put/3.cc: Likewise.
      
      	* include/bits/locale_facets.tcc (money_put::_M_insert,
      	time_get::_M_extract_name): Prefer operator== to operator!=
      	on char_types.
      
      From-SVN: r99012
      Paolo Carlini committed
    • 2005-04-29 Dalibor Topic <robilad@kaffe.org> · b61ae8b2
      	* java/nio/channels/FileChannelImpl.java
      	(FileChannelImpl(String, int)): Removed.
      	(FileChannelImpl(File, int)): Added. Check if opened file is a
      	directory.
      	* java/io/FileInputStream.java(FileInputStream): Fixed javadocs.
      	Call FileChannelImpl(File, int).
      	* java/io/FileOutputStream.java (FileInputStream): Call
      	FileChannelImpl(File, int).
      	* java/io/RandomAccessFile.java (RandomAccessFile):
      	Call FileChannelImpl(File, int). Switched constructors around.
      
      From-SVN: r99011
      Dalibor Topic committed
    • re PR java/19285 (Interfaces not initialized by static field access) · 2c80f015
      2005-04-28  Andrew Haley  <aph@redhat.com>
      
              PR java/19285
              * java-tree.h (soft_resolvepoolentry_node): New.
              (alloc_constant_fieldref): Declare.
              * expr.c (expand_java_field_op): Don't call class_init for
              accesses to static fields with indirect dispatch.
              * builtins.c (initialize_builtins): Add "__builtin_expect".
              * decl.c (soft_resolvepoolentry_node): New variable.
              (java_init_decl_processing): Create a decl for
              "_Jv_ResolvePoolEntry".
              * class.c (build_fieldref_cache_entry): New function.
              (build_static_field_ref): Rewrite for indirect dispatch.
              * constants.c (find_name_and_type_constant_tree): New function.
              (alloc_constant_fieldref): Likewise.
              (build_constants_constructor): Handle CONSTANT_Fieldref and
              CONSTANT_NameAndType.
      
              PR java/21115
              * expr.c (force_evaluation_order): Convert outgoing args smaller
              than integer.
      
      From-SVN: r99010
      Andrew Haley committed
    • re PR rtl-optimization/21144 (Apparent infinite loop in reload) · a68b179c
              PR rtl-optimization/21144
              * postreload.c (reload_cse_move2add): Check for VOIDmode.
      
      From-SVN: r99008
      Michael Matz committed
    • re PR java/19285 (Interfaces not initialized by static field access) · f3dc41fe
      2005-04-27  Andrew Haley  <aph@redhat.com>
      
              PR java/19285
              * prims.cc (_Jv_ResolvePoolEntry): New function.
              * include/jvm.h (_Jv_Linker::find_field): New arg: found_class.
              * link.cc (_Jv_Linker::find_field): New arg: found_class.
              (resolve_pool_entry): Initialize the class in which a field is
              found.
              (link_symbol_table): Pass new arg to found_class.
      
      From-SVN: r99006
      Andrew Haley committed
    • xtensa.h (OPTIMIZATION_OPTIONS): Define to disable flag_reorder_blocks. · 528a7d22
      	* config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Define to disable
      	flag_reorder_blocks.
      
      From-SVN: r99000
      Bob Wilson committed
    • re PR tree-optimization/21030 (ICE in set_value_range building 176.gcc with -O2) · d5448566
      gcc/
      	PR tree-optimization/21030
      	* tree-vrp.c (adjust_range_with_scev): Do not create invalid
      	ranges where VR->MAX is smaller than VR->MIN.
      
      testsuite/
      	PR tree-optimization/21030
      	* gcc.dg/tree-ssa/pr21030.c: New.
      
      From-SVN: r98999
      Kazu Hirata committed
    • re PR tree-optimization/21272 (SSA_NAME def follows use with -ftree-vectorize) · 7dcc58cd
              PR tree-optimization/21272
              * tree-if-conv.c (find_phi_replacement_condition): Fix think-o.
      
              * gcc.dg/vect/vect-ifcvt-10.c: New.
      
      From-SVN: r98998
      Devang Patel committed
    • [multiple changes] · d198b59a
      2005-04-29  Jakub Jelinek  <jakub@redhat.com>
      
      	PR fortran/13082
      	PR fortran/18824
      	* trans-expr.c (gfc_conv_variable): Handle return values in functions
      	with alternate entry points.
      	* resolve.c (resolve_entries): Remove unnecessary string termination
      	after snprintf.  Set result of entry master.
      	If all entries have the same type, set entry master's type
      	to that common type, otherwise set mixed_entry_master attribute.
      	* trans-types.c (gfc_get_mixed_entry_union): New function.
      	(gfc_get_function_type): Use it for mixed_entry_master functions.
      	* gfortran.h (symbol_attribute): Add mixed_entry_master bit.
      	* decl.c (gfc_match_entry): Set entry->result properly for
      	function ENTRY.
      	* trans-decl.c (gfc_get_symbol_decl): For entry_master, skip over
      	__entry argument.
      	(build_entry_thunks): Handle return values in entry thunks.
      	Clear BT_CHARACTER's ts.cl->backend_decl, so that it is not
      	shared between multiple contexts.
      	(gfc_get_fake_result_decl): Use DECL_ARGUMENTS from
      	current_function_decl instead of sym->backend_decl.  Skip over
      	entry master's entry id argument.  For mixed_entry_master entries or
      	their results, return a COMPONENT_REF of the fake result.
      	(gfc_trans_deferred_vars): Don't warn about missing return value if
      	at least one entry point uses RESULT.
      	(gfc_generate_function_code): For entry master returning
      	CHARACTER, copy ts.cl->backend_decl to all entry result syms.
      	* trans-array.c (gfc_trans_dummy_array_bias): Don't consider return
      	values optional just because they are in entry master.
      
      	* gfortran.dg/entry_4.f90: New test.
      	* gfortran.fortran-torture/execute/entry_1.f90: New test.
      	* gfortran.fortran-torture/execute/entry_2.f90: New test.
      	* gfortran.fortran-torture/execute/entry_3.f90: New test.
      	* gfortran.fortran-torture/execute/entry_4.f90: New test.
      	* gfortran.fortran-torture/execute/entry_5.f90: New test.
      	* gfortran.fortran-torture/execute/entry_6.f90: New test.
      	* gfortran.fortran-torture/execute/entry_7.f90: New test.
      
      2005-04-29  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
      
      	* gfortran.fortran-torture/execute/entry_8.f90: New test.
      
      From-SVN: r98993
      Jakub Jelinek committed
    • tree-flow-inline.h: Fix a comment typo. · be12e697
      	* tree-flow-inline.h: Fix a comment typo.
      	* doc/tree-ssa.texi: Fix a typo.
      
      From-SVN: r98992
      Kazu Hirata committed
    • fr30.c (fr30_expand_prologue): Use gcc_assert and gcc_unreachable as appropriate. · 4e81e7c2
      
      	* config/fr30/fr30.c (fr30_expand_prologue): Use gcc_assert and
      	gcc_unreachable as appropriate.
      	(fr30_expand_epilogue, fr30_setup_incoming_varargs,
      	fr30_print_operand, fr30_move_double): Likewise.
      	* config/fr30/fr30.md (*movsi_internal, *movsf_internal): Likewise.
      
      From-SVN: r98991
      Nathan Sidwell committed
    • configure.ac: Check for ftruncate and chsize. · 1fb2002d
      	* configure.ac: Check for ftruncate and chsize.
      	* io/unix.c (fd_truncate): Provide chsize as alternative to
      	ftruncate.
      	* config.h.in: Regenerate.
      	* configure: Regenerate.
      
      From-SVN: r98989
      Francois-Xavier Coudert committed
    • arm.h (ARM_EABI_CTORS_SECTION_OP): Do not define if a definition has already been provided. · 88c6057f
      	* config/arm/arm.h (ARM_EABI_CTORS_SECTION_OP): Do not define if a
      	definition has already been provided.
      	(ARM_EABI_DTORS_SECTION_OP): Likewise.
      	* config/arm/symbian.h (ARM_EABI_CTORS_SECTION_OP): Define.
      	(ARM_EABI_DTORS_SECTION_OP): Likewise.
      
      From-SVN: r98988
      Mark Mitchell committed
    • s390.md ("prologue_tpf", [...]): Alter trace hooks calls to improve performance. · 9e811ecd
      2005-04-29  Jim Tison  <jtison@us.ibm.com>
      
              * config/s390/s390.md ("prologue_tpf", "epilogue_tpf"): Alter
              trace hooks calls to improve performance.
      
      From-SVN: r98987
      Jim Tison committed
    • crtstuff.c: Handle targets that use .init_array. · 7abc66b1
      	* crtstuff.c: Handle targets that use .init_array.
      	* function.c (HAS_INIT_SECTION): Do not define. Instead, make sure
      	that INVOKE__main is set correctly.
      	(expand_main_function): Test INVOKE__main.
      	* libgcc2.c: Do not define __main when using .init_array.
      	* config/arm/arm.c (arm_elf_asm_constructor): New function.
      	* config/arm/arm.h (CTORS_SECTION_ASM_OP): Define, with specialized
      	libgcc version.
      	(DTORS_SECTION_ASM_OP): Likewise.
      	(CTOR_LIST_BEGIN): Define specially when in libgcc.
      	(CTOR_LIST_END): Likewise.
      	(DTOR_LIST_BEGIN): Likewise.
      	(DTOR_LIST_END): Likewise.
      	* config/arm/bpapi.h (INIT_SECTION_ASM_OP): Do not define it.
      	(FINI_SECTION_ASM_OP): Likewise.
      	(INIT_ARRAY_SECTION_ASM_OP): Define.
      	(FINI_ARRAY_SECTION_ASM_OP): Likewise.
      	* config/arm/elf.h (TARGET_ASM_CONSTRUCTOR): Define.
      	(SUPPORTS_INIT_PRIORITY): Evaluate to false for EABI based targets.
      	* doc/tm.texi (INIT_ARRAY_SECTION_ASM_OP): Document.
      	(FINI_ARRAY_SECTION_ASM_OP): Likewise.
      
      Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
      Co-Authored-By: Paul Brook <paul@codesourcery.com>
      
      From-SVN: r98986
      Julian Brown committed
    • configure: Regenerate. · aa9dcfc4
      2005-04-29  Paolo Bonzini  <bonzini@gnu.org>
      
      	* configure: Regenerate.
      
      config:
      2005-04-29  Paolo Bonzini  <bonzini@gnu.org>
      
      	* acx.m4 (ACX_PROG_GNAT): Remove stray break.
      
      From-SVN: r98985
      Paolo Bonzini committed
    • Fix typo in previous patch. · d266a2ff
      From-SVN: r98984
      Ralf Corsepius committed
    • configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*, powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*. · d948c201
      2005-05-29  Ralf Corsepius  <ralf.corsepius@rtems.org>
      
      	* configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
      	powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
      	* configure: Regenerate.
      
      From-SVN: r98983
      Ralf Corsepius committed
    • m68k.c (m68k_initial_elimination_offset): Use gcc_assert and gcc_unreachable as appropriate. · 4761e388
      	* config/m68k/m68k.c (m68k_initial_elimination_offset): Use
      	gcc_assert and gcc_unreachable as appropriate.
      	(output_dbcc_and_branch, output_scc_di, legitimize_pic_address,
      	const_int_cost, output_move_const_into_data_reg,
      	output_move_qimode, output_move_double, find_addr_reg,
      	print_operand, print_operand_address): Likewise.
      	* config/m68k/m68k.md (adddi3, subdi3, negsf2, negdf2, abssf2,
      	absdf2, sordered, sunordered, suneq, sunge, sungt, sunle, sunlt,
      	sltgt, bordered, bunordered, buneq, bunge, bungt, bunle, bunlt,
      	bltgt, *bordered_rev, *bunordered_rev, *buneq_rev, *bunge_rev,
      	*bunle_rev, *bunlt_rev, *bltgt_rev, negxf2, absxf2,
      	conditional_trap): Likewise.
      	* config/m68k/m68kelf.h (ASM_OUTPUT_ALIGN): Remove unreachable code.
      
      From-SVN: r98981
      Nathan Sidwell committed