1. 09 Sep, 2019 4 commits
    • testsuite: annotate c-torture/compile tests with dg-require-stack-size · e9b8025b
          
      This patch annotates tests that make use of a significant a mount of
      stack space.  Embedded and other restricted targets may have problems
      compiling and running these tests.  Note that the annotations are in
      many cases not exact.
          
      testsuite/ChangeLog:
          
              * gcc.c-torture/compile/20000609-1.c: Annotate with
              dg-require-stack-size.
              * gcc.c-torture/compile/20000804-1.c: Likewise.
              * gcc.c-torture/compile/20020304-1.c: Likewise.
              * gcc.c-torture/compile/20020604-1.c: Likewise.
              * gcc.c-torture/compile/20021015-1.c: Likewise.
              * gcc.c-torture/compile/20050303-1.c: Likewise.
              * gcc.c-torture/compile/20060421-1.c: Likewise.
              * gcc.c-torture/compile/20071207-1.c: Likewise.
              * gcc.c-torture/compile/20080903-1.c: Likewise.
              * gcc.c-torture/compile/20121027-1.c: Likewise.
              * gcc.c-torture/compile/20151204.c: Likewise.
              * gcc.c-torture/compile/920501-12.c: Likewise.
              * gcc.c-torture/compile/920501-4.c: Likewise.
              * gcc.c-torture/compile/920723-1.c: Likewise.
              * gcc.c-torture/compile/921202-1.c: Likewise.
              * gcc.c-torture/compile/931003-1.c: Likewise.
              * gcc.c-torture/compile/931004-1.c: Likewise.
              * gcc.c-torture/compile/950719-1.c: Likewise.
              * gcc.c-torture/compile/951222-1.c: Likewise.
              * gcc.c-torture/compile/990517-1.c: Likewise.
              * gcc.c-torture/compile/bcopy.c: Likewise.
              * gcc.c-torture/compile/pr23929.c: Likewise.
              * gcc.c-torture/compile/pr25310.c: Likewise.
              * gcc.c-torture/compile/pr34458.c: Likewise.
              * gcc.c-torture/compile/pr39937.c: Likewise.
              * gcc.c-torture/compile/pr41181.c: Likewise.
              * gcc.c-torture/compile/pr41634.c: Likewise.
              * gcc.c-torture/compile/pr43415.c: Likewise.
              * gcc.c-torture/compile/pr43417.c: Likewise.
              * gcc.c-torture/compile/pr44788.c: Likewise.
              * gcc.c-torture/compile/sound.c: Likewise.
      
      From-SVN: r275504
      Jose E. Marchesi committed
    • opt-functions.awk: fix comparison of limit, begin and end · 4bc8aadf
         
      The function integer_range_info makes sure that, if provided, the
      initial value fills in the especified range.  However, it is necessary
      to convert the values to a numerical context before comparing, to make
      sure awk is using arithmetical order and not lexicographical order.
          
      gcc/ChangeLog:
          
            * opt-functions.awk (integer_range_info): Make sure values are in
            numeric context before operating with them.
      
      From-SVN: r275503
      Jose E. Marchesi committed
    • Update config.sub and config.guess. · b7b1f657
          
          * config.sub: Import upstream version 2019-06-30.
          * config.guess: Import upstream version 2019-07-24.
      
      From-SVN: r275502
      Jose E. Marchesi committed
    • Daily bump. · 108d64ad
      From-SVN: r275501
      GCC Administrator committed
  2. 08 Sep, 2019 2 commits
  3. 07 Sep, 2019 7 commits
  4. 06 Sep, 2019 17 commits
  5. 05 Sep, 2019 10 commits
    • RISC-V: Fix bad insn splits with paradoxical subregs. · 36ec3f57
      Shifting by more than the size of a SUBREG_REG doesn't work, so we either
      need to disable splits if an input is paradoxical, or else we need to
      generate a clean temporary for intermediate results.
      
      Jakub wrote the first version of this patch, so gets primary credit for it.
      
      	gcc/
      	PR target/91635
      	* config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
      	extend<SHORT:mode><SUPERQI:mode>2): Don't split if
      	paradoxical_subreg_p (operands[0]).
      	(*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
      	use as intermediate value.
      
      	gcc/testsuite/
      	PR target/91635
      	* gcc.c-torture/execute/pr91635.c: New test.
      	* gcc.target/riscv/shift-shift-4.c: New test.
      	* gcc.target/riscv/shift-shift-5.c: New test.
      
      Co-Authored-By: Jim Wilson <jimw@sifive.com>
      
      From-SVN: r275444
      Jakub Jelinek committed
    • re PR fortran/91496 (!GCC$ directives error if mistyped or unknown) · 3c0f0265
      2019-09-05  Harald Anlauf  <anlauf@gmx.de>
      
      	PR fortran/91496
      	* parse.c (parse_executable): Improve error messages for
      	improperly placed pragmas not preceeding a loop.
      
      	PR fortran/91496
      	* gfortran.dg/directive_unroll_5.f90: Adjust error message.
      
      From-SVN: r275442
      Harald Anlauf committed
    • re PR fortran/91660 (Missing error on invalid type declaration) · 0e521c64
      2019-09-05  Steven G. Kargl  <kargl@gcc.gnu.org>
      
      	PR fortran/91660
      	* decl.c (gfc_match_decl_type_spec): Improve and restore error
      	message for malformed types-spec.
      
      2019-09-05  Steven G. Kargl  <kargl@gcc.gnu.org>
      
      	PR fortran/91660
      	* gfortran.dg/pdt_4.f03: Fix invalid code.
      	* gfortran.dg/pr91660_1.f90: New test.
      	* gfortran.dg/pr91660_2.f90: Ditto.
      
      From-SVN: r275426
      Steven G. Kargl committed
    • PR c++/91644 - ICE with constinit in function template. · bb64bef6
      	* decl.c (start_decl): Call retrofit_lang_decl for constinit variables.
      	* pt.c (tsubst_expr): Pass LOOKUP_CONSTINIT down to cp_finish_decl for
      	constinit variables.
      
      	* g++.dg/cpp2a/constinit13.C: New test.
      
      From-SVN: r275421
      Marek Polacek committed
    • Global GCN instructions need nops too. · b2c113ae
      2019-09-05  Andrew Stubbs  <ams@codesourcery.com>
      
      	gcc/
      	* config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
      	(sync_compare_and_swap<mode>_insn): Likewise.
      
      From-SVN: r275414
      Andrew Stubbs committed
    • Improve precondition checks for std::span · b5c433ce
      	* doc/xml/manual/status_cxx2020.xml: Update status for P0122R7 and
      	P1024R3. Remove entry for P0920R2.
      	* include/std/span  (__cpp_lib_span): Change value.
      	(__extent_storage, __extent_storage<dynamic_extent>): Remove default
      	constructor.
      	(span): Replace __extent_storage base class with data member.
      	(span::_S_subspan_extent): New function.
      	(span::empty()): Add nodiscard attribute.
      	(span::front, span::back, span::operator[]): Check preconditions.
      	(span::first, span::last, span::subspan): Add noexcept. Improve
      	precondition checks (LWG 3103).
      	(get): Remove redundant condition from static_assert.
      	(tuple_element<I, span<T, E>>): Fix static_assert message and simplify.
      	(as_writable_bytes): Add inline specifier.
      	* include/std/version (__cpp_lib_span): Change value.
      	* testsuite/23_containers/span/back_neg.cc: Remove stray semi-colon.
      	* testsuite/23_containers/span/front_neg.cc: Likewise.
      	* testsuite/23_containers/span/index_op_neg.cc: Likewise.
      	* testsuite/23_containers/span/last_neg.cc: Improve test.
      	* testsuite/23_containers/span/subspan_neg.cc: Likewise.
      	* testsuite/23_containers/span/1.cc: New test.
      	* testsuite/23_containers/span/2.cc: New test.
      	* testsuite/23_containers/span/back_assert_neg.cc: New test.
      	* testsuite/23_containers/span/first_2_assert_neg.cc: New test.
      	* testsuite/23_containers/span/first_assert_neg.cc: New test.
      	* testsuite/23_containers/span/first_neg.cc: New test.
      	* testsuite/23_containers/span/front_assert_neg.cc: New test.
      	* testsuite/23_containers/span/index_op_assert_neg.cc: New test.
      	* testsuite/23_containers/span/last_2_assert_neg.cc: New test.
      	* testsuite/23_containers/span/last_assert_neg.cc: New test.
      	* testsuite/23_containers/span/subspan_2_assert_neg.cc: New test.
      	* testsuite/23_containers/span/subspan_3_assert_neg.cc: New test.
      	* testsuite/23_containers/span/subspan_4_assert_neg.cc: New test.
      	* testsuite/23_containers/span/subspan_5_assert_neg.cc: New test.
      	* testsuite/23_containers/span/subspan_6_assert_neg.cc: New test.
      	* testsuite/23_containers/span/subspan_assert_neg.cc: New test.
      
      From-SVN: r275411
      Jonathan Wakely committed
    • re PR target/91615 ([armeb] ICEs since r274986) · 55e8f926
      2019-09-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              PR middle-end/91615
              * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
              without movmisalign optab.
      
      From-SVN: r275409
      Bernd Edlinger committed
    • re PR middle-end/91001 (internal compiler error: in extract_insn, at recog.c:2310) · 72834792
      	PR middle-end/91001
      	PR middle-end/91105
      	PR middle-end/91106
      	* calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
      	types, use type of their first field instead of type of
      	args[i].tree_value.
      
      	* gcc.c-torture/compile/pr91001.c: New test.
      
      From-SVN: r275408
      Jakub Jelinek committed
    • re PR rtl-optimization/91656 (wrong code with -fgcse-after-reload) · 5a4c9a49
      2019-09-05  Richard Biener  <rguenther@suse.de>
      
      	PR rtl-optimization/91656
      	* postreload-gcse.c (record_last_mem_set_info): Revert addition
      	of early out.
      
      	* gcc.dg/torture/pr91656-1.c: New testcase.
      	* gcc.dg/torture/pr91656-2.c: Likewise.
      	* gcc.dg/torture/pr91656-3.c: Likewise.
      
      From-SVN: r275406
      Richard Biener committed
    • [C++ PATCH] vtable decl marking · b1019384
      https://gcc.gnu.org/ml/gcc-patches/2019-08/msg02063.html
      	* cp-tree.h (DECL_VTABLE_OR_VTT_P): Forward to DECL_VIRTUAL_P.
      
      From-SVN: r275404
      Nathan Sidwell committed