1. 12 Apr, 2007 5 commits
  2. 11 Apr, 2007 20 commits
    • tree-ssa-alias.c (dump_mem_ref_stats): Do not call need_to_partition_p if there… · 0de107cf
      tree-ssa-alias.c (dump_mem_ref_stats): Do not call need_to_partition_p if there are no memory statements in the function.
      
      
      	* tree-ssa-alias.c (dump_mem_ref_stats): Do not call
      	need_to_partition_p if there are no memory statements in the
      	function.
      
      From-SVN: r123732
      Diego Novillo committed
    • tree-data-ref.c (chrec_steps_divide_constant_p): Removed. · 55a700ac
      	* tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
      	(gcd_of_steps_may_divide_p): New function.
      	(analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
      
      From-SVN: r123731
      Zdenek Dvorak committed
    • Daily bump. · 8e5fc53c
      From-SVN: r123729
      GCC Administrator committed
    • c_locale.h: Do not include <langinfo.h> and <iconv.h>. · fdc2084a
      2007-04-11  Paolo Carlini  <pcarlini@suse.de>
      
      	* config/locale/gnu/c_locale.h: Do not include <langinfo.h>
      	and <iconv.h>.
      	* config/locale/gnu/c++locale_internal.h: Include <langinfo.h>.
      
      From-SVN: r123726
      Paolo Carlini committed
    • re PR fortran/31538 (misleading bounds check error) · 13ce12eb
      2007-04-11  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR testsuite/31538
      	* gfortran.dg/result_in_spec_1.f90: Increase dimension from 2
      	to 4 at line 38 to fix bounds problem.
      
      From-SVN: r123725
      Paul Thomas committed
    • reload.c (find_reloads_toplev, [...]): Use rtx_equal_p... · 0f4b25a3
      	* reload.c (find_reloads_toplev, find_reloads_address,
      	find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
      	not a pointer equality test, to decide if we need to call
      	push_reg_equiv_alt_mem.
      
      From-SVN: r123724
      Bernd Schmidt committed
    • argv.c: Use ANSI C declarations. · 017133fd
      * argv.c: Use ANSI C declarations.
      * make-relative-prefix.c: Likewise.
      
      From-SVN: r123722
      Thomas Neumann committed
    • tree-data-ref.c (affine_function_zero_p, [...]): New. · 1baf2906
      	* tree-data-ref.c (affine_function_zero_p, constant_access_functions,
      	insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps): New.
      	(build_classic_dist_vector): Call add_distance_for_zero_overlaps.
      
      From-SVN: r123721
      Sebastian Pop committed
    • tree-data-ref.c (add_multivariate_self_dist): Force the distance vector to be positive. · 0ca2faee
      	* tree-data-ref.c (add_multivariate_self_dist): Force the distance
      	vector to be positive.
      
      From-SVN: r123720
      Zdenek Dvorak committed
    • re PR tree-optimization/30735 (50% slow down due to mem-ssa merge) · e9e0aa2c
      
      	PR 30735
      	PR 31090
      	* doc/invoke.texi: Document --params max-aliased-vops and
      	avg-aliased-vops.
      	* tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
      	debug_memory_partitions): Move to tree-flow.h
      	* params.h (AVG_ALIASED_VOPS): Define.
      	* tree-ssa-alias.c (struct mp_info_def): Remove.  Update all
      	users.
      	(mp_info_t): Likewise.
      	(get_mem_sym_stats_for): New.
      	(set_memory_partition): Move from tree-flow-inline.h.
      	(mark_non_addressable): Only clear the set of symbols for the
      	partition if it exists.
      	(dump_memory_partitions): Move from tree-ssa-operands.c
      	(debug_memory_partitions): Likewise.
      	(need_to_partition_p): New.
      	(dump_mem_ref_stats): New.
      	(debug_mem_ref_stats): New.
      	(dump_mem_sym_stats): New.
      	(debug_mem_sym_stats): New.
      	(update_mem_sym_stats_from_stmt): New.
      	(compare_mp_info_entries): New.
      	(mp_info_cmp): Call it.
      	(sort_mp_info): Change argument to a list of mem_sym_stats_t
      	objects.
      	(get_mpt_for): Move from tree-ssa-operands.c.
      	(find_partition_for): New.
      	(create_partition_for): Remove.
      	(estimate_vop_reduction): New.
      	(update_reference_counts): New.
      	(build_mp_info): New.
      	(compute_memory_partitions): Refactor.
      	Document new heuristic.
      	Call build_mp_info, update_reference_counts,
      	find_partition_for and estimate_vop_reduction.
      	(compute_may_aliases): Populate virtual operands before
      	calling debugging dumps.
      	(delete_mem_sym_stats): New.
      	(delete_mem_ref_stats): New.
      	(init_mem_ref_stats): New.
      	(init_alias_info): Call it.
      	(maybe_create_global_var): Remove alias_info argument.
      	Get number of call sites and number of pure/const call sites
      	from gimple_mem_ref_stats().
      	(dump_alias_info): Call dump_memory_partitions first.
      	(dump_points_to_info_for): Show how many times a pointer has
      	been dereferenced.
      	* opts.c (decode_options): For -O2 set --param
      	max-aliased-vops to 500.
      	For -O3 set --param max-aliased-vops to 1000 and --param
      	avg-aliased-vops to 3.
      	* fortran/options.c (gfc_init_options): Remove assignment to
      	MAX_ALIASED_VOPS.
      	* tree-flow-inline.h (gimple_mem_ref_stats): New.
      	* tree-dfa.c (dump_variable): Dump memory reference
      	statistics.
      	Dump NO_ALIAS* settings.
      	(referenced_var_lookup): Tidy.
      	(mem_sym_stats): New.
      	* tree-ssa-copy.c (may_propagate_copy): Return true if DEST
      	and ORIG are different SSA names for a memory partition.
      	* tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
      	* tree-flow.h (struct mem_sym_stats_d): Define.
      	(mem_sym_stats_t): Define.
      	(struct mem_ref_stats_d): Define.
      	(struct gimple_df): Add field mem_ref_stats.
      	(enum noalias_state): Define.
      	(struct var_ann_d): Add bitfield noalias_state.
      	(mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
      	debug_mem_ref_stats, debug_memory_partitions,
      	debug_mem_sym_stats): Declare.
      	* tree-ssa-structalias.c (update_alias_info): Update call
      	sites, pure/const call sites and asm sites in structure
      	returned by gimple_mem_ref_stats.
      	Remove local variable IS_POTENTIAL_DEREF.
      	Increase NUM_DEREFS if the memory expression is a potential
      	dereference.
      	Call update_mem_sym_stats_from_stmt.
      	If the memory references memory, call
      	update_mem_sym_stats_from_stmt for all the direct memory
      	symbol references found.
      	(intra_create_variable_infos): Set noalias_state field for
      	pointer arguments according to the value of
      	flag_argument_noalias.
      	* tree-ssa-structalias.h (struct alias_info): Remove fields
      	num_calls_found and num_pure_const_calls_found.
      	(update_mem_sym_stats_from_stmt): Declare.
      	* params.def (PARAM_MAX_ALIASED_VOPS): Change description.
      	Set default value to 100.
      	(PARAM_AVG_ALIASED_VOPS): Define.
      
      From-SVN: r123719
      Diego Novillo committed
    • istream (class basic_istream<>): Remove unneded friend declarations. · 574e75f5
      2007-04-11  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/std/istream (class basic_istream<>): Remove unneded friend
      	declarations.
      
      From-SVN: r123718
      Paolo Carlini committed
    • 1.cc: Initialize v. · 54e2e812
      2007-04-11  Paolo Carlini  <pcarlini@suse.de>
      
      	* testsuite/22_locale/num_get/get/wchar_t/1.cc: Initialize v.
      
      From-SVN: r123717
      Paolo Carlini committed
    • locale_facets.tcc (num_get<>::do_get(iter_type, ios_base&, ios_base::iostate&,… · 90737ab7
      locale_facets.tcc (num_get<>::do_get(iter_type, ios_base&, ios_base::iostate&, void*&)): Fix for sizeof(void*) > sizeof(unsigned long).
      
      2007-04-11  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/locale_facets.tcc (num_get<>::do_get(iter_type,
      	ios_base&, ios_base::iostate&, void*&)): Fix for sizeof(void*)
      	> sizeof(unsigned long).
      
      	* testsuite/22_locale/num_get/get/char/1.cc: Fix void* test.
      	* testsuite/22_locale/num_get/get/wchar_t/1.cc: Likewise.
      
      	* testsuite/22_locale/num_put/put/char/1.cc: Tweak comment.
      	* testsuite/22_locale/num_put/put/wchar_t/1.cc: Likewise.
      
      From-SVN: r123716
      Paolo Carlini committed
    • re PR middle-end/31530 (Incorrect folding of multiplication and sign change when… · 4bf371ea
      re PR middle-end/31530 (Incorrect folding of multiplication and sign change when followed by an addition)
      
      2007-04-11  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/31530
      	* simplify-rtx.c (simplify_binary_operation_1): Do not simplify
      	a * -b + c as c - a * b if we honor sign dependent rounding.
      
      From-SVN: r123715
      Richard Guenther committed
    • bfin-protos.h (bfin_expand_movmem): Renamed from bfin_expand_strmov. · 266d11d8
      	* config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
      	bfin_expand_strmov.
      	* config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
      	bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
      	variables.
      	(initialize_trampoline): Don't use old-style function definition.
      	(bfin_secondary_reload): Mark IN_P argument as unused.
      
      From-SVN: r123714
      Bernd Schmidt committed
    • iosfwd: Do not include <bits/c++locale.h> and <bits/functexcept.h>. · c74620b0
      2007-04-11  Zack Weinberg  <zack@mrtock.ucsd.edu>
      
      	* include/std/iosfwd: Do not include <bits/c++locale.h> and
      	<bits/functexcept.h>.
      
      From-SVN: r123713
      Zack Weinberg committed
    • re PR testsuite/31240 (gfortran.dg/pointer_intent_1.f90 failure at -O0) · 2b3fd25f
      2007-04-11  Tobias Burnus  <burnus@net-b.de>
      
             PR testsuite/31240
             * gfortran.dg/pointer_intent_1.f90: Fix test.
      
      From-SVN: r123712
      Tobias Burnus committed
    • class.c (convert_to_base_statically): Fold produced tree; verify that we are not… · ffd34392
      class.c (convert_to_base_statically): Fold produced tree; verify that we are not processing template_decl.
      
      	* cp/class.c (convert_to_base_statically): Fold produced tree; verify
      	that we are not processing template_decl.
      
      From-SVN: r123711
      Jan Hubicka committed
    • cc_hash_max_collision_check_resize_trigger_imp.hpp: Qualify namespace std members. · 113008b5
      2007-04-10  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* include/ext/pb_ds/detail/resize_policy/
      	cc_hash_max_collision_check_resize_trigger_imp.hpp: Qualify
      	namespace std members.	
      	* include/ext/pb_ds/detail/list_update_policy/
      	counter_lu_metadata.hpp: Same.
      	* include/ext/throw_allocator.h: Same.
      	* include/ext/pod_char_traits.h: Same.
      	* include/ext/malloc_allocator.h: Same.
      	* libsupc++/del_op.cc: Same, simplify.
      
      	* include/bits/c++config: Adjust macro name.
      	
      	* include/c_global/cstring: Alphabetize.
      	* include/c_global/cwctype: Same.
      
      From-SVN: r123710
      Benjamin Kosnik committed
    • re PR tree-optimization/31343 (ICE in data-refs dependence testing) · e9793dae
      	PR tree-optimization/31343
      	* tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
      	(build_polynomial_chrec): Return a scalar when the evolution is zero.
      	* testsuite/gcc.dg/vect/pr31343.c: New.
      
      From-SVN: r123708
      Sebastian Pop committed
  3. 10 Apr, 2007 11 commits
    • Daily bump. · 0334147d
      From-SVN: r123706
      GCC Administrator committed
    • 2007-04-10 Eric Christopher <echristo@apple.com> · 3783f026
              * lib/target-supports.exp
              (check_effective_target_fstack_protector): Rewrite.
      
      From-SVN: r123702
      Eric Christopher committed
    • Add to last commit. · 246b8cf5
      From-SVN: r123701
      Eric Christopher committed
    • i386.h (X87_FLOAT_MODE_P): New. · 54a88090
      2007-04-10  Eric Christopher  <echristo@apple.com>
      
      	    * config/i386/i386.h (X87_FLOAT_MODE_P): New.
      	    * config/i386/i386.md (*cmpfp0): Use.
      	    (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
      	    (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
      	    (fix_trunc<mode>_i386_fisttp): Ditto.
      	    (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
      	    (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
      	    (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
      	    (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
      	    (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
      	    (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
      	    (unnamed_splitters): Ditto.
      	    * config/i386/i386.c (output_fix_trunc): Assert that
      	    we're not being passed a TFmode operand.
      
      From-SVN: r123700
      Eric Christopher committed
    • re PR tree-optimization/31526 (ICE in alloc_aux_for_block()) · 7c57be85
      	PR tree-optimization/31526
      	* tree-inline.c (copy_cfg_body): Use last_basic_block instead of
      	n_basic_blocks to find newly added blocks.
      
      From-SVN: r123699
      Zdenek Dvorak committed
    • sources.am: Regenerate. · a93fc289
              * sources.am: Regenerate.
              * Makefile.in: Likewise.
      
      From-SVN: r123697
      Keith Seitz committed
    • cmath: Include <bits/stl_algobase.h> instead of the whole <algorithm>. · d81db5b0
      2007-04-10  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/tr1/cmath: Include <bits/stl_algobase.h> instead of
      	the whole <algorithm>.
      
      From-SVN: r123696
      Paolo Carlini committed
    • type_traits (__is_function_helper): New, uses variadic templates. · 05beb8e7
      2007-04-10  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/tr1/type_traits (__is_function_helper): New, uses
      	variadic templates.
      	(is_function): Forward to the latter.
      	* testsuite/tr1/4_metaprogramming/primary_type_categories/
      	is_function/is_function.cc: Add test.
      
      From-SVN: r123695
      Paolo Carlini committed
    • i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm" alternative. · 0218c012
      	* config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
      	alternative.
      	(fix_trunc<mode>si_sse): Ditto.
      	(*floatsisf2_mixed, *floatsisf2_sse): Ditto.
      	(*floatsidf2_mixed, *floatsidf2_sse): Ditto.
      	(*floatdisf2_mixed, *floatdisf2_sse): Ditto.
      	(*floatdidf2_mixed, *floatdidf2_sse): Ditto.
      	(floathi<mode>2): Rename from floathisf2 and floathidf2. Macroize
      	expander using SSEMODEF mode macro.
      	(floatsi<mode>2): Rename from floatsisf2 and floashidf2. Macroize
      	expander using SSEMODEF mode macro.
      	(*floathi<mode>2_i387): Rename from *floathisf2_i387 and
      	*floathidf2_i387. Macroize insn using X87MODEF12 mode macro.
      	(*floatsi<mode>2_i387): Rename from *floatsisf2_i387 and
      	*floatsidf2_i387. Macroize insn using X87MODEF12 mode macro.
      	(*floatdi<mode>2_i387): Rename from *floatdisf2_i387 and
      	*floatdidf2_i387. Macroize insn using X87MODEF12 mode macro.
      	(float<mode>xf2): Rename from floathixf2, floatsixf2 and floatdixf2.
      	Macroize insn using X87MODEF mode macro.
      
      From-SVN: r123693
      Uros Bizjak committed
    • PR libstdc++/28277 (partial: vstring bits) · 11202768
      2007-04-10  Paolo Carlini  <pcarlini@suse.de>
      
      	PR libstdc++/28277 (partial: vstring bits)
      	* include/bits/ostream_insert.h: New.
      	* include/Makefile.am: Add.
      	* include/ext/vstring.h (operator<<(basic_ostream<>&,
      	const __versa_string<>&): Forward to __ostream_insert.
      	* include/bits/basic_string.h (operator<<(basic_ostream<>&,
      	const string<>&)): Likewise.
      	* include/std/ostream (operator<<(basic_ostream<>&, _CharT),
      	operator<<(basic_ostream<char,>&, char), operator<<(basic_ostream<>&,
      	const _CharT*), operator<<(basic_ostream<char,>&, const char*)):
      	Likewise.
      	* include/ext/vstring.tcc (operator<<(basic_ostream<>&,
      	const __versa_string<>&)): Remove.
      	(class basic_ostream): Remove friend declarations.
      	(basic_ostream<>::_M_write(char_type, streamsize),
      	_M_insert(const char_type*, streamsize)): Remove.
      	* include/bits/ostream.tcc (_M_insert(const char_type*, streamsize)):
      	Remove definition.
      	(operator<<(basic_ostream<>&, const char*)): Use __ostream_insert.
      	* config/abi/pre/gnu.ver: Adjust.
      	* src/ostream-inst.cc: Add __ostream_insert instantiations.
      	* include/bits/locale_facets.h (__pad<>::_S_pad): Remove __num
      	parameter.
      	* include/bits/locale_facets.tcc (__pad<>::_S_pad): Adjust.
      	(num_put<>::_M_pad(_CharT, streamsize, ios_base&, _CharT*,
      	const _CharT*, int&)): Likewise.
      	* include/Makefile.in: Rebuild.
      	* testsuite/ext/vstring/inserters_extractors/char/28277.cc: New.
      	* testsuite/ext/vstring/inserters_extractors/wchar_t/28277.cc: New.
      
      	* include/ext/vstring_util.h: Do not include the whole <locale>.
      	* include/ext/vstring.tcc (operator>>(basic_istream<>&,
      	__versa_string<>&, getline(basic_istream<>&, __versa_string<>&,
      	_CharT)): Tweak to refer to ios_base as a base of istream; do not
      	refer to non-standard types of istream.
      	* include/bits/istream.tcc (operator>>(basic_istream<>&, _CharT*),
      	ws(basic_istream<>&)): Do not refer to non-standard types of istream.
      	* include/std/bitset (operator>>(std::basic_istream<>&, bitset<>&)):
      	Avoid using basic_streambuf<>*.
      
      	* include/bits/istream.tcc (operator>>(basic_istream<>&,
      	basic_string<>&), getline(basic_istream<>&, basic_string<>&, _CharT)):
      	Move...
      	* include/bits/basic_string.tcc: ... here; tweak to refer to ios_base
      	as a base of istream; do not refer to non-standard types of istream.
      	* include/std/string: Tweak includes.
      
      	* include/ext/type_traits.h (__is_null_pointer): Add.
      	* include/ext/rc_string_base.h: Use it.
      	* include/ext/sso_string_base.h: Likewise.
      	* include/bits/basic_string.tcc (__is_null_pointer): Remove, use
      	the above.
      	* include/ext/vstring_util.h (__vstring_utility<>::_S_is_null_pointer):
      	Remove.
      
      From-SVN: r123692
      Paolo Carlini committed
    • sse.md (sse2_pinsrw): Removed. · 3117d1b5
      2007-04-09  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* config/i386/sse.md (sse2_pinsrw): Removed.
      	(sse2_pextrw): Renamed to ...
      	(*sse2_pextrw): This.
      
      From-SVN: r123689
      H.J. Lu committed
  4. 09 Apr, 2007 4 commits