1. 12 Apr, 2007 12 commits
    • bfin.opt (msim): New option. · 9d3f9aa3
      	2007-02-11  Jie Zhang  <jie.zhang@analog.com>
      	* config/bfin/bfin.opt (msim): New option.
      	(mcpu=): New option.
      	* config/bfin/bfin-protos.h (enum bfin_cpu): New.
      	(bfin_cpu_t): Typedef of enum bfin_cpu.
      	(bfin_cpu_type): New declaration.
      	* config/bfin/elf.h (STARTFILE_SPEC): Add support for
      	-msim and -mcpu= options.
      	(LIB_SPEC): Likewise.
      	* config/bfin/bfin.c (bfin_cpu_type): Define.
      	(bfin_handle_option): Handle -mcpu= option.
      	* config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
      	(TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
      	__ADSPBF533__ or __ADSPBF537__ according to the cpu type.
      
      From-SVN: r123747
      Bernd Schmidt committed
    • configure: Regenerate. · c18b8a1c
      libgfortran:
      2007-04-11  Kai Tietz   <kai.tietz@onevision.com>
      
              * configure: Regenerate.
      
      libdecnumber:
      2007-04-11  Kai Tietz   <kai.tietz@onevision.com>
      
              * configure: Regenerate.
      
      config:
      2007-04-11  Kai Tietz  <kai.tietz@onevision.com>
      
      	* stdint.m4: Make template compatible with older cygwin 
      	types.h, wrapping each type in a __XXX_t_defined #ifdef.
      
      From-SVN: r123746
      Kai Tietz committed
    • md.texi (Blackfin family constraints): Document PA and PB. · 3efd5670
      	* doc/md.texi (Blackfin family constraints): Document PA and PB.
      	* config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
      	(MACFLAGS_MATCH_P): New macro.
      	* config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
      	(bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
      	* config/bfin/bfin.md (MACFLAG_IS_M): New constant.  Renumber some of
      	the other MACFLAG constants.
      	(sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
      	(flag_machi): Tighten constraints.  Renumber some of the operands.
      	(flag_machi_acconly): Tighten constraints.  Correct operand numbers in
      	output template.
      	(flag_machi_parts_acconly): New pattern.
      	(flag_macinithi): Tighten constraints.  Allow any accumulator to be
      	used.
      	(flag_macinit1hi): Tighten constraints.
      	(flag_mul_macv2hi_parts_acconly): New pattern.
      
      From-SVN: r123745
      Bernd Schmidt committed
    • config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza. · f4de8ba6
      gcc/
      	* config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
      	(arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
      	(powerpc-wrs-vxworksae): Use ${tm_file}.
      	(i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
      	after elfos.h.  Remove i386/sysv4.h and add i386/vx-common.h.
      	* config/i386/vx-common.h: New file.
      
      From-SVN: r123744
      Richard Sandiford committed
    • vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead of crt0.o%s. · b83b15da
      gcc/
      	* config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
      	of crt0.o%s.
      
      From-SVN: r123743
      Richard Sandiford committed
    • s390.md ("trunctddd2"): Use TDmode for the target of ldxtr. · bf259a77
      2007-04-12  Andreas Krebbel  <krebbel1@de.ibm.com>
      
      	* config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
      	ldxtr.
      
      From-SVN: r123741
      Andreas Krebbel committed
    • re PR c++/31078 (warning: same canonical type node for different types with const strings) · 95764818
      2007-04-12  Douglas Gregor  <doug.gregor@gmail.com>
      
      	PR c++/31078
      	PR c++/31103
      	* c-common.c (c_build_qualified_type): Set canonical type
      	appropriately.  
      
      2007-04-12  Douglas Gregor  <doug.gregor@gmail.com>
      
      	PR c++/31078
      	* g++.dg/other/pr31078.C: New.
      
      From-SVN: r123740
      Douglas Gregor committed
    • tree-pretty-print.c (dump_generic_node): Print ARRAY_REF lower bound and element size if... · a670437d
      2007-04-12  Richard Guenther  <rguenther@suse.de>
      
      	* tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
      	lower bound and element size if lower bound is not zero
      	or either of the ARRAY_REF operands is set.
      
      From-SVN: r123738
      Richard Guenther committed
    • re PR tree-optimization/31169 (Bootstrap comparison error at revision 122821) · 6e734d98
      2007-04-12  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/31169
      	* gcc.c-torture/execute/pr31169.c: New testcase.
      
      From-SVN: r123737
      Richard Guenther committed
    • re PR tree-optimization/24689 (operand_equal_p does not return true for some equivalent ARRAY_REF) · 5852948c
      2007-04-12  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/24689
      	PR tree-optimization/31307
      	* fold-const.c (operand_equal_p): Compare INTEGER_CST array
      	indices by value.
      	* gimplify.c (canonicalize_addr_expr): To be consistent with
      	gimplify_compound_lval only set operands two and three of
      	ARRAY_REFs if they are not gimple_min_invariant.  This makes
      	it never at this place.
      	* tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
      
      	* g++.dg/tree-ssa/pr31307.C: New testcase.
      	* gcc.dg/tree-ssa/pr24689.c: Likewise.
      
      From-SVN: r123736
      Richard Guenther committed
    • re PR fortran/31472 (gfortran does not detect the illegal use of an access… · d51347f9
      re PR fortran/31472 (gfortran does not detect the illegal use of an access specification in a program, subroutine, or function)
      
      2007-04-12  Tobias Burnus  <burnus@net-b.de>
      
      	PR fortran/31472
      	* decl.c (match_attr_spec): Allow PRIVATE/PUBLIC
      	attribute in type definitions.
      	(gfc_match_private): Allow PRIVATE statement only
      	in specification part of modules.
      	(gfc_match_public): Ditto for PUBLIC.
      	(gfc_match_derived_decl): Allow PRIVATE/PUBLIC attribute only in
      	specificification part of modules.
      
      2007-04-12  Tobias Burnus  <burnus@net-b.de>
      
      	PR fortran/31472
      	* gfortran.dg/access_spec_1.f90: New test.
      	* gfortran.dg/access_spec_2.f90: New test.
      	* gfortran.dg/non_module_public.f90: Match new error message.
      
      From-SVN: r123735
      Tobias Burnus committed
    • pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not null before… · 8c5e065b
      pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not null before emitting a .nsubspa directive.
      
      	* pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
      	null before emitting a .nsubspa directive.
      
      From-SVN: r123733
      John David Anglin committed
  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 8 commits