1. 26 Nov, 2018 16 commits
    • sourcebuild.texi: Document check_effective_target_size20plus. · f4a14e09
      2018-11-26  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
      
      	gcc/ChangeLog:
      
      	* doc/sourcebuild.texi: Document check_effective_target_size20plus.
      	Clarify documentation for check_effective_target_size32plus.
      
      	gcc/testsuite/ChangeLog:
      
      	* gcc.c-torture/compile/20151204.c: Add dg-require-effective-target
      	size20plus.
      	* gcc.dg/pr34225.c: Likewise.
      	* gcc.dg/pr40971.c: Likewise.
      	* gcc.dg/pr69071.c: Likewise.
      	* gcc.dg/tree-ssa/loop-interchange-10.c: Likewise.
      	* gcc.dg/tree-ssa/loop-interchange-2.c: Likewise.
      	* gcc.dg/tree-ssa/loop-interchange-3.c: Likewise.
      	* gcc.dg/tree-ssa/loop-interchange-5.c: Likewise.
      	* gcc.dg/tree-ssa/loop-interchange-6.c: Likewise.
      	* gcc.dg/tree-ssa/loop-interchange-7.c: Likewise.
      	* gcc.dg/tree-ssa/loop-interchange-8.c: Likewise.
      	* gcc.dg/tree-ssa/loop-interchange-9.c: Likewise.
      	* gcc.dg/tree-ssa/loop-interchange-11.c: Add dg-require-effective-target
      	size32plus.
      	* gcc.dg/Walloc-size-larger-than-4.c: Likewise.
      	* gcc.dg/Walloc-size-larger-than-5.c: Likewise.
      	* gcc.dg/Walloc-size-larger-than-6.c: Likewise.
      	* gcc.dg/Walloc-size-larger-than-7.c: Likewise.
      	* gcc.dg/tree-ssa/loop-interchange-1.c: Likewise.
      	* gcc.dg/tree-ssa/loop-interchange-1b.c: Likewise.
      	* lib/target-supports.exp (check_effective_target_size20plus): New.
      	(check_effective_target_size32plus): Update comment.
      
      From-SVN: r266483
      Jozef Lawrynowicz committed
    • Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu. · ffcf3b79
      	* testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
      	(RUNTEST): Don't define.
      	(RUNTESTDEFAULTFLAGS): Add.
      	(check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
      	(distclean-am): Depend on distclean-DEJAGNU.
      	(check-am): If -j% option is present in MFLAGS and if
      	`getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
      	(.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
      	* testsuite/Makefile.in: Regenerated.
      
      From-SVN: r266482
      Jakub Jelinek committed
    • rs6000-string.c (expand_cmp_vec_sequence): Rename and modify expand_strncmp_vec_sequence. · 37ae4739
      2018-11-26  Aaron Sawdey  <acsawdey@linux.ibm.com>
      
      	* config/rs6000/rs6000-string.c (expand_cmp_vec_sequence): Rename
      	and modify expand_strncmp_vec_sequence.
      	(emit_final_compare_vec): Rename and modify emit_final_str_compare_vec.
      	(generate_6432_conversion): New function.
      	(expand_block_compare): Add support for vsx.
      	(expand_block_compare_gpr): New function.
      	* config/rs6000/rs6000.opt (rs6000_block_compare_inline_limit): Increase
      	default limit to 63 because of more compact vsx code.
      
      From-SVN: r266481
      Aaron Sawdey committed
    • re PR target/88178 (ICE in dbx_reg_number, at dwarf2out.c:13659) · 02ef9b0c
      	PR target/88178
      	* config/i386/i386.c (dbx_register_map): Use IGNORED_DWARF_REGNUM
      	for registers for which no debug information can be generated.
      	Use INVALID_REGNUM for non-existent registers.
      	(dbx64_register_map): Ditto.
      	(svr4_dbx_register_map): Ditto.
      
      testsuite/ChangeLog:
      
      	PR target/88178
      	* gcc.target/pr88178.c: New test.
      
      From-SVN: r266480
      Uros Bizjak committed
    • re PR c/57182 (Documentation implies -fprofile-arcs required to create .text.unlikely sections) · 73d062d1
      2018-11-26  Sandra Loosemore  <sandra@codesourcery.com>
      
      	PR c/57182
      
      	gcc/
      	* doc/invoke.texi (Optimize Options): Document that
      	-freorder-functions also uses "hot" and "cold" attributes.
      
      From-SVN: r266473
      Sandra Loosemore committed
    • [AArch64][committed] Fix typo in aarch64_mangle_type · 17f8ace2
      	* config/aarch64/aarch64.c (aarch64_mangle_type): Fix typo in comment.
      
      From-SVN: r266472
      Kyrylo Tkachov committed
    • [arm][1/3] Rename mul64 attr to widen_mul64 · f51c724c
      The mul64 attribute in types.md causes some confusion as it is used to represent
      aarch32 instructions that do widening multiplication to generate 32->64 bit results.
      But these types are shared with aarch64, which has native 64-bit multiplication operations.
      
      Those are currently not properly represented, which I will fix in follow-up patches.
      For now, this patch renames the mul64 attribute to widen_mul64 to more clearly communicate its meaning.
      
      It mechanically updates all users of that name in config/arm/ (there are no users in config/aarch64).
      There is thus no change in behaviour.
      
      	* config/arm/types.md (mul64): Rename to...
      	(widen_mul64): ... This.
      	* config/arm/arm-generic.md: Rename mul64 to widen_mul64.
      	* config/arm/cortex-a15.md: Likewise.
      	* config/arm/cortex-a5.md: Likewise.
      	* config/arm/cortex-a53.md: Likewise.
      	* config/arm/cortex-a57.md: Likewise.
      	* config/arm/cortex-a7.md: Likewise.
      	* config/arm/cortex-m4.md: Likewise.
      	* config/arm/exynos-m1.md: Likewise.
      	* config/arm/marvell-pj4.md: Likewise.
      	* config/arm/xgene1.md: Likewise.
      
      From-SVN: r266471
      Kyrylo Tkachov committed
    • libphobos: Fix backtraces in Fibers on AArch64. · e20145f1
      When throwing an Exception in the Fiber the backtrace generation
      crashes.  This happens because backtrace does not func the stack bottom.
      Using '.cfi_undefined x30' tells the debug info that the value in the lr
      is unknown, which seems to be the nicest way to stop the unwinder.
      Setting x30 to 0 is another option, however it still creates one invalid
      frame in gdb, so the .cfi variant is used here instead.
      
      Backport from upstream druntime 2.083.
      
      Reviewed-on: https://github.com/dlang/druntime/pull/2308
      
      From-SVN: r266470
      Iain Buclaw committed
    • re PR tree-optimization/88182 (ICE in vectorizable_reduction, at tree-vect-loop.c:6465) · ef6e6914
      2018-11-26  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/88182
      	* tree-vect-loop.c (vectorizable_reduction): Pick up single
      	correct reduc_def_info.
      	* tree-vect-slp.c (vect_analyze_slp_instance): Set
      	STMT_VINFO_REDUC_DEF of the first stmt.
      
      	libgomp/
      	* testsuite/libgomp.c++/pr88182.C: New testcase.
      
      From-SVN: r266467
      Richard Biener committed
    • S/390: Document z14/arch12 -march option. · c393c748
      gcc/ChangeLog:
      
      2018-11-26  Andreas Krebbel  <krebbel@linux.ibm.com>
      
      	* doc/invoke.texi: Document z14/arch12 -march option.
      
      From-SVN: r266462
      Andreas Krebbel committed
    • re PR ada/88191 (ada bootstrap failure on alpha-linux-gnu ("SIGSYS" not declared in "Linux")) · 7548e496
      2018-11-26  Matthias Klose <doko@ubuntu.com>
      
              PR ada/88191
              * libgnarl/s-linux__alpha.ads: Define SIGSYS.
      
      From-SVN: r266459
      Matthias Klose committed
    • test-long-names.c: Fix build with -Wformat-security. · 14c5a314
      2018-11-26  Matthias Klose  <doko@ubuntu.com>
      
              * jit.dg/test-long-names.c: Fix build with -Wformat-security.
      
      From-SVN: r266454
      Matthias Klose committed
    • Only use __float128 in test if available · f4d3e3cc
      	* testsuite/26_numerics/complex/requirements/more_constexpr.cc: Fix
      	failure on targets without __float128.
      
      From-SVN: r266450
      Jonathan Wakely committed
    • re PR c/57166 (Manual no longer documents -Wmissing-noreturn alias for… · 2d305556
      re PR c/57166 (Manual no longer documents -Wmissing-noreturn alias for -Wsuggest-attribute=noreturn)
      
      2018-11-25  Sandra Loosemore  <sandra@codesourcery.com>
      
      	PR c/57166
      
      	gcc/
      	* doc/invoke.texi (Option Summary): Add -Wmissing-noreturn.
      	(Warning Options): Likewise.
      
      From-SVN: r266446
      Sandra Loosemore committed
    • re PR web/79738 (Documentation for __attribute__((const)) slightly misleading) · 721b7fd2
      2018-11-25  Sandra Loosemore  <sandra@codesourcery.com>
      
      	PR web/79738
      
      	gcc/
      	* doc/extend.texi (Common Function Attributes): Clarify that
      	functions with "const" attribute can read const global variables.
      
      From-SVN: r266445
      Sandra Loosemore committed
    • Daily bump. · 47e53bb6
      From-SVN: r266444
      GCC Administrator committed
  2. 25 Nov, 2018 6 commits
  3. 24 Nov, 2018 5 commits
  4. 23 Nov, 2018 13 commits
    • re PR bootstrap/88157 (ICE when building libgo encoding/gob.lo starting with r266385) · 795a6c67
      2018-11-23  Vladimir Makarov  <vmakarov@redhat.com>
      
      	PR bootstrap/88157
      	* ira-costs.c (record_operand_costs): Use bigger hard reg class if
      	its mode does not fit to the original class.
      
      From-SVN: r266422
      Vladimir Makarov committed
    • pr70669.c: Use unary minus instead of addition. · 1b8ccb9d
      2018-11-23  Vladimir Makarov  <vmakarov@redhat.com>
      
      	* gcc.target/powerpc/pr70669.c: Use unary minus instead of
      	addition.
      
      From-SVN: r266421
      Vladimir Makarov committed
    • re PR tree-optimization/87756 (missing unterminated argument warning using… · 0c3aba0c
      re PR tree-optimization/87756 (missing unterminated argument warning using address of a constant character)
      
      	PR tree-optimization/87756
      	* gcc.dg/builtin-memchr-2.c: Scan the gimple dump instead of
      	optimized.
      	* gcc.dg/builtin-memchr-3.c: Likewise.
      
      From-SVN: r266420
      Jakub Jelinek committed
    • Make recursion_check work for multiple threads · f4c0f888
      With multiple threads, using an unprotected static variable to check
      whether recursion has occured isn't valid, as one thread might have
      modified the variable, thus causing another thread to incorrectly
      conclude that recursion has occured.  This patch avoids this problem
      by using a thread-specific variable for the recursion check.
      
      Regtested on x86_64-pc-linux-gnu.
      
      libgfortran/ChangeLog:
      
      2018-11-23  Janne Blomqvist  <jb@gcc.gnu.org>
      
      	* runtime/error.c (MAGIC): Remove.
      	(recursion_key): New variable.
      	(recursion_check): Use thread-specific variable for recursion
      	check if threads are active.
      	(constructor_recursion_check): New function.
      	(destructor_recursion_check): New funcion.
      
      From-SVN: r266419
      Janne Blomqvist committed
    • PR tree-optimization/87756 - missing unterminated argument warning using address… · 70c70369
      PR tree-optimization/87756 - missing unterminated argument warning using address of a constant character
      
      gcc/ChangeLog:
      
      	PR tree-optimization/87756
      	* expr.c (string_constant): Synthesize a string literal from
      	the address of a constant character.
      	* tree.c (build_string_literal): Add an argument.
      	* tree.h (build_string_literal): Same.
      
      gcc/testsuite/ChangeLog:
      
      	PR tree-optimization/87756
      	* gcc.dg/builtin-memchr-2.c: New test.
      	* gcc.dg/builtin-memchr-3.c: Same.
      	* gcc.dg/warn-sprintf-no-nul-2.c: Same.
      
      From-SVN: r266418
      Martin Sebor committed
    • PR testsuite/88098 - FAIL: gcc.dg/Wbuiltin-declaration-mismatch-4.c · db1d09b0
      gcc/c/ChangeLog:
      
      	PR testsuite/88098
      	* c-typeck.c (convert_arguments): Call builtin_decl_explicit instead.
      	(maybe_warn_builtin_no_proto_arg): Handle short enum to int promotion.
      
      gcc/testsuite/ChangeLog:
      
      	PR testsuite/88098
      	* gcc.dg/Wbuiltin-declaration-mismatch-4.c: Adjust.
      	* gcc.dg/Wbuiltin-declaration-mismatch-5.c: New test.
      	* gcc.dg/torture/pr67222.c: Adjust.
      
      From-SVN: r266417
      Martin Sebor committed
    • Implement P0415 More constexpr for std::complex. · e987fb1e
      
      2018-11-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
      
      	Implement P0415 More constexpr for std::complex.
      	* include/std/complex (conj(complex<Tp>), norm(complex<Tp>)): Constexpr;
      	(real(Tp), imag(Tp)): Constexpr;
      	(operator@=(Tp), operator@=(complex<Tp>)): Constexpr;
      	(operator@(Tp,complex<Tp>), operator@(complex<Tp>,Tp)
      	operator@(complex<Tp>,complex<Tp>)): Constexpr.
      	* testsuite/26_numerics/complex/comparison_operators/
      	more_constexpr.cc: New test.
      	* testsuite/26_numerics/complex/operators/more_constexpr.cc: New test.
      	* testsuite/26_numerics/complex/requirements/
      	more_constexpr.cc: New test.
      	* testsuite/26_numerics/complex/value_operations/
      	more_constexpr.cc: New test.
      	* testsuite/26_numerics/headers/complex/synopsis.cc:
      	Add _GLIBCXX20_CONSTEXPR to applicable operators; Add missing proj().
      	* testsuite/26_numerics/headers/complex/synopsis.cc:
      	Add _GLIBCXX20_CONSTEXPR to relevant decls.
      
      From-SVN: r266416
      Edward Smith-Rowland committed
    • [aarch64] Add CPU support for Ampere Computing's eMAG. · e02669db
      2018-11-23  Christoph Muellner <christoph.muellner@theobroma-system.com>
      
      	* config/aarch64/aarch64-cores.def: Define emag.
      	* config/aarch64/aarch64-tune.md: Regenerated with emag.
      	* config/aarch64/aarch64.c (emag_tunings): New struct.
      	* doc/invoke.texi: Document mtune value.
      
      From-SVN: r266415
      Christoph Muellner committed
    • [aarch64] Update xgene1 tuning struct. · cf28c77e
      2018-11-23  Christoph Muellner  <christoph.muellner@theobroma-systems.com>
      	    Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
      
      	* config/aarch64/aarch64.c (xgene1_tunings): Optimize Xgene1 tunings
      	for GCC 9.
      
      Co-Authored-By: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
      
      From-SVN: r266414
      Christoph Muellner committed
    • [aarch64] Add xgene1 prefetch tunings. · d5e9851e
      2018-11-23  Christoph Muellner  <christoph.muellner@theobroma-systems.com>
                  Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
      
      	* config/aarch64/aarch64.c (xgene1_tunings): Add Xgene1 specific
      	prefetch tunings.
      
      Co-Authored-By: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
      
      From-SVN: r266413
      Christoph Muellner committed
    • [aarch64] Update xgene1_addrcost_table. · 52ddefd8
      2018-11-23  Christoph Muellner  <christoph.muellner@theobroma-systems.com>
                  Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
      
      	* config/aarch64/aarch64.c (xgene1_addrcost_table): Correct the post modify
      	costs.
      
      Co-Authored-By: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
      
      From-SVN: r266412
      Christoph Muellner committed
    • [aarch64/arm] Updating the cost table for xgene1. · 221e1f30
      2018-11-23  Christoph Muellner <christoph.muellner@theobroma-system.com>
      
      	* config/arm/aarch-cost-tables.h (xgene1_extra_costs): Update the cost table
      	for Xgene1.
      
      From-SVN: r266411
      Christoph Muellner committed
    • PR libstdc++/65229 fix pretty printer for std::bitset<0> · 14a9206d
      2018-11-23  Martin Sebor  <msebor@redhat.com>
      	    Jonathan Wakely  <jwakely@redhat.com>
      
      	PR libstdc++/65229
      	* python/libstdcxx/v6/printers.py (StdBitsetPrinter): Handle
      	exception thrown for std::bitset<0>.
      	* testsuite/libstdc++-prettyprinters/simple.cc: Test std::bitset<0>.
      
      Co-Authored-By: Jonathan Wakely <jwakely@redhat.com>
      
      From-SVN: r266409
      Martin Sebor committed