1 2016-07-25 Jiong Wang <jiong.wang@arm.com>
3 * config/aarch64/aarch64-simd.md
4 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
5 (aarch64_ext<mode>): Likewise.
6 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
7 * config/aarch64/aarch64.c (aarch64_evpc_trn): Support V4HFmode and
9 (aarch64_evpc_uzp): Likewise.
10 (aarch64_evpc_zip): Likewise.
11 (aarch64_evpc_ext): Likewise.
12 (aarch64_evpc_rev): Likewise.
13 * config/aarch64/arm_neon.h (__aarch64_vdup_lane_f16): New.
14 (__aarch64_vdup_laneq_f16): New..
15 (__aarch64_vdupq_lane_f16): New.
16 (__aarch64_vdupq_laneq_f16): New.
22 (vdup_laneq_f16): New.
23 (vdupq_lane_f16): New.
24 (vdupq_laneq_f16): New.
25 (vduph_lane_f16): New.
26 (vduph_laneq_f16): New.
39 (__INTERLEAVE_LIST): Support float16x4_t, float16x8_t.
46 (vmov_n_f16): Reimplement using vdup_n_f16.
47 (vmovq_n_f16): Reimplement using vdupq_n_f16..
49 2016-07-25 Jiong Wang <jiong.wang@arm.com>
51 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
52 "frame_related_p". Generate CFA annotation when it's necessary.
53 (aarch64_expand_prologue): Use aarch64_add_constant.
54 (aarch64_expand_epilogue): Likewise.
55 (aarch64_output_mi_thunk): Pass "false" when calling
58 2016-07-25 Jiong Wang <jiong.wang@arm.com>
60 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
63 2016-07-25 Jiong Wang <jiong.wang@arm.com>
65 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
66 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
67 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
68 (aarch64_build_constant): Delete.
70 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
73 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
75 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
76 flag_toplevel_reorder.
78 2016-07-25 Richard Biener <rguenther@suse.de>
80 * cgraph.c (cgraph_node::verify_node): Compare against builtin
81 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
82 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
83 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
84 (streamer_get_builtin_tree): Likewise.
85 (streamer_write_builtin): Likewise.
86 * lto-streamer.h (LTO_builtin_decl): Remove.
87 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
88 (lto_input_scc): Remove LTO_builtin_decl handling.
89 (lto_input_tree_1): Liekwise.
90 * lto-streamer-out.c (lto_output_tree_1): Remove special
93 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
94 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
96 (streamer_write_builtin): Remove.
98 2016-07-25 Martin Liska <mliska@suse.cz>
100 * lto-cgraph.c (input_symtab): Don't call get_working_sets
101 if flag_auto_profile is set to true.
103 2016-07-25 Martin Liska <mliska@suse.cz>
105 PR gcov-profile/71868
106 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
107 have a function with multiple latches, count them all.
109 2016-07-25 Martin Liska <mliska@suse.cz>
111 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
113 2016-07-25 Martin Liska <mliska@suse.cz>
115 PR tree-optimization/71987
116 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
117 just for SSA_NAMEs. Fix GNU coding style.
119 2016-07-25 Martin Liska <mliska@suse.cz>
121 PR gcov-profile/64874
122 * gcov-io.h: Update command about file format.
123 * gcov-iov.c (main): Adapt the numbering scheme.
125 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
128 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
129 whose result is used in PHI.
130 (final_range_test_p): Likewise.
131 (maybe_optimize_range_tests): Likewise.
133 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
135 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
136 Reformat two multi-line strings.
138 2016-07-22 Martin Sebor <msebor@redhat.com>
140 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
142 2016-07-22 Martin Sebor <msebor@redhat.com>
145 * doc/extend.texi (Compound Literals): Correct and clarify.
146 (Cast to Union): Same.
148 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
150 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
151 comments to explain why certain error messages make mention of
152 undocumented options.
153 (rs6000_invalid_builtin): Change error messages to replace mention
154 of undocumented options with mention of the -mcpu=power9 option
155 that enables those undocumented options.
156 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
157 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
158 definition of this macro to correct an existing error.
159 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
160 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
161 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
162 descriptions of built-in functions so that they depend on
163 -mcpu=power9 instead of on the corresponding undocumented flags.
164 * doc/invoke.texi (Option Summary): Remove all mention of newly
166 (IBM RS/6000 and PowerPC Options): Likewise.
167 * doc/md.texi (Constraints for Particuliar Machines): Remove all
168 mention of newly undocumented flags.
170 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
172 * ipa-cp.c (determine_versionability): Do not create constprop clones,
173 when target_clones attribute is set.
175 2016-07-22 Bin Cheng <bin.cheng@arm.com>
177 * common.opt (funsafe-loop-optimizations): Mark ignore.
178 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
179 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
181 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
182 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
184 2016-07-22 Bin Cheng <bin.cheng@arm.com>
186 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
188 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
190 (number_of_iterations_exit): Warn missed loop optimization for
191 possible infinite loops.
193 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
195 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
196 when to emit a ".machine" pseudo-op.
198 2016-07-22 Martin Liska <mliska@suse.cz>
200 PR gcov-profile/69028
201 PR gcov-profile/62047
202 * coverage.c (coverage_compute_lineno_checksum): Do not
203 calculate checksum for fns w/o xloc.file.
204 (coverage_compute_profile_id): Likewise.
206 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
208 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
209 (avr_secondary_reload): ...and implementation.
210 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
211 * config/avr/avr.md (reload_in<mode>): Remove insns.
212 (adjust_len) [lpm]: Remove insn attribute value.
213 * config/avr/predicates.md (flash_operand): Remove insn predicate.
215 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
218 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
220 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
221 * calls.c (special_function_p): Remove the special handling of the
224 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
227 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
228 if STMT may be an alloca call.
229 (gimple_alloca_call_p, alloca_call_p): Return only true for the
231 * calls.h (gimple_maybe_alloca_call_p): New function.
232 * tree-inline.c (inline_forbidden_p_stmt): Use
233 gimple_maybe_alloca_call_p here.
235 2016-07-21 David Malcolm <dmalcolm@redhat.com>
237 * spellcheck-tree.c (best_macro_match::best_macro_match):
238 Explictly specify the template arguments when invoking the base
239 class constructor, to help older C++ compilers.
241 2016-07-21 Jakub Jelinek <jakub@redhat.com>
244 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
245 before builtin_decl_implicit.
247 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
249 * optabs.c (emit_condiitonal_move): Short circuit for identical
252 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
254 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
255 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
256 (noce_conversion_profitable_p): New.
257 (noce_try_store_flag_constants): Use it.
258 (noce_try_addcc): Likewise.
259 (noce_try_store_flag_mask): Likewise.
260 (noce_try_cmove): Likewise.
261 (noce_try_cmove_arith): Likewise.
262 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
264 (noce_convert_multiple_sets): Move cost model to here, from...
265 (bb_ok_for_noce_convert_multiple_sets) ...here.
266 (noce_process_if_block): Update calls for above changes.
267 (noce_find_if_block): Record new noce_if_info parameters.
269 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
271 * target.def (max_noce_ifcvt_seq_cost): New.
272 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
273 * doc/tm.texi: Regenerate.
274 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
275 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
276 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
277 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
278 * doc/invoke.texi: Document new params.
280 2016-07-21 Richard Biener <rguenther@suse.de>
282 PR tree-optimization/71947
283 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
284 ranges have useful limit_vr information.
286 2016-07-21 Richard Biener <rguenther@suse.de>
288 * function-tests.c (build_trivial_generic_function): Set
289 BLOCK_SUPERCONTEXT of DECL_INITIAL.
290 * omp-low.c (create_omp_child_function): Likewise.
291 (grid_expand_target_grid_body): Likewise.
292 * cgraphunit.c (init_lowered_empty_function): Likewise.
293 (cgraph_node::expand_thunk): Likewise.
294 * tree-parloops.c (create_loop_fn): Likewise.
295 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
297 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
299 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
302 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
304 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
305 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
306 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
307 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
308 values for insn attribute.
309 * config/avr/avr.c (avr_out_insert_notbit): New function.
310 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
311 ADJUST_LEN_INSV_NOTBIT_0/_7.
312 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
314 2016-07-21 Bin Cheng <bin.cheng@arm.com>
316 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
317 (chrec_convert_1, chrec_convert): Ditto.
318 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
319 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
320 * tree-vrp.c (adjust_range_with_scev): Ditto.
321 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
322 (scev_var_range_cant_overflow): New function.
323 (scev_probably_wraps_p): New parameter. Call above function.
324 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
326 2016-07-21 Bin Cheng <bin.cheng@arm.com>
328 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
329 by removing computation of may_be_zero.
331 2016-07-21 Jakub Jelinek <jakub@redhat.com>
333 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
335 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
337 Improving concepts performance and diagnostics.
338 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
339 for constraint satisfaction and subsumption.
340 * timevar.h (auto_timevar): New constructor that matches the push/pop
341 pattern of usage in pt.c.
343 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
345 * hwint.h (HOST_WIDE_INT_0): New define.
346 (HOST_WIDE_INT_0U): Ditto.
347 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
348 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
349 * simplify-rtx.c: Ditto.
350 * tree-object-size.c: Ditto.
352 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
354 * config/s390/s390.c (s390_encode_section_info): Remove mode size
357 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
359 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
360 * combine.c: Use HOST_WIDE_INT_M1U instead of
361 ~(unsigned HOST_WIDE_INT) 0.
362 * double-int.h: Ditto.
369 * tree-ssa-loop-ivopts.c: Ditto.
370 * tree-ssa-loop-prefetch.c: Ditto.
371 * tree-vect-generic.c: Ditto.
372 * tree-vect-patterns.c: Ditto.
375 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
377 * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
378 constant addresses outside [0,0xc0] into a register.
379 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
380 cases where the base address register is unused after.
381 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
382 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
383 (avr_out_store_psi_reg_disp_tiny): Same.
385 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
387 Implement attribute progmem on reduced Tiny cores by adding
388 flash offset 0x4000 to respective symbols.
391 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
392 documentation how it works on reduced Tiny cores.
393 (AVR Named Address Spaces): No support for reduced Tiny.
394 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
395 (avr_address_tiny_pm_p): New static function.
396 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
397 if the address is in progmem.
398 (avr_assemble_integer): Same.
399 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
400 for symbol_ref in progmem.
401 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
402 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
403 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
405 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
407 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
408 * configure: Regenerate.
409 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
410 (USE_THIN_ARCHIVES): New variable.
411 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
412 this archive as a thin archive.
414 2016-07-20 David Malcolm <dmalcolm@redhat.com>
416 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
417 same location as last time, don't skip if we have fix-it hints.
418 Clarify the skipping logic by converting it from one "if" clause
419 to repeated "if" clauses.
420 * spellcheck-tree.c: Include "cpplib.h".
421 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
422 (best_macro_match::best_macro_match): New constructor.
423 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
424 Move here from c/c-decl.c.
425 (class best_macro_match): Move here from c/c-decl.c, converting
426 from a typedef to a subclass, gaining a ctor.
428 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
430 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
431 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
433 (avr_addr_space_diagnose_usage): ...and implementation.
434 (avr_addr_space_supported_p): New function.
435 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
436 report bad address space usage if that space is supported.
437 (avr_insert_attributes): Same. No more complain about unsupported
439 * config/avr/avr-c.c (tm_p.h): Include it.
440 (avr_cpu_cpp_builtins): Only define addr-space related built-in
441 macro if avr_addr_space_supported_p.
443 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
445 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
446 flag_toplevel_reorder.
448 2016-07-20 David Malcolm <dmalcolm@redhat.com>
450 * gcc-rich-location.c
451 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
453 * gcc-rich-location.h
454 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
456 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
458 * target.def (addr_space): Add new diagnose_usage to hook vector.
459 * targhooks.c (default_addr_space_diagnose_usage): Add default
460 implementation and...
461 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
462 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
463 is some address space, call targetm.addr_space.diagnose_usage.
464 * doc/tm.texi.in (Named Address Spaces): Add anchor for
465 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
466 * doc/tm.texi: Regenerate.
468 2016-07-20 Martin Liska <mliska@suse.cz>
471 * graphite-isl-ast-to-gimple.c (later_of_the_two):
472 Properly handly PHI stmts.
474 2016-07-20 Bin Cheng <bin.cheng@arm.com>
476 PR tree-optimization/71503
477 PR tree-optimization/71683
478 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
481 2016-07-20 Martin Liska <mliska@suse.cz>
483 * doc/invoke.texi (-fipa-ra): Document when the option is
484 disabled. Fix a typo.
486 2016-07-20 Martin Liska <mliska@suse.cz>
488 * Makefile.in: Include fibonacci_heap.c
489 * fibonacci_heap.c: New file.
490 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
491 (fibonacci_heap::union_with): Fix deletion of the second heap.
492 * selftest-run-tests.c (selftest::run_tests): Incorporate
493 fibonacci heap tests.
494 * selftest.h: Declare fibonacci_heap_c_tests.
496 2016-07-20 Martin Liska <mliska@suse.cz>
498 * selftest-run-tests.c (selftest::run_tests): New function.
499 * selftest.h (sreal_c_tests): Declare.
500 * sreal.c (sreal_verify_basics): New function.
501 (verify_aritmetics): Likewise.
502 (sreal_verify_arithmetics): Likewise.
503 (verify_shifting): Likewise.
504 (sreal_verify_shifting): Likewise.
505 (void sreal_c_tests): Likewise.
507 2016-07-19 Jakub Jelinek <jakub@redhat.com>
509 PR rtl-optimization/71916
510 * cfgrtl.c (contains_no_active_insn_p): Return false also for
511 bb which have a single succ fake edge.
513 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
516 * dwarf2out.c (gen_subprogram_die): Only call
517 gen_unspecified_parameters_die while dumping early dwarf.
519 2016-07-19 Jakub Jelinek <jakub@redhat.com>
522 * gimple-fold.c (fold_builtin_memory_op): Use
523 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
525 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
527 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
528 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
529 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
530 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
534 * double-int.c: Ditto.
536 * dwarf2out.c: Ditto.
539 * fold-const.c: Ditto.
546 * loop-doloop.c: Ditto.
547 * loop-invariant.c: Ditto.
554 * simplify-rtx.c: Ditto.
555 * stor-layout.c: Ditto.
557 * tree-ssa-loop-ivopts.c: Ditto.
558 * tree-vect-generic.c: Ditto.
559 * tree-vect-patterns.c: Ditto.
564 * wide-int-print.cc: Ditto.
565 * wide-int.cc: Ditto.
568 2016-07-19 David Malcolm <dmalcolm@redhat.com>
570 * selftest.c (selftest::assert_streq): Handle NULL values of
571 val_actual and val_expected.
573 2016-07-19 Martin Jambor <mjambor@suse.cz>
576 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
577 rather than cgraph_create_node to get a call graph node.
579 2016-07-19 Richard Biener <rguenther@suse.de>
581 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
582 handle all tcc_constant bases and valueize SSA names.
583 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
586 2016-07-19 David Malcolm <dmalcolm@redhat.com>
588 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
589 the flags of the exit block and bb2, not just the entry block.
591 2016-07-19 Richard Biener <rguenther@suse.de>
593 PR tree-optimization/71901
594 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
595 align member, group stuff with the bitfield.
596 (vn_ref_op_align_unit): New inline.
597 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
598 record element alignment and operand 3 unchanged.
599 (ao_ref_init_from_vn_reference): Adjust.
600 (valueize_refs_1): Likewise.
601 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
603 2016-07-19 Richard Biener <rguenther@suse.de>
605 PR tree-optimization/71908
606 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
607 symbolic constants in a more reliable way.
609 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
611 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
613 (vect_update_inits_of_drs): Likewise.
614 (vect_create_cond_for_alias_checks): Likewise.
615 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
617 2016-07-19 Richard Biener <rguenther@suse.de>
620 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
621 with an abstract origin that is not an inlined function outer
622 scope add a self-reference as abstract origin.
623 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
625 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
628 * config/rs6000/rs6000.c (rs6000_function_value): Fix
629 unintentional System V.4 structure return breakage for structures
630 with a single floating point element.
632 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
634 PR tree-optimization/71734
635 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
636 contains REF, use it to check safelen, assume that safelen value
637 must be greater 1, fix style.
638 (ref_indep_loop_p_2): Add REF_LOOP argument.
639 (ref_indep_loop_p): Pass LOOP as additional argument to
642 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
644 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
645 allocation in the prologue.
646 * explow.c (get_dynamic_stack_base): New function to return an address
647 expression for the dynamic stack base.
648 (get_dynamic_stack_size): New function to do the required dynamic stack
649 space size calculations.
650 (allocate_dynamic_stack_space): Use new functions.
651 (align_dynamic_address): Move some code from
652 allocate_dynamic_stack_space to new function.
653 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
655 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
657 * config/s390/s390.c (s390_encode_section_info): Always set
658 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
661 2016-07-18 Richard Biener <rguenther@suse.de>
663 PR tree-optimization/71893
664 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
665 for sizetype cast added by array_ref_element_size.
666 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
668 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
670 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
671 register parameters. Remove code to initialize argument pointer
672 on TARGET_64BIT. Optimize call to _mcount when it can be reached
673 using a pc-relative branch. Cleanup conditional code.
674 * config/pa/pa.md (call_mcount): New expander.
675 (call_mcount_nonpic): New insn.
676 (call_mcount_pic): New insn and split.
677 (call_mcount_pic_post_reload): New insn.
678 (call_mcount_64bit): New insn and split.
679 (call_mcount_64bit_post_reload): New insn.
681 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
683 * config/avr/predicates.md (const_m255_to_m1_operand): New.
684 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
685 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
686 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
687 (*usum_widenqihi3, *udiff_widenqihi3)
688 (*addhi3_zero_extend.const): New combiner insns.
689 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
690 just 1 bit is affected.
691 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
692 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
694 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
696 * omp-low.c (lower_omp_target): Mark data clauses with
697 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
698 zero-length subarrays.
700 2016-07-15 Richard Biener <rguenther@suse.de>
702 PR tree-optimization/71881
703 * tree-loop-distribution.c (destroy_loop): Remove blocks in
704 reverse DOM order to make debug temp generation happy.
706 2016-07-15 Richard Biener <rguenther@suse.de>
708 PR tree-optimization/71887
709 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
710 verify it is not zero for division / modulo handling.
711 (value_replacement): Adjust.
713 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
714 Julian Brown <julian@codesourcery.com>
716 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
717 * config/aarch64/aarch64-cost-tables.h
718 (vulcan_extra_costs): New variable.
719 * config/aarch64/aarch64.c
720 (vulcan_addrcost_table): Likewise.
721 (vulcan_regmove_cost): Likewise.
722 (vulcan_vector_cost): Likewise.
723 (vulcan_branch_cost): Likewise.
724 (vulcan_tunings): Likewise.
726 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
728 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
729 (output_in_order): Loop over undefined variables too. Output them
730 via assemble_undefined_decl. Skip variables that correspond to hard
731 registers or have value-exprs.
732 * varpool.c (symbol_table::output_variables): Handle undefined
733 variables together with defined ones.
735 2016-07-15 Richard Biener <rguenther@suse.de>
737 * tree-ssa-pre.c (get_representative_for): Make sure to return
738 the value number of SSA names.
739 (phi_translate_1): get_representative_for cannot return NULL.
740 (do_pre_regular_insertion): Remove redundant call to
741 fully_constant_expression.
742 (do_pre_partial_partial_insertion): Likewise.
744 2016-07-15 Bin Cheng <bin.cheng@arm.com>
746 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
747 (derive_simple_iv_with_niters): New function.
748 (simple_iv): Rewrite using simple_iv_with_niters.
749 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
750 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
752 (number_of_iterations_exit): Rewrite using above function.
753 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
756 2016-07-15 Richard Biener <rguenther@suse.de>
758 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
761 2016-07-14 Jakub Jelinek <jakub@redhat.com>
763 PR tree-optimization/71872
764 * tree-data-ref.c (get_references_in_stmt): Ignore references
765 with is_gimple_constant get_base_address.
767 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
769 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
770 (TARGET_HAVE_LDACQD): New macro.
771 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
772 than TARGET_HAVE_LDACQ.
773 (arm_load_acquire_exclusivedi): Likewise.
774 (arm_store_release_exclusivedi): Likewise.
776 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
778 PR rtl-optimization/71878
779 * lra-constraints.c (match_reload): Pass information about other
780 output operands. Create new unique register value if matching input
781 operand shares same register value as output operand being considered.
782 (curr_insn_transform): Record output operands already processed.
784 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
787 PR tree-optimization/70923
788 * tree-vect-patterns.c: Include mult-synthesis.h.
789 (target_supports_mult_synth_alg): New function.
790 (synth_lshift_by_additions): Likewise.
791 (apply_binop_and_append_stmt): Likewise.
792 (vect_synth_mult_by_constant): Likewise.
793 (target_has_vecop_for_code): Likewise.
794 (vect_recog_mult_pattern): Use above functions to synthesize vector
795 multiplication by integer constants.
797 2016-07-14 Alan Modra <amodra@gmail.com>
799 * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
800 gpr alternatives. Correct '*' placement on Y,r alternative.
801 Add '*' on operand 1 of r,r alternative.
803 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
805 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
806 * expmed.h: ... Here.
808 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
810 * gimple.h (stmt_can_terminate_bb_p): New function.
811 * tree-cfg.c (need_fake_edge_p): Rename to ...
812 (stmt_can_terminate_bb_p): ... this; return true if stmt can
813 throw external; handle const and pure calls.
814 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
816 2016-07-14 Richard Biener <rguenther@suse.de>
818 PR tree-optimization/71866
819 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
820 (do_hoist_insertion): Avoid endless recursion when we
821 didn't insert anything because we managed to simplify
822 things down to a constant or SSA name.
823 (fully_constant_expression): Re-write in terms of ...
824 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
825 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
826 vn_nary_build_or_lookup_1.
827 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
828 (vn_nary_build_or_lookup): ... this which now wraps it.
830 2016-07-14 Alan Modra <amodra@gmail.com>
833 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
834 with p9_vector override before power9-dform override.
836 2016-07-13 Andi Kleen <ak@linux.intel.com>
838 * value-prof.c (gimple_value_profile_transformations): Don't run
839 when auto_profile is on.
841 2016-07-13 Andi Kleen <ak@linux.intel.com>
843 * auto-profile.c (update_inlined_ind_target,
844 afdo_indirect_call): Print information to dump file.
846 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
848 * genrecog.c (special_predicate_operand_p): New function.
849 (predicate_name): Move function.
850 (validate_pattern): Don't warn about missing mode for all
851 define_special_predicate predicates.
853 2016-07-13 Bin Cheng <bin.cheng@arm.com>
855 * tree-vect-data-refs.c (vect_no_alias_p): New function.
856 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
857 resolve alias checks which are known at compilation time.
858 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
859 alias checks are resolved. Move dump info for too many runtime
860 alias checks to here...
861 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
863 2016-07-13 Richard Biener <rguenther@suse.de>
865 PR tree-optimization/24574
866 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
867 position and add shift, rotate, divison and modulo support
869 (value_replacement): Pass in argument position to absorbing_element_p.
871 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
874 * ipa-inline-transform.c (inline_call): Support
877 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
879 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
880 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
882 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
883 Baseline. Make initial alternative TARGET_32BIT only.
885 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
886 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
889 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
891 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
892 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
893 availability with TARGET_HAVE_MOVT.
894 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
895 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
896 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
898 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
899 extra instruction if MOVW is available. Use a cost variable
900 incremented by COSTS_N_INSNS (1) when the condition match rather than
901 returning an arithmetic expression based on COSTS_N_INSNS. Make
902 constant with bottom half word zero cost 2 instruction if MOVW is
904 * config/arm/arm.md (define_attr "arch"): Add v8mb.
905 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
906 target is ARMv8-M Baseline.
907 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
908 (arm_movtas_ze): Likewise.
909 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
910 alternative for constants satisfying j constraint.
911 (thumb1_movsi_insn): Likewise.
912 (movsi splitter for K alternative): Tighten condition to not trigger
913 if movt is available and j constraint is satisfied.
914 (Pe immediate splitter): Likewise.
915 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
916 constant fitting in an halfword to use MOVW.
917 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
920 2016-07-13 Richard Biener <rguenther@suse.de>
923 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
924 gimplifying the LHS. Make sure to gimplify a returning twice
925 call LHS without using SSA names.
927 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
929 * tree-data-ref.c (find_data_references_in_stmt): Remove
930 unnecessary call to vec::release.
931 (graphite_find_data_references_in_stmt): Likewise.
932 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
933 * tree-vect-stmts.c (vectorizable_condition): Likewise.
935 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
937 * cfgexpand.c (expand_used_vars): Make the type of a local
939 * genmatch.c (lower_for): Likewise.
940 * haifa-sched.c (haifa_sched_init): Likewise.
941 (add_to_speculative_block): Likewise.
942 (create_check_block_twin): Likewise.
943 * predict.c (handle_missing_profiles): Likewise.
944 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
945 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
946 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
948 (maybe_lower_iteration_bound): Likewise.
949 * tree-ssa-sccvn.c (DFS): Likewise.
950 * tree-stdarg.c (reachable_at_most_once): Likewise.
951 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
952 (vectorizable_store): Likewise.
954 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
956 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
957 (sccvn_dom_walker): make cond_stack an auto_vec.
959 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
961 * ree.c (struct ext_state): Make type of members auto_vec.
962 (find_and_remove_re): Adjust.
964 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
966 * cfgexpand.c (struct stack_vars_data): Make type of fields
968 (expand_used_vars): Adjust.
970 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
972 * ipa.c (record_cdtor_fn): Adjust.
973 (build_cdtor_fns): Likewise.
974 (ipa_cdtor_merge): Make static_ctors and static_dtors local
977 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
979 * genextract.c (struct accum_extract): Add constructor and make
983 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
985 * tree.c (struct free_lang_data_d): Add constructor and change
986 types of members to ones that automatically manage resources.
987 (fld_worklist_push): Adjust.
988 (find_decls_types): Likewise.
989 (find_decls_types_in_eh_region): Likewise.
990 (free_lang_data_in_cgraph): Stop manually creating and
991 destroying members of free_lang_data_d.
993 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
995 PR rtl-optimization/68961
996 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
997 peephole variant. Use sse_reg_operand predicates.
999 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
1001 * config/i386/predicates.md (x86_64_immediate_operand)
1002 <case CONST_INT>: Remove unneeded truncation to DImode.
1003 <case CONST>: Ditto.
1004 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
1006 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1009 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
1010 The xxperm and xxpermr instructions require that the 2nd input
1011 operand overlap with the output operand, and not the 1st.
1012 (altivec_vperm_v8hiv16qi): Likewise.
1013 (altivec_vperm_<mode>_uns_internal): Likewise.
1014 (altivec_vpermr_<mode>_internal): Likewise.
1015 (vperm_v8hiv4si): Likewise.
1016 (vperm_v16qiv8hi): Likewise.
1018 2016-07-12 Martin Liska <mliska@suse.cz>
1020 * params.def: Add avg-loop niter.
1021 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
1022 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
1023 * doc/invoke.texi: Document the new parameter.
1025 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1028 * expr.c (store_constructor): Mask sign-extended bits when widening
1029 sub-word constructor element at the start of a word.
1031 2016-07-12 Martin Liska <mliska@suse.cz>
1033 * Makefile.in: Append rule for params-options.h.
1034 * params-options.h: New file.
1036 2016-07-12 Martin Liska <mliska@suse.cz>
1038 * ira-build.c (mark_loops_for_removal): Properly iterate
1041 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
1042 Richard Biener <rguenther@suse.de>
1044 PR tree-optimization/23286
1045 PR tree-optimization/70159
1046 * doc/invoke.texi: Document -fcode-hoisting.
1047 * common.opt (fcode-hoisting): New flag.
1048 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
1049 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
1050 (do_regular_insertion): Rename to ...
1051 (do_pre_regular_insertion): ... this and amend general comments
1052 on insertion strathegy.
1053 (do_partial_partial_insertion): Rename to ...
1054 (do_pre_partial_partial_insertion): ... this.
1055 (do_hoist_insertion): New function.
1056 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
1057 and call do_hoist_insertion properly.
1059 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
1060 (pass_pre::execute): Register hoist_insert stats.
1062 2016-07-12 Jakub Jelinek <jakub@redhat.com>
1065 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
1066 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
1067 is different from mode's bitsize. Small cleanup.
1069 2016-07-12 Richard Biener <rguenther@suse.de>
1071 PR rtl-optimization/68961
1072 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
1073 to simplify to a non-constant.
1075 2016-07-11 Jakub Jelinek <jakub@redhat.com>
1078 * omp-low.c (expand_omp_target): Gimplify device.
1080 PR tree-optimization/71823
1081 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
1082 to get vec_oprnds2 from op2.
1084 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
1086 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
1087 Hoist common subexpressions.
1088 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
1090 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
1093 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
1094 prevent generation of 'stxsiwx' on pre Power8 hardware.
1096 2016-07-11 David Malcolm <dmalcolm@redhat.com>
1098 * input.c: Include cpplib.h.
1099 (selftest::temp_source_file): New class.
1100 (selftest::temp_source_file::temp_source_file): New ctor.
1101 (selftest::temp_source_file::~temp_source_file): New dtor.
1102 (selftest::should_have_column_data_p): New function.
1103 (selftest::test_should_have_column_data_p): New function.
1104 (selftest::temp_line_table): New class.
1105 (selftest::temp_line_table::temp_line_table): New ctor.
1106 (selftest::temp_line_table::~temp_line_table): New dtor.
1107 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
1108 it to create a temp_line_table.
1109 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
1110 locations that are known to have column data.
1111 (selftest::line_table_case): New struct.
1112 (selftest::test_reading_source_line): Move tempfile handling
1113 to class temp_source_file.
1114 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
1115 (selftest::assert_token_loc_eq): New function.
1116 (ASSERT_TOKEN_LOC_EQ): New macro.
1117 (selftest::test_lexer): New function.
1118 (selftest::boundary_locations): New array.
1119 (selftest::input_c_tests): Call test_should_have_column_data_p.
1120 Loop over a test matrix of interesting values of location and
1121 default_range_bits, calling test_lexer on each case in the matrix.
1122 Move call to test_accessing_ordinary_linemaps into the matrix.
1123 * selftest.h (ASSERT_EQ): Reimplement in terms of...
1124 (ASSERT_EQ_AT): New macro.
1126 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
1129 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
1130 Don't convert TImode in debug insn.
1132 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1134 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
1135 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
1136 (tree_type_common::lang_flag_7): New.
1137 (tree_type_common::spare): Reduce size.
1138 * tree.h (TYPE_ALIGN_OK): Remove.
1139 (TYPE_LANG_FLAG_7): New.
1140 (get_inner_reference): Adjust header.
1141 * print-tree.c (print_node): Adjust.
1142 * expr.c (get_inner_reference): Remove parameter keep_aligning.
1143 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
1144 calls to get_inner_reference.
1145 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
1146 handling of TYPE_ALIGN_OK.
1147 * builtins.c (get_object_alignment_2): Adjust call to
1148 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
1149 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
1151 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
1152 * cfgexpand.c (expand_debug_expr): Likewise.
1153 * dbxout.c (dbxout_expand_expr): Likewise.
1154 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
1155 loc_list_from_tree, fortran_common): Likewise.
1156 * fold-const.c (optimize_bit_field_compare,
1157 decode_field_reference, fold_unary_loc, fold_comparison,
1158 split_address_to_core_and_offset): Likewise.
1159 * gimple-laddress.c (execute): Likewise.
1160 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
1161 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
1162 * hsa-gen.c (gen_hsa_addr): Likewise.
1163 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
1164 * tsan.c (instrument_expr): Likewise.
1165 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
1166 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
1167 * tree-affine.c (tree_to_aff_combination,
1168 get_inner_reference_aff): Adjust calls to get_inner_reference.
1169 * tree-data-ref.c (split_constant_offset_1,
1170 dr_analyze_innermost): Likewise.
1171 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
1172 * tree-sra.c (ipa_sra_check_caller): Likewise.
1173 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
1174 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
1175 bswap_replace): Likewise.
1176 * tree-vect-data-refs.c (vect_check_gather,
1177 vect_analyze_data_refs): Likewise.
1178 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
1179 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
1182 2016-07-11 David Malcolm <dmalcolm@redhat.com>
1184 * Makefile.in (selftest-valgrind): New phony target.
1185 * function-tests.c (selftest::build_cfg): Delete pass instances
1186 created by the test.
1187 (selftest::convert_to_ssa): Likewise.
1188 (selftest::test_expansion_to_rtl): Likewise.
1189 * tree-cfg.c (selftest::test_linear_chain): Release dominator
1191 (selftest::test_diamond): Likewise.
1193 2016-07-11 Richard Biener <rguenther@suse.de>
1195 PR tree-optimization/71816
1196 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
1197 than replacing all of its operands.
1199 2016-07-11 Alan Modra <amodra@gmail.com>
1201 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
1202 (ctr<mode>): Add unspec.
1203 (ctr<mode>_internal*): Likewise.
1205 2016-07-08 James Bowman <james.bowman@ftdichip.com>
1207 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
1208 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
1210 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
1212 PR rtl-optimization/71621
1213 * lra-constraints.c (process_alt_operands): Check combination of
1216 2016-07-08 Jason Merrill <jason@redhat.com>
1217 Richard Biener <rguenther@suse.de>
1219 P0145: Refining Expression Order for C++.
1220 * gimplify.c (initial_rhs_predicate_for): New.
1221 (gimplfy_modify_expr): Gimplify RHS before LHS.
1223 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1226 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1227 Allow standard error handling to take over when a wrong number
1228 of arguments is presented to __builtin_vec_ld () or
1229 __builtin_vec_st ().
1231 2016-07-08 Jiong Wang <jiong.wang@arm.com>
1233 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
1238 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
1239 __builtin_aarch64_fmaxv2sf.
1240 (vmaxnmq_f32): Likewise.
1241 (vmaxnmq_f64): Likewise.
1242 (vminnm_f32): Likewise.
1243 (vminnmq_f32): Likewise.
1244 (vminnmq_f64): Likewise.
1246 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1249 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
1250 enable -mfloat128-hardware by default.
1251 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
1252 that IEEE 128-bit hardware support needs.
1253 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
1254 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
1255 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
1256 floating point requires.
1257 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1258 -mfloat128 and -mfloat128-hardware changes.
1260 2016-07-08 Alan Hayward <alan.hayward@arm.com>
1262 PR tree-optimization/71667
1263 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
1265 2016-07-08 Martin Liska <mliska@suse.cz>
1268 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
1269 folding produces SAVE_EXPRs, thus return false for the type.
1271 2016-07-07 Martin Liska <mliska@suse.cz>
1273 * file-find.c (remove_prefix): New function.
1274 * file-find.h (remove_prefix): Declare the function.
1275 * gcc-ar.c (main): Skip a folder of the wrapper if
1276 a wrapped binary would point to the same file.
1278 2016-07-07 Jan Hubicka <jh@suse.cz>
1280 * tree-scalar-evolution.c (iv_can_overflow_p): export.
1281 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
1282 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
1284 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
1287 * ipa-inline-analysis.c (compute_inline_parameters): Set
1288 local.can_change_signature to false for intrumentation
1291 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1293 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
1294 with TARGET_HAVE_MOVT.
1295 (TARGET_HAVE_MOVT): Define.
1296 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
1297 availability with TARGET_HAVE_MOVT.
1298 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
1300 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
1302 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
1303 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
1304 * config/arm/constraints.md (define_constraint "j"): Use
1305 TARGET_HAVE_MOVT to check MOVT availability.
1307 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1309 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
1311 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1313 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
1314 (armv8-m.main): Likewise.
1315 (armv8-m.main+dsp): Likewise.
1316 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
1317 (FL_FOR_ARCH8M_MAIN): Likewise.
1318 * config/arm/arm-tables.opt: Regenerate.
1319 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
1320 armv8-m.main+dsp to BE8_LINK_SPEC.
1321 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
1322 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
1323 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
1324 Baseline and Mainline.
1325 (arm_option_override_internal): Also disable arm_restrict_it when
1326 !arm_arch_notm. Update comment for -munaligned-access to also cover
1328 (arm_file_start): Increase buffer size for printing architecture name.
1329 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
1330 and armv8-m.main+dsp.
1331 (mno-unaligned-access): Clarify that this is disabled by default for
1332 ARMv8-M Baseline architectures as well.
1334 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1336 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
1337 decide whether to prevent some libgcc routines being included for some
1338 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
1339 link between this condition and the one in
1340 libgcc/config/arm/lib1func.S.
1342 2016-07-07 Richard Biener <rguenther@suse.de>
1344 * tree-ssa-pre.c: Include alias.h.
1345 (compute_avail): If we have multiple VN_REFERENCEs with the
1346 same hashtable entry adjust that to make it a valid replacement
1347 for all of them with respect to alignment and aliasing
1348 when doing insertion.
1349 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
1350 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
1352 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
1356 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
1357 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
1360 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1362 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
1363 (adjust_mems): Adjust.
1364 (adjust_insn): Likewise.
1365 (prepare_call_arguments): Likewise.
1367 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1369 * gcse.c (struct ls_expr): Make stores field a vector.
1370 (ldst_entry): Adjust.
1371 (free_ldst_entry): Likewise.
1372 (print_ldst_list): Likewise.
1373 (compute_ld_motion_mems): Likewise.
1374 (update_ld_motion_stores): Likewise.
1376 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1378 * gcse.c (struct ls_expr): Remove loads field.
1379 (ldst_entry): Adjust.
1380 (free_ldst_entry): Likewise.
1381 (print_ldst_list): Likewise.
1382 (compute_ld_motion_mems): Likewise.
1384 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1386 * store-motion.c (struct st_expr): Make antic_stores a vector.
1387 (st_expr_entry): Adjust.
1388 (free_st_expr_entry): Likewise.
1389 (print_store_motion_mems): Likewise.
1390 (find_moveable_store): Likewise.
1391 (compute_store_table): Likewise.
1392 (remove_reachable_equiv_notes): Likewise.
1393 (replace_store_insn): Likewise.
1394 (build_store_vectors): Likewise.
1396 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1398 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
1399 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
1401 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
1403 PR tree-optimization/71518
1404 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
1405 misalign also for outer loops with negative step.
1407 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
1409 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
1410 (cortex_a53_shift): Add mov_shift.
1411 (cortex_a53_shift_reg): Add new reservation for register shifts.
1412 (cortex_a53_alu): Remove bfm.
1413 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
1414 (cortex_a53_alu_extr): Add new reservation for EXTR.
1415 (bypasses): Improve bypass modelling.
1417 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1420 * config/avr/avr.c (avr_asm_select_section): Strip off
1421 SECTION_DECLARED from flags when calling get_section.
1423 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
1425 * tree-vectorizer.h (vect_memory_access_type): Add
1426 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
1427 * tree-vect-stmts.c (compare_step_with_zero): New function.
1428 (perm_mask_for_reverse): Move further up file.
1429 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
1431 (get_negative_load_store_type): New function.
1432 (get_load_store_type): Call it. Add an ncopies argument.
1433 (vectorizable_mask_load_store): Update call accordingly and
1434 remove tests for negative steps.
1435 (vectorizable_store, vectorizable_load): Likewise. Handle new
1436 memory_access_types.
1438 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
1440 * tree-vectorizer.h (vect_memory_access_type): New enum.
1441 (_stmt_vec_info): Add a memory_access_type field.
1442 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
1443 (vect_model_store_cost): Take an access type instead of a boolean.
1444 (vect_model_load_cost): Likewise.
1445 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
1446 vect_model_store_cost and vect_model_load_cost.
1447 * tree-vect-stmts.c (vec_load_store_type): New enum.
1448 (vect_model_store_cost): Take an access type instead of a
1449 store_lanes_p boolean. Simplify tests.
1450 (vect_model_load_cost): Likewise, but for load_lanes_p.
1451 (get_group_load_store_type, get_load_store_type): New functions.
1452 (vectorizable_store): Use get_load_store_type. Record the access
1453 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
1454 (vectorizable_load): Likewise.
1455 (vectorizable_mask_load_store): Likewise. Replace is_store
1456 variable with vls_type.
1458 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
1460 * tree-vectorizer.h (vect_grouped_load_supported): Add a
1461 single_element_p parameter.
1462 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
1463 Check the PR65518 case here rather than in vectorizable_load.
1464 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
1465 * tree-vect-stmts.c (vectorizable_load): Likewise.
1467 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
1469 * tree-vectorizer.h (gather_scatter_info): New structure.
1470 (vect_check_gather_scatter): Return a bool rather than a decl.
1471 Replace return-by-pointer arguments with a single
1472 gather_scatter_info *.
1473 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
1474 (vect_analyze_data_refs): Update call accordingly.
1475 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
1476 (vectorizable_mask_load_store): Likewise. Also record the
1477 offset dt and vectype in the gather_scatter_info.
1478 (vectorizable_store): Likewise.
1479 (vectorizable_load): Likewise.
1481 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
1483 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
1484 strided groups, use the cost of N scalar accesses instead
1485 of ncopies vector accesses.
1486 (vect_model_load_cost): Likewise.
1488 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
1490 * tree-vect-stmts.c (vect_cost_group_size): Delete.
1491 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
1492 variable to indicate when once-per-group costs are being used.
1493 (vect_model_load_cost): Likewise. Fix comment and misindented code.
1495 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
1497 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
1498 peeling-for-gaps condition.
1500 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1502 * config/s390/s390.c (s390_expand_vec_init): Force initializer
1503 element to register if it doesn't match general_operand.
1505 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
1506 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1508 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
1510 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
1511 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
1512 (SIGNBIT): New mode iterator.
1513 (Fsignbit): New mode attribute.
1514 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
1515 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
1516 when direct moves are available.
1517 (signbit<mode>2_dm): New define_insn_and_split).
1518 (signbit<mode>2_dm2): New define_insn.
1520 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1522 PR rtl-optimization/71594
1523 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
1524 into subregs of appropriate mode before trying to emit a conditional
1527 2016-07-05 Jan Hubicka <jh@suse.cz>
1529 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
1530 (simple_iv): Use it.
1532 2016-07-05 Jan Hubicka <jh@suse.cz>
1534 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
1536 2016-07-05 Jiong Wang <jiong.wang@arm.com>
1538 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
1541 2016-07-05 Jan Hubicka <jh@suse.cz>
1543 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
1546 2016-07-05 Richard Biener <rguenther@suse.de>
1548 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
1549 Handle empty else block.
1550 (is_feasible_trace): Likewise.
1551 (split_paths): Likewise.
1553 2016-07-05 Richard Biener <rguenther@suse.de>
1555 * tree-loop-distribution.c (distribute_loop): Fix issue with
1556 the cost model loop.
1558 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
1560 * config/arm/neon-testgen.ml: Delete.
1561 * config/arm/neon.ml: Delete.
1563 2016-07-04 Jakub Jelinek <jakub@redhat.com>
1566 * tree.c (attribute_value_equal): Use get_attribute_name instead of
1567 directly using TREE_PURPOSE.
1569 2016-07-04 Jiong Wang <jiong.wang@arm.com>
1571 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
1572 * config/aarch64/aarch64_neon.h: Likewise.
1573 * config/aarch64/arm_neon.h: Likewise.
1574 * config/aarch64/atomics.md: Likewise.
1575 * config/aarch64/aarch64-simd-builtins.def: Likewise.
1576 * doc/invoke.texi: Likewise.
1578 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
1580 * config/s390/s390.md: Add "z13" cpu_facility.
1581 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
1582 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
1583 condition" type instructions.
1585 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
1586 Jeff Law <law@redhat.com>
1588 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
1589 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
1591 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
1593 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
1594 permutation for TARGET_AVX512F.
1595 (ix86_expand_vec_one_operand_perm_avx512): New function.
1596 (expand_vec_perm_1): Invoke introduced function.
1597 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
1598 it may be not valid after vectorization.
1600 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1603 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
1604 typo in comment. Only force to memory if it is a weak
1607 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
1608 Jiong Wang <jiong.wang@arm.com>
1610 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
1611 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
1612 (AARCH64_FL_F16): New.
1613 (AARCH64_FL_FOR_ARCH8_2): New.
1614 (AARCH64_ISA_8_2): New.
1615 (AARCH64_ISA_F16): New.
1616 (TARGET_FP_F16INST): New.
1617 (TARGET_SIMD_F16INST): New.
1618 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
1619 ("fp"): Disabling "fp" also disables "fp16".
1620 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
1621 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
1622 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
1623 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
1625 2016-07-04 Jan Beulich <jbeulich@suse.com>
1627 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
1629 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
1632 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
1633 the insns, use an insn form that does not adjust the offset on
1634 little endian systems.
1636 2016-07-01 Jan Beulich <jbeulich@suse.com>
1638 * varasm.c (get_variable_section): Validate initializer in
1639 named .bss-like sections.
1641 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
1643 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
1644 Exchange the order of the second and third operands in the vpermr
1645 instruction tmeplate.
1647 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
1650 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
1651 Disallow TDmode values.
1653 2016-07-01 Alan Modra <amodra@gmail.com>
1655 PR rtl-optimization/71709
1656 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
1657 being set, not referenced.
1659 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
1661 PR tree-optimization/70729
1662 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
1663 of loop since it can be not valid after transformation.
1665 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1667 * config/arm/arm.c (thumb_reload_in_hi): Delete.
1668 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
1670 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
1672 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
1675 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
1678 * config/rs6000/constraints.md (wY constraint): New constraint to
1679 match the requirements for the LXSD and STXSD instructions.
1680 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
1681 predicate to match the requirements for the LXSD and STXSD
1683 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
1684 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
1685 to make sure that the bottom 2 bits of offset are 0, the address
1686 form is offsettable, and no updating is done in the address mode.
1687 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
1688 (movdi_internal32): Likewise
1689 (movdi_internal64): Likewise.
1691 2016-06-30 Jakub Jelinek <jakub@redhat.com>
1693 PR tree-optimization/71707
1694 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
1695 strinfo even for ADDR_EXPR ptr.
1697 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
1699 * config/rs6000/altivec.md (darn_32): Change the condition to
1700 TARGET_P9_MISC instead of TARGET_MODULO.
1701 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
1702 condition expression.
1703 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
1704 condition expression.
1705 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
1706 (DFP_TEST): New code iterator.
1707 (dfptstsfi_<code>_mode>): New define_expand.
1708 (*dfp_sgnfcnc_<mode>): New define_insn.
1709 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
1710 definition next to BU_P9_MISC_1 definition and change the MASK
1711 value to RS6000_BTM_P9_MISC.
1712 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
1713 (BU_P9_64BIT_MISC_0): Likewise.
1714 (BU_P9_DFP_MISC_0): New macro definition.
1715 (BU_P9_DFP_MISC_1): New macro definition.
1716 (BU_P9_DFP_MISC_2): New macro definition.
1717 (BU_P9_DFP_OVERLOAD_1): New macro definition.
1718 (BU_P9_DFP_OVERLOAD_2): New macro definition.
1719 (BU_P9_DFP_OVERLOAD_3): New macro definition.
1720 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
1721 (TSTSFI_LT_TD): Likewise.
1722 (TSTSFI_EQ_DD): Likewise.
1723 (TSTSFI_EQ_TD): Likewise.
1724 (TSTSFI_GT_DD): Likewise.
1725 (TSTSFI_GT_TD): Likewise.
1726 (TSTSFI_OV_DD): Likewise.
1727 (TSTSFI_OV_TD): Likewise.
1728 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
1729 (TSTSFI_LT_DD): Likewise.
1730 (TSTSFI_LT_TD): Likewise.
1731 (TSTSFI_EQ): Likewise.
1732 (TSTSFI_EQ_DD): Likewise.
1733 (TSTSFI_EQ_TD): Likewise.
1734 (TSTSFI_GT): Likewise.
1735 (TSTSFI_GT_DD): Likewise.
1736 (TSTSFI_GT_TD): Likewise.
1737 (TSTSFI_OV): Likewise.
1738 (TSTSFI_OV_DD): Likewise.
1739 (TSTSFI_OV_TD): Likewise.
1740 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1741 overloaded test significance functions.
1742 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
1743 OPTION_MASK_P9_MISC into the representation of this mask.
1744 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
1746 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
1747 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
1749 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
1750 argument is a 6-bit unsigned literal value if the icode argument
1751 represents a DFP test significance built-in call.
1752 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
1753 flag used independently and in combination with the
1754 RS6000_BTM_64BIT flag.
1755 (rs6000_opt_masks): Add entry for power9-misc command-line option.
1756 (rs6000_builtin_mask_names): Add entry for power9-misc
1757 command-line option.
1758 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
1759 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
1760 RS6000_BTM_P9_MISC macros.
1761 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
1762 option and change the description of the -mpower9-vector option to
1763 enable only vector instructions, removing its erroneously claimed
1764 support for scalar instructions.
1765 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1766 the ISA 3.0 digital floating point test significance built-in
1769 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
1771 * config/aarch64/aarch64.c (cortexa35_tunings):
1772 Enable AES fusion. Use cortexa57_branch_cost.
1773 (cortexa53_tunings): Use cortexa57_branch_cost.
1774 (cortexa72_tunings): Use cortexa57_branch_cost.
1775 Use AUTOPREFETCHER_WEAK.
1776 (cortexa73_tunings): Use cortexa57_branch_cost.
1778 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1779 James Greenhalgh <james.greenhalgh@arm.com>
1781 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
1782 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
1783 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
1784 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
1785 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
1786 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
1787 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
1788 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
1789 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
1790 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
1791 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
1792 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
1793 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
1796 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
1797 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1799 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
1801 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
1803 2016-06-30 David Malcolm <dmalcolm@redhat.com>
1806 * gcc.c (driver::build_option_suggestions): Pass "option" to
1807 add_misspelling_candidates.
1808 * opts-common.c (add_misspelling_candidates): Add "option" param;
1809 use it to avoid adding negated forms for options marked with
1811 * opts.h (add_misspelling_candidates): Add "option" param.
1813 2016-06-30 Jakub Jelinek <jakub@redhat.com>
1816 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
1817 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
1818 first when permuting bitwise operation with rotate. Cast
1819 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
1821 2016-06-29 David Malcolm <dmalcolm@redhat.com>
1823 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
1824 for misspelled param names.
1825 * params.c: Include spellcheck.h.
1826 (find_param_fuzzy): New function.
1827 * params.h (find_param_fuzzy): New prototype.
1828 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
1829 * spellcheck.h (struct edit_distance_traits<const char *>):
1832 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1834 * config/rs6000/predicates.md (const_0_to_7_operand): New
1835 predicate, recognize 0..7.
1836 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1837 support for doing extracts from V16QImode, V8HImode, V4SImode
1839 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
1840 vector extract support.
1841 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
1842 for ISA 3.0 vector extract.
1843 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
1844 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
1845 extracts of a constant element number from small integer vectors
1846 on 64-bit ISA 3.0 systems.
1847 (vsx_extract_<mode>_di): Likewise.
1848 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
1849 say when we can do ISA 3.0 vector extracts.
1850 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
1851 registers, using the stxsiwx instruction.
1853 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
1855 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
1856 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
1857 qdf24xx_regmove_cost, qdf24xx_tunings): New.
1858 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
1859 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
1860 * config/arm/arm.c (arm_qdf24xx_tune): New.
1862 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
1864 * config/aarch64/aarch64.c (cortexa53_tunings):
1865 Increase loop alignment to 8. Set function alignment to 16.
1866 (cortexa35_tunings): Likewise.
1867 (cortexa57_tunings): Increase loop alignment to 8.
1868 (cortexa72_tunings): Likewise.
1869 (cortexa73_tunings): Likewise.
1871 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
1873 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
1874 for arm_fp16_ok and arm_fp16_hw.
1875 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
1876 arm_fp16_alternative.
1878 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
1880 PR tree-optimization/71655
1881 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
1882 types when swapping operands.
1884 2016-06-29 Martin Liska <mliska@suse.cz>
1887 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
1888 * ipa-inline-transform.c (inline_call): Remove unnecessary call
1889 of build_optimization_node.
1891 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
1893 PR tree-optimization/70729
1894 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
1895 independent in loops having positive safelen value.
1896 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
1897 it may be not valid after vectorization.
1899 2016-06-29 Jakub Jelinek <jakub@redhat.com>
1901 PR tree-optimization/71625
1902 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
1903 is sorted by ascending list->offset. If PTR is non-NULL and there is
1904 previous strinfo, call get_stridx_plus_constant.
1905 (get_stridx): Pass exp as second argument to get_addr_stridx.
1906 (addr_stridxptr): Add missing list = list->next, so that there can be
1907 more than one entries in the list. Bump limit from 16 to 32. Ensure
1908 the list is sorted by ascending list->offset.
1909 (get_stridx_plus_constant): Adjust so that it can be also called with
1910 ADDR_EXPR instead of SSA_NAME as PTR.
1911 (handle_char_store): Pass NULL_TREE as second argument to
1914 2016-06-29 Richard Biener <rguenther@suse.de>
1916 PR rtl-optimization/68961
1917 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
1919 2016-06-29 Richard Biener <rguenther@suse.de>
1922 * alias.c (component_uses_parent_alias_set_from): Handle
1923 type punning through union accesses by using the union alias set.
1924 * gimple.c (gimple_get_alias_set): Remove union type punning case.
1926 2016-07-29 Richard Biener <rguenther@suse.de>
1928 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
1929 precision not matching mode precision.
1931 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
1933 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
1934 pa_output_arg_descriptor.
1935 (call_val_symref_64bit_post_reload): Likewise.
1936 (call_val_powf_64bit_post_reload): Likewise.
1937 (sibcall_internal_symref_64bit): Likewise.
1938 (sibcall_value_internal_symref_64bit): Likewise.
1940 2016-06-28 Jakub Jelinek <jakub@redhat.com>
1943 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
1944 a constant, force its SUBREG_REG into memory or register instead
1947 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1950 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
1951 * doc/invoke.texi (AVR Options): Document it.
1953 2016-06-28 Walter Lee <walt@tilera.com>
1955 * config/tilegx/linux.h: Do not include arch/icache.h
1956 (CLEAR_INSN_CACHE): Provide inlined definition directly.
1957 * config/tilepro/linux.h: Do not include arch/icache.h
1958 (CLEAR_INSN_CACHE): Provide inlined definition directly.
1960 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
1962 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
1963 for big-endian BIT_FIELD_REF.
1965 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
1967 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
1968 ('size' attribute): Add '128'.
1970 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
1971 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
1972 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
1973 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
1974 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
1975 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
1976 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
1977 *trunc<mode>df2_odd): Set size attribute to '128'.
1978 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
1979 * config/rs6000/power6.md (power6-fp): Include dfp type.
1980 * config/rs6000/power7.md (power7-fp): Likewise.
1981 * config/rs6000/power8.md (power8-fp): Likewise.
1982 * config/rs6000/power9.md: New file.
1983 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
1984 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
1985 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
1987 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
1988 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
1989 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
1990 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
1991 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
1992 dfp_dscri_<mode>): Change type attribute to dfp.
1993 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
1994 attribute to vecsimple.
1995 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
1996 and prefetch streams.
1997 (rs6000_option_override_internal): Remove temporary code setting
1998 tuning to power8. Don't set rs6000_sched_groups for power9.
1999 (last_scheduled_insn): Change to rtx_insn *.
2000 (divide_cnt, vec_load_pendulum): New variables.
2001 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
2002 (rs6000_issue_rate): Set issue rate for Power9.
2003 (is_power9_pairable_vec_type): New.
2004 (power9_sched_reorder2): New.
2005 (rs6000_sched_reorder2): Call new function for Power9 specific
2007 (insn_must_be_first_in_group): Remove Power9.
2008 (insn_must_be_last_in_group): Likewise.
2009 (force_new_group): Likewise.
2010 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
2011 Initialize divide_cnt/vec_load_pendulum.
2012 (_rs6000_sched_context, rs6000_init_sched_context,
2013 rs6000_set_sched_context): Handle context save/restore of new
2016 2016-06-28 Richard Biener <rguenther@suse.de>
2018 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
2019 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
2020 COMPONENT_REF operand.
2021 (nonoverlapping_component_refs_p): Likewise.
2022 * stor-layout.c (start_bitfield_representative): Mark
2023 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
2025 2016-06-28 Jakub Jelinek <jakub@redhat.com>
2027 * Makefile.in: Don't cat ../stage_current if it does not exist.
2029 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
2030 last argument is a bit-field.
2032 PR rtl-optimization/71673
2033 * internal-fn.c (expand_arith_overflow_result_store): Use
2034 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
2035 expand_simple_binop.
2038 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
2039 expand_ifn_atomic_compare_exchange): New functions.
2040 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
2041 * tree.h (build_call_expr_internal_loc): Rename to ...
2042 (build_call_expr_internal_loc_array): ... this. Fix up type of
2044 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
2045 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
2046 ATOMIC_COMPARE_EXCHANGE result.
2047 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
2048 * gimple-fold.h (optimize_atomic_compare_exchange_p,
2049 fold_builtin_atomic_compare_exchange): New prototypes.
2050 * gimple-fold.c (optimize_atomic_compare_exchange_p,
2051 fold_builtin_atomic_compare_exchange): New functions..
2052 * tree-ssa.c (execute_update_addresses_taken): If
2053 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
2054 of call when finding addressable vars, and if such var becomes
2055 non-addressable, call fold_builtin_atomic_compare_exchange.
2057 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
2060 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
2061 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
2063 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
2065 * config/rs6000/rs6000.md ('type' attribute): Add
2066 veclogical,veccmpfx,vecexts,vecmove insn types.
2067 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
2068 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
2069 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
2070 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
2071 *nabs<mode>2_hw): Change type to vecmove.
2072 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
2073 *boolcc<mode>3_internal, *eqv<mode>3_internal,
2074 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
2075 *ieee_128bit_vsx_abs<mode>2_internal,
2076 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
2077 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
2078 *ieee128_mtvsrd_32bit): Change type to veclogical.
2079 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
2080 *movdi_internal32, *movdi_internal64): Update insn types.
2081 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
2082 vsx_extract_<mode>): Change type to veclogical.
2083 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
2084 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
2085 *vsx_sign_extend_si_v2di): Change type to vecexts.
2086 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
2088 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
2089 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
2090 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
2091 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
2092 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
2093 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
2094 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
2095 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
2096 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
2097 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
2098 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
2099 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
2100 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
2101 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
2102 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
2103 (ppc7450-vecsimple): Add veclogical, vecmove.
2104 (ppc7450-veccmp): Add veccmpfx.
2105 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
2107 (ppc8540_vector_compare): Add veccmpfx.
2108 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
2109 * config/rs6000/cell.md (cell-fp): Add fpsimple.
2110 (cell-vecsimple): Add veclogical, vecmove.
2111 (cell-veccmp): Add veccmpfx.
2112 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
2113 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
2115 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
2116 * config/rs6000/power4.md (power4-fp): Add fpsimple.
2117 (power4-vecsimple): Add veclogical, vecmove.
2118 (power4-veccmp): Add veccmpfx.
2119 * config/rs6000/power5.md (power5-fp): Add fpsimple.
2120 * config/rs6000/power6.md (power6-fp): Add fpsimple.
2121 (power6-vecsimple): Add veclogical, vecmove.
2122 (power6-veccmp): Add veccmpfx.
2123 * config/rs6000/power7.md (power7-fp): Add fpsimple.
2124 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
2125 * config/rs6000/power8.md (power8-fp): Add fpsimple.
2126 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
2127 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
2128 * config/rs6000/titan.md (titan_fp): Add fpsimple.
2129 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
2131 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
2133 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
2136 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2137 OPTION_MASK_P9_DFORM_VECTOR.
2138 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
2139 disable -mpower9-dform-vector when using reload.
2140 (quad_address_p): Remove 'gpr_p' argument and all associated code.
2141 New 'strict' argument. Update all callers. Add strict addressing
2143 (rs6000_legitimate_offset_address_p): Remove call to
2144 virtual_stack_registers_memory_p.
2145 (rs6000_legitimize_reload_address): Add quad address support.
2146 (rs6000_legitimate_address_p): Move call to quad_address_p above
2147 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
2148 to account for new strict usage.
2149 (rs6000_output_move_128bit): Adjust quad_address_p args to account
2150 for new strict usage.
2151 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
2153 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
2160 * config/i386/i386.c (ix86_spill_class): Disable condition to
2161 always return NO_REGS.
2163 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
2165 * predict.c: Include gimple-pretty-print.h
2166 (predicted_by_loop_heuristics_p): Check also
2167 PRED_LOOP_EXIT_WITH_RECURSION
2168 (predict_loops): Find self recursive calls and use special purpose
2169 predictors for them; dump log about decisions.
2170 (pass_profile::execute): Dump info about #of iterations.
2171 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
2172 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
2174 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
2176 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
2177 output_asm_insn calls and shorten long lines. Output .CALL
2178 argument descriptor using pa_output_arg_descriptor. Add various
2179 inline $$dyncall and other optimizations.
2180 (pa_attr_length_indirect_call): Adjust ordering and lengths.
2182 2016-06-25 Jakub Jelinek <jakub@redhat.com>
2184 PR tree-optimization/71643
2185 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
2188 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
2189 leak a bitmap if dep_bb is NULL.
2191 PR tree-optimization/71631
2192 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
2193 to rewrite_expr_tree even if negate_result, move new_lhs var
2194 declaration and initialization earlier, for powi_result set afterwards
2195 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
2196 if new_lhs != lhs, and don't shadow gsi var.
2198 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
2200 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
2201 Add in_loop parameter.
2202 (predict_loops): Add loop guard heuristics.
2203 * predict.def (PRED_LOOP_GUARD): New heuristics.
2205 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
2207 * predict.c: Include ipa-utils.h
2208 (tree_bb_level_prediction): Predict recursive calls.
2209 (tree_estimate_probability_bb): Skip inexpensive calls for call
2211 * predict.def (PRED_RECURSIVE_CALL): New.
2213 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2215 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
2216 (BU_FLOAT128_1): Likewise.
2218 (COPYSIGNQ): Likewise.
2219 (RS6000_BUILTIN_NANQ): Likewise.
2220 (RS6000_BUILTIN_NANSQ): Likewise.
2221 (RS6000_BUILTIN_INFQ): Likewise.
2222 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
2223 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
2224 (TARGET_FOLD_BUILTIN): New #define.
2225 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
2226 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
2227 (rs6000_fold_builtin): New target hook implementation, handling
2228 folding of 128-bit NaNs and infinities.
2229 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
2230 entries are filled in to avoid problems during bootstrap
2231 self-test; define builtins for 128-bit NaNs and infinities.
2232 (rs6000_opt_mask): Add entry for float128.
2233 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
2234 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
2235 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
2236 (const_str_type_node): New #define.
2237 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
2238 to a define_expand that dispatches to either copysign<mode>3_soft
2239 or copysign<mode>3_hard.
2240 (copysign<mode>3_hard): Rename from copysign<mode>3.
2241 (copysign<mode>3_soft): New define_insn.
2242 * doc/extend.texi: Document new builtins.
2244 2016-06-24 Jakub Jelinek <jakub@redhat.com>
2246 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
2247 PRIu64 instead of lu.
2249 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
2252 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
2255 2016-06-24 Jakub Jelinek <jakub@redhat.com>
2257 PR tree-optimization/71647
2258 * omp-low.c (lower_rec_input_clauses): Convert
2259 omp_clause_aligned_alignment (c) to size_type_node for the
2260 last argument of __builtin_assume_aligned.
2262 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
2264 * configure.ac (calling ___tls_get_addr via GOT): New
2265 assembler/linker check.
2266 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
2267 assembler and linker supports calling ___tls_get_addr via GOT.
2268 Otherise, defined to 0.
2269 * config.in: Regenerated.
2270 * configure: Likewise.
2271 * config/i386/constraints.md (Yb): New constraint.
2272 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
2273 (REG_CLASS_NAMES): Likewise.
2274 (REG_CLASS_CONTENTS): Likewise.
2275 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
2276 the b constraint with the Yb constraint. Call ___tls_get_addr
2277 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
2279 (*tls_local_dynamic_base_32_gnu): Likewise.
2280 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
2281 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
2282 (*tls_local_dynamic_base_64_<mode>): Likewise.
2284 2016-06-24 Martin Liska <mliska@suse.cz>
2286 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
2287 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
2289 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
2290 argument to true if the expected number of iterations is
2293 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
2295 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
2296 assemble for 32bit target.
2297 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
2298 and $ld_ix86_gld_32_opt to link for 32bit target.
2299 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
2300 * configure: Regenerate.
2302 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2304 * config/arm/arm.c (int_log2): Delete definition and prototype.
2305 (shift_op): Use exact_log2 instead of int_log2.
2306 (vfp3_const_double_for_fract_bits): Likewise.
2308 2016-06-24 Jakub Jelinek <jakub@redhat.com>
2310 * internal-fn.c (expand_arith_set_overflow): New function.
2311 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
2313 (expand_arith_overflow_result_store): Likewise. Handle precision
2314 smaller than mode precision.
2315 * tree-vrp.c (extract_range_basic): For imag part, handle
2316 properly signed 1-bit precision result.
2317 * doc/extend.texi (__builtin_add_overflow): Document that last
2318 argument can't be pointer to enumerated or boolean type.
2319 (__builtin_add_overflow_p): Document that last argument can't
2320 have enumerated or boolean type.
2322 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
2323 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2325 * config/rs6000/predicates.md (splat_input_operand): Rework.
2326 Don't allow constants, since the insns that use this predicate
2327 don't support constants. Constants are handled by other insns
2328 that are created via combine. During and after register
2329 allocation, only allow indexed or indirect addresses, and not
2330 general addresses. Only allow modes supported by the hardware.
2331 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
2332 comment. Move check for using VSPLTIS<x> to a common location,
2333 instead of doing it in two different places.
2335 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
2337 * config/i386/driver-i386.c (host_detect_local_cpu): Set
2338 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
2339 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
2340 signature_CENTAUR_ebx.
2342 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
2346 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
2347 (as_ix86_gas_32_opt): This.
2348 (ld_ix86_tls_ldm_opt): Renamed to ...
2349 (ld_ix86_gld_32_opt): This.
2350 (R_386_TLS_LDM reloc): Updated.
2351 (R_386_GOT32X reloc): New assembler/linker check.
2352 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
2353 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
2355 * config.in: Regenerated.
2356 * configure: Likewise.
2357 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
2358 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
2359 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
2360 if ix86_force_load_from_GOT_p returns true.
2361 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
2362 ix86_force_load_from_GOT_p returns true.
2363 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
2364 the external function address via the GOT slot.
2365 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
2366 HAVE_AS_IX86_GOT32X before returning false.
2367 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
2368 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
2370 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
2372 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
2374 2016-06-23 Andi Kleen <ak@linux.intel.com>
2376 * Makefile.in: Regenerate.
2377 * doc/install.texi: Document autoprofiledbootstrap.
2379 2016-06-23 Andi Kleen <ak@linux.intel.com>
2381 * config/i386/gcc-auto-profile: New file.
2383 2016-06-23 Martin Liska <mliska@suse.cz>
2386 * predict.c (predict_loops): Revert the hunk that was removed
2389 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
2391 * config.gcc: Add support for arm*-*-phoenix* targets.
2392 * config/arm/t-phoenix: New.
2393 * config/phoenix.h: New.
2395 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
2396 H.J. Lu <hongjiu.lu@intel.com>
2399 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
2400 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
2401 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
2402 ix86_force_load_from_GOT_p returns true.
2403 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
2404 ix86_force_load_from_GOT_p returns true.
2405 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
2406 ix86_force_load_from_GOT_p returns true.
2407 (ix86_expand_move): Load the external function address via the
2408 GOT slot if ix86_force_load_from_GOT_p returns true.
2409 * config/i386/predicates.md (x86_64_immediate_operand): Return
2410 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
2411 (x86_64_zext_immediate_operand): Ditto.
2413 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
2415 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
2417 2016-06-22 David Malcolm <dmalcolm@redhat.com>
2420 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
2421 * diagnostic.c (pedwarn_at_rich_loc): New function.
2422 * spellcheck.h (best_match::best_match): Add a
2423 "best_distance_so_far" optional parameter.
2424 (best_match::set_best_so_far): New method.
2425 (best_match::get_best_distance): New accessor.
2426 (best_match::get_best_candidate_length): New accessor.
2428 2016-06-22 Nick Clifton <nickc@redhat.com>
2430 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
2431 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
2432 modes are accepted as well.
2433 (ucompare_loc_descriptor): Likewise.
2434 (minmax_loc_descriptor): Likewise.
2435 (clz_loc_descriptor): Likewise.
2436 (popcount_loc_descriptor): Likewise.
2437 (bswap_loc_descriptor): Likewise.
2438 (rotate_loc_descriptor): Likewise.
2439 (mem_loc_descriptor): Likewise.
2440 (loc_descriptor): Likewise.
2442 2016-06-22 David Malcolm <dmalcolm@redhat.com>
2444 * common.opt (fdiagnostics-parseable-fixits): New option.
2445 * diagnostic.c: Include "selftest.h".
2446 (print_escaped_string): New function.
2447 (print_parseable_fixits): New function.
2448 (diagnostic_report_diagnostic): Call print_parseable_fixits.
2449 (selftest::assert_print_escaped_string): New function.
2450 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
2451 (selftest::test_print_escaped_string): New function.
2452 (selftest::test_print_parseable_fixits_none): New function.
2453 (selftest::test_print_parseable_fixits_insert): New function.
2454 (selftest::test_print_parseable_fixits_remove): New function.
2455 (selftest::test_print_parseable_fixits_replace): New function.
2456 (selftest::diagnostic_c_tests): New function.
2457 * diagnostic.h (struct diagnostic_context): Add field
2458 "parseable_fixits_p".
2459 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
2460 -fdiagnostics-parseable-fixits.
2461 (-fdiagnostics-parseable-fixits): New option.
2462 * opts.c (common_handle_option): Handle
2463 -fdiagnostics-parseable-fixits.
2464 * selftest-run-tests.c (selftest::run_tests): Call
2465 selftest::diagnostic_c_tests.
2466 * selftest.h (selftest::diagnostic_c_tests): New prototype.
2468 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
2470 PR tree-optimization/71488
2471 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
2472 comparison of boolean vectors.
2473 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
2474 of boolean vectors using bitwise operations.
2476 2016-06-22 Andreas Schwab <schwab@suse.de>
2478 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
2481 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
2483 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
2485 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
2487 * config/i386/i386.c (print_reg): Emit an error message on attempt to
2490 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2492 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
2493 * config/arm/arm-cores.def (cortex-a73): New entry.
2494 (cortex-a73.cortex-a35): Likewise.
2495 (cortex-a73.cortex-a53): Likewise.
2496 * config/arm/arm-tables.opt: Regenerate.
2497 * config/arm/arm-tune.md: Likewise.
2498 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
2499 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
2500 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
2501 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
2502 * doc/invoke.texi (ARM Options): Document cortex-a73,
2503 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
2505 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2507 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
2508 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
2509 (cortex-a73.cortex-a35): Likewise.
2510 (cortex-a73.cortex-a53): Likewise.
2511 * config/aarch64/aarch64-tune.md: Regenerate.
2512 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
2513 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
2516 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2518 * configure.ac (gcc_cv_as_compress_debug): Remove
2519 --compress-debug-sections as extra as switch.
2520 Handle gas --compress-debug-sections=type.
2521 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
2522 Handle gld --compress-debug-sections=type.
2523 * configure: Regenerate.
2525 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
2527 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
2529 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
2531 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
2532 (do_rewrite): likewise.
2534 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2536 * common/config/mep/mep-common.c: Remove.
2537 * config.gcc: Remove mep-* support.
2538 * config/mep/constraints.md: Remove.
2539 * config/mep/default.h: Remove.
2540 * config/mep/intrinsics.h: Remove.
2541 * config/mep/intrinsics.md: Remove.
2542 * config/mep/ivc2-template.h: Remove.
2543 * config/mep/mep-c5.cpu: Remove.
2544 * config/mep/mep-core.cpu: Remove.
2545 * config/mep/mep-default.cpu: Remove.
2546 * config/mep/mep-ext-cop.cpu: Remove.
2547 * config/mep/mep-intrin.h: Remove.
2548 * config/mep/mep-ivc2.cpu: Remove.
2549 * config/mep/mep-pragma.c: Remove.
2550 * config/mep/mep-protos.h: Remove.
2551 * config/mep/mep.c: Remove.
2552 * config/mep/mep.cpu: Remove.
2553 * config/mep/mep.h: Remove.
2554 * config/mep/mep.md: Remove.
2555 * config/mep/mep.opt: Remove.
2556 * config/mep/predicates.md: Remove.
2557 * config/mep/t-mep: Remove.
2558 * doc/install.texi: Remove mep-* documentation.
2559 * doc/md.texi: Likewise.
2561 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2563 * config.gcc: Remove support for avr-rtems.
2564 * config/avr/gen-avr-mmcu-specs.c: Likewise.
2565 * config/avr/rtems.h: Remove.
2566 * config/avr/t-rtems: Remove.
2568 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2570 * config.gcc: Remove m32r-rtems support.
2571 * config/m32r/rtems.h: Remove.
2573 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2575 * config.gcc: Remove h8300-rtems support.
2576 * config/h8300/rtems.h: Remove.
2577 * config/h8300/t-rtems: Remove.
2579 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2581 * config.gcc: Remove support for knetbsd.
2582 * configure.ac: Likewise.
2583 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
2584 * config/knetbsd-gnu.h: Remove.
2585 * configure: Regenerate.
2587 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2589 * config.gcc: Remove support for openbsd 2 and 3.
2590 * config/openbsd-oldgas.h: Remove.
2592 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2594 * config.gcc: Remove interix support.
2595 * config/i386/i386-interix.h: Remove.
2596 * config/i386/interix.opt: Remove.
2597 * config/i386/t-interix: Remove.
2598 * configure: Regenerate.
2599 * configure.ac: Remove interix support.
2600 * doc/install.texi: Remove interix documentation.
2602 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
2604 * config/rs6000/rs6000.h: Add conditional preprocessing directives
2605 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
2608 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
2610 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
2611 they are both PLACEHOLDER_EXPRs.
2613 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
2615 * stor-layout.c (layout_type): Move setting complex MODE to
2616 layout_type, instead of setting it ahead of time by the caller.
2617 * tree.c (build_complex_type): Likewise.
2619 2016-06-21 Martin Liska <mliska@suse.cz>
2621 * predict.c (force_edge_cold): Replace imposisble with
2624 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
2626 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
2627 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
2629 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
2631 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
2633 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
2634 Ilya Enkovich <ilya.enkovich@intel.com>
2637 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
2638 New member function to convert V1TImode register to SUBREG
2639 TImode in debug insn.
2640 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
2641 after changing register mode to V1TImode.
2643 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
2645 * config/aarch64/aarch64-cores.def (vulcan): New core.
2646 * config/aarch64/aarch64-tune.md: Regenerate.
2647 * doc/invoke.texi: Document vulcan as an available option.
2649 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
2651 * cse.c (canon_asm_operands): New function extracted from...
2652 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
2653 either standalone or member of a PARALLEL.
2655 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
2658 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
2659 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
2660 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
2662 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
2665 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
2666 constant addresses if can_create_pseudo_p.
2668 2016-06-21 Jakub Jelinek <jakub@redhat.com>
2670 PR tree-optimization/71588
2671 * tree-ssa-strlen.c (valid_builtin_call): New function.
2672 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
2675 2016-06-20 Jakub Jelinek <jakub@redhat.com>
2678 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
2679 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
2680 for conversion of scalar user var to complex type and use the
2681 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
2684 PR rtl-optimization/71591
2685 * toplev.c (toplev::run_self_tests): If no_backend, complain and
2686 don't run any tests.
2688 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
2691 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
2692 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
2693 space for PIC with non-v32 and the common non-PIC "jump".
2695 2016-06-20 Jakub Jelinek <jakub@redhat.com>
2698 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
2699 returned values and add UN*/LTGT/*ORDERED cases with values matching
2700 D operand modifier on vcmp for AVX.
2702 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
2704 * config/aarch64/aarch64.opt
2705 (mpc-relative-literal-loads): Rename internal option name.
2706 * config/aarch64/aarch64.c
2707 (aarch64_nopcrelative_literal_loads): Rename to
2708 aarch64_pcrelative_literal_loads.
2709 (aarch64_expand_mov_immediate): Likewise.
2710 (aarch64_secondary_reload): Likewise.
2711 (aarch64_can_use_per_function_literal_pools_p): Likewise.
2712 (aarch64_override_options_after_change_1): Rename and simplify logic.
2713 (aarch64_classify_symbol): Merge large model checks into switch,
2714 remove pc-relative load check.
2716 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
2718 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
2719 costs relative to the cost of a register move.
2721 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
2723 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
2724 (vcvt_n_f64_u64): Likewise.
2725 (vcvt_n_s64_f64): Likewise.
2726 (vcvt_n_u64_f64): Likewise.
2727 (vcvt_f64_s64): Likewise.
2728 (vrecpe_f64): Likewise.
2729 (vcvt_f64_u64): Likewise.
2730 (vrecps_f64): Likewise.
2732 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
2734 * config/aarch64/aarch64.md
2735 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
2737 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
2739 * config/aarch64/aarch64-builtins.c
2740 (aarch64_types_binop_uss_qualifiers): Delete.
2741 (TYPES_BINOP_USS): Likewise.
2742 (aarch64_types_binop_sus_qualifiers): Likewise.
2743 (TYPES_BINOP_SUS): Likewise.
2744 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
2745 (TYPES_FCVTIMM_SUS): Likewise.
2746 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
2748 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
2749 (fcvtzs): Use SHIFTIMM rather than BINOP.
2750 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
2752 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
2754 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
2755 costs relative to the cost of a register move.
2757 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
2759 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
2760 Allow scalar/single vector modes to be tieable.
2762 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
2764 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
2766 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2768 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
2770 * tree.h (TYPE_ALIGN): Likewise.
2772 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
2775 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
2777 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
2779 * config/avr/avr.c (avr_print_operand): Fix "format not a string
2780 literal" build warnings.
2781 (avr_print_operand_address): Dito.
2783 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
2786 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
2787 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
2789 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
2791 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
2793 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
2796 * reload1.c (reload): Pass 0 to finish_spills when called because
2797 update_eliminables_and_spill returns true and remove did_spill.
2798 (finish_spills): Adjust comment and document GLOBAL parameter.
2800 2016-06-17 DJ Delorie <dj@redhat.com>
2803 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
2804 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
2805 (umulqihi3_virt): Likewise.
2806 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
2807 (umulqihi3_real): Likewise.
2809 2016-06-17 Martin Liska <mliska@suse.cz>
2811 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
2813 2016-06-17 Martin Liska <mliska@suse.cz>
2815 * predict.def: PRED_LOOP_EXIT from 92 to 85.
2817 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
2819 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
2821 (vaddq_f32): Likewise.
2822 (vmul_f32): Likewise.
2823 (vmulq_f32): Likewise.
2824 (vsub_f32): Likewise.
2825 (vsubq_f32): Likewise.
2827 2016-06-17 Bin Cheng <bin.cheng@arm.com>
2829 PR tree-optimization/71347
2830 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
2831 cost for all uses in group.
2833 2016-06-17 Bin Cheng <bin.cheng@arm.com>
2835 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
2836 insert gimple seq if it's not empty.
2838 2016-06-17 Bin Cheng <bin.cheng@arm.com>
2840 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
2842 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
2844 (comp_dr_with_seg_len_pair): Ditto.
2845 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
2846 struct dr_with_seg_len_pair against DR_OFFSET.
2847 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
2850 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
2852 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
2854 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
2856 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
2857 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
2858 (pa_output_millicode_call): Likewise.
2859 (pa_output_call): Likewise.
2860 (pa_output_indirect_call): Likewise.
2861 (pa_asm_output_mi_thunk): Likewise.
2863 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2865 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
2867 2016-06-16 Martin Liska <mliska@suse.cz>
2869 * predict.c (combine_predictions_for_insn): When we find a first
2870 match predictor, we should consider just predictors with
2871 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
2872 DS theory predictor.
2873 (combine_predictions_for_bb): Likewise.
2875 2016-06-16 Jakub Jelinek <jakub@redhat.com>
2877 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
2878 with base of reference to struct.
2880 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
2882 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
2884 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2887 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
2888 progmem_swtable_section.
2889 (progmem_swtable_section): Remove.
2890 (avr_asm_function_rodata_section): Remove.
2891 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
2892 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
2894 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
2896 * config/i386/driver-i386.c (host_detect_local_cpu): Set
2897 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
2898 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
2899 signature_CENTAUR_ebx.
2900 * config/i386/i386.c (ix86_option_override_internal): Add
2901 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
2902 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
2903 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
2905 2016-06-16 Martin Liska <mliska@suse.cz>
2907 * predict.def: Add fortran loop preheader predictor.
2908 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
2909 fold IFN_BUILTIN_EXPECT with a known constant argument.
2911 2016-06-16 Martin Liska <mliska@suse.cz>
2913 * predict.def: Add 'Fortran' to display text of all
2914 PRED_FORTRAN_* predictors.
2916 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
2919 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
2920 [IA64_BUILTIN_NANSQ]: Ditto.
2921 (ia64_fold_builtin): New function.
2922 (TARGET_FOLD_BUILTIN): New define.
2923 (ia64_init_builtins) Declare const_string_type node.
2924 Add __builtin_nanq and __builtin_nansq builtin functions.
2925 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
2927 2016-06-16 Nick Clifton <nickc@redhat.com>
2929 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
2930 MSP430_HWMULT_ prefix to enum values.
2931 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
2932 * config/msp430/msp430.c: Update use of enum values.
2933 * config/msp430/msp430.md: Likewise.
2934 * config/msp430/msp430.opt: Likewise.
2936 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
2938 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
2939 of comparsions in the last iteration.
2941 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
2942 Joern Rennecke <joern.rennecke@embecosm.com>
2944 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
2946 (arc_needs_pcl_p): Add GOTOFFPC.
2947 (arc_legitimate_pic_addr_p): Likewise.
2948 (arc_output_pic_addr_const): Likewise.
2949 (arc_legitimize_pic_address): Generate a pc-relative address using
2951 (arc_output_libcall): Use @pcl syntax.
2952 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
2953 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
2954 (*movsi_insn): Use @pcl syntax.
2955 (doloop_begin_i): Likewise.
2957 2016-06-16 Martin Liska <mliska@suse.cz>
2959 * predict.def: Define a new predictor.
2961 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
2963 * config/arc/arc.opt (mtp-regno): Update text.
2965 2016-06-16 Renlin Li <renlin.li@arm.com>
2967 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
2969 2016-06-16 Jakub Jelinek <jakub@redhat.com>
2972 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
2973 (setcc + and peephole2): Likewise.
2975 PR rtl-optimization/71532
2976 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
2979 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
2981 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
2982 DImode constants with XXSPLTIB in vector registers.
2983 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
2984 vsx_extract_<mode>_internal{1,2} into a single insn that handles
2985 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
2986 extraction of the element at the top of the register as a scalar
2988 (vsx_extract_<mode>_internal1): Likewise.
2989 (vsx_extract_<mode>_internal2): Likewise.
2990 * config/rs6000/constraints.md (wi constraint): Remove a comment
2991 about DImode not being allowed in Altivec registers.
2992 (wB constraint): New constraint for constants that can be
2993 generated in Altivec registers with VSPLTISW/VUPKHSW.
2994 * config/rs6000/predicates.md (xxspltib_constant_split): Update
2996 (xxspltib_constant_nosplit): Likewise.
2997 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
2998 support for -mupper-regs-di to enable DImode to go into Altivec
3000 (POWERPC_MASKS): Likewise.
3001 (power7 cpu): Likewise.
3002 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
3003 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
3004 for DImode being allowed in Altivec registers. Update wi/wj
3005 constraints. Set scalar_in_vmx_p flag.
3006 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
3007 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
3008 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
3009 (rs6000_opt_masks): Add -mupper-regs-di.
3010 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
3011 direct move to use wi and not wj.
3013 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
3015 (floatunssi<mode>2_lfiwzx_mem): Likewise.
3016 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
3017 any VSX register, instead of just Altivec registers, to allow
3018 either operand to be an Altivec register or both.
3019 (fixuns_trunc<mode>di2_fctiduz): Likewise.
3020 (movdi_internal32): Add support for -mupper-regs-di. Add support
3021 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
3022 the alternatives and attributes to be lined up to be easier to
3024 (movdi_internal64): Likewise.
3025 (64-bit DImode splitters): Change predicates to only split loading
3026 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
3027 load constants in ISA 3.0 or ISA 2.07 respectively.
3028 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3029 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
3030 mention -mcpu=power9 sets these options.
3031 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
3034 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3037 * config/avr/avr.c (avr_set_current_function): Warn misspelled
3038 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
3039 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
3040 by default to warn misspelled interrupt/ signal handler.
3041 * doc/invoke.texi (AVR Options): Document it. Update description
3042 for -nodevicelib option.
3044 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3046 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
3047 up parentheses. Use GET_MODE_UNIT_BITSIZE.
3048 (aarch64_<sur>shll2_n<mode>): Likewise.
3050 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
3053 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
3054 DECL_CONTEXT for copied arguments.
3056 2016-06-15 Alan Hayward <alan.hayward@arm.com>
3058 PR tree-optimization/71483
3059 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
3062 2016-06-15 Martin Liska <mliska@suse.cz>
3064 * predict.c (tree_predict_by_opcode): Call predict_edge_def
3065 instead of predict_edge w/o a probability.
3067 2016-06-15 Alan Hayward <alan.hayward@arm.com>
3069 PR tree-optimization/71439
3070 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
3073 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3075 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
3076 register subregs in SET_SRC.
3078 2016-06-15 Richard Biener <rguenther@suse.de>
3080 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
3083 2016-06-15 Richard Biener <rguenther@suse.de>
3085 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
3086 not consider dependences between accesses that belong to the
3088 (vect_analyze_data_ref_dependences): Do not analyze read-read
3089 or self-dependences.
3091 2016-06-14 David Malcolm <dmalcolm@redhat.com>
3093 * spellcheck-tree.c: Include spellcheck-tree.h rather than
3095 (find_closest_identifier): Reimplement in terms of
3096 best_match<tree,tree>.
3097 * spellcheck-tree.h: New file.
3098 * spellcheck.c (struct edit_distance_traits<const char *>): New
3100 (find_closest_string): Reimplement in terms of
3101 best_match<const char *, const char *>.
3102 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
3103 overload to spellcheck-tree.h.
3104 (find_closest_identifier): Likewise.
3105 (struct edit_distance_traits<T>): New template.
3106 (class best_match): New class.
3108 2016-06-14 David Malcolm <dmalcolm@redhat.com>
3110 * selftest-run-tests.c (selftest::run_tests): Call
3111 selftest::spellcheck_tree_c_tests.
3112 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
3113 * spellcheck-tree.c: Include selftest.h and stringpool.h.
3114 (selftest::test_find_closest_identifier): New function.
3115 (selftest::spellcheck_tree_c_tests): New function.
3116 * spellcheck.c (selftest::test_find_closest_string): Verify that
3117 the order of the vec does not affect the results for this case.
3118 (selftest::test_data): New array.
3119 (selftest::test_metric_conditions): New function.
3120 (selftest::spellcheck_c_tests): Add a test of case-comparison.
3121 Call selftest::test_metric_conditions.
3123 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3125 * config/rs6000/rs6000-builtin.def (commentary): Typo.
3126 (BU_P9_MISC_1): Likewise.
3127 (BU_P9_64BIT_MISC_0): Likewise.
3128 (BU_P9_MISC_0): Likewise.
3130 2016-06-14 David Malcolm <dmalcolm@redhat.com>
3132 * gcc-rich-location.c
3133 (gcc_rich_location::add_fixit_misspelled_id): New method.
3134 * gcc-rich-location.h
3135 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
3137 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
3139 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
3140 FreeBSD 11 and above.
3142 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
3144 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
3146 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3148 * expmed.h: Close parenthesis in "at your option" in copyright
3150 * lower-subreg.h: Likewise.
3152 2016-06-14 Richard Biener <rguenther@suse.de>
3155 * genmatch.c (expr::gen_transform): Use in_type for comparisons
3158 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3160 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
3162 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
3164 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
3166 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
3167 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
3169 2016-06-14 Richard Biener <rguenther@suse.de>
3171 PR tree-optimization/71522
3172 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
3173 copying into float copying.
3175 2016-06-14 Jakub Jelinek <jakub@redhat.com>
3177 PR tree-optimization/71520
3178 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
3179 (replace_block_by): Move user labels from bb1 to bb2.
3181 2016-06-14 Richard Biener <rguenther@suse.de>
3185 * expr.h (get_bit_range): Declare.
3186 * expr.c (get_bit_range): Export.
3187 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
3188 word_mode again to constrain the bitfield access.
3190 2016-06-14 Richard Biener <rguenther@suse.de>
3192 PR tree-optimization/71521
3193 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
3194 division int_const_binop against zero divisor.
3196 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
3198 * config/i386/i386.md (signbittf2): New expander.
3199 * config/i386/sse.md (ptesttf2): New insn pattern.
3201 2016-06-13 David Malcolm <dmalcolm@redhat.com>
3204 * input.c (selftest::test_reading_source_line): Avoid reading from
3205 __FILE__ by creating a tempfile with known content and reading
3208 2016-06-13 David Malcolm <dmalcolm@redhat.com>
3210 * pretty-print.c (assert_pp_format_colored): Skip the test if
3212 (test_pp_format): Remove comment about GCC_COLORS.
3214 2016-06-13 David Malcolm <dmalcolm@redhat.com>
3216 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
3217 * pretty-print.c (assert_pp_format_va): Add location param and use
3218 it with ASSERT_STREQ_AT.
3219 (assert_pp_format): Add location param and pass it to
3220 assert_pp_format_va.
3221 (assert_pp_format_colored): Likewise.
3222 (ASSERT_PP_FORMAT_1): New.
3223 (ASSERT_PP_FORMAT_2): New.
3224 (ASSERT_PP_FORMAT_3): New.
3225 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
3226 explicitly, or implicitly via the above macros.
3227 * selftest.c (selftest::pass): Use a selftest::location rather
3229 (selftest::fail): Likewise. Print the function name.
3230 (selftest::fail_formatted): Likewise.
3231 (selftest::assert_streq): Use a selftest::location rather than
3233 * selftest.h (selftest::location): New struct.
3234 (SELFTEST_LOCATION): New macro.
3235 (selftest::pass): Accept a const location & rather than file
3237 (selftest::fail): Likewise.
3238 (selftest::fail_formatted): Likewise.
3239 (selftest::assert_streq): Likewise.
3240 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
3241 (ASSERT_FALSE): Likewise.
3242 (ASSERT_EQ): Likewise.
3243 (ASSERT_NE): Likewise.
3244 (ASSERT_STREQ): Likewise.
3245 (ASSERT_PRED1): Likewise.
3246 (ASSERT_STREQ_AT): New macro.
3248 2016-06-13 David Malcolm <dmalcolm@redhat.com>
3250 * selftest.c (selftest::fail_formatted): New function.
3251 (selftest::assert_streq): New function.
3252 * selftest.h (selftests::fail_formatted): New decl.
3253 (selftest::assert_streq): New decl.
3254 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
3256 2016-06-13 Jeff Law <law@redhat.com>
3258 PR tree-optimization/71403
3259 * tree-ssa-threadbackward.c
3260 (convert_and_register_jump_thread_path): No longer accept reference
3261 to path. Do not pop items off the path anymore.
3262 (fsm_find_control_statement_thread_paths): Do not allow threading
3263 to a deeper loop nest. Pop the last item off the path here rather
3264 than in convert_and_register_jump_thread_path.
3266 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
3267 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
3269 [AArch64] Emit division using the Newton series
3271 * config/aarch64/aarch64-protos.h
3272 (cpu_approx_modes): Add new member "division".
3273 (aarch64_emit_approx_div): Declare new function.
3274 * config/aarch64/aarch64.c
3275 (generic_approx_modes): New member "division".
3276 (exynosm1_approx_modes): Likewise.
3277 (xgene1_approx_modes): Likewise.
3278 (aarch64_emit_approx_div): Define new function.
3279 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
3280 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
3281 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
3282 * doc/invoke.texi (-mlow-precision-div): Describe new option.
3284 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
3285 Wilco Dijkstra <wilco.dijkstra@arm.com>
3287 [AArch64] Emit square root using the Newton series
3289 * config/aarch64/aarch64-protos.h
3290 (aarch64_emit_approx_rsqrt): Replace with new function
3291 "aarch64_emit_approx_sqrt".
3292 (cpu_approx_modes): New member "sqrt".
3293 * config/aarch64/aarch64.c
3294 (generic_approx_modes): New member "sqrt".
3295 (exynosm1_approx_modes): Likewise.
3296 (xgene1_approx_modes): Likewise.
3297 (aarch64_emit_approx_rsqrt): Replace with new function
3298 "aarch64_emit_approx_sqrt".
3299 (aarch64_override_options_after_change_1): Handle new option.
3300 * config/aarch64/aarch64-simd.md
3301 (rsqrt<mode>2): Use new function instead.
3302 (sqrt<mode>2): New expansion and insn definitions.
3303 * config/aarch64/aarch64.md: Likewise.
3304 * config/aarch64/aarch64.opt
3305 (mlow-precision-sqrt): Add new option description.
3306 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
3308 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
3310 [AArch64] Add more choices for the reciprocal square root approximation
3312 Allow a target to prefer such operation depending on the operation mode.
3314 * config/aarch64/aarch64-protos.h
3315 (AARCH64_APPROX_MODE): New macro.
3316 (AARCH64_APPROX_{NONE,ALL}): Likewise.
3317 (cpu_approx_modes): New structure.
3318 (tune_params): New member "approx_modes".
3319 * config/aarch64/aarch64-tuning-flags.def
3320 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
3321 * config/aarch64/aarch64.c
3322 (generic_approx_modes): New core "cpu_approx_modes" structure.
3323 (exynosm1_approx_modes): Likewise.
3324 (xgene1_approx_modes): Likewise.
3325 (generic_tunings): New member "approx_modes".
3326 (cortexa35_tunings): Likewise.
3327 (cortexa53_tunings): Likewise.
3328 (cortexa57_tunings): Likewise.
3329 (cortexa72_tunings): Likewise.
3330 (exynosm1_tunings): Likewise.
3331 (thunderx_tunings): Likewise.
3332 (xgene1_tunings): Likewise.
3333 (use_rsqrt_p): New argument for the mode and use new member from
3335 (aarch64_builtin_reciprocal): Devise mode from builtin.
3336 (aarch64_optab_supported_p): New argument for the mode.
3337 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
3339 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
3341 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
3342 RS6000_BTM_MODULO flag into the set of flags that are considered
3343 to be part of the common configuration.
3345 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
3347 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
3348 difference unsigned.
3349 (vec_absdb): New macro for vector absolute difference unsigned
3351 (vec_absdh): New macro for vector absolute difference unsigned
3353 (vec_absdw): New macro for vector absolute difference unsigned word.
3354 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
3355 (vadu<mode>3): New insn.
3356 (*p9_vadu<mode>3): New insn.
3357 * config/rs6000/rs6000-builtin.def (vadub): New built-in
3359 (vaduh): New built-in definition.
3360 (vaduw): New built-in definition.
3361 (vadu): New overloaded built-in definition.
3362 (vadub): New overloaded built-in definition.
3363 (vaduh): New overloaded built-in definition.
3364 (vaduw): New overloaded built-in definition.
3365 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3366 overloaded vector absolute difference unsigned functions.
3367 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3368 the ISA 3.0 vector absolute difference unsigned built-in functions.
3370 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
3372 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
3373 update shared_lookup_references only once after changing operands.
3375 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
3378 * tree-nested.c (convert_nonlocal_omp_clauses)
3379 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
3381 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
3382 * tree.def (CASE_LABEL_EXPR): Likewise.
3384 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
3387 * input.c (test_builtins): Fix an assertion.
3389 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
3391 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
3394 (isinf<mode>2): Ditto.
3396 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
3398 * ggc-tests.c (test_finalization): Only test need_finalization_p
3399 for GCC_VERSION >= 4003.
3401 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3403 * config/s390/vecintrin.h: Fix file description in comment.
3405 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3407 * config/s390/s390-builtin-types.def: Change builtin type naming
3408 scheme to match builtin-types.def.
3410 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
3412 * fold-const.c (optimize_minmax_comparison): Remove.
3413 (fold_comparison): Remove call to the above.
3414 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
3415 New transformations.
3417 2016-06-13 Alan Hayward <alan.hayward@arm.com>
3419 PR tree-optimization/71416
3420 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
3423 2016-06-13 Martin Liska <mliska@suse.cz>
3425 * predict.c (enum predictor_reason): Prefix enum with REASON_.
3426 (combine_predictions_for_insn): Likewise.
3427 (prune_predictions_for_bb): Likewise.
3428 (combine_predictions_for_bb): Likewise.
3430 2016-06-13 Richard Biener <rguenther@suse.de>
3432 PR tree-optimization/71505
3433 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
3434 assert match comment.
3436 2016-06-13 Marek Polacek <polacek@redhat.com>
3439 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
3440 gimplify_switch_expr.
3441 (warn_switch_unreachable_r): New function.
3443 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3446 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
3449 2016-06-13 Richard Biener <rguenther@suse.de>
3452 * fold-const.c (fold_unary_loc): Preserve alignment when
3453 folding a VIEW_CONVERT_EXPR into a MEM_REF.
3455 2016-06-13 Martin Liska <mliska@suse.cz>
3458 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
3459 w/ -fsanitize=bounds.
3461 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
3463 * config/i386/i386.c (ix86_init_builtins): Calculate
3464 FLOAT128_FTYPE_CONST_STRING function type only once.
3465 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
3466 built-in functions are available for x86-32 and x86-64 targets.
3468 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
3471 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
3473 (FLOAT128_FTYPE_CONST_STRING): New function type.
3474 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
3475 [IX86_BUILTIN_NANSQ]: Ditto.
3476 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
3477 (ix86_init_builtin_types): Declare const_string_type_node.
3478 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
3480 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
3481 * doc/extend.texi (x86 Built-in Functions): Document
3482 __builtin_nanq and __builtin_nansq.
3484 2016-06-11 Jiong Wang <jiong.wang@arm.com>
3487 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
3488 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
3489 length for pop patterns.
3490 (arm_attr_length_push_multi): Update comments.
3491 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
3493 (*pop_multiple_with_writeback_and_return): Likewise.
3494 (*pop_multiple_with_return): Likewise.
3496 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
3499 * fold-const.c (optimize_bit_field_compare): Don't try to use
3500 word_mode unconditionally for reading the bit field, look at
3501 DECL_BIT_FIELD_REPRESENTATIVE instead.
3503 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
3506 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
3507 vector integer type.
3509 2016-06-10 Jakub Jelinek <jakub@redhat.com>
3512 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
3513 without LABEL_DECL, set *handled_ops_p to false instead of true.
3515 2016-06-10 Martin Sebor <msebor@redhat.com>
3518 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
3519 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
3520 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
3522 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
3523 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
3524 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
3525 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
3526 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
3527 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
3528 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
3529 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
3531 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
3533 * config/arm/arm.h (pool_vector_label,
3534 return_used_this_function): Remove.
3536 2016-06-10 Jeff Law <law@redhat.com>
3538 PR tree-optimization/71335
3539 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
3540 zero length paths here.
3541 (convert_and_register_jump_thread_path): Remove hacks related to
3542 duplicated blocks in the jump thread path.
3543 (fsm_find_control_statement_thread_paths): Avoid putting the same
3544 block on the thread path twice, but ensure the thread path is
3545 unchanged from the caller's point of view.
3547 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
3549 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
3550 * predict.def (PRED_LOOP_BRANCH): Remove.
3552 2016-06-10 David Malcolm <dmalcolm@redhat.com>
3554 * Makefile.in (OBJS): Add ggc-tests.o.
3555 (GTFILES): Add ggc-tests.c.
3556 * ggc-tests.c: New file.
3557 * selftest-run-tests.c (selftest::run_tests): Call
3558 selftest::ggc_tests_c_tests.
3559 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
3561 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
3563 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
3565 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
3568 * varasm.c (place_block_symbol): Adjust alignment for asan protected
3569 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
3571 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
3573 * profile.c: Include cfgloop.h.
3574 (branch_prob): Compute estimated number of iterations.
3575 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
3576 recompute estimate number of iterations from profile.
3578 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
3581 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
3582 must be grouped on top of stack. Don't force early clobber
3583 on ordinary reg outputs.
3585 2016-06-10 Richard Biener <rguenther@suse.de>
3587 * targhooks.c (default_builtin_vectorization_cost): Adjust
3590 2016-06-10 Richard Biener <rguenther@suse.de>
3592 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
3593 to fold the RHS to a constant if possible.
3595 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
3598 * tree-nested.c (convert_nonlocal_omp_clauses)
3599 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
3600 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
3601 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
3603 * gimplify.c (gimplify_adjust_omp_clauses): Discard
3605 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
3607 * omp-low.c (scan_sharing_clauses): Don't expect
3610 2016-06-10 Alan Hayward <alan.hayward@arm.com>
3612 PR tree-optimization/71407
3613 PR tree-optimization/71416
3614 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
3617 2016-06-10 Richard Biener <rguenther@suse.de>
3620 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
3622 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
3624 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
3626 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
3627 Jiong Wang <jiong.wang@arm.com>
3629 PR rtl-optimization/70751
3630 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
3631 spilled into memory.
3633 2016-06-09 Jonathan Yong <10walls@gmail.com>
3636 2015-09-21 Jonathan Yong <10walls@gmail.com>
3638 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
3639 sysroot/usr/lib/32api for additional win32 libraries,
3640 fixes failing Cygwin bootstrapping.
3642 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
3644 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
3647 2016-06-09 David Malcolm <dmalcolm@redhat.com>
3650 * pretty-print.c (pp_indent): Specify that %p is printed in a
3651 host-dependent manner.
3652 (test_pp_format): Remove the test for %p.
3654 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
3656 * config/mips/mips.c (mips_output_jump): Fix formatting.
3658 2016-06-09 Richard Biener <rguenther@suse.de>
3660 PR tree-optimization/71462
3661 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
3664 2016-06-09 Martin Liska <mliska@suse.cz>
3666 * predict.c (dump_prediction): Add new argument.
3667 (enum predictor_reason): New enum.
3668 (struct predictor_hash): New struct.
3669 (predictor_hash::hash): New function.
3670 (predictor_hash::equal): Likewise.
3671 (not_removed_prediction_p): New function.
3672 (prune_predictions_for_bb): Likewise.
3673 (combine_predictions_for_bb): Prune predictions.
3675 2016-06-09 Martin Liska <mliska@suse.cz>
3677 * predict.c (filter_predictions): New function.
3678 (remove_predictions_associated_with_edge): Use the filter
3680 (equal_edge_p): New function.
3682 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
3684 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
3685 Correct usage of @samp vs @option, add @samp where appropriate.
3686 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
3687 Add armv6s-m and document it, as it is no official ARM name.
3689 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3691 * ifcvt.c (struct noce_if_info): Add transform_name field.
3692 (noce_try_move): Set if_info->transform_name to the function name.
3693 (noce_try_ifelse_collapse): Likewise.
3694 (noce_try_store_flag): Likewise.
3695 (noce_try_inverse_constants): Likewise.
3696 (noce_try_store_flag_constants): Likewise.
3697 (noce_try_addcc): Likewise.
3698 (noce_try_store_flag_mask): Likewise.
3699 (noce_try_cmove): Likewise.
3700 (noce_try_cmove_arith): Likewise.
3701 (noce_try_minmax): Likewise.
3702 (noce_try_abs): Likewise.
3703 (noce_try_sign_mask): Likewise.
3704 (noce_try_bitop): Likewise.
3705 (noce_convert_multiple_sets): Likewise.
3706 (noce_process_if_block): Print if_info->transform_name to
3707 dump_file if transformation succeeded.
3709 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3711 * config/arm/cortex-a57.md (cortex_a57_alu):
3714 2016-06-08 Martin Sebor <msebor@redhat.com>
3715 Jakub Jelinek <jakub@redhat.com>
3719 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
3720 BUILT_IN_MUL_OVERFLOW_P): New builtins.
3721 * builtins.c: Include gimple-fold.h.
3722 (fold_builtin_arith_overflow): Handle
3723 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
3724 (fold_builtin_3): Likewise.
3725 * doc/extend.texi (Integer Overflow Builtins): Document
3726 __builtin_{add,sub,mul}_overflow_p.
3728 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
3730 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
3731 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
3733 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
3735 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
3736 Rewrite, looking one level down for records and arrays.
3738 2016-06-08 David Malcolm <dmalcolm@redhat.com>
3740 * pretty-print.c: Include "selftest.h".
3741 (pp_format): Fix comment.
3742 (identifier_to_locale): Likewise.
3743 (selftest::test_basic_printing): New function.
3744 (selftest::assert_pp_format): New function.
3745 (selftest::test_pp_format): New function.
3746 (selftest::pretty_print_c_tests): New function.
3747 * selftest-run-tests.c (selftest::run_tests): Call
3748 selftest::pretty_print_c_tests.
3749 * selftest.h (pretty_print_c_tests): New declaration.
3751 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
3753 * invoke.texi (max-loop-headers-insns): Document.
3754 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
3755 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
3756 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
3758 2016-06-08 Richard Biener <rguenther@suse.de>
3760 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
3761 on strided SLP loads and fall back to scalar loads in case
3762 we can't chunk them.
3764 2016-06-08 Richard Biener <rguenther@suse.de>
3766 PR tree-optimization/71452
3767 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
3768 type used for the SSA rewrite has enough precision to cover
3769 the dynamic type of the location.
3771 2016-06-08 Jakub Jelinek <jakub@redhat.com>
3772 Richard Biener <rguenther@suse.de>
3775 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
3776 the same as DECL_P (base0) for indirect_base0. Use equality_code
3777 in one further place.
3779 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
3781 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
3782 to one word if the field is known to overlap other words.
3783 (extract_bit_field_1): Likewise.
3784 (store_split_bit_field): Remove compensating code.
3785 (extract_split_bit_field): Likewise.
3787 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
3791 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
3793 2016-06-08 Jiong Wang <jiong.wang@arm.com>
3795 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
3797 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
3798 (arch64_addpv4sf): Delete.
3799 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
3800 "gen_aarch64_addpv4sf".
3801 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
3803 (vpadds_f32): Likewise.
3804 (vpaddq_f32): Likewise.
3805 (vpaddq_f64): Likewise.
3807 2016-06-08 Jiong Wang <jiong.wang@arm.com>
3809 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
3811 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
3812 to VALLF. Rename to "fabd<mode>3".
3813 "*fabd_scalar<mode>3): Delete.
3814 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
3816 (vabdd_f64): Likewise.
3817 (vabd_f32): Likewise.
3818 (vabd_f64): Likewise.
3819 (vabdq_f32): Likewise.
3820 (vabdq_f64): Likewise.
3822 2016-06-08 Jiong Wang <jiong.wang@arm.com>
3824 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
3826 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
3827 "aarch64_rsqrts<mode>".
3828 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
3829 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
3831 (vrsqrtsd_f64): Likewise.
3832 (vrsqrts_f32): Likewise.
3833 (vrsqrts_f64): Likewise.
3834 (vrsqrtsq_f32): Likewise.
3835 (vrsqrtsq_f64): Likewise.
3837 2016-06-08 Jiong Wang <jiong.wang@arm.com>
3839 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
3841 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
3842 "aarch64_rsqrte<mode>".
3843 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
3844 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
3846 (vrsqrted_f64): Likewise.
3847 (vrsqrte_f32): Likewise.
3848 (vrsqrte_f64): Likewise.
3849 (vrsqrteq_f32): Likewise.
3850 (vrsqrteq_f64): Likewise.
3852 2016-06-08 Jiong Wang <jiong.wang@arm.com>
3854 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
3858 * config/aarch64/aarch64-simd.md
3859 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
3860 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
3861 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
3863 (vcvt_n_f32_u32): Likewise.
3864 (vcvt_n_s32_f32): Likewise.
3865 (vcvt_n_u32_f32): Likewise.
3866 (vcvtq_n_f32_s32): Likewise.
3867 (vcvtq_n_f32_u32): Likewise.
3868 (vcvtq_n_f64_s64): Likewise.
3869 (vcvtq_n_f64_u64): Likewise.
3870 (vcvtq_n_s32_f32): Likewise.
3871 (vcvtq_n_s64_f64): Likewise.
3872 (vcvtq_n_u32_f32): Likewise.
3873 (vcvtq_n_u64_f64): Likewise.
3874 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
3875 (VSDQ_SDI): Likewise.
3876 (fcvt_target): Support V4DI, V4SI and V2SI.
3877 (FCVT_TARGET): Likewise.
3879 2016-06-08 Jiong Wang <jiong.wang@arm.com>
3881 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
3882 (TYPES_BINOP_SUS): Likewise.
3883 (aarch64_simd_builtin_data): Update include file name.
3884 (aarch64_builtins): Likewise.
3885 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
3886 for conversion between scalar float-point and fixed-point.
3890 * config/aarch64/aarch64.md
3891 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
3892 pattern for conversion between scalar float to fixed-pointer.
3893 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
3894 (UNSPEC_FCVTZS): New UNSPEC enumeration.
3895 (UNSPEC_FCVTZU): Likewise.
3896 (UNSPEC_SCVTF): Likewise.
3897 (UNSPEC_UCVTF): Likewise.
3898 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
3900 (vcvtd_n_f64_u64): Likewise.
3901 (vcvtd_n_s64_f64): Likewise.
3902 (vcvtd_n_u64_f64): Likewise.
3903 (vcvtd_n_f32_s32): Likewise.
3904 (vcvts_n_f32_u32): Likewise.
3905 (vcvtd_n_s32_f32): Likewise.
3906 (vcvts_n_u32_f32): Likewise.
3907 * config/aarch64/iterators.md (fcvt_target): Support integer to float
3909 (FCVT_TARGET): Likewise.
3910 (FCVT_FIXED2F): New iterator.
3911 (FCVT_F2FIXED): Likewise.
3912 (fcvt_fixed_insn): New define_int_attr.
3914 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
3916 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
3917 some statements was removed.
3919 2016-06-08 Alan Hayward <alan.hayward@arm.com>
3921 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
3922 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
3923 (vect_can_advance_ivs_p): likewise.
3924 (vect_update_ivs_after_vectorizer): likewise.
3925 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
3926 (vect_analyze_scalar_cycles_1): likewise.
3927 (vect_analyze_loop_operations): likewise.
3928 (report_vect_op): likewise.
3929 (vect_is_slp_reduction): likewise.
3930 (vect_is_simple_reduction): likewise.
3931 (get_initial_def_for_induction): likewise.
3932 (vect_transform_loop): likewise.
3933 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
3934 (vect_recog_sad_pattern): likewise.
3935 (vect_recog_widen_sum_pattern): likewise.
3936 (vect_recog_widening_pattern): likewise.
3937 (vect_recog_divmod_pattern): likewise.
3938 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
3939 (vect_analyze_slp_instance): likewise.
3940 (vect_transform_slp_perm_load): likewise.
3941 (vect_schedule_slp_instance): likewise.
3943 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
3945 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
3946 (return_prediction): PRED_CONST_RETURN predict return as not taken.
3947 * predict.def (PRED_CONTINUE): Change hitrate 50->67
3948 (PRED_LOOP_BRANCH): Document predictor as broken.
3949 (PRED_LOOP_EXIT): Change hitrate 91->92.
3950 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
3951 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
3952 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
3953 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
3954 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
3955 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
3956 (PRED_CALL): Chane hitrate 71->67.
3957 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
3958 (PRED_GOTO): Document as unused right now.
3959 (PRED_CONST_RETURN): Change hitrate 67->69
3960 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
3961 (PRED_NULL_RETURN): Change hitrate 91->90.
3962 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
3963 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
3964 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
3966 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
3968 * config/rs6000/altivec.h: Add __builtin_vec_mul.
3969 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
3970 special case Altivec builtin.
3971 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
3972 VSX_BUILTIN_VEC_MUL (replaced with special case code).
3973 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
3974 code for ALTIVEC_BUILTIN_VEC_MUL.
3975 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
3976 for __builtin_vec_mul.
3978 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
3980 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
3983 2016-06-07 David Malcolm <dmalcolm@redhat.com>
3985 * spellcheck.c (selftest::test_find_closest_string): New function.
3986 (spellcheck_c_tests): Call the above.
3988 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3990 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
3992 2016-06-07 Jakub Jelinek <jakub@redhat.com>
3994 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
3995 Yv=Yv,C alternatives.
3997 2016-06-07 Richard Biener <rguenther@suse.de>
4000 * common.opt (ffast-math): Make Optimization.
4002 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
4003 Prachi Godbole <prachi.godbole@imgtec.com>
4005 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
4006 `fabs' and `fneg' type attributes.
4007 (p5600_fpu_fabs): Add `fmove' to the comment.
4009 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
4011 * gimple.c: Include builtins.h
4012 (gimple_inexpensive_call_p): New function.
4013 * gimple.h (gimple_inexpensive_call_p): Declare.
4014 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
4015 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
4018 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
4020 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
4021 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
4022 warning_at_rich_loc, warning_n, pedwarn, permerror,
4023 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
4024 sorry, fatal_error, internal_error, internal_error_no_backtrace):
4027 2016-06-07 Richard Biener <rguenther@suse.de>
4029 PR tree-optimization/71428
4030 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
4031 BIT_FIELD_REF op vs. load.
4033 2016-06-07 Richard Biener <rguenther@suse.de>
4036 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
4039 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
4041 * config/pa/pa.md (call): Generate indirect long calls to non-local
4042 functions on TARGET_64BIT.
4043 (call_value): Likewise.
4045 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
4047 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
4048 pattern and subsequent splitters.
4049 (call_val_reg_64bit_post_reload): Likewise.
4051 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4054 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
4055 propagate_op_to_single_use.
4057 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4060 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
4062 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
4064 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
4065 (enum x86_dirflag_state): New enum.
4066 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
4067 (machine_function): Remove needs_cld.
4068 (ix86_current_function_needs_cld): Remove.
4069 * config/i386/i386.c (ix86_set_func_type): Set
4070 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
4071 (ix86_expand_prologue): Do not emit CLD here.
4072 (ix86_dirflag_mode_needed): New function.
4073 (ix86_dirflag_mode_entry): Ditto.
4074 (ix86_mode_needed): Handle X86_DIRFLAG entity.
4075 (ix86_mode_after): Ditto.
4076 (ix86_mode_entry): Ditto.
4077 (ix86_mode_exit): Ditto.
4078 (ix86_emit_mode_set): Ditto.
4079 * config/i386/i386.md (strmov_singleop): Set
4080 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
4081 Do not set ix86_current_function_needs_cld.
4083 (strset_singleop): Ditto.
4085 (cmpstrnqi_nz_1): Ditto.
4086 (cmpstrnqi_1): Ditto.
4087 (strlenqi_1): Ditto.
4089 2016-06-06 Jakub Jelinek <jakub@redhat.com>
4091 PR tree-optimization/71259
4092 * tree-vect-slp.c (vect_get_constant_vectors): For
4093 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
4094 one for constant op, and use COND_EXPR for non-constant.
4096 2016-06-06 David Malcolm <dmalcolm@redhat.com>
4098 * Makefile.in (OBJS): Add function-tests.o,
4099 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
4100 selftest-run-tests.o.
4101 (OBJS-libcommon): Add selftest.o.
4102 (OBJS-libcommon-target): Add selftest.o.
4103 (all.internal): Add "selftest".
4104 (all.cross): Likewise.
4105 (selftest): New phony target.
4106 (s-selftest): New target.
4107 (selftest-gdb): New phony target.
4108 (COLLECT2_OBJS): Add selftest.o.
4109 * bitmap.c: Include "selftest.h".
4110 (selftest::test_gc_alloc): New function.
4111 (selftest::test_set_range): New function.
4112 (selftest::test_clear_bit_in_middle): New function.
4113 (selftest::test_copying): New function.
4114 (selftest::test_bitmap_single_bit_set_p): New function.
4115 (selftest::bitmap_c_tests): New function.
4116 * common.opt (fself-test): New.
4117 * diagnostic-show-locus.c: Include "selftest.h".
4118 (make_range): New function.
4119 (test_range_contains_point_for_single_point): New function.
4120 (test_range_contains_point_for_single_line): New function.
4121 (test_range_contains_point_for_multiple_lines): New function.
4122 (assert_eq): New function.
4123 (test_get_line_width_without_trailing_whitespace): New function.
4124 (selftest::diagnostic_show_locus_c_tests): New function.
4125 * et-forest.c: Include "selftest.h".
4126 (selftest::test_single_node): New function.
4127 (selftest::test_simple_tree): New function.
4128 (selftest::test_disconnected_nodes): New function.
4129 (selftest::et_forest_c_tests): New function.
4130 * fold-const.c: Include "selftest.h".
4131 (selftest::assert_binop_folds_to_const): New function.
4132 (selftest::assert_binop_folds_to_nonlvalue): New function.
4133 (selftest::test_arithmetic_folding): New function.
4134 (selftest::fold_const_c_tests): New function.
4135 * function-tests.c: New file.
4136 * gimple.c: Include "selftest.h".
4137 Include "gimple-pretty-print.h".
4138 (selftest::verify_gimple_pp): New function.
4139 (selftest::test_assign_single): New function.
4140 (selftest::test_assign_binop): New function.
4141 (selftest::test_nop_stmt): New function.
4142 (selftest::test_return_stmt): New function.
4143 (selftest::test_return_without_value): New function.
4144 (selftest::gimple_c_tests): New function.
4145 * hash-map-tests.c: New file.
4146 * hash-set-tests.c: New file.
4147 * input.c: Include "selftest.h".
4148 (selftest::assert_loceq): New function.
4149 (selftest::test_accessing_ordinary_linemaps): New function.
4150 (selftest::test_unknown_location): New function.
4151 (selftest::test_builtins): New function.
4152 (selftest::test_reading_source_line): New function.
4153 (selftest::input_c_tests): New function.
4154 * rtl-tests.c: New file.
4155 * selftest-run-tests.c: New file.
4156 * selftest.c: New file.
4157 * selftest.h: New file.
4158 * spellcheck.c: Include "selftest.h".
4159 (selftest::levenshtein_distance_unit_test_oneway): New function,
4160 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
4161 (selftest::levenshtein_distance_unit_test): Likewise.
4162 (selftest::spellcheck_c_tests): Likewise.
4163 * toplev.c: Include selftest.h.
4164 (toplev::run_self_tests): New.
4165 (toplev::main): Handle -fself-test.
4166 * toplev.h (toplev::run_self_tests): New.
4167 * tree.c: Include "selftest.h".
4168 (selftest::test_integer_constants): New function.
4169 (selftest::test_identifiers): New function.
4170 (selftest::test_labels): New function.
4171 (selftest::tree_c_tests): New function.
4172 * tree-cfg.c: Include "selftest.h".
4173 (selftest::push_fndecl): New function.
4174 (selftest::test_linear_chain): New function.
4175 (selftest::test_diamond): New function.
4176 (selftest::test_fully_connected): New function.
4177 (selftest::tree_cfg_c_tests): New function.
4178 * vec.c: Include "selftest.h".
4179 (selftest::safe_push_range): New function.
4180 (selftest::test_quick_push): New function.
4181 (selftest::test_safe_push): New function.
4182 (selftest::test_truncate): New function.
4183 (selftest::test_safe_grow_cleared): New function.
4184 (selftest::test_pop): New function.
4185 (selftest::test_safe_insert): New function.
4186 (selftest::test_ordered_remove): New function.
4187 (selftest::test_unordered_remove): New function.
4188 (selftest::test_block_remove): New function.
4189 (selftest::reverse_cmp): New function.
4190 (selftest::test_qsort): New function.
4191 (selftest::vec_c_tests): New function.c.
4192 * wide-int.cc: Include selftest.h and wide-int-print.h.
4193 (selftest::from_int <wide_int>): New function.
4194 (selftest::from_int <offset_int>): New function.
4195 (selftest::from_int <widest_int>): New function.
4196 (selftest::assert_deceq): New function.
4197 (selftest::assert_hexeq): New function.
4198 (selftest::test_printing <VALUE_TYPE>): New function template.
4199 (selftest::test_ops <VALUE_TYPE>): New function template.
4200 (selftest::test_comparisons <VALUE_TYPE>): New function template.
4201 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
4203 (selftest::wide_int_cc_tests): New function.
4205 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4208 * ifcvt.c (noce_try_ifelse_collapse): New function.
4210 (noce_process_if_block): Call noce_try_ifelse_collapse.
4211 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
4212 (simplify_ternary_operation): Use the above to simplify
4213 conditional CLZ/CTZ expressions.
4215 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4218 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
4219 define_insn_and_split.
4221 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4224 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
4226 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
4229 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
4230 Implicitly clobber memory for basic asm with non-empty assembler
4231 string. Use targetm.md_asm_adjust also here.
4232 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
4233 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
4234 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
4235 non-empty assembler string.
4236 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
4237 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
4238 (decode_asm_operands): Handle basic asm in PARALLEL block.
4239 (extract_insn): Handle basic asm in PARALLEL block.
4240 * doc/extend.texi: Mention new behavior of basic asm.
4241 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
4242 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
4243 branch_needs_nop_p): Use asm_noperands.
4245 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
4247 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
4248 Include the M7 SPARC DFA scheduler.
4249 New attribute v3pipe.
4250 Annotate insns with v3pipe where appropriate.
4251 Define cpu_feature vis4.
4252 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
4253 Add (V8QI "8") to vbits.
4254 Add insns {add,sub}v8qi3
4255 Add insns ss{add,sub}v8qi3
4256 Add insns us{add,sub}{v8qi,v4hi}3
4257 Add insns {min,max}{v8qi,v4hi,v2si}3
4258 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
4259 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
4260 * config/sparc/niagara4.md: Add a comment explaining the
4261 discrepancy between the documented latenty numbers and the
4263 * config/sparc/niagara7.md: New file.
4264 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
4265 supports SPARC5 and VIS 4.0 instructions.
4266 * configure: Regenerate.
4267 * config.in: Likewise.
4268 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
4269 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
4270 TARGET_CPU_niagara7.
4271 (ASM_CPU64_DEFAULT_SPEC): Likewise.
4272 (CPP_CPU_SPEC): Handle niagara7.
4273 (ASM_CPU_SPEC): Likewise.
4274 * config/sparc/sparc-opts.h (processor_type): Add
4276 (mvis4): New option.
4277 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
4278 (AS_NIAGARA7_FLAG): Define.
4279 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
4280 (CPP_CPU64_DEFAULT_SPEC): Likewise.
4281 (CPP_CPU_SPEC): Handle niagara7.
4282 (ASM_CPU_SPEC): Likewise.
4283 * config/sparc/sparc.c (niagara7_costs): Define.
4284 (sparc_option_override): Handle niagara7 and adjust cache-related
4285 parameters with better values for niagara cpus. Also support VIS4.
4286 (sparc32_initialize_trampoline): Likewise.
4287 (sparc_use_sched_lookahead): Likewise.
4288 (sparc_issue_rate): Likewise.
4289 (sparc_register_move_cost): Likewise.
4290 (dump_target_flag_bits): Support VIS4.
4291 (sparc_vis_init_builtins): Likewise.
4292 (sparc_builtins): Likewise.
4293 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
4295 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
4297 * config/sparc/sparc.opt (sparc_processor_type): New value
4299 * config/sparc/visintrin.h (__attribute__): Prototypes for the
4301 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
4303 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
4306 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
4308 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
4310 2016-06-06 Richard Biener <rguenther@suse.de>
4312 PR tree-optimization/71398
4313 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
4316 2016-06-05 James Bowman <james.bowman@ftdichip.com>
4318 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
4319 ft32_expand_prolog, ft32_expand_epilogue):
4320 Handle pretend_args.
4321 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
4322 * config/ft32/ft32.md: Add pretend_returner.
4324 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
4327 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
4328 Copy op1 RTX to avoid invalid sharing.
4329 (ix86_expand_vector_move_misalign): Ditto.
4331 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
4333 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
4336 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
4338 * predict.c (predicted_by_loop_heuristics_p): New function.
4339 (predict_iv_comparison): Use it.
4340 (predict_loops): Walk from innermost loops; do not predict edges
4341 leaving multiple loops multiple times; implement
4342 PRED_LOOP_ITERATIONS_MAX heuristics.
4343 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
4345 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
4347 * cfg.c (check_bb_profile): Do not report mismatched profiles when
4348 only edges out of BB are EH edges.
4350 2016-06-04 Martin Sebor <msebor@redhat.com>
4351 Marcin Baczyński <marbacz@gmail.com>
4354 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
4355 a void expression in a void function.
4357 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
4359 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
4360 aux; dump reasons of decisions.
4361 (should_duplicate_loop_header_p): Likewise.
4362 (do_while_loop_p): Likewise.
4363 (ch_base::copy_headers): Dump asi num insns duplicated.
4365 2016-06-04 Jakub Jelinek <jakub@redhat.com>
4367 PR tree-optimization/71405
4368 * tree-ssa.c (execute_update_addresses_taken): For clobber with
4369 incompatible type, build a new clobber with the right type instead
4370 of building a VIEW_CONVERT_EXPR around it.
4372 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
4374 PR tree-optimization/52171
4375 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
4376 by_pieces_ninsns instead of move_by_pieces_ninsns.
4378 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
4380 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
4381 for reg+reg addressing mode.
4383 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4385 * rs6000-c.c (c/c-tree.h): Add #include.
4386 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
4387 in C++ when found in the base position of vec_ld or vec_st.
4389 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
4391 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
4392 use of profile unless profile status is PROFILE_READ.
4393 * profile.c (compute_branch_probabilities): Set profile status
4394 only after reporting predictor hitrates.
4396 2016-06-03 Joseph Myers <joseph@codesourcery.com>
4400 * common.opt (ffp-int-builtin-inexact): New option.
4401 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
4402 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
4403 (ceil@var{m}2): Document dependence on this option.
4404 * ipa-inline-transform.c (inline_call): Handle
4405 flag_fp_int_builtin_inexact.
4406 * ipa-inline.c (can_inline_edge_p): Likewise.
4407 * config/i386/i386.md (rintxf2): Do not test
4408 flag_unsafe_math_optimizations.
4409 (rint<mode>2_frndint): New define_insn.
4410 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
4411 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
4412 for 387 instead of extending and truncating.
4413 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
4414 !flag_trapping_math instead of flag_unsafe_math_optimizations.
4415 Change to frndint<mode>2_<rounding>.
4416 (frndintxf2_<rounding>_i387): Likewise. Change to
4417 frndint<mode>2_<rounding>_i387.
4418 (<rounding_insn>xf2): Likewise.
4419 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
4420 !flag_trapping_math instead of flag_unsafe_math_optimizations for
4421 x87. Test TARGET_ROUND || !flag_trapping_math ||
4422 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
4423 SSE. Use ROUND_NO_EXC in constant operand of
4424 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
4425 for 387 instead of extending and truncating.
4427 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
4428 Julia Koval <julia.koval@intel.com>
4440 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
4441 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
4442 all registers, except for function return registers if there are
4443 no caller-saved registers.
4444 (ix86_set_func_type): New function.
4445 (ix86_set_current_function): Call ix86_set_func_type to set
4446 no_caller_saved_registers and func_type. Call reinit_regs if
4447 caller-saved registers are changed. Don't allow MPX, SSE, MMX
4448 nor x87 instructions in interrupt handler nor function with
4449 no_caller_saved_registers attribute.
4450 (ix86_function_ok_for_sibcall): Return false if there are no
4451 caller-saved registers.
4452 (type_natural_mode): Don't warn ABI change for MMX in interrupt
4454 (ix86_function_arg_advance): Skip for callee in interrupt handler.
4455 (ix86_function_arg): Return special arguments in interrupt handler.
4456 (ix86_promote_function_mode): Promote pointer to word_mode only
4457 for normal functions.
4458 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
4460 (ix86_epilogue_uses): New function.
4461 (ix86_hard_regno_scratch_ok): Likewise.
4462 (ix86_save_reg): Preserve all registers in interrupt handler
4463 after reload. Preserve all registers, except for function return
4464 registers, if there are no caller-saved registers after reload.
4465 (find_drap_reg): Always use callee-saved register if there are
4466 no caller-saved registers.
4467 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
4468 for interrupt handler.
4469 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
4470 Emit cld instruction if stringops are used in interrupt handler
4471 or interrupt handler isn't a leaf function.
4472 (ix86_expand_epilogue): Generate interrupt return for interrupt
4473 handler and pop the 'ERROR_CODE' off the stack before interrupt
4474 return in exception handler.
4475 (ix86_expand_call): Disallow calling interrupt handler directly.
4476 If there are no caller-saved registers, mark all registers that
4477 are clobbered by the call which returns as clobbered.
4478 (ix86_handle_no_caller_saved_registers_attribute): New function.
4479 (ix86_handle_interrupt_attribute): Likewise.
4480 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
4482 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
4483 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
4484 accumulation in interrupt function if stack may be realigned to
4486 (EPILOGUE_USES): New.
4487 (function_type): New enum.
4488 (machine_function): Add func_type and no_caller_saved_registers.
4489 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
4490 (interrupt_return): New pattern.
4491 * doc/extend.texi: Document x86 interrupt and
4492 no_caller_saved_registers attributes.
4494 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
4496 PR tree-optimization/52171
4497 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
4498 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
4499 Look for constant strings. Move some code to emit_block_cmp_hints
4501 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
4502 * defaults.h (COMPARE_MAX_PIECES): New macro.
4503 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
4504 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
4505 (clear_by_pieces_1): Don't declare. Move definition before use.
4506 (can_do_by_pieces): New static function.
4507 (can_move_by_pieces): Use it. Return bool.
4508 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
4509 OP. All callers changed. Handle COMPARE_BY_PIECES.
4510 (class pieces_addr); New.
4511 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
4512 pieces_addr::adjust, pieces_addr::increment_address,
4513 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
4515 (class op_by_pieces_d): New.
4516 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
4518 (class move_by_pieces_d, class compare_by_pieces_d,
4519 class store_by_pieces_d): New subclasses of op_by_pieces_d.
4520 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
4521 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
4522 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
4523 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
4524 compare_by_pieces_d::finish_mode): New member functions.
4525 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
4527 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
4528 (emit_block_cmp_hints): New function.
4529 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
4530 use the newly defined classes.
4531 * expr.h (by_pieces_constfn): New typedef.
4532 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
4533 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
4534 (move_by_pieces_ninsns): Don't declare.
4535 (can_move_by_pieces): Change return value to bool.
4536 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
4537 (compare_by_pieces_branch_ratio): New hook.
4538 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
4539 (by_pieces_ninsns): Declare.
4540 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
4542 (default_compare_by_pieces_branch_ratio): New function.
4543 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
4544 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
4545 * doc/tm.texi: Regenerate.
4546 * tree-ssa-strlen.c: Include "builtins.h".
4547 (handle_builtin_memcmp): New static function.
4548 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
4549 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
4551 2016-06-03 Alan Hayward <alan.hayward@arm.com>
4553 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
4554 relevant stmts which are simple and invariant.
4555 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
4556 instead of simple and invariant
4558 2016-06-03 Alan Hayward <alan.hayward@arm.com>
4560 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
4561 (vectorizable_reduction): Check for new relevant state.
4562 (vectorizable_live_operation): vectorize live stmts using
4563 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
4564 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
4565 (vect_stmt_relevant_p): Check for stmts which are only used live.
4566 (process_use): Use of a stmt does not inherit it's live value.
4567 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
4568 (vect_analyze_stmt): Check for new relevant state.
4569 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
4570 outside the loop, but not inside it.
4572 2016-06-03 Alan Hayward <alan.hayward@arm.com>
4574 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
4575 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
4576 (vect_get_vec_def_for_operand): Split out code.
4578 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
4580 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
4582 2016-06-03 Alan Hayward <alan.hayward@arm.com>
4584 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
4586 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4588 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
4590 2016-06-03 Jakub Jelinek <jakub@redhat.com>
4593 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
4594 to noreturn e->callee->decl that has void return type and void
4595 arguments, adjust gimple_call_fntype and remove lhs even if it had
4596 previously addressable type.
4598 2016-06-02 Jeff Law <law@redhat.com>
4600 PR tree-optimization/71328
4601 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
4602 error when checking for a jump back onto the copied path.
4604 2016-06-02 David Malcolm <dmalcolm@redhat.com>
4606 * config/microblaze/microblaze.c (get_branch_target): Add return
4607 NULL_RTX for the non-CALL_P case.
4608 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
4609 (insert_wic): Remove unused local "j".
4611 2016-06-02 Martin Liska <mliska@suse.cz>
4613 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
4615 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
4616 Julia Koval <julia.koval@intel.com>
4618 * function.c (assign_parm_setup_stack): Force source into a
4620 * target.def (function_incoming_arg): Update documentation to
4621 allow arbitrary address computation based on hard register.
4622 * doc/tm.texi: Regenerated.
4624 2016-06-02 Martin Liska <mliska@suse.cz>
4626 * predict.c (combine_predictions_for_bb): Fix first match in
4627 cases where a first predictor contains more than one occurence
4628 in list of predictors. Take the best value in such case.
4630 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4632 PR rtl-optimization/71295
4633 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
4634 offset would go over the size of the inner mode reject it.
4636 2016-06-02 Jakub Jelinek <jakub@redhat.com>
4638 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
4639 x=x,x and v=v,m instead of x=x,m.
4641 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
4642 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
4643 alternative to v=rm,C.
4645 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
4646 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
4647 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
4648 instead of vex for the last two above mentioned alternatives.
4650 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4653 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
4655 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
4657 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
4659 2016-06-01 David Malcolm <dmalcolm@redhat.com>
4661 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
4662 from int to unsigned.
4664 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
4666 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
4667 alternatives, eliminating preferred register class. Add support
4668 for the MTVSRDD instruction in ISA 3.0.
4669 (vsx_splat_v4si_internal): Use splat_input_operand instead of
4670 reg_or_indexed_operand.
4671 (vsx_splat_v4sf_internal): Likewise.
4673 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
4676 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
4677 for loading up all 0's or all 1's.
4679 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
4681 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
4683 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
4685 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
4687 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
4688 * gcc.c (set_source_date_epoch_envvar): New function, sets
4689 the SOURCE_DATE_EPOCH environment variable to the current time.
4691 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
4693 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
4694 the factor for live Phi nodes.
4696 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
4698 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
4699 * tree-parloops.c (parallelize_loops): likewise.
4700 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
4701 tree_unswitch_outer_loop): likewise.
4703 2016-06-01 Jakub Jelinek <jakub@redhat.com>
4706 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
4707 around creation of the temporary.
4709 2016-06-01 Richard Biener <rguenther@suse.de>
4711 PR tree-optimization/71366
4712 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
4713 (unloop_loops): Move removing edges here ...
4714 (try_unroll_loop_completely): ... from here.
4715 (try_peel_loop): ... and here.
4716 (tree_unroll_loops_completely_1): Track parent loops via
4717 bitmap of header BBs.
4718 (tree_unroll_loops_completely): Adjust for that.
4720 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
4722 * config/rs6000/altivec.h (vec_slv): New macro.
4723 (vec_srv): New macro.
4724 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
4725 (UNSPEC_VSRV): New value.
4728 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
4729 (vsrv): New builtin definition.
4730 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
4731 define argument types for new builtin.
4732 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
4734 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
4737 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
4738 Jocelyn Mayer <l_indien@magic.fr>
4741 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
4742 detect processor family for signature_CENTAUR_ebx.
4743 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
4744 signature_CENTAUR_ebx.
4745 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
4746 <default>: Pass x86-64 for has_longmode.
4748 2016-06-01 Nathan Sidwell <nathan@acm.org>
4750 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
4753 2016-06-01 Richard Biener <rguenther@suse.de>
4755 PR tree-optimization/71261
4756 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
4757 of stmts successfully put in the bool pattern. Remove
4758 single-use restriction.
4759 (adjust_bool_pattern_cast): Add cast at the use site via the
4760 pattern def sequence.
4761 (adjust_bool_pattern): Remove recursion, maintain a hash-map
4762 of patterned defs. Use the pattern def seqence instead of
4763 multiple independent patterns.
4764 (sort_after_uid): New qsort compare function.
4765 (adjust_bool_stmts): New function to process stmts in the bool
4766 pattern in IL order.
4767 (vect_recog_bool_pattern): Adjust.
4768 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
4769 (ifcvt_walk_pattern_tree): Likewise.
4770 (stmt_is_root_of_bool_pattern): Likewise.
4771 (ifcvt_repair_bool_pattern): Likewise.
4772 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
4774 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
4776 * loop-unroll.c (decide_unroll_constant_iterations,
4777 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
4778 likely upper bounds.
4779 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
4781 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
4783 * tree-core.h (enum omp_clause_code): Remove
4784 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
4786 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4788 * config/arm/sync.md (arm_store_exclusive<mode>):
4789 Use 'H' output modifier on operands[2] rather than creating a new
4790 entry in out-of-bounds memory of the operands array.
4791 (arm_store_release_exclusivedi): Likewise.
4793 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4795 * config/arm/arm.c (arm_fusion_enabled_p): New function.
4796 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
4797 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
4798 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
4800 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
4802 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
4803 into account live statements for mask producers.
4805 2016-06-01 Richard Biener <rguenther@suse.de>
4807 PR tree-optimization/71311
4808 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
4809 restrict to non-INTEGER_CST @0.
4811 2016-06-01 Richard Biener <rguenther@suse.de>
4813 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
4814 (relational patterns): Use :c to avoid pattern duplications.
4816 2016-06-01 Richard Biener <rguenther@suse.de>
4818 * genmatch.c (comparison_code_p): New predicate.
4819 (swap_tree_comparison): New function.
4820 (commutate): Add for_vec parameter to append new for entries.
4821 Support commutating relational operators by swapping it alongside
4823 (lower_commutative): Adjust.
4824 (dt_simplify::gen): Do not pass artificial operators to gen
4826 (decision_tree::gen): Do not add artificial operators as parameters.
4827 (parser::parse_expr): Verify operator commutativity when :c is
4828 applied. Allow :C to override this.
4829 * match.pd: Adjust patterns to use :C instead of :c where required.
4831 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
4833 PR tree-optimization/71077
4834 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
4835 the combining step, use boolean_false_node and boolean_true_node
4836 as the designated false/true return values.
4838 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
4840 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
4841 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
4842 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
4845 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
4847 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
4848 of flags impliying the register renaming.
4849 * toplev.c (process_options): Do not imply flag_rename_registers with
4852 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
4854 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
4855 default implementation.
4857 2016-05-31 Nathan Sidwell <nathan@acm.org>
4859 * dwarf2out.c (cur_line_info_table): Add GTY marker.
4861 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
4863 * config/sh/constraints.md (b): Remove constraint.
4864 * config/sh/predicates.md (arith_reg_operand): Remove
4866 * config/sh/sh-modes.def (PDI): Remove.
4867 * config/sh/sh.c (sh_target_reg_class,
4868 sh_optimize_target_register_callee_saved): Remove functions.
4869 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
4870 (sh_expand_epilogue): Update comment.
4871 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
4872 sh_secondary_reload): Remove TARGET_REGS related code.
4873 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
4874 TARGET_REGISTER_P): Remove macros.
4875 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
4876 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
4877 TR1_REG, TR2_REG): Remove constants.
4878 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
4880 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
4882 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
4883 define_expand patterns.
4884 (adddi3_compact): Rename to adddi3.
4885 (subdi3_compact): Rename to subdi3.
4886 (*negdi2): Rename to negdi2.
4887 (*abs<mode>2): Rename to abs<mode>2.
4889 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
4891 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
4892 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
4893 (atomic_sub_fetchsi): ... this new pattern.
4894 (mvtc): Add CC_REG clobber.
4896 2016-05-31 Marek Polacek <polacek@redhat.com>
4898 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
4900 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4902 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
4903 aarch64_fusion_enabled_p to check for fusion capabilities.
4905 2016-05-31 Richard Biener <rguenther@suse.de>
4907 PR tree-optimization/71352
4908 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
4909 minus one and a negate.
4911 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4913 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
4914 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
4916 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
4917 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
4918 Remove use of aarch64_simd_attr_length_move, set length attribute
4920 (*aarch64_be_movoi): Likewise.
4921 (*aarch64_be_movci): Likewise.
4922 (*aarch64_be_movxi): Likewise.
4924 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
4926 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
4927 It no longer does that.
4928 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
4930 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
4932 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
4933 attribute __unused__.
4935 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
4937 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
4938 * config/arm/arm.c (arm_arch_thumb1): Define.
4939 (arm_option_override): Initialize arm_arch_thumb1.
4940 * config/arm/arm.h (arm_arch_thumb1): Declare.
4941 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
4942 support Thumb-1 ISA.
4944 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
4947 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
4948 `Yv' for scalar operand.
4950 2016-05-31 Tom de Vries <tom@codesourcery.com>
4952 PR tree-optimization/69068
4953 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
4954 phis with more than two args.
4956 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
4958 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
4959 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
4962 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
4964 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
4966 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
4968 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
4969 cpu_32, cpu_64, tune_32 and tune_64.
4970 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
4972 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
4974 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
4976 2016-05-30 Andi Kleen <ak@linux.intel.com>
4978 * auto-profile.c (read_profile): Replace asserts with errors
4979 when file does not exist.
4980 * gcov-io.c (gcov_read_words): Dito.
4982 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
4984 * tree-cfg.c (print_loop): Print likely upper bounds.
4986 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
4988 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
4989 * opts.c (default_options): Enable peel loops at -O3.
4990 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
4991 (try_peel_loop): Do not re-peel already peeled loops;
4992 use likely upper bounds; fix profile updating.
4993 (pass_complete_unroll::execute): Initialize peeled_loops.
4995 2016-05-30 Martin Liska <mliska@suse.cz>
4997 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
4998 computed costs by frequency of BB they belong to.
4999 (get_scaled_computation_cost_at): New function.
5001 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
5002 Marc Glisse <marc.glisse@inria.fr>
5004 PR tree-optimization/71289
5005 * match.pd (-1 / B < A, A > -1 / B): New transformations.
5007 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5009 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
5011 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5013 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
5014 for peeled copies; avoid underflow when updating estimates; correctly
5017 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
5019 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
5020 r236875. Corrected oe3 to oe2 as obvious.
5022 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
5026 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
5027 that inserted stmt will not dominate stmts that defines its operand.
5028 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
5029 (rewrite_expr_tree_parallel): Likewise.
5031 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
5034 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
5035 all fields including stmt_to_insert are swapped.
5037 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5039 * predict.h (force_edge_cold): Declare.
5040 * predict.c (force_edge_cold): New function.
5041 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
5043 (canonicalize_loop_induction_variables): Fix formating.
5045 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
5047 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
5048 (visium_expand_copysign): Use gen_int_mode directly.
5049 (visium_compute_frame_size): Minor tweaks.
5051 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5053 * tree-vect-loop.c (vect_analyze_loop_2): Use
5054 likely_max_stmt_executions_int.
5056 2016-05-30 Tom de Vries <tom@codesourcery.com>
5058 PR tree-optimization/69067
5059 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
5061 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
5064 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
5065 New peepholes to remove unneeded fild/fistp pairs.
5066 (define_peephole2 atomic_loaddi_fpu): Ditto.
5068 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5070 * predict.c (maybe_hot_frequency_p): Avoid division.
5072 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
5074 * doc/install.texi: Use https for shop.fsf.org.
5076 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5078 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
5079 likely_max_stmt_executions_int.
5081 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5083 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
5084 likely_max_stmt_executions_int.
5086 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5088 * profile.c (compute_branch_probabilities): Do not report hitrates
5090 (branch_prob): Report hitrates here.
5091 * predict.c (gimple_predict_edge): Do not assert profile status;
5092 fix formatting issues.
5094 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5096 * predict.c (edge_predicted_by_p): New function.
5097 (predict_paths_for_bb): Do not put multiple predictions of the same type
5100 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5102 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
5105 2016-05-28 Alan Modra <amodra@gmail.com>
5107 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
5109 2016-05-28 Alan Modra <amodra@gmail.com>
5111 PR rtl-optimization/71275
5112 * ira.c (ira): Free dominance info.
5114 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
5116 * doc/sourcebuild.texi: New address for upstream Go repository.
5118 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
5120 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
5121 (TARGET_ARM_V7M): Likewise.
5123 2016-05-26 Jeff Law <law@redhat.com>
5125 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
5126 (thread_across_edge): Remove calls to find_jump_threads_backwards.
5127 * passes.def: Add jump threading passes before DOM/VRP.
5128 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
5129 argument to a basic block from an edge. Remove tests which are
5131 (pass_data_thread_jumps, class pass_thread_jumps): New.
5132 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
5133 (make_pass_thread_jumps): Likewise.
5134 * tree-pass.h (make_pass_thread_jumps): Declare.
5136 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
5138 * config/visium/visium-protos.h (split_double_move): Rename into...
5139 (visium_split_double_move): ...this.
5140 (visium_split_double_add): Declare.
5141 * config/visium/visium.c (split_double_move): Rename into...
5142 (visium_split_double_move): ...this.
5143 (visium_split_double_add): New function.
5144 (visium_expand_copysign): Renumber operands for consistency.
5145 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
5146 (DFmode move splitter): Likewise.
5147 (*addi3_insn): Split by means of visium_split_double_add.
5148 (*adddi3_insn_flags): Delete.
5149 (*plus_plus_sltu<subst_arith>): New insn.
5150 (*subdi3_insn): Split by means of visium_split_double_add.
5151 (subdi3_insn_flags): Delete.
5152 (*minus_minus_sltu<subst_arith>): New insn.
5153 (*negdi2_insn): Split by means of visium_split_double_add.
5154 (*negdi2_insn_flags): Delete.
5156 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
5158 * configure.ac: Treat a --with-headers option without argument
5159 the same as the default (i.e. consult sys-include directory).
5160 * configure: Regenerate.
5162 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5164 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
5165 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
5167 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
5168 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
5170 2016-05-27 Jiong Wang <jiong.wang@arm.com>
5173 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
5174 tree-stdarg analysis results.
5175 (aarch64_setup_incoming_varargs): Likewise.
5177 2016-05-27 Jiong Wang <jiong.wang@arm.com>
5179 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
5180 va_list_gpr_counter_field and va_list_fpr_counter_field.
5182 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
5185 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
5186 * config/aarch64/aarch64.c
5187 (aarch64_cannot_change_mode_class): Remove function.
5188 * config/aarch64/aarch64-protos.h
5189 (aarch64_cannot_change_mode_class): Remove.
5191 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5193 * cfgloop.c (record_niter_bound): Record likely upper bounds.
5194 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
5195 get_likely_max_loop_iterations_int): New.
5196 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
5197 any_likely_upper_bound.
5198 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
5200 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
5201 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
5203 (unroll_loop_constant_iterations): Likewise.
5204 (unroll_loop_runtime_iterations): Likewise.
5205 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
5206 * lto-streamer-out.c (output_cfg): Likewise.
5207 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
5209 (canonicalize_loop_induction_variables): Dump likely upper bounds.
5210 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
5211 (likely_max_loop_iterations): New.
5212 (likely_max_loop_iterations_int): New.
5213 (likely_max_stmt_executions): New.
5214 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
5215 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
5216 likely_max_stmt_executions): Declare.
5218 2016-05-27 Marek Polacek <polacek@redhat.com>
5221 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
5223 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5225 * config/s390/s390.md (2x risbg splitters): Use
5226 reg_overlap_mentioned_p instead of rtx_equal_p.
5228 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
5230 * combine.c (make_compound_operation): Take known zero bits into
5231 account when checking for possible zero_extend.
5233 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5235 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
5236 Use const_int_operand for operand 2 predicate. Simplify expand code
5239 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
5242 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
5245 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5247 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
5248 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
5249 that returns CC_SESWPmode and CC_ZESWPmode.
5250 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
5252 (aarch64_rtx_costs): Likewise.
5254 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5256 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
5257 for ISA 3.0 min/max support.
5258 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
5259 conditional move support.
5260 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
5261 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
5263 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
5264 conditional moves where the comparison type is different from move
5266 (fp_minmax): New code iterator for smin/smax.
5267 (minmax): New code attributes for min/max.
5268 (SMINMAX): Likewise.
5269 (smax<mode>3): Combine min, max insns into one insn using the
5270 fp_minmax code iterator. Add support for ISA 3.0 min/max
5271 instructions that don't need -ffast-math.
5272 (s<minmax><mode>3): Likewise.
5273 (smax<mode>3_vsx): Likewise.
5274 (smin<mode>3): Likewise.
5275 (s<minmax><mode>3_vsx): Likewise.
5276 (smin<mode>3_vsx): Likewise.
5277 (pre-VSX min/max splitters): Likewise.
5278 (s<minmax><mode>3_fpr): Likewise.
5279 (movsfcc): Rewrite floating point conditional moves to combine
5280 SFmode/DFmode into a single insn.
5281 (mov<mode>cc): Likewise.
5282 (movdfcc): Likewise.
5283 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
5284 SFDF2 iterators to handle all combinations.
5285 (fseldfsf4): Likewise.
5286 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
5287 (fseldfdf4): Likewise.
5288 (fselsfdf4): Likewise.
5289 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
5290 comparison instructions that set a 0/-1 mask, and use it for
5291 floating point conditional move via XXSEL.
5292 (fpmask<mode>): Likewise.
5293 (xxsel<mode>): Likewise.
5294 * config/rs6000/predicates.md (min_max_operator): Delete, no
5296 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
5297 instructions that generate a 0/-1 mask for use with XXSEL.
5298 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
5299 say whether floating point min/max is available, either through
5300 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
5301 (TARGET_MINMAX_DF): Likewise.
5303 2016-05-27 Alan Modra <amodra@gmail.com>
5305 PR rtl-optimization/71275
5306 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
5307 for update_equiv_regs and combine_and_move_insns.
5309 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
5311 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
5312 if_then_else or cond RTXes to calculate attribute value.
5313 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
5314 <attr "length_immediate>: Ditto.
5315 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
5316 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
5317 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
5318 <attr "type">: Ditto.
5319 <attr "prefix_data16">: Ditto.
5320 <attr "prefix_extra">: Ditto.
5321 <attr "length_immediate">: Ditto.
5322 <attr "prefix">: Ditto.
5323 (vec_set<mode>_0) <attr "isa">: Ditto.
5324 <attr "prefix_extra">: Ditto.
5325 <attr "length_immediate">: Ditto.
5326 <attr "prefix">: Ditto.
5327 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
5328 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
5329 (sse2_storelpd) <attr "prefix_data16">: Ditto.
5330 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
5331 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
5332 <attr "length_immediate">: Ditto.
5333 <attr "prefix">: Ditto.
5334 (sse2_movsd) <attr "length_immediate">: Ditto.
5335 <attr "prefix">: Ditto.
5336 (vec_concatv2df) <attr "isa">: Ditto.
5337 <attr "prefix">: Ditto.
5338 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
5339 (*vec_extractv2di_1) <attr "isa">: Ditto.
5340 <attr "type">: Ditto.
5341 <attr "length_immediate">: Ditto.
5342 <attr "prefix_rex">: Ditto.
5343 <attr "prefix_extra">: Ditto.
5344 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
5345 <attr "prefix_extra">: Ditto.
5346 <attr "length_immediate">: Ditto.
5347 (vec_concatv2di) <attr "isa">: Ditto.
5348 <attr "prefix_extra">: Ditto.
5349 <attr "length_immediate">: Ditto.
5350 <attr "prefix">: Ditto.
5352 2016-05-26 Martin Liska <mliska@suse.cz>
5354 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
5356 (operator+): Likewise.
5357 (operator-): Likewise.
5358 (comp_cost::operator+=): Likewise.
5359 (comp_cost::operator-=): Likewise.
5360 (comp_cost::operator/=): Likewise.
5361 (comp_cost::operator*=): Likewise.
5362 (operator<): Likewise.
5363 (operator==): Likewise.
5364 (operator<=): Likewise.
5366 (infinite_cost_p): Likewise.
5367 (add_costs): Likewise.
5368 (sub_costs): Likewise.
5369 (compare_costs): Likewise.
5370 (set_group_iv_cost): Use the newly introduced functions.
5371 (get_address_cost): Likewise.
5372 (get_shiftadd_cost): Likewise.
5373 (force_expr_to_var_cost): Likewise.
5374 (split_address_cost): Likewise.
5375 (ptr_difference_cost): Likewise.
5376 (difference_cost): Likewise.
5377 (get_computation_cost_at): Likewise.
5378 (determine_group_iv_cost_generic): Likewise.
5379 (determine_group_iv_cost_address): Likewise.
5380 (determine_group_iv_cost_cond): Likewise.
5381 (autoinc_possible_for_pair): Likewise.
5382 (determine_group_iv_costs): Likewise.
5383 (cheaper_cost_pair): Likewise.
5384 (iv_ca_recount_cost): Likewise.
5385 (iv_ca_set_no_cp): Likewise.
5386 (iv_ca_set_cp): Likewise.
5387 (iv_ca_cost): Likewise.
5388 (iv_ca_new): Likewise.
5389 (iv_ca_dump): Likewise.
5390 (iv_ca_narrow): Likewise.
5391 (iv_ca_prune): Likewise.
5392 (iv_ca_replace): Likewise.
5393 (try_add_cand_for): Likewise.
5394 (try_improve_iv_set): Likewise.
5395 (find_optimal_iv_set): Likewise.
5397 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
5399 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
5400 that internal functions will clobber all caller-saved registers.
5402 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
5404 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
5405 Return a better case_values_threshold when optimizing.
5407 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
5409 * config/aarch64/aarch64-simd.md (aarch64_combinez):
5410 Add ? to integer variant.
5411 (aarch64_combinez_be): Likewise.
5413 2016-05-26 Jakub Jelinek <jakub@redhat.com>
5415 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
5416 instead of x constraint.
5417 (vcvtps2ph256<mask_name>): Likewise.
5419 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
5420 alternative. Formatting fix.
5422 * config/i386/sse.md
5423 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
5425 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
5426 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
5427 maybe_evex prefix instead of vex.
5428 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
5429 EXT_REX_SSE_REG_P (op0) case in the splitter.
5431 2016-05-25 Jeff Law <law@redhat.com>
5433 PR tree-optimization/71272
5434 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
5435 Update comments. Add test for empty path.
5437 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
5439 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
5440 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
5441 special case builtin.
5442 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
5443 code for ALTIVEC_BUILTIN_VEC_CMPNE.
5444 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
5445 for __builtin_vec_cmpne.
5447 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
5449 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
5450 redundant test and bail out if the type of the new operand is not
5451 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
5453 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
5455 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
5456 (x_ix86_target_flags_explicit): Remove.
5457 * config/i386/i386.c (ix86_function_specific_save): Do not copy
5458 x_ix86_target_flags_explicit.
5459 (ix86_function_specific_restore): Ditto.
5461 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
5462 H.J. Lu <hongjiu.lu@intel.com>
5465 * common/config/i386/i386-common.c
5466 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
5467 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
5468 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
5469 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
5470 (-mgeneral-regs-only): Add new option.
5471 * config/i386/i386.c (ix86_option_override_internal): Don't enable
5472 x87 instructions if only general registers are allowed.
5473 (ix86_target_string): Add ix86_flags argument. Handle additional
5474 flags options through ix86_flags argument. Update all callers.
5475 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
5477 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5479 PR rtl-optimization/66940
5480 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
5481 decrementing desired_val will not overflow before performing these
5484 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
5486 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
5487 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
5488 * config/i386/i386.c (enum ix86_builtins): Add
5489 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
5490 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
5491 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
5492 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
5493 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
5494 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
5495 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
5496 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
5497 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
5498 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
5499 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
5500 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
5501 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
5502 __builtin_ia32_cvtps2dq512_mask.
5503 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
5504 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
5505 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
5506 * config/i386/sse.md
5507 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
5509 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
5510 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
5512 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
5513 (avx512f_vec_pack_sfix_v8df): New define_expand.
5514 (avx512f_roundpd512): Rename to ...
5515 (avx512f_round<castmode>512): ... this. Change iterator.
5516 (avx512f_roundps512_sfix): New define_expand.
5517 (round<mode>2_sfix): Change iterator.
5519 2016-05-25 Nick Clifton <nickc@redhat.com>
5521 * config/msp430/msp430.c (msp430_attr): Produce an error if a
5522 static interrupt handler is detected.
5523 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
5524 default linker script.
5525 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
5526 the low part of a symbolic pointer.
5528 2016-05-25 Richard Biener <rguenther@suse.de>
5530 PR tree-optimization/71261
5531 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
5532 interesting stmt instead of immediate uses when looking
5533 for the use operand to replace.
5535 2016-05-25 Martin Liska <mliska@suse.cz>
5537 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
5539 2016-05-25 Richard Biener <rguenther@suse.de>
5541 PR tree-optimization/71264
5542 * tree-vect-stmts.c (vect_init_vector): Properly deal with
5545 2016-05-25 Martin Liska <mliska@suse.cz>
5547 PR tree-optimization/71239
5548 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
5549 if DECL_SIZE is NULL.
5551 2016-05-25 Richard Biener <rguenther@suse.de>
5553 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
5554 * tree-if-conv.c (pass_data_if_conversion): Use it.
5556 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5558 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
5559 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
5560 * varpool.c (varpool_node::get_availability): Likewise.
5562 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
5564 * config/rs6000/altivec.md (VNEG iterator): New iterator for
5565 VNEGW/VNEGD instructions.
5566 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
5567 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
5568 support for ISA 3.0 VNEGW/VNEGD instructions.
5570 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
5572 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
5573 pointers inside OACC_DATA regions.
5574 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
5575 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
5576 (gimplify_adjust_omp_clauses): Fix typo in comment.
5578 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
5580 * config/rs6000/altivec.md (VParity): New mode iterator for vector
5581 parity built-in functions.
5582 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
5584 (p9v_parity<mode>2): Likewise.
5585 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
5587 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
5588 (parity<mode>2): ISA 3.0 expander for vector parity.
5589 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
5591 (BU_P9_64BIT_MISC_0): Likewise.
5592 (BU_P9_MISC_0): Likewise.
5593 (BU_P9V_AV_1): Likewise.
5594 (BU_P9V_AV_2): Likewise.
5595 (BU_P9V_AV_3): Likewise.
5596 (BU_P9V_AV_P): Likewise.
5597 (BU_P9V_VSX_1): Likewise.
5598 (BU_P9V_OVERLOAD_1): Likewise.
5599 (BU_P9V_OVERLOAD_2): Likewise.
5600 (BU_P9V_OVERLOAD_3): Likewise.
5601 (VCTZB): Add vector count trailing zeros support.
5605 (VPRTYBD): Add vector parity support.
5606 (VPRTYBQ): Likewise.
5607 (VPRTYBW): Likewise.
5608 (VCTZ): Add overloaded vector count trailing zeros support.
5609 (VPRTYB): Add overloaded vector parity support.
5610 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5611 overloaded vector count trailing zeros and parity instructions.
5612 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
5613 vector parity support.
5614 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
5615 trailing zeros support.
5616 (vec_cntlz): Likewise.
5617 (vec_vctzb): Likewise.
5618 (vec_vctzd): Likewise.
5619 (vec_vctzh): Likewise.
5620 (vec_vctzw): Likewise.
5621 (vec_vprtyb): Add ISA 3.0 vector parity support.
5622 (vec_vprtybd): Likewise.
5623 (vec_vprtybw): Likewise.
5624 (vec_vprtybq): Likewise.
5625 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
5626 the ISA 3.0 vector count trailing zeros and vector parity built-in
5629 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
5631 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
5632 when there is stmt_to_insert.
5634 2016-05-24 Martin Sebor <msebor@redhat.com>
5637 * tree.h (complete_or_array_type_p): New inline function.
5639 2016-05-24 Jakub Jelinek <jakub@redhat.com>
5641 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
5642 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
5643 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
5645 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
5646 Limit 1st alternative to noavx isa, split 2nd alternative into one
5647 noavx and one avx alternative, use *x and Bm in the former and
5648 x and m in the latter.
5650 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
5651 of sse4 for the first alternative, drop %v from the template
5652 and d operand modifier. Split second alternative into one sse4_noavx
5653 and one avx alternative, use *x instead of *v in the former and v
5654 instead of *v in the latter.
5655 (*sse4_1_extractps): Use noavx isa instead of * for the first
5656 alternative, drop %v from the template. Split second alternative into
5657 one noavx and one avx alternative, use *x instead of *v in the
5658 former and v instead of *v in the latter.
5659 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
5660 with noavx and the last one with avx.
5661 (sse4_1_phminposuw): Guard first alternative with noavx isa,
5662 split the second one into one noavx and one avx alternative,
5663 use *x and Bm in the former and x and m in the latter one.
5664 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
5667 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
5668 first two alternatives to noavx, use *x instead of *v in the second
5669 one, add avx alternative without *.
5670 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
5671 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
5672 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
5674 2016-05-24 Jeff Law <law@redhat.com>
5676 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
5677 New function, extracted from...
5678 (fsm_find_control_statement_thread_paths): Here. Use the new function.
5679 Allow simple copies and constant initializations in the SSA chain.
5681 2016-05-24 Marek Polacek <polacek@redhat.com>
5684 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
5687 2016-05-24 Jakub Jelinek <jakub@redhat.com>
5690 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
5691 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
5692 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
5693 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
5694 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
5696 2016-05-24 Richard Biener <rguenther@suse.de>
5698 PR tree-optimization/71240
5699 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
5702 2016-05-24 Richard Biener <rguenther@suse.de>
5704 PR tree-optimization/71230
5705 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
5707 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
5709 * tree-vectorizer.h (vectorizable_comparison): Delete.
5710 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
5711 PURE_SLP_STMT check.
5712 * tree-vect-stmts.c (vectorizable_call): Likewise.
5713 (vectorizable_simd_clone_call): Likewise.
5714 (vectorizable_conversion): Likewise.
5715 (vectorizable_assignment): Likewise.
5716 (vectorizable_shift): Likewise.
5717 (vectorizable_operation): Likewise.
5718 (vectorizable_load): Likewise.
5719 (vectorizable_condition): Likewise.
5720 (vectorizable_store): Likewise. Assert that we don't have
5722 (vectorizable_comparison): Make static. Remove redundant
5723 PURE_SLP_STMT check.
5724 (vect_transform_stmt): Assert that we always have an slp_node
5727 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5729 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
5730 operands[2] against 1 with comparison against CONST1_RTX.
5731 (<shift>di3_neon): Likewise.
5732 * config/arm/predicates.md (const0_operand): Replace with comparison
5735 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5737 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
5738 operands[2] against 1 with comparison against CONST1_RTX.
5739 (ashrdi3): Likewise.
5740 (lshrdi3): Likewise.
5741 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
5743 (ashrsi3): Likewise.
5744 (lshrsi3): Likewise.
5745 (rotrsi3): Likewise.
5746 (define_split above *compareqi_eq0): Likewise.
5747 (define_split above "prologue"): Likewise.
5748 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
5749 * config/arm/predicates.md (shift_operator): Likewise.
5750 (shift_nomul_operator): Likewise.
5751 (sat_shift_operator): Likewise.
5752 (thumb1_cmp_operand): Likewise.
5753 (const_neon_scalar_shift_amount_operand): Replace manual range
5754 check with IN_RANGE.
5755 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
5756 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
5758 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5760 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
5761 with HOST_WIDE_INT_1.
5763 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
5764 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
5765 (arm_canonicalize_comparison): Likewise.
5766 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
5768 (thumb1_size_rtx_costs): Likewise.
5769 (vfp_const_double_index): Replace cast of 1 to unsigned
5770 HOST_WIDE_INT with HOST_WIDE_INT_1U.
5771 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
5773 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
5774 HOST_WIDE_INT with HOST_WIDE_INT_1U.
5775 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
5776 HOST_WIDE_INT with HOST_WIDE_INT_1.
5778 2016-05-24 Marek Polacek <polacek@redhat.com>
5780 * tree-cfg.h (should_remove_lhs_p): New predicate.
5781 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
5782 * gimplify.c (gimplify_modify_expr): Likewise.
5783 * tree-cfg.c (verify_gimple_call): Likewise.
5784 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
5785 * gimple-fold.c: Include "tree-cfg.h".
5786 (gimple_fold_call): Use should_remove_lhs_p.
5788 2016-05-24 Richard Biener <rguenther@suse.de>
5790 PR tree-optimization/71253
5791 * cfganal.h (control_dependences): Make robust against edge
5793 (control_dependences::control_dependences): Remove edge_list argument.
5794 (control_dependences::get_edge): Remove.
5795 (control_dependences::get_edge_src): Add.
5796 (control_dependences::get_edge_dest): Likewise.
5797 (control_dependences::m_el): Make a vector of edge src/dest index.
5798 * cfganal.c (control_dependences::find_control_dependence): Adjust.
5799 (control_dependences::control_dependences): Likewise.
5800 (control_dependences::~control_dependence): Likewise.
5801 (control_dependences::get_edge): Remove.
5802 (control_dependences::get_edge_src): Add.
5803 (control_dependences::get_edge_dest): Likewise.
5804 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
5806 (perform_tree_ssa_dce): Adjust.
5807 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
5809 (pass_loop_distribution::execute): Adjust. Do loop destroying
5810 conditional on changed.
5812 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5815 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
5816 return. Reindent transformation comment and mention the ARM state
5819 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
5822 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
5823 after build_and_add_sum creates new use stmt.
5825 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
5827 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
5828 load_lanes/grouped_load classification comes first. Don't check
5829 whether the vectorization factor is a multiple of the group size
5832 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
5834 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
5835 GROUP_GAP for single-element interleaving.
5836 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
5839 2016-05-24 Richard Biener <rguenther@suse.de>
5843 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
5844 bases which are accessed with non-invariant indices.
5845 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
5846 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
5848 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
5851 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
5852 (add_to_ops_vec): Add stmt_to_insert.
5853 (add_repeat_to_ops_vec): Init stmt_to_insert.
5854 (insert_stmt_before_use): New.
5855 (transform_add_to_multiply): Remove mult_stmt insertion and add it
5857 (get_ops): Init stmt_to_insert.
5858 (maybe_optimize_range_tests): Likewise.
5859 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
5860 (rewrite_expr_tree_parallel): Likewise.
5861 (reassociate_bb): Likewise.
5863 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
5866 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
5867 ISA 3.0 xxperm fusion alternative.
5868 (altivec_vperm_v8hiv16qi): Likewise.
5869 (altivec_vperm_<mode>_uns_internal): Likewise.
5870 (vperm_v8hiv4si): Likewise.
5871 (vperm_v16qiv8hi): Likewise.
5873 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
5874 Kelvin Nilsen <kelvin@gcc.gnu.org>
5876 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
5877 vpermr/xxpermr on ISA 3.0.
5878 (altivec_expand_vec_perm_le): Likewise.
5879 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
5880 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
5883 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
5885 * config/i386/i386.h (IS_STACK_MODE): Enable for
5886 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
5887 SSE_FLOAT_MODE_P macros.
5888 * config/i386/i386.c (ix86_preferred_reload_class): Use
5889 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
5890 Cleanup regclass processing for CONST_DOUBLE_P.
5891 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
5892 (ix86_rtx_costs): Remove redundant TARGET_80387 check
5893 with IS_STACK_MODE macro.
5894 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
5896 (*movdf_internal): Use IS_STACK_MODE macro.
5897 (*movsf_internal): Ditto.
5899 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
5901 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
5902 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
5904 2016-05-23 Jeff Law <law@redhat.com>
5906 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
5908 (fsm_find_control_statement_thread_paths): Call it.
5910 2016-05-23 Martin Jambor <mjambor@suse.cz>
5913 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
5914 from_global_constant if t is not NULL.
5916 2016-05-23 Marek Polacek <polacek@redhat.com>
5919 * common.opt (Wswitch-unreachable): New option.
5920 * doc/invoke.texi: Document -Wswitch-unreachable.
5921 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
5924 2016-05-23 Bin Cheng <bin.cheng@arm.com>
5926 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
5927 TMR_INDEX is non-NULL.
5929 2016-05-23 Richard Biener <rguenther@suse.de>
5931 PR tree-optimization/71230
5932 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
5933 (try_special_add_to_ops): ... here. Always test for single-use.
5935 2016-05-23 Martin Jambor <mjambor@suse.cz>
5937 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
5938 default block if a PHI node in the original one would be resized.
5940 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5942 PR tree-optimization/58135
5943 * tree-vect-slp.c: When group size is not multiple
5944 of vector size, allow splitting of store group at
5947 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
5949 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
5951 2016-05-22 Jakub Jelinek <jakub@redhat.com>
5953 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
5954 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
5955 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
5958 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
5959 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
5960 v constraint instead of x and vinserti32x4 insn.
5962 * config/i386/sse.md (i128vldq): New mode iterator.
5963 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
5964 avx512dq and avx512vl alternatives.
5966 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
5967 constraint, use maybe_evex prefix instead of vex.
5968 (vec_dupv4sf): Use v constraint instead of x for output
5969 operand except for noavx alternative, use Yv constraint
5970 instead of x for input. Use maybe_evex prefix instead of vex.
5971 (*vec_dupv4si): Likewise.
5972 (*vec_dupv2di): Likewise.
5974 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
5977 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
5978 (linearize_expr_tree): Call try_special_add_to_ops.
5979 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
5981 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5983 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
5984 to computed stack_usage.
5986 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
5989 * config/avr/avr.md (define_expand "mov<mode>"): If the source
5990 operand is subreg (symbol_ref) then move the symbol ref to register.
5992 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
5994 * tree.c (array_at_struct_end_p): Look through MEM_REF.
5996 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
5999 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
6002 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
6004 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
6005 ranges by calling get_single_symbol and tidy up. Look more closely
6006 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
6008 2016-05-20 Jeff Law <law@redhat.com>
6010 * bitmap.c (bitmap_find_bit): Remove useless test.
6012 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
6014 * function.c (thread_prologue_and_epilogue_insns): Commit the
6015 insertion of the epilogue.
6017 2016-05-20 Martin Jambor <mjambor@suse.cz>
6019 PR tree-optimization/70884
6020 * tree-sra.c (initialize_constant_pool_replacements): Do not check
6021 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
6022 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
6023 of constant pool data as a reason for scalarization.
6025 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
6027 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
6028 for naked functions.
6029 (thumb1_expand_prologue): Likewise.
6031 2016-05-20 Nathan Sidwell <nathan@acm.org>
6033 * config/nvptx/nptx.c (nvptx_option_override): Only set
6034 flag_toplevel_reorder, if not explicitly specified. Set
6035 flag_no_common, unless explicitly specified.
6037 2016-05-20 David Malcolm <dmalcolm@redhat.com>
6039 * calls.c (can_implement_as_sibling_call_p): Mark param
6040 reg_parm_stack_space with ATTRIBUTE_UNUSED.
6042 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
6044 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
6045 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
6046 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
6048 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
6049 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
6052 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
6054 * config/nvptx/nvptx.md (sincossf3): New pattern.
6056 2016-05-20 David Malcolm <dmalcolm@redhat.com>
6058 * calls.c (maybe_complain_about_tail_call): New function.
6059 (initialize_argument_information): Call
6060 maybe_complain_about_tail_call when clearing *may_tailcall.
6061 (can_implement_as_sibling_call_p): Call
6062 maybe_complain_about_tail_call when returning false.
6063 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
6064 ensure try_tail_call is set. Call maybe_complain_about_tail_call
6065 if tail-call optimization fails.
6066 * cfgexpand.c (expand_call_stmt): Initialize
6067 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
6068 * gimple-pretty-print.c (dump_gimple_call): Dump
6069 gimple_call_must_tail_p.
6070 * gimple.c (gimple_build_call_from_tree): Call
6071 gimple_call_set_must_tail with the value of
6072 CALL_EXPR_MUST_TAIL_CALL.
6073 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
6074 (gimple_call_set_must_tail): New function.
6075 (gimple_call_must_tail_p): New function.
6076 * print-tree.c (print_node): Update printing of TREE_STATIC
6077 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
6078 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
6079 trailing comment listing applicable flags.
6080 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
6082 2016-05-20 David Malcolm <dmalcolm@redhat.com>
6084 * calls.c (expand_call): Move "Rest of purposes for tail call
6085 optimizations to fail" to...
6086 (can_implement_as_sibling_call_p): ...this new function, and
6087 split into multiple "if" statements.
6089 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
6091 * cfgloop.h (expected_loop_iterations_unbounded,
6092 expected_loop_iterations): Unconstify.
6093 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
6094 profile with known upper bound; return 3 when profile is absent.
6095 (expected_loop_iterations): Update.
6097 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
6099 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
6100 and get_max_loop_iterations_int.
6102 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
6104 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
6105 realistic upper bounds here.
6107 2016-05-20 Jakub Jelinek <jakub@redhat.com>
6110 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
6111 calls if the LHS is variable length or has addressable type.
6112 If targets[0]->decl is a noreturn call with void return type and
6113 zero arguments, adjust fntype and remove lhs in that case.
6115 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
6117 PR tree-optimization/71079
6118 PR tree-optimization/71206
6119 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
6121 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6123 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
6124 (get_vec_alignment_for_array_decl): Likewise.
6125 (get_vec_alignment_for_record_decl): Likewise.
6126 (increase_alignment::execute): Move code to find alignment to
6127 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
6128 (type_align_map): New hash_map.
6130 2016-05-20 Richard Guenther <rguenther@suse.de>
6132 PR tree-optimization/29756
6133 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
6134 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
6135 * fold-const.c (operand_equal_p): Likewise.
6136 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
6137 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
6138 * tree-inline.c (estimate_operator_cost): Likewise.
6139 * tree-pretty-print.c (dump_generic_node): Likewise.
6140 * tree-ssa-operands.c (get_expr_operands): Likewise.
6141 * cfgexpand.c (expand_debug_expr): Likewise.
6142 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
6143 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
6144 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
6145 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
6146 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
6147 (execute_update_addresses_taken): Do it.
6149 2016-05-20 Richard Biener <rguenther@suse.de>
6151 PR tree-optimization/71185
6152 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
6153 register operations.
6155 2016-05-20 Richard Biener <rguenther@suse.de>
6157 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
6158 gimple_seq_add_seq_without_update.
6159 (release_bb_predicate): Assert we have no operands to free.
6160 (if_convertible_loop_p_1): Calculate post dominators later.
6161 Do not free BB predicates here.
6162 (combine_blocks): Do not recompute BB predicates.
6163 (version_loop_for_if_conversion): Save BB predicates around
6166 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
6168 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
6169 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
6170 code. Ignore sibcalls on EDGE_IGNORE edges.
6171 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
6172 on edges for sibcalls that run without prologue. The rest of the
6173 function is combined from...
6174 (fix_fake_fallthrough_edge): ... this, and ...
6175 (try_shrink_wrapping): ... a part of this. Remove the bb_with
6176 function argument, make it a local variable.
6178 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
6180 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
6181 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
6182 for 32-bit mode and SEH for 64-bit.
6183 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
6184 TARGET_64BIT_DEFAULT.
6186 2016-05-19 Ryan Burn <contact@rnburn.com>
6188 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
6189 * gengtype.c (open_base_files): Add cilk.h to ifiles.
6191 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
6193 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
6194 force pending loads from memory.
6196 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
6198 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
6199 (UNSPEC_DARN_32): New unspec constant.
6200 (UNSPEC_DARN_RAW): New unspec constant.
6201 (darn_32): New instruction.
6202 (darn_raw): New instruction.
6203 (darn): New instruction.
6204 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
6205 support and documentation for this macro.
6206 (BU_P9_MISC_1): New macro definition.
6207 (BU_P9_64BIT_MISC_0): New macro definition.
6208 (BU_P9_MISC_0): New macro definition.
6209 (darn_32): New builtin definition.
6210 (darn_raw): New builtin definition.
6211 (darn): New builtin definition.
6212 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
6213 RS6000_BUILTIN_0 directives to surround each occurrence of
6214 #include "rs6000-builtin.def".
6215 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
6216 RS6000_BTM_64BIT flags to the returned mask, depending on
6218 (def_builtin): Correct an error in the assignments made to the
6219 debugging variable attr_string.
6220 (rs6000_expand_builtin): Add support for no-operand built-in
6222 (builtin_function_type): Remove fatal_error assertion that is no
6224 (rs6000_common_init_builtins): Add support for no-operand built-in
6226 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
6228 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
6230 (RS6000_BTM_64BIT): New macro definition.
6231 * doc/extend.texi: Document __builtin_darn (void),
6232 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
6235 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
6237 * tree-vect-loop.c (vect_analyze_loop_2): Use also
6238 max_loop_iterations_int.
6240 2016-05-19 Marek Polacek <polacek@redhat.com>
6242 PR tree-optimization/71031
6243 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
6244 condition and adjust the code a bit.
6246 2016-05-19 Martin Liska <mliska@suse.cz>
6248 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
6249 auto_vec instead of vec.
6251 2016-05-19 Martin Liska <mliska@suse.cz>
6253 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
6255 2016-05-19 Martin Liska <mliska@suse.cz>
6257 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
6259 2016-05-19 Martin Liska <mliska@suse.cz>
6261 * ipa-pure-const.c (set_function_state): Remove an existing
6263 (remove_node_data): Do not free it as it's released
6264 in set_function_state.
6266 2016-05-19 Martin Liska <mliska@suse.cz>
6268 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
6271 2016-05-19 Martin Liska <mliska@suse.cz>
6273 * omp-simd-clone.c (simd_clone_adjust): Release vector.
6275 2016-05-19 Martin Liska <mliska@suse.cz>
6277 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
6278 an auto_vec instead of re-creating it.
6280 2016-05-19 Martin Liska <mliska@suse.cz>
6282 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
6283 auto_vec instead of vec.
6285 2016-05-19 Martin Liska <mliska@suse.cz>
6287 * lto-section-in.c (lto_get_section_data): Call
6288 lto_check_version with additional argument.
6289 * lto-streamer.c (lto_check_version): Add new argument.
6290 * lto-streamer.h (lto_check_version): Likewise.
6292 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6294 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
6295 Don't add cost of inner memory when handling sign-extended loads.
6297 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
6299 PR rtl-optimization/71148
6300 * cse.c (cse_main): Free dominance info.
6301 (rest_of_handle_cse): Don't free dominance info.
6302 (rest_of_handle_cse2): Likewise.
6303 (rest_of_handle_cse_after_global_opts): Likewise.
6305 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6308 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
6309 NULL_TREE early if NEON is not available. Remove now redundant check
6310 in ARM_CHECK_BUILTIN_MODE.
6312 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
6315 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
6316 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
6317 * doc/cpp.texi: Document new macros.
6319 2016-05-19 Bin Cheng <bin.cheng@arm.com>
6321 PR tree-optimization/69848
6322 * tree-vect-loop.c (vectorizable_reduction): Don't factor
6323 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
6325 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
6327 * function.c (thread_prologue_and_epilogue_insn): Move the
6328 "goto epilogue_done" one block later.
6330 2016-05-19 Richard Biener <rguenther@suse.de>
6332 PR tree-optimization/70729
6333 * passes.def: Move LIM pass before PRE. Remove no longer
6334 required copyprop and move first DCE out of the loop pipeline.
6336 2016-05-18 David Malcolm <dmalcolm@redhat.com>
6339 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
6340 (OBJS-libcommon-target): ...here.
6341 * opts-common.c: Include spellcheck.h.
6342 (cmdline_handle_error): Build a vec of valid options and use it
6343 to suggest provide hints for misspelled arguments.
6345 2016-05-18 Jakub Jelinek <jakub@redhat.com>
6348 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
6349 lhs if it has TREE_ADDRESSABLE type.
6351 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
6354 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
6355 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
6357 2016-05-18 Martin Jambor <mjambor@suse.cz>
6360 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
6361 input for NOP_EXPR pass-through functions.
6362 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
6363 aggregate global constant VAR_DECLs in constant jump functions.
6365 2016-05-18 Martin Jambor <mjambor@suse.cz>
6368 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
6369 from TREE_READONLY parameters.
6371 2016-05-18 Martin Jambor <mjambor@suse.cz>
6374 * cgraph.h (cgraph_indirect_call_info): New field
6375 guaranteed_unmodified.
6376 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
6377 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
6379 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
6380 pass the parameter value to ipa_find_agg_cst_for_param.
6381 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
6382 guaranteed_unmodified, store AA results there instead of bailing out
6384 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
6385 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
6386 (find_constructor_constant_at_offset): New function.
6387 (ipa_find_agg_cst_from_init): Likewise.
6388 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
6389 static initializers of contants, report back through a new paameter
6390 from_global_constant if that was the case.
6391 (try_make_edge_direct_simple_call): Also pass parameter value to
6392 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
6394 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
6395 (ipa_read_indirect_edge_info): Likewise.
6396 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
6397 (ipa_load_from_parm_agg): Likewise.
6399 2016-05-18 Jiong Wang <jiong.wang@arm.com>
6401 PR rtl-optimization/71150
6402 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
6405 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6408 * config/rs6000/constraints.md (wE constraint): New constraint
6409 for a vector constant that can be loaded with XXSPLTIB.
6410 (wM constraint): New constraint for a vector constant of a 1's.
6411 (wS constraint): New constraint for a vector constant that can be
6412 loaded with XXSPLTIB and a vector sign extend instruction.
6413 * config/rs6000/predicates.md (xxspltib_constant_split): New
6414 predicates for wE/wS constraints.
6415 (xxspltib_constant_nosplit): Likewise.
6416 (easy_vector_constant): Add support for constants that can be
6417 loaded via XXSPLTIB.
6418 (all_ones_constant): New predicate for vector constant with all
6420 (splat_input_operand): Add support for ISA 3.0 word splat operations.
6421 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
6422 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
6423 instruction and possibly with a sign extension.
6424 (output_vec_const_move): Add support for XXSPLTIB. If we are
6425 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
6426 instead of XXLXOR/XXLORC.
6427 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
6429 (rs6000_legitimize_reload_address): Likewise.
6430 (rs6000_output_move_128bit): Use output_vec_const_move to emit
6432 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
6433 combine VSX_M and VSX_M2 into one iterator.
6435 (VSINT_84): New iterators for loading constants with XXSPLTIB.
6436 (VSINT_842): Likewise.
6437 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
6438 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
6439 XXSPLTIB instruction.
6440 (xxspltib_<mode>_nosplit): Likewise.
6441 (xxspltib_<mode>_split): New insn to load up constants with
6442 XXSPLTIB and a sign extend instruction.
6443 (vsx_mov<mode>): Replace single move that handled all vector types
6444 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
6445 moves (when -mvsx-timode is in effect) into the main vector
6446 moves. Eliminate separate moves for <VSr> <VSa>, where the
6447 preferred register class (<VSr>) is listed first, and the
6448 secondary register class (<VSa>) is listed second with a '?' to
6449 discourage use. Prefer loading 0/-1 in any VSX register for ISA
6450 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
6451 that if the register was involved in a slow operation, the
6452 clear/set operation does not wait for the slow operation to
6453 finish. Adjust the length attributes for 32-bit mode. Use
6454 rs6000_output_move_128bit and drop the use of the string
6455 instructions for 32-bit movti when -mvsx-timode is in effect. Use
6456 spacing so that the alternatives and attributes don't generate
6457 long lines, and put things in columns, so that it is easier to
6458 match up the operands and attributes with the insn alternatives.
6459 (vsx_mov<mode>_64bit): Likewise.
6460 (vsx_mov<mode>_32bit): Likewise.
6461 (vsx_movti_64bit): Fold movti into normal vector moves.
6462 (vsx_movti_32bit): Likewise.
6463 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
6465 (vsx_splat_v4si_internal): Likewise.
6466 (vsx_splat_v4sf_internal): Likewise.
6467 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
6468 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
6469 extend vector elements.
6470 (vsx_sign_extend_hi_<mode>): Likewise.
6471 (vsx_sign_extend_si_v2di): Likewise.
6472 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
6474 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
6475 constraints. Add trailing period to wL documentation.
6477 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
6480 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
6481 * tree-dfa.c (replace_abnormal_ssa_names): New function.
6482 * tree-call-cdce.c: Include tree-dfa.h.
6483 (can_guard_call_p): New function, extracted from...
6484 (can_use_internal_fn): ...here.
6485 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
6487 (shrink_wrap_one_built_in_call): Likewise.
6488 (use_internal_fn): Likewise.
6489 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
6490 and return void. Call replace_abnormal_ssa_names.
6491 (pass_call_cdce::execute): Check can_guard_call_p during the
6492 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
6493 will always change something.
6495 2016-05-18 Martin Jambor <mjambor@suse.cz>
6498 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
6499 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
6501 2016-05-18 Martin Jambor <mjambor@suse.cz>
6504 * ipa-inline.h (condition): New field size.
6505 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
6506 for comaprison and store it into the new condition.
6507 (evaluate_conditions_for_known_args): Use condition size to check
6508 access sizes for all but CHANGED conditions.
6509 (unmodified_parm_1): New parameter size_p, store access size into it.
6510 (unmodified_parm): Likewise.
6511 (unmodified_parm_or_parm_agg_item): Likewise.
6512 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
6513 (set_cond_stmt_execution_predicate): Extract access sizes and store
6515 (set_switch_stmt_execution_predicate): Likewise.
6516 (will_be_nonconstant_expr_predicate): Likewise.
6517 (will_be_nonconstant_predicate): Likewise.
6518 (inline_read_section): Stream condition size.
6519 (inline_write_summary): Likewise.
6521 2016-05-18 Richard Biener <rguenther@suse.de>
6523 * tree-ssa-loop-im.c (determine_max_movement): Properly add
6524 condition cost to PHI cost instead of total_cost.
6526 2016-05-18 Martin Liska <mliska@suse.cz>
6529 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
6532 2016-05-18 Richard Biener <rguenther@suse.de>
6534 * lto-streamer.h (LTO_major_version): Bump to 6.
6536 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
6538 * function.c (make_split_prologue_seq, make_prologue_seq,
6539 make_epilogue_seq): New functions, factored out from...
6540 (thread_prologue_and_epilogue_insns): Here.
6542 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
6544 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
6545 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
6546 of before. Add a comment.
6548 2016-05-18 Bin Cheng <bin.cheng@arm.com>
6550 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
6551 expression pointer, not pointer to the pointer.
6553 2016-05-18 Jakub Jelinek <jakub@redhat.com>
6555 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
6556 (avx2_pbroadcast<mode>): Add another alternative with v instead
6557 of x constraints in it, using <pbroadcast_evex_isa> isa.
6558 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
6560 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
6561 constraint x instead of v in second alternative, add avx512bw
6564 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
6565 constraint x instead of v in second alternative, add avx512bw
6568 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
6569 constraint x instead of v in second alternative, add avx512bw
6572 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
6573 avx512bw alternative.
6575 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
6577 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
6579 (define_insn "*andnottf3"): Ditto.
6580 (define_insn "*<code><mode>3"/any_logic): Ditto.
6581 (define_insn "*<code>tf3"/any_logic): Ditto.
6582 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
6583 operand to block AVX-512VL insn variant emit when it is not enabled.
6585 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
6587 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
6588 constraint fot SF mode.
6590 2016-05-18 Petr Murzin <petr.murzin@intel.com>
6591 Kirill Yukhin <kirill.yukhin@intel.com>
6593 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
6595 (define_insn "rsqrt14<mode>"): Ditto.
6596 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
6597 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
6598 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
6599 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
6600 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
6602 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
6603 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
6604 * config/i386/i386.c (ix86_print_operand): Expand check for size
6605 override codes for Intel syntax.
6607 2016-05-18 Richard Biener <rguenther@suse.de>
6609 PR tree-optimization/71168
6610 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
6611 initialization earlier.
6613 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
6615 * config/aarch64/aarch64-simd.md
6616 (aarch64_reduc_plus_internal<mode>): Rename to...
6617 (reduc_plus_scal): ...This, and remove previous implementation.
6619 2016-05-18 Richard Biener <rguenther@suse.de>
6621 * passes.def: Put late dse and cd_dce in canonical order.
6623 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
6625 * ipa-inline-transform.c (preserve_function_body_p): Look for
6626 first non-thunk clone.
6627 (save_function_body): Save into first non-thunk.
6628 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
6630 (lto_output_node): Inline thunks don't need body in every
6632 * lto-streamer-in.c: Do not fixup thunk clones.
6633 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
6635 * tree-inline.c (copy_bb): Be prepared for target node to be new after
6638 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
6641 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
6642 (reassociate_bb): Call transform_add_to_multiply.
6644 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
6646 * config/aarch64/aarch64.c (all_extensions): Removed unused
6649 2016-05-17 Nathan Sidwell <nathan@acm.org>
6651 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
6652 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
6654 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
6656 PR tree-optimization/54579
6658 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
6660 2016-05-17 Marek Polacek <polacek@redhat.com>
6663 * tree-inline.c (expand_call_inline): Call
6664 maybe_remove_unused_call_args.
6666 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
6668 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
6669 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
6670 * doc/md.texi (fmin@var{m}3): Likewise.
6672 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
6674 * match.pd (X & C): New transformation.
6676 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
6678 * match.pd (~X & Y): New transformation.
6680 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
6682 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
6683 information for new SSA_NAME.
6684 (simplify_conversion_using_ranges): Get range through get_range_info
6685 instead of get_value_range.
6687 2016-05-17 Jiong Wang <jiong.wang@arm.com>
6689 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
6690 Remove inline assembly.
6691 (vmvn_s16): Likewise.
6692 (vmvn_s32): Likewise.
6693 (vmvn_u8): Likewise.
6694 (vmvn_u16): Likewise.
6695 (vmvn_u32): Likewise.
6696 (vmvnq_s8): Likewise.
6697 (vmvnq_s16): Likewise.
6698 (vmvnq_s32): Likewise.
6699 (vmvnq_u8): Likewise.
6700 (vmvnq_u16): Likewise.
6701 (vmvnq_u32): Likewise.
6702 (vmvn_p8): Likewise.
6703 (vmvnq_p16): Likewise.
6705 2016-05-17 Jiong Wang <jiong.wang@arm.com>
6707 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
6709 (vmul_n_s16): Likewise.
6710 (vmul_n_s32): Likewise.
6711 (vmul_n_u16): Likewise.
6712 (vmul_n_u32): Likewise.
6713 (vmulq_n_f32): Likewise.
6714 (vmulq_n_f64): Likewise.
6715 (vmulq_n_s16): Likewise.
6716 (vmulq_n_s32): Likewise.
6717 (vmulq_n_u16): Likewise.
6718 (vmulq_n_u32): Likewise.
6720 2016-05-17 Jiong Wang <jiong.wang@arm.com>
6722 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
6723 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
6725 2016-05-17 Jiong Wang <jiong.wang@arm.com>
6727 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
6728 to *aarch64_fma4_elt_from_dup<mode>.
6729 (*aarch64_fnma4_elt_to_128df): Rename to
6730 *aarch64_fnma4_elt_from_dup<mode>.
6731 * config/aarch64/arm_neon.h (vfma_n_f64): New.
6732 (vfms_n_f32): Likewise.
6733 (vfms_n_f64): Likewise.
6734 (vfmsq_n_f32): Likewise.
6735 (vfmsq_n_f64): Likewise.
6737 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
6739 * wide-int.h: Change fixed_wide_int_storage from class to struct.
6741 2016-05-17 Richard Biener <rguenther@suse.de>
6743 PR tree-optimization/71132
6744 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
6745 Only add control dependences for blocks in the loop.
6746 (build_rdg): Adjust.
6747 (generate_code_for_partition): Return whether loop should
6748 be destroyed and delay that.
6749 (distribute_loop): Likewise.
6750 (pass_loop_distribution::execute): Record loops to be destroyed
6751 and perform delayed destroying of loops.
6753 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6756 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
6758 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
6760 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
6762 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
6765 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
6766 insertion point for instructions generated by validize_mem.
6768 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
6770 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
6773 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
6775 * config/aarch64/aarch64.c
6776 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
6777 rather than a macro.
6779 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
6781 * doc/invoke.texi (AArch64 Options): Various updates.
6783 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
6785 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
6786 into instrumentation thunks.
6787 * cif-code.def (CIF_CHKP): New.
6789 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
6791 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
6793 2016-05-16 Martin Jambor <mjambor@suse.cz>
6795 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
6796 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
6798 2016-05-16 Marek Polacek <polacek@redhat.com>
6800 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
6803 2016-05-16 Martin Jambor <mjambor@suse.cz>
6806 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
6807 the outlined kernel function.
6809 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
6811 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
6812 (ISA_HAS_DLSA): Ditto.
6814 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
6816 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
6818 2016-05-16 Nathan Sidwell <nathan@acm.org>
6820 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
6821 (nvptx_name_replacement): Restore. Add comment.
6822 (write_fn_proto, write_fn_proto_from_insn,
6823 nvptx_output_call_insn): Restore
6824 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
6826 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
6828 * config/aarch64/aarch64.md
6829 (add<mode>3_compareC_cconly_imm): Remove use of %w.
6830 (add<mode>3_compareC_imm): Likewise.
6831 (<optab>si3_uxtw): Split into register and immediate variants.
6832 (andsi3_compare0_uxtw): Likewise.
6833 (and<mode>3_compare0): Likewise.
6834 (and<mode>3nr_compare0): Likewise.
6835 (stack_protect_test_<mode>): Don't use %x for memory operands.
6837 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
6839 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
6841 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
6843 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
6844 Split integer shifts into shift_reg and bfm.
6845 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
6846 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
6847 (ror<mode>3_insn): Likewise.
6848 (<optab>si3_insn_uxtw): Likewise.
6849 (<optab><mode>3_insn): Change to rotate_imm.
6850 (extr<mode>5_insn_alt): Likewise.
6851 (extrsi5_insn_uxtw): Likewise.
6852 (extrsi5_insn_uxtw_alt): Likewise.
6854 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
6856 * doc/tm.texi: Regenerate.
6857 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
6858 (TARGET_INVALID_RETURN_TYPE): Remove.
6859 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
6860 TARGET_INVALID_RETURN_TYPE.
6861 * target.def (invalid_parameter_type): Remove.
6862 (invalid_return_type): Remove.
6864 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
6866 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
6867 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
6869 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
6871 (preserve_function_body_p): No need to preserve function body
6872 * cif-codes.def (CIF_THUNK): Remove.
6873 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
6875 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
6877 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
6879 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
6881 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
6884 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
6886 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
6887 (inline_small_functions): Do not look for function symbol when
6890 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
6892 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
6895 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
6896 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6897 Jiong Wang <jiong.wang@arm.com>
6899 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
6900 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
6901 Define __ARM_FP16_ARGS when appropriate.
6902 * config/arm/arm.c (arm_invalid_parameter_type): Remove
6904 (arm_invalid_return_type): Likewise.
6905 (TARGET_INVALID_PARAMETER_TYPE): Remove.
6906 (TARGET_INVALID_RETURN_TYPE): Remove.
6907 (aapcs_vfp_sub_candidate): Allow HFmode.
6908 (aapcs_vfp_allocate): Add comment. Support HFmode.
6909 (aapcs_vfp_allocate_return_reg): Likewise.
6910 (struct aapcs_cp_arg_layout): Slightly reword comments for
6911 is_return_candidate and allocate_return_reg.
6912 (output_mov_vfp): Update assert.
6913 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
6915 (arm_invalid_parameter_type): Remove.
6916 (amr_invalid_return_type): Remove.
6917 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
6918 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
6919 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
6921 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
6923 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
6924 * config/aarch64/arch64-protos.h
6925 (aarch64_legitimize_reload_address): Remove.
6926 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
6929 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
6931 * configure.ac: Add ACX_NONCANONICAL_HOST.
6932 * configure: Regenerate.
6933 * Makefile.in: Set host_noncanonical.
6935 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
6938 * config/i386/i386.md (*movtf_internal): Before register allocation,
6939 do not allow FP constants for CM_MEDIUM memory model, allow only
6940 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
6941 (*movxf_internal): Ditto.
6942 (*movdf_internal): Ditto.
6943 (*movsf_internal): Ditto.
6945 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
6947 PR rtl-optimization/67483
6948 * combine.c (make_compound_operation): Don't call extract_left_shift
6949 with negative shift amounts.
6951 2016-05-13 Jakub Jelinek <jakub@redhat.com>
6954 * fold-const.c (fold_checksum_tree): Allow modification
6955 of TYPE_ALIAS_SET during folding.
6957 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
6958 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
6959 (ix86_split_to_parts): Likewise. Fix up formatting.
6961 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
6963 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
6964 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
6967 2016-05-13 Nathan Sidwell <nathan@acm.org>
6969 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
6970 (nvptx_name_replacement): Delete.
6971 (write_fn_proto, write_fn_proto_from_insn,
6972 nvptx_output_call_insn): Remove nvptx_name_replacement call.
6973 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
6974 * langhooks.c (add_builtin_funcction_common): Call
6975 targetm.mangle_decl_assembler_name.
6977 * config/nvptx/nvptx.c (write_fn_proto): Handle
6978 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
6980 2016-05-13 Martin Liska <mliska@suse.cz>
6982 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
6983 and PRIu64 in printf format.
6985 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6987 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
6990 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6992 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
6993 Change --param max-completely-peeled-times to
6994 --param max-completely-peel-times in dump file printing.
6996 2016-05-13 Richard Biener <rguenther@suse.de>
6998 PR tree-optimization/42587
6999 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
7000 (find_bswap_or_nop_1): Likewise.
7001 (bswap_replace): Likewise.
7003 2016-05-13 Martin Liska <mliska@suse.cz>
7005 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
7006 Initialize a variable with default value.
7008 2016-05-13 Martin Liska <mliska@suse.cz>
7010 * doc/invoke.texi: Enhance explanation of error recovery
7013 2016-05-13 Martin Liska <mliska@suse.cz>
7015 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
7016 (struct cost_pair): Change inv_expr_id (int) to inv_expr
7017 (iv_inv_expr_ent *).
7018 (struct iv_inv_expr_ent): Comment struct fields.
7019 (sort_iv_inv_expr_ent): New function.
7020 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
7021 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
7022 a hash_map between iv_inv_expr_ent and number of usages.
7023 (niter_for_exit): Fix coding style.
7024 (tree_ssa_iv_optimize_init): Use renamed variable.
7025 (determine_base_object): Fix coding style.
7026 (alloc_iv): Likewise.
7027 (find_interesting_uses_outside): Likewise.
7028 (add_candidate_1): Likewise.
7029 (add_standard_iv_candidates): Likewise.
7030 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
7031 (prepare_decl_rtl): Fix coding style.
7032 (get_address_cost): Likewise.
7033 (get_shiftadd_cost): Likewise.
7034 (force_expr_to_var_cost): Likewise.
7035 (compare_aff_trees): Likewise.
7036 (get_expr_id): Restructure the function.
7037 (get_loop_invariant_expr_id): Renamed to
7038 get_loop_invariant_expr.
7039 (get_computation_cost_at): Replace usage of inv_expr_id with
7041 (get_computation_cost): Likewise.
7042 (determine_group_iv_cost_generic): Likewise.
7043 (determine_group_iv_cost_address): Likewise.
7044 (iv_period): Fix coding style.
7045 (iv_elimination_compare_lt): Likewise.
7046 (may_eliminate_iv): Likewise.
7047 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
7049 (determine_group_iv_costs): Dump invariant expressions.
7050 (iv_ca_recount_cost): Use the newly added hash_map.
7051 (iv_ca_set_remove_invariants): Fix coding style.
7052 (iv_ca_set_add_invariants): Fix coding style.
7053 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
7055 (iv_ca_set_cp): Likewise.
7056 (iv_ca_new): Initialize the newly added hash_map and remove
7057 initialization of fields.
7058 (iv_ca_free): Delete the hash_map.
7059 (iv_ca_dump): Dump invariant expressions.
7060 (iv_ca_extend): Fix coding style.
7061 (try_add_cand_for): Likewise.
7062 (create_new_ivs): Dump information about # of avg iterations and
7063 # of used invariant expressions.
7064 (rewrite_use_compare): Fix coding style.
7065 (free_loop_data): Set default value for max_inv_expr_id.
7067 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
7069 * cse.c (rest_of_handle_cse): Use cleanup_cfg
7070 returned value cse_cfg_altered computation.
7071 (rest_of_handle_cse2): Likewise.
7072 (rest_of_handle_cse_after_global_opts): Likewise.
7074 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7077 * config/arm/arm.c (arm32_output_mi_thunk): New.
7078 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
7079 to split Thumb1 vs TARGET_32BIT functionality.
7080 (arm_thumb1_mi_thunk): New.
7082 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7084 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
7087 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7090 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
7092 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
7094 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
7095 (expand_builtin_trap): Emit a regular call.
7096 (set_builtin_user_assembler_name): Remove obsolete cases.
7097 * dse.c (scan_insn): Adjust.
7098 * except.c: Include calls.h.
7099 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
7100 emit a regular call to setjmp.
7101 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
7102 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
7103 (emit_block_move_via_libcall): Delete.
7104 (block_move_fn): Delete.
7105 (init_block_move_fn): Likewise.
7106 (emit_block_move_libcall_fn): Likewise.
7107 (emit_block_op_via_libcall): New function.
7108 (set_storage_via_libcall): Tidy up and use memset builtin.
7109 (block_clear_fn): Delete.
7110 (init_block_clear_fn): Likewise.
7111 (clear_storage_libcall_fn): Likewise.
7112 (expand_assignment): Call emit_block_move_via_libcall.
7113 Do not include gt-expr.h.
7114 * expr.h (emit_block_op_via_libcall): Declare.
7115 (emit_block_copy_via_libcall): New inline function.
7116 (emit_block_move_via_libcall): Likewise.
7117 (emit_block_comp_via_libcall): Likewise.
7118 (block_clear_fn): Delete.
7119 (init_block_move_fn): Likewise.
7120 (init_block_clear_fn): Likewise.
7121 (emit_block_move_via_libcall): Likewise.
7122 (set_storage_via_libcall): Add default parameter value.
7123 * libfuncs.h (enum libfunc_index): Remove obsolete values.
7124 (abort_libfunc): Delete.
7125 (memcpy_libfunc): Likewise.
7126 (memmove_libfunc): Likewise.
7127 (memcmp_libfunc): Likewise.
7128 (memset_libfunc): Likewise.
7129 (setbits_libfunc): Likewise.
7130 (setjmp_libfunc): Likewise.
7131 (longjmp_libfunc): Likewise.
7132 (profile_function_entry_libfunc): Likewise.
7133 (profile_function_exit_libfunc): Likewise.
7134 (gcov_flush_libfunc): Likewise.
7135 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
7136 and DECL_VISIBILITY on the declaration.
7137 (init_optabs): Do not initialize obsolete libfuncs.
7138 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
7139 * tree-core.h (ECF_RET1): Define.
7140 (ECF_TM_PURE): Adjust.
7141 (ECF_TM_BUILTIN): Likewise.
7142 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
7143 (build_common_builtin_nodes): Initialize abort builtin.
7144 Add ECF_RET1 on memcpy, memmove and memset builtins.
7145 Pass final flags for alloca and alloca_with_align builtins.
7146 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
7148 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
7149 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
7150 set_storage_via_libcall and call emit_block_copy_via_libcall.
7152 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
7154 * config/i386/i386.md (*call_got_x32): Change operand 0 to
7155 DImode before it is passed to ix86_output_call_operand.
7156 (*call_value_got_x32): Ditto for operand 1.
7158 2016-05-12 Jiong Wang <jiong.wang@arm.com>
7160 PR rtl-optimization/70904
7161 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
7162 reload for wide mode.
7164 2016-05-12 Marek Polacek <polacek@redhat.com>
7167 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
7168 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
7169 * langhooks.h (incomplete_type_error): Likewise.
7170 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
7171 parameter, pass it down to incomplete_type_error.
7172 * tree.h (size_in_bytes): New inline overload.
7173 (size_in_bytes_loc): Renamed from size_in_bytes.
7175 2016-05-12 Richard Biener <rguenther@suse.de>
7177 PR tree-optimization/71059
7178 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
7179 nary before looking up or entering the expression into the VN
7181 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
7182 Make sure to re-use NARYs without result as inserted by
7185 2016-05-12 Richard Biener <rguenther@suse.de>
7187 PR tree-optimization/71062
7188 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
7190 * tree-ssa-structalias.c (set_uids_in_ptset): Set
7191 vars_contains_restrict if the var is a restrict tag.
7192 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
7193 do not disambiguate pointers against it.
7194 (dump_points_to_solution): Re-structure and adjust for new
7195 vars_contains_restrict flag.
7196 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
7198 2016-05-12 Martin Liska <mliska@suse.cz>
7200 * doc/invoke.texi: Explain connection between
7201 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
7203 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
7205 PR tree-optimization/71006
7206 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
7207 consider COND_EXPR as a mask producer.
7209 2016-05-12 Marek Polacek <polacek@redhat.com>
7212 * opts.c (common_handle_option): Detect missing argument for --help^.
7214 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7217 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
7218 when popping the PC and within an interrupt handler routine.
7219 Add missing tab to output of "ldmfd".
7220 (output_return_instruction): Output LDMFD with SP update rather
7221 than POP when returning from interrupt handler.
7223 2016-05-12 Jakub Jelinek <jakub@redhat.com>
7225 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
7226 TARGET_64BIT && TARGET_AVX512DQ.
7227 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
7228 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
7229 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
7230 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
7231 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
7232 (*vec_extractv4si_zext): Add avx512dq alternative.
7233 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
7234 use v instead of x constraint in other alternatives where possible.
7236 * config/i386/sse.md (sse2_loadld): Use v instead of x
7237 constraint in alternatives 0,1,4.
7239 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
7240 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
7241 v constraints instead of x and <pinsr_evex_isa> isa attribute.
7244 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
7245 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
7246 is not emitted unless TARGET_AVX512BW.
7247 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
7248 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
7249 for the result operand.
7251 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
7252 constraint instead of x in avx alternatives. Use maybe_evex instead
7255 * config/i386/constraints.md (Yv): New constraint.
7256 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
7257 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
7258 * config/i386/i386.md (avx512fvecmode): New mode attr.
7259 (*pushtf): Use v constraint instead of x.
7260 (*movtf_internal): Likewise. For TARGET_AVX512VL and
7261 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
7262 (*absneg<mode>2): Use Yv constraint instead of x constraint.
7263 (*absnegtf2_sse): Likewise.
7264 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
7265 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
7266 avx512f alternatives.
7267 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
7269 2016-05-12 Richard Biener <rguenther@suse.de>
7271 PR tree-optimization/71060
7272 * tree-data-ref.c (initialize_data_dependence_relation): Do not
7273 require exact match of DR_BASE_OBJECT but only matching address and
7276 2016-05-12 Richard Biener <rguenther@suse.de>
7278 PR tree-optimization/70986
7279 * cfganal.c: Include cfgloop.h.
7280 (dfs_find_deadend): Prefer to take edges exiting loops.
7282 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7284 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
7285 compile and run time.
7287 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
7290 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
7292 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
7294 * config/i386/i386.c (legitimize_pic_address): Use
7295 copy_to_suggested_reg instead of gen_movsi.
7297 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7299 * config/rs6000/predicates.md (quad_memory_operand): Move most of
7300 the code into quad_address_p and call it to share code with
7301 vsx_quad_dform_memory_operand.
7302 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
7304 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
7305 bit instead of being a separate word. Split -mpower9-dform into
7306 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
7307 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
7308 for the register class supporting 128-bit quad word memory offsets.
7309 (mode_supports_vsx_dform_quad): Helper function to return if the
7310 register class uses quad word memory offsets.
7311 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
7312 (rs6000_debug_reg_global): Always print if we are using LRA or not.
7313 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
7314 instructions are enabled, set up the appropriate addr_masks for
7316 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
7317 -mpower9-dform-scalar, instead of -mpower9-dform.
7318 (rs6000_option_override_internal): Split -mpower9-dform into two
7319 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
7320 -mpower9-dform switch sets or clears both. If we are not using
7321 the LRA register allocator, do not enable -mpower9-dform-vector by
7322 default. If we are using LRA, enable -mpower9-dform-vector and
7323 -mvsx-timode if it is appropriate. Issue a warning if either
7324 -mpower9-dform-vector or -mvsx-timode are explicitly used without
7326 (quad_address_offset_p): New helper function to return if the
7327 offset is legal for quad word memory instructions.
7328 (quad_address_p): New function to determin if GPR or vector
7329 register quad word memory addresses are legal.
7330 (mem_operand_gpr): Validate quad word address offsets.
7331 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
7332 d-form (register + offset) instructions.
7333 (offsettable_ok_by_alignment): Likewise.
7334 (rs6000_legitimate_offset_address_p): Likewise.
7335 (legitimate_lo_sum_address_p): Likewise.
7336 (rs6000_legitimize_address): Likewise.
7337 (rs6000_legitimize_reload_address): Add more debug statements for
7339 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
7340 d-form instructions.
7341 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
7342 d-form instructions. Distinguish different cases in debug
7343 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
7344 d-form instructions.
7345 (rs6000_preferred_reload_class): Likewise.
7346 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
7347 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
7348 of the ISA 2.06 indexed memory instructions.
7349 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
7350 use them to save/restore the saved vector registers instead of
7351 using Altivec instructions.
7352 (rs6000_emit_epilogue): Likewise.
7353 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
7354 (rs6000_opt_masks): Split -mpower9-dform into
7355 -mpower9-dform-scalar and -mpower9-dform-vector.
7356 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
7358 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
7359 ISA 3.0 vector indexed memory instructions, and fold the code into
7360 the normal mov<mode> patterns.
7361 (p9_vecstore_<mode>): Likewise.
7362 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
7364 (vsx_movti_64bit): Likewise.
7365 (vsx_movti_32bit): Likewise.
7366 * config/rs6000/constraints.md (wO constraint): New constraint for
7367 ISA 3.0 vector d-form support.
7368 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
7369 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
7370 include -mpower9-dform-vector until we switch over to LRA.
7371 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
7372 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
7373 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
7374 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
7375 for -mpower9-dform and -mlra.
7376 * doc/md.texi (wO constraint): Document wO constraint.
7378 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
7380 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
7381 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
7382 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
7383 Move handling of non-insn arguments inline into the sole user:
7384 (output_trans_func): ...here.
7385 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
7386 in emitted function prototype.
7387 (output_internal_insn_latency_func): Ditto. Simplify.
7388 (output_internal_maximal_insn_latency_func): Ditto. Delete
7389 always-unused argument.
7390 (output_insn_latency_func): Ditto.
7391 (output_maximal_insn_latency_func): Ditto.
7393 2016-05-11 Richard Biener <rguenther@suse.de>
7395 PR tree-optimization/71055
7396 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
7397 sth with precision not equal to access size verify we don't chop
7400 2016-05-11 Richard Biener <rguenther@suse.de>
7403 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
7404 (dwarf2out_finish): Move retry_incomplete_types call ...
7405 (dwarf2out_early_finish): ... here.
7407 2016-05-11 Richard Biener <rguenther@suse.de>
7410 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
7411 if the langhook insists on it.
7412 * fold-const.c (make_bit_field_ref): Add arg for the original
7413 reference and preserve its alias-set.
7414 (decode_field_reference): Take exp by reference and adjust it
7415 to the original memory reference.
7416 (optimize_bit_field_compare): Adjust callers.
7417 (fold_truth_andor_1): Likewise.
7418 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
7420 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
7423 * cfgrtl.h (delete_insn_and_edges): Now return bool.
7424 * cfgrtl.c (delete_insn_and_edges): Likewise.
7425 * config/i386/i386.c (convert_scalars_to_vector): Remove
7427 * cse.c (cse_insn): Compute cse_cfg_altered.
7428 (delete_trivially_dead_insns): Likewise.
7429 (cse_cc_succs): Likewise.
7430 (rest_of_handle_cse): Free dominance info if required.
7431 (rest_of_handle_cse2): Likewise.
7432 (rest_of_handle_cse_after_global_opts): Likewise.
7434 2016-05-11 Alan Modra <amodra@gmail.com>
7436 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
7437 abi_v4_pass_in_fpr): New functions.
7438 (rs6000_function_arg_boundary): Exclude complex IBM long double
7439 from 64-bit alignment when ABI_V4.
7440 (rs6000_function_arg, rs6000_function_arg_advance_1,
7441 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
7443 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
7445 PR rtl-optimization/71028
7446 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
7447 jump with just a return in the fallthrough block if the branch
7448 block contains just a return as well.
7450 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
7452 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
7453 * match.pd ((X & Y) ^ Y): ... this.
7454 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
7455 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
7457 2016-05-10 David Malcolm <dmalcolm@redhat.com>
7459 * read-md.c (require_char_ws): New function.
7460 (read_string): Simplify using require_char_ws.
7461 (handle_constants): Likewise.
7462 (handle_enum): Likewise.
7463 (handle_file): Likewise.
7464 * read-md.h (require_char_ws): New declaration.
7465 * read-rtl.c (read_conditions): Simplify using require_char_ws.
7466 (read_mapping): Likewise.
7467 (read_rtx_code): Likewise.
7468 (read_nested_rtx): Likewise.
7470 2016-05-10 James Norris <jnorris@codesourcery.com>
7472 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
7473 if offloading is enabled and -fopenacc or -fopenmp is specified.
7474 (CRTOFFLOADEND): Likewise.
7475 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
7476 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
7478 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
7480 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
7481 gotoff_operand code paths. Use copy_to_suggested_regs and
7482 expand_simple_binop where appropriate. Cleanup.
7484 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
7487 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
7489 (dimode_scalar_chain::vector_const_cost): New.
7490 (dimode_scalar_chain::compute_convert_gain): Handle constants.
7491 (dimode_scalar_chain::convert_op): Likewise.
7492 (dimode_scalar_chain::convert_insn): Likewise.
7494 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
7496 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
7497 unary operation, not a binary one.
7499 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
7502 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
7503 calls with type casted fndecl.
7505 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
7507 PR tree-optimization/70786
7508 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
7509 * calls.c (initialize_argument_information): Bind bounds
7510 with corresponding args passed by reference.
7512 2016-05-10 Jakub Jelinek <jakub@redhat.com>
7515 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
7516 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
7517 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
7520 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7523 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
7524 code for a zero scale factor.
7525 (vsx_xvcvdpuxds_scale): Likewise.
7527 2016-05-10 David Malcolm <dmalcolm@redhat.com>
7529 * diagnostic-show-locus.c (layout::layout): Call show_ruler
7530 if show_ruler_p was set on the context.
7531 (layout::show_ruler): New method.
7532 * diagnostic.h (struct diagnostic_context): Add field
7535 2016-05-10 Richard Biener <rguenther@suse.de>
7537 PR tree-optimization/71039
7538 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
7539 (chk_uses): New function.
7540 (propagate_with_phi): Verify we can safely replicate the lhs of an
7541 aggregate assignment on all incoming edges.
7543 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
7545 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
7547 (rx_atomic_sequence): New class.
7548 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
7549 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
7551 (rx_atomic_sequence::rx_atomic_sequence,
7552 rx_atomic_sequence::~rx_atomic_sequence): New functions.
7553 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
7554 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
7555 CTRLREG_INTB): New constants.
7556 (FETCHOP): New code iterator.
7557 (fethcop_name, fetchop_name2): New iterator code attributes.
7558 (QIHI): New mode iterator.
7559 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
7560 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
7561 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
7563 2016-05-10 Martin Liska <mliska@suse.cz>
7565 * tree-inline.c (remap_dependence_clique): Do not remap
7566 debugging statements.
7568 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7570 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
7571 ("*fixuns_truncdfdi2_z13")
7572 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
7573 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
7574 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
7576 2016-05-10 Richard Biener <rguenther@suse.de>
7578 PR tree-optimization/70497
7579 PR tree-optimization/28367
7580 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
7582 (visit_reference_op_load): ... here.
7583 (vn_reference_lookup_3): Use it to handle subreg-like accesses
7584 with simplified BIT_FIELD_REFs.
7585 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
7586 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
7589 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
7591 * dwarf2out.c (add_abstract_origin_attribute): Adjust
7592 documentation comment. For BLOCK nodes, add a
7593 DW_AT_abstract_origin attribute that points to the DIE generated
7594 for the origin BLOCK.
7595 (gen_lexical_block_die): Call add_abstract_origin_attribute for
7596 blocks from inlined functions.
7598 2016-05-10 Alan Modra <amodra@gmail.com>
7601 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
7602 regrename modifying insns saving lr before __morestack call.
7603 * config/rs6000/rs6000.md (split_stack_return): Similarly for
7604 insns restoring lr after __morestack call.
7606 2016-05-09 Jakub Jelinek <jakub@redhat.com>
7608 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
7609 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
7611 * config/i386/sse.md (vec_interleave_high<mode>,
7612 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
7613 <avx512>_vpermt2var<mode>3_maskz): Likewise.
7615 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
7617 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
7618 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
7619 parallel reassociation for power8 and forward.
7621 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
7623 * config/i386/i386.md (absneg splitters with general regs): Use
7624 general_reg_operand predicate.
7625 (btsq peephole2): Use x86_64_immediate_operand to check if new
7626 value is suitable for immediate operand. Generate emitted insn
7627 using RTL expressions.
7628 (btcq peephole2): Ditto.
7629 (btrq peephole2): Ditto. Generate correct immediate operand
7632 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
7634 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
7637 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
7639 * tree-affine.c (wide_int_constant_multiple_p): Add missing
7640 pointer dereference.
7642 2016-05-09 Richard Biener <rguenther@suse.de>
7644 PR tree-optimization/70985
7645 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
7646 op0 isn't a gimple register.
7648 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
7650 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
7651 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
7652 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
7653 (i6400_fpu_mult): New cpu units.
7654 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
7655 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
7656 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
7657 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
7658 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
7659 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
7660 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
7661 (i6400_msa_long_float4, i6400_msa_long_float5)
7662 (i6400_msa_long_float8, i6400_msa_fdiv_df)
7663 (i6400_msa_fdiv_sf): New reservations.
7664 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
7665 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
7666 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
7667 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
7668 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
7669 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
7670 (msa_short_cmp, msa_short_float2, msa_short_logic3)
7671 (msa_short_store4, msa_long_load, msa_short_store)
7672 (msa_long_logic, msa_long_float2, msa_long_float4)
7673 (msa_long_float5, msa_long_float8, msa_long_mult)
7674 (msa_long_fdiv, msa_long_div): New reservations.
7676 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
7677 Sameera Deshpande <sameera.deshpande@imgtec.com>
7678 Matthew Fortune <matthew.fortune@imgtec.com>
7679 Graham Stott <graham.stott@imgtec.com>
7680 Chao-ying Fu <chao-ying.fu@imgtec.com>
7682 * config.gcc: Add MSA header file for mips*-*-* target.
7683 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
7684 (Ubv8i, Urv8): New constraints.
7685 * config/mips/mips-ftypes.def: Add function types for MSA
7687 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
7688 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
7689 * config/mips/mips-msa.md: New file.
7690 * config/mips/mips-protos.h
7691 (mips_split_128bit_const_insns): New prototype.
7692 (mips_msa_idiv_insns): Likewise.
7693 (mips_split_128bit_move): Likewise.
7694 (mips_split_128bit_move_p): Likewise.
7695 (mips_split_msa_copy_d): Likewise.
7696 (mips_split_msa_insert_d): Likewise.
7697 (mips_split_msa_fill_d): Likewise.
7698 (mips_expand_msa_branch): Likewise.
7699 (mips_const_vector_same_val_p): Likewise.
7700 (mips_const_vector_same_bytes_p): Likewise.
7701 (mips_const_vector_same_int_p): Likewise.
7702 (mips_const_vector_shuffle_set_p): Likewise.
7703 (mips_const_vector_bitimm_set_p): Likewise.
7704 (mips_const_vector_bitimm_clr_p): Likewise.
7705 (mips_msa_vec_parallel_const_half): Likewise.
7706 (mips_msa_output_division): Likewise.
7707 (mips_ldst_scaled_shift): Likewise.
7708 (mips_expand_vec_cond_expr): Likewise.
7709 * config/mips/mips.c (enum mips_builtin_type): Add
7710 MIPS_BUILTIN_MSA_TEST_BRANCH.
7711 (mips_gen_const_int_vector_shuffle): New prototype.
7712 (mips_const_vector_bitimm_set_p): New function.
7713 (mips_const_vector_bitimm_clr_p): Likewise.
7714 (mips_const_vector_same_val_p): Likewise.
7715 (mips_const_vector_same_bytes_p): Likewise.
7716 (mips_const_vector_same_int_p): Likewise.
7717 (mips_const_vector_shuffle_set_p): Likewise.
7718 (mips_symbol_insns): Forbid loading symbols via immediate for
7720 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
7722 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
7724 (mips_lx_address_p): Add support load indexed address for MSA.
7725 (mips_address_insns): Add calculation of instructions needed for
7726 stores and loads for MSA.
7727 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
7728 CONST_VECTOR for MSA and let it fall through.
7729 (mips_ldst_scaled_shift): New function.
7730 (mips_subword_at_byte): Likewise.
7731 (mips_msa_idiv_insns): Likewise.
7732 (mips_legitimize_move): Validate MSA moves.
7733 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
7734 calculation of costs for MSA division.
7735 (mips_split_move_p): Check if MSA moves need splitting.
7736 (mips_split_move): Split MSA moves if necessary.
7737 (mips_split_128bit_move_p): New function.
7738 (mips_split_128bit_move): Likewise.
7739 (mips_split_msa_copy_d): Likewise.
7740 (mips_split_msa_insert_d): Likewise.
7741 (mips_split_msa_fill_d): Likewise.
7742 (mips_output_move): Handle MSA moves.
7743 (mips_expand_msa_branch): New function.
7744 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
7745 Reinstate 'y' modifier.
7746 (mips_file_start): Add MSA .gnu_attribute.
7747 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
7749 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
7750 (mips_class_max_nregs): Add register size for MSA supported mode.
7751 (mips_cannot_change_mode_class): Allow conversion between MSA
7752 vector modes and TImode.
7753 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
7755 (mips_secondary_reload_class): Force MSA loads/stores via memory.
7756 (mips_preferred_simd_mode): Add preffered modes for MSA.
7757 (mips_vector_mode_supported_p): Add MSA supported modes.
7758 (mips_autovectorize_vector_sizes): New function.
7759 (mips_msa_output_division): Likewise.
7760 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
7761 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
7762 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
7763 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
7764 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
7765 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
7766 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
7767 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
7768 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
7769 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
7770 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
7771 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
7772 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
7773 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
7774 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
7775 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
7776 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
7777 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
7778 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
7779 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
7780 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
7781 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
7782 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
7783 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
7784 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
7785 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
7786 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
7787 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
7788 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
7789 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
7790 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
7791 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
7792 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
7793 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
7794 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
7795 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
7796 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
7797 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
7798 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
7799 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
7800 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
7801 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
7802 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
7803 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
7804 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
7805 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
7806 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
7807 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
7808 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
7809 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
7810 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
7811 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
7812 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
7813 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
7814 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
7815 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
7816 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
7817 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
7818 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
7819 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
7820 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
7821 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
7822 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
7823 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
7824 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
7825 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
7826 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
7827 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
7828 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
7829 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
7830 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
7831 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
7832 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
7833 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
7834 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
7835 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
7836 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
7837 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
7838 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
7839 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
7840 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
7841 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
7842 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
7843 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
7844 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
7845 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
7846 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
7847 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
7848 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
7849 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
7850 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
7851 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
7852 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
7853 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
7854 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
7855 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
7856 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
7857 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
7858 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
7859 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
7860 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
7861 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
7862 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
7863 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
7864 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
7865 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
7866 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
7867 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
7868 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
7869 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
7870 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
7871 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
7872 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
7873 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
7874 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
7875 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
7876 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
7877 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
7878 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
7879 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
7880 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
7881 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
7882 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
7883 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
7884 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
7885 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
7886 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
7887 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
7888 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
7889 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
7890 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
7891 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
7892 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
7893 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
7894 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
7895 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
7896 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
7897 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
7898 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
7899 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
7900 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
7901 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
7902 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
7903 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
7904 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
7905 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
7906 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
7907 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
7908 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
7909 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
7910 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
7912 (mips_get_builtin_decl_index): New array.
7913 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
7914 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
7915 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
7916 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
7917 (mips_init_builtins): Initialize mips_get_builtin_decl_index
7919 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
7921 (mips_expand_builtin_insn): Prepare operands for
7922 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
7923 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
7924 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
7925 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
7926 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
7927 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
7928 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
7929 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
7930 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
7931 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
7932 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
7933 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
7934 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
7935 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
7936 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
7937 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
7938 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
7939 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
7940 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
7941 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
7942 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
7943 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
7944 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
7945 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
7946 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
7947 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
7948 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
7949 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
7950 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
7951 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
7952 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
7953 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
7954 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
7955 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
7956 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
7957 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
7958 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
7959 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
7960 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
7961 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
7962 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
7963 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
7964 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
7965 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
7966 These are set implicitly and an error is reported if overridden.
7967 (mips_expand_builtin_msa_test_branch): New function.
7968 (mips_expand_msa_shuffle): Likewise.
7969 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
7970 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
7971 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
7972 (mips_expand_vec_unpack): Add support for MSA.
7973 (mips_expand_vector_init): Likewise.
7974 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
7975 instead of const0_rtx.
7976 (mips_msa_vec_parallel_const_half): New function.
7977 (mips_gen_const_int_vector): Likewise.
7978 (mips_gen_const_int_vector_shuffle): Likewise.
7979 (mips_expand_msa_cmp): Likewise.
7980 (mips_expand_vec_cond_expr): Likewise.
7981 * config/mips/mips.h
7982 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
7983 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
7985 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
7986 (ISA_HAS_MSA): New macro.
7987 (UNITS_PER_MSA_REG): Likewise.
7988 (BITS_PER_MSA_REG): Likewise.
7989 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
7990 (MSA_REG_FIRST): New macro.
7991 (MSA_REG_LAST): Likewise.
7992 (MSA_REG_NUM): Likewise.
7993 (MSA_REG_P): Likewise.
7994 (MSA_REG_RTX_P): Likewise.
7995 (MSA_SUPPORTED_MODE_P): Likewise.
7996 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
7997 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
7998 * config/mips/mips.md: Include mips-msa.md.
7999 (alu_type): Add simd_add.
8000 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
8001 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
8002 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
8003 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
8004 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
8005 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
8006 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
8007 simd_move, simd_load, simd_store. Choose "multi" for moves
8009 (qword_mode): New attribute.
8010 (insn_count): Add instruction count for quad moves.
8011 Increase the count for MIPS SIMD division.
8012 (UNITMODE): Add UNITMODEs for vector types.
8013 (addsub): New code iterator.
8014 * config/mips/mips.opt (mmsa): New option.
8015 * config/mips/msa.h: New file.
8016 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
8018 * config/mips/mti-linux.h: Likewise.
8019 * config/mips/predicates.md
8020 (const_msa_branch_operand): New constraint.
8021 (const_uimm3_operand): Likewise.
8022 (const_uimm4_operand): Likewise.
8023 (const_uimm5_operand): Likewise.
8024 (const_uimm8_operand): Likewise.
8025 (const_imm5_operand): Likewise.
8026 (aq10b_operand): Likewise.
8027 (aq10h_operand): Likewise.
8028 (aq10w_operand): Likewise.
8029 (aq10d_operand): Likewise.
8030 (const_m1_operand): Likewise.
8031 (reg_or_m1_operand): Likewise.
8032 (const_exp_2_operand): Likewise.
8033 (const_exp_4_operand): Likewise.
8034 (const_exp_8_operand): Likewise.
8035 (const_exp_16_operand): Likewise.
8036 (const_vector_same_val_operand): Likewise.
8037 (const_vector_same_simm5_operand): Likewise.
8038 (const_vector_same_uimm5_operand): Likewise.
8039 (const_vector_same_uimm6_operand): Likewise.
8040 (const_vector_same_uimm8_operand): Likewise.
8041 (par_const_vector_shf_set_operand): Likewise.
8042 (reg_or_vector_same_val_operand): Likewise.
8043 (reg_or_vector_same_simm5_operand): Likewise.
8044 (reg_or_vector_same_uimm6_operand): Likewise.
8045 * doc/extend.texi (MIPS SIMD Architecture Functions): New
8047 * doc/invoke.texi (-mmsa): Document new option.
8049 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8051 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
8052 * configure: Regenerate.
8053 * config.in: Regenerate.
8054 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
8056 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
8057 (ENDFILE_VTV_SPEC): Define.
8059 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
8061 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
8062 registers in all interrupt handlers if necessary.
8063 (rl78_option_override): Add warning.
8064 (MUST_SAVE_MDUC_REGISTERS): New macro.
8065 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
8066 * config/rl78/rl78.c (check_mduc_usage): New function.
8067 (mduc_regs): New structure to hold MDUC register data.
8068 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
8069 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
8070 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
8071 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
8072 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
8073 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
8075 2016-05-09 Bin Cheng <bin.cheng@arm.com>
8077 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
8078 (tree-ssa-loop-niter.h): Ditto.
8079 (idx_within_array_bound, ref_within_array_bound): New functions.
8080 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
8081 Factor out check on writable base object to ...
8082 (base_object_writable): ... here.
8084 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8086 * config/arm/arm.md (probe_stack): Add modes to set source
8089 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
8091 * regrename.c (base_reg_class_for_rename): New static function.
8092 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
8094 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
8096 * cgraph.c (thunk_adjust): Export.
8097 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
8098 * cgraphunit.c (thunk_adjust): Export.
8099 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
8101 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
8103 * tree-inline.c (expand_call_inline): Expand thunks inline.
8105 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
8108 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
8109 (*sse2_vd_cvtss2sd): Ditto.
8110 * config/i386/i386.md
8111 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
8112 Generate *sse2_vd_cvtsd2ss pattern.
8113 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
8114 Generate *sse2_vd_cvtss2sd pattern.
8116 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
8118 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
8119 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
8122 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
8124 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
8125 * config/sh/sh.c: Define and declare variables on first use throughout
8127 (current_function_interrupt): Change to bool type.
8128 (frame_insn): Rename to emit_frame_insn and update users.
8129 (push_regs): Use bool for 'interrupt_handler' argument.
8130 (save_schedule_s): Remove.
8131 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
8132 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
8133 targetm.asm_out.unaligned_op.di.
8134 (gen_far_branch): Remove redundant forward declaration.
8135 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
8136 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
8137 (sh_set_return_address, sh_function_ok_for_sibcall,
8138 scavenge_reg): Update comments.
8139 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
8140 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
8141 (sh_attr_renesas_p): Remove unnecessary parentheses.
8142 (branch_dest): Simplify.
8143 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
8144 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
8145 (CUMULATIVE_ARGS): Change macro to typedef.
8146 (current_function_interrupt): Change to bool type.
8147 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
8148 Surround with __cplusplus ifdef.
8149 (sh_compare_op0, sh_compare_op1): Remove.
8150 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
8152 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
8154 * config/arm/arm.md: (arch): Add neon.
8155 (arch_enabled): Return yes for arch neon when TARGET_NEON.
8156 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
8157 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
8158 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
8159 attributes for alt renumbering. Mark alt 3 as non-predicable.
8160 (thumb2_movdf_vfp): Likewise.
8162 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
8164 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
8165 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
8166 (*andqi_1): Add preferred_for_speed attribute to disparage
8167 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
8168 (*<code>qi_1): Ditto.
8169 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
8170 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
8171 (*ashlqi3_1): Ditto.
8172 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
8173 Add preferred_for_size attribute to disparage alternative 0 and
8174 preferred_for_speed attribute to disparage alternative 1 for
8175 TARGET_PARTIAL_REG_STALL targets.
8177 2016-05-07 Tom de Vries <tom@codesourcery.com>
8179 PR tree-optimization/70956
8180 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
8183 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
8185 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
8186 * config/sh/sh.c (sh_cbranch_distance): Implement it.
8187 * config/sh/sh.md (branch_zero): Remove define_attr.
8188 (define_delay): Disable delay slot if branch distance is one insn.
8190 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
8192 * config/i386/i386.md (LEAMODE): New mode attribute.
8193 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
8194 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
8195 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
8196 operand 2 predicate.
8197 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
8198 (*lea<mode>_general_3): Ditto.
8199 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
8201 2016-05-06 Jakub Jelinek <jakub@redhat.com>
8203 * genmddump.c (main): Convert argv from char ** to const char **.
8205 2016-05-06 David Malcolm <dmalcolm@redhat.com>
8207 * coretypes.h (OVERRIDE): New macro.
8210 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
8212 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
8213 allow coalescing if the types are compatible.
8215 2016-05-06 David Malcolm <dmalcolm@redhat.com>
8217 * pass_manager.h (pass_manager::register_pass_name): New method.
8218 (pass_manager::get_pass_by_name): New method.
8219 (pass_manager::create_pass_tab): New method.
8220 (pass_manager::m_name_to_pass_map): New field.
8221 * passes.c (name_to_pass_map): Delete global in favor of field
8222 "m_name_to_pass_map" of pass_manager.
8223 (register_pass_name): Rename from a function to...
8224 (pass_manager::register_pass_name): ...this method, updating
8225 for renaming of global "name_to_pass_map" to field
8226 "m_name_to_pass_map".
8227 (create_pass_tab): Rename from a function to...
8228 (pass_manager::create_pass_tab): ...this method, updating
8229 for renaming of global "name_to_pass_map" to field.
8230 (get_pass_by_name): Rename from a function to...
8231 (pass_manager::get_pass_by_name): ...this method.
8232 (enable_disable_pass): Convert use of get_pass_by_name to
8233 a method call, locating the pass_manager singleton.
8235 2016-05-06 David Malcolm <dmalcolm@redhat.com>
8237 * genattr-common.c (main): Convert argv from char ** to const char **.
8238 * genattr.c (main): Likewise.
8239 * genattrtab.c (main): Likewise.
8240 * genautomata.c (initiate_automaton_gen): Likewise.
8242 * gencodes.c (main): Likewise.
8243 * genconditions.c (main): Likewise.
8244 * genconfig.c (main): Likewise.
8245 * genconstants.c (main): Likewise.
8246 * genemit.c (main): Likewise.
8247 * genenums.c (main): Likewise.
8248 * genextract.c (main): Likewise.
8249 * genflags.c (main): Likewise.
8250 * genmddeps.c (main): Likewise.
8251 * genopinit.c (main): Likewise.
8252 * genoutput.c (main): Likewise.
8253 * genpeep.c (main): Likewise.
8254 * genpreds.c (main): Likewise.
8255 * genrecog.c (main): Likewise.
8256 * gensupport.c (init_rtx_reader_args_cb): Likewise.
8257 (init_rtx_reader_args): Likewise.
8258 * gensupport.h (init_rtx_reader_args_cb): Likewise.
8259 (init_rtx_reader_args): Likewise.
8260 * gentarget-def.c (main): Likewise.
8261 * read-md.c (read_md_files): Likewise.
8262 * read-md.h (read_md_files): Likewise.
8264 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
8266 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
8267 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
8268 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
8269 Remove unused predicate.
8270 (register_and_not_fp_reg_operand): Ditto.
8272 2016-05-06 Martin Liska <mliska@suse.cz>
8274 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
8275 instead of vec as the vector is local to the function.
8277 2016-05-06 Jakub Jelinek <jakub@redhat.com>
8279 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
8280 avx512bw alternative.
8282 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
8283 before the ashr<mode>3 pattern.
8285 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
8286 v instead of x in vex or maybe_vex alternatives, use
8287 maybe_evex instead of vex in prefix.
8289 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
8290 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
8291 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
8292 in vex or maybe_vex alternatives, use maybe_evex instead of vex
8295 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
8296 v instead of x in vex or maybe_vex alternatives, use
8297 maybe_evex instead of vex in prefix.
8299 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
8300 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
8301 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
8302 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
8303 alternatives, use maybe_evex instead of vex in prefix.
8305 * config/i386/sse.md (vec_interleave_lowv4sf,
8306 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
8307 v instead of x in vex or maybe_vex alternatives, use
8308 maybe_evex instead of vex in prefix.
8310 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
8311 v instead of x in vex or maybe_vex alternatives, use
8312 maybe_evex instead of vex in prefix.
8314 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
8315 v constraint instead of x.
8317 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
8319 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
8320 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
8323 2016-05-06 Richard Biener <rguenther@suse.de>
8325 PR tree-optimization/70948
8326 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8327 Properly clobber all fields of va_list for __builtin_va_start.
8329 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
8332 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
8333 loop latch destination.
8335 2016-05-06 Martin Liska <mliska@suse.cz>
8337 * tree-ssa-uninit.c: Apply manual changes
8338 to the GNU coding style.
8339 (prune_uninit_phi_opnds): Rename from
8340 prune_uninit_phi_opnds_in_unrealizable_paths.
8342 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8344 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
8345 mspace): Remove deprecated options.
8346 * doc/invoke.texi (SH options): Remove -mspace.
8348 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8350 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
8352 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8354 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
8355 corresponding combine split pattern.
8357 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8360 * config/sh/predicates.md (long_displacement_mem_operand): New.
8361 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
8362 Add movi20, movi20s alternatives. Adjust length attribute for
8364 (movsi_ie): Allow for any FPU. Adjust length attribute for
8366 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
8367 attribute for alternatives.
8368 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
8369 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
8370 length attribute for alternatives.
8372 2016-05-06 Richard Biener <rguenther@suse.de>
8374 PR tree-optimization/70960
8375 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
8377 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8380 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
8381 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
8383 2016-05-06 Marek Polacek <polacek@redhat.com>
8386 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
8388 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8391 * config/sh/sh.md (*rotcr): Add another variant.
8393 2016-05-06 Richard Biener <rguenther@suse.de>
8396 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
8398 2016-05-06 Richard Biener <rguenther@suse.de>
8401 * fold-const.c (split_tree): Always convert to the original type
8404 2016-05-06 Richard Biener <rguenther@suse.de>
8406 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
8407 (fwprop_addr): Likewise.
8409 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
8412 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
8414 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
8415 * config/i386/i386.md (push mem splitter): Use find_constant_src in
8416 the splitter condition.
8417 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
8418 the splitter condition.
8419 (FP float_extend load splitter): Ditto.
8421 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
8423 * config/i386/i386.md (peehole2 patterns): Change true_regnum
8424 to REGNO in all peephole2 patterns.
8425 (post-reload splitters): Change true_regnum to REGNO in
8426 post-reload splitters.
8427 (zero_extend splitters): Use general_reg_operand and
8428 nonimmediate_gr_operand predicates.
8430 2016-05-05 Jakub Jelinek <jakub@redhat.com>
8432 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
8433 v constraint instead of x.
8435 2016-05-05 Alan Modra <amodra@gmail.com>
8438 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
8439 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
8440 TARGET_NO_FP_IN_TOC for -mrelocatable.
8441 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
8442 TARGET_RELOCATABLE test.
8443 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8444 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
8445 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8446 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8447 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
8448 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8449 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8450 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
8451 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
8452 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
8454 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
8455 (rs6000_stack_info): Likewise.
8456 (rs6000_elf_asm_out_constructor): Likewise.
8457 (rs6000_elf_asm_out_destructor): Likewise.
8458 (rs6000_elf_declare_function_name): Likewise.
8459 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
8460 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
8463 2016-05-05 Alan Modra <amodra@gmail.com>
8465 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
8467 2016-05-05 Alan Modra <amodra@gmail.com>
8469 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
8470 out-of-line gpr restore for one or two regs if that would add
8473 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
8476 * config/i386/i386.md
8477 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
8478 Change to post-epilogue_completed late splitter. Use sse_reg_operand
8479 as operand 0 predicate.
8480 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
8482 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
8483 Ditto. Emit the pattern using RTX.
8485 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
8486 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
8487 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
8488 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
8490 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
8491 sse_reg_operand as operand 0 predicate.
8493 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
8494 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
8495 instead of gen_rtx_REG.
8496 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
8499 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
8501 * function.c (emit_use_return_register_into_block): Delete.
8502 (gen_return_pattern): Delete.
8503 (emit_return_into_block): Delete.
8504 (active_insn_between): Delete.
8505 (convert_jumps_to_returns): Delete.
8506 (emit_return_for_exit): Delete.
8507 (thread_prologue_and_epilogue_insns): Delete all code dealing with
8508 simple_return for shrink-wrapped blocks.
8509 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
8510 end of blocks that need one.
8511 (get_unconverted_simple_return): Delete.
8512 (convert_to_simple_return): Delete.
8513 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
8514 (convert_to_simple_return): Ditto.
8516 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
8518 * cfgcleanup.c (bb_is_just_return): New function.
8519 (try_optimize_cfg): Simplify jumps to return, branches to return,
8520 and branches around return.
8522 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
8524 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
8527 2016-05-04 Jakub Jelinek <jakub@redhat.com>
8531 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
8532 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
8533 assert flags & OEP_HASH_CHECK, instead of asserting it
8534 never happens. Handle TARGET_EXPR.
8535 * fold-const.c (operand_equal_p): For hash verification,
8536 or in OEP_HASH_CHECK into flags.
8538 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
8540 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
8542 (compute_samebase_partition_bases): Fix typo.
8544 2016-05-04 Jakub Jelinek <jakub@redhat.com>
8546 * config/i386/sse.md (vec_interleave_highv8sf,
8547 vec_interleave_lowv8sf, vec_interleave_highv4df,
8548 vec_interleave_lowv4df): Remove constraints from expanders.
8550 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
8552 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
8554 * tree-inline.c (expand_call_inline): Fix path dealing with
8555 making lhs of call statement undefined.
8557 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
8559 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
8560 Check availability on NODE, too.
8561 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
8562 (cgraph_node::call_for_symbol_and_aliases): Likewise.
8563 (varpool_node::call_for_symbol_and_aliase): Likewise.
8564 * ipa-pure-const.c (add_new_function): Analyze all bodies.
8565 (propagate_pure_const): Propagate across interposable functions, too.
8566 (skip_function_for_local_pure_const): Do not skip interposable bodies
8568 (pass_local_pure_const::execute): Update.
8570 2016-05-04 Marek Polacek <polacek@redhat.com>
8572 * doc/invoke.texi: Document -Wdangling-else.
8574 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
8576 * config.gcc: Error out when conflicting multilib is detected. Do not
8577 loop over multilibs since no combination is legal.
8579 2016-05-04 Alan Modra <amodra@gmail.com>
8581 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
8582 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
8583 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
8586 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
8588 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
8589 Clean up p5600 comments.
8591 2016-05-04 Richard Biener <rguenther@suse.de>
8593 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
8594 constructor simplifications.
8595 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
8597 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
8599 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
8600 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
8601 result.set_rtx is null instead of aborting.
8602 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
8604 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
8605 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
8606 *mov<mode>_store_postinc): New patterns.
8608 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
8610 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
8611 as commutative. Check both conversions are NOP.
8612 ((A & B) OP (C & B)): Remove.
8614 2016-05-04 Alan Modra <amodra@gmail.com>
8616 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
8618 2016-05-04 Alan Modra <amodra@gmail.com>
8621 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
8622 when cr2,3,4 are all fixed regs.
8624 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
8626 PR rtl-optimization/57193
8627 * opts.c (default_options_table): Revert OPT_frename_registers change.
8628 * doc/invoke.texi (-frename-registers, -O2): Likewise.
8630 2016-05-03 Martin Sebor <msebor@redhat.com>
8633 * builtins.c (fold_builtin_FILE): New function.
8634 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
8635 (fold_builtin_0): Call them.
8636 * gimplify.c (gimplify_call_expr): Remove the handling of
8637 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
8640 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
8641 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
8645 * doc/extend.texi (Function Names as Strings): Update __func__,
8646 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
8649 2016-05-03 Jakub Jelinek <jakub@redhat.com>
8650 Richard Biener <rguenther@suse.de>
8652 PR tree-optimization/70916
8653 * tree-if-conv.c: Include cfganal.h.
8654 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
8655 and remove_fake_exit_edges around the optimization pass.
8657 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
8659 * cgraph.c (symbol_table::create_edge): Set inline_failed.
8660 (cgraph_edge::make_direct): Likewise.
8661 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
8662 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
8663 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
8664 (CIF_THUNK): New code.
8665 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
8666 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
8667 (compute_inline_parameters): Set inline_failed for thunks.
8668 (inline_analyze_function): Cleanup.
8669 * ipa-inline.c (can_inline_edge_p): Do not deal with
8670 call_stmt_cannot_inline_p.
8671 (can_early_inline_edge_p): Likewise.
8672 (early_inliner): Initialize inline_failed.
8673 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
8675 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
8677 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
8678 from nonimm_ssenomem_operand.
8679 (nonimm_ssenomem_operand): New predicate.
8680 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
8681 as operand 0 predicate.
8682 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
8683 Disable unsupported alternatives using "enabled" attribute.
8684 Use register_ssemem_operand as operand 0 predicate.
8685 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
8687 2016-05-03 Marek Polacek <polacek@redhat.com>
8690 * input.c (expansion_point_location): New function.
8691 * input.h (expansion_point_location): Declare.
8693 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
8695 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
8696 occurence with frame_offset_ ones.
8698 2016-05-03 Alan Modra <amodra@gmail.com>
8700 PR rtl-optimization/70890
8701 * ira.c (combine_and_move_insns): When moving def_insn, remove
8704 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
8706 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
8707 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
8708 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
8709 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
8711 2016-05-03 Alan Modra <amodra@gmail.com>
8713 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
8714 for SAVE_MULTIPLE/STORE_MULTIPLE.
8716 2016-05-03 Jakub Jelinek <jakub@redhat.com>
8718 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
8719 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
8721 2016-05-03 Richard Biener <rguenther@suse.de>
8723 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
8725 (gimplify_arg): Likewise.
8726 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
8727 re-writing the result to a decl if required.
8728 (internal_get_tmp_var): Add allow_ssa parameter
8729 and override into_ssa with it.
8730 (get_formal_tmp_var): Adjust.
8731 (get_initialized_tmp_var): Add allow_ssa parameter.
8732 (gimplify_arg): Add allow_ssa parameter and avoid generating
8733 SSA names for the result false.
8734 (gimplify_call_expr): If the call may return twice do not
8735 gimplify parameters into SSA.
8736 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
8737 (gimplify_modify_expr): Adjust assert. For noreturn calls
8738 with a SSA name LHS adjust its def.
8739 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
8740 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
8741 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
8742 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
8743 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
8744 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
8745 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
8746 (optimize_target_teams): Do not allow SSA names for clause operands.
8747 (gimplify_expr): Likewise for where we mark the result addressable.
8748 * passes.def (pass_init_datastructures): Remove.
8749 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
8750 (rewrite_stmt): Likewise.
8751 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
8752 (replace_locals_op): Replace SSA names.
8753 (copy_gimple_seq_and_replace_locals): Init src_cfun.
8754 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
8755 * cgraph.c (release_function_body): Free CFG annotations only
8756 when we have a CFG. Simplify.
8757 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
8758 force_gimple_operand instead of get_initialized_tmp_var.
8759 * tree-pass.h (make_pass_init_datastructures): Remove.
8760 * tree-ssa.c (execute_init_datastructures): Remove.
8761 (pass_data_init_datastructures): Likewise.
8762 (class pass_init_datastructures): Likewise.
8763 (make_pass_init_datastructures): Likewise.
8764 * omp-low.c (create_omp_child_function): Init SSA data structures.
8765 (grid_expand_target_grid_body): Likewise.
8766 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
8767 name before adding it to names_to_release.
8768 (remove_bb): Always release SSA defs.
8769 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
8770 before dereferencing it.
8771 * cgraphunit.c (init_lowered_empty_function): Always
8772 int SSA data structures.
8773 * tree-ssanames.c (release_defs): Remove assert that we are in
8775 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
8777 2016-05-03 Jakub Jelinek <jakub@redhat.com>
8778 Uros Bizjak <ubizjak@gmail.com>
8780 PR rtl-optimization/70467
8781 * config/i386/predicates.md (x86_64_hilo_int_operand,
8782 x86_64_hilo_general_operand): New predicates.
8783 * config/i386/constraints.md (Wd): New constraint.
8784 * config/i386/i386.md (mode attr di): Use Wd instead of e.
8785 (general_hilo_operand): New mode attr.
8786 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
8787 instead of <general_operand>.
8788 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
8789 x86_64_hilo_general_operand instead of <general_operand>.
8791 2016-05-03 Jakub Jelinek <jakub@redhat.com>
8793 PR tree-optimization/70916
8794 * tree-if-conv.c (constant_or_ssa_name): Removed.
8795 (fold_build_cond_expr): Use is_gimple_val instead of
8796 constant_or_ssa_name.
8798 PR tree-optimization/70916
8799 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
8800 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
8803 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
8804 (optimize_atomic_bit_test_and): New function.
8805 (pass_fold_builtins::execute): Use it.
8806 * optabs.def (atomic_bit_test_and_set_optab,
8807 atomic_bit_test_and_complement_optab,
8808 atomic_bit_test_and_reset_optab): New optabs.
8809 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
8810 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
8811 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
8812 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
8813 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
8814 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
8815 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
8816 * doc/md.texi (atomic_bit_test_and_set@var{mode},
8817 atomic_bit_test_and_complement@var{mode},
8818 atomic_bit_test_and_reset@var{mode}): Document.
8819 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
8820 atomic_bit_test_and_complement<mode>,
8821 atomic_bit_test_and_reset<mode>): New expanders.
8822 (atomic_bit_test_and_set<mode>_1,
8823 atomic_bit_test_and_complement<mode>_1,
8824 atomic_bit_test_and_reset<mode>_1): New insns.
8826 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
8828 PR rtl-optimization/70687
8829 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
8830 instead of unsigned HOST_WIDE_INT.
8832 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
8834 PR rtl-optimization/44281
8835 * hard-reg-set.h (struct target_hard_regs): New field
8836 x_fixed_nonglobal_reg_set.
8837 (fixed_nonglobal_reg_set): New macro.
8838 * reginfo.c (init_reg_sets_1): Initialize it.
8839 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
8841 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
8843 2016-05-03 Bin Cheng <bin.cheng@arm.com>
8845 PR tree-optimization/56541
8846 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
8847 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
8848 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
8849 (any_complicated_phi): new static variable.
8850 (aggressive_if_conv): delete.
8851 (if_convertible_phi_p): support phis with more than two arguments.
8852 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
8853 critical pred edges.
8854 (ifcvt_split_critical_edges): support phis with more than two
8855 arguments by checking new parameter. only split critical edges
8857 (tree_if_conversion): handle simd pragma marked loop using new
8858 local variable aggressive_if_conv. check any_complicated_phi.
8860 2016-05-03 Bin Cheng <bin.cheng@arm.com>
8862 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
8865 2016-05-03 Bin Cheng <bin.cheng@arm.com>
8867 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
8870 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
8872 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
8873 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
8874 define_insn_and_split.
8875 (mulsi3_i): New define_insn_and_split.
8876 (mulsi3_call): Convert to define_insn.
8877 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
8880 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8882 * machmode.h (mode_complex): Add support to give the complex mode
8884 (GET_MODE_COMPLEX_MODE): Likewise.
8885 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
8886 stored by build_complex_type and gfc_build_complex_type instead of
8887 trying to figure out the appropriate mode based on the size. Raise
8888 an assertion error, if the type was not set.
8889 * genmodes.c (struct mode_data): Add field for the complex type of
8891 (blank_mode): Likewise.
8892 (make_complex_modes): Remember the complex mode created in the
8894 (emit_mode_complex): Write out the mode_complex array to map a
8895 type mode to the complex version.
8896 (emit_insn_modes_c): Likewise.
8897 * tree.c (build_complex_type): Set the complex type to use before
8898 calling layout_type.
8899 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
8900 support for __float128 complex datatypes.
8901 (rs6000_hard_regno_mode_ok): Likewise.
8902 (rs6000_setup_reg_addr_masks): Likewise.
8903 (rs6000_complex_function_value): Likewise.
8904 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
8905 __float128 and __ibm128 complex.
8906 (FLOAT128_IBM_P): Likewise.
8907 (ALTIVEC_ARG_MAX_RETURN): Likewise.
8908 * doc/extend.texi (Additional Floating Types): Document that
8909 -mfloat128 must be used to enable __float128. Document complex
8910 __float128 and __ibm128 support.
8912 2016-05-02 Jakub Jelinek <jakub@redhat.com>
8915 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
8916 char/short arguments promoted to int because of promote_prototypes.
8918 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
8920 * config/i386/predicates.md (register_ssemem_operand): New predicate.
8921 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
8922 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
8923 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
8924 alternatives using "enabled" attribute. Use register_ssemem_operand
8925 as operand 1 predicate.
8926 (*cmpi<unord>xf_i387): Split XFmode pattern from
8927 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
8928 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
8929 *absneg<mode>2_i387. Disable unsupported alternatives using
8930 "enabled" attribute.
8931 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
8933 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
8935 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
8937 (oacc_loop_process): Check mask for loop termination.
8939 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
8941 * cif-code.def (CIF_THUNK): Add.
8942 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
8945 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
8947 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
8948 (dump_inline_summary): Dump it.
8949 (fp_expression_p): New predicate.
8950 (estimate_function_body_sizes): Use it.
8951 (inline_merge_summary): Merge fp_expressions.
8952 (inline_read_section): Read fp_expressions.
8953 (inline_write_summary): Write fp_expressions.
8954 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
8955 codegen boundary if either caller or callee is !fp_expressions.
8956 * ipa-inline.h (inline_summary): Add fp_expressions.
8957 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
8958 to fp_expressions be sure the fp generation flags are updated.
8960 2016-05-02 Jakub Jelinek <jakub@redhat.com>
8962 PR rtl-optimization/70467
8963 * cse.c (cse_insn): Handle no-op MEM moves after folding.
8965 PR rtl-optimization/70467
8966 * ipa-pure-const.c (check_call): Handle internal calls even in
8967 ipa mode like in local mode.
8969 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
8971 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
8973 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
8975 * match.pd (X u< X, X u> X): New transformations.
8977 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
8979 * flag-types.h (enum warn_strict_overflow_code): Move ...
8980 * coretypes.h: ... here.
8981 * fold-const.h (fold_overflow_warning): Declare.
8982 * fold-const.c (fold_overflow_warning): Make non-static.
8983 (fold_comparison): Move the transformation of X +- C1 CMP C2
8984 into X CMP C2 -+ C1 ...
8985 * match.pd: ... here.
8986 * gimple-fold.c (fold_stmt_1): Protect with
8987 fold_defer_overflow_warnings.
8989 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
8991 * omp-low.c (struct oacc_loop): Add 'inner' field.
8992 (new_oacc_loop_raw): Initialize it to zero.
8993 (oacc_loop_fixed_partitions): Initialize it.
8994 (oacc_loop_auto_partitions): Partition outermost loop to outermost
8995 available partitioning.
8997 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
8999 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
9001 (umulsidi3): Likewise.
9002 (indirect_jump): Fix jump instruction assembly patterns.
9004 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
9007 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
9008 (nvptx_function_value): Assert non-NULL cfun.
9010 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
9012 PR rtl-optimization/70886
9013 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
9015 * cselib.h (rtx_equal_for_cselib_1): Declare.
9016 (rtx_equal_for_cselib_p: New inline function.
9017 * cselib.c (rtx_equal_for_cselib_p): Delete.
9018 (rtx_equal_for_cselib_1): Make public.
9020 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
9022 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
9023 (register_mixssei387nonimm_operand): Remove predicate.
9024 * config/i386/i386.md (*fop_<mode>_comm): Merge from
9025 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
9026 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
9027 for TARGET_MIX_SSE_I387 alternatives.
9028 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
9029 Disable unsupported alternatives using "enabled" attribute. Use
9030 nonimm_ssenomem_operand as operand 1 predicate. Also check
9031 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
9033 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9035 * tree.c (cst_and_fits_in_hwi): Simplify.
9037 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9039 * tree.h (wi::to_wide): New function.
9040 * expr.c (expand_expr_real_1): Use wi::to_wide.
9041 * fold-const.c (int_const_binop_1): Likewise.
9042 (extract_muldiv_1): Likewise.
9044 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9046 * wide-int.h: Update offset_int and widest_int documentation.
9047 (WI_SIGNED_SHIFT_RESULT): New macro.
9048 (wi::binary_shift): Define signed_shift_result_type for
9049 shifts on offset_int- and widest_int-like types.
9050 (generic_wide_int): Support <<= and >>= if << and >> are supported.
9051 * tree.h (int_bit_position): Use shift operators instead of wi::
9053 * alias.c (adjust_offset_for_component_ref): Likewise.
9054 * expr.c (get_inner_reference): Likewise.
9055 * fold-const.c (fold_comparison): Likewise.
9056 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
9057 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
9058 * tree-dfa.c (get_ref_base_and_extent): Likewise.
9059 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
9060 (stmt_kills_ref_p): Likewise.
9061 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
9062 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
9063 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9064 (ao_ref_init_from_vn_reference): Likewise.
9066 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9068 * wide-int.h: Update offset_int and widest_int documentation.
9069 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
9070 (wi::binary_traits): Allow ordered comparisons between offset_int and
9071 offset_int, between widest_int and widest_int, and between either
9072 of these types and basic C types.
9073 (operator <, <=, >, >=): Define for the same combinations.
9074 * tree.h (tree_int_cst_lt): Use comparison operators instead
9075 of wi:: comparisons.
9076 (tree_int_cst_le): Likewise.
9077 * gimple-fold.c (fold_array_ctor_reference): Likewise.
9078 (fold_nonarray_ctor_reference): Likewise.
9079 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
9080 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
9081 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
9082 * tree-sra.c (completely_scalarize): Likewise.
9083 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
9084 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
9085 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
9086 (check_for_binary_op_overflow): Likewise.
9087 (search_for_addr_array): Likewise.
9088 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
9090 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
9092 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
9093 (arc_save_restore): Likewise.
9094 (arc_dwarf_register_span): Likewise.
9095 (arc_output_pic_addr_const): Initialize suffix variable.
9097 2016-05-02 Martin Liska <mliska@suse.cz>
9099 * symbol-summary.h (function_summary::function_summary):
9100 Remove checking assert for all cgraph nodes.
9101 (function_summary::get): Check summary_uid.
9102 (symtab_insertion): Check summary_uid.
9104 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
9106 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
9107 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
9109 (arc_dwarf_register_span): Remove enum keyword.
9110 (compact_memory_operand_p): New function.
9111 * config/arc/arc.h (reg_class): Add code density register classes.
9112 (REG_CLASS_NAMES): Likewise.
9113 (REG_CLASS_CONTENTS): Likewise.
9114 * config/arc/arc.md (*movqi_insn): Add code density instructions.
9115 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
9116 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
9117 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
9118 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
9120 (h, Rcd, Rsd, Rzd): New register constraints.
9121 (T): Use compact_memory_operand_p function.
9122 * config/arc/predicates.md (compact_load_memory_operand): Remove.
9124 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
9126 * config/sh/sh.md (*negnegt, *movtt): Remove.
9128 2016-05-02 Marek Polacek <polacek@redhat.com>
9129 Tom de Vries <tom@codesourcery.com>
9131 PR tree-optimization/70700
9132 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
9133 bigger than FIRST_REF_NODE.
9135 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
9138 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
9140 (prepare_cbranch_operands): Don't use scratch register. Assume that
9141 function is used when pseudos can be created.
9142 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
9143 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
9144 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
9145 define_expand. Allow it only when pseudos can be created.
9146 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
9148 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
9150 * config/i386/constraints.md (BC): Only allow -1 operands.
9151 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
9152 Add "enabled" attribute. Update XI mode attribute calculation.
9153 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
9154 (*movoi_internal_avx): Update XI mode attribute calculation.
9155 (*movti_internal): Ditto.
9157 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
9159 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
9160 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
9162 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
9164 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
9165 statement on instruction code. Remove trailing spaces.
9166 (altivec_expand_stv_builtin): Likewise.
9168 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
9170 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
9171 (TARGET_FPU_DOUBLE): Simplify.
9172 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
9173 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
9174 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
9175 with 'TARGET_FPU_DOUBLE'.
9176 * config/sh/sh.md: Likewise.
9178 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
9180 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
9181 SH_DIV_STR_FOR_SIZE): Remove.
9182 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
9183 SH_DIV_STR_FOR_SIZE): Remove.
9185 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
9187 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
9188 logical_reg_operand): Delete.
9189 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
9190 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
9191 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
9192 match_operand and match_test.
9193 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
9194 variables on their first use. Return bool values.
9195 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
9196 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
9197 arith_reg_operand for input operand. Remove empty constraints.
9199 (*xorsi3_compact): Rename to xorsi3.
9200 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
9201 (*zero_extend<mode>si2_disp_mem): Update comment.
9204 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
9206 * config/sh/t-sh: Remove SH5 support.
9207 * config.gcc: Likewise.
9208 * configure: Likewise.
9210 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9212 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
9214 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
9216 * config/sh/sh.c (register_sh_passes, sh_option_override,
9217 sh_print_operand, prepare_move_operands,
9218 sh_can_follow_jump): Remove TARGET_SH1 checks.
9219 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
9220 PROMOTE_MODE): Likewise.
9221 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
9224 2016-04-30 Alan Modra <amodra@gmail.com>
9226 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
9227 restoring when fixed_reg_p, but allow out-of-line or stmw save.
9228 Check for user regs later to avoid unnecessary looping over regs.
9229 Merge user reg check with non-saved reg check. Don't force
9230 inline VR restore when static chain used.
9231 (rs6000_frame_related): Omit eh_frame info for user regs when
9233 (fixed_regs_p): Delete.
9235 2016-04-30 Alan Modra <amodra@gmail.com>
9237 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
9238 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
9241 2016-04-30 Alan Modra <amodra@gmail.com>
9244 * config/rs6000/rs6000.c (fixed_reg_p): New function.
9245 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
9248 2016-04-30 Alan Modra <amodra@gmail.com>
9250 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
9251 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
9252 flag_pic test for Darwin.
9254 2016-04-30 Alan Modra <amodra@gmail.com>
9256 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
9257 throw_calls_crossed.
9258 (REG_FREQ_CALLS_CROSSED): Delete.
9259 (REG_N_THROWING_CALLS_CROSSED): Delete.
9260 * regstat.c (regstat_bb_compute_ri): Don't calculate
9261 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
9262 (dump_reg_info): Don't print call cross frequency.
9263 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
9264 and REG_N_THROWING_CALLS_CROSSED.
9266 2016-04-30 Alan Modra <amodra@gmail.com>
9268 * regs.h (struct reg_info_t): Delete live_length.
9269 (REG_LIVE_LENGTH): Delete macro.
9270 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
9271 local_live, local_processed and local_live_last_luid params.
9272 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
9274 (regstat_compute_ri): Adjust for above. Don't set
9276 (dump_reg_info): Don't print live length.
9277 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
9278 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
9279 Localize loop_depth var.
9281 2016-04-30 Alan Modra <amodra@gmail.com>
9283 * ira.c (enum valid_equiv): New.
9284 (validate_equiv_mem): Return enum.
9285 (update_equiv_mem): Create replacement in more cases.
9286 (add_store_equivs): Update validate_equiv_mem call.
9288 2016-04-30 Alan Modra <amodra@gmail.com>
9290 * ira.c (combine_and_move_insns): Rather than scanning insns,
9291 use DF infrastucture to find use and def insns.
9293 2016-04-30 Alan Modra <amodra@gmail.com>
9295 ira.c (combine_and_move_insns): Move invariant conditions..
9296 (ira.c): ..to here. Call combine_and_move_insns before
9297 add_store_equivs. Call grow_reg_equivs later. Allocate
9298 req_equiv later using max_reg_num() rather than global max_regno.
9299 (contains_replace_regs): Delete.
9300 (add_store_equivs): Remove contains_replace_regs test.
9302 2016-04-30 Alan Modra <amodra@gmail.com>
9304 * ira.c (struct equiv_mem_data): New.
9305 (equiv_mem, equiv_mem_modified): Delete static vars.
9306 (validate_equiv_mem_from_store): Use "data" param to communicate..
9307 (validate_equiv_mem): ..from here.
9309 2016-04-30 Alan Modra <amodra@gmail.com>
9311 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
9313 (update_reg_equivs): ..here. Move allocation and freeing of
9314 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
9315 end_alias_analysis to..
9318 2016-04-30 Alan Modra <amodra@gmail.com>
9320 * ira.c (pdx_subregs): Delete.
9321 (struct equivalence): Add pdx_subregs field.
9322 (set_paradoxical_subreg): Remove pdx_subregs param. Update
9324 (update_equiv_regs): Don't create or free pdx_subregs. Update
9327 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9329 * config/rs6000/altivec.h: Change definitions of vec_xl and
9331 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
9332 (LD_ELEMREV_V2DI): New.
9333 (LD_ELEMREV_V4SF): New.
9334 (LD_ELEMREV_V4SI): New.
9335 (LD_ELEMREV_V8HI): New.
9336 (LD_ELEMREV_V16QI): New.
9337 (ST_ELEMREV_V2DF): New.
9338 (ST_ELEMREV_V2DI): New.
9339 (ST_ELEMREV_V4SF): New.
9340 (ST_ELEMREV_V4SI): New.
9341 (ST_ELEMREV_V8HI): New.
9342 (ST_ELEMREV_V16QI): New.
9345 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9346 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
9347 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
9348 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
9349 (altivec_expand_builtin): Add handling for
9350 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
9351 (rs6000_invalid_builtin): Add error-checking for
9352 RS6000_BTM_P9_VECTOR.
9353 (altivec_init_builtins): Define builtins used to implement vec_xl
9355 (rs6000_builtin_mask_names): Define power9-vector.
9356 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
9357 (RS6000_BTM_P9_VECTOR): Define.
9358 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
9359 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
9360 (vsx_ld_elemrev_v2df): Likewise.
9361 (vsx_ld_elemrev_v4sf): Likewise.
9362 (vsx_ld_elemrev_v4si): Likewise.
9363 (vsx_ld_elemrev_v8hi): Likewise.
9364 (vsx_ld_elemrev_v16qi): Likewise.
9365 (vsx_st_elemrev_v2df): Likewise.
9366 (vsx_st_elemrev_v2di): Likewise.
9367 (vsx_st_elemrev_v4sf): Likewise.
9368 (vsx_st_elemrev_v4si): Likewise.
9369 (vsx_st_elemrev_v8hi): Likewise.
9370 (vsx_st_elemrev_v16qi): Likewise.
9371 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
9374 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
9376 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
9378 (simplify_control_stmt_condition_1): ... here. Recurse into
9379 BIT_AND_EXPRs and BIT_IOR_EXPRs.
9381 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
9384 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
9385 (zero_extendqi<mode>2_dot): Revert earlier conversion from
9386 define_insn_and_split to define_insn.
9387 (zero_extendqi<mode>2_dot2): Same.
9388 (extendqi<mode>2_dot): Same.
9389 (extendqi<mode>2_dot2): Same.
9391 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
9393 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
9394 (probe_stack): New expander.
9395 (probe_stack_<mode>): New insn pattern.
9397 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
9399 * config/i386/i386.md
9400 (operations with memory inputs setting flags peephole2):
9401 Remove uneeded REG_P checks. Cleanup pattern generation.
9403 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
9405 * tree-vect-loop.c (vect_transform_loop): Fix
9406 nb_iterations_upper_bound computation for vectorized loop.
9408 2016-04-29 Marek Polacek <polacek@redhat.com>
9409 Jakub Jelinek <jakub@redhat.com>
9412 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
9413 TARGET_EXPR_SLOT as a base.
9415 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9417 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
9418 with 'rCm2' constraints to limit possible immediate size.
9419 (*load_zeroextendqisi_update): Likewise.
9420 (*load_signextendqisi_update): Likewise.
9421 (*loadhi_update): Likewise.
9422 (*load_zeroextendhisi_update): Likewise.
9423 (*load_signextendhisi_update): Likewise.
9424 (*loadsi_update): Likewise.
9425 (*loadsf_update): Likewise.
9427 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
9429 * config/i386/predicates.md (constm1_operand): Fix comparison.
9431 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
9433 * testsuite/gcc.target/arc/ieee_eq.c: New test.
9435 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
9437 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
9438 remaining SH5 related settings.
9439 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
9440 shmedia_prepare_call_address): Delete.
9441 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
9442 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
9443 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
9444 UNSUPPORTED_SH2A): Remove m5 checks.
9445 (sh_divide_strategy_e): Remove SH5 division strategies.
9446 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
9447 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
9449 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
9451 * config/s390/s390.c (s390_rtx_costs): Update documentation.
9453 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9455 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
9456 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
9458 * config/s390/vector.md ("mov<mode>"): Likewise.
9460 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
9462 * config/s390/constraints.md ("U", "W"): Invoke
9463 s390_mem_constraint with "ZR" and "ZT".
9464 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
9465 addresses when using LRA. Accept also short displacements for S
9466 and T constraints. Do not check for long displacement target for
9467 S and T constraints.
9468 (s390_mem_constraint): Remove handling of U and W constraints.
9469 * config/s390/s390.md (various patterns): Remove the short
9470 displacement constraints (Q and R) if a long displacement
9471 constraint is present. Add longdisp as required CPU capability.
9472 * config/s390/vector.md: Likewise.
9473 * config/s390/vx-builtins.md: Likewise.
9475 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9478 * reload1.c (reload): Call finish_spills before
9479 restarting reload loop. Skip select_reload_regs
9480 if update_eliminables_and_spill returns true.
9482 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
9484 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
9485 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
9486 (umulhisi3_imm): Update predicates and constraint letters.
9487 (umulhisi3_reg): Declare instruction as commutative.
9488 * config/arc/constraints.md (J12, J16): New constraints.
9489 * config/arc/predicates.md (short_unsigned_const_operand): New
9491 (arc_short_operand): Likewise.
9492 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
9494 2016-04-29 Richard Biener <rguenther@suse.de>
9496 PR tree-optimization/13962
9497 PR tree-optimization/65686
9498 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
9499 * tree-ssa-alias.c (ptrs_compare_unequal): New function
9500 using PTA to compare pointers.
9501 * match.pd: Add pattern for pointer equality compare simplification
9502 using ptrs_compare_unequal.
9504 2016-04-29 Richard Biener <rguenther@suse.de>
9506 * stor-layout.c (layout_type): Do not build a pointer-to-element
9509 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
9511 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
9512 Use SWI mode iterator. Use general_reg_operand predicate.
9513 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
9514 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
9517 2016-04-29 Jakub Jelinek <jakub@redhat.com>
9520 * fold-const.c (operand_equal_p): Don't verify hash value equality
9522 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
9525 2016-04-28 Jakub Jelinek <jakub@redhat.com>
9528 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
9529 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
9530 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
9531 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
9532 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
9534 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
9536 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
9537 to info. Don't initialize separate fields to 0. Clean up
9540 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
9542 * config/i386/i386.md (peephole2s for operations with memory inputs):
9543 Use SWI mode iterator.
9544 (peephole2s for operations with memory outputs): Ditto.
9545 Do not check for stack checking probe.
9547 (probe_stack): Remove expander.
9549 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
9550 Andrew Burgess <andrew.burgess@embecosm.com>
9552 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
9553 operands as 32-bits.
9555 2016-04-28 Jason Merrill <jason@redhat.com>
9557 * gdbinit.in: Skip line-map.h.
9559 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
9560 Andrew Burgess <andrew.burgess@embecosm.com>
9562 * config/arc/arc.c (arc_conditional_register_usage): Take
9563 TARGET_RRQ_CLASS into account.
9564 (arc_print_operand): Support printing 'p' and 's' operands.
9565 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
9567 (TARGET_RRQ_CLASS): Define.
9568 (IS_POWEROF2_OR_0_P): Define.
9569 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
9571 (*tst_movb): New define_insn.
9572 (*tst): Avoid recognition if it could prevent '*tst_movb'
9573 combination; replace c/CnL with c/Chs alternative.
9574 (*tst_bitfield_tst): New define_insn.
9575 (*tst_bitfield_asr): New define_insn.
9576 (*tst_bitfield): New define_insn.
9577 (andsi3_i): Add Rrq variant.
9578 (extzv): New define_expand.
9579 (insv): New define_expand.
9580 (*insv_i): New define_insn.
9581 (*movb): New define_insn.
9582 (*movb_signed): New define_insn.
9583 (*movb_high): New define_insn.
9584 (*movb_high_signed): New define_insn.
9585 (*movb_high_signed + 1): New define_split pattern.
9586 (*mrgb): New define_insn.
9587 (*mrgb + 1): New define_peephole2 pattern.
9588 (*mrgb + 2): New define_peephole2 pattern.
9589 * config/arc/arc.opt (mbitops): New option for nps400, uses
9590 TARGET_NPS_BITOPS_DEFAULT.
9591 * config/arc/constraints.md (q): Make register class conditional.
9592 (Rrq): New register constraint.
9593 (Chs): New constraint.
9594 (Clo): New constraint.
9595 (Chi): New constraint.
9596 (Cbf): New constraint.
9597 (Cbn): New constraint.
9598 (C18): New constraint.
9599 (Cbi): New constraint.
9601 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
9603 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
9605 (bitmap_intersection_of_preds): Ditto.
9606 (bitmap_union_of_succs): Ditto.
9607 (bitmap_union_of_preds): Ditto.
9608 * sbitmap.c (do_popcount): Delete.
9609 (BITMAP_DEBUGGING): Delete.
9610 (sbitmap_verify_popcount): Delete.
9611 (sbitmap_alloc): Don't initialize the popcount field.
9612 (sbitmap_alloc_with_popcount): Delete.
9613 (sbitmap_resize): Don't resize the popcount array.
9614 (sbitmap_vector_alloc): Don't initialize the popcount field.
9615 (bitmap_copy): Don't copy the popcount array.
9616 (bitmap_clear): Don't clear the popcount array.
9617 (bitmap_clear): Delete the popcount array handling.
9618 (bitmap_ior_and_compl): Delete the popcount assert.
9619 (bitmap_not): Ditto.
9620 (bitmap_and_compl): Ditto.
9621 (bitmap_and): Delete the popcount array handling.
9622 (bitmap_xor): Ditto.
9623 (bitmap_ior): Ditto.
9624 (bitmap_or_and): Delete the popcount assert.
9625 (bitmap_and_or): Ditto.
9626 (popcount_table): Delete.
9627 (sbitmap_elt_popcount): Delete.
9628 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
9629 (bitmap_set_bit): Delete the popcount assert.
9630 (bitmap_clear_bit): Ditto.
9631 (sbitmap_free): Don't free the popcount array.
9632 (sbitmap_alloc_with_popcount): Delete declaration.
9633 (sbitmap_popcount): Ditto.
9635 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
9636 Andrew Burgess <andrew.burgess@embecosm.com>
9638 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
9639 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
9640 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
9641 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
9642 * config/arc/arc.opt (mcmem): New option.
9643 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
9644 supply length for r/m alternative.
9645 (*extendqisi2_ac): Likewise.
9646 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
9648 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
9649 (movhi_insn): Likewise.
9650 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
9651 (*zero_extendqihi2_i): Add r/Ucm alternative.
9652 (*zero_extendqisi2_ac): Likewise.
9653 (*zero_extendhisi2_i): Likewise.
9654 * config/arc/constraints.md (Uex): New memory constraint.
9655 (Ucm): New define_constraint.
9656 * config/arc/predicates.md (long_immediate_loadstore_operand):
9657 Return 0 for MEM with cmem_address address.
9658 (cmem_address_0): New predicates.
9659 (cmem_address_1): Likewise.
9660 (cmem_address_2): Likewise.
9661 (cmem_address): Likewise.
9663 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
9665 * config/rs6000/rs6000.c (machine_function): Rename
9666 insn_chain_scanned_p to spe_insn_chain_scanned_p.
9667 (rs6000_stack_info): Adjust.
9669 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
9670 Andrew Burgess <andrew.burgess@embecosm.com>
9672 * config/arc/constraints.md (Usd): Convert to define_constraint.
9676 2016-04-28 Jakub Jelinek <jakub@redhat.com>
9679 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
9680 Add new peephole2 where the first insn is *mov<mode>_or instead of
9681 *mov<mode>_internal.
9683 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
9685 * tracer.c (bb_seen): Make static.
9687 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
9689 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
9690 support, setup defaults.
9691 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
9692 * config/arc/arc.c (arc_init): Add NPS400 support.
9693 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
9694 (TARGET_ARC700): NPS400 is also an ARC700.
9695 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
9697 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
9700 * config/nds32/nds32.md (casesi): Don't access the operands array
9703 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
9705 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
9706 (or $-1,reg peephole2): Ditto.
9707 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
9709 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
9711 * doc/extend.texi (Common Function Attributes) [optimize]:
9712 Discourage use of the optimize attribute.
9714 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
9716 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
9717 special case builtin.
9718 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
9719 ALTIVEC_BUILTIN_VEC_ADDE.
9720 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
9721 support for ALTIVEC_BUILTIN_VEC_ADDE.
9722 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
9723 for __builtin_vec_adde.
9725 2016-04-28 Jakub Jelinek <jakub@redhat.com>
9727 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
9728 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
9730 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9733 * doc/sourcebuild.texi (Effective-Target Keywords, Other
9734 attributes): Document cilkplus_runtime.
9736 2016-04-28 Martin Jambor <mjambor@suse.cz>
9738 * tree-cfg.c (verify_expr): Verify that local declarations belong to
9739 this function. Call verify_expr on MEM_REFs and bases of other
9742 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9744 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
9745 for WORD_REGISTER_OPERATIONS to runtime check.
9747 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
9749 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
9751 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
9753 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
9754 big-endian compilation.
9755 * config/arc/arc.md (addf3): Likewise.
9759 2016-04-28 Richard Biener <rguenther@suse.de>
9761 PR tree-optimization/70840
9762 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
9763 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
9764 Mark x * pow(x,c) -> pow(x,c+1) commutative.
9765 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
9767 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9769 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
9770 and explain why in a comment.
9772 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
9774 * config/arc/arc.md (cpu_facility): Add fpx variant.
9775 (subdf3): Prohibit use reverse sub when assist operations option
9777 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
9778 instructions only when FPX is enabled.
9779 * testsuite/gcc.target/arc/trsub.c: New test.
9781 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
9783 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
9784 mult_operator when calculating "type" attribute.
9785 (*fop_<mode>_1_i387): Ditto.
9786 (*fop_xf_1_i387): Ditto.
9787 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
9788 Use std::swap to swap operands. Use RTL expressions to generate
9791 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
9792 Joern Rennecke <joern.rennecke@embecosm.com>
9794 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
9796 (emit_pic_move): Remove.
9797 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
9798 * config/arc/arc.c (emit_pic_move): Removed.
9799 (TARGET_HAVE_TLS): Define.
9800 (arc_conditional_register_usage): Test for arc_tp_regno.
9801 (arc_print_operand, arc_print_operand_address): Handle TLS
9803 (arc_needs_pcl_p): New function.
9804 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
9805 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
9806 (arc_raw_symbolic_reference_mentioned_p): Likewise.
9807 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
9808 (arc_legitimize_tls_address): Likewise.
9809 (DTPOFF_ZERO_SYM): Define.
9810 (arc_legitimize_pic_address): Make it static, handle TLS cases.
9811 (arc_output_pic_addr_const): Print TLS unspecs.
9812 (prepare_pic_move): New function, replaces emit_pic_move.
9813 (arc_legitimate_constant_p): Handle TLS unspecs.
9814 (arc_legitimate_address_p): Likewise.
9815 (arc_rewrite_small_data_p): Use assert for TLS constants.
9816 (prepare_move_operands): Use prepare_pic_move.
9817 (arc_legitimize_address): Legitimize tls addresses.
9818 (arc_epilogue_uses): Check for arc_tp_regno.
9819 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
9820 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
9822 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
9824 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
9825 %(arc_tls_extra_start_spec).
9826 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
9827 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
9829 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
9830 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
9831 (UNSPEC_TLS_OFF): Add.
9833 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
9834 (get_thread_pointersi): New patterns.
9835 * config/arc/arc.opt (mtp-regno): New option.
9836 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
9837 (move_dest_operand): Likewise.
9838 * configure: Regenerate.
9839 * configure.ac: Add arc*-*-* case to test for tls.
9840 * doc/invoke.texi (ARC options): Document mtp-regno.
9842 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
9844 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
9845 the new ARC HS SIMD instructions.
9846 (arc_preferred_simd_mode): New function.
9847 (arc_autovectorize_vector_sizes): Likewise.
9848 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
9849 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9850 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
9851 (arc_init_builtins): Add new SIMD builtin types.
9852 (arc_split_move): Handle 64 bit vector moves.
9853 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
9854 (TARGET_PLUS_QMACW): Define.
9855 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
9856 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
9857 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
9858 (VSUBADD4H): New builtins.
9859 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
9860 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
9862 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
9863 Matthias Klose <doko@debian.org>
9865 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
9867 2016-04-28 Richard Biener <rguenther@suse.de>
9870 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
9873 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
9875 * common/config/sh/sh-common.c: Remove SH5 support.
9876 * config/sh/constraints.md: Likewise.
9877 * config/sh/config/sh/elf.h: Likewise.
9878 * config/sh/linux.h: Likewise.
9879 * config/sh/netbsd-elf.h: Likewise.
9880 * config/sh/predicates.md: Likewise.
9881 * config/sh/sh-c.c: Likewise.
9882 * config/sh/sh-protos.h: Likewise.
9883 * config/sh/sh.c: Likewise.
9884 * config/sh/sh.h: Likewise.
9885 * config/sh/sh.md: Likewise.
9886 * config/sh/sh.opt: Likewise.
9887 * config/sh/sync.md: Likewise.
9888 * config/sh/sh64.h: Delete.
9889 * config/sh/shmedia.h: Likewise.
9890 * config/sh/shmedia.md: Likewise.
9891 * config/sh/sshmedia.h: Likewise.
9892 * config/sh/t-netbsd-sh5-64: Likewise.
9893 * config/sh/t-sh64: Likewise.
9894 * config/sh/ushmedia.h: Likewise.
9896 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
9898 * config/i386/i386.md (sign_extend to memory peephole2s): Use
9899 general_reg_operand instead of register_operand predicate.
9901 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9903 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
9905 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
9907 * match.pd (A - B > A, A + B < A): New transformations.
9909 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
9911 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
9912 which defaults to true. Emit an outer pair of parentheses only if
9913 EMIT_PARENS. When continuing a chain of && or || (or & or |),
9914 don't emit parentheses for the right-hand operand.
9916 2016-04-27 Jeff Law <law@redhat.com>
9918 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
9920 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9922 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
9923 (altivec_lvx_<mode>_internal): Document.
9924 (altivec_lvx_<mode>_2op): New define_insn.
9925 (altivec_lvx_<mode>_1op): Likewise.
9926 (altivec_lvx_<mode>_2op_si): Likewise.
9927 (altivec_lvx_<mode>_1op_si): Likewise.
9928 (altivec_stvx_<mode>): Remove.
9929 (altivec_stvx_<mode>_internal): Document.
9930 (altivec_stvx_<mode>_2op): New define_insn.
9931 (altivec_stvx_<mode>_1op): Likewise.
9932 (altivec_stvx_<mode>_2op_si): Likewise.
9933 (altivec_stvx_<mode>_1op_si): Likewise.
9934 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9935 Expand vec_ld and vec_st during parsing.
9936 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
9938 (altivec_expand_stvx_be): Likewise.
9939 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
9940 address-masking behavior in RTL.
9941 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
9942 address-masking behavior in RTL.
9943 (altivec_expand_builtin): Change builtin code arguments for calls
9944 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
9945 (insn_is_swappable_p): Avoid incorrect swap optimization in the
9946 presence of lvx/stvx patterns.
9947 (alignment_with_canonical_addr): New function.
9948 (alignment_mask): Likewise.
9949 (find_alignment_op): Likewise.
9950 (recombine_lvx_pattern): Likewise.
9951 (recombine_stvx_pattern): Likewise.
9952 (recombine_lvx_stvx_patterns): Likewise.
9953 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
9954 stvx patterns from expand.
9955 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
9957 (vector_altivec_store_<mode>): Likewise.
9959 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
9961 * config/aarch64/aarch64.md
9962 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
9963 remove the "fp" attributes.
9964 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
9965 add the "simd" attributes.
9966 (*movdf_aarch64): Likewise.
9967 (*movtf_aarch64): Remove the "fp" attributes.
9968 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
9969 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
9971 2016-04-27 David Malcolm <dmalcolm@redhat.com>
9973 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
9974 rtx to rtx_code_label *.
9975 * rtl.h (maybe_set_first_label_num): Likewise.
9977 2016-04-27 David Malcolm <dmalcolm@redhat.com>
9979 * df-core.c (df_add_problem): Make the problem param be const.
9980 (df_remove_problem): Make local "problem" be const.
9981 * df-problems.c (problem_RD): Make const.
9982 (problem_LR): Likewise.
9983 (problem_LIVE): Likewise.
9984 (problem_MIR): Likewise.
9985 (problem_CHAIN): Likewise.
9986 (problem_WORD_LR): Likewise.
9987 (problem_NOTE): Likewise.
9988 (problem_MD): Likewise.
9989 * df-scan.c (problem_SCAN): Likewise.
9990 * df.h (struct df_problem): Make field "dependent_problem" be
9992 (struct dataflow): Likewise for field "problem".
9993 (df_add_problem): Make param const.
9995 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
9997 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
9998 inter-unit moves to/from vector registers are enabled. Do not disable
10001 2016-04-27 David Malcolm <dmalcolm@redhat.com>
10003 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
10004 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
10006 (enum df_problem_id): ...this new enum.
10007 (struct df_problem): Convert field "id" from "int" to
10008 enum df_problem_id.
10010 2016-04-27 David Malcolm <dmalcolm@redhat.com>
10012 * rtl.def: Update comment for "things in the instruction chain" to
10013 reflect the removal of the leading "i" field for INSN_UID in
10014 r210360. Fix bogus apostrophe.
10016 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
10018 * config/i386/i386.md
10019 (lea arith with mem operand + setcc peephole2): Set operator mode.
10021 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
10024 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
10025 (dimode_scalar_to_vector_candidate_p): This.
10026 (timode_scalar_to_vector_candidate_p): New function.
10027 (scalar_to_vector_candidate_p): Likewise.
10028 (timode_check_non_convertible_regs): Likewise.
10029 (timode_remove_non_convertible_regs): Likewise.
10030 (remove_non_convertible_regs): Likewise.
10031 (remove_non_convertible_regs): Renamed to ...
10032 (dimode_remove_non_convertible_regs): This.
10033 (scalar_chain::~scalar_chain): Make it virtual.
10034 (scalar_chain::compute_convert_gain): Make it pure virtual.
10035 (scalar_chain::mark_dual_mode_def): Likewise.
10036 (scalar_chain::convert_insn): Likewise.
10037 (scalar_chain::convert_registers): Likewise.
10038 (scalar_chain::add_to_queue): Make it protected.
10039 (scalar_chain::emit_conversion_insns): Likewise.
10040 (scalar_chain::replace_with_subreg): Likewise.
10041 (scalar_chain::replace_with_subreg_in_insn): Likewise.
10042 (scalar_chain::convert_op): Likewise.
10043 (scalar_chain::convert_reg): Likewise.
10044 (scalar_chain::make_vector_copies): Likewise.
10045 (scalar_chain::convert_registers): New pure virtual function.
10046 (class dimode_scalar_chain): New class.
10047 (class timode_scalar_chain): Likewise.
10048 (scalar_chain::mark_dual_mode_def): Renamed to ...
10049 (dimode_scalar_chain::mark_dual_mode_def): This.
10050 (timode_scalar_chain::mark_dual_mode_def): New function.
10051 (timode_scalar_chain::convert_insn): Likewise.
10052 (dimode_scalar_chain::convert_registers): Likewise.
10053 (scalar_chain::compute_convert_gain): Renamed to ...
10054 (dimode_scalar_chain::compute_convert_gain): This.
10055 (scalar_chain::replace_with_subreg): Renamed to ...
10056 (dimode_scalar_chain::replace_with_subreg): This.
10057 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
10058 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
10059 (scalar_chain::make_vector_copies): Renamed to ...
10060 (dimode_scalar_chain::make_vector_copies): This.
10061 (scalar_chain::convert_reg): Renamed to ...
10062 (dimode_scalar_chain::convert_reg ): This.
10063 (scalar_chain::convert_op): Renamed to ...
10064 (dimode_scalar_chain::convert_op): This.
10065 (scalar_chain::convert_insn): Renamed to ...
10066 (dimode_scalar_chain::convert_insn): This.
10067 (scalar_chain::convert): Call convert_registers.
10068 (convert_scalars_to_vector): Change to scalar_chain pointer to
10069 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
10070 in 32-bit mode. Delete scalar_chain pointer. Call
10071 free_dominance_info in 64-bit mode.
10072 (pass_stv::gate): Remove TARGET_64BIT check.
10073 (ix86_option_override): Put the 64-bit STV pass before the CSE
10076 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
10078 * dwarf2out.h (struct dw_loc_descr_node): Remove the
10079 dw_loc_frame_offset field.
10080 * dwarf2out.c (new_loc_descr): Likewise.
10081 (resolve_args_picking_1): Turn the VISITED hash set into a
10082 FRAME_OFFSET hash map. Use it to associate a frame offset to
10083 visited nodes. Remove uses of the CHECKING_P macro.
10084 (resolve_args_picking): Update call to resolve_args_picking_1.
10086 2016-04-27 Martin Liska <mliska@suse.cz>
10088 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
10089 (free_loop_data): Release vuses of groups.
10091 2016-04-27 Bin Cheng <bin.cheng@arm.com>
10093 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
10094 instead of redundant use_id and boolean have_use_for.
10095 (struct iv_use): Change sub_id into group_id. Remove field next.
10096 Move fields: related_cands, n_map_members, cost_map and selected
10098 (struct iv_group): ... here. New structure.
10099 (struct iv_common_cand): Use structure declaration directly.
10100 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
10101 (MAX_CONSIDERED_USES): Rename macro to ...
10102 (MAX_CONSIDERED_GROUPS): ... here.
10103 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
10104 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
10105 (dump_uses): Rename to ...
10106 (dump_groups): ... here. Update all uses.
10107 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
10108 (find_induction_variables): Refactor format of dump information.
10109 (record_sub_use): Delete.
10110 (record_use): Update all uses.
10111 (record_group): New function.
10112 (record_group_use, find_interesting_uses_op): Call above functions.
10114 (find_interesting_uses_cond): Ditto.
10115 (group_compare_offset): New function.
10116 (split_all_small_groups): Rename to ...
10117 (split_small_address_groups_p): ... here. Update all uses.
10118 (split_address_groups): Update all uses.
10119 (find_interesting_uses): Refactor format of dump information.
10120 (add_candidate_1): Update all uses. Remove redundant check on iv,
10122 (add_candidate, record_common_cand): Remove redundant assert.
10123 (add_iv_candidate_for_biv): Update use.
10124 (add_iv_candidate_derived_from_uses): Update all uses.
10125 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
10126 (alloc_use_cost_map): Ditto.
10127 (set_use_iv_cost, get_use_iv_cost): Rename to ...
10128 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
10129 (determine_use_iv_cost_generic): Ditto.
10130 (determine_group_iv_cost_generic): Ditto.
10131 (determine_use_iv_cost_address): Ditto.
10132 (determine_group_iv_cost_address): Ditto.
10133 (determine_use_iv_cost_condition): Ditto.
10134 (determine_group_iv_cost_cond): Ditto.
10135 (determine_use_iv_cost): Ditto.
10136 (determine_group_iv_cost): Ditto.
10137 (set_autoinc_for_original_candidates): Update all uses.
10138 (find_iv_candidates): Update all uses. Refactor dump information.
10139 (determine_use_iv_costs): Ditto.
10140 (determine_iv_costs): Ditto.
10141 (iv_ca_cand_for_use): Rename to ...
10142 (iv_ca_cand_for_group): ... here. Update all uses.
10143 (iv_ca_add_use, iv_ca_add_group): Ditto.
10144 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
10145 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
10146 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
10147 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
10148 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
10149 (create_new_iv, adjust_iv_update_pos): Ditto.
10150 (rewrite_use_address): Delete.
10151 (rewrite_use_address_1): Rename to ...
10152 (rewrite_use_address): ... here.
10153 (rewrite_use_compare): Update all uses.
10154 (rewrite_use): Delete.
10155 (rewrite_uses): Rename to ...
10156 (rewrite_groups): ... here. Update all uses.
10157 (remove_unused_ivs, free_loop_data): Update all uses.
10158 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
10160 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10162 * rtlanal.c (nonzero_bits1): Convert preprocessor check
10163 for WORD_REGISTER_OPERATIONS to runtime check.
10165 2016-04-27 Richard Biener <rguenther@suse.de>
10168 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
10169 aggregate_value_p to determine if a function result is
10170 returned by reference.
10171 (ipa_pta_execute): Functions having their address taken are
10172 not automatically nonlocal.
10174 2016-04-27 Jakub Jelinek <jakub@redhat.com>
10177 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
10178 * fold-const.c (operand_equal_p): If flag_checking and
10179 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
10180 and if it returns non-zero, assert iterative_hash_expr on both
10183 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
10185 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
10187 2016-04-27 Nick Clifton <nickc@redhat.com>
10189 PR middle-end/49889
10190 * varasm.c (merge_weak): Generate an error if an attempt is made
10191 to convert a non-weak static function into a weak, public function.
10193 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10195 * params.def (MAX_PARTITION_SIZE): New param.
10196 * doc/invoke.texi: Document lto-max-partition.
10198 2016-04-27 Richard Biener <rguenther@suse.de>
10201 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
10202 function cummulating used_from_other_partition, externally_visible
10203 and force_output from aliases.
10204 (refered_from_nonlocal_var): Likewise.
10205 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
10206 node flags properly.
10208 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
10210 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
10211 (-Wmemset-elt-size): New item.
10213 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
10216 * stor-layout.h (internal_reference_types): Delete.
10217 * stor-layout.c (reference_types_internal): Likewise.
10218 (internal_reference_types): Likewise.
10219 (layout_type) <REFERENCE_TYPE>: Adjust.
10221 2016-04-27 Jakub Jelinek <jakub@redhat.com>
10224 * tree.h (inchash::add_expr): Add FLAGS argument.
10225 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
10226 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
10227 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
10228 Formatting fix. Adjust recursive calls. For tcc_comparison,
10229 if swap_tree_comparison (code) is smaller than code, hash that
10230 and arguments in the other order. Hash CONVERT_EXPR the same
10231 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
10232 of ADDR_EXPR of decl as the decl itself. Add or remove
10233 OEP_ADDRESS_OF from recursive flags as needed. For
10234 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
10235 operands commutatively and only the third one normally.
10236 For internal CALL_EXPR hash in CALL_EXPR_IFN.
10238 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
10240 * config/rtems.h (LIB_SPEC): Add -latomic.
10242 2016-04-27 Joel Sherrill <joel@rtems.org>
10244 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
10245 xilink.ld and flags not relevant to RTEMS.
10247 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
10249 * toplev.c (backend_init_target): Avoid calling init_reload when using
10252 2016-04-26 Jakub Jelinek <jakub@redhat.com>
10254 * reorg.c (try_merge_delay_insns): Declare i and j inside the
10255 for loops rather than one for the whole function.
10257 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
10259 * match.pd (X + CST CMP X): New transformation.
10261 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
10263 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
10264 * fold-const.c (fold_binary_loc): Remove 2 transformations
10265 superseded by match.pd.
10266 * match.pd (x+x -> x*2): Generalize to integers.
10268 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
10270 * config/i386/i386.md (operation on memory peephole): Duplicate an
10271 existing peephole and adapt it to match lea rather than an operation
10274 PR rtl-optimization/57193
10275 * opts.c (default_options_table): Add OPT_frename_registers at -O2
10277 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
10279 2016-04-26 Bin Cheng <bin.cheng@arm.com>
10281 * tree-if-conv.c (any_pred_load_store): New static variable.
10282 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
10283 any_pred_load_store instead of and_mask_load_store.
10284 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
10285 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
10286 (combine_blocks, tree_if_conversion): Ditto.
10288 2016-04-26 Bin Cheng <bin.cheng@arm.com>
10290 PR tree-optimization/70771
10291 PR tree-optimization/70775
10292 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
10293 virtual PHI nodes. Delete parameter.
10294 (if_convertible_loop_p_1): Delete argument to above function.
10295 (predicate_all_scalar_phis): Delete code handling single-argument
10297 (tree_if_conversion): Mark and update virtual SSA.
10299 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10302 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
10303 (x86_elf_aligned_common): Rename to ...
10304 (x86_elf_aligned_decl_common): ... this.
10305 Add decl arg. Switch to .lbss for largecomm object. Use
10306 LARGECOMM_SECTION_ASM_OP.
10307 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
10309 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
10310 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
10312 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10313 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
10315 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10318 * config/i386/i386.c (SECTION_LARGE): Define.
10319 (x86_64_elf_select_section): Set it for large data/bss sections.
10320 Only clear SECTION_WRITE for .lrodata.
10321 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
10323 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
10324 * varasm.c (default_elf_asm_named_section): Grow flagchars.
10325 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
10327 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
10328 * doc/tm.texi: Regenerate.
10330 2016-04-26 Jakub Jelinek <jakub@redhat.com>
10333 * configure.ac (--enable-checking): Document extra flag, for
10334 non-release builds default to --enable-checking=yes,extra.
10335 If misc checking and extra checking, define CHECKING_P to 2 instead
10337 * common.opt (fchecking=): Add.
10338 * doc/invoke.texi (-fchecking=): Document.
10339 * doc/install.texi: Document --enable-checking changes.
10340 * configure: Regenerated.
10341 * config.in: Regenerated.
10343 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
10345 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
10346 attribute instead of which_alternative.
10347 * config/i386/sse.md (*mov<mode>_internal): Ditto.
10348 Use EXT_REX_SSE_REG_P where appropriate.
10350 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
10352 * config/i386/predicates.md (const0_operand): Do not match
10353 const_wide_int code.
10354 (const1_operand): Ditto.
10356 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
10358 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
10359 for SSE constm1 operands and TARGET_AVX512VL.
10360 (*movti_internal): Ditto.
10361 (*mov<mode>_or): Use constm1_operand predicate.
10362 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
10363 for SSE vector_all_ones operands and TARGET_AVX512VL.
10364 * config/i386/predicates.md (constm1_operand): New predicate.
10365 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
10366 emission of constant -1 load.
10368 2016-04-25 Jason Merrill <jason@redhat.com>
10370 * gdbinit.in: Skip is-a.h.
10372 * attribs.c (register_scoped_attributes): Fix logic.
10373 * attribs.h: Declare register_scoped_attributes.
10375 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10377 * config/rs6000/rs6000-builtin.def: Correct pasto error for
10378 stxvd2x and stxvw4x built-in functions.
10380 2016-04-25 DJ Delorie <dj@redhat.com>
10382 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
10383 (ashrhi3): Likewise.
10384 (lshrhi3): Likewise.
10386 2016-04-25 Richard Biener <rguenther@suse.de>
10388 PR tree-optimization/70780
10389 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
10390 wasn't visited yet.
10391 (compute_antic): Mark blocks with abnormal preds as visited as
10392 they have a final empty antic-in solution already.
10394 2016-04-25 Michael Collison <michael.collison@linaro.org>
10396 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
10398 2016-04-25 Michael Collison <michael.collison@linaro.org>
10400 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
10401 mode is VQI to improve mixed mode vectorization.
10402 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
10403 define_insn to match low half of signed vaddw.
10404 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
10405 define_insn to match high half of signed vaddw.
10406 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
10407 define_insn to match low half of unsigned vaddw.
10408 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
10409 define_insn to match high half of unsigned vaddw.
10410 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
10411 (arm_simd_check_vect_par_cnst_half_p): Likewise.
10412 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
10414 (arm_simd_check_vect_par_cnst_half_p): Likewise.
10415 * config/arm/predicates.md (vect_par_constant_high): Support
10416 big endian and simplify by calling
10417 arm_simd_check_vect_par_cnst_half
10418 (vect_par_constant_low): Likewise.
10420 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
10422 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
10423 predicate for operand 2.
10425 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
10426 H.J. Lu <hongjiu.lu@intel.com>
10428 * config/i386/i386-protos.h (standard_sse_constant_p): Add
10429 machine_mode argument.
10430 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
10431 constm1_rtx operands. For VOIDmode constants, get mode from
10432 pred_mode. Check mode size if the mode is supported by ABI.
10433 (standard_sse_constant_opcode): Do not use standard_constant_p.
10434 Strictly check ABI support for all-ones operands.
10435 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
10436 immediates. Update calls to standard_sse_constant_p.
10437 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
10438 (ix86_rtx_costs): Ditto.
10439 * config/i386/i386.md (*movxi_internal_avx512f): Use
10440 nonimmediate_or_sse_const_operand instead of vector_move_operand.
10441 Use (v,BC) alternative instead of (v,C). Use register_operand
10442 checks instead of MEM_P.
10443 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
10444 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
10445 isa attribute. Use register_operand checks instead of MEM_P.
10446 (*movti_internal): Use nonimmediate_or_sse_const_operand for
10447 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
10448 alternative and corresponding sse2 isa attribute.
10449 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
10450 to standard_sse_constant_p.
10451 (FP constant splitters): Ditto.
10452 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
10454 * config/i386/predicates.md (constm1_operand): Remove.
10455 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
10456 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
10457 vector_all_ones_operand instead of constm1_operand.
10459 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10461 * print-rtl.c (print_rtx_insn_vec): New function.
10462 * print-rtl.h: New prototype.
10463 * store-motion.c (struct st_expr): Make avail_stores a vector.
10464 (st_expr_entry): Adjust.
10465 (free_st_expr_entry): Likewise.
10466 (print_store_motion_mems): Likewise.
10467 (find_moveable_store): Likewise.
10468 (compute_store_table): Likewise.
10469 (delete_store): Likewise.
10470 (build_store_vectors): Likewise.
10472 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10474 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
10476 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10478 * vec.h (vec_safe_contains): New function.
10479 (vec::contains): Likewise.
10480 (vec::begin): Likewise.
10481 (vec::end): Likewise.
10483 2016-04-23 Jakub Jelinek <jakub@redhat.com>
10486 * cfgexpand.c (expand_stack_vars): Fix typo.
10488 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
10490 * system.h (list, map, set, vector): Include conditionally.
10491 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
10492 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
10493 * ipa-icf.c (INCLUDE_LIST): Define.
10494 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
10495 * config/sh/sh.c (INCLUDE_VECTOR): Define.
10496 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
10497 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
10498 * cp/logic.cc (INCLUDE_LIST): Define.
10499 * fortran/trans-common.c (INCLUDE_MAP): Define.
10501 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
10503 * auto-profile.c: Remove <string.h> include.
10504 * ipa-icf-gimple.c: Remove <list> include.
10505 * diagnostic.c: Remove <new> include.
10506 * genmatch.c: Likewise.
10507 * pretty-print.c: Likewise.
10508 * toplev.c: Likewise
10509 * c/c-objc-common.c: Likewise.
10510 * cp/error.c: Likewise.
10511 * fortran/error.c: Likewise.
10513 2016-04-22 Richard Biener <rguenther@suse.de>
10515 * lto-streamer-in.c (input_ssa_names): Do not allocate
10516 GIMPLE_NOP for all SSA names.
10517 * lto-streamer-out.c (output_ssa_names): Do not output
10518 SSA names that should have been released.
10520 2016-04-22 Richard Biener <rguenther@suse.de>
10522 PR tree-optimization/70740
10523 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
10526 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
10529 * config/i386/predicates.md (call_insn_operand): Replace
10530 sibcall_memory_operand with memory_operand.
10532 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
10534 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
10535 has_single_use() tests.
10536 (register_edge_assert_for_1): Likewise.
10537 (find_assert_locations_1): Check the liveness bitmap instead of
10538 checking has_single_use().
10540 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
10543 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
10544 Extract AVX-512BW constraint from AVX.
10546 2016-04-21 Richard Biener <rguenther@suse.de>
10548 PR tree-optimization/70725
10549 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
10550 for phi_convertible_by_degenerating_args.
10551 (predicate_all_scalar_phis): Handle single-argument PHIs.
10553 2016-04-21 Richard Biener <rguenther@suse.de>
10555 PR middle-end/70747
10556 * fold-const.c (fold_comparison): Return properly typed
10559 2016-04-21 Bin Cheng <bin.cheng@arm.com>
10561 PR tree-optimization/70715
10562 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
10563 after expanding BASE using expand_simple_operations.
10565 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
10567 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
10568 New transformations.
10570 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
10572 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
10574 2016-04-20 Jan Hubicka <jh@suse.cz>
10576 * ipa-inline.c (can_inline_edge_p): Pass caller info to
10577 ultiimate_alias_target.
10578 (update_callee_keys): Likewise.
10579 (lookup_recursive_calls): Likewise.
10580 (speculation_useful_p): Likewise.
10582 2016-04-20 Jan Hubicka <jh@suse.cz>
10585 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
10586 (set_nothrow_flag_1): ... this; handle interposition correctly;
10587 recurse on aliases and thunks.
10588 (cgraph_node::set_nothrow_flag): New.
10589 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
10590 functions compiled with non-call exceptions that binds to current
10592 (propagate_nothrow): Be safe WRT interposition.
10593 * cgraph.h (set_nothrow_flag): Update prototype.
10595 2016-04-18 Jan Hubicka <jh@suse.cz>
10597 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
10598 max_loop_iterations_int.
10599 (tree_unswitch_outer_loop): Likewise.
10601 2016-04-20 Bin Cheng <bin.cheng@arm.com>
10603 PR tree-optimization/69489
10604 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
10605 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
10606 Revise dump message.
10607 (if_convertible_bb_p): Remove check on edge count of basic block's
10610 2016-04-20 Bin Cheng <bin.cheng@arm.com>
10612 PR tree-optimization/56625
10613 PR tree-optimization/69489
10614 * tree-data-ref.h (DR_INNERMOST): New macro.
10615 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
10616 hashing struct innermost_loop_behavior.
10617 (ref_DR_map): Remove.
10618 (innermost_DR_map): New map.
10619 (baseref_DR_map): Revise comment.
10620 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
10621 to innermost_DR_map accroding to its innermost loop behavior.
10622 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
10623 to its innermost loop behavior.
10624 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
10625 Add initialization for innermost_DR_map. Record memory reference
10626 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
10627 have innermost loop behavior.
10628 (if_convertible_loop_p): Remove release for ref_DR_map. Release
10631 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
10633 * config/i386/i386.md (*lea<mode>_general_1): Rename from
10634 *lea_general_1. Use explicit SWI12 mode interator.
10635 (*lea<mode>_general_2): Rename from *lea_general_2.
10636 Use explicit SWI12 mode interator.
10637 (*lea<mode>_general_3): Rename from *lea_general_3.
10638 Use explicit SWI12 mode interator.
10639 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
10640 Use explicit SWI12 mode interator.
10641 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
10642 Use explicit SWI48 mode interator.
10644 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
10646 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
10647 Short-cut unaligned load and store cases. Handle all integer
10649 (ix86_expand_vector_move_misalign): Short-cut unaligned load
10650 and store cases. Call ix86_avx256_split_vector_move_misalign
10651 directly without checking mode class.
10653 2016-04-20 Andrew Pinski <apinski@cavium.com>
10654 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10657 * config/aarch64/aarch64.md (sibcall): Force call
10658 address to be DImode for ILP32.
10659 (sibcall_value): Likewise.
10661 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
10663 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
10665 2016-04-20 Richard Biener <rguenther@suse.de>
10667 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
10668 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
10669 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
10670 (maybe_push_res_to_seq): Adjust.
10671 * gimple-fold.c (maybe_build_generic_op): Likewise.
10673 2016-04-20 Marek Polacek <polacek@redhat.com>
10675 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
10678 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
10680 * config/i386/sse.md (vec_unpacks_lo_hi): Always
10681 use kmovw to support AVX512F target.
10683 2016-04-20 Bin Cheng <bin.cheng@arm.com>
10685 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
10687 2016-04-20 Marek Polacek <polacek@redhat.com>
10689 PR tree-optimization/70725
10690 * tree-if-conv.c (is_false_predicate): New function.
10691 (predicate_mem_writes): Use it.
10693 2016-04-20 Richard Biener <rguenther@suse.de>
10695 PR tree-optimization/70726
10696 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
10697 shift amounts from a pattern stmt operand.
10699 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10702 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
10703 stack_restore_from_fpr pattern when restoring r15.
10704 (s390_optimize_prologue): Strip away the memory barrier in the
10705 parallel when trying to get rid of restore insns.
10706 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
10707 definition for loading the stack pointer from an FPR. Compared to
10708 the normal move insn this pattern includes a full memory barrier.
10710 2016-04-19 Jakub Jelinek <jakub@redhat.com>
10712 PR middle-end/70680
10713 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
10714 implicitly linear or lastprivate iterator on the outer context.
10716 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
10718 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
10720 * config/i386/i386.md (ssememalign): Removed.
10721 * config/i386/sse.md: Remove ssememalign attribute from patterns.
10723 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
10726 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
10727 const short * to __builtin_ia32_loaddquhi512_mask.
10728 (_mm512_maskz_loadu_epi16): Likewise.
10729 (_mm512_mask_storeu_epi16): Pass short * to
10730 __builtin_ia32_storedquhi512_mask.
10731 (_mm512_mask_loadu_epi8): Pass const char * to
10732 __builtin_ia32_loaddquqi512_mask.
10733 (_mm512_maskz_loadu_epi8): Likewise.
10734 (_mm512_mask_storeu_epi8): Pass char * to
10735 __builtin_ia32_storedquqi512_mask.
10736 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
10737 const double * to __builtin_ia32_loadupd512_mask.
10738 (_mm512_mask_loadu_pd): Likewise.
10739 (_mm512_maskz_loadu_pd): Likewise.
10740 (_mm512_storeu_pd): Pass double * to
10741 __builtin_ia32_storeupd512_mask.
10742 (_mm512_mask_storeu_pd): Likewise.
10743 (_mm512_loadu_ps): Pass const float * to
10744 __builtin_ia32_loadups512_mask.
10745 (_mm512_mask_loadu_ps): Likewise.
10746 (_mm512_maskz_loadu_ps): Likewise.
10747 (_mm512_storeu_ps): Pass float * to
10748 __builtin_ia32_storeups512_mask.
10749 (_mm512_mask_storeu_ps): Likewise.
10750 (_mm512_mask_loadu_epi64): Pass const long long * to
10751 __builtin_ia32_loaddqudi512_mask.
10752 (_mm512_maskz_loadu_epi64): Likewise.
10753 (_mm512_mask_storeu_epi64): Pass long long *
10754 to __builtin_ia32_storedqudi512_mask.
10755 (_mm512_loadu_si512): Pass const int * to
10756 __builtin_ia32_loaddqusi512_mask.
10757 (_mm512_mask_loadu_epi32): Likewise.
10758 (_mm512_maskz_loadu_epi32): Likewise.
10759 (_mm512_storeu_si512): Pass int * to
10760 __builtin_ia32_storedqusi512_mask.
10761 (_mm512_mask_storeu_epi32): Likewise.
10762 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
10763 char * to __builtin_ia32_storedquqi256_mask.
10764 (_mm_mask_storeu_epi8): Likewise.
10765 (_mm256_mask_loadu_epi16): Pass const short * to
10766 __builtin_ia32_loaddquhi256_mask.
10767 (_mm256_maskz_loadu_epi16): Likewise.
10768 (_mm_mask_loadu_epi16): Pass const short * to
10769 __builtin_ia32_loaddquhi128_mask.
10770 (_mm_maskz_loadu_epi16): Likewise.
10771 (_mm256_mask_loadu_epi8): Pass const char * to
10772 __builtin_ia32_loaddquqi256_mask.
10773 (_mm256_maskz_loadu_epi8): Likewise.
10774 (_mm_mask_loadu_epi8): Pass const char * to
10775 __builtin_ia32_loaddquqi128_mask.
10776 (_mm_maskz_loadu_epi8): Likewise.
10777 (_mm256_mask_storeu_epi16): Pass short * to.
10778 __builtin_ia32_storedquhi256_mask.
10779 (_mm_mask_storeu_epi16): Pass short * to.
10780 __builtin_ia32_storedquhi128_mask.
10781 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
10782 const double * to __builtin_ia32_loadupd256_mask.
10783 (_mm256_maskz_loadu_pd): Likewise.
10784 (_mm_mask_loadu_pd): Pass onst double * to
10785 __builtin_ia32_loadupd128_mask.
10786 (_mm_maskz_loadu_pd): Likewise.
10787 (_mm256_mask_storeu_pd): Pass double * to
10788 __builtin_ia32_storeupd256_mask.
10789 (_mm_mask_storeu_pd): Pass double * to
10790 __builtin_ia32_storeupd128_mask.
10791 (_mm256_mask_loadu_ps): Pass const float * to
10792 __builtin_ia32_loadups256_mask.
10793 (_mm256_maskz_loadu_ps): Likewise.
10794 (_mm_mask_loadu_ps): Pass const float * to
10795 __builtin_ia32_loadups128_mask.
10796 (_mm_maskz_loadu_ps): Likewise.
10797 (_mm256_mask_storeu_ps): Pass float * to
10798 __builtin_ia32_storeups256_mask.
10799 (_mm_mask_storeu_ps): ass float * to
10800 __builtin_ia32_storeups128_mask.
10801 (_mm256_mask_loadu_epi64): Pass const long long * to
10802 __builtin_ia32_loaddqudi256_mask.
10803 (_mm256_maskz_loadu_epi64): Likewise.
10804 (_mm_mask_loadu_epi64): Pass const long long * to
10805 __builtin_ia32_loaddqudi128_mask.
10806 (_mm_maskz_loadu_epi64): Likewise.
10807 (_mm256_mask_storeu_epi64): Pass long long * to
10808 __builtin_ia32_storedqudi256_mask.
10809 (_mm_mask_storeu_epi64): Pass long long * to
10810 __builtin_ia32_storedqudi128_mask.
10811 (_mm256_mask_loadu_epi32): Pass const int * to
10812 __builtin_ia32_loaddqusi256_mask.
10813 (_mm256_maskz_loadu_epi32): Likewise.
10814 (_mm_mask_loadu_epi32): Pass const int * to
10815 __builtin_ia32_loaddqusi128_mask.
10816 (_mm_maskz_loadu_epi32): Likewise.
10817 (_mm256_mask_storeu_epi32): Pass int * to
10818 __builtin_ia32_storedqusi256_mask.
10819 (_mm_mask_storeu_epi32): Pass int * to
10820 __builtin_ia32_storedqusi128_mask.
10821 * config/i386/i386-builtin-types.def (PCSHORT): New.
10822 (PINT64): Likewise.
10823 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
10824 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
10825 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
10826 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
10827 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
10828 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
10829 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
10830 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
10831 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
10832 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
10833 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
10834 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
10835 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
10836 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
10837 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
10838 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
10839 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
10840 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
10841 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
10842 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
10843 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
10844 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
10845 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
10846 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
10847 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
10848 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
10849 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
10850 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
10851 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
10852 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
10853 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
10854 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
10855 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
10856 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
10857 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
10858 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
10859 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
10860 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
10861 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
10862 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
10863 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
10864 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
10865 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
10866 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
10867 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
10868 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
10869 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
10870 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
10871 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
10873 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
10874 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
10876 (ix86_expand_vector_move_misalign): Likewise.
10877 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
10878 to scalar function prototype for unaligned load/store builtins.
10879 (ix86_expand_special_args_builtin): Updated.
10880 * config/i386/sse.md (UNSPEC_LOADU): Removed.
10881 (UNSPEC_STOREU): Likewise.
10882 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
10883 (VI_ULOADSTORE_F_AVX512VL): Likewise.
10884 (ssescalarsize): Handle V4TI, V2TI and V1TI.
10885 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
10886 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
10887 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
10888 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
10889 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
10890 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
10891 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
10892 (<avx512>_storedqu<mode>_mask): Likewise.
10893 (*sse4_2_pcmpestr_unaligned): Likewise.
10894 (*sse4_2_pcmpistr_unaligned): Likewise.
10895 (*mov<mode>_internal): Renamed to ...
10896 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
10897 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
10898 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
10899 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
10901 2016-04-19 Richard Biener <rguenther@suse.de>
10903 PR tree-optimization/70171
10904 * tree-ssa-phiprop.c: Include stor-layout.h.
10905 (phiprop_insert_phi): Handle the aggregate copy case.
10906 (propagate_with_phi): Likewise.
10908 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
10910 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
10911 instead of simplify_gen_subreg (... , 0).
10912 (ix86_delegitimize_address): Ditto.
10913 (ix86_split_divmod): Ditto.
10914 (ix86_split_copysign_const): Ditto.
10915 (ix86_split_copysign_var): Ditto.
10916 (ix86_expand_args_builtin): Ditto.
10917 (ix86_expand_round_builtin): Ditto.
10918 (ix86_expand_special_args_builtin): Ditto.
10919 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
10920 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
10921 (udivmodqi4): Ditto.
10922 (absneg splitters): Ditto.
10923 (*jcc_bt<mode>_1): Ditto.
10925 2016-04-19 Richard Biener <rguenther@suse.de>
10927 PR tree-optimization/70724
10928 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
10929 restoring out from ...
10930 (free_scc_vn): ... here.
10931 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
10932 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
10934 (pass_fre::execute): Restore SSA info.
10936 2016-04-19 Richard Biener <rguenther@suse.de>
10938 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
10939 * gimple-walk.c (walk_gimple_op): Initialize it.
10940 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
10941 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
10942 remapping SSA names of defs.
10943 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
10946 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
10948 PR middle-end/70689
10949 * lra-constraints.c (equiv_substition_p): New.
10950 (process_alt_operands): Use it.
10951 (swap_operands): Swap it.
10952 (curr_insn_transform): Update it.
10954 2016-04-18 Michael Matz <matz@suse.de>
10956 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
10957 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
10958 * tree-core.h (tree_type_common.align): Use bit-field.
10959 (tree_type_common.spare): New.
10960 (tree_decl_common.off_align): Make smaller.
10961 (tree_decl_common.align): Use bit-field.
10963 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
10964 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
10965 (scan_sharing_clauses): Ditto.
10966 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
10967 (omp_finish_file): Ditto.
10968 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
10969 (layout_decl): Ditto.
10970 (relayout_decl): Ditto.
10971 (finalize_record_size): Use SET_TYPE_ALIGN.
10972 (finalize_type_size): Ditto.
10973 (finish_builtin_struct): Ditto.
10974 (layout_type): Ditto.
10975 (initialize_sizetypes): Ditto.
10976 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
10977 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
10978 (lookup_field_for_decl): Use SET_DECL_ALIGN.
10979 (get_chain_field): Ditto.
10980 (get_trampoline_type): Ditto.
10981 (get_nl_goto_field): Ditto.
10982 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
10984 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
10985 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
10986 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
10987 (build_qualified_type): Use SET_TYPE_ALIGN.
10988 (build_aligned_type, build_range_type_1): Ditto.
10989 (build_atomic_base): Ditto.
10990 (build_common_tree_nodes): Ditto.
10991 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
10992 (expand_one_stack_var_at): Ditto.
10993 * coverage.c (build_var): Use SET_DECL_ALIGN.
10994 * except.c (init_eh): Ditto.
10995 * function.c (assign_parm_setup_block): Ditto.
10996 * symtab.c (increase_alignment_1): Ditto.
10997 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
10998 * tree-vect-stmts.c (ensure_base_align): Ditto.
10999 * varasm.c (align_variable): Ditto.
11000 (assemble_variable): Ditto.
11001 (build_constant_desc): Ditto.
11002 (output_constant_def_contents): Ditto.
11004 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
11005 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
11006 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
11007 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
11008 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
11010 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
11013 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
11014 replace %vmovsd with "%vmovq".
11015 (vec_concatv2df): Likewise.
11017 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
11019 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
11020 (*vec_extractv2si_0): Ditto.
11021 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
11022 (zero_extended_scalar_load_operand splitters): Ditto.
11023 (vec_extract splitters): Ditto.
11024 (*vec_extractv4si_0_zext): Ditto.
11025 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
11026 and lowpart_subreg.
11027 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
11028 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
11029 (*sse4_1_extractps): Use lowpart_subreg.
11030 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
11032 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11034 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
11036 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
11037 Mention Solaris 11 packaging changes.
11038 Update gas and gld requirements.
11039 Remove reference to pre-Solaris 10 bug.
11040 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
11042 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
11045 2016-04-17 Jan Hubicka <jh@suse.cz>
11047 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
11048 max_loop_iterations_int.
11050 2016-04-18 Richard Biener <rguenther@suse.de>
11052 PR tree-optimization/43434
11053 * tree-ssa-structalias.c (struct vls_data): New.
11054 (visit_loadstore): Handle all pointer-based accesses.
11055 (compute_dependence_clique): Compute a bitmap of restrict tags
11056 assigned bases and pass it to visit_loadstore.
11058 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
11061 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
11062 armv8.1-a and armv8.1-a+crc.
11064 2016-04-18 Richard Biener <rguenther@suse.de>
11066 PR tree-optimization/70701
11067 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
11068 references after translating through a memcpy.
11070 2016-04-18 Richard Biener <rguenther@suse.de>
11072 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
11073 (compute_antic): ... here. For partial antic use regular
11074 postorder and scrap iteration.
11075 (compute_partial_antic_aux): Remove unused return value.
11076 (init_pre): Do not allocate postorder.
11077 (fini_pre): Do not free postorder.
11079 2016-04-18 Richard Biener <rguenther@suse.de>
11081 PR middle-end/37870
11082 * expmed.c (extract_bit_field_1): Remove broken case
11083 using a wider MODE_INT mode.
11085 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
11087 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
11088 unless compiling with at least GCC-4.8.
11090 2016-04-17 Jan Hubicka <jh@suse.cz>
11093 * graphite.c (graphite_finalize): Update call to
11094 tree_estimate_probability.
11095 * predict.h (tree_estimate_probability): Update prototype.
11097 2016-04-17 Jan Hubicka <jh@suse.cz>
11099 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
11100 (tree_estimate_probability): Likewise.
11101 (pass_profile::execute): Update.
11102 (report_predictor_hitrates): New function.
11103 * profile.c (compute_branch_probabilities): Use it.
11104 * predict.h (report_predictor_hitrates): Declare.
11106 2016-04-17 Jan Hubicka <jh@suse.cz>
11109 * cgraph.h (cgraph_node::set_const_flag,
11110 cgraph_node::set_pure_flag): Update prototype to return bool;
11112 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
11113 of interposable symbol are interposable, too.
11114 (cgraph_set_const_flag_1): Rename to ...
11115 (set_const_flag_1): ... this one; change to self recursive function
11116 instead of call_for_symbol_thunks_and_aliases. Handle correctly
11117 clearnig the flag in all variants and also virtual thunks of const
11118 functions are pure; track if any change was done.
11119 (cgraph_node::set_const_flag): Update.
11120 (struct set_pure_flag_info): New struct.
11121 (cgraph_set_pure_flag_1): Rename to ...
11122 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
11123 rather than pointer encoded flags; track if any changes was done;
11124 handle correctly clearning flag and setting flag of aliases already
11126 (cgraph_node::set_pure_flag): Update.
11127 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
11129 2016-04-17 Tom de Vries <tom@codesourcery.com>
11132 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
11133 backslash in label.
11135 2016-04-17 Tom de Vries <tom@codesourcery.com>
11137 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
11138 '{}<> ' as escape-for-record.
11140 2016-04-17 Tom de Vries <tom@codesourcery.com>
11142 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
11145 2016-04-17 Tom de Vries <tom@codesourcery.com>
11148 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
11149 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
11150 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
11151 * passes.c (finish_optimization_passes): Only call
11152 finish_graph_dump_file if dfi->graph_dump_initialized.
11153 (execute_function_dump, pass_init_dump_file): Use
11154 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
11156 2016-04-17 Tom de Vries <tom@codesourcery.com>
11158 PR tree-optimization/70256
11159 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
11160 (debug_varmap): New function.
11162 2016-04-17 Tom de Vries <tom@codesourcery.com>
11165 * passes.c (pass_manager::register_pass): Propagate pflags.
11167 2016-04-17 Tom de Vries <tom@codesourcery.com>
11170 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
11171 * passes.c (pass_manager::pass_manager): Declare and init p_start in
11172 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
11173 check if it's equal to p_start.
11174 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
11176 2016-04-15 Jan Hubicka <jh@suse.cz>
11179 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
11180 function does not bind to current def.
11181 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
11182 handle conservatively calls to functions that does not need to bind
11184 (check_call): Update call of worse_state.
11185 (ignore_edge_for_nothrow): Update.
11186 (ignore_edge_for_pure_const): Likewise.
11187 (propagate_pure_const): Update calls to worse_state.
11188 (skip_function_for_local_pure_const): Reformat comments.
11190 2016-04-15 Jan Hubicka <jh@suse.cz>
11193 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
11194 (cgraph_node::function_symbol): Likewise.
11195 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
11196 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
11197 (symtab_node::ultimate_alias_target): Add REF parameter.
11198 (symtab_node::binds_to_current_def_p): Declare.
11199 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
11200 (cgraph_node::function_symbol): Likewise.
11201 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
11202 (cgraph_node::get_availability): Likewise.
11203 (cgraph_edge::binds_to_current_def_p): New inline function.
11204 (varpool_node::get_availability): Add REF parameter.
11205 (varpool_node::ultimate_alias_target): Likewise.
11206 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
11207 (symtab_node::binds_to_current_def_p): Likewise.
11208 * varpool.c (varpool_node::get_availability): Likewise.
11210 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
11213 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
11214 Fix mode size check.
11216 2016-04-15 Jakub Jelinek <jakub@redhat.com>
11218 * BASE-VER: Set to 7.0.0.
11220 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
11222 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
11224 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11226 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
11227 architecture revisions.
11229 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
11231 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
11232 * config/i386/i386.c (ix86_using_red_zone): No longer static.
11233 * config/i386/i386.md (stack decrement to push peepholes): Guard
11234 with !x86_using_red_zone ().
11236 2016-04-15 Jakub Jelinek <jakub@redhat.com>
11239 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
11240 to dump_generic_node.
11241 (NIY): Pass also flags to do_niy.
11243 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
11245 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
11246 (simd_clone_vector_of_formal_parm_types)
11247 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
11248 (simd_clone_mangle, simd_clone_create)
11249 (simd_clone_adjust_return_type, create_tmp_simd_array)
11250 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
11251 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
11252 (ipa_simd_modify_function_body, simd_clone_linear_addend)
11253 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
11254 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
11255 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
11256 * omp-simd-clone.c: ... this new file.
11257 (simd_clone_vector_of_formal_parm_types): Make it static.
11258 * Makefile.in (OBJS): Add omp-simd-clone.o.
11260 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
11263 * config/i386/sse.md: Use proper memory operand modifiers.
11266 2016-04-15 Richard Biener <rguenther@suse.de>
11267 Alan Modra <amodra@gmail.com>
11269 PR tree-optimization/70130
11270 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
11271 when alignment stays not the same and no not use the realign
11274 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11277 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
11278 direct move handlers for KFmode. Change TFmode handlers test from
11279 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
11281 2016-04-14 Jakub Jelinek <jakub@redhat.com>
11284 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
11285 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
11286 (inlined_polymorphic_ctor_dtor_block_p): Use it.
11287 * tree-ssa-live.c (remove_unused_scope_block_p): When
11288 in_ctor_dtor_block, avoid discarding not just BLOCKs with
11289 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
11290 block_ultimate_origin is FUNCTION_DECL.
11291 (remove_unused_locals): If current_function_decl is
11292 polymorphic_ctor_dtor_p, pass initial true to
11293 remove_unused_scope_block_p' is_ctor_dtor_block.
11295 2016-04-14 Martin Sebor <msebor@redhat.com>
11300 * doc/extend.texi (Variable Length): Revert.
11302 2016-04-14 Marek Polacek <polacek@redhat.com>
11303 Jan Hubicka <hubicka@ucw.cz>
11306 * tree.c (verify_type): Disable the canonical type of main variant
11309 2016-04-14 Jason Merrill <jason@redhat.com>
11311 * cfgexpand.c, expr.c: Revert previous change.
11313 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
11315 PR middle-end/70643
11316 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
11317 when building a mem ref for the incoming reduction variable.
11319 2016-04-14 Richard Biener <rguenther@suse.de>
11321 PR tree-optimization/70614
11322 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
11323 loop if the evolution dropped to chrec_dont_know.
11324 (interpret_condition_phi): Likewise.
11326 2016-04-14 Richard Biener <rguenther@suse.de>
11328 PR tree-optimization/70623
11329 * tree-ssa-pre.c (changed_blocks): Make global ...
11330 (compute_antic): ... local here. Move and fix worklist
11331 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
11332 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
11333 worklist handling, dump when ANTIC_IN changed.
11334 (compute_partial_antic_aux): Remove worklist handling.
11335 (init_pre): Do not compute post dominators. Add a comment about
11336 the CFG order chosen.
11337 (fini_pre): Do not free post dominators.
11339 2016-04-13 Martin Sebor <msebor@redhat.com>
11344 * doc/extend.texi (Variable Length): Document C++ specifics.
11346 2016-04-13 Jakub Jelinek <jakub@redhat.com>
11349 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
11350 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
11351 eh edges have been purged.
11354 * tree-sra.c (create_access_replacement,
11355 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
11357 * tree-pretty-print.c (dump_fancy_name): New function.
11358 (dump_decl_name, dump_generic_node): Use it.
11360 2016-04-13 Jason Merrill <jason@redhat.com>
11362 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
11363 * expr.c (expand_expr_real_1): Likewise.
11365 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
11367 * config/i386/i386.md (kunpckhi): Swap operands.
11368 (kunpcksi): Likewise.
11369 (kunpckdi): Likewise.
11370 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
11371 (vec_pack_trunc_<mode>): Likewise.
11373 2016-04-13 Jakub Jelinek <jakub@redhat.com>
11376 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
11378 PR middle-end/70633
11379 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
11380 gimplification turns some element into non-constant.
11383 * rtl.h (convert_memory_address_addr_space_1): New prototype.
11384 * explow.c (convert_memory_address_addr_space_1): No longer static,
11385 add NO_EMIT argument and don't call convert_modes if true, pass
11386 it down recursively, remove break after return.
11387 (convert_memory_address_addr_space): Adjust caller.
11388 * simplify-rtx.c (simplify_unary_operation_1): Call
11389 convert_memory_address_addr_space_1 instead of convert_memory_address,
11390 if it returns NULL, don't simplify.
11392 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
11395 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
11397 2016-04-12 Jakub Jelinek <jakub@redhat.com>
11399 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
11400 Bump the upper SIMDLEN limits, so that if the return type or
11401 characteristic type if the return type is void can be passed in
11402 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
11405 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
11408 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
11409 Do not use "=" constraint on an input constraint.
11410 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
11411 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
11412 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
11413 generates (neg (abs ...)) instead of (abs ...).
11415 2016-04-12 Jakub Jelinek <jakub@redhat.com>
11417 PR rtl-optimization/70596
11418 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
11419 just invalidate LRA data and reset them. Adjust dump wording.
11421 2016-04-12 Martin Liska <mliska@suse.cz>
11424 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
11426 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
11428 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11429 max_loop_iterations_int.
11430 (tree_unswitch_outer_loop): Likewise.
11431 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
11432 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
11434 2016-04-12 Tom de Vries <tom@codesourcery.com>
11436 PR tree-optimization/68756
11437 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
11438 instead of new_name.
11440 2016-04-12 Jakub Jelinek <jakub@redhat.com>
11442 PR tree-optimization/70602
11443 * tree-sra.c (generate_subtree_copies): Don't write anything into
11444 constant pool decls.
11446 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
11447 regardless whether there are depend clauses or not.
11449 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11452 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
11453 target attribute and pragma from changing the -mfloat128
11454 and -mfloat128-hardware options.
11456 * doc/extend.texi (Additional Floating Types): Document PowerPC
11457 __float128 restrictions.
11459 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
11462 * config/aarch64/driver-aarch64.c
11463 (aarch64_get_extension_string_for_isa_flags): New.
11464 (arch_extension): Rename to...
11465 (aarch64_arch_extension): ...This.
11466 (ext_to_feat_string): Rename to...
11467 (aarch64_extensions): ...This.
11468 (aarch64_core_data): Keep track of architecture extension flags.
11469 (cpu_data): Rename to...
11470 (aarch64_cpu_data): ...This.
11471 (aarch64_arch_driver_info): Keep track of architecture extension
11473 (get_arch_name_from_id): Rename to...
11474 (get_arch_from_id): ...This, change return type.
11475 (host_detect_local_cpu): Update and reformat for renames, handle
11476 extensions through common infrastructure.
11478 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
11481 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
11482 track of a canonical flag name.
11483 (all_extensions): Likewise.
11484 (arch_to_arch_name): Also track extension flags enabled by the arch.
11485 (all_architectures): Likewise.
11486 (aarch64_parse_extension): Move to here.
11487 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
11489 (aarch64_rewrite_selected_cpu): Update for above change.
11490 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
11491 are handled, such that the single explicit value enabled by an
11492 extension is kept seperate from the implicit values it also enables.
11493 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
11495 (aarch64_parse_extension): New.
11496 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
11497 here to config/aarch64/aarch64-protos.h.
11498 (aarch64_parse_extension): Move from here to
11499 common/config/aarch64/aarch64-common.c.
11500 (aarch64_option_print): Update.
11501 (aarch64_declare_function_name): Likewise.
11502 (aarch64_start_file): Likewise.
11503 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
11504 the canonical flag for extensions.
11505 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
11508 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
11510 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
11513 2016-04-09 Tom de Vries <tom@codesourcery.com>
11515 PR tree-optimization/68953
11516 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
11517 first to last subscript.
11519 2016-04-09 Jakub Jelinek <jakub@redhat.com>
11521 PR tree-optimization/70586
11522 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
11525 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
11529 PR tree-optimization/70373
11530 PR middle-end/70533
11531 PR middle-end/70534
11532 PR middle-end/70535
11533 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
11534 clauses for acc parallel reductions as necessary. Error on those
11536 * omp-low.c (scan_sharing_clauses): Don't install variables which
11537 are used in acc parallel reductions.
11538 (lower_rec_input_clauses): Remove dead code.
11539 (lower_oacc_reductions): Add support for reference reductions.
11540 (lower_reduction_clauses): Remove dead code.
11541 (lower_omp_target): Don't remap variables appearing in acc parallel
11543 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
11545 2016-04-08 Jakub Jelinek <jakub@redhat.com>
11547 PR middle-end/70593
11548 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
11549 with multiple SSA_NAME defs, force the outputs other than first
11550 to be live before calling live_track_process_def on each output.
11552 PR rtl-optimization/70574
11553 * fwprop.c (forward_propagate_and_simplify): Don't add
11554 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
11555 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
11556 paradoxical subregs within *loc.
11558 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
11560 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
11561 -ftree-parallelize-loops={0,1}.
11562 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
11563 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
11564 * config/ia64/hpux.h (LIB_SPEC): Likewise.
11565 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11566 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
11568 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
11571 * asan.c (instrument_derefs): If we get unknown location, extract it
11572 with EXPR_LOCATION.
11573 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
11575 2016-04-08 Tom de Vries <tom@codesourcery.com>
11577 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
11578 implicit firstprivate clause.
11580 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11583 * config/arm/thumb2.md (tst + branch-> lsls + branch
11584 peephole below *orsi_not_shiftsi_si): Require that condition
11585 register is dead after the peephole.
11586 (second peephole after the above): Likewise.
11588 2016-04-08 Alan Modra <amodra@gmail.com>
11591 * builtins.c (fold_builtin_classify): For IBM extended precision,
11592 look at just the high-order double to test for NaN.
11593 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
11594 test just the high double for Inf but both doubles for subnormal
11597 2016-04-07 Jakub Jelinek <jakub@redhat.com>
11599 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
11600 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
11601 node->simdclone->mask_mode != VOIDmode masks.
11602 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
11603 earlier, use it instead of node->simdclone.
11604 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
11605 Set clonei->mask_mode.
11607 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
11610 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
11611 Pass it through to cp_parser_already_scoped_statement.
11612 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
11613 it through to cp_parser_statement.
11614 (cp_parser_statement): Pass IF_P through to
11615 cp_parser_iteration_statement.
11616 (cp_parser_pragma): Adjust call to
11617 cp_parser_iteration_statement.
11619 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
11622 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
11623 resolve a future -Wparentheses warning.
11624 * omp-low.c (scan_sharing_clauses): Likewise.
11625 * tree-parloops.c (eliminate_local_variables): Likewise.
11627 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
11629 PR rtl-optimization/70398
11630 * lra-constraints.c (process_address_1): Check zero scale and code
11631 for reloading with zero scale.
11633 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
11635 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
11636 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
11638 2016-04-06 Jakub Jelinek <jakub@redhat.com>
11640 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
11641 Add support for AVX512F clones, include them by default for
11642 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
11643 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
11646 PR middle-end/70550
11647 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
11648 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
11649 firstprivate clauses.
11650 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
11651 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
11652 (lower_omp_target): Set TREE_NO_WARNING for
11653 non-addressable possibly uninitialized vars which are copied into
11654 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
11656 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
11658 * config/pa/predicates.md (integer_store_memory_operand): Accept
11659 REG+D operands with a large offset when reload_in_progress is true.
11660 (floating_point_store_memory_operand): Likewise.
11662 2016-04-05 Jakub Jelinek <jakub@redhat.com>
11665 * match.pd (nested int casts): Limit to GIMPLE.
11667 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
11670 * ipa-devirt.c (maybe_record_node): Fix comment; use
11671 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
11673 2016-04-05 Jakub Jelinek <jakub@redhat.com>
11675 PR rtl-optimization/70542
11676 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
11677 if there are any uses other than insn or debug insns.
11679 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
11680 Jakub Jelinek <jakub@redhat.com>
11682 PR tree-optimization/70509
11683 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
11684 Shift HOST_WIDE_INT_1U instead of 1.
11686 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
11688 PR tree-optimization/70509
11689 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
11690 of the vector base type for index.
11692 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
11695 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
11697 2016-04-05 Richard Biener <rguenther@suse.de>
11699 PR tree-optimization/70526
11700 * tree-sra.c (build_ref_for_offset): Use prev_base to
11701 extract the alias pointer type.
11703 2016-04-05 Richard Biener <rguenther@suse.de>
11705 * dse.c (struct store_info): Remove alias_set member.
11706 (struct read_info_type): Likewise.
11707 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
11708 spill_deleted, clear_alias_set_lookup): Remove.
11709 (get_group_info): Remove dead base == NULL_RTX case.
11710 (dse_step0): Remove initialization of removed variables.
11711 (delete_dead_store_insn): Reomve alias set dumping.
11712 (free_read_records): Remove alias_set handling.
11713 (canon_address): Remove alias_set_out parameter.
11714 (record_store): Remove spill_alias_set, it's always zero.
11715 (check_mem_read_rtx): Likewise.
11716 (dse_step2): Rename from ...
11717 (dse_step2_nospill): ... this. Adjust.
11718 (scan_stores): Rename from ...
11719 (scan_stores_nospill): ... this.
11720 (scan_reads): Rename from ...
11721 (scan_reads_nospill): ... this.
11722 (scan_stores_spill, scan_reads_spill): Remove.
11723 (dse_step3_scan): Remove for_spills argument which is always false.
11724 (dse_step3): Likewise.
11725 (dse_step5): Rename from ...
11726 (dse_step5_nospill): ... this. Remove alias_set handling.
11727 (rest_of_handle_dse): Adjust.
11729 2016-04-05 Jakub Jelinek <jakub@redhat.com>
11732 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
11733 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
11734 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
11735 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
11737 2016-04-05 Richard Biener <rguenther@suse.de>
11739 PR middle-end/70499
11740 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
11741 non-register type temporaries into SSA.
11743 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
11746 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
11747 calls when sanitizing.
11748 (possible_polymorphic_call_target_p): Fix formatting.
11750 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11751 Jakub Jelinek <jakub@redhat.com>
11753 PR middle-end/70457
11754 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
11755 to ensure a call statement is compatible with a built-in's
11757 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
11760 2016-04-04 Richard Biener <rguenther@suse.de>
11762 PR rtl-optimization/70484
11763 * rtl.h (canon_output_dependence): Declare.
11764 * alias.c (canon_output_dependence): New function.
11765 * dse.c (record_store): Use canon_output_dependence rather
11766 than canon_true_dependence.
11768 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
11771 * cgraph.h (symtab_node::copy_visibility_from): New function.
11772 * symtab.c (symtab_node::copy_visibility_from): New function.
11773 * ipa-visibility.c (optimize_weakref): New function.
11774 (function_and_variable_visibility): Use it.
11776 2016-04-04 Martin Liska <mliska@suse.cz>
11779 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
11780 value that is really in range handled by SBR instruction.
11781 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
11782 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
11783 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
11785 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
11789 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
11790 set, but not for SP_REG operands.
11792 2016-04-02 Martin Sebor <msebor@redhat.com>
11795 * fold-const.c (maybe_nonzero_address): New function.
11796 (fold_comparison): Call it. Fold equality and relational
11797 expressions involving null pointers.
11798 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
11800 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
11802 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
11803 the "Y" constraint (scalar FP 0.0 immediate).
11805 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
11806 Add the "const_double" to the list of operand constraints.
11808 2016-04-01 Jakub Jelinek <jakub@redhat.com>
11810 PR rtl-optimization/70467
11811 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
11812 If low word of the last operand is 0, just emit addition/subtraction
11815 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11818 * config/s390/s390.c (s390_expand_insv): Check for everything
11819 constant instead of just VOIDmode stuff.
11821 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11824 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
11826 2016-04-01 Nathan Sidwell <nathan@acm.org>
11828 * tree.def (TRY_CATCH_EXPR): Correct documentation.
11830 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
11832 PR rtl-optimization/70461
11833 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
11836 2016-03-31 Martin Liska <mliska@suse.cz>
11839 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
11840 a tree value or an immediate integer value to a buffer
11841 that is eventually copied to a BRIG section.
11842 (emit_immediate_operand): Call the function here.
11843 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
11844 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
11845 of class' fields that are removed.
11846 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
11847 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
11848 m_brig_repr_size fields.
11850 2016-03-31 Martin Liska <mliska@suse.cz>
11853 * hsa-gen.c (hsa_function_representation::update_dominance): New
11855 (convert_addr_to_flat_segment): Likewise.
11856 (gen_hsa_memory_set): New alignment argument.
11857 (gen_hsa_ctor_assignment): Likewise.
11858 (gen_hsa_insns_for_single_assignment): Provide alignment
11859 to gen_hsa_ctor_assignment.
11860 (gen_hsa_insns_for_direct_call): Add new argument.
11861 (expand_lhs_of_string_op): New function.
11862 (expand_string_operation_builtin): Likewise.
11863 (expand_memory_copy): New function.
11864 (expand_memory_set): New function.
11865 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
11866 (convert_switch_statements): Change signature.
11867 (generate_hsa): Use a return value of the function.
11868 (pass_gen_hsail::execute): Do not call
11869 convert_switch_statements here.
11870 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
11871 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
11872 (hsa_function_representation::update_dominance): New function.
11874 2016-03-31 Martin Liska <mliska@suse.cz>
11877 * hsa-brig.c (emit_directive_variable): Emit alignment
11878 according to hsa_symbol::m_align.
11879 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
11880 (dump_hsa_symbol): Dump alignment of HSA symbols.
11881 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
11882 (gen_hsa_addr_with_align): New function.
11883 (hsa_bitmemref_alignment): Use newly added function.
11884 (gen_hsa_insns_for_load): Likewise.
11885 (gen_hsa_insns_for_store): Likewise.
11886 (gen_hsa_memory_copy): New argument added.
11887 (gen_hsa_insns_for_single_assignment): Respect
11888 alignment for assignments processed via gen_hsa_memory_copy.
11889 (gen_hsa_insns_for_direct_call): Likewise.
11890 (gen_hsa_insns_for_return): Likewise.
11891 (gen_function_def_parameters): Set default alignment.
11892 * hsa.c (hsa_object_alignment): New function.
11893 (hsa_byte_alignment): Pasted function.
11894 * hsa.h (hsa_symbol::m_align): New field.
11896 2016-03-31 Bin Cheng <bin.cheng@arm.com>
11898 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
11899 scratch field for goto case.
11901 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
11903 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
11905 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
11908 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
11909 (scalar_chain::convert_insn): Call convert_op for reg
11910 moves to handle undefined registers.
11912 2016-03-31 Nathan Sidwell <nathan@acm.org>
11915 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
11916 Assert we don't want to move backwards.
11918 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
11921 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
11923 2016-03-31 Jakub Jelinek <jakub@redhat.com>
11925 PR rtl-optimization/70460
11926 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
11927 with operand from REG_LABEL_OPERAND, instead substitute
11928 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
11929 Don't do anything for REG_NON_LOCAL_GOTO jumps.
11931 2016-03-31 Martin Liska <mliska@suse.cz>
11933 * passes.c (execute_one_pass): Do not call
11934 todo_after for a discarded function.
11936 2016-03-31 Bin Cheng <bin.cheng@arm.com>
11938 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
11939 (no_cost, infinite_cost): Initialize the new field.
11940 (get_computation_cost_at): Record setup cost.
11941 (determine_use_iv_cost_address): Skip cost computation for sub
11942 uses if we can estimate it without losing accuracy.
11944 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
11946 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
11948 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11949 max_loop_iterations_int.
11950 (tree_unswitch_outer_loop): Likewise.
11951 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
11952 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
11954 2016-03-30 Richard Biener <rguenther@suse.de>
11956 PR middle-end/70450
11957 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
11959 2016-03-30 Jakub Jelinek <jakub@redhat.com>
11962 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
11963 in gen_blendm expander.
11965 2016-03-30 Nick Clifton <nickc@redhat.com>
11968 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
11969 case where we are already provided with an SImode SUBREG.
11971 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
11974 * config/i386/i386.c (ix86_expand_epilogue): Properly check
11975 conflict between DRAP register and __builtin_eh_return.
11977 2016-03-30 Michael Matz <matz@suse.de>
11978 Richard Biener <rguenther@suse.de>
11981 * ipa-polymorphic-call.c (struct type_change_info): Change
11982 speculative to an unsigned allowing to limit the work we do.
11983 (csftc_abort_walking_p): New inline function..
11984 (check_stmt_for_type_change): Limit the number of may-defs
11985 skipped for speculative devirtualization to
11986 max-speculative-devirt-maydefs.
11987 * params.def (max-speculative-devirt-maydefs): New param.
11988 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
11990 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
11993 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
11996 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
11998 PR tree-optimization/59124
11999 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
12000 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
12002 2016-03-29 Jeff Law <law@redhat.com>
12004 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
12006 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
12008 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
12011 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
12013 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
12014 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
12015 gcrt0.o if linking dynamically.
12017 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
12020 * ipa-devirt.c (methods_equal_p): New function.
12021 (compare_virtual_tables): Use it.
12022 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
12023 * cgraphclones.c (clone_function_name_1): Use
12024 symbol_table::symbol_suffix_separator.
12025 * coverage.c (build_var): Likewise.
12026 * symtab.c (symbol_table::symbol_suffix_separator): New.
12028 2016-03-29 Jakub Jelinek <jakub@redhat.com>
12030 PR rtl-optimization/70429
12031 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
12032 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
12033 mode != result_mode.
12036 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
12038 PR tree-optimization/70405
12039 * ssa-iterators.h (num_imm_uses): Add missing braces.
12041 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
12043 PR rtl-optimization/68695
12044 * ira-color.c (allocno_copy_cost_saving): New.
12045 (improve_allocation): Use it.
12047 2016-03-29 Richard Henderson <rth@redhat.com>
12049 PR middle-end/70355
12050 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
12052 2016-03-29 Richard Biener <rguenther@suse.de>
12054 PR middle-end/70424
12055 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
12056 use alignment returned by get_pointer_alignment_1 if it is
12057 bigger than BITS_PER_UNIT.
12058 * builtins.c (get_pointer_alignment_1): Do not return true
12059 for alignment extracted from SSA info.
12061 2016-03-28 James Bowman <james.bowman@ftdichip.com>
12063 * config/ft32/ft32.opt (mnodiv): New.
12064 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
12065 * doc/invoke.texi (FT32 Options -mnodiv): New.
12067 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
12070 * config/i386/i386.md (define_split, andn): Fix modes.
12072 2016-03-26 Richard Biener <rguenther@suse.de>
12073 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12076 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
12078 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
12079 as 2nd argument to cl_optimization_restore().
12081 2016-03-25 Richard Henderson <rth@redhat.com>
12084 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
12085 * config/aarch64/aarch64-protos.h: Declare it.
12086 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
12088 2016-03-25 Alan Modra <amodra@gmail.com>
12091 * config/rs6000/constraints.md (j): Simplify.
12092 * config/rs6000/predicates.md (easy_fp_constant): Exclude
12094 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
12095 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
12096 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
12097 in all constraint alternatives.
12098 (movtd_64bit_nodm): Delete "j" constraint alternative.
12100 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
12102 * tree-ssa-propagate.c: Enhance docs for
12103 SSA_PROP_NOT_INTERESTING.
12105 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
12107 * doc/extend.texi: Fix typo in documentation to pure attribute.
12109 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
12112 * config/pa/pa.md (bswapdi2): Use a scratch register.
12114 2016-03-24 Richard Henderson <rth@redhat.com>
12116 PR middle-end/69845
12117 * fold-const.c (extract_muldiv_1): Correct test for multiplication
12120 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
12122 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
12123 using ix86_expand_binary_operator instead of gen_andsi3.
12125 2016-03-24 Richard Biener <rguenther@suse.de>
12127 PR tree-optimization/70396
12128 * tree-vect-stmts.c (vectorizable_comparison): Use
12129 get_vectype_for_scalar_type.
12131 2016-03-24 Richard Biener <rguenther@suse.de>
12133 PR middle-end/70370
12134 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
12135 with register bases.
12137 2016-03-24 Richard Biener <rguenther@suse.de>
12139 PR tree-optimization/70372
12140 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
12141 build_all_ones_cst to also handle vector types correctly.
12143 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
12146 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
12149 2016-03-23 Marek Polacek <polacek@redhat.com>
12152 * doc/invoke.texi: Document -Wignored-attributes.
12154 2016-03-23 Bin Cheng <bin.cheng@arm.com>
12156 PR tree-optimization/69042
12157 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
12158 parameter from 30 to 40.
12160 2016-03-23 Bin Cheng <bin.cheng@arm.com>
12162 PR tree-optimization/69042
12163 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
12164 for use with constant offset stripped in base.
12166 2016-03-23 Richard Biener <rguenther@suse.de>
12168 PR middle-end/70251
12169 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
12170 mode compatibility check.
12171 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
12173 2016-03-23 Jeff Law <law@redhat.com>
12175 PR tree-optimization/64058
12176 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
12178 (struct ssa_conflicts): Move up earlier in the file.
12179 (conflicts_, var_map_): New static variables.
12180 (initialize_conflict_count): New function to initialize the
12181 CONFLICT_COUNT field for each conflict pair.
12182 (compare_pairs): Lazily initialize the conflict count and use it
12183 as the first tie-breaker.
12184 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
12185 and wipe conflicts_ and map_ around the call to qsort. Remove
12186 special case for 2 coalesce pairs.
12187 * bitmap.c (bitmap_count_unique_bits): New function.
12188 (bitmap_count_bits_in_word): New function, extracted from
12190 (bitmap_count_bits): Use bitmap_count_bits_in_word.
12191 * bitmap.h (bitmap_count_unique_bits): Declare it.
12193 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
12196 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
12197 transparent alias chain for decl assembler name.
12198 * config/sol2.c (solaris_assemble_visibility): Likewise.
12200 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12202 * config/arm/arm1020e.md (1020call_op): Reduce reservation
12204 (v10_fdivs): Likewise.
12205 (v10_fdivd): Likewise.
12207 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12210 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
12211 to not call fclose twice on file.
12213 2016-03-23 Jakub Jelinek <jakub@redhat.com>
12215 PR tree-optimization/70354
12216 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
12217 oprnd0 is wider than oprnd1 and there is a cast from the wider
12218 type to oprnd1, mask it with the mask of the narrower type.
12221 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
12222 Optimize TARGET_STV splitters, if high or low word of last argument
12225 2016-03-22 Jeff Law <law@redhat.com>
12228 tree-ssa-threadbackward.c
12229 (fsm_find_control_statement_thread_paths): Correctly distinguish
12230 between old style jump threads vs FSM jump threads.
12232 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
12235 * config/i386/i386.c (scalar_chain::convert_op): Support
12236 uninitialized register usage case.
12238 2016-03-22 Richard Biener <rguenther@suse.de>
12240 PR middle-end/70251
12241 * genmatch.c (gen_transform): Adjust last parameter to a three-state
12243 (capture::gen_transform): ... to change behavior when substituting
12244 a condition into cond or not-cond expr context.
12245 (dt_simplify::gen_1): Adjust.
12246 * gimple-match-head.c: Include gimplify.h for unshare_expr.
12247 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
12248 last change and instead change to
12249 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
12250 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
12252 2016-03-22 Anthony Green <green@moxielogic.com>
12254 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
12255 issue for moxiebox targets.
12256 (CC1PLUS_SPEC): Ditto.
12258 2016-03-22 Richard Biener <rguenther@suse.de>
12260 PR middle-end/70333
12261 * fold-const.c (extract_muldiv_1): Properly perform multiplication
12264 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
12266 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
12268 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
12271 * config/i386/i386.c (def_builtin): Handle
12272 OPTION_MASK_ISA_AVX512VL to be and-ed with other
12274 (const struct builtin_description bdesc_special_args[]):
12275 Remove duplicate ISA bits.
12277 2016-03-22 Jakub Jelinek <jakub@redhat.com>
12280 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
12281 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
12282 in a way that works also for AVX512BW.
12285 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
12286 instead of source if operands[1] is xmm16 and above and
12287 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
12288 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
12291 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
12292 on assign if (*from_p) is a comparison, set it to
12293 TREE_NO_WARNING (*from_p).
12295 2016-03-21 Jakub Jelinek <jakub@redhat.com>
12297 PR middle-end/70326
12298 * lra.c (restore_scratches): Ignore deleted insns.
12300 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
12301 Jakub Jelinek <jakub@redhat.com>
12303 PR tree-optimization/70317
12304 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
12307 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
12310 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
12311 of ix86_expand_move.
12313 (movti): Use general_operand for operand 1 predicate.
12315 2016-03-21 Martin Liska <mliska@suse.cz>
12317 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
12319 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
12321 2016-03-21 Martin Liska <mliska@suse.cz>
12324 * ipa-icf.c (sem_function::parse): Skip static
12325 constructors and destructors.
12327 2016-03-21 Jakub Jelinek <jakub@redhat.com>
12330 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
12331 function-like macro, peek following token(s) if it is followed
12332 by CPP_OPEN_PAREN token with optional padding in between, and
12333 if not, don't treat it like a macro.
12335 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
12336 Alexander Monakov <amonakov@ispras.ru>
12338 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
12339 for the stabs debug format.
12341 2016-03-21 Richard Biener <rguenther@suse.de>
12343 PR tree-optimization/70310
12344 * tree-vect-generic.c (expand_vector_condition): Fold the built
12347 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
12350 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
12351 Block third alternative for AVX-512VL target,
12353 2016-03-21 Martin Liska <mliska@suse.cz>
12356 * hsa-brig.c (emit_function_directives): Mark unemitted
12357 global variables for emission.
12358 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
12359 (get_symbol_for_decl): Likewise.
12360 * hsa.h (struct hsa_symbol): New flag.
12362 2016-03-21 Richard Biener <rguenther@suse.de>
12364 PR tree-optimization/70288
12365 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
12366 we do not estimate unsimplified all-constant conditionals or
12367 switches as optimized away.
12369 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
12371 PR rtl-optimization/69102
12372 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
12373 when we have a readonly dependency context.
12375 2016-03-18 Jeff Law <law@redhat.com>
12377 PR rtl-optimization/70263
12378 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
12379 (update_equiv_regs): When trying to move a store to after the insn
12380 that sets the source of the store, make sure the store occurs after
12381 the insn that sets the source of the store. When successful note
12382 the REG_EQUIV note created in the dump file.
12384 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
12385 Bernd Schmidt <bschmidt@redhat.com>
12387 * doc/extend.texi: Document more potential problems with basic asms.
12389 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
12391 PR rtl-optimization/70278
12392 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
12395 2016-03-18 Jason Merrill <jason@redhat.com>
12397 * calls.c (load_register_parameters): Fix zero size sibcall logic.
12399 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
12401 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
12402 values to 128b regs.
12404 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12406 PR tree-optimization/70252
12407 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
12408 boolean vector has a proper number of elements.
12409 (supportable_narrowing_operation): Likewise.
12411 2016-03-18 Tom de Vries <tom@codesourcery.com>
12414 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
12416 2016-03-18 Jakub Jelinek <jakub@redhat.com>
12418 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
12419 instead of replace_rtx for DEBUG_INSNs.
12421 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12423 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
12424 load type reservations.
12426 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
12429 * config/pa/constraints.md: Revert 2015-02-13 change. Use
12430 define_constraint for "Q" and "T" constraints.
12432 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
12434 Tweak the pipeline model for Exynos M1
12436 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
12439 2016-03-17 David Malcolm <dmalcolm@redhat.com>
12442 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
12443 where one or both locations aren't within a line_map.
12445 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
12448 * opts.c (finish_options): Don't set flag_pie to the default if
12449 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
12452 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
12454 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
12455 true as ALL_REGS argument to replace_rtx.
12457 2016-03-17 Richard Biener <rguenther@suse.de>
12460 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
12463 2016-03-17 Jakub Jelinek <jakub@redhat.com>
12466 * rtl.h (replace_rtx): Add ALL_REGS argument.
12467 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
12468 equality and assert mode is the same, instead of just rtx pointer
12470 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
12471 true as ALL_REGS argument to replace_rtx.
12473 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
12475 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
12476 for boolean vector with vector mode only.
12477 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
12479 2016-03-17 Nick Clifton <nickc@redhat.com>
12482 * config/rx/rx.c (rx_print_integer): Print negative constants in
12485 2016-03-17 Jakub Jelinek <jakub@redhat.com>
12488 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
12490 2016-03-16 Richard Henderson <rth@redhat.com>
12491 Richard Biener <rguenth@suse.de>
12493 PR middle-end/70240
12494 PR middle-end/68215
12496 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
12497 first operand as is_gimple_condexpr.
12499 PR middle-end/70240
12500 PR middle-end/68215
12502 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
12503 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
12504 Do not gimplify the result.
12505 (do_unop): Adjust call to tree_vec_extract.
12506 (do_binop): Likewise.
12507 (do_compare): Likewise.
12508 (do_plus_minus): Likewise.
12509 (do_negate): Likewise.
12510 (expand_vector_condition): Likewise.
12511 (do_cond): Likewise.
12513 2016-03-16 Richard Henderson <rth@redhat.com>
12516 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
12517 (aarch64_classify_address): Use it.
12518 (aarch64_legitimize_address): Force all subexpressions of PLUS
12519 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
12521 2016-03-16 Jakub Jelinek <jakub@redhat.com>
12522 Richard Biener <rguenth@suse.de>
12525 * rtlanal.c (replace_rtx): For REG, if from is a REG,
12526 return to even if only REGNO is equal, and assert
12529 2016-03-11 Jeff Law <law@redhat.com>
12531 PR rtl-optimization/70224
12532 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
12534 2016-03-16 Richard Henderson <rth@redhat.com>
12536 PR middle-end/70199
12537 * function.h (struct function): Add has_forced_label_in_static.
12538 * gimplify.c (force_labels_r): Set it.
12539 * lto-streamer-in.c (input_struct_function_base): Read it.
12540 * lto-streamer-out.c (output_struct_function_base): Write it.
12541 * tree-inline.c (has_label_address_in_static_1): Remove.
12542 (copy_forbidden): Remove fndecl parameter; test
12543 has_forced_label_in_static.
12544 (inline_forbidden_p): Update call to copy_forbidden.
12545 (tree_versionable_function_p): Likewise.
12546 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
12547 (chkp_versioning): Likewise.
12548 * tree-inline.h (copy_forbidden): Update decl.
12550 2016-03-16 Marek Polacek <polacek@redhat.com>
12553 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
12554 function being thunked if the result type doesn't have fixed size.
12555 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
12556 doesn't have fixed size.
12558 2016-03-16 Bin Cheng <bin.cheng@arm.com>
12560 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
12561 reporting malformed loop nest.
12563 2016-03-16 Tom de Vries <tom@codesourcery.com>
12566 * ipa-devirt.c (possible_polymorphic_call_targets): Move
12567 nodes.length () == 1 test to before first nodes[0] access.
12569 2016-03-16 Tom de Vries <tom@codesourcery.com>
12571 PR tree-optimization/68715
12572 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
12573 single_pred_p test.
12575 2016-03-16 Tom de Vries <tom@codesourcery.com>
12577 PR tree-optimization/68809
12578 * graphite-scop-detection.c (same_close_phi_node): Test if result types
12581 2016-03-16 Carlos O'Donell <carlos@redhat.com>
12582 Sandra Loosemore <sandra@codesourcery.com>
12584 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
12585 on leaf attribute. Mention ELF interposition problems.
12587 2016-03-16 Alan Modra <amodra@gmail.com>
12589 PR rtl-optimization/69195
12590 PR rtl-optimization/47992
12591 * ira.c (indirect_jump_optimize): Ignore artificial defs.
12594 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
12597 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
12599 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12601 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
12603 2016-03-15 Jakub Jelinek <jakub@redhat.com>
12605 PR rtl-optimization/70222
12606 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
12607 optimization if mode is different from result_mode, queue up masking
12608 of the result in outer_op. Formatting fix.
12610 PR middle-end/70239
12611 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
12614 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
12616 PR rtl-optimization/69032
12617 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
12618 looping backwards over basic block insns.
12620 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
12623 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
12624 to non-speculative when propagating trap bits.
12626 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
12628 PR rtl-optimization/63384
12629 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
12630 DEBUG_INSN_P insns.
12632 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
12635 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
12636 factored out from ...
12637 (sched_analyze_insn): ... here.
12638 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
12639 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
12640 get_implicit_reg_pending_clobbers in it.
12641 (setup_id_reg_sets): Use setup_id_implicit_regs.
12642 (deps_init_id): Ditto.
12644 2016-03-15 Tom de Vries <tom@codesourcery.com>
12647 * cgraph.c (cgraph_node::get_body): Save, reset and restore
12649 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
12650 execute_function_dump.
12651 (execute_one_pass): Don't dump function if it will be dumped after ipa
12654 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
12656 * genrecog.c (match_pattern_2): If pred is NULL don't call
12657 safe_predicate_mode on it.
12659 2016-03-14 Jakub Jelinek <jakub@redhat.com>
12661 PR middle-end/70219
12662 * lra-constraints.c (delete_move_and_clobber): Change assertion
12663 to also allow dregno == 0.
12665 2016-03-14 Richard Henderson <rth@redhat.com>
12668 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
12669 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
12670 (reassociate_bb): Use optimize_vec_cond_expr; avoid
12671 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
12674 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
12677 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
12679 (lra_create_live_ranges_1): initialize hard register biggest_mode to
12681 * lra-constraints.c (split_reg): For hard regs, try to find the
12682 biggest single-register mode used in the function.
12684 2016-03-14 Richard Biener <rguenther@suse.de>
12686 PR tree-optimization/56365
12687 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
12688 constants to compare against.
12690 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
12693 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
12694 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
12695 (define_split for the GPR case): Use int_reg_operand instead of
12696 gpc_reg_operand for the output.
12698 2016-03-14 Tom de Vries <tom@codesourcery.com>
12700 PR tree-optimization/70045
12701 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
12702 create_empty_if_region_on_edge argument.
12704 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
12706 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
12707 (STACK_CHECK_PROTECT): Likewise.
12708 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
12709 (STACK_CHECK_PROTECT): Likewise.
12710 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
12711 (STACK_CHECK_PROTECT): Likewise.
12712 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
12713 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12714 (STACK_CHECK_PROTECT): Likewise.
12716 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
12718 PR rtl-optimization/69307
12719 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
12720 registers in modes that span more than one register.
12722 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
12725 * lra-constraints.c (delete_move_and_clobber): New.
12726 (remove_inheritance_pseudos): Use it.
12728 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
12731 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
12732 the libcall is LCT_THROW.
12733 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
12734 for the checking routine.
12736 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
12739 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
12740 optimization if we have direct move.
12741 (roundu32<mode>2_fprs): Likewise.
12743 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
12746 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
12748 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
12749 Arguments swapped. All callers changed. Take reg_renumber into
12750 account, and Calculate and compare register ranges for hard regs.
12752 2016-03-11 Jeff Law <law@redhat.com>
12754 PR tree-optimization/70190
12755 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12756 Handle cases where we can not extract the taken edge, even though we
12757 found a constant value.
12759 PR tree-optimization/64058
12760 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
12761 (num_coalesce_pairs): Move up earlier in file.
12762 (find_coalesce_pair): Initialize the INDEX field for each pair
12764 (compare_pairs): No longer sort on the elements in each pair.
12765 Instead break ties with the index of the coalesce pair.
12767 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12770 * config/aarch64/aarch64-protos.h
12771 (aarch64_save_restore_target_globals): New prototype.
12772 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
12773 Call the above when popping pragma.
12774 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
12776 (aarch64_set_current_function): Rewrite using the above.
12778 2016-03-11 Jakub Jelinek <jakub@redhat.com>
12780 PR tree-optimization/70177
12781 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
12782 (extract_ops_from_tree): ... this. In the 2 argument
12783 overload remove _1 suffix.
12784 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
12785 (extract_ops_from_tree): ... this.
12786 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
12788 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
12789 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
12790 extract_ops_from_tree instead of 2 operand one.
12792 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
12794 PR tree-optimization/70013
12795 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
12796 for constant-pool entries.
12798 2016-03-11 Jakub Jelinek <jakub@redhat.com>
12800 PR rtl-optimization/70174
12801 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
12802 followed by gen_lowpart on force_reg instead of just gen_lowpart.
12804 PR tree-optimization/70169
12805 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
12806 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
12809 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
12810 Jakub Jelinek <jakub@redhat.com>
12813 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
12814 of uninitialized values.
12816 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12818 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
12820 ("*trunctddd2"): New pattern definition.
12821 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
12824 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12826 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
12827 definitions for BFP and DFP rounding modes.
12828 ("fixuns_truncdddi2", "fixuns_trunctddi2")
12829 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
12830 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
12831 ("fix_trunctf<mode>2"): Use the new constants instead of magic
12834 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12836 * config/s390/constraints.md: Adjust comment.
12837 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
12838 s390_decompose_addrstyle_without_index.
12839 * config/s390/predicates.md (shift_count_or_setmem_operand):
12840 Rename to setmem_operand.
12841 * config/s390/s390-protos.h
12842 (s390_decompose_shift_count): Rename to
12843 s390_decompose_addrstyle_without_index.
12844 * config/s390/s390.c (s390_decompose_shift_count)
12845 (s390_mem_constraint, print_shift_count_operand)
12846 (print_operand_address, print_operand): Rename
12847 s390_decompose_shift_count to
12848 s390_decompose_addrstyle_without_index and rename
12849 print_shift_count_operand to print_addrstyle_operand troughout the
12851 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
12852 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
12853 Rename shift_count_or_setmem_operand to setmem_operand.
12854 * config/s390/vx-builtins.md ("vec_insert<mode>")
12855 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
12858 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12861 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
12862 Handle overlapping retval and newval.
12864 2016-03-10 Nick Clifton <nickc@redhat.com>
12867 * config/aarch64/aarch64.c
12868 (aarch64_override_options_after_change_1): When forcing
12869 flag_omit_frame_pointer to be true, use a special value that can
12870 be detected if this function is called again, thus preventing
12871 flag_omit_leaf_frame_pointer from being forced to be false.
12873 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12875 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
12876 Set x_flag_omit_leaf_frame_pointer when handling
12877 -momit-leaf-frame-pointer.
12879 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
12882 * cgraph.c (cgraph_node::dump): Dump split_part and
12883 indirect_call_target.
12884 * cgraph.h (cgraph_node): Add indirect_call_target flag.
12885 * ipa.c (has_addr_references_p): Cleanup.
12886 (is_indirect_call_target_p): New.
12887 (walk_polymorphic_call_targets): Do not mark virtuals that may be
12888 called indirectly as local.
12889 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
12891 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
12894 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
12895 on cxa_pure_virtual.
12897 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
12900 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
12902 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
12905 * tree.c (need_assembler_name_p): Only record main variant type names.
12907 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
12910 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
12911 Always define to 0 or 1.
12912 (TARGET_FIX_ERR_A53_843419): New macro.
12913 * config/aarch64/aarch64-elf-raw.h
12914 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
12915 * config/aarch64/aarch64-linux.h: Likewise.
12916 * config/aarch64/aarch64.c
12917 (aarch64_override_options_after_change_1): Do not default
12918 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
12920 (aarch64_attributes): Handle fix-cortex-a53-843419.
12921 (aarch64_can_inline_p): Likewise.
12922 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
12924 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
12925 Jakub Jelinek <jakub@redhat.com>
12927 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
12928 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
12929 DECL_COMMONS if flag_unconstrained_commons is set.
12930 * tree-dfa.c (get_ref_base_and_extent): Likewise.
12931 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
12932 (funconstrained-commons): Document.
12934 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
12936 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
12937 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
12939 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
12941 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
12942 has a proper number of elements.
12944 2016-03-10 Alan Modra <amodra@gmail.com>
12946 PR rtl-optimization/69195
12947 PR rtl-optimization/47992
12948 * ira.c (recorded_label_ref): Delete.
12949 (update_equiv_regs): Return void.
12950 (indirect_jump_optimize): New function.
12951 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
12952 before regstat_compute_ri. Don't rebuild_jump_labels here.
12953 Delete update_regstat.
12955 2016-03-10 Richard Biener <rguenther@suse.de>
12957 PR tree-optimization/70128
12958 * tree-ssa-structalias.c (set_uids_in_ptset): Set
12959 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
12961 2016-03-09 Jakub Jelinek <jakub@redhat.com>
12963 PR tree-optimization/70152
12964 * tree-sra.c (replace_removed_params_ssa_names): Copy over
12965 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
12968 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
12969 instead of gen_sse2_loadlpd.
12970 * config/i386/sse.md (*vec_concatv2df): Rename to...
12971 (vec_concatv2df): ... this.
12973 PR tree-optimization/70127
12974 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
12976 2016-03-09 David Malcolm <dmalcolm@redhat.com>
12980 * diagnostic-show-locus.c (compatible_locations_p): New function.
12981 (layout::layout): Sanitize ranges using compatible_locations_p.
12983 2016-03-09 David Malcolm <dmalcolm@redhat.com>
12987 * diagnostic-show-locus.c (layout_range::layout_range): Replace
12988 location_range param with three const expanded_locations * and a
12990 (layout::layout): Replace call to
12991 rich_location::lazily_expand_location with get_expanded_location.
12992 Extract the range and perform location expansion here, passing
12993 the results to the layout_range ctor.
12994 * diagnostic.c (source_range::debug): Delete.
12995 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
12996 of rich_location::get_expanded_location.
12997 * gcc-rich-location.c (get_range_for_expr): Delete.
12998 (gcc_rich_location::add_expr): Reimplement to avoid the
12999 rich_location::add_range overload that took a location_range,
13000 passing a location_t instead.
13002 2016-03-09 Richard Biener <rguenther@suse.de>
13003 Jakub Jelinek <jakub@redhat.com>
13005 PR tree-optimization/70138
13006 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
13007 Also skip vect_double_reduction_def.
13009 2016-03-09 Jakub Jelinek <jakub@redhat.com>
13012 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
13013 if the operand is "m".
13015 2016-03-09 Nathan Sidwell <nathan@acm.org>
13017 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
13019 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13021 * config/i386/i386.c (processor_target_table): Fix cost table
13022 intialization order for znver1.
13024 2016-03-08 Jakub Jelinek <jakub@redhat.com>
13026 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
13027 - becuase -> because.
13028 * ipa-reference.c (ignore_module_statics): Likewise.
13029 * cgraph.c (cgraph_node::get_body): Likewise.
13030 * ipa-inline.c (early_inliner): Likewise.
13031 * ipa-devirt.c (types_same_for_odr): Likewise.
13032 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
13033 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
13035 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13037 * tree-ssa-math-opts.c: Fix typo in comment.
13039 2016-03-08 Jakub Jelinek <jakub@redhat.com>
13042 * config/i386/i386.c (scalar_chain::make_vector_copies,
13043 scalar_chain::convert_reg): Call end_sequence in between
13044 get_insns and emit_conversion_insns rather than after both
13047 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
13050 * config/i386/i386.h (machine_function): Add
13051 pc_thunk_call_expanded flag.
13052 (ix86_pc_thunk_call_expanded): New define.
13053 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
13054 (*set_got): Rename insn pattern from set_got.
13055 (*set_got_labelled): Rename inst pattern from set_got_labelled.
13056 * config/i386/i386.c (ix86_compute_frame_layout): Use
13057 ix86_pc_thunk_call_expanded to prevent red-zone.
13059 2016-03-07 Martin Jambor <mjambor@suse.cz>
13061 * hsa.h (hsa_get_ctor_statements): Declare.
13062 (hsa_get_dtor_statements): Likewise.
13063 (hsa_get_kernel_dispatch_type): Likewise.
13064 * hsa.c (hsa_get_ctor_statements): New function.
13065 (hsa_get_dtor_statements): Likewise.
13066 (hsa_get_kernel_dispatch_type): Likewise.
13067 * hsa-brig.c (hsa_cdtor_statements): Removed.
13068 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
13069 hsa_get_dtor_statements.
13070 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
13071 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
13073 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
13075 * config/arm/arm-cores.def (cortex-r8): New.
13076 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
13077 * config/arm/arm-tune.md: Likewise.
13078 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
13080 2016-03-07 Martin Sebor <msebor@redhat.com>
13082 PR rtl-optimization/19705
13083 * doc/invoke.texi (Options That Control Optimization): Clarify
13084 -fno-branch-count-reg.
13086 2016-02-26 Richard Biener <rguenther@suse.de>
13087 Jeff Law <law@redhat.com>
13089 PR tree-optimization/69740
13090 * cfghooks.c (remove_edge): Request loop fixups if we delete
13091 an edge that might turn an irreducible loop into a natural
13093 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
13094 Move after definition of loops_state_clear.
13096 2016-03-07 Bin Cheng <bin.cheng@arm.com>
13098 PR rtl-optimization/69052
13099 * rtlanal.c (commutative_operand_precedence): Set higher precedence
13102 2016-03-07 Tom de Vries <tom@codesourcery.com>
13104 PR tree-optimization/70116
13105 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
13106 is_tm_ending stmts and ubsan/asan internal functions.
13107 (find_duplicate): Use it. Don't test is_tm_ending here.
13109 2016-03-07 Richard Biener <rguenther@suse.de>
13111 PR tree-optimization/70115
13112 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
13113 (propagate_constants_for_unrolling): Use replace_uses_by.
13115 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
13117 PR middle-end/69916
13118 * omp-low.c (struct oacc_loop): Add ifns.
13119 (new_oacc_loop_raw): Initialize it.
13120 (finish_oacc_loop): Clear mask & flags if no ifns.
13121 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
13122 (oacc_loop_xform_loop): Add ifns arg & adjust.
13123 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
13125 2016-03-07 Richard Henderson <rth@redhat.com>
13128 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
13129 (insert_value_copy_on_edge): Likewise.
13131 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13133 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
13135 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13138 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
13140 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
13142 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
13144 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
13146 Fix sseimul type attribute.
13147 * config/i386/znver1.md
13148 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
13149 znver1_sseimul_avx256_load) : Fix the type attribute.
13150 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
13151 pipe usage and latency.
13153 2016-03-05 Jakub Jelinek <jakub@redhat.com>
13156 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
13157 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
13160 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
13163 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
13165 PR rtl-optimization/69941
13166 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
13167 the reg share its mode.
13169 2016-03-04 Jeff Law <law@redhat.com>
13171 PR tree-optimization/69196
13172 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13173 If the both SSA_NAMEs are anonymous, then consider them unassociated
13174 and include the PHI in the statement count.
13176 2016-03-05 Tom de Vries <tom@codesourcery.com>
13178 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
13179 construct in oacc routine. Check for oacc region in oacc routine.
13181 2016-03-04 Jakub Jelinek <jakub@redhat.com>
13184 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
13185 2016-02-22 changes, instead don't recurse if RECUR is already true.
13186 Don't change *dynamic_check if RECUR. Adjust recursive caller
13187 to pass true to the new argument.
13188 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
13191 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
13192 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
13194 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
13196 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
13198 PR rtl-optimization/57676
13199 * lra-assigns.c (lra_assign): Guard test for maximum iterations
13200 with flag_checking.
13202 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
13204 * tree-vect-patterns.c (search_type_for_mask): Handle
13205 comparison of booleans.
13207 2016-03-04 Jakub Jelinek <jakub@redhat.com>
13209 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
13213 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
13214 all other ops that have dw_val_class_die_ref operands,
13215 and DW_OP_GNU_entry_value.
13217 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13219 PR rtl-optimization/69904
13220 * config/arm/arm.c (arm_cannot_copy_insn_p):
13221 Return true for load-exclusive instructions.
13223 2016-03-03 Jakub Jelinek <jakub@redhat.com>
13226 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
13227 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
13228 the pattern no matter if it is used just by non-pattern, pattern
13230 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
13231 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
13232 oprnd1 def_stmt is in pattern, don't look through it.
13234 2016-03-03 Marek Polacek <polacek@redhat.com>
13236 PR middle-end/70050
13237 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
13239 2016-03-03 Martin Liska <mliska@suse.cz>
13241 PR tree-optimization/70043
13242 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
13243 previous statement if we see a debug statement.
13245 2016-03-03 Richard Biener <rguenther@suse.de>
13247 PR tree-optimization/55936
13248 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
13249 parameter and guard unsafe equivalence use.
13250 (vrp_evaluate_conditional_warnv_with_ops): Always use
13251 safe equivalences but not via the quadratic compare_names
13254 2016-03-03 Michael Collison <michael.collison@linaro.org>
13257 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
13258 for operand 1 to s_register_operand. Change predicate for operand
13259 2 to arm_not_immediate_operand.
13261 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
13263 * doc/tm.texi: Regenerated.
13265 2016-03-02 Richard Henderson <rth@redhat.com>
13268 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
13269 simplification when all args are positive non-fixed registers.
13271 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13273 * target.def (lra_p): Specify that new ports should use LRA.
13275 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13278 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
13279 gimplify_type_sizes the type they refer to.
13280 (omp_notice_variable): Handle reference vars to VLAs.
13281 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
13282 reference to VLA decls in the second pass instead of first pass.
13284 2016-03-02 Tom de Vries <tom@codesourcery.com>
13286 PR tree-optimization/68659
13287 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
13288 new_expr == NULL_TREE.
13289 (get_new_name): Handle ADDR_EXPR.
13291 2016-03-02 Bin Cheng <bin.cheng@arm.com>
13293 PR rtl-optimization/69052
13294 * loop-invariant.c (canonicalize_address): New function.
13295 (inv_can_prop_to_addr_use): Check validity of address expression
13296 which is canonicalized by above function.
13298 2016-03-02 Alan Modra <amodra@gmail.com>
13301 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
13304 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13307 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
13308 (*movhi_internal): Put mask moves from and to memory separately
13309 from moves from/to GPRs.
13311 2016-03-02 Richard Biener <rguenther@suse.de>
13313 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
13314 GENERIC expressions in GIMPLE.
13316 2016-03-02 Richard Biener <rguenther@suse.de>
13318 * config/i386/i386.c (type_natural_mode): Fix typo.
13320 2016-03-02 Nick Clifton <nickc@redhat.com>
13322 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
13324 2016-03-02 Richard Biener <rguenther@suse.de>
13325 Uros Bizjak <ubizjak@gmail.com>
13328 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
13330 2016-03-02 Richard Biener <rguenther@suse.de>
13332 PR middle-end/67278
13333 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
13335 2016-03-02 Marek Polacek <polacek@redhat.com>
13338 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
13339 "is promoted to" warning.
13341 2016-03-01 DJ Delorie <dj@redhat.com>
13343 * config.gcc: Deprecate mep-*.
13345 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
13347 PR middle-end/70025
13348 * lra-constraints.c (regno_val_use_in): New.
13349 (match_reload): Use it instead of regno_use_in.
13351 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
13353 PR rtl-optimization/70007
13354 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
13355 references present in REG_EQUAL notes attached to non-SET patterns.
13357 2016-03-01 Jeff Law <law@redhat.com>
13359 PR tree-optimization/69196
13360 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13361 Appropriately clamp the number of statements to copy when the
13362 thread path does not traverse a loop backedge.
13364 PR tree-optimization/69196
13365 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13366 Do count some PHIs in the thread path against the insn count. Decrease
13367 final statement count by one as the control statement in the last
13368 block will get removed. Remove special cased code for handling PHIs
13371 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
13374 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
13375 asm dialect alternatives to explicit GOTPCREL calls.
13377 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
13380 * ira.c (do_reload): Issue warning for generic stack checking here...
13381 * reload1.c (reload): ...instead of here and streamline it.
13383 2016-03-01 Nick Clifton <nickc@redhat.com>
13385 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
13387 2016-03-01 Richard Biener <rguenther@suse.de>
13389 PR tree-optimization/69983
13390 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
13391 types and fall back to operand_equal_p.
13393 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13396 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13398 * config/s390/constraints.md ("jm8"): New constraint.
13399 * config/s390/predicates.md ("const_int_8bitset_operand"): New
13401 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
13403 ("*setmem_long<setmem_and>"): New pattern.
13404 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
13406 ("*setmem_long_31z<setmem_and>"): New pattern.
13407 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
13408 New substitution rules with the required attributes.
13411 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13414 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13416 * gensupport.c (process_substs_on_one_elem): Split loop to
13417 complete mark_operands_used_in_match_dup on all expressions in the
13419 (adjust_operands_numbers): Inline into process_substs_on_one_elem
13420 and remove function.
13422 2016-03-01 Richard Biener <rguenther@suse.de>
13424 PR middle-end/70022
13425 * fold-const.c (fold_indirect_ref_1): Fix range checking for
13426 vector BIT_FIELD_REF extract.
13428 2016-03-01 Richard Biener <rguenther@suse.de>
13430 PR tree-optimization/69994
13431 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
13433 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
13435 PR tree-optimization/69956
13436 * tree-vect-stmts.c (supportable_widening_operation): Support
13437 multi-step conversion of boolean vectors.
13438 (supportable_narrowing_operation): Likewise.
13440 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13442 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
13445 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13447 * config/s390/subst.md (DSI_VI): New mode iterator.
13448 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
13449 * config/s390/vector.md ("vec_set<mode>"): Move expander before
13450 the insn definition.
13451 ("*vec_set<mode>"): Change predicate and add alternative to
13452 support only either register or const_int operands as element
13454 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
13456 ("vec_extract<mode>"): New expander.
13457 ("*vec_extract<mode>"): New insn definition supporting reg and
13458 const_int element selectors.
13459 ("*vec_extract<mode>_plus"): New insn definition supporting
13460 reg+const_int element selectors.
13461 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
13462 following expander+insn definition.
13463 ("<vec_shifts_name><mode>3"): New expander.
13464 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
13466 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13468 * config/s390/s390.md ("*tabort_1"): Change predicate to
13469 nonmemory_operand. Add a second alternative to cover
13470 register as well as const int operands.
13471 ("*tabort_1_plus"): New pattern definition.
13473 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13475 * config/s390/s390.md ("*ashrdi3_cc_31")
13476 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
13477 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
13478 Merge insn definitions into ...
13479 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
13480 New pattern definition.
13481 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
13482 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
13483 ("*ashr<mode>3_and"): Merge insn definitions into ...
13484 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
13485 New pattern definition.
13486 * config/s390/subst.md ("addr_style_op_cc_subst")
13487 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
13488 substitutions patterns plus attributes.
13489 Add ashiftrt to SUBST iterator.
13491 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13493 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
13494 op2 to nonmemory_operand.
13495 ("*<shift>di3_31", "*<shift>di3_31_and"):
13496 Merge into single pattern definition ...
13497 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
13498 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
13499 pattern definition ...
13500 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
13501 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
13504 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13506 * config/s390/predicates.md (const_int_6bitset_operand): New
13508 * config/s390/s390.md: Include subst.md.
13509 ("rotl<mode>3"): New expander.
13510 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
13512 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
13513 * config/s390/subst.md: New file.
13515 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13517 * config/s390/s390.md ("op_type", "atype", "length" attributes):
13518 Remove RRR type. It doesn't really exist.
13519 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
13521 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
13522 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
13523 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
13524 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
13525 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
13526 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
13527 `enabled' attribute.
13529 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13531 * gensupport.c (process_substs_on_one_elem): Split loop to
13532 complete mark_operands_used_in_match_dup on all expressions in the
13534 (adjust_operands_numbers): Inline into process_substs_on_one_elem
13535 and remove function.
13537 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
13540 * config/sparc/sparc.c (NWORDS_UP): Rename to...
13541 (CEIL_NWORDS): ...this. Use CEIL macro.
13542 (compute_fp_layout): Adjust to above renaming.
13543 (function_arg_union_value): Likewise.
13544 (sparc_arg_partial_bytes): Likewise.
13545 (sparc_function_arg_advance): Likewise.
13547 2016-02-29 Jeff Law <law@redhat.com>
13549 PR tree-optimization/70005
13550 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
13551 where an object with a boolean range is compared against a value
13554 PR tree-optimization/69999
13555 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
13556 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
13559 2016-02-29 Richard Biener <rguenther@suse.de>
13561 PR tree-optimization/69994
13562 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
13563 (get_unary_op): Look through nop conversions.
13564 (ops_equal_values_p): New function, look for equality diregarding
13566 (eliminate_plus_minus_pair): Use ops_equal_values_p
13567 (repropagate_negates): Do not use get_unary_op here.
13569 2016-02-29 Martin Liska <mliska@suse.cz>
13571 * system.h: Poison ENABLE_CHECKING macro.
13573 2016-02-29 Martin Liska <mliska@suse.cz>
13575 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
13576 is presented in dump flags.
13577 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
13578 (hsa_regalloc): Likewise.
13580 2016-02-19 Richard Biener <rguenther@suse.de>
13582 PR tree-optimization/69980
13583 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
13584 permutation of those we need to keep.
13586 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
13589 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
13590 (NWORDS_UP): ...this
13591 (init_cumulative_args): Minor tweaks.
13592 (sparc_promote_function_mode): Likewise.
13593 (scan_record_type): Delete.
13594 (traverse_record_type): New function template.
13595 (classify_data_t): New structure type.
13596 (classify_registers): New inline function.
13597 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
13598 exhausted. Instantiate traverse_record_type on classify_registers and
13599 deal with the case of a structure passed in slot #15 with no FP field
13601 (assign_data_t): New structure type.
13602 (compute_int_layout): New static function.
13603 (compute_fp_layout): Likewise.
13604 (count_registers): New inline function.
13605 (assign_int_registers): New static function.
13606 (assign_fp_registers): Likewise.
13607 (assign_registers): New inline function.
13608 (function_arg_record_value_1): Delete.
13609 (function_arg_record_value_2): Likewise.
13610 (function_arg_record_value_3): Likewise.
13611 (function_arg_record_value): Adjust to above changes. Instantiate
13612 traverse_record_type on count_registers to first count the number of
13613 registers to be used and then on assign_registers to assign them.
13614 (function_arg_union_value): Adjust to above renaming.
13615 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
13616 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
13617 case of a structure passed in slot #15
13618 (sparc_function_arg_advance): Likewise.
13619 (function_arg_padding): Minor tweak.
13621 2016-02-29 Richard Biener <rguenther@suse.de>
13623 PR tree-optimization/69720
13624 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
13625 the adjustment_def path for possibly vectorized defs.
13626 (vect_create_epilog_for_reduction): Handle vectorized initial
13629 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
13631 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
13633 2016-02-27 Jeff Law <law@redhat.com>
13636 2016-02-26 Richard Biener <rguenther@suse.de>
13637 Jeff Law <law@redhat.com>
13639 PR tree-optimization/69740
13640 * cfghooks.c (remove_edge): Request loop fixups if we delete
13641 an edge that might turn an irreducible loop into a natural
13644 2016-02-27 Jakub Jelinek <jakub@redhat.com>
13646 PR rtl-optimization/69896
13647 * tree-vect-generic.c (get_compute_type): Avoid single element
13650 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
13652 Rename the AArch64 tuning option and related functions to enable the
13653 Newton series for the reciprocal square root to reflect its
13654 approximative characteristic.
13656 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
13657 function to "aarch64_emit_approx_rsqrt".
13658 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
13659 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
13660 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
13661 (xgene1_tunings): Likewise.
13662 (use_rsqrt_p): Likewise.
13663 (aarch64_emit_swrsqrt): Use new function name.
13664 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
13665 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
13666 text explaining this option.
13667 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
13669 2016-02-26 Jakub Jelinek <jakub@redhat.com>
13672 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13673 complain about -mallow-movmisalign without -mvsx if
13674 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
13676 2016-02-26 Joel Sherrill <joel@rtems.org>
13678 * config.gcc: Add x86_64-*-rtems*.
13679 * config/i386/rtems-64.h: New file.
13681 2016-02-26 Joel Sherrill <joel@rtems.org>
13683 * config.gcc: Add aarch64-*-rtems*.
13684 * config/aarch64/rtems.h: New file.
13686 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
13689 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
13690 shift amount using %h. Add comment.
13692 2016-02-26 Richard Biener <rguenther@suse.de>
13693 Jeff Law <law@redhat.com>
13695 PR tree-optimization/69740
13696 * cfghooks.c (remove_edge): Request loop fixups if we delete
13697 an edge that might turn an irreducible loop into a natural
13700 2016-02-26 Martin Jambor <mjambor@suse.cz>
13702 PR middle-end/69920
13703 * tree-sra.c (sra_modify_assign): Do not remove loads of
13704 uninitialized aggregates to SSA_NAMEs.
13706 2016-02-26 Richard Henderson <rth@redhat.com>
13709 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
13710 pseudo in case the target rtx matches the source of the left
13713 2016-02-26 Martin Jambor <mjambor@suse.cz>
13716 * hsa.h (hsa_type_packed_p): Declare.
13717 * hsa.c (hsa_type_packed_p): New function.
13718 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
13720 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
13721 * hsa-brig.c (emit_basic_insn): Likewise.
13723 2016-02-26 Martin Jambor <mjambor@suse.cz>
13726 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
13728 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
13730 2016-02-26 Martin Jambor <mjambor@suse.cz>
13732 * hsa.h (is_a_helper): New overload for hsa_op_immed for
13733 hsa_op_with_type operands.
13734 (hsa_unsigned_type_for_type): Declare.
13735 * hsa.c (hsa_unsigned_type_for_type): New function.
13736 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
13737 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
13738 the finalizer. Do not emit extra move.
13740 2016-02-26 Martin Jambor <mjambor@suse.cz>
13742 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
13743 atomic operations in private segment.
13745 2016-02-26 Martin Jambor <mjambor@suse.cz>
13747 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
13748 statements to wi->info. Also disallow omp simd constructs.
13749 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
13750 for not gridifying. Dump special string for omp_for.
13752 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13755 * config/aarch64/aarch64.c (aarch64_set_current_function):
13756 Save/restore target globals when switching to
13757 target_option_default_node.
13759 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13762 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
13763 Return 0 if !SHIFT_COUNT_TRUNCATED.
13765 2016-02-26 Jakub Jelinek <jakub@redhat.com>
13766 Eric Botcazou <ebotcazou@adacore.com>
13768 PR rtl-optimization/69891
13769 * dse.c (scan_insn): If we can't figure out memset arguments
13770 or they are non-constant, call clear_rhs_from_active_local_stores.
13772 2016-02-26 Martin Liska <mliska@suse.cz>
13774 * doc/extend.texi: Mention clog10, clog10f an clog10l
13775 in Builtins section.
13777 2016-02-26 Martin Liska <mliska@suse.cz>
13779 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
13781 (resolve_args_picking_1): Likewise.
13782 * dwarf2out.h (struct GTY): Likewise.
13784 2016-02-26 Martin Liska <mliska@suse.cz>
13786 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
13787 with flag_checking.
13788 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
13790 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
13791 Martin Liska <mliska@suse.cz>
13793 * doc/install.texi: Mention --enable-valgrind-annotations.
13795 2016-02-26 Richard Biener <rguenther@suse.de>
13797 PR tree-optimization/69551
13798 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
13799 looking through aliases adjust DECL_PT_UID to refer to the
13800 ultimate alias target.
13802 2016-02-25 Martin Liska <mliska@suse.cz>
13804 PR middle-end/69919
13805 * alloc-pool.c (after_memory_report): New variable.
13806 * alloc-pool.h (base_pool_allocator ::release): Do not use
13807 the infrastructure if after_memory_report.
13808 * toplev.c (toplev::main): Mark after memory report.
13810 2016-02-25 Richard Biener <rguenther@suse.de>
13812 PR tree-optimization/48795
13813 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
13815 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
13818 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
13819 offloading is enabled and -fopenacc or -fopenmp is specified.
13820 (CRTOFFLOADEND): Likewise.
13821 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
13822 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
13823 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
13824 (offload_objects_file_name): New static var.
13825 (tool_cleanup): Remove offload_objects_file_name file.
13826 (find_offloadbeginend): Replace with ...
13827 (find_crtoffloadtable): ... this.
13828 (run_gcc): Remove offload_argc and offload_argv.
13829 Get offload_objects_file_name from -foffload-objects=... option.
13830 Read names of object files with offload from this file, pass them to
13831 compile_images_for_offload_targets. Don't call find_offloadbeginend and
13832 don't pass offloadbegin and offloadend to the linker. Don't pass
13833 offload non-LTO files to the linker, because now they're not claimed.
13835 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
13838 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
13839 on builtin_unreachable.
13841 2016-02-25 Jakub Jelinek <jakub@redhat.com>
13843 PR rtl-optimization/69896
13844 * regcprop.c: Include cfgrtl.h.
13845 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
13846 than remembered mode, either delete it (if noop_move_p), or
13847 treat like copy_p but not noop_p instruction.
13849 2016-02-24 Jakub Jelinek <jakub@redhat.com>
13852 * dwarf2out.c (gen_variable_die): Work around buggy LTO
13853 - allow NULL decl for Fortran DW_TAG_common_block variables.
13855 2016-02-24 Jason Merrill <jason@redhat.com>
13857 * common.opt (flifetime-dse): Add -flifetime-dse=1.
13859 2016-02-24 Richard Biener <rguenther@suse.de>
13860 Jakub Jelinek <jakub@redhat.com>
13862 PR middle-end/69760
13863 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
13864 conditionally executed ops to well-defined overflow behavior.
13866 2016-02-24 Jakub Jelinek <jakub@redhat.com>
13868 PR middle-end/69915
13869 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
13872 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13874 PR rtl-optimization/69886
13875 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
13876 argument. Use it when checking validity of set instructions.
13877 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
13878 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
13880 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
13881 * store-motion.c (find_moveable_store): Update
13882 can_assign_to_reg_without_clobbers_p callsite.
13884 2016-02-24 Richard Biener <rguenther@suse.de>
13886 PR middle-end/68963
13887 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
13889 (record_nonwrapping_iv): Do not fall back to the low/high bound
13890 for non-constant IV bases if the stmt is not always executed.
13892 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13894 * config/arm/arm-cores.def (cortex-a32): New entry.
13895 * config/arm/arm-tables.opt: Regenerate.
13896 * config/arm/arm-tune.md: Regenerate.
13897 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
13898 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
13899 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
13900 for -mcpu and -mtune.
13902 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13905 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
13906 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
13907 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
13908 (atomic_loaddi_1): Delete.
13909 (atomic_loaddi): Rewrite expander using the above changes.
13911 2016-02-24 Jakub Jelinek <jakub@redhat.com>
13914 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
13917 2016-02-24 Jakub Jelinek <jakub@redhat.com>
13918 Richard Biener <rguenth@suse.de>
13920 PR middle-end/69909
13921 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
13922 set_mem_attributes if tem is SSA_NAME which got expanded
13925 2016-02-24 Richard Biener <rguenther@suse.de>
13927 PR tree-optimization/69907
13928 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
13929 end of permutations for BB vectorization.
13931 2016-02-24 Christian Bruel <christian.bruel@st.com>
13933 * config/arm/arm-c.c (arm_option_override): Initialize
13934 target_option_current_node.
13935 * config/arm/arm.c (arm_pragma_target_parse): Replace
13936 build_target_option_node call by target_option_current_node.
13937 Set target_option_current_node.
13940 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
13943 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
13944 define_insn_and_split to define_insn.
13945 (zero_extendqi<mode>2_dot2): Same.
13946 (extendqi<mode>2_dot): Same.
13947 (extendqi<mode>2_dot2): Same.
13949 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
13951 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
13952 and add bypass for AES{D,E} and AESMC pairs.
13953 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
13956 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
13958 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
13959 series for reciprocal square root in Exynos M1.
13961 2016-02-23 Martin Sebor <msebor@redhat.com>
13964 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
13965 __builtin_alloca_with_align.
13967 2016-02-23 Richard Henderson <rth@redhat.com>
13969 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
13970 (ix86_register_pragmas): Remove __seg_tls.
13971 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
13972 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
13973 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
13974 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
13975 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
13976 * doc/extend.texi (__seg_tls): Remove item.
13978 2016-02-23 Richard Biener <rguenther@suse.de>
13980 * alloc-pool.h (struct allocation_object): Make id member
13981 conditional on CHECKING_P again.
13982 (get_instance): Adjust.
13983 (base_pool_allocator): Likewise.
13985 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
13987 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
13988 (parallelize_loops): In OpenACC kernels mode, set n_threads to
13990 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
13992 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
13994 2016-02-23 Richard Biener <rguenther@suse.de>
13996 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
13997 * bitmap.h (struct bitmap_usage): Likewise.
13998 (bitmap_move): Declare.
13999 * bitmap.c (register_overhead): Take size_t argument.
14000 (bitmap_move): New function.
14001 * df-problems.c (df_rd_transfer_function): Use bitmap_move
14002 to properly account overhead.
14003 * tree.c (free_node): Use tree_size.
14005 2016-02-23 Jakub Jelinek <jakub@redhat.com>
14008 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
14009 when inverting comparison.
14012 * common.opt (Wunreachable-code): Add Warning flag.
14014 2016-02-23 Mark Wielaard <mjw@redhat.com>
14015 Jakub Jelinek <jakub@redhat.com>
14018 * cgraphunit.c (check_global_declaration): Check main_input_filename
14019 and DECL_SOURCE_FILE are not NULL.
14021 2016-02-23 Martin Jambor <mjambor@suse.cz>
14023 PR tree-optimization/69666
14024 * tree-sra.c (sra_modify_assign): Do not attempt to create
14025 default_def replacements for unscalarizable regions.
14027 2016-02-20 Mark Wielaard <mjw@redhat.com>
14030 * cgraphunit.c (check_global_declaration): Check level of
14031 warn_unused_const_variable and main_input_filename.
14032 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
14033 (-Wunused-variable): For C implies -Wunused-const-variable=1.
14034 (-Wunused-const-variable): Explain levels 1 and 2.
14036 2016-02-22 Jakub Jelinek <jakub@redhat.com>
14039 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
14040 identical arguments. Formatting and spelling fixes.
14043 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
14048 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
14049 and m68k-devices.def.
14050 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
14051 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
14053 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
14055 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
14056 and HImode registers.
14058 2016-02-22 Richard Biener <rguenther@suse.de>
14060 PR tree-optimization/69882
14061 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
14062 preserve permutations present because of gaps.
14063 (vect_supported_load_permutation_p): Always continue checking
14064 permutations after vect_attempt_slp_rearrange_stmts.
14066 2016-02-22 Bin Cheng <bin.cheng@arm.com>
14068 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
14069 min_profitable_estimate, rather than min_profitable_iters.
14071 2016-02-22 Jakub Jelinek <jakub@redhat.com>
14074 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
14075 SImode for last match_operand.
14077 2016-02-22 Martin Liska <mliska@suse.cz>
14079 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
14080 return bitsize - 1 as the return value.
14082 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
14086 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
14087 Handle negative shift counts.
14088 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
14089 force_reg on the shift constant.
14090 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
14091 (lshrsi3_d): Handle negative shift counts.
14093 2016-02-22 Richard Biener <rguenther@suse.de>
14094 Tom de Vries <tom@codesourcery.com>
14096 * graph.c: Include dumpfile.h.
14097 (print_graph_cfg): Split into three overloads.
14098 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
14100 2016-02-22 Tom de Vries <tom@codesourcery.com>
14102 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
14105 2016-02-22 Richard Biener <rguenther@suse.de>
14108 * ipa-inline-transform.c (inline_call): When not updating
14109 overall summaries adjust self size by the growth estimate.
14110 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
14111 hash-set, do not update overall summaries here. Renamed from ...
14112 (inline_to_all_callers): ... this which is now wrapping the
14113 above and performing delayed overall summary update.
14114 (early_inline_small_functions): Delay updating of the overall
14117 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
14119 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
14122 2016-02-19 Jakub Jelinek <jakub@redhat.com>
14125 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
14126 :%* in %:gt() argument.
14127 (greater_than_spec_func): Adjust for expecting only numbers,
14128 if there are more than two numbers, compare the last two.
14130 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
14132 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
14133 -Wnarrowing with -std.
14135 2016-02-19 Jakub Jelinek <jakub@redhat.com>
14138 * expr.c (store_field): Don't use bit-field path if exp is
14139 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
14140 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
14141 and the assignment can be performed by bitwise copy. Formatting
14144 PR middle-end/69838
14145 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
14146 call copy_reg_eh_region_note_forward on before and/or after sequences
14147 and remove note from insn if it no longer can throw.
14150 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
14151 if TARGET_AVX512BW.
14153 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14155 * config/s390/vector.md: Add missing commutative operand markers
14156 to the patterns which qualify for one.
14157 * config/s390/vx-builtins.md: Likewise.
14159 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14161 * config/s390/vector.md (VI, VI_QHS): Add single element vector
14162 types to mode iterators.
14163 (vec_double): ... and mode attribute.
14164 * config/s390/vx-builtins.md (non_vec_int): Likewise.
14166 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14168 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
14169 Change the predicate of op2 from nonimmediate to general and let
14170 reload fix it if necessary.
14172 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14174 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
14176 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14178 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
14181 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14183 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
14184 * config/s390/s390.c (s390_expand_vec_movstr): New function.
14185 * config/s390/s390.md ("movstr<P:mode>"): Call
14186 s390_expand_vec_movstr.
14188 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14190 * config/s390/s390.md: Add missing output modifier for operand 1
14191 to print it as address properly.
14193 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14195 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
14196 * config/s390/2964.md: New file.
14197 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
14198 of insn grouping attributes depending on the CPU level.
14199 (s390_get_unit_mask): New function.
14200 (s390_sched_score): Remove the OOO from the scheduling macros.
14201 Add loop to calculate a score for the instruction mix.
14202 (s390_sched_reorder): Likewise plus improve debug output.
14203 (s390_sched_variable_issue): Rename macros as above. Calculate
14204 the unit distances after actually scheduling an insn. Improve
14206 (s390_sched_init): Clear last_scheduled_unit_distance array.
14207 * config/s390/s390.md: Include 2964.md.
14209 2016-02-18 Jakub Jelinek <jakub@redhat.com>
14212 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
14213 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
14214 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
14215 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
14216 *avx512f_<code>v8div16qi2_mask_1): New insns.
14218 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14221 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
14224 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
14225 earlyclobber from target. Use wF constraint for fused memory
14227 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
14229 2016-02-18 Jakub Jelinek <jakub@redhat.com>
14230 Martin Liska <mliska@suse.cz>
14233 * cfgexpand.c (asan_sanitize_stack_p): New function.
14234 (partition_stack_vars): Use the function.
14235 (expand_stack_vars): Likewise.
14236 (defer_stack_allocation): Likewise.
14237 (expand_used_vars): Likewise.
14239 2016-02-18 Richard Biener <rguenther@suse.de>
14241 PR middle-end/69553
14242 * fold-const.c (operand_equal_p): Properly compare offsets for
14243 IMAGPART_EXPR and ARRAY_REF.
14245 2016-02-18 Nick Clifton <nickc@redhat.com>
14249 * config/arm/arm.c (arm_option_override_internal): Disable
14250 interworking if the target does not support thumb instructions.
14251 (arm_reload_in_hi): Handle the case where a register to register
14252 move needs reloading because there is no simple pattern to handle
14254 (arm_reload_out_hi): Likewise.
14256 2016-02-18 Richard Biener <rguenther@suse.de>
14258 PR middle-end/69854
14259 * match.pd: Don't use fold_binary or fold_unary for folding
14262 2016-02-17 Jakub Jelinek <jakub@redhat.com>
14265 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
14266 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
14267 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
14268 warn on gimple_no_warning_p statements.
14270 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
14272 * doc/extend.texi (C++ Attributes): Correct description of
14273 warn_unused type attribute.
14275 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14277 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
14278 correct instruction.
14280 2016-02-17 Richard Biener <rguenther@suse.de>
14282 PR rtl-optimization/69609
14283 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
14284 (find_traces_1_round): When ending a trace update cached priority
14286 (bb_to_key): Use cached priority when available.
14287 (copy_bb): Initialize cached priority.
14288 (reorder_basic_blocks_software_trace_cache): Likewise.
14290 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14293 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
14295 (aarch64_comparison_operator): Break overly long line into two.
14296 (aarch64_comparison_operation): Likewise.
14297 * config/aarch64/aarch64.md (cstorecc4): Use
14298 aarch64_comparison_operator_mode instead of
14299 aarch64_comparison_operator.
14300 (cstore<mode>4): Likewise.
14301 (aarch64_cstore<mode>): Likewise.
14302 (*cstoresi_insn_uxtw): Likewise.
14303 (cstore<mode>_neg): Likewise.
14304 (*cstoresi_neg_uxtw): Likewise.
14306 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14309 * config/arm/predicates.md (arm_comparison_operator_mode):
14311 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
14312 instead of arm_comparison_operator.
14313 (*mov_negscc): Likewise.
14314 (*mov_notscc): Likewise.
14315 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
14316 (*thumb2_mov_negscc): Likewise.
14317 (*thumb2_mov_negscc_strict_it): Likewise.
14318 (*thumb2_mov_notscc): Likewise.
14319 (*thumb2_mov_notscc_strict_it): Likewise.
14321 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
14323 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
14324 Add missing return.
14326 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
14328 * config/visium/visium.c (machine_libfunc_index): New enum.
14329 (machine_libfuncs): New structure.
14330 (visium_libfuncs): New static variable.
14331 (TARGET_INIT_LIBFUNCS): Define to...
14332 (visium_init_libfuncs): ...this. New function.
14333 (expand_block_move_4): Use the appropriate libfunc.
14334 (expand_block_move_2): Likewise.
14335 (expand_block_move_1): Likewise.
14336 (expand_block_set_4): Likewise.
14337 (expand_block_set_2): Likewise.
14338 (expand_block_set_1): Likewise.
14339 (visium_trampoline_init): Likewise.
14341 2016-02-17 Nick Clifton <nickc@redhat.com>
14343 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
14344 TI's devices.csv file as of March 2016.
14346 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
14349 * opts-global.c (handle_common_deferred_options): Introduce and
14350 initialize two global variables to remember command-line options
14351 specifying a stack-limiting register.
14352 * opts.h: Add extern declarations of the two new global variables.
14353 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
14354 variable based on the values of the two new global variables.
14356 2016-02-16 Jakub Jelinek <jakub@redhat.com>
14359 * common.opt (Wnonnull-compare): New warning.
14360 * doc/invoke.texi (-Wnonnull): Remove text about comparison
14361 of arguments against NULL.
14362 (-Wnonnull-compare): Document.
14363 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
14364 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
14365 * passes.def (pass_warn_nonnull_compare): Add.
14366 * gimple-ssa-nonnull-compare.c: New file.
14368 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
14370 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
14371 AARCH64_EXTRA_TUNE_RECIP_SQRT.
14373 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
14375 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
14376 reciprocal sqrt for -mlow-precision-recip-sqrt.
14378 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
14379 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14381 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
14382 always use lane loads to construct non-constant vectors.
14384 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
14386 * config/aarch64/aarch64.md
14387 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
14388 constraints for operand 3.
14389 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
14391 2016-02-16 Jakub Jelinek <jakub@redhat.com>
14392 Richard Biener <rguenther@suse.de>
14394 PR tree-optimization/69820
14395 * tree-vect-patterns.c (type_conversion_p): Return false if
14396 *orig_type is unsigned single precision or boolean.
14397 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
14400 2016-02-16 Jakub Jelinek <jakub@redhat.com>
14402 PR rtl-optimization/69764
14403 PR rtl-optimization/69771
14404 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
14405 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
14407 2016-02-16 Richard Biener <rguenther@suse.de>
14409 PR tree-optimization/69776
14410 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
14412 (indirect_refs_may_alias_p): Likewise.
14413 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
14414 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
14415 according to tbaa_p.
14416 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
14417 (optimize_stmt): For redundant store discovery do not allow tbaa.
14419 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
14421 PR tree-optimization/69714
14422 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
14423 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
14425 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
14427 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
14428 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
14429 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
14430 * config/arc/arc.c (arc_init): Check FPU options.
14431 (get_arc_condition_code): Handle new CC_FPU* modes.
14432 (arc_select_cc_mode): Likewise.
14433 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
14434 register pair only. Allow access for ARCv2 accumulator.
14435 (gen_compare_reg): Whenever we have FPU support use FPU compare
14437 (arc_reorg): Don't generate brcc insns when FPU compare
14438 instructions are involved.
14439 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
14440 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
14441 floating point emulation.
14442 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
14443 (REVERSE_CONDITION): Add new CC_FPU* modes.
14444 (TARGET_FP_SP_BASE): Define.
14445 (TARGET_FP_DP_BASE): Likewise.
14446 (TARGET_FP_SP_FUSED): Likewise.
14447 (TARGET_FP_DP_FUSED): Likewise.
14448 (TARGET_FP_SP_CONV): Likewise.
14449 (TARGET_FP_DP_CONV): Likewise.
14450 (TARGET_FP_SP_SQRT): Likewise.
14451 (TARGET_FP_DP_SQRT): Likewise.
14452 (TARGET_FP_DP_AX): Likewise.
14453 * config/arc/arc.md (ARCV2_ACC): New constant.
14454 (type): New fpu type attribute.
14455 (SDF): Conditional iterator.
14456 (cstore<mode>, cbranch<mode>): Change expand condition.
14457 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
14458 handles FPU/FPX cases as well.
14459 * config/arc/arc.opt (mfpu): New option.
14460 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
14462 (adddf3, muldf3, subdf3): Removed.
14463 * config/arc/predicates.md (proper_comparison_operator): Recognize
14465 * config/arc/fpu.md: New file.
14466 * doc/invoke.texi (ARC Options): Document mfpu option.
14468 2016-02-16 Richard Biener <rguenther@suse.de>
14470 PR rtl-optimization/69291
14471 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
14472 noce_operand_ok check.
14474 2016-02-16 Tom de Vries <tom@codesourcery.com>
14477 * omp-low.c (simd_clone_create): Remove call to
14478 symtab->call_cgraph_insertion_hooks.
14480 2016-02-16 Jakub Jelinek <jakub@redhat.com>
14482 PR tree-optimization/69802
14483 * tree-ssa-reassoc.c (update_range_test): If op is
14484 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
14485 op == 1 test of precision 1 integral op, otherwise handle
14486 that case as op itself. Fix up formatting.
14487 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
14490 2016-02-16 Richard Biener <rguenther@suse.de>
14492 PR tree-optimization/69586
14493 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
14494 types for conversion sources.
14496 2016-02-16 Richard Biener <rguenther@suse.de>
14498 PR middle-end/69801
14499 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
14500 mask OEP_ADDRESS_OF.
14502 2016-02-16 Alan Modra <amodra@gmail.com>
14505 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
14506 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
14507 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
14509 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
14510 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
14511 (p8_fmrgow_<mode>): Likewise.
14512 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
14514 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
14515 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
14516 to use movdi_internal64. Remove op0_di.
14517 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
14519 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
14521 Add support for the FCCMP insn types
14523 * config/aarch64/aarch64.md (fccmp): Change insn type.
14524 (fccmpe): Likewise.
14525 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
14526 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
14527 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
14528 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
14529 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
14530 * config/arm/types.md (fccmps): Add new insn type.
14531 (fccmpd): Likewise.
14533 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
14535 * alias.c (get_alias_set): Fix a typo in comment.
14537 2016-02-15 Richard Biener <rguenther@suse.de>
14539 PR tree-optimization/69595
14540 * match.pd: Complete range test simplification to true.
14542 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
14544 PR rtl-optimization/69648
14545 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
14546 pic_offset_table_rtx.
14548 PR rtl-optimization/69752
14549 * ira.c (update_equiv_regs): When looking for more than a single SET,
14550 also take other side effects into account.
14552 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
14554 * config/s390/s390.c (s390_function_profiler): Add a new sequence
14555 for z900+ CPUs in 31-bit mode.
14557 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
14559 * common/config/s390/s390-common.c (s390_supports_split_stack):
14561 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
14562 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
14563 * config/s390/s390.c (struct machine_function): New field
14564 split_stack_varargs_pointer.
14565 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
14566 in s390_emit_prologue.
14567 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
14569 (morestack_ref): New global.
14570 (SPLIT_STACK_AVAILABLE): New macro.
14571 (s390_expand_split_stack_prologue): New function.
14572 (s390_live_on_entry): New function.
14573 (s390_va_start): Use split-stack vararg pointer if appropriate.
14574 (s390_asm_file_end): Emit the split-stack note sections.
14575 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
14576 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
14577 (UNSPECV_SPLIT_STACK_CALL): New unspec.
14578 (UNSPECV_SPLIT_STACK_DATA): New unspec.
14579 (split_stack_prologue): New expand.
14580 (split_stack_space_check): New expand.
14581 (split_stack_data): New insn.
14582 (split_stack_call): New expand.
14583 (split_stack_call_*): New insn.
14584 (split_stack_cond_call): New expand.
14585 (split_stack_cond_call_*): New insn.
14587 2016-02-15 Richard Biener <rguenther@suse.de>
14589 PR tree-optimization/69783
14590 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
14591 Add trivially correct cases.
14593 2016-02-15 Tom de Vries <tom@codesourcery.com>
14596 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
14598 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
14600 2016-02-15 Richard Biener <rguenther@suse.de>
14602 PR tree-optimization/69776
14603 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
14604 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
14605 indicate whether we can use TBAA to disambiguate against stores.
14606 Use alias-set zero if not.
14607 (visit_reference_op_store): Do not use TBAA when looking up
14609 * tree-ssa-pre.c (compute_avail): Use TBAA here.
14610 (eliminate_dom_walker::before_dom_children): But not when looking
14611 up redundant stores.
14613 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
14615 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
14617 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14619 * config/i386/znver1.md
14620 (znver1_pop, znver1_pop_mem,
14621 znver1_load_imov_double_store,
14622 znver1_load_imov_direct_store,
14623 znver1_load_imov_direct_load,
14624 znver1_load_imov_double_load): Add new.
14625 (znver1_insn, znver1_insn_load): Add icmov type.
14626 (znver1_sseavx_fma,
14627 znver1_sseavx_fma_load,
14629 znver1_avx256_fma_load): Fix pipe usage.
14631 2016-02-14 Alan Modra <amodra@gmail.com>
14634 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
14635 with an invalid hard reg, reload just the reg not the entire
14636 pre/post-inc/dec address expression.
14638 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
14641 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
14642 fixed R1_REG scratch reg.
14643 (sibcall_value_pcrel_fdpic): Likewise.
14645 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
14649 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
14651 2016-02-12 Walter Lee <walt@tilera.com>
14653 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
14654 * config/tilegx/t-tilegx: Likewise.
14656 2016-02-12 David Malcolm <dmalcolm@redhat.com>
14659 * diagnostic-show-locus.c (struct line_span): New struct.
14660 (layout::get_first_line): Delete.
14661 (layout::get_last_line): Delete.
14662 (layout::get_num_line_spans): New member function.
14663 (layout::get_line_span): Likewise.
14664 (layout::print_heading_for_line_span_index_p): Likewise.
14665 (layout::get_expanded_location): Likewise.
14666 (layout::calculate_line_spans): Likewise.
14667 (layout::m_first_line): Delete.
14668 (layout::m_last_line): Delete.
14669 (layout::m_line_spans): New field.
14670 (layout::layout): Update comment. Replace m_first_line and
14671 m_last_line with m_line_spans, replacing their initialization
14672 with a call to calculate_line_spans.
14673 (diagnostic_show_locus): When printing source lines and
14674 annotations, rather than looping over a single span
14675 of lines, instead loop over each line_span within
14676 the layout, with an inner loop over the lines within them.
14677 Call the context's start_span callback when changing line spans.
14678 * diagnostic.c (diagnostic_initialize): Initialize start_span.
14679 (diagnostic_build_prefix): Break out the building of the location
14680 part of the string into...
14681 (diagnostic_get_location_text): ...this new function, rewriting
14682 it from nested ternary expressions to a sequence of "if"
14684 (default_diagnostic_start_span_fn): New function.
14685 * diagnostic.h (diagnostic_start_span_fn): New typedef.
14686 (diagnostic_context::start_span): New field.
14687 (default_diagnostic_start_span_fn): New prototype.
14689 2016-02-12 David Malcolm <dmalcolm@redhat.com>
14692 * gcc.c (driver::finalize): Fix cleanup of "specs".
14694 2016-02-12 David Malcolm <dmalcolm@redhat.com>
14698 * gcc.c (driver::driver): Initialize m_option_suggestions.
14699 (driver::~driver): Clean up m_option_suggestions.
14700 (suggest_option): Convert to...
14701 (driver::suggest_option): ...this, and split out into
14702 driver::build_option_suggestions and find_closest_string.
14703 (driver::build_option_suggestions): New function, from
14704 first half of suggest_option. Special-case
14705 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
14706 the sanitizer_opts array. For options of enum types, add the
14707 various enum values to the candidate strings.
14708 (driver::handle_unrecognized_options): Remove "const".
14709 * gcc.h (driver::handle_unrecognized_options): Likewise.
14710 (driver::build_option_suggestions): New decl.
14711 (driver::suggest_option): New decl.
14712 (driver::m_option_suggestions): New field.
14713 * opts-common.c (add_misspelling_candidates): New function.
14714 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
14715 and make non-static.
14716 * opts.h (sanitizer_opts): New array decl.
14717 (add_misspelling_candidates): New function decl.
14718 * spellcheck.c (find_closest_string): New function.
14719 * spellcheck.h (find_closest_string): New function decl.
14721 2016-02-12 Jakub Jelinek <jakub@redhat.com>
14723 PR rtl-optimization/69764
14724 PR rtl-optimization/69771
14725 * optabs.c (expand_binop_directly): For shift_optab_p, force
14726 convert_modes with VOIDmode if xop1 has VOIDmode.
14728 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
14731 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
14732 to correctly determine instrumentation thunks.
14734 2016-02-12 Jakub Jelinek <jakub@redhat.com>
14737 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
14738 type by reference, force lhs on the call.
14741 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
14742 Compute retval and retbnd early in all cases if split_part_return_p
14743 and return_bb is not EXIT. Remove all clobber stmts and reset
14744 all debug stmts that refer to SSA_NAMEs defined in split part,
14745 except if it is retval, in that case replace the old retval with the
14746 lhs of the call to the split part.
14748 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
14751 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
14753 PR middle-end/66726
14754 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
14755 whose result is used in PHI.
14756 (maybe_optimize_range_tests): Likewise.
14757 (final_range_test_p): Likweise.
14759 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
14761 PR middle-end/66726
14762 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
14763 whose result is used in PHI.
14764 (maybe_optimize_range_tests): Likewise.
14765 (final_range_test_p): Likweise.
14767 2016-02-12 Jakub Jelinek <jakub@redhat.com>
14769 * cgraph.c: Spelling fixes - behaviour -> behavior and
14770 neighbour -> neighbor.
14771 * target.def: Likewise.
14772 * sel-sched.c: Likewise.
14773 * config/mips/mips.c: Likewise.
14774 * config/arc/arc.md: Likewise.
14775 * config/arm/cortex-a57.md: Likewise.
14776 * config/arm/arm.c: Likewise.
14777 * config/arm/neon.md: Likewise.
14778 * config/arm/arm-c.c: Likewise.
14779 * config/vms/vms-c.c: Likewise.
14780 * config/s390/s390.c: Likewise.
14781 * config/i386/znver1.md: Likewise.
14782 * config/i386/i386.c: Likewise.
14783 * config/ia64/hpux-unix2003.h: Likewise.
14784 * config/msp430/msp430.md: Likewise.
14785 * config/rx/rx.c: Likewise.
14786 * config/rx/rx.md: Likewise.
14787 * config/aarch64/aarch64-simd.md: Likewise.
14788 * config/aarch64/aarch64.c: Likewise.
14789 * config/nvptx/nvptx.c: Likewise.
14790 * config/bfin/bfin.c: Likewise.
14791 * config/cris/cris.opt: Likewise.
14792 * config/rs6000/rs6000.c: Likewise.
14793 * target.h: Likewise.
14794 * spellcheck.c: Likewise.
14795 * ira-build.c: Likewise.
14796 * tree-inline.c: Likewise.
14797 * builtins.c: Likewise.
14798 * lra-constraints.c: Likewise.
14799 * explow.c: Likewise.
14800 * hwint.h: Likewise.
14801 * targhooks.c: Likewise.
14802 * tree-vect-data-refs.c: Likewise.
14803 * expr.c: Likewise.
14804 * doc/tm.texi: Likewise.
14805 * doc/extend.texi: Likewise.
14806 * doc/install.texi: Likewise.
14807 * doc/md.texi: Likewise.
14808 * tree-ssa-tail-merge.c: Likewise.
14809 * sched-int.h: Likewise.
14810 * match.pd: Likewise.
14811 * sched-ebb.c: Likewise.
14812 * target.def (omit_struct_return_reg): Likewise.
14813 * gimple-ssa-isolate-paths.c: Likewise.
14814 (find_implicit_erroneous_behaviour): Renamed to...
14815 (find_implicit_erroneous_behavior): ... this.
14816 (find_explicit_erroneous_behaviour): Renamed to...
14817 (find_explicit_erroneous_behavior): ... this.
14818 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
14820 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
14822 PR rtl-optimization/64682
14823 PR rtl-optimization/69567
14824 PR rtl-optimization/69737
14825 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
14826 in I2 as well, just lose it.
14828 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14830 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
14832 (aarch64_last_printed_tune_string): Likewise.
14833 (aarch64_declare_function_name): Only output .arch assembler
14834 directive if it will be different from the previously output
14835 directive. Same for .tune comment but only if -dA is set.
14836 (aarch64_start_file): New function.
14837 (TARGET_ASM_FILE_START): Define.
14839 2016-02-11 David Malcolm <dmalcolm@redhat.com>
14842 * Makefile.in (PLUGIN_HEADERS): Add params.list.
14844 2016-02-11 Jakub Jelinek <jakub@redhat.com>
14847 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
14848 -Wmaybe-uninitialized warning.
14850 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
14853 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
14855 2016-02-11 Richard Biener <rguenther@suse.de>
14857 PR rtl-optimization/69291
14858 * ifcvt.c (noce_try_store_flag_constants): Do not allow
14859 subexpressions affected by changing the result.
14861 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
14864 * lra-constraints.c (curr_insn_transform): Find in/out operands
14865 for secondary memory moves. Update dups.
14867 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
14869 PR tree-optimization/69652
14870 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
14871 to nested loop, did source re-formatting, skip debug statements,
14872 add check on statement with volatile operand, remove dead scalar
14875 2016-02-10 Jakub Jelinek <jakub@redhat.com>
14876 Patrick Palka <ppalka@gcc.gnu.org>
14880 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
14881 calls if the return type is TREE_ADDRESSABLE.
14882 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
14883 * ipa-split.c (split_function): Fix doubled "we" in comment.
14884 Use void return type for the split part even if
14885 !split_point->split_part_set_retval.
14887 2016-02-10 Bin Cheng <bin.cheng@arm.com>
14889 PR tree-optimization/68021
14890 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
14891 when computing the value of biv cand by itself.
14893 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
14895 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
14896 (cortexa57_tunings): Likewise.
14897 (cortexa72_tunings): Likewise.
14898 (arch_macro_fusion_pair_p): Add support for AES fusion.
14899 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
14900 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
14901 Allow virtual registers before reload so early scheduling works.
14902 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
14903 correct latency and pipeline.
14904 (cortex_a57_crypto_complex): Likewise.
14905 (cortex_a57_crypto_xor): Likewise.
14906 (define_bypass): Add AES bypass.
14908 2016-02-10 Richard Biener <rguenther@suse.de>
14910 PR tree-optimization/69726
14911 * passes.def: Add DCE pass before late uninit.
14912 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
14913 really fixup if-conversions job.
14915 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
14917 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
14918 (arm_cortex_a57_tune): Likewise.
14919 (aarch_macro_fusion_pair_p): Add support for AES fusion.
14920 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
14922 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
14924 * timevar.def (TV_PHASE_DBGINFO): Delete.
14925 (TV_PHASE_CHECK_DBGINFO): Likewise.
14926 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
14928 2016-02-10 Richard Biener <rguenther@suse.de>
14930 PR tree-optimization/69719
14931 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
14932 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
14934 2016-02-09 Andrew Pinski <apinski@cavium.com>
14937 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
14938 get_vcond_mask_icode returns false.
14940 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
14943 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
14944 an ADDIS that adds a pointer to a large constant that sets the
14945 upper16 bits with a load operation.
14947 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
14950 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
14952 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
14954 (vzipq_s16): Likewise.
14955 (vzipq_s32): Likewise.
14956 (vzipq_f32): Likewise.
14957 (vzipq_u8): Likewise.
14958 (vzipq_u16): Likewise.
14959 (vzipq_u32): Likewise.
14960 (vzipq_p8): Likewise.
14961 (vzipq_p16): Likewise.
14963 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
14966 * config/arm/arm.c (neon_endian_lane_map): New function.
14967 (neon_vector_pair_endian_lane_map): New function.
14968 (arm_evpc_neon_vuzp): Allow for big endian lane order.
14969 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
14971 (vuzpq_s16): Likewise.
14972 (vuzpq_s32): Likewise.
14973 (vuzpq_f32): Likewise.
14974 (vuzpq_u8): Likewise.
14975 (vuzpq_u16): Likewise.
14976 (vuzpq_u32): Likewise.
14977 (vuzpq_p8): Likewise.
14978 (vuzpq_p16): Likewise.
14980 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
14983 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
14986 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
14988 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
14989 truncate const_int operand 1 to QImode.
14991 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
14993 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
14994 corresponding to an abnormal edge.
14996 2016-02-09 Tom de Vries <tom@codesourcery.com>
14998 PR tree-optimization/69599
14999 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
15001 (find_func_aliases_for_builtin_call, find_func_clobbers)
15002 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
15005 2016-02-09 Richard Biener <rguenther@suse.de>
15007 PR tree-optimization/69715
15008 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
15009 LHS on calls as non-rewritable.
15011 2016-02-09 Tom de Vries <tom@codesourcery.com>
15014 * lto-wrapper.c (append_diag_options): New function.
15015 (compile_offload_image): Call append_diag_options.
15017 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
15020 * doc/extend.texi (Flag Output Operands): Correct sectioning.
15021 Minor copy-edit to fix verb tenses.
15023 2016-02-08 Jakub Jelinek <jakub@redhat.com>
15025 PR tree-optimization/69209
15026 * ipa-split.c (split_function): If split part is not
15027 returning retval, retval has gimple type but is not
15028 gimple value, force it into a SSA_NAME first.
15030 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
15032 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
15035 2016-02-08 Jason Merrill <jason@redhat.com>
15038 * convert.c (convert_to_integer_1): Check dofold on truncation
15040 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
15041 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
15042 Rename from *_nofold.
15043 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
15044 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
15046 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
15049 * tree.c (build_common_tree_nodes): Remove short_double argument.
15050 All callers changed.
15051 * tree.h (build_common_tree_nodes): Adjust declaration.
15052 * doc/invoke.texi (-fshort-double): Remove documentation.
15053 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15054 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
15055 * lto-wrapper.c (merge_and_complain, append_compiler_options)
15056 (append_linker_options): Don't handle OPT_fshort_double.
15058 PR rtl-optimization/68730
15059 * lra-remat.c (insn_to_cand_activation): New static variable.
15060 (lra_remat): Allocate and free it.
15061 (create_cand): New arg activation. Initialize a field in
15062 insn_to_cand_activation if it is nonnull.
15063 (create_cands): Pass the activation insn to create_cand when making
15064 a candidate involving an output reload. Reorganize code a little.
15065 (do_remat): Keep track of active status of candidates in a separate
15068 2016-02-08 Richard Biener <rguenther@suse.de>
15070 PR tree-optimization/69719
15071 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15072 Properly use absolute of the difference of the two offsets to
15073 compare or adjust the segment length.
15075 2016-02-08 Richard Biener <rguenther@suse.de>
15076 Jeff Law <law@redhat.com>
15079 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
15080 types for anonymous SSA names.
15082 2016-02-08 Richard Biener <rguenther@suse.de>
15084 PR rtl-optimization/69274
15085 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
15087 2016-02-08 Jeff Law <law@redhat.com>
15089 PR tree-optimization/65917
15090 * tree-ssa-dom.c (record_temporary_equivalences): Record both
15091 equivalences from if (x == y) style conditionals.
15092 (loop_depth_of_name): Remove.
15093 (record_equality): Remove loop depth check.
15094 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
15095 (const_and_copies::record_const_or_copy_raw): New member function.
15096 * tree-ssa-scopedtables.c
15097 (const_and_copies::record_const_or_copy_raw): New, factored out of
15098 (const_and_copies::record_const_or_copy): Call new member function.
15100 2016-02-05 Jeff Law <law@redhat.com>
15102 PR tree-optimization/68541
15103 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
15104 (count_stmts_in_block): New function.
15105 (poor_ifcvt_candidate_code): Likewise.
15106 (is_feasible_trace): Add some heuristics to determine when path
15107 splitting is profitable.
15108 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
15109 is a diamond with a single exit.
15111 2016-02-05 Martin Sebor <msebor@redhat.com>
15114 * doc/invoke.texi: Update -Wplacement-new to take an optional
15117 2016-02-06 Richard Henderson <rth@redhat.com>
15120 * tree.c (tree_nop_conversion_p): Do not strip casts into or
15121 out of non-standard address spaces.
15123 2016-02-05 Jakub Jelinek <jakub@redhat.com>
15125 PR rtl-optimization/69691
15126 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
15128 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
15130 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
15131 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
15132 (*ieee128_mfvsrd_64bit): Likewise.
15133 (*ieee128_mfvsrd_32bit): Likewise.
15135 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
15139 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
15141 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
15142 instrumented_version.
15144 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
15146 * doc/invoke.texi (Optimize Options): In table of --param options
15147 rename second occurrence of tracer-min-branch-ratio to
15148 tracer-min-branch-probability, rename
15149 tracer-min-branch-ratio-feedback to
15150 tracer-min-branch-probability-feedback and clarify description,
15151 rename sched-spec-state-edge-prob-cutoff to
15152 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
15153 to selsched-insns-to-rename, rename lto-minpartition to
15154 lto-min-partition, delete reorder-blocks-duplicate and
15155 reorder-blocks-duplicate-feedback.
15157 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15159 * config/s390/s390.c (s390_register_info_set_ranges): Remove
15162 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
15164 * doc/extend.texi: S/390: Correct some typos.
15166 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15168 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
15170 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15173 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
15174 (s390_register_info_gprtofpr): Use new macros above.
15175 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
15177 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
15178 its name. Adjust restore and save gpr ranges.
15179 (s390_register_info_set_ranges): New function.
15180 (s390_register_info): Use new macros above. Call
15181 s390_register_info_set_ranges.
15182 (s390_optimize_register_info): Likewise.
15183 (s390_hard_regno_rename_ok): Use new macros.
15184 (s390_hard_regno_scratch_ok): Likewise.
15185 (s390_emit_epilogue): Likewise.
15186 (s390_can_use_return_insn): Likewise.
15187 (s390_optimize_prologue): Likewise.
15188 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
15190 2016-02-05 Jakub Jelinek <jakub@redhat.com>
15193 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
15195 (ix86_option_override_internal): Disable TARGET_STV even for
15196 -m{incoming,preferred}-stack-boundary=3.
15198 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15200 * config.gcc: Mark deprecated rtems targets as obsolete.
15202 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
15204 PR rtl-optimization/64682
15205 PR rtl-optimization/69567
15206 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
15207 before I2 only if the register is both used and set in I2.
15209 2016-02-04 DJ Delorie <dj@redhat.com>
15211 * config/msp430/msp430.c (msp430_start_function): Add function type.
15213 2016-02-04 Jakub Jelinek <jakub@redhat.com>
15216 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
15218 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
15220 PR rtl-optimization/69577
15222 2015-10-29 Richard Henderson <rth@redhat.com>
15226 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
15227 sse check to the exact conditions of PR 67609.
15229 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
15232 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
15233 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
15234 not allowed into the traditional Altivec registers.
15235 (movtd_64bit_nodm): Likewise.
15236 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
15238 2016-02-04 David Malcolm <dmalcolm@redhat.com>
15240 * config/aarch64/cortex-a57-fma-steering.c
15241 (aarch64_register_fma_steering): Remove "static" from arguments
15244 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
15247 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
15248 twice when complex.
15250 2016-02-04 Mike Frysinger <vapier@gentoo.org>
15252 * doc/invoke.texi: Delete -mno-fma4.
15254 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
15256 PR rtl-optimization/69577
15257 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
15258 (find_subregs_of_mode): Update accordingly. Iterate over partial
15261 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
15263 * config/arm/arm-protos.h (neon_reinterpret): Remove.
15264 * config/arm/arm.c (neon_reinterpret): Remove.
15265 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
15266 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
15267 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
15268 vreinterpretti): Remove.
15269 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
15270 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
15271 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
15272 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
15273 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
15274 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
15275 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
15276 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
15277 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
15278 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
15279 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
15280 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
15281 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
15282 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
15283 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
15284 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
15285 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
15286 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
15287 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
15288 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
15289 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
15290 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
15291 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
15292 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
15293 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
15294 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
15295 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
15296 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
15297 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
15298 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
15299 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
15300 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
15301 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
15302 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
15303 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
15304 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
15305 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
15306 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
15307 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
15308 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
15309 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
15310 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
15311 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
15312 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
15313 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
15314 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
15315 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
15316 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
15317 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
15318 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
15319 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
15320 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
15321 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
15322 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
15323 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
15324 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
15325 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
15326 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
15327 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
15328 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
15329 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
15330 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
15331 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
15332 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
15333 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
15334 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
15335 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
15336 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
15337 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
15338 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
15339 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
15340 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
15341 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
15342 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
15343 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
15344 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
15345 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
15346 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
15347 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
15348 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
15349 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
15350 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
15351 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
15352 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
15353 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
15354 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
15355 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
15356 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
15357 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
15358 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
15359 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
15360 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
15361 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
15362 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
15363 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
15364 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
15365 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
15366 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
15367 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
15368 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
15369 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
15370 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
15371 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
15373 2016-02-04 Martin Liska <mliska@suse.cz>
15376 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
15377 that are gimple_store_p.
15378 (maybe_instrument_call): Likewise.
15380 2016-02-04 Bin Cheng <bin.cheng@arm.com>
15382 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
15383 register scaling out of memory reference and comment why.
15385 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15389 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
15390 folding the source of a SET.
15392 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15396 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
15397 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
15399 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
15403 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
15406 2016-02-04 Christian Bruel <christian.bruel@st.com>
15408 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
15409 * config/arm/arm.c (arm_set_current_function): Likewise.
15411 2016-02-04 Jakub Jelinek <jakub@redhat.com>
15412 Ilya Enkovich <enkovich.gnu@gmail.com>
15413 H.J. Lu <hongjiu.lu@intel.com>
15416 * config/i386/i386.c (convert_scalars_to_vector): Remove
15417 stack alignment fixes.
15418 (ix86_option_override_internal): Disable TARGET_STV if stack
15419 might not be aligned enough.
15420 (ix86_minimum_alignment): Assert that TARGET_STV is false.
15422 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
15424 * config/i386/x86-tune.def: Disable default prefetching
15427 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15428 Vladimir Makarov <vmakarov@redhat.com>
15431 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
15432 in validating fused toc addresses.
15434 2016-02-03 Jakub Jelinek <jakub@redhat.com>
15437 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
15438 range->m_caret fields if range->m_show_caret_p is false.
15441 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
15442 Force oldval into register if it does not satisfy reg_or_short_operand
15443 predicate. Fix up formatting.
15445 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
15446 Alexandre Oliva <aoliva@redhat.com>
15449 * lra-constraints.c (simplify_operand_subreg): Check additionally
15450 address validity after potential reloading.
15451 (process_address_1): Check insns validity. In case of failure do
15454 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
15457 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
15460 2016-02-02 Jakub Jelinek <jakub@redhat.com>
15462 * wide-int.cc (canonize_uhwi): New function.
15463 (wi::divmod_internal): Use it.
15465 2016-02-02 James Norris <jnorris@codesourcery.com
15467 * gimplify.c (omp_notice_variable): Add usage check.
15469 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
15471 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
15472 like LE, GE, LT, GT when emitting relational operator.
15474 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
15476 * ira-costs.c (find_costs_and_classes): Add extra argument.
15477 * target.def (ira_change_pseudo_allocno_class): Add parameter.
15478 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
15479 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
15480 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
15481 Add best_class parameter, and return it if not ALL_REGS.
15482 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
15484 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
15485 Update target hook.
15487 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
15489 * config/aarch64/aarch64.c
15490 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
15491 (aarch64_ira_change_pseudo_allocno_class): New function.
15493 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
15496 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
15498 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15500 * config/avr/avr.c (avr_option_override): Set
15501 PARAM_ALLOW_STORE_DATA_RACES to 1.
15503 2016-02-02 Richard Biener <rguenther@suse.de>
15505 PR tree-optimization/69595
15506 * match.pd: Add range test simplifications to true/false.
15508 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
15510 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
15511 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
15514 2016-02-02 Richard Biener <rguenther@suse.de>
15516 PR tree-optimization/69606
15517 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
15518 info on the result before moving a stmt.
15520 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
15522 PR middle-end/68542
15523 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
15524 branch with vector comparison.
15525 * config/i386/sse.md (VI48_AVX): New mode iterator.
15526 (define_expand "cbranch<mode>4): Add support for conditional branch
15527 with vector comparison.
15528 * tree-vect-loop.c (optimize_mask_stores): New function.
15529 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
15530 has_mask_store field of vect_info.
15531 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
15532 vectorized loops having masked stores after vec_info destroy.
15533 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
15534 correspondent macros.
15535 (optimize_mask_stores): Add prototype.
15537 2016-02-02 Alan Modra <amodra@gmail.com>
15540 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
15543 2016-02-02 Alan Modra <amodra@gmail.com>
15546 * config/rs6000/rs6000.c (need_toc_init): New var, set it
15547 whenever toc_label_name used.
15548 (rs6000_file_start): Don't set up toc section here,
15549 (rs6000_output_function_epilogue): do so here instead,
15550 (rs6000_xcoff_file_start): and here.
15551 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
15552 (load_toc_aix_di): Likewise.
15554 2016-02-01 Jakub Jelinek <jakub@redhat.com>
15556 PR rtl-optimization/69592
15557 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
15558 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
15559 (num_sign_bit_copies_binary_arith_p): New inline function.
15560 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
15562 2016-02-01 Jeff Law <law@redhat.com>
15564 PR tree-optimization/69580
15565 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
15566 * tree-ssa-threadbackward.c
15567 (fsm_find_control_statement_thread_paths): Do not try to walk
15568 through large PHI nodes.
15570 2016-02-01 Jakub Jelinek <jakub@redhat.com>
15572 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
15573 when count is incremented above limit, don't analyze further
15576 * omp-low.c (oacc_parse_default_dims): Avoid
15577 -Wsign-compare warning, make sure value fits into int
15578 rather than just unsigned int.
15580 2016-02-01 Bin Cheng <bin.cheng@arm.com>
15582 PR tree-optimization/67921
15583 * fold-const.c (split_tree): New parameters. Convert pointer
15584 type variable part to proper type before negating.
15585 (fold_binary_loc): Pass new arguments to split_tree.
15587 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
15589 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
15590 (nvptx_goacc_validate_dims): Extend to handle global defaults.
15591 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
15592 * doc/tm.texti: Rebuilt.
15593 * doc/invoke.texi (fopenacc-dim): Document.
15594 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
15595 (append_compiler_options): Likewise.
15596 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
15597 (oacc_parse_default_dims): New.
15598 (oacc_validate_dims): Add USED arg. Select non-unity default when
15600 (oacc_loop_fixed_partitions): Return mask of used partitions.
15601 (oacc_loop_auto_partitions): Emit dump info.
15602 (oacc_loop_partition): Return mask of used partitions.
15603 (execute_oacc_device_lower): Parse default dimension arg. Adjust
15604 loop partitioning and validation calls.
15606 2016-02-01 Richard Biener <rguenther@suse.de>
15608 PR middle-end/69556
15609 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
15611 2016-02-01 Richard Biener <rguenther@suse.de>
15613 PR tree-optimization/69574
15614 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
15615 of asserting return chrec_dont_know.
15617 2016-02-01 Martin Liska <mliska@suse.cz>
15619 * mem-stats-traits.h: Add copyright header.
15620 * mem-stats.h: Likewise.
15622 2016-02-01 Richard Biener <rguenther@suse.de>
15624 PR tree-optimization/69579
15625 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
15626 Do not propagate through abnormal PHI results.
15628 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
15630 * postreload.c (reload_cse_simplify): Remove dead code.
15632 2016-02-01 Jakub Jelinek <jakub@redhat.com>
15634 PR rtl-optimization/69570
15635 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
15636 if there is more than one set, not if there is a single set.
15638 2016-02-01 Richard Henderson <rth@redhat.com>
15641 * combine.c (make_compound_operation): When looking through a
15642 subreg, make sure to re-extend to the width of the outer mode.
15644 2016-01-30 Jakub Jelinek <jakub@redhat.com>
15646 PR tree-optimization/69546
15647 * wide-int.cc (wi::divmod_internal): For unsigned division
15648 where both operands fit into uhwi, if o1 is 1 and o0 has
15649 msb set, if divident_prec is larger than bits per hwi,
15650 clear another quotient word and return 2 instead of 1.
15651 Similarly for remainder with msb in HWI set, if dividend_prec
15652 is larger than bits per hwi.
15654 2016-01-29 Martin Jambor <mjambor@suse.cz>
15656 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
15657 Use short lowercase names.
15658 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
15659 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
15660 acq_rel one. Protect warning agains segfaults if
15661 get_memory_order_name returns NULL.
15662 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
15663 with release semantics. Do not warn if get_memory_order already did.
15664 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
15665 semantics. Fix check for relaxed or acquire semantics. Do not warn
15666 if get_memory_order already did.
15668 2016-01-29 Sebastian Pop <s.pop@samsung.com>
15670 * doc/install.texi: Document that isl-0.16 is supported.
15672 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
15675 * config/i386/constraints.md (Bm): Describe as special memory
15677 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
15678 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
15679 * genpreds.c (struct constraint_data): Add is_special_memory.
15680 (have_special_memory_constraints, special_memory_start): New
15682 (special_memory_end): Ditto.
15683 (add_constraint): Add new arg is_special_memory. Add code to
15684 process its true value. Update have_special_memory_constraints.
15685 (process_define_constraint): Pass the new arg.
15686 (process_define_register_constraint): Ditto.
15687 (choose_enum_order): Process special memory.
15688 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
15689 function insn_extra_special_memory_constraint.
15690 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
15691 * gensupport.c (process_rtx): Process
15692 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
15693 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
15694 * ira-lives.c (single_reg_class): Use
15695 insn_extra_special_memory_constraint.
15696 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
15697 * lra-constraints.c (process_alt_operands): Ditto.
15698 (curr_insn_transform): Use insn_extra_special_memory_constraint.
15699 * recog.c (asm_operand_ok, preprocess_constraints): Process
15701 * reload.c (find_reloads): Ditto.
15702 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
15703 * stmt.c (parse_input_constraint): Use
15704 insn_extra_special_memory_constraint.
15706 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
15709 * lra-splill.c (lra_final_code_change): Revert r229087 by
15710 removing all sub-registers.
15712 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
15715 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
15717 2016-01-29 Jakub Jelinek <jakub@redhat.com>
15720 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
15721 SSE1, copy target into the temporary reg first before recursing
15724 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
15726 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
15729 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
15731 * ginclude/stdarg.h: Test __cplusplus instead of
15732 __GXX_EXPERIMENTAL_CXX0X__.
15734 2016-01-29 Richard Biener <rguenther@suse.de>
15736 PR tree-optimization/69547
15737 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
15738 Do not mark clobbers necessary.
15739 (mark_all_reaching_defs_necessary_1): Likewise.
15741 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
15743 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
15744 declaration name with %qs and print it in both error messages.
15745 Also fix indentation.
15747 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
15750 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
15751 trailing blank line from error message.
15753 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
15756 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
15759 2016-01-29 Richard Biener <rguenther@suse.de>
15761 PR middle-end/69537
15762 * match.pd: Allow all integral types when simplifying a
15763 widening or sign-changing conversion.
15765 2016-01-28 Sebastian Pop <s.pop@samsung.com>
15767 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
15768 back to setting codegen_error to fail codegen.
15770 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
15773 * config/i386/constraints.md (C): Only accept constant zero operand.
15774 (BC): New constraint.
15775 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
15776 instead of C constraint.
15777 * doc/md.texi (Machine Constraints): Update description
15780 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
15783 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
15785 2016-01-28 Jakub Jelinek <jakub@redhat.com>
15787 PR middle-end/69542
15788 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
15791 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
15793 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
15794 branches if using guessed profile.
15796 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
15798 * graphite-optimize-isl.c (optimize_isl): Fix dump.
15800 2016-01-28 Richard Henderson <rth@redhat.com>
15803 * config/aarch64/aarch64-modes.def (CC_Cmode): New
15804 * config/aarch64/aarch64-protos.h: Update.
15805 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
15806 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
15807 (aarch64_get_condition_code_1): Handle CC_Cmode.
15808 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
15809 (*add<mode>3_compareC_cconly_imm): New.
15810 (*add<mode>3_compareC_cconly): New.
15811 (*add<mode>3_compareC_imm): New.
15812 (add<mode>3_compareC): New.
15813 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
15814 to be first. Use aarch64_carry_operation.
15815 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
15816 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
15817 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
15818 (subti3): Use subdi3_compare1.
15819 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
15820 (sub<mode>3_compare1): New.
15821 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
15822 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
15823 (*subsi3_carryin_uxtw): Likewise.
15824 (*ngc<mode>, *ngcsi_uxtw): Likewise.
15825 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
15826 * config/aarch64/iterators.md (DWI): New.
15827 * config/aarch64/predicates.md (aarch64_carry_operation): New.
15828 (aarch64_borrow_operation): New.
15830 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
15832 * graphite-optimize-isl.c (optimize_isl): Print a different debug
15833 message when isl does not return a valid schedule.
15835 2016-01-28 Sebastian Pop <s.pop@samsung.com>
15837 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
15838 Remove comments from class declarations: they are already in the code
15841 2016-01-28 Sebastian Pop <s.pop@samsung.com>
15843 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
15845 (ternary_op_to_tree): Same.
15846 (unary_op_to_tree): Same.
15847 (nary_op_to_tree): Same.
15848 (gcc_expression_from_isl_expr_op): Same.
15849 (gcc_expression_from_isl_expression): Same.
15850 (graphite_create_new_loop): Same.
15851 (graphite_create_new_loop_guard): Same.
15852 (build_iv_mapping): Same.
15853 (graphite_create_new_guard): Same.
15854 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
15855 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
15857 2016-01-28 Sebastian Pop <s.pop@samsung.com>
15859 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
15860 instead of setting codegen_error to fail codegen.
15862 2016-01-28 Jason Merrill <jason@redhat.com>
15864 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
15866 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
15868 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
15869 Remove CONST_INT_P check in CCMP cost calculation.
15871 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
15873 * config/aarch64/aarch64.c (generic_vector_cost):
15874 Set vec_permute_cost.
15875 (cortexa57_vector_cost): Likewise.
15876 (exynosm1_vector_cost): Likewise.
15877 (xgene1_vector_cost): Likewise.
15878 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
15879 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
15880 Add vec_permute_cost entry.
15882 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
15884 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
15886 (add<mode>3_compare0): Likewise.
15887 (addsi3_compare0_uxtw): Likewise.
15888 (add<mode>3nr_compare0): Likewise.
15889 (compare_neg<mode>): Likewise.
15890 (<optab><mode>3): Likewise.
15892 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
15894 * tree-vect-stmts.c (vectorizable_comparison): Add
15895 NULL check for vectype.
15897 2016-01-28 Richard Biener <rguenther@suse.de>
15899 PR tree-optimization/69466
15900 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
15901 Account for PHIs we couldn't duplicate.
15903 2016-01-28 Martin Liska <mliska@suse.cz>
15906 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
15907 instead of ENABLE_VALGRIND_CHECKING.
15909 2016-01-27 Richard Henderson <rth@redhat.com>
15912 * lra-remat.c (subreg_regs): New.
15913 (dump_candidates_and_remat_bb_data): Dump it.
15914 (operand_to_remat): Reject if operand in subreg_regs.
15915 (set_bb_regs): Collect subreg_regs.
15916 (lra_remat): Init and free subreg_regs. Compute
15917 calculate_local_reg_remat_bb_data before create_cands.
15919 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
15922 * config/i386/i386.c (ix86_update_stack_boundary): Don't
15923 change stack_alignment_needed for __tls_get_addr call.
15925 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
15927 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
15929 2016-01-27 Jeff Law <law@redhat.com>
15931 PR tree-optimization/68398
15932 PR tree-optimization/69196
15933 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
15934 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
15935 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
15936 Only count PHIs in the last block in the path. The others will
15937 const/copy propagate away. Add heuristic to allow more irreducible
15938 subloops to be created when it is likely profitable to do so.
15940 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
15941 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
15942 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
15944 2016-01-27 Jakub Jelinek <jakub@redhat.com>
15947 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
15948 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
15949 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
15950 * tree-streamer-in.c: Include asan.h.
15951 (streamer_get_builtin_tree): For builtins in sanitizer
15952 range call initialize_sanitizer_builtins and retry.
15954 2016-01-27 Ian Lance Taylor <iant@google.com>
15956 * common.opt (fkeep-gc-roots-live): New undocumented option.
15957 * tree-ssa-loop-ivopts.c (add_candidate_1): If
15958 -fkeep-gc-roots-live, skip pointers.
15959 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
15962 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
15965 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
15966 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
15968 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
15971 * configure.ac: NetBSD provides SSP in its C library.
15972 * configure: Updated.
15974 2016-01-27 Richard Biener <rguenther@suse.de>
15976 PR tree-optimization/69166
15977 * tree-vect-loop.c (vect_is_simple_reduction): Always check
15978 reduction code for commutativity / associativity.
15980 2016-01-27 Martin Jambor <mjambor@suse.cz>
15982 PR tree-optimization/69355
15983 * tree-sra.c (analyze_access_subtree): Correct hole detection when
15984 total_scalarization fails.
15986 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
15988 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
15991 2016-01-27 Christian Bruel <christian.bruel@st.com>
15994 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
15995 Move arm_reset_previous_fndecl and set_target_option_current_node in
15996 the conditional part. Call save_restore_target_globals.
15997 * config/arm/arm.c (arm_set_current_function):
15998 Refactor to better support #pragma target and attribute mix.
15999 Call save_restore_target_globals.
16000 * config/arm/arm-protos.h (save_restore_target_globals): New function.
16002 2016-01-27 Martin Liska <mliska@suse.cz>
16004 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
16005 reference for an HSA kernel and its host function.
16007 2016-01-27 Jakub Jelinek <jakub@redhat.com>
16009 PR tree-optimization/69399
16010 * wide-int.h (wi::lrshift): For larger precisions, only
16011 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
16013 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
16015 * config/arc/predicates.md (proper_comparison_operator): Reject
16016 constant-constant comparison.
16018 2016-01-26 Tom de Vries <tom@codesourcery.com>
16020 PR tree-optimization/69110
16021 * tree-data-ref.c (initialize_data_dependence_relation): Handle
16022 DR_NUM_DIMENSIONS == 0.
16024 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
16025 Sebastian Pop <s.pop@samsung.com>
16027 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
16028 isl_ast_op_cond and isl_ast_op_select.
16029 (gcc_expression_from_isl_expr_op): Same.
16031 2016-01-26 Jason Merrill <jason@redhat.com>
16034 * tree.c (recompute_constructor_flags): Split out from
16036 (verify_constructor_flags): New.
16037 * tree.h: Declare them.
16039 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
16041 PR rtl-optimization/69217
16042 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
16043 are no TYPE_FIELDS set for the record type.
16045 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16048 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
16049 toc_label_name unconditionally.
16050 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
16051 SYMBOL_REF string. Use toc_label_name instead of constructing
16053 (rs6000_elf_declare_function_name): Use toc_label_name instead of
16054 constructing LCTOC1.
16056 2016-01-26 Martin Sebor <msebor@redhat.com>
16059 * doc/extend.texi (Common Type Attributes): Move text that talks about
16060 attribute packed from attribute aligned to the section discussing
16061 the former attribute for clarity.
16063 2016-01-26 Richard Henderson <rth@redhat.com>
16065 PR middle-end/60908
16066 * trans-mem.c (tm_region_init): Mark entry block as visited.
16068 2016-01-26 David Malcolm <dmalcolm@redhat.com>
16071 * diagnostic-show-locus.c (layout::print_source_line): Replace
16072 call to pp_newline with call to layout::print_newline.
16073 (layout::print_annotation_line): Likewise.
16074 (layout::move_to_column): Likewise.
16075 (layout::print_any_fixits): After printing any fixits, print a
16076 trailing newline, if necessary.
16077 (layout::print_newline): New method, resetting any colorization
16079 (diagnostic_show_locus): Move the pp_newline to before the
16080 early bailout. Remove dummy block enclosing the layout instance.
16081 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
16082 of pp_newline_and_flush with pp_flush.
16083 (diagnostic_append_note): Delete use of pp_newline.
16084 (diagnostic_append_note_at_rich_loc): Delete.
16085 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
16086 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
16087 when newline characters are added to the buffer.
16089 2016-01-26 Michael Matz <matz@suse.de>
16091 * configure.ac (ac_cv_std_swap_in_utility): New test.
16092 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
16093 * configure: Regenerate.
16094 * config.in: Regenerate.
16096 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
16098 * config/arc/arc.md (cstoresi4): Force operand into register.
16099 (arcset<code>): Fix predicate.
16100 (arcsetltu): Likewise.
16101 (arcsetgeu): Likewise.
16102 (arcsethi): Likewise.
16103 (arcsetls): Likewise.
16105 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16107 PR tree-optimization/69483
16108 * gimple-fold.c (canonicalize_constructor_val): Return NULL
16109 if base has error_mark_node type.
16111 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
16114 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
16115 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
16117 (vget_lane_f16): Handle big-endian.
16118 (vgetq_lane_f16): Likewise.
16119 (vset_lane_f16): Likewise.
16120 (vsetq_lane_f16): Likewise.
16121 * config/arm/iterators.md (VQXMOV): Add V8HF.
16122 (VDQ): Add V4HF and V8HF.
16123 (V_reg): Handle V4HF and V8HF.
16124 (Is_float_mode): Likewise.
16125 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
16126 neon_vdup_nv8hf): New patterns.
16127 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
16128 Use VD_LANE iterator.
16129 (neon_vld1_dup<mode>): Use VQ2 iterator.
16131 2016-01-26 Nathan Sidwell <nathan@acm.org>
16133 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
16134 (set_oacc_fn_attrib): Add IS_KERNEL arg.
16135 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
16136 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
16137 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
16138 (oacc_validate_dims): Add LEVEL arg, don't return level.
16139 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
16140 oacc_validate_dims.
16141 (execute_oacc_device_lower): Adjust, add more dump output.
16142 * tree-ssa-loop.c (gate_oacc_kernels): Use
16143 oacc_fn_attrib_kernels_p.
16144 * tree-parloops.c (create_parallel_loop): Adjust
16145 set_oacc_fn_attrib call.
16147 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16150 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
16151 (append_compiler_options): Handle -fcilkplus.
16152 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
16154 2016-01-26 Nick Clifton <nickc@redhat.com>
16157 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
16158 been marked as DECL_ONE_ONLY but we do not the means to make it
16159 so, then do not allow it to bind locally.
16161 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16164 * opts.h (parse_sanitizer_options): New prototype.
16165 * opts.c (sanitizer_opts): New array.
16166 (parse_sanitizer_options): New function.
16167 (common_handle_option): Use parse_sanitizer_options.
16169 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
16172 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
16173 alignment adjustment to ...
16174 (ix86_update_stack_boundary): Here. Don't over-align stack for
16176 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
16177 if __tls_get_addr is called.
16179 2016-01-26 Christian Bruel <christian.bruel@st.com>
16181 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
16183 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
16185 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
16187 2016-01-26 Richard Biener <rguenther@suse.de>
16189 PR middle-end/69467
16190 * match.pd: Guard X * CST CMP 0 pattern with single_use.
16192 2016-01-26 Richard Biener <rguenther@suse.de>
16194 PR tree-optimization/69452
16195 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
16196 (move_computations_dom_walker::before_dom_children): Rename
16198 (move_computations_worker): This.
16199 (move_computations): Perform an RPO rather than a DOM walk.
16201 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16204 * combine.c (combine_instructions): For REG_EQUAL note with
16205 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
16206 to the underlying register.
16207 * doc/rtl.texi (REG_EQUAL): Document the behavior of
16208 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
16210 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
16213 * config/aarch64/aarch64-builtins.c
16214 (aarch64_init_simd_builtin_types): Do not set structural
16215 equality to __Poly{8,16,64,128}_t types.
16217 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
16219 PR tree-optimization/69400
16220 * wide-int.cc (wi_pack): Take the precision as argument and
16221 perform canonicalization here rather than in the callers.
16222 Use the main loop to handle all full-width HWIs. Add a
16223 zero HWI if in_len isn't a full result.
16224 (wi::divmod_internal): Update accordingly.
16225 (wi::mul_internal): Likewise. Simplify.
16227 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
16228 Sebastian Pop <s.pop@samsung.com>
16230 * graphite-poly.c (apply_poly_transforms): Simplify.
16231 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
16232 (print_isl_map): Same.
16233 (print_isl_union_map): Same.
16234 (print_isl_schedule): New.
16235 (debug_isl_schedule): New.
16236 * graphite-dependences.c (scop_get_reads): Do not call
16237 isl_union_map_add_map that is undocumented isl functionality.
16238 (scop_get_must_writes): Same.
16239 (scop_get_may_writes): Same.
16240 (scop_get_original_schedule): Remove.
16241 (scop_get_dependences): Do not call isl_union_map_compute_flow that
16242 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
16243 (compute_deps): Remove.
16244 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
16245 (debug_schedule_ast): New.
16246 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
16247 set_separate_option.
16248 (graphite_regenerate_ast_isl): Add dump.
16249 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
16250 from scop->transformed_schedule.
16251 (graphite_regenerate_ast_isl): Add more dump.
16252 * graphite-optimize-isl.c (optimize_isl): Set
16253 scop->transformed_schedule. Check whether schedules are equal.
16254 (apply_poly_transforms): Move here.
16255 * graphite-poly.c (apply_poly_transforms): ... from here.
16256 (free_poly_bb): Static.
16257 (free_scop): Static.
16258 (pbb_number_of_iterations_at_time): Remove.
16259 (print_isl_ast): New.
16260 (debug_isl_ast): New.
16261 (debug_scop_pbb): New.
16262 * graphite-scop-detection.c (print_edge): Move.
16263 (print_sese): Move.
16264 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
16265 (build_scop_scattering): Remove.
16266 (create_pw_aff_from_tree): Assert instead of bailing out.
16267 (add_condition_to_pbb): Remove unused code, do not fail.
16268 (add_conditions_to_domain): Same.
16269 (add_conditions_to_constraints): Remove.
16270 (build_scop_context): New.
16271 (add_iter_domain_dimension): New.
16272 (build_iteration_domains): Initialize pbb->iterators.
16273 Call add_conditions_to_domain.
16276 (index_outermost_in_loop): New.
16277 (index_pbb_in_loop): New.
16278 (outermost_pbb_in): New.
16279 (add_in_sequence): New.
16280 (add_outer_projection): New.
16281 (outer_projection_mupa): New.
16282 (add_loop_schedule): New.
16283 (build_schedule_pbb): New.
16284 (build_schedule_loop): New.
16285 (embed_in_surrounding_loops): New.
16286 (build_schedule_loop_nest): New.
16287 (build_original_schedule): New.
16288 (build_poly_scop): Call build_original_schedule.
16289 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
16290 (free_poly_dr): Remove.
16291 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
16292 (free_poly_bb): Remove.
16293 (debug_loop_vec): Remove.
16294 (print_isl_ast): Declare.
16295 (debug_isl_ast): Declare.
16296 (scop_do_interchange): Remove.
16297 (scop_do_strip_mine): Remove.
16298 (scop_do_block): Remove.
16299 (flatten_all_loops): Remove.
16300 (optimize_isl): Remove.
16301 (pbb_number_of_iterations_at_time): Remove.
16302 (debug_scop_pbb): Declare.
16303 (print_schedule_ast): Declare.
16304 (debug_schedule_ast): Declare.
16305 (struct scop): Remove schedule. Add original_schedule,
16306 transformed_schedule.
16307 (free_gimple_poly_bb): Remove.
16308 (print_generated_program): Remove.
16309 (debug_generated_program): Remove.
16310 (unify_scattering_dimensions): Remove.
16311 * sese.c (print_edge): ... here.
16312 (print_sese): ... here.
16313 (debug_edge): ... here.
16314 (debug_sese): ... here.
16315 * sese.h (print_edge): Declare.
16316 (print_sese): Declare.
16317 (dump_edge): Declare.
16318 (dump_sese): Declare.
16320 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
16321 Sebastian Pop <s.pop@samsung.com>
16323 * Makefile.in: Set ISLVER in site.exp.
16325 2016-01-25 Jakub Jelinek <jakub@redhat.com>
16327 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
16328 DECL_VALUE_EXPR of new_var even for the non-array case. Look
16329 through DECL_VALUE_EXPR for expansion.
16331 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
16333 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
16334 the frame info after reload completed.
16336 2016-01-25 Jeff Law <law@redhat.com>
16338 PR tree-optimization/69196
16339 PR tree-optimization/68398
16340 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
16341 tree-ssa-threadupdate.c.
16342 (determine_bb_domination_status): Prototype
16343 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
16344 (determine_bb_domination_status): No longer static.
16345 (valid_jump_thread_path): Remove code to detect characteristics
16346 of the jump thread path not associated with correctness.
16347 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
16348 Correct test for thread path length. Count PHIs for real operands as
16349 statements that need to be copied. Do not count ASSERT_EXPRs.
16350 Look at all the blocks in the thread path. Compute and selectively
16351 filter thread paths based on threading through the latch, threading
16352 a multiway branch or crossing a multiway branch.
16354 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16356 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
16357 decl with __attribute__ ((unused)) annotation.
16359 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
16362 * tree-vect-stmts.c (vectorizable_condition): Check vectype
16363 of operands is compatible with a statement vectype.
16365 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
16367 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
16368 improve wording for mixed storage order support.
16370 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
16372 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
16373 (vcvt_u64_f64): Likewise.
16374 (vcvta_s64_f64): Likewise.
16375 (vcvta_u64_f64): Likewise.
16376 (vcvtm_s64_f64): Likewise.
16377 (vcvtm_u64_f64): Likewise.
16378 (vcvtn_s64_f64): Likewise.
16379 (vcvtn_u64_f64): Likewise.
16380 (vcvtp_s64_f64): Likewise.
16381 (vcvtp_u64_f64): Likewise.
16383 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
16385 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
16386 (arc_init): Check validity mll64 option.
16387 (arc_save_restore): Use double load/store instruction.
16388 (arc_expand_movmem): Likewise.
16389 (arc_split_move): Don't split if we have double load/store
16390 instructions. Returns a boolean.
16391 (arc_process_double_reg_moves): Change function to return boolean
16392 instead of a sequence of instructions.
16393 (arc_dwarf_register_span): New function.
16394 * config/arc/arc-protos.h (arc_split_move): Change prototype.
16395 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
16396 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
16397 (*movdf_insn): Likewise.
16398 * config/arc/arc.opt (mll64): New option.
16399 * config/arc/predicates.md (even_register_operand): New predicate.
16400 * doc/invoke.texi (ARC Options): Add mll64 documentation.
16402 2016-01-25 Richard Biener <rguenther@suse.de>
16405 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
16406 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
16408 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
16410 2016-01-25 Richard Biener <rguenther@suse.de>
16412 PR tree-optimization/69376
16413 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
16415 (VN_INFO_ANTI_RANGE_P): New inline.
16416 (VN_INFO_RANGE_TYPE): Likewise.
16417 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
16418 SSA_NAME_ANTI_RANGE_P.
16419 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
16420 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16421 Properly query VN_INFO_RANGE_TYPE.
16423 2016-01-25 Nick Clifton <nickc@redhat.com>
16426 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
16428 2016-01-23 Tom de Vries <tom@codesourcery.com>
16430 PR tree-optimization/69426
16431 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
16434 2016-01-23 Jakub Jelinek <jakub@redhat.com>
16436 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
16437 "the the" with "the" in the comments.
16438 * ipa-devirt.c (build_type_inheritance_graph,
16439 update_type_inheritance_graph): Likewise.
16440 * tree.c (build_function_type_list_1): Likewise.
16441 * cfgloopmanip.c (scale_loop_profile): Likewise.
16442 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
16443 * gimple-ssa-split-paths.c
16444 (find_block_to_duplicate_for_splitting_paths): Likewise.
16445 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
16446 * expr.c (convert_move): Likewise.
16447 * var-tracking.c (vt_stack_adjustments): Likewise.
16448 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
16449 * tree-vrp.c (test_for_singularity): Likewise.
16451 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
16452 directly instead of building a temporary tree.
16455 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
16456 remove <algorithm> include.
16458 2016-01-22 Jakub Jelinek <jakub@redhat.com>
16461 * config/i386/i386.c: Include dojump.h.
16462 (expand_small_movmem_or_setmem,
16463 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
16465 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
16466 if dynamic_check != -1.
16468 2016-01-21 Jeff Law <law@redhat.com>
16470 PR middle-end/69347
16471 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
16472 record_temporary_equivalences. Rewritten to avoid unnecessary calls
16473 into dominated_by_p.
16474 (cprop_into_successor_phis): Avoid unnecessary tests.
16476 2016-01-22 Richard Henderson <rth@redhat.com>
16479 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
16480 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
16482 2016-01-22 Michael Matz <matz@suse.de>
16484 * system.h (string, algorithm): Include only conditionally.
16485 (new): Include always under C++.
16486 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
16487 * final.c (toplevel): Ditto.
16488 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
16489 * genconditions.c (write_header): Make gencondmd.c define
16491 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
16493 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
16494 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
16496 2016-01-22 Christian Bruel <christian.bruel@st.com>
16499 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
16501 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16504 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
16505 define_insn_and_split. Ensure operands[1] and operands[0] do not
16506 get assigned the same register.
16508 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
16510 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
16512 2016-01-22 Christian Bruel <christian.bruel@st.com>
16514 * config/arm/arm-c.c (arm_pragma_target_parse):
16515 Remove warn_builtin_macro_redefined overwrite.
16517 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
16519 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
16520 flag_non_call_exceptions compatibility.
16522 2016-01-22 Jakub Jelinek <jakub@redhat.com>
16525 * dwarf2out.c (add_child_die_after): New function.
16526 (dwarf_qual_info_t): New type.
16527 (dwarf_qual_info): New variable.
16528 (qualified_die_p): New function.
16529 (modified_type_die): For -fdebug-types-section, ensure
16530 canonical order of qualifiers. Put qualified DIEs adjacent
16531 to the corresponding non-qualified type DIE and search there
16532 for existing qualified DIEs.
16534 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
16536 * doc/extend.texi (scalar_storage_order type attribute): Document
16537 restriction on type punning and aliasing, and remove future tense.
16539 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
16542 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
16545 2016-01-21 Jeff Law <law@redhat.com>
16547 PR middle-end/69347
16548 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
16549 useless call to record_temporary_equivalences.
16550 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
16551 allocate 10 slots in the bb_path vector and let it grow as needed.
16552 (fsm_find_control_statement_thread_paths): Similarly for the next_path
16555 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
16557 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
16559 * configure: Regenerate.
16561 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
16563 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
16564 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
16566 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
16568 PR middle-end/66178
16569 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
16570 drop EXPAND_INITIALIZER.
16571 * rtl.h (contains_symbolic_reference_p): Declare.
16572 * rtlanal.c (contains_symbolic_reference_p): New function.
16573 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
16574 a subtraction into a NOT if symbolic constants are involved.
16576 2016-01-21 Anton Blanchard <anton@samba.org>
16577 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16580 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
16582 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
16585 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
16587 * config/microblaze/microblaze.c
16588 (get_branch_target): New.
16589 (insert_wic_for_ilb_runout): New.
16591 (microblaze_machine_dependent_reorg): New.
16592 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
16593 * config/microblaze/microblaze.md
16594 (UNSPEC_IPREFETCH): Define.
16595 (iprefetch): New pattern
16596 * config/microblaze/microblaze.opt
16597 (mxl-prefetch): New flag.
16599 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
16601 * config/microblaze/microblaze.h
16602 (FIXED_REGISTERS): Update in macro.
16603 (CALL_USED_REGISTERS): Update in macro.
16605 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
16607 PR rtl-optimization/68920
16608 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
16611 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
16613 PR rtl-optimization/68990
16614 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
16615 pseudo instead of inheritance ones.
16617 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
16618 Nick Clifton <nickc@redhat.com>
16622 * config/mips/mips.c (mips_compute_frame_info): Initialise
16623 args_size and hard_frame_pointer_offset fields of the frame
16624 structure before calling mips_global_pointer.
16626 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
16628 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
16630 * configure: Regenerate.
16632 2016-01-21 Richard Biener <rguenther@suse.de>
16634 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
16636 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
16638 * config/s390/s390.c (s390_asm_declare_function_size): Add code
16639 to actually emit the .size directive.
16641 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
16642 Jakub Jelinek <jakub@redhat.com>
16646 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
16647 args array size by one to avoid buffer overflow.
16649 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
16651 * config/s390/s390.md (pool_section_start): Use switch_to_section
16652 to select proper read-only data section instead of hardcoding
16654 (pool_section_end): Use switch_to_section to match the above.
16656 2016-01-21 Richard Biener <rguenther@suse.de>
16658 PR tree-optimization/69378
16659 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
16660 (set_ssa_val_to): Use it for dominance checks taking into
16661 account not executable edges.
16663 2016-01-21 Jakub Jelinek <jakub@redhat.com>
16666 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
16667 for bitsize instead of GET_MODE_PRECISION (mode).
16669 2016-01-20 Martin Sebor <msebor@redhat.com>
16672 * extend.texi (__sync Builtins): Clarify the semantics of
16673 __sync_fetch_and_OP built-ins on pointers.
16674 (__atomic Builtins): Same.
16676 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
16677 Sebastian Pop <s.pop@samsung.com>
16679 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
16680 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
16681 (is_valid_rename): Same.
16682 (translate_isl_ast_to_gimple::get_rename): Same.
16683 (translate_isl_ast_to_gimple::rename_all_uses): Same.
16684 (translate_isl_ast_to_gimple::rename_uses): Same.
16685 (get_new_name): Check for close_phi nodes.
16686 (copy_loop_phi_args): Use phi_node_kind.
16687 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
16688 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
16690 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
16691 Sebastian Pop <s.pop@samsung.com>
16693 Revert commit r229783.
16694 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
16695 Remove use of parameter_rename_map.
16696 (copy_def): Remove.
16697 (copy_internal_parameters): Remove.
16698 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
16699 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
16700 (free_sese_info): Do not free parameter_rename_map.
16701 (set_rename): Do not use parameter_rename_map.
16702 (rename_uses): Update call to set_rename.
16703 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
16704 * sese.h (parameter_rename_map_t): Remove.
16705 (struct sese_info_t): Remove field parameter_rename_map.
16707 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
16708 Sebastian Pop <s.pop@samsung.com>
16710 * graphite-isl-ast-to-gimple.c: Fix comment.
16711 * graphite-scop-detection.c (defined_in_loop_p): New.
16712 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
16713 names defined in loop.
16715 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
16716 Sebastian Pop <s.pop@samsung.com>
16718 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
16719 Discard unstructured if-then-else regions.
16721 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
16722 Sebastian Pop <s.pop@samsung.com>
16724 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
16725 (cleanup_loop_iter_dom): Remove.
16726 (build_loop_iteration_domains): Remove.
16727 (build_scop_context): Remove.
16728 (build_scop_iteration_domain): Remove.
16729 (add_loop_constraints): New.
16730 (build_iteration_domains): New.
16731 (build_poly_scop): Call build_iteration_domains.
16733 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
16734 Sebastian Pop <s.pop@samsung.com>
16736 * graphite-scop-detection.c
16737 (scop_detection::harmful_loop_in_region): Free dom and loops.
16738 (scop_detection::loop_body_is_valid_scop): Free bbs.
16740 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
16741 Sebastian Pop <s.pop@samsung.com>
16743 * graphite-scop-detection.c (record_loop_in_sese): New.
16744 (gather_bbs::before_dom_children): Call record_loop_in_sese.
16745 (build_scops): Remove call to build_sese_loop_nests.
16746 * sese.c (sese_record_loop): Remove.
16747 (build_sese_loop_nests): Remove.
16748 (new_sese_info): Remove region->loops.
16749 (free_sese_info): Same.
16750 * sese.h (sese_contains_loop): Same.
16751 (build_sese_loop_nests): Remove.
16752 (sese_contains_loop): Remove.
16754 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
16755 Sebastian Pop <s.pop@samsung.com>
16757 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
16758 loop_is_valid_in_scop.
16759 (scop_detection::harmful_stmt_in_region): Renamed
16760 harmful_loop_in_region.
16761 Call loop_is_valid_in_scop.
16763 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
16764 Sebastian Pop <s.pop@samsung.com>
16766 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
16769 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
16770 Sebastian Pop <s.pop@samsung.com>
16772 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
16773 * graphite.h (struct poly_bb): Remove field is_reduction.
16774 (PBB_IS_REDUCTION): Remove.
16776 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
16777 Sebastian Pop <s.pop@samsung.com>
16779 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
16780 (add_pdr_constraints): Same.
16781 (scop_get_reads): Same.
16782 (scop_get_must_writes): Same.
16783 (scop_get_may_writes): Same.
16784 (scop_get_original_schedule): Same.
16785 (extend_schedule): Same.
16786 (apply_schedule_on_deps): Same.
16787 (carries_deps): Same.
16788 (compute_deps): Same.
16789 (scop_get_dependences): Same.
16790 * graphite-isl-ast-to-gimple.c
16791 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
16792 * graphite-optimize-isl.c (get_schedule_for_band): Same.
16793 (get_schedule_for_band_list): Same.
16794 (get_schedule_map): Same.
16795 (apply_schedule_map_to_scop): Same.
16796 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
16797 (build_loop_iteration_domains): Same.
16798 (add_condition_to_pbb): Same.
16799 (add_param_constraints): Same.
16800 (pdr_add_memory_accesses): Same.
16801 (pdr_add_data_dimensions): Same.
16803 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
16805 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
16808 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
16810 * common.opt (feliminate-dwarf2-dups): Replace references to
16811 "DWARF 2" with just "DWARF".
16812 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
16813 * doc/extend.texi: Likewise.
16814 * doc/cpp.texi: Likewise.
16815 * doc/invoke.texi: Likewise.
16816 (Option Summary): Add -gdwarf to list of Debugging Options.
16817 (Debugging Options): Document -gdwarf.
16818 * doc/contrib.texi: Spell "DWARF" like that.
16820 2016-01-21 Jakub Jelinek <jakub@redhat.com>
16822 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
16823 warning. Fix up formatting.
16825 PR middle-end/67653
16826 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
16827 attempt to mark memory input operand addressable and
16828 call prepare_gimple_addressable in that case. Don't adjust
16829 input_location for diagnostics, use error_at instead.
16831 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
16833 * config/rs6000/ppc-auxv.h: New file.
16834 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
16835 (cpu_is): Likewise.
16836 (cpu_supports): Likewise.
16837 * config/rs6000/rs6000.c: include "ppc-auxv.h".
16838 (cpu_is_info): New variable.
16839 (cpu_supports_info): Likewise.
16840 (tcb_verification_symbol): Likewise.
16841 (cpu_builtin_p): Likewise.
16842 (cpu_expand_builtin): New function.
16843 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
16844 (rs6000_init_builtins): Likewise.
16845 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
16846 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
16847 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
16848 * configure: Regenerate.
16849 * config.in: Likewise.
16850 * doc/extend.texi (PowerPC Built-in Functions): Document
16851 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
16853 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
16856 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
16858 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
16861 2016-01-20 Richard Henderson <rth@redhat.com>
16867 * tree.c (tm_define_builtin): New.
16868 (find_tm_vector_type): New.
16869 (build_tm_vector_builtins): New.
16870 (build_common_builtin_nodes): Call it.
16872 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
16874 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
16875 (arm_fp_ok): Likewise.
16876 (arm_fp): Likewise.
16877 (arm_crypto): Likewise.
16879 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
16880 Richard Biener <rguenther@suse.de>
16882 PR tree-optimization/69328
16883 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
16884 vectors have same number of elements.
16885 (vectorizable_condition): Fix masked version recognition.
16887 2016-01-20 Richard Biener <rguenther@suse.de>
16889 PR tree-optimization/69345
16890 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
16891 (VN_INFO_PTR_INFO): Likewise.
16892 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
16893 info when it is equal between non-dominating SSA names.
16894 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16895 Make sure to look at original SSA infos.
16897 2016-01-20 Jeff Law <law@redhat.com>
16900 * config/m68k/predicates.md (pow2_m1_operand): New predicate
16902 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
16903 (pc_or_label_operand): New predicate.
16904 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
16905 tests for small integers that are 2^n - 1.
16907 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
16909 * doc/invoke.texi (Options Summary): Add '.' after @xref.
16911 2016-01-19 Jeff Law <law@redhat.com>
16913 PR middle-end/69347
16914 * tree-ssa-threadbackwards.c
16915 (fsm_find_control_statement_thread_paths): Do not try to lookup
16916 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
16918 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
16920 * doc/lto.texi: Remove text that says only Gold has linker plugin
16923 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
16925 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
16926 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
16927 the DIE accordingly.
16928 (modified_type_die): Add REVERSE parameter and pass it recursively,
16929 as well as to base_type_die. Adjust presence check accordingly.
16930 (base_type_for_mode): Adjust call to modified_type_die.
16931 (add_type_attribute): Add REVERSE parameter and pass it to
16933 (generic_parameter_die): Adjust call to add_type_attribute.
16934 (add_scalar_info): Likewise.
16935 (add_subscript_info): Likewise.
16936 (gen_array_type_die): Likewise.
16937 (gen_descr_array_type_die): Likewise.
16938 (gen_entry_point_die): Likewise.
16939 (gen_enumeration_type_die): Likewise.
16940 (gen_formal_parameter_die): Likewise.
16941 (gen_subprogram_die): Likewise.
16942 (gen_variable_die ): Likewise.
16943 (gen_const_die): Likewise.
16944 (gen_field_die): Likewise.
16945 (gen_pointer_type_die): Likewise.
16946 (gen_reference_type_die): Likewise.
16947 (gen_ptr_to_mbr_type_die): Likewise.
16948 (gen_inheritance_die): Likewise.
16949 (gen_subroutine_type_die): Likewise.
16950 (gen_typedef_die): Likewise.
16951 (force_type_die): Adjust call to modified_type_die.
16953 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
16955 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
16956 flow throughout the file. Fix broken link to Objective-C 2.0
16958 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
16961 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
16963 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
16965 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
16968 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
16969 (maybe_record_node): Record cxa_pure_virtual as the only possible
16970 target if there are not ohter candidates.
16971 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
16973 2016-01-19 Richard Biener <rguenther@suse.de>
16975 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
16976 (get_memory_order): Likewise.
16978 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
16980 * tree-vect-stmts.c (vectorizable_store): Check
16983 2016-01-19 David Malcolm <dmalcolm@redhat.com>
16986 * gcc.c (driver::decode_argv): Add call to
16987 init_opts_obstack before init_options_struct.
16988 * opts.c (init_opts_obstack): Remove idempotency.
16989 (init_options_struct): Replace call to init_opts_obstack
16990 with a gcc_assert to verify that it has already been called.
16991 * toplev.c (toplev::main): Add call to init_opts_obstack before
16992 calls to init_options_struct.
16993 (toplev::finalize): Move cleanup of opts_obstack next to
16994 cleanup of save_decoded_options, clearing the latter, and
16995 save_decoded_options_count.
16997 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17000 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
17001 attribute to unconditional. Remove %? from output template.
17003 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17004 Jiong Wang <jiong.wang@arm.com>
17006 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
17007 generated from different expand order.
17009 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17011 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
17012 Add support for CCMP costing.
17014 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17016 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
17017 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
17018 (fccmpe<mode>): Likewise.
17019 (fcmp): Rename to fcmp and globalize pattern.
17021 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
17022 (aarch64_gen_ccmp_next): Add FP support.
17024 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17026 * target.def (gen_ccmp_first): Update documentation.
17027 (gen_ccmp_next): Likewise.
17028 * doc/tm.texi (gen_ccmp_first): Update documentation.
17029 (gen_ccmp_next): Likewise.
17030 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
17031 expand_ccmp_expr_1. Improve comments.
17032 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
17033 (ccmp_ior<mode>): Remove pattern.
17034 (cmp<mode>): Remove expand.
17035 (cmp): Globalize pattern.
17036 (cstorecc4): Use cc_register.
17037 (mov<mode>cc): Remove ccmp_cc_register check.
17038 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
17039 Simplify after removal of CC_DNE/* modes.
17040 (aarch64_ccmp_mode_to_code): Remove.
17041 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
17042 In 'k' case use integer as condition.
17043 (aarch64_nzcv_codes): Remove inverted cases.
17044 (aarch64_code_to_ccmode): Remove.
17045 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
17046 comparison with CC register to be used in folowing CCMP/branch/CSEL.
17047 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
17048 pattern. Return the comparison with CC register. Invert conditions
17049 when bitcode is OR.
17050 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
17051 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
17053 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17055 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
17056 instrumented_version.
17058 2016-01-19 Richard Biener <rguenther@suse.de>
17060 PR tree-optimization/69336
17061 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
17062 handled components with get_ref_base_and_extent.
17063 (equal_mem_array_ref_p): Adjust.
17065 2016-01-19 Jakub Jelinek <jakub@redhat.com>
17068 * shrink-wrap.c: Include valtrack.h.
17069 (move_insn_for_shrink_wrap): Add DEBUG argument. If
17070 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
17071 in between insn and where it will be moved to. Call
17072 dead_debug_insert_temp.
17073 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
17074 first and dead_debug_local_finish at the end.
17075 For uses and defs bitmap, handle all regs in between REGNO and
17076 END_REGNO, not just the first one.
17078 2016-01-19 Richard Biener <rguenther@suse.de>
17080 PR tree-optimization/69352
17081 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
17082 (equal_mem_array_ref_p): Constrain size and max size properly.
17083 Compare the reverse flag.
17085 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
17087 * ira.c (ira): Update regstat data if we deleted insns.
17089 2016-01-19 Jakub Jelinek <jakub@redhat.com>
17091 PR rtl-optimization/68955
17092 PR rtl-optimization/64557
17093 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
17094 here. Fix up formatting.
17095 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
17097 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17100 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
17101 assume that the node has body.
17102 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
17105 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17107 * lto-streamer-out.c (lto_output): Do not stream instrumentation
17110 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17112 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
17113 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
17115 2016-01-19 Martin Jambor <mjambor@suse.cz>
17116 Martin Liska <mliska@suse.cz>
17117 Michael Matz <matz@suse.de>
17119 * Makefile.in (OBJS): Add new source files.
17120 (GTFILES): Add hsa.c.
17121 * common.opt (disable_hsa): New variable.
17122 (-Whsa): New warning.
17123 * config.in (ENABLE_HSA): New.
17124 * configure.ac: Treat hsa differently from other accelerators.
17125 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
17126 $enable_offloading.
17127 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
17128 * doc/install.texi (Configuration): Document --with-hsa-runtime,
17129 --with-hsa-runtime-include, --with-hsa-runtime-lib and
17130 --with-hsa-kmt-lib.
17131 * doc/invoke.texi (-Whsa): Document.
17132 (hsa-gen-debug-stores): Likewise.
17133 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
17134 to invoke offload compiler for hsa acclerator.
17135 * opts.c (common_handle_option): Determine whether HSA offloading
17136 should be performed.
17137 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
17138 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
17139 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
17140 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
17141 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
17142 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
17143 GF_OMP_FOR_KIND_GRID_LOOP.
17144 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
17145 (pp_gimple_stmt_1): Likewise.
17146 * gimple-walk.c (walk_gimple_stmt): Likewise.
17147 * gimple.c (gimple_build_omp_grid_body): New function.
17148 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
17149 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
17150 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
17151 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
17152 GF_OMP_TEAMS_GRID_PHONY.
17153 (gimple_statement_omp_single_layout): Updated comments.
17154 (gimple_build_omp_grid_body): New function.
17155 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
17156 (gimple_omp_for_grid_phony): New function.
17157 (gimple_omp_for_set_grid_phony): Likewise.
17158 (gimple_omp_parallel_grid_phony): Likewise.
17159 (gimple_omp_parallel_set_grid_phony): Likewise.
17160 (gimple_omp_teams_grid_phony): Likewise.
17161 (gimple_omp_teams_set_grid_phony): Likewise.
17162 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
17163 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
17164 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
17165 (BUILT_IN_GOMP_TARGET): Updated type.
17166 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
17167 (adjust_for_condition): New function.
17168 (get_omp_for_step_from_incr): Likewise.
17169 (extract_omp_for_data): Moved parts to adjust_for_condition and
17170 get_omp_for_step_from_incr.
17171 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
17172 (fixup_child_record_type): Bail out if receiver_decl is NULL.
17173 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
17174 (scan_omp_parallel): Do not create child functions for phony
17176 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
17177 (scan_omp_1_op): Checking assert we are not remapping to
17178 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
17179 (parallel_needs_hsa_kernel_p): New function.
17180 (expand_parallel_call): Register apprpriate parallel child
17181 functions as HSA kernels.
17182 (grid_launch_attributes_trees): New type.
17183 (grid_attr_trees): New variable.
17184 (grid_create_kernel_launch_attr_types): New function.
17185 (grid_insert_store_range_dim): Likewise.
17186 (grid_get_kernel_launch_attributes): Likewise.
17187 (get_target_argument_identifier_1): Likewise.
17188 (get_target_argument_identifier): Likewise.
17189 (get_target_argument_value): Likewise.
17190 (push_target_argument_according_to_value): Likewise.
17191 (get_target_arguments): Likewise.
17192 (expand_omp_target): Call get_target_arguments instead of looking
17193 up for teams and thread limit.
17194 (grid_expand_omp_for_loop): New function.
17195 (grid_arg_decl_map): New type.
17196 (grid_remap_kernel_arg_accesses): New function.
17197 (grid_expand_target_kernel_body): New function.
17198 (expand_omp): Call it.
17199 (lower_omp_for): Do not emit phony constructs.
17200 (lower_omp_taskreg): Do not emit phony constructs but create for them
17201 a temporary variable receiver_decl.
17202 (lower_omp_taskreg): Do not emit phony constructs.
17203 (lower_omp_teams): Likewise.
17204 (lower_omp_grid_body): New function.
17205 (lower_omp_1): Call it.
17206 (grid_reg_assignment_to_local_var_p): New function.
17207 (grid_seq_only_contains_local_assignments): Likewise.
17208 (grid_find_single_omp_among_assignments_1): Likewise.
17209 (grid_find_single_omp_among_assignments): Likewise.
17210 (grid_find_ungridifiable_statement): Likewise.
17211 (grid_target_follows_gridifiable_pattern): Likewise.
17212 (grid_remap_prebody_decls): Likewise.
17213 (grid_copy_leading_local_assignments): Likewise.
17214 (grid_process_kernel_body_copy): Likewise.
17215 (grid_attempt_target_gridification): Likewise.
17216 (grid_gridify_all_targets_stmt): Likewise.
17217 (grid_gridify_all_targets): Likewise.
17218 (execute_lower_omp): Call grid_gridify_all_targets.
17219 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
17220 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
17221 (tree_omp_clause): Added union field dimension.
17222 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
17223 * tree.c (omp_clause_num_ops): Added number of arguments of
17224 OMP_CLAUSE__GRIDDIM_.
17225 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
17226 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
17227 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
17228 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
17229 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
17230 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
17231 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
17232 * tree-pass.h (make_pass_gen_hsail): Declare.
17233 (make_pass_ipa_hsa): Likewise.
17234 * ipa-hsa.c: New file.
17235 * lto-section-in.c (lto_section_name): Add hsa section name.
17236 * lto-streamer.h (lto_section_type): Add hsa section.
17237 * timevar.def (TV_IPA_HSA): New.
17238 * hsa-brig-format.h: New file.
17239 * hsa-brig.c: New file.
17240 * hsa-dump.c: Likewise.
17241 * hsa-gen.c: Likewise.
17244 * toplev.c (compile_file): Call hsa_output_brig.
17245 * hsa-regalloc.c: New file.
17247 2016-01-18 Jeff Law <law@redhat.com>
17249 PR tree-optimization/69320
17250 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
17251 ranged object, do nothing if the RHS constant is not [0..1].
17252 (optimize_stmt): Comparing a boolean ranged object against a
17253 constant outside [0..1] results in a compile-time constant.
17255 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
17258 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
17260 * doc/invoke.texi (Invoking GCC): Add new section to menu.
17261 (Option Summary): Update to reflect new section and moved options.
17262 (C++ Dialect Options): Move -fstats to new section.
17263 (Debugging Options): Move all dump, statistics, and other GCC
17264 developer options to new section. Rewrite section introduction
17265 and re-order remaining options to put the more basic ones first.
17266 (Optimization Options): Move -fira-verbose and -flto-report* to
17268 (Developer Options): New section incorporating moved options.
17269 * doc/cppopts.texi (-dM): Update cross-reference.
17271 2016-01-18 Richard Henderson <rth@redhat.com>
17274 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
17275 operands to pseudo only if CSE is expected. Split long immediate
17276 operands only after reload, and for the stack pointer.
17277 (*add<GPI>3_pluslong): Remove.
17278 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
17279 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
17280 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
17281 (*add<GPI>3 peepholes): New.
17282 (*add<GPI>3 splitters): New.
17283 * config/aarch64/constraints.md (Upl): New.
17284 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
17286 2016-01-18 Richard Biener <rguenther@suse.de>
17288 PR tree-optimization/69297
17289 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
17291 (vect_bb_vectorization_profitable_p): Clear visited flag again.
17293 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
17295 PR middle-end/68542
17296 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
17297 of mixind vector and scalar types.
17298 (fold_relational_const): Add handling of vector
17299 comparison with boolean result.
17300 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
17301 comparison of vector operands with boolean result for EQ/NE only.
17302 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
17303 (verify_gimple_cond): Likewise.
17304 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
17307 2016-01-18 Joseph Myers <joseph@codesourcery.com>
17309 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
17312 2016-01-18 Richard Biener <rguenther@suse.de>
17314 PR middle-end/69308
17315 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
17317 2016-01-18 Tom de Vries <tom@codesourcery.com>
17319 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
17321 2016-01-18 Tom de Vries <tom@codesourcery.com>
17323 * omp-low.c (set_oacc_fn_attrib): Make extern.
17324 * omp-low.h (set_oacc_fn_attrib): Declare.
17325 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
17326 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
17327 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
17328 Add and handle function parameter oacc_kernels_p.
17329 (find_reduc_addr, get_omp_data_i_param): New function.
17330 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
17331 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
17332 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
17333 Calculate dominance info. Skip loops that are not in a kernels region
17334 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
17335 (pass_parallelize_loops::execute): Call parallelize_loops with
17336 oacc_kernels_p argument.
17337 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
17338 New member function.
17339 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
17340 * passes.def: Add argument to pass_parallelize_loops instantation.
17342 2016-01-18 Tom de Vries <tom@codesourcery.com>
17344 * tree-parloops.c (pass_parallelize_loops::execute): Allow
17345 pass_parallelize_loops to be run outside the loop pipeline.
17347 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
17349 * tree-scalar-evolution.c (follow_copies_to_constant): New.
17350 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
17352 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
17355 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
17356 using get_ref_base_and_extent.
17357 (equal_mem_array_ref_p): New.
17358 (hashable_expr_equal_p): Add call to previous.
17360 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
17363 * tree-sra.c (disqualified_constants, constant_decl_p): New.
17364 (sra_initialize): Allocate disqualified_constants.
17365 (sra_deinitialize): Free disqualified_constants.
17366 (disqualify_candidate): Update disqualified_constants when appropriate.
17367 (create_access): Scan for constant-pool entries as we go along.
17368 (scalarizable_type_p): Add check against type_contains_placeholder_p.
17369 (maybe_add_sra_candidate): Allow constant-pool entries.
17370 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
17371 (initialize_constant_pool_replacements): New.
17372 (sra_modify_assign): Avoid mangling assignments created by previous,
17373 and don't generate writes into constant pool.
17374 (sra_modify_function_body): Call initialize_constant_pool_replacements.
17376 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17378 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
17379 andnot instruction.
17380 (scalar_chain::convert_op): Likewise.
17381 * config/i386/i386.md (*andndi3_doubleword): New.
17383 2016-01-18 Richard Biener <rguenther@suse.de>
17385 PR tree-optimization/69170
17386 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
17387 building a vector from scalar results of a pattern stmt.
17389 2016-01-18 Jakub Jelinek <jakub@redhat.com>
17391 * haifa-sched.c (autopref_multipass_init): Work around
17392 -Wmaybe-uninitialized warning.
17394 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
17396 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
17397 against the constant 0.
17399 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17401 PR tree-optimization/68799
17402 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
17403 look up phi candidates in the statement-candidate map.
17404 (phi_add_costs): Likewise.
17405 (record_phi_increments): Likewise.
17406 (phi_incr_cost): Likewise.
17407 (ncd_with_phi): Likewise.
17408 (all_phi_incrs_profitable): Likewise.
17410 2016-01-17 Jakub Jelinek <jakub@redhat.com>
17412 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
17413 -Wmaybe-uninitialized warning.
17415 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
17417 * doc/invoke.texi (Invoking GCC): Add new section to menu.
17418 (Option Summary): Update to reflect new section and moved options.
17419 (C++ Dialect Options): Move -fvtable-verify and related options.
17420 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
17421 and profiling-related options.
17422 (Optimization Options): Move profile generation options and
17423 -fstack-protector and related options.
17424 (Instrumentation Options): New section incorporating moved options.
17425 (Code Generation Options): Move -finstrument-functions and
17426 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
17428 2016-01-16 Tom de Vries <tom@codesourcery.com>
17430 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
17432 2016-01-16 Tom de Vries <tom@codesourcery.com>
17434 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
17436 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
17438 * hash-table.h (hash_table::empty): Turn into an inline wrapper
17439 that checks whether the table is already empty. Rename the
17440 original implementation to...
17441 (hash_table::empty_slot): ...this new private function.
17443 2016-01-15 David Malcolm <dmalcolm@redhat.com>
17445 PR diagnostic/68899
17446 * diagnostic-show-locus.c (layout::print_source_line): Move x
17447 offset of line until after call to
17448 get_line_width_without_trailing_whitespace.
17450 2016-01-15 Jeff Law <law@redhat.com>
17452 PR tree-optimization/69270
17453 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
17454 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
17455 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
17456 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
17457 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
17458 ssa_name_has_boolean_range and constant_boolean_node.
17460 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
17462 PR rtl-optimization/69030
17463 * lra-spills.c (remove_pseudos): Check nrefs and make the function
17465 (spill_pseudos): Delete debug insn for dead pseudo.
17466 (lra_spill): Initiate spill_hard_reg and slots memory separately.
17468 2016-01-15 Jiong Wang <jiong.wang@arm.com>
17470 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
17472 (TYPES_UNOPUS): Likewise.
17473 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
17474 builtin type, from UNOP to UNOPUS.
17475 (lbtruncuv4sf): Likewise.
17476 (lbtruncuv2df): Likewise.
17477 (lrounduv2sf): Likewise.
17478 (lrounduv4sf): Likewise.
17479 (lrounduv2df): Likewise.
17480 (lroundusf): Likewise.
17481 (lroundusf): Likewise.
17482 (lceiluv2sf): Likewise.
17483 (lceiluv4sf): Likewise.
17484 (lceiluv2df): Likewise.
17485 (lceilusf): Likewise.
17486 (lceiludf): Likewise.
17487 (lflooruv2sf): Likewise.
17488 (lflooruv4sf): Likewise.
17489 (lflooruv2df): Likewise.
17490 (lfloorusf): Likewise.
17491 (lfloorudf): Likewise.
17492 (lfrintnuv2sf): Likewise.
17493 (lfrintnuv4sf): Likewise.
17494 (lfrintnuv2df): Likewise.
17495 (lfrintnusf): Likewise.
17496 (lfrintnudf): Likewise.
17497 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
17499 (vcvtq_u32_f32): Likewise.
17500 (vcvtq_u64_f64): Likewise.
17501 (vcvta_u32_f32): Likewise.
17502 (vcvtaq_u32_f32): Likewise.
17503 (vcvtaq_u64_f64): Likewise.
17504 (vcvtm_u32_f32): Likewise.
17505 (vcvtmq_u32_f32): Likewise.
17506 (vcvtmq_u64_f64): Likewise.
17507 (vcvtn_u32_f32): Likwise.
17508 (vcvtnq_u32_f32): Likewise.
17509 (vcvtnq_u64_f64): Likewise.
17510 (vcvtp_u32_f32): Likewise.
17511 (vcvtpq_u32_f32): Likewise.
17512 (vcvtpq_u64_f64): Likewise.
17513 (vcvtmd_u64_f64): Likewise.
17514 (vcvtms_u32_f32): Likewise.
17515 (vcvtad_u64_f64): Likewise.
17516 (vcvtas_u32_f32): Likewise.
17517 (vcvtnd_u64_f64): Likewise.
17518 (vcvtns_u32_f32): Likewise.
17519 (vcvtpd_u64_f64): Likewise.
17520 (vcvtps_u32_f32): Likewise.
17522 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17524 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
17525 CSEL of zero_extended registers.
17527 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17529 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
17530 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
17532 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17534 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
17535 false when argument string is not found in the attributes table
17538 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
17541 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
17542 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
17543 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
17544 precision estimate.
17546 2016-01-15 Richard Biener <rguenther@suse.de>
17548 PR tree-optimization/66856
17549 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
17550 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
17551 (vect_create_new_slp_node): Increment stmt reference count.
17552 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
17553 an SLP tree before swapping operands.
17554 (vect_build_slp_tree): Likewise.
17555 (destroy_bb_vec_info): Free stmt info after SLP instances.
17556 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
17557 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
17558 (STMT_VINFO_NUM_SLP_USES): New macro.
17560 2016-01-15 Richard Biener <rguenther@suse.de>
17563 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
17564 (add_linkage_name): ... here.
17565 (gen_typedef_die): Use add_linkage_name_raw instead of
17566 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
17569 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
17571 * gimplify.c (oacc_default_clause): Decode reference and pointer
17572 types for both kernels and parallel regions.
17574 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
17576 PR middle-end/69246
17577 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
17579 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
17581 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
17582 (convert_scalars_to_vector): Likewise.
17584 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
17586 * doc/extend.texi (Type Traits): Fix grammar.
17588 2016-01-15 Martin Jambor <mjambor@suse.cz>
17590 * tree-inline.c (remap_decl): Use existing dclarations if
17591 remapping a type and prevent_decl_creation_for_types.
17592 (replace_locals_stmt): Do an initial remapping of non-VLA typed
17593 decls first. Do real remapping with
17594 prevent_decl_creation_for_types set.
17595 * tree-inline.h (copy_body_data): New field
17596 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
17599 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
17601 * config/s390/s390.opt (mmvcle): More verbose help text.
17603 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
17605 * config/s390/s390.opt: Add period to -mzvector option text.
17607 2016-01-15 Richard Biener <rguenther@suse.de>
17609 PR tree-optimization/68961
17610 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
17611 of invariants in stores again.
17613 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
17615 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
17617 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
17619 * config/i386/i386.c (ix86_expand_branch): Don't split
17620 DI mode xor instruction to SI mode.
17622 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
17625 * ipa-icf.c (sem_function::merge): Virtual functions may become
17626 reachable even if they address is not taken and there are no
17629 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
17631 * lto-streamer-out.c (subtract_estimated_size): New function.
17632 (get_symbol_initial_value): Use it.
17634 2016-01-15 Christian Bruel <christian.bruel@st.com>
17637 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
17638 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
17639 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
17640 use add_builtin_function_ext_scope instead of add_builtin_function.
17641 (neon_set_p, neon_crypto_set_p): Remove.
17642 (arm_init_builtins): Always call arm_init_neon_builtins and
17643 arm_init_crypto_builtins.
17644 (arm_expand_builtin): Check that builtins are allowed for the arch.
17645 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
17646 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
17647 arm_init_neon_builtins call.
17649 2016-01-15 Richard Biener <rguenther@suse.de>
17651 PR tree-optimization/69117
17652 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
17653 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
17654 of the leader conservatively.
17655 (free_scc_vn): Restore original SSA name infos.
17657 2016-01-14 Jeff Law <law@redhat.com>
17659 PR tree-optimization/69270
17660 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
17661 single bit of precision, verify it's also unsigned.
17662 (record_edge_info): Use constant_boolean_node rather than fold_convert
17663 to convert boolean_true/boolean_false to the right type.
17665 2016-01-14 Richard Henderson <rth@redhat.com>
17668 * loop-doloop.c (record_reg_sets): New.
17669 (doloop_optimize): Reject the transform if the sequence
17670 clobbers registers live at the end of the loop block.
17671 (doloop_optimize_loops): Enable df_live if needed.
17673 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
17675 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
17676 * config/rs6000/rs6000.c: Likewise.
17677 * config/rs6000/rs6000.h: Likewise.
17678 * config/rs6000/rs6000.md: Likewise.
17679 * doc/extend.texi: Likewsie.
17681 2016-01-14 Jeff Law <law@redhat.com>
17683 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
17686 2016-01-14 Richard Henderson <rth@redhat.com>
17690 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
17691 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
17692 instead of builtin_decl_declared_p to test for declaration.
17694 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
17696 * doc/loop.texi (Loop Analysis and Representation): Document
17697 loop_depth function.
17699 2016-01-14 Tom de Vries <tom@codesourcery.com>
17701 PR tree-optimization/68773
17702 * omp-low.c (expand_omp_target): Don't set force_output.
17703 * varpool.c (varpool_node::get_create): Same.
17704 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
17705 offload_funcs with force_output.
17707 2016-01-14 Jakub Jelinek <jakub@redhat.com>
17710 * lra-eliminations.c (move_plus_up): Don't change anything if either
17711 the outer or inner subreg mode is not MODE_INT.
17712 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
17713 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
17715 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
17717 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
17718 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
17719 reduc_uplus_@var{m}): Remove.
17720 * expr.c (expand_expr_real_2): Remove expansion path for
17721 reduc_[us](min|max|plus) optabs.
17722 * optabs-tree.c (scalar_reduc_to_vector): Remove.
17723 * optabs-tree.h (scalar_reduc_to_vector): Remove.
17724 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
17725 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
17726 * tree-vect-loop.c (vectorizable_reduction): Remove test for
17727 reduc_[us](min|max|plus) optabs.
17729 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
17731 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
17732 (reduc_plus_scal_v2sf): New.
17733 (reduc_smax_v2sf): Rename to...
17734 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
17735 (reduc_smin_v2sf): Rename to...
17736 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
17738 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
17740 * alias.c (compare_base_symbol_refs): New function.
17741 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
17744 2016-01-14 Jakub Jelinek <jakub@redhat.com>
17746 PR middle-end/68146
17747 PR tree-optimization/69155
17748 * tree-complex.c: Include cfganal.h.
17749 (phis_to_revisit): New variable.
17750 (extract_component): Add phiarg_p argument. Assert that returned
17751 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
17752 (update_phi_components): Partly rewrite to use loop over real/imag
17753 components instead of code duplication. If extract_component returns
17754 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
17755 create_tmp_reg into the PHI node instead, and mention the phi triplet
17756 in phis_to_revisit.
17757 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
17758 in phis_to_revisit at the end.
17760 2016-01-14 Richard Biener <rguenther@suse.de>
17762 PR tree-optimization/68060
17763 * tree-vect-loop.c (vect_is_simple_reduction): Check the
17764 outer loop reduction is only used in the inner loop before
17765 detecting a double reduction.
17767 2016-01-14 Jakub Jelinek <jakub@redhat.com>
17770 * combine.c (expand_field_assignment): Punt if compute_mode is
17771 unsupported scalar mode.
17773 2016-01-14 Richard Biener <rguenther@suse.de>
17775 PR tree-optimization/66856
17776 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
17777 SLP node only if it built successfully.
17778 (vect_analyze_slp_instance): Adjust.
17780 2016-01-14 Jeff Law <law@redhat.com>
17782 PR tree-optimization/69270
17783 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
17784 (record_edge_info): Use it. Convert boolean_{true,false}_node
17785 to the type of op0.
17787 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
17790 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
17791 use block_ultimate_origin
17792 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
17794 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
17796 * doc/invoke.texi (Submodel Options): Rename section to
17797 "Machine-Dependent Options" to better reflect its content.
17798 Rewrite introductory text to remove archaic CPU names.
17801 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
17803 * doc/invoke.texi (Code Gen Options): Move section up in file,
17804 before target-specific options. Update menu and option summary
17805 to reflect the new section ordering.
17807 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
17809 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
17810 (C++ Dialect Options): Add cross-reference to -std option.
17811 * doc/standards.texi (C++ Language): Document C++14 support.
17813 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
17815 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
17816 for pack/unpack functions for __ibm128.
17817 (PACK_IF): Likewise.
17818 (UNPACK_IF): Likewise.
17820 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
17821 support for __ibm128 pack/unpack functions.
17822 (rs6000_invalid_builtin): Likewise.
17823 (rs6000_init_builtins): Likewise.
17824 (rs6000_opt_masks): Likewise.
17826 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
17827 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
17829 (RS6000_BTM_COMMON): Likewise.
17831 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
17832 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
17833 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
17834 128-bit floating point. Add support for the double values to be
17835 in Altivec registers for TF/IF packing and unpacking, but restrict
17836 TD packing sub-fields to be FPR registers. Don't allow overlapped
17837 register support for packing. Allow pack inputs to be memory
17838 locations. Don't build generator functions for unpack<mode>_dm
17839 and unpack<mode>_nodm.
17840 (unpack<mode>_dm): Likewise.
17841 (unpack<mode>_nodm): Likewise.
17842 (pack<mode>): Likewise.
17844 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
17845 built-in functions to pack/unpack explicit __ibm128 values.
17846 (__builtin_unpack_ibm128): Likewise.
17848 * doc/extend.texi (PowerPC Built-in Functions): Document
17849 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
17851 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
17854 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
17855 Add new arg loc and pass it down as context.
17856 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
17857 to the location to use for the warning.
17858 (check_function_arguments): New arg loc. All callers changed. Pass
17859 it to check_function_nonnull.
17860 * c-common.h (check_function_arguments): Adjust declaration.
17862 2016-01-13 Jakub Jelinek <jakub@redhat.com>
17864 PR tree-optimization/69156
17865 * gimple.c (validate_type): Removed.
17866 (gimple_builtin_call_types_compatible_p): Use
17867 useless_type_conversion_p instead of validate_type.
17868 * value-prof.c (gimple_stringop_fixed_value): Fold
17869 icall_size to correct type.
17871 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
17873 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
17876 2016-01-13 Richard Henderson <rth@redhat.com>
17879 * target.def (builtin_tm_load, builtin_tm_store): Remove.
17880 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
17881 (ix86_builtin_tm_store): Remove.
17882 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
17883 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
17884 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
17885 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
17886 * doc/tm.texi: Rebuild.
17888 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
17889 (BUILT_IN_TM_MEMCPY_RTWN): New.
17890 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
17891 fallback from vector to integer helpers.
17892 (build_tm_load): Handle vector types directly, instead of
17894 (build_tm_store): Likewise.
17895 (expand_assign_tm): Prepare for register types not handled by
17896 the above. Copy them to memory and use memcpy.
17897 * tree.c (tm_define_builtin): New.
17898 (find_tm_vector_type): New.
17899 (build_tm_vector_builtins): New.
17900 (build_common_builtin_nodes): Call it.
17902 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
17904 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
17905 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
17907 2016-01-13 Tom de Vries <tom@codesourcery.com>
17909 PR tree-optimization/69169
17910 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
17911 handled_struct_type param.
17912 (create_variable_info_for, intra_create_variable_infos): Call
17913 create_variable_info_for_1 with extra arg.
17915 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
17917 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
17918 and "armv8.1-a+crc" entries.
17920 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
17923 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
17924 Change first operand predicate from register_or_constm1_operand
17925 to register_operand.
17926 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
17927 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
17928 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
17929 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
17930 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
17931 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
17932 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
17933 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
17934 comparison with constm1_rtx from vec_prefetch_gen part.
17936 2016-01-13 Richard Biener <rguenther@suse.de>
17938 PR tree-optimization/69013
17939 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
17940 Exchange assert for a test.
17942 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17945 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
17947 2016-01-13 Richard Biener <rguenther@suse.de>
17949 PR tree-optimization/69242
17950 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
17951 assert with a check.
17953 2016-01-13 Richard Biener <rguenther@suse.de>
17955 PR tree-optimization/69186
17956 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
17957 Properly guard vect_update_misalignment_for_peel call.
17959 2016-01-12 Jeff Law <law@redhat.com>
17961 PR tree-optimization/pr67755
17962 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
17963 "need_profile_correction".
17964 (thread_block_1): Initialize new field to false by default. If we
17965 have multiple thread paths through a common joiner to different
17966 final targets, then set new field to true.
17967 (compute_path_counts): Only do count adjustment when it's really
17970 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
17972 * doc/invoke.texi (Spec Files): Move section down in file, past
17973 all command-line option descriptions.
17975 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17977 PR middle-end/54809
17978 * doc/gty.texi: Remove documentation of mark_hook.
17979 * gengtype.c (struct write_types_data): Remove code to support
17980 mark_hook attribute.
17981 (walk_type): Likewise.
17982 (write_func_for_structure): Likewise.
17984 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
17986 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
17987 Directory Options, and -specs= to Overall Options.
17988 (Overall Options): Adjust similarly. Reorder to group related
17989 options together. Make -specs= cross-reference the spec file details.
17990 (Directory Options): Adjust similarly.
17992 2016-01-12 Jeff Law <law@redhat.com>
17994 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
17996 2016-01-12 Olivier Hainque <hainque@adacore.com>
17998 * gcc.c (spec_undefvar_allowed): New global.
17999 (process_command): Set to true when running for --version or --help,
18001 (getenv_spec_function): When the variable is not defined, use the
18002 variable name as the variable value if we're allowed not to issue
18005 2016-01-12 Bin Cheng <bin.cheng@arm.com>
18007 PR tree-optimization/68911
18008 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
18009 information computed for expression "init + nit * step".
18011 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
18013 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
18014 about name of GCC executable. Remove deleted node from menu.
18015 (Directory Options) <-B>: Remove cross-reference to deleted node.
18016 (Target Options): Delete section.
18018 2016-01-12 Christian Bruel <christian.bruel@st.com>
18021 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
18022 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
18024 2016-01-12 Jakub Jelinek <jakub@redhat.com>
18027 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
18028 aligned_mem is properly set for AVX512-VL floating point masked
18032 * ifcvt.c (cond_exec_process_if_block): When removing the last
18033 insn from then_bb, remove also any possible barriers that follow it.
18035 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
18039 * config/i386/iamcu.h (SIZE_TYPE): New macro.
18040 (PTRDIFF_TYPE): Likewise.
18041 (WCHAR_TYPE): Likewise.
18042 (WCHAR_TYPE_SIZE): Likewise.
18043 (STDINT_LONG32): Likewise.
18045 2016-01-12 Richard Biener <rguenther@suse.de>
18047 PR tree-optimization/69053
18048 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
18049 convert initial value for cond reductions.
18051 2016-01-12 Richard Biener <rguenther@suse.de>
18053 PR tree-optimization/69007
18054 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
18055 widen_sum after dot_prod and sad.
18057 2016-01-12 Richard Biener <rguenther@suse.de>
18059 PR tree-optimization/69168
18060 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
18061 pattern stmt SLP type.
18062 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
18063 end up unused so cope with that case.
18065 2016-01-12 Richard Biener <rguenther@suse.de>
18067 PR tree-optimization/69157
18068 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
18069 stmts def type only during analyze phase.
18070 (vectorizable_call): Likewise.
18071 (vectorizable_simd_clone_call): Likewise.
18072 (vectorizable_conversion): Likewise.
18073 (vectorizable_assignment): Likewise.
18074 (vectorizable_shift): Likewise.
18075 (vectorizable_operation): Likewise.
18076 (vectorizable_store): Likewise.
18077 (vectorizable_load): Likewise.
18079 2016-01-12 Richard Biener <rguenther@suse.de>
18081 PR tree-optimization/69174
18082 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
18084 (vectorizable_load): Properly compute the number of loads needed
18085 for permuted strided SLP loads and do not spuriously assign
18086 to SLP_TREE_VEC_STMTS.
18088 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
18090 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
18091 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
18092 (MD_EXEC_PREFIX): Remove.
18093 (MD_STARTFILE_PREFIX) Removee.
18094 (FILE_NAME_ABSOLUTE_P): Remove.
18095 (CPP_SPEC): Do not read macros from sys/version.h.
18096 (LINK_COMMAND_SPEC): Remove.
18097 (LOCAL_INCLUDE_DIR): Remove.
18098 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
18099 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
18100 (POST_LINK_SPEC): Define to invoke stubify after linker
18101 (LIBSTDCXX): Remove define
18102 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
18103 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
18104 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
18105 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
18106 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
18107 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
18108 (i386_djgpp_asm_named_section): Add propotype of new procedure
18110 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
18111 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
18112 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
18113 in config/i386/djgpp.h).
18114 (STANDARD_STARTFILE_PREFIX_2): Define identical to
18115 STANDARD_STARTFILE_PREFIX_1.
18116 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
18117 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
18118 installation errors.
18119 (MAX_OFILE_ALIGNMENT): Define to 128.
18120 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
18122 * config/i386/djgpp.c: New file. Add implementation of
18123 i386_djgpp_asm_named_section.
18125 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
18127 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
18128 Add rule for building djgpp.o.
18130 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18132 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
18133 (rtx_is_swappable_p): Reductions are swappable.
18134 (insn_is_swappable_p): V2DF reductions are swappable.
18136 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
18138 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
18139 reloads for other unsupported memory operands.
18141 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
18142 Jim Wilson <jim.wilson@linaro.org>
18145 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
18146 copy_to_mode_reg instead of force_reg.
18148 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
18151 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
18152 TARGET_80387 is true.
18154 2016-01-11 Jakub Jelinek <jakub@redhat.com>
18157 * lra-eliminations.c (move_plus_up): Only move plus up
18158 if subreg of the constant can be simplified into constant
18159 and use the simplified subreg of the constant instead of
18160 the original constant.
18162 * fold-const.c (fold_convertible_p): Don't return true
18163 for conversion of VECTOR_TYPE to same sized integral type.
18164 (fold_convert_loc): Fix up formatting. Fold conversion of
18165 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
18166 instead of NOP_EXPR.
18168 PR tree-optimization/69214
18169 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
18170 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
18173 PR tree-optimization/69207
18174 * tree-vect-slp.c (vect_get_constant_vectors): For
18175 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
18176 fold_convertible_p to vector_type's element type, and always
18177 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
18179 2016-01-11 Richard Biener <rguenther@suse.de>
18181 PR tree-optimization/69173
18182 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
18183 fixup the cycle if all stmts are in a pattern.
18185 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
18187 PR middle-end/68999
18188 * alias.c (base_alias_check): Move check for addresses with
18189 alignment ANDs before the call for compare_base_decls.
18190 (memrefs_conflict_p): Return -1 for different decls
18191 that went through alignment adjustments.
18193 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18195 PR rtl-optimization/68796
18196 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
18197 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
18198 and QImode comparisons against zero with CC_NZmode.
18199 * config/aarch64/iterators.md (short_mask): New mode_attr.
18201 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
18203 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
18204 (<avx512>_store<mode>_mask): Likewise.
18206 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
18207 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18209 PR rtl-optimization/68841
18210 * ifcvt.c (struct noce_if_info): Add orig_x field.
18211 (bbs_ok_for_cmove_arith): Add to_rename parameter.
18212 Don't record conflicts on to_rename if it's present.
18213 Allow memory destinations in sets.
18214 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
18215 blocks, passing orig_x to the checks.
18216 (noce_process_if_block): Set if_info->orig_x appropriately.
18218 2016-01-11 Tom de Vries <tom@codesourcery.com>
18220 PR tree-optimization/69069
18221 * tree-parloops.c (create_parallel_loop): Add missing phi args.
18223 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
18225 PR rtl-optimization/68920
18226 * config/i386/i386.c (ix86_option_override_internal): Restrict number
18227 of conditional moves for RTL if-conversion to 1 for
18228 TARGET_ONE_IF_CONV_INSN.
18229 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
18230 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
18231 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
18232 parameter to restirct number of conditional moves for
18234 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
18235 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
18238 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
18241 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
18242 onepart vars. Fix typo in comment. Fix reversed condition in
18244 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
18247 * var-tracking.c (dump_onepart_variable_differences): New.
18248 (dataflow_set_different): If a detailed dump is requested,
18249 delay early returns and dump differences between onepart
18250 variables present before and after, and added variables.
18252 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
18255 * expr.c (expand_expr_real_1): For boolean vector constants
18256 with a scalar mode use const_scalar_mask_from_tree.
18257 (const_scalar_mask_from_tree): New.
18258 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
18259 assigned to a mask type to handle constants.
18261 2016-01-11 Martin Jambor <mjambor@suse.cz>
18264 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
18265 useless parameters if we cannot change function signature.
18267 2016-01-11 Martin Jambor <mjambor@suse.cz>
18270 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
18273 2016-01-11 Tom de Vries <tom@codesourcery.com>
18275 PR tree-optimization/69109
18276 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
18279 2016-01-11 Tom de Vries <tom@codesourcery.com>
18281 PR tree-optimization/69108
18282 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
18283 res is not used in a phi.
18285 2016-01-11 Yury Gribov <y.gribov@samsung.com>
18288 * common.opt (frandom-seed): Fix parameter name.
18289 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
18291 2016-01-11 Tom de Vries <tom@codesourcery.com>
18293 PR tree-optimization/69058
18294 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
18297 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
18299 * config/arc/arc.opt (mdiv-rem): Add period to the end.
18300 (mcode-density): Likewise.
18302 2016-01-10 Tom de Vries <tom@codesourcery.com>
18304 PR tree-optimization/69062
18305 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
18306 (parallelize_loops): Don't paralelize loop that has phi with address
18309 2016-01-10 Tom de Vries <tom@codesourcery.com>
18311 PR tree-optimization/69039
18312 * tree-parloops.c (try_create_reduction_list): Only allow single exit
18315 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
18317 PR middle-end/68743
18318 * match.pd: Require target has function_c99_misc before doing
18319 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
18321 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
18323 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
18325 * configure: Regenerate.
18327 2016-01-09 Jakub Jelinek <jakub@redhat.com>
18329 PR middle-end/50865
18330 PR tree-optimization/69097
18331 * fold-const.h (expr_not_equal_to): New prototype.
18332 * fold-const.c: Include stringpool.h and tree-ssanames.h.
18333 (expr_not_equal_to): New function.
18334 * match.pd (X % -Y is the same as X % Y): Don't optimize
18335 unless X is known not to be equal to minimum or Y is known
18336 not to be equal to -1.
18337 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
18338 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
18339 (simplify_stmt_using_ranges): Adjust caller.
18340 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
18341 substitute_and_fold.
18343 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
18345 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
18348 2016-01-08 Jakub Jelinek <jakub@redhat.com>
18350 PR tree-optimization/69167
18351 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
18352 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
18354 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
18356 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
18357 Richard Biener <rguenther@suse.de>
18359 PR tree-optimization/68707
18360 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
18361 instances that can be handled via vect_load_lanes.
18363 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
18365 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
18366 if we can't determine address equivalence.
18367 * alias.c (compare_base_decl): Update for changed return value of
18368 symtab_node::equal_address_to.
18370 2016-01-08 Jason Merrill <jason@redhat.com>
18374 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
18375 * expr.c (store_field): Not here.
18376 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
18377 call with TREE_ADDRESSABLE type.
18378 * tree-cfg.c (verify_gimple_call): Adjust.
18380 2016-01-08 Olivier Hainque <hainque@adacore.com>
18382 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
18385 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
18387 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
18388 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
18389 (reduc_smin_v2sf): Rename to...
18390 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
18391 (reduc_splus_v2sf): Rename to...
18392 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
18394 2016-01-08 Jakub Jelinek <jakub@redhat.com>
18396 PR tree-optimization/69162
18397 * gimplify.c (gimplify_va_arg_expr): Encode original type of
18398 valist argument in another argument.
18399 (gimplify_modify_expr): Adjust for the above change. Cleanup.
18400 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
18401 to determine the va_list type, build a MEM_REF instead of
18402 build_fold_indirect_ref.
18404 PR tree-optimization/69172
18405 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
18408 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
18410 PR tree-optimization/67781
18411 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
18412 and cmpnop in two steps: first the ones not accessed in original
18413 gimple expression in a endian independent way and then the ones not
18414 accessed in the final result in an endian-specific way.
18416 2016-01-08 Jakub Jelinek <jakub@redhat.com>
18418 PR tree-optimization/69083
18419 * tree-vect-slp.c (vect_get_constant_vectors): For
18420 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
18421 element type. If op is fold_convertible_p to vector_type's element
18422 type, use NOP_EXPR instead of VCE.
18424 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
18426 PR rtl-optimization/67778
18427 PR rtl-optimization/68634
18428 PR rtl-optimization/68909
18429 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
18430 block from the stack until done with it. Remove a superfluous
18431 bitmap set. Remove a superfluous bitmap test.
18433 2016-01-07 Martin Sebor <msebor@redhat.com>
18436 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
18437 constraint on the type of arguments.
18439 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
18441 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
18442 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
18443 unaligned_access on the gcc_options set.
18444 * config/arm/arm.c (arm_option_override_internal): Use
18445 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
18447 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
18450 * config/i386/i386.c (ix86_frame_pointer_required): Enable
18451 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
18453 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
18456 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
18459 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
18460 depending on frame_pointer_needed before remaining integer and SSE
18461 registers are saved.
18463 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
18466 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
18468 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
18471 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
18472 Use the "xBm" constraint.
18473 (float<sseintvecmodelower><mode>2<mask_name><round_name):
18475 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
18476 (sse_cvtsi2ssq<round_name>): Likewise.
18477 (sse_cvtss2si<round_name>): Likewise.
18478 (sse_cvtss2siq<round_name>): Likewise.
18479 (sse2_cvtsi2sdq<round_name>): Likewise.
18480 (sse2_cvtsd2si<round_name>): Likewise.
18481 (sse2_cvtsd2siq<round_name>): Likewise.
18482 * config/i386/subst.md (round_nimm_scalar_predicate): New
18485 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
18487 PR middle-end/67639
18488 * varasm.c (make_decl_rtl): Mark invalid register vars as
18491 PR rtl-optimization/66206
18492 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
18493 All callers changed.
18495 2016-01-07 Jakub Jelinek <jakub@redhat.com>
18497 PR tree-optimization/69141
18498 * tree-ssa-pre.c: Include langhooks.h.
18499 (eliminate_dom_walker::before_dom_children): Use
18500 lang_hooks.decl_printable_name instead of
18501 cgraph_node::get ()->name ().
18503 PR middle-end/68960
18504 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
18505 it and DECL_ALIGN too.
18507 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
18509 * config/mips/mips-ftypes.def: Sort to lexicographical order.
18511 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
18514 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
18515 depending on frame_pointer_needed before remaining integer and SSE
18516 registers are saved.
18518 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18520 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
18521 mode iterator with VSX_M2.
18522 (*p9_vecstore_<mode>): Likewise.
18523 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
18524 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
18525 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
18526 (define_split for VSX_LE128 stores): Likewise.
18527 (define_peephole2 for TImode LE swaps): Likewise.
18528 (define_split for VSX_LE128 post-reload stores): Likewise.
18530 2016-01-06 Marek Polacek <polacek@redhat.com>
18533 * convert.c (convert_to_integer_1): Adjust call to
18534 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
18535 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
18536 EXPR instead of ARG.
18537 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
18539 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
18542 * doc/extend.texi (RL78 Variable Attributes): New section.
18544 2016-01-05 Marek Polacek <polacek@redhat.com>
18547 * builtins.c (get_memmodel): Use expansion point location rather than
18548 the input location. Call warning_at rather than warning.
18549 (expand_builtin_atomic_compare_exchange): Likewise.
18550 (expand_builtin_atomic_load): Likewise.
18551 (expand_builtin_atomic_store): Likewise.
18552 (expand_builtin_atomic_clear): Likewise.
18554 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
18557 * config/i386/i386.c (ix86_expand_vector_logical_operator):
18558 Replace nonimmediate_operand with vector_operand.
18559 * config/i386/predicates.md (vector_operand): New predicate.
18560 (general_vector_operand): Replace nonimmediate_operand with
18562 * config/i386/sse.md: Replace nonimmediate_operand with
18563 vector_operand and m constraint with Bm constraint on SSE
18564 patterns with 16-byte memory operand.
18565 * config/i386/subst.md (round_nimm_predicate): Replace
18566 nonimmediate_operand with vector_operand.
18567 (round_saeonly_nimm_predicate): Likewise.
18568 (round_saeonly_nimm_scalar_predicate): New.
18570 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
18573 * config/i386/constraints.md (Bm): New constraint.
18574 * config/i386/predicates.md (vector_memory_operand): New
18576 * config/i386/sse.md: Replace xm with xBm in plusminus and
18577 any_logic patterns.
18579 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
18582 * doc/extend.texi (V850 Function Attributes): New section.
18583 (V850 Variable Attributes): New section.
18585 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
18588 * doc/extend.texi (MicroBlaze Function Attributes): Document
18589 interrupt_handler and fast_interrupt attributes.
18591 2016-01-05 Sergei Trofimovich <siarheit@google.com>
18594 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
18595 for local symbolic operands.
18596 * config/ia64/predicates.md (local_symbolic_operand64): New
18599 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18601 PR rtl-optimization/68651
18602 * combine.c (combine_simplify_rtx): Canonicalize x + x into
18605 2016-01-05 Nathan Sidwell <nathan@acm.org>
18607 * alias.c (compare_base_decls): Use symtab_node::get.
18609 2016-01-05 Nick Clifton <nickc@redhat.com>
18612 * ira-costs.c (copy_cost): Initialise the t_icode field of the
18613 secondary_reload_info structure.
18616 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
18617 decls if weak support is available.
18619 2016-01-04 Martin Sebor <msebor@redhat.com>
18621 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
18623 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
18625 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
18626 OPTION_MASK_P9_DFORM.
18628 * config/rs6000/constraints.md (wo constraint): New constraint for
18631 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
18633 (rs6000_init_hard_regno_mode_ok): Likewise.
18635 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
18638 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
18639 expanders not to have constraints. Add support for ISA 3.0 xxperm
18640 instruction. Add support for fusing xxlor with xxperm.
18641 (altivec_vperm_<mode>_internal): Likewise.
18642 (altivec_vperm_v8hiv16qi): Likewise.
18643 (altivec_vperm_<mode>v16q): Likewise.
18644 (altivec_vperm_<mode>_uns): Likewise.
18645 (vperm_v8hiv4si): Likewise.
18646 (vperm_v16qiv8hi): Likewise.
18648 * doc/md.texi (RS/6000 constraints): Document wo constraint.
18650 2016-01-04 Jakub Jelinek <jakub@redhat.com>
18652 Update copyright years.
18654 * gcc.c (process_command): Update copyright notice dates.
18655 * gcov-dump.c (print_version): Ditto.
18656 * gcov.c (print_version): Ditto.
18657 * gcov-tool.c (print_version): Ditto.
18658 * gengtype.c (create_file): Ditto.
18659 * doc/cpp.texi: Bump @copying's copyright year.
18660 * doc/cppinternals.texi: Ditto.
18661 * doc/gcc.texi: Ditto.
18662 * doc/gccint.texi: Ditto.
18663 * doc/gcov.texi: Ditto.
18664 * doc/install.texi: Ditto.
18665 * doc/invoke.texi: Ditto.
18667 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
18669 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
18670 modes larger than TImode as TImode if NEON is not enabled.
18672 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
18675 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
18676 mode for %f0-%f31 only if TARGET_FPU.
18678 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
18681 * config/sparc/sparc.c (scan_record_type): Take into account subfields
18682 to compute the PACKED_P predicate.
18683 (function_arg_record_value): Minor tweaks.
18685 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
18687 * doc/install.texi (--with-multilib-list): Describe the meaning of the
18688 option for arm*-*-* targets.
18690 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
18692 * doc/extend.texi (Common Function Attributes): Move docs for
18693 MSP430-specific attributes to....
18694 (MSP430 Function Attributes): ...here. Delete the redundant
18695 entries and copy-edit the remaining text.
18696 (MSP430 Variable Attributes): Use uniform format for index
18697 entries and add a cross-reference to the corresponding function
18700 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
18702 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
18704 (x86 Options): Likewise.
18706 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
18710 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
18711 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
18712 to corresponding attribute.
18714 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
18716 * doc/extend.texi (Common Function Attributes) <noplt>: Move
18717 to correct alphabetization of table. Copy-edit and correct
18719 <stack_protect>: Likewise.
18720 <target_clones>: Likewise.
18722 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
18723 Correct punctuation.
18724 (Code Gen Options) <-fno-plt>: Copy-edit.
18726 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
18729 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
18730 SI values. Explicitly convert SI to DI and vice-versa.
18732 2016-01-01 Jakub Jelinek <jakub@redhat.com>
18734 PR tree-optimization/69070
18735 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
18736 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
18739 * ubsan.c (ubsan_instrument_float_cast): Call
18740 initialize_sanitizer_builtins.
18743 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
18745 Copyright (C) 2016 Free Software Foundation, Inc.
18747 Copying and distribution of this file, with or without modification,
18748 are permitted in any medium without royalty provided the copyright
18749 notice and this notice are preserved.