1. 31 May, 2019 6 commits
  2. 30 May, 2019 22 commits
  3. 29 May, 2019 12 commits
    • PR libstdc++/85494 fix failing test · ea16f6ac
      This test now fails on mingw-w64 because it's no longer always true that
      the mt19937 engine is used when _GLIBCXX_USE_DEV_RANDOM is not defined.
      
      Add tests for all the known tokens to ensure that at least one is
      accepted.
      
      	* testsuite/26_numerics/random/random_device/cons/token.cc: Fix test
      	that fails on mingw-w64.
      
      From-SVN: r271756
      Jonathan Wakely committed
    • PR libstdc++/88881 fix filesystem::symlink_status for Windows · 3cb929a3
      The fix for PR 88881 only added a workaround to filesystem::status, but
      filesystem::symlink_status is also affected by the _wstat bug and needs
      the same workaround.
      
      The recent change to optimize path::parent_path() means that the
      workaround can be simplified to just use parent_path().
      
      	PR libstdc++/88881
      	* src/c++17/fs_ops.cc [_GLIBCXX_FILESYSTEM_IS_WINDOWS]
      	(status(const path&, error_code&)): Use parent_path() to remove
      	trailing slash.
      	(symlink_status(const path&, error_code&)): Duplicate workaround for
      	bug in _wstat for paths with trailing slash.
      	* testsuite/27_io/filesystem/operations/remove_all.cc: Check path
      	with trailing slash.
      	* testsuite/27_io/filesystem/operations/status.cc: Likewise.
      	* testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
      
      From-SVN: r271755
      Jonathan Wakely committed
    • Optimize filesystem::path::parent_path() · e5ccb10a
      Parsing a complete string is more efficient than appending each
      component one-by-one.
      
      	* src/c++17/fs_path.cc (path::parent_path()): Create whole path at
      	once instead of building it iteratively.
      
      From-SVN: r271754
      Jonathan Wakely committed
    • rs6000.c (rs6000_call_template_1): Handle pcrel calls here... · e800d6dc
      [gcc]
      
      2019-05-29  Bill Schmidt  <wschmidt@linux.ibm.com>
      	    Alan Modra  <amodra@gmail.com>
      
      	* config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
      	calls here...
      	(rs6000_indirect_call_template_1): ...and here.
      	(rs6000_pltseq_template): Handle plt_pcrel34.  Rework tocsave,
      	plt16_ha, plt16_lo, mtctr indirect calls.  Use
      	rs6000_pltseq_enum.
      	(rs6000_decl_ok_for_sibcall): New function.
      	(rs6000_function_ok_for_sibcall): Refactor.
      	(rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
      	(rs6000_call_aix): Don't emit toc restore rtl for indirect calls
      	when pcrel.  Reorganize.
      	(rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
      	* rs6000.h (rs6000_pltseq_enum): New enum.
      	* rs6000.md (UNSPEC_PLT_PCREL): New unspec.
      	(*pltseq_tocsave): Use rs6000_pltseq_enum.
      	(*pltseq_plt16_ha): Likewise.
      	(*pltseq_plt16_lo): Likewise.
      	(*pltseq_mtctr): Likewise.
      	(*pltseq_plt_pcrel): New insn.
      	(*call_local_aix): Handle @notoc calls.
      	(*call_value_local_aix): Likewise.
      	(*call_nonlocal_aix): Adjust lengths for pcrel calls.
      	(*call_value_nonlocal_aix): Likewise.
      	(*call_indirect_pcrel): New insn.
      	(*call_value_indirect_pcrel): Likewise.
      
      
      [gcc/testsuite]
      
      2019-05-29  Bill Schmidt  <wschmidt@linux.ibm.com>
      
      	* gcc.target/powerpc/notoc-direct-1.c: New.
      	* gcc.target/powerpc/pcrel-sibcall-1.c: New.
      
      
      Co-Authored-By: Alan Modra <amodra@gmail.com>
      
      From-SVN: r271753
      Bill Schmidt committed
    • re PR c++/90598 (Return type of explicit destructor call wrong) · 874f88c4
      	PR c++/90598
      	* tree.c (lvalue_kind): Return clk_none for expressions with
      	with VOID_TYPE_P.
      
      	* g++.dg/cpp0x/pr90598.C: New test.
      
      From-SVN: r271752
      Jakub Jelinek committed
    • re PR fortran/90539 (481.wrf slowdown by 25% on Intel Kaby with -Ofast… · 1585b483
      re PR fortran/90539 (481.wrf slowdown by 25% on Intel Kaby with -Ofast -march=native starting with r271377)
      
      2019-05-29  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
      	PR fortran/90539
      	* gfortran.h (gfc_has_dimen_vector_ref): Add prototype.
      	* trans.h (gfc_conv_subref_array_arg): Add argument check_contiguous.
      	(gfc_conv_is_contiguous_expr): Add prototype.
      	* frontend-passes.c (has_dimen_vector_ref): Remove prototype,
      	rename to
      	(gfc_has_dimen_vector_ref): New function name.
      	(matmul_temp_args): Use gfc_has_dimen_vector_ref.
      	(inline_matmul_assign): Likewise.
      	* trans-array.c (gfc_conv_array_parameter): Also check for absence
      	of a vector subscript before calling gfc_conv_subref_array_arg.
      	Pass additional argument to gfc_conv_subref_array_arg.
      	* trans-expr.c (gfc_conv_subref_array_arg): Add argument
      	check_contiguous. If that is true, check if the argument
      	is contiguous and do not repack in that case.
      	* trans-intrinsic.c (gfc_conv_intrinsic_is_contiguous): Split
      	away most of the work into, and call
      	(gfc_conv_intrinsic_is_coniguous_expr): New function.
      
      2019-05-29  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
      	PR fortran/90539
      	* gfortran.dg/internal_pack_21.f90: Adjust scan patterns.
      	* gfortran.dg/internal_pack_22.f90: New test.
      	* gfortran.dg/internal_pack_23.f90: New test.
      
      From-SVN: r271751
      Thomas Koenig committed
    • * tree-ssa/alias-access-spath-1.c: new testcase. · 987c9fc5
      From-SVN: r271750
      Jan Hubicka committed
    • sse.md (*save_multiple<mode>): Rename from save_multiple<mode>. · 5a158e54
      	* config/i386/sse.md (*save_multiple<mode>): Rename from
      	save_multiple<mode>.
      	(*restore_multiple<mode>): Rename from restore_multiple<mode>.
      	(*restore_multiple_and_return<mode>): Rename from
      	restore_multiple_and_return<mode>.
      	(*restore_multiple_leave_return<mode>): Rename from
      	restore_multiple_leave_return<mode>.
      
      From-SVN: r271749
      Uros Bizjak committed
    • config.gcc (rx-*-linux*): New target. · 76aaa9cd
      	* config.gcc (rx-*-linux*): New target.
      	* config/rx/elf.opt: New file.
      	* config/rx/linux.h: Likewise.
      	* config/rx/t-linux: Likewise.
      	* config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
      	make it zero.
      	* config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
      	(ASM_APP_OFF): Likewise.
      	* config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
      	moved elsewhere.
      
      	* config.host (rx-*-linux*): Add new case.
      	* config/rx/t-rx (HOST_LIBGCC2_CFLAGS): Force DFmode to SFmode.
      
      From-SVN: r271748
      Yoshinori Sato committed
    • tree-ssa-alias.c (same_type_for_tbaa): Return ture if main variants are pointer equivalent. · 01a58e36
      	* tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
      	variants are pointer equivalent.
      
      From-SVN: r271747
      Jan Hubicka committed
    • re PR c++/89875 (invalid typeof reference to a member of an incomplete struct… · 824e57cb
      re PR c++/89875 (invalid typeof reference to a member of an incomplete struct accepted at function scope)
      
      /cp
      2019-05-29  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/89875
      	* parser.c (cp_parser_sizeof_operand): When the type-id production
      	did not work out commit to the tentative parse.
      
      /testsuite
      2019-05-29  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/89875
      	* g++.dg/cpp0x/decltype-pr66548.C: Remove xfail.
      	* g++.dg/template/sizeof-template-argument.C: Adjust expected error.
      
      From-SVN: r271746
      Paolo Carlini committed
    • Avoid -Wunused-parameter warnings from testsuite utility · 65539b1e
      	* testsuite/util/testsuite_api.h: Remove names of unused parameters.
      
      From-SVN: r271741
      Jonathan Wakely committed