1. 27 Aug, 2010 11 commits
    • Fix long lines · 757fc8ed
      From-SVN: r163590
      Eric Botcazou committed
    • re PR fortran/43217 (Output of Hollerith constants which are not a multiple of 4 bytes) · 2854a076
      2010-08-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libfortran/43217
      	* gfortran.dg/hollerith8.f90: New test.
      
      From-SVN: r163588
      Jerry DeLisle committed
    • mips-protos.h (mips_function_arg_advance): Delete · c8717ea3
      	* config/mips/mips-protos.h (mips_function_arg_advance): Delete
      	(mips_function_arg): Delete.
      	(mips_function_arg_boundary): Take a const_tree.
      	* config/mips/mips.c (mips_function_arg_boundary): Likewise.
      	(mips_arg_info): Likewise.
      	(mips_setup_incoming_varargs): Call mips_function_arg_advance
      	instead of FUNCTION_ARG_ADVANCE.
      	(mips_function_arg_advance): Adjust prototype.  Make static.
      	(mips_function_arg): Likewise.
      	(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
      	* config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
      
      From-SVN: r163587
      Nathan Froyd committed
    • rs6000.h (FUNCTION_ARG, [...]): Delete. · 7c8232a2
      	* config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
      	* config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
      	(function_arg): Delete.
      	(function_arg_boundary): Take a const_tree.
      	* config/rs6000/rs6000.c (function_arg_boundary): Likewise.
      	(rs6000_spe_function_arg): Likewise.
      	(rs6000_parm_start): Likewise.
      	(rs6000_arg_size): Likewise.
      	(rs6000_darwin64_record_arg_advance_recurse): Likewise.
      	(rs6000_darwin64_record_arg): Likewise.  Take a bool instead of
      	an int.
      	(rs6000_mixed_function_arg): Likewise.
      	(function_arg): Rename to...
      	(rs6000_function_arg): ...this.
      	(function_arg_advance): Rename to...
      	(rs6000_function_arg_advance_1): ...this
      	(rs6000_function_arg_advance): New function.  Call it.
      	(setup_incoming_varargs): Call rs6000_function_arg_advance_1.
      	(rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
      	(rs6000_function_value): Likewise.
      	(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
      
      From-SVN: r163586
      Nathan Froyd committed
    • arm.md (enabled): Test the value of arch_enabled rather than just using it. · da787dec
      
      2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
      
      	* config/arm/arm.md (enabled): Test the value of arch_enabled
              rather than just using it.
      
      From-SVN: r163585
      Ramana Radhakrishnan committed
    • re PR fortran/45159 (Unnecessary temporaries) · e240f0f4
      2010-08-27  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
      	PR fortran/45159
      	* dependency.c (check_section_vs_section):  Single test for
      	identical strides which takes into account that only one
      	of the strides may be NULL.
      
      2010-08-27  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
      	PR fortran/45159
      	* gfortran.dg/dependency_33.f90:  New test.
      
      From-SVN: r163584
      Thomas Koenig committed
    • scop-1.c: Fix out-of-bound array accesses. · 6d446ecf
      2010-08-27  Richard Guenther  <rguenther@suse.de>
      
      	* gcc.dg/graphite/scop-1.c: Fix out-of-bound array accesses.
      	* gcc.dg/graphite/scop-2.c: Likewise.
      	* gcc.dg/graphite/scop-20.c: Likewise.
      	* gcc.dg/vect/slp-25.c: Likewise.
      
      From-SVN: r163583
      Richard Guenther committed
    • dse.c (group_info.base_mem, [...]): Use BLKmode to cover all the possible offsets from this base. · d32f725a
              * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
              cover all the possible offsets from this base.
              (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
      
              testsuite/
              * gnat.dg/dse_step.ads, dse_step.adb, test_dse_step.adb: New test.
      
      
      Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>
      
      From-SVN: r163582
      Olivier Hainque committed
    • re PR fortran/43217 (Output of Hollerith constants which are not a multiple of 4 bytes) · 401fcd3b
      2010-08-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR fortran/43217
      	* primary.c (match_hollerith_constant): Calculate padding needed to
      	fill default integer and allocate string for that size.  Set pad bytes
      	to ' '.
      	* gfortran.h: Add hollerith pad value to type spec union.
      	* data.c (create_character_initializer): Fix spelling of function name.
      	Use hollerith pad value to calculate length.
      	* arith.c (hollerith2representation); Use hollerith pad value to
      	calculate length.
      
      From-SVN: r163581
      Jerry DeLisle committed
    • Fix building ecjx in cross compile mode. · 9f8f1def
      libjava/:
      	PR libgcj/40868
      	* configure.ac: Add GCC_FOR_ECJX variable.  Ensure
      	GCJ_FOR_ECJX is always set.
      	* Makefile.am [!NATIVE] (ecjx.$(OBJEXT)): New rule.
      	* Makefile.in: Regenerate.
      	* configure: Regenerate.
      	* gcj/Makefile.in: Regenerate.
      	* include/Makefile.in: Regenerate.
      	* testsuite/Makefile.in: Regenerate.
      
      Co-Authored-By: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
      
      From-SVN: r163580
      Dmitrijs Ledkovs committed
    • Daily bump. · a703b0c0
      From-SVN: r163579
      GCC Administrator committed
  2. 26 Aug, 2010 10 commits
  3. 25 Aug, 2010 14 commits
  4. 24 Aug, 2010 5 commits
    • Speed-up ifcvt_memrefs_wont_trap caching previous results. · 4b9c23ea
      This patch speeds up the ifcvt_memrefs_wont_trap computation by
      caching the results of the computations in the data references ->aux
      fields.
      
      	* tree-if-conv.c (struct ifc_dr): New.
      	(IFC_DR): New.
      	(DR_WRITTEN_AT_LEAST_ONCE): New.
      	(DR_RW_UNCONDITIONALLY): New.
      	(memref_read_or_written_unconditionally): Use the cached values
      	when possible.
      	(write_memref_written_at_least_once): Same.
      	(if_convertible_loop_p): Initialize and free DR->aux fields.
      
      From-SVN: r163532
      Sebastian Pop committed
    • Do not check whether memory references accessed in every iteration trap. · e1fd038a
      This patch relaxes the checks from gimple_could_trap_p in order to
      allow the flag_loop_if_convert_stores to if-convert more loops
      in which it is possible to prove that:
      
      - the accesses to an array in a loop do not trap (more than the
        original non-if-converted loop).  This is true when the memory
        accesses are executed at every iteration of the if-converted loop.
      
      - the writes to memory occur on arrays that are not const qualified.
        This is true when there exists at least one unconditional write to
        the array in the analyzed program.  In this patch this analysis is
        limited to the loop to be if-converted.
      
      	* gimple.c (gimple_could_trap_p_1): Not static anymore.
      	Pass an extra bool parameter include_mem.
      	(gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
      	(gimple_assign_rhs_could_trap_p): Same.
      	* gimple.h (gimple_could_trap_p_1): Declared.
      	* tree-data-ref.h (same_data_refs_base_objects): New.
      	(same_data_refs): New.
      	* tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
      	(write_memrefs_written_at_least_once): New.
      	(ifcvt_memrefs_wont_trap): New.
      	(operations_could_trap): New.
      	(ifcvt_could_trap_p): New.
      	(if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
      	Gets a vector of data refs.
      	(if_convertible_stmt_p): Same.
      	(if_convertible_loop_p_1): New.
      	(if_convertible_loop_p): Call if_convertible_loop_p_1.
      
      	* gcc.dg/tree-ssa/ifc-5.c: New.
      
      From-SVN: r163531
      Sebastian Pop committed
    • Add flag -ftree-loop-if-convert-stores. · bd544141
      This patch adds a flag that controls the replacement of the memory
      writes that are in predicated basic blocks with a full write:
      
      for (...)
        if (cond)
          A[i] = foo
      
      is replaced with:
      
      for (...)
        A[i] = cond ? foo : A[i]
      
      In order to do this, we have to call gimple_could_trap_p instead of
      gimple_assign_rhs_could_trap_p, as we have to also check that the LHS
      of assign stmts does not trap.
      
      	* common.opt (ftree-loop-if-convert-stores): New flag.
      	* doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
      	* tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
      	the created statement before GSI.
      	(if_convertible_phi_p): Allow virtual phi nodes when
      	flag_loop_if_convert_stores is set.
      	(if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
      	Do not handle types that do not match is_gimple_reg_type.
      	Remove loop and bb parameters.  Call gimple_could_trap_p instead of
      	when flag_loop_if_convert_stores is set, as LHS can contain
      	memory refs.
      	(if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
      	to if_convertible_gimple_assign_stmt_p.
      	(if_convertible_loop_p): Update call to if_convertible_stmt_p.
      	(replace_phi_with_cond_gimple_assign_stmt): Renamed
      	predicate_scalar_phi.  Do not handle virtual phi nodes.
      	(ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
      	Call predicate_scalar_phi.
      	(insert_gimplified_predicates): Insert the gimplified predicate of a BB
      	just after the labels for flag_loop_if_convert_stores, otherwise
      	insert the predicate in the end of the BB.
      	(predicate_mem_writes): New.
      	(combine_blocks): Call predicate_all_scalar_phis.  When
      	flag_loop_if_convert_stores is set, call predicate_mem_writes.
      	(tree_if_conversion): Call mark_sym_for_renaming when
      	flag_loop_if_convert_stores is set.
      	(main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
      	flag_loop_if_convert_stores is set.
      
      	* gcc.dg/tree-ssa/ifc-4.c: New.
      	* gcc.dg/tree-ssa/ifc-7.c: New.
      
      From-SVN: r163530
      Sebastian Pop committed
    • MAINTAINERS (OS Port Maintainers): Remove myself from windows ports · 3a9abc98
      	* MAINTAINERS (OS Port Maintainers): Remove myself from windows
      	ports
      
      From-SVN: r163529
      Danny Smith committed
    • re PR bootstrap/45376 (no such instruction: `pcmpestri $0,(%rdi),%xmm0') · 6f173e52
              PR bootstrap/45376
              * configure.ac (HAVE_SSE4): New check.
              * configure, config.in: Rebuild.
              * lex.c (search_line_sse42): Omit if !HAVE_SSE4.
      
      From-SVN: r163528
      Richard Henderson committed