1. 24 Mar, 2011 32 commits
    • * configure.ac (i[[3456789]]86-*-vsta, i[[3456789]]86-*-go32*, · 111eeb6e
      	i[[3456789]]86-*-beos*, powerpc-*-beos*, m68k-hp-hpux*,
      	m68k-apollo-sysv*, m68k-apollo-bsd*, m88k-dg-dgux*,
      	m88k-harris-cxux*, m88k-motorola-sysv*, mips*-dec-ultrix*,
      	mips*-nec-sysv4*, mips*-sgi-irix4*, mips*-*-sysv4*, mips*-*-sysv*,
      	i370-ibm-opened*, i[[3456789]]86-*-sysv5*, i[[3456789]]86-*-dgux*,
      	i[[3456789]]86-ncr-sysv4.3*, i[[3456789]]86-ncr-sysv4*,
      	i[[3456789]]86-*-sco3.2v5*, i[[3456789]]86-*-sco*,
      	i[[3456789]]86-*-udk*, vax-*-ultrix2*, m68k-sun-sunos*,
      	hppa*-*-hiux*, *-*-hiux*, rs6000-*-lynxos*, *-*-sysv4*,
      	*-*-rhapsody*): Remove host cases.
      	* configure: Regenerate.
      
      config:
      	* mh-cxux, mh-decstation, mh-dgux386, mh-lynxrs6k, mh-ncr3000,
      	mh-necv4, mh-sco, mh-sysv5: Remove.
      
      From-SVN: r171412
      Joseph Myers committed
    • random.h (negative_binomial_distribution<>::… · 113b21bd
      random.h (negative_binomial_distribution<>:: negative_binomial_distribution(_IntType, double), [...]): Fix construction of _M_gd.
      
      2011-03-24  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/bits/random.h (negative_binomial_distribution<>::
      	negative_binomial_distribution(_IntType, double),
      	negative_binomial_distribution<>::
      	negative_binomial_distribution(const param_type&)): Fix
      	construction of _M_gd.
      	* include/bits/random.tcc (negative_binomial_distribution<>::
      	operator()): Fix computation, per Leger's algorithm.
      	* testsuite/util/testsuite_random.h (discrete_pdf,
      	negative_binomial_pdf, poisson_pdf, uniform_int_pdf): New.
      	(binomial_pdf): Swap last two parameters.
      	* testsuite/26_numerics/random/discrete_distribution/
      	operators/values.cc: New.
      	* testsuite/26_numerics/random/negative_binomial_distribution/
      	operators/values.cc: Likewise.
      	* testsuite/26_numerics/random/poisson_distribution/
      	operators/values.cc: Likewise.
      	* testsuite/26_numerics/random/uniform_int_distribution/
      	operators/values.cc: Likewise.
      	* testsuite/26_numerics/random/binomial_distribution/
      	operators/values.cc: Adjust.
      
      From-SVN: r171411
      Paolo Carlini committed
    • tree-ssa-live.c (remove_unused_scope_block_p): Remove set but unused variable "ann". · 67295642
      
      	* tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
      	unused variable "ann".
      	(remove_unused_locals): Likewise.
      
      	* tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
      	statement.
      
      	* cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
      	after it is freed.
      
      From-SVN: r171408
      Jeff Law committed
    • * gcc.pot: Regenerate. · 3a4639b4
      From-SVN: r171407
      Joseph Myers committed
    • * cpplib.pot: Regenerate. · a7a51019
      From-SVN: r171406
      Joseph Myers committed
    • s390.c (s390_preferred_reload_class): Return NO_REGS for invalid symbolic addresses. · 212aa74f
      2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
      
      	* config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
      	for invalid symbolic addresses.
      	(s390_secondary_reload): Don't use s390_check_symref_alignment for
      	larl operands.
      
      From-SVN: r171405
      Andreas Krebbel committed
    • re PR target/48209 (FAIL: gcc.c-torture/execute/pr47917.c execution) · bf3b3396
      2011-03-24  Steve Ellcey  <sje@cup.hp.com>
      
      	PR target/48209
      	* gcc.c-torture/execute/pr47917.c: Move this...
      	* gcc.dg/torture/pr47917.c: to here and add xfails.
      
      From-SVN: r171404
      Steve Ellcey committed
    • fold-const.c (fold_ternary_loc): Preserve the location (if any) of the argument… · fe784e0d
      fold-const.c (fold_ternary_loc): Preserve the location (if any) of the argument in calls to fold_truth_not_expr.
      
      	* fold-const.c (fold_ternary_loc): Preserve the location (if any) of
      	the argument in calls to fold_truth_not_expr.
      
      From-SVN: r171403
      Eric Botcazou committed
    • einfo.ads (Size_Depends_On_Discriminant): Adjust description. · e3c4580e
      	* einfo.ads (Size_Depends_On_Discriminant): Adjust description.
      	* layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
      	to compute Set_Size_Depends_On_Discriminant.
      	(Layout_Type): Call it on array types in back-end layout mode.
      	* sem_util.adb (Requires_Transient_Scope): Return true for array
      	types only if the size depends on the value of discriminants.
      	* gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
      	type if the RHS is a call to a function that returns an unconstrained
      	type with default discriminant.
      
      From-SVN: r171402
      Eric Botcazou committed
    • moveable2.cc: Tweak Copyright years. · cf4a36df
      2011-03-22  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* testsuite/21_strings/basic_string/cons/char/moveable2.cc: Tweak
      	Copyright years.
      	* testsuite/21_strings/basic_string/cons/wchar_t/moveable2.cc:
      	Likewise.
      
      From-SVN: r171401
      Paolo Carlini committed
    • tree.c (record_node_allocation_statistics): New function. · 63ee8641
      	* tree.c (record_node_allocation_statistics): New function.
      	(make_node_stat, copy_node_stat, build_string): Call it.
      	(make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
      	(build1_stat, build_omp_clause): Likewise.
      
      From-SVN: r171399
      Nathan Froyd committed
    • trans.c (gnat_to_gnu): Remove obsolete case of non-conversion to the nominal… · abbc8c7b
      trans.c (gnat_to_gnu): Remove obsolete case of non-conversion to the nominal result type at the end.
      
      	* gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
      	non-conversion to the nominal result type at the end.
      
      From-SVN: r171398
      Eric Botcazou committed
    • builtins.c (expand_movstr): Fix endp == 1 adjustment after last commit. · 61be2a1c
      gcc/
      	* builtins.c (expand_movstr): Fix endp == 1 adjustment after
      	last commit.
      
      From-SVN: r171397
      Richard Sandiford committed
    • re PR tree-optimization/48271 (ICE: SIGSEGV in tree_ssa_dominator_optimize… · a881aaa7
      re PR tree-optimization/48271 (ICE: SIGSEGV in tree_ssa_dominator_optimize (tree-ssa-dom.c:2964) with -O -ftree-vrp -fno-guess-branch-probability -fnon-call-exceptions)
      
      2011-03-24  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/48271
      	* tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
      	blocks that still exist.
      
      	* g++.dg/torture/pr48271.C: New testcase.
      
      From-SVN: r171395
      Richard Guenther committed
    • re PR middle-end/48270 (New test failures) · dbaa912c
      2011-03-24  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/48270
      	* tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
      	not free datarefs before ddrs.
      
      From-SVN: r171394
      Richard Guenther committed
    • tree-sra.c (build_ref_for_offset): Strip useless type conversions from the… · 1d60cc55
      tree-sra.c (build_ref_for_offset): Strip useless type conversions from the address built for a reference with...
      
      	* tree-sra.c (build_ref_for_offset): Strip useless type conversions
      	from the address built for a reference with variable offset.
      
      From-SVN: r171393
      Eric Botcazou committed
    • re PR target/48237 (ICE: in final_scan_insn, at final.c:2651 with… · c78dd519
      re PR target/48237 (ICE: in final_scan_insn, at final.c:2651 with -fselective-scheduling2 -mtune=core2)
      
      	PR target/48237
      	* config/i386/i386.md (*movdf_internal_rex64): Do not split
      	alternatives that can be handled with movq or movabsq insn.
      	(*movdf_internal): Disable for !TARGET_64BIT.
      	(*movdf_internal_nointeger): Ditto.
      	* config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
      
      testsuite/ChangeLog:
      
      	PR target/48237
      	* gcc.target/i386/pr48237.c: New test.
      
      From-SVN: r171391
      Uros Bizjak committed
    • configure.ac (ppc*-*-pe): Remove host case. · 4569f85e
      	* configure.ac (ppc*-*-pe): Remove host case.
      	(strongarm-*-coff | xscale-*-coff, strongarm-*-elf* |
      	xscale-*-elf*, thumb-*-coff, thumb-*-elf, thumb-*-pe, ep9312-*-elf
      	| ep9312-*-coff, parisc*64*-*-linux*, ppc*-*-pe): Remove target
      	cases.
      	* configure: Regenerate.
      
      From-SVN: r171390
      Joseph Myers committed
    • system.h (FUNCTION_ARG, [...]): Poison. · b25b9e8f
      	* system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
      	(FUNCTION_ARG_ADVANCE): Likewise.
      	* tm.texi.in: Change references to them to hook references.
      	* tm.texi: Regenerate.
      	* targhooks.c (default_function_arg): Eliminate check for target
      	macro.
      	(default_function_incoming_arg): Likewise.
      	(default_function_arg_advance): Likewise.
      	* target.def (function_arg, function_incoming_arg): Change to
      	DEFHOOK.
      	(function_arg_advance): Likewise.
      	* target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
      
      From-SVN: r171389
      Nathan Froyd committed
    • re PR middle-end/48269 (Incorrect fortify warning for a packed struct member) · 190b2187
      2011-03-24  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/48269
      	* tree-object-size.c (addr_object_size): Do not double-account
      	for MEM_REF offsets.
      
      	* gcc.dg/builtin-object-size-10.c: New testcase.
      
      From-SVN: r171388
      Richard Guenther committed
    • lto-opts.c (input_data_block): Move to lto-streamer-in.c. · a183b5c7
      	* lto-opts.c (input_data_block): Move to lto-streamer-in.c.
      	* lto-streamer-in.c (input_string_internal): Add clarifying
      	comments.
      	(lto_input_data_block): Move from lto-opts.c.  Make extern.
      	Update all users.
      	(lto_input_string): Rename from input_string.  Make extern.
      	Update all users.
      	* lto-streamer-out.c (lto_output_string_with_length): Rename from
      	output_string_with_length.
      	Output 0 to indicate a non-NULL string.  Update all callers to
      	not emit 0.
      	(lto_output_string): Rename from output_string.  Make extern.
      	Update all users.
      	(lto_output_decl_state_streams): Make extern.
      	(lto_output_decl_state_refs): Make extern.
      	* lto-streamer.h (lto_input_string): Declare.
      	(lto_input_data_block): Declare.
      	(lto_output_string): Declare.
      	(lto_output_string_with_length): Declare.
      	(lto_output_decl_state_streams): Declare.
      	(lto_output_decl_state_refs): Declare.
      
      From-SVN: r171387
      Diego Novillo committed
    • re PR tree-optimization/46562 (CCP currently needs iteration for &a[i]) · cfef45c8
      2011-03-24  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/46562
      	* tree.c (build_invariant_address): New function.
      	* tree.h (build_invariant_address): Declare.
      	* tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
      	a renamed function moved ...
      	* tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
      	Take valueization callback parameter.
      	* tree-flow.h (gimple_fold_stmt_to_constant): Declare.
      	* gimple-fold.h: New file.
      	* tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
      	(ccp_fold, fold_const_aggregate_ref,
      	fold_ctor_reference, fold_nonarray_ctor_reference,
      	fold_array_ctor_reference, fold_string_cst_ctor_reference,
      	get_base_constructor): Move ...
      	* gimple-fold.c: ... here.
      	(gimple_fold_stmt_to_constant_1): New function
      	split out from ccp_fold.  Take a valueization callback parameter.
      	Valueize all operands.
      	(gimple_fold_stmt_to_constant): New wrapper function.
      	(fold_const_aggregate_ref_1): New function split out from
      	fold_const_aggregate_ref.  Take a valueization callback parameter.
      	(fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
      	* tree-ssa-sccvn.c (simplify_binary_expression): Simplify
      	invariant POINTER_PLUS_EXPRs to invariant form.
      	(vn_valueize): New function.
      	(try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
      	* tree-vrp.c (vrp_valueize): New function.
      	(vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
      	to fold statements to constants.
      	* tree-ssa-pre.c (eliminate): Properly guard propagation of
      	function declarations.
      	* Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
      	tree-ssa-ccp.o): Add gimple-fold.h dependencies.
      
      	* c-c++-common/pr46562-2.c: New testcase.
      	* c-c++-common/pr46562.c: Likewise.
      
      From-SVN: r171386
      Richard Guenther committed
    • * config.sub: Update to version 2011-03-23. · f3e8ab19
      From-SVN: r171385
      Joseph Myers committed
    • predicates.md (jump_address_operand): Fix register mode check. · 5e0a7e40
      gcc/
      	* config/h8300/predicates.md (jump_address_operand): Fix register
      	mode check.
      
      From-SVN: r171384
      Richard Sandiford committed
    • baseline_symbols.txt: Regenerate. · ba9796cb
      	* config/abi/post/solaris2.8/baseline_symbols.txt: Regenerate.
      	* config/abi/post/solaris2.8/sparcv9/baseline_symbols.txt: Likewise.
      	* config/abi/post/solaris2.10/baseline_symbols.txt: Likewise.
      	* config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
      	* config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
      
      From-SVN: r171382
      Rainer Orth committed
    • invoke.texi (max-stores-to-sink): Document. · bfe068c3
      
              * doc/invoke.texi (max-stores-to-sink): Document.
              * params.h (MAX_STORES_TO_SINK): Define.
              * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
              if either vectorization or if-conversion is disabled.
              * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
              tree-vect-data-refs.c vect_equal_offsets.
              (dr_equal_offsets_p): New function.
              (find_data_references_in_bb): Remove static.
              * tree-data-ref.h (find_data_references_in_bb): Declare.
              (dr_equal_offsets_p): Likewise.
              * tree-vect-data-refs.c (vect_equal_offsets): Move to
              tree-data-ref.c.
              (vect_drs_dependent_in_basic_block): Update calls to
              vect_equal_offsets.
              (vect_check_interleaving): Likewise.
              * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
              (cond_if_else_store_replacement): Rename to...
              (cond_if_else_store_replacement_1): ... this.  Change arguments
              and documentation.
              (cond_if_else_store_replacement): New function.
              * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
              * params.def (PARAM_MAX_STORES_TO_SINK): Define.
      
      From-SVN: r171381
      Ira Rosen committed
    • Tuple receives indicate whether channel is closed. · 3137991d
      From-SVN: r171380
      Ian Lance Taylor committed
    • re PR target/46934 (gcc ICE: error: unrecognizable insn: in extract_insn, at recog.c:2109) · 4908b0bf
      2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
      
      	PR target/46934
      	* config/arm/arm.md (casesi): Use the gen_int_mode() function
      	to subtract lower bound instead of GEN_INT().
      
      	testsuite/
      	* gcc.target/arm/pr46934.c: New.
      
      From-SVN: r171379
      Chung-Lin Tang committed
    • re PR libfortran/48030 (Implement read_x using fbuf_getc) · 27deda79
      2011-03-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libgfortran/48030
      	* io/read.c (read_x): Re-implement using fbuf_getc.
      
      From-SVN: r171378
      Jerry DeLisle committed
    • Condition in if statement is not optional. · fd68e6ba
      From-SVN: r171377
      Ian Lance Taylor committed
    • Daily bump. · 5278672c
      From-SVN: r171376
      GCC Administrator committed
    • Change c <- v from an expression to a statement. · 27a19c58
      Don't do anything special if we don't use the value of <-c.
      Fix sending an untyped constant in a select statement.
      
      From-SVN: r171371
      Ian Lance Taylor committed
  2. 23 Mar, 2011 8 commits