1. 03 Apr, 2013 6 commits
    • re PR c/19449 (__builtin_constant_p cannot resolve to const when optimizing) · 4e7d7b3d
      	PR c/19449
      	* tree.h (force_folding_builtin_constant_p): New decl.
      	* builtins.c (force_folding_builtin_constant_p): New variable.
      	(fold_builtin_constant_p): Fold immediately also if
      	force_folding_builtin_constant_p.
      
      	* c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
      	argument.  If set, or it temporarily for parsing of the first
      	argument into force_folding_builtin_constant_p.
      	(c_parser_postfix_expression): Adjust callers.
      
      	* gcc.c-torture/execute/pr19449.c: New test.
      
      From-SVN: r197393
      Jakub Jelinek committed
    • re PR tree-optimization/56812 (Simple loop is not SLP-vectorized after r196872) · e6c9d234
      2013-04-03  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/56812
      	* tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
      	DRs of the same interleaving chain are independent.
      
      	* g++.dg/vect/slp-pr56812.cc: New testcase.
      
      From-SVN: r197390
      Richard Biener committed
    • re PR fortran/56284 ([OOP] ICE with alternate return in type-bound procedure) · 9362a03b
      2013-04-03  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/56284
      	PR fortran/40881
      	* decl.c (gfc_match_formal_arglist): Warn about alternate-return
      	arguments.
      	* interface.c (check_dummy_characteristics): Return if symbols are NULL.
      
      2013-04-03  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/56284
      	PR fortran/40881
      	* gfortran.dg/altreturn_8.f90: New.
      	* gfortran.dg/altreturn_2.f90: Add -std=legacy.
      	* gfortran.dg/intrinsic_actual_3.f90: Ditto.
      	* gfortran.dg/invalid_interface_assignment.f90: Ditto.
      
      From-SVN: r197389
      Janus Weil committed
    • re PR c++/56821 (Unable to overload with references to 'this'.) · e0f0935b
      	PR c++/56821
      	* mangle.c (write_function_type): Mangle ref-qualifier.
      	(write_nested_name): Likewise.
      	(canonicalize_for_substitution): Preserve ref-qualifier.
      	(write_type): Likewise.
      
      From-SVN: r197386
      Jason Merrill committed
    • Daily bump. · fd541994
      From-SVN: r197384
      GCC Administrator committed
    • exception (get_terminate(), [...]): Declare. · dca77a8a
      	* libsupc++/exception (get_terminate(), get_unexpected()): Declare.
      	* libsupc++/eh_terminate.cc (get_terminate() , set_unexpected()):
      	Define.
      	(set_terminate(terminate_handler)): Set atomically.
      	(set_unexpected(terminate_handler)): Likewise.
      	* libsupc++/new (get_new_handler()): Declare.
      	* libsupc++/new_handler.cc (get_new_handler()): Define.
      	(set_new_handler(new_handler)): Set atomically.
      	(__new_handler): Use internal linkage.
      	* libsupc++/new_op.cc (operator new): Use get_new_handler().
      	* libsupc++/new_opnt.cc (operator new): Likewise.
      	* acinclude.m4: Bump libtool_VERSION to 6:19:0.
      	* configure: Regenerate.
      	* libsupc++/Makefile.am: Compile above files with -std=gnu++11.
      	* libsupc++/Makefile.in: Regenerate.
      	* config/abi/pre/gnu.ver: Add new exports.
      	* doc/xml/manual/status_cxx2011.xml: Update.
      	* testsuite/18_support/headers/exception/synopsis.cc: Check accessors
      	for handlers.
      	* testsuite/18_support/headers/new/synopsis.cc: Likewise.
      	* testsuite/18_support/new_handler.cc: New.
      	* testsuite/18_support/terminate_handler.cc: New.
      	* testsuite/18_support/unexpected_handler.cc: New.
      
      From-SVN: r197380
      Jonathan Wakely committed
  2. 02 Apr, 2013 25 commits
  3. 01 Apr, 2013 9 commits
    • semantics.c (maybe_constant_value): Check instantiation_dependent_expression_p. · 2ad8cf26
      	* semantics.c (maybe_constant_value): Check
      	instantiation_dependent_expression_p.
      	* pt.c (build_non_dependent_expr): Don't check it here.
      
      From-SVN: r197327
      Jason Merrill committed
    • re PR c++/56772 (placement new operator does not work inside function template for array types.) · 879b0a1d
      	PR c++/56772
      	* init.c (build_new): Don't try to process an array initializer
      	at template definition time.
      
      From-SVN: r197326
      Jason Merrill committed
    • re PR c++/56793 (ICE with scoped enum) · c53d966d
      	PR c++/56793
      	* typeck.c (finish_class_member_access_expr): Handle enum scope.
      
      From-SVN: r197325
      Jason Merrill committed
    • re PR c++/56794 (C++11 Error in range-based for with parameter pack array) · 570e2ca0
      	PR c++/56794
      	* parser.c (cp_parser_range_for): Don't try to do auto deduction
      	in a template if the type of the range is incomplete.
      
      From-SVN: r197324
      Jason Merrill committed
    • re PR fortran/56660 (Fails to read NAMELIST with certain form array syntax) · 123d7a94
      2013-04-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR fortran/56660
      	* gfortran.dg/namelist_82.f90:  New test.
      
      From-SVN: r197322
      Jerry DeLisle committed
    • re PR fortran/56660 (Fails to read NAMELIST with certain form array syntax) · ba829325
      2013-04-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libfortran/56660
      	* io/list_read.c (nml_read_obj): Do not reset the read error flag
      	inside nml_read_obj. If the read error flag is found set just exit.
      	Fix some whitespace on comments.
      	(nml_read_obj_data): Reset the read error flag before the first call
      	to nml_read_object.
      
      From-SVN: r197321
      Jerry DeLisle committed
    • call.c (add_function_candidate): Take the address of 'this' here. · a7175123
      	* call.c (add_function_candidate): Take the address of 'this' here.
      	(build_over_call): And here.
      	(build_new_method_call_1, build_op_call_1): Not here.
      	(build_user_type_conversion_1): Or here.
      	(add_candidates): Adjust.
      
      From-SVN: r197317
      Jason Merrill committed
    • cxx-pretty-print.h (pp_cxx_cv_qualifiers): New. · c4101929
      	* cxx-pretty-print.h (pp_cxx_cv_qualifiers): New.
      	* class.c (same_signature_p): Use type_memfn_quals.
      	* cp-tree.h (TYPE_RAISES_EXCEPTIONS): Use
      	FUNCTION_OR_METHOD_TYPE_CHECK.
      	* error.c (dump_type_suffix): Add padding before cv-qualifiers.
      	* pt.c (unify): Use static_fn_type.
      
      From-SVN: r197316
      Jason Merrill committed
    • Implement N2439 (ref-qualifiers for 'this') · 2eed8e37
      	Implement N2439 (ref-qualifiers for 'this')
      	* cp-tree.h (FUNCTION_REF_QUALIFIED): New.
      	(FUNCTION_RVALUE_QUALIFIED): New.
      	(FUNCTION_OR_METHOD_TYPE_CHECK): New.
      	(cpp0x_warn_str): Add CPP0X_REF_QUALIFIER.
      	(cp_ref_qualifier): New enum.
      	(cp_declarator): Add ref_qualifier.
      	* parser.c (cp_parser_ref_qualifier_seq_opt): New.
      	(cp_parser_direct_declarator): Use it.
      	(make_call_declarator): Adjust.
      	(cp_parser_lambda_declarator_opt): Adjust.
      	* call.c (add_function_candidate): Handle ref-qualifier overload
      	resolution semantics.
      	(standard_conversion): Adjust.
      	* class.c (add_method, same_signature_p): Compare ref-qualifiers.
      	* decl.c (grokdeclarator): Handle ref-qualifiers.
      	(grokfndecl): Check for invalid ref-qualifiers.
      	(static_fn_type, revert_static_member_fn): Adjust.
      	* decl2.c (build_memfn_type): Handle ref-qualifiers.
      	(check_classfn): Check them.
      	(cp_reconstruct_complex_type): Retain them.
      	* error.c (dump_ref_qualifier): New.
      	(dump_type_suffix, dump_function_decl): Use it.
      	(maybe_warn_cpp0x): Handle CPP0X_REF_QUALIFIER.
      	* pt.c (tsubst, tsubst_function_type): Instantiate ref-quals.
      	(unify): Retain them.
      	* tree.c (cp_check_qualified_type): New.
      	(cp_build_qualified_type_real): Keep exception spec and ref-qual.
      	(build_ref_qualified_type): New.
      	(strip_typedefs, build_exception_variant): Keep ref-qualifier.
      	(cp_build_type_attribute_variant): Keep ref-qualifier.
      	* typeck.c (merge_types): Keep ref-qualifier.
      	(structural_comptypes): Compare ref-qualifier.
      	(type_memfn_rqual): New.
      	(apply_memfn_quals): Take ref-qual argument.
      	* typeck2.c (build_m_component_ref): Check ref-qualifier.
      
      Co-Authored-By: Jason Merrill <jason@redhat.com>
      
      From-SVN: r197315
      Bronek Kozicki committed