1. 25 Jun, 2015 22 commits
  2. 24 Jun, 2015 18 commits
    • The problem is that diagnostic_action_after_output tries to delete the active… · 5862c189
      The problem is that diagnostic_action_after_output tries to delete the active pretty-printer which tries to delete its output_buffer...
      
      The problem is that diagnostic_action_after_output tries to delete the active
      pretty-printer which tries to delete its output_buffer, which is normally
      dynamically allocated via placement-new, but the output_buffer used by the
      error_buffer of Fortran is statically allocated. Being statically allocated
      simplifies a lot pushing/poping several instances of error_buffer.
      
      The solution is to reset the active output_buffer back to the default one
      before calling diagnostic_action_after_output. This is a bit ugly, because this
      function does use the output_buffer, however, at the point that Fortran calls
      it, both are in an equivalent state, thus there is no visible difference.
      
      gcc/testsuite/ChangeLog:
      
      2015-06-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	PR fortran/66528
      	* gfortran.dg/maxerrors.f90: New test.
      
      gcc/fortran/ChangeLog:
      
      2015-06-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	PR fortran/66528
      	* error.c (gfc_warning_check): Restore the default output_buffer
      	before calling diagnostic_action_after_output.
      	(gfc_error_check): Likewise.
      	(gfc_diagnostics_init): Add comment.
      
      From-SVN: r224926
      Manuel López-Ibáñez committed
    • re PR target/66563 (ICE (segmentation fault) on sh4-linux-gnu) · b6d10e0b
      PR target/66563
      * [SH] Add a new operand to GOTaddr2picreg so to avoid CSE.  Modify caller
        of gen_GOTaddr2picreg.
      
      From-SVN: r224925
      Kaz Kojima committed
    • * gcc.dg/torture/pr66345.c: Fix assumption about size_t type. · efa165cd
      From-SVN: r224924
      DJ Delorie committed
    • basic_string.h (basic_string<>::front()): Add !empty debug check. · e25d2617
      2015-06-24  François Dumont  <fdumont@gcc.gnu.org>
      
      	* include/bits/basic_string.h (basic_string<>::front()): Add !empty
      	debug check.
      	(basic_string<>::back()): Likewise.
      	(basic_string<>::pop_back()): Likewise.
      
      From-SVN: r224919
      François Dumont committed
    • re PR c++/66647 (ICE: in instantiate_class_template_1, at cp/pt.c:9254) · e6d61513
      	PR c++/66647
      	* pt.c (dependent_type_p_r): Check for dependent alias template
      	specialization sooner.
      
      From-SVN: r224917
      Jason Merrill committed
    • [AArch64] Fix another ICE with -mgeneral-regs-only · 31ca7cba
      gcc/:
      
      	* config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
      	Condition on TARGET_FLOAT.
      
      gcc/testsuite/:
      
      	* gcc.target/aarch64/mgeneral-regs_3.c: New.
      
      From-SVN: r224910
      Alan Lawrence committed
    • [AArch64 Doc] Clarify feature modifiers {no,}{fp,simd,crypto} · a591e1d1
      gcc:
      
      	* doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
      	and (no)crypto.
      
      From-SVN: r224909
      Alan Lawrence committed
    • [AArch64] Fix ICES with -mgeneral-regs-only / -march=...+nofp · 261fb553
      gcc/ChangeLog:
      
      	* config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
      
      	* config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
      	aarch64_err_no_fpadvsimd.
      
      	* config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
      	(aarch64_layout_arg, aarch64_init_cumulative_args): Use
      	aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
      	(aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
      	Turn error into assert, test TARGET_FLOAT.
      	(aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
      	TARGET_FLOAT.
      
      gcc/testsuite/ChangeLog:
      
      	* gcc.target/aarch64/mgeneral-regs_1.c: New file.
      	* gcc.target/aarch64/mgeneral-regs_2.c: New file.
      	* gcc.target/aarch64/nofp_1.c: New file.
      
      From-SVN: r224908
      Alan Lawrence committed
    • * dwarf2out.c (gen_formal_parameter_die): Remove assert. · 4ca1ca5b
      From-SVN: r224907
      Aldy Hernandez committed
    • re PR c++/66501 (Default move assignment does not move array members) · 024f2d89
      	PR c++/66501
      	* class.c (type_has_nontrivial_assignment): Remove.
      	* cp-tree.h: Remove declaration.
      	* init.c (vec_copy_assign_is_trivial): New.
      	(build_vec_init): Use it.
      
      From-SVN: r224904
      Jason Merrill committed
    • Implement N3928 - Extending static_assert · e79fc3d4
      cp/
      
      2015-06-24  Edward Smith-Rowland  <3dw4rd@verizon.net>
      
      	Implement N3928 - Extending static_assert
      	* parser.c (cp_parser_static_assert): Support static_assert with
      	no message string.  Supply an empty string in this case.
      	* semantics.c (finish_static_assert): Don't try to print a message if
      	the message strnig is empty.
      
      
      testsuite/
      
      2015-06-24  Edward Smith-Rowland  <3dw4rd@verizon.net>
      
      	Implement N3928 - Extending static_assert
      	* g++.dg/cpp0x/static_assert8.C: Adjust.
      	* g++.dg/cpp0x/static_assert12.C: New.
      	* g++.dg/cpp0x/static_assert13.C: New.
      	* g++.dg/cpp1y/static_assert1.C: New.
      	* g++.dg/cpp1y/static_assert2.C: New.
      	* g++.dg/cpp1z/static_assert-nomsg.C: New.
      
      From-SVN: r224903
      Edward Smith-Rowland committed
    • re PR c++/65750 (misinterpret in a virtual member function with a C++11 style function signature) · aa97bb6f
      /cp
      2015-06-24  Adam Butcher  <adam@jessamine.co.uk>
      
      	PR c++/65750
      	* parser.c (cp_parser_simple_type_specifier): Don't synthesize
      	implicit template parm if 'auto' is a placeholder for trailing
      	return type.
      
      /testsuite
      2015-06-24  Adam Butcher  <adam@jessamine.co.uk>
      
      	PR c++/65750
      	* g++.dg/cpp0x/trailing11.C: New.
      
      From-SVN: r224901
      Adam Butcher committed
    • tree-vect-slp.c (vect_build_slp_tree_1): Init vectype. · e00cdb8a
      	* tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
      
      From-SVN: r224900
      Ilya Enkovich committed
    • Skip tests for inappropriate multilibs. · 150cc0b5
      
      2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
      
      	* gcc.target/arm/fixed_float_conversion.c: Skip for inappropriate
                multilibs.
      	* gcc.target/arm/memset-inline-10.c: Likewise.
      	* gcc.target/arm/pr58784.c: Likewise.
      	* gcc.target/arm/pr59985.C: Likewise.
      	* gcc.target/arm/vfp-1.c: Likewise and test only for the non fma cases.
      
      From-SVN: r224899
      Ramana Radhakrishnan committed
    • [PATCH][AARCH64]Add ACLE predefined marcos: __ARM_ALIGN_MAX_PWR and · b6aada16
      __ARM_ALIGN_MAX_STACK_PWR
      
      gcc/
      
      2015-06-24 Renlin Li <renlin.li@arm.com>
      
      	* config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
      	__ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
      
      gcc/testsuite/
      
      2015-06-24  Renlin Li  <renlin.li@arm.com>
      
      	* gcc.target/aarch64/arm_align_max_pwr.c: New.
      	* gcc.target/aarch64/arm_align_max_stack_pwr.c: New.
      
      From-SVN: r224898
      Renlin Li committed
    • get_neg.cc: Adjust dg-error line numbers. · a2055cc9
      2015-06-24  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
      	dg-error line numbers.
      	* testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
      	Likewise.
      
      From-SVN: r224897
      Paolo Carlini committed
    • Revert fix for PR c++/30044 · 7af8ef58
      gcc/cp/ChangeLog:
      
      	Revert:
      	2015-06-23  Patrick Palka  <ppalka@gcc.gnu.org>
      
      	PR c++/30044
      	* parser.c (cp_parser_template_parameter_list): Update
      	current_template_parms right after processing a paramater.
      	* pt.c (template_parms_to_args): Remove obsolete hack for
      	giving template template arguments the proper level.
      	(check_default_tmpl_args): Account for tested template
      	parameter_lists.
      	(splite_late_return_type): Remove obsolete hack for giving
      	template template arguments the proper level.
      
      gcc/testsuite/ChangeLog:
      
      	Revert:
      	2015-06-23  Patrick Palka  <ppalka@gcc.gnu.org>
      
      	PR c++/30044
      	* g++.dg/cpp0x/auto45.C: New test.
      	* g++.dg/template/pr30044.C: New test.
      	* g++.dg/template/crash83.C: Accept any error string.
      	* g++.dg/cpp0x/variadic18.C: Adjust to not shadow template
      	parameters.
      	* g++.dg/cpp0x/variadic18.C: Likewise
      	* g++.dg/template/canon-type-13.C: Likewise.
      	* g++.old-deja/g++.pt/ttp42.C: Likewise.
      
      From-SVN: r224896
      Patrick Palka committed
    • genmatch.c (enum tree_code): Add VIEW_CONVERT[012]. · 39791822
      2015-06-24  Richard Biener  <rguenther@suse.de>
      
      	* genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
      	(main): Likewise.
      	(lower_opt_convert): Support lowering of conditional view_convert.
      	(parser::parse_operation): Likewise.
      	(parser::parse_for): Likewise.
      
      From-SVN: r224893
      Richard Biener committed