1. 03 Nov, 2008 15 commits
  2. 02 Nov, 2008 6 commits
  3. 01 Nov, 2008 17 commits
    • re PR target/37939 (CRIS port: no addi insn) · 195b3ab6
      	PR target/37939
      	* gcc.target/cris/biap.c: New test.
      
      From-SVN: r141525
      Hans-Peter Nilsson committed
    • re PR target/37939 (CRIS port: no addi insn) · aa05ad86
      	PR target/37939
      	* config/cris/cris.c (cris_rtx_costs) <MULT>: Return 0 for an ADDI
      	operand.
      
      From-SVN: r141524
      Hans-Peter Nilsson committed
    • PR libstdc++/37958 (cont again) · 7ea6fdf5
      2008-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR libstdc++/37958 (cont again)
      	* include/bits/locale_facets.tcc (num_get<>::do_get(iter_type,
      	iter_type, ios_base&, ios_base::iostate&, bool&): Fix again.
      	* testsuite/22_locale/num_get/get/char/37958.cc: Extend.
      	* testsuite/22_locale/num_get/get/wchar_t/37958.cc: Likewise.
      
      From-SVN: r141523
      Paolo Carlini committed
    • re PR fortran/36426 (Endless loop in gfc_apply_interface_mapping_to_expr) · 6f6e26a8
      2008-11-01  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/36426
      	* expr.c (replace_symbol): Replace all symbols which lie in the
      	formal namespace of the interface and copy their attributes.
      	* resolve.c (resolve_symbol): Add charlen to namespace.
      
      
      2008-11-01  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/36426
      	* gfortran.dg/proc_decl_19.f90: New.
      
      From-SVN: r141522
      Janus Weil committed
    • locale_facets.tcc (num_get<>::do_get(, long&), [...]): Move inline... · f18e0ca6
      2008-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/bits/locale_facets.tcc (num_get<>::do_get(, long&),
      	num_get<>::do_get(, unsigned short&),
      	num_get<>::do_get(, unsigned int&),
      	num_get<>::do_get(, unsigned long&),
      	num_get<>::do_get(, long long&),
      	num_get<>::do_get(, unsigned long long&),
      	num_put<>::do_put(, long), num_put<>::do_put(, unsigned long),
      	num_put<>::do_put(, long long),
      	num_put<>::do_put(, unsigned long long)): Move inline...
      	* include/bits/locale_facets.h: ... here.
      
      From-SVN: r141520
      Paolo Carlini committed
    • re PR fortran/19925 (Implied do-loop in an initialization expression is broken) · 2a300344
      2008-11-01  Steven G. Kargl  <kargls@comcast.net>
      
      	PR fortran/19925
      	* gfortran.dg/initialization_20.f90: New test.
      	* gfortran.dg/initialization_21.f90: Ditto.
      
      From-SVN: r141519
      Steven G. Kargl committed
    • re PR fortran/19925 (Implied do-loop in an initialization expression is broken) · 63346ddb
      2008-11-01  Steven G. Kargl  <kargls@comcast.net>
      
      	PR fortran/19925
      	* trans-array.c (gfc_trans_array_constructor_value): Fix comment.
      	(gfc_conv_array_initializer): Convert internal_error() to gfc_error_now.
      	* array.c: Remove GFC_MAX_AC_EXPAND macro.
      	(gfc_expand_constructor): Use gfc_option.flag_max_array_constructor.
      	* gfortran.h (gfc_option): Add flag_max_array_constructor member.
      	* lang.opt: Add -fmax-array-constructor option.
      	* expr.c (gfc_match_init_expr): Fix error message to mention new option.
      	* invoke.texi: Document new option.
      	* options.c (gfc_init_options): Set default value for new option.
      	(gfc_handle_option): Deal with commandline.
      
      From-SVN: r141518
      Steven G. Kargl committed
    • PR libstdc++/37958 (cont) · fa4262a4
      2008-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR libstdc++/37958 (cont)
      	* include/bits/locale_facets.tcc (num_get<>::do_get(iter_type,
      	iter_type, ios_base&, ios_base::iostate&, bool&): Fix again.
      
      From-SVN: r141517
      Paolo Carlini committed
    • re PR fortran/35681 (wrong result for vector subscripted array expression in MVBITS) · 12f681a0
      2008-11-01  Daniel Kraft  <d@domob.eu>
      
      	PR fortran/35681
      	* gfortran.h (struct gfc_code): New field `resolved_isym'.
      	* trans.h (gfc_build_memcpy_call): Made public.
      	* trans-array.h (gfc_trans_create_temp_array): New argument `initial'.
      	* intrinsic.c (gfc_intrinsic_sub_interface): Set resolved_isym.
      	* iresolve.c (create_formal_for_intents): New helper method.
      	(gfc_resolve_mvbits): Put dummy formal arglist on resolved_sym.
      	* resolve.c (resolve_call): Initialize resolved_isym to NULL.
      	* trans-array.c (gfc_trans_allocate_array_storage): New argument
      	`initial' to allow initializing the allocated storage to some initial
      	value copied from another array.
      	(gfc_trans_create_temp_array): Allow initialization of the temporary
      	with a copy of some other array by using the new extension.
      	(gfc_trans_array_constructor): Pass NULL_TREE for initial argument.
      	(gfc_conv_loop_setup): Ditto.
      	* trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Ditto.
      	* trans-expr.c (gfc_conv_function_call): Ditto.
      	(gfc_build_memcpy_call): Made public.
      	* trans-stmt.c (gfc_conv_elemental_dependencies): Initialize created
      	temporary for INTENT(INOUT) arguments to the value of the mirrored
      	array and clean up the temporary as very last intructions in the created
      	block.
      	* trans.c (gfc_trans_code): For EXEC_CALL, see if we have a MVBITS call
      	and enable elemental dependency checking if we have.
      
      2008-11-01  Daniel Kraft  <d@domob.eu>
      
      	PR fortran/35681
      	* gfortran.dg/mvbits_4.f90: New test.
      
      From-SVN: r141516
      Daniel Kraft committed
    • re PR fortran/36322 (ICE with PROCEDURE using a complicated interface) · c6acea9d
      2008-11-01  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/36322
      	PR fortran/36463
      	* gfortran.h: New function gfc_expr_replace_symbols.
      	* decl.c (match_procedure_decl): Increase reference count for interface.
      	* expr.c: New functions replace_symbol and gfc_expr_replace_symbols.
      	* resolve.c (resolve_symbol): Correctly copy array spec and char len
      	of PROCEDURE declarations from their interface.
      	* symbol.c (gfc_get_default_type): Enhanced error message.
      	(copy_formal_args): Call copy_formal_args recursively for arguments.
      	* trans-expr.c (gfc_conv_function_call): Bugfix.
      
      
      2008-11-01  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/36322
      	PR fortran/36463
      	* gfortran.dg/proc_decl_17.f90: New.
      	* gfortran.dg/proc_decl_18.f90: New.
      
      From-SVN: r141515
      Janus Weil committed
    • re PR middle-end/37976 (ICE in insert_into_preds_of_block) · 002bd9f0
      2008-11-01  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/37976
      	* builtins.c (fold_builtin_strspn): Return a size_t.
      	(fold_builtin_strcspn): Likewise.
      
      	* gcc.c-torture/compile/pr37976.c: New testcase.
      
      From-SVN: r141514
      Richard Guenther committed
    • shared_ptr.h: Update comparisons to match WP. · 8dd5e93a
      2008-11-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
      
              * include/bits/shared_ptr.h: Update comparisons to match WP.
              (_Sp_counted_ptr): Make copy and assignment members deleted.
              (_Sp_counted_deleter): Remove private copy and assignment members.
              (__shared_count::_M_less,__weak_count::_M_less,operator<): Replace
              friend operator< with overloaded _M_less member functions to allow
              comparison with either shared_count or weak_count.
              (__shared_ptr::_M_less,__weak_ptr::_M_less): Replace with...
              (__shared_ptr::owner_before,__weak_ptr::owner_before): New overloads
              for ownership-based ordering.
              (operator<(__shared_ptr,__shared_ptr)): Compare stored pointers,
              make non-friend.
              (operator==(__shared_ptr,__shared_ptr)): Make non-friend.
              (operator!=(__shared_ptr,__shared_ptr)): Likewise.
              (less<__shared_ptr<>>,less<shared_ptr<>>,_Sp_less): Explicitly call
              pointer specialization.
              (__weak_ptr::operator<,weak_ptr::operator<=,weak_ptr::operator>,
              weak_ptr::operator>=): Remove operator< and delete all comparisons.
              (_Sp_owner_less,owner_less): Predicate for ownership-based ordering.
              (operator<(shared_ptr,shared_ptr): Overload for derived shared_ptr.
              (operator==(shared_ptr,shared_ptr): Likewise.
              (operator!=(shared_ptr,shared_ptr): Likewise.
              (swap(shared_ptr,shared_ptr)): Fix parameter types.
              (swap(weak_ptr,weak_ptr)): Add missing overload.
              * testsuite/20_util/owner_less/cmp.cc: New.
              * testsuite/20_util/shared_ptr/comparison/cmp.cc: Test other ops.
              * testsuite/20_util/shared_ptr/comparison/less.cc: New.
              * testsuite/20_util/shared_ptr/observers/owner_before.cc: New.
              * testsuite/20_util/weak_ptr/observers/owner_before.cc: New.
              * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: New.
      
      From-SVN: r141512
      Jonathan Wakely committed
    • re PR fortran/37159 (RANDOM_SEED: GET= check array size at compile time and… · 1b867ae7
      re PR fortran/37159 (RANDOM_SEED:  GET=  check array size at compile time and respect -fdefault-integer-*)
      
      2008-11-01  Dennis Wassel  <dennis.wassel@gmail.com>
      
      	PR fortran/37159
      	* fortran/check.c (gfc_check_random_seed): Check PUT size
      	at compile time.
      
      2008-11-01  Dennis Wassel  <dennis.wassel@gmail.com>
      
      	PR fortran/37159
      	* intrinsics/random.c: Added comment to adapt check.c, should
      	kiss_size change.
      	Few cosmetic changes to existing comments.
      
      2008-11-01  Dennis Wassel  <dennis.wassel@gmail.com>
      
      	PR fortran/37159
      	* gfortran.dg/random_seed_1.f90: New testcase.
      
      From-SVN: r141511
      Dennis Wassel committed
    • rs6000.c (rs6000_file_start): Output gnu attribute for struct return convention. · f9fd1e77
      	* config/rs6000/rs6000.c (rs6000_file_start): Output gnu
      	attribute for struct return convention.
      
      From-SVN: r141510
      Nathan Froyd committed
    • * config/rs6000/crtsavres.asm: Really, really delete. · a57b73a7
      From-SVN: r141509
      Nathan Froyd committed
    • rs6000.c (no_global_regs_above): Fix precedence problem. · 19ce6731
      	* config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
      	problem.
      	(rs6000_emit_prologue): Invert logic.
      	* config/rs6000/rs6000.md (*save_gpregs_<mode>): Use explicit
      	(reg:P 11) instead of match_operand.
      	(*save_fpregs_<mode>): Likewise.
      	(*restore_gpregs_<mode>): Likewise.
      	(*return_and_restore_gpregs_<mode>): Likewise.
      	(*return_and_restore_fpregs_<mode>): Likewise.
      	* config/rs6000/spe.md (*save_gpregs_spe): Use explicit
      	(reg:P 11) insted of match_operand.
      	(*restore_gpregs_spe): Likewise.
      	(*return_and_restore_gpregs_spe): Likewise.
      
      From-SVN: r141508
      Nathan Froyd committed
    • Daily bump. · 24b6353f
      From-SVN: r141506
      GCC Administrator committed
  4. 31 Oct, 2008 2 commits
    • expr.c (struct op): Add location. · 47960aaf
      2008-10-31  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      libcpp/
      	* expr.c (struct op): Add location.
      	(_cpp_parse_expr): Propagate locations throught the stack
      	of expressions.
      	(reduce): Likewise.
      	(check_promotion): Use explicit location in errors.
      	
      testsuite/
      	* gcc.dg/cpp/Wsignprom.c: Add column numbers.
      	* gcc.dg/cpp/if-mpar.c: Likewise.
      
      From-SVN: r141503
      Manuel López-Ibáñez committed
    • re PR c++/37967 (ICE with function returning auto) · 4f48b9c1
      	PR c++/37967
      	* decl.c (grokdeclarator): Diagnose auto function decl without
      	late return type and late return type function decl where type
      	is not auto.
      
      	* g++.dg/cpp0x/auto8.C: New test.
      
      From-SVN: r141502
      Jakub Jelinek committed