1. 30 Aug, 2010 18 commits
  2. 29 Aug, 2010 6 commits
    • re PR fortran/42769 ([OOP] ICE in resolve_typebound_procedure) · bd48f123
      2010-08-29  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/42769
      	* resolve.c (resolve_structure_cons): For derived types, make sure the
      	type has been resolved.
      	(resolve_typebound_procedures): Make sure the vtab has been generated.
      
      
      2010-08-29  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/42769
      	* gfortran.dg/dynamic_dispatch_11.f03: New.
      
      From-SVN: r163631
      Janus Weil committed
    • ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in general purpose registers. · 33620355
      	* config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
      	general purpose registers.
      	(HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
      	* config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
      	with general purpose registers and memory operands.  Add associated
      	CCImode post-reload splitter.
      	* config/ia64/div.md: Change BImode to CCImode throughout.
      
      From-SVN: r163630
      Eric Botcazou committed
    • re PR c++/44991 (default argument with '<' cause compilation error) · 98d43360
      	PR c++/44991
      	* parser.c (cp_parser_parameter_declaration): Pop parameter decls
      	after tentative parsing.
      
      From-SVN: r163629
      Jason Merrill committed
    • [multiple changes] · 1f5ca1a1
      2010-08-29  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* testsuite/23_containers/bitset/invalidation: Move...
      	* testsuite/23_containers/bitset/debug/invalidation: ... here.
      	* testsuite/23_containers/deque/invalidation: Move...
      	* testsuite/23_containers/deque/debug/invalidation: ... here.
      	* testsuite/23_containers/list/invalidation: Move...
      	* testsuite/23_containers/list/debug/invalidation: ... here.
      	* testsuite/23_containers/map/invalidation: Move...
      	* testsuite/23_containers/map/debug/invalidation: ... here.
      	* testsuite/23_containers/multimap/invalidation: Move...
      	* testsuite/23_containers/multimap/debug/invalidation: ... here.
      	* testsuite/23_containers/set/invalidation: Move...
      	* testsuite/23_containers/set/debug/invalidation: ... here.
      	* testsuite/23_containers/multiset/invalidation: Move...
      	* testsuite/23_containers/multiset/debug/invalidation: ... here.
      	* testsuite/23_containers/vector/invalidation: Move...
      	* testsuite/23_containers/vector/debug/invalidation: ... here.
      
      2010-08-29  François Dumont  <francois.cppdevs@free.fr>
      
              * include/bits/stl_algobase.h (_Iter_base):  Move...
              * include/bits/stl_iterator_base_types.h: ...here.
              * include/debug/functions.h (__check_valid_range, __check_string,
      	__check_sorted): Fix to not depend on _GLIBCXX_DEBUG; include
      	formatter.h and use formatting macros for a consistent debug result.
              * include/debug/formatter.h (__check_singular): Declare; do not
      	include debug.h.
              * include/debug/debug.h: Do not include formatter.h.
              * include/debug/safe_iterator.h (_Safe_iterator::_Base_Iterator)
              rename to iterator_type.
      	(__gnu_debug::__base): Add.
              * include/debug/set.h: Use everywhere __gnu_debug::__base once
      	iterator range valided.
              * include/debug/unordered_map: Likewise.
              * include/debug/multiset.h: Likewise.
              * include/debug/vector: Likewise.
              * include/debug/unordered_set: Likewise.
              * include/debug/deque: Likewise.
              * include/debug/map.h: Likewise.
              * include/debug/string: Likewise.
              * include/debug/list: Likewise.
              * include/debug/multimap.h: Likewise.
              * testsuite/23_containers/util/debug/assign_neg.h: New test cases on
              debug checks performed on container assign operation.
              * testsuite/23_containers/util/debug/construct_neg.h: New test cases
              on debug checks on constructors.
              * testsuite/23_containers/util/debug/insert_neg.h: New test cases on
              debug checks performed on container insert operations.
              * testsuite/23_containers/unordered_map/debug/cont_traits.h,
              debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc,
              construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc,
              insert3_neg.cc, insert4_neg.cc: New.
              * testsuite/23_containers/multimap/debug/cont_traits.h,
              debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc,
              construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc,
              insert3_neg.cc, insert4_neg.cc: Likewise.
              * testsuite/23_containers/set/debug/cont_traits.h,
              debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc,
              construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc,
              insert3_neg.cc, insert4_neg.cc: Likewise.
              * testsuite/23_containers/unordered_multimap/debug/cont_traits.h,
              debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc,
              construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc,
              insert3_neg.cc, insert4_neg.cc: Likewise.
              * testsuite/23_containers/unordered_set/debug/cont_traits.h,
              debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc,
              construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc,
              insert3_neg.cc, insert4_neg.cc: Likewise.
              * testsuite/23_containers/multiset/debug/cont_traits.h,
              debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc,
              construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc,
              insert3_neg.cc, insert4_neg.cc: Likewise.
              * testsuite/23_containers/unordered_multiset/debug/cont_traits.h,
              debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc,
              construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc,
              insert3_neg.cc, insert4_neg.cc: Likewise.
              * testsuite/23_containers/map/debug/cont_traits.h,
              debug_cont_traits.h, construct1_neg.cc, construct2_neg.cc,
              construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc,
              insert3_neg.cc, insert4_neg.cc: Likewise.
              * testsuite/23_containers/vector/debug/cont_traits.h,
              debug_cont_traits.h, assign1_neg.cc, assign2_neg.cc, assign3_neg.cc,
              assign4_neg.cc, construct1_neg.cc, construct2_neg.cc,
              construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc,
              insert3_neg.cc, insert4_neg.cc: Likewise.
              * testsuite/23_containers/deque/debug/cont_traits.h,
              debug_cont_traits.h, assign1_neg.cc, assign2_neg.cc, assign3_neg.cc,
              assign4_neg.cc, construct1_neg.cc, construct2_neg.cc,
              construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc,
              insert3_neg.cc, insert4_neg.cc: Likewise.
      	* testsuite/23_containers/list/debug/cont_traits.h,
              debug_cont_traits.h, assign1_neg.cc, assign2_neg.cc, assign3_neg.cc,
              assign4_neg.cc, construct1_neg.cc, construct2_neg.cc,
              construct3_neg.cc, construct4_neg.cc, insert1_neg.cc, insert2_neg.cc,
              insert3_neg.cc, insert4_neg.cc: Likewise.
              * testsuite/performance/23_containers/range_construct/
      	list_construct1.cc: New, validate performance impact of the patch
      	on the debug mode.
              * testsuite/performance/23_containers/range_construct/
      	list_construct2.cc: Likewise.
              * testsuite/performance/23_containers/range_construct/
      	vector_construct.cc: Likewise.
              * testsuite/performance/23_containers/range_construct/
      	deque_construct.cc: Likewise.
      
      From-SVN: r163628
      Paolo Carlini committed
    • re PR fortran/45439 ([OOP] SELECT TYPE bogus complaint about INTENT) · f08f8b6a
      2010-08-29  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/45439
      	* match.c (gfc_match_select_type): Give the associate-name the
      	FL_VARIABLE attribute.
      
      
      2010-08-29  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/45439
      	* gfortran.dg/select_type_16.f03: New.
      
      From-SVN: r163626
      Janus Weil committed
    • Daily bump. · ae04c688
      From-SVN: r163624
      GCC Administrator committed
  3. 28 Aug, 2010 10 commits
    • mtype.m4 (upcase, [...]): New macros. · 08fd13d4
      	* m4/mtype.m4 (upcase, hasmathfunc, mathfunc_macro): New macros.
      	* m4/fraction.m4: Use new macros to support quad-float types.
      	* m4/set_exponent.m4: Likewise.
      	* m4/spacing.m4: Likewise.
      	* m4/exponent.m4: Likewise.
      	* m4/nearest.m4: Likewise.
      	* m4/norm2.m4: Likewise.
      	* m4/bessel.m4: Likewise.
      	* m4/rrspacing.m4: Likewise.
      	* generated/bessel_r4.c:Regenerated.
      	* generated/bessel_r8.c: Regenerated.
      	* generated/bessel_r10.c: Regenerated.
      	* generated/bessel_r16.c: Regenerated.
      	* generated/exponent_r4.c: Regenerated.
      	* generated/exponent_r8.c: Regenerated.
      	* generated/exponent_r10.c: Regenerated.
      	* generated/exponent_r16.c: Regenerated.
      	* generated/fraction_r4.c: Regenerated.
      	* generated/fraction_r8.c: Regenerated.
      	* generated/fraction_r10.c: Regenerated.
      	* generated/fraction_r16.c: Regenerated.
      	* generated/nearest_r4.c: Regenerated.
      	* generated/nearest_r8.c: Regenerated.
      	* generated/nearest_r10.c: Regenerated.
      	* generated/nearest_r16.c: Regenerated.
      	* generated/norm2_r4.c: Regenerated.
      	* generated/norm2_r8.c: Regenerated.
      	* generated/norm2_r10.c: Regenerated.
      	* generated/norm2_r16.c: Regenerated.
      	* generated/rrspacing_r4.c: Regenerated.
      	* generated/rrspacing_r8.c: Regenerated.
      	* generated/rrspacing_r10.c: Regenerated.
      	* generated/rrspacing_r16.c: Regenerated.
      	* generated/set_exponent_r4.c: Regenerated.
      	* generated/set_exponent_r8.c: Regenerated.
      	* generated/set_exponent_r10.c: Regenerated.
      	* generated/set_exponent_r16.c: Regenerated.
      	* generated/spacing_r4.c: Regenerated.
      	* generated/spacing_r8.c: Regenerated.
      	* generated/spacing_r10.c: Regenerated.
      	* generated/spacing_r16.c: Regenerated.
      
      From-SVN: r163620
      Francois-Xavier Coudert committed
    • * config/ia64/ia64.md (cstorebi4): Fix thinko. · bf321310
      From-SVN: r163618
      Eric Botcazou committed
    • re PR target/45299 (Dwarf information is wrong with optimised code.) · 179ba6b8
              * config/picochip/picochip.c (reorder_var_tracking_notes): This
                function was dropping debug insns which caused PR45299.
      
      From-SVN: r163617
      Hariharan Sandanagobalane committed
    • sse.md (extsuffix): New code attribute. · ee9dd92e
      	* config/i386/sse.md (extsuffix): New code attribute.
      	(sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
      	and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
      	(sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
      	and sse4_1_zero_extendv4qiv4si2.
      	(sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
      	and sse4_1_zero_extendv2qiv2di2.
      	(sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
      	and sse4_1_zero_extendv4hiv4si2.
      	(sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
      	and sse4_1_zero_extendv2hiv2di2.
      	(sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
      	and sse4_1_zero_extendv2siv2di2
      
      	(<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
      	using any_extend code iterator.
      	(*avx_<s>mulv8hi3_highpart): Macroize insn from
      	*avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
      	(*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
      
      	* config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
      	gen_sse4_1_sign_extend* functions.
      	(struct builtin_description bdesc_args): Ditto.
      
      From-SVN: r163616
      Uros Bizjak committed
    • simplify.c (gfc_simplify_bessel_n2): Fix indention and argument type. · 4c6e913c
      fortran/
      2010-07-21  Steven G. Kargl  <kargl@gcc.gnu.org>
      
              * simplify.c (gfc_simplify_bessel_n2): Fix indention
              and argument type.
      
      testsuite/
      2010-07-21  Steven G. Kargl  <kargl@gcc.gnu.org>
                  Tobias Burnus  <burnus@net-b.de>
      
              * gfortran.dg/bessel_7.f90: Decrease required precision.
      
      
      Co-Authored-By: Tobias Burnus <burnus@net-b.de>
      
      From-SVN: r163615
      Steven G. Kargl committed
    • mk-kinds-h.sh: Disable REAL(16) if REAL(10) is available. · e4ff7a56
      2010-08-28  Tobias Burnus  <burnus@net-b.de>
      
              * mk-kinds-h.sh: Disable REAL(16) if REAL(10) is available.
      
      From-SVN: r163612
      Tobias Burnus committed
    • re PR libfortran/45436 (Failed to bootstrap) · e84f122f
      	PR fortran/45436
      	* trans-types.c (gfc_init_kinds): Disable TFmode.
      
      From-SVN: r163611
      Francois-Xavier Coudert committed
    • Fix PR45422 · f06e400f
      From-SVN: r163610
      Xinliang David Li committed
    • sh-protos.h (sh_function_arg): Delete. · b64336b8
      	* config/sh/sh-protos.h (sh_function_arg): Delete.
      	(sh_function_arg_advance): Delete.
      	* config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
      	(PASS_IN_REG_P): Eliminate cast.
      	* config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
      	const_tree and a bool.
      	(sh_function_arg): Likewise.
      	(sh_output_mi_thunk): Call sh_function_arg_advance) and
      	sh_function_arg.
      	(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
      
      From-SVN: r163607
      Nathan Froyd committed
    • Daily bump. · 79ad70f9
      From-SVN: r163606
      GCC Administrator committed
  4. 27 Aug, 2010 6 commits
    • sh.c (push_regs): Emit movml for interrupt handler when possible. · 91a19652
      	* config/sh/sh.c (push_regs): Emit movml for interrupt handler
      	when possible.
      	(sh_expand_epilogue): Likewise.
      	* config/sh/sh.md (movml_push_banked): New insn.
      	(movml_pop_banked): Likewise.
      	* gcc.dg/attr-isr.c: Skip test for -m2a.  Don't	run on sh2a*-*-*.
      
      
      Co-Authored-By: Kaz Kojima <kkojima@gcc.gnu.org>
      
      From-SVN: r163602
      Naveen H.S committed
    • vfp.md (arm_movsi_vfp, [...]): Set attribute "insn". · f8045c41
      	* config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
      	thumb2_movsf_vfp): Set attribute "insn".
      	* config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
      	not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
      	thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
      	arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
      	arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
      	thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
      	thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
      	movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
      	if_not_move, if_shift_move, if_move_shift, if_shift_shift,
      	if_not_arith, if_arith_not, cond_move_not): Likewise.
      
      From-SVN: r163601
      Bernd Schmidt committed
    • genautomata.c (gen_regexp_repeat, [...]): Use the string found in vector element… · c1cb371a
      genautomata.c (gen_regexp_repeat, [...]): Use the string found in vector element 0 rather than the original string when...
      
      	* genautomata.c (gen_regexp_repeat, gen_regexp_allof,
      	gen_regexp_oneof, gen_regexp_sequence): Use the string found
      	in vector element 0 rather than the original string when there's
      	only one element.
      	(gen_regexp): Remove extra semicolon.
      
      From-SVN: r163600
      Bernd Schmidt committed
    • re PR fortran/45432 (gfortran.dg/allocate_alloc_opt_9.f90: Segfault due to invalid FREE) · b052cbd0
      2010-08-27  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/45432
      	* match.c (gfc_match_allocate): Avoid double free on error.
      
      From-SVN: r163599
      Janus Weil committed
    • Improve floating point conversions on powerpc · 7042fe5e
      From-SVN: r163598
      Michael Meissner committed
    • re PR fortran/32049 (Support on x86_64 also kind=16) · a3c85b74
      	PR fortran/32049
      
      	* gfortran.h (gfc_real_info): Add c_float128 field.
      	* mathbuiltins.def: Indicate which builtins are const.
      	* trans-types.h (float128_type_node, complex_float128_type_node,
      	gfc_real16_is_float128): New variables.
      	* trans-types.c (float128_type_node, complex_float128_type_node,
      	gfc_real16_is_float128): New variables.
      	(gfc_init_kinds): Allow TFmode.
      	(gfc_build_real_type): Mark __float128 types as such.
      	(gfc_init_types): Initialize float128_type_node and
      	complex_float128_type_node
      	* f95-lang.c (gfc_init_builtin_functions): Adjust for new
      	argument of OTHER_BUILTIN macro.
      	* trans-intrinsic.c (gfc_intrinsic_map_t): Likewise.
      	(builtin_decl_for_precision): Special case for __float128.
      	(builtin_decl_for_float_kind): Likewise.
      	(define_quad_builtin): New function.
      	(gfc_build_intrinsic_lib_fndecls): Create all __float128
      	library decls if necessary. Store them in the real16_decl and
      	complex16_decl builtin map fields.
      	(gfc_get_intrinsic_lib_fndecl): Handle q-suffixed __float128
      	library function names.
      
      	* gfortran.dg/random_seed_1.f90: Adjust test.
      	* gfortran.dg/float128_1.f90: New test.
      
      From-SVN: r163597
      Francois-Xavier Coudert committed