1. 26 Oct, 2015 8 commits
    • function.h (MINIMUM_METHOD_BOUNDARY): New macro. · c1fffdf1
      2015-10-26  Christian Bruel  <christian.bruel@st.com>
      
      	* function.h (MINIMUM_METHOD_BOUNDARY): New macro.
      	* cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
      	* cp/method.c (implicitly_declare_fn): Likewise.
      	* cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
      	* java/class.c (add_method_1): Likewise.
      
      From-SVN: r229313
      Christian Bruel committed
    • alloc-pool.h (base_pool_allocator): Use placement new. · 5929c659
      2015-10-26  Richard Biener  <rguenther@suse.de>
      
      	* alloc-pool.h (base_pool_allocator): Use placement new.
      	(base_pool_allocator::remove): Likewise.  Compute size outside of
      	flag_checking.
      
      From-SVN: r229312
      Richard Biener committed
    • Move int rounding folds to match.pd · 543a9bcd
      Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi.
      
      gcc/
      	* builtins.c (do_real_to_int_conversion): New function.
      	(fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
      	(fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
      	arguments here.
      	* match.pd: Add rules previously handled by fold_fixed_mathfn
      	and fold_builtin_int_roundingfn.
      
      gcc/testsuite/
      	* gcc.dg/torture/builtin-minmax-1.c: Don't run at -O0.
      
      From-SVN: r229311
      Richard Sandiford committed
    • Use macros to define built-in operator lists · 257aecb4
      No functional change.  This should be a slight readability improvement
      on its own, but becomes more important with the next patch.
      
      Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi.
      
      gcc/
      	* match.pd: Use macros to define built-in operator lists.
      
      From-SVN: r229310
      Richard Sandiford committed
    • Fix scripto · 0eb72c5d
      From-SVN: r229309
      Richard Sandiford committed
    • Move cexp simplifications to match.pd · 96285749
      This required reinstating support for captures in the result
      of a simplification.  That part (genmatch.c) is by Richard B.
      
      Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi.
      
      gcc/
      2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
      	    Richard Biener  <rguenther@suse.de>
      
      	* genmatch.c (dt_simplify::gen): Skip captures that are
      	part of the result.
      	(parser::parse_expr): Allow captures in results too.
      	* builtins.c (fold_builtin_cexp): Delete.
      	(fold_builtin_1): Handle constant cexp arguments here.
      	* match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
      
      Co-Authored-By: Richard Biener <rguenther@suse.de>
      
      From-SVN: r229308
      Richard Sandiford committed
    • ENABLE_CHECKING refactoring: pool allocators · 9df01367
      gcc/
      	* alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
      	conditional compilation.
      	(base_pool_allocator::remove): Use flag_checking.
      
      From-SVN: r229307
      Mikhail Maltsev committed
    • Daily bump. · e51b667f
      From-SVN: r229306
      GCC Administrator committed
  2. 25 Oct, 2015 9 commits
    • re PR fortran/67171 (sourced allocation) · 6a4236ce
      2015-01-25  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/67171
      	* trans-array.c (structure_alloc_comps): On deallocation of
      	class components, reset the vptr to the declared type vtable
      	and reset the _len field of unlimited polymorphic components.
      	*trans-expr.c (gfc_find_and_cut_at_last_class_ref): Bail out on
      	allocatable component references to the right of part reference
      	with non-zero rank and return NULL.
      	(gfc_reset_vptr): Simplify this function by using the function
      	gfc_get_vptr_from_expr. Return if the vptr is NULL_TREE.
      	(gfc_reset_len): If gfc_find_and_cut_at_last_class_ref returns
      	NULL return.
      	* trans-stmt.c (gfc_trans_allocate): Rely on the use of
      	gfc_trans_assignment if expr3 is a variable expression since
      	this deals correctly with array sections.
      
      2015-01-25  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/67171
      	* gfortran.dg/allocate_with_source_12.f03: New test
      
      	PR fortran/61819
      	* gfortran.dg/allocate_with_source_13.f03: New test
      
      	PR fortran/61830
      	* gfortran.dg/allocate_with_source_14.f03: New test
      
      From-SVN: r229303
      Paul Thomas committed
    • som.h (EH_FRAME_THROUGH_COLLECT2): Define. · 9621d524
      	* config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
      
      From-SVN: r229302
      John David Anglin committed
    • re PR middle-end/68079 (hppa: pointers to method types need canonicalization before comparison) · a89905fd
      	PR middle-end/68079
      	* dojump.c (do_compare_and_jump): Canonicalize both function and
      	method types.
      
      From-SVN: r229299
      John David Anglin committed
    • Wno-frame-address.C: Skip on hppa*-*-*. · fa788aea
      	* g++.dg/Wno-frame-address.C: Skip on hppa*-*-*.
      
      From-SVN: r229298
      John David Anglin committed
    • re PR target/68084 (Inverted conditions generated for x86 inline assembly "flag… · 91163383
      re PR target/68084 (Inverted conditions generated for x86 inline assembly "flag output constraints")
      
      	PR target/68084
      	* config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
      	for =@ccae.
      
      testsuite/ChangeLog:
      
      	PR target/68084
      	* gcc.target/i386/pr68084.c: New test.
      
      From-SVN: r229296
      Uros Bizjak committed
    • Added missing testcases of r229294 for patch of · f2f5814e
      PR fortran/66927.
      
      From-SVN: r229295
      Andre Vehreschild committed
    • re PR fortran/66927 (ICE in gfc_conf_procedure_call) · b8ac4f3b
      gcc/fortran/ChangeLog:
      
      2015-10-25  Andre Vehreschild  <vehre@gcc.gnu.org>
      
      	PR fortran/66927
      	PR fortran/67044
      	* trans-array.c (build_array_ref): Modified call to 
      	gfc_get_class_array_ref to adhere to new interface.
      	(gfc_conv_expr_descriptor): For one-based arrays that
      	are filled by a loop starting at one the start index of the
      	source array has to be mangled into the offset.
      	* trans-expr.c (gfc_get_class_array_ref): When the tree to get
      	the _data component is present already, add a way to supply it.
      	(gfc_copy_class_to_class): Allow to copy to a derived type also.
      	* trans-stmt.c (gfc_trans_allocate): Do not conv_expr_descriptor
      	for functions returning	a class or derived object. Get the
      	reference instead.
      	* trans.h: Interface change of gfc_get_class_array_ref.
      
      gcc/testsuite/ChangeLog:
      
      2015-10-25  Andre Vehreschild  <vehre@gmx.de>
      
      	PR fortran/66927
      	PR fortran/67044
      	* gfortran.dg/allocate_with_source_10.f08: New test.
      	* gfortran.dg/allocate_with_source_11.f08: New test.
      	* gfortran.dg/class_array_15.f03: Changed count of expected
      	_builtin_frees to 11. One step of temporaries is spared, therefore
      	the allocatable component of that temporary is not to be freeed.
      
      From-SVN: r229294
      Andre Vehreschild committed
    • Daily bump. · f63df137
      From-SVN: r229293
      GCC Administrator committed
    • Implement C++17 std::invoke and LWG DR 2219 · 93e95400
      	* include/std/functional (__invoke_impl): New overloads.
      	(__invoke): Replace with a single function calling __invoke_impl.
      	(invoke): Add C++17 std::invoke.
      	(reference_wrapper::operator()): Qualify call to __invoke.
      	(_Mem_fn_traits_base, _Mem_fn_traits): Remove unused typedefs.
      	(_Mem_fn_base): Remove unused typedefs and implement call operator in
      	terms of __invoke.
      	* include/std/future (__future_base::_Async_state_commonV2): Do not
      	pass reference_wrapper as object argument to call_once.
      	* include/std/type_traits (result_of): Define nested __invoke_type.
      	Handle reference_wrapper as per LWG 2219.
      	* testsuite/20_util/bind/ref_neg.cc: Adjust dg-error directives.
      	* testsuite/20_util/function_objects/mem_fn/55463.cc: Remove tests
      	using member functions of reference_wrapper.
      
      From-SVN: r229290
      Jonathan Wakely committed
  3. 24 Oct, 2015 6 commits
  4. 23 Oct, 2015 17 commits