1. 26 Oct, 2015 14 commits
    • Fix race on temp file in gfortran tests. · 51022ff7
      2015-10-26  Christophe Lyon  <christophe.lyon@linaro.org>
      
      	* gfortran.dg/chmod_1.f90: Add suffix to the temporary filename to
      	make it unique per testcase.
      	* gfortran.dg/chmod_2.f90: Likewise.
      	* gfortran.dg/chmod_3.f90: Likewise.
      	* gfortran.dg/direct_io_8.f90: Likewise.
      	* gfortran.dg/f2003_inquire_1.f03: Likewise.
      	* gfortran.dg/f2003_io_1.f03: Likewise.
      	* gfortran.dg/f2003_io_2.f03: Likewise.
      	* gfortran.dg/f2003_io_8.f03: Likewise.
      	* gfortran.dg/inquire_size.f90: Likewise.
      	* gfortran.dg/namelist_66.f90: Likewise.
      	* gfortran.dg/namelist_82.f90: Likewise.
      	* gfortran.dg/namelist_87.f90: Likewise.
      	* gfortran.dg/open_negative_unit_1.f90: Likewise.
      	* gfortran.dg/open_new.f90: Likewise.
      	* gfortran.dg/stat_1.f90: Likewise.
      	* gfortran.dg/stat_2.f90: Likewise.
      	* gfortran.dg/streamio_15.f90: Likewise.
      	* gfortran.dg/unf_read_corrupted_1.f90: Likewise.
      
      From-SVN: r229319
      Christophe Lyon committed
    • [multiple changes] · a9fdbccb
      2015-10-26  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch12.adb (Analyze_Formal_Package_Declaration): Do not set
      	Box_Present when the formal part is (others => <>) even though
      	it is equivalent to a formal part (<>), because ASIS tools depend
      	on the syntactic setting of this flag.
      
      2015-10-26  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* sem_ch13.adb: Minor reformatting.
      	* einfo.ads: Minor typo.
      
      2015-10-26  Joel Brobecker  <brobecker@adacore.com brobecker>
      
      	* adaint.c (__gnat_open_new_temp): Use mkstemp on Android.
      
      From-SVN: r229318
      Arnaud Charlet committed
    • [optabs.c] Fix PR 67989: Handle const0_rtx target in expand_atomic_compare_and_swap · f8ac2f07
      	PR middle-end/67989
      	* optabs.c (expand_atomic_compare_and_swap): Handle case when
      	ptarget_oval or ptarget_bool are const0_rtx.
      
      	* g++.dg/pr67989.C: New test.
      
      From-SVN: r229317
      Kyrylo Tkachov committed
    • sem_ch12.adb (Analyze_Formal_Package_Declaration): Code clean up. · 8c14315a
      
      2015-10-26  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch12.adb (Analyze_Formal_Package_Declaration): Code clean up.
      	* sem_ch13.adb (Check_Inherited_Indexing): New inner procedure
      	of Check_Indexing_Functions, to verify that a derived type with an
      	Indexing aspect is not inheriting such an aspect from an ancestor.
      	(Check_Indexing_Functions): Call Check_Inherited_Indexing within
      	an instance.
      
      From-SVN: r229316
      Ed Schonberg committed
    • Fix race on temp file in gfortran streamio_*.f90 tests · 013a83cc
      	* gfortran.dg/streamio_4.f90, gfortran.dg/streamio_5.f90,
      	* gfortran.dg/streamio_6.f90, gfortran.dg/streamio_7.f90,
      	* gfortran.dg/streamio_10.f90, gfortran.dg/streamio_12.f90: Add
      	suffix to the temporary filename to make it unique per testcase.
      
      From-SVN: r229315
      Maxim Kuvyrkov committed
    • [multiple changes] · e96b7045
      2015-10-26  Gary Dismukes  <dismukes@adacore.com>
              
              * a-reatim.adb, contracts.adb, contracts.ads: Minor reformatting and
              typo corrections.
      
      2015-10-26  Ed Schonberg  <schonberg@adacore.com>
              
              * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): Do not
              recheck the consistency betwen the freeze point and the end of
              declarations for the expression in an aspect specification,
              because it was done already in the analysis of the generic.
              Furthermore, the delayed analysis of an aspect of the instance
              may produce spurious errors when the generic is a child unit
              that references entities in the parent (which might not be in
              scope at the freeze point of the instance).
      
      2015-10-26  Yannick Moy  <moy@adacore.com>
              
              * sem_res.adb (Resolve_Call): Issue info message
              instead of warning when call cannot be inlined in GNATprove mode.
      
      2015-10-26  Arnaud Charlet  <charlet@adacore.com>
              
              * exp_ch6.adb (Build_Procedure_Form): Use _result as the
              name of the extra parameter, cleaner than a random temp name.
              * gnat1drv.adb (Gnat1drv): Code clean up.
      
      From-SVN: r229314
      Arnaud Charlet committed
    • 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 11 commits