1. 18 May, 2016 32 commits
  2. 17 May, 2016 8 commits
    • 20030222-1.c: Skip on ptx. · 2efd67ed
      	* gcc.c-torture/execute/20030222-1.c: Skip on ptx.
      	* gcc.dg/pr68671.c: Fix ptx xfail-if.
      	* gcc.dg/torture/pr54261-1.c: Allocate atomic var statically.
      	* gcc.dg/torture/type-generic-1.c: Enable UNSAFE for ptx.
      
      From-SVN: r236346
      Nathan Sidwell committed
    • nvptx.c (nvptx_function_arg_boundary): New. · 1988b2c2
      	* config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
      	(TARGET_FUNCTION_ARG_BOUNDARY): Override.
      
      	testsuite/
      	* gcc.target/nvptx/abi-vararg-3.c: New.
      
      From-SVN: r236345
      Nathan Sidwell committed
    • Fold bit_not through ASR and rotate · ad1d92ab
      gcc/
      
      	PR tree-optimization/54579
      	PR middle-end/55299
      	* match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
      
      gcc/testsuite
      
      	PR tree-optimization/54579
      	PR middle-end/55299
      	* gcc.dg/fold-notrotate-1.c: New test.
      	* gcc.dg/fold-notshift-1.c: New test.
      	* gcc.dg/fold-notshift-2.c: New test.
      
      From-SVN: r236344
      Mikhail Maltsev committed
    • re PR ipa/71146 (error: __builtin_unreachable or __builtin_trap call with arguments) · 47768df8
      	PR ipa/71146
      	* tree-inline.c (expand_call_inline): Call
      	maybe_remove_unused_call_args.
      
      	* g++.dg/ipa/pr71146.C: New test.
      
      From-SVN: r236343
      Marek Polacek committed
    • jit: gcc diagnostics are jit errors · 6b5423a5
      libgccjit performs numerous checks at the API boundary, but
      if these succeed, it ignores errors and other diagnostics emitted
      within the core of gcc, and treats the compile of a gcc_jit_context
      as having succeeded.
      
      This patch ensures that if any diagnostics are emitted, they
      are visible from the libgccjit API, and that the the context is
      flagged as having failed.
      
      For now any kind of diagnostic is treated as a jit error,
      so warnings and notes also count as errors.
      
      gcc/jit/ChangeLog:
      	* dummy-frontend.c: Include diagnostic.h.
      	(jit_begin_diagnostic): New function.
      	(jit_end_diagnostic): New function.
      	(jit_langhook_init): Register jit_begin_diagnostic
      	and jit_end_diagnostic with the global_dc.
      	* jit-playback.c: Include diagnostic.h.
      	(gcc::jit::playback::context::add_diagnostic): New method.
      	* jit-playback.h (struct diagnostic_context): Add forward
      	declaration.
      	(gcc::jit::playback::context::add_diagnostic): New method.
      
      gcc/testsuite/ChangeLog:
      	* jit.dg/test-error-array-bounds.c: New test case.
      
      From-SVN: r236342
      David Malcolm committed
    • jit: document gcc_jit_context_new_call_through_ptr · f51703a8
      gcc/jit/ChangeLog:
      	* docs/topics/expressions.rst (Function calls): Document
      	gcc_jit_context_new_call_through_ptr.
      	* docs/_build/texinfo/libgccjit.texi: Regenerate.
      
      From-SVN: r236341
      David Malcolm committed
    • Fix minor doc bugs, signalling typo, major version changes rare. · 18ea359a
      	gcc/
      	* doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
      	* doc/invoke.texi (-mnan=2008): Change signalling to signaling.
      	* doc/md.texi (fmin@var{m}3): Likewise.
      
      From-SVN: r236340
      Jim Wilson committed
    • x & C -> x if we know that x & ~C == 0 · c7986356
      2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
      
      gcc/
      	* match.pd (X & C): New transformation.
      
      gcc/testsuite/
      	* gcc.dg/tree-ssa/and-1.c: New testcase.
      
      From-SVN: r236338
      Marc Glisse committed