1. 03 Dec, 2018 21 commits
    • [Ada] Fix problematic overloading of operator in Ada 95 mode · 9f8483ca
      The change reverts the test deciding whether an initialization procedure
      can be inherited from parent to derived type to the original
      implementation, which allowed inheriting a null procedure.
      
      This prevents the creation of another null initialization procedure for
      the derived type, which in turn can avoid an artificial overloading
      which can wreak havoc in the analysis of private declarations of a
      package.
      
      2018-12-03  Eric Botcazou  <ebotcazou@adacore.com>
      
      gcc/ada/
      
      	* exp_ch3.adb (Build_Record_Init_Proc): Inherit an
      	initialization procedure if it is present, even if it is null.
      
      gcc/testsuite/
      
      	* gnat.dg/overload2.adb, gnat.dg/overload2_p.adb,
      	gnat.dg/overload2_p.ads, gnat.dg/overload2_q.adb,
      	gnat.dg/overload2_q.ads: New testcase.
      
      From-SVN: r266753
      Eric Botcazou committed
    • [Ada] A task not executing an entry call consumes an Entry_Call slot · c899d4ba
      This patch resolves the issue where the ATC Level of a task's first
      Entry_Call slot corresponds to a task not currently making an entry
      call. Consequently, the first slot is never used to record an entry
      call. To resolve this, the ATC Level of a such a task is now one less
      than the first index of the Entry_Call array (and as result, the ATC
      level corresponding to a completed task is now two less than the first
      index of this array).
      
      To aid the maintainability of code using ATC levels new constants are
      introduced to represent key ATC nesting levels and comments are
      introduce for the ATC level definitions.
      
      As a result of this change, the GNAT Extended Ravenscar Profile now
      works with the full runtime. The restricted runtime had assumed that the
      first Entry_Call slot would be the only slot used for entry calls and
      would only initialise this slot (and
      System.Tasking.Protected_Objects.Single_Entry was coded this way).
      However, Extended Ravenscar uses the native implementation of
      System.Tasking.Protected_Objects where this assumption doesn't hold
      until the implementation of this patch. Aside from enabling an extra
      nested level, this is main functional change of this patch.
      
      The following should compile and execute quietly:
      
      gprbuild -q main.adb
      ./main
      
      -- main.adb
      
      pragma Profile (GNAT_Extended_Ravenscar);
      pragma Partition_Elaboration_Policy (Sequential);
      
      with Tasks;
      with GNAT.OS_Lib;
      with Ada.Synchronous_Task_Control;
      
      procedure Main is
         pragma Priority (30);
      begin
         Ada.Synchronous_Task_Control.Suspend_Until_True (Tasks.A_SO);
         Ada.Synchronous_Task_Control.Suspend_Until_True (Tasks.B_SO);
      
         GNAT.OS_Lib.OS_Exit (0);
      end Main;
      
      -- tasks.ads
      
      with Ada.Synchronous_Task_Control;
      
      package Tasks is
         A_SO : Ada.Synchronous_Task_Control.Suspension_Object;
         B_SO : Ada.Synchronous_Task_Control.Suspension_Object;
      
         task A with Priority => 25;
         task B with Priority => 20;
      end Tasks;
      
      --  tasks.adb
      
      with Obj;
      
      package body Tasks is
      
         task body A is
         begin
            for J in 1 .. 5 loop
               Obj.PO.Wait;
            end loop;
            Ada.Synchronous_Task_Control.Set_True (Tasks.A_SO);
         end A;
      
         task body B is
         begin
            for J in 1 .. 5 loop
               Obj.PO.Put;
            end loop;
            Ada.Synchronous_Task_Control.Set_True (Tasks.B_SO);
         end B;
      end Tasks;
      
      -- obj.ads
      
      package Obj is
         protected type PT is
            pragma Priority (30);
            entry Put;
            entry Wait;
         private
            Wait_Ready : Boolean := False;
            Put_Ready  : Boolean := True;
         end PT;
      
         PO : PT;
      end Obj;
      
      -- obj.adb
      
      package body Obj is
         protected body PT is
            entry Put when Put_Ready is
            begin
               Wait_Ready := True;
               Put_Ready  := False;
            end Put;
      
            entry Wait when Wait_Ready is
            begin
               Wait_Ready := False;
               Put_Ready  := True;
            end Wait;
         end PT;
      end Obj;
      
      2018-12-03  Patrick Bernardi  <bernardi@adacore.com>
      
      gcc/ada/
      
      	* libgnarl/s-taskin.ads (ATC_Level_Base): Redefine to span from
      	-1 to Max_ATC_Nesting so that 0 represents no ATC nesting and -1
      	represented a completed task. To increase readability, new
      	constants are introduced to represent key ATC nesting levels.
      	Consequently, Level_No_Pending_Abort replaces
      	ATC_Level_Infinity.  ATC_Level related definitions now
      	documented.
      	(Ada_Task_Control_Block): The default initialization of
      	components ATC_Nesting_Level and Pending_ATC_Level now use new
      	ATC_Level_Base constants.  Comments improved
      	* libgnarl/s-taskin.adb (Initialize): Improve the initialisation
      	of the first element of the Entry_Calls array to facilitate
      	better maintenance.
      	* libgnarl/s-taasde.ads: Update comment.
      	* libgnarl/s-taasde.adb, libgnarl/s-taenca.adb,
      	libgnarl/s-tasren.adb, libgnarl/s-tassta.adb,
      	libgnarl/s-tasuti.ads, libgnarl/s-tasuti.adb: Use new
      	ATC_Level_Base constants.
      	* libgnarl/s-tarest.adb (Create_Restricted_Task): Improve the
      	initialisation of the first element of the task's Entry_Calls
      	array to facilitate better maintenance.
      	* libgnarl/s-tasini.ads (Locked_Abort_To_Level): Update
      	signature to accept ATC_Level_Base.
      	* libgnarl/s-tasini.adb (Locked_Abort_To_Level): Update
      	signature to accept ATC_Level_Base.  Use new ATC_Level_Base
      	constants and only modify the aborting task's Entry_Calls array
      	if any entry call is happening.
      	* libgnarl/s-tposen.adb (Protected_Single_Entry_Call): Reference
      	the first element of the task's Entry_Calls array via 'First
      	attribute to facilitate better maintenance.
      
      From-SVN: r266752
      Patrick Bernardi committed
    • [Ada] Fix assertion failures with -gnatde and -gnatdv · ba301a3b
      This fixes a couple of assertion failures when using -gnatde and -gnatdv
      on a compiler built with assertions enabled.  No functional changes.
      
      2018-12-03  Eric Botcazou  <ebotcazou@adacore.com>
      
      gcc/ada/
      
      	* einfo.adb (Write_Entity_Info): Don't take Scope of Standard
      	package.
      	* sem_ch4.adb (Remove_Abstract_Operations): Add missing blank
      	lines to -gnatdv output.
      	* sem_type.adb (Write_Overloads): Take Entity of entity names
      	only.
      
      From-SVN: r266751
      Eric Botcazou committed
    • [Ada] Minor reformattings · 89beb653
      2018-12-03  Hristian Kirtchev  <kirtchev@adacore.com>
      
      gcc/ada/
      
      	* checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch3.adb,
      	exp_util.adb, exp_util.ads, repinfo.adb, sem_attr.adb,
      	sem_ch3.adb, sem_res.adb, sem_util.adb: Minor reformatting.
      
      From-SVN: r266750
      Hristian Kirtchev committed
    • [Ada] Enhance comment · 5bb88560
      2018-12-03  Ed Schonberg  <schonberg@adacore.com>
      
      gcc/ada/
      
      	* sem_ch3.adb (Complete_Private_Subtype): Enhance comment.
      
      From-SVN: r266749
      Ed Schonberg committed
    • [Ada] Gigi support for OpenACC pragmas · 7beb2b9d
      Matching front-end bits to support Acc_Kernels, Acc_Parallel,
      Acc_Loop and Acc_Data.
      
      2018-12-03  Olivier Hainque  <hainque@adacore.com>
      
      gcc/ada/
      
      	* gcc-interface/lang.opt (fopenacc): New option for Ada.
      	* gcc-interface/misc.c (gnat_handle_option): Handle it.
      	* gcc-interface/trans.c (struct loop_info_d): Add OMP
      	attributes.
      	(Iterate_Acc_Clause_Arg, Acc_gnat_to_gnu): New functions,
      	helpers for OpenACC pragmas processing in Pragma_to_gnu.
      	(Acc_Var_to_gnu, Acc_Reduc_Var_to_gnu, Acc_Reduc_to_gnu):
      	Likewise.
      	(Acc_Size_Expr_to_gnu, Acc_Size_List_to_gnu): Likewise.
      	(Pragma_Acc_Data_to_gnu): Likewise.
      	(Pragma_to_gnu): Handle Pragma_Acc_Loop, Pragma_Acc_Data,
      	Pragma_Acc_Kernels and Pragma_Acc_Parallel.
      	(Acc_Loop_to_gnu, Regular_Loop_to_gnu): New functions. Helpers
      	for ...
      	(Loop_Statement_to_gnu): Rework to handle OpenACC loops.
      
      From-SVN: r266748
      Olivier Hainque committed
    • [Ada] Adjust the default MALLOC_OBSERVABLE_ALIGNMENT to 2 * POINTER_SIZE · e663d4d9
      Instead of 2 * LONG_TYPE_SIZE. POINTER_SIZE is believed to be the
      correct base on more configurations than LONG_TYPE_SIZE and this
      adjustment prevents the need for local patches to compensate on
      configurations where the latter is inappropriate, for example
      x86_64-mingw.
      
      2018-12-03  Olivier Hainque  <hainque@adacore.com>
      
      gcc/ada/
      
      	* gcc-interface/targtyps.c (MALLOC_OBSERVABLE_ALIGNMENT): Set to
      	2 * POINTER_SIZE.
      
      From-SVN: r266747
      Olivier Hainque committed
    • [Ada] Missing check on if-expression · 1ab144ae
      This patch fixes a constraint check on a dependent expression of an
      if-expression, when the context if given by a slice or the 'Range of
      an array. The constraint check is applied if the context is constrained,
      but the corresponding flag was not set for the index subtype generated
      for a slice (explicit or implicit).
      
      Executing:
         gprbuild -P test -q main
         ./main
      
      Must yield:
         raised CONSTRAINT_ERROR : foo.ads:13 range check failed
      
      ----
      with Types;
      generic
         Buffer : in out Types.Buffer;
      package Foo
      is
         function Get (Pos : Natural) return Integer;
      
      private
         function Get (Pos : Natural) return Integer
         is (Buffer ((if Pos in Buffer'Range then Pos else Buffer'First)));
      end Foo;
      ----
      with Foo;
      with Types;
      with Usefoo;
      
      procedure Main is
         Z : Types.Buffer := (Natural'Last .. Natural'Last - 1 => 0);
         R : Integer;
      begin
         Usefoo.Do_Something (Z, R);
      end Main;
      ----
      pragma SPARK_Mode (On);
      pragma Profile (Ravenscar);
      pragma Partition_Elaboration_Policy (Sequential);
      ----
      project Test is
        package Compiler is
          for Default_Switches ("Ada") use ("-gnatws");
          for Local_Configuration_Pragmas use "test.adc";
        end Compiler;
      end Test;
      ----
      package Types
      is
         subtype Natural_Without_Last is Natural range 1 .. Natural'Last - 1;
         type Buffer is array (Natural_Without_Last range <>) of Integer;
      
      end Types;
      ----
      with Foo;
      
      package body Usefoo
      is
      
         procedure Do_Something (B : in out Types.Buffer;
                                 R : out Integer)
         is
            package F is new Foo (B (B'First .. B'First + B'Length / 2 - 1));
         begin
            R := F.Get (B'First + B'Length / 2 - 1);
         end Do_Something;
      
      end Usefoo;
      ----
      with Types;
      
      package Usefoo
      is
      
         procedure Do_Something (B : in out Types.Buffer;
                                 R : out Integer)
                                 with Pre => B'First > 0;
      
      end Usefoo;
      
      2018-12-03  Ed Schonberg  <schonberg@adacore.com>
      
      gcc/ada/
      
      	* sem_res.adb (Set_Slice_Subtype): The index type of a slice is
      	constrained.
      
      From-SVN: r266746
      Ed Schonberg committed
    • re PR fortran/87919 (Incorrect fortran handling of -fno-* options) · 7ed760c7
      2018-12-03  Fritz Reese  <fritzoreese@gmail.com>
                  Mark Eggleston <mark.eggleston@codethink.co.uk>
      
          PR fortran/87919
      
          gcc/fortran/ChangeLog:
      
      	PR fortran/87919
      	* options.c (SET_FLAG, SET_BITFLAG, SET_BITFLAG2): New macros.
      	(set_dec_flags): Set/unset DEC and std flags according to value.
      	(set_init_local_zero): New helper for -finit-local-zero flag group.
      	(gfc_init_options): Fix disabling of init flags, array temporaries
      	check, and dec flags when value is zero (from -fno-*).
      
          gcc/testsuite/ChangeLog:
      
      	PR fortran/87919
      	* gfortran.dg/array_temporaries_5.f90: New test.
      	* gfortran.dg/dec_bitwise_ops_3.f90: Ditto.
      	* gfortran.dg/dec_d_lines_3.f: Ditto.
      	* gfortran.dg/dec_exp_4.f90: Ditto.
      	* gfortran.dg/dec_exp_5.f90: Ditto.
      	* gfortran.dg/dec_io_7.f90: Ditto.
      	* gfortran.dg/dec_structure_24.f90: Ditto.
      	* gfortran.dg/dec_structure_25.f90: Ditto.
      	* gfortran.dg/dec_structure_26.f90: Ditto.
      	* gfortran.dg/dec_structure_27.f90: Ditto.
      	* gfortran.dg/dec_type_print_3.f90: Ditto.
      	* gfortran.dg/init_flag_20.f90: Ditto.
      
      
      Co-Authored-By: Mark Eggleston <mark.eggleston@codethink.co.uk>
      
      From-SVN: r266745
      Fritz Reese committed
    • h8300.md (low byte masking peepholes): Only accept nonimmediate_operand for the… · 509f9870
      h8300.md (low byte masking peepholes): Only accept nonimmediate_operand for the to-be-masked operand.
      
      	* config/h8300/h8300.md (low byte masking peepholes): Only accept
      	nonimmediate_operand for the to-be-masked operand.
      
      From-SVN: r266744
      Jeff Law committed
    • pr59963-2.c: Make testnames unique. · bbb10360
      	* gcc.dg/pr59963-2.c: Make testnames unique.
      	* gcc.dg/tree-ssa/builtin-sprintf-warn-18.c: Likewise.
      
      From-SVN: r266743
      Jeff Law committed
    • tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Only allow expected… · 867399e9
      tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Only allow expected function-pointer cast re-instantiation.
      
      2018-12-03  Richard Biener  <rguenther@suse.de>
      
      	* tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Only
      	allow expected function-pointer cast re-instantiation.
      
      From-SVN: r266742
      Richard Biener committed
    • S/390: Add support for section anchors · 8c66130b
      gcc/ChangeLog:
      
      2018-12-03  Ilya Leoshkevich  <iii@linux.ibm.com>
      
      	* common/config/s390/s390-common.c (s390_option_init_struct):
      	Use section anchors by default.
      	* config/s390/s390.c (s390_check_symref_alignment): Handle
      	anchors.
      	(TARGET_MAX_ANCHOR_OFFSET): Use short displacement.
      	* output.h (assemble_align): Pass `align' as unsigned int, so
      	that the value 0x80000000, which corresponds to `aligned(1 <<
      	28)', would pass the `align > BITS_PER_UNIT' check.
      	* varasm.c (assemble_align): Likewise.
      
      gcc/testsuite/ChangeLog:
      
      2018-12-03  Ilya Leoshkevich  <iii@linux.ibm.com>
      
      	* gcc.target/s390/nodatarel-1.c: Expect .LANCHOR0@GOTENT instead
      	of a@GOTENT.
      	* gcc.target/s390/section-anchors.c: New test.
      	* gcc.target/s390/section-anchors2.c: New test.
      	* gcc.target/s390/section-anchors3.c: New test.
      
      From-SVN: r266741
      Ilya Leoshkevich committed
    • Fix infinite recursion in OMP clause pretty-printing, default label · df3fdfa6
      	gcc/
      	* tree-pretty-print.c (dump_omp_clause): Make default case
      	gcc_unreachable.
      
      From-SVN: r266740
      Julian Brown committed
    • re PR tree-optimization/88301 (Optimization regression with undefined unsigned overflow) · 476a31b5
      2018-12-03  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/88301
      	* tree-vrp.c (register_edge_assert_for_2): Handle conversions
      	that do not change the value by registering the same assert
      	for the operand.
      
      	* gcc.dg/tree-ssa/evrp13.c: New testcase.
      
      From-SVN: r266739
      Richard Biener committed
    • re PR tree-optimization/71109 (gcc ICE at -O3 on valid code on x86_64-linux-gnu… · 959ded61
      re PR tree-optimization/71109 (gcc ICE at -O3 on valid code on x86_64-linux-gnu in "maybe_record_trace_start")
      
      	PR tree-optimization/71109
      	* gcc.c-torture/compile/pr71109.c: New test.
      
      From-SVN: r266738
      Jakub Jelinek committed
    • tree-vect-loop.c (vect_transform_loop): Properly compute upper bound for the… · bcda485b
      tree-vect-loop.c (vect_transform_loop): Properly compute upper bound for the epilogue when doing epilogue vectorization.
      
      2018-12-03  Richard Biener  <rguenther@suse.de>
      
      	* tree-vect-loop.c (vect_transform_loop): Properly compute
      	upper bound for the epilogue when doing epilogue vectorization.
      
      From-SVN: r266737
      Richard Biener committed
    • re PR target/88287 (aarch64/sve/vcond_1.C fails since r266620) · 3eec96ce
      	PR target/88287
      	* g++.target/aarch64/sve/vcond_1.C: Adjust for comparison
      	canonicalization.
      
      From-SVN: r266736
      Jakub Jelinek committed
    • Repeat jump threading after combine · 98fe146e
      Consider the following RTL:
      
      (insn (set (reg 65) (if_then_else (eq %cc 0) 1 0)))
      (insn (parallel [(set %cc (compare (reg 65) 0)) (clobber %scratch)]))
      (jump_insn (set %pc (if_then_else (ne %cc 0) (label_ref 23) %pc)))
      
      Combine simplifies this into:
      
      (note NOTE_INSN_DELETED)
      (note NOTE_INSN_DELETED)
      (jump_insn (set %pc (if_then_else (eq %cc 0) (label_ref 23) %pc)))
      
      opening up the possibility to perform jump threading.
      
      gcc/ChangeLog:
      
      2018-12-03  Ilya Leoshkevich  <iii@linux.ibm.com>
      
      	PR target/80080
      	* cfgcleanup.c (class pass_postreload_jump): New pass.
      	(pass_postreload_jump::execute): Likewise.
      	(make_pass_postreload_jump): Likewise.
      	* passes.def: Add pass_postreload_jump before
      	pass_postreload_cse.
      	* tree-pass.h (make_pass_postreload_jump): New pass.
      
      gcc/testsuite/ChangeLog:
      
      2018-12-03  Ilya Leoshkevich  <iii@linux.ibm.com>
      
      	PR target/80080
      	* gcc.target/s390/pr80080-4.c: New test.
      
      From-SVN: r266734
      Ilya Leoshkevich committed
    • Mark x86_64 only tests as such. · e45130c5
      2018-12-02  Andi Kleen  <ak@linux.intel.com>
      
      	* gcc.target/i386/returninst1.c: Run on 64bit only.
      	* gcc.target/i386/returninst2.c: Dito.
      	* gcc.target/i386/returninst3.c: Dito.
      
      From-SVN: r266733
      Andi Kleen committed
    • Daily bump. · e4ce8795
      From-SVN: r266732
      GCC Administrator committed
  2. 02 Dec, 2018 11 commits
  3. 01 Dec, 2018 8 commits
    • re PR c++/87523 (ICE: Closures apparently fail to capture constexpr) · 70cdce4f
      	PR c++/87523
      	* g++.dg/cpp1y/lambda-generic-87523.C: New test.
      
      From-SVN: r266714
      Marek Polacek committed
    • libphobos: Add support for RISCV to glibc bindings · 5a5129a0
      Backported from upstream druntime master.
      
      Reviewed-on: https://github.com/dlang/druntime/pull/2355
      
      From-SVN: r266713
      Iain Buclaw committed
    • re PR c++/79629 (ICE on invalid code in tsubst_copy, at cp/pt.c:14477) · 16e48dd1
      	PR c++/79629
      	* g++.dg/other/error35.C: New test.
      
      From-SVN: r266712
      Marek Polacek committed
    • re PR c++/83856 (ICE in tsubst_copy;) · 8fc1ef71
      	PR c++/83856
      	* g++.dg/cpp1y/lambda-generic-83856.C: New test.
      
      From-SVN: r266711
      Marek Polacek committed
    • Implement P0634R3, Down with typename! · 96c35892
      	* parser.c (CP_PARSER_FLAGS_TYPENAME_OPTIONAL): New enumerator.
      	(cp_parser_type_name): Remove declaration.
      	(cp_parser_postfix_expression): Pass CP_PARSER_FLAGS_TYPENAME_OPTIONAL
      	to cp_parser_type_id.
      	(cp_parser_new_type_id): Pass CP_PARSER_FLAGS_TYPENAME_OPTIONAL to
      	cp_parser_type_specifier_seq.
      	(cp_parser_lambda_declarator_opt): Pass
      	CP_PARSER_FLAGS_TYPENAME_OPTIONAL to
      	cp_parser_parameter_declaration_clause.
      	(cp_parser_condition): Pass CP_PARSER_FLAGS_NONE to
      	cp_parser_declarator.
      	(cp_parser_simple_declaration): Pass CP_PARSER_FLAGS_NONE to
      	cp_parser_init_declarator.
      	(cp_parser_conversion_type_id): Pass CP_PARSER_FLAGS_NONE to
      	cp_parser_type_specifier_seq.
      	(cp_parser_default_type_template_argument): Pass
      	CP_PARSER_FLAGS_TYPENAME_OPTIONAL to cp_parser_type_id.
      	(cp_parser_template_parameter): Pass CP_PARSER_FLAGS_TYPENAME_OPTIONAL
      	to cp_parser_parameter_declaration.
      	(cp_parser_explicit_instantiation): Pass CP_PARSER_FLAGS_NONE to
      	cp_parser_declarator.
      	(cp_parser_simple_type_specifier): Adjust call to cp_parser_type_name
      	to relay if we should treat the typename keyword as optional.  Maybe
      	call cp_parser_make_typename_type is parsing a template-id and it's
      	not a TYPE_DECL.
      	(cp_parser_type_name): Remove unused function.
      	(cp_parser_enum_specifier): Pass to CP_PARSER_FLAGS_NONE
      	cp_parser_type_specifier_seq.
      	(cp_parser_alias_declaration): Pass CP_PARSER_FLAGS_TYPENAME_OPTIONAL
      	to cp_parser_type_id.
      	(cp_parser_init_declarator): New parameter.  Pass it down to
      	cp_parser_declarator.
      	(cp_parser_declarator): New parameter.  Pass CP_PARSER_FLAGS_NONE to
      	cp_parser_declarator.  Pass the new parameter to
      	cp_parser_direct_declarator.
      	(cp_parser_direct_declarator): New parameter.  Pass it to
      	cp_parser_parameter_declaration_clause and cp_parser_declarator.
      	(cp_parser_declarator_id):
      	(cp_parser_type_id_1): New parameter.  Pass it to
      	cp_parser_type_specifier_seq.  Adjust call to cp_parser_declarator.
      	(cp_parser_type_id): New parameter.  Pass it to cp_parser_type_id_1.
      	(cp_parser_template_type_arg): Pass CP_PARSER_FLAGS_NONE to
      	cp_parser_type_id_1.
      	(cp_parser_trailing_type_id): Pass CP_PARSER_FLAGS_TYPENAME_OPTIONAL
      	to cp_parser_type_id_1.
      	(cp_parser_type_specifier_seq): New parameter.
      	(function_being_declared_is_template_p):
      	(cp_parser_parameter_declaration_clause): New parameter.  Pass it to
      	cp_parser_parameter_declaration_list.
      	(cp_parser_parameter_declaration_list): New parameter.  Pass it to
      	cp_parser_parameter_declaration.
      	(cp_parser_parameter_declaration): New parameter.  Pass it to
      	cp_parser_decl_specifier_seq.  Pass CP_PARSER_FLAGS_NONE to
      	cp_parser_declarator.
      	(cp_parser_member_declaration): Adjust call to
      	cp_parser_decl_specifier_seq to also include
      	CP_PARSER_FLAGS_TYPENAME_OPTIONAL.  Pass
      	CP_PARSER_FLAGS_TYPENAME_OPTIONAL to cp_parser_declarator.
      	(cp_parser_exception_declaration): Pass CP_PARSER_FLAGS_NONE to
      	cp_parser_type_specifier_seq and cp_parser_declarator.
      	(cp_parser_requirement_parameter_list): Pass CP_PARSER_FLAGS_NONE to
      	cp_parser_parameter_declaration_clause.
      	(cp_parser_constructor_declarator_p): Resolve the TYPENAME_TYPE.
      	(cp_parser_single_declaration): Pass CP_PARSER_FLAGS_TYPENAME_OPTIONAL
      	to cp_parser_decl_specifier_seq and cp_parser_init_declarator.
      	(cp_parser_cache_defarg): Pass CP_PARSER_FLAGS_NONE to
      	cp_parser_declarator and cp_parser_parameter_declaration_list.
      	(cp_parser_objc_method_tail_params_opt): Pass CP_PARSER_FLAGS_NONE to
      	cp_parser_parameter_declaration.
      	(cp_parser_objc_class_ivars): Pass CP_PARSER_FLAGS_NONE to
      	cp_parser_declarator.
      	(cp_parser_objc_try_catch_finally_statement): Pass CP_PARSER_FLAGS_NONE
      	to cp_parser_parameter_declaration
      	(cp_parser_objc_struct_declaration): Pass CP_PARSER_FLAGS_NONE to
      	cp_parser_declarator.
      	(cp_parser_omp_for_loop_init): Pass CP_PARSER_FLAGS_NONE to
      	cp_parser_declarator and cp_parser_type_specifier_seq.
      
      	* g++.dg/cpp0x/alias-decl-43.C: Adjust dg-error.
      	* g++.dg/cpp0x/decltype67.C: Only expect error in c++17_down.
      	* g++.dg/cpp1z/typename1.C: New test.
      	* g++.dg/cpp2a/typename1.C: New test.
      	* g++.dg/cpp2a/typename10.C: New test.
      	* g++.dg/cpp2a/typename11.C: New test.
      	* g++.dg/cpp2a/typename2.C: New test.
      	* g++.dg/cpp2a/typename3.C: New test.
      	* g++.dg/cpp2a/typename4.C: New test.
      	* g++.dg/cpp2a/typename5.C: New test.
      	* g++.dg/cpp2a/typename6.C: New test.
      	* g++.dg/cpp2a/typename7.C: New test.
      	* g++.dg/cpp2a/typename8.C: New test.
      	* g++.dg/cpp2a/typename9.C: New test.
      	* g++.dg/diagnostic/missing-typename.C: Only run the test in
      	c++17_down.
      	* g++.dg/other/crash-9.C: Add template disambiguator.
      	* g++.dg/other/nontype-1.C: Only expect error in c++17_down.
      	* g++.dg/parse/crash13.C: Likewise.
      	* g++.dg/parse/error36.C: Likewise.
      	* g++.dg/parse/no-typename1.C: Likewise.
      	* g++.dg/parse/typedef2.C: Likewise.
      	* g++.dg/parse/typename11.C: Likewise.
      	* g++.dg/template/crash48.C: Adjust dg-error.
      	* g++.dg/template/dependent-name5.C: Only expect error in c++17_down.
      	Add dg-error.
      	* g++.dg/template/error29.C: Only expect error in c++17_down.
      	* g++.dg/template/nested5.C: Add template disambiguator.
      	* g++.dg/template/pr84789.C: Only expect error in c++17_down.
      	* g++.dg/template/static30.C: Add dg-error.
      	* g++.dg/template/typedef6.C: Adjust dg-error.
      	* g++.dg/template/typename3.C: Only expect error in c++17_down.
      
      From-SVN: r266710
      Marek Polacek committed
    • * gcc.dg/predict-22.c: Update expected output. · e770ab19
      From-SVN: r266709
      Jeff Law committed
    • re PR sanitizer/88289 (r266664 causes asan to fail on many/most tests on BE) · a5b25661
      	PR sanitizer/88289
      	* asan.c (asan_redzone_buffer::flush_redzone_payload): Fix up
      	an off-by-one for BYTES_BIG_ENDIAN.
      
      From-SVN: r266708
      Jakub Jelinek committed
    • re PR target/54589 (struct offset add should be folded into address calculation) · 6b4f5050
      	PR target/54589
      	* combine.c (find_split_point): For invalid memory address
      	nonobj + obj + const, if reg + obj + const is valid addressing
      	mode, split at nonobj.  Use if rather than else if for the
      	fallback.  Comment fixes.
      
      	* gcc.target/i386/pr54589.c: New test.
      
      From-SVN: r266707
      Jakub Jelinek committed