1. 21 Jul, 2010 4 commits
  2. 20 Jul, 2010 24 commits
  3. 19 Jul, 2010 12 commits
    • config.gcc (LIBC_GLIBC, [...]): Move constants to top level. · 2c8f43e6
      	* config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
      	to top level.
      	* config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
      	definitions ...
      	* config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
      	New macro.
      	* config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
      
      From-SVN: r162315
      Maxim Kuvyrkov committed
    • gengtype.c (start_root_entry): New function, split out from write_root. · b08e0339
      gcc/
      	* gengtype.c (start_root_entry): New function, split out from
      	write_root.  Check whether V is null and raise an error if so.
      	(write_field_root): Check for V being null.  Don't raise an error here;
      	set V to null instead.
      	(write_root): Update comment above function.  Use start_root_entry.
      
      From-SVN: r162314
      Richard Sandiford committed
    • re PR fortran/42385 ([OOP] poylmorphic operators do not work) · 974df0f8
      2010-07-19  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/42385
      	* interface.c (matching_typebound_op): Add argument for the
      	return of the generic name for the procedure.
      	(build_compcall_for_operator): Add an argument for the generic
      	name of an operator procedure and supply it to the expression.
      	(gfc_extend_expr, gfc_extend_assign): Use the generic name in
      	calls to the above procedures.
      	* resolve.c (resolve_typebound_function): Catch procedure
      	component calls for CLASS objects, check that the vtable is
      	complete and insert the $vptr and procedure components, to make
      	the call.
      	(resolve_typebound_function): The same.
      	* trans-decl.c (gfc_trans_deferred_vars): Do not deallocate
      	an allocatable scalar if it is a result.
      
      
      2010-07-19  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/42385
      	* gfortran.dg/class_defined_operator_1.f03 : New test.
      
      From-SVN: r162313
      Paul Thomas committed
    • slp-perm-1.c (main): Make sure loops aren't vectorized. · be30e7b2
      	* gcc.dg/vect/slp-perm-1.c (main): Make sure loops aren't vectorized.
      	* gcc.dg/vect/slp-perm-2.c (main): Likewise.
      	* gcc.dg/vect/slp-perm-3.c (main): Likewise.  Fix loop limit.
      	* gcc.dg/vect/slp-perm-4.c (main): Fix loop limit.
      
      From-SVN: r162311
      Peter Bergner committed
    • Fix PR44932 · e74780a3
      From-SVN: r162310
      Xinliang David Li committed
    • re PR rtl-optimization/44941 (ICE: RTL check: expected code 'mem', have 'reg' in… · 8b4c365c
      re PR rtl-optimization/44941 (ICE: RTL check: expected code 'mem', have 'reg' in emit_block_move_hints, at expr.c:1189)
      
      2010-07-19  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/44941
      	* expr.c (emit_block_move_hints): Move zero size check first.
      	Move asserts to more useful places.
      	* calls.c (load_register_parameters): Check for zero size.
      
      	* gcc.c-torture/compile/pr44941.c: New testcase.
      
      From-SVN: r162308
      Richard Guenther committed
    • re PR c++/44969 ([C++0x] <type_traits> std::is_constructible broken for fundamental types.) · ab73eba8
      	PR c++/44969
      	* tree.c (cp_tree_equal): Compare type of *CAST_EXPR.
      	* pt.c (iterative_hash_template_arg): Hash type of *CAST_EXPR.
      
      From-SVN: r162307
      Jason Merrill committed
    • Reliably change cgraph_state to SSA form. · 157be8f6
      From-SVN: r162306
      Richard Henderson committed
    • Remove gfortran.dg/data_implied_do_2.f90. · ca90e7f6
      2010-07-19  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR fortran/44353
      	* gfortran.dg/data_implied_do_2.f90: Removed.
      
      From-SVN: r162305
      H.J. Lu committed
    • re PR fortran/44953 (FAIL: gfortran.dg/char4_iunit_1.f03 * execution test) · 746e6327
      2010-07-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libfortran/44953
      	* io/unix.c (mem_alloc_w4): Return gfc_char4_t instead of char type
      	pointer. (mem_write4): Remove cast to gfc_char4_t.
      	* io/transfer.c (write_block): Use a gfc_char4_t pointer.
      	(memset4): New helper function. (next_record_w): Use new helper
      	function rather than sset for internal units.  Don't attempt to pad
      	with spaces if it is not needed.
      	* io/unix.h: Update prototype for mem_alloc_w4.
      	* io/write.c (memset4): Use gfc_char4_t pointer and chracter type.
      	Don't use multiply by 4 to compute offset. (memcpy4): Likewise.
      	(write_default_char4): Use a gfc_char4_t pointer and update memset4
      	and memcpy calls. (write_a): Likewise. (write_l): Likewise.
      	(write_boz): Likewise. (write_decimal): Likewise. (write_x): Likewise.
      	(write_char): Add support for character(kind=4) internal units that
      	was previously missed. (write_integer): Use a gfc_char4_t pointer and
      	update memset4 and memcpy calls. (write_character): Likewise.
      	(write_separator): Add support for character(kind=4) internal units
      	that was previously missed.
      	* write_float.def (output_float): Use a gfc_char4_t pointer and
      	update memset4 and memcpy calls. (write_infnan): Likewise.
      	(output_float_FMT_G_): Likewise.
      
      From-SVN: r162304
      Jerry DeLisle committed
    • re PR c++/44969 ([C++0x] <type_traits> std::is_constructible broken for fundamental types.) · d555b1c7
      /cp
      2010-07-19  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/44969
      	* typeck.c (build_x_compound_expr_from_list): Add tsubst_flags_t
      	parameter.
      	* cp-tree.h: Adjust declaration.
      	* init.c (perform_member_init): Adjust caller.
      	* decl.c (grok_reference_init, cp_finish_decl): Likewise.
      	* typeck2.c (store_init_value): Likewise.
      	(build_functional_cast): Pass complain argument to
      	build_x_compound_expr_from_list.
      
      /testsuite
      2010-07-19  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/44969
      	* g++.dg/template/sfinae23.C: New.
      
      From-SVN: r162303
      Paolo Carlini committed
    • postreload.c (reload_combine_closest_single_use): Ignore the number of uses for DEBUG_INSNs. · b1d5eee8
      	* postreload.c (reload_combine_closest_single_use): Ignore the
      	number of uses for DEBUG_INSNs.
      	(fixup_debug_insns): New static function.
      	(reload_combine_recognize_const_pattern): Use it.  Don't let the
      	main loop be affected by DEBUG_INSNs.
      	Really disallow moving adds past a jump insn.
      	(reload_combine_recognize_pattern): Don't update use_ruid here.
      	(reload_combine_note_use): Do it here.
      	(reload_combine): Use control_flow_insn_p rather than JUMP_P.
      
      From-SVN: r162301
      Bernd Schmidt committed