1. 01 May, 2005 3 commits
    • rakdver's avatar
      PR tree-optimization/18316 · 651874e1
      rakdver authored
      	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.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99059 138bc75d-0d04-0410-961f-82ee72b054a4
      651874e1
    • matz's avatar
      * config/i386/i386.md (movmemsi): Also active when · 6e2d5805
      matz authored
              TARGET_INLINE_ALL_STRINGOPS.
              * gcc.dg/inline-mcpy.c: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99054 138bc75d-0d04-0410-961f-82ee72b054a4
      6e2d5805
    • gccadmin's avatar
      Daily bump. · 485d9f92
      gccadmin authored
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99052 138bc75d-0d04-0410-961f-82ee72b054a4
      485d9f92
  2. 30 Apr, 2005 10 commits
  3. 29 Apr, 2005 27 commits
    • mkoch's avatar
      2005-04-29 Michael Koch <konqueror@gmx.de> · d551a6b4
      mkoch authored
      	* 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.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99021 138bc75d-0d04-0410-961f-82ee72b054a4
      d551a6b4
    • rth's avatar
      * gengtype.c (write_func_for_structure): Split out ... · 523507f1
      rth authored
              (output_type_enum): ... new function.  Fix thinko accessing
              TYPE_PARAM_STRUCT data.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99020 138bc75d-0d04-0410-961f-82ee72b054a4
      523507f1
    • tromey's avatar
      gcc: · 0a4b7550
      tromey authored
      	* 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.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99019 138bc75d-0d04-0410-961f-82ee72b054a4
      0a4b7550
    • tromey's avatar
      2005-04-29 Andrew Pinski <pinskia@gcc.gnu.org> · ed8bd5f4
      tromey authored
      	* expr.c (force_evaluation_order): Declare 'saved' earlier.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99018 138bc75d-0d04-0410-961f-82ee72b054a4
      ed8bd5f4
    • tromey's avatar
      2005-04-29 Andrew Haley <aph@redhat.com> · a94d37f3
      tromey authored
      	* java/lang/Class.h (_Jv_ResolvePoolEntry): Declare as friend.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99016 138bc75d-0d04-0410-961f-82ee72b054a4
      a94d37f3
    • pinskia's avatar
      2005-04-29 Devang Patel <dpatel@apple.com> · 3db8c50a
      pinskia authored
              PR tree-optimization/21272
              PR tree-optimization/21266
              * tree-if-conv.c (find_phi_replacement_condition): Fix think-o.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99013 138bc75d-0d04-0410-961f-82ee72b054a4
      3db8c50a
    • paolo's avatar
      2005-04-29 Paolo Carlini <pcarlini@suse.de> · dde86049
      paolo authored
      	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.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99012 138bc75d-0d04-0410-961f-82ee72b054a4
      dde86049
    • mkoch's avatar
      2005-04-29 Dalibor Topic <robilad@kaffe.org> · a809cb64
      mkoch authored
      	* 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.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99011 138bc75d-0d04-0410-961f-82ee72b054a4
      a809cb64
    • aph's avatar
      2005-04-28 Andrew Haley <aph@redhat.com> · f53ce661
      aph authored
              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.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99010 138bc75d-0d04-0410-961f-82ee72b054a4
      f53ce661
    • matz's avatar
      PR rtl-optimization/21144 · 5e507a76
      matz authored
              * postreload.c (reload_cse_move2add): Check for VOIDmode.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99008 138bc75d-0d04-0410-961f-82ee72b054a4
      5e507a76
    • aph's avatar
      2005-04-27 Andrew Haley <aph@redhat.com> · 8af0046e
      aph authored
              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.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99006 138bc75d-0d04-0410-961f-82ee72b054a4
      8af0046e
    • bwilson's avatar
      * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Define to disable · 7343444e
      bwilson authored
      	flag_reorder_blocks.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99000 138bc75d-0d04-0410-961f-82ee72b054a4
      7343444e
    • kazu's avatar
      gcc/ · f486df52
      kazu authored
      	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.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98999 138bc75d-0d04-0410-961f-82ee72b054a4
      f486df52
    • dpatel's avatar
      PR tree-optimization/21272 · 3d9471be
      dpatel authored
              * tree-if-conv.c (find_phi_replacement_condition): Fix think-o.
      
              * gcc.dg/vect/vect-ifcvt-10.c: New.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98998 138bc75d-0d04-0410-961f-82ee72b054a4
      3d9471be
    • kazu's avatar
      * tree-flow-inline.h, tree-ssa-operands.c: Fix comment typos. · 17dc88a9
      kazu authored
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98994 138bc75d-0d04-0410-961f-82ee72b054a4
      17dc88a9
    • jakub's avatar
      2005-04-29 Jakub Jelinek <jakub@redhat.com> · c6871095
      jakub authored
      	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.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98993 138bc75d-0d04-0410-961f-82ee72b054a4
      c6871095
    • kazu's avatar
      * tree-flow-inline.h: Fix a comment typo. · 51384808
      kazu authored
      	* doc/tree-ssa.texi: Fix a typo.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98992 138bc75d-0d04-0410-961f-82ee72b054a4
      51384808
    • nathan's avatar
      · 48a37c59
      nathan authored
      	* 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.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98991 138bc75d-0d04-0410-961f-82ee72b054a4
      48a37c59
    • fxcoudert's avatar
      * configure.ac: Check for ftruncate and chsize. · a54b1ce7
      fxcoudert authored
      	* io/unix.c (fd_truncate): Provide chsize as alternative to
      	ftruncate.
      	* config.h.in: Regenerate.
      	* configure: Regenerate.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98989 138bc75d-0d04-0410-961f-82ee72b054a4
      a54b1ce7
    • jules's avatar
      * config/arm/arm.h (ARM_EABI_CTORS_SECTION_OP): Do not define if a · 41b9306e
      jules authored
      	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.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98988 138bc75d-0d04-0410-961f-82ee72b054a4
      41b9306e
    • uweigand's avatar
      2005-04-29 Jim Tison <jtison@us.ibm.com> · d4ddb84e
      uweigand authored
              * config/s390/s390.md ("prologue_tpf", "epilogue_tpf"): Alter
              trace hooks calls to improve performance.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98987 138bc75d-0d04-0410-961f-82ee72b054a4
      d4ddb84e
    • jules's avatar
      * crtstuff.c: Handle targets that use .init_array. · d24bc145
      jules authored
      	* 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.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98986 138bc75d-0d04-0410-961f-82ee72b054a4
      d24bc145
    • bonzini's avatar
      2005-04-29 Paolo Bonzini <bonzini@gnu.org> · c828481a
      bonzini authored
      	* configure: Regenerate.
      
      config:
      2005-04-29  Paolo Bonzini  <bonzini@gnu.org>
      
      	* acx.m4 (ACX_PROG_GNAT): Remove stray break.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98985 138bc75d-0d04-0410-961f-82ee72b054a4
      c828481a
    • corsepiu's avatar
      Fix typo in previous patch. · f2591d19
      corsepiu authored
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98984 138bc75d-0d04-0410-961f-82ee72b054a4
      f2591d19
    • corsepiu's avatar
      2005-05-29 Ralf Corsepius <ralf.corsepius@rtems.org> · 6155bf60
      corsepiu authored
      	* configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
      	powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
      	* configure: Regenerate.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98983 138bc75d-0d04-0410-961f-82ee72b054a4
      6155bf60
    • nathan's avatar
      * config/m68k/m68k.c (m68k_initial_elimination_offset): Use · 84653e0f
      nathan authored
      	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.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98981 138bc75d-0d04-0410-961f-82ee72b054a4
      84653e0f
    • fxcoudert's avatar
      * gfortran.h (gfc_namespace): Add seen_implicit_none field, · 564bb9df
      fxcoudert authored
      	Tobias forgot this in previous commit.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98980 138bc75d-0d04-0410-961f-82ee72b054a4
      564bb9df