1. 29 Mar, 2019 9 commits
  2. 28 Mar, 2019 17 commits
  3. 27 Mar, 2019 14 commits
    • re PR fortran/85537 ([F08] Invalid memory reference at runtime when calling… · 7076b27b
      re PR fortran/85537 ([F08] Invalid memory reference at runtime when calling subroutine through procedure pointer)
      
      fix PR 85537
      
      2019-03-27  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/85537
      	* expr.c (gfc_check_assign_symbol): Reject internal and dummy procedures
      	in procedure pointer initialization.
      
      2019-03-27  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/85537
      	* gfortran.dg/dummy_procedure_11.f90: Fix test case.
      	* gfortran.dg/pointer_init_11.f90: New test case.
      
      From-SVN: r269980
      Janus Weil committed
    • re PR target/85667 (ms_abi rules aren't followed when returning short structs with float values) · 303d6cb2
      	PR target/85667
      	* config/i386/i386.c (ix86_function_value_1): Call the newly added
      	function for 32-bit MS_ABI.
      	(function_value_ms_32): New function.
      
      testsuite/ChangeLog:
      
      	PR target/85667
      	* gcc.target/i386/pr85667-5.c: New testcase.
      	* gcc.target/i386/pr85667-6.c: New testcase.
      
      From-SVN: r269979
      Mateusz B committed
    • pr81740-2.c: Require vect_hw_misalign. · 1509905e
      2019-03-27  Bill Schmidt  <wschmidt@linux.ibm.com>
      
      	* gcc.dg/vect/pr81740-2.c: Require vect_hw_misalign.
      
      From-SVN: r269978
      Bill Schmidt committed
    • PR c++/89831 - error with qualified-id in const member function. · dd03c093
      Since the fix for 15272 we were remembering the wrong function to use at
      instantiation time, because the type of the SCOPE_REF didn't reflect the
      cv-quals of 'this'.  Conveniently, we can fix this by simplifying the code.
      
      	* semantics.c (finish_non_static_data_member): Use object cv-quals
      	in scoped case, too.
      
      From-SVN: r269977
      Jason Merrill committed
    • Fix ChangeLog · fad17023
      From-SVN: r269976
      Jason Merrill committed
    • PR c++/89241 - ICE with lambda in template parameter list. · 03bed153
      We were getting confused by a lambda in template definition context that
      isn't actually in the scope of any templated entity.  Fixed by telling
      type_dependent_expression_p that such a lambda is type-dependent even if we
      can't tell that from its closure type.  I've also restored the error for
      defining a non-lambda class in a default template argument, and for a lambda
      befor C++20.
      
      	* parser.c (cp_parser_lambda_expression): Also reject a lambda in a
      	template parameter list before C++20.
      	* pt.c (type_dependent_expression_p): True for LAMBDA_EXPR.
      	* semantics.c (begin_class_definition): Restore error about defining
      	non-lambda class in template parm list.
      
      From-SVN: r269972
      Jason Merrill committed
    • team.c (gomp_team_start): Initialize pool->threads[0]. · bbf1efe1
      libgomp/ChangeLog:
      
      	* team.c (gomp_team_start): Initialize pool->threads[0].
      
      From-SVN: r269971
      Kevin Buettner committed
    • Fix scc clobber in movdi_symbol. · c2709ec4
      2019-03-27  Andrew Stubbs  <ams@codesourcery.com>
      
      	gcc/
      	* config/gcn/gcn.md (CC_SAVE_REG): New constant.
      	(movdi): Call gen_movdi_symbol_save_scc.
      	(gen_movdi_symbol_save_scc): New insn and split.
      
      From-SVN: r269970
      Andrew Stubbs committed
    • re PR rtl-optimization/89313 (ICE in process_alt_operands, at lra-constraints.c:2962) · 6732373e
      gcc/
      	PR rtl-optimization/89313
      	* function.c (matching_constraint_num): New static function.
      	(match_asm_constraints_1): Use it.  Fixup white space and comment.
      	Don't replace inputs with non-matching constraints which conflict
      	with early clobber outputs.
      
      gcc/testsuite/
      	PR rtl-optimization/89313
      	* gcc.dg/pr89313.c: New test.
      
      From-SVN: r269969
      Peter Bergner committed
    • re PR rtl-optimization/87761 ([MIPS] New FAIL: gcc.target/mips/fix-r4000-10.c … · 52295c2d
      re PR rtl-optimization/87761 ([MIPS] New FAIL: gcc.target/mips/fix-r4000-10.c   -O1 start with r265398)
      
      	PR rtl-optimization/87761
      	PR rtl-optimization/89826
      	* regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
      	slightly later.
      	(pass_cprop_hardreg::execute): Call df_analyze after adding the
      	note problem to get REG_DEAD/REG_UNUSED notes updated.
      
      	PR rtl-optimization/87761
      	PR rtl-optimization/89826
      	* gcc.c-torture/execute/pr89826.c: New test.
      
      From-SVN: r269967
      Jeff Law committed
    • PR c++/86932 - missed SFINAE with empty pack. · ce460995
      The issue here was that when processing the explicit template args in
      fn_type_unification we added an empty argument pack for the parameter pack,
      so we never tried to do any deduction for it, and therefore never looked at
      its type.  We need that empty pack behavior for partial ordering, but we
      don't want it here, so let's make it conditional on tf_partial.
      
      	* pt.c (coerce_template_parms): Don't add an empty pack if
      	tf_partial.
      	(fn_type_unification): Pass tf_partial to coerce_template_parms.
      
      From-SVN: r269965
      Jason Merrill committed
    • 20190327-1.c: New testcase. · 079c81da
      2019-03-27  Richard Biener  <rguenther@suse.de>
      
      	* gcc.dg/torture/20190327-1.c: New testcase.
      
      From-SVN: r269964
      Richard Biener committed
    • re PR fortran/88247 (ICE in get_array_ctor_var_strlen, at fortran/trans-array.c:2068) · d5f48c7c
      2019-03-27  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/88247
      	* expr.c (is_subref_array): Permit substrings to be detected
      	as subref arrays.
      	* trans-array.c (get_array_ctor_var_strlen): Obtain the length
      	of deferred length strings. Handle substrings with a NULL end
      	expression.
      	(trans_array_constructor): Remove an unnecessary blank line.
      	(gfc_conv_scalarized_array_ref): Skip to label 'done' if 'decl'
      	is a pointer array.
      	(get_array_charlen): If the expression is an array, convert the
      	first element of the constructor and use its string length. Get
      	a new charlen if necessary.
      	(gfc_conv_expr_descriptor): Call 'get_array_charlen' for array
      	constructor expressions. If the ss_info string length is
      	available, use that to set the span of character arrays.
      	* trans-expr.c (gfc_get_expr_charlen): Handle substrings
      	* trans-stmt.c (trans_associate_var): Set the pointer array
      	flag for variable targets and constant array constructors. Take
      	care not to reset the string length or the span in the case of
      	expressions that are not converted as direct by reference.
      
      2019-03-27  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/88247
      	* gfortran.dg/associate_47.f90: New test.
      
      From-SVN: r269962
      Paul Thomas committed
    • re PR debug/89463 (debug information for iterator of an empty loop is gone (at -O3)) · 6461f211
      2019-03-27  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/89463
      	* tree-ssa-dce.c (remove_dead_stmt): Take output vector to
      	queue edges to remove.
      	(eliminate_unnecessary_stmts): Remove dead PHIs alongside
      	dead stmts.  Delay edge removal until PHIs are removed to
      	make debug-stmt creation not confused by seemingly degenerate
      	PHIs.
      
      	* gcc.dg/guality/pr89463.c: New testcase.
      
      From-SVN: r269961
      Richard Biener committed