1. 14 Sep, 2018 14 commits
    • reg-stack.c: Include regs.h. · 0c2d2371
      	* reg-stack.c: Include regs.h.
      	(replace_reg): Assert that mode is MODE_FLOAT or MODE_COMPLEX_FLOAT.
      	(emit_pop_insn): Default pop insn mode to the reg_raw_mode of
      	FIRST_STACK_REG, not DFmode.
      	(emit_swap_insn): Default swap insn mode to the reg_raw_mode of
      	FIRST_STACK_REG, not XFmode.  Explicitly construct swap RTX.
      	(change stack): Default register mode to the reg_raw_mode of
      	FIRST_STACK_REG, not DFmode.
      	* config/i386/i386.md (*swap<mode>): Remove insn pattern.
      	(*swapxf): Rename from swapxf.
      
      From-SVN: r264319
      Uros Bizjak committed
    • emmintrin.h: Add _MM_SHUFFLE2. · 8cafacb5
      gcc/ChangeLog:
      
      2018-09-14  Carl Love  <cel@us.ibm.com>
      
      	* config/rs6000/emmintrin.h: Add _MM_SHUFFLE2.
      	* config/rs6000/xmmintrin.h: Add _MM_SHUFFLE.
      
      From-SVN: r264317
      Carl Love committed
    • rs6000: Add another Z to go with Y (PR87224) · dc928512
      This is another case where we ICE because Y does not allow reg+reg, we
      need Z for that.
      
      
      	PR target/87224
      	* config/rs6000/rs6000.md (*mov<mode>_hardfloat64): Add Z to the Y
      	alternatives.
      
      From-SVN: r264316
      Segher Boessenkool committed
    • [Aarch64] Added pattern to match zero extended bfxil · 2dc09f66
      gcc/
      2018-07-31  Sam Tebbs  <sam.tebbs@arm.com>
      
      	PR target/85628
      	* config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Define.
      
      gcc/testsuite
      2018-07-31  Sam Tebbs  <sam.tebbs@arm.com>
      
      	PR target/85628
      	* gcc.target/aarch64/combine_bfxil.c (combine_zero_extended_int, foo6):
      	New functions.
      
      From-SVN: r264315
      Sam Tebbs committed
    • Fix --enable-gather-detailed-mem-stats. · d604907d
      	* hash-table.c (hash_table_usage): Change from variable to function.
      	* hash-table.h: Adjust.
      	* Makefile.in: Add missing dependencies on hash-table.h.
      
      From-SVN: r264313
      Jason Merrill committed
    • [tree-ssa-mathopts] PR tree-optimization/87259: Call execute_cse_reciprocals_1… · 115b4708
      [tree-ssa-mathopts] PR tree-optimization/87259: Call execute_cse_reciprocals_1 before trying optimize_recip_sqrt
      
      	PR tree-optimization/87259
      	PR lto/87283
      	(pass_cse_reciprocals::execute): Run optimize_recip_sqrt after
      	execute_cse_reciprocals_1 has tried transforming.
      
      	PR tree-optimization/87259
      	* gcc.dg/pr87259.c: New test.
      
      From-SVN: r264312
      Kyrylo Tkachov committed
    • tree-vrp.c (extract_range_from_binary_expr_1): Normalize VR_VARYING for PLUS/MINUS_EXPR. · 310ee703
      	* tree-vrp.c (extract_range_from_binary_expr_1): Normalize
      	VR_VARYING for PLUS/MINUS_EXPR.
      
      From-SVN: r264307
      Aldy Hernandez committed
    • patching file gcc/config/s390/s390-passes.def · e2162daa
      S/390: Improve s390-passes.def formatting
      
      The result looks nicer in the generated pass-instances.def.
      
      gcc/ChangeLog:
      
      2018-09-14  Ilya Leoshkevich  <iii@linux.ibm.com>
      
      	* config/s390/s390-passes.def (INSERT_PASS_BEFORE): Improve
      	formatting.
      
      From-SVN: r264306
      Ilya Leoshkevich committed
    • [libgfortran] Fix uninitialized variable use in fallback_access · ef5057c8
      I've been tracking down a bug in a Fortran program on a newlib target and it boils down to fallback_access doing something bad.
      The unconditional calls to close cause havoc when open doesn't get called due to the short-circuiting in the if-statement above
      because the fd is uninitialised. In my environment GCC ends up calling close on file descriptor 0, thus trying to close stdin.
      
      This patch tightens up the calling so that close is called only when the corresponding open call succeeded.
      With this my runtime failure disappears.
      
      Bootstrapped and tested on aarch64-none-linux-gnu.
      Though that doesn't exercise this call I hope it's an obviously correct change. 
      
      	* io/unix.c (fallback_access): Avoid calling close on
      	uninitialized file descriptor.
      
      From-SVN: r264305
      Kyrylo Tkachov committed
    • re PR middle-end/63155 (memory hog) · 7efd5ff3
      2018-09-14  Richard Biener  <rguenther@suse.de>
      
      	PR middle-end/63155
      	* tree-ssa-coalesce.c (ssa_conflicts_merge): Remove conflict
      	bits for the merged partition.
      
      From-SVN: r264304
      Richard Biener committed
    • builtins.h (c_srlen): Add argument. · 6ab24ea8
      	* builtins.h (c_srlen): Add argument.
      	* builtins.c (warn_string_no_nul): New function.
      	(c_strlen): Add argument and use it.  Update recursive calls.
      	Pass DECL argument to string_constant to get info on non
      	terminated strings.  Update *NONSTR as needed.
      	(fold_builtin_strlen): Add argument to calls to c_strlen.
      	Warn for unterminated arrays.
      	(warn_string_no_null): Add prototype.
      	* expr.c (string_constant): Update arguments.  Update recursive
      	calls appropriately.  Detect missing NUL terminator and outermost
      	declaration its missing in.
      	Improve checks for arrays with nonzero lower bound or elements
      	that are not a single byte.  Simplify offset computation.
      	Simplify checks for non-NUL terminated strings.
      	* gimple-fold.c (get_range_strlen): Add argument to c_strlen call.
      	* gimple-ssa-sprintf.c (get_string_length): Remove unnecessary code.
      
      	* gcc.dg/warn-strlen-no-nul.c: New test.
      
      Co-Authored-By: Bernd Edlinger <bernd.edlinger@hotmail.de>
      Co-Authored-By: Jeff Law <law@redhat.com>
      
      From-SVN: r264302
      Martin Sebor committed
    • builtins.c (c_strlen): Handle not zero terminated STRING_CSTs correctly. · d01b568a
      	* builtins.c (c_strlen): Handle not zero terminated STRING_CSTs
      	correctly.
      	* fold-const.c (c_getstr): Fix function comment.  Remove unused third
      	argument.  Fix range checks.
      	* fold-const.h (c_getstr): Adjust protoype.
      	* gimple-fold.c (gimple_fold_builtin_memory_op): Avoid folding when
      	string is constant but contains no NUL byte.
      
      From-SVN: r264301
      Bernd Edlinger committed
    • expr.c (string_constant): Adjust function comment. · 9a9f692b
      	* expr.c (string_constant): Adjust function comment.
      	Remove bogus check for zero termination.
      
      From-SVN: r264300
      Bernd Edlinger committed
    • Daily bump. · ffbd4c4a
      From-SVN: r264299
      GCC Administrator committed
  2. 13 Sep, 2018 26 commits