1. 31 May, 2019 8 commits
    • re PR debug/86964 (Too many debug symbols included, especially for extern globals) · d1137c02
      2019-05-31  Thomas De Schampheleire  <thomas.de_schampheleire@nokia.com>
      
      	PR debug/86964
      	* common.opt (feliminate-unused-debug-symbols): Enable by default.
      	* doc/invoke.texi (Debugging Options): Document new default of
      	-feliminate-unused-debug-symbols and remove restriction to 'stabs'.
      
      	* g++.dg/debug/dwarf2/fesd-any.C: Use
      	-fno-eliminate-unused-debug-symbols.
      	* g++.dg/debug/dwarf2/fesd-baseonly.C: Likewise.
      	* g++.dg/debug/dwarf2/fesd-none.C: Likewise.
      	* g++.dg/debug/dwarf2/fesd-reduced.C: Likewise.
      	* g++.dg/debug/dwarf2/fesd-sys.C: Likewise.
      	* g++.dg/debug/dwarf2/inline-var-1.C: Likewise.
      	* g++.dg/debug/enum-2.C: Likewise.
      	* gcc.dg/debug/dwarf2/fesd-any.c: Likewise.
      	* gcc.dg/debug/dwarf2/fesd-baseonly.c: Likewise.
      	* gcc.dg/debug/dwarf2/fesd-none.c: Likewise.
      	* gcc.dg/debug/dwarf2/fesd-reduced.c: Likewise.
      	* gcc.dg/debug/dwarf2/fesd-sys.c: Likewise.
      
      From-SVN: r271803
      Thomas De Schampheleire committed
    • re PR tree-optimization/90671 (ICE on valid code at -Os and above with -g… · 6992d6fb
      re PR tree-optimization/90671 (ICE on valid code at -Os and above with -g enabled in gsi_split_seq_after, at gimple-iterator.c:345)
      
      	PR tree-optimization/90671
      	* tree-ssa-threadupdate.c (ssa_create_duplicates): If
      	template_block used to be empty on the first call, don't use
      	gsi_split_seq_after and gsi_insert_seq_after, but remember whole
      	seq with bb_seq and set it with set_bb_seq.
      
      	* gcc.dg/torture/pr90671.c: New test.
      
      From-SVN: r271802
      Jakub Jelinek committed
    • c++, testsuite - require alias support for a test. · 0eee8eaa
      The test for pr84497 uses a facility that requires alias support from
      the target, and therefore fails on targets without.  Add a suitable 
      dg-require statement.
      
      2019-05-31  Iain Sandoe  <iain@sandoe.co.uk>
      
      	* g++.dg/cpp0x/pr84497.C: Require alias support.
      
      From-SVN: r271801
      Iain Sandoe committed
    • Darwin, x86, testsuite - adjust tests for Darwin's align syntax. · 4ef2ef0c
      Darwin has a .align taking a power of 2 by default, so that some
      tests expecting a byte count are failing, fixed thus.
      
      gcc/testsuite/
      
      2019-05-31  Iain Sandoe  <iain@sandoe.co.uk>
      
      	* gcc.target/i386/falign-functions-3.c: Adjust align syntax
      	and label for Darwin.
      	* gcc.target/i386/attr-aligned-2.c: Adjust align syntax for
      	Darwin.
      
      From-SVN: r271800
      Iain Sandoe committed
    • Darwin, x86 - We have .p2align, so declare its use. · eb11a552
      .p2align support is present in all x86 assemblers on released
      Darwin systems.
      
      gcc/
      
      2019-05-29  Iain Sandoe  <iain@sandoe.co.uk>
      
      	* config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
      
      From-SVN: r271799
      Iain Sandoe committed
    • predicates.md (pcrel_address): New define_predicate. · a1842c37
      2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
      	    Michael Meissner  <meissner@linux.ibm.com>
      
      	* config/rs6000/predicates.md (pcrel_address): New define_predicate.
      	(prefixed_mem_operand): Likewise.
      	(non_prefixed_mem_operand): Likewise.
      	* config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
      	prototype.
      	* config/rs6000/rs6000.c (print_operand_address): Handle
      	PC-relative addresses.
      	(mode_supports_prefixed_address_p): New function.
      	(rs6000_prefixed_address): New function.
      	* config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
      	(SYMBOL_REF_PCREL_P): Likewise.
      
      
      Co-Authored-By: Michael Meissner <meissner@linux.ibm.com>
      
      From-SVN: r271798
      Bill Schmidt committed
    • * fi.po, sv.po: Update. · 47a665af
      From-SVN: r271796
      Joseph Myers committed
    • Daily bump. · 17c5c4c7
      From-SVN: r271795
      GCC Administrator committed
  2. 30 May, 2019 22 commits
  3. 29 May, 2019 10 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