1. 03 Aug, 2009 6 commits
  2. 02 Aug, 2009 15 commits
    • PR libstdc++/40912 (final) · 453def3e
      2009-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR libstdc++/40912 (final)
      	* testsuite/26_numerics/random/mt19937.cc: dg-require-cstdint.
      	* testsuite/26_numerics/random/uniform_real_distribution/cons/
      	parms_neg.cc: Likewise.
      	* testsuite/26_numerics/random/uniform_real_distribution/cons/
      	parms.cc: Likewise.
      	* testsuite/26_numerics/random/uniform_real_distribution/cons/
      	default.cc: Likewise.
      	* testsuite/26_numerics/random/uniform_real_distribution/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/piecewise_constant_distribution/
      	cons/range.cc: Likewise.
      	* testsuite/26_numerics/random/piecewise_constant_distribution/
      	cons/default.cc: Likewise.
      	* testsuite/26_numerics/random/piecewise_constant_distribution/
      	cons/num_xbound_fun.cc: Likewise.
      	* testsuite/26_numerics/random/piecewise_constant_distribution/
      	cons/initlist_fun.cc: Likewise.
      	* testsuite/26_numerics/random/piecewise_constant_distribution/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/minstd_rand.cc: Likewise.
      	* testsuite/26_numerics/random/chi_squared_distribution/cons/
      	parms.cc: Likewise.
      	* testsuite/26_numerics/random/chi_squared_distribution/cons/
      	default.cc: Likewise.
      	* testsuite/26_numerics/random/chi_squared_distribution/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/normal_distribution/
      	cons/parms.cc: Likewise.
      	* testsuite/26_numerics/random/normal_distribution/
      	cons/default.cc: Likewise.
      	* testsuite/26_numerics/random/normal_distribution/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/seed_seq/cons/
      	range.cc: Likewise.
      	* testsuite/26_numerics/random/seed_seq/cons/
      	initlist.cc: Likewise.
      	* testsuite/26_numerics/random/seed_seq/cons/
      	default.cc: Likewise.
      	* testsuite/26_numerics/random/seed_seq/requirements/
      	typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/uniform_int_distribution/
      	cons/parms_neg.cc: Likewise.
      	* testsuite/26_numerics/random/uniform_int_distribution/
      	cons/parms.cc: Likewise.
      	* testsuite/26_numerics/random/uniform_int_distribution/
      	cons/default.cc: Likewise.
      	* testsuite/26_numerics/random/uniform_int_distribution/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/poisson_distribution/cons/
      	parms.cc: Likewise.
      	* testsuite/26_numerics/random/poisson_distribution/cons/
      	default.cc: Likewise.
      	* testsuite/26_numerics/random/poisson_distribution/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/bernoulli_distribution/
      	cons/parms.cc: Likewise.
      	* testsuite/26_numerics/random/bernoulli_distribution/
      	cons/default.cc: Likewise.
      	* testsuite/26_numerics/random/bernoulli_distribution/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/ranlux24_base.cc: Likewise.
      	* testsuite/26_numerics/random/
      	default_random_engine.cc: Likewise.
      	* testsuite/26_numerics/random/discrete_distribution/
      	cons/range.cc: Likewise.
      	* testsuite/26_numerics/random/discrete_distribution/
      	cons/initlist.cc: Likewise.
      	* testsuite/26_numerics/random/discrete_distribution/
      	cons/default.cc: Likewise.
      	* testsuite/26_numerics/random/discrete_distribution/
      	cons/num_xbound_fun.cc: Likewise.
      	* testsuite/26_numerics/random/discrete_distribution/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/weibull_distribution/
      	cons/parms.cc: Likewise.
      	* testsuite/26_numerics/random/weibull_distribution/
      	cons/default.cc: Likewise.
      	* testsuite/26_numerics/random/weibull_distribution/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/independent_bits_engine/
      	cons/base_move.cc: Likewise.
      	* testsuite/26_numerics/random/independent_bits_engine/
      	cons/seed1.cc: Likewise.
      	* testsuite/26_numerics/random/independent_bits_engine/
      	cons/seed2.cc: Likewise.
      	* testsuite/26_numerics/random/independent_bits_engine/
      	cons/base_copy.cc: Likewise.
      	* testsuite/26_numerics/random/independent_bits_engine/
      	cons/default.cc: Likewise.
      	* testsuite/26_numerics/random/independent_bits_engine/
      	cons/seed_seq.cc: Likewise.
      	* testsuite/26_numerics/random/independent_bits_engine/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/independent_bits_engine/
      	operators/equal.cc: Likewise.
      	* testsuite/26_numerics/random/independent_bits_engine/
      	operators/serialize.cc: Likewise.
      	* testsuite/26_numerics/random/ranlux48_base.cc: Likewise.
      	* testsuite/26_numerics/random/minstd_rand0.cc: Likewise.
      	* testsuite/26_numerics/random/subtract_with_carry_engine/
      	cons/seed1.cc: Likewise.
      	* testsuite/26_numerics/random/subtract_with_carry_engine/
      	cons/seed2.cc: Likewise.
      	* testsuite/26_numerics/random/subtract_with_carry_engine/
      	cons/default.cc: Likewise.
      	* testsuite/26_numerics/random/subtract_with_carry_engine/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/subtract_with_carry_engine/
      	operators/equal.cc: Likewise.
      	* testsuite/26_numerics/random/subtract_with_carry_engine/
      	operators/serialize.cc: Likewise.
      	* testsuite/26_numerics/random/discard_block_engine/cons/
      	base_move.cc: Likewise.
      	* testsuite/26_numerics/random/discard_block_engine/cons/
      	seed1.cc: Likewise.
      	* testsuite/26_numerics/random/discard_block_engine/cons/
      	seed2.cc: Likewise.
      	* testsuite/26_numerics/random/discard_block_engine/cons/
      	base_copy.cc: Likewise.
      	* testsuite/26_numerics/random/discard_block_engine/cons/
      	default.cc: Likewise.
      	* testsuite/26_numerics/random/discard_block_engine/cons/
      	seed_seq.cc: Likewise.
      	* testsuite/26_numerics/random/discard_block_engine/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/discard_block_engine/
      	operators/equal.cc: Likewise.
      	* testsuite/26_numerics/random/discard_block_engine/
      	operators/serialize.cc: Likewise.
      	* testsuite/26_numerics/random/cauchy_distribution/
      	cons/parms.cc: Likewise.
      	* testsuite/26_numerics/random/cauchy_distribution/
      	cons/default.cc: Likewise.
      	* testsuite/26_numerics/random/cauchy_distribution/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/negative_binomial_distribution/
      	cons/parms.cc: Likewise.
      	* testsuite/26_numerics/random/negative_binomial_distribution/
      	cons/default.cc: Likewise.
      	* testsuite/26_numerics/random/negative_binomial_distribution/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/gamma_distribution/
      	cons/parms.cc: Likewise.
      	* testsuite/26_numerics/random/gamma_distribution/
      	cons/default.cc: Likewise.
      	* testsuite/26_numerics/random/gamma_distribution/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/mersenne_twister_engine/
      	cons/seed1.cc: Likewise.
      	* testsuite/26_numerics/random/mersenne_twister_engine/
      	cons/seed2.cc: Likewise.
      	* testsuite/26_numerics/random/mersenne_twister_engine/
      	cons/default.cc: Likewise.
      	* testsuite/26_numerics/random/mersenne_twister_engine/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/mersenne_twister_engine/
      	operators/equal.cc: Likewise.
      	* testsuite/26_numerics/random/mersenne_twister_engine/
      	operators/serialize.cc: Likewise.
      	* testsuite/26_numerics/random/fisher_f_distribution/
      	cons/parms.cc: Likewise.
      	* testsuite/26_numerics/random/fisher_f_distribution/
      	cons/default.cc: Likewise.
      	* testsuite/26_numerics/random/fisher_f_distribution/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/exponential_distribution/
      	cons/parms.cc: Likewise.
      	* testsuite/26_numerics/random/exponential_distribution/
      	cons/default.cc: Likewise.
      	* testsuite/26_numerics/random/exponential_distribution/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/binomial_distribution/
      	cons/parms.cc: Likewise.
      	* testsuite/26_numerics/random/binomial_distribution/
      	cons/default.cc: Likewise.
      	* testsuite/26_numerics/random/binomial_distribution/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/lognormal_distribution/
      	cons/parms.cc: Likewise.
      	* testsuite/26_numerics/random/lognormal_distribution/
      	cons/default.cc: Likewise.
      	* testsuite/26_numerics/random/lognormal_distribution/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/mt19937_64.cc: Likewise.
      	* testsuite/26_numerics/random/random_device/cons/
      	token.cc: Likewise.
      	* testsuite/26_numerics/random/random_device/cons/
      	default.cc: Likewise.
      	* testsuite/26_numerics/random/random_device/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/ranlux24.cc: Likewise.
      	* testsuite/26_numerics/random/extreme_value_distribution/
      	cons/parms.cc: Likewise.
      	* testsuite/26_numerics/random/extreme_value_distribution/
      	cons/default.cc: Likewise.
      	* testsuite/26_numerics/random/extreme_value_distribution/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/piecewise_linear_distribution/
      	cons/range.cc: Likewise.
      	* testsuite/26_numerics/random/piecewise_linear_distribution/
      	cons/default.cc: Likewise.
      	* testsuite/26_numerics/random/piecewise_linear_distribution/
      	cons/num_xbound_fun.cc: Likewise.
      	* testsuite/26_numerics/random/piecewise_linear_distribution/
      	cons/initlist_fun.cc: Likewise.
      	* testsuite/26_numerics/random/piecewise_linear_distribution/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/student_t_distribution/
      	cons/parms.cc: Likewise.
      	* testsuite/26_numerics/random/student_t_distribution/
      	cons/default.cc: Likewise.
      	* testsuite/26_numerics/random/student_t_distribution/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/linear_congruential_engine/
      	cons/seed1.cc: Likewise.
      	* testsuite/26_numerics/random/linear_congruential_engine/
      	cons/seed2.cc: Likewise.
      	* testsuite/26_numerics/random/linear_congruential_engine/
      	cons/default.cc: Likewise.
      	* testsuite/26_numerics/random/linear_congruential_engine/
      	requirements/non_uint_neg.cc: Likewise.
      	* testsuite/26_numerics/random/linear_congruential_engine/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/linear_congruential_engine/
      	operators/equal.cc: Likewise.
      	* testsuite/26_numerics/random/linear_congruential_engine/
      	operators/serialize.cc: Likewise.
      	* testsuite/26_numerics/random/ranlux48.cc: Likewise.
      	* testsuite/26_numerics/random/shuffle_order_engine/cons/
      	base_move.cc: Likewise.
      	* testsuite/26_numerics/random/shuffle_order_engine/cons/
      	seed1.cc: Likewise.
      	* testsuite/26_numerics/random/shuffle_order_engine/cons/
      	seed2.cc: Likewise.
      	* testsuite/26_numerics/random/shuffle_order_engine/cons/
      	base_copy.cc: Likewise.
      	* testsuite/26_numerics/random/shuffle_order_engine/cons/
      	default.cc: Likewise.
      	* testsuite/26_numerics/random/shuffle_order_engine/cons/
      	seed_seq.cc: Likewise.
      	* testsuite/26_numerics/random/shuffle_order_engine/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/shuffle_order_engine/
      	operators/equal.cc: Likewise.
      	* testsuite/26_numerics/random/shuffle_order_engine/
      	operators/serialize.cc: Likewise.
      	* testsuite/26_numerics/random/geometric_distribution/
      	cons/parms.cc: Likewise.
      	* testsuite/26_numerics/random/geometric_distribution/
      	cons/default.cc: Likewise.
      	* testsuite/26_numerics/random/geometric_distribution/
      	requirements/typedefs.cc: Likewise.
      	* testsuite/26_numerics/random/knuth_b.cc: Likewise.
      
      From-SVN: r150361
      Paolo Carlini committed
    • pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from declaration arguments. · 4ce3042d
      	* pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
      	declaration arguments.
      
      From-SVN: r150358
      John David Anglin committed
    • re PR fortran/40853 (I/O: Namelist read error) · 9a1425da
      2009-08-02  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libfortran/40853
      	* gfortran.dg/namelist_40.f90: Update error output.
      	* gfortran.dg/namelist_47.f90: Update error output.
      	* gfortran.dg/namelist_58.f90: New test.
      
      From-SVN: r150357
      Jerry DeLisle committed
    • re PR fortran/40853 (I/O: Namelist read error) · ba286d56
      2009-08-02  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libfortran/40853
      	* io/list_read.c (nml_get_obj_data): Do not set nl
      	pointer to first_nl if nl->next is NULL.
      
      From-SVN: r150356
      Jerry DeLisle committed
    • i386.c (ix86_expand_fp_compare): Use const0_rtx instead of GEN_INT (0x00) and… · 0589e07d
      i386.c (ix86_expand_fp_compare): Use const0_rtx instead of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
      
      	* config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
      	of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
      	(ix86_split_ashl): Ditto.
      	(ix86_expand_vector_init_one_nonzero): Ditto.
      	(ix86_expand_vector_set): Ditto.
      	(ix86_expand_reduc_v4sf): Ditto.
      
      From-SVN: r150355
      Uros Bizjak committed
    • Add missing entry · f698757b
      From-SVN: r150353
      Eric Botcazou committed
    • gigi.h (end_subprog_body): Tweak comment. · 2fa03086
      	* gcc-interface/gigi.h (end_subprog_body): Tweak comment.
      	* gcc-interface/utils.c (end_subprog_body): Likewise.
      	* gcc-interface/trans.c (gigi): Likewise.
      	(gnat_to_gnu): Likewise.
      
      From-SVN: r150352
      Eric Botcazou committed
    • re PR fortran/40881 ([F03] warn for obsolescent features) · e2ab8b09
      2009-08-02  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/40881
      	* decl.c (match_char_length): Warn about old-style character length
      	declarations.
      	* match.c (match_arithmetic_if,gfc_match_if): Modify warning message
      	for arithmetic if.
      	(gfc_match_goto): Warn about computed gotos.
      	(gfc_match_return): Warn about alternate return.
      	(gfc_match_st_function): Warn about statement functions.
      	* resolve.c (resolve_fl_procedure): Modify warning message for
      	assumed-length character functions.
      
      
      2009-08-02  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/40881
      	* gfortran.dg/aliasing_dummy_1.f90: Add -std=legacy.
      	* gfortran.dg/altreturn_3.f90: Ditto.
      	* gfortran.dg/altreturn_5.f90: Ditto.
      	* gfortran.dg/altreturn_6.f90: Ditto.
      	* gfortran.dg/altreturn_7.f90: Ditto.
      	* gfortran.dg/array_constructor_13.f90: Ditto.
      	* gfortran.dg/arrayio_7.f90: Ditto.
      	* gfortran.dg/arrayio_8.f90: Ditto.
      	* gfortran.dg/assumed_charlen_function_3.f90: Modified warning message.
      	* gfortran.dg/assumed_charlen_function_4.f90: Add -std=legacy.
      	* gfortran.dg/assumed_charlen_function_5.f90: Modified warning message.
      	* gfortran.dg/backspace_8.f: Add -std=legacy.
      	* gfortran.dg/backspace_9.f: Ditto.
      	* gfortran.dg/char_comparison_1.f: Ditto.
      	* gfortran.dg/char_decl_1.f90: Ditto.
      	* gfortran.dg/char_initialiser_actual.f90: Ditto.
      	* gfortran.dg/char_pointer_assign.f90: Ditto.
      	* gfortran.dg/char_pointer_dependency.f90: Ditto.
      	* gfortran.dg/char_pointer_dummy.f90: Ditto.
      	* gfortran.dg/char_pointer_func.f90: Ditto.
      	* gfortran.dg/common_8.f90: Ditto.
      	* gfortran.dg/constant_substring.f: Ditto.
      	* gfortran.dg/data_char_2.f90: Ditto.
      	* gfortran.dg/der_array_io_1.f90: Ditto.
      	* gfortran.dg/der_array_io_2.f90: Ditto.
      	* gfortran.dg/der_array_io_3.f90: Ditto.
      	* gfortran.dg/der_io_3.f90: Ditto.
      	* gfortran.dg/dev_null.F90: Ditto.
      	* gfortran.dg/direct_io_2.f90: Ditto.
      	* gfortran.dg/do_iterator_2.f90: Ditto.
      	* gfortran.dg/e_d_fmt.f90: Ditto.
      	* gfortran.dg/empty_format_1.f90: Ditto.
      	* gfortran.dg/entry_17.f90: Modified warning message.
      	* gfortran.dg/entry_7.f90: Add -std=legacy.
      	* gfortran.dg/eor_1.f90: Ditto.
      	* gfortran.dg/equiv_2.f90: Ditto.
      	* gfortran.dg/equiv_constraint_2.f90: Use new-style character length.
      	* gfortran.dg/equiv_substr.f90: Add -std=legacy.
      	* gfortran.dg/extended_char_comparison_1.f: Ditto.
      	* gfortran.dg/fmt_bz_bn_err.f: Ditto.
      	* gfortran.dg/fmt_error_2.f90: Ditto.
      	* gfortran.dg/fmt_read_bz_bn.f90: Ditto.
      	* gfortran.dg/fmt_tl.f: Ditto.
      	* gfortran.dg/fmt_white.f: Ditto.
      	* gfortran.dg/func_derived_1.f90: Ditto.
      	* gfortran.dg/g77_intrinsics_funcs.f: Ditto.
      	* gfortran.dg/g77_intrinsics_sub.f: Ditto.
      	* gfortran.dg/global_references_2.f90: Ditto.
      	* gfortran.dg/hollerith_1.f90: Ditto.
      	* gfortran.dg/hollerith.f90: Use new-style character length.
      	* gfortran.dg/hollerith_f95.f90: Ditto.
      	* gfortran.dg/ichar_1.f90: Add -std=legacy.
      	* gfortran.dg/implicit_6.f90: Ditto.
      	* gfortran.dg/implicit_9.f90: Ditto.
      	* gfortran.dg/inquire_13.f90: Ditto.
      	* gfortran.dg/inquire_5.f90: Ditto.
      	* gfortran.dg/inquire_6.f90: Ditto.
      	* gfortran.dg/inquire.f90: Ditto.
      	* gfortran.dg/io_constraints_1.f90: Use new-style character length.
      	* gfortran.dg/io_constraints_2.f90: Ditto.
      	* gfortran.dg/list_read_2.f90: Add -std=legacy.
      	* gfortran.dg/loc_2.f90: Ditto.
      	* gfortran.dg/logical_1.f90: Ditto.
      	* gfortran.dg/longline.f: Ditto.
      	* gfortran.dg/merge_char_1.f90: Ditto.
      	* gfortran.dg/namelist_12.f: Ditto.
      	* gfortran.dg/namelist_14.f90: Ditto.
      	* gfortran.dg/namelist_18.f90: Ditto.
      	* gfortran.dg/namelist_19.f90: Ditto.
      	* gfortran.dg/namelist_21.f90: Ditto.
      	* gfortran.dg/namelist_22.f90: Ditto.
      	* gfortran.dg/namelist_37.f90: Ditto.
      	* gfortran.dg/namelist_54.f90: Ditto.
      	* gfortran.dg/namelist_55.f90: Ditto.
      	* gfortran.dg/namelist_empty.f90: Ditto.
      	* gfortran.dg/namelist_use.f90: Use new-style character length.
      	* gfortran.dg/namelist_use_only.f90: Add -std=legacy.
      	* gfortran.dg/nested_modules_4.f90: Ditto.
      	* gfortran.dg/nested_modules_5.f90: Ditto.
      	* gfortran.dg/open-options-blanks.f: Ditto.
      	* gfortran.dg/output_exponents_1.f90: Ditto.
      	* gfortran.dg/parens_5.f90: Ditto.
      	* gfortran.dg/parens_6.f90: Ditto.
      	* gfortran.dg/parent_result_ref_2.f90: Modified warning message.
      	* gfortran.dg/pointer_function_actual_1.f90: Add -std=legacy.
      	* gfortran.dg/pr15129.f90: Ditto.
      	* gfortran.dg/pr15332.f: Ditto.
      	* gfortran.dg/pr16597.f90: Ditto.
      	* gfortran.dg/pr17143.f90: Ditto.
      	* gfortran.dg/pr17164.f90: Ditto.
      	* gfortran.dg/pr17229.f: Modified warning message.
      	* gfortran.dg/pr18210.f90: Add -std=legacy.
      	* gfortran.dg/pr19155.f: Ditto.
      	* gfortran.dg/pr20086.f90: Ditto.
      	* gfortran.dg/pr20124.f90: Ditto.
      	* gfortran.dg/pr20755.f: Ditto.
      	* gfortran.dg/pr20865.f90: Ditto.
      	* gfortran.dg/pr20950.f: Ditto.
      	* gfortran.dg/pr21730.f: Ditto.
      	* gfortran.dg/pr22491.f: Ditto.
      	* gfortran.dg/pr29713.f90: Ditto.
      	* gfortran.dg/print_parentheses_1.f: Ditto.
      	* gfortran.dg/print_parentheses_2.f90: Ditto.
      	* gfortran.dg/proc_assign_1.f90: Ditto.
      	* gfortran.dg/proc_decl_1.f90: Ditto.
      	* gfortran.dg/proc_ptr_17.f90: Add dg-warning.
      	* gfortran.dg/read_eor.f90: : Add -std=legacy.
      	* gfortran.dg/read_float_1.f90: Ditto.
      	* gfortran.dg/read_logical.f90: Ditto.
      	* gfortran.dg/recursive_statement_functions.f90: Ditto.
      	* gfortran.dg/return_1.f90: Ditto.
      	* gfortran.dg/rewind_1.f90: Ditto.
      	* gfortran.dg/runtime_warning_1.f90: Use new-style character length.
      	* gfortran.dg/scalar_return_1.f90: Add -std=legacy.
      	* gfortran.dg/stfunc_1.f90: Ditto.
      	* gfortran.dg/stfunc_3.f90: Ditto.
      	* gfortran.dg/stfunc_4.f90: Ditto.
      	* gfortran.dg/stfunc_6.f90: Ditto.
      	* gfortran.dg/streamio_2.f90: Ditto.
      	* gfortran.dg/string_ctor_1.f90: Ditto.
      	* gfortran.dg/string_null_compare_1.f: Ditto.
      	* gfortran.dg/substr_6.f90: Ditto.
      	* gfortran.dg/tl_editing.f90: Ditto.
      	* gfortran.dg/unf_io_convert_1.f90: Use new-style character length.
      	* gfortran.dg/warnings_are_errors_1.f90: Modified warning message.
      	* gfortran.dg/x_slash_1.f: Add -std=legacy.
      	* gfortran.dg/g77/1832.f: Ditto.
      	* gfortran.dg/g77/19981216-0.f Ditto.
      	* gfortran.dg/g77/19990525-0.f: Ditto.
      	* gfortran.dg/g77/19990826-2.f: Ditto.
      	* gfortran.dg/g77/20000630-2.f: Ditto.
      	* gfortran.dg/g77/20010116.f: Ditto.
      	* gfortran.dg/g77/20010519-1.f: Use new-style character length.
      	* gfortran.dg/g77/980419-2.f: Add -std=legacy.
      	* gfortran.dg/g77/980520-1.f: Ditto.
      	* gfortran.dg/g77/check0.f: Ditto.
      	* gfortran.dg/g77/cpp3.F: Ditto.
      	* gfortran.dg/g77/cpp4.F: Use new-style character length.
      	* gfortran.dg/g77/f77-edit-i-in.f: Add -std=legacy.
      	* gfortran.dg/g77/f77-edit-t-in.f: Ditto.
      	* gfortran.dg/g77/short.f: Ditto.
      
      From-SVN: r150349
      Janus Weil committed
    • ext-3.c: Add NOMIPS16. · 657e81c7
      	* gcc.target/mips/ext-3.c: Add NOMIPS16.
      	* gcc.target/mips/ext-4.c: Likewise.
      	* gcc.target/mips/interrupt_handler.c: Likewise.
      	* gcc.target/mips/truncate-4.c: Likewise.
      	* gcc.target/mips/truncate-5.c: Likewise.
      
      From-SVN: r150345
      Adam Nemet committed
    • 2009-08-02 Paolo Bonzini <bonzini@gnu.org · 6e957ac8
      	* explow.c (promote_function_mode): Remove assert.
      	* config/sh/sh.c (sh_promote_function_mode): Declare.
      
      From-SVN: r150344
      Paolo Bonzini committed
    • pa.c (pa_promote_function_mode): Declare. · 02095c50
      	* pa.c (pa_promote_function_mode): Declare.  Change to static.
      	Fix promote_mode call.
      
      From-SVN: r150343
      John David Anglin committed
    • gthr-dce.h (CONST_CAST2): Define if not defined. · 1f7ec57e
      	* gthr-dce.h (CONST_CAST2): Define if not defined.
      	(__gthread_setspecific): Use CONST_CAST2 to fix warning.
      
      From-SVN: r150342
      John David Anglin committed
    • config.gcc (hppa[12]*-*-hpux10*): Add stdint support. · be3e4ef6
      	* config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
      
      From-SVN: r150341
      John David Anglin committed
    • inclhack.def (hpux_inttype_int_least8_t): Also apply on hpux10*. · 175196a0
      	* inclhack.def (hpux_inttype_int_least8_t): Also apply on hpux10*.
      	(hpux_inttype_int8_t): Likewise.
      	* fixincl.x: Regenerate.
      
      From-SVN: r150340
      John David Anglin committed
    • Daily bump. · 0c256fb1
      From-SVN: r150339
      GCC Administrator committed
  3. 01 Aug, 2009 9 commits
    • expr.c (store_constructor): Use promote_decl_mode. · cde0f3fd
      2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
      
      	* expr.c (store_constructor): Use promote_decl_mode.  Remove
      	now write-only variable unsignedp.
      	(expand_expr_real_1): Use promote_decl_mode.
      	* expr.h (promote_function_mode, promote_decl_mode): New.
      	(promote_mode): Remove last argument.
      	* function.c (assign_temp): Drop last argument of promote_mode.
      	(assign_parm_find_data_types): Use promote_function_mode.
      	(assign_parm_setup_reg): Likewise.
      	(expand_function_end): Use promote_function_mode.
      	* calls.c (initialize_argument_information): Use promote_function_mode.
      	(precompute_arguments): Use promote_mode instead of checking if
      	only PROMOTE_FUNCTION_MODE is defined.
      	(expand_call): When making sibcall decisions, use promote_function_mode.
      	Below, remove an if for targetm.calls.promote_function_return and
      	and use promote_function_mode.
      	(emit_library_call_value_1): Use promote_function_mode, fix bug
      	where promote_mode was passed FOR_CALL == 0 for a return value in an
      	assertion.
      	* cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
      	* explow.c (promote_function_mode, promote_decl_mode): New.
      	(promote_mode): Keep only the FOR_CALL == 0 case.
      	* combine.c (setup_incoming_promotion): Remove test of
      	promote_function_args.  Use promote_function_mode.
      	* stmt.c (expand_value_return): Use promote_decl_mode.
      	(expand_decl): Use promote_decl_mode.
      
      	* expr.c (store_constructor): Use promote_decl_mode.  Remove
      	now write-only variable unsignedp.
      	(expand_expr_real_1): Use promote_decl_mode.
      	* expr.h (promote_function_mode, promote_decl_mode): New.
      	(promote_mode): Remove last argument.
      	* function.c (assign_temp): Drop last argument of promote_mode.
      	(assign_parm_find_data_types): Use promote_function_mode.
      	(assign_parm_setup_reg): Likewise.
      	(expand_function_end): Use promote_function_mode.
      	* calls.c (initialize_argument_information): Use promote_function_mode.
      	(precompute_arguments): Use promote_mode instead of checking if
      	only PROMOTE_FUNCTION_MODE is defined.
      	(expand_call): When making sibcall decisions, use promote_function_mode.
      	Below, remove an if for targetm.calls.promote_function_return and
      	and use promote_function_mode.
      	(emit_library_call_value_1): Use promote_function_mode, fix bug
      	where promote_mode was passed FOR_CALL == 0 for a return value in an
      	assertion.
      	* cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
      	* explow.c (promote_function_mode, promote_decl_mode): New.
      	(promote_mode): Keep only the FOR_CALL == 0 case.
      	* combine.c (setup_incoming_promotion): Remove test of
      	promote_function_args.  Use promote_function_mode.
      	* stmt.c (expand_value_return): Use promote_decl_mode.
      	(expand_decl): Use promote_decl_mode.
      
      	* explow.c (promote_function_mode): Just call the target hook.
      	* targhooks.c (default_promote_function_mode,
      	default_promote_function_mode_always_promote): New.
      	* targhooks.h (default_promote_function_mode,
      	default_promote_function_mode_always_promote): Declare.
      	* target.h (promote_function_args, promote_function_return): Remove.
      	(promote_function_mode): New.
      	* target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
      	TARGET_PROMOTE_FUNCTION_RETURN): Remove.
      	(TARGET_PROMOTE_FUNCTION_MODE): New.
      	(TARGET_CALLS): Adjust.
      	* system.h (TARGET_PROMOTE_FUNCTION_ARGS,
      	TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
      
      	* config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
      	* config/s390/s390.c (s390_promote_function_mode): ... here,
      	with pointer handling.
      	(TARGET_PROMOTE_FUNCTION_MODE): Define.
      	(TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
      
      	* config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
      	* config/sparc/sparc.c (sparc_promote_function_mode): ... here,
      	with pointer handling.
      	(TARGET_PROMOTE_FUNCTION_MODE): Define.
      	(TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
      	
      	* config/sh/sh-protos.h (sh_promote_function_mode): New.
      	* config/sh/sh.c (sh_promote_function_mode): New.
      	(TARGET_PROMOTE_FUNCTION_MODE): Define.
      	(TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
      
      	* config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
      	* config/cris/cris.c (cris_promote_function_mode): ... here.
      	(TARGET_PROMOTE_FUNCTION_MODE): Define.
      	(TARGET_PROMOTE_FUNCTION_ARGS): Remove.
      
      	* config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
      	* config/mmix/mmix.c (mmix_promote_function_mode): ... here.
      	(TARGET_PROMOTE_FUNCTION_MODE): Define.
      	(TARGET_PROMOTE_FUNCTION_ARGS): Remove.
      
      	* config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
      	* config/arm/arm.c (arm_promote_function_mode): ... here, without complex
      	type handling.
      	(TARGET_PROMOTE_FUNCTION_MODE): Define.
      	(TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
      
      	* config/pa/pa.c (pa_promote_function_mode): New.
      	(TARGET_PROMOTE_FUNCTION_MODE): Define.
      	(TARGET_PROMOTE_FUNCTION_RETURN): Remove.
      
      	* config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
      	TARGET_PROMOTE_FUNCTION_RETURN): Remove.
      	(TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
      	* config/xtensa/xtensa.c: Likewise.
      	* config/stormy16/stormy16.c: Likewise.
      	* config/iq2000/iq2000.c: Likewise.
      	* config/rs6000/rs6000.c: Likewise.
      	* config/picochip/picochip.c: Likewise.
      	* config/arc/arc.c: Likewise.
      	* config/mcore/mcore.c: Likewise.
      	* config/score/score.c: Likewise.
      	* config/mips/mips.c: Likewise.
      	* config/bfin/bfin.c: Likewise.
      	* config/ia64/ia64.c: Likewise (disabled though).
      
      	* config/frv/frv.h: Remove pointless remark.
      
      	* doc/tm.texi (PROMOTE_FUNCTION_MODE,
      	TARGET_PROMOTE_FUNCTION_ARGS,
      	TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
      	(TARGET_PROMOTE_FUNCTION_MODE): ... this.
      
      From-SVN: r150336
      Paolo Bonzini committed
    • Rename -fgraphite-force-parallel to -floop-parallelize-all. · 3cf0e270
      2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
      
      	* doc/invoke.texi (-fgraphite-force-parallel): Renamed
      	-floop-parallelize-all.
      	* toplev.c (process_options): Rename flag_graphite_force_parallel to
      	flag_loop_parallelize_all.
      	* tree-ssa-loop.c (gate_graphite_transforms): Same.
      	* graphite.c (graphite_transform_loops): Same.
      	* common.opt: Same.
      	* graphite-poly.c (apply_poly_transforms): Same.
      
      	* gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Rename
      	-fgraphite-force-parallel to -floop-parallelize-all.
      
      From-SVN: r150334
      Sebastian Pop committed
    • re PR fortran/40011 (Problems with -fwhole-file) · 3af8d8cb
      2009-08-01  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/40011
      	* error.c : Add static flag 'warnings_not_errors'.
      	(gfc_error): If 'warnings_not_errors' is set, branch to code
      	from gfc_warning.
      	(gfc_clear_error): Reset 'warnings_not_errors'.
      	(gfc_errors_to_warnings): New function.
      	* options.c (gfc_post_options): If pedantic and flag_whole_file
      	change the latter to a value of 2.
      	* parse.c (parse_module): Add module namespace to gsymbol.
      	(resolve_all_program_units): New function.
      	(clean_up_modules): New function.
      	(translate_all_program_units): New function.
      	(gfc_parse_file): If whole_file, do not clean up module right
      	away and add derived types to namespace derived types. In
      	addition, call the three new functions above.
      	* resolve.c (not_in_recursive): New function.
      	(not_entry_self_reference): New function.
      	(resolve_global_procedure): Symbol must not be IFSRC_UNKNOWN,
      	procedure must not be in the course of being resolved and
      	must return false for the two new functions. Pack away the
      	current derived type list before calling gfc_resolve for the
      	gsymbol namespace.  It is unconditionally an error if the ranks
      	of the reference and ther procedure do not match. Convert
      	errors to warnings during call to gfc_procedure_use if not
      	pedantic or legacy.
      	(gfc_resolve): Set namespace resolved flag to -1 during
      	resolution and store current cs_base.
      	* trans-decl.c (gfc_get_symbol_decl): If whole_file compilation
      	substitute a use associated variable, if it is available in a
      	gsymbolnamespace.
      	(gfc_get_extern_function_decl): If the procedure is use assoc,
      	do not attempt to find it in a gsymbol because it could be an
      	interface. If the symbol exists in a module namespace, return
      	its backend_decl.
      	* trans-expr.c (gfc_trans_scalar_assign): If a derived type
      	assignment, set the rhs TYPE_MAIN_VARIANT to that of the rhs.
      	* trans-types.c (copy_dt_decls_ifequal): Add 'from_gsym' as a
      	boolean argument. Copy component backend_decls directly if the
      	components are derived types and from_gsym is true.
      	(gfc_get_derived_type): If whole_file copy the derived type from
      	the module if it is use associated, otherwise, if can be found
      	in another gsymbol namespace, use the existing derived type as
      	the TYPE_CANONICAL and build normally.
      	* gfortran.h : Add derived_types and resolved fields to
      	gfc_namespace. Include prototype for gfc_errors_to_warnings.
      
      2009-08-01  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/40011
      	* gfortran.dg/whole_file_7.f90: New test.
      	* gfortran.dg/whole_file_8.f90: New test.
      	* gfortran.dg/whole_file_9.f90: New test.
      	* gfortran.dg/whole_file_10.f90: New test.
      	* gfortran.dg/whole_file_11.f90: New test.
      	* gfortran.dg/whole_file_12.f90: New test.
      	* gfortran.dg/whole_file_13.f90: New test.
      	* gfortran.dg/whole_file_14.f90: New test.
      
      From-SVN: r150333
      Paul Thomas committed
    • update license · 4fcf0830
      From-SVN: r150328
      Jason Merrill committed
    • call.c (convert_class_to_reference): Binding an lvalue to an rvalue reference is bad. · e7f1930f
      	* call.c (convert_class_to_reference): Binding an lvalue to an
      	rvalue reference is bad.  If the user-defined conversion is bad,
      	set bad_p before merging conversions.
      	(maybe_handle_ref_bind): Don't push down bad_p.
      	(reference_binding): Binding an lvalue to an rvalue reference is bad.
      	(convert_like_real): Give a helpful error about binding lvalue
      	to rvalue reference.
      	(reference_related_p): No longer static.
      	* typeck.c (build_typed_address): New.
      	(build_static_cast_1): Add static_cast from lvalue to &&.
      	* cp-tree.h: Adjust.
      
      	* include/bits/move.h (forward): Implement as in N2835.
      	(move): Implement as in N2831.
      	* include/std/istream (rvalue stream operator>>): New.
      	* include/std/ostream (rvalue stream operator<<): New.
      
      Co-Authored-By: Douglas Gregor <doug.gregor@gmail.com>
      
      From-SVN: r150327
      Jason Merrill committed
    • forward_list.h (splice_after): Use forward. · 4c650853
      	* include/bits/forward_list.h (splice_after): Use forward.
      	(merge): Likewise.
      	* include/bits/stl_iterator.h (move_iterator::operator*): Use move.
      	(move_iterator::operator[]): Use move.
      	* include/bits/stl_list.h (insert): Use move.
      	* include/std/thread (_Callable constructor): Use forward.
      	* include/std/tuple: Don't specify explicit template args to move.
      
      From-SVN: r150326
      Jason Merrill committed
    • call.c (reference_binding): Rename lvalue_p to is_lvalue. · 9771799c
      	* call.c (reference_binding): Rename lvalue_p to is_lvalue.
      	Do direct binding of "rvalues" in memory to rvalue references.
      	* tree.c (lvalue_p_1): Can't be both non-addressable lvalue and
      	"rvalue" in memory.
      	* typeck.c (build_static_cast_1): Do direct binding of memory
      	"rvalues" to rvalue references.
      	* cvt.c (cp_fold_convert): New.
      	* cp-tree.h: Declare it.
      
      From-SVN: r150325
      Jason Merrill committed
    • typeck.c (build_address): Do fold away ADDR_EXPR of INDIRECT_REF. · d3e1e89e
      	* typeck.c (build_address): Do fold away ADDR_EXPR of INDIRECT_REF.
      	* tree.c (rvalue): Use cp_build_qualified_type, not TYPE_MAIN_VARIANT.
      
      From-SVN: r150324
      Jason Merrill committed
    • Daily bump. · 924d0c88
      From-SVN: r150323
      GCC Administrator committed
  4. 31 Jul, 2009 10 commits