1. 09 Dec, 2014 16 commits
    • PR jit/64166: Add API entrypoint gcc_jit_context_enable_dump · 463366a0
      gcc/jit/ChangeLog:
      	PR jit/64166
      	* docs/topics/contexts.rst (Debugging): Add description of
      	gcc_jit_context_enable_dump.
      	* docs/_build/texinfo/libgccjit.texi: Regenerate.
      	* jit-playback.c: Include context.h.
      	(class auto_argvec): New class.
      	(auto_argvec::~auto_argvec): New function.
      	(gcc::jit::playback::context::compile): Convert fake_args to be
      	an auto_argvec, so that it can contain dynamically-allocated
      	strings.   Construct a vec of all requested dumps, and pass it to
      	make_fake_args.  Extract requested dumps between the calls to
      	toplev::main and toplev::finalize.
      	(gcc::jit::playback::context::make_fake_args): Convert param
      	"argvec" to be a vec <char *>, and gain a "requested_dumps"
      	param.  Convert to dynamically-allocated arg strings by converting
      	ADD_ARG to take a copy of the arg, and add ADD_ARG_TAKE_OWNERSHIP
      	for args that are already a copy.  Add args for all requested dumps.
      	(gcc::jit::playback::context::extract_any_requested_dumps): New
      	function.
      	(gcc::jit::playback::context::read_dump_file): New function.
      	* jit-playback.h (gcc::jit::playback::context::make_fake_args):
      	Convert param "argvec" to be a vec <char *>, and gain a
      	"requested_dumps" param.
      	(gcc::jit::playback::context::extract_any_requested_dumps): New
      	function.
      	(gcc::jit::playback::context::read_dump_file): New function.
      	* jit-recording.c (gcc::jit::recording::context::enable_dump): New
      	function.
      	(gcc::jit::recording::context::get_all_requested_dumps): New
      	function.
      	* jit-recording.h (gcc::jit::recording::requested_dump): New
      	struct.
      	(gcc::jit::recording::context::enable_dump): New function.
      	(gcc::jit::recording::context::get_all_requested_dumps): New
      	function.
      	(gcc::jit::recording::context::m_requested_dumps): New field.
      	* libgccjit.c (gcc_jit_context_enable_dump): New API entrypoint.
      	* libgccjit.h (gcc_jit_context_enable_dump): New API entrypoint.
      	* libgccjit.map (gcc_jit_context_enable_dump): New API entrypoint.
      
      gcc/testsuite/ChangeLog:
      	PR jit/64166
      	PR jit/64020
      	* jit.dg/harness.h (CHECK_STRING_CONTAINS): New macro.
      	(check_string_contains): New function.
      	* jit.dg/test-error-unrecognized-dump.c: New file.
      	* jit.dg/test-functions.c (trig_sincos_dump): New variable.
      	(trig_statistics_dump): New variable.
      	(create_test_of_builtin_trig): Enable dumping of "sincos" and
      	"statistics" into "trig_sincos_dump" and "trig_statistics_dump".
      	(verify_test_of_builtin_trig): Verify the sincos and statistics
      	dumps.
      	* jit.dg/test-sum-of-squares.c (dump_vrp1): New variable.
      	(create_code): Enable dumping of "tree-vrp1" into dump_vrp1.
      	(verify_code): Verify the tree-vrp1 dump.
      
      From-SVN: r218521
      David Malcolm committed
    • PR jit/64166: Add methods to gcc::dump_manager needed by JIT testing · 799505ae
      gcc/ChangeLog:
      	PR jit/64166
      	* dumpfile.c (gcc::dump_manager::get_dump_file_info_by_switch):
      	New function.
      	(gcc::dump_manager::get_dump_file_name): Split out bulk of
      	implementation into a new overloaded variant taking a
      	dump_file_info *.
      	* dumpfile.h (gcc::dump_manager::get_dump_file_info_by_switch):
      	New function.
      	(gcc::dump_manager::get_dump_file_name): New overloaded variant of
      	this function, taking a dump_file_info *.
      
      From-SVN: r218520
      David Malcolm committed
    • re PR bootstrap/64213 (gimple-match.c:1523:6: error: ‘GIMPLE’ was not declared in this scope) · 0cc67c94
      	PR bootstrap/64213
      	Revert:
      	2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR rtl-optimization/64037
      	* combine.c (setup_incoming_promotions): Pass the argument
      	before any promotions happen to promote_function_mode.
      
      testsuite/ChangeLog:
      
      	PR bootstrap/64213
      	Revert:
      	2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR rtl-optimization/64037
      	* g++.dg/pr64037.C: New test.
      
      From-SVN: r218516
      Uros Bizjak committed
    • re PR tree-optimization/64193 (Decreased performance after r173250) · 92a5094e
      2014-12-09  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/64193
      	* tree-ssa-alias.c (walk_non_aliased_vuses): Add valueize parameter
      	and valueize the VUSE before looking up the def stmt.
      	* tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
      	* tree-ssa-sccvn.c (vn_reference_lookup_pieces): Pass vn_valueize
      	to walk_non_aliased_vuses.
      	(vn_reference_lookup): Likewise.
      	* tree-ssa-dom.c (lookup_avail_expr): Pass NULL as valueize
      	callback to walk_non_aliased_vuses.
      
      	* gcc.dg/tree-ssa/ssa-fre-43.c: New testcase.
      
      From-SVN: r218515
      Richard Biener committed
    • Local Vim config with GNU formatting. · c3e1e693
          
      2014-12-09  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      	    Yury Gribov  <y.gribov@samsung.com>
          
      /
      	* .gitignore: Added .local.vimrc and .lvimrc.
      	* Makefile.tpl (vimrc, .lvimrc, .local.vimrc): New targets.
      	* Makefile.in: Regenerate.
      
      contrib/
      	* vimrc: New file.
      
      From-SVN: r218514
      Yury Gribov committed
    • re PR tree-optimization/64199 (ICE: tree check: expected class 'constant', have… · 85fd4c28
      re PR tree-optimization/64199 (ICE: tree check: expected class 'constant', have 'binary' (plus_expr) in fold_binary_loc, at fold-const.c:10404 with -ffast-math -frounding-math)
      
      2014-12-09  Richard Biener  <rguenther@suse.de>
      
      	PR middle-end/64199
      	* fold-const.c (fold_binary_loc): Use TREE_OVERFLOW_P.
      
      	* gcc.dg/torture/pr64199.c: New testcase.
      
      From-SVN: r218513
      Richard Biener committed
    • re PR libstdc++/64203 (shared_mutex compile errors on bare-metal targets) · 60b6534a
      	PR libstdc++/64203
      	* include/std/shared_mutex: Fix preprocessor conditions.
      	* testsuite/experimental/feat-cxx14.cc: Check conditions.
      
      From-SVN: r218511
      Jonathan Wakely committed
    • re PR tree-optimization/64191 (indirect clobbers messes up dead code elimination… · ac6aeab4
      re PR tree-optimization/64191 (indirect clobbers messes up dead code elimination in loop calling dtor)
      
      2014-12-09  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/64191
      	* tree-vect-stmts.c (vect_stmt_relevant_p): Clobbers are
      	not relevant (nor are their uses).
      
      From-SVN: r218509
      Richard Biener committed
    • lto-partition.c (privatize_symbol_name): Correctly privatize instrumentation clones. · 6c779727
      gcc/
      
      	* lto/lto-partition.c (privatize_symbol_name): Correctly
      	privatize instrumentation clones.
      
      gcc/testsuite/
      
      	* gcc.dg/lto/lto.exp: Load mpx-dg.exp.
      	* gcc.dg/lto/chkp-privatize_0.c: New.
      	* gcc.dg/lto/chkp-privatize_1.c: New.
      
      From-SVN: r218508
      Ilya Enkovich committed
    • lto-cgraph.c (input_cgraph_1): Don't break existing instrumentation clone references. · 6a73516d
      	* lto-cgraph.c (input_cgraph_1): Don't break existing
      	instrumentation clone references.
      	* lto/lto-symtab.c (lto_cgraph_replace_node): Redirect
      	instrumented_version references appropriately.
      
      From-SVN: r218507
      Ilya Enkovich committed
    • re PR bootstrap/63995 (Bootstrap error with -mmpx -fcheck-pointer-bounds) · 227eabce
      gcc/
      
      	PR bootstrap/63995
      	* tree-chkp.c (chkp_make_static_bounds): Share bounds var
      	between nodes sharing assembler name.
      
      gcc/testsuite/
      
      	PR bootstrap/63995
      	* g++.dg/dg.exp: Add mpx-dg.exp.
      	* g++.dg/pr63995-1.C: New.
      
      From-SVN: r218506
      Ilya Enkovich committed
    • re PR target/64204 (gcc.dg/c11-atomic-2.c fails on powerpc 64-bit little endian… · f9ea9950
      re PR target/64204 (gcc.dg/c11-atomic-2.c fails on powerpc 64-bit little endian after -mupper-regs patches went in)
      
      2014-12-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
      
      	PR target/64204
      	* config/rs6000/rs6000.c (rs6000_emit_move): Do not split TFmode
      	constant moves if -mupper-regs-df.
      
      	* config/rs6000/rs6000.md (mov<mode>_64bit_dm): Optimize moving
      	0.0L to TFmode.
      	(movtd_64bit_nodm): Likewise.
      	(mov<mode>_32bit, FMOVE128 case): Likewise.
      
      From-SVN: r218505
      Michael Meissner committed
    • simplify-rtx.c (simplify_relational_operation_1): Handle simplification… · 10828a01
      simplify-rtx.c (simplify_relational_operation_1): Handle simplification identities for BICS patterns.
      
      2014-12-08  Sandra Loosemore  <sandra@codesourcery.com>
      
      	gcc/
      	* simplify-rtx.c (simplify_relational_operation_1): Handle
      	simplification identities for BICS patterns.
      
      	gcc/testsuite/
      	* gcc.target/aarch64/bics_4.c: New.
      
      From-SVN: r218503
      Sandra Loosemore committed
    • move gimple_canonical_types htab out of gc memory · 58dddbd2
      lto/
      
      	* lto.c (read_cgraph_and_symbols): allocate gimple_canonical_types
      	htab with malloc instead of ggc.
      
      From-SVN: r218502
      Trevor Saunders committed
    • remove param_is from nvptx · f3dba894
      gcc/
      
      	* config/nvptx/nvptx.c: Convert htabs to hash_table.
      
      From-SVN: r218501
      Trevor Saunders committed
    • Daily bump. · 13ef9090
      From-SVN: r218500
      GCC Administrator committed
  2. 08 Dec, 2014 19 commits
  3. 07 Dec, 2014 5 commits