1 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
4 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
6 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
9 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
10 enclosing parallel construct for reduction variables on OpenACC loop
13 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
15 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
16 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
18 (function_to_dwarf_procedure): Update comment.
20 2016-08-18 David Malcolm <dmalcolm@redhat.com>
22 * input.c (diagnostics_file_cache_forcibly_evict_file): New
24 * input.h (diagnostics_file_cache_forcibly_evict_file): New
26 * selftest.c (selftest::temp_source_file::~temp_source_file):
27 Evict m_filename from the diagnostic file cache.
29 2016-08-18 Richard Biener <rguenther@suse.de>
31 * tree-pass.h (make_pass_materialize_all_clones): Declare.
32 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
33 make_pass_materialize_all_clones): New simple IPA pass encapsulating
34 clone materialization.
35 * passes.def (all_late_ipa_passes): Start with
36 pass_materialize_all_clones.
37 * cgraphunit.c (symbol_table::compile): Remove call to
38 materialize_all_clones.
39 * tree-into-ssa.c: Include statistics.h.
40 (update_ssa): Count number of times we do incremental/rewrite
43 2016-08-18 Richard Biener <rguenther@suse.de>
45 PR tree-optimization/77282
46 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
47 When doing auto-parallelizing also prevent use of PHIs that
48 carry dependences across loop backedges.
50 2016-08-18 Tamar Christina <tamar.christina@arm.com>
51 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
53 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
55 2016-08-18 Richard Biener <rguenther@suse.de>
57 * ssa-iterators.h (ssa_vuse_operand): New inline.
58 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
59 (predicate_all_scalar_phis): Use remove_phi_node to remove
60 phi nodes predicated. Delay removing virtual PHIs.
61 (predicate_mem_writes): Update virtual operands.
62 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
63 (tree_if_conversion): Do not rewrite virtual SSA form.
64 * tree-phinodes.c (release_phi_node): Make static.
65 * tree-phinodes.h (release_phi_node): Remove.
67 2016-08-18 Jakub Jelinek <jakub@redhat.com>
69 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
70 codes that appear in bdesc_* arrays, instead include i386-builtin.def
71 twice to define those.
72 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
73 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
74 bdesc_multi_arg): Define by including i386-builtin.def the third time.
75 * config/i386/i386-builtin.def: New file.
77 2016-08-17 David Malcolm <dmalcolm@redhat.com>
79 * input.c (get_source_range_for_char): Rename to...
80 (selftest::get_source_range_for_char): ...this, and move within
81 the #if CHECKING_P guard.
82 (get_num_source_ranges_for_substring): Rename to...
83 (selftest::get_num_source_ranges_for_substring): ...this, move
84 within the #if CHECKING_P guard, and make static.
85 (selftest::assert_num_substring_ranges): Initialize
88 2016-08-18 Alan Modra <amodra@gmail.com>
90 PR rtl-optimization/72771
91 * reload.c (find_reloads): Don't assume that a subreg mem is OK
92 when find_reloads_toplev returns address_reloaded==-1.
93 (alternative_allows_const_pool_ref): Update comment.
95 2015-08-17 Alan Hayward <alan.hayward@arm.com>
97 PR tree-optimization/71752
98 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
99 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
101 2016-08-17 Jakub Jelinek <jakub@redhat.com>
103 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
104 instead of testing ECF_NORETURN bit in gimple_call_flags.
105 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
106 * predict.c (tree_bb_level_predictions): Likewise.
107 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
110 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
111 turning a call into __builtin_unreachable-like noreturn call, adjust
112 gimple_call_set_fntype.
113 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
114 gimple_call_fntype has void return type.
116 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
118 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
119 maybe_lookup_decl, to handle nested acc loop directives.
121 2016-08-17 Richard Biener <rguenther@suse.de>
123 PR tree-optimization/76490
124 * tree-vrp.c (update_value_range): Preserve overflow infinities
125 when intersecting with ranges from get_range_info.
126 (operand_less_p): Handle overflow infinities correctly.
127 (value_range_constant_singleton): Use vrp_operand_equal_p
128 to handle overflow max/min correctly.
129 (vrp_valueize): Likewise.
130 (union_ranges): Likewise.
131 (intersect_ranges): Likewise.
132 (vrp_visit_phi_node): Improve iteration limitation to only
133 apply when we'll possibly re-visit the PHI via a changed argument
136 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
138 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
139 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
140 rather than those that should not be built.
142 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
145 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
147 2016-08-17 Richard Biener <rguenther@suse.de>
149 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
150 (verify_vssa): New function verifying virtual SSA form.
151 (verify_ssa): Call it.
152 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
153 Do not apply loop-closed SSA handling to virtuals.
154 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
155 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
156 when rewriting their symbol.
157 (prepare_def_site_for): Likewise.
158 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
159 operands of moved stmts.
161 2016-08-17 Richard Biener <rguenther@suse.de>
163 PR tree-optimization/23855
164 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
165 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
166 find guards to hoist. Do not update SSA form but rewrite virtuals
167 into loop closed SSA.
168 (find_loop_guard): Adjust to skip already hoisted guards. Do
169 not mark virtuals for renaming or update SSA form.
171 2016-08-17 Martin Liska <mliska@suse.cz>
173 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
174 a LONG_LONG_TYPE_SIZE comparison.
175 * gcov-io.h: Remove macro definitions.
176 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
177 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
180 2016-08-16 Jakub Jelinek <jakub@redhat.com>
182 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
183 that builtins not mentioned in bdesc_* arrays come first, then
184 the ones mentioned in bdesc_* arrays in the order they appear in
185 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
186 IX86_BUILTIN__BDESC_*_LAST enumerator.
187 (bdesc_mpx): Fix up a comment typo.
188 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
189 __builtin_ia32_vpcomneu[bwdq] builtins.
190 (BDESC_VERIFY, BDESC_VERIFYS): Define.
191 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
192 enum ix86_builtins ordering.
193 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
194 for direct bdesc_* array member access instead of searching all the
195 arrays until an fcode match is found.
197 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
199 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
200 pattern as define_insn_and_split. Split insn before reload to
202 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
203 <shift_insn><mode>3_1.
204 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
205 <rotate_insn><mode>3_1.
207 2016-08-16 David Malcolm <dmalcolm@redhat.com>
210 * input.c (get_source_range_for_substring): Rename to...
211 (get_source_location_for_substring): ...this, adding param
212 "caret_idx", and converting output param from source_range * to
214 (get_source_range_for_char): New function.
215 (get_num_source_ranges_for_substring): Update comment to reflect
217 (assert_char_at_range): Update to use get_source_range_for_char
218 rather than get_source_range_for_substring.
219 (test_lexer_string_locations_concatenation_2): Likewise.
220 * substring-locations.h (get_source_range_for_substring): Rename
222 (get_source_location_for_substring): ...this, and adding param
223 "caret_idx", and converting output param from source_range * to
226 2016-08-16 David Malcolm <dmalcolm@redhat.com>
228 * input.c (class selftest::temp_source_file): Move to
230 (selftest::temp_source_file::temp_source_file): Move to
232 (selftest::temp_source_file::~temp_source_file): Likewise.
233 * selftest.c (selftest::temp_source_file::temp_source_file): Move
235 (selftest::temp_source_file::~temp_source_file): Likewise.
236 * selftest.h (class selftest::temp_source_file): Move here from
239 2016-08-16 Jakub Jelinek <jakub@redhat.com>
242 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
243 inlining, add cgraph edge for the added __builtin_unreachable call.
246 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
247 only cast it to SHWI for the final comparison.
249 2016-08-16 Martin Liska <mliska@suse.cz>
251 PR gcov-profile/36412
252 * doc/gcov.texi: Document --hash-filenames(-x).
253 * gcov.c (print_usage): Add the option.
254 (process_args): Process the option, sort options alphabetically.
255 (md5sum_to_hex): New function.
256 (make_gcov_file_name): Do the md5sum and append it to a
259 2016-08-16 Bin Cheng <bin.cheng@arm.com>
261 PR tree-optimization/69848
262 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
263 and swtich operands to avoid additional NOT instruction.
264 (vcond<v_cmp_mixed><mode>): Ditto.
265 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
267 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
269 * doc/install.texi (*-*-solaris2*): Adjust latest change.
271 2016-08-16 Richard Biener <rguenther@suse.de>
273 PR tree-optimization/76783
274 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
275 BB visited flags at start.
277 2016-08-16 Bin Cheng <bin.cheng@arm.com>
279 PR tree-optimization/72817
280 PR tree-optimization/73450
281 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
282 multiple_of_p for adjusted IV.base.
284 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
287 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
288 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
289 for !flag_finite_math_only or flag_signed_zeros.
290 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
291 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
292 depend on flag_finite_math_only.
293 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
295 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
296 (*ieee_smin<mode>3): Ditto.
297 (*ieee_smax<mode>3): Ditto.
298 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
299 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
301 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
302 depend on flag_finite_math_only.
303 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
304 (*mmx_<code>v2sf3): Remove.
305 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
306 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
307 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
309 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
311 PR rtl-optimization/73650
312 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
313 it is not a simple move.
315 2016-08-15 Martin Liska <mliska@suse.cz>
318 * gcc.c (do_spec_1): Call save_string with the right size.
319 (save_string): Do an assert about string we copy.
321 2016-08-15 Richard Biener <rguenther@suse.de>
323 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
324 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
326 (pass_data_stv): Likewise.
328 2016-08-15 Richard Biener <rguenther@suse.de>
330 PR tree-optimization/73434
331 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
332 TBAA info on the base when forwarding a non-invariant address.
334 2016-08-15 Jakub Jelinek <jakub@redhat.com>
336 * dwarf2out.c (struct checksum_attributes): Add
337 at_string_length_bit_size and at_string_length_byte_size fields.
338 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
339 and DW_AT_string_length_byte_size.
340 (die_checksum_ordered): Handle at_string_length_bit_size and
341 at_string_length_byte_size.
342 (gen_array_type_die): For dwarf_version >= 5 emit
343 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
344 (adjust_string_types): For dwarf_version >= 5 remove
345 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
346 (resolve_addr): Likewise.
349 * dwarf2out.c (string_types): New variable.
350 (gen_array_type_die): Change early_dwarf handling of
351 DW_AT_string_length, create DW_OP_call4 referencing the
352 length var temporarily. Handle parameters that are pointers
354 (adjust_string_types): New function.
355 (gen_subprogram_die): Temporarily set string_types to local var,
356 call adjust_string_types if needed.
357 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
359 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
361 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
363 * doc/install.texi (*-*-solaris2*): Fix version number and document
364 requirement on GNU make for building libjava with the Solaris linker.
366 2016-08-15 Martin Liska <mliska@suse.cz>
367 Jakub Jelinek <jakub@redhat.com>
369 PR tree-optimization/72824
370 * tree-loop-distribution.c (const_with_all_bytes_same)
371 <case VECTOR_CST>: Fix a typo.
373 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
376 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
377 Renamed from _mm512_undefined_si512.
378 (_mm_undefined_si512): New definition.
380 2016-08-13 Richard Biener <rguenther@suse.de>
382 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
383 into PHIs and update the lattice for its def.
385 2016-08-12 Jakub Jelinek <jakub@redhat.com>
388 * ubsan.c (instrument_si_overflow): Pass true instead of false
390 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
391 of bbs. Return TODO_cleanup_cfg if any returned true.
393 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
395 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
396 ISA 3.0 MTVSRDD instruction.
397 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
400 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
402 PR tree-optimization/71083
403 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
404 bitfield access when possible.
406 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
409 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
410 sign-changing cast from a shorter unsigned type to a wider
413 2016-08-12 Jakub Jelinek <jakub@redhat.com>
415 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
416 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
417 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
419 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
421 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
422 Correct costs for vec_construct.
424 2016-08-12 Bin Cheng <bin.cheng@arm.com>
426 PR tree-optimization/69848
427 * tree-vectorizer.h (enum vect_def_type): New condition reduction
428 type CONST_COND_REDUCTION.
429 * tree-vect-loop.c (vectorizable_reduction): Support new condition
430 reudction type CONST_COND_REDUCTION.
432 2016-08-12 Richard Biener <rguenther@suse.de>
434 PR tree-optimization/57326
435 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
436 returning an SSA name.
437 (phi_translate_1): When fully_constant_expression returns a NAME
438 make sure we have a leader for it.
440 2016-08-12 Martin Liska <mliska@suse.cz>
441 Adam Fineman <afineman@afineman.com>
443 * gcov.c (process_file): Create .gcov file when .gcda
446 2016-08-12 Marek Polacek <polacek@redhat.com>
449 * alias.c (find_base_value): Adjust fall through comment.
450 * cfgexpand.c (expand_debug_expr): Likewise.
451 * combine.c (find_split_point): Likewise.
452 (expand_compound_operation): Likewise. Add FALLTHRU.
453 (make_compound_operation): Adjust fall through comment.
454 (canon_reg_for_combine): Add FALLTHRU.
455 (force_to_mode): Adjust fall through comment.
456 (simplify_shift_const_1): Likewise.
457 (simplify_comparison): Likewise.
458 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
460 * config/aarch64/predicates.md: Likewise.
461 * config/i386/i386.c (function_arg_advance_32): Likewise.
462 (ix86_gimplify_va_arg): Likewise.
463 (print_reg): Likewise.
464 (ix86_print_operand): Likewise.
465 (ix86_build_const_vector): Likewise.
466 (ix86_expand_branch): Likewise.
467 (ix86_sched_init_global): Adjust fall through comment.
468 (ix86_expand_args_builtin): Add FALLTHRU.
469 (ix86_expand_builtin): Likewise.
470 (ix86_expand_vector_init_one_var): Likewise.
471 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
472 (rs6000_adjust_cost): Likewise.
473 (insn_must_be_first_in_group): Likewise.
474 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
475 * dbxout.c (dbxout_symbol): Adjust fall through comment.
476 * df-scan.c (df_uses_record): Likewise.
477 * dojump.c (do_jump): Add FALLTHRU.
478 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
480 (resolve_args_picking_1): Adjust fall through comment.
481 (loc_list_from_tree_1): Likewise.
482 * expmed.c (make_tree): Likewise.
483 * expr.c (expand_expr_real_2): Add FALLTHRU.
484 (expand_expr_real_1): Likewise. Adjust fall through comment.
485 * fold-const.c (const_binop): Adjust fall through comment.
486 (fold_truth_not_expr): Likewise.
487 (fold_cond_expr_with_comparison): Add FALLTHRU.
488 (fold_binary_loc): Likewise.
489 (contains_label_1): Adjust fall through comment.
490 (multiple_of_p): Likewise.
491 * gcov-tool.c (process_args): Add FALLTHRU.
492 * genattrtab.c (check_attr_test): Likewise.
493 (write_test_expr): Likewise.
494 * genconfig.c (walk_insn_part): Likewise.
495 * genpreds.c (validate_exp): Adjust fall through comment.
496 (needs_variable): Likewise.
497 * gensupport.c (get_alternatives_number): Add FALLTHRU.
498 (subst_dup): Likewise.
499 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
500 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
501 (gimplify_scan_omp_clauses): Add FALLTHRU.
502 (goa_stabilize_expr): Likewise.
503 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
505 * hsa-gen.c (get_address_from_value): Likewise.
506 * ipa-icf.c (sem_function::hash_stmt): Likewise.
507 * ira.c (ira_setup_alts): Add FALLTHRU.
508 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
510 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
511 * opts.c (common_handle_option): Likewise.
512 * read-rtl.c (read_rtx_code): Likewise.
513 * real.c (round_for_format): Likewise.
514 * recog.c (asm_operand_ok): Likewise.
515 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
516 * reload1.c (set_label_offsets): Likewise.
517 (eliminate_regs_1): Likewise.
518 (reload_reg_reaches_end_p): Likewise.
519 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
520 (rtx_cost): Likewise.
521 * sched-rgn.c (is_exception_free): Likewise.
522 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
523 * stor-layout.c (int_mode_for_mode): Likewise.
524 * toplev.c (print_to_asm_out_file): Likewise.
525 (print_to_stderr): Likewise.
526 * tree-cfg.c (gimple_verify_flow_info): Likewise.
527 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
528 (chrec_fold_multiply): Likewise.
529 (evolution_function_is_invariant_rec_p): Likewise.
530 (for_each_scev_op): Likewise.
531 * tree-data-ref.c (siv_subscript_p): Likewise.
532 (get_references_in_stmt): Likewise.
533 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
534 (substitute_in_expr): Likewise.
535 (type_cache_hasher::equal): Likewise.
536 (walk_type_fields): Likewise.
537 * var-tracking.c (adjust_mems): Add FALLTHRU.
538 (set_dv_changed): Adjust fall through comment.
539 * varasm.c (default_function_section): Add FALLTHRU.
541 2016-08-12 Marek Polacek <polacek@redhat.com>
544 * tree-complex.c (expand_complex_division): Add missing break.
546 2016-08-12 Richard Biener <rguenther@suse.de>
548 * passes.c (execute_todo): Do not push/pop TV_TODO.
549 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
550 (execute_one_pass): Likewise.
551 * common.opt (ftime-report-details): New switch.
552 * doc/invoke.texi (ftime-report-details): Document.
553 * timevar.h (timer::print_row): Adjust signature.
554 (timer::all_zero): New static helper.
555 (timer::child_map_t): New typedef.
556 (timer::time_var_def): Add children field.
557 * timevar.c (timer::named_items::print): Adjust.
558 (timer::~timer): Free timevar recorded children.
559 (timer::pop_internal): When -ftime-report-details record
560 time spent in sub-timevars.
561 (timer::print_row): Adjust.
562 (timer::print): Print sub-timevar stats, use all_zero.
563 * timevar.def (TV_TODO): Remove.
565 2016-08-12 Richard Biener <rguenther@suse.de>
567 PR tree-optimization/72851
568 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
569 worklists to use bitmaps indexed in execution order.
570 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
571 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
572 (cfg_blocks): Make a bitmap.
573 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
575 (cfg_blocks_empty_p): Adjust.
576 (cfg_blocks_add): Likewise.
577 (cfg_blocks_get): Likewise.
578 (add_ssa_edge): Likewise.
579 (add_control_edge): Likewise.
580 (simulate_stmt): Likewise.
581 (process_ssa_edge_worklist): Likewise.
582 (simulate_block): Likewise.
583 (ssa_prop_init): Compute PRE order and stmt UIDs.
584 (ssa_prop_fini): Adjust.
585 (ssa_propagate): Adjust.
587 2016-08-12 Richard Biener <rguenther@suse.de>
589 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
590 the currently executable edges have fixed ranges. Always
591 go through update_value_range.
593 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
597 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
598 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
599 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
600 (LANG_HOOKS_DECLS): Add it.
601 * langhooks.h (struct lang_hooks_for_decls): Add
602 function_decl_defaulted. Const_tree-ify
603 function_decl_explicit_p and function_decl_deleted_p.
604 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
605 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
606 also at strict DWARF v5.
609 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
610 TYPE_QUAL_CONST in reference-typed decls.
613 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
614 in DW_OP_pieces, just enough to handle pointers to member
616 (gen_remaining_tmpl_value_param_die_attribute): Use a location
617 expression on DWARFv5 if a constant value doesn't work.
619 2016-08-11 David Malcolm <dmalcolm@redhat.com>
621 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
622 * selftest.c (selftest::test_assertions): New function.
623 (selftest::selftest_c_tests): New function.
624 * selftest.h (selftest::selftest_c_tests): New declaration.
626 2016-08-11 Richard Biener <rguenther@suse.de>
627 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
629 PR rtl-optimization/72855
630 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
632 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
635 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
636 (vsx_store_<mode>): Likewise.
638 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
640 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
641 TImode CONST_WIDE_INT store.
642 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
644 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
646 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
647 mode if unaligned SSE load and store are optimal.
649 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
651 PR tree-optimization/71083
652 * tree-predcom.c (ref_at_iteration): Correctly align the
655 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
657 * config/s390/s390-builtin-types.def: Add INT128 types.
658 * config/s390/s390-builtins.def: Add INT128 variants for the add
659 sub low-level builtins dealing with TImode.
660 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
661 via subreg when expanding a builtin.
662 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
663 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
665 * config/s390/vecintrin.h: Adjust builtin names accordingly.
666 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
667 ("vec_addc<mode>", "vec_addc_u128"): Merge to
668 "vacc<bhfgq>_<mode>".
669 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
670 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
671 ("vec_subc<mode>", "vec_subc_u128"): Merge to
672 "vscbi<bhfgq>_<mode>".
673 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
674 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
676 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
678 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
680 2016-08-11 Bin Cheng <bin.cheng@arm.com>
682 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
684 (vcond<v_cmp_mixed><mode>): Ditto.
685 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
687 2016-08-11 Bin Cheng <bin.cheng@arm.com>
689 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
690 variable explicitly, also assert on it before use.
692 2016-08-11 Richard Biener <rguenther@suse.de>
694 PR tree-optimization/72772
695 * cfgloopmanip.c (create_preheader): Use split_edge if there
696 is a single loop entry, avoiding degenerate PHIs.
698 2016-08-11 Richard Biener <rguenther@suse.de>
700 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
701 unconditional TODO_cleanup_cfg.
702 (pass_thread_jumps::execute): Initialize loops, perform a CFG
703 cleanup only if we threaded a jump.
705 2016-08-11 Alan Modra <amodra@gmail.com>
708 * lra-constraints.c (simplify_operand_subreg): Allow subreg
709 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
710 slow. Emit two reloads for slow mem case, first loading in
711 fast innermode, then converting to required mode.
713 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
715 * config/rs6000/altivec.h (vec_extract_exp): New macro.
716 (vec_extract_sig): New macro.
717 (vec_insert_exp): New macro.
718 (vec_test_data_class): New macro.
719 (scalar_extract_exp): New macro.
720 (scalar_extract_sig): New macro.
721 (scalar_insert_exp): New macro.
722 (scalar_test_data_class): New macro.
723 (scalar_test_neg): New macro.
724 (scalar_cmp_exp_gt): New macro.
725 (scalar_cmp_exp_lt): New macro.
726 (scalar_cmp_exp_eq): New macro.
727 (scalar_cmp_exp_unordered): New macro.
728 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
729 to enforce constraint that operand is a 7-bit unsigned literal.
730 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
731 for power9 built-ins.
732 (BU_P9V_VSX_2): Likewise.
733 (BU_P9V_64BIT_VSX_2): Likewise.
734 (VSEEDP): Add scalar extract exponent support.
735 (VSEESP): Add scalar extract signature support.
736 (VSTDCNDP): Add scalar test negative support.
737 (VSTDCNSP): Likewise.
738 (VSIEDP): Add scalar insert exponent support.
739 (VSCEDPGT): Add scalar compare exponent greater than support.
740 (VSCEDPLT): Add scalar compare exponent less than support.
741 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
742 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
743 (VSTDCDP): Add scalar test data class support.
745 (VSEEDP): Add overload support for scalar extract exponent
747 (VSESDP): Add overload support for scalar extract signature
749 (VSTDCN): Add overload support for scalar test negative
751 (VSTDCNDP): Add overload support for scalar test negative
753 (VSTDCNSP): Add overload support for scalar test negative
755 (VSIEDP): Add overload support for scalar insert exponent
757 (VSTDC): Add overload support for scalar test data class
759 (VSTDCDP): Add overload support for scalar test data class
761 (VSTDCSP): Add overload support for scalar test data class
763 (VSCEDPGT): Add overload support for scalar compare exponent
764 greater than operation.
765 (VSCEDPLT): Add overload support for scalar compare exponent
767 (VSCEDPEQ): Add overload support for scalar compare exponent
768 test-for-equality operation.
769 (VSCEDPUO): Add overload support for scalar compare exponent
770 test-for-unordered operation.
771 (VEEDP): Add vector extract exponent support.
773 (VESDP): Add vector extract significand support.
775 (VIEDP): Add vector insert exponent support.
777 (VTDCDP): Add vector test data class support.
779 (VES): Add overload support for vector extract significand operation.
782 (VEE): Add overload support for vector extract exponent operation.
785 (VTDC): Add overload support for vector test data class operation.
788 (VIE): Add overload support for vector insert exponent operation.
791 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
792 overloaded binary floating point functions.
793 (altivec_resolve_overloaded_builtin): Improve error messages to
794 distinguish between functions not supported in the current
795 compiler configuration and functions that were invoked with an
796 invalid parameter combination, and include the built-in function
797 name in both error messages.
798 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
800 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
802 (rs6000_expand_binop_builtin): Add check to enforce that argument
803 2 of the test data class operations is a 7-bit unsigned literal.
804 (rs6000_invalid_builtin): Add code to issue an error message if a
805 built-in function that requires the power9_vector and -m32
806 command-line options is compiled without these options.
807 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
808 (UNSPEC_VSX_SXSIGDP): New value.
809 (UNSPEC_VSX_SXSIGPDP): New value.
810 (UNSPEC_VSX_SIEXPDP): New value.
811 (UNSPEC_VSX_SCMPEXPDP): New value.
812 (UNSPEC_VSX_STSTDC): New value.
813 (UNSPEC_VSX_VXEXP): New value.
814 (UNSPEC_VSX_VXSIG): New value.
815 (UNSPEC_VSX_VIEXP): New value.
816 (UNSPEC_VSX_VTSTDC): New value.
817 (xsxexpdp): New insn for scalar extract exponent.
818 (xsxsigdp): New insn for scalar extract significand.
819 (xsiexpdp): New insn for scalar insert exponent.
820 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
821 (*xscmpexpdp): New insn for scalar compare exponents.
822 (xststdc<Fvsx): New expansion for both single- and
823 double-precision scalar test data class operations.
824 (xststdcneg<Fvsx>): New expansion for both single- and
825 double-precision scalar test for negative value operations.
826 (*xststdc<Fvsx>): New insn for scalar test data class
828 (xvxexp<VSs>): New insn for single- and double-precision
829 vector extract exponent operation.
830 (xvxsig<VSs>): New insn for single- and double-precision
831 vector extract significand operation.
832 (xviexp<VSs>): New insn for single- and double-precision
833 vector insert exponent operation.
834 (xvtstdc<VSs>): New insn for single- and double-precision
835 vector test data class operation.
836 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
837 built-in functions to represent the Power9 binary floating-point
838 support instructions.
840 2016-08-10 bin cheng <bin.cheng@arm.com>
842 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
844 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
845 Renlin Li <renlin.li@arm.com>
846 Bin Cheng <bin.cheng@arm.com>
848 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
849 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
850 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
851 (aarch64_vcond_internal<mode><mode>): Delete pattern.
852 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
853 (vcond<v_cmp_result><mode>): Ditto.
854 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
855 (vcondu<mode><mode>): Ditto.
856 (vcond<v_cmp_mixed><mode>): New pattern.
857 (vcondu<mode><v_cmp_mixed>): New pattern.
858 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
859 of aarch64_vcond_internal.
861 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
862 Renlin Li <renlin.li@arm.com>
863 Bin Cheng <bin.cheng@arm.com>
865 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
866 (vec_cmp<mode><v_cmp_result>): New pattern.
867 (vec_cmpu<mode><mode>): New pattern.
868 (vcond_mask_<mode><v_cmp_result>): New pattern.
870 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
872 PR tree-optimization/71734
873 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
874 REF_LOOP, invoke ref_indep_loop_p_1.
875 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
877 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
878 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
879 is inside LOOP, do not cache dpendence value for loops with
881 (ref_indep_loop_p_2): Delete function.
882 (can_sm_ref_p): Pass LOOP as additional argument to
885 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
888 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
889 being an offsettable address.
891 2016-08-10 Martin Liska <mliska@suse.cz>
893 PR gcov-profile/58306
894 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
895 atomic variants of profile update functions.
897 2016-08-10 Martin Liska <mliska@suse.cz>
899 Cherry picked (and modified) from google-4_7 branch
900 2012-12-26 Rong Xu <xur@google.com>
901 * common.opt (fprofile-update): Add new flag.
902 * coretypes.h: Define enum profile_update.
903 * doc/invoke.texi: Document -fprofile-update.
904 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
905 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
906 * tree-profile.c (gimple_init_edge_profiler): Generate
907 also atomic profiler update.
908 (gimple_gen_edge_profiler): Likewise.
910 2016-08-10 David Malcolm <dmalcolm@redhat.com>
912 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
913 stack_usage_file to NULL after fclose calls.
915 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
918 * reload.c (push_reload): Compute subreg_in_class for
919 subregs of constants and plus expressions. Remove special
920 handling of SYMBOL_REFs.
922 2016-08-10 Alan Modra <amodra@gmail.com>
925 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
926 SImode for TARGET_E500_DOUBLE when given SImode.
928 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
930 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
933 2016-08-09 Martin Liska <mliska@suse.cz>
935 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
936 _gcov_reset to __gcov_reset.
937 * doc/gcov-tool.texi: Fix typo.
939 2016-08-09 Martin Liska <mliska@suse.cz>
941 * value-prof.c (gimple_divmod_values_to_profile): Do not
942 instrument MOD histogram if a value is not a SSA name.
944 2016-08-09 Martin Liska <mliska@suse.cz>
946 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
949 2016-08-09 Renlin Li <renlin.li@arm.com>
952 * calls.c (prepare_call_address): Convert funexp to Pmode when
954 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
955 (sibcall_value): Likewise.
957 2016-08-09 Marek Polacek <polacek@redhat.com>
960 * cselib.c (cselib_expand_value_rtx_1): Add return.
961 * gengtype.c (dbgprint_count_type_at): Likewise.
962 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
963 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
965 2016-08-09 Martin Jambor <mjambor@suse.cz>
968 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
969 if instance is a MEM_REF.
971 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
974 * config/i386/i386.md (*movtf_internal): Use
975 lra_in_progress || reload_completed instead of !can_create_pseudo_p
976 in the insn constraint.
977 (*movxf_internal): Ditto.
978 (*movdf_internal): Ditto.
979 (*movsf_internal): Ditto.
981 2016-08-09 Bin Cheng <bin.cheng@arm.com>
983 PR tree-optimization/72772
984 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
987 2016-08-09 Bin Cheng <bin.cheng@arm.com>
989 PR tree-optimization/72772
990 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
992 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
993 parameter STOP and update calls. Move expand_simple_operations
994 function call from here...
995 (simplify_using_initial_conditions): ...to here. Delete parameter
997 (tree_simplify_using_condition): Delete parameter STOP.
998 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
999 simplify_using_initial_conditions.
1001 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
1004 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
1005 Use create_tmp_var_raw instead of create_tmp_var.
1007 2016-08-09 Richard Biener <rguenther@suse.de>
1009 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
1010 Treat same SSA names related.
1012 2016-08-09 Jakub Jelinek <jakub@redhat.com>
1014 PR tree-optimization/72824
1015 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
1016 real_zerop is not negative.
1018 2016-08-09 Richard Biener <rguenther@suse.de>
1020 PR tree-optimization/71802
1021 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
1022 all merge opportunities with the predecessor.
1024 2016-08-09 Richard Biener <rguenther@suse.de>
1027 * ipa-prop.c (ipa_modify_formal_parameters): Build
1028 parameter types with natural alignment also for the
1031 2016-08-08 Andi Kleen <ak@linux.intel.com>
1033 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
1035 2016-08-08 David Malcolm <dmalcolm@redhat.com>
1038 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
1039 do-nothing langhook.
1040 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
1041 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
1042 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
1043 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
1045 2016-08-08 David Malcolm <dmalcolm@redhat.com>
1048 * input.c: Ensure that HAVE_ICONV is defined.
1050 2016-08-08 Jakub Jelinek <jakub@redhat.com>
1053 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
1054 private vars for lastprivate and for linear iterator.
1057 * omp-simd-clone.c: Include varasm.h.
1058 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
1059 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
1060 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
1061 update function name.
1063 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1065 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
1066 (avr_diagnose_devicespecs_error): Remove.
1067 (avr_devicespecs_file): Remove composing absolute path for specfile
1068 and its verbose info. Remove conditions to check specs-file,
1070 2016-08-08 Jakub Jelinek <jakub@redhat.com>
1072 PR rtl-optimization/72821
1073 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
1074 just return false for them.
1076 2016-08-08 Alan Modra <amodra@gmail.com>
1079 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
1080 toc refs created during reload. Update function comment.
1082 2016-08-08 Alan Modra <amodra@gmail.com>
1085 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
1086 alternatives. Put loads first, then stores, and reg/reg moves
1087 within same class later. Delete attr length.
1089 2016-08-08 Alan Modra <amodra@gmail.com>
1092 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
1093 (mem_operand_ds_form): New predicate.
1094 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
1095 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
1096 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
1097 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
1098 (extendsfdf2_fpr): Replace o constraint with wY.
1100 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
1102 * tree-ssa-threadbackward.c: Include tree-inline.h
1103 (profitable_jump_thread_path): Use estimate_num_insns to estimate
1104 size of copied block; for cold paths reduce duplication.
1105 (find_jump_threads_backwards): Remove redundant tests.
1106 (pass_thread_jumps::gate): Enable for -Os.
1108 2016-08-07 Jakub Jelinek <jakub@redhat.com>
1111 * stor-layout.c (layout_decl): Fix up formatting.
1112 (relayout_decl): Allow DECL to be FIELD_DECL.
1114 2016-08-07 Alan Modra <amodra@gmail.com>
1116 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
1118 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
1120 * data-streamer-in.c (streamer_read_wide_int): New.
1121 (streamer_read_widest_int): Renamed function.
1122 * data-streamer-out.c (streamer_write_wide_int): New
1123 (streamer_write_widest_int): Renamed function.
1124 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
1126 (input_cfg): Call renamed function.
1127 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
1129 (output_cfg): Call renamed function.
1130 * data-streamer.h: Add declarations.
1132 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1134 * tree-ssa-ccp.c (extend_mask): New param sgn.
1135 Remove ORing with wi::mask.
1136 (get_default_value): Adjust call to extend_mask to pass sign.
1137 (evaluate_stmt): Likewise.
1139 2016-08-06 Jakub Jelinek <jakub@redhat.com>
1141 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
1144 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1146 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
1147 transform if operand's type is pointer to function or method.
1149 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
1151 PR tree-optimization/18046
1152 * tree-ssa-threadedge.c: Include cfganal.h.
1153 (simplify_control_statement_condition): If simplifying a
1154 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
1155 with the dominating ASSERT_EXPR before handing it off to VRP.
1156 Mention that a CASE_LABEL_EXPR may be returned.
1157 (thread_around_empty_blocks): Adjust to handle
1158 simplify_control_statement_condition() returning a
1160 (thread_through_normal_block): Likewise.
1161 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
1162 a switch statement by trying to determine which case label
1165 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
1167 PR rtl-optimization/69847
1168 * lra-constraints.c (process_invariant_for_inheritance): Save
1169 pattern instead of src.
1170 (remove_inheritance_pseudos): Use the pattern. Add assert.
1172 2016-08-05 David Malcolm <dmalcolm@redhat.com>
1174 * input.c (string_concat::string_concat): New constructor.
1175 (string_concat_db::string_concat_db): New constructor.
1176 (string_concat_db::record_string_concatenation): New method.
1177 (string_concat_db::get_string_concatenation): New method.
1178 (string_concat_db::get_key_loc): New method.
1179 (class auto_cpp_string_vec): New class.
1180 (get_substring_ranges_for_loc): New function.
1181 (get_source_range_for_substring): New function.
1182 (get_num_source_ranges_for_substring): New function.
1183 (class selftest::lexer_test_options): New class.
1184 (struct selftest::lexer_test): New struct.
1185 (class selftest::ebcdic_execution_charset): New class.
1186 (selftest::ebcdic_execution_charset::s_singleton): New variable.
1187 (selftest::lexer_test::lexer_test): New constructor.
1188 (selftest::lexer_test::~lexer_test): New destructor.
1189 (selftest::lexer_test::get_token): New method.
1190 (selftest::assert_char_at_range): New function.
1191 (ASSERT_CHAR_AT_RANGE): New macro.
1192 (selftest::assert_num_substring_ranges): New function.
1193 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
1194 (selftest::assert_has_no_substring_ranges): New function.
1195 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
1196 (selftest::test_lexer_string_locations_simple): New function.
1197 (selftest::test_lexer_string_locations_ebcdic): New function.
1198 (selftest::test_lexer_string_locations_hex): New function.
1199 (selftest::test_lexer_string_locations_oct): New function.
1200 (selftest::test_lexer_string_locations_letter_escape_1): New function.
1201 (selftest::test_lexer_string_locations_letter_escape_2): New function.
1202 (selftest::test_lexer_string_locations_ucn4): New function.
1203 (selftest::test_lexer_string_locations_ucn8): New function.
1204 (selftest::uint32_from_big_endian): New function.
1205 (selftest::test_lexer_string_locations_wide_string): New function.
1206 (selftest::uint16_from_big_endian): New function.
1207 (selftest::test_lexer_string_locations_string16): New function.
1208 (selftest::test_lexer_string_locations_string32): New function.
1209 (selftest::test_lexer_string_locations_u8): New function.
1210 (selftest::test_lexer_string_locations_utf8_source): New function.
1211 (selftest::test_lexer_string_locations_concatenation_1): New
1213 (selftest::test_lexer_string_locations_concatenation_2): New
1215 (selftest::test_lexer_string_locations_concatenation_3): New
1217 (selftest::test_lexer_string_locations_macro): New function.
1218 (selftest::test_lexer_string_locations_stringified_macro_argument):
1220 (selftest::test_lexer_string_locations_non_string): New function.
1221 (selftest::test_lexer_string_locations_long_line): New function.
1222 (selftest::test_lexer_char_constants): New function.
1223 (selftest::input_c_tests): Call the new test functions once per
1224 case within the line_table test matrix.
1225 * input.h (struct string_concat): New struct.
1226 (struct location_hash): New struct.
1227 (class string_concat_db): New class.
1228 * substring-locations.h: New header.
1230 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
1232 PR tree-optimization/72810
1233 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
1234 the type of the case labels when truncating.
1236 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
1239 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
1240 (aarch64_fp16_ptr_type_node): Likewise.
1241 * config/aarch64/aarch64-simd-builtins.c
1242 (aarch64_fp16_ptr_type_node): Define.
1243 (aarch64_init_fp16_types): New, refactored out of...
1244 (aarch64_init_builtins): ...here, update to call
1245 aarch64_init_fp16_types.
1246 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
1248 (aapcs_vfp_sub_candidate): Likewise.
1250 2016-08-05 Martin Liska <mliska@suse.cz>
1251 Joshua Cranmer <Pidgeot18@gmail.com>
1253 * gcov.c (line_t::has_block): New function.
1254 (enum loop_type): New enum.
1255 (handle_cycle): New function.
1256 (unblock): Likewise.
1257 (circuit): Likewise.
1258 (get_cycles_count): Likewise.
1259 (accumulate_line_counts): Use new loop detection algorithm.
1261 2016-08-05 Martin Liska <mliska@suse.cz>
1263 * gcov.c (output_intermediate_file): Rename
1264 function_info::line_next to next_file_fn.
1265 (process_file): Likewise.
1266 (read_graph_file): Likewise.
1267 (accumulate_line_counts): Likewise.
1268 (output_lines): Likewise.
1270 2016-08-05 Richard Biener <rguenther@suse.de>
1272 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
1273 restriction on threading to a loop header.
1275 2016-08-05 Richard Biener <rguenther@suse.de>
1277 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
1278 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
1279 adjust loop info accordingly.
1281 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
1283 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
1284 before folding call to __builtin_constant_p with parameters to false.
1286 2016-08-05 Alan Modra <amodra@gmail.com>
1288 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
1289 code accidentally committed 2016-05-02 providing class when given
1292 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
1294 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
1295 the case label ranges that partially overlap with OP's value
1298 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
1301 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
1302 Cast builtin function result to __mmask16 instead of __mmask8.
1303 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
1304 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
1305 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
1307 2016-08-04 David Malcolm <dmalcolm@redhat.com>
1309 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
1310 (ASSERT_TRUE_AT): New macro.
1311 (ASSERT_FALSE): Reimplement in terms of...
1312 (ASSERT_FALSE_AT): New macro.
1313 (ASSERT_STREQ_AT): Fix typo in comment.
1315 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
1317 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
1318 labels are exhaustive, designate the label with the widest
1319 range to be the default label.
1321 2016-08-04 Andrew Pinski <apinski@cavium.com>
1323 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
1324 (thunderx_tunings): Use thunderx_vector_cost instead of
1325 generic_vector_cost.
1327 2016-08-04 Martin Liska <mliska@suse.cz>
1329 * gcov.c (main): Fix GNU coding style.
1330 (output_intermediate_file): Likewise.
1331 (process_file): Likewise.
1332 (generate_results): Likewise.
1333 (release_structures): Likewise.
1334 (create_file_names): Likewise.
1335 (find_source): Likewise.
1336 (read_graph_file): Likewise.
1337 (find_exception_blocks): Likewise.
1338 (canonicalize_name): Likewise.
1339 (make_gcov_file_name): Likewise.
1340 (mangle_name): Likewise.
1341 (accumulate_line_counts): Likewise.
1342 (output_branch_count): Likewise.
1343 (read_line): Likewise.
1345 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1347 PR rtl-optimization/71779
1348 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
1349 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
1350 or if it was truncated.
1352 PR rtl-optimization/70903
1353 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
1355 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
1357 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
1358 accessing SSA_NAME_PTR_INFO.
1360 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
1363 * common/config/avr/avr-common.c (avr_option_optimization_table)
1364 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
1366 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
1369 * config/avr/avr.md: New pattern to work around do_store_flag
1370 generating shift instructions for bit extractions.
1372 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
1374 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
1376 (add_equivalence): Likewise.
1377 (get_value_range): Allocate value range with vrp_value_range_pool.
1378 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
1379 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
1381 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
1383 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
1384 the default for the rs6000 port.
1386 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1389 * calls.c (special_function_p): Remove special handling of
1390 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
1391 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
1392 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
1394 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
1397 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
1398 Don't stop on regular insns.
1400 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
1402 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
1403 size to DImode boundary.
1404 (nvptx_propagate): Likewise.
1406 2016-08-03 Alan Modra <amodra@gmail.com>
1408 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
1409 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
1410 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
1411 from -mefficient-unaligned-vector. Note that this affects fp too.
1413 2016-08-03 Alan Modra <amodra@gmail.com>
1415 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
1418 2016-08-03 Alan Modra <amodra@gmail.com>
1420 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
1421 to a reg. Localize vars.
1423 2016-08-03 Alan Modra <amodra@gmail.com>
1425 * config/rs6000/rs6000.opt: Remove negatives from help strings
1428 2016-08-03 Alan Modra <amodra@gmail.com>
1430 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
1431 Delete duplicated code.
1433 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
1436 * lra-spills.c (regno_in_use_p): New.
1437 (lra_final_code_change): Use it.
1439 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
1441 PR rtl-optimization/69847
1442 * lra-int.h (struct lra-reg): Use restore_rtx instead of
1444 (lra_rtx_hash): New.
1445 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
1447 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
1448 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
1449 * lra-spills.c (lra_final_code_change): Don't delete insn when the
1450 next insn is USE with the same reg as the current insn source.
1451 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
1453 (lra_constraints_init): Call initiate_invariants.
1454 (lra_constraints_finish): Call finish_invariants.
1455 (struct invariant, invariant_t, invariant_ptr_t): New.
1456 (const_invariant_ptr_t, invariants, invariants_pool): New.
1457 (invariant_table, invariant_hash, invariant_eq_p): New.
1458 (insert_invariant, initiate_invariants, finish_invariants): New.
1459 (clear_invariants, invalid_invariant_regs): New.
1460 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
1461 instead of restore_regno.
1462 (invariant_p, process_invariant_for_inheritance): New.
1463 (inherit_in_ebb): Implement invariant inheritance.
1464 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
1465 (remove_inheritance_pseudos): Implement undoing invariant
1467 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
1468 instead of restore_regno.
1469 * lra-assigns.c (regno_live_length): New.
1470 (reload_pseudo_compare_func): Use regno_live_length.
1471 (assign_by_spills): Use restore_rtx instead of restore_regno.
1472 (lra_assign): Ditto. Initiate regno_live_length.
1474 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
1476 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
1477 __builtin_aarch64_fmindf.
1479 2016-08-02 Bin Cheng <bin.cheng@arm.com>
1481 PR tree-optimization/34114
1482 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
1483 information for more control IVs.
1485 2016-08-02 Bin Cheng <bin.cheng@arm.com>
1487 PR tree-optimization/34114
1488 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
1489 PLUS_EXPR case. Handle SSA_NAME case.
1491 2016-08-02 Tamar Christina <tamar.christina@arm.com>
1493 * config/aarch64/aarch64-simd-builtins.def
1494 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
1495 (__builtin_aarch64_fmaxdf): Likewise.
1496 (__builtin_aarch64_smin_nandf): Likewise.
1497 (__builtin_aarch64_smax_nandf): Likewise.
1498 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
1499 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
1500 (<fmaxmin><mode>3): ...this.
1501 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
1502 (vminnm_f64): Likewise.
1503 (vmin_f64): Likewise.
1504 (vmax_f64): Likewise.
1505 * config/aarch64/iterators.md (FMAXMIN): Merge with...
1506 (FMAXMIN_UNS): ...this.
1507 (fmaxmin): Merged with
1508 (fmaxmin_op): ...this...
1509 (maxmin_uns_op): ...in to this.
1511 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
1513 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1514 Add support for vec_extract on vector float, vector int, vector
1515 short, and vector char vector types.
1516 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1517 vector float, vector int, vector short, and vector char
1518 optimizations on 64-bit ISA 2.07 systems for both constant and
1519 variable element numbers.
1520 (rs6000_split_vec_extract_var): Likewise.
1521 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
1522 Altivec registers on ISA 2.07 and above.
1523 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
1524 which never was matched due to the split occuring before register
1525 allocation (and the code would not have worked on little endian
1526 systems if it did match). Allow extracts to go to the Altivec
1527 registers if ISA 2.07 (power8). Change from using "" around the
1528 C++ code to using {}'s.
1529 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
1530 vec_extracts when the vector is in memory.
1531 (vsx_extract_v4sf_var): New insn to optimize vector float
1532 vec_extracts when the element number is variable on 64-bit ISA
1534 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
1535 for 64-bit ISA 2.07 as well as ISA 3.0.
1536 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
1537 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
1538 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
1539 optimize vector int, vector short, and vector char vec_extracts
1540 when the vector is in memory.
1541 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
1542 optimize vector int, vector short, and vector char vec_extracts
1543 when the element number is variable.
1545 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
1548 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
1549 does not overlap with other symbol flags.
1551 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
1553 * config/aarch64/aarch64.h (aarch64_frame):
1554 Remove padding0 and hardfp_offset. Add locals_offset,
1555 initial_adjust, callee_adjust, callee_offset and final_adjust.
1556 * config/aarch64/aarch64.c (aarch64_layout_frame):
1557 Remove unused padding0 and hardfp_offset initializations.
1558 Choose frame layout and set frame variables accordingly.
1559 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
1560 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
1561 (aarch64_pop_regs): Likewise.
1562 (aarch64_expand_prologue): Remove all decision code, just emit
1563 prolog according to frame variables.
1564 (aarch64_expand_epilogue): Remove all decision code, just emit
1565 epilog according to frame variables.
1566 (aarch64_initial_elimination_offset): Use offset to local/arg area.
1568 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
1571 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
1572 fix_debug_reg_uses after changing source register mode to
1573 V1TImode if source register is undefined.
1575 2015-08-01 Alan Hayward <alan.hayward@arm.com>
1577 PR tree-optimization/71818
1578 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
1579 with non invariant evolutions
1581 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
1584 * config/avr/avr.md (length) [branch]: Correct insn length
1585 attribute for forward branches.
1587 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
1589 * doc/extend.texi (AVR Built-in Functions): Document
1591 * config/avr/builtins.def (NOPS): New.
1592 * config/avr/avr.c (avr_expand_nops): New static function.
1593 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
1595 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1597 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
1598 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
1601 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
1603 * config/aarch64/aarch64.c (vulcan_tunings): Update
1604 vulcan L1 cache_line_size.
1606 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
1608 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
1609 function that takes a vector memory address, a hard register, an
1610 element number and a temporary base register, and recreates an
1611 address that points to the appropriate element within the vector.
1612 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
1613 (rs6000_split_vec_extract_var): Add support for the target of a
1614 vec_extract with variable element number being a scalar memory
1616 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
1618 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
1619 vsx_extract_<mode>_load insn with a new insn that optimizes
1620 storing either element to a memory location, using scratch
1621 registers to pick apart the vector and reconstruct the address.
1622 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
1623 (vsx_extract_<mode>_store): Rework alternatives to more correctly
1624 support Altivec registers. Add support for ISA 3.0 Altivec d-form
1626 (vsx_extract_<mode>_var): Add support for extracting a variable
1627 element number from memory.
1629 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
1631 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
1632 when testing for compares against constants of the form 0xabab.
1634 2016-07-29 Bin Cheng <bin.cheng@arm.com>
1636 PR tree-optimization/57558
1637 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
1639 (vect_loop_versioning): Support versioning with niter assumptions.
1640 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
1641 (vect_get_loop_niters): New parameter. Reimplement to support
1642 assumptions in loop niter info.
1643 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
1644 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
1645 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
1646 Support loop versioning for niters.
1647 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
1648 (vect_free_loop_info_assumptions): New function.
1649 (vectorize_loops): Free loop niter info for loops with flag
1650 LOOP_F_ASSUMPTIONS set if vectorization failed.
1651 * tree-vectorizer.h (struct _loop_vec_info): New field
1652 num_iters_assumptions.
1653 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
1654 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
1655 (LOOP_REQUIRES_VERSIONING): New macro.
1656 (vect_free_loop_info_assumptions): New decl.
1658 2016-07-29 Bin Cheng <bin.cheng@arm.com>
1660 * cfgloop.h (struct loop): New field constraints.
1661 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
1662 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
1664 * cfgloop.c (alloc_loop): Initialize new field.
1665 * cfgloopmanip.c (copy_loop_info): Copy constraints.
1666 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
1667 Adjust niter analysis wrto loop constraints.
1668 * doc/loop.texi (@node Number of iterations): Add description for loop
1671 2016-07-29 Marek Polacek <polacek@redhat.com>
1674 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
1675 (ix86_expand_round_builtin): Likewise.
1677 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
1678 Georg-Johann Lay <avr@gjlay.de>
1680 PR rtl-optimization/71976
1681 * combine.c (get_last_value): Return 0 if the argument for which
1682 the function is called has a wider mode than the recorded value.
1684 2016-07-29 Marek Polacek <polacek@redhat.com>
1687 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
1688 (altivec_expand_st_builtin): Likewise.
1690 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
1692 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
1693 introduced in r238381.
1695 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
1698 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
1699 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
1701 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
1703 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
1705 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1706 Add support for vec_extract of vector double or vector long having
1707 a variable element number on 64-bit ISA 2.07 systems or newer.
1708 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
1710 (rs6000_split_vec_extract_var): New function to split a
1711 vec_extract built-in function with variable element number.
1712 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
1714 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
1715 (UNSPEC_VSX_EXTRACT): Likewise.
1716 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
1717 direct move instructions to be generated on 64-bit ISA 2.07
1718 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
1720 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
1721 arguments for vec_extract variable element.
1722 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
1723 vec_extract with variable element on V2DFmode and V2DImode
1725 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
1726 -mupper-regs-df requirement, since it isn't needed.
1727 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
1728 do direct moves on 64-bit systems, which allows optimization of
1729 vec_extract on 64-bit ISA 2.07 systems and newer.
1731 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
1732 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
1734 * config/aarch64/aarch64.md
1735 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
1737 (<optab>qihi2_aarch64): Likewise, and split into two.
1738 (extendqihi2_aarch64): New.
1739 (zero_extendqihi2_aarch64): New.
1740 * config/aarch64/iterators.md (ldrxt): Remove.
1741 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
1744 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
1746 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
1748 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
1750 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
1751 (aarch64_push_reg): New function to push 1 or 2 registers.
1752 (aarch64_pop_reg): New function to pop 1 or 2 registers.
1753 (aarch64_expand_prologue): Use aarch64_push_regs.
1754 (aarch64_expand_epilogue): Use aarch64_pop_regs.
1756 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
1758 PR tree-optimization/71734
1759 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
1760 attribute instead of REF_LOOP and use it.
1761 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
1762 set it for Loops having non-zero safelen attribute.
1763 (ref_indep_loop_p): Pass zero as initial value for safelen.
1765 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
1769 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
1770 call using chkp_gimple_call_builtin_p.
1771 (chkp_copy_bounds_for_assign): Likewise.
1773 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1775 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
1776 * config/arm/arm-protos.h (struct tune_params): Likewise.
1777 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
1778 (cortex_a9_sched_adjust_cost): Likewise.
1779 (fa726te_sched_adjust_cost): Likewise.
1780 (arm_adjust_cost): Likewise.
1781 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
1782 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
1783 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
1784 * config/i386/i386.c (ix86_adjust_cost): Likewise.
1785 * config/ia64/ia64.c: Likewise.
1786 * config/m68k/m68k.c: Likewise.
1787 * config/mep/mep.c (mep_adjust_cost): Likewise.
1788 * config/microblaze/microblaze.c (microblaze_adjust_cost):
1790 * config/mips/mips.c (mips_adjust_cost): Likewise.
1791 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
1793 * config/pa/pa.c (pa_adjust_cost): Likewise.
1794 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
1795 (rs6000_debug_adjust_cost): Likewise.
1796 * config/sh/sh.c (sh_adjust_cost): Likewise.
1797 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
1798 (hypersparc_adjust_cost): Likewise.
1799 (sparc_adjust_cost): Likewise.
1800 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
1801 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
1802 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
1804 * config/visium/visium.c (visium_adjust_cost): Likewise.
1805 * doc/tm.texi: Regenerate.
1806 * haifa-sched.c (dep_cost_1): Adjust.
1807 * target.def: Merge adjust_cost and adjust_cost_2.
1809 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1811 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
1813 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1815 * store-motion.c (struct st_expr): Make pattern_regs a vector.
1816 (extract_mentioned_regs): Append to a vector instead of
1817 returning a rtx_expr_list.
1818 (st_expr_entry): Adjust.
1819 (free_st_expr_entry): Likewise.
1820 (store_ops_ok): Likewise.
1821 (store_killed_in_insn): Likewise.
1822 (find_moveable_store): Likewise.
1824 2016-07-28 Martin Liska <mliska@suse.cz>
1826 PR gcov-profile/68025
1827 * tree-profile.c (tree_profiling): Respect
1828 no_profile_instrument_function attribute.
1829 * doc/extend.texi: Document no_profile_instrument_function
1832 2016-07-28 Martin Liska <mliska@suse.cz>
1834 PR rtl-optimization/70944
1835 * combine.c (make_compound_operation):
1836 Do not allow make_compound_operation for vector mode
1838 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
1841 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
1842 before calling get_ops.
1844 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
1846 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
1847 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
1848 (BITS_PER_UNIT_LOG): Remove.
1849 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
1850 * expr.c (expand_assignment): Likewise.
1851 * stor-layout.c (initialize_sizetypes): Likewise.
1853 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
1855 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
1856 signature of rs6000_expand_vector_extract so that the element
1857 number is a RTX instead of a constant integer.
1858 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
1860 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
1861 (altivec_expand_vec_ext_builtin): Likewise.
1862 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
1863 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
1864 MFVSRLD instruction.
1866 2016-07-27 David Malcolm <dmalcolm@redhat.com>
1868 * input.c (get_pure_location): Move here from tree.c.
1869 (make_location): Likewise. Add header comment.
1870 (selftest::test_accessing_ordinary_linemaps): Verify
1871 pure_location_p, make_location, get_location_from_adhoc_loc and
1873 * input.h (get_pure_location): Move declaration here from tree.h.
1874 (get_finish): Likewise for inline function.
1875 (make_location): Likewise for declaration.
1876 * tree.c (get_pure_location): Move to input.c.
1877 (make_location): Likewise.
1878 * tree.h (get_pure_location): Move declaration to tree.h.
1879 (get_finish): Likewise for inline function.
1880 (make_location): Likewise for declaration.
1882 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1885 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
1887 2016-07-27 David Malcolm <dmalcolm@redhat.com>
1889 * system.h (STATIC_ASSERT): Use static_assert if building
1892 2016-07-27 Richard Biener <rguenther@suse.de>
1894 PR tree-optimization/72517
1895 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
1896 Revert change to not compute read-read dependences.
1898 2016-07-27 Richard Biener <rguenther@suse.de>
1900 * predict.c (set_even_probabilities): Make nedges unsigned.
1902 2016-07-27 Martin Liska <mliska@suse.cz>
1904 * predict.c (set_even_probabilities): Handle unlikely edges.
1905 (combine_predictions_for_bb): Likewise.
1907 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1910 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
1911 __float128 support when we don't have hardware support, so that
1912 the IEEE built-in functions like isgreater, first call __unordkf3
1913 to make sure neither operand is a NaN, and if both operands are
1914 ordered, do the normal comparison.
1916 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
1918 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
1920 (extract_code_and_val_from_cond_with_ops): Verify that name is
1921 either cond_op0 or cond_op1.
1923 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
1925 PR tree-optimization/18046
1926 * genmodes.c (emit_mode_size_inline): Emit an assert that
1927 verifies that mode is a valid array index.
1928 (emit_mode_nuinits_inline): Likewise.
1929 (emit_mode_inner_inline): Likewise.
1930 (emit_mode_unit_size_inline): Likewise.
1931 (emit_mode_unit_precision_inline): Likewise.
1932 * tree-vrp.c: Include params.h.
1933 (find_switch_asserts): Register edge assertions for the default
1934 label which correspond to the anti-ranges of each case label.
1935 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
1936 * doc/invoke.texi: Document it.
1938 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1940 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
1941 and unnecessary call to gimple_bb.
1943 2016-07-26 Richard Biener <rguenther@suse.de>
1945 PR rtl-optimization/71984
1946 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
1949 2016-07-26 Richard Biener <rguenther@suse.de>
1952 * expmed.c (extract_bit_field_1): Constrain the vector mode
1953 with element size matching the extraction mode size when
1954 choosing a better vector mode to do the extraction from.
1956 2016-07-26 Richard Biener <rguenther@suse.de>
1957 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1960 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
1963 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1965 * tree-ssa-structalias.c (struct scc_info): Change types of
1966 members to auto_sbitmap and auto_vec.
1967 (scc_info::scc_info): New constructor.
1968 (scc_info::~scc_info): New destructor.
1969 (init_scc_info): Remove.
1970 (free_scc_info): Remove.
1971 (find_indirect_cycles): Adjust.
1972 (perform_var_substitution): Likewise.
1973 (free_var_substitution_info): Likewise.
1975 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1977 * tree-outof-ssa.c (struct elim_graph): Change type of members
1978 to auto_vec and auto_sbitmap.
1979 (elim_graph::elim_graph): New constructor.
1980 (delete_elim_graph): Remove.
1981 (expand_phi_nodes): Adjust.
1983 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1985 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
1986 (new_elim_graph): Adjust.
1987 (clear_elim_graph): Likewise.
1988 (delete_elim_graph): Likewise.
1989 (elim_graph_size): Likewise.
1990 (elim_graph_add_node): Likewise.
1991 (elim_graph_add_edge): Likewise.
1992 (elim_graph_remove_succ_edge): Likewise.
1993 (eliminate_name): Likewise.
1994 (eliminate_build): Likewise.
1995 (elim_forward): Likewise.
1996 (elim_unvisited_predecessor): Likewise.
1997 (elim_backward): Likewise.
1998 (elim_create): Likewise.
1999 (eliminate_phi): Likewise.
2000 (expand_phi_nodes): Likewise.
2002 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2004 * bt-load.c (compute_out): Use auto_sbitmap class.
2005 (link_btr_uses): Likewise.
2006 * cfganal.c (mark_dfs_back_edges): Likewise.
2007 (post_order_compute): Likewise.
2008 (inverted_post_order_compute): Likewise.
2009 (pre_and_rev_post_order_compute_fn): Likewise.
2010 (single_pred_before_succ_order): Likewise.
2011 * cfgexpand.c (pass_expand::execute): Likewise.
2012 * cfgloop.c (verify_loop_structure): Likewise.
2013 * cfgloopmanip.c (fix_bb_placements): Likewise.
2014 (remove_path): Likewise.
2015 (update_dominators_in_loop): Likewise.
2016 * cfgrtl.c (break_superblocks): Likewise.
2017 * ddg.c (check_sccs): Likewise.
2018 (create_ddg_all_sccs): Likewise.
2019 * df-core.c (df_worklist_dataflow): Likewise.
2020 * dse.c (dse_step3): Likewise.
2021 * except.c (eh_region_outermost): Likewise.
2022 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2023 * gcse.c (prune_expressions): Likewise.
2024 (prune_insertions_deletions): Likewise.
2025 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
2026 * graph.c (draw_cfg_nodes_no_loops): Likewise.
2027 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
2028 * lcm.c (compute_earliest): Likewise.
2029 (compute_farthest): Likewise.
2030 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
2031 (unroll_loop_runtime_iterations): Likewise.
2032 (unroll_loop_stupid): Likewise.
2033 * lower-subreg.c (decompose_multiword_subregs): Likewise.
2034 * lra-lives.c: Likewise.
2035 * lra.c (lra): Likewise.
2036 * modulo-sched.c (schedule_reg_moves): Likewise.
2037 (optimize_sc): Likewise.
2038 (get_sched_window): Likewise.
2039 (sms_schedule_by_order): Likewise.
2040 (check_nodes_order): Likewise.
2041 (order_nodes_of_sccs): Likewise.
2042 (order_nodes_in_scc): Likewise.
2043 * recog.c (split_all_insns): Likewise.
2044 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
2045 * reload1.c (reload): Likewise.
2046 * sched-rgn.c (haifa_find_rgns): Likewise.
2047 (split_edges): Likewise.
2048 (compute_trg_info): Likewise.
2049 * sel-sched.c (init_seqno): Likewise.
2050 * store-motion.c (remove_reachable_equiv_notes): Likewise.
2051 * tree-into-ssa.c (update_ssa): Likewise.
2052 * tree-ssa-live.c (live_worklist): Likewise.
2053 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
2054 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
2056 (try_peel_loop): Likewise.
2057 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
2059 * tree-ssa-pre.c (compute_antic): Likewise.
2060 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
2061 * tree-stdarg.c (reachable_at_most_once): Likewise.
2062 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
2063 * var-tracking.c (vt_find_locations): Likewise.
2065 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2067 * sbitmap.h (auto_sbitmap): New class.
2069 2016-07-26 Alan Modra <amodra@gmail.com>
2072 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
2075 2016-07-25 David Malcolm <dmalcolm@redhat.com>
2077 * input.c (selftest::temp_source_file::temp_source_file): Fix
2078 missing "%s" in fprintf.
2080 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
2083 * cselib.c (cselib_process_insn): Invalidate argument slots for
2086 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2088 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
2089 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
2090 vmulxh_lane_f16, vmulxh_laneq_f16): New.
2092 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2094 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
2095 * config/aarch64/aarch64.md (fma, fnma): Support HF.
2096 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
2098 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2100 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
2101 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
2103 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
2104 (add<mode>3): Likewise.
2105 (sub<mode>3): Likewise.
2106 (mul<mode>3): Likewise.
2107 (div<mode>3): Likewise.
2108 (*div<mode>3): Likewise.
2109 (<fmaxmin><mode>3): Extend to HF.
2110 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
2111 (fabd<mode>3): Likewise.
2112 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
2113 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
2114 (aarch64_fmulx<mode>): Likewise.
2115 (aarch64_fac<optab><mode>): Likewise.
2116 (aarch64_frecps<mode>): Likewise.
2117 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
2118 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
2119 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
2120 (VSDQ_HSDI): Support HI.
2121 (fcvt_target, FCVT_TARGET): Likewise.
2122 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
2123 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
2124 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
2125 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
2126 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
2127 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
2128 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
2131 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2133 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
2134 * config/aarch64/aarch64-builtins.c (hi_UP): New.
2135 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
2136 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
2138 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
2139 (aarch64_cm<optab><mode>): Likewise.
2140 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
2141 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
2142 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
2143 (sqrt<mode>2): Likewise.
2144 (*sqrt<mode>2): Likewise.
2145 (abs<mode>2): Likewise.
2146 (<optab><mode>hf2): New pattern for HF mode.
2147 (<optab>hihf2): Likewise.
2148 * config/aarch64/arm_neon.h: Include arm_fp16.h.
2149 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
2150 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
2152 * config/aarch64/arm_fp16.h: New file.
2153 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
2154 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
2155 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
2156 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
2157 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
2158 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
2159 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
2160 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
2161 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
2162 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
2163 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
2164 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
2167 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2169 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
2170 reduc_smin_scal_): Use VDQIF_F16.
2171 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
2172 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
2174 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
2175 * config/aarch64/iterators.md (VDQIF_F16): New.
2176 (vp): Support HF modes.
2177 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
2178 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
2180 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2182 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
2183 "*aarch64_mulx_elt_from_dup<mode>".
2184 (*aarch64_mul3_elt<mode>): Update schedule type.
2185 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
2186 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
2187 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
2188 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
2189 (f, fp): Support HF modes.
2190 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
2191 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
2192 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
2193 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
2194 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
2195 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
2197 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2199 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
2200 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
2202 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
2205 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2207 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
2208 * config/aarch64/aarch64-simd.md
2209 (aarch64_rsqrts<mode>): Extend to HF modes.
2210 (fabd<mode>3): Likewise.
2211 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
2212 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
2213 (aarch64_<maxmin_uns>p<mode>): Likewise.
2214 (<su><maxmin><mode>3): Likewise.
2215 (<maxmin_uns><mode>3): Likewise.
2216 (<fmaxmin><mode>3): Likewise.
2217 (aarch64_faddp<mode>): Likewise.
2218 (aarch64_fmulx<mode>): Likewise.
2219 (aarch64_frecps<mode>): Likewise.
2220 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
2221 (add<mode>3): Extend to HF modes.
2222 (sub<mode>3): Likewise.
2223 (mul<mode>3): Likewise.
2224 (div<mode>3): Likewise.
2225 (*div<mode>3): Likewise.
2226 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
2228 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
2229 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
2230 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
2231 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
2232 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
2233 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
2234 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
2235 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
2236 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
2237 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
2238 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
2239 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
2240 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
2241 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
2243 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2245 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
2246 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
2247 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
2248 (neg<mode>2): Likewise.
2249 (abs<mode>2): Likewise.
2250 (<frint_pattern><mode>2): Likewise.
2251 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
2252 (<optab><VDQF:mode><fcvt_target>2): Likewise.
2253 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
2254 (ftrunc<VDQF:mode>2): Likewise.
2255 (<optab><fcvt_target><VDQF:mode>2): Likewise.
2256 (sqrt<mode>2): Likewise.
2257 (*sqrt<mode>2): Likewise.
2258 (aarch64_frecpe<mode>): Likewise.
2259 (aarch64_cm<optab><mode>): Likewise.
2260 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
2262 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
2263 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
2265 * config/aarch64/arm_neon.h (vdup_n_f16): New.
2266 (vdupq_n_f16): Likewise.
2267 (vld1_dup_f16): Use vdup_n_f16.
2268 (vld1q_dup_f16): Use vdupq_n_f16.
2269 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
2270 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
2271 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
2272 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
2273 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
2274 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
2275 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
2276 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
2277 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
2278 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
2279 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
2280 vsqrt_f16, vsqrtq_f16): New.
2282 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2284 * config/aarch64/aarch64-simd.md
2285 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
2286 (aarch64_ext<mode>): Likewise.
2287 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
2288 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
2289 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
2291 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
2293 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
2294 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
2295 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
2296 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
2297 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
2298 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
2299 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
2301 (vmov_n_f16): Reimplement using vdup_n_f16.
2302 (vmovq_n_f16): Reimplement using vdupq_n_f16..
2304 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2306 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
2307 "frame_related_p". Generate CFA annotation when it's necessary.
2308 (aarch64_expand_prologue): Use aarch64_add_constant.
2309 (aarch64_expand_epilogue): Likewise.
2310 (aarch64_output_mi_thunk): Pass "false" when calling
2311 aarch64_add_constant.
2313 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2315 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
2318 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2320 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
2321 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
2322 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
2323 (aarch64_build_constant): Delete.
2325 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
2328 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
2330 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
2331 flag_toplevel_reorder.
2333 2016-07-25 Richard Biener <rguenther@suse.de>
2335 * cgraph.c (cgraph_node::verify_node): Compare against builtin
2336 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
2337 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
2338 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
2339 (streamer_get_builtin_tree): Likewise.
2340 (streamer_write_builtin): Likewise.
2341 * lto-streamer.h (LTO_builtin_decl): Remove.
2342 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
2343 (lto_input_scc): Remove LTO_builtin_decl handling.
2344 (lto_input_tree_1): Liekwise.
2345 * lto-streamer-out.c (lto_output_tree_1): Remove special
2346 handling of builtins.
2347 (DFS::DFS): Likewise.
2348 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
2349 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
2351 (streamer_write_builtin): Remove.
2353 2016-07-25 Martin Liska <mliska@suse.cz>
2355 * lto-cgraph.c (input_symtab): Don't call get_working_sets
2356 if flag_auto_profile is set to true.
2358 2016-07-25 Martin Liska <mliska@suse.cz>
2360 PR gcov-profile/71868
2361 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
2362 have a function with multiple latches, count them all.
2364 2016-07-25 Martin Liska <mliska@suse.cz>
2366 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
2368 2016-07-25 Martin Liska <mliska@suse.cz>
2370 PR tree-optimization/71987
2371 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
2372 just for SSA_NAMEs. Fix GNU coding style.
2374 2016-07-25 Martin Liska <mliska@suse.cz>
2376 PR gcov-profile/64874
2377 * gcov-io.h: Update command about file format.
2378 * gcov-iov.c (main): Adapt the numbering scheme.
2380 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
2383 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
2384 whose result is used in PHI.
2385 (final_range_test_p): Likewise.
2386 (maybe_optimize_range_tests): Likewise.
2388 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
2390 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2391 Reformat two multi-line strings.
2393 2016-07-22 Martin Sebor <msebor@redhat.com>
2395 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
2397 2016-07-22 Martin Sebor <msebor@redhat.com>
2400 * doc/extend.texi (Compound Literals): Correct and clarify.
2401 (Cast to Union): Same.
2403 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
2405 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
2406 comments to explain why certain error messages make mention of
2407 undocumented options.
2408 (rs6000_invalid_builtin): Change error messages to replace mention
2409 of undocumented options with mention of the -mcpu=power9 option
2410 that enables those undocumented options.
2411 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
2412 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
2413 definition of this macro to correct an existing error.
2414 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
2415 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
2416 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
2417 descriptions of built-in functions so that they depend on
2418 -mcpu=power9 instead of on the corresponding undocumented flags.
2419 * doc/invoke.texi (Option Summary): Remove all mention of newly
2421 (IBM RS/6000 and PowerPC Options): Likewise.
2422 * doc/md.texi (Constraints for Particuliar Machines): Remove all
2423 mention of newly undocumented flags.
2425 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
2427 * ipa-cp.c (determine_versionability): Do not create constprop clones,
2428 when target_clones attribute is set.
2430 2016-07-22 Bin Cheng <bin.cheng@arm.com>
2432 * common.opt (funsafe-loop-optimizations): Mark ignore.
2433 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
2434 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
2436 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
2437 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
2439 2016-07-22 Bin Cheng <bin.cheng@arm.com>
2441 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
2443 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
2445 (number_of_iterations_exit): Warn missed loop optimization for
2446 possible infinite loops.
2448 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
2451 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
2452 when to emit a ".machine" pseudo-op.
2454 2016-07-22 Martin Liska <mliska@suse.cz>
2456 PR gcov-profile/69028
2457 PR gcov-profile/62047
2458 * coverage.c (coverage_compute_lineno_checksum): Do not
2459 calculate checksum for fns w/o xloc.file.
2460 (coverage_compute_profile_id): Likewise.
2462 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
2464 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
2465 (avr_secondary_reload): ...and implementation.
2466 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
2467 * config/avr/avr.md (reload_in<mode>): Remove insns.
2468 (adjust_len) [lpm]: Remove insn attribute value.
2469 * config/avr/predicates.md (flash_operand): Remove insn predicate.
2471 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2474 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
2476 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
2477 * calls.c (special_function_p): Remove the special handling of the
2478 "__builtin_" prefix.
2480 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2483 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
2484 if STMT may be an alloca call.
2485 (gimple_alloca_call_p, alloca_call_p): Return only true for the
2486 builtin alloca call.
2487 * calls.h (gimple_maybe_alloca_call_p): New function.
2488 * tree-inline.c (inline_forbidden_p_stmt): Use
2489 gimple_maybe_alloca_call_p here.
2491 2016-07-21 David Malcolm <dmalcolm@redhat.com>
2493 * spellcheck-tree.c (best_macro_match::best_macro_match):
2494 Explictly specify the template arguments when invoking the base
2495 class constructor, to help older C++ compilers.
2497 2016-07-21 Jakub Jelinek <jakub@redhat.com>
2500 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
2501 before builtin_decl_implicit.
2503 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
2505 * optabs.c (emit_condiitonal_move): Short circuit for identical
2508 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
2510 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
2511 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
2512 (noce_conversion_profitable_p): New.
2513 (noce_try_store_flag_constants): Use it.
2514 (noce_try_addcc): Likewise.
2515 (noce_try_store_flag_mask): Likewise.
2516 (noce_try_cmove): Likewise.
2517 (noce_try_cmove_arith): Likewise.
2518 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
2520 (noce_convert_multiple_sets): Move cost model to here, from...
2521 (bb_ok_for_noce_convert_multiple_sets) ...here.
2522 (noce_process_if_block): Update calls for above changes.
2523 (noce_find_if_block): Record new noce_if_info parameters.
2525 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
2527 * target.def (max_noce_ifcvt_seq_cost): New.
2528 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
2529 * doc/tm.texi: Regenerate.
2530 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
2531 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
2532 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
2533 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
2534 * doc/invoke.texi: Document new params.
2536 2016-07-21 Richard Biener <rguenther@suse.de>
2538 PR tree-optimization/71947
2539 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
2540 ranges have useful limit_vr information.
2542 2016-07-21 Richard Biener <rguenther@suse.de>
2544 * function-tests.c (build_trivial_generic_function): Set
2545 BLOCK_SUPERCONTEXT of DECL_INITIAL.
2546 * omp-low.c (create_omp_child_function): Likewise.
2547 (grid_expand_target_grid_body): Likewise.
2548 * cgraphunit.c (init_lowered_empty_function): Likewise.
2549 (cgraph_node::expand_thunk): Likewise.
2550 * tree-parloops.c (create_loop_fn): Likewise.
2551 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
2553 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2555 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
2558 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
2560 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
2561 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
2562 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
2563 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
2564 values for insn attribute.
2565 * config/avr/avr.c (avr_out_insert_notbit): New function.
2566 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
2567 ADJUST_LEN_INSV_NOTBIT_0/_7.
2568 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
2570 2016-07-21 Bin Cheng <bin.cheng@arm.com>
2572 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
2573 (chrec_convert_1, chrec_convert): Ditto.
2574 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
2575 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
2576 * tree-vrp.c (adjust_range_with_scev): Ditto.
2577 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
2578 (scev_var_range_cant_overflow): New function.
2579 (scev_probably_wraps_p): New parameter. Call above function.
2580 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
2582 2016-07-21 Bin Cheng <bin.cheng@arm.com>
2584 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
2585 by removing computation of may_be_zero.
2587 2016-07-21 Jakub Jelinek <jakub@redhat.com>
2589 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
2591 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
2593 Improving concepts performance and diagnostics.
2594 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
2595 for constraint satisfaction and subsumption.
2596 * timevar.h (auto_timevar): New constructor that matches the push/pop
2597 pattern of usage in pt.c.
2599 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
2601 * hwint.h (HOST_WIDE_INT_0): New define.
2602 (HOST_WIDE_INT_0U): Ditto.
2603 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
2604 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
2605 * simplify-rtx.c: Ditto.
2606 * tree-object-size.c: Ditto.
2608 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2610 * config/s390/s390.c (s390_encode_section_info): Remove mode size
2613 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
2615 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
2616 * combine.c: Use HOST_WIDE_INT_M1U instead of
2617 ~(unsigned HOST_WIDE_INT) 0.
2618 * double-int.h: Ditto.
2620 * dwarf2asm.c:Ditto.
2622 * genmodes.c: Ditto.
2624 * read-rtl.c: Ditto.
2625 * tree-ssa-loop-ivopts.c: Ditto.
2626 * tree-ssa-loop-prefetch.c: Ditto.
2627 * tree-vect-generic.c: Ditto.
2628 * tree-vect-patterns.c: Ditto.
2631 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
2633 * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
2634 constant addresses outside [0,0xc0] into a register.
2635 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
2636 cases where the base address register is unused after.
2637 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
2638 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
2639 (avr_out_store_psi_reg_disp_tiny): Same.
2641 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
2643 Implement attribute progmem on reduced Tiny cores by adding
2644 flash offset 0x4000 to respective symbols.
2647 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
2648 documentation how it works on reduced Tiny cores.
2649 (AVR Named Address Spaces): No support for reduced Tiny.
2650 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
2651 (avr_address_tiny_pm_p): New static function.
2652 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
2653 if the address is in progmem.
2654 (avr_assemble_integer): Same.
2655 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
2656 for symbol_ref in progmem.
2657 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
2658 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
2659 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
2661 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
2663 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
2664 * configure: Regenerate.
2665 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
2666 (USE_THIN_ARCHIVES): New variable.
2667 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
2668 this archive as a thin archive.
2670 2016-07-20 David Malcolm <dmalcolm@redhat.com>
2672 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
2673 same location as last time, don't skip if we have fix-it hints.
2674 Clarify the skipping logic by converting it from one "if" clause
2675 to repeated "if" clauses.
2676 * spellcheck-tree.c: Include "cpplib.h".
2677 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
2678 (best_macro_match::best_macro_match): New constructor.
2679 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
2680 Move here from c/c-decl.c.
2681 (class best_macro_match): Move here from c/c-decl.c, converting
2682 from a typedef to a subclass, gaining a ctor.
2684 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
2686 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
2687 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
2689 (avr_addr_space_diagnose_usage): ...and implementation.
2690 (avr_addr_space_supported_p): New function.
2691 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
2692 report bad address space usage if that space is supported.
2693 (avr_insert_attributes): Same. No more complain about unsupported
2695 * config/avr/avr-c.c (tm_p.h): Include it.
2696 (avr_cpu_cpp_builtins): Only define addr-space related built-in
2697 macro if avr_addr_space_supported_p.
2699 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
2701 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
2702 flag_toplevel_reorder.
2704 2016-07-20 David Malcolm <dmalcolm@redhat.com>
2706 * gcc-rich-location.c
2707 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
2709 * gcc-rich-location.h
2710 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
2712 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
2714 * target.def (addr_space): Add new diagnose_usage to hook vector.
2715 * targhooks.c (default_addr_space_diagnose_usage): Add default
2716 implementation and...
2717 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
2718 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
2719 is some address space, call targetm.addr_space.diagnose_usage.
2720 * doc/tm.texi.in (Named Address Spaces): Add anchor for
2721 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
2722 * doc/tm.texi: Regenerate.
2724 2016-07-20 Martin Liska <mliska@suse.cz>
2727 * graphite-isl-ast-to-gimple.c (later_of_the_two):
2728 Properly handly PHI stmts.
2730 2016-07-20 Bin Cheng <bin.cheng@arm.com>
2732 PR tree-optimization/71503
2733 PR tree-optimization/71683
2734 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
2737 2016-07-20 Martin Liska <mliska@suse.cz>
2739 * doc/invoke.texi (-fipa-ra): Document when the option is
2740 disabled. Fix a typo.
2742 2016-07-20 Martin Liska <mliska@suse.cz>
2744 * Makefile.in: Include fibonacci_heap.c
2745 * fibonacci_heap.c: New file.
2746 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
2747 (fibonacci_heap::union_with): Fix deletion of the second heap.
2748 * selftest-run-tests.c (selftest::run_tests): Incorporate
2749 fibonacci heap tests.
2750 * selftest.h: Declare fibonacci_heap_c_tests.
2752 2016-07-20 Martin Liska <mliska@suse.cz>
2754 * selftest-run-tests.c (selftest::run_tests): New function.
2755 * selftest.h (sreal_c_tests): Declare.
2756 * sreal.c (sreal_verify_basics): New function.
2757 (verify_aritmetics): Likewise.
2758 (sreal_verify_arithmetics): Likewise.
2759 (verify_shifting): Likewise.
2760 (sreal_verify_shifting): Likewise.
2761 (void sreal_c_tests): Likewise.
2763 2016-07-19 Jakub Jelinek <jakub@redhat.com>
2765 PR rtl-optimization/71916
2766 * cfgrtl.c (contains_no_active_insn_p): Return false also for
2767 bb which have a single succ fake edge.
2769 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
2772 * dwarf2out.c (gen_subprogram_die): Only call
2773 gen_unspecified_parameters_die while dumping early dwarf.
2775 2016-07-19 Jakub Jelinek <jakub@redhat.com>
2778 * gimple-fold.c (fold_builtin_memory_op): Use
2779 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
2781 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
2783 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
2784 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
2785 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
2786 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
2790 * double-int.c: Ditto.
2792 * dwarf2out.c: Ditto.
2795 * fold-const.c: Ditto.
2796 * function.c: Ditto.
2798 * genmodes.c: Ditto.
2802 * loop-doloop.c: Ditto.
2803 * loop-invariant.c: Ditto.
2810 * simplify-rtx.c: Ditto.
2811 * stor-layout.c: Ditto.
2813 * tree-ssa-loop-ivopts.c: Ditto.
2814 * tree-vect-generic.c: Ditto.
2815 * tree-vect-patterns.c: Ditto.
2820 * wide-int-print.cc: Ditto.
2821 * wide-int.cc: Ditto.
2822 * wide-int.h: Ditto.
2824 2016-07-19 David Malcolm <dmalcolm@redhat.com>
2826 * selftest.c (selftest::assert_streq): Handle NULL values of
2827 val_actual and val_expected.
2829 2016-07-19 Martin Jambor <mjambor@suse.cz>
2832 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
2833 rather than cgraph_create_node to get a call graph node.
2835 2016-07-19 Richard Biener <rguenther@suse.de>
2837 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
2838 handle all tcc_constant bases and valueize SSA names.
2839 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
2842 2016-07-19 David Malcolm <dmalcolm@redhat.com>
2844 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
2845 the flags of the exit block and bb2, not just the entry block.
2847 2016-07-19 Richard Biener <rguenther@suse.de>
2849 PR tree-optimization/71901
2850 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
2851 align member, group stuff with the bitfield.
2852 (vn_ref_op_align_unit): New inline.
2853 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
2854 record element alignment and operand 3 unchanged.
2855 (ao_ref_init_from_vn_reference): Adjust.
2856 (valueize_refs_1): Likewise.
2857 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2859 2016-07-19 Richard Biener <rguenther@suse.de>
2861 PR tree-optimization/71908
2862 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
2863 symbolic constants in a more reliable way.
2865 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
2867 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
2869 (vect_update_inits_of_drs): Likewise.
2870 (vect_create_cond_for_alias_checks): Likewise.
2871 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
2873 2016-07-19 Richard Biener <rguenther@suse.de>
2876 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
2877 with an abstract origin that is not an inlined function outer
2878 scope add a self-reference as abstract origin.
2879 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
2881 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2884 * config/rs6000/rs6000.c (rs6000_function_value): Fix
2885 unintentional System V.4 structure return breakage for structures
2886 with a single floating point element.
2888 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
2890 PR tree-optimization/71734
2891 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
2892 contains REF, use it to check safelen, assume that safelen value
2893 must be greater 1, fix style.
2894 (ref_indep_loop_p_2): Add REF_LOOP argument.
2895 (ref_indep_loop_p): Pass LOOP as additional argument to
2898 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
2900 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
2901 allocation in the prologue.
2902 * explow.c (get_dynamic_stack_base): New function to return an address
2903 expression for the dynamic stack base.
2904 (get_dynamic_stack_size): New function to do the required dynamic stack
2905 space size calculations.
2906 (allocate_dynamic_stack_space): Use new functions.
2907 (align_dynamic_address): Move some code from
2908 allocate_dynamic_stack_space to new function.
2909 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
2911 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2913 * config/s390/s390.c (s390_encode_section_info): Always set
2914 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
2917 2016-07-18 Richard Biener <rguenther@suse.de>
2919 PR tree-optimization/71893
2920 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
2921 for sizetype cast added by array_ref_element_size.
2922 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2924 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
2926 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
2927 register parameters. Remove code to initialize argument pointer
2928 on TARGET_64BIT. Optimize call to _mcount when it can be reached
2929 using a pc-relative branch. Cleanup conditional code.
2930 * config/pa/pa.md (call_mcount): New expander.
2931 (call_mcount_nonpic): New insn.
2932 (call_mcount_pic): New insn and split.
2933 (call_mcount_pic_post_reload): New insn.
2934 (call_mcount_64bit): New insn and split.
2935 (call_mcount_64bit_post_reload): New insn.
2937 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
2939 * config/avr/predicates.md (const_m255_to_m1_operand): New.
2940 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
2941 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
2942 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
2943 (*usum_widenqihi3, *udiff_widenqihi3)
2944 (*addhi3_zero_extend.const): New combiner insns.
2945 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
2946 just 1 bit is affected.
2947 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
2948 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
2950 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
2952 * omp-low.c (lower_omp_target): Mark data clauses with
2953 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
2954 zero-length subarrays.
2956 2016-07-15 Richard Biener <rguenther@suse.de>
2958 PR tree-optimization/71881
2959 * tree-loop-distribution.c (destroy_loop): Remove blocks in
2960 reverse DOM order to make debug temp generation happy.
2962 2016-07-15 Richard Biener <rguenther@suse.de>
2964 PR tree-optimization/71887
2965 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
2966 verify it is not zero for division / modulo handling.
2967 (value_replacement): Adjust.
2969 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
2970 Julian Brown <julian@codesourcery.com>
2972 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
2973 * config/aarch64/aarch64-cost-tables.h
2974 (vulcan_extra_costs): New variable.
2975 * config/aarch64/aarch64.c
2976 (vulcan_addrcost_table): Likewise.
2977 (vulcan_regmove_cost): Likewise.
2978 (vulcan_vector_cost): Likewise.
2979 (vulcan_branch_cost): Likewise.
2980 (vulcan_tunings): Likewise.
2982 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
2984 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
2985 (output_in_order): Loop over undefined variables too. Output them
2986 via assemble_undefined_decl. Skip variables that correspond to hard
2987 registers or have value-exprs.
2988 * varpool.c (symbol_table::output_variables): Handle undefined
2989 variables together with defined ones.
2991 2016-07-15 Richard Biener <rguenther@suse.de>
2993 * tree-ssa-pre.c (get_representative_for): Make sure to return
2994 the value number of SSA names.
2995 (phi_translate_1): get_representative_for cannot return NULL.
2996 (do_pre_regular_insertion): Remove redundant call to
2997 fully_constant_expression.
2998 (do_pre_partial_partial_insertion): Likewise.
3000 2016-07-15 Bin Cheng <bin.cheng@arm.com>
3002 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
3003 (derive_simple_iv_with_niters): New function.
3004 (simple_iv): Rewrite using simple_iv_with_niters.
3005 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
3006 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
3008 (number_of_iterations_exit): Rewrite using above function.
3009 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
3012 2016-07-15 Richard Biener <rguenther@suse.de>
3014 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
3017 2016-07-14 Jakub Jelinek <jakub@redhat.com>
3019 PR tree-optimization/71872
3020 * tree-data-ref.c (get_references_in_stmt): Ignore references
3021 with is_gimple_constant get_base_address.
3023 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
3025 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
3026 (TARGET_HAVE_LDACQD): New macro.
3027 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
3028 than TARGET_HAVE_LDACQ.
3029 (arm_load_acquire_exclusivedi): Likewise.
3030 (arm_store_release_exclusivedi): Likewise.
3032 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
3034 PR rtl-optimization/71878
3035 * lra-constraints.c (match_reload): Pass information about other
3036 output operands. Create new unique register value if matching input
3037 operand shares same register value as output operand being considered.
3038 (curr_insn_transform): Record output operands already processed.
3040 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3043 PR tree-optimization/70923
3044 * tree-vect-patterns.c: Include mult-synthesis.h.
3045 (target_supports_mult_synth_alg): New function.
3046 (synth_lshift_by_additions): Likewise.
3047 (apply_binop_and_append_stmt): Likewise.
3048 (vect_synth_mult_by_constant): Likewise.
3049 (target_has_vecop_for_code): Likewise.
3050 (vect_recog_mult_pattern): Use above functions to synthesize vector
3051 multiplication by integer constants.
3053 2016-07-14 Alan Modra <amodra@gmail.com>
3055 * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
3056 gpr alternatives. Correct '*' placement on Y,r alternative.
3057 Add '*' on operand 1 of r,r alternative.
3059 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3061 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
3062 * expmed.h: ... Here.
3064 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
3066 * gimple.h (stmt_can_terminate_bb_p): New function.
3067 * tree-cfg.c (need_fake_edge_p): Rename to ...
3068 (stmt_can_terminate_bb_p): ... this; return true if stmt can
3069 throw external; handle const and pure calls.
3070 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
3072 2016-07-14 Richard Biener <rguenther@suse.de>
3074 PR tree-optimization/71866
3075 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
3076 (do_hoist_insertion): Avoid endless recursion when we
3077 didn't insert anything because we managed to simplify
3078 things down to a constant or SSA name.
3079 (fully_constant_expression): Re-write in terms of ...
3080 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
3081 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
3082 vn_nary_build_or_lookup_1.
3083 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
3084 (vn_nary_build_or_lookup): ... this which now wraps it.
3086 2016-07-14 Alan Modra <amodra@gmail.com>
3089 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
3090 with p9_vector override before power9-dform override.
3092 2016-07-13 Andi Kleen <ak@linux.intel.com>
3094 * value-prof.c (gimple_value_profile_transformations): Don't run
3095 when auto_profile is on.
3097 2016-07-13 Andi Kleen <ak@linux.intel.com>
3099 * auto-profile.c (update_inlined_ind_target,
3100 afdo_indirect_call): Print information to dump file.
3102 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
3104 * genrecog.c (special_predicate_operand_p): New function.
3105 (predicate_name): Move function.
3106 (validate_pattern): Don't warn about missing mode for all
3107 define_special_predicate predicates.
3109 2016-07-13 Bin Cheng <bin.cheng@arm.com>
3111 * tree-vect-data-refs.c (vect_no_alias_p): New function.
3112 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
3113 resolve alias checks which are known at compilation time.
3114 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
3115 alias checks are resolved. Move dump info for too many runtime
3116 alias checks to here...
3117 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
3119 2016-07-13 Richard Biener <rguenther@suse.de>
3121 PR tree-optimization/24574
3122 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
3123 position and add shift, rotate, divison and modulo support
3125 (value_replacement): Pass in argument position to absorbing_element_p.
3127 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
3130 * ipa-inline-transform.c (inline_call): Support
3131 instrumented thunks.
3133 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
3135 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
3136 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
3138 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
3139 Baseline. Make initial alternative TARGET_32BIT only.
3140 (udivsi3): Likewise.
3141 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
3142 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
3145 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
3147 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
3148 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
3149 availability with TARGET_HAVE_MOVT.
3150 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
3151 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
3152 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
3154 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
3155 extra instruction if MOVW is available. Use a cost variable
3156 incremented by COSTS_N_INSNS (1) when the condition match rather than
3157 returning an arithmetic expression based on COSTS_N_INSNS. Make
3158 constant with bottom half word zero cost 2 instruction if MOVW is
3160 * config/arm/arm.md (define_attr "arch"): Add v8mb.
3161 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
3162 target is ARMv8-M Baseline.
3163 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
3164 (arm_movtas_ze): Likewise.
3165 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
3166 alternative for constants satisfying j constraint.
3167 (thumb1_movsi_insn): Likewise.
3168 (movsi splitter for K alternative): Tighten condition to not trigger
3169 if movt is available and j constraint is satisfied.
3170 (Pe immediate splitter): Likewise.
3171 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
3172 constant fitting in an halfword to use MOVW.
3173 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
3176 2016-07-13 Richard Biener <rguenther@suse.de>
3179 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
3180 gimplifying the LHS. Make sure to gimplify a returning twice
3181 call LHS without using SSA names.
3183 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3185 * tree-data-ref.c (find_data_references_in_stmt): Remove
3186 unnecessary call to vec::release.
3187 (graphite_find_data_references_in_stmt): Likewise.
3188 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
3189 * tree-vect-stmts.c (vectorizable_condition): Likewise.
3191 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3193 * cfgexpand.c (expand_used_vars): Make the type of a local
3195 * genmatch.c (lower_for): Likewise.
3196 * haifa-sched.c (haifa_sched_init): Likewise.
3197 (add_to_speculative_block): Likewise.
3198 (create_check_block_twin): Likewise.
3199 * predict.c (handle_missing_profiles): Likewise.
3200 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
3201 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
3202 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
3204 (maybe_lower_iteration_bound): Likewise.
3205 * tree-ssa-sccvn.c (DFS): Likewise.
3206 * tree-stdarg.c (reachable_at_most_once): Likewise.
3207 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
3208 (vectorizable_store): Likewise.
3210 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3212 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
3213 (sccvn_dom_walker): make cond_stack an auto_vec.
3215 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3217 * ree.c (struct ext_state): Make type of members auto_vec.
3218 (find_and_remove_re): Adjust.
3220 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3222 * cfgexpand.c (struct stack_vars_data): Make type of fields
3224 (expand_used_vars): Adjust.
3226 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3228 * ipa.c (record_cdtor_fn): Adjust.
3229 (build_cdtor_fns): Likewise.
3230 (ipa_cdtor_merge): Make static_ctors and static_dtors local
3233 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3235 * genextract.c (struct accum_extract): Add constructor and make
3239 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3241 * tree.c (struct free_lang_data_d): Add constructor and change
3242 types of members to ones that automatically manage resources.
3243 (fld_worklist_push): Adjust.
3244 (find_decls_types): Likewise.
3245 (find_decls_types_in_eh_region): Likewise.
3246 (free_lang_data_in_cgraph): Stop manually creating and
3247 destroying members of free_lang_data_d.
3249 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
3251 PR rtl-optimization/68961
3252 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
3253 peephole variant. Use sse_reg_operand predicates.
3255 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
3257 * config/i386/predicates.md (x86_64_immediate_operand)
3258 <case CONST_INT>: Remove unneeded truncation to DImode.
3259 <case CONST>: Ditto.
3260 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
3262 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
3265 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
3266 The xxperm and xxpermr instructions require that the 2nd input
3267 operand overlap with the output operand, and not the 1st.
3268 (altivec_vperm_v8hiv16qi): Likewise.
3269 (altivec_vperm_<mode>_uns_internal): Likewise.
3270 (altivec_vpermr_<mode>_internal): Likewise.
3271 (vperm_v8hiv4si): Likewise.
3272 (vperm_v16qiv8hi): Likewise.
3274 2016-07-12 Nathan Sidwell <nathan@acm.org>
3276 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
3277 when -mno-pic-data-is-text-relative is in effect, by default.
3278 * doc/invoke.texi (mpic-data-is-text-relative): Document new
3279 behavior and clarify.
3281 2016-07-12 Martin Liska <mliska@suse.cz>
3283 * params.def: Add avg-loop niter.
3284 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
3285 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3286 * doc/invoke.texi: Document the new parameter.
3288 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3291 * expr.c (store_constructor): Mask sign-extended bits when widening
3292 sub-word constructor element at the start of a word.
3294 2016-07-12 Martin Liska <mliska@suse.cz>
3296 * Makefile.in: Append rule for params-options.h.
3297 * params-options.h: New file.
3299 2016-07-12 Martin Liska <mliska@suse.cz>
3301 * ira-build.c (mark_loops_for_removal): Properly iterate
3304 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
3305 Richard Biener <rguenther@suse.de>
3307 PR tree-optimization/23286
3308 PR tree-optimization/70159
3309 * doc/invoke.texi: Document -fcode-hoisting.
3310 * common.opt (fcode-hoisting): New flag.
3311 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
3312 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
3313 (do_regular_insertion): Rename to ...
3314 (do_pre_regular_insertion): ... this and amend general comments
3315 on insertion strathegy.
3316 (do_partial_partial_insertion): Rename to ...
3317 (do_pre_partial_partial_insertion): ... this.
3318 (do_hoist_insertion): New function.
3319 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
3320 and call do_hoist_insertion properly.
3322 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
3323 (pass_pre::execute): Register hoist_insert stats.
3325 2016-07-12 Jakub Jelinek <jakub@redhat.com>
3328 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
3329 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
3330 is different from mode's bitsize. Small cleanup.
3332 2016-07-12 Richard Biener <rguenther@suse.de>
3334 PR rtl-optimization/68961
3335 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
3336 to simplify to a non-constant.
3338 2016-07-11 Jakub Jelinek <jakub@redhat.com>
3341 * omp-low.c (expand_omp_target): Gimplify device.
3343 PR tree-optimization/71823
3344 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
3345 to get vec_oprnds2 from op2.
3347 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
3349 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
3350 Hoist common subexpressions.
3351 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
3353 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
3356 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
3357 prevent generation of 'stxsiwx' on pre Power8 hardware.
3359 2016-07-11 David Malcolm <dmalcolm@redhat.com>
3361 * input.c: Include cpplib.h.
3362 (selftest::temp_source_file): New class.
3363 (selftest::temp_source_file::temp_source_file): New ctor.
3364 (selftest::temp_source_file::~temp_source_file): New dtor.
3365 (selftest::should_have_column_data_p): New function.
3366 (selftest::test_should_have_column_data_p): New function.
3367 (selftest::temp_line_table): New class.
3368 (selftest::temp_line_table::temp_line_table): New ctor.
3369 (selftest::temp_line_table::~temp_line_table): New dtor.
3370 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
3371 it to create a temp_line_table.
3372 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
3373 locations that are known to have column data.
3374 (selftest::line_table_case): New struct.
3375 (selftest::test_reading_source_line): Move tempfile handling
3376 to class temp_source_file.
3377 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
3378 (selftest::assert_token_loc_eq): New function.
3379 (ASSERT_TOKEN_LOC_EQ): New macro.
3380 (selftest::test_lexer): New function.
3381 (selftest::boundary_locations): New array.
3382 (selftest::input_c_tests): Call test_should_have_column_data_p.
3383 Loop over a test matrix of interesting values of location and
3384 default_range_bits, calling test_lexer on each case in the matrix.
3385 Move call to test_accessing_ordinary_linemaps into the matrix.
3386 * selftest.h (ASSERT_EQ): Reimplement in terms of...
3387 (ASSERT_EQ_AT): New macro.
3389 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
3392 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
3393 Don't convert TImode in debug insn.
3395 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
3397 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
3398 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
3399 (tree_type_common::lang_flag_7): New.
3400 (tree_type_common::spare): Reduce size.
3401 * tree.h (TYPE_ALIGN_OK): Remove.
3402 (TYPE_LANG_FLAG_7): New.
3403 (get_inner_reference): Adjust header.
3404 * print-tree.c (print_node): Adjust.
3405 * expr.c (get_inner_reference): Remove parameter keep_aligning.
3406 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
3407 calls to get_inner_reference.
3408 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
3409 handling of TYPE_ALIGN_OK.
3410 * builtins.c (get_object_alignment_2): Adjust call to
3411 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
3412 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
3414 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
3415 * cfgexpand.c (expand_debug_expr): Likewise.
3416 * dbxout.c (dbxout_expand_expr): Likewise.
3417 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
3418 loc_list_from_tree, fortran_common): Likewise.
3419 * fold-const.c (optimize_bit_field_compare,
3420 decode_field_reference, fold_unary_loc, fold_comparison,
3421 split_address_to_core_and_offset): Likewise.
3422 * gimple-laddress.c (execute): Likewise.
3423 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
3424 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
3425 * hsa-gen.c (gen_hsa_addr): Likewise.
3426 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
3427 * tsan.c (instrument_expr): Likewise.
3428 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
3429 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
3430 * tree-affine.c (tree_to_aff_combination,
3431 get_inner_reference_aff): Adjust calls to get_inner_reference.
3432 * tree-data-ref.c (split_constant_offset_1,
3433 dr_analyze_innermost): Likewise.
3434 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
3435 * tree-sra.c (ipa_sra_check_caller): Likewise.
3436 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
3437 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
3438 bswap_replace): Likewise.
3439 * tree-vect-data-refs.c (vect_check_gather,
3440 vect_analyze_data_refs): Likewise.
3441 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
3442 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
3445 2016-07-11 David Malcolm <dmalcolm@redhat.com>
3447 * Makefile.in (selftest-valgrind): New phony target.
3448 * function-tests.c (selftest::build_cfg): Delete pass instances
3449 created by the test.
3450 (selftest::convert_to_ssa): Likewise.
3451 (selftest::test_expansion_to_rtl): Likewise.
3452 * tree-cfg.c (selftest::test_linear_chain): Release dominator
3454 (selftest::test_diamond): Likewise.
3456 2016-07-11 Richard Biener <rguenther@suse.de>
3458 PR tree-optimization/71816
3459 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
3460 than replacing all of its operands.
3462 2016-07-11 Alan Modra <amodra@gmail.com>
3464 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
3465 (ctr<mode>): Add unspec.
3466 (ctr<mode>_internal*): Likewise.
3468 2016-07-08 James Bowman <james.bowman@ftdichip.com>
3470 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
3471 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
3473 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
3475 PR rtl-optimization/71621
3476 * lra-constraints.c (process_alt_operands): Check combination of
3479 2016-07-08 Jason Merrill <jason@redhat.com>
3480 Richard Biener <rguenther@suse.de>
3482 P0145: Refining Expression Order for C++.
3483 * gimplify.c (initial_rhs_predicate_for): New.
3484 (gimplfy_modify_expr): Gimplify RHS before LHS.
3486 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3489 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3490 Allow standard error handling to take over when a wrong number
3491 of arguments is presented to __builtin_vec_ld () or
3492 __builtin_vec_st ().
3494 2016-07-08 Jiong Wang <jiong.wang@arm.com>
3496 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
3501 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
3502 __builtin_aarch64_fmaxv2sf.
3503 (vmaxnmq_f32): Likewise.
3504 (vmaxnmq_f64): Likewise.
3505 (vminnm_f32): Likewise.
3506 (vminnmq_f32): Likewise.
3507 (vminnmq_f64): Likewise.
3509 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
3512 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
3513 enable -mfloat128-hardware by default.
3514 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
3515 that IEEE 128-bit hardware support needs.
3516 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
3517 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
3518 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
3519 floating point requires.
3520 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3521 -mfloat128 and -mfloat128-hardware changes.
3523 2016-07-08 Alan Hayward <alan.hayward@arm.com>
3525 PR tree-optimization/71667
3526 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
3528 2016-07-08 Martin Liska <mliska@suse.cz>
3531 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
3532 folding produces SAVE_EXPRs, thus return false for the type.
3534 2016-07-07 Martin Liska <mliska@suse.cz>
3536 * file-find.c (remove_prefix): New function.
3537 * file-find.h (remove_prefix): Declare the function.
3538 * gcc-ar.c (main): Skip a folder of the wrapper if
3539 a wrapped binary would point to the same file.
3541 2016-07-07 Jan Hubicka <jh@suse.cz>
3543 * tree-scalar-evolution.c (iv_can_overflow_p): export.
3544 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
3545 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
3547 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
3550 * ipa-inline-analysis.c (compute_inline_parameters): Set
3551 local.can_change_signature to false for intrumentation
3554 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
3556 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
3557 with TARGET_HAVE_MOVT.
3558 (TARGET_HAVE_MOVT): Define.
3559 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
3560 availability with TARGET_HAVE_MOVT.
3561 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
3563 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
3565 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
3566 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
3567 * config/arm/constraints.md (define_constraint "j"): Use
3568 TARGET_HAVE_MOVT to check MOVT availability.
3570 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
3572 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
3574 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
3576 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
3577 (armv8-m.main): Likewise.
3578 (armv8-m.main+dsp): Likewise.
3579 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
3580 (FL_FOR_ARCH8M_MAIN): Likewise.
3581 * config/arm/arm-tables.opt: Regenerate.
3582 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
3583 armv8-m.main+dsp to BE8_LINK_SPEC.
3584 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
3585 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
3586 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
3587 Baseline and Mainline.
3588 (arm_option_override_internal): Also disable arm_restrict_it when
3589 !arm_arch_notm. Update comment for -munaligned-access to also cover
3591 (arm_file_start): Increase buffer size for printing architecture name.
3592 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
3593 and armv8-m.main+dsp.
3594 (mno-unaligned-access): Clarify that this is disabled by default for
3595 ARMv8-M Baseline architectures as well.
3597 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
3599 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
3600 decide whether to prevent some libgcc routines being included for some
3601 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
3602 link between this condition and the one in
3603 libgcc/config/arm/lib1func.S.
3605 2016-07-07 Richard Biener <rguenther@suse.de>
3607 * tree-ssa-pre.c: Include alias.h.
3608 (compute_avail): If we have multiple VN_REFERENCEs with the
3609 same hashtable entry adjust that to make it a valid replacement
3610 for all of them with respect to alignment and aliasing
3611 when doing insertion.
3612 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
3613 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
3615 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
3619 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
3620 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
3623 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3625 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
3626 (adjust_mems): Adjust.
3627 (adjust_insn): Likewise.
3628 (prepare_call_arguments): Likewise.
3630 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3632 * gcse.c (struct ls_expr): Make stores field a vector.
3633 (ldst_entry): Adjust.
3634 (free_ldst_entry): Likewise.
3635 (print_ldst_list): Likewise.
3636 (compute_ld_motion_mems): Likewise.
3637 (update_ld_motion_stores): Likewise.
3639 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3641 * gcse.c (struct ls_expr): Remove loads field.
3642 (ldst_entry): Adjust.
3643 (free_ldst_entry): Likewise.
3644 (print_ldst_list): Likewise.
3645 (compute_ld_motion_mems): Likewise.
3647 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3649 * store-motion.c (struct st_expr): Make antic_stores a vector.
3650 (st_expr_entry): Adjust.
3651 (free_st_expr_entry): Likewise.
3652 (print_store_motion_mems): Likewise.
3653 (find_moveable_store): Likewise.
3654 (compute_store_table): Likewise.
3655 (remove_reachable_equiv_notes): Likewise.
3656 (replace_store_insn): Likewise.
3657 (build_store_vectors): Likewise.
3659 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3661 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
3662 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
3664 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
3666 PR tree-optimization/71518
3667 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
3668 misalign also for outer loops with negative step.
3670 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
3672 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
3673 (cortex_a53_shift): Add mov_shift.
3674 (cortex_a53_shift_reg): Add new reservation for register shifts.
3675 (cortex_a53_alu): Remove bfm.
3676 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
3677 (cortex_a53_alu_extr): Add new reservation for EXTR.
3678 (bypasses): Improve bypass modelling.
3680 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3683 * config/avr/avr.c (avr_asm_select_section): Strip off
3684 SECTION_DECLARED from flags when calling get_section.
3686 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
3688 * tree-vectorizer.h (vect_memory_access_type): Add
3689 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
3690 * tree-vect-stmts.c (compare_step_with_zero): New function.
3691 (perm_mask_for_reverse): Move further up file.
3692 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
3694 (get_negative_load_store_type): New function.
3695 (get_load_store_type): Call it. Add an ncopies argument.
3696 (vectorizable_mask_load_store): Update call accordingly and
3697 remove tests for negative steps.
3698 (vectorizable_store, vectorizable_load): Likewise. Handle new
3699 memory_access_types.
3701 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
3703 * tree-vectorizer.h (vect_memory_access_type): New enum.
3704 (_stmt_vec_info): Add a memory_access_type field.
3705 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
3706 (vect_model_store_cost): Take an access type instead of a boolean.
3707 (vect_model_load_cost): Likewise.
3708 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
3709 vect_model_store_cost and vect_model_load_cost.
3710 * tree-vect-stmts.c (vec_load_store_type): New enum.
3711 (vect_model_store_cost): Take an access type instead of a
3712 store_lanes_p boolean. Simplify tests.
3713 (vect_model_load_cost): Likewise, but for load_lanes_p.
3714 (get_group_load_store_type, get_load_store_type): New functions.
3715 (vectorizable_store): Use get_load_store_type. Record the access
3716 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
3717 (vectorizable_load): Likewise.
3718 (vectorizable_mask_load_store): Likewise. Replace is_store
3719 variable with vls_type.
3721 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
3723 * tree-vectorizer.h (vect_grouped_load_supported): Add a
3724 single_element_p parameter.
3725 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
3726 Check the PR65518 case here rather than in vectorizable_load.
3727 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
3728 * tree-vect-stmts.c (vectorizable_load): Likewise.
3730 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
3732 * tree-vectorizer.h (gather_scatter_info): New structure.
3733 (vect_check_gather_scatter): Return a bool rather than a decl.
3734 Replace return-by-pointer arguments with a single
3735 gather_scatter_info *.
3736 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
3737 (vect_analyze_data_refs): Update call accordingly.
3738 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
3739 (vectorizable_mask_load_store): Likewise. Also record the
3740 offset dt and vectype in the gather_scatter_info.
3741 (vectorizable_store): Likewise.
3742 (vectorizable_load): Likewise.
3744 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
3746 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
3747 strided groups, use the cost of N scalar accesses instead
3748 of ncopies vector accesses.
3749 (vect_model_load_cost): Likewise.
3751 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
3753 * tree-vect-stmts.c (vect_cost_group_size): Delete.
3754 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
3755 variable to indicate when once-per-group costs are being used.
3756 (vect_model_load_cost): Likewise. Fix comment and misindented code.
3758 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
3760 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
3761 peeling-for-gaps condition.
3763 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3765 * config/s390/s390.c (s390_expand_vec_init): Force initializer
3766 element to register if it doesn't match general_operand.
3768 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
3769 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3771 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
3773 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
3774 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
3775 (SIGNBIT): New mode iterator.
3776 (Fsignbit): New mode attribute.
3777 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
3778 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
3779 when direct moves are available.
3780 (signbit<mode>2_dm): New define_insn_and_split).
3781 (signbit<mode>2_dm2): New define_insn.
3783 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3785 PR rtl-optimization/71594
3786 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
3787 into subregs of appropriate mode before trying to emit a conditional
3790 2016-07-05 Jan Hubicka <jh@suse.cz>
3792 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
3793 (simple_iv): Use it.
3795 2016-07-05 Jan Hubicka <jh@suse.cz>
3797 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
3799 2016-07-05 Jiong Wang <jiong.wang@arm.com>
3801 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
3804 2016-07-05 Jan Hubicka <jh@suse.cz>
3806 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
3809 2016-07-05 Richard Biener <rguenther@suse.de>
3811 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
3812 Handle empty else block.
3813 (is_feasible_trace): Likewise.
3814 (split_paths): Likewise.
3816 2016-07-05 Richard Biener <rguenther@suse.de>
3818 * tree-loop-distribution.c (distribute_loop): Fix issue with
3819 the cost model loop.
3821 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
3823 * config/arm/neon-testgen.ml: Delete.
3824 * config/arm/neon.ml: Delete.
3826 2016-07-04 Jakub Jelinek <jakub@redhat.com>
3829 * tree.c (attribute_value_equal): Use get_attribute_name instead of
3830 directly using TREE_PURPOSE.
3832 2016-07-04 Jiong Wang <jiong.wang@arm.com>
3834 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
3835 * config/aarch64/aarch64_neon.h: Likewise.
3836 * config/aarch64/arm_neon.h: Likewise.
3837 * config/aarch64/atomics.md: Likewise.
3838 * config/aarch64/aarch64-simd-builtins.def: Likewise.
3839 * doc/invoke.texi: Likewise.
3841 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
3843 * config/s390/s390.md: Add "z13" cpu_facility.
3844 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
3845 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
3846 condition" type instructions.
3848 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
3849 Jeff Law <law@redhat.com>
3851 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
3852 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
3854 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
3856 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
3857 permutation for TARGET_AVX512F.
3858 (ix86_expand_vec_one_operand_perm_avx512): New function.
3859 (expand_vec_perm_1): Invoke introduced function.
3860 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
3861 it may be not valid after vectorization.
3863 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3866 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
3867 typo in comment. Only force to memory if it is a weak
3870 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
3871 Jiong Wang <jiong.wang@arm.com>
3873 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
3874 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
3875 (AARCH64_FL_F16): New.
3876 (AARCH64_FL_FOR_ARCH8_2): New.
3877 (AARCH64_ISA_8_2): New.
3878 (AARCH64_ISA_F16): New.
3879 (TARGET_FP_F16INST): New.
3880 (TARGET_SIMD_F16INST): New.
3881 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
3882 ("fp"): Disabling "fp" also disables "fp16".
3883 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
3884 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
3885 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
3886 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
3888 2016-07-04 Jan Beulich <jbeulich@suse.com>
3890 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
3892 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
3895 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
3896 the insns, use an insn form that does not adjust the offset on
3897 little endian systems.
3899 2016-07-01 Jan Beulich <jbeulich@suse.com>
3901 * varasm.c (get_variable_section): Validate initializer in
3902 named .bss-like sections.
3904 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
3906 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
3907 Exchange the order of the second and third operands in the vpermr
3908 instruction tmeplate.
3910 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
3913 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
3914 Disallow TDmode values.
3916 2016-07-01 Alan Modra <amodra@gmail.com>
3918 PR rtl-optimization/71709
3919 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
3920 being set, not referenced.
3922 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
3924 PR tree-optimization/70729
3925 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
3926 of loop since it can be not valid after transformation.
3928 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3930 * config/arm/arm.c (thumb_reload_in_hi): Delete.
3931 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
3933 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
3935 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
3938 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
3941 * config/rs6000/constraints.md (wY constraint): New constraint to
3942 match the requirements for the LXSD and STXSD instructions.
3943 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
3944 predicate to match the requirements for the LXSD and STXSD
3946 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
3947 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
3948 to make sure that the bottom 2 bits of offset are 0, the address
3949 form is offsettable, and no updating is done in the address mode.
3950 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
3951 (movdi_internal32): Likewise
3952 (movdi_internal64): Likewise.
3954 2016-06-30 Jakub Jelinek <jakub@redhat.com>
3956 PR tree-optimization/71707
3957 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
3958 strinfo even for ADDR_EXPR ptr.
3960 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
3962 * config/rs6000/altivec.md (darn_32): Change the condition to
3963 TARGET_P9_MISC instead of TARGET_MODULO.
3964 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
3965 condition expression.
3966 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
3967 condition expression.
3968 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
3969 (DFP_TEST): New code iterator.
3970 (dfptstsfi_<code>_mode>): New define_expand.
3971 (*dfp_sgnfcnc_<mode>): New define_insn.
3972 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
3973 definition next to BU_P9_MISC_1 definition and change the MASK
3974 value to RS6000_BTM_P9_MISC.
3975 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
3976 (BU_P9_64BIT_MISC_0): Likewise.
3977 (BU_P9_DFP_MISC_0): New macro definition.
3978 (BU_P9_DFP_MISC_1): New macro definition.
3979 (BU_P9_DFP_MISC_2): New macro definition.
3980 (BU_P9_DFP_OVERLOAD_1): New macro definition.
3981 (BU_P9_DFP_OVERLOAD_2): New macro definition.
3982 (BU_P9_DFP_OVERLOAD_3): New macro definition.
3983 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
3984 (TSTSFI_LT_TD): Likewise.
3985 (TSTSFI_EQ_DD): Likewise.
3986 (TSTSFI_EQ_TD): Likewise.
3987 (TSTSFI_GT_DD): Likewise.
3988 (TSTSFI_GT_TD): Likewise.
3989 (TSTSFI_OV_DD): Likewise.
3990 (TSTSFI_OV_TD): Likewise.
3991 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
3992 (TSTSFI_LT_DD): Likewise.
3993 (TSTSFI_LT_TD): Likewise.
3994 (TSTSFI_EQ): Likewise.
3995 (TSTSFI_EQ_DD): Likewise.
3996 (TSTSFI_EQ_TD): Likewise.
3997 (TSTSFI_GT): Likewise.
3998 (TSTSFI_GT_DD): Likewise.
3999 (TSTSFI_GT_TD): Likewise.
4000 (TSTSFI_OV): Likewise.
4001 (TSTSFI_OV_DD): Likewise.
4002 (TSTSFI_OV_TD): Likewise.
4003 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4004 overloaded test significance functions.
4005 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
4006 OPTION_MASK_P9_MISC into the representation of this mask.
4007 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
4009 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
4010 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
4012 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
4013 argument is a 6-bit unsigned literal value if the icode argument
4014 represents a DFP test significance built-in call.
4015 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
4016 flag used independently and in combination with the
4017 RS6000_BTM_64BIT flag.
4018 (rs6000_opt_masks): Add entry for power9-misc command-line option.
4019 (rs6000_builtin_mask_names): Add entry for power9-misc
4020 command-line option.
4021 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
4022 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
4023 RS6000_BTM_P9_MISC macros.
4024 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
4025 option and change the description of the -mpower9-vector option to
4026 enable only vector instructions, removing its erroneously claimed
4027 support for scalar instructions.
4028 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4029 the ISA 3.0 digital floating point test significance built-in
4032 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
4034 * config/aarch64/aarch64.c (cortexa35_tunings):
4035 Enable AES fusion. Use cortexa57_branch_cost.
4036 (cortexa53_tunings): Use cortexa57_branch_cost.
4037 (cortexa72_tunings): Use cortexa57_branch_cost.
4038 Use AUTOPREFETCHER_WEAK.
4039 (cortexa73_tunings): Use cortexa57_branch_cost.
4041 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4042 James Greenhalgh <james.greenhalgh@arm.com>
4044 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
4045 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
4046 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
4047 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
4048 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
4049 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
4050 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
4051 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
4052 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
4053 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
4054 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
4055 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
4056 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
4059 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
4060 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4062 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
4064 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
4066 2016-06-30 David Malcolm <dmalcolm@redhat.com>
4069 * gcc.c (driver::build_option_suggestions): Pass "option" to
4070 add_misspelling_candidates.
4071 * opts-common.c (add_misspelling_candidates): Add "option" param;
4072 use it to avoid adding negated forms for options marked with
4074 * opts.h (add_misspelling_candidates): Add "option" param.
4076 2016-06-30 Jakub Jelinek <jakub@redhat.com>
4079 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
4080 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
4081 first when permuting bitwise operation with rotate. Cast
4082 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
4084 2016-06-29 David Malcolm <dmalcolm@redhat.com>
4086 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
4087 for misspelled param names.
4088 * params.c: Include spellcheck.h.
4089 (find_param_fuzzy): New function.
4090 * params.h (find_param_fuzzy): New prototype.
4091 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
4092 * spellcheck.h (struct edit_distance_traits<const char *>):
4095 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
4097 * config/rs6000/predicates.md (const_0_to_7_operand): New
4098 predicate, recognize 0..7.
4099 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4100 support for doing extracts from V16QImode, V8HImode, V4SImode
4102 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
4103 vector extract support.
4104 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
4105 for ISA 3.0 vector extract.
4106 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
4107 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
4108 extracts of a constant element number from small integer vectors
4109 on 64-bit ISA 3.0 systems.
4110 (vsx_extract_<mode>_di): Likewise.
4111 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
4112 say when we can do ISA 3.0 vector extracts.
4113 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
4114 registers, using the stxsiwx instruction.
4116 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
4118 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
4119 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
4120 qdf24xx_regmove_cost, qdf24xx_tunings): New.
4121 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
4122 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
4123 * config/arm/arm.c (arm_qdf24xx_tune): New.
4125 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
4127 * config/aarch64/aarch64.c (cortexa53_tunings):
4128 Increase loop alignment to 8. Set function alignment to 16.
4129 (cortexa35_tunings): Likewise.
4130 (cortexa57_tunings): Increase loop alignment to 8.
4131 (cortexa72_tunings): Likewise.
4132 (cortexa73_tunings): Likewise.
4134 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
4136 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
4137 for arm_fp16_ok and arm_fp16_hw.
4138 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
4139 arm_fp16_alternative.
4141 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
4143 PR tree-optimization/71655
4144 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
4145 types when swapping operands.
4147 2016-06-29 Martin Liska <mliska@suse.cz>
4150 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
4151 * ipa-inline-transform.c (inline_call): Remove unnecessary call
4152 of build_optimization_node.
4154 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
4156 PR tree-optimization/70729
4157 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
4158 independent in loops having positive safelen value.
4159 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
4160 it may be not valid after vectorization.
4162 2016-06-29 Jakub Jelinek <jakub@redhat.com>
4164 PR tree-optimization/71625
4165 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
4166 is sorted by ascending list->offset. If PTR is non-NULL and there is
4167 previous strinfo, call get_stridx_plus_constant.
4168 (get_stridx): Pass exp as second argument to get_addr_stridx.
4169 (addr_stridxptr): Add missing list = list->next, so that there can be
4170 more than one entries in the list. Bump limit from 16 to 32. Ensure
4171 the list is sorted by ascending list->offset.
4172 (get_stridx_plus_constant): Adjust so that it can be also called with
4173 ADDR_EXPR instead of SSA_NAME as PTR.
4174 (handle_char_store): Pass NULL_TREE as second argument to
4177 2016-06-29 Richard Biener <rguenther@suse.de>
4179 PR rtl-optimization/68961
4180 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
4182 2016-06-29 Richard Biener <rguenther@suse.de>
4185 * alias.c (component_uses_parent_alias_set_from): Handle
4186 type punning through union accesses by using the union alias set.
4187 * gimple.c (gimple_get_alias_set): Remove union type punning case.
4189 2016-07-29 Richard Biener <rguenther@suse.de>
4191 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
4192 precision not matching mode precision.
4194 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
4196 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
4197 pa_output_arg_descriptor.
4198 (call_val_symref_64bit_post_reload): Likewise.
4199 (call_val_powf_64bit_post_reload): Likewise.
4200 (sibcall_internal_symref_64bit): Likewise.
4201 (sibcall_value_internal_symref_64bit): Likewise.
4203 2016-06-28 Jakub Jelinek <jakub@redhat.com>
4206 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
4207 a constant, force its SUBREG_REG into memory or register instead
4210 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4213 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
4214 * doc/invoke.texi (AVR Options): Document it.
4216 2016-06-28 Walter Lee <walt@tilera.com>
4218 * config/tilegx/linux.h: Do not include arch/icache.h
4219 (CLEAR_INSN_CACHE): Provide inlined definition directly.
4220 * config/tilepro/linux.h: Do not include arch/icache.h
4221 (CLEAR_INSN_CACHE): Provide inlined definition directly.
4223 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
4225 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
4226 for big-endian BIT_FIELD_REF.
4228 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
4230 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
4231 ('size' attribute): Add '128'.
4233 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
4234 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
4235 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
4236 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
4237 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
4238 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
4239 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
4240 *trunc<mode>df2_odd): Set size attribute to '128'.
4241 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
4242 * config/rs6000/power6.md (power6-fp): Include dfp type.
4243 * config/rs6000/power7.md (power7-fp): Likewise.
4244 * config/rs6000/power8.md (power8-fp): Likewise.
4245 * config/rs6000/power9.md: New file.
4246 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
4247 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
4248 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
4250 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
4251 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
4252 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
4253 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
4254 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
4255 dfp_dscri_<mode>): Change type attribute to dfp.
4256 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
4257 attribute to vecsimple.
4258 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
4259 and prefetch streams.
4260 (rs6000_option_override_internal): Remove temporary code setting
4261 tuning to power8. Don't set rs6000_sched_groups for power9.
4262 (last_scheduled_insn): Change to rtx_insn *.
4263 (divide_cnt, vec_load_pendulum): New variables.
4264 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
4265 (rs6000_issue_rate): Set issue rate for Power9.
4266 (is_power9_pairable_vec_type): New.
4267 (power9_sched_reorder2): New.
4268 (rs6000_sched_reorder2): Call new function for Power9 specific
4270 (insn_must_be_first_in_group): Remove Power9.
4271 (insn_must_be_last_in_group): Likewise.
4272 (force_new_group): Likewise.
4273 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
4274 Initialize divide_cnt/vec_load_pendulum.
4275 (_rs6000_sched_context, rs6000_init_sched_context,
4276 rs6000_set_sched_context): Handle context save/restore of new
4279 2016-06-28 Richard Biener <rguenther@suse.de>
4281 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
4282 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
4283 COMPONENT_REF operand.
4284 (nonoverlapping_component_refs_p): Likewise.
4285 * stor-layout.c (start_bitfield_representative): Mark
4286 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
4288 2016-06-28 Jakub Jelinek <jakub@redhat.com>
4290 * Makefile.in: Don't cat ../stage_current if it does not exist.
4292 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
4293 last argument is a bit-field.
4295 PR rtl-optimization/71673
4296 * internal-fn.c (expand_arith_overflow_result_store): Use
4297 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
4298 expand_simple_binop.
4301 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
4302 expand_ifn_atomic_compare_exchange): New functions.
4303 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
4304 * tree.h (build_call_expr_internal_loc): Rename to ...
4305 (build_call_expr_internal_loc_array): ... this. Fix up type of
4307 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
4308 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
4309 ATOMIC_COMPARE_EXCHANGE result.
4310 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
4311 * gimple-fold.h (optimize_atomic_compare_exchange_p,
4312 fold_builtin_atomic_compare_exchange): New prototypes.
4313 * gimple-fold.c (optimize_atomic_compare_exchange_p,
4314 fold_builtin_atomic_compare_exchange): New functions..
4315 * tree-ssa.c (execute_update_addresses_taken): If
4316 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
4317 of call when finding addressable vars, and if such var becomes
4318 non-addressable, call fold_builtin_atomic_compare_exchange.
4320 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
4323 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
4324 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
4326 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
4328 * config/rs6000/rs6000.md ('type' attribute): Add
4329 veclogical,veccmpfx,vecexts,vecmove insn types.
4330 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
4331 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
4332 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
4333 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
4334 *nabs<mode>2_hw): Change type to vecmove.
4335 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
4336 *boolcc<mode>3_internal, *eqv<mode>3_internal,
4337 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
4338 *ieee_128bit_vsx_abs<mode>2_internal,
4339 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
4340 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
4341 *ieee128_mtvsrd_32bit): Change type to veclogical.
4342 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
4343 *movdi_internal32, *movdi_internal64): Update insn types.
4344 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
4345 vsx_extract_<mode>): Change type to veclogical.
4346 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
4347 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
4348 *vsx_sign_extend_si_v2di): Change type to vecexts.
4349 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
4351 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
4352 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
4353 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
4354 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
4355 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
4356 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
4357 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
4358 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
4359 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
4360 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
4361 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
4362 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
4363 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
4364 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
4365 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
4366 (ppc7450-vecsimple): Add veclogical, vecmove.
4367 (ppc7450-veccmp): Add veccmpfx.
4368 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
4370 (ppc8540_vector_compare): Add veccmpfx.
4371 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
4372 * config/rs6000/cell.md (cell-fp): Add fpsimple.
4373 (cell-vecsimple): Add veclogical, vecmove.
4374 (cell-veccmp): Add veccmpfx.
4375 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
4376 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
4378 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
4379 * config/rs6000/power4.md (power4-fp): Add fpsimple.
4380 (power4-vecsimple): Add veclogical, vecmove.
4381 (power4-veccmp): Add veccmpfx.
4382 * config/rs6000/power5.md (power5-fp): Add fpsimple.
4383 * config/rs6000/power6.md (power6-fp): Add fpsimple.
4384 (power6-vecsimple): Add veclogical, vecmove.
4385 (power6-veccmp): Add veccmpfx.
4386 * config/rs6000/power7.md (power7-fp): Add fpsimple.
4387 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
4388 * config/rs6000/power8.md (power8-fp): Add fpsimple.
4389 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
4390 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
4391 * config/rs6000/titan.md (titan_fp): Add fpsimple.
4392 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
4394 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
4396 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
4399 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
4400 OPTION_MASK_P9_DFORM_VECTOR.
4401 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
4402 disable -mpower9-dform-vector when using reload.
4403 (quad_address_p): Remove 'gpr_p' argument and all associated code.
4404 New 'strict' argument. Update all callers. Add strict addressing
4406 (rs6000_legitimate_offset_address_p): Remove call to
4407 virtual_stack_registers_memory_p.
4408 (rs6000_legitimize_reload_address): Add quad address support.
4409 (rs6000_legitimate_address_p): Move call to quad_address_p above
4410 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
4411 to account for new strict usage.
4412 (rs6000_output_move_128bit): Adjust quad_address_p args to account
4413 for new strict usage.
4414 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
4416 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
4423 * config/i386/i386.c (ix86_spill_class): Disable condition to
4424 always return NO_REGS.
4426 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
4428 * predict.c: Include gimple-pretty-print.h
4429 (predicted_by_loop_heuristics_p): Check also
4430 PRED_LOOP_EXIT_WITH_RECURSION
4431 (predict_loops): Find self recursive calls and use special purpose
4432 predictors for them; dump log about decisions.
4433 (pass_profile::execute): Dump info about #of iterations.
4434 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
4435 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
4437 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
4439 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
4440 output_asm_insn calls and shorten long lines. Output .CALL
4441 argument descriptor using pa_output_arg_descriptor. Add various
4442 inline $$dyncall and other optimizations.
4443 (pa_attr_length_indirect_call): Adjust ordering and lengths.
4445 2016-06-25 Jakub Jelinek <jakub@redhat.com>
4447 PR tree-optimization/71643
4448 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
4451 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
4452 leak a bitmap if dep_bb is NULL.
4454 PR tree-optimization/71631
4455 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
4456 to rewrite_expr_tree even if negate_result, move new_lhs var
4457 declaration and initialization earlier, for powi_result set afterwards
4458 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
4459 if new_lhs != lhs, and don't shadow gsi var.
4461 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
4463 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
4464 Add in_loop parameter.
4465 (predict_loops): Add loop guard heuristics.
4466 * predict.def (PRED_LOOP_GUARD): New heuristics.
4468 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
4470 * predict.c: Include ipa-utils.h
4471 (tree_bb_level_prediction): Predict recursive calls.
4472 (tree_estimate_probability_bb): Skip inexpensive calls for call
4474 * predict.def (PRED_RECURSIVE_CALL): New.
4476 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4478 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
4479 (BU_FLOAT128_1): Likewise.
4481 (COPYSIGNQ): Likewise.
4482 (RS6000_BUILTIN_NANQ): Likewise.
4483 (RS6000_BUILTIN_NANSQ): Likewise.
4484 (RS6000_BUILTIN_INFQ): Likewise.
4485 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
4486 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
4487 (TARGET_FOLD_BUILTIN): New #define.
4488 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
4489 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
4490 (rs6000_fold_builtin): New target hook implementation, handling
4491 folding of 128-bit NaNs and infinities.
4492 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
4493 entries are filled in to avoid problems during bootstrap
4494 self-test; define builtins for 128-bit NaNs and infinities.
4495 (rs6000_opt_mask): Add entry for float128.
4496 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
4497 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
4498 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
4499 (const_str_type_node): New #define.
4500 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
4501 to a define_expand that dispatches to either copysign<mode>3_soft
4502 or copysign<mode>3_hard.
4503 (copysign<mode>3_hard): Rename from copysign<mode>3.
4504 (copysign<mode>3_soft): New define_insn.
4505 * doc/extend.texi: Document new builtins.
4507 2016-06-24 Jakub Jelinek <jakub@redhat.com>
4509 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
4510 PRIu64 instead of lu.
4512 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
4515 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
4518 2016-06-24 Jakub Jelinek <jakub@redhat.com>
4520 PR tree-optimization/71647
4521 * omp-low.c (lower_rec_input_clauses): Convert
4522 omp_clause_aligned_alignment (c) to size_type_node for the
4523 last argument of __builtin_assume_aligned.
4525 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
4527 * configure.ac (calling ___tls_get_addr via GOT): New
4528 assembler/linker check.
4529 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
4530 assembler and linker supports calling ___tls_get_addr via GOT.
4531 Otherise, defined to 0.
4532 * config.in: Regenerated.
4533 * configure: Likewise.
4534 * config/i386/constraints.md (Yb): New constraint.
4535 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
4536 (REG_CLASS_NAMES): Likewise.
4537 (REG_CLASS_CONTENTS): Likewise.
4538 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
4539 the b constraint with the Yb constraint. Call ___tls_get_addr
4540 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
4542 (*tls_local_dynamic_base_32_gnu): Likewise.
4543 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
4544 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
4545 (*tls_local_dynamic_base_64_<mode>): Likewise.
4547 2016-06-24 Martin Liska <mliska@suse.cz>
4549 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
4550 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
4552 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
4553 argument to true if the expected number of iterations is
4556 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
4558 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
4559 assemble for 32bit target.
4560 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
4561 and $ld_ix86_gld_32_opt to link for 32bit target.
4562 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
4563 * configure: Regenerate.
4565 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4567 * config/arm/arm.c (int_log2): Delete definition and prototype.
4568 (shift_op): Use exact_log2 instead of int_log2.
4569 (vfp3_const_double_for_fract_bits): Likewise.
4571 2016-06-24 Jakub Jelinek <jakub@redhat.com>
4573 * internal-fn.c (expand_arith_set_overflow): New function.
4574 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
4576 (expand_arith_overflow_result_store): Likewise. Handle precision
4577 smaller than mode precision.
4578 * tree-vrp.c (extract_range_basic): For imag part, handle
4579 properly signed 1-bit precision result.
4580 * doc/extend.texi (__builtin_add_overflow): Document that last
4581 argument can't be pointer to enumerated or boolean type.
4582 (__builtin_add_overflow_p): Document that last argument can't
4583 have enumerated or boolean type.
4585 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
4586 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4588 * config/rs6000/predicates.md (splat_input_operand): Rework.
4589 Don't allow constants, since the insns that use this predicate
4590 don't support constants. Constants are handled by other insns
4591 that are created via combine. During and after register
4592 allocation, only allow indexed or indirect addresses, and not
4593 general addresses. Only allow modes supported by the hardware.
4594 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
4595 comment. Move check for using VSPLTIS<x> to a common location,
4596 instead of doing it in two different places.
4598 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
4600 * config/i386/driver-i386.c (host_detect_local_cpu): Set
4601 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
4602 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
4603 signature_CENTAUR_ebx.
4605 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
4609 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
4610 (as_ix86_gas_32_opt): This.
4611 (ld_ix86_tls_ldm_opt): Renamed to ...
4612 (ld_ix86_gld_32_opt): This.
4613 (R_386_TLS_LDM reloc): Updated.
4614 (R_386_GOT32X reloc): New assembler/linker check.
4615 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
4616 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
4618 * config.in: Regenerated.
4619 * configure: Likewise.
4620 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
4621 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
4622 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
4623 if ix86_force_load_from_GOT_p returns true.
4624 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
4625 ix86_force_load_from_GOT_p returns true.
4626 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
4627 the external function address via the GOT slot.
4628 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
4629 HAVE_AS_IX86_GOT32X before returning false.
4630 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
4631 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
4633 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
4635 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
4637 2016-06-23 Andi Kleen <ak@linux.intel.com>
4639 * Makefile.in: Regenerate.
4640 * doc/install.texi: Document autoprofiledbootstrap.
4642 2016-06-23 Andi Kleen <ak@linux.intel.com>
4644 * config/i386/gcc-auto-profile: New file.
4646 2016-06-23 Martin Liska <mliska@suse.cz>
4649 * predict.c (predict_loops): Revert the hunk that was removed
4652 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
4654 * config.gcc: Add support for arm*-*-phoenix* targets.
4655 * config/arm/t-phoenix: New.
4656 * config/phoenix.h: New.
4658 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
4659 H.J. Lu <hongjiu.lu@intel.com>
4662 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
4663 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
4664 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
4665 ix86_force_load_from_GOT_p returns true.
4666 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
4667 ix86_force_load_from_GOT_p returns true.
4668 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
4669 ix86_force_load_from_GOT_p returns true.
4670 (ix86_expand_move): Load the external function address via the
4671 GOT slot if ix86_force_load_from_GOT_p returns true.
4672 * config/i386/predicates.md (x86_64_immediate_operand): Return
4673 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
4674 (x86_64_zext_immediate_operand): Ditto.
4676 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
4678 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
4680 2016-06-22 David Malcolm <dmalcolm@redhat.com>
4683 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
4684 * diagnostic.c (pedwarn_at_rich_loc): New function.
4685 * spellcheck.h (best_match::best_match): Add a
4686 "best_distance_so_far" optional parameter.
4687 (best_match::set_best_so_far): New method.
4688 (best_match::get_best_distance): New accessor.
4689 (best_match::get_best_candidate_length): New accessor.
4691 2016-06-22 Nick Clifton <nickc@redhat.com>
4693 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
4694 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
4695 modes are accepted as well.
4696 (ucompare_loc_descriptor): Likewise.
4697 (minmax_loc_descriptor): Likewise.
4698 (clz_loc_descriptor): Likewise.
4699 (popcount_loc_descriptor): Likewise.
4700 (bswap_loc_descriptor): Likewise.
4701 (rotate_loc_descriptor): Likewise.
4702 (mem_loc_descriptor): Likewise.
4703 (loc_descriptor): Likewise.
4705 2016-06-22 David Malcolm <dmalcolm@redhat.com>
4707 * common.opt (fdiagnostics-parseable-fixits): New option.
4708 * diagnostic.c: Include "selftest.h".
4709 (print_escaped_string): New function.
4710 (print_parseable_fixits): New function.
4711 (diagnostic_report_diagnostic): Call print_parseable_fixits.
4712 (selftest::assert_print_escaped_string): New function.
4713 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
4714 (selftest::test_print_escaped_string): New function.
4715 (selftest::test_print_parseable_fixits_none): New function.
4716 (selftest::test_print_parseable_fixits_insert): New function.
4717 (selftest::test_print_parseable_fixits_remove): New function.
4718 (selftest::test_print_parseable_fixits_replace): New function.
4719 (selftest::diagnostic_c_tests): New function.
4720 * diagnostic.h (struct diagnostic_context): Add field
4721 "parseable_fixits_p".
4722 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
4723 -fdiagnostics-parseable-fixits.
4724 (-fdiagnostics-parseable-fixits): New option.
4725 * opts.c (common_handle_option): Handle
4726 -fdiagnostics-parseable-fixits.
4727 * selftest-run-tests.c (selftest::run_tests): Call
4728 selftest::diagnostic_c_tests.
4729 * selftest.h (selftest::diagnostic_c_tests): New prototype.
4731 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
4733 PR tree-optimization/71488
4734 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
4735 comparison of boolean vectors.
4736 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
4737 of boolean vectors using bitwise operations.
4739 2016-06-22 Andreas Schwab <schwab@suse.de>
4741 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
4744 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
4746 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
4748 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
4750 * config/i386/i386.c (print_reg): Emit an error message on attempt to
4753 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4755 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
4756 * config/arm/arm-cores.def (cortex-a73): New entry.
4757 (cortex-a73.cortex-a35): Likewise.
4758 (cortex-a73.cortex-a53): Likewise.
4759 * config/arm/arm-tables.opt: Regenerate.
4760 * config/arm/arm-tune.md: Likewise.
4761 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
4762 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
4763 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
4764 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
4765 * doc/invoke.texi (ARM Options): Document cortex-a73,
4766 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
4768 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4770 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
4771 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
4772 (cortex-a73.cortex-a35): Likewise.
4773 (cortex-a73.cortex-a53): Likewise.
4774 * config/aarch64/aarch64-tune.md: Regenerate.
4775 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
4776 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
4779 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4781 * configure.ac (gcc_cv_as_compress_debug): Remove
4782 --compress-debug-sections as extra as switch.
4783 Handle gas --compress-debug-sections=type.
4784 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
4785 Handle gld --compress-debug-sections=type.
4786 * configure: Regenerate.
4788 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
4790 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
4792 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
4794 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
4795 (do_rewrite): likewise.
4797 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4799 * common/config/mep/mep-common.c: Remove.
4800 * config.gcc: Remove mep-* support.
4801 * config/mep/constraints.md: Remove.
4802 * config/mep/default.h: Remove.
4803 * config/mep/intrinsics.h: Remove.
4804 * config/mep/intrinsics.md: Remove.
4805 * config/mep/ivc2-template.h: Remove.
4806 * config/mep/mep-c5.cpu: Remove.
4807 * config/mep/mep-core.cpu: Remove.
4808 * config/mep/mep-default.cpu: Remove.
4809 * config/mep/mep-ext-cop.cpu: Remove.
4810 * config/mep/mep-intrin.h: Remove.
4811 * config/mep/mep-ivc2.cpu: Remove.
4812 * config/mep/mep-pragma.c: Remove.
4813 * config/mep/mep-protos.h: Remove.
4814 * config/mep/mep.c: Remove.
4815 * config/mep/mep.cpu: Remove.
4816 * config/mep/mep.h: Remove.
4817 * config/mep/mep.md: Remove.
4818 * config/mep/mep.opt: Remove.
4819 * config/mep/predicates.md: Remove.
4820 * config/mep/t-mep: Remove.
4821 * doc/install.texi: Remove mep-* documentation.
4822 * doc/md.texi: Likewise.
4824 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4826 * config.gcc: Remove support for avr-rtems.
4827 * config/avr/gen-avr-mmcu-specs.c: Likewise.
4828 * config/avr/rtems.h: Remove.
4829 * config/avr/t-rtems: Remove.
4831 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4833 * config.gcc: Remove m32r-rtems support.
4834 * config/m32r/rtems.h: Remove.
4836 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4838 * config.gcc: Remove h8300-rtems support.
4839 * config/h8300/rtems.h: Remove.
4840 * config/h8300/t-rtems: Remove.
4842 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4844 * config.gcc: Remove support for knetbsd.
4845 * configure.ac: Likewise.
4846 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
4847 * config/knetbsd-gnu.h: Remove.
4848 * configure: Regenerate.
4850 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4852 * config.gcc: Remove support for openbsd 2 and 3.
4853 * config/openbsd-oldgas.h: Remove.
4855 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4857 * config.gcc: Remove interix support.
4858 * config/i386/i386-interix.h: Remove.
4859 * config/i386/interix.opt: Remove.
4860 * config/i386/t-interix: Remove.
4861 * configure: Regenerate.
4862 * configure.ac: Remove interix support.
4863 * doc/install.texi: Remove interix documentation.
4865 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
4867 * config/rs6000/rs6000.h: Add conditional preprocessing directives
4868 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
4871 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
4873 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
4874 they are both PLACEHOLDER_EXPRs.
4876 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4878 * stor-layout.c (layout_type): Move setting complex MODE to
4879 layout_type, instead of setting it ahead of time by the caller.
4880 * tree.c (build_complex_type): Likewise.
4882 2016-06-21 Martin Liska <mliska@suse.cz>
4884 * predict.c (force_edge_cold): Replace imposisble with
4887 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
4889 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
4890 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
4892 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
4894 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
4896 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
4897 Ilya Enkovich <ilya.enkovich@intel.com>
4900 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
4901 New member function to convert V1TImode register to SUBREG
4902 TImode in debug insn.
4903 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
4904 after changing register mode to V1TImode.
4906 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
4908 * config/aarch64/aarch64-cores.def (vulcan): New core.
4909 * config/aarch64/aarch64-tune.md: Regenerate.
4910 * doc/invoke.texi: Document vulcan as an available option.
4912 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
4914 * cse.c (canon_asm_operands): New function extracted from...
4915 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
4916 either standalone or member of a PARALLEL.
4918 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
4921 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
4922 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
4923 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
4925 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
4928 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
4929 constant addresses if can_create_pseudo_p.
4931 2016-06-21 Jakub Jelinek <jakub@redhat.com>
4933 PR tree-optimization/71588
4934 * tree-ssa-strlen.c (valid_builtin_call): New function.
4935 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
4938 2016-06-20 Jakub Jelinek <jakub@redhat.com>
4941 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
4942 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
4943 for conversion of scalar user var to complex type and use the
4944 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
4947 PR rtl-optimization/71591
4948 * toplev.c (toplev::run_self_tests): If no_backend, complain and
4949 don't run any tests.
4951 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
4954 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
4955 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
4956 space for PIC with non-v32 and the common non-PIC "jump".
4958 2016-06-20 Jakub Jelinek <jakub@redhat.com>
4961 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
4962 returned values and add UN*/LTGT/*ORDERED cases with values matching
4963 D operand modifier on vcmp for AVX.
4965 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
4967 * config/aarch64/aarch64.opt
4968 (mpc-relative-literal-loads): Rename internal option name.
4969 * config/aarch64/aarch64.c
4970 (aarch64_nopcrelative_literal_loads): Rename to
4971 aarch64_pcrelative_literal_loads.
4972 (aarch64_expand_mov_immediate): Likewise.
4973 (aarch64_secondary_reload): Likewise.
4974 (aarch64_can_use_per_function_literal_pools_p): Likewise.
4975 (aarch64_override_options_after_change_1): Rename and simplify logic.
4976 (aarch64_classify_symbol): Merge large model checks into switch,
4977 remove pc-relative load check.
4979 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
4981 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
4982 costs relative to the cost of a register move.
4984 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
4986 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
4987 (vcvt_n_f64_u64): Likewise.
4988 (vcvt_n_s64_f64): Likewise.
4989 (vcvt_n_u64_f64): Likewise.
4990 (vcvt_f64_s64): Likewise.
4991 (vrecpe_f64): Likewise.
4992 (vcvt_f64_u64): Likewise.
4993 (vrecps_f64): Likewise.
4995 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
4997 * config/aarch64/aarch64.md
4998 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
5000 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
5002 * config/aarch64/aarch64-builtins.c
5003 (aarch64_types_binop_uss_qualifiers): Delete.
5004 (TYPES_BINOP_USS): Likewise.
5005 (aarch64_types_binop_sus_qualifiers): Likewise.
5006 (TYPES_BINOP_SUS): Likewise.
5007 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
5008 (TYPES_FCVTIMM_SUS): Likewise.
5009 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
5011 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
5012 (fcvtzs): Use SHIFTIMM rather than BINOP.
5013 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
5015 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
5017 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
5018 costs relative to the cost of a register move.
5020 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
5022 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
5023 Allow scalar/single vector modes to be tieable.
5025 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
5027 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
5029 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5031 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
5033 * tree.h (TYPE_ALIGN): Likewise.
5035 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
5038 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
5040 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
5042 * config/avr/avr.c (avr_print_operand): Fix "format not a string
5043 literal" build warnings.
5044 (avr_print_operand_address): Dito.
5046 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
5049 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
5050 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
5052 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
5054 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
5056 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
5059 * reload1.c (reload): Pass 0 to finish_spills when called because
5060 update_eliminables_and_spill returns true and remove did_spill.
5061 (finish_spills): Adjust comment and document GLOBAL parameter.
5063 2016-06-17 DJ Delorie <dj@redhat.com>
5066 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
5067 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
5068 (umulqihi3_virt): Likewise.
5069 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
5070 (umulqihi3_real): Likewise.
5072 2016-06-17 Martin Liska <mliska@suse.cz>
5074 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
5076 2016-06-17 Martin Liska <mliska@suse.cz>
5078 * predict.def: PRED_LOOP_EXIT from 92 to 85.
5080 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
5082 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
5084 (vaddq_f32): Likewise.
5085 (vmul_f32): Likewise.
5086 (vmulq_f32): Likewise.
5087 (vsub_f32): Likewise.
5088 (vsubq_f32): Likewise.
5090 2016-06-17 Bin Cheng <bin.cheng@arm.com>
5092 PR tree-optimization/71347
5093 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
5094 cost for all uses in group.
5096 2016-06-17 Bin Cheng <bin.cheng@arm.com>
5098 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
5099 insert gimple seq if it's not empty.
5101 2016-06-17 Bin Cheng <bin.cheng@arm.com>
5103 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
5105 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
5107 (comp_dr_with_seg_len_pair): Ditto.
5108 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
5109 struct dr_with_seg_len_pair against DR_OFFSET.
5110 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
5113 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
5115 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
5117 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
5119 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
5120 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
5121 (pa_output_millicode_call): Likewise.
5122 (pa_output_call): Likewise.
5123 (pa_output_indirect_call): Likewise.
5124 (pa_asm_output_mi_thunk): Likewise.
5126 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5128 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
5130 2016-06-16 Martin Liska <mliska@suse.cz>
5132 * predict.c (combine_predictions_for_insn): When we find a first
5133 match predictor, we should consider just predictors with
5134 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
5135 DS theory predictor.
5136 (combine_predictions_for_bb): Likewise.
5138 2016-06-16 Jakub Jelinek <jakub@redhat.com>
5140 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
5141 with base of reference to struct.
5143 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
5145 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
5147 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5150 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
5151 progmem_swtable_section.
5152 (progmem_swtable_section): Remove.
5153 (avr_asm_function_rodata_section): Remove.
5154 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
5155 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
5157 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
5159 * config/i386/driver-i386.c (host_detect_local_cpu): Set
5160 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
5161 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
5162 signature_CENTAUR_ebx.
5163 * config/i386/i386.c (ix86_option_override_internal): Add
5164 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
5165 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
5166 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
5168 2016-06-16 Martin Liska <mliska@suse.cz>
5170 * predict.def: Add fortran loop preheader predictor.
5171 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
5172 fold IFN_BUILTIN_EXPECT with a known constant argument.
5174 2016-06-16 Martin Liska <mliska@suse.cz>
5176 * predict.def: Add 'Fortran' to display text of all
5177 PRED_FORTRAN_* predictors.
5179 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
5182 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
5183 [IA64_BUILTIN_NANSQ]: Ditto.
5184 (ia64_fold_builtin): New function.
5185 (TARGET_FOLD_BUILTIN): New define.
5186 (ia64_init_builtins) Declare const_string_type node.
5187 Add __builtin_nanq and __builtin_nansq builtin functions.
5188 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
5190 2016-06-16 Nick Clifton <nickc@redhat.com>
5192 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
5193 MSP430_HWMULT_ prefix to enum values.
5194 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
5195 * config/msp430/msp430.c: Update use of enum values.
5196 * config/msp430/msp430.md: Likewise.
5197 * config/msp430/msp430.opt: Likewise.
5199 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
5201 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
5202 of comparsions in the last iteration.
5204 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
5205 Joern Rennecke <joern.rennecke@embecosm.com>
5207 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
5209 (arc_needs_pcl_p): Add GOTOFFPC.
5210 (arc_legitimate_pic_addr_p): Likewise.
5211 (arc_output_pic_addr_const): Likewise.
5212 (arc_legitimize_pic_address): Generate a pc-relative address using
5214 (arc_output_libcall): Use @pcl syntax.
5215 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
5216 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
5217 (*movsi_insn): Use @pcl syntax.
5218 (doloop_begin_i): Likewise.
5220 2016-06-16 Martin Liska <mliska@suse.cz>
5222 * predict.def: Define a new predictor.
5224 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
5226 * config/arc/arc.opt (mtp-regno): Update text.
5228 2016-06-16 Renlin Li <renlin.li@arm.com>
5230 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
5232 2016-06-16 Jakub Jelinek <jakub@redhat.com>
5235 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
5236 (setcc + and peephole2): Likewise.
5238 PR rtl-optimization/71532
5239 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
5242 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
5244 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
5245 DImode constants with XXSPLTIB in vector registers.
5246 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
5247 vsx_extract_<mode>_internal{1,2} into a single insn that handles
5248 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
5249 extraction of the element at the top of the register as a scalar
5251 (vsx_extract_<mode>_internal1): Likewise.
5252 (vsx_extract_<mode>_internal2): Likewise.
5253 * config/rs6000/constraints.md (wi constraint): Remove a comment
5254 about DImode not being allowed in Altivec registers.
5255 (wB constraint): New constraint for constants that can be
5256 generated in Altivec registers with VSPLTISW/VUPKHSW.
5257 * config/rs6000/predicates.md (xxspltib_constant_split): Update
5259 (xxspltib_constant_nosplit): Likewise.
5260 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
5261 support for -mupper-regs-di to enable DImode to go into Altivec
5263 (POWERPC_MASKS): Likewise.
5264 (power7 cpu): Likewise.
5265 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
5266 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
5267 for DImode being allowed in Altivec registers. Update wi/wj
5268 constraints. Set scalar_in_vmx_p flag.
5269 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
5270 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
5271 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
5272 (rs6000_opt_masks): Add -mupper-regs-di.
5273 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
5274 direct move to use wi and not wj.
5276 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
5278 (floatunssi<mode>2_lfiwzx_mem): Likewise.
5279 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
5280 any VSX register, instead of just Altivec registers, to allow
5281 either operand to be an Altivec register or both.
5282 (fixuns_trunc<mode>di2_fctiduz): Likewise.
5283 (movdi_internal32): Add support for -mupper-regs-di. Add support
5284 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
5285 the alternatives and attributes to be lined up to be easier to
5287 (movdi_internal64): Likewise.
5288 (64-bit DImode splitters): Change predicates to only split loading
5289 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
5290 load constants in ISA 3.0 or ISA 2.07 respectively.
5291 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5292 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
5293 mention -mcpu=power9 sets these options.
5294 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
5297 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
5300 * config/avr/avr.c (avr_set_current_function): Warn misspelled
5301 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
5302 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
5303 by default to warn misspelled interrupt/ signal handler.
5304 * doc/invoke.texi (AVR Options): Document it. Update description
5305 for -nodevicelib option.
5307 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5309 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
5310 up parentheses. Use GET_MODE_UNIT_BITSIZE.
5311 (aarch64_<sur>shll2_n<mode>): Likewise.
5313 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
5316 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
5317 DECL_CONTEXT for copied arguments.
5319 2016-06-15 Alan Hayward <alan.hayward@arm.com>
5321 PR tree-optimization/71483
5322 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
5325 2016-06-15 Martin Liska <mliska@suse.cz>
5327 * predict.c (tree_predict_by_opcode): Call predict_edge_def
5328 instead of predict_edge w/o a probability.
5330 2016-06-15 Alan Hayward <alan.hayward@arm.com>
5332 PR tree-optimization/71439
5333 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
5336 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5338 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
5339 register subregs in SET_SRC.
5341 2016-06-15 Richard Biener <rguenther@suse.de>
5343 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
5346 2016-06-15 Richard Biener <rguenther@suse.de>
5348 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
5349 not consider dependences between accesses that belong to the
5351 (vect_analyze_data_ref_dependences): Do not analyze read-read
5352 or self-dependences.
5354 2016-06-14 David Malcolm <dmalcolm@redhat.com>
5356 * spellcheck-tree.c: Include spellcheck-tree.h rather than
5358 (find_closest_identifier): Reimplement in terms of
5359 best_match<tree,tree>.
5360 * spellcheck-tree.h: New file.
5361 * spellcheck.c (struct edit_distance_traits<const char *>): New
5363 (find_closest_string): Reimplement in terms of
5364 best_match<const char *, const char *>.
5365 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
5366 overload to spellcheck-tree.h.
5367 (find_closest_identifier): Likewise.
5368 (struct edit_distance_traits<T>): New template.
5369 (class best_match): New class.
5371 2016-06-14 David Malcolm <dmalcolm@redhat.com>
5373 * selftest-run-tests.c (selftest::run_tests): Call
5374 selftest::spellcheck_tree_c_tests.
5375 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
5376 * spellcheck-tree.c: Include selftest.h and stringpool.h.
5377 (selftest::test_find_closest_identifier): New function.
5378 (selftest::spellcheck_tree_c_tests): New function.
5379 * spellcheck.c (selftest::test_find_closest_string): Verify that
5380 the order of the vec does not affect the results for this case.
5381 (selftest::test_data): New array.
5382 (selftest::test_metric_conditions): New function.
5383 (selftest::spellcheck_c_tests): Add a test of case-comparison.
5384 Call selftest::test_metric_conditions.
5386 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5388 * config/rs6000/rs6000-builtin.def (commentary): Typo.
5389 (BU_P9_MISC_1): Likewise.
5390 (BU_P9_64BIT_MISC_0): Likewise.
5391 (BU_P9_MISC_0): Likewise.
5393 2016-06-14 David Malcolm <dmalcolm@redhat.com>
5395 * gcc-rich-location.c
5396 (gcc_rich_location::add_fixit_misspelled_id): New method.
5397 * gcc-rich-location.h
5398 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
5400 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
5402 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
5403 FreeBSD 11 and above.
5405 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
5407 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
5409 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5411 * expmed.h: Close parenthesis in "at your option" in copyright
5413 * lower-subreg.h: Likewise.
5415 2016-06-14 Richard Biener <rguenther@suse.de>
5418 * genmatch.c (expr::gen_transform): Use in_type for comparisons
5421 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5423 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
5425 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
5427 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
5429 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
5430 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
5432 2016-06-14 Richard Biener <rguenther@suse.de>
5434 PR tree-optimization/71522
5435 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
5436 copying into float copying.
5438 2016-06-14 Jakub Jelinek <jakub@redhat.com>
5440 PR tree-optimization/71520
5441 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
5442 (replace_block_by): Move user labels from bb1 to bb2.
5444 2016-06-14 Richard Biener <rguenther@suse.de>
5448 * expr.h (get_bit_range): Declare.
5449 * expr.c (get_bit_range): Export.
5450 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
5451 word_mode again to constrain the bitfield access.
5453 2016-06-14 Richard Biener <rguenther@suse.de>
5455 PR tree-optimization/71521
5456 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
5457 division int_const_binop against zero divisor.
5459 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
5461 * config/i386/i386.md (signbittf2): New expander.
5462 * config/i386/sse.md (ptesttf2): New insn pattern.
5464 2016-06-13 David Malcolm <dmalcolm@redhat.com>
5467 * input.c (selftest::test_reading_source_line): Avoid reading from
5468 __FILE__ by creating a tempfile with known content and reading
5471 2016-06-13 David Malcolm <dmalcolm@redhat.com>
5473 * pretty-print.c (assert_pp_format_colored): Skip the test if
5475 (test_pp_format): Remove comment about GCC_COLORS.
5477 2016-06-13 David Malcolm <dmalcolm@redhat.com>
5479 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
5480 * pretty-print.c (assert_pp_format_va): Add location param and use
5481 it with ASSERT_STREQ_AT.
5482 (assert_pp_format): Add location param and pass it to
5483 assert_pp_format_va.
5484 (assert_pp_format_colored): Likewise.
5485 (ASSERT_PP_FORMAT_1): New.
5486 (ASSERT_PP_FORMAT_2): New.
5487 (ASSERT_PP_FORMAT_3): New.
5488 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
5489 explicitly, or implicitly via the above macros.
5490 * selftest.c (selftest::pass): Use a selftest::location rather
5492 (selftest::fail): Likewise. Print the function name.
5493 (selftest::fail_formatted): Likewise.
5494 (selftest::assert_streq): Use a selftest::location rather than
5496 * selftest.h (selftest::location): New struct.
5497 (SELFTEST_LOCATION): New macro.
5498 (selftest::pass): Accept a const location & rather than file
5500 (selftest::fail): Likewise.
5501 (selftest::fail_formatted): Likewise.
5502 (selftest::assert_streq): Likewise.
5503 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
5504 (ASSERT_FALSE): Likewise.
5505 (ASSERT_EQ): Likewise.
5506 (ASSERT_NE): Likewise.
5507 (ASSERT_STREQ): Likewise.
5508 (ASSERT_PRED1): Likewise.
5509 (ASSERT_STREQ_AT): New macro.
5511 2016-06-13 David Malcolm <dmalcolm@redhat.com>
5513 * selftest.c (selftest::fail_formatted): New function.
5514 (selftest::assert_streq): New function.
5515 * selftest.h (selftests::fail_formatted): New decl.
5516 (selftest::assert_streq): New decl.
5517 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
5519 2016-06-13 Jeff Law <law@redhat.com>
5521 PR tree-optimization/71403
5522 * tree-ssa-threadbackward.c
5523 (convert_and_register_jump_thread_path): No longer accept reference
5524 to path. Do not pop items off the path anymore.
5525 (fsm_find_control_statement_thread_paths): Do not allow threading
5526 to a deeper loop nest. Pop the last item off the path here rather
5527 than in convert_and_register_jump_thread_path.
5529 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
5530 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
5532 [AArch64] Emit division using the Newton series
5534 * config/aarch64/aarch64-protos.h
5535 (cpu_approx_modes): Add new member "division".
5536 (aarch64_emit_approx_div): Declare new function.
5537 * config/aarch64/aarch64.c
5538 (generic_approx_modes): New member "division".
5539 (exynosm1_approx_modes): Likewise.
5540 (xgene1_approx_modes): Likewise.
5541 (aarch64_emit_approx_div): Define new function.
5542 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
5543 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
5544 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
5545 * doc/invoke.texi (-mlow-precision-div): Describe new option.
5547 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
5548 Wilco Dijkstra <wilco.dijkstra@arm.com>
5550 [AArch64] Emit square root using the Newton series
5552 * config/aarch64/aarch64-protos.h
5553 (aarch64_emit_approx_rsqrt): Replace with new function
5554 "aarch64_emit_approx_sqrt".
5555 (cpu_approx_modes): New member "sqrt".
5556 * config/aarch64/aarch64.c
5557 (generic_approx_modes): New member "sqrt".
5558 (exynosm1_approx_modes): Likewise.
5559 (xgene1_approx_modes): Likewise.
5560 (aarch64_emit_approx_rsqrt): Replace with new function
5561 "aarch64_emit_approx_sqrt".
5562 (aarch64_override_options_after_change_1): Handle new option.
5563 * config/aarch64/aarch64-simd.md
5564 (rsqrt<mode>2): Use new function instead.
5565 (sqrt<mode>2): New expansion and insn definitions.
5566 * config/aarch64/aarch64.md: Likewise.
5567 * config/aarch64/aarch64.opt
5568 (mlow-precision-sqrt): Add new option description.
5569 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
5571 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
5573 [AArch64] Add more choices for the reciprocal square root approximation
5575 Allow a target to prefer such operation depending on the operation mode.
5577 * config/aarch64/aarch64-protos.h
5578 (AARCH64_APPROX_MODE): New macro.
5579 (AARCH64_APPROX_{NONE,ALL}): Likewise.
5580 (cpu_approx_modes): New structure.
5581 (tune_params): New member "approx_modes".
5582 * config/aarch64/aarch64-tuning-flags.def
5583 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
5584 * config/aarch64/aarch64.c
5585 (generic_approx_modes): New core "cpu_approx_modes" structure.
5586 (exynosm1_approx_modes): Likewise.
5587 (xgene1_approx_modes): Likewise.
5588 (generic_tunings): New member "approx_modes".
5589 (cortexa35_tunings): Likewise.
5590 (cortexa53_tunings): Likewise.
5591 (cortexa57_tunings): Likewise.
5592 (cortexa72_tunings): Likewise.
5593 (exynosm1_tunings): Likewise.
5594 (thunderx_tunings): Likewise.
5595 (xgene1_tunings): Likewise.
5596 (use_rsqrt_p): New argument for the mode and use new member from
5598 (aarch64_builtin_reciprocal): Devise mode from builtin.
5599 (aarch64_optab_supported_p): New argument for the mode.
5600 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
5602 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
5604 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
5605 RS6000_BTM_MODULO flag into the set of flags that are considered
5606 to be part of the common configuration.
5608 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
5610 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
5611 difference unsigned.
5612 (vec_absdb): New macro for vector absolute difference unsigned
5614 (vec_absdh): New macro for vector absolute difference unsigned
5616 (vec_absdw): New macro for vector absolute difference unsigned word.
5617 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
5618 (vadu<mode>3): New insn.
5619 (*p9_vadu<mode>3): New insn.
5620 * config/rs6000/rs6000-builtin.def (vadub): New built-in
5622 (vaduh): New built-in definition.
5623 (vaduw): New built-in definition.
5624 (vadu): New overloaded built-in definition.
5625 (vadub): New overloaded built-in definition.
5626 (vaduh): New overloaded built-in definition.
5627 (vaduw): New overloaded built-in definition.
5628 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5629 overloaded vector absolute difference unsigned functions.
5630 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
5631 the ISA 3.0 vector absolute difference unsigned built-in functions.
5633 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
5635 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
5636 update shared_lookup_references only once after changing operands.
5638 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
5641 * tree-nested.c (convert_nonlocal_omp_clauses)
5642 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
5644 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
5645 * tree.def (CASE_LABEL_EXPR): Likewise.
5647 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
5650 * input.c (test_builtins): Fix an assertion.
5652 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
5654 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
5657 (isinf<mode>2): Ditto.
5659 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
5661 * ggc-tests.c (test_finalization): Only test need_finalization_p
5662 for GCC_VERSION >= 4003.
5664 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5666 * config/s390/vecintrin.h: Fix file description in comment.
5668 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5670 * config/s390/s390-builtin-types.def: Change builtin type naming
5671 scheme to match builtin-types.def.
5673 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
5675 * fold-const.c (optimize_minmax_comparison): Remove.
5676 (fold_comparison): Remove call to the above.
5677 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
5678 New transformations.
5680 2016-06-13 Alan Hayward <alan.hayward@arm.com>
5682 PR tree-optimization/71416
5683 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
5686 2016-06-13 Martin Liska <mliska@suse.cz>
5688 * predict.c (enum predictor_reason): Prefix enum with REASON_.
5689 (combine_predictions_for_insn): Likewise.
5690 (prune_predictions_for_bb): Likewise.
5691 (combine_predictions_for_bb): Likewise.
5693 2016-06-13 Richard Biener <rguenther@suse.de>
5695 PR tree-optimization/71505
5696 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
5697 assert match comment.
5699 2016-06-13 Marek Polacek <polacek@redhat.com>
5702 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
5703 gimplify_switch_expr.
5704 (warn_switch_unreachable_r): New function.
5706 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5709 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
5712 2016-06-13 Richard Biener <rguenther@suse.de>
5715 * fold-const.c (fold_unary_loc): Preserve alignment when
5716 folding a VIEW_CONVERT_EXPR into a MEM_REF.
5718 2016-06-13 Martin Liska <mliska@suse.cz>
5721 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
5722 w/ -fsanitize=bounds.
5724 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
5726 * config/i386/i386.c (ix86_init_builtins): Calculate
5727 FLOAT128_FTYPE_CONST_STRING function type only once.
5728 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
5729 built-in functions are available for x86-32 and x86-64 targets.
5731 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
5734 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
5736 (FLOAT128_FTYPE_CONST_STRING): New function type.
5737 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
5738 [IX86_BUILTIN_NANSQ]: Ditto.
5739 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
5740 (ix86_init_builtin_types): Declare const_string_type_node.
5741 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
5743 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
5744 * doc/extend.texi (x86 Built-in Functions): Document
5745 __builtin_nanq and __builtin_nansq.
5747 2016-06-11 Jiong Wang <jiong.wang@arm.com>
5750 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
5751 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
5752 length for pop patterns.
5753 (arm_attr_length_push_multi): Update comments.
5754 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
5756 (*pop_multiple_with_writeback_and_return): Likewise.
5757 (*pop_multiple_with_return): Likewise.
5759 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
5762 * fold-const.c (optimize_bit_field_compare): Don't try to use
5763 word_mode unconditionally for reading the bit field, look at
5764 DECL_BIT_FIELD_REPRESENTATIVE instead.
5766 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
5769 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
5770 vector integer type.
5772 2016-06-10 Jakub Jelinek <jakub@redhat.com>
5775 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
5776 without LABEL_DECL, set *handled_ops_p to false instead of true.
5778 2016-06-10 Martin Sebor <msebor@redhat.com>
5781 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
5782 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
5783 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
5785 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
5786 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
5787 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
5788 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
5789 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
5790 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
5791 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
5792 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
5794 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
5796 * config/arm/arm.h (pool_vector_label,
5797 return_used_this_function): Remove.
5799 2016-06-10 Jeff Law <law@redhat.com>
5801 PR tree-optimization/71335
5802 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
5803 zero length paths here.
5804 (convert_and_register_jump_thread_path): Remove hacks related to
5805 duplicated blocks in the jump thread path.
5806 (fsm_find_control_statement_thread_paths): Avoid putting the same
5807 block on the thread path twice, but ensure the thread path is
5808 unchanged from the caller's point of view.
5810 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
5812 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
5813 * predict.def (PRED_LOOP_BRANCH): Remove.
5815 2016-06-10 David Malcolm <dmalcolm@redhat.com>
5817 * Makefile.in (OBJS): Add ggc-tests.o.
5818 (GTFILES): Add ggc-tests.c.
5819 * ggc-tests.c: New file.
5820 * selftest-run-tests.c (selftest::run_tests): Call
5821 selftest::ggc_tests_c_tests.
5822 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
5824 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
5826 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
5828 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
5831 * varasm.c (place_block_symbol): Adjust alignment for asan protected
5832 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
5834 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
5836 * profile.c: Include cfgloop.h.
5837 (branch_prob): Compute estimated number of iterations.
5838 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
5839 recompute estimate number of iterations from profile.
5841 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
5844 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
5845 must be grouped on top of stack. Don't force early clobber
5846 on ordinary reg outputs.
5848 2016-06-10 Richard Biener <rguenther@suse.de>
5850 * targhooks.c (default_builtin_vectorization_cost): Adjust
5853 2016-06-10 Richard Biener <rguenther@suse.de>
5855 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
5856 to fold the RHS to a constant if possible.
5858 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5861 * tree-nested.c (convert_nonlocal_omp_clauses)
5862 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
5863 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
5864 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
5866 * gimplify.c (gimplify_adjust_omp_clauses): Discard
5868 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
5870 * omp-low.c (scan_sharing_clauses): Don't expect
5873 2016-06-10 Alan Hayward <alan.hayward@arm.com>
5875 PR tree-optimization/71407
5876 PR tree-optimization/71416
5877 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
5880 2016-06-10 Richard Biener <rguenther@suse.de>
5883 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
5885 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
5887 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
5889 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
5890 Jiong Wang <jiong.wang@arm.com>
5892 PR rtl-optimization/70751
5893 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
5894 spilled into memory.
5896 2016-06-09 Jonathan Yong <10walls@gmail.com>
5899 2015-09-21 Jonathan Yong <10walls@gmail.com>
5901 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
5902 sysroot/usr/lib/32api for additional win32 libraries,
5903 fixes failing Cygwin bootstrapping.
5905 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
5907 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
5910 2016-06-09 David Malcolm <dmalcolm@redhat.com>
5913 * pretty-print.c (pp_indent): Specify that %p is printed in a
5914 host-dependent manner.
5915 (test_pp_format): Remove the test for %p.
5917 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
5919 * config/mips/mips.c (mips_output_jump): Fix formatting.
5921 2016-06-09 Richard Biener <rguenther@suse.de>
5923 PR tree-optimization/71462
5924 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
5927 2016-06-09 Martin Liska <mliska@suse.cz>
5929 * predict.c (dump_prediction): Add new argument.
5930 (enum predictor_reason): New enum.
5931 (struct predictor_hash): New struct.
5932 (predictor_hash::hash): New function.
5933 (predictor_hash::equal): Likewise.
5934 (not_removed_prediction_p): New function.
5935 (prune_predictions_for_bb): Likewise.
5936 (combine_predictions_for_bb): Prune predictions.
5938 2016-06-09 Martin Liska <mliska@suse.cz>
5940 * predict.c (filter_predictions): New function.
5941 (remove_predictions_associated_with_edge): Use the filter
5943 (equal_edge_p): New function.
5945 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
5947 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
5948 Correct usage of @samp vs @option, add @samp where appropriate.
5949 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
5950 Add armv6s-m and document it, as it is no official ARM name.
5952 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5954 * ifcvt.c (struct noce_if_info): Add transform_name field.
5955 (noce_try_move): Set if_info->transform_name to the function name.
5956 (noce_try_ifelse_collapse): Likewise.
5957 (noce_try_store_flag): Likewise.
5958 (noce_try_inverse_constants): Likewise.
5959 (noce_try_store_flag_constants): Likewise.
5960 (noce_try_addcc): Likewise.
5961 (noce_try_store_flag_mask): Likewise.
5962 (noce_try_cmove): Likewise.
5963 (noce_try_cmove_arith): Likewise.
5964 (noce_try_minmax): Likewise.
5965 (noce_try_abs): Likewise.
5966 (noce_try_sign_mask): Likewise.
5967 (noce_try_bitop): Likewise.
5968 (noce_convert_multiple_sets): Likewise.
5969 (noce_process_if_block): Print if_info->transform_name to
5970 dump_file if transformation succeeded.
5972 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5974 * config/arm/cortex-a57.md (cortex_a57_alu):
5977 2016-06-08 Martin Sebor <msebor@redhat.com>
5978 Jakub Jelinek <jakub@redhat.com>
5982 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
5983 BUILT_IN_MUL_OVERFLOW_P): New builtins.
5984 * builtins.c: Include gimple-fold.h.
5985 (fold_builtin_arith_overflow): Handle
5986 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
5987 (fold_builtin_3): Likewise.
5988 * doc/extend.texi (Integer Overflow Builtins): Document
5989 __builtin_{add,sub,mul}_overflow_p.
5991 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
5993 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
5994 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
5996 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
5998 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
5999 Rewrite, looking one level down for records and arrays.
6001 2016-06-08 David Malcolm <dmalcolm@redhat.com>
6003 * pretty-print.c: Include "selftest.h".
6004 (pp_format): Fix comment.
6005 (identifier_to_locale): Likewise.
6006 (selftest::test_basic_printing): New function.
6007 (selftest::assert_pp_format): New function.
6008 (selftest::test_pp_format): New function.
6009 (selftest::pretty_print_c_tests): New function.
6010 * selftest-run-tests.c (selftest::run_tests): Call
6011 selftest::pretty_print_c_tests.
6012 * selftest.h (pretty_print_c_tests): New declaration.
6014 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
6016 * invoke.texi (max-loop-headers-insns): Document.
6017 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
6018 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
6019 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
6021 2016-06-08 Richard Biener <rguenther@suse.de>
6023 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
6024 on strided SLP loads and fall back to scalar loads in case
6025 we can't chunk them.
6027 2016-06-08 Richard Biener <rguenther@suse.de>
6029 PR tree-optimization/71452
6030 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
6031 type used for the SSA rewrite has enough precision to cover
6032 the dynamic type of the location.
6034 2016-06-08 Jakub Jelinek <jakub@redhat.com>
6035 Richard Biener <rguenther@suse.de>
6038 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
6039 the same as DECL_P (base0) for indirect_base0. Use equality_code
6040 in one further place.
6042 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
6044 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
6045 to one word if the field is known to overlap other words.
6046 (extract_bit_field_1): Likewise.
6047 (store_split_bit_field): Remove compensating code.
6048 (extract_split_bit_field): Likewise.
6050 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
6054 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
6056 2016-06-08 Jiong Wang <jiong.wang@arm.com>
6058 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
6060 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
6061 (arch64_addpv4sf): Delete.
6062 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
6063 "gen_aarch64_addpv4sf".
6064 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
6066 (vpadds_f32): Likewise.
6067 (vpaddq_f32): Likewise.
6068 (vpaddq_f64): Likewise.
6070 2016-06-08 Jiong Wang <jiong.wang@arm.com>
6072 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
6074 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
6075 to VALLF. Rename to "fabd<mode>3".
6076 "*fabd_scalar<mode>3): Delete.
6077 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
6079 (vabdd_f64): Likewise.
6080 (vabd_f32): Likewise.
6081 (vabd_f64): Likewise.
6082 (vabdq_f32): Likewise.
6083 (vabdq_f64): Likewise.
6085 2016-06-08 Jiong Wang <jiong.wang@arm.com>
6087 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
6089 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
6090 "aarch64_rsqrts<mode>".
6091 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
6092 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
6094 (vrsqrtsd_f64): Likewise.
6095 (vrsqrts_f32): Likewise.
6096 (vrsqrts_f64): Likewise.
6097 (vrsqrtsq_f32): Likewise.
6098 (vrsqrtsq_f64): Likewise.
6100 2016-06-08 Jiong Wang <jiong.wang@arm.com>
6102 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
6104 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
6105 "aarch64_rsqrte<mode>".
6106 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
6107 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
6109 (vrsqrted_f64): Likewise.
6110 (vrsqrte_f32): Likewise.
6111 (vrsqrte_f64): Likewise.
6112 (vrsqrteq_f32): Likewise.
6113 (vrsqrteq_f64): Likewise.
6115 2016-06-08 Jiong Wang <jiong.wang@arm.com>
6117 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
6121 * config/aarch64/aarch64-simd.md
6122 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
6123 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
6124 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
6126 (vcvt_n_f32_u32): Likewise.
6127 (vcvt_n_s32_f32): Likewise.
6128 (vcvt_n_u32_f32): Likewise.
6129 (vcvtq_n_f32_s32): Likewise.
6130 (vcvtq_n_f32_u32): Likewise.
6131 (vcvtq_n_f64_s64): Likewise.
6132 (vcvtq_n_f64_u64): Likewise.
6133 (vcvtq_n_s32_f32): Likewise.
6134 (vcvtq_n_s64_f64): Likewise.
6135 (vcvtq_n_u32_f32): Likewise.
6136 (vcvtq_n_u64_f64): Likewise.
6137 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
6138 (VSDQ_SDI): Likewise.
6139 (fcvt_target): Support V4DI, V4SI and V2SI.
6140 (FCVT_TARGET): Likewise.
6142 2016-06-08 Jiong Wang <jiong.wang@arm.com>
6144 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
6145 (TYPES_BINOP_SUS): Likewise.
6146 (aarch64_simd_builtin_data): Update include file name.
6147 (aarch64_builtins): Likewise.
6148 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
6149 for conversion between scalar float-point and fixed-point.
6153 * config/aarch64/aarch64.md
6154 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
6155 pattern for conversion between scalar float to fixed-pointer.
6156 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
6157 (UNSPEC_FCVTZS): New UNSPEC enumeration.
6158 (UNSPEC_FCVTZU): Likewise.
6159 (UNSPEC_SCVTF): Likewise.
6160 (UNSPEC_UCVTF): Likewise.
6161 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
6163 (vcvtd_n_f64_u64): Likewise.
6164 (vcvtd_n_s64_f64): Likewise.
6165 (vcvtd_n_u64_f64): Likewise.
6166 (vcvtd_n_f32_s32): Likewise.
6167 (vcvts_n_f32_u32): Likewise.
6168 (vcvtd_n_s32_f32): Likewise.
6169 (vcvts_n_u32_f32): Likewise.
6170 * config/aarch64/iterators.md (fcvt_target): Support integer to float
6172 (FCVT_TARGET): Likewise.
6173 (FCVT_FIXED2F): New iterator.
6174 (FCVT_F2FIXED): Likewise.
6175 (fcvt_fixed_insn): New define_int_attr.
6177 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
6179 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
6180 some statements was removed.
6182 2016-06-08 Alan Hayward <alan.hayward@arm.com>
6184 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
6185 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
6186 (vect_can_advance_ivs_p): likewise.
6187 (vect_update_ivs_after_vectorizer): likewise.
6188 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
6189 (vect_analyze_scalar_cycles_1): likewise.
6190 (vect_analyze_loop_operations): likewise.
6191 (report_vect_op): likewise.
6192 (vect_is_slp_reduction): likewise.
6193 (vect_is_simple_reduction): likewise.
6194 (get_initial_def_for_induction): likewise.
6195 (vect_transform_loop): likewise.
6196 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
6197 (vect_recog_sad_pattern): likewise.
6198 (vect_recog_widen_sum_pattern): likewise.
6199 (vect_recog_widening_pattern): likewise.
6200 (vect_recog_divmod_pattern): likewise.
6201 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
6202 (vect_analyze_slp_instance): likewise.
6203 (vect_transform_slp_perm_load): likewise.
6204 (vect_schedule_slp_instance): likewise.
6206 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
6208 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
6209 (return_prediction): PRED_CONST_RETURN predict return as not taken.
6210 * predict.def (PRED_CONTINUE): Change hitrate 50->67
6211 (PRED_LOOP_BRANCH): Document predictor as broken.
6212 (PRED_LOOP_EXIT): Change hitrate 91->92.
6213 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
6214 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
6215 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
6216 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
6217 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
6218 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
6219 (PRED_CALL): Chane hitrate 71->67.
6220 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
6221 (PRED_GOTO): Document as unused right now.
6222 (PRED_CONST_RETURN): Change hitrate 67->69
6223 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
6224 (PRED_NULL_RETURN): Change hitrate 91->90.
6225 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
6226 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
6227 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
6229 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
6231 * config/rs6000/altivec.h: Add __builtin_vec_mul.
6232 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
6233 special case Altivec builtin.
6234 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
6235 VSX_BUILTIN_VEC_MUL (replaced with special case code).
6236 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
6237 code for ALTIVEC_BUILTIN_VEC_MUL.
6238 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
6239 for __builtin_vec_mul.
6241 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
6243 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
6246 2016-06-07 David Malcolm <dmalcolm@redhat.com>
6248 * spellcheck.c (selftest::test_find_closest_string): New function.
6249 (spellcheck_c_tests): Call the above.
6251 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6253 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
6255 2016-06-07 Jakub Jelinek <jakub@redhat.com>
6257 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
6258 Yv=Yv,C alternatives.
6260 2016-06-07 Richard Biener <rguenther@suse.de>
6263 * common.opt (ffast-math): Make Optimization.
6265 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
6266 Prachi Godbole <prachi.godbole@imgtec.com>
6268 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
6269 `fabs' and `fneg' type attributes.
6270 (p5600_fpu_fabs): Add `fmove' to the comment.
6272 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
6274 * gimple.c: Include builtins.h
6275 (gimple_inexpensive_call_p): New function.
6276 * gimple.h (gimple_inexpensive_call_p): Declare.
6277 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
6278 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
6281 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
6283 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
6284 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
6285 warning_at_rich_loc, warning_n, pedwarn, permerror,
6286 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
6287 sorry, fatal_error, internal_error, internal_error_no_backtrace):
6290 2016-06-07 Richard Biener <rguenther@suse.de>
6292 PR tree-optimization/71428
6293 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
6294 BIT_FIELD_REF op vs. load.
6296 2016-06-07 Richard Biener <rguenther@suse.de>
6299 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
6302 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
6304 * config/pa/pa.md (call): Generate indirect long calls to non-local
6305 functions on TARGET_64BIT.
6306 (call_value): Likewise.
6308 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
6310 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
6311 pattern and subsequent splitters.
6312 (call_val_reg_64bit_post_reload): Likewise.
6314 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
6317 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
6318 propagate_op_to_single_use.
6320 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
6323 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
6325 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
6327 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
6328 (enum x86_dirflag_state): New enum.
6329 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
6330 (machine_function): Remove needs_cld.
6331 (ix86_current_function_needs_cld): Remove.
6332 * config/i386/i386.c (ix86_set_func_type): Set
6333 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
6334 (ix86_expand_prologue): Do not emit CLD here.
6335 (ix86_dirflag_mode_needed): New function.
6336 (ix86_dirflag_mode_entry): Ditto.
6337 (ix86_mode_needed): Handle X86_DIRFLAG entity.
6338 (ix86_mode_after): Ditto.
6339 (ix86_mode_entry): Ditto.
6340 (ix86_mode_exit): Ditto.
6341 (ix86_emit_mode_set): Ditto.
6342 * config/i386/i386.md (strmov_singleop): Set
6343 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
6344 Do not set ix86_current_function_needs_cld.
6346 (strset_singleop): Ditto.
6348 (cmpstrnqi_nz_1): Ditto.
6349 (cmpstrnqi_1): Ditto.
6350 (strlenqi_1): Ditto.
6352 2016-06-06 Jakub Jelinek <jakub@redhat.com>
6354 PR tree-optimization/71259
6355 * tree-vect-slp.c (vect_get_constant_vectors): For
6356 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
6357 one for constant op, and use COND_EXPR for non-constant.
6359 2016-06-06 David Malcolm <dmalcolm@redhat.com>
6361 * Makefile.in (OBJS): Add function-tests.o,
6362 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
6363 selftest-run-tests.o.
6364 (OBJS-libcommon): Add selftest.o.
6365 (OBJS-libcommon-target): Add selftest.o.
6366 (all.internal): Add "selftest".
6367 (all.cross): Likewise.
6368 (selftest): New phony target.
6369 (s-selftest): New target.
6370 (selftest-gdb): New phony target.
6371 (COLLECT2_OBJS): Add selftest.o.
6372 * bitmap.c: Include "selftest.h".
6373 (selftest::test_gc_alloc): New function.
6374 (selftest::test_set_range): New function.
6375 (selftest::test_clear_bit_in_middle): New function.
6376 (selftest::test_copying): New function.
6377 (selftest::test_bitmap_single_bit_set_p): New function.
6378 (selftest::bitmap_c_tests): New function.
6379 * common.opt (fself-test): New.
6380 * diagnostic-show-locus.c: Include "selftest.h".
6381 (make_range): New function.
6382 (test_range_contains_point_for_single_point): New function.
6383 (test_range_contains_point_for_single_line): New function.
6384 (test_range_contains_point_for_multiple_lines): New function.
6385 (assert_eq): New function.
6386 (test_get_line_width_without_trailing_whitespace): New function.
6387 (selftest::diagnostic_show_locus_c_tests): New function.
6388 * et-forest.c: Include "selftest.h".
6389 (selftest::test_single_node): New function.
6390 (selftest::test_simple_tree): New function.
6391 (selftest::test_disconnected_nodes): New function.
6392 (selftest::et_forest_c_tests): New function.
6393 * fold-const.c: Include "selftest.h".
6394 (selftest::assert_binop_folds_to_const): New function.
6395 (selftest::assert_binop_folds_to_nonlvalue): New function.
6396 (selftest::test_arithmetic_folding): New function.
6397 (selftest::fold_const_c_tests): New function.
6398 * function-tests.c: New file.
6399 * gimple.c: Include "selftest.h".
6400 Include "gimple-pretty-print.h".
6401 (selftest::verify_gimple_pp): New function.
6402 (selftest::test_assign_single): New function.
6403 (selftest::test_assign_binop): New function.
6404 (selftest::test_nop_stmt): New function.
6405 (selftest::test_return_stmt): New function.
6406 (selftest::test_return_without_value): New function.
6407 (selftest::gimple_c_tests): New function.
6408 * hash-map-tests.c: New file.
6409 * hash-set-tests.c: New file.
6410 * input.c: Include "selftest.h".
6411 (selftest::assert_loceq): New function.
6412 (selftest::test_accessing_ordinary_linemaps): New function.
6413 (selftest::test_unknown_location): New function.
6414 (selftest::test_builtins): New function.
6415 (selftest::test_reading_source_line): New function.
6416 (selftest::input_c_tests): New function.
6417 * rtl-tests.c: New file.
6418 * selftest-run-tests.c: New file.
6419 * selftest.c: New file.
6420 * selftest.h: New file.
6421 * spellcheck.c: Include "selftest.h".
6422 (selftest::levenshtein_distance_unit_test_oneway): New function,
6423 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
6424 (selftest::levenshtein_distance_unit_test): Likewise.
6425 (selftest::spellcheck_c_tests): Likewise.
6426 * toplev.c: Include selftest.h.
6427 (toplev::run_self_tests): New.
6428 (toplev::main): Handle -fself-test.
6429 * toplev.h (toplev::run_self_tests): New.
6430 * tree.c: Include "selftest.h".
6431 (selftest::test_integer_constants): New function.
6432 (selftest::test_identifiers): New function.
6433 (selftest::test_labels): New function.
6434 (selftest::tree_c_tests): New function.
6435 * tree-cfg.c: Include "selftest.h".
6436 (selftest::push_fndecl): New function.
6437 (selftest::test_linear_chain): New function.
6438 (selftest::test_diamond): New function.
6439 (selftest::test_fully_connected): New function.
6440 (selftest::tree_cfg_c_tests): New function.
6441 * vec.c: Include "selftest.h".
6442 (selftest::safe_push_range): New function.
6443 (selftest::test_quick_push): New function.
6444 (selftest::test_safe_push): New function.
6445 (selftest::test_truncate): New function.
6446 (selftest::test_safe_grow_cleared): New function.
6447 (selftest::test_pop): New function.
6448 (selftest::test_safe_insert): New function.
6449 (selftest::test_ordered_remove): New function.
6450 (selftest::test_unordered_remove): New function.
6451 (selftest::test_block_remove): New function.
6452 (selftest::reverse_cmp): New function.
6453 (selftest::test_qsort): New function.
6454 (selftest::vec_c_tests): New function.c.
6455 * wide-int.cc: Include selftest.h and wide-int-print.h.
6456 (selftest::from_int <wide_int>): New function.
6457 (selftest::from_int <offset_int>): New function.
6458 (selftest::from_int <widest_int>): New function.
6459 (selftest::assert_deceq): New function.
6460 (selftest::assert_hexeq): New function.
6461 (selftest::test_printing <VALUE_TYPE>): New function template.
6462 (selftest::test_ops <VALUE_TYPE>): New function template.
6463 (selftest::test_comparisons <VALUE_TYPE>): New function template.
6464 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
6466 (selftest::wide_int_cc_tests): New function.
6468 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6471 * ifcvt.c (noce_try_ifelse_collapse): New function.
6473 (noce_process_if_block): Call noce_try_ifelse_collapse.
6474 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
6475 (simplify_ternary_operation): Use the above to simplify
6476 conditional CLZ/CTZ expressions.
6478 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6481 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
6482 define_insn_and_split.
6484 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6487 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
6489 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
6492 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
6493 Implicitly clobber memory for basic asm with non-empty assembler
6494 string. Use targetm.md_asm_adjust also here.
6495 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
6496 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
6497 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
6498 non-empty assembler string.
6499 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
6500 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
6501 (decode_asm_operands): Handle basic asm in PARALLEL block.
6502 (extract_insn): Handle basic asm in PARALLEL block.
6503 * doc/extend.texi: Mention new behavior of basic asm.
6504 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
6505 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
6506 branch_needs_nop_p): Use asm_noperands.
6508 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
6510 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
6511 Include the M7 SPARC DFA scheduler.
6512 New attribute v3pipe.
6513 Annotate insns with v3pipe where appropriate.
6514 Define cpu_feature vis4.
6515 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
6516 Add (V8QI "8") to vbits.
6517 Add insns {add,sub}v8qi3
6518 Add insns ss{add,sub}v8qi3
6519 Add insns us{add,sub}{v8qi,v4hi}3
6520 Add insns {min,max}{v8qi,v4hi,v2si}3
6521 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
6522 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
6523 * config/sparc/niagara4.md: Add a comment explaining the
6524 discrepancy between the documented latenty numbers and the
6526 * config/sparc/niagara7.md: New file.
6527 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
6528 supports SPARC5 and VIS 4.0 instructions.
6529 * configure: Regenerate.
6530 * config.in: Likewise.
6531 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
6532 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
6533 TARGET_CPU_niagara7.
6534 (ASM_CPU64_DEFAULT_SPEC): Likewise.
6535 (CPP_CPU_SPEC): Handle niagara7.
6536 (ASM_CPU_SPEC): Likewise.
6537 * config/sparc/sparc-opts.h (processor_type): Add
6539 (mvis4): New option.
6540 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
6541 (AS_NIAGARA7_FLAG): Define.
6542 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
6543 (CPP_CPU64_DEFAULT_SPEC): Likewise.
6544 (CPP_CPU_SPEC): Handle niagara7.
6545 (ASM_CPU_SPEC): Likewise.
6546 * config/sparc/sparc.c (niagara7_costs): Define.
6547 (sparc_option_override): Handle niagara7 and adjust cache-related
6548 parameters with better values for niagara cpus. Also support VIS4.
6549 (sparc32_initialize_trampoline): Likewise.
6550 (sparc_use_sched_lookahead): Likewise.
6551 (sparc_issue_rate): Likewise.
6552 (sparc_register_move_cost): Likewise.
6553 (dump_target_flag_bits): Support VIS4.
6554 (sparc_vis_init_builtins): Likewise.
6555 (sparc_builtins): Likewise.
6556 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
6558 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
6560 * config/sparc/sparc.opt (sparc_processor_type): New value
6562 * config/sparc/visintrin.h (__attribute__): Prototypes for the
6564 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
6566 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
6569 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
6571 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
6573 2016-06-06 Richard Biener <rguenther@suse.de>
6575 PR tree-optimization/71398
6576 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
6579 2016-06-05 James Bowman <james.bowman@ftdichip.com>
6581 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
6582 ft32_expand_prolog, ft32_expand_epilogue):
6583 Handle pretend_args.
6584 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
6585 * config/ft32/ft32.md: Add pretend_returner.
6587 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
6590 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
6591 Copy op1 RTX to avoid invalid sharing.
6592 (ix86_expand_vector_move_misalign): Ditto.
6594 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
6596 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
6599 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
6601 * predict.c (predicted_by_loop_heuristics_p): New function.
6602 (predict_iv_comparison): Use it.
6603 (predict_loops): Walk from innermost loops; do not predict edges
6604 leaving multiple loops multiple times; implement
6605 PRED_LOOP_ITERATIONS_MAX heuristics.
6606 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
6608 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
6610 * cfg.c (check_bb_profile): Do not report mismatched profiles when
6611 only edges out of BB are EH edges.
6613 2016-06-04 Martin Sebor <msebor@redhat.com>
6614 Marcin Baczyński <marbacz@gmail.com>
6617 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
6618 a void expression in a void function.
6620 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
6622 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
6623 aux; dump reasons of decisions.
6624 (should_duplicate_loop_header_p): Likewise.
6625 (do_while_loop_p): Likewise.
6626 (ch_base::copy_headers): Dump asi num insns duplicated.
6628 2016-06-04 Jakub Jelinek <jakub@redhat.com>
6630 PR tree-optimization/71405
6631 * tree-ssa.c (execute_update_addresses_taken): For clobber with
6632 incompatible type, build a new clobber with the right type instead
6633 of building a VIEW_CONVERT_EXPR around it.
6635 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
6637 PR tree-optimization/52171
6638 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
6639 by_pieces_ninsns instead of move_by_pieces_ninsns.
6641 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
6643 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
6644 for reg+reg addressing mode.
6646 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6648 * rs6000-c.c (c/c-tree.h): Add #include.
6649 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
6650 in C++ when found in the base position of vec_ld or vec_st.
6652 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
6654 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
6655 use of profile unless profile status is PROFILE_READ.
6656 * profile.c (compute_branch_probabilities): Set profile status
6657 only after reporting predictor hitrates.
6659 2016-06-03 Joseph Myers <joseph@codesourcery.com>
6663 * common.opt (ffp-int-builtin-inexact): New option.
6664 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
6665 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
6666 (ceil@var{m}2): Document dependence on this option.
6667 * ipa-inline-transform.c (inline_call): Handle
6668 flag_fp_int_builtin_inexact.
6669 * ipa-inline.c (can_inline_edge_p): Likewise.
6670 * config/i386/i386.md (rintxf2): Do not test
6671 flag_unsafe_math_optimizations.
6672 (rint<mode>2_frndint): New define_insn.
6673 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
6674 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
6675 for 387 instead of extending and truncating.
6676 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
6677 !flag_trapping_math instead of flag_unsafe_math_optimizations.
6678 Change to frndint<mode>2_<rounding>.
6679 (frndintxf2_<rounding>_i387): Likewise. Change to
6680 frndint<mode>2_<rounding>_i387.
6681 (<rounding_insn>xf2): Likewise.
6682 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
6683 !flag_trapping_math instead of flag_unsafe_math_optimizations for
6684 x87. Test TARGET_ROUND || !flag_trapping_math ||
6685 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
6686 SSE. Use ROUND_NO_EXC in constant operand of
6687 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
6688 for 387 instead of extending and truncating.
6690 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
6691 Julia Koval <julia.koval@intel.com>
6703 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
6704 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
6705 all registers, except for function return registers if there are
6706 no caller-saved registers.
6707 (ix86_set_func_type): New function.
6708 (ix86_set_current_function): Call ix86_set_func_type to set
6709 no_caller_saved_registers and func_type. Call reinit_regs if
6710 caller-saved registers are changed. Don't allow MPX, SSE, MMX
6711 nor x87 instructions in interrupt handler nor function with
6712 no_caller_saved_registers attribute.
6713 (ix86_function_ok_for_sibcall): Return false if there are no
6714 caller-saved registers.
6715 (type_natural_mode): Don't warn ABI change for MMX in interrupt
6717 (ix86_function_arg_advance): Skip for callee in interrupt handler.
6718 (ix86_function_arg): Return special arguments in interrupt handler.
6719 (ix86_promote_function_mode): Promote pointer to word_mode only
6720 for normal functions.
6721 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
6723 (ix86_epilogue_uses): New function.
6724 (ix86_hard_regno_scratch_ok): Likewise.
6725 (ix86_save_reg): Preserve all registers in interrupt handler
6726 after reload. Preserve all registers, except for function return
6727 registers, if there are no caller-saved registers after reload.
6728 (find_drap_reg): Always use callee-saved register if there are
6729 no caller-saved registers.
6730 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
6731 for interrupt handler.
6732 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
6733 Emit cld instruction if stringops are used in interrupt handler
6734 or interrupt handler isn't a leaf function.
6735 (ix86_expand_epilogue): Generate interrupt return for interrupt
6736 handler and pop the 'ERROR_CODE' off the stack before interrupt
6737 return in exception handler.
6738 (ix86_expand_call): Disallow calling interrupt handler directly.
6739 If there are no caller-saved registers, mark all registers that
6740 are clobbered by the call which returns as clobbered.
6741 (ix86_handle_no_caller_saved_registers_attribute): New function.
6742 (ix86_handle_interrupt_attribute): Likewise.
6743 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
6745 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
6746 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
6747 accumulation in interrupt function if stack may be realigned to
6749 (EPILOGUE_USES): New.
6750 (function_type): New enum.
6751 (machine_function): Add func_type and no_caller_saved_registers.
6752 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
6753 (interrupt_return): New pattern.
6754 * doc/extend.texi: Document x86 interrupt and
6755 no_caller_saved_registers attributes.
6757 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
6759 PR tree-optimization/52171
6760 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
6761 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
6762 Look for constant strings. Move some code to emit_block_cmp_hints
6764 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
6765 * defaults.h (COMPARE_MAX_PIECES): New macro.
6766 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
6767 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
6768 (clear_by_pieces_1): Don't declare. Move definition before use.
6769 (can_do_by_pieces): New static function.
6770 (can_move_by_pieces): Use it. Return bool.
6771 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
6772 OP. All callers changed. Handle COMPARE_BY_PIECES.
6773 (class pieces_addr); New.
6774 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
6775 pieces_addr::adjust, pieces_addr::increment_address,
6776 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
6778 (class op_by_pieces_d): New.
6779 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
6781 (class move_by_pieces_d, class compare_by_pieces_d,
6782 class store_by_pieces_d): New subclasses of op_by_pieces_d.
6783 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
6784 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
6785 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
6786 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
6787 compare_by_pieces_d::finish_mode): New member functions.
6788 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
6790 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
6791 (emit_block_cmp_hints): New function.
6792 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
6793 use the newly defined classes.
6794 * expr.h (by_pieces_constfn): New typedef.
6795 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
6796 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
6797 (move_by_pieces_ninsns): Don't declare.
6798 (can_move_by_pieces): Change return value to bool.
6799 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
6800 (compare_by_pieces_branch_ratio): New hook.
6801 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
6802 (by_pieces_ninsns): Declare.
6803 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
6805 (default_compare_by_pieces_branch_ratio): New function.
6806 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
6807 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
6808 * doc/tm.texi: Regenerate.
6809 * tree-ssa-strlen.c: Include "builtins.h".
6810 (handle_builtin_memcmp): New static function.
6811 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
6812 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
6814 2016-06-03 Alan Hayward <alan.hayward@arm.com>
6816 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
6817 relevant stmts which are simple and invariant.
6818 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
6819 instead of simple and invariant
6821 2016-06-03 Alan Hayward <alan.hayward@arm.com>
6823 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
6824 (vectorizable_reduction): Check for new relevant state.
6825 (vectorizable_live_operation): vectorize live stmts using
6826 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
6827 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
6828 (vect_stmt_relevant_p): Check for stmts which are only used live.
6829 (process_use): Use of a stmt does not inherit it's live value.
6830 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
6831 (vect_analyze_stmt): Check for new relevant state.
6832 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
6833 outside the loop, but not inside it.
6835 2016-06-03 Alan Hayward <alan.hayward@arm.com>
6837 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
6838 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
6839 (vect_get_vec_def_for_operand): Split out code.
6841 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
6843 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
6845 2016-06-03 Alan Hayward <alan.hayward@arm.com>
6847 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
6849 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6851 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
6853 2016-06-03 Jakub Jelinek <jakub@redhat.com>
6856 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
6857 to noreturn e->callee->decl that has void return type and void
6858 arguments, adjust gimple_call_fntype and remove lhs even if it had
6859 previously addressable type.
6861 2016-06-02 Jeff Law <law@redhat.com>
6863 PR tree-optimization/71328
6864 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
6865 error when checking for a jump back onto the copied path.
6867 2016-06-02 David Malcolm <dmalcolm@redhat.com>
6869 * config/microblaze/microblaze.c (get_branch_target): Add return
6870 NULL_RTX for the non-CALL_P case.
6871 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
6872 (insert_wic): Remove unused local "j".
6874 2016-06-02 Martin Liska <mliska@suse.cz>
6876 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
6878 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
6879 Julia Koval <julia.koval@intel.com>
6881 * function.c (assign_parm_setup_stack): Force source into a
6883 * target.def (function_incoming_arg): Update documentation to
6884 allow arbitrary address computation based on hard register.
6885 * doc/tm.texi: Regenerated.
6887 2016-06-02 Martin Liska <mliska@suse.cz>
6889 * predict.c (combine_predictions_for_bb): Fix first match in
6890 cases where a first predictor contains more than one occurence
6891 in list of predictors. Take the best value in such case.
6893 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6895 PR rtl-optimization/71295
6896 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
6897 offset would go over the size of the inner mode reject it.
6899 2016-06-02 Jakub Jelinek <jakub@redhat.com>
6901 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
6902 x=x,x and v=v,m instead of x=x,m.
6904 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
6905 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
6906 alternative to v=rm,C.
6908 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
6909 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
6910 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
6911 instead of vex for the last two above mentioned alternatives.
6913 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6916 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
6918 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
6920 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
6922 2016-06-01 David Malcolm <dmalcolm@redhat.com>
6924 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
6925 from int to unsigned.
6927 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
6929 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
6930 alternatives, eliminating preferred register class. Add support
6931 for the MTVSRDD instruction in ISA 3.0.
6932 (vsx_splat_v4si_internal): Use splat_input_operand instead of
6933 reg_or_indexed_operand.
6934 (vsx_splat_v4sf_internal): Likewise.
6936 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
6939 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
6940 for loading up all 0's or all 1's.
6942 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
6944 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
6946 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
6948 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
6950 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
6951 * gcc.c (set_source_date_epoch_envvar): New function, sets
6952 the SOURCE_DATE_EPOCH environment variable to the current time.
6954 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
6956 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
6957 the factor for live Phi nodes.
6959 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
6961 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
6962 * tree-parloops.c (parallelize_loops): likewise.
6963 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
6964 tree_unswitch_outer_loop): likewise.
6966 2016-06-01 Jakub Jelinek <jakub@redhat.com>
6969 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
6970 around creation of the temporary.
6972 2016-06-01 Richard Biener <rguenther@suse.de>
6974 PR tree-optimization/71366
6975 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
6976 (unloop_loops): Move removing edges here ...
6977 (try_unroll_loop_completely): ... from here.
6978 (try_peel_loop): ... and here.
6979 (tree_unroll_loops_completely_1): Track parent loops via
6980 bitmap of header BBs.
6981 (tree_unroll_loops_completely): Adjust for that.
6983 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
6985 * config/rs6000/altivec.h (vec_slv): New macro.
6986 (vec_srv): New macro.
6987 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
6988 (UNSPEC_VSRV): New value.
6991 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
6992 (vsrv): New builtin definition.
6993 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
6994 define argument types for new builtin.
6995 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
6997 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
7000 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
7001 Jocelyn Mayer <l_indien@magic.fr>
7004 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
7005 detect processor family for signature_CENTAUR_ebx.
7006 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
7007 signature_CENTAUR_ebx.
7008 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
7009 <default>: Pass x86-64 for has_longmode.
7011 2016-06-01 Nathan Sidwell <nathan@acm.org>
7013 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
7016 2016-06-01 Richard Biener <rguenther@suse.de>
7018 PR tree-optimization/71261
7019 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
7020 of stmts successfully put in the bool pattern. Remove
7021 single-use restriction.
7022 (adjust_bool_pattern_cast): Add cast at the use site via the
7023 pattern def sequence.
7024 (adjust_bool_pattern): Remove recursion, maintain a hash-map
7025 of patterned defs. Use the pattern def seqence instead of
7026 multiple independent patterns.
7027 (sort_after_uid): New qsort compare function.
7028 (adjust_bool_stmts): New function to process stmts in the bool
7029 pattern in IL order.
7030 (vect_recog_bool_pattern): Adjust.
7031 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
7032 (ifcvt_walk_pattern_tree): Likewise.
7033 (stmt_is_root_of_bool_pattern): Likewise.
7034 (ifcvt_repair_bool_pattern): Likewise.
7035 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
7037 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
7039 * loop-unroll.c (decide_unroll_constant_iterations,
7040 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
7041 likely upper bounds.
7042 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
7044 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
7046 * tree-core.h (enum omp_clause_code): Remove
7047 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
7049 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7051 * config/arm/sync.md (arm_store_exclusive<mode>):
7052 Use 'H' output modifier on operands[2] rather than creating a new
7053 entry in out-of-bounds memory of the operands array.
7054 (arm_store_release_exclusivedi): Likewise.
7056 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7058 * config/arm/arm.c (arm_fusion_enabled_p): New function.
7059 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
7060 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
7061 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
7063 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
7065 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
7066 into account live statements for mask producers.
7068 2016-06-01 Richard Biener <rguenther@suse.de>
7070 PR tree-optimization/71311
7071 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
7072 restrict to non-INTEGER_CST @0.
7074 2016-06-01 Richard Biener <rguenther@suse.de>
7076 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
7077 (relational patterns): Use :c to avoid pattern duplications.
7079 2016-06-01 Richard Biener <rguenther@suse.de>
7081 * genmatch.c (comparison_code_p): New predicate.
7082 (swap_tree_comparison): New function.
7083 (commutate): Add for_vec parameter to append new for entries.
7084 Support commutating relational operators by swapping it alongside
7086 (lower_commutative): Adjust.
7087 (dt_simplify::gen): Do not pass artificial operators to gen
7089 (decision_tree::gen): Do not add artificial operators as parameters.
7090 (parser::parse_expr): Verify operator commutativity when :c is
7091 applied. Allow :C to override this.
7092 * match.pd: Adjust patterns to use :C instead of :c where required.
7094 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
7096 PR tree-optimization/71077
7097 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
7098 the combining step, use boolean_false_node and boolean_true_node
7099 as the designated false/true return values.
7101 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
7103 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
7104 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
7105 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
7108 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
7110 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
7111 of flags impliying the register renaming.
7112 * toplev.c (process_options): Do not imply flag_rename_registers with
7115 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
7117 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
7118 default implementation.
7120 2016-05-31 Nathan Sidwell <nathan@acm.org>
7122 * dwarf2out.c (cur_line_info_table): Add GTY marker.
7124 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
7126 * config/sh/constraints.md (b): Remove constraint.
7127 * config/sh/predicates.md (arith_reg_operand): Remove
7129 * config/sh/sh-modes.def (PDI): Remove.
7130 * config/sh/sh.c (sh_target_reg_class,
7131 sh_optimize_target_register_callee_saved): Remove functions.
7132 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
7133 (sh_expand_epilogue): Update comment.
7134 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
7135 sh_secondary_reload): Remove TARGET_REGS related code.
7136 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
7137 TARGET_REGISTER_P): Remove macros.
7138 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
7139 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
7140 TR1_REG, TR2_REG): Remove constants.
7141 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
7143 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
7145 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
7146 define_expand patterns.
7147 (adddi3_compact): Rename to adddi3.
7148 (subdi3_compact): Rename to subdi3.
7149 (*negdi2): Rename to negdi2.
7150 (*abs<mode>2): Rename to abs<mode>2.
7152 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
7154 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
7155 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
7156 (atomic_sub_fetchsi): ... this new pattern.
7157 (mvtc): Add CC_REG clobber.
7159 2016-05-31 Marek Polacek <polacek@redhat.com>
7161 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
7163 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7165 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
7166 aarch64_fusion_enabled_p to check for fusion capabilities.
7168 2016-05-31 Richard Biener <rguenther@suse.de>
7170 PR tree-optimization/71352
7171 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
7172 minus one and a negate.
7174 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7176 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
7177 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
7179 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
7180 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
7181 Remove use of aarch64_simd_attr_length_move, set length attribute
7183 (*aarch64_be_movoi): Likewise.
7184 (*aarch64_be_movci): Likewise.
7185 (*aarch64_be_movxi): Likewise.
7187 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
7189 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
7190 It no longer does that.
7191 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
7193 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
7195 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
7196 attribute __unused__.
7198 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
7200 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
7201 * config/arm/arm.c (arm_arch_thumb1): Define.
7202 (arm_option_override): Initialize arm_arch_thumb1.
7203 * config/arm/arm.h (arm_arch_thumb1): Declare.
7204 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
7205 support Thumb-1 ISA.
7207 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
7210 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
7211 `Yv' for scalar operand.
7213 2016-05-31 Tom de Vries <tom@codesourcery.com>
7215 PR tree-optimization/69068
7216 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
7217 phis with more than two args.
7219 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
7221 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
7222 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
7225 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
7227 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
7229 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
7231 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
7232 cpu_32, cpu_64, tune_32 and tune_64.
7233 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
7235 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
7237 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
7239 2016-05-30 Andi Kleen <ak@linux.intel.com>
7241 * auto-profile.c (read_profile): Replace asserts with errors
7242 when file does not exist.
7243 * gcov-io.c (gcov_read_words): Dito.
7245 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
7247 * tree-cfg.c (print_loop): Print likely upper bounds.
7249 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
7251 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
7252 * opts.c (default_options): Enable peel loops at -O3.
7253 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
7254 (try_peel_loop): Do not re-peel already peeled loops;
7255 use likely upper bounds; fix profile updating.
7256 (pass_complete_unroll::execute): Initialize peeled_loops.
7258 2016-05-30 Martin Liska <mliska@suse.cz>
7260 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
7261 computed costs by frequency of BB they belong to.
7262 (get_scaled_computation_cost_at): New function.
7264 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
7265 Marc Glisse <marc.glisse@inria.fr>
7267 PR tree-optimization/71289
7268 * match.pd (-1 / B < A, A > -1 / B): New transformations.
7270 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
7272 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
7274 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
7276 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
7277 for peeled copies; avoid underflow when updating estimates; correctly
7280 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
7282 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
7283 r236875. Corrected oe3 to oe2 as obvious.
7285 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
7289 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
7290 that inserted stmt will not dominate stmts that defines its operand.
7291 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
7292 (rewrite_expr_tree_parallel): Likewise.
7294 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
7297 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
7298 all fields including stmt_to_insert are swapped.
7300 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
7302 * predict.h (force_edge_cold): Declare.
7303 * predict.c (force_edge_cold): New function.
7304 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
7306 (canonicalize_loop_induction_variables): Fix formating.
7308 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
7310 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
7311 (visium_expand_copysign): Use gen_int_mode directly.
7312 (visium_compute_frame_size): Minor tweaks.
7314 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
7316 * tree-vect-loop.c (vect_analyze_loop_2): Use
7317 likely_max_stmt_executions_int.
7319 2016-05-30 Tom de Vries <tom@codesourcery.com>
7321 PR tree-optimization/69067
7322 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
7324 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
7327 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
7328 New peepholes to remove unneeded fild/fistp pairs.
7329 (define_peephole2 atomic_loaddi_fpu): Ditto.
7331 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
7333 * predict.c (maybe_hot_frequency_p): Avoid division.
7335 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
7337 * doc/install.texi: Use https for shop.fsf.org.
7339 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
7341 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
7342 likely_max_stmt_executions_int.
7344 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
7346 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
7347 likely_max_stmt_executions_int.
7349 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
7351 * profile.c (compute_branch_probabilities): Do not report hitrates
7353 (branch_prob): Report hitrates here.
7354 * predict.c (gimple_predict_edge): Do not assert profile status;
7355 fix formatting issues.
7357 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
7359 * predict.c (edge_predicted_by_p): New function.
7360 (predict_paths_for_bb): Do not put multiple predictions of the same type
7363 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
7365 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
7368 2016-05-28 Alan Modra <amodra@gmail.com>
7370 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
7372 2016-05-28 Alan Modra <amodra@gmail.com>
7374 PR rtl-optimization/71275
7375 * ira.c (ira): Free dominance info.
7377 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
7379 * doc/sourcebuild.texi: New address for upstream Go repository.
7381 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7383 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
7384 (TARGET_ARM_V7M): Likewise.
7386 2016-05-26 Jeff Law <law@redhat.com>
7388 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
7389 (thread_across_edge): Remove calls to find_jump_threads_backwards.
7390 * passes.def: Add jump threading passes before DOM/VRP.
7391 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
7392 argument to a basic block from an edge. Remove tests which are
7394 (pass_data_thread_jumps, class pass_thread_jumps): New.
7395 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
7396 (make_pass_thread_jumps): Likewise.
7397 * tree-pass.h (make_pass_thread_jumps): Declare.
7399 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
7401 * config/visium/visium-protos.h (split_double_move): Rename into...
7402 (visium_split_double_move): ...this.
7403 (visium_split_double_add): Declare.
7404 * config/visium/visium.c (split_double_move): Rename into...
7405 (visium_split_double_move): ...this.
7406 (visium_split_double_add): New function.
7407 (visium_expand_copysign): Renumber operands for consistency.
7408 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
7409 (DFmode move splitter): Likewise.
7410 (*addi3_insn): Split by means of visium_split_double_add.
7411 (*adddi3_insn_flags): Delete.
7412 (*plus_plus_sltu<subst_arith>): New insn.
7413 (*subdi3_insn): Split by means of visium_split_double_add.
7414 (subdi3_insn_flags): Delete.
7415 (*minus_minus_sltu<subst_arith>): New insn.
7416 (*negdi2_insn): Split by means of visium_split_double_add.
7417 (*negdi2_insn_flags): Delete.
7419 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
7421 * configure.ac: Treat a --with-headers option without argument
7422 the same as the default (i.e. consult sys-include directory).
7423 * configure: Regenerate.
7425 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7427 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
7428 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
7430 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
7431 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
7433 2016-05-27 Jiong Wang <jiong.wang@arm.com>
7436 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
7437 tree-stdarg analysis results.
7438 (aarch64_setup_incoming_varargs): Likewise.
7440 2016-05-27 Jiong Wang <jiong.wang@arm.com>
7442 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
7443 va_list_gpr_counter_field and va_list_fpr_counter_field.
7445 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
7448 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
7449 * config/aarch64/aarch64.c
7450 (aarch64_cannot_change_mode_class): Remove function.
7451 * config/aarch64/aarch64-protos.h
7452 (aarch64_cannot_change_mode_class): Remove.
7454 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
7456 * cfgloop.c (record_niter_bound): Record likely upper bounds.
7457 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
7458 get_likely_max_loop_iterations_int): New.
7459 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
7460 any_likely_upper_bound.
7461 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
7463 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
7464 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
7466 (unroll_loop_constant_iterations): Likewise.
7467 (unroll_loop_runtime_iterations): Likewise.
7468 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
7469 * lto-streamer-out.c (output_cfg): Likewise.
7470 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
7472 (canonicalize_loop_induction_variables): Dump likely upper bounds.
7473 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
7474 (likely_max_loop_iterations): New.
7475 (likely_max_loop_iterations_int): New.
7476 (likely_max_stmt_executions): New.
7477 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
7478 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
7479 likely_max_stmt_executions): Declare.
7481 2016-05-27 Marek Polacek <polacek@redhat.com>
7484 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
7486 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7488 * config/s390/s390.md (2x risbg splitters): Use
7489 reg_overlap_mentioned_p instead of rtx_equal_p.
7491 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
7493 * combine.c (make_compound_operation): Take known zero bits into
7494 account when checking for possible zero_extend.
7496 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7498 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
7499 Use const_int_operand for operand 2 predicate. Simplify expand code
7502 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
7505 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
7508 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7510 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
7511 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
7512 that returns CC_SESWPmode and CC_ZESWPmode.
7513 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
7515 (aarch64_rtx_costs): Likewise.
7517 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7519 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
7520 for ISA 3.0 min/max support.
7521 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
7522 conditional move support.
7523 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
7524 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
7526 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
7527 conditional moves where the comparison type is different from move
7529 (fp_minmax): New code iterator for smin/smax.
7530 (minmax): New code attributes for min/max.
7531 (SMINMAX): Likewise.
7532 (smax<mode>3): Combine min, max insns into one insn using the
7533 fp_minmax code iterator. Add support for ISA 3.0 min/max
7534 instructions that don't need -ffast-math.
7535 (s<minmax><mode>3): Likewise.
7536 (smax<mode>3_vsx): Likewise.
7537 (smin<mode>3): Likewise.
7538 (s<minmax><mode>3_vsx): Likewise.
7539 (smin<mode>3_vsx): Likewise.
7540 (pre-VSX min/max splitters): Likewise.
7541 (s<minmax><mode>3_fpr): Likewise.
7542 (movsfcc): Rewrite floating point conditional moves to combine
7543 SFmode/DFmode into a single insn.
7544 (mov<mode>cc): Likewise.
7545 (movdfcc): Likewise.
7546 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
7547 SFDF2 iterators to handle all combinations.
7548 (fseldfsf4): Likewise.
7549 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
7550 (fseldfdf4): Likewise.
7551 (fselsfdf4): Likewise.
7552 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
7553 comparison instructions that set a 0/-1 mask, and use it for
7554 floating point conditional move via XXSEL.
7555 (fpmask<mode>): Likewise.
7556 (xxsel<mode>): Likewise.
7557 * config/rs6000/predicates.md (min_max_operator): Delete, no
7559 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
7560 instructions that generate a 0/-1 mask for use with XXSEL.
7561 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
7562 say whether floating point min/max is available, either through
7563 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
7564 (TARGET_MINMAX_DF): Likewise.
7566 2016-05-27 Alan Modra <amodra@gmail.com>
7568 PR rtl-optimization/71275
7569 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
7570 for update_equiv_regs and combine_and_move_insns.
7572 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
7574 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
7575 if_then_else or cond RTXes to calculate attribute value.
7576 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
7577 <attr "length_immediate>: Ditto.
7578 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
7579 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
7580 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
7581 <attr "type">: Ditto.
7582 <attr "prefix_data16">: Ditto.
7583 <attr "prefix_extra">: Ditto.
7584 <attr "length_immediate">: Ditto.
7585 <attr "prefix">: Ditto.
7586 (vec_set<mode>_0) <attr "isa">: Ditto.
7587 <attr "prefix_extra">: Ditto.
7588 <attr "length_immediate">: Ditto.
7589 <attr "prefix">: Ditto.
7590 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
7591 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
7592 (sse2_storelpd) <attr "prefix_data16">: Ditto.
7593 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
7594 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
7595 <attr "length_immediate">: Ditto.
7596 <attr "prefix">: Ditto.
7597 (sse2_movsd) <attr "length_immediate">: Ditto.
7598 <attr "prefix">: Ditto.
7599 (vec_concatv2df) <attr "isa">: Ditto.
7600 <attr "prefix">: Ditto.
7601 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
7602 (*vec_extractv2di_1) <attr "isa">: Ditto.
7603 <attr "type">: Ditto.
7604 <attr "length_immediate">: Ditto.
7605 <attr "prefix_rex">: Ditto.
7606 <attr "prefix_extra">: Ditto.
7607 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
7608 <attr "prefix_extra">: Ditto.
7609 <attr "length_immediate">: Ditto.
7610 (vec_concatv2di) <attr "isa">: Ditto.
7611 <attr "prefix_extra">: Ditto.
7612 <attr "length_immediate">: Ditto.
7613 <attr "prefix">: Ditto.
7615 2016-05-26 Martin Liska <mliska@suse.cz>
7617 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
7619 (operator+): Likewise.
7620 (operator-): Likewise.
7621 (comp_cost::operator+=): Likewise.
7622 (comp_cost::operator-=): Likewise.
7623 (comp_cost::operator/=): Likewise.
7624 (comp_cost::operator*=): Likewise.
7625 (operator<): Likewise.
7626 (operator==): Likewise.
7627 (operator<=): Likewise.
7629 (infinite_cost_p): Likewise.
7630 (add_costs): Likewise.
7631 (sub_costs): Likewise.
7632 (compare_costs): Likewise.
7633 (set_group_iv_cost): Use the newly introduced functions.
7634 (get_address_cost): Likewise.
7635 (get_shiftadd_cost): Likewise.
7636 (force_expr_to_var_cost): Likewise.
7637 (split_address_cost): Likewise.
7638 (ptr_difference_cost): Likewise.
7639 (difference_cost): Likewise.
7640 (get_computation_cost_at): Likewise.
7641 (determine_group_iv_cost_generic): Likewise.
7642 (determine_group_iv_cost_address): Likewise.
7643 (determine_group_iv_cost_cond): Likewise.
7644 (autoinc_possible_for_pair): Likewise.
7645 (determine_group_iv_costs): Likewise.
7646 (cheaper_cost_pair): Likewise.
7647 (iv_ca_recount_cost): Likewise.
7648 (iv_ca_set_no_cp): Likewise.
7649 (iv_ca_set_cp): Likewise.
7650 (iv_ca_cost): Likewise.
7651 (iv_ca_new): Likewise.
7652 (iv_ca_dump): Likewise.
7653 (iv_ca_narrow): Likewise.
7654 (iv_ca_prune): Likewise.
7655 (iv_ca_replace): Likewise.
7656 (try_add_cand_for): Likewise.
7657 (try_improve_iv_set): Likewise.
7658 (find_optimal_iv_set): Likewise.
7660 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
7662 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
7663 that internal functions will clobber all caller-saved registers.
7665 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
7667 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
7668 Return a better case_values_threshold when optimizing.
7670 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
7672 * config/aarch64/aarch64-simd.md (aarch64_combinez):
7673 Add ? to integer variant.
7674 (aarch64_combinez_be): Likewise.
7676 2016-05-26 Jakub Jelinek <jakub@redhat.com>
7678 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
7679 instead of x constraint.
7680 (vcvtps2ph256<mask_name>): Likewise.
7682 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
7683 alternative. Formatting fix.
7685 * config/i386/sse.md
7686 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
7688 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
7689 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
7690 maybe_evex prefix instead of vex.
7691 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
7692 EXT_REX_SSE_REG_P (op0) case in the splitter.
7694 2016-05-25 Jeff Law <law@redhat.com>
7696 PR tree-optimization/71272
7697 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
7698 Update comments. Add test for empty path.
7700 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
7702 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
7703 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
7704 special case builtin.
7705 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
7706 code for ALTIVEC_BUILTIN_VEC_CMPNE.
7707 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
7708 for __builtin_vec_cmpne.
7710 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
7712 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
7713 redundant test and bail out if the type of the new operand is not
7714 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
7716 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
7718 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
7719 (x_ix86_target_flags_explicit): Remove.
7720 * config/i386/i386.c (ix86_function_specific_save): Do not copy
7721 x_ix86_target_flags_explicit.
7722 (ix86_function_specific_restore): Ditto.
7724 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
7725 H.J. Lu <hongjiu.lu@intel.com>
7728 * common/config/i386/i386-common.c
7729 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
7730 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
7731 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
7732 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
7733 (-mgeneral-regs-only): Add new option.
7734 * config/i386/i386.c (ix86_option_override_internal): Don't enable
7735 x87 instructions if only general registers are allowed.
7736 (ix86_target_string): Add ix86_flags argument. Handle additional
7737 flags options through ix86_flags argument. Update all callers.
7738 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
7740 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7742 PR rtl-optimization/66940
7743 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
7744 decrementing desired_val will not overflow before performing these
7747 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
7749 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
7750 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
7751 * config/i386/i386.c (enum ix86_builtins): Add
7752 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
7753 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
7754 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
7755 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
7756 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
7757 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
7758 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
7759 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
7760 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
7761 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
7762 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
7763 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
7764 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
7765 __builtin_ia32_cvtps2dq512_mask.
7766 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
7767 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
7768 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
7769 * config/i386/sse.md
7770 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
7772 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
7773 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
7775 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
7776 (avx512f_vec_pack_sfix_v8df): New define_expand.
7777 (avx512f_roundpd512): Rename to ...
7778 (avx512f_round<castmode>512): ... this. Change iterator.
7779 (avx512f_roundps512_sfix): New define_expand.
7780 (round<mode>2_sfix): Change iterator.
7782 2016-05-25 Nick Clifton <nickc@redhat.com>
7784 * config/msp430/msp430.c (msp430_attr): Produce an error if a
7785 static interrupt handler is detected.
7786 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
7787 default linker script.
7788 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
7789 the low part of a symbolic pointer.
7791 2016-05-25 Richard Biener <rguenther@suse.de>
7793 PR tree-optimization/71261
7794 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
7795 interesting stmt instead of immediate uses when looking
7796 for the use operand to replace.
7798 2016-05-25 Martin Liska <mliska@suse.cz>
7800 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
7802 2016-05-25 Richard Biener <rguenther@suse.de>
7804 PR tree-optimization/71264
7805 * tree-vect-stmts.c (vect_init_vector): Properly deal with
7808 2016-05-25 Martin Liska <mliska@suse.cz>
7810 PR tree-optimization/71239
7811 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
7812 if DECL_SIZE is NULL.
7814 2016-05-25 Richard Biener <rguenther@suse.de>
7816 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
7817 * tree-if-conv.c (pass_data_if_conversion): Use it.
7819 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
7821 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
7822 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
7823 * varpool.c (varpool_node::get_availability): Likewise.
7825 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
7827 * config/rs6000/altivec.md (VNEG iterator): New iterator for
7828 VNEGW/VNEGD instructions.
7829 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
7830 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
7831 support for ISA 3.0 VNEGW/VNEGD instructions.
7833 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
7835 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
7836 pointers inside OACC_DATA regions.
7837 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
7838 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
7839 (gimplify_adjust_omp_clauses): Fix typo in comment.
7841 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
7843 * config/rs6000/altivec.md (VParity): New mode iterator for vector
7844 parity built-in functions.
7845 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
7847 (p9v_parity<mode>2): Likewise.
7848 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
7850 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
7851 (parity<mode>2): ISA 3.0 expander for vector parity.
7852 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
7854 (BU_P9_64BIT_MISC_0): Likewise.
7855 (BU_P9_MISC_0): Likewise.
7856 (BU_P9V_AV_1): Likewise.
7857 (BU_P9V_AV_2): Likewise.
7858 (BU_P9V_AV_3): Likewise.
7859 (BU_P9V_AV_P): Likewise.
7860 (BU_P9V_VSX_1): Likewise.
7861 (BU_P9V_OVERLOAD_1): Likewise.
7862 (BU_P9V_OVERLOAD_2): Likewise.
7863 (BU_P9V_OVERLOAD_3): Likewise.
7864 (VCTZB): Add vector count trailing zeros support.
7868 (VPRTYBD): Add vector parity support.
7869 (VPRTYBQ): Likewise.
7870 (VPRTYBW): Likewise.
7871 (VCTZ): Add overloaded vector count trailing zeros support.
7872 (VPRTYB): Add overloaded vector parity support.
7873 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7874 overloaded vector count trailing zeros and parity instructions.
7875 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
7876 vector parity support.
7877 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
7878 trailing zeros support.
7879 (vec_cntlz): Likewise.
7880 (vec_vctzb): Likewise.
7881 (vec_vctzd): Likewise.
7882 (vec_vctzh): Likewise.
7883 (vec_vctzw): Likewise.
7884 (vec_vprtyb): Add ISA 3.0 vector parity support.
7885 (vec_vprtybd): Likewise.
7886 (vec_vprtybw): Likewise.
7887 (vec_vprtybq): Likewise.
7888 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7889 the ISA 3.0 vector count trailing zeros and vector parity built-in
7892 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
7894 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
7895 when there is stmt_to_insert.
7897 2016-05-24 Martin Sebor <msebor@redhat.com>
7900 * tree.h (complete_or_array_type_p): New inline function.
7902 2016-05-24 Jakub Jelinek <jakub@redhat.com>
7904 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
7905 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
7906 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
7908 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
7909 Limit 1st alternative to noavx isa, split 2nd alternative into one
7910 noavx and one avx alternative, use *x and Bm in the former and
7911 x and m in the latter.
7913 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
7914 of sse4 for the first alternative, drop %v from the template
7915 and d operand modifier. Split second alternative into one sse4_noavx
7916 and one avx alternative, use *x instead of *v in the former and v
7917 instead of *v in the latter.
7918 (*sse4_1_extractps): Use noavx isa instead of * for the first
7919 alternative, drop %v from the template. Split second alternative into
7920 one noavx and one avx alternative, use *x instead of *v in the
7921 former and v instead of *v in the latter.
7922 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
7923 with noavx and the last one with avx.
7924 (sse4_1_phminposuw): Guard first alternative with noavx isa,
7925 split the second one into one noavx and one avx alternative,
7926 use *x and Bm in the former and x and m in the latter one.
7927 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
7930 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
7931 first two alternatives to noavx, use *x instead of *v in the second
7932 one, add avx alternative without *.
7933 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
7934 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
7935 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
7937 2016-05-24 Jeff Law <law@redhat.com>
7939 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
7940 New function, extracted from...
7941 (fsm_find_control_statement_thread_paths): Here. Use the new function.
7942 Allow simple copies and constant initializations in the SSA chain.
7944 2016-05-24 Marek Polacek <polacek@redhat.com>
7947 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
7950 2016-05-24 Jakub Jelinek <jakub@redhat.com>
7953 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
7954 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
7955 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
7956 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
7957 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
7959 2016-05-24 Richard Biener <rguenther@suse.de>
7961 PR tree-optimization/71240
7962 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
7965 2016-05-24 Richard Biener <rguenther@suse.de>
7967 PR tree-optimization/71230
7968 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
7970 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
7972 * tree-vectorizer.h (vectorizable_comparison): Delete.
7973 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
7974 PURE_SLP_STMT check.
7975 * tree-vect-stmts.c (vectorizable_call): Likewise.
7976 (vectorizable_simd_clone_call): Likewise.
7977 (vectorizable_conversion): Likewise.
7978 (vectorizable_assignment): Likewise.
7979 (vectorizable_shift): Likewise.
7980 (vectorizable_operation): Likewise.
7981 (vectorizable_load): Likewise.
7982 (vectorizable_condition): Likewise.
7983 (vectorizable_store): Likewise. Assert that we don't have
7985 (vectorizable_comparison): Make static. Remove redundant
7986 PURE_SLP_STMT check.
7987 (vect_transform_stmt): Assert that we always have an slp_node
7990 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7992 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
7993 operands[2] against 1 with comparison against CONST1_RTX.
7994 (<shift>di3_neon): Likewise.
7995 * config/arm/predicates.md (const0_operand): Replace with comparison
7998 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8000 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
8001 operands[2] against 1 with comparison against CONST1_RTX.
8002 (ashrdi3): Likewise.
8003 (lshrdi3): Likewise.
8004 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
8006 (ashrsi3): Likewise.
8007 (lshrsi3): Likewise.
8008 (rotrsi3): Likewise.
8009 (define_split above *compareqi_eq0): Likewise.
8010 (define_split above "prologue"): Likewise.
8011 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
8012 * config/arm/predicates.md (shift_operator): Likewise.
8013 (shift_nomul_operator): Likewise.
8014 (sat_shift_operator): Likewise.
8015 (thumb1_cmp_operand): Likewise.
8016 (const_neon_scalar_shift_amount_operand): Replace manual range
8017 check with IN_RANGE.
8018 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
8019 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
8021 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8023 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
8024 with HOST_WIDE_INT_1.
8026 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
8027 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
8028 (arm_canonicalize_comparison): Likewise.
8029 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
8031 (thumb1_size_rtx_costs): Likewise.
8032 (vfp_const_double_index): Replace cast of 1 to unsigned
8033 HOST_WIDE_INT with HOST_WIDE_INT_1U.
8034 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
8036 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
8037 HOST_WIDE_INT with HOST_WIDE_INT_1U.
8038 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
8039 HOST_WIDE_INT with HOST_WIDE_INT_1.
8041 2016-05-24 Marek Polacek <polacek@redhat.com>
8043 * tree-cfg.h (should_remove_lhs_p): New predicate.
8044 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
8045 * gimplify.c (gimplify_modify_expr): Likewise.
8046 * tree-cfg.c (verify_gimple_call): Likewise.
8047 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
8048 * gimple-fold.c: Include "tree-cfg.h".
8049 (gimple_fold_call): Use should_remove_lhs_p.
8051 2016-05-24 Richard Biener <rguenther@suse.de>
8053 PR tree-optimization/71253
8054 * cfganal.h (control_dependences): Make robust against edge
8056 (control_dependences::control_dependences): Remove edge_list argument.
8057 (control_dependences::get_edge): Remove.
8058 (control_dependences::get_edge_src): Add.
8059 (control_dependences::get_edge_dest): Likewise.
8060 (control_dependences::m_el): Make a vector of edge src/dest index.
8061 * cfganal.c (control_dependences::find_control_dependence): Adjust.
8062 (control_dependences::control_dependences): Likewise.
8063 (control_dependences::~control_dependence): Likewise.
8064 (control_dependences::get_edge): Remove.
8065 (control_dependences::get_edge_src): Add.
8066 (control_dependences::get_edge_dest): Likewise.
8067 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
8069 (perform_tree_ssa_dce): Adjust.
8070 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
8072 (pass_loop_distribution::execute): Adjust. Do loop destroying
8073 conditional on changed.
8075 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8078 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
8079 return. Reindent transformation comment and mention the ARM state
8082 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
8085 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
8086 after build_and_add_sum creates new use stmt.
8088 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
8090 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
8091 load_lanes/grouped_load classification comes first. Don't check
8092 whether the vectorization factor is a multiple of the group size
8095 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
8097 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
8098 GROUP_GAP for single-element interleaving.
8099 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
8102 2016-05-24 Richard Biener <rguenther@suse.de>
8106 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
8107 bases which are accessed with non-invariant indices.
8108 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
8109 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
8111 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
8114 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
8115 (add_to_ops_vec): Add stmt_to_insert.
8116 (add_repeat_to_ops_vec): Init stmt_to_insert.
8117 (insert_stmt_before_use): New.
8118 (transform_add_to_multiply): Remove mult_stmt insertion and add it
8120 (get_ops): Init stmt_to_insert.
8121 (maybe_optimize_range_tests): Likewise.
8122 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
8123 (rewrite_expr_tree_parallel): Likewise.
8124 (reassociate_bb): Likewise.
8126 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
8129 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
8130 ISA 3.0 xxperm fusion alternative.
8131 (altivec_vperm_v8hiv16qi): Likewise.
8132 (altivec_vperm_<mode>_uns_internal): Likewise.
8133 (vperm_v8hiv4si): Likewise.
8134 (vperm_v16qiv8hi): Likewise.
8136 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
8137 Kelvin Nilsen <kelvin@gcc.gnu.org>
8139 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
8140 vpermr/xxpermr on ISA 3.0.
8141 (altivec_expand_vec_perm_le): Likewise.
8142 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
8143 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
8146 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
8148 * config/i386/i386.h (IS_STACK_MODE): Enable for
8149 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
8150 SSE_FLOAT_MODE_P macros.
8151 * config/i386/i386.c (ix86_preferred_reload_class): Use
8152 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
8153 Cleanup regclass processing for CONST_DOUBLE_P.
8154 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
8155 (ix86_rtx_costs): Remove redundant TARGET_80387 check
8156 with IS_STACK_MODE macro.
8157 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
8159 (*movdf_internal): Use IS_STACK_MODE macro.
8160 (*movsf_internal): Ditto.
8162 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
8164 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
8165 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
8167 2016-05-23 Jeff Law <law@redhat.com>
8169 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
8171 (fsm_find_control_statement_thread_paths): Call it.
8173 2016-05-23 Martin Jambor <mjambor@suse.cz>
8176 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
8177 from_global_constant if t is not NULL.
8179 2016-05-23 Marek Polacek <polacek@redhat.com>
8182 * common.opt (Wswitch-unreachable): New option.
8183 * doc/invoke.texi: Document -Wswitch-unreachable.
8184 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
8187 2016-05-23 Bin Cheng <bin.cheng@arm.com>
8189 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
8190 TMR_INDEX is non-NULL.
8192 2016-05-23 Richard Biener <rguenther@suse.de>
8194 PR tree-optimization/71230
8195 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
8196 (try_special_add_to_ops): ... here. Always test for single-use.
8198 2016-05-23 Martin Jambor <mjambor@suse.cz>
8200 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
8201 default block if a PHI node in the original one would be resized.
8203 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8205 PR tree-optimization/58135
8206 * tree-vect-slp.c: When group size is not multiple
8207 of vector size, allow splitting of store group at
8210 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
8212 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
8214 2016-05-22 Jakub Jelinek <jakub@redhat.com>
8216 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
8217 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
8218 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
8221 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
8222 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
8223 v constraint instead of x and vinserti32x4 insn.
8225 * config/i386/sse.md (i128vldq): New mode iterator.
8226 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
8227 avx512dq and avx512vl alternatives.
8229 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
8230 constraint, use maybe_evex prefix instead of vex.
8231 (vec_dupv4sf): Use v constraint instead of x for output
8232 operand except for noavx alternative, use Yv constraint
8233 instead of x for input. Use maybe_evex prefix instead of vex.
8234 (*vec_dupv4si): Likewise.
8235 (*vec_dupv2di): Likewise.
8237 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
8240 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
8241 (linearize_expr_tree): Call try_special_add_to_ops.
8242 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
8244 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8246 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
8247 to computed stack_usage.
8249 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8252 * config/avr/avr.md (define_expand "mov<mode>"): If the source
8253 operand is subreg (symbol_ref) then move the symbol ref to register.
8255 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
8257 * tree.c (array_at_struct_end_p): Look through MEM_REF.
8259 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
8262 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
8265 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
8267 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
8268 ranges by calling get_single_symbol and tidy up. Look more closely
8269 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
8271 2016-05-20 Jeff Law <law@redhat.com>
8273 * bitmap.c (bitmap_find_bit): Remove useless test.
8275 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
8277 * function.c (thread_prologue_and_epilogue_insns): Commit the
8278 insertion of the epilogue.
8280 2016-05-20 Martin Jambor <mjambor@suse.cz>
8282 PR tree-optimization/70884
8283 * tree-sra.c (initialize_constant_pool_replacements): Do not check
8284 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
8285 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
8286 of constant pool data as a reason for scalarization.
8288 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
8290 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
8291 for naked functions.
8292 (thumb1_expand_prologue): Likewise.
8294 2016-05-20 Nathan Sidwell <nathan@acm.org>
8296 * config/nvptx/nptx.c (nvptx_option_override): Only set
8297 flag_toplevel_reorder, if not explicitly specified. Set
8298 flag_no_common, unless explicitly specified.
8300 2016-05-20 David Malcolm <dmalcolm@redhat.com>
8302 * calls.c (can_implement_as_sibling_call_p): Mark param
8303 reg_parm_stack_space with ATTRIBUTE_UNUSED.
8305 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
8307 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
8308 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
8309 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
8311 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
8312 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
8315 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
8317 * config/nvptx/nvptx.md (sincossf3): New pattern.
8319 2016-05-20 David Malcolm <dmalcolm@redhat.com>
8321 * calls.c (maybe_complain_about_tail_call): New function.
8322 (initialize_argument_information): Call
8323 maybe_complain_about_tail_call when clearing *may_tailcall.
8324 (can_implement_as_sibling_call_p): Call
8325 maybe_complain_about_tail_call when returning false.
8326 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
8327 ensure try_tail_call is set. Call maybe_complain_about_tail_call
8328 if tail-call optimization fails.
8329 * cfgexpand.c (expand_call_stmt): Initialize
8330 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
8331 * gimple-pretty-print.c (dump_gimple_call): Dump
8332 gimple_call_must_tail_p.
8333 * gimple.c (gimple_build_call_from_tree): Call
8334 gimple_call_set_must_tail with the value of
8335 CALL_EXPR_MUST_TAIL_CALL.
8336 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
8337 (gimple_call_set_must_tail): New function.
8338 (gimple_call_must_tail_p): New function.
8339 * print-tree.c (print_node): Update printing of TREE_STATIC
8340 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
8341 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
8342 trailing comment listing applicable flags.
8343 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
8345 2016-05-20 David Malcolm <dmalcolm@redhat.com>
8347 * calls.c (expand_call): Move "Rest of purposes for tail call
8348 optimizations to fail" to...
8349 (can_implement_as_sibling_call_p): ...this new function, and
8350 split into multiple "if" statements.
8352 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
8354 * cfgloop.h (expected_loop_iterations_unbounded,
8355 expected_loop_iterations): Unconstify.
8356 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
8357 profile with known upper bound; return 3 when profile is absent.
8358 (expected_loop_iterations): Update.
8360 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
8362 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
8363 and get_max_loop_iterations_int.
8365 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
8367 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
8368 realistic upper bounds here.
8370 2016-05-20 Jakub Jelinek <jakub@redhat.com>
8373 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
8374 calls if the LHS is variable length or has addressable type.
8375 If targets[0]->decl is a noreturn call with void return type and
8376 zero arguments, adjust fntype and remove lhs in that case.
8378 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
8380 PR tree-optimization/71079
8381 PR tree-optimization/71206
8382 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
8384 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8386 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
8387 (get_vec_alignment_for_array_decl): Likewise.
8388 (get_vec_alignment_for_record_decl): Likewise.
8389 (increase_alignment::execute): Move code to find alignment to
8390 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
8391 (type_align_map): New hash_map.
8393 2016-05-20 Richard Guenther <rguenther@suse.de>
8395 PR tree-optimization/29756
8396 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
8397 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
8398 * fold-const.c (operand_equal_p): Likewise.
8399 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
8400 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
8401 * tree-inline.c (estimate_operator_cost): Likewise.
8402 * tree-pretty-print.c (dump_generic_node): Likewise.
8403 * tree-ssa-operands.c (get_expr_operands): Likewise.
8404 * cfgexpand.c (expand_debug_expr): Likewise.
8405 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
8406 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
8407 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
8408 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
8409 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
8410 (execute_update_addresses_taken): Do it.
8412 2016-05-20 Richard Biener <rguenther@suse.de>
8414 PR tree-optimization/71185
8415 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
8416 register operations.
8418 2016-05-20 Richard Biener <rguenther@suse.de>
8420 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
8421 gimple_seq_add_seq_without_update.
8422 (release_bb_predicate): Assert we have no operands to free.
8423 (if_convertible_loop_p_1): Calculate post dominators later.
8424 Do not free BB predicates here.
8425 (combine_blocks): Do not recompute BB predicates.
8426 (version_loop_for_if_conversion): Save BB predicates around
8429 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8431 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
8432 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
8433 code. Ignore sibcalls on EDGE_IGNORE edges.
8434 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
8435 on edges for sibcalls that run without prologue. The rest of the
8436 function is combined from...
8437 (fix_fake_fallthrough_edge): ... this, and ...
8438 (try_shrink_wrapping): ... a part of this. Remove the bb_with
8439 function argument, make it a local variable.
8441 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
8443 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
8444 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
8445 for 32-bit mode and SEH for 64-bit.
8446 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
8447 TARGET_64BIT_DEFAULT.
8449 2016-05-19 Ryan Burn <contact@rnburn.com>
8451 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
8452 * gengtype.c (open_base_files): Add cilk.h to ifiles.
8454 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
8456 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
8457 force pending loads from memory.
8459 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
8461 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
8462 (UNSPEC_DARN_32): New unspec constant.
8463 (UNSPEC_DARN_RAW): New unspec constant.
8464 (darn_32): New instruction.
8465 (darn_raw): New instruction.
8466 (darn): New instruction.
8467 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
8468 support and documentation for this macro.
8469 (BU_P9_MISC_1): New macro definition.
8470 (BU_P9_64BIT_MISC_0): New macro definition.
8471 (BU_P9_MISC_0): New macro definition.
8472 (darn_32): New builtin definition.
8473 (darn_raw): New builtin definition.
8474 (darn): New builtin definition.
8475 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
8476 RS6000_BUILTIN_0 directives to surround each occurrence of
8477 #include "rs6000-builtin.def".
8478 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
8479 RS6000_BTM_64BIT flags to the returned mask, depending on
8481 (def_builtin): Correct an error in the assignments made to the
8482 debugging variable attr_string.
8483 (rs6000_expand_builtin): Add support for no-operand built-in
8485 (builtin_function_type): Remove fatal_error assertion that is no
8487 (rs6000_common_init_builtins): Add support for no-operand built-in
8489 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
8491 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
8493 (RS6000_BTM_64BIT): New macro definition.
8494 * doc/extend.texi: Document __builtin_darn (void),
8495 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
8498 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
8500 * tree-vect-loop.c (vect_analyze_loop_2): Use also
8501 max_loop_iterations_int.
8503 2016-05-19 Marek Polacek <polacek@redhat.com>
8505 PR tree-optimization/71031
8506 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
8507 condition and adjust the code a bit.
8509 2016-05-19 Martin Liska <mliska@suse.cz>
8511 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
8512 auto_vec instead of vec.
8514 2016-05-19 Martin Liska <mliska@suse.cz>
8516 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
8518 2016-05-19 Martin Liska <mliska@suse.cz>
8520 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
8522 2016-05-19 Martin Liska <mliska@suse.cz>
8524 * ipa-pure-const.c (set_function_state): Remove an existing
8526 (remove_node_data): Do not free it as it's released
8527 in set_function_state.
8529 2016-05-19 Martin Liska <mliska@suse.cz>
8531 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
8534 2016-05-19 Martin Liska <mliska@suse.cz>
8536 * omp-simd-clone.c (simd_clone_adjust): Release vector.
8538 2016-05-19 Martin Liska <mliska@suse.cz>
8540 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
8541 an auto_vec instead of re-creating it.
8543 2016-05-19 Martin Liska <mliska@suse.cz>
8545 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
8546 auto_vec instead of vec.
8548 2016-05-19 Martin Liska <mliska@suse.cz>
8550 * lto-section-in.c (lto_get_section_data): Call
8551 lto_check_version with additional argument.
8552 * lto-streamer.c (lto_check_version): Add new argument.
8553 * lto-streamer.h (lto_check_version): Likewise.
8555 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8557 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
8558 Don't add cost of inner memory when handling sign-extended loads.
8560 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
8562 PR rtl-optimization/71148
8563 * cse.c (cse_main): Free dominance info.
8564 (rest_of_handle_cse): Don't free dominance info.
8565 (rest_of_handle_cse2): Likewise.
8566 (rest_of_handle_cse_after_global_opts): Likewise.
8568 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8571 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
8572 NULL_TREE early if NEON is not available. Remove now redundant check
8573 in ARM_CHECK_BUILTIN_MODE.
8575 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
8578 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
8579 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
8580 * doc/cpp.texi: Document new macros.
8582 2016-05-19 Bin Cheng <bin.cheng@arm.com>
8584 PR tree-optimization/69848
8585 * tree-vect-loop.c (vectorizable_reduction): Don't factor
8586 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
8588 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8590 * function.c (thread_prologue_and_epilogue_insn): Move the
8591 "goto epilogue_done" one block later.
8593 2016-05-19 Richard Biener <rguenther@suse.de>
8595 PR tree-optimization/70729
8596 * passes.def: Move LIM pass before PRE. Remove no longer
8597 required copyprop and move first DCE out of the loop pipeline.
8599 2016-05-18 David Malcolm <dmalcolm@redhat.com>
8602 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
8603 (OBJS-libcommon-target): ...here.
8604 * opts-common.c: Include spellcheck.h.
8605 (cmdline_handle_error): Build a vec of valid options and use it
8606 to suggest provide hints for misspelled arguments.
8608 2016-05-18 Jakub Jelinek <jakub@redhat.com>
8611 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
8612 lhs if it has TREE_ADDRESSABLE type.
8614 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
8617 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
8618 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
8620 2016-05-18 Martin Jambor <mjambor@suse.cz>
8623 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
8624 input for NOP_EXPR pass-through functions.
8625 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
8626 aggregate global constant VAR_DECLs in constant jump functions.
8628 2016-05-18 Martin Jambor <mjambor@suse.cz>
8631 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
8632 from TREE_READONLY parameters.
8634 2016-05-18 Martin Jambor <mjambor@suse.cz>
8637 * cgraph.h (cgraph_indirect_call_info): New field
8638 guaranteed_unmodified.
8639 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
8640 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
8642 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
8643 pass the parameter value to ipa_find_agg_cst_for_param.
8644 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
8645 guaranteed_unmodified, store AA results there instead of bailing out
8647 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
8648 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
8649 (find_constructor_constant_at_offset): New function.
8650 (ipa_find_agg_cst_from_init): Likewise.
8651 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
8652 static initializers of contants, report back through a new paameter
8653 from_global_constant if that was the case.
8654 (try_make_edge_direct_simple_call): Also pass parameter value to
8655 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
8657 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
8658 (ipa_read_indirect_edge_info): Likewise.
8659 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
8660 (ipa_load_from_parm_agg): Likewise.
8662 2016-05-18 Jiong Wang <jiong.wang@arm.com>
8664 PR rtl-optimization/71150
8665 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
8668 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
8671 * config/rs6000/constraints.md (wE constraint): New constraint
8672 for a vector constant that can be loaded with XXSPLTIB.
8673 (wM constraint): New constraint for a vector constant of a 1's.
8674 (wS constraint): New constraint for a vector constant that can be
8675 loaded with XXSPLTIB and a vector sign extend instruction.
8676 * config/rs6000/predicates.md (xxspltib_constant_split): New
8677 predicates for wE/wS constraints.
8678 (xxspltib_constant_nosplit): Likewise.
8679 (easy_vector_constant): Add support for constants that can be
8680 loaded via XXSPLTIB.
8681 (all_ones_constant): New predicate for vector constant with all
8683 (splat_input_operand): Add support for ISA 3.0 word splat operations.
8684 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
8685 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
8686 instruction and possibly with a sign extension.
8687 (output_vec_const_move): Add support for XXSPLTIB. If we are
8688 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
8689 instead of XXLXOR/XXLORC.
8690 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
8692 (rs6000_legitimize_reload_address): Likewise.
8693 (rs6000_output_move_128bit): Use output_vec_const_move to emit
8695 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
8696 combine VSX_M and VSX_M2 into one iterator.
8698 (VSINT_84): New iterators for loading constants with XXSPLTIB.
8699 (VSINT_842): Likewise.
8700 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
8701 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
8702 XXSPLTIB instruction.
8703 (xxspltib_<mode>_nosplit): Likewise.
8704 (xxspltib_<mode>_split): New insn to load up constants with
8705 XXSPLTIB and a sign extend instruction.
8706 (vsx_mov<mode>): Replace single move that handled all vector types
8707 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
8708 moves (when -mvsx-timode is in effect) into the main vector
8709 moves. Eliminate separate moves for <VSr> <VSa>, where the
8710 preferred register class (<VSr>) is listed first, and the
8711 secondary register class (<VSa>) is listed second with a '?' to
8712 discourage use. Prefer loading 0/-1 in any VSX register for ISA
8713 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
8714 that if the register was involved in a slow operation, the
8715 clear/set operation does not wait for the slow operation to
8716 finish. Adjust the length attributes for 32-bit mode. Use
8717 rs6000_output_move_128bit and drop the use of the string
8718 instructions for 32-bit movti when -mvsx-timode is in effect. Use
8719 spacing so that the alternatives and attributes don't generate
8720 long lines, and put things in columns, so that it is easier to
8721 match up the operands and attributes with the insn alternatives.
8722 (vsx_mov<mode>_64bit): Likewise.
8723 (vsx_mov<mode>_32bit): Likewise.
8724 (vsx_movti_64bit): Fold movti into normal vector moves.
8725 (vsx_movti_32bit): Likewise.
8726 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
8728 (vsx_splat_v4si_internal): Likewise.
8729 (vsx_splat_v4sf_internal): Likewise.
8730 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
8731 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
8732 extend vector elements.
8733 (vsx_sign_extend_hi_<mode>): Likewise.
8734 (vsx_sign_extend_si_v2di): Likewise.
8735 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
8737 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
8738 constraints. Add trailing period to wL documentation.
8740 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
8743 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
8744 * tree-dfa.c (replace_abnormal_ssa_names): New function.
8745 * tree-call-cdce.c: Include tree-dfa.h.
8746 (can_guard_call_p): New function, extracted from...
8747 (can_use_internal_fn): ...here.
8748 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
8750 (shrink_wrap_one_built_in_call): Likewise.
8751 (use_internal_fn): Likewise.
8752 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
8753 and return void. Call replace_abnormal_ssa_names.
8754 (pass_call_cdce::execute): Check can_guard_call_p during the
8755 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
8756 will always change something.
8758 2016-05-18 Martin Jambor <mjambor@suse.cz>
8761 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
8762 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
8764 2016-05-18 Martin Jambor <mjambor@suse.cz>
8767 * ipa-inline.h (condition): New field size.
8768 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
8769 for comaprison and store it into the new condition.
8770 (evaluate_conditions_for_known_args): Use condition size to check
8771 access sizes for all but CHANGED conditions.
8772 (unmodified_parm_1): New parameter size_p, store access size into it.
8773 (unmodified_parm): Likewise.
8774 (unmodified_parm_or_parm_agg_item): Likewise.
8775 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
8776 (set_cond_stmt_execution_predicate): Extract access sizes and store
8778 (set_switch_stmt_execution_predicate): Likewise.
8779 (will_be_nonconstant_expr_predicate): Likewise.
8780 (will_be_nonconstant_predicate): Likewise.
8781 (inline_read_section): Stream condition size.
8782 (inline_write_summary): Likewise.
8784 2016-05-18 Richard Biener <rguenther@suse.de>
8786 * tree-ssa-loop-im.c (determine_max_movement): Properly add
8787 condition cost to PHI cost instead of total_cost.
8789 2016-05-18 Martin Liska <mliska@suse.cz>
8792 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
8795 2016-05-18 Richard Biener <rguenther@suse.de>
8797 * lto-streamer.h (LTO_major_version): Bump to 6.
8799 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
8801 * function.c (make_split_prologue_seq, make_prologue_seq,
8802 make_epilogue_seq): New functions, factored out from...
8803 (thread_prologue_and_epilogue_insns): Here.
8805 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
8807 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
8808 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
8809 of before. Add a comment.
8811 2016-05-18 Bin Cheng <bin.cheng@arm.com>
8813 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
8814 expression pointer, not pointer to the pointer.
8816 2016-05-18 Jakub Jelinek <jakub@redhat.com>
8818 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
8819 (avx2_pbroadcast<mode>): Add another alternative with v instead
8820 of x constraints in it, using <pbroadcast_evex_isa> isa.
8821 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
8823 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
8824 constraint x instead of v in second alternative, add avx512bw
8827 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
8828 constraint x instead of v in second alternative, add avx512bw
8831 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
8832 constraint x instead of v in second alternative, add avx512bw
8835 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
8836 avx512bw alternative.
8838 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
8840 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
8842 (define_insn "*andnottf3"): Ditto.
8843 (define_insn "*<code><mode>3"/any_logic): Ditto.
8844 (define_insn "*<code>tf3"/any_logic): Ditto.
8845 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
8846 operand to block AVX-512VL insn variant emit when it is not enabled.
8848 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
8850 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
8851 constraint fot SF mode.
8853 2016-05-18 Petr Murzin <petr.murzin@intel.com>
8854 Kirill Yukhin <kirill.yukhin@intel.com>
8856 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
8858 (define_insn "rsqrt14<mode>"): Ditto.
8859 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
8860 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
8861 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
8862 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
8863 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
8865 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
8866 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
8867 * config/i386/i386.c (ix86_print_operand): Expand check for size
8868 override codes for Intel syntax.
8870 2016-05-18 Richard Biener <rguenther@suse.de>
8872 PR tree-optimization/71168
8873 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
8874 initialization earlier.
8876 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
8878 * config/aarch64/aarch64-simd.md
8879 (aarch64_reduc_plus_internal<mode>): Rename to...
8880 (reduc_plus_scal): ...This, and remove previous implementation.
8882 2016-05-18 Richard Biener <rguenther@suse.de>
8884 * passes.def: Put late dse and cd_dce in canonical order.
8886 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
8888 * ipa-inline-transform.c (preserve_function_body_p): Look for
8889 first non-thunk clone.
8890 (save_function_body): Save into first non-thunk.
8891 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
8893 (lto_output_node): Inline thunks don't need body in every
8895 * lto-streamer-in.c: Do not fixup thunk clones.
8896 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
8898 * tree-inline.c (copy_bb): Be prepared for target node to be new after
8901 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
8904 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
8905 (reassociate_bb): Call transform_add_to_multiply.
8907 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
8909 * config/aarch64/aarch64.c (all_extensions): Removed unused
8912 2016-05-17 Nathan Sidwell <nathan@acm.org>
8914 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
8915 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
8917 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
8919 PR tree-optimization/54579
8921 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
8923 2016-05-17 Marek Polacek <polacek@redhat.com>
8926 * tree-inline.c (expand_call_inline): Call
8927 maybe_remove_unused_call_args.
8929 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
8931 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
8932 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
8933 * doc/md.texi (fmin@var{m}3): Likewise.
8935 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
8937 * match.pd (X & C): New transformation.
8939 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
8941 * match.pd (~X & Y): New transformation.
8943 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
8945 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
8946 information for new SSA_NAME.
8947 (simplify_conversion_using_ranges): Get range through get_range_info
8948 instead of get_value_range.
8950 2016-05-17 Jiong Wang <jiong.wang@arm.com>
8952 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
8953 Remove inline assembly.
8954 (vmvn_s16): Likewise.
8955 (vmvn_s32): Likewise.
8956 (vmvn_u8): Likewise.
8957 (vmvn_u16): Likewise.
8958 (vmvn_u32): Likewise.
8959 (vmvnq_s8): Likewise.
8960 (vmvnq_s16): Likewise.
8961 (vmvnq_s32): Likewise.
8962 (vmvnq_u8): Likewise.
8963 (vmvnq_u16): Likewise.
8964 (vmvnq_u32): Likewise.
8965 (vmvn_p8): Likewise.
8966 (vmvnq_p16): Likewise.
8968 2016-05-17 Jiong Wang <jiong.wang@arm.com>
8970 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
8972 (vmul_n_s16): Likewise.
8973 (vmul_n_s32): Likewise.
8974 (vmul_n_u16): Likewise.
8975 (vmul_n_u32): Likewise.
8976 (vmulq_n_f32): Likewise.
8977 (vmulq_n_f64): Likewise.
8978 (vmulq_n_s16): Likewise.
8979 (vmulq_n_s32): Likewise.
8980 (vmulq_n_u16): Likewise.
8981 (vmulq_n_u32): Likewise.
8983 2016-05-17 Jiong Wang <jiong.wang@arm.com>
8985 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
8986 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
8988 2016-05-17 Jiong Wang <jiong.wang@arm.com>
8990 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
8991 to *aarch64_fma4_elt_from_dup<mode>.
8992 (*aarch64_fnma4_elt_to_128df): Rename to
8993 *aarch64_fnma4_elt_from_dup<mode>.
8994 * config/aarch64/arm_neon.h (vfma_n_f64): New.
8995 (vfms_n_f32): Likewise.
8996 (vfms_n_f64): Likewise.
8997 (vfmsq_n_f32): Likewise.
8998 (vfmsq_n_f64): Likewise.
9000 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
9002 * wide-int.h: Change fixed_wide_int_storage from class to struct.
9004 2016-05-17 Richard Biener <rguenther@suse.de>
9006 PR tree-optimization/71132
9007 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
9008 Only add control dependences for blocks in the loop.
9009 (build_rdg): Adjust.
9010 (generate_code_for_partition): Return whether loop should
9011 be destroyed and delay that.
9012 (distribute_loop): Likewise.
9013 (pass_loop_distribution::execute): Record loops to be destroyed
9014 and perform delayed destroying of loops.
9016 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9019 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
9021 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
9023 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
9025 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
9028 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
9029 insertion point for instructions generated by validize_mem.
9031 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
9033 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
9036 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
9038 * config/aarch64/aarch64.c
9039 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
9040 rather than a macro.
9042 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
9044 * doc/invoke.texi (AArch64 Options): Various updates.
9046 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
9048 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
9049 into instrumentation thunks.
9050 * cif-code.def (CIF_CHKP): New.
9052 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
9054 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
9056 2016-05-16 Martin Jambor <mjambor@suse.cz>
9058 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
9059 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
9061 2016-05-16 Marek Polacek <polacek@redhat.com>
9063 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
9066 2016-05-16 Martin Jambor <mjambor@suse.cz>
9069 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
9070 the outlined kernel function.
9072 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
9074 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
9075 (ISA_HAS_DLSA): Ditto.
9077 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
9079 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
9081 2016-05-16 Nathan Sidwell <nathan@acm.org>
9083 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
9084 (nvptx_name_replacement): Restore. Add comment.
9085 (write_fn_proto, write_fn_proto_from_insn,
9086 nvptx_output_call_insn): Restore
9087 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
9089 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
9091 * config/aarch64/aarch64.md
9092 (add<mode>3_compareC_cconly_imm): Remove use of %w.
9093 (add<mode>3_compareC_imm): Likewise.
9094 (<optab>si3_uxtw): Split into register and immediate variants.
9095 (andsi3_compare0_uxtw): Likewise.
9096 (and<mode>3_compare0): Likewise.
9097 (and<mode>3nr_compare0): Likewise.
9098 (stack_protect_test_<mode>): Don't use %x for memory operands.
9100 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
9102 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
9104 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
9106 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
9107 Split integer shifts into shift_reg and bfm.
9108 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
9109 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
9110 (ror<mode>3_insn): Likewise.
9111 (<optab>si3_insn_uxtw): Likewise.
9112 (<optab><mode>3_insn): Change to rotate_imm.
9113 (extr<mode>5_insn_alt): Likewise.
9114 (extrsi5_insn_uxtw): Likewise.
9115 (extrsi5_insn_uxtw_alt): Likewise.
9117 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
9119 * doc/tm.texi: Regenerate.
9120 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
9121 (TARGET_INVALID_RETURN_TYPE): Remove.
9122 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
9123 TARGET_INVALID_RETURN_TYPE.
9124 * target.def (invalid_parameter_type): Remove.
9125 (invalid_return_type): Remove.
9127 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
9129 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
9130 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
9132 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
9134 (preserve_function_body_p): No need to preserve function body
9135 * cif-codes.def (CIF_THUNK): Remove.
9136 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
9138 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
9140 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
9142 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
9144 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
9147 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
9149 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
9150 (inline_small_functions): Do not look for function symbol when
9153 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
9155 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
9158 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
9159 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9160 Jiong Wang <jiong.wang@arm.com>
9162 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
9163 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
9164 Define __ARM_FP16_ARGS when appropriate.
9165 * config/arm/arm.c (arm_invalid_parameter_type): Remove
9167 (arm_invalid_return_type): Likewise.
9168 (TARGET_INVALID_PARAMETER_TYPE): Remove.
9169 (TARGET_INVALID_RETURN_TYPE): Remove.
9170 (aapcs_vfp_sub_candidate): Allow HFmode.
9171 (aapcs_vfp_allocate): Add comment. Support HFmode.
9172 (aapcs_vfp_allocate_return_reg): Likewise.
9173 (struct aapcs_cp_arg_layout): Slightly reword comments for
9174 is_return_candidate and allocate_return_reg.
9175 (output_mov_vfp): Update assert.
9176 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
9178 (arm_invalid_parameter_type): Remove.
9179 (amr_invalid_return_type): Remove.
9180 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
9181 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
9182 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
9184 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
9186 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
9187 * config/aarch64/arch64-protos.h
9188 (aarch64_legitimize_reload_address): Remove.
9189 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
9192 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
9194 * configure.ac: Add ACX_NONCANONICAL_HOST.
9195 * configure: Regenerate.
9196 * Makefile.in: Set host_noncanonical.
9198 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
9201 * config/i386/i386.md (*movtf_internal): Before register allocation,
9202 do not allow FP constants for CM_MEDIUM memory model, allow only
9203 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
9204 (*movxf_internal): Ditto.
9205 (*movdf_internal): Ditto.
9206 (*movsf_internal): Ditto.
9208 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
9210 PR rtl-optimization/67483
9211 * combine.c (make_compound_operation): Don't call extract_left_shift
9212 with negative shift amounts.
9214 2016-05-13 Jakub Jelinek <jakub@redhat.com>
9217 * fold-const.c (fold_checksum_tree): Allow modification
9218 of TYPE_ALIAS_SET during folding.
9220 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
9221 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
9222 (ix86_split_to_parts): Likewise. Fix up formatting.
9224 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
9226 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
9227 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
9230 2016-05-13 Nathan Sidwell <nathan@acm.org>
9232 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
9233 (nvptx_name_replacement): Delete.
9234 (write_fn_proto, write_fn_proto_from_insn,
9235 nvptx_output_call_insn): Remove nvptx_name_replacement call.
9236 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
9237 * langhooks.c (add_builtin_funcction_common): Call
9238 targetm.mangle_decl_assembler_name.
9240 * config/nvptx/nvptx.c (write_fn_proto): Handle
9241 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
9243 2016-05-13 Martin Liska <mliska@suse.cz>
9245 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
9246 and PRIu64 in printf format.
9248 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9250 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
9253 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9255 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
9256 Change --param max-completely-peeled-times to
9257 --param max-completely-peel-times in dump file printing.
9259 2016-05-13 Richard Biener <rguenther@suse.de>
9261 PR tree-optimization/42587
9262 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
9263 (find_bswap_or_nop_1): Likewise.
9264 (bswap_replace): Likewise.
9266 2016-05-13 Martin Liska <mliska@suse.cz>
9268 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
9269 Initialize a variable with default value.
9271 2016-05-13 Martin Liska <mliska@suse.cz>
9273 * doc/invoke.texi: Enhance explanation of error recovery
9276 2016-05-13 Martin Liska <mliska@suse.cz>
9278 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
9279 (struct cost_pair): Change inv_expr_id (int) to inv_expr
9280 (iv_inv_expr_ent *).
9281 (struct iv_inv_expr_ent): Comment struct fields.
9282 (sort_iv_inv_expr_ent): New function.
9283 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
9284 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
9285 a hash_map between iv_inv_expr_ent and number of usages.
9286 (niter_for_exit): Fix coding style.
9287 (tree_ssa_iv_optimize_init): Use renamed variable.
9288 (determine_base_object): Fix coding style.
9289 (alloc_iv): Likewise.
9290 (find_interesting_uses_outside): Likewise.
9291 (add_candidate_1): Likewise.
9292 (add_standard_iv_candidates): Likewise.
9293 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
9294 (prepare_decl_rtl): Fix coding style.
9295 (get_address_cost): Likewise.
9296 (get_shiftadd_cost): Likewise.
9297 (force_expr_to_var_cost): Likewise.
9298 (compare_aff_trees): Likewise.
9299 (get_expr_id): Restructure the function.
9300 (get_loop_invariant_expr_id): Renamed to
9301 get_loop_invariant_expr.
9302 (get_computation_cost_at): Replace usage of inv_expr_id with
9304 (get_computation_cost): Likewise.
9305 (determine_group_iv_cost_generic): Likewise.
9306 (determine_group_iv_cost_address): Likewise.
9307 (iv_period): Fix coding style.
9308 (iv_elimination_compare_lt): Likewise.
9309 (may_eliminate_iv): Likewise.
9310 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
9312 (determine_group_iv_costs): Dump invariant expressions.
9313 (iv_ca_recount_cost): Use the newly added hash_map.
9314 (iv_ca_set_remove_invariants): Fix coding style.
9315 (iv_ca_set_add_invariants): Fix coding style.
9316 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
9318 (iv_ca_set_cp): Likewise.
9319 (iv_ca_new): Initialize the newly added hash_map and remove
9320 initialization of fields.
9321 (iv_ca_free): Delete the hash_map.
9322 (iv_ca_dump): Dump invariant expressions.
9323 (iv_ca_extend): Fix coding style.
9324 (try_add_cand_for): Likewise.
9325 (create_new_ivs): Dump information about # of avg iterations and
9326 # of used invariant expressions.
9327 (rewrite_use_compare): Fix coding style.
9328 (free_loop_data): Set default value for max_inv_expr_id.
9330 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
9332 * cse.c (rest_of_handle_cse): Use cleanup_cfg
9333 returned value cse_cfg_altered computation.
9334 (rest_of_handle_cse2): Likewise.
9335 (rest_of_handle_cse_after_global_opts): Likewise.
9337 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9340 * config/arm/arm.c (arm32_output_mi_thunk): New.
9341 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
9342 to split Thumb1 vs TARGET_32BIT functionality.
9343 (arm_thumb1_mi_thunk): New.
9345 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9347 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
9350 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9353 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
9355 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
9357 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
9358 (expand_builtin_trap): Emit a regular call.
9359 (set_builtin_user_assembler_name): Remove obsolete cases.
9360 * dse.c (scan_insn): Adjust.
9361 * except.c: Include calls.h.
9362 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
9363 emit a regular call to setjmp.
9364 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
9365 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
9366 (emit_block_move_via_libcall): Delete.
9367 (block_move_fn): Delete.
9368 (init_block_move_fn): Likewise.
9369 (emit_block_move_libcall_fn): Likewise.
9370 (emit_block_op_via_libcall): New function.
9371 (set_storage_via_libcall): Tidy up and use memset builtin.
9372 (block_clear_fn): Delete.
9373 (init_block_clear_fn): Likewise.
9374 (clear_storage_libcall_fn): Likewise.
9375 (expand_assignment): Call emit_block_move_via_libcall.
9376 Do not include gt-expr.h.
9377 * expr.h (emit_block_op_via_libcall): Declare.
9378 (emit_block_copy_via_libcall): New inline function.
9379 (emit_block_move_via_libcall): Likewise.
9380 (emit_block_comp_via_libcall): Likewise.
9381 (block_clear_fn): Delete.
9382 (init_block_move_fn): Likewise.
9383 (init_block_clear_fn): Likewise.
9384 (emit_block_move_via_libcall): Likewise.
9385 (set_storage_via_libcall): Add default parameter value.
9386 * libfuncs.h (enum libfunc_index): Remove obsolete values.
9387 (abort_libfunc): Delete.
9388 (memcpy_libfunc): Likewise.
9389 (memmove_libfunc): Likewise.
9390 (memcmp_libfunc): Likewise.
9391 (memset_libfunc): Likewise.
9392 (setbits_libfunc): Likewise.
9393 (setjmp_libfunc): Likewise.
9394 (longjmp_libfunc): Likewise.
9395 (profile_function_entry_libfunc): Likewise.
9396 (profile_function_exit_libfunc): Likewise.
9397 (gcov_flush_libfunc): Likewise.
9398 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
9399 and DECL_VISIBILITY on the declaration.
9400 (init_optabs): Do not initialize obsolete libfuncs.
9401 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
9402 * tree-core.h (ECF_RET1): Define.
9403 (ECF_TM_PURE): Adjust.
9404 (ECF_TM_BUILTIN): Likewise.
9405 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
9406 (build_common_builtin_nodes): Initialize abort builtin.
9407 Add ECF_RET1 on memcpy, memmove and memset builtins.
9408 Pass final flags for alloca and alloca_with_align builtins.
9409 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
9411 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
9412 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
9413 set_storage_via_libcall and call emit_block_copy_via_libcall.
9415 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
9417 * config/i386/i386.md (*call_got_x32): Change operand 0 to
9418 DImode before it is passed to ix86_output_call_operand.
9419 (*call_value_got_x32): Ditto for operand 1.
9421 2016-05-12 Jiong Wang <jiong.wang@arm.com>
9423 PR rtl-optimization/70904
9424 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
9425 reload for wide mode.
9427 2016-05-12 Marek Polacek <polacek@redhat.com>
9430 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
9431 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
9432 * langhooks.h (incomplete_type_error): Likewise.
9433 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
9434 parameter, pass it down to incomplete_type_error.
9435 * tree.h (size_in_bytes): New inline overload.
9436 (size_in_bytes_loc): Renamed from size_in_bytes.
9438 2016-05-12 Richard Biener <rguenther@suse.de>
9440 PR tree-optimization/71059
9441 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
9442 nary before looking up or entering the expression into the VN
9444 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
9445 Make sure to re-use NARYs without result as inserted by
9448 2016-05-12 Richard Biener <rguenther@suse.de>
9450 PR tree-optimization/71062
9451 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
9453 * tree-ssa-structalias.c (set_uids_in_ptset): Set
9454 vars_contains_restrict if the var is a restrict tag.
9455 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
9456 do not disambiguate pointers against it.
9457 (dump_points_to_solution): Re-structure and adjust for new
9458 vars_contains_restrict flag.
9459 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
9461 2016-05-12 Martin Liska <mliska@suse.cz>
9463 * doc/invoke.texi: Explain connection between
9464 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
9466 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
9468 PR tree-optimization/71006
9469 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
9470 consider COND_EXPR as a mask producer.
9472 2016-05-12 Marek Polacek <polacek@redhat.com>
9475 * opts.c (common_handle_option): Detect missing argument for --help^.
9477 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9480 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
9481 when popping the PC and within an interrupt handler routine.
9482 Add missing tab to output of "ldmfd".
9483 (output_return_instruction): Output LDMFD with SP update rather
9484 than POP when returning from interrupt handler.
9486 2016-05-12 Jakub Jelinek <jakub@redhat.com>
9488 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
9489 TARGET_64BIT && TARGET_AVX512DQ.
9490 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
9491 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
9492 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
9493 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
9494 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
9495 (*vec_extractv4si_zext): Add avx512dq alternative.
9496 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
9497 use v instead of x constraint in other alternatives where possible.
9499 * config/i386/sse.md (sse2_loadld): Use v instead of x
9500 constraint in alternatives 0,1,4.
9502 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
9503 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
9504 v constraints instead of x and <pinsr_evex_isa> isa attribute.
9507 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
9508 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
9509 is not emitted unless TARGET_AVX512BW.
9510 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
9511 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
9512 for the result operand.
9514 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
9515 constraint instead of x in avx alternatives. Use maybe_evex instead
9518 * config/i386/constraints.md (Yv): New constraint.
9519 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
9520 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
9521 * config/i386/i386.md (avx512fvecmode): New mode attr.
9522 (*pushtf): Use v constraint instead of x.
9523 (*movtf_internal): Likewise. For TARGET_AVX512VL and
9524 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
9525 (*absneg<mode>2): Use Yv constraint instead of x constraint.
9526 (*absnegtf2_sse): Likewise.
9527 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
9528 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
9529 avx512f alternatives.
9530 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
9532 2016-05-12 Richard Biener <rguenther@suse.de>
9534 PR tree-optimization/71060
9535 * tree-data-ref.c (initialize_data_dependence_relation): Do not
9536 require exact match of DR_BASE_OBJECT but only matching address and
9539 2016-05-12 Richard Biener <rguenther@suse.de>
9541 PR tree-optimization/70986
9542 * cfganal.c: Include cfgloop.h.
9543 (dfs_find_deadend): Prefer to take edges exiting loops.
9545 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9547 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
9548 compile and run time.
9550 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
9553 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
9555 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
9557 * config/i386/i386.c (legitimize_pic_address): Use
9558 copy_to_suggested_reg instead of gen_movsi.
9560 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9562 * config/rs6000/predicates.md (quad_memory_operand): Move most of
9563 the code into quad_address_p and call it to share code with
9564 vsx_quad_dform_memory_operand.
9565 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
9567 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
9568 bit instead of being a separate word. Split -mpower9-dform into
9569 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
9570 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
9571 for the register class supporting 128-bit quad word memory offsets.
9572 (mode_supports_vsx_dform_quad): Helper function to return if the
9573 register class uses quad word memory offsets.
9574 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
9575 (rs6000_debug_reg_global): Always print if we are using LRA or not.
9576 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
9577 instructions are enabled, set up the appropriate addr_masks for
9579 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
9580 -mpower9-dform-scalar, instead of -mpower9-dform.
9581 (rs6000_option_override_internal): Split -mpower9-dform into two
9582 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
9583 -mpower9-dform switch sets or clears both. If we are not using
9584 the LRA register allocator, do not enable -mpower9-dform-vector by
9585 default. If we are using LRA, enable -mpower9-dform-vector and
9586 -mvsx-timode if it is appropriate. Issue a warning if either
9587 -mpower9-dform-vector or -mvsx-timode are explicitly used without
9589 (quad_address_offset_p): New helper function to return if the
9590 offset is legal for quad word memory instructions.
9591 (quad_address_p): New function to determin if GPR or vector
9592 register quad word memory addresses are legal.
9593 (mem_operand_gpr): Validate quad word address offsets.
9594 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
9595 d-form (register + offset) instructions.
9596 (offsettable_ok_by_alignment): Likewise.
9597 (rs6000_legitimate_offset_address_p): Likewise.
9598 (legitimate_lo_sum_address_p): Likewise.
9599 (rs6000_legitimize_address): Likewise.
9600 (rs6000_legitimize_reload_address): Add more debug statements for
9602 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
9603 d-form instructions.
9604 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
9605 d-form instructions. Distinguish different cases in debug
9606 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
9607 d-form instructions.
9608 (rs6000_preferred_reload_class): Likewise.
9609 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
9610 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
9611 of the ISA 2.06 indexed memory instructions.
9612 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
9613 use them to save/restore the saved vector registers instead of
9614 using Altivec instructions.
9615 (rs6000_emit_epilogue): Likewise.
9616 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
9617 (rs6000_opt_masks): Split -mpower9-dform into
9618 -mpower9-dform-scalar and -mpower9-dform-vector.
9619 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
9621 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
9622 ISA 3.0 vector indexed memory instructions, and fold the code into
9623 the normal mov<mode> patterns.
9624 (p9_vecstore_<mode>): Likewise.
9625 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
9627 (vsx_movti_64bit): Likewise.
9628 (vsx_movti_32bit): Likewise.
9629 * config/rs6000/constraints.md (wO constraint): New constraint for
9630 ISA 3.0 vector d-form support.
9631 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
9632 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
9633 include -mpower9-dform-vector until we switch over to LRA.
9634 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
9635 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
9636 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
9637 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
9638 for -mpower9-dform and -mlra.
9639 * doc/md.texi (wO constraint): Document wO constraint.
9641 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
9643 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
9644 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
9645 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
9646 Move handling of non-insn arguments inline into the sole user:
9647 (output_trans_func): ...here.
9648 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
9649 in emitted function prototype.
9650 (output_internal_insn_latency_func): Ditto. Simplify.
9651 (output_internal_maximal_insn_latency_func): Ditto. Delete
9652 always-unused argument.
9653 (output_insn_latency_func): Ditto.
9654 (output_maximal_insn_latency_func): Ditto.
9656 2016-05-11 Richard Biener <rguenther@suse.de>
9658 PR tree-optimization/71055
9659 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
9660 sth with precision not equal to access size verify we don't chop
9663 2016-05-11 Richard Biener <rguenther@suse.de>
9666 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
9667 (dwarf2out_finish): Move retry_incomplete_types call ...
9668 (dwarf2out_early_finish): ... here.
9670 2016-05-11 Richard Biener <rguenther@suse.de>
9673 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
9674 if the langhook insists on it.
9675 * fold-const.c (make_bit_field_ref): Add arg for the original
9676 reference and preserve its alias-set.
9677 (decode_field_reference): Take exp by reference and adjust it
9678 to the original memory reference.
9679 (optimize_bit_field_compare): Adjust callers.
9680 (fold_truth_andor_1): Likewise.
9681 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
9683 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
9686 * cfgrtl.h (delete_insn_and_edges): Now return bool.
9687 * cfgrtl.c (delete_insn_and_edges): Likewise.
9688 * config/i386/i386.c (convert_scalars_to_vector): Remove
9690 * cse.c (cse_insn): Compute cse_cfg_altered.
9691 (delete_trivially_dead_insns): Likewise.
9692 (cse_cc_succs): Likewise.
9693 (rest_of_handle_cse): Free dominance info if required.
9694 (rest_of_handle_cse2): Likewise.
9695 (rest_of_handle_cse_after_global_opts): Likewise.
9697 2016-05-11 Alan Modra <amodra@gmail.com>
9699 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
9700 abi_v4_pass_in_fpr): New functions.
9701 (rs6000_function_arg_boundary): Exclude complex IBM long double
9702 from 64-bit alignment when ABI_V4.
9703 (rs6000_function_arg, rs6000_function_arg_advance_1,
9704 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
9706 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
9708 PR rtl-optimization/71028
9709 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
9710 jump with just a return in the fallthrough block if the branch
9711 block contains just a return as well.
9713 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
9715 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
9716 * match.pd ((X & Y) ^ Y): ... this.
9717 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
9718 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
9720 2016-05-10 David Malcolm <dmalcolm@redhat.com>
9722 * read-md.c (require_char_ws): New function.
9723 (read_string): Simplify using require_char_ws.
9724 (handle_constants): Likewise.
9725 (handle_enum): Likewise.
9726 (handle_file): Likewise.
9727 * read-md.h (require_char_ws): New declaration.
9728 * read-rtl.c (read_conditions): Simplify using require_char_ws.
9729 (read_mapping): Likewise.
9730 (read_rtx_code): Likewise.
9731 (read_nested_rtx): Likewise.
9733 2016-05-10 James Norris <jnorris@codesourcery.com>
9735 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
9736 if offloading is enabled and -fopenacc or -fopenmp is specified.
9737 (CRTOFFLOADEND): Likewise.
9738 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
9739 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
9741 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
9743 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
9744 gotoff_operand code paths. Use copy_to_suggested_regs and
9745 expand_simple_binop where appropriate. Cleanup.
9747 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
9750 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
9752 (dimode_scalar_chain::vector_const_cost): New.
9753 (dimode_scalar_chain::compute_convert_gain): Handle constants.
9754 (dimode_scalar_chain::convert_op): Likewise.
9755 (dimode_scalar_chain::convert_insn): Likewise.
9757 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
9759 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
9760 unary operation, not a binary one.
9762 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
9765 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
9766 calls with type casted fndecl.
9768 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
9770 PR tree-optimization/70786
9771 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
9772 * calls.c (initialize_argument_information): Bind bounds
9773 with corresponding args passed by reference.
9775 2016-05-10 Jakub Jelinek <jakub@redhat.com>
9778 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
9779 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
9780 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
9783 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9786 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
9787 code for a zero scale factor.
9788 (vsx_xvcvdpuxds_scale): Likewise.
9790 2016-05-10 David Malcolm <dmalcolm@redhat.com>
9792 * diagnostic-show-locus.c (layout::layout): Call show_ruler
9793 if show_ruler_p was set on the context.
9794 (layout::show_ruler): New method.
9795 * diagnostic.h (struct diagnostic_context): Add field
9798 2016-05-10 Richard Biener <rguenther@suse.de>
9800 PR tree-optimization/71039
9801 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
9802 (chk_uses): New function.
9803 (propagate_with_phi): Verify we can safely replicate the lhs of an
9804 aggregate assignment on all incoming edges.
9806 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
9808 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
9810 (rx_atomic_sequence): New class.
9811 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
9812 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
9814 (rx_atomic_sequence::rx_atomic_sequence,
9815 rx_atomic_sequence::~rx_atomic_sequence): New functions.
9816 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
9817 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
9818 CTRLREG_INTB): New constants.
9819 (FETCHOP): New code iterator.
9820 (fethcop_name, fetchop_name2): New iterator code attributes.
9821 (QIHI): New mode iterator.
9822 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
9823 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
9824 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
9826 2016-05-10 Martin Liska <mliska@suse.cz>
9828 * tree-inline.c (remap_dependence_clique): Do not remap
9829 debugging statements.
9831 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9833 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
9834 ("*fixuns_truncdfdi2_z13")
9835 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
9836 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
9837 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
9839 2016-05-10 Richard Biener <rguenther@suse.de>
9841 PR tree-optimization/70497
9842 PR tree-optimization/28367
9843 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
9845 (visit_reference_op_load): ... here.
9846 (vn_reference_lookup_3): Use it to handle subreg-like accesses
9847 with simplified BIT_FIELD_REFs.
9848 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
9849 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
9852 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
9854 * dwarf2out.c (add_abstract_origin_attribute): Adjust
9855 documentation comment. For BLOCK nodes, add a
9856 DW_AT_abstract_origin attribute that points to the DIE generated
9857 for the origin BLOCK.
9858 (gen_lexical_block_die): Call add_abstract_origin_attribute for
9859 blocks from inlined functions.
9861 2016-05-10 Alan Modra <amodra@gmail.com>
9864 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
9865 regrename modifying insns saving lr before __morestack call.
9866 * config/rs6000/rs6000.md (split_stack_return): Similarly for
9867 insns restoring lr after __morestack call.
9869 2016-05-09 Jakub Jelinek <jakub@redhat.com>
9871 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
9872 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
9874 * config/i386/sse.md (vec_interleave_high<mode>,
9875 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
9876 <avx512>_vpermt2var<mode>3_maskz): Likewise.
9878 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9880 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
9881 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
9882 parallel reassociation for power8 and forward.
9884 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
9886 * config/i386/i386.md (absneg splitters with general regs): Use
9887 general_reg_operand predicate.
9888 (btsq peephole2): Use x86_64_immediate_operand to check if new
9889 value is suitable for immediate operand. Generate emitted insn
9890 using RTL expressions.
9891 (btcq peephole2): Ditto.
9892 (btrq peephole2): Ditto. Generate correct immediate operand
9895 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
9897 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
9900 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
9902 * tree-affine.c (wide_int_constant_multiple_p): Add missing
9903 pointer dereference.
9905 2016-05-09 Richard Biener <rguenther@suse.de>
9907 PR tree-optimization/70985
9908 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
9909 op0 isn't a gimple register.
9911 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
9913 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
9914 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
9915 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
9916 (i6400_fpu_mult): New cpu units.
9917 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
9918 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
9919 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
9920 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
9921 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
9922 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
9923 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
9924 (i6400_msa_long_float4, i6400_msa_long_float5)
9925 (i6400_msa_long_float8, i6400_msa_fdiv_df)
9926 (i6400_msa_fdiv_sf): New reservations.
9927 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
9928 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
9929 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
9930 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
9931 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
9932 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
9933 (msa_short_cmp, msa_short_float2, msa_short_logic3)
9934 (msa_short_store4, msa_long_load, msa_short_store)
9935 (msa_long_logic, msa_long_float2, msa_long_float4)
9936 (msa_long_float5, msa_long_float8, msa_long_mult)
9937 (msa_long_fdiv, msa_long_div): New reservations.
9939 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
9940 Sameera Deshpande <sameera.deshpande@imgtec.com>
9941 Matthew Fortune <matthew.fortune@imgtec.com>
9942 Graham Stott <graham.stott@imgtec.com>
9943 Chao-ying Fu <chao-ying.fu@imgtec.com>
9945 * config.gcc: Add MSA header file for mips*-*-* target.
9946 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
9947 (Ubv8i, Urv8): New constraints.
9948 * config/mips/mips-ftypes.def: Add function types for MSA
9950 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
9951 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
9952 * config/mips/mips-msa.md: New file.
9953 * config/mips/mips-protos.h
9954 (mips_split_128bit_const_insns): New prototype.
9955 (mips_msa_idiv_insns): Likewise.
9956 (mips_split_128bit_move): Likewise.
9957 (mips_split_128bit_move_p): Likewise.
9958 (mips_split_msa_copy_d): Likewise.
9959 (mips_split_msa_insert_d): Likewise.
9960 (mips_split_msa_fill_d): Likewise.
9961 (mips_expand_msa_branch): Likewise.
9962 (mips_const_vector_same_val_p): Likewise.
9963 (mips_const_vector_same_bytes_p): Likewise.
9964 (mips_const_vector_same_int_p): Likewise.
9965 (mips_const_vector_shuffle_set_p): Likewise.
9966 (mips_const_vector_bitimm_set_p): Likewise.
9967 (mips_const_vector_bitimm_clr_p): Likewise.
9968 (mips_msa_vec_parallel_const_half): Likewise.
9969 (mips_msa_output_division): Likewise.
9970 (mips_ldst_scaled_shift): Likewise.
9971 (mips_expand_vec_cond_expr): Likewise.
9972 * config/mips/mips.c (enum mips_builtin_type): Add
9973 MIPS_BUILTIN_MSA_TEST_BRANCH.
9974 (mips_gen_const_int_vector_shuffle): New prototype.
9975 (mips_const_vector_bitimm_set_p): New function.
9976 (mips_const_vector_bitimm_clr_p): Likewise.
9977 (mips_const_vector_same_val_p): Likewise.
9978 (mips_const_vector_same_bytes_p): Likewise.
9979 (mips_const_vector_same_int_p): Likewise.
9980 (mips_const_vector_shuffle_set_p): Likewise.
9981 (mips_symbol_insns): Forbid loading symbols via immediate for
9983 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
9985 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
9987 (mips_lx_address_p): Add support load indexed address for MSA.
9988 (mips_address_insns): Add calculation of instructions needed for
9989 stores and loads for MSA.
9990 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
9991 CONST_VECTOR for MSA and let it fall through.
9992 (mips_ldst_scaled_shift): New function.
9993 (mips_subword_at_byte): Likewise.
9994 (mips_msa_idiv_insns): Likewise.
9995 (mips_legitimize_move): Validate MSA moves.
9996 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
9997 calculation of costs for MSA division.
9998 (mips_split_move_p): Check if MSA moves need splitting.
9999 (mips_split_move): Split MSA moves if necessary.
10000 (mips_split_128bit_move_p): New function.
10001 (mips_split_128bit_move): Likewise.
10002 (mips_split_msa_copy_d): Likewise.
10003 (mips_split_msa_insert_d): Likewise.
10004 (mips_split_msa_fill_d): Likewise.
10005 (mips_output_move): Handle MSA moves.
10006 (mips_expand_msa_branch): New function.
10007 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
10008 Reinstate 'y' modifier.
10009 (mips_file_start): Add MSA .gnu_attribute.
10010 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
10012 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
10013 (mips_class_max_nregs): Add register size for MSA supported mode.
10014 (mips_cannot_change_mode_class): Allow conversion between MSA
10015 vector modes and TImode.
10016 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
10018 (mips_secondary_reload_class): Force MSA loads/stores via memory.
10019 (mips_preferred_simd_mode): Add preffered modes for MSA.
10020 (mips_vector_mode_supported_p): Add MSA supported modes.
10021 (mips_autovectorize_vector_sizes): New function.
10022 (mips_msa_output_division): Likewise.
10023 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
10024 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
10025 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
10026 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
10027 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
10028 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
10029 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
10030 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
10031 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
10032 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
10033 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
10034 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
10035 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
10036 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
10037 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
10038 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
10039 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
10040 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
10041 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
10042 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
10043 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
10044 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
10045 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
10046 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
10047 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
10048 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
10049 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
10050 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
10051 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
10052 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
10053 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
10054 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
10055 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
10056 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
10057 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
10058 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
10059 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
10060 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
10061 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
10062 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
10063 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
10064 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
10065 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
10066 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
10067 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
10068 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
10069 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
10070 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
10071 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
10072 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
10073 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
10074 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
10075 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
10076 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
10077 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
10078 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
10079 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
10080 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
10081 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
10082 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
10083 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
10084 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
10085 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
10086 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
10087 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
10088 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
10089 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
10090 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
10091 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
10092 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
10093 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
10094 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
10095 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
10096 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
10097 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
10098 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
10099 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
10100 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
10101 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
10102 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
10103 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
10104 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
10105 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
10106 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
10107 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
10108 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
10109 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
10110 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
10111 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
10112 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
10113 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
10114 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
10115 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
10116 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
10117 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
10118 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
10119 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
10120 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
10121 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
10122 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
10123 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
10124 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
10125 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
10126 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
10127 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
10128 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
10129 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
10130 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
10131 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
10132 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
10133 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
10134 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
10135 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
10136 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
10137 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
10138 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
10139 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
10140 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
10141 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
10142 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
10143 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
10144 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
10145 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
10146 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
10147 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
10148 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
10149 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
10150 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
10151 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
10152 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
10153 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
10154 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
10155 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
10156 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
10157 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
10158 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
10159 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
10160 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
10161 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
10162 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
10163 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
10164 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
10165 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
10166 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
10167 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
10168 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
10169 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
10170 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
10171 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
10172 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
10173 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
10175 (mips_get_builtin_decl_index): New array.
10176 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
10177 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
10178 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
10179 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
10180 (mips_init_builtins): Initialize mips_get_builtin_decl_index
10182 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
10184 (mips_expand_builtin_insn): Prepare operands for
10185 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
10186 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
10187 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
10188 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
10189 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
10190 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
10191 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
10192 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
10193 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
10194 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
10195 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
10196 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
10197 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
10198 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
10199 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
10200 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
10201 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
10202 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
10203 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
10204 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
10205 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
10206 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
10207 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
10208 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
10209 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
10210 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
10211 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
10212 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
10213 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
10214 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
10215 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
10216 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
10217 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
10218 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
10219 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
10220 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
10221 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
10222 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
10223 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
10224 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
10225 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
10226 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
10227 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
10228 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
10229 These are set implicitly and an error is reported if overridden.
10230 (mips_expand_builtin_msa_test_branch): New function.
10231 (mips_expand_msa_shuffle): Likewise.
10232 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
10233 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
10234 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
10235 (mips_expand_vec_unpack): Add support for MSA.
10236 (mips_expand_vector_init): Likewise.
10237 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
10238 instead of const0_rtx.
10239 (mips_msa_vec_parallel_const_half): New function.
10240 (mips_gen_const_int_vector): Likewise.
10241 (mips_gen_const_int_vector_shuffle): Likewise.
10242 (mips_expand_msa_cmp): Likewise.
10243 (mips_expand_vec_cond_expr): Likewise.
10244 * config/mips/mips.h
10245 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
10246 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
10248 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
10249 (ISA_HAS_MSA): New macro.
10250 (UNITS_PER_MSA_REG): Likewise.
10251 (BITS_PER_MSA_REG): Likewise.
10252 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
10253 (MSA_REG_FIRST): New macro.
10254 (MSA_REG_LAST): Likewise.
10255 (MSA_REG_NUM): Likewise.
10256 (MSA_REG_P): Likewise.
10257 (MSA_REG_RTX_P): Likewise.
10258 (MSA_SUPPORTED_MODE_P): Likewise.
10259 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
10260 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
10261 * config/mips/mips.md: Include mips-msa.md.
10262 (alu_type): Add simd_add.
10263 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
10264 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
10265 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
10266 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
10267 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
10268 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
10269 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
10270 simd_move, simd_load, simd_store. Choose "multi" for moves
10272 (qword_mode): New attribute.
10273 (insn_count): Add instruction count for quad moves.
10274 Increase the count for MIPS SIMD division.
10275 (UNITMODE): Add UNITMODEs for vector types.
10276 (addsub): New code iterator.
10277 * config/mips/mips.opt (mmsa): New option.
10278 * config/mips/msa.h: New file.
10279 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
10281 * config/mips/mti-linux.h: Likewise.
10282 * config/mips/predicates.md
10283 (const_msa_branch_operand): New constraint.
10284 (const_uimm3_operand): Likewise.
10285 (const_uimm4_operand): Likewise.
10286 (const_uimm5_operand): Likewise.
10287 (const_uimm8_operand): Likewise.
10288 (const_imm5_operand): Likewise.
10289 (aq10b_operand): Likewise.
10290 (aq10h_operand): Likewise.
10291 (aq10w_operand): Likewise.
10292 (aq10d_operand): Likewise.
10293 (const_m1_operand): Likewise.
10294 (reg_or_m1_operand): Likewise.
10295 (const_exp_2_operand): Likewise.
10296 (const_exp_4_operand): Likewise.
10297 (const_exp_8_operand): Likewise.
10298 (const_exp_16_operand): Likewise.
10299 (const_vector_same_val_operand): Likewise.
10300 (const_vector_same_simm5_operand): Likewise.
10301 (const_vector_same_uimm5_operand): Likewise.
10302 (const_vector_same_uimm6_operand): Likewise.
10303 (const_vector_same_uimm8_operand): Likewise.
10304 (par_const_vector_shf_set_operand): Likewise.
10305 (reg_or_vector_same_val_operand): Likewise.
10306 (reg_or_vector_same_simm5_operand): Likewise.
10307 (reg_or_vector_same_uimm6_operand): Likewise.
10308 * doc/extend.texi (MIPS SIMD Architecture Functions): New
10310 * doc/invoke.texi (-mmsa): Document new option.
10312 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10314 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
10315 * configure: Regenerate.
10316 * config.in: Regenerate.
10317 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
10318 on -fvtable-verify.
10319 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
10320 (ENDFILE_VTV_SPEC): Define.
10322 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
10324 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
10325 registers in all interrupt handlers if necessary.
10326 (rl78_option_override): Add warning.
10327 (MUST_SAVE_MDUC_REGISTERS): New macro.
10328 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
10329 * config/rl78/rl78.c (check_mduc_usage): New function.
10330 (mduc_regs): New structure to hold MDUC register data.
10331 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
10332 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
10333 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
10334 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
10335 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
10336 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
10338 2016-05-09 Bin Cheng <bin.cheng@arm.com>
10340 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
10341 (tree-ssa-loop-niter.h): Ditto.
10342 (idx_within_array_bound, ref_within_array_bound): New functions.
10343 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
10344 Factor out check on writable base object to ...
10345 (base_object_writable): ... here.
10347 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10349 * config/arm/arm.md (probe_stack): Add modes to set source
10352 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
10354 * regrename.c (base_reg_class_for_rename): New static function.
10355 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
10357 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
10359 * cgraph.c (thunk_adjust): Export.
10360 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
10361 * cgraphunit.c (thunk_adjust): Export.
10362 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
10364 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
10366 * tree-inline.c (expand_call_inline): Expand thunks inline.
10368 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
10371 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
10372 (*sse2_vd_cvtss2sd): Ditto.
10373 * config/i386/i386.md
10374 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
10375 Generate *sse2_vd_cvtsd2ss pattern.
10376 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
10377 Generate *sse2_vd_cvtss2sd pattern.
10379 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
10381 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
10382 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
10385 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
10387 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
10388 * config/sh/sh.c: Define and declare variables on first use throughout
10390 (current_function_interrupt): Change to bool type.
10391 (frame_insn): Rename to emit_frame_insn and update users.
10392 (push_regs): Use bool for 'interrupt_handler' argument.
10393 (save_schedule_s): Remove.
10394 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
10395 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
10396 targetm.asm_out.unaligned_op.di.
10397 (gen_far_branch): Remove redundant forward declaration.
10398 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
10399 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
10400 (sh_set_return_address, sh_function_ok_for_sibcall,
10401 scavenge_reg): Update comments.
10402 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
10403 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
10404 (sh_attr_renesas_p): Remove unnecessary parentheses.
10405 (branch_dest): Simplify.
10406 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
10407 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
10408 (CUMULATIVE_ARGS): Change macro to typedef.
10409 (current_function_interrupt): Change to bool type.
10410 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
10411 Surround with __cplusplus ifdef.
10412 (sh_compare_op0, sh_compare_op1): Remove.
10413 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
10415 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
10417 * config/arm/arm.md: (arch): Add neon.
10418 (arch_enabled): Return yes for arch neon when TARGET_NEON.
10419 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
10420 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
10421 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
10422 attributes for alt renumbering. Mark alt 3 as non-predicable.
10423 (thumb2_movdf_vfp): Likewise.
10425 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
10427 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
10428 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
10429 (*andqi_1): Add preferred_for_speed attribute to disparage
10430 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
10431 (*<code>qi_1): Ditto.
10432 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
10433 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
10434 (*ashlqi3_1): Ditto.
10435 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
10436 Add preferred_for_size attribute to disparage alternative 0 and
10437 preferred_for_speed attribute to disparage alternative 1 for
10438 TARGET_PARTIAL_REG_STALL targets.
10440 2016-05-07 Tom de Vries <tom@codesourcery.com>
10442 PR tree-optimization/70956
10443 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
10446 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
10448 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
10449 * config/sh/sh.c (sh_cbranch_distance): Implement it.
10450 * config/sh/sh.md (branch_zero): Remove define_attr.
10451 (define_delay): Disable delay slot if branch distance is one insn.
10453 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
10455 * config/i386/i386.md (LEAMODE): New mode attribute.
10456 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
10457 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
10458 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
10459 operand 2 predicate.
10460 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
10461 (*lea<mode>_general_3): Ditto.
10462 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
10464 2016-05-06 Jakub Jelinek <jakub@redhat.com>
10466 * genmddump.c (main): Convert argv from char ** to const char **.
10468 2016-05-06 David Malcolm <dmalcolm@redhat.com>
10470 * coretypes.h (OVERRIDE): New macro.
10471 (FINAL): New macro.
10473 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
10475 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
10476 allow coalescing if the types are compatible.
10478 2016-05-06 David Malcolm <dmalcolm@redhat.com>
10480 * pass_manager.h (pass_manager::register_pass_name): New method.
10481 (pass_manager::get_pass_by_name): New method.
10482 (pass_manager::create_pass_tab): New method.
10483 (pass_manager::m_name_to_pass_map): New field.
10484 * passes.c (name_to_pass_map): Delete global in favor of field
10485 "m_name_to_pass_map" of pass_manager.
10486 (register_pass_name): Rename from a function to...
10487 (pass_manager::register_pass_name): ...this method, updating
10488 for renaming of global "name_to_pass_map" to field
10489 "m_name_to_pass_map".
10490 (create_pass_tab): Rename from a function to...
10491 (pass_manager::create_pass_tab): ...this method, updating
10492 for renaming of global "name_to_pass_map" to field.
10493 (get_pass_by_name): Rename from a function to...
10494 (pass_manager::get_pass_by_name): ...this method.
10495 (enable_disable_pass): Convert use of get_pass_by_name to
10496 a method call, locating the pass_manager singleton.
10498 2016-05-06 David Malcolm <dmalcolm@redhat.com>
10500 * genattr-common.c (main): Convert argv from char ** to const char **.
10501 * genattr.c (main): Likewise.
10502 * genattrtab.c (main): Likewise.
10503 * genautomata.c (initiate_automaton_gen): Likewise.
10505 * gencodes.c (main): Likewise.
10506 * genconditions.c (main): Likewise.
10507 * genconfig.c (main): Likewise.
10508 * genconstants.c (main): Likewise.
10509 * genemit.c (main): Likewise.
10510 * genenums.c (main): Likewise.
10511 * genextract.c (main): Likewise.
10512 * genflags.c (main): Likewise.
10513 * genmddeps.c (main): Likewise.
10514 * genopinit.c (main): Likewise.
10515 * genoutput.c (main): Likewise.
10516 * genpeep.c (main): Likewise.
10517 * genpreds.c (main): Likewise.
10518 * genrecog.c (main): Likewise.
10519 * gensupport.c (init_rtx_reader_args_cb): Likewise.
10520 (init_rtx_reader_args): Likewise.
10521 * gensupport.h (init_rtx_reader_args_cb): Likewise.
10522 (init_rtx_reader_args): Likewise.
10523 * gentarget-def.c (main): Likewise.
10524 * read-md.c (read_md_files): Likewise.
10525 * read-md.h (read_md_files): Likewise.
10527 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
10529 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
10530 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
10531 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
10532 Remove unused predicate.
10533 (register_and_not_fp_reg_operand): Ditto.
10535 2016-05-06 Martin Liska <mliska@suse.cz>
10537 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
10538 instead of vec as the vector is local to the function.
10540 2016-05-06 Jakub Jelinek <jakub@redhat.com>
10542 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
10543 avx512bw alternative.
10545 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
10546 before the ashr<mode>3 pattern.
10548 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
10549 v instead of x in vex or maybe_vex alternatives, use
10550 maybe_evex instead of vex in prefix.
10552 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
10553 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
10554 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
10555 in vex or maybe_vex alternatives, use maybe_evex instead of vex
10558 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
10559 v instead of x in vex or maybe_vex alternatives, use
10560 maybe_evex instead of vex in prefix.
10562 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
10563 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
10564 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
10565 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
10566 alternatives, use maybe_evex instead of vex in prefix.
10568 * config/i386/sse.md (vec_interleave_lowv4sf,
10569 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
10570 v instead of x in vex or maybe_vex alternatives, use
10571 maybe_evex instead of vex in prefix.
10573 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
10574 v instead of x in vex or maybe_vex alternatives, use
10575 maybe_evex instead of vex in prefix.
10577 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
10578 v constraint instead of x.
10580 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
10582 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
10583 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
10586 2016-05-06 Richard Biener <rguenther@suse.de>
10588 PR tree-optimization/70948
10589 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10590 Properly clobber all fields of va_list for __builtin_va_start.
10592 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
10595 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
10596 loop latch destination.
10598 2016-05-06 Martin Liska <mliska@suse.cz>
10600 * tree-ssa-uninit.c: Apply manual changes
10601 to the GNU coding style.
10602 (prune_uninit_phi_opnds): Rename from
10603 prune_uninit_phi_opnds_in_unrealizable_paths.
10605 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
10607 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
10608 mspace): Remove deprecated options.
10609 * doc/invoke.texi (SH options): Remove -mspace.
10611 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
10613 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
10615 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
10617 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
10618 corresponding combine split pattern.
10620 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
10623 * config/sh/predicates.md (long_displacement_mem_operand): New.
10624 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
10625 Add movi20, movi20s alternatives. Adjust length attribute for
10627 (movsi_ie): Allow for any FPU. Adjust length attribute for
10629 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
10630 attribute for alternatives.
10631 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
10632 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
10633 length attribute for alternatives.
10635 2016-05-06 Richard Biener <rguenther@suse.de>
10637 PR tree-optimization/70960
10638 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
10640 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
10643 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
10644 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
10646 2016-05-06 Marek Polacek <polacek@redhat.com>
10649 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
10651 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
10654 * config/sh/sh.md (*rotcr): Add another variant.
10656 2016-05-06 Richard Biener <rguenther@suse.de>
10658 PR middle-end/70931
10659 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
10661 2016-05-06 Richard Biener <rguenther@suse.de>
10663 PR middle-end/70941
10664 * fold-const.c (split_tree): Always convert to the original type
10667 2016-05-06 Richard Biener <rguenther@suse.de>
10669 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
10670 (fwprop_addr): Likewise.
10672 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
10675 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
10677 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
10678 * config/i386/i386.md (push mem splitter): Use find_constant_src in
10679 the splitter condition.
10680 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
10681 the splitter condition.
10682 (FP float_extend load splitter): Ditto.
10684 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
10686 * config/i386/i386.md (peehole2 patterns): Change true_regnum
10687 to REGNO in all peephole2 patterns.
10688 (post-reload splitters): Change true_regnum to REGNO in
10689 post-reload splitters.
10690 (zero_extend splitters): Use general_reg_operand and
10691 nonimmediate_gr_operand predicates.
10693 2016-05-05 Jakub Jelinek <jakub@redhat.com>
10695 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
10696 v constraint instead of x.
10698 2016-05-05 Alan Modra <amodra@gmail.com>
10701 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
10702 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
10703 TARGET_NO_FP_IN_TOC for -mrelocatable.
10704 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
10705 TARGET_RELOCATABLE test.
10706 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
10707 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
10708 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
10709 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
10710 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
10711 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
10712 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
10713 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
10714 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
10715 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
10717 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
10718 (rs6000_stack_info): Likewise.
10719 (rs6000_elf_asm_out_constructor): Likewise.
10720 (rs6000_elf_asm_out_destructor): Likewise.
10721 (rs6000_elf_declare_function_name): Likewise.
10722 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
10723 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
10726 2016-05-05 Alan Modra <amodra@gmail.com>
10728 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
10730 2016-05-05 Alan Modra <amodra@gmail.com>
10732 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
10733 out-of-line gpr restore for one or two regs if that would add
10736 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
10739 * config/i386/i386.md
10740 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
10741 Change to post-epilogue_completed late splitter. Use sse_reg_operand
10742 as operand 0 predicate.
10743 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
10745 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
10746 Ditto. Emit the pattern using RTX.
10748 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
10749 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
10750 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
10751 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
10753 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
10754 sse_reg_operand as operand 0 predicate.
10756 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
10757 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
10758 instead of gen_rtx_REG.
10759 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
10762 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
10764 * function.c (emit_use_return_register_into_block): Delete.
10765 (gen_return_pattern): Delete.
10766 (emit_return_into_block): Delete.
10767 (active_insn_between): Delete.
10768 (convert_jumps_to_returns): Delete.
10769 (emit_return_for_exit): Delete.
10770 (thread_prologue_and_epilogue_insns): Delete all code dealing with
10771 simple_return for shrink-wrapped blocks.
10772 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
10773 end of blocks that need one.
10774 (get_unconverted_simple_return): Delete.
10775 (convert_to_simple_return): Delete.
10776 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
10777 (convert_to_simple_return): Ditto.
10779 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
10781 * cfgcleanup.c (bb_is_just_return): New function.
10782 (try_optimize_cfg): Simplify jumps to return, branches to return,
10783 and branches around return.
10785 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
10787 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
10788 branch to a return.
10790 2016-05-04 Jakub Jelinek <jakub@redhat.com>
10794 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
10795 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
10796 assert flags & OEP_HASH_CHECK, instead of asserting it
10797 never happens. Handle TARGET_EXPR.
10798 * fold-const.c (operand_equal_p): For hash verification,
10799 or in OEP_HASH_CHECK into flags.
10801 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
10803 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
10805 (compute_samebase_partition_bases): Fix typo.
10807 2016-05-04 Jakub Jelinek <jakub@redhat.com>
10809 * config/i386/sse.md (vec_interleave_highv8sf,
10810 vec_interleave_lowv8sf, vec_interleave_highv4df,
10811 vec_interleave_lowv4df): Remove constraints from expanders.
10813 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
10815 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
10817 * tree-inline.c (expand_call_inline): Fix path dealing with
10818 making lhs of call statement undefined.
10820 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
10822 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
10823 Check availability on NODE, too.
10824 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
10825 (cgraph_node::call_for_symbol_and_aliases): Likewise.
10826 (varpool_node::call_for_symbol_and_aliase): Likewise.
10827 * ipa-pure-const.c (add_new_function): Analyze all bodies.
10828 (propagate_pure_const): Propagate across interposable functions, too.
10829 (skip_function_for_local_pure_const): Do not skip interposable bodies
10831 (pass_local_pure_const::execute): Update.
10833 2016-05-04 Marek Polacek <polacek@redhat.com>
10835 * doc/invoke.texi: Document -Wdangling-else.
10837 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
10839 * config.gcc: Error out when conflicting multilib is detected. Do not
10840 loop over multilibs since no combination is legal.
10842 2016-05-04 Alan Modra <amodra@gmail.com>
10844 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
10845 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
10846 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
10849 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
10851 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
10852 Clean up p5600 comments.
10854 2016-05-04 Richard Biener <rguenther@suse.de>
10856 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
10857 constructor simplifications.
10858 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
10860 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
10862 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
10863 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
10864 result.set_rtx is null instead of aborting.
10865 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
10867 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
10868 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
10869 *mov<mode>_store_postinc): New patterns.
10871 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
10873 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
10874 as commutative. Check both conversions are NOP.
10875 ((A & B) OP (C & B)): Remove.
10877 2016-05-04 Alan Modra <amodra@gmail.com>
10879 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
10881 2016-05-04 Alan Modra <amodra@gmail.com>
10884 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
10885 when cr2,3,4 are all fixed regs.
10887 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
10889 PR rtl-optimization/57193
10890 * opts.c (default_options_table): Revert OPT_frename_registers change.
10891 * doc/invoke.texi (-frename-registers, -O2): Likewise.
10893 2016-05-03 Martin Sebor <msebor@redhat.com>
10896 * builtins.c (fold_builtin_FILE): New function.
10897 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
10898 (fold_builtin_0): Call them.
10899 * gimplify.c (gimplify_call_expr): Remove the handling of
10900 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
10903 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
10904 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
10908 * doc/extend.texi (Function Names as Strings): Update __func__,
10909 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
10912 2016-05-03 Jakub Jelinek <jakub@redhat.com>
10913 Richard Biener <rguenther@suse.de>
10915 PR tree-optimization/70916
10916 * tree-if-conv.c: Include cfganal.h.
10917 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
10918 and remove_fake_exit_edges around the optimization pass.
10920 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
10922 * cgraph.c (symbol_table::create_edge): Set inline_failed.
10923 (cgraph_edge::make_direct): Likewise.
10924 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
10925 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
10926 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
10927 (CIF_THUNK): New code.
10928 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
10929 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
10930 (compute_inline_parameters): Set inline_failed for thunks.
10931 (inline_analyze_function): Cleanup.
10932 * ipa-inline.c (can_inline_edge_p): Do not deal with
10933 call_stmt_cannot_inline_p.
10934 (can_early_inline_edge_p): Likewise.
10935 (early_inliner): Initialize inline_failed.
10936 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
10938 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
10940 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
10941 from nonimm_ssenomem_operand.
10942 (nonimm_ssenomem_operand): New predicate.
10943 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
10944 as operand 0 predicate.
10945 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
10946 Disable unsupported alternatives using "enabled" attribute.
10947 Use register_ssemem_operand as operand 0 predicate.
10948 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
10950 2016-05-03 Marek Polacek <polacek@redhat.com>
10953 * input.c (expansion_point_location): New function.
10954 * input.h (expansion_point_location): Declare.
10956 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
10958 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
10959 occurence with frame_offset_ ones.
10961 2016-05-03 Alan Modra <amodra@gmail.com>
10963 PR rtl-optimization/70890
10964 * ira.c (combine_and_move_insns): When moving def_insn, remove
10965 equivs on use_insn.
10967 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
10969 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
10970 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
10971 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
10972 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
10974 2016-05-03 Alan Modra <amodra@gmail.com>
10976 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
10977 for SAVE_MULTIPLE/STORE_MULTIPLE.
10979 2016-05-03 Jakub Jelinek <jakub@redhat.com>
10981 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
10982 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
10984 2016-05-03 Richard Biener <rguenther@suse.de>
10986 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
10988 (gimplify_arg): Likewise.
10989 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
10990 re-writing the result to a decl if required.
10991 (internal_get_tmp_var): Add allow_ssa parameter
10992 and override into_ssa with it.
10993 (get_formal_tmp_var): Adjust.
10994 (get_initialized_tmp_var): Add allow_ssa parameter.
10995 (gimplify_arg): Add allow_ssa parameter and avoid generating
10996 SSA names for the result false.
10997 (gimplify_call_expr): If the call may return twice do not
10998 gimplify parameters into SSA.
10999 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
11000 (gimplify_modify_expr): Adjust assert. For noreturn calls
11001 with a SSA name LHS adjust its def.
11002 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
11003 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
11004 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
11005 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
11006 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
11007 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
11008 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
11009 (optimize_target_teams): Do not allow SSA names for clause operands.
11010 (gimplify_expr): Likewise for where we mark the result addressable.
11011 * passes.def (pass_init_datastructures): Remove.
11012 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
11013 (rewrite_stmt): Likewise.
11014 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
11015 (replace_locals_op): Replace SSA names.
11016 (copy_gimple_seq_and_replace_locals): Init src_cfun.
11017 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
11018 * cgraph.c (release_function_body): Free CFG annotations only
11019 when we have a CFG. Simplify.
11020 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
11021 force_gimple_operand instead of get_initialized_tmp_var.
11022 * tree-pass.h (make_pass_init_datastructures): Remove.
11023 * tree-ssa.c (execute_init_datastructures): Remove.
11024 (pass_data_init_datastructures): Likewise.
11025 (class pass_init_datastructures): Likewise.
11026 (make_pass_init_datastructures): Likewise.
11027 * omp-low.c (create_omp_child_function): Init SSA data structures.
11028 (grid_expand_target_grid_body): Likewise.
11029 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
11030 name before adding it to names_to_release.
11031 (remove_bb): Always release SSA defs.
11032 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
11033 before dereferencing it.
11034 * cgraphunit.c (init_lowered_empty_function): Always
11035 int SSA data structures.
11036 * tree-ssanames.c (release_defs): Remove assert that we are in
11038 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
11040 2016-05-03 Jakub Jelinek <jakub@redhat.com>
11041 Uros Bizjak <ubizjak@gmail.com>
11043 PR rtl-optimization/70467
11044 * config/i386/predicates.md (x86_64_hilo_int_operand,
11045 x86_64_hilo_general_operand): New predicates.
11046 * config/i386/constraints.md (Wd): New constraint.
11047 * config/i386/i386.md (mode attr di): Use Wd instead of e.
11048 (general_hilo_operand): New mode attr.
11049 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
11050 instead of <general_operand>.
11051 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
11052 x86_64_hilo_general_operand instead of <general_operand>.
11054 2016-05-03 Jakub Jelinek <jakub@redhat.com>
11056 PR tree-optimization/70916
11057 * tree-if-conv.c (constant_or_ssa_name): Removed.
11058 (fold_build_cond_expr): Use is_gimple_val instead of
11059 constant_or_ssa_name.
11061 PR tree-optimization/70916
11062 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
11063 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
11066 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
11067 (optimize_atomic_bit_test_and): New function.
11068 (pass_fold_builtins::execute): Use it.
11069 * optabs.def (atomic_bit_test_and_set_optab,
11070 atomic_bit_test_and_complement_optab,
11071 atomic_bit_test_and_reset_optab): New optabs.
11072 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
11073 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
11074 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
11075 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
11076 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
11077 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
11078 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
11079 * doc/md.texi (atomic_bit_test_and_set@var{mode},
11080 atomic_bit_test_and_complement@var{mode},
11081 atomic_bit_test_and_reset@var{mode}): Document.
11082 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
11083 atomic_bit_test_and_complement<mode>,
11084 atomic_bit_test_and_reset<mode>): New expanders.
11085 (atomic_bit_test_and_set<mode>_1,
11086 atomic_bit_test_and_complement<mode>_1,
11087 atomic_bit_test_and_reset<mode>_1): New insns.
11089 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
11091 PR rtl-optimization/70687
11092 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
11093 instead of unsigned HOST_WIDE_INT.
11095 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
11097 PR rtl-optimization/44281
11098 * hard-reg-set.h (struct target_hard_regs): New field
11099 x_fixed_nonglobal_reg_set.
11100 (fixed_nonglobal_reg_set): New macro.
11101 * reginfo.c (init_reg_sets_1): Initialize it.
11102 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
11104 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
11106 2016-05-03 Bin Cheng <bin.cheng@arm.com>
11108 PR tree-optimization/56541
11109 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
11110 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
11111 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
11112 (any_complicated_phi): new static variable.
11113 (aggressive_if_conv): delete.
11114 (if_convertible_phi_p): support phis with more than two arguments.
11115 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
11116 critical pred edges.
11117 (ifcvt_split_critical_edges): support phis with more than two
11118 arguments by checking new parameter. only split critical edges
11120 (tree_if_conversion): handle simd pragma marked loop using new
11121 local variable aggressive_if_conv. check any_complicated_phi.
11123 2016-05-03 Bin Cheng <bin.cheng@arm.com>
11125 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
11128 2016-05-03 Bin Cheng <bin.cheng@arm.com>
11130 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
11133 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
11135 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
11136 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
11137 define_insn_and_split.
11138 (mulsi3_i): New define_insn_and_split.
11139 (mulsi3_call): Convert to define_insn.
11140 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
11141 Remove constraints.
11143 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11145 * machmode.h (mode_complex): Add support to give the complex mode
11147 (GET_MODE_COMPLEX_MODE): Likewise.
11148 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
11149 stored by build_complex_type and gfc_build_complex_type instead of
11150 trying to figure out the appropriate mode based on the size. Raise
11151 an assertion error, if the type was not set.
11152 * genmodes.c (struct mode_data): Add field for the complex type of
11154 (blank_mode): Likewise.
11155 (make_complex_modes): Remember the complex mode created in the
11157 (emit_mode_complex): Write out the mode_complex array to map a
11158 type mode to the complex version.
11159 (emit_insn_modes_c): Likewise.
11160 * tree.c (build_complex_type): Set the complex type to use before
11161 calling layout_type.
11162 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
11163 support for __float128 complex datatypes.
11164 (rs6000_hard_regno_mode_ok): Likewise.
11165 (rs6000_setup_reg_addr_masks): Likewise.
11166 (rs6000_complex_function_value): Likewise.
11167 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
11168 __float128 and __ibm128 complex.
11169 (FLOAT128_IBM_P): Likewise.
11170 (ALTIVEC_ARG_MAX_RETURN): Likewise.
11171 * doc/extend.texi (Additional Floating Types): Document that
11172 -mfloat128 must be used to enable __float128. Document complex
11173 __float128 and __ibm128 support.
11175 2016-05-02 Jakub Jelinek <jakub@redhat.com>
11178 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
11179 char/short arguments promoted to int because of promote_prototypes.
11181 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
11183 * config/i386/predicates.md (register_ssemem_operand): New predicate.
11184 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
11185 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
11186 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
11187 alternatives using "enabled" attribute. Use register_ssemem_operand
11188 as operand 1 predicate.
11189 (*cmpi<unord>xf_i387): Split XFmode pattern from
11190 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
11191 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
11192 *absneg<mode>2_i387. Disable unsupported alternatives using
11193 "enabled" attribute.
11194 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
11196 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
11198 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
11200 (oacc_loop_process): Check mask for loop termination.
11202 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
11204 * cif-code.def (CIF_THUNK): Add.
11205 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
11208 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
11210 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
11211 (dump_inline_summary): Dump it.
11212 (fp_expression_p): New predicate.
11213 (estimate_function_body_sizes): Use it.
11214 (inline_merge_summary): Merge fp_expressions.
11215 (inline_read_section): Read fp_expressions.
11216 (inline_write_summary): Write fp_expressions.
11217 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
11218 codegen boundary if either caller or callee is !fp_expressions.
11219 * ipa-inline.h (inline_summary): Add fp_expressions.
11220 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
11221 to fp_expressions be sure the fp generation flags are updated.
11223 2016-05-02 Jakub Jelinek <jakub@redhat.com>
11225 PR rtl-optimization/70467
11226 * cse.c (cse_insn): Handle no-op MEM moves after folding.
11228 PR rtl-optimization/70467
11229 * ipa-pure-const.c (check_call): Handle internal calls even in
11230 ipa mode like in local mode.
11232 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
11234 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
11236 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
11238 * match.pd (X u< X, X u> X): New transformations.
11240 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
11242 * flag-types.h (enum warn_strict_overflow_code): Move ...
11243 * coretypes.h: ... here.
11244 * fold-const.h (fold_overflow_warning): Declare.
11245 * fold-const.c (fold_overflow_warning): Make non-static.
11246 (fold_comparison): Move the transformation of X +- C1 CMP C2
11247 into X CMP C2 -+ C1 ...
11248 * match.pd: ... here.
11249 * gimple-fold.c (fold_stmt_1): Protect with
11250 fold_defer_overflow_warnings.
11252 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
11254 * omp-low.c (struct oacc_loop): Add 'inner' field.
11255 (new_oacc_loop_raw): Initialize it to zero.
11256 (oacc_loop_fixed_partitions): Initialize it.
11257 (oacc_loop_auto_partitions): Partition outermost loop to outermost
11258 available partitioning.
11260 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
11262 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
11264 (umulsidi3): Likewise.
11265 (indirect_jump): Fix jump instruction assembly patterns.
11267 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
11270 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
11271 (nvptx_function_value): Assert non-NULL cfun.
11273 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
11275 PR rtl-optimization/70886
11276 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
11278 * cselib.h (rtx_equal_for_cselib_1): Declare.
11279 (rtx_equal_for_cselib_p: New inline function.
11280 * cselib.c (rtx_equal_for_cselib_p): Delete.
11281 (rtx_equal_for_cselib_1): Make public.
11283 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
11285 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
11286 (register_mixssei387nonimm_operand): Remove predicate.
11287 * config/i386/i386.md (*fop_<mode>_comm): Merge from
11288 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
11289 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
11290 for TARGET_MIX_SSE_I387 alternatives.
11291 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
11292 Disable unsupported alternatives using "enabled" attribute. Use
11293 nonimm_ssenomem_operand as operand 1 predicate. Also check
11294 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
11296 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
11298 * tree.c (cst_and_fits_in_hwi): Simplify.
11300 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
11302 * tree.h (wi::to_wide): New function.
11303 * expr.c (expand_expr_real_1): Use wi::to_wide.
11304 * fold-const.c (int_const_binop_1): Likewise.
11305 (extract_muldiv_1): Likewise.
11307 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
11309 * wide-int.h: Update offset_int and widest_int documentation.
11310 (WI_SIGNED_SHIFT_RESULT): New macro.
11311 (wi::binary_shift): Define signed_shift_result_type for
11312 shifts on offset_int- and widest_int-like types.
11313 (generic_wide_int): Support <<= and >>= if << and >> are supported.
11314 * tree.h (int_bit_position): Use shift operators instead of wi::
11316 * alias.c (adjust_offset_for_component_ref): Likewise.
11317 * expr.c (get_inner_reference): Likewise.
11318 * fold-const.c (fold_comparison): Likewise.
11319 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
11320 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
11321 * tree-dfa.c (get_ref_base_and_extent): Likewise.
11322 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
11323 (stmt_kills_ref_p): Likewise.
11324 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
11325 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
11326 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
11327 (ao_ref_init_from_vn_reference): Likewise.
11329 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
11331 * wide-int.h: Update offset_int and widest_int documentation.
11332 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
11333 (wi::binary_traits): Allow ordered comparisons between offset_int and
11334 offset_int, between widest_int and widest_int, and between either
11335 of these types and basic C types.
11336 (operator <, <=, >, >=): Define for the same combinations.
11337 * tree.h (tree_int_cst_lt): Use comparison operators instead
11338 of wi:: comparisons.
11339 (tree_int_cst_le): Likewise.
11340 * gimple-fold.c (fold_array_ctor_reference): Likewise.
11341 (fold_nonarray_ctor_reference): Likewise.
11342 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
11343 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
11344 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
11345 * tree-sra.c (completely_scalarize): Likewise.
11346 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
11347 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
11348 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
11349 (check_for_binary_op_overflow): Likewise.
11350 (search_for_addr_array): Likewise.
11351 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
11353 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
11355 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
11356 (arc_save_restore): Likewise.
11357 (arc_dwarf_register_span): Likewise.
11358 (arc_output_pic_addr_const): Initialize suffix variable.
11360 2016-05-02 Martin Liska <mliska@suse.cz>
11362 * symbol-summary.h (function_summary::function_summary):
11363 Remove checking assert for all cgraph nodes.
11364 (function_summary::get): Check summary_uid.
11365 (symtab_insertion): Check summary_uid.
11367 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
11369 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
11370 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
11371 bmaskn instruction.
11372 (arc_dwarf_register_span): Remove enum keyword.
11373 (compact_memory_operand_p): New function.
11374 * config/arc/arc.h (reg_class): Add code density register classes.
11375 (REG_CLASS_NAMES): Likewise.
11376 (REG_CLASS_CONTENTS): Likewise.
11377 * config/arc/arc.md (*movqi_insn): Add code density instructions.
11378 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
11379 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
11380 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
11381 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
11383 (h, Rcd, Rsd, Rzd): New register constraints.
11384 (T): Use compact_memory_operand_p function.
11385 * config/arc/predicates.md (compact_load_memory_operand): Remove.
11387 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
11389 * config/sh/sh.md (*negnegt, *movtt): Remove.
11391 2016-05-02 Marek Polacek <polacek@redhat.com>
11392 Tom de Vries <tom@codesourcery.com>
11394 PR tree-optimization/70700
11395 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
11396 bigger than FIRST_REF_NODE.
11398 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
11401 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
11403 (prepare_cbranch_operands): Don't use scratch register. Assume that
11404 function is used when pseudos can be created.
11405 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
11406 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
11407 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
11408 define_expand. Allow it only when pseudos can be created.
11409 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
11411 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
11413 * config/i386/constraints.md (BC): Only allow -1 operands.
11414 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
11415 Add "enabled" attribute. Update XI mode attribute calculation.
11416 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
11417 (*movoi_internal_avx): Update XI mode attribute calculation.
11418 (*movti_internal): Ditto.
11420 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
11422 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
11423 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
11425 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
11427 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
11428 statement on instruction code. Remove trailing spaces.
11429 (altivec_expand_stv_builtin): Likewise.
11431 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
11433 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
11434 (TARGET_FPU_DOUBLE): Simplify.
11435 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
11436 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
11437 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
11438 with 'TARGET_FPU_DOUBLE'.
11439 * config/sh/sh.md: Likewise.
11441 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
11443 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
11444 SH_DIV_STR_FOR_SIZE): Remove.
11445 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
11446 SH_DIV_STR_FOR_SIZE): Remove.
11448 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
11450 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
11451 logical_reg_operand): Delete.
11452 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
11453 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
11454 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
11455 match_operand and match_test.
11456 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
11457 variables on their first use. Return bool values.
11458 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
11459 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
11460 arith_reg_operand for input operand. Remove empty constraints.
11462 (*xorsi3_compact): Rename to xorsi3.
11463 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
11464 (*zero_extend<mode>si2_disp_mem): Update comment.
11467 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
11469 * config/sh/t-sh: Remove SH5 support.
11470 * config.gcc: Likewise.
11471 * configure: Likewise.
11473 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11475 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
11477 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
11479 * config/sh/sh.c (register_sh_passes, sh_option_override,
11480 sh_print_operand, prepare_move_operands,
11481 sh_can_follow_jump): Remove TARGET_SH1 checks.
11482 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
11483 PROMOTE_MODE): Likewise.
11484 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
11487 2016-04-30 Alan Modra <amodra@gmail.com>
11489 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
11490 restoring when fixed_reg_p, but allow out-of-line or stmw save.
11491 Check for user regs later to avoid unnecessary looping over regs.
11492 Merge user reg check with non-saved reg check. Don't force
11493 inline VR restore when static chain used.
11494 (rs6000_frame_related): Omit eh_frame info for user regs when
11496 (fixed_regs_p): Delete.
11498 2016-04-30 Alan Modra <amodra@gmail.com>
11500 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
11501 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
11504 2016-04-30 Alan Modra <amodra@gmail.com>
11507 * config/rs6000/rs6000.c (fixed_reg_p): New function.
11508 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
11511 2016-04-30 Alan Modra <amodra@gmail.com>
11513 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
11514 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
11515 flag_pic test for Darwin.
11517 2016-04-30 Alan Modra <amodra@gmail.com>
11519 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
11520 throw_calls_crossed.
11521 (REG_FREQ_CALLS_CROSSED): Delete.
11522 (REG_N_THROWING_CALLS_CROSSED): Delete.
11523 * regstat.c (regstat_bb_compute_ri): Don't calculate
11524 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
11525 (dump_reg_info): Don't print call cross frequency.
11526 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
11527 and REG_N_THROWING_CALLS_CROSSED.
11529 2016-04-30 Alan Modra <amodra@gmail.com>
11531 * regs.h (struct reg_info_t): Delete live_length.
11532 (REG_LIVE_LENGTH): Delete macro.
11533 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
11534 local_live, local_processed and local_live_last_luid params.
11535 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
11537 (regstat_compute_ri): Adjust for above. Don't set
11539 (dump_reg_info): Don't print live length.
11540 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
11541 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
11542 Localize loop_depth var.
11544 2016-04-30 Alan Modra <amodra@gmail.com>
11546 * ira.c (enum valid_equiv): New.
11547 (validate_equiv_mem): Return enum.
11548 (update_equiv_mem): Create replacement in more cases.
11549 (add_store_equivs): Update validate_equiv_mem call.
11551 2016-04-30 Alan Modra <amodra@gmail.com>
11553 * ira.c (combine_and_move_insns): Rather than scanning insns,
11554 use DF infrastucture to find use and def insns.
11556 2016-04-30 Alan Modra <amodra@gmail.com>
11558 ira.c (combine_and_move_insns): Move invariant conditions..
11559 (ira.c): ..to here. Call combine_and_move_insns before
11560 add_store_equivs. Call grow_reg_equivs later. Allocate
11561 req_equiv later using max_reg_num() rather than global max_regno.
11562 (contains_replace_regs): Delete.
11563 (add_store_equivs): Remove contains_replace_regs test.
11565 2016-04-30 Alan Modra <amodra@gmail.com>
11567 * ira.c (struct equiv_mem_data): New.
11568 (equiv_mem, equiv_mem_modified): Delete static vars.
11569 (validate_equiv_mem_from_store): Use "data" param to communicate..
11570 (validate_equiv_mem): ..from here.
11572 2016-04-30 Alan Modra <amodra@gmail.com>
11574 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
11576 (update_reg_equivs): ..here. Move allocation and freeing of
11577 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
11578 end_alias_analysis to..
11581 2016-04-30 Alan Modra <amodra@gmail.com>
11583 * ira.c (pdx_subregs): Delete.
11584 (struct equivalence): Add pdx_subregs field.
11585 (set_paradoxical_subreg): Remove pdx_subregs param. Update
11586 pdx_subregs access.
11587 (update_equiv_regs): Don't create or free pdx_subregs. Update
11588 pdx_subregs access.
11590 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11592 * config/rs6000/altivec.h: Change definitions of vec_xl and
11594 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
11595 (LD_ELEMREV_V2DI): New.
11596 (LD_ELEMREV_V4SF): New.
11597 (LD_ELEMREV_V4SI): New.
11598 (LD_ELEMREV_V8HI): New.
11599 (LD_ELEMREV_V16QI): New.
11600 (ST_ELEMREV_V2DF): New.
11601 (ST_ELEMREV_V2DI): New.
11602 (ST_ELEMREV_V4SF): New.
11603 (ST_ELEMREV_V4SI): New.
11604 (ST_ELEMREV_V8HI): New.
11605 (ST_ELEMREV_V16QI): New.
11608 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11609 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
11610 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
11611 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
11612 (altivec_expand_builtin): Add handling for
11613 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
11614 (rs6000_invalid_builtin): Add error-checking for
11615 RS6000_BTM_P9_VECTOR.
11616 (altivec_init_builtins): Define builtins used to implement vec_xl
11618 (rs6000_builtin_mask_names): Define power9-vector.
11619 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
11620 (RS6000_BTM_P9_VECTOR): Define.
11621 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
11622 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
11623 (vsx_ld_elemrev_v2df): Likewise.
11624 (vsx_ld_elemrev_v4sf): Likewise.
11625 (vsx_ld_elemrev_v4si): Likewise.
11626 (vsx_ld_elemrev_v8hi): Likewise.
11627 (vsx_ld_elemrev_v16qi): Likewise.
11628 (vsx_st_elemrev_v2df): Likewise.
11629 (vsx_st_elemrev_v2di): Likewise.
11630 (vsx_st_elemrev_v4sf): Likewise.
11631 (vsx_st_elemrev_v4si): Likewise.
11632 (vsx_st_elemrev_v8hi): Likewise.
11633 (vsx_st_elemrev_v16qi): Likewise.
11634 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
11637 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
11639 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
11641 (simplify_control_stmt_condition_1): ... here. Recurse into
11642 BIT_AND_EXPRs and BIT_IOR_EXPRs.
11644 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
11647 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
11648 (zero_extendqi<mode>2_dot): Revert earlier conversion from
11649 define_insn_and_split to define_insn.
11650 (zero_extendqi<mode>2_dot2): Same.
11651 (extendqi<mode>2_dot): Same.
11652 (extendqi<mode>2_dot2): Same.
11654 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
11656 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
11657 (probe_stack): New expander.
11658 (probe_stack_<mode>): New insn pattern.
11660 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
11662 * config/i386/i386.md
11663 (operations with memory inputs setting flags peephole2):
11664 Remove uneeded REG_P checks. Cleanup pattern generation.
11666 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
11668 * tree-vect-loop.c (vect_transform_loop): Fix
11669 nb_iterations_upper_bound computation for vectorized loop.
11671 2016-04-29 Marek Polacek <polacek@redhat.com>
11672 Jakub Jelinek <jakub@redhat.com>
11675 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
11676 TARGET_EXPR_SLOT as a base.
11678 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11680 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
11681 with 'rCm2' constraints to limit possible immediate size.
11682 (*load_zeroextendqisi_update): Likewise.
11683 (*load_signextendqisi_update): Likewise.
11684 (*loadhi_update): Likewise.
11685 (*load_zeroextendhisi_update): Likewise.
11686 (*load_signextendhisi_update): Likewise.
11687 (*loadsi_update): Likewise.
11688 (*loadsf_update): Likewise.
11690 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
11692 * config/i386/predicates.md (constm1_operand): Fix comparison.
11694 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
11696 * testsuite/gcc.target/arc/ieee_eq.c: New test.
11698 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
11700 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
11701 remaining SH5 related settings.
11702 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
11703 shmedia_prepare_call_address): Delete.
11704 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
11705 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
11706 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
11707 UNSUPPORTED_SH2A): Remove m5 checks.
11708 (sh_divide_strategy_e): Remove SH5 division strategies.
11709 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
11710 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
11712 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
11714 * config/s390/s390.c (s390_rtx_costs): Update documentation.
11716 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11718 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
11719 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
11720 Change lder to ldr.
11721 * config/s390/vector.md ("mov<mode>"): Likewise.
11723 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
11725 * config/s390/constraints.md ("U", "W"): Invoke
11726 s390_mem_constraint with "ZR" and "ZT".
11727 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
11728 addresses when using LRA. Accept also short displacements for S
11729 and T constraints. Do not check for long displacement target for
11730 S and T constraints.
11731 (s390_mem_constraint): Remove handling of U and W constraints.
11732 * config/s390/s390.md (various patterns): Remove the short
11733 displacement constraints (Q and R) if a long displacement
11734 constraint is present. Add longdisp as required CPU capability.
11735 * config/s390/vector.md: Likewise.
11736 * config/s390/vx-builtins.md: Likewise.
11738 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11741 * reload1.c (reload): Call finish_spills before
11742 restarting reload loop. Skip select_reload_regs
11743 if update_eliminables_and_spill returns true.
11745 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
11747 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
11748 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
11749 (umulhisi3_imm): Update predicates and constraint letters.
11750 (umulhisi3_reg): Declare instruction as commutative.
11751 * config/arc/constraints.md (J12, J16): New constraints.
11752 * config/arc/predicates.md (short_unsigned_const_operand): New
11754 (arc_short_operand): Likewise.
11755 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
11757 2016-04-29 Richard Biener <rguenther@suse.de>
11759 PR tree-optimization/13962
11760 PR tree-optimization/65686
11761 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
11762 * tree-ssa-alias.c (ptrs_compare_unequal): New function
11763 using PTA to compare pointers.
11764 * match.pd: Add pattern for pointer equality compare simplification
11765 using ptrs_compare_unequal.
11767 2016-04-29 Richard Biener <rguenther@suse.de>
11769 * stor-layout.c (layout_type): Do not build a pointer-to-element
11772 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
11774 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
11775 Use SWI mode iterator. Use general_reg_operand predicate.
11776 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
11777 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
11780 2016-04-29 Jakub Jelinek <jakub@redhat.com>
11782 PR middle-end/70843
11783 * fold-const.c (operand_equal_p): Don't verify hash value equality
11785 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
11788 2016-04-28 Jakub Jelinek <jakub@redhat.com>
11791 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
11792 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
11793 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
11794 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
11795 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
11797 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
11799 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
11800 to info. Don't initialize separate fields to 0. Clean up
11803 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
11805 * config/i386/i386.md (peephole2s for operations with memory inputs):
11806 Use SWI mode iterator.
11807 (peephole2s for operations with memory outputs): Ditto.
11808 Do not check for stack checking probe.
11810 (probe_stack): Remove expander.
11812 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
11813 Andrew Burgess <andrew.burgess@embecosm.com>
11815 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
11816 operands as 32-bits.
11818 2016-04-28 Jason Merrill <jason@redhat.com>
11820 * gdbinit.in: Skip line-map.h.
11822 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
11823 Andrew Burgess <andrew.burgess@embecosm.com>
11825 * config/arc/arc.c (arc_conditional_register_usage): Take
11826 TARGET_RRQ_CLASS into account.
11827 (arc_print_operand): Support printing 'p' and 's' operands.
11828 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
11830 (TARGET_RRQ_CLASS): Define.
11831 (IS_POWEROF2_OR_0_P): Define.
11832 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
11834 (*tst_movb): New define_insn.
11835 (*tst): Avoid recognition if it could prevent '*tst_movb'
11836 combination; replace c/CnL with c/Chs alternative.
11837 (*tst_bitfield_tst): New define_insn.
11838 (*tst_bitfield_asr): New define_insn.
11839 (*tst_bitfield): New define_insn.
11840 (andsi3_i): Add Rrq variant.
11841 (extzv): New define_expand.
11842 (insv): New define_expand.
11843 (*insv_i): New define_insn.
11844 (*movb): New define_insn.
11845 (*movb_signed): New define_insn.
11846 (*movb_high): New define_insn.
11847 (*movb_high_signed): New define_insn.
11848 (*movb_high_signed + 1): New define_split pattern.
11849 (*mrgb): New define_insn.
11850 (*mrgb + 1): New define_peephole2 pattern.
11851 (*mrgb + 2): New define_peephole2 pattern.
11852 * config/arc/arc.opt (mbitops): New option for nps400, uses
11853 TARGET_NPS_BITOPS_DEFAULT.
11854 * config/arc/constraints.md (q): Make register class conditional.
11855 (Rrq): New register constraint.
11856 (Chs): New constraint.
11857 (Clo): New constraint.
11858 (Chi): New constraint.
11859 (Cbf): New constraint.
11860 (Cbn): New constraint.
11861 (C18): New constraint.
11862 (Cbi): New constraint.
11864 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
11866 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
11868 (bitmap_intersection_of_preds): Ditto.
11869 (bitmap_union_of_succs): Ditto.
11870 (bitmap_union_of_preds): Ditto.
11871 * sbitmap.c (do_popcount): Delete.
11872 (BITMAP_DEBUGGING): Delete.
11873 (sbitmap_verify_popcount): Delete.
11874 (sbitmap_alloc): Don't initialize the popcount field.
11875 (sbitmap_alloc_with_popcount): Delete.
11876 (sbitmap_resize): Don't resize the popcount array.
11877 (sbitmap_vector_alloc): Don't initialize the popcount field.
11878 (bitmap_copy): Don't copy the popcount array.
11879 (bitmap_clear): Don't clear the popcount array.
11880 (bitmap_clear): Delete the popcount array handling.
11881 (bitmap_ior_and_compl): Delete the popcount assert.
11882 (bitmap_not): Ditto.
11883 (bitmap_and_compl): Ditto.
11884 (bitmap_and): Delete the popcount array handling.
11885 (bitmap_xor): Ditto.
11886 (bitmap_ior): Ditto.
11887 (bitmap_or_and): Delete the popcount assert.
11888 (bitmap_and_or): Ditto.
11889 (popcount_table): Delete.
11890 (sbitmap_elt_popcount): Delete.
11891 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
11892 (bitmap_set_bit): Delete the popcount assert.
11893 (bitmap_clear_bit): Ditto.
11894 (sbitmap_free): Don't free the popcount array.
11895 (sbitmap_alloc_with_popcount): Delete declaration.
11896 (sbitmap_popcount): Ditto.
11898 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
11899 Andrew Burgess <andrew.burgess@embecosm.com>
11901 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
11902 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
11903 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
11904 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
11905 * config/arc/arc.opt (mcmem): New option.
11906 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
11907 supply length for r/m alternative.
11908 (*extendqisi2_ac): Likewise.
11909 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
11911 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
11912 (movhi_insn): Likewise.
11913 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
11914 (*zero_extendqihi2_i): Add r/Ucm alternative.
11915 (*zero_extendqisi2_ac): Likewise.
11916 (*zero_extendhisi2_i): Likewise.
11917 * config/arc/constraints.md (Uex): New memory constraint.
11918 (Ucm): New define_constraint.
11919 * config/arc/predicates.md (long_immediate_loadstore_operand):
11920 Return 0 for MEM with cmem_address address.
11921 (cmem_address_0): New predicates.
11922 (cmem_address_1): Likewise.
11923 (cmem_address_2): Likewise.
11924 (cmem_address): Likewise.
11926 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
11928 * config/rs6000/rs6000.c (machine_function): Rename
11929 insn_chain_scanned_p to spe_insn_chain_scanned_p.
11930 (rs6000_stack_info): Adjust.
11932 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
11933 Andrew Burgess <andrew.burgess@embecosm.com>
11935 * config/arc/constraints.md (Usd): Convert to define_constraint.
11939 2016-04-28 Jakub Jelinek <jakub@redhat.com>
11942 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
11943 Add new peephole2 where the first insn is *mov<mode>_or instead of
11944 *mov<mode>_internal.
11946 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
11948 * tracer.c (bb_seen): Make static.
11950 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
11952 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
11953 support, setup defaults.
11954 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
11955 * config/arc/arc.c (arc_init): Add NPS400 support.
11956 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
11957 (TARGET_ARC700): NPS400 is also an ARC700.
11958 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
11960 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
11963 * config/nds32/nds32.md (casesi): Don't access the operands array
11966 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
11968 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
11969 (or $-1,reg peephole2): Ditto.
11970 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
11972 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
11974 * doc/extend.texi (Common Function Attributes) [optimize]:
11975 Discourage use of the optimize attribute.
11977 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
11979 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
11980 special case builtin.
11981 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
11982 ALTIVEC_BUILTIN_VEC_ADDE.
11983 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
11984 support for ALTIVEC_BUILTIN_VEC_ADDE.
11985 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
11986 for __builtin_vec_adde.
11988 2016-04-28 Jakub Jelinek <jakub@redhat.com>
11990 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
11991 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
11993 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11996 * doc/sourcebuild.texi (Effective-Target Keywords, Other
11997 attributes): Document cilkplus_runtime.
11999 2016-04-28 Martin Jambor <mjambor@suse.cz>
12001 * tree-cfg.c (verify_expr): Verify that local declarations belong to
12002 this function. Call verify_expr on MEM_REFs and bases of other
12003 handled_components.
12005 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12007 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
12008 for WORD_REGISTER_OPERATIONS to runtime check.
12010 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
12012 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
12014 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
12016 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
12017 big-endian compilation.
12018 * config/arc/arc.md (addf3): Likewise.
12019 (subdf3): Likewise.
12020 (muldf3): Likewise.
12022 2016-04-28 Richard Biener <rguenther@suse.de>
12024 PR tree-optimization/70840
12025 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
12026 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
12027 Mark x * pow(x,c) -> pow(x,c+1) commutative.
12028 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
12030 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12032 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
12033 and explain why in a comment.
12035 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
12037 * config/arc/arc.md (cpu_facility): Add fpx variant.
12038 (subdf3): Prohibit use reverse sub when assist operations option
12040 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
12041 instructions only when FPX is enabled.
12042 * testsuite/gcc.target/arc/trsub.c: New test.
12044 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
12046 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
12047 mult_operator when calculating "type" attribute.
12048 (*fop_<mode>_1_i387): Ditto.
12049 (*fop_xf_1_i387): Ditto.
12050 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
12051 Use std::swap to swap operands. Use RTL expressions to generate
12054 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
12055 Joern Rennecke <joern.rennecke@embecosm.com>
12057 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
12059 (emit_pic_move): Remove.
12060 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
12061 * config/arc/arc.c (emit_pic_move): Removed.
12062 (TARGET_HAVE_TLS): Define.
12063 (arc_conditional_register_usage): Test for arc_tp_regno.
12064 (arc_print_operand, arc_print_operand_address): Handle TLS
12066 (arc_needs_pcl_p): New function.
12067 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
12068 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
12069 (arc_raw_symbolic_reference_mentioned_p): Likewise.
12070 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
12071 (arc_legitimize_tls_address): Likewise.
12072 (DTPOFF_ZERO_SYM): Define.
12073 (arc_legitimize_pic_address): Make it static, handle TLS cases.
12074 (arc_output_pic_addr_const): Print TLS unspecs.
12075 (prepare_pic_move): New function, replaces emit_pic_move.
12076 (arc_legitimate_constant_p): Handle TLS unspecs.
12077 (arc_legitimate_address_p): Likewise.
12078 (arc_rewrite_small_data_p): Use assert for TLS constants.
12079 (prepare_move_operands): Use prepare_pic_move.
12080 (arc_legitimize_address): Legitimize tls addresses.
12081 (arc_epilogue_uses): Check for arc_tp_regno.
12082 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
12083 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
12085 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
12087 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
12088 %(arc_tls_extra_start_spec).
12089 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
12090 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
12092 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
12093 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
12094 (UNSPEC_TLS_OFF): Add.
12096 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
12097 (get_thread_pointersi): New patterns.
12098 * config/arc/arc.opt (mtp-regno): New option.
12099 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
12100 (move_dest_operand): Likewise.
12101 * configure: Regenerate.
12102 * configure.ac: Add arc*-*-* case to test for tls.
12103 * doc/invoke.texi (ARC options): Document mtp-regno.
12105 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
12107 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
12108 the new ARC HS SIMD instructions.
12109 (arc_preferred_simd_mode): New function.
12110 (arc_autovectorize_vector_sizes): Likewise.
12111 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
12112 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
12113 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
12114 (arc_init_builtins): Add new SIMD builtin types.
12115 (arc_split_move): Handle 64 bit vector moves.
12116 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
12117 (TARGET_PLUS_QMACW): Define.
12118 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
12119 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
12120 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
12121 (VSUBADD4H): New builtins.
12122 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
12123 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
12125 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
12126 Matthias Klose <doko@debian.org>
12128 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
12130 2016-04-28 Richard Biener <rguenther@suse.de>
12132 PR middle-end/70777
12133 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
12136 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
12138 * common/config/sh/sh-common.c: Remove SH5 support.
12139 * config/sh/constraints.md: Likewise.
12140 * config/sh/config/sh/elf.h: Likewise.
12141 * config/sh/linux.h: Likewise.
12142 * config/sh/netbsd-elf.h: Likewise.
12143 * config/sh/predicates.md: Likewise.
12144 * config/sh/sh-c.c: Likewise.
12145 * config/sh/sh-protos.h: Likewise.
12146 * config/sh/sh.c: Likewise.
12147 * config/sh/sh.h: Likewise.
12148 * config/sh/sh.md: Likewise.
12149 * config/sh/sh.opt: Likewise.
12150 * config/sh/sync.md: Likewise.
12151 * config/sh/sh64.h: Delete.
12152 * config/sh/shmedia.h: Likewise.
12153 * config/sh/shmedia.md: Likewise.
12154 * config/sh/sshmedia.h: Likewise.
12155 * config/sh/t-netbsd-sh5-64: Likewise.
12156 * config/sh/t-sh64: Likewise.
12157 * config/sh/ushmedia.h: Likewise.
12159 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
12161 * config/i386/i386.md (sign_extend to memory peephole2s): Use
12162 general_reg_operand instead of register_operand predicate.
12164 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12166 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
12168 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
12170 * match.pd (A - B > A, A + B < A): New transformations.
12172 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
12174 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
12175 which defaults to true. Emit an outer pair of parentheses only if
12176 EMIT_PARENS. When continuing a chain of && or || (or & or |),
12177 don't emit parentheses for the right-hand operand.
12179 2016-04-27 Jeff Law <law@redhat.com>
12181 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
12183 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12185 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
12186 (altivec_lvx_<mode>_internal): Document.
12187 (altivec_lvx_<mode>_2op): New define_insn.
12188 (altivec_lvx_<mode>_1op): Likewise.
12189 (altivec_lvx_<mode>_2op_si): Likewise.
12190 (altivec_lvx_<mode>_1op_si): Likewise.
12191 (altivec_stvx_<mode>): Remove.
12192 (altivec_stvx_<mode>_internal): Document.
12193 (altivec_stvx_<mode>_2op): New define_insn.
12194 (altivec_stvx_<mode>_1op): Likewise.
12195 (altivec_stvx_<mode>_2op_si): Likewise.
12196 (altivec_stvx_<mode>_1op_si): Likewise.
12197 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12198 Expand vec_ld and vec_st during parsing.
12199 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
12201 (altivec_expand_stvx_be): Likewise.
12202 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
12203 address-masking behavior in RTL.
12204 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
12205 address-masking behavior in RTL.
12206 (altivec_expand_builtin): Change builtin code arguments for calls
12207 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
12208 (insn_is_swappable_p): Avoid incorrect swap optimization in the
12209 presence of lvx/stvx patterns.
12210 (alignment_with_canonical_addr): New function.
12211 (alignment_mask): Likewise.
12212 (find_alignment_op): Likewise.
12213 (recombine_lvx_pattern): Likewise.
12214 (recombine_stvx_pattern): Likewise.
12215 (recombine_lvx_stvx_patterns): Likewise.
12216 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
12217 stvx patterns from expand.
12218 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
12220 (vector_altivec_store_<mode>): Likewise.
12222 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
12224 * config/aarch64/aarch64.md
12225 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
12226 remove the "fp" attributes.
12227 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
12228 add the "simd" attributes.
12229 (*movdf_aarch64): Likewise.
12230 (*movtf_aarch64): Remove the "fp" attributes.
12231 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
12232 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
12234 2016-04-27 David Malcolm <dmalcolm@redhat.com>
12236 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
12237 rtx to rtx_code_label *.
12238 * rtl.h (maybe_set_first_label_num): Likewise.
12240 2016-04-27 David Malcolm <dmalcolm@redhat.com>
12242 * df-core.c (df_add_problem): Make the problem param be const.
12243 (df_remove_problem): Make local "problem" be const.
12244 * df-problems.c (problem_RD): Make const.
12245 (problem_LR): Likewise.
12246 (problem_LIVE): Likewise.
12247 (problem_MIR): Likewise.
12248 (problem_CHAIN): Likewise.
12249 (problem_WORD_LR): Likewise.
12250 (problem_NOTE): Likewise.
12251 (problem_MD): Likewise.
12252 * df-scan.c (problem_SCAN): Likewise.
12253 * df.h (struct df_problem): Make field "dependent_problem" be
12255 (struct dataflow): Likewise for field "problem".
12256 (df_add_problem): Make param const.
12258 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
12260 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
12261 inter-unit moves to/from vector registers are enabled. Do not disable
12264 2016-04-27 David Malcolm <dmalcolm@redhat.com>
12266 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
12267 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
12269 (enum df_problem_id): ...this new enum.
12270 (struct df_problem): Convert field "id" from "int" to
12271 enum df_problem_id.
12273 2016-04-27 David Malcolm <dmalcolm@redhat.com>
12275 * rtl.def: Update comment for "things in the instruction chain" to
12276 reflect the removal of the leading "i" field for INSN_UID in
12277 r210360. Fix bogus apostrophe.
12279 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
12281 * config/i386/i386.md
12282 (lea arith with mem operand + setcc peephole2): Set operator mode.
12284 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
12287 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
12288 (dimode_scalar_to_vector_candidate_p): This.
12289 (timode_scalar_to_vector_candidate_p): New function.
12290 (scalar_to_vector_candidate_p): Likewise.
12291 (timode_check_non_convertible_regs): Likewise.
12292 (timode_remove_non_convertible_regs): Likewise.
12293 (remove_non_convertible_regs): Likewise.
12294 (remove_non_convertible_regs): Renamed to ...
12295 (dimode_remove_non_convertible_regs): This.
12296 (scalar_chain::~scalar_chain): Make it virtual.
12297 (scalar_chain::compute_convert_gain): Make it pure virtual.
12298 (scalar_chain::mark_dual_mode_def): Likewise.
12299 (scalar_chain::convert_insn): Likewise.
12300 (scalar_chain::convert_registers): Likewise.
12301 (scalar_chain::add_to_queue): Make it protected.
12302 (scalar_chain::emit_conversion_insns): Likewise.
12303 (scalar_chain::replace_with_subreg): Likewise.
12304 (scalar_chain::replace_with_subreg_in_insn): Likewise.
12305 (scalar_chain::convert_op): Likewise.
12306 (scalar_chain::convert_reg): Likewise.
12307 (scalar_chain::make_vector_copies): Likewise.
12308 (scalar_chain::convert_registers): New pure virtual function.
12309 (class dimode_scalar_chain): New class.
12310 (class timode_scalar_chain): Likewise.
12311 (scalar_chain::mark_dual_mode_def): Renamed to ...
12312 (dimode_scalar_chain::mark_dual_mode_def): This.
12313 (timode_scalar_chain::mark_dual_mode_def): New function.
12314 (timode_scalar_chain::convert_insn): Likewise.
12315 (dimode_scalar_chain::convert_registers): Likewise.
12316 (scalar_chain::compute_convert_gain): Renamed to ...
12317 (dimode_scalar_chain::compute_convert_gain): This.
12318 (scalar_chain::replace_with_subreg): Renamed to ...
12319 (dimode_scalar_chain::replace_with_subreg): This.
12320 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
12321 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
12322 (scalar_chain::make_vector_copies): Renamed to ...
12323 (dimode_scalar_chain::make_vector_copies): This.
12324 (scalar_chain::convert_reg): Renamed to ...
12325 (dimode_scalar_chain::convert_reg ): This.
12326 (scalar_chain::convert_op): Renamed to ...
12327 (dimode_scalar_chain::convert_op): This.
12328 (scalar_chain::convert_insn): Renamed to ...
12329 (dimode_scalar_chain::convert_insn): This.
12330 (scalar_chain::convert): Call convert_registers.
12331 (convert_scalars_to_vector): Change to scalar_chain pointer to
12332 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
12333 in 32-bit mode. Delete scalar_chain pointer. Call
12334 free_dominance_info in 64-bit mode.
12335 (pass_stv::gate): Remove TARGET_64BIT check.
12336 (ix86_option_override): Put the 64-bit STV pass before the CSE
12339 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
12341 * dwarf2out.h (struct dw_loc_descr_node): Remove the
12342 dw_loc_frame_offset field.
12343 * dwarf2out.c (new_loc_descr): Likewise.
12344 (resolve_args_picking_1): Turn the VISITED hash set into a
12345 FRAME_OFFSET hash map. Use it to associate a frame offset to
12346 visited nodes. Remove uses of the CHECKING_P macro.
12347 (resolve_args_picking): Update call to resolve_args_picking_1.
12349 2016-04-27 Martin Liska <mliska@suse.cz>
12351 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
12352 (free_loop_data): Release vuses of groups.
12354 2016-04-27 Bin Cheng <bin.cheng@arm.com>
12356 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
12357 instead of redundant use_id and boolean have_use_for.
12358 (struct iv_use): Change sub_id into group_id. Remove field next.
12359 Move fields: related_cands, n_map_members, cost_map and selected
12361 (struct iv_group): ... here. New structure.
12362 (struct iv_common_cand): Use structure declaration directly.
12363 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
12364 (MAX_CONSIDERED_USES): Rename macro to ...
12365 (MAX_CONSIDERED_GROUPS): ... here.
12366 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
12367 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
12368 (dump_uses): Rename to ...
12369 (dump_groups): ... here. Update all uses.
12370 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
12371 (find_induction_variables): Refactor format of dump information.
12372 (record_sub_use): Delete.
12373 (record_use): Update all uses.
12374 (record_group): New function.
12375 (record_group_use, find_interesting_uses_op): Call above functions.
12377 (find_interesting_uses_cond): Ditto.
12378 (group_compare_offset): New function.
12379 (split_all_small_groups): Rename to ...
12380 (split_small_address_groups_p): ... here. Update all uses.
12381 (split_address_groups): Update all uses.
12382 (find_interesting_uses): Refactor format of dump information.
12383 (add_candidate_1): Update all uses. Remove redundant check on iv,
12385 (add_candidate, record_common_cand): Remove redundant assert.
12386 (add_iv_candidate_for_biv): Update use.
12387 (add_iv_candidate_derived_from_uses): Update all uses.
12388 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
12389 (alloc_use_cost_map): Ditto.
12390 (set_use_iv_cost, get_use_iv_cost): Rename to ...
12391 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
12392 (determine_use_iv_cost_generic): Ditto.
12393 (determine_group_iv_cost_generic): Ditto.
12394 (determine_use_iv_cost_address): Ditto.
12395 (determine_group_iv_cost_address): Ditto.
12396 (determine_use_iv_cost_condition): Ditto.
12397 (determine_group_iv_cost_cond): Ditto.
12398 (determine_use_iv_cost): Ditto.
12399 (determine_group_iv_cost): Ditto.
12400 (set_autoinc_for_original_candidates): Update all uses.
12401 (find_iv_candidates): Update all uses. Refactor dump information.
12402 (determine_use_iv_costs): Ditto.
12403 (determine_iv_costs): Ditto.
12404 (iv_ca_cand_for_use): Rename to ...
12405 (iv_ca_cand_for_group): ... here. Update all uses.
12406 (iv_ca_add_use, iv_ca_add_group): Ditto.
12407 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
12408 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
12409 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
12410 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
12411 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
12412 (create_new_iv, adjust_iv_update_pos): Ditto.
12413 (rewrite_use_address): Delete.
12414 (rewrite_use_address_1): Rename to ...
12415 (rewrite_use_address): ... here.
12416 (rewrite_use_compare): Update all uses.
12417 (rewrite_use): Delete.
12418 (rewrite_uses): Rename to ...
12419 (rewrite_groups): ... here. Update all uses.
12420 (remove_unused_ivs, free_loop_data): Update all uses.
12421 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
12423 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12425 * rtlanal.c (nonzero_bits1): Convert preprocessor check
12426 for WORD_REGISTER_OPERATIONS to runtime check.
12428 2016-04-27 Richard Biener <rguenther@suse.de>
12431 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
12432 aggregate_value_p to determine if a function result is
12433 returned by reference.
12434 (ipa_pta_execute): Functions having their address taken are
12435 not automatically nonlocal.
12437 2016-04-27 Jakub Jelinek <jakub@redhat.com>
12440 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
12441 * fold-const.c (operand_equal_p): If flag_checking and
12442 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
12443 and if it returns non-zero, assert iterative_hash_expr on both
12446 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
12448 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
12450 2016-04-27 Nick Clifton <nickc@redhat.com>
12452 PR middle-end/49889
12453 * varasm.c (merge_weak): Generate an error if an attempt is made
12454 to convert a non-weak static function into a weak, public function.
12456 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12458 * params.def (MAX_PARTITION_SIZE): New param.
12459 * doc/invoke.texi: Document lto-max-partition.
12461 2016-04-27 Richard Biener <rguenther@suse.de>
12464 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
12465 function cummulating used_from_other_partition, externally_visible
12466 and force_output from aliases.
12467 (refered_from_nonlocal_var): Likewise.
12468 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
12469 node flags properly.
12471 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
12473 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
12474 (-Wmemset-elt-size): New item.
12476 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
12479 * stor-layout.h (internal_reference_types): Delete.
12480 * stor-layout.c (reference_types_internal): Likewise.
12481 (internal_reference_types): Likewise.
12482 (layout_type) <REFERENCE_TYPE>: Adjust.
12484 2016-04-27 Jakub Jelinek <jakub@redhat.com>
12487 * tree.h (inchash::add_expr): Add FLAGS argument.
12488 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
12489 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
12490 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
12491 Formatting fix. Adjust recursive calls. For tcc_comparison,
12492 if swap_tree_comparison (code) is smaller than code, hash that
12493 and arguments in the other order. Hash CONVERT_EXPR the same
12494 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
12495 of ADDR_EXPR of decl as the decl itself. Add or remove
12496 OEP_ADDRESS_OF from recursive flags as needed. For
12497 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
12498 operands commutatively and only the third one normally.
12499 For internal CALL_EXPR hash in CALL_EXPR_IFN.
12501 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
12503 * config/rtems.h (LIB_SPEC): Add -latomic.
12505 2016-04-27 Joel Sherrill <joel@rtems.org>
12507 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
12508 xilink.ld and flags not relevant to RTEMS.
12510 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
12512 * toplev.c (backend_init_target): Avoid calling init_reload when using
12515 2016-04-26 Jakub Jelinek <jakub@redhat.com>
12517 * reorg.c (try_merge_delay_insns): Declare i and j inside the
12518 for loops rather than one for the whole function.
12520 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
12522 * match.pd (X + CST CMP X): New transformation.
12524 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
12526 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
12527 * fold-const.c (fold_binary_loc): Remove 2 transformations
12528 superseded by match.pd.
12529 * match.pd (x+x -> x*2): Generalize to integers.
12531 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
12533 * config/i386/i386.md (operation on memory peephole): Duplicate an
12534 existing peephole and adapt it to match lea rather than an operation
12537 PR rtl-optimization/57193
12538 * opts.c (default_options_table): Add OPT_frename_registers at -O2
12540 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
12542 2016-04-26 Bin Cheng <bin.cheng@arm.com>
12544 * tree-if-conv.c (any_pred_load_store): New static variable.
12545 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
12546 any_pred_load_store instead of and_mask_load_store.
12547 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
12548 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
12549 (combine_blocks, tree_if_conversion): Ditto.
12551 2016-04-26 Bin Cheng <bin.cheng@arm.com>
12553 PR tree-optimization/70771
12554 PR tree-optimization/70775
12555 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
12556 virtual PHI nodes. Delete parameter.
12557 (if_convertible_loop_p_1): Delete argument to above function.
12558 (predicate_all_scalar_phis): Delete code handling single-argument
12560 (tree_if_conversion): Mark and update virtual SSA.
12562 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12565 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
12566 (x86_elf_aligned_common): Rename to ...
12567 (x86_elf_aligned_decl_common): ... this.
12568 Add decl arg. Switch to .lbss for largecomm object. Use
12569 LARGECOMM_SECTION_ASM_OP.
12570 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
12572 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
12573 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
12575 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
12576 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
12578 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12581 * config/i386/i386.c (SECTION_LARGE): Define.
12582 (x86_64_elf_select_section): Set it for large data/bss sections.
12583 Only clear SECTION_WRITE for .lrodata.
12584 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
12586 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
12587 * varasm.c (default_elf_asm_named_section): Grow flagchars.
12588 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
12590 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
12591 * doc/tm.texi: Regenerate.
12593 2016-04-26 Jakub Jelinek <jakub@redhat.com>
12596 * configure.ac (--enable-checking): Document extra flag, for
12597 non-release builds default to --enable-checking=yes,extra.
12598 If misc checking and extra checking, define CHECKING_P to 2 instead
12600 * common.opt (fchecking=): Add.
12601 * doc/invoke.texi (-fchecking=): Document.
12602 * doc/install.texi: Document --enable-checking changes.
12603 * configure: Regenerated.
12604 * config.in: Regenerated.
12606 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
12608 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
12609 attribute instead of which_alternative.
12610 * config/i386/sse.md (*mov<mode>_internal): Ditto.
12611 Use EXT_REX_SSE_REG_P where appropriate.
12613 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
12615 * config/i386/predicates.md (const0_operand): Do not match
12616 const_wide_int code.
12617 (const1_operand): Ditto.
12619 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
12621 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
12622 for SSE constm1 operands and TARGET_AVX512VL.
12623 (*movti_internal): Ditto.
12624 (*mov<mode>_or): Use constm1_operand predicate.
12625 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
12626 for SSE vector_all_ones operands and TARGET_AVX512VL.
12627 * config/i386/predicates.md (constm1_operand): New predicate.
12628 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
12629 emission of constant -1 load.
12631 2016-04-25 Jason Merrill <jason@redhat.com>
12633 * gdbinit.in: Skip is-a.h.
12635 * attribs.c (register_scoped_attributes): Fix logic.
12636 * attribs.h: Declare register_scoped_attributes.
12638 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12640 * config/rs6000/rs6000-builtin.def: Correct pasto error for
12641 stxvd2x and stxvw4x built-in functions.
12643 2016-04-25 DJ Delorie <dj@redhat.com>
12645 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
12646 (ashrhi3): Likewise.
12647 (lshrhi3): Likewise.
12649 2016-04-25 Richard Biener <rguenther@suse.de>
12651 PR tree-optimization/70780
12652 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
12653 wasn't visited yet.
12654 (compute_antic): Mark blocks with abnormal preds as visited as
12655 they have a final empty antic-in solution already.
12657 2016-04-25 Michael Collison <michael.collison@linaro.org>
12659 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
12661 2016-04-25 Michael Collison <michael.collison@linaro.org>
12663 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
12664 mode is VQI to improve mixed mode vectorization.
12665 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
12666 define_insn to match low half of signed vaddw.
12667 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
12668 define_insn to match high half of signed vaddw.
12669 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
12670 define_insn to match low half of unsigned vaddw.
12671 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
12672 define_insn to match high half of unsigned vaddw.
12673 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
12674 (arm_simd_check_vect_par_cnst_half_p): Likewise.
12675 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
12677 (arm_simd_check_vect_par_cnst_half_p): Likewise.
12678 * config/arm/predicates.md (vect_par_constant_high): Support
12679 big endian and simplify by calling
12680 arm_simd_check_vect_par_cnst_half
12681 (vect_par_constant_low): Likewise.
12683 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
12685 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
12686 predicate for operand 2.
12688 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
12689 H.J. Lu <hongjiu.lu@intel.com>
12691 * config/i386/i386-protos.h (standard_sse_constant_p): Add
12692 machine_mode argument.
12693 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
12694 constm1_rtx operands. For VOIDmode constants, get mode from
12695 pred_mode. Check mode size if the mode is supported by ABI.
12696 (standard_sse_constant_opcode): Do not use standard_constant_p.
12697 Strictly check ABI support for all-ones operands.
12698 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
12699 immediates. Update calls to standard_sse_constant_p.
12700 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
12701 (ix86_rtx_costs): Ditto.
12702 * config/i386/i386.md (*movxi_internal_avx512f): Use
12703 nonimmediate_or_sse_const_operand instead of vector_move_operand.
12704 Use (v,BC) alternative instead of (v,C). Use register_operand
12705 checks instead of MEM_P.
12706 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
12707 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
12708 isa attribute. Use register_operand checks instead of MEM_P.
12709 (*movti_internal): Use nonimmediate_or_sse_const_operand for
12710 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
12711 alternative and corresponding sse2 isa attribute.
12712 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
12713 to standard_sse_constant_p.
12714 (FP constant splitters): Ditto.
12715 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
12717 * config/i386/predicates.md (constm1_operand): Remove.
12718 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
12719 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
12720 vector_all_ones_operand instead of constm1_operand.
12722 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12724 * print-rtl.c (print_rtx_insn_vec): New function.
12725 * print-rtl.h: New prototype.
12726 * store-motion.c (struct st_expr): Make avail_stores a vector.
12727 (st_expr_entry): Adjust.
12728 (free_st_expr_entry): Likewise.
12729 (print_store_motion_mems): Likewise.
12730 (find_moveable_store): Likewise.
12731 (compute_store_table): Likewise.
12732 (delete_store): Likewise.
12733 (build_store_vectors): Likewise.
12735 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12737 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
12739 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12741 * vec.h (vec_safe_contains): New function.
12742 (vec::contains): Likewise.
12743 (vec::begin): Likewise.
12744 (vec::end): Likewise.
12746 2016-04-23 Jakub Jelinek <jakub@redhat.com>
12749 * cfgexpand.c (expand_stack_vars): Fix typo.
12751 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
12753 * system.h (list, map, set, vector): Include conditionally.
12754 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
12755 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
12756 * ipa-icf.c (INCLUDE_LIST): Define.
12757 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
12758 * config/sh/sh.c (INCLUDE_VECTOR): Define.
12759 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
12760 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
12761 * cp/logic.cc (INCLUDE_LIST): Define.
12762 * fortran/trans-common.c (INCLUDE_MAP): Define.
12764 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
12766 * auto-profile.c: Remove <string.h> include.
12767 * ipa-icf-gimple.c: Remove <list> include.
12768 * diagnostic.c: Remove <new> include.
12769 * genmatch.c: Likewise.
12770 * pretty-print.c: Likewise.
12771 * toplev.c: Likewise
12772 * c/c-objc-common.c: Likewise.
12773 * cp/error.c: Likewise.
12774 * fortran/error.c: Likewise.
12776 2016-04-22 Richard Biener <rguenther@suse.de>
12778 * lto-streamer-in.c (input_ssa_names): Do not allocate
12779 GIMPLE_NOP for all SSA names.
12780 * lto-streamer-out.c (output_ssa_names): Do not output
12781 SSA names that should have been released.
12783 2016-04-22 Richard Biener <rguenther@suse.de>
12785 PR tree-optimization/70740
12786 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
12789 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
12792 * config/i386/predicates.md (call_insn_operand): Replace
12793 sibcall_memory_operand with memory_operand.
12795 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
12797 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
12798 has_single_use() tests.
12799 (register_edge_assert_for_1): Likewise.
12800 (find_assert_locations_1): Check the liveness bitmap instead of
12801 checking has_single_use().
12803 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
12806 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
12807 Extract AVX-512BW constraint from AVX.
12809 2016-04-21 Richard Biener <rguenther@suse.de>
12811 PR tree-optimization/70725
12812 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
12813 for phi_convertible_by_degenerating_args.
12814 (predicate_all_scalar_phis): Handle single-argument PHIs.
12816 2016-04-21 Richard Biener <rguenther@suse.de>
12818 PR middle-end/70747
12819 * fold-const.c (fold_comparison): Return properly typed
12822 2016-04-21 Bin Cheng <bin.cheng@arm.com>
12824 PR tree-optimization/70715
12825 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
12826 after expanding BASE using expand_simple_operations.
12828 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
12830 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
12831 New transformations.
12833 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
12835 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
12837 2016-04-20 Jan Hubicka <jh@suse.cz>
12839 * ipa-inline.c (can_inline_edge_p): Pass caller info to
12840 ultiimate_alias_target.
12841 (update_callee_keys): Likewise.
12842 (lookup_recursive_calls): Likewise.
12843 (speculation_useful_p): Likewise.
12845 2016-04-20 Jan Hubicka <jh@suse.cz>
12848 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
12849 (set_nothrow_flag_1): ... this; handle interposition correctly;
12850 recurse on aliases and thunks.
12851 (cgraph_node::set_nothrow_flag): New.
12852 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
12853 functions compiled with non-call exceptions that binds to current
12855 (propagate_nothrow): Be safe WRT interposition.
12856 * cgraph.h (set_nothrow_flag): Update prototype.
12858 2016-04-18 Jan Hubicka <jh@suse.cz>
12860 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
12861 max_loop_iterations_int.
12862 (tree_unswitch_outer_loop): Likewise.
12864 2016-04-20 Bin Cheng <bin.cheng@arm.com>
12866 PR tree-optimization/69489
12867 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
12868 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
12869 Revise dump message.
12870 (if_convertible_bb_p): Remove check on edge count of basic block's
12873 2016-04-20 Bin Cheng <bin.cheng@arm.com>
12875 PR tree-optimization/56625
12876 PR tree-optimization/69489
12877 * tree-data-ref.h (DR_INNERMOST): New macro.
12878 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
12879 hashing struct innermost_loop_behavior.
12880 (ref_DR_map): Remove.
12881 (innermost_DR_map): New map.
12882 (baseref_DR_map): Revise comment.
12883 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
12884 to innermost_DR_map accroding to its innermost loop behavior.
12885 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
12886 to its innermost loop behavior.
12887 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
12888 Add initialization for innermost_DR_map. Record memory reference
12889 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
12890 have innermost loop behavior.
12891 (if_convertible_loop_p): Remove release for ref_DR_map. Release
12894 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
12896 * config/i386/i386.md (*lea<mode>_general_1): Rename from
12897 *lea_general_1. Use explicit SWI12 mode interator.
12898 (*lea<mode>_general_2): Rename from *lea_general_2.
12899 Use explicit SWI12 mode interator.
12900 (*lea<mode>_general_3): Rename from *lea_general_3.
12901 Use explicit SWI12 mode interator.
12902 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
12903 Use explicit SWI12 mode interator.
12904 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
12905 Use explicit SWI48 mode interator.
12907 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
12909 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
12910 Short-cut unaligned load and store cases. Handle all integer
12912 (ix86_expand_vector_move_misalign): Short-cut unaligned load
12913 and store cases. Call ix86_avx256_split_vector_move_misalign
12914 directly without checking mode class.
12916 2016-04-20 Andrew Pinski <apinski@cavium.com>
12917 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12920 * config/aarch64/aarch64.md (sibcall): Force call
12921 address to be DImode for ILP32.
12922 (sibcall_value): Likewise.
12924 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
12926 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
12928 2016-04-20 Richard Biener <rguenther@suse.de>
12930 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
12931 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
12932 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
12933 (maybe_push_res_to_seq): Adjust.
12934 * gimple-fold.c (maybe_build_generic_op): Likewise.
12936 2016-04-20 Marek Polacek <polacek@redhat.com>
12938 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
12941 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
12943 * config/i386/sse.md (vec_unpacks_lo_hi): Always
12944 use kmovw to support AVX512F target.
12946 2016-04-20 Bin Cheng <bin.cheng@arm.com>
12948 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
12950 2016-04-20 Marek Polacek <polacek@redhat.com>
12952 PR tree-optimization/70725
12953 * tree-if-conv.c (is_false_predicate): New function.
12954 (predicate_mem_writes): Use it.
12956 2016-04-20 Richard Biener <rguenther@suse.de>
12958 PR tree-optimization/70726
12959 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
12960 shift amounts from a pattern stmt operand.
12962 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12965 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
12966 stack_restore_from_fpr pattern when restoring r15.
12967 (s390_optimize_prologue): Strip away the memory barrier in the
12968 parallel when trying to get rid of restore insns.
12969 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
12970 definition for loading the stack pointer from an FPR. Compared to
12971 the normal move insn this pattern includes a full memory barrier.
12973 2016-04-19 Jakub Jelinek <jakub@redhat.com>
12975 PR middle-end/70680
12976 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
12977 implicitly linear or lastprivate iterator on the outer context.
12979 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
12981 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
12983 * config/i386/i386.md (ssememalign): Removed.
12984 * config/i386/sse.md: Remove ssememalign attribute from patterns.
12986 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
12989 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
12990 const short * to __builtin_ia32_loaddquhi512_mask.
12991 (_mm512_maskz_loadu_epi16): Likewise.
12992 (_mm512_mask_storeu_epi16): Pass short * to
12993 __builtin_ia32_storedquhi512_mask.
12994 (_mm512_mask_loadu_epi8): Pass const char * to
12995 __builtin_ia32_loaddquqi512_mask.
12996 (_mm512_maskz_loadu_epi8): Likewise.
12997 (_mm512_mask_storeu_epi8): Pass char * to
12998 __builtin_ia32_storedquqi512_mask.
12999 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
13000 const double * to __builtin_ia32_loadupd512_mask.
13001 (_mm512_mask_loadu_pd): Likewise.
13002 (_mm512_maskz_loadu_pd): Likewise.
13003 (_mm512_storeu_pd): Pass double * to
13004 __builtin_ia32_storeupd512_mask.
13005 (_mm512_mask_storeu_pd): Likewise.
13006 (_mm512_loadu_ps): Pass const float * to
13007 __builtin_ia32_loadups512_mask.
13008 (_mm512_mask_loadu_ps): Likewise.
13009 (_mm512_maskz_loadu_ps): Likewise.
13010 (_mm512_storeu_ps): Pass float * to
13011 __builtin_ia32_storeups512_mask.
13012 (_mm512_mask_storeu_ps): Likewise.
13013 (_mm512_mask_loadu_epi64): Pass const long long * to
13014 __builtin_ia32_loaddqudi512_mask.
13015 (_mm512_maskz_loadu_epi64): Likewise.
13016 (_mm512_mask_storeu_epi64): Pass long long *
13017 to __builtin_ia32_storedqudi512_mask.
13018 (_mm512_loadu_si512): Pass const int * to
13019 __builtin_ia32_loaddqusi512_mask.
13020 (_mm512_mask_loadu_epi32): Likewise.
13021 (_mm512_maskz_loadu_epi32): Likewise.
13022 (_mm512_storeu_si512): Pass int * to
13023 __builtin_ia32_storedqusi512_mask.
13024 (_mm512_mask_storeu_epi32): Likewise.
13025 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
13026 char * to __builtin_ia32_storedquqi256_mask.
13027 (_mm_mask_storeu_epi8): Likewise.
13028 (_mm256_mask_loadu_epi16): Pass const short * to
13029 __builtin_ia32_loaddquhi256_mask.
13030 (_mm256_maskz_loadu_epi16): Likewise.
13031 (_mm_mask_loadu_epi16): Pass const short * to
13032 __builtin_ia32_loaddquhi128_mask.
13033 (_mm_maskz_loadu_epi16): Likewise.
13034 (_mm256_mask_loadu_epi8): Pass const char * to
13035 __builtin_ia32_loaddquqi256_mask.
13036 (_mm256_maskz_loadu_epi8): Likewise.
13037 (_mm_mask_loadu_epi8): Pass const char * to
13038 __builtin_ia32_loaddquqi128_mask.
13039 (_mm_maskz_loadu_epi8): Likewise.
13040 (_mm256_mask_storeu_epi16): Pass short * to.
13041 __builtin_ia32_storedquhi256_mask.
13042 (_mm_mask_storeu_epi16): Pass short * to.
13043 __builtin_ia32_storedquhi128_mask.
13044 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
13045 const double * to __builtin_ia32_loadupd256_mask.
13046 (_mm256_maskz_loadu_pd): Likewise.
13047 (_mm_mask_loadu_pd): Pass onst double * to
13048 __builtin_ia32_loadupd128_mask.
13049 (_mm_maskz_loadu_pd): Likewise.
13050 (_mm256_mask_storeu_pd): Pass double * to
13051 __builtin_ia32_storeupd256_mask.
13052 (_mm_mask_storeu_pd): Pass double * to
13053 __builtin_ia32_storeupd128_mask.
13054 (_mm256_mask_loadu_ps): Pass const float * to
13055 __builtin_ia32_loadups256_mask.
13056 (_mm256_maskz_loadu_ps): Likewise.
13057 (_mm_mask_loadu_ps): Pass const float * to
13058 __builtin_ia32_loadups128_mask.
13059 (_mm_maskz_loadu_ps): Likewise.
13060 (_mm256_mask_storeu_ps): Pass float * to
13061 __builtin_ia32_storeups256_mask.
13062 (_mm_mask_storeu_ps): ass float * to
13063 __builtin_ia32_storeups128_mask.
13064 (_mm256_mask_loadu_epi64): Pass const long long * to
13065 __builtin_ia32_loaddqudi256_mask.
13066 (_mm256_maskz_loadu_epi64): Likewise.
13067 (_mm_mask_loadu_epi64): Pass const long long * to
13068 __builtin_ia32_loaddqudi128_mask.
13069 (_mm_maskz_loadu_epi64): Likewise.
13070 (_mm256_mask_storeu_epi64): Pass long long * to
13071 __builtin_ia32_storedqudi256_mask.
13072 (_mm_mask_storeu_epi64): Pass long long * to
13073 __builtin_ia32_storedqudi128_mask.
13074 (_mm256_mask_loadu_epi32): Pass const int * to
13075 __builtin_ia32_loaddqusi256_mask.
13076 (_mm256_maskz_loadu_epi32): Likewise.
13077 (_mm_mask_loadu_epi32): Pass const int * to
13078 __builtin_ia32_loaddqusi128_mask.
13079 (_mm_maskz_loadu_epi32): Likewise.
13080 (_mm256_mask_storeu_epi32): Pass int * to
13081 __builtin_ia32_storedqusi256_mask.
13082 (_mm_mask_storeu_epi32): Pass int * to
13083 __builtin_ia32_storedqusi128_mask.
13084 * config/i386/i386-builtin-types.def (PCSHORT): New.
13085 (PINT64): Likewise.
13086 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
13087 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
13088 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
13089 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
13090 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
13091 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
13092 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
13093 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
13094 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
13095 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
13096 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
13097 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
13098 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
13099 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
13100 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
13101 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
13102 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
13103 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
13104 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
13105 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
13106 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
13107 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
13108 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
13109 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
13110 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
13111 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
13112 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
13113 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
13114 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
13115 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
13116 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
13117 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
13118 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
13119 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
13120 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
13121 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
13122 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
13123 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
13124 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
13125 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
13126 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
13127 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
13128 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
13129 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
13130 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
13131 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
13132 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
13133 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
13134 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
13136 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
13137 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
13139 (ix86_expand_vector_move_misalign): Likewise.
13140 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
13141 to scalar function prototype for unaligned load/store builtins.
13142 (ix86_expand_special_args_builtin): Updated.
13143 * config/i386/sse.md (UNSPEC_LOADU): Removed.
13144 (UNSPEC_STOREU): Likewise.
13145 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
13146 (VI_ULOADSTORE_F_AVX512VL): Likewise.
13147 (ssescalarsize): Handle V4TI, V2TI and V1TI.
13148 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
13149 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
13150 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
13151 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
13152 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
13153 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
13154 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
13155 (<avx512>_storedqu<mode>_mask): Likewise.
13156 (*sse4_2_pcmpestr_unaligned): Likewise.
13157 (*sse4_2_pcmpistr_unaligned): Likewise.
13158 (*mov<mode>_internal): Renamed to ...
13159 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
13160 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
13161 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
13162 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
13164 2016-04-19 Richard Biener <rguenther@suse.de>
13166 PR tree-optimization/70171
13167 * tree-ssa-phiprop.c: Include stor-layout.h.
13168 (phiprop_insert_phi): Handle the aggregate copy case.
13169 (propagate_with_phi): Likewise.
13171 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
13173 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
13174 instead of simplify_gen_subreg (... , 0).
13175 (ix86_delegitimize_address): Ditto.
13176 (ix86_split_divmod): Ditto.
13177 (ix86_split_copysign_const): Ditto.
13178 (ix86_split_copysign_var): Ditto.
13179 (ix86_expand_args_builtin): Ditto.
13180 (ix86_expand_round_builtin): Ditto.
13181 (ix86_expand_special_args_builtin): Ditto.
13182 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
13183 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
13184 (udivmodqi4): Ditto.
13185 (absneg splitters): Ditto.
13186 (*jcc_bt<mode>_1): Ditto.
13188 2016-04-19 Richard Biener <rguenther@suse.de>
13190 PR tree-optimization/70724
13191 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
13192 restoring out from ...
13193 (free_scc_vn): ... here.
13194 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
13195 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
13197 (pass_fre::execute): Restore SSA info.
13199 2016-04-19 Richard Biener <rguenther@suse.de>
13201 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
13202 * gimple-walk.c (walk_gimple_op): Initialize it.
13203 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
13204 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
13205 remapping SSA names of defs.
13206 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
13209 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
13211 PR middle-end/70689
13212 * lra-constraints.c (equiv_substition_p): New.
13213 (process_alt_operands): Use it.
13214 (swap_operands): Swap it.
13215 (curr_insn_transform): Update it.
13217 2016-04-18 Michael Matz <matz@suse.de>
13219 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
13220 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
13221 * tree-core.h (tree_type_common.align): Use bit-field.
13222 (tree_type_common.spare): New.
13223 (tree_decl_common.off_align): Make smaller.
13224 (tree_decl_common.align): Use bit-field.
13226 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
13227 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
13228 (scan_sharing_clauses): Ditto.
13229 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
13230 (omp_finish_file): Ditto.
13231 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
13232 (layout_decl): Ditto.
13233 (relayout_decl): Ditto.
13234 (finalize_record_size): Use SET_TYPE_ALIGN.
13235 (finalize_type_size): Ditto.
13236 (finish_builtin_struct): Ditto.
13237 (layout_type): Ditto.
13238 (initialize_sizetypes): Ditto.
13239 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
13240 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
13241 (lookup_field_for_decl): Use SET_DECL_ALIGN.
13242 (get_chain_field): Ditto.
13243 (get_trampoline_type): Ditto.
13244 (get_nl_goto_field): Ditto.
13245 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
13247 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
13248 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
13249 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
13250 (build_qualified_type): Use SET_TYPE_ALIGN.
13251 (build_aligned_type, build_range_type_1): Ditto.
13252 (build_atomic_base): Ditto.
13253 (build_common_tree_nodes): Ditto.
13254 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
13255 (expand_one_stack_var_at): Ditto.
13256 * coverage.c (build_var): Use SET_DECL_ALIGN.
13257 * except.c (init_eh): Ditto.
13258 * function.c (assign_parm_setup_block): Ditto.
13259 * symtab.c (increase_alignment_1): Ditto.
13260 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
13261 * tree-vect-stmts.c (ensure_base_align): Ditto.
13262 * varasm.c (align_variable): Ditto.
13263 (assemble_variable): Ditto.
13264 (build_constant_desc): Ditto.
13265 (output_constant_def_contents): Ditto.
13267 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
13268 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
13269 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
13270 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
13271 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
13273 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
13276 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
13277 replace %vmovsd with "%vmovq".
13278 (vec_concatv2df): Likewise.
13280 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
13282 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
13283 (*vec_extractv2si_0): Ditto.
13284 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
13285 (zero_extended_scalar_load_operand splitters): Ditto.
13286 (vec_extract splitters): Ditto.
13287 (*vec_extractv4si_0_zext): Ditto.
13288 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
13289 and lowpart_subreg.
13290 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
13291 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
13292 (*sse4_1_extractps): Use lowpart_subreg.
13293 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
13295 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13297 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
13299 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
13300 Mention Solaris 11 packaging changes.
13301 Update gas and gld requirements.
13302 Remove reference to pre-Solaris 10 bug.
13303 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
13305 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
13308 2016-04-17 Jan Hubicka <jh@suse.cz>
13310 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
13311 max_loop_iterations_int.
13313 2016-04-18 Richard Biener <rguenther@suse.de>
13315 PR tree-optimization/43434
13316 * tree-ssa-structalias.c (struct vls_data): New.
13317 (visit_loadstore): Handle all pointer-based accesses.
13318 (compute_dependence_clique): Compute a bitmap of restrict tags
13319 assigned bases and pass it to visit_loadstore.
13321 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
13324 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
13325 armv8.1-a and armv8.1-a+crc.
13327 2016-04-18 Richard Biener <rguenther@suse.de>
13329 PR tree-optimization/70701
13330 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
13331 references after translating through a memcpy.
13333 2016-04-18 Richard Biener <rguenther@suse.de>
13335 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
13336 (compute_antic): ... here. For partial antic use regular
13337 postorder and scrap iteration.
13338 (compute_partial_antic_aux): Remove unused return value.
13339 (init_pre): Do not allocate postorder.
13340 (fini_pre): Do not free postorder.
13342 2016-04-18 Richard Biener <rguenther@suse.de>
13344 PR middle-end/37870
13345 * expmed.c (extract_bit_field_1): Remove broken case
13346 using a wider MODE_INT mode.
13348 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
13350 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
13351 unless compiling with at least GCC-4.8.
13353 2016-04-17 Jan Hubicka <jh@suse.cz>
13356 * graphite.c (graphite_finalize): Update call to
13357 tree_estimate_probability.
13358 * predict.h (tree_estimate_probability): Update prototype.
13360 2016-04-17 Jan Hubicka <jh@suse.cz>
13362 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
13363 (tree_estimate_probability): Likewise.
13364 (pass_profile::execute): Update.
13365 (report_predictor_hitrates): New function.
13366 * profile.c (compute_branch_probabilities): Use it.
13367 * predict.h (report_predictor_hitrates): Declare.
13369 2016-04-17 Jan Hubicka <jh@suse.cz>
13372 * cgraph.h (cgraph_node::set_const_flag,
13373 cgraph_node::set_pure_flag): Update prototype to return bool;
13375 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
13376 of interposable symbol are interposable, too.
13377 (cgraph_set_const_flag_1): Rename to ...
13378 (set_const_flag_1): ... this one; change to self recursive function
13379 instead of call_for_symbol_thunks_and_aliases. Handle correctly
13380 clearnig the flag in all variants and also virtual thunks of const
13381 functions are pure; track if any change was done.
13382 (cgraph_node::set_const_flag): Update.
13383 (struct set_pure_flag_info): New struct.
13384 (cgraph_set_pure_flag_1): Rename to ...
13385 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
13386 rather than pointer encoded flags; track if any changes was done;
13387 handle correctly clearning flag and setting flag of aliases already
13389 (cgraph_node::set_pure_flag): Update.
13390 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
13392 2016-04-17 Tom de Vries <tom@codesourcery.com>
13395 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
13396 backslash in label.
13398 2016-04-17 Tom de Vries <tom@codesourcery.com>
13400 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
13401 '{}<> ' as escape-for-record.
13403 2016-04-17 Tom de Vries <tom@codesourcery.com>
13405 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
13408 2016-04-17 Tom de Vries <tom@codesourcery.com>
13411 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
13412 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
13413 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
13414 * passes.c (finish_optimization_passes): Only call
13415 finish_graph_dump_file if dfi->graph_dump_initialized.
13416 (execute_function_dump, pass_init_dump_file): Use
13417 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
13419 2016-04-17 Tom de Vries <tom@codesourcery.com>
13421 PR tree-optimization/70256
13422 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
13423 (debug_varmap): New function.
13425 2016-04-17 Tom de Vries <tom@codesourcery.com>
13428 * passes.c (pass_manager::register_pass): Propagate pflags.
13430 2016-04-17 Tom de Vries <tom@codesourcery.com>
13433 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
13434 * passes.c (pass_manager::pass_manager): Declare and init p_start in
13435 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
13436 check if it's equal to p_start.
13437 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
13439 2016-04-15 Jan Hubicka <jh@suse.cz>
13442 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
13443 function does not bind to current def.
13444 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
13445 handle conservatively calls to functions that does not need to bind
13447 (check_call): Update call of worse_state.
13448 (ignore_edge_for_nothrow): Update.
13449 (ignore_edge_for_pure_const): Likewise.
13450 (propagate_pure_const): Update calls to worse_state.
13451 (skip_function_for_local_pure_const): Reformat comments.
13453 2016-04-15 Jan Hubicka <jh@suse.cz>
13456 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
13457 (cgraph_node::function_symbol): Likewise.
13458 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
13459 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
13460 (symtab_node::ultimate_alias_target): Add REF parameter.
13461 (symtab_node::binds_to_current_def_p): Declare.
13462 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
13463 (cgraph_node::function_symbol): Likewise.
13464 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
13465 (cgraph_node::get_availability): Likewise.
13466 (cgraph_edge::binds_to_current_def_p): New inline function.
13467 (varpool_node::get_availability): Add REF parameter.
13468 (varpool_node::ultimate_alias_target): Likewise.
13469 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
13470 (symtab_node::binds_to_current_def_p): Likewise.
13471 * varpool.c (varpool_node::get_availability): Likewise.
13473 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
13476 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
13477 Fix mode size check.
13479 2016-04-15 Jakub Jelinek <jakub@redhat.com>
13481 * BASE-VER: Set to 7.0.0.
13483 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
13485 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
13487 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13489 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
13490 architecture revisions.
13492 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
13494 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
13495 * config/i386/i386.c (ix86_using_red_zone): No longer static.
13496 * config/i386/i386.md (stack decrement to push peepholes): Guard
13497 with !x86_using_red_zone ().
13499 2016-04-15 Jakub Jelinek <jakub@redhat.com>
13502 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
13503 to dump_generic_node.
13504 (NIY): Pass also flags to do_niy.
13506 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
13508 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
13509 (simd_clone_vector_of_formal_parm_types)
13510 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
13511 (simd_clone_mangle, simd_clone_create)
13512 (simd_clone_adjust_return_type, create_tmp_simd_array)
13513 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
13514 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
13515 (ipa_simd_modify_function_body, simd_clone_linear_addend)
13516 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
13517 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
13518 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
13519 * omp-simd-clone.c: ... this new file.
13520 (simd_clone_vector_of_formal_parm_types): Make it static.
13521 * Makefile.in (OBJS): Add omp-simd-clone.o.
13523 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
13526 * config/i386/sse.md: Use proper memory operand modifiers.
13529 2016-04-15 Richard Biener <rguenther@suse.de>
13530 Alan Modra <amodra@gmail.com>
13532 PR tree-optimization/70130
13533 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
13534 when alignment stays not the same and no not use the realign
13537 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13540 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
13541 direct move handlers for KFmode. Change TFmode handlers test from
13542 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
13544 2016-04-14 Jakub Jelinek <jakub@redhat.com>
13547 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
13548 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
13549 (inlined_polymorphic_ctor_dtor_block_p): Use it.
13550 * tree-ssa-live.c (remove_unused_scope_block_p): When
13551 in_ctor_dtor_block, avoid discarding not just BLOCKs with
13552 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
13553 block_ultimate_origin is FUNCTION_DECL.
13554 (remove_unused_locals): If current_function_decl is
13555 polymorphic_ctor_dtor_p, pass initial true to
13556 remove_unused_scope_block_p' is_ctor_dtor_block.
13558 2016-04-14 Martin Sebor <msebor@redhat.com>
13563 * doc/extend.texi (Variable Length): Revert.
13565 2016-04-14 Marek Polacek <polacek@redhat.com>
13566 Jan Hubicka <hubicka@ucw.cz>
13569 * tree.c (verify_type): Disable the canonical type of main variant
13572 2016-04-14 Jason Merrill <jason@redhat.com>
13574 * cfgexpand.c, expr.c: Revert previous change.
13576 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
13578 PR middle-end/70643
13579 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
13580 when building a mem ref for the incoming reduction variable.
13582 2016-04-14 Richard Biener <rguenther@suse.de>
13584 PR tree-optimization/70614
13585 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
13586 loop if the evolution dropped to chrec_dont_know.
13587 (interpret_condition_phi): Likewise.
13589 2016-04-14 Richard Biener <rguenther@suse.de>
13591 PR tree-optimization/70623
13592 * tree-ssa-pre.c (changed_blocks): Make global ...
13593 (compute_antic): ... local here. Move and fix worklist
13594 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
13595 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
13596 worklist handling, dump when ANTIC_IN changed.
13597 (compute_partial_antic_aux): Remove worklist handling.
13598 (init_pre): Do not compute post dominators. Add a comment about
13599 the CFG order chosen.
13600 (fini_pre): Do not free post dominators.
13602 2016-04-13 Martin Sebor <msebor@redhat.com>
13607 * doc/extend.texi (Variable Length): Document C++ specifics.
13609 2016-04-13 Jakub Jelinek <jakub@redhat.com>
13612 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
13613 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
13614 eh edges have been purged.
13617 * tree-sra.c (create_access_replacement,
13618 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
13620 * tree-pretty-print.c (dump_fancy_name): New function.
13621 (dump_decl_name, dump_generic_node): Use it.
13623 2016-04-13 Jason Merrill <jason@redhat.com>
13625 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
13626 * expr.c (expand_expr_real_1): Likewise.
13628 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
13630 * config/i386/i386.md (kunpckhi): Swap operands.
13631 (kunpcksi): Likewise.
13632 (kunpckdi): Likewise.
13633 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
13634 (vec_pack_trunc_<mode>): Likewise.
13636 2016-04-13 Jakub Jelinek <jakub@redhat.com>
13639 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
13641 PR middle-end/70633
13642 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
13643 gimplification turns some element into non-constant.
13646 * rtl.h (convert_memory_address_addr_space_1): New prototype.
13647 * explow.c (convert_memory_address_addr_space_1): No longer static,
13648 add NO_EMIT argument and don't call convert_modes if true, pass
13649 it down recursively, remove break after return.
13650 (convert_memory_address_addr_space): Adjust caller.
13651 * simplify-rtx.c (simplify_unary_operation_1): Call
13652 convert_memory_address_addr_space_1 instead of convert_memory_address,
13653 if it returns NULL, don't simplify.
13655 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
13658 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
13660 2016-04-12 Jakub Jelinek <jakub@redhat.com>
13662 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
13663 Bump the upper SIMDLEN limits, so that if the return type or
13664 characteristic type if the return type is void can be passed in
13665 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
13668 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
13671 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
13672 Do not use "=" constraint on an input constraint.
13673 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
13674 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
13675 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
13676 generates (neg (abs ...)) instead of (abs ...).
13678 2016-04-12 Jakub Jelinek <jakub@redhat.com>
13680 PR rtl-optimization/70596
13681 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
13682 just invalidate LRA data and reset them. Adjust dump wording.
13684 2016-04-12 Martin Liska <mliska@suse.cz>
13687 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
13689 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
13691 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
13692 max_loop_iterations_int.
13693 (tree_unswitch_outer_loop): Likewise.
13694 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
13695 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
13697 2016-04-12 Tom de Vries <tom@codesourcery.com>
13699 PR tree-optimization/68756
13700 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
13701 instead of new_name.
13703 2016-04-12 Jakub Jelinek <jakub@redhat.com>
13705 PR tree-optimization/70602
13706 * tree-sra.c (generate_subtree_copies): Don't write anything into
13707 constant pool decls.
13709 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
13710 regardless whether there are depend clauses or not.
13712 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13715 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
13716 target attribute and pragma from changing the -mfloat128
13717 and -mfloat128-hardware options.
13719 * doc/extend.texi (Additional Floating Types): Document PowerPC
13720 __float128 restrictions.
13722 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
13725 * config/aarch64/driver-aarch64.c
13726 (aarch64_get_extension_string_for_isa_flags): New.
13727 (arch_extension): Rename to...
13728 (aarch64_arch_extension): ...This.
13729 (ext_to_feat_string): Rename to...
13730 (aarch64_extensions): ...This.
13731 (aarch64_core_data): Keep track of architecture extension flags.
13732 (cpu_data): Rename to...
13733 (aarch64_cpu_data): ...This.
13734 (aarch64_arch_driver_info): Keep track of architecture extension
13736 (get_arch_name_from_id): Rename to...
13737 (get_arch_from_id): ...This, change return type.
13738 (host_detect_local_cpu): Update and reformat for renames, handle
13739 extensions through common infrastructure.
13741 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
13744 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
13745 track of a canonical flag name.
13746 (all_extensions): Likewise.
13747 (arch_to_arch_name): Also track extension flags enabled by the arch.
13748 (all_architectures): Likewise.
13749 (aarch64_parse_extension): Move to here.
13750 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
13752 (aarch64_rewrite_selected_cpu): Update for above change.
13753 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
13754 are handled, such that the single explicit value enabled by an
13755 extension is kept seperate from the implicit values it also enables.
13756 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
13758 (aarch64_parse_extension): New.
13759 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
13760 here to config/aarch64/aarch64-protos.h.
13761 (aarch64_parse_extension): Move from here to
13762 common/config/aarch64/aarch64-common.c.
13763 (aarch64_option_print): Update.
13764 (aarch64_declare_function_name): Likewise.
13765 (aarch64_start_file): Likewise.
13766 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
13767 the canonical flag for extensions.
13768 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
13771 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
13773 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
13776 2016-04-09 Tom de Vries <tom@codesourcery.com>
13778 PR tree-optimization/68953
13779 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
13780 first to last subscript.
13782 2016-04-09 Jakub Jelinek <jakub@redhat.com>
13784 PR tree-optimization/70586
13785 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
13788 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
13792 PR tree-optimization/70373
13793 PR middle-end/70533
13794 PR middle-end/70534
13795 PR middle-end/70535
13796 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
13797 clauses for acc parallel reductions as necessary. Error on those
13799 * omp-low.c (scan_sharing_clauses): Don't install variables which
13800 are used in acc parallel reductions.
13801 (lower_rec_input_clauses): Remove dead code.
13802 (lower_oacc_reductions): Add support for reference reductions.
13803 (lower_reduction_clauses): Remove dead code.
13804 (lower_omp_target): Don't remap variables appearing in acc parallel
13806 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
13808 2016-04-08 Jakub Jelinek <jakub@redhat.com>
13810 PR middle-end/70593
13811 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
13812 with multiple SSA_NAME defs, force the outputs other than first
13813 to be live before calling live_track_process_def on each output.
13815 PR rtl-optimization/70574
13816 * fwprop.c (forward_propagate_and_simplify): Don't add
13817 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
13818 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
13819 paradoxical subregs within *loc.
13821 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
13823 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
13824 -ftree-parallelize-loops={0,1}.
13825 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
13826 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
13827 * config/ia64/hpux.h (LIB_SPEC): Likewise.
13828 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13829 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
13831 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
13834 * asan.c (instrument_derefs): If we get unknown location, extract it
13835 with EXPR_LOCATION.
13836 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
13838 2016-04-08 Tom de Vries <tom@codesourcery.com>
13840 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
13841 implicit firstprivate clause.
13843 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13846 * config/arm/thumb2.md (tst + branch-> lsls + branch
13847 peephole below *orsi_not_shiftsi_si): Require that condition
13848 register is dead after the peephole.
13849 (second peephole after the above): Likewise.
13851 2016-04-08 Alan Modra <amodra@gmail.com>
13854 * builtins.c (fold_builtin_classify): For IBM extended precision,
13855 look at just the high-order double to test for NaN.
13856 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
13857 test just the high double for Inf but both doubles for subnormal
13860 2016-04-07 Jakub Jelinek <jakub@redhat.com>
13862 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
13863 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
13864 node->simdclone->mask_mode != VOIDmode masks.
13865 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
13866 earlier, use it instead of node->simdclone.
13867 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
13868 Set clonei->mask_mode.
13870 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
13873 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
13874 Pass it through to cp_parser_already_scoped_statement.
13875 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
13876 it through to cp_parser_statement.
13877 (cp_parser_statement): Pass IF_P through to
13878 cp_parser_iteration_statement.
13879 (cp_parser_pragma): Adjust call to
13880 cp_parser_iteration_statement.
13882 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
13885 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
13886 resolve a future -Wparentheses warning.
13887 * omp-low.c (scan_sharing_clauses): Likewise.
13888 * tree-parloops.c (eliminate_local_variables): Likewise.
13890 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
13892 PR rtl-optimization/70398
13893 * lra-constraints.c (process_address_1): Check zero scale and code
13894 for reloading with zero scale.
13896 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
13898 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
13899 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
13901 2016-04-06 Jakub Jelinek <jakub@redhat.com>
13903 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
13904 Add support for AVX512F clones, include them by default for
13905 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
13906 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
13909 PR middle-end/70550
13910 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
13911 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
13912 firstprivate clauses.
13913 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
13914 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
13915 (lower_omp_target): Set TREE_NO_WARNING for
13916 non-addressable possibly uninitialized vars which are copied into
13917 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
13919 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
13921 * config/pa/predicates.md (integer_store_memory_operand): Accept
13922 REG+D operands with a large offset when reload_in_progress is true.
13923 (floating_point_store_memory_operand): Likewise.
13925 2016-04-05 Jakub Jelinek <jakub@redhat.com>
13928 * match.pd (nested int casts): Limit to GIMPLE.
13930 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
13933 * ipa-devirt.c (maybe_record_node): Fix comment; use
13934 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
13936 2016-04-05 Jakub Jelinek <jakub@redhat.com>
13938 PR rtl-optimization/70542
13939 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
13940 if there are any uses other than insn or debug insns.
13942 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
13943 Jakub Jelinek <jakub@redhat.com>
13945 PR tree-optimization/70509
13946 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
13947 Shift HOST_WIDE_INT_1U instead of 1.
13949 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
13951 PR tree-optimization/70509
13952 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
13953 of the vector base type for index.
13955 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
13958 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
13960 2016-04-05 Richard Biener <rguenther@suse.de>
13962 PR tree-optimization/70526
13963 * tree-sra.c (build_ref_for_offset): Use prev_base to
13964 extract the alias pointer type.
13966 2016-04-05 Richard Biener <rguenther@suse.de>
13968 * dse.c (struct store_info): Remove alias_set member.
13969 (struct read_info_type): Likewise.
13970 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
13971 spill_deleted, clear_alias_set_lookup): Remove.
13972 (get_group_info): Remove dead base == NULL_RTX case.
13973 (dse_step0): Remove initialization of removed variables.
13974 (delete_dead_store_insn): Reomve alias set dumping.
13975 (free_read_records): Remove alias_set handling.
13976 (canon_address): Remove alias_set_out parameter.
13977 (record_store): Remove spill_alias_set, it's always zero.
13978 (check_mem_read_rtx): Likewise.
13979 (dse_step2): Rename from ...
13980 (dse_step2_nospill): ... this. Adjust.
13981 (scan_stores): Rename from ...
13982 (scan_stores_nospill): ... this.
13983 (scan_reads): Rename from ...
13984 (scan_reads_nospill): ... this.
13985 (scan_stores_spill, scan_reads_spill): Remove.
13986 (dse_step3_scan): Remove for_spills argument which is always false.
13987 (dse_step3): Likewise.
13988 (dse_step5): Rename from ...
13989 (dse_step5_nospill): ... this. Remove alias_set handling.
13990 (rest_of_handle_dse): Adjust.
13992 2016-04-05 Jakub Jelinek <jakub@redhat.com>
13995 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
13996 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
13997 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
13998 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
14000 2016-04-05 Richard Biener <rguenther@suse.de>
14002 PR middle-end/70499
14003 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
14004 non-register type temporaries into SSA.
14006 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
14009 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
14010 calls when sanitizing.
14011 (possible_polymorphic_call_target_p): Fix formatting.
14013 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14014 Jakub Jelinek <jakub@redhat.com>
14016 PR middle-end/70457
14017 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
14018 to ensure a call statement is compatible with a built-in's
14020 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
14023 2016-04-04 Richard Biener <rguenther@suse.de>
14025 PR rtl-optimization/70484
14026 * rtl.h (canon_output_dependence): Declare.
14027 * alias.c (canon_output_dependence): New function.
14028 * dse.c (record_store): Use canon_output_dependence rather
14029 than canon_true_dependence.
14031 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
14034 * cgraph.h (symtab_node::copy_visibility_from): New function.
14035 * symtab.c (symtab_node::copy_visibility_from): New function.
14036 * ipa-visibility.c (optimize_weakref): New function.
14037 (function_and_variable_visibility): Use it.
14039 2016-04-04 Martin Liska <mliska@suse.cz>
14042 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
14043 value that is really in range handled by SBR instruction.
14044 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
14045 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
14046 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
14048 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
14052 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
14053 set, but not for SP_REG operands.
14055 2016-04-02 Martin Sebor <msebor@redhat.com>
14058 * fold-const.c (maybe_nonzero_address): New function.
14059 (fold_comparison): Call it. Fold equality and relational
14060 expressions involving null pointers.
14061 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
14063 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
14065 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
14066 the "Y" constraint (scalar FP 0.0 immediate).
14068 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
14069 Add the "const_double" to the list of operand constraints.
14071 2016-04-01 Jakub Jelinek <jakub@redhat.com>
14073 PR rtl-optimization/70467
14074 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
14075 If low word of the last operand is 0, just emit addition/subtraction
14078 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14081 * config/s390/s390.c (s390_expand_insv): Check for everything
14082 constant instead of just VOIDmode stuff.
14084 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14087 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
14089 2016-04-01 Nathan Sidwell <nathan@acm.org>
14091 * tree.def (TRY_CATCH_EXPR): Correct documentation.
14093 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
14095 PR rtl-optimization/70461
14096 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
14099 2016-03-31 Martin Liska <mliska@suse.cz>
14102 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
14103 a tree value or an immediate integer value to a buffer
14104 that is eventually copied to a BRIG section.
14105 (emit_immediate_operand): Call the function here.
14106 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
14107 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
14108 of class' fields that are removed.
14109 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
14110 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
14111 m_brig_repr_size fields.
14113 2016-03-31 Martin Liska <mliska@suse.cz>
14116 * hsa-gen.c (hsa_function_representation::update_dominance): New
14118 (convert_addr_to_flat_segment): Likewise.
14119 (gen_hsa_memory_set): New alignment argument.
14120 (gen_hsa_ctor_assignment): Likewise.
14121 (gen_hsa_insns_for_single_assignment): Provide alignment
14122 to gen_hsa_ctor_assignment.
14123 (gen_hsa_insns_for_direct_call): Add new argument.
14124 (expand_lhs_of_string_op): New function.
14125 (expand_string_operation_builtin): Likewise.
14126 (expand_memory_copy): New function.
14127 (expand_memory_set): New function.
14128 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
14129 (convert_switch_statements): Change signature.
14130 (generate_hsa): Use a return value of the function.
14131 (pass_gen_hsail::execute): Do not call
14132 convert_switch_statements here.
14133 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
14134 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
14135 (hsa_function_representation::update_dominance): New function.
14137 2016-03-31 Martin Liska <mliska@suse.cz>
14140 * hsa-brig.c (emit_directive_variable): Emit alignment
14141 according to hsa_symbol::m_align.
14142 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
14143 (dump_hsa_symbol): Dump alignment of HSA symbols.
14144 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
14145 (gen_hsa_addr_with_align): New function.
14146 (hsa_bitmemref_alignment): Use newly added function.
14147 (gen_hsa_insns_for_load): Likewise.
14148 (gen_hsa_insns_for_store): Likewise.
14149 (gen_hsa_memory_copy): New argument added.
14150 (gen_hsa_insns_for_single_assignment): Respect
14151 alignment for assignments processed via gen_hsa_memory_copy.
14152 (gen_hsa_insns_for_direct_call): Likewise.
14153 (gen_hsa_insns_for_return): Likewise.
14154 (gen_function_def_parameters): Set default alignment.
14155 * hsa.c (hsa_object_alignment): New function.
14156 (hsa_byte_alignment): Pasted function.
14157 * hsa.h (hsa_symbol::m_align): New field.
14159 2016-03-31 Bin Cheng <bin.cheng@arm.com>
14161 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
14162 scratch field for goto case.
14164 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
14166 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
14168 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
14171 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
14172 (scalar_chain::convert_insn): Call convert_op for reg
14173 moves to handle undefined registers.
14175 2016-03-31 Nathan Sidwell <nathan@acm.org>
14178 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
14179 Assert we don't want to move backwards.
14181 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
14184 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
14186 2016-03-31 Jakub Jelinek <jakub@redhat.com>
14188 PR rtl-optimization/70460
14189 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
14190 with operand from REG_LABEL_OPERAND, instead substitute
14191 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
14192 Don't do anything for REG_NON_LOCAL_GOTO jumps.
14194 2016-03-31 Martin Liska <mliska@suse.cz>
14196 * passes.c (execute_one_pass): Do not call
14197 todo_after for a discarded function.
14199 2016-03-31 Bin Cheng <bin.cheng@arm.com>
14201 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
14202 (no_cost, infinite_cost): Initialize the new field.
14203 (get_computation_cost_at): Record setup cost.
14204 (determine_use_iv_cost_address): Skip cost computation for sub
14205 uses if we can estimate it without losing accuracy.
14207 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
14209 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
14211 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
14212 max_loop_iterations_int.
14213 (tree_unswitch_outer_loop): Likewise.
14214 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
14215 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
14217 2016-03-30 Richard Biener <rguenther@suse.de>
14219 PR middle-end/70450
14220 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
14222 2016-03-30 Jakub Jelinek <jakub@redhat.com>
14225 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
14226 in gen_blendm expander.
14228 2016-03-30 Nick Clifton <nickc@redhat.com>
14231 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
14232 case where we are already provided with an SImode SUBREG.
14234 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
14237 * config/i386/i386.c (ix86_expand_epilogue): Properly check
14238 conflict between DRAP register and __builtin_eh_return.
14240 2016-03-30 Michael Matz <matz@suse.de>
14241 Richard Biener <rguenther@suse.de>
14244 * ipa-polymorphic-call.c (struct type_change_info): Change
14245 speculative to an unsigned allowing to limit the work we do.
14246 (csftc_abort_walking_p): New inline function..
14247 (check_stmt_for_type_change): Limit the number of may-defs
14248 skipped for speculative devirtualization to
14249 max-speculative-devirt-maydefs.
14250 * params.def (max-speculative-devirt-maydefs): New param.
14251 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
14253 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
14256 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
14259 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
14261 PR tree-optimization/59124
14262 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
14263 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
14265 2016-03-29 Jeff Law <law@redhat.com>
14267 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
14269 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
14271 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
14274 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
14276 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
14277 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
14278 gcrt0.o if linking dynamically.
14280 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
14283 * ipa-devirt.c (methods_equal_p): New function.
14284 (compare_virtual_tables): Use it.
14285 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
14286 * cgraphclones.c (clone_function_name_1): Use
14287 symbol_table::symbol_suffix_separator.
14288 * coverage.c (build_var): Likewise.
14289 * symtab.c (symbol_table::symbol_suffix_separator): New.
14291 2016-03-29 Jakub Jelinek <jakub@redhat.com>
14293 PR rtl-optimization/70429
14294 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
14295 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
14296 mode != result_mode.
14299 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
14301 PR tree-optimization/70405
14302 * ssa-iterators.h (num_imm_uses): Add missing braces.
14304 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
14306 PR rtl-optimization/68695
14307 * ira-color.c (allocno_copy_cost_saving): New.
14308 (improve_allocation): Use it.
14310 2016-03-29 Richard Henderson <rth@redhat.com>
14312 PR middle-end/70355
14313 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
14315 2016-03-29 Richard Biener <rguenther@suse.de>
14317 PR middle-end/70424
14318 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
14319 use alignment returned by get_pointer_alignment_1 if it is
14320 bigger than BITS_PER_UNIT.
14321 * builtins.c (get_pointer_alignment_1): Do not return true
14322 for alignment extracted from SSA info.
14324 2016-03-28 James Bowman <james.bowman@ftdichip.com>
14326 * config/ft32/ft32.opt (mnodiv): New.
14327 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
14328 * doc/invoke.texi (FT32 Options -mnodiv): New.
14330 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
14333 * config/i386/i386.md (define_split, andn): Fix modes.
14335 2016-03-26 Richard Biener <rguenther@suse.de>
14336 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14339 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
14341 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
14342 as 2nd argument to cl_optimization_restore().
14344 2016-03-25 Richard Henderson <rth@redhat.com>
14347 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
14348 * config/aarch64/aarch64-protos.h: Declare it.
14349 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
14351 2016-03-25 Alan Modra <amodra@gmail.com>
14354 * config/rs6000/constraints.md (j): Simplify.
14355 * config/rs6000/predicates.md (easy_fp_constant): Exclude
14357 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
14358 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
14359 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
14360 in all constraint alternatives.
14361 (movtd_64bit_nodm): Delete "j" constraint alternative.
14363 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
14365 * tree-ssa-propagate.c: Enhance docs for
14366 SSA_PROP_NOT_INTERESTING.
14368 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
14370 * doc/extend.texi: Fix typo in documentation to pure attribute.
14372 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
14375 * config/pa/pa.md (bswapdi2): Use a scratch register.
14377 2016-03-24 Richard Henderson <rth@redhat.com>
14379 PR middle-end/69845
14380 * fold-const.c (extract_muldiv_1): Correct test for multiplication
14383 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
14385 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
14386 using ix86_expand_binary_operator instead of gen_andsi3.
14388 2016-03-24 Richard Biener <rguenther@suse.de>
14390 PR tree-optimization/70396
14391 * tree-vect-stmts.c (vectorizable_comparison): Use
14392 get_vectype_for_scalar_type.
14394 2016-03-24 Richard Biener <rguenther@suse.de>
14396 PR middle-end/70370
14397 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
14398 with register bases.
14400 2016-03-24 Richard Biener <rguenther@suse.de>
14402 PR tree-optimization/70372
14403 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
14404 build_all_ones_cst to also handle vector types correctly.
14406 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14409 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
14412 2016-03-23 Marek Polacek <polacek@redhat.com>
14415 * doc/invoke.texi: Document -Wignored-attributes.
14417 2016-03-23 Bin Cheng <bin.cheng@arm.com>
14419 PR tree-optimization/69042
14420 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
14421 parameter from 30 to 40.
14423 2016-03-23 Bin Cheng <bin.cheng@arm.com>
14425 PR tree-optimization/69042
14426 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
14427 for use with constant offset stripped in base.
14429 2016-03-23 Richard Biener <rguenther@suse.de>
14431 PR middle-end/70251
14432 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
14433 mode compatibility check.
14434 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
14436 2016-03-23 Jeff Law <law@redhat.com>
14438 PR tree-optimization/64058
14439 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
14441 (struct ssa_conflicts): Move up earlier in the file.
14442 (conflicts_, var_map_): New static variables.
14443 (initialize_conflict_count): New function to initialize the
14444 CONFLICT_COUNT field for each conflict pair.
14445 (compare_pairs): Lazily initialize the conflict count and use it
14446 as the first tie-breaker.
14447 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
14448 and wipe conflicts_ and map_ around the call to qsort. Remove
14449 special case for 2 coalesce pairs.
14450 * bitmap.c (bitmap_count_unique_bits): New function.
14451 (bitmap_count_bits_in_word): New function, extracted from
14453 (bitmap_count_bits): Use bitmap_count_bits_in_word.
14454 * bitmap.h (bitmap_count_unique_bits): Declare it.
14456 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
14459 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
14460 transparent alias chain for decl assembler name.
14461 * config/sol2.c (solaris_assemble_visibility): Likewise.
14463 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14465 * config/arm/arm1020e.md (1020call_op): Reduce reservation
14467 (v10_fdivs): Likewise.
14468 (v10_fdivd): Likewise.
14470 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14473 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
14474 to not call fclose twice on file.
14476 2016-03-23 Jakub Jelinek <jakub@redhat.com>
14478 PR tree-optimization/70354
14479 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
14480 oprnd0 is wider than oprnd1 and there is a cast from the wider
14481 type to oprnd1, mask it with the mask of the narrower type.
14484 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
14485 Optimize TARGET_STV splitters, if high or low word of last argument
14488 2016-03-22 Jeff Law <law@redhat.com>
14491 tree-ssa-threadbackward.c
14492 (fsm_find_control_statement_thread_paths): Correctly distinguish
14493 between old style jump threads vs FSM jump threads.
14495 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
14498 * config/i386/i386.c (scalar_chain::convert_op): Support
14499 uninitialized register usage case.
14501 2016-03-22 Richard Biener <rguenther@suse.de>
14503 PR middle-end/70251
14504 * genmatch.c (gen_transform): Adjust last parameter to a three-state
14506 (capture::gen_transform): ... to change behavior when substituting
14507 a condition into cond or not-cond expr context.
14508 (dt_simplify::gen_1): Adjust.
14509 * gimple-match-head.c: Include gimplify.h for unshare_expr.
14510 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
14511 last change and instead change to
14512 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
14513 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
14515 2016-03-22 Anthony Green <green@moxielogic.com>
14517 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
14518 issue for moxiebox targets.
14519 (CC1PLUS_SPEC): Ditto.
14521 2016-03-22 Richard Biener <rguenther@suse.de>
14523 PR middle-end/70333
14524 * fold-const.c (extract_muldiv_1): Properly perform multiplication
14527 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
14529 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
14531 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
14534 * config/i386/i386.c (def_builtin): Handle
14535 OPTION_MASK_ISA_AVX512VL to be and-ed with other
14537 (const struct builtin_description bdesc_special_args[]):
14538 Remove duplicate ISA bits.
14540 2016-03-22 Jakub Jelinek <jakub@redhat.com>
14543 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
14544 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
14545 in a way that works also for AVX512BW.
14548 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
14549 instead of source if operands[1] is xmm16 and above and
14550 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
14551 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
14554 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
14555 on assign if (*from_p) is a comparison, set it to
14556 TREE_NO_WARNING (*from_p).
14558 2016-03-21 Jakub Jelinek <jakub@redhat.com>
14560 PR middle-end/70326
14561 * lra.c (restore_scratches): Ignore deleted insns.
14563 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
14564 Jakub Jelinek <jakub@redhat.com>
14566 PR tree-optimization/70317
14567 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
14570 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
14573 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
14574 of ix86_expand_move.
14576 (movti): Use general_operand for operand 1 predicate.
14578 2016-03-21 Martin Liska <mliska@suse.cz>
14580 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
14582 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
14584 2016-03-21 Martin Liska <mliska@suse.cz>
14587 * ipa-icf.c (sem_function::parse): Skip static
14588 constructors and destructors.
14590 2016-03-21 Jakub Jelinek <jakub@redhat.com>
14593 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
14594 function-like macro, peek following token(s) if it is followed
14595 by CPP_OPEN_PAREN token with optional padding in between, and
14596 if not, don't treat it like a macro.
14598 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
14599 Alexander Monakov <amonakov@ispras.ru>
14601 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
14602 for the stabs debug format.
14604 2016-03-21 Richard Biener <rguenther@suse.de>
14606 PR tree-optimization/70310
14607 * tree-vect-generic.c (expand_vector_condition): Fold the built
14610 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
14613 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
14614 Block third alternative for AVX-512VL target,
14616 2016-03-21 Martin Liska <mliska@suse.cz>
14619 * hsa-brig.c (emit_function_directives): Mark unemitted
14620 global variables for emission.
14621 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
14622 (get_symbol_for_decl): Likewise.
14623 * hsa.h (struct hsa_symbol): New flag.
14625 2016-03-21 Richard Biener <rguenther@suse.de>
14627 PR tree-optimization/70288
14628 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
14629 we do not estimate unsimplified all-constant conditionals or
14630 switches as optimized away.
14632 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
14634 PR rtl-optimization/69102
14635 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
14636 when we have a readonly dependency context.
14638 2016-03-18 Jeff Law <law@redhat.com>
14640 PR rtl-optimization/70263
14641 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
14642 (update_equiv_regs): When trying to move a store to after the insn
14643 that sets the source of the store, make sure the store occurs after
14644 the insn that sets the source of the store. When successful note
14645 the REG_EQUIV note created in the dump file.
14647 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
14648 Bernd Schmidt <bschmidt@redhat.com>
14650 * doc/extend.texi: Document more potential problems with basic asms.
14652 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
14654 PR rtl-optimization/70278
14655 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
14658 2016-03-18 Jason Merrill <jason@redhat.com>
14660 * calls.c (load_register_parameters): Fix zero size sibcall logic.
14662 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
14664 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
14665 values to 128b regs.
14667 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
14669 PR tree-optimization/70252
14670 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
14671 boolean vector has a proper number of elements.
14672 (supportable_narrowing_operation): Likewise.
14674 2016-03-18 Tom de Vries <tom@codesourcery.com>
14677 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
14679 2016-03-18 Jakub Jelinek <jakub@redhat.com>
14681 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
14682 instead of replace_rtx for DEBUG_INSNs.
14684 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14686 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
14687 load type reservations.
14689 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
14692 * config/pa/constraints.md: Revert 2015-02-13 change. Use
14693 define_constraint for "Q" and "T" constraints.
14695 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
14697 Tweak the pipeline model for Exynos M1
14699 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
14702 2016-03-17 David Malcolm <dmalcolm@redhat.com>
14705 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
14706 where one or both locations aren't within a line_map.
14708 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
14711 * opts.c (finish_options): Don't set flag_pie to the default if
14712 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
14715 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
14717 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
14718 true as ALL_REGS argument to replace_rtx.
14720 2016-03-17 Richard Biener <rguenther@suse.de>
14723 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
14726 2016-03-17 Jakub Jelinek <jakub@redhat.com>
14729 * rtl.h (replace_rtx): Add ALL_REGS argument.
14730 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
14731 equality and assert mode is the same, instead of just rtx pointer
14733 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
14734 true as ALL_REGS argument to replace_rtx.
14736 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
14738 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
14739 for boolean vector with vector mode only.
14740 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
14742 2016-03-17 Nick Clifton <nickc@redhat.com>
14745 * config/rx/rx.c (rx_print_integer): Print negative constants in
14748 2016-03-17 Jakub Jelinek <jakub@redhat.com>
14751 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
14753 2016-03-16 Richard Henderson <rth@redhat.com>
14754 Richard Biener <rguenth@suse.de>
14756 PR middle-end/70240
14757 PR middle-end/68215
14759 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
14760 first operand as is_gimple_condexpr.
14762 PR middle-end/70240
14763 PR middle-end/68215
14765 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
14766 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
14767 Do not gimplify the result.
14768 (do_unop): Adjust call to tree_vec_extract.
14769 (do_binop): Likewise.
14770 (do_compare): Likewise.
14771 (do_plus_minus): Likewise.
14772 (do_negate): Likewise.
14773 (expand_vector_condition): Likewise.
14774 (do_cond): Likewise.
14776 2016-03-16 Richard Henderson <rth@redhat.com>
14779 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
14780 (aarch64_classify_address): Use it.
14781 (aarch64_legitimize_address): Force all subexpressions of PLUS
14782 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
14784 2016-03-16 Jakub Jelinek <jakub@redhat.com>
14785 Richard Biener <rguenth@suse.de>
14788 * rtlanal.c (replace_rtx): For REG, if from is a REG,
14789 return to even if only REGNO is equal, and assert
14792 2016-03-11 Jeff Law <law@redhat.com>
14794 PR rtl-optimization/70224
14795 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
14797 2016-03-16 Richard Henderson <rth@redhat.com>
14799 PR middle-end/70199
14800 * function.h (struct function): Add has_forced_label_in_static.
14801 * gimplify.c (force_labels_r): Set it.
14802 * lto-streamer-in.c (input_struct_function_base): Read it.
14803 * lto-streamer-out.c (output_struct_function_base): Write it.
14804 * tree-inline.c (has_label_address_in_static_1): Remove.
14805 (copy_forbidden): Remove fndecl parameter; test
14806 has_forced_label_in_static.
14807 (inline_forbidden_p): Update call to copy_forbidden.
14808 (tree_versionable_function_p): Likewise.
14809 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
14810 (chkp_versioning): Likewise.
14811 * tree-inline.h (copy_forbidden): Update decl.
14813 2016-03-16 Marek Polacek <polacek@redhat.com>
14816 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
14817 function being thunked if the result type doesn't have fixed size.
14818 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
14819 doesn't have fixed size.
14821 2016-03-16 Bin Cheng <bin.cheng@arm.com>
14823 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
14824 reporting malformed loop nest.
14826 2016-03-16 Tom de Vries <tom@codesourcery.com>
14829 * ipa-devirt.c (possible_polymorphic_call_targets): Move
14830 nodes.length () == 1 test to before first nodes[0] access.
14832 2016-03-16 Tom de Vries <tom@codesourcery.com>
14834 PR tree-optimization/68715
14835 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
14836 single_pred_p test.
14838 2016-03-16 Tom de Vries <tom@codesourcery.com>
14840 PR tree-optimization/68809
14841 * graphite-scop-detection.c (same_close_phi_node): Test if result types
14844 2016-03-16 Carlos O'Donell <carlos@redhat.com>
14845 Sandra Loosemore <sandra@codesourcery.com>
14847 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
14848 on leaf attribute. Mention ELF interposition problems.
14850 2016-03-16 Alan Modra <amodra@gmail.com>
14852 PR rtl-optimization/69195
14853 PR rtl-optimization/47992
14854 * ira.c (indirect_jump_optimize): Ignore artificial defs.
14857 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
14860 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
14862 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14864 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
14866 2016-03-15 Jakub Jelinek <jakub@redhat.com>
14868 PR rtl-optimization/70222
14869 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
14870 optimization if mode is different from result_mode, queue up masking
14871 of the result in outer_op. Formatting fix.
14873 PR middle-end/70239
14874 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
14877 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
14879 PR rtl-optimization/69032
14880 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
14881 looping backwards over basic block insns.
14883 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
14886 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
14887 to non-speculative when propagating trap bits.
14889 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
14891 PR rtl-optimization/63384
14892 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
14893 DEBUG_INSN_P insns.
14895 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
14898 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
14899 factored out from ...
14900 (sched_analyze_insn): ... here.
14901 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
14902 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
14903 get_implicit_reg_pending_clobbers in it.
14904 (setup_id_reg_sets): Use setup_id_implicit_regs.
14905 (deps_init_id): Ditto.
14907 2016-03-15 Tom de Vries <tom@codesourcery.com>
14910 * cgraph.c (cgraph_node::get_body): Save, reset and restore
14912 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
14913 execute_function_dump.
14914 (execute_one_pass): Don't dump function if it will be dumped after ipa
14917 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
14919 * genrecog.c (match_pattern_2): If pred is NULL don't call
14920 safe_predicate_mode on it.
14922 2016-03-14 Jakub Jelinek <jakub@redhat.com>
14924 PR middle-end/70219
14925 * lra-constraints.c (delete_move_and_clobber): Change assertion
14926 to also allow dregno == 0.
14928 2016-03-14 Richard Henderson <rth@redhat.com>
14931 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
14932 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
14933 (reassociate_bb): Use optimize_vec_cond_expr; avoid
14934 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
14937 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
14940 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
14942 (lra_create_live_ranges_1): initialize hard register biggest_mode to
14944 * lra-constraints.c (split_reg): For hard regs, try to find the
14945 biggest single-register mode used in the function.
14947 2016-03-14 Richard Biener <rguenther@suse.de>
14949 PR tree-optimization/56365
14950 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
14951 constants to compare against.
14953 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
14956 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
14957 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
14958 (define_split for the GPR case): Use int_reg_operand instead of
14959 gpc_reg_operand for the output.
14961 2016-03-14 Tom de Vries <tom@codesourcery.com>
14963 PR tree-optimization/70045
14964 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
14965 create_empty_if_region_on_edge argument.
14967 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
14969 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
14970 (STACK_CHECK_PROTECT): Likewise.
14971 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
14972 (STACK_CHECK_PROTECT): Likewise.
14973 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
14974 (STACK_CHECK_PROTECT): Likewise.
14975 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
14976 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14977 (STACK_CHECK_PROTECT): Likewise.
14979 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
14981 PR rtl-optimization/69307
14982 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
14983 registers in modes that span more than one register.
14985 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
14988 * lra-constraints.c (delete_move_and_clobber): New.
14989 (remove_inheritance_pseudos): Use it.
14991 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
14994 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
14995 the libcall is LCT_THROW.
14996 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
14997 for the checking routine.
14999 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
15002 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
15003 optimization if we have direct move.
15004 (roundu32<mode>2_fprs): Likewise.
15006 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
15009 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
15011 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
15012 Arguments swapped. All callers changed. Take reg_renumber into
15013 account, and Calculate and compare register ranges for hard regs.
15015 2016-03-11 Jeff Law <law@redhat.com>
15017 PR tree-optimization/70190
15018 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
15019 Handle cases where we can not extract the taken edge, even though we
15020 found a constant value.
15022 PR tree-optimization/64058
15023 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
15024 (num_coalesce_pairs): Move up earlier in file.
15025 (find_coalesce_pair): Initialize the INDEX field for each pair
15027 (compare_pairs): No longer sort on the elements in each pair.
15028 Instead break ties with the index of the coalesce pair.
15030 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15033 * config/aarch64/aarch64-protos.h
15034 (aarch64_save_restore_target_globals): New prototype.
15035 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
15036 Call the above when popping pragma.
15037 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
15039 (aarch64_set_current_function): Rewrite using the above.
15041 2016-03-11 Jakub Jelinek <jakub@redhat.com>
15043 PR tree-optimization/70177
15044 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
15045 (extract_ops_from_tree): ... this. In the 2 argument
15046 overload remove _1 suffix.
15047 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
15048 (extract_ops_from_tree): ... this.
15049 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
15051 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
15052 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
15053 extract_ops_from_tree instead of 2 operand one.
15055 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
15057 PR tree-optimization/70013
15058 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
15059 for constant-pool entries.
15061 2016-03-11 Jakub Jelinek <jakub@redhat.com>
15063 PR rtl-optimization/70174
15064 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
15065 followed by gen_lowpart on force_reg instead of just gen_lowpart.
15067 PR tree-optimization/70169
15068 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
15069 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
15072 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
15073 Jakub Jelinek <jakub@redhat.com>
15076 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
15077 of uninitialized values.
15079 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15081 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
15083 ("*trunctddd2"): New pattern definition.
15084 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
15087 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15089 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
15090 definitions for BFP and DFP rounding modes.
15091 ("fixuns_truncdddi2", "fixuns_trunctddi2")
15092 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
15093 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
15094 ("fix_trunctf<mode>2"): Use the new constants instead of magic
15097 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15099 * config/s390/constraints.md: Adjust comment.
15100 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
15101 s390_decompose_addrstyle_without_index.
15102 * config/s390/predicates.md (shift_count_or_setmem_operand):
15103 Rename to setmem_operand.
15104 * config/s390/s390-protos.h
15105 (s390_decompose_shift_count): Rename to
15106 s390_decompose_addrstyle_without_index.
15107 * config/s390/s390.c (s390_decompose_shift_count)
15108 (s390_mem_constraint, print_shift_count_operand)
15109 (print_operand_address, print_operand): Rename
15110 s390_decompose_shift_count to
15111 s390_decompose_addrstyle_without_index and rename
15112 print_shift_count_operand to print_addrstyle_operand troughout the
15114 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
15115 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
15116 Rename shift_count_or_setmem_operand to setmem_operand.
15117 * config/s390/vx-builtins.md ("vec_insert<mode>")
15118 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
15121 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15124 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
15125 Handle overlapping retval and newval.
15127 2016-03-10 Nick Clifton <nickc@redhat.com>
15130 * config/aarch64/aarch64.c
15131 (aarch64_override_options_after_change_1): When forcing
15132 flag_omit_frame_pointer to be true, use a special value that can
15133 be detected if this function is called again, thus preventing
15134 flag_omit_leaf_frame_pointer from being forced to be false.
15136 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15138 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
15139 Set x_flag_omit_leaf_frame_pointer when handling
15140 -momit-leaf-frame-pointer.
15142 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
15145 * cgraph.c (cgraph_node::dump): Dump split_part and
15146 indirect_call_target.
15147 * cgraph.h (cgraph_node): Add indirect_call_target flag.
15148 * ipa.c (has_addr_references_p): Cleanup.
15149 (is_indirect_call_target_p): New.
15150 (walk_polymorphic_call_targets): Do not mark virtuals that may be
15151 called indirectly as local.
15152 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
15154 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
15157 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
15158 on cxa_pure_virtual.
15160 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
15163 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
15165 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
15168 * tree.c (need_assembler_name_p): Only record main variant type names.
15170 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
15173 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
15174 Always define to 0 or 1.
15175 (TARGET_FIX_ERR_A53_843419): New macro.
15176 * config/aarch64/aarch64-elf-raw.h
15177 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
15178 * config/aarch64/aarch64-linux.h: Likewise.
15179 * config/aarch64/aarch64.c
15180 (aarch64_override_options_after_change_1): Do not default
15181 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
15183 (aarch64_attributes): Handle fix-cortex-a53-843419.
15184 (aarch64_can_inline_p): Likewise.
15185 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
15187 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
15188 Jakub Jelinek <jakub@redhat.com>
15190 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
15191 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
15192 DECL_COMMONS if flag_unconstrained_commons is set.
15193 * tree-dfa.c (get_ref_base_and_extent): Likewise.
15194 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
15195 (funconstrained-commons): Document.
15197 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
15199 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
15200 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
15202 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
15204 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
15205 has a proper number of elements.
15207 2016-03-10 Alan Modra <amodra@gmail.com>
15209 PR rtl-optimization/69195
15210 PR rtl-optimization/47992
15211 * ira.c (recorded_label_ref): Delete.
15212 (update_equiv_regs): Return void.
15213 (indirect_jump_optimize): New function.
15214 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
15215 before regstat_compute_ri. Don't rebuild_jump_labels here.
15216 Delete update_regstat.
15218 2016-03-10 Richard Biener <rguenther@suse.de>
15220 PR tree-optimization/70128
15221 * tree-ssa-structalias.c (set_uids_in_ptset): Set
15222 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
15224 2016-03-09 Jakub Jelinek <jakub@redhat.com>
15226 PR tree-optimization/70152
15227 * tree-sra.c (replace_removed_params_ssa_names): Copy over
15228 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
15231 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
15232 instead of gen_sse2_loadlpd.
15233 * config/i386/sse.md (*vec_concatv2df): Rename to...
15234 (vec_concatv2df): ... this.
15236 PR tree-optimization/70127
15237 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
15239 2016-03-09 David Malcolm <dmalcolm@redhat.com>
15243 * diagnostic-show-locus.c (compatible_locations_p): New function.
15244 (layout::layout): Sanitize ranges using compatible_locations_p.
15246 2016-03-09 David Malcolm <dmalcolm@redhat.com>
15250 * diagnostic-show-locus.c (layout_range::layout_range): Replace
15251 location_range param with three const expanded_locations * and a
15253 (layout::layout): Replace call to
15254 rich_location::lazily_expand_location with get_expanded_location.
15255 Extract the range and perform location expansion here, passing
15256 the results to the layout_range ctor.
15257 * diagnostic.c (source_range::debug): Delete.
15258 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
15259 of rich_location::get_expanded_location.
15260 * gcc-rich-location.c (get_range_for_expr): Delete.
15261 (gcc_rich_location::add_expr): Reimplement to avoid the
15262 rich_location::add_range overload that took a location_range,
15263 passing a location_t instead.
15265 2016-03-09 Richard Biener <rguenther@suse.de>
15266 Jakub Jelinek <jakub@redhat.com>
15268 PR tree-optimization/70138
15269 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
15270 Also skip vect_double_reduction_def.
15272 2016-03-09 Jakub Jelinek <jakub@redhat.com>
15275 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
15276 if the operand is "m".
15278 2016-03-09 Nathan Sidwell <nathan@acm.org>
15280 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
15282 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15284 * config/i386/i386.c (processor_target_table): Fix cost table
15285 intialization order for znver1.
15287 2016-03-08 Jakub Jelinek <jakub@redhat.com>
15289 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
15290 - becuase -> because.
15291 * ipa-reference.c (ignore_module_statics): Likewise.
15292 * cgraph.c (cgraph_node::get_body): Likewise.
15293 * ipa-inline.c (early_inliner): Likewise.
15294 * ipa-devirt.c (types_same_for_odr): Likewise.
15295 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
15296 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
15298 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15300 * tree-ssa-math-opts.c: Fix typo in comment.
15302 2016-03-08 Jakub Jelinek <jakub@redhat.com>
15305 * config/i386/i386.c (scalar_chain::make_vector_copies,
15306 scalar_chain::convert_reg): Call end_sequence in between
15307 get_insns and emit_conversion_insns rather than after both
15310 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
15313 * config/i386/i386.h (machine_function): Add
15314 pc_thunk_call_expanded flag.
15315 (ix86_pc_thunk_call_expanded): New define.
15316 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
15317 (*set_got): Rename insn pattern from set_got.
15318 (*set_got_labelled): Rename inst pattern from set_got_labelled.
15319 * config/i386/i386.c (ix86_compute_frame_layout): Use
15320 ix86_pc_thunk_call_expanded to prevent red-zone.
15322 2016-03-07 Martin Jambor <mjambor@suse.cz>
15324 * hsa.h (hsa_get_ctor_statements): Declare.
15325 (hsa_get_dtor_statements): Likewise.
15326 (hsa_get_kernel_dispatch_type): Likewise.
15327 * hsa.c (hsa_get_ctor_statements): New function.
15328 (hsa_get_dtor_statements): Likewise.
15329 (hsa_get_kernel_dispatch_type): Likewise.
15330 * hsa-brig.c (hsa_cdtor_statements): Removed.
15331 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
15332 hsa_get_dtor_statements.
15333 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
15334 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
15336 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
15338 * config/arm/arm-cores.def (cortex-r8): New.
15339 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
15340 * config/arm/arm-tune.md: Likewise.
15341 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
15343 2016-03-07 Martin Sebor <msebor@redhat.com>
15345 PR rtl-optimization/19705
15346 * doc/invoke.texi (Options That Control Optimization): Clarify
15347 -fno-branch-count-reg.
15349 2016-02-26 Richard Biener <rguenther@suse.de>
15350 Jeff Law <law@redhat.com>
15352 PR tree-optimization/69740
15353 * cfghooks.c (remove_edge): Request loop fixups if we delete
15354 an edge that might turn an irreducible loop into a natural
15356 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
15357 Move after definition of loops_state_clear.
15359 2016-03-07 Bin Cheng <bin.cheng@arm.com>
15361 PR rtl-optimization/69052
15362 * rtlanal.c (commutative_operand_precedence): Set higher precedence
15365 2016-03-07 Tom de Vries <tom@codesourcery.com>
15367 PR tree-optimization/70116
15368 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
15369 is_tm_ending stmts and ubsan/asan internal functions.
15370 (find_duplicate): Use it. Don't test is_tm_ending here.
15372 2016-03-07 Richard Biener <rguenther@suse.de>
15374 PR tree-optimization/70115
15375 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
15376 (propagate_constants_for_unrolling): Use replace_uses_by.
15378 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
15380 PR middle-end/69916
15381 * omp-low.c (struct oacc_loop): Add ifns.
15382 (new_oacc_loop_raw): Initialize it.
15383 (finish_oacc_loop): Clear mask & flags if no ifns.
15384 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
15385 (oacc_loop_xform_loop): Add ifns arg & adjust.
15386 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
15388 2016-03-07 Richard Henderson <rth@redhat.com>
15391 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
15392 (insert_value_copy_on_edge): Likewise.
15394 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15396 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
15398 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15401 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
15403 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
15405 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
15407 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
15409 Fix sseimul type attribute.
15410 * config/i386/znver1.md
15411 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
15412 znver1_sseimul_avx256_load) : Fix the type attribute.
15413 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
15414 pipe usage and latency.
15416 2016-03-05 Jakub Jelinek <jakub@redhat.com>
15419 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
15420 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
15423 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
15426 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
15428 PR rtl-optimization/69941
15429 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
15430 the reg share its mode.
15432 2016-03-04 Jeff Law <law@redhat.com>
15434 PR tree-optimization/69196
15435 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
15436 If the both SSA_NAMEs are anonymous, then consider them unassociated
15437 and include the PHI in the statement count.
15439 2016-03-05 Tom de Vries <tom@codesourcery.com>
15441 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
15442 construct in oacc routine. Check for oacc region in oacc routine.
15444 2016-03-04 Jakub Jelinek <jakub@redhat.com>
15447 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
15448 2016-02-22 changes, instead don't recurse if RECUR is already true.
15449 Don't change *dynamic_check if RECUR. Adjust recursive caller
15450 to pass true to the new argument.
15451 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
15454 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
15455 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
15457 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
15459 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
15461 PR rtl-optimization/57676
15462 * lra-assigns.c (lra_assign): Guard test for maximum iterations
15463 with flag_checking.
15465 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
15467 * tree-vect-patterns.c (search_type_for_mask): Handle
15468 comparison of booleans.
15470 2016-03-04 Jakub Jelinek <jakub@redhat.com>
15472 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
15476 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
15477 all other ops that have dw_val_class_die_ref operands,
15478 and DW_OP_GNU_entry_value.
15480 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15482 PR rtl-optimization/69904
15483 * config/arm/arm.c (arm_cannot_copy_insn_p):
15484 Return true for load-exclusive instructions.
15486 2016-03-03 Jakub Jelinek <jakub@redhat.com>
15489 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
15490 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
15491 the pattern no matter if it is used just by non-pattern, pattern
15493 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
15494 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
15495 oprnd1 def_stmt is in pattern, don't look through it.
15497 2016-03-03 Marek Polacek <polacek@redhat.com>
15499 PR middle-end/70050
15500 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
15502 2016-03-03 Martin Liska <mliska@suse.cz>
15504 PR tree-optimization/70043
15505 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
15506 previous statement if we see a debug statement.
15508 2016-03-03 Richard Biener <rguenther@suse.de>
15510 PR tree-optimization/55936
15511 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
15512 parameter and guard unsafe equivalence use.
15513 (vrp_evaluate_conditional_warnv_with_ops): Always use
15514 safe equivalences but not via the quadratic compare_names
15517 2016-03-03 Michael Collison <michael.collison@linaro.org>
15520 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
15521 for operand 1 to s_register_operand. Change predicate for operand
15522 2 to arm_not_immediate_operand.
15524 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
15526 * doc/tm.texi: Regenerated.
15528 2016-03-02 Richard Henderson <rth@redhat.com>
15531 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
15532 simplification when all args are positive non-fixed registers.
15534 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15536 * target.def (lra_p): Specify that new ports should use LRA.
15538 2016-03-02 Jakub Jelinek <jakub@redhat.com>
15541 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
15542 gimplify_type_sizes the type they refer to.
15543 (omp_notice_variable): Handle reference vars to VLAs.
15544 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
15545 reference to VLA decls in the second pass instead of first pass.
15547 2016-03-02 Tom de Vries <tom@codesourcery.com>
15549 PR tree-optimization/68659
15550 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
15551 new_expr == NULL_TREE.
15552 (get_new_name): Handle ADDR_EXPR.
15554 2016-03-02 Bin Cheng <bin.cheng@arm.com>
15556 PR rtl-optimization/69052
15557 * loop-invariant.c (canonicalize_address): New function.
15558 (inv_can_prop_to_addr_use): Check validity of address expression
15559 which is canonicalized by above function.
15561 2016-03-02 Alan Modra <amodra@gmail.com>
15564 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
15567 2016-03-02 Jakub Jelinek <jakub@redhat.com>
15570 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
15571 (*movhi_internal): Put mask moves from and to memory separately
15572 from moves from/to GPRs.
15574 2016-03-02 Richard Biener <rguenther@suse.de>
15576 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
15577 GENERIC expressions in GIMPLE.
15579 2016-03-02 Richard Biener <rguenther@suse.de>
15581 * config/i386/i386.c (type_natural_mode): Fix typo.
15583 2016-03-02 Nick Clifton <nickc@redhat.com>
15585 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
15587 2016-03-02 Richard Biener <rguenther@suse.de>
15588 Uros Bizjak <ubizjak@gmail.com>
15591 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
15593 2016-03-02 Richard Biener <rguenther@suse.de>
15595 PR middle-end/67278
15596 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
15598 2016-03-02 Marek Polacek <polacek@redhat.com>
15601 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
15602 "is promoted to" warning.
15604 2016-03-01 DJ Delorie <dj@redhat.com>
15606 * config.gcc: Deprecate mep-*.
15608 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
15610 PR middle-end/70025
15611 * lra-constraints.c (regno_val_use_in): New.
15612 (match_reload): Use it instead of regno_use_in.
15614 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
15616 PR rtl-optimization/70007
15617 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
15618 references present in REG_EQUAL notes attached to non-SET patterns.
15620 2016-03-01 Jeff Law <law@redhat.com>
15622 PR tree-optimization/69196
15623 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
15624 Appropriately clamp the number of statements to copy when the
15625 thread path does not traverse a loop backedge.
15627 PR tree-optimization/69196
15628 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
15629 Do count some PHIs in the thread path against the insn count. Decrease
15630 final statement count by one as the control statement in the last
15631 block will get removed. Remove special cased code for handling PHIs
15634 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
15637 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
15638 asm dialect alternatives to explicit GOTPCREL calls.
15640 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
15643 * ira.c (do_reload): Issue warning for generic stack checking here...
15644 * reload1.c (reload): ...instead of here and streamline it.
15646 2016-03-01 Nick Clifton <nickc@redhat.com>
15648 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
15650 2016-03-01 Richard Biener <rguenther@suse.de>
15652 PR tree-optimization/69983
15653 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
15654 types and fall back to operand_equal_p.
15656 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15659 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15661 * config/s390/constraints.md ("jm8"): New constraint.
15662 * config/s390/predicates.md ("const_int_8bitset_operand"): New
15664 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
15666 ("*setmem_long<setmem_and>"): New pattern.
15667 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
15669 ("*setmem_long_31z<setmem_and>"): New pattern.
15670 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
15671 New substitution rules with the required attributes.
15674 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15677 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15679 * gensupport.c (process_substs_on_one_elem): Split loop to
15680 complete mark_operands_used_in_match_dup on all expressions in the
15682 (adjust_operands_numbers): Inline into process_substs_on_one_elem
15683 and remove function.
15685 2016-03-01 Richard Biener <rguenther@suse.de>
15687 PR middle-end/70022
15688 * fold-const.c (fold_indirect_ref_1): Fix range checking for
15689 vector BIT_FIELD_REF extract.
15691 2016-03-01 Richard Biener <rguenther@suse.de>
15693 PR tree-optimization/69994
15694 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
15696 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
15698 PR tree-optimization/69956
15699 * tree-vect-stmts.c (supportable_widening_operation): Support
15700 multi-step conversion of boolean vectors.
15701 (supportable_narrowing_operation): Likewise.
15703 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15705 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
15708 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15710 * config/s390/subst.md (DSI_VI): New mode iterator.
15711 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
15712 * config/s390/vector.md ("vec_set<mode>"): Move expander before
15713 the insn definition.
15714 ("*vec_set<mode>"): Change predicate and add alternative to
15715 support only either register or const_int operands as element
15717 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
15719 ("vec_extract<mode>"): New expander.
15720 ("*vec_extract<mode>"): New insn definition supporting reg and
15721 const_int element selectors.
15722 ("*vec_extract<mode>_plus"): New insn definition supporting
15723 reg+const_int element selectors.
15724 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
15725 following expander+insn definition.
15726 ("<vec_shifts_name><mode>3"): New expander.
15727 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
15729 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15731 * config/s390/s390.md ("*tabort_1"): Change predicate to
15732 nonmemory_operand. Add a second alternative to cover
15733 register as well as const int operands.
15734 ("*tabort_1_plus"): New pattern definition.
15736 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15738 * config/s390/s390.md ("*ashrdi3_cc_31")
15739 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
15740 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
15741 Merge insn definitions into ...
15742 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
15743 New pattern definition.
15744 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
15745 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
15746 ("*ashr<mode>3_and"): Merge insn definitions into ...
15747 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
15748 New pattern definition.
15749 * config/s390/subst.md ("addr_style_op_cc_subst")
15750 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
15751 substitutions patterns plus attributes.
15752 Add ashiftrt to SUBST iterator.
15754 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15756 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
15757 op2 to nonmemory_operand.
15758 ("*<shift>di3_31", "*<shift>di3_31_and"):
15759 Merge into single pattern definition ...
15760 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
15761 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
15762 pattern definition ...
15763 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
15764 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
15767 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15769 * config/s390/predicates.md (const_int_6bitset_operand): New
15771 * config/s390/s390.md: Include subst.md.
15772 ("rotl<mode>3"): New expander.
15773 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
15775 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
15776 * config/s390/subst.md: New file.
15778 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15780 * config/s390/s390.md ("op_type", "atype", "length" attributes):
15781 Remove RRR type. It doesn't really exist.
15782 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
15784 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
15785 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
15786 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
15787 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
15788 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
15789 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
15790 `enabled' attribute.
15792 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15794 * gensupport.c (process_substs_on_one_elem): Split loop to
15795 complete mark_operands_used_in_match_dup on all expressions in the
15797 (adjust_operands_numbers): Inline into process_substs_on_one_elem
15798 and remove function.
15800 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
15803 * config/sparc/sparc.c (NWORDS_UP): Rename to...
15804 (CEIL_NWORDS): ...this. Use CEIL macro.
15805 (compute_fp_layout): Adjust to above renaming.
15806 (function_arg_union_value): Likewise.
15807 (sparc_arg_partial_bytes): Likewise.
15808 (sparc_function_arg_advance): Likewise.
15810 2016-02-29 Jeff Law <law@redhat.com>
15812 PR tree-optimization/70005
15813 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
15814 where an object with a boolean range is compared against a value
15817 PR tree-optimization/69999
15818 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
15819 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
15822 2016-02-29 Richard Biener <rguenther@suse.de>
15824 PR tree-optimization/69994
15825 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
15826 (get_unary_op): Look through nop conversions.
15827 (ops_equal_values_p): New function, look for equality diregarding
15829 (eliminate_plus_minus_pair): Use ops_equal_values_p
15830 (repropagate_negates): Do not use get_unary_op here.
15832 2016-02-29 Martin Liska <mliska@suse.cz>
15834 * system.h: Poison ENABLE_CHECKING macro.
15836 2016-02-29 Martin Liska <mliska@suse.cz>
15838 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
15839 is presented in dump flags.
15840 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
15841 (hsa_regalloc): Likewise.
15843 2016-02-19 Richard Biener <rguenther@suse.de>
15845 PR tree-optimization/69980
15846 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
15847 permutation of those we need to keep.
15849 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
15852 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
15853 (NWORDS_UP): ...this
15854 (init_cumulative_args): Minor tweaks.
15855 (sparc_promote_function_mode): Likewise.
15856 (scan_record_type): Delete.
15857 (traverse_record_type): New function template.
15858 (classify_data_t): New structure type.
15859 (classify_registers): New inline function.
15860 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
15861 exhausted. Instantiate traverse_record_type on classify_registers and
15862 deal with the case of a structure passed in slot #15 with no FP field
15864 (assign_data_t): New structure type.
15865 (compute_int_layout): New static function.
15866 (compute_fp_layout): Likewise.
15867 (count_registers): New inline function.
15868 (assign_int_registers): New static function.
15869 (assign_fp_registers): Likewise.
15870 (assign_registers): New inline function.
15871 (function_arg_record_value_1): Delete.
15872 (function_arg_record_value_2): Likewise.
15873 (function_arg_record_value_3): Likewise.
15874 (function_arg_record_value): Adjust to above changes. Instantiate
15875 traverse_record_type on count_registers to first count the number of
15876 registers to be used and then on assign_registers to assign them.
15877 (function_arg_union_value): Adjust to above renaming.
15878 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
15879 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
15880 case of a structure passed in slot #15
15881 (sparc_function_arg_advance): Likewise.
15882 (function_arg_padding): Minor tweak.
15884 2016-02-29 Richard Biener <rguenther@suse.de>
15886 PR tree-optimization/69720
15887 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
15888 the adjustment_def path for possibly vectorized defs.
15889 (vect_create_epilog_for_reduction): Handle vectorized initial
15892 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
15894 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
15896 2016-02-27 Jeff Law <law@redhat.com>
15899 2016-02-26 Richard Biener <rguenther@suse.de>
15900 Jeff Law <law@redhat.com>
15902 PR tree-optimization/69740
15903 * cfghooks.c (remove_edge): Request loop fixups if we delete
15904 an edge that might turn an irreducible loop into a natural
15907 2016-02-27 Jakub Jelinek <jakub@redhat.com>
15909 PR rtl-optimization/69896
15910 * tree-vect-generic.c (get_compute_type): Avoid single element
15913 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
15915 Rename the AArch64 tuning option and related functions to enable the
15916 Newton series for the reciprocal square root to reflect its
15917 approximative characteristic.
15919 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
15920 function to "aarch64_emit_approx_rsqrt".
15921 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
15922 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
15923 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
15924 (xgene1_tunings): Likewise.
15925 (use_rsqrt_p): Likewise.
15926 (aarch64_emit_swrsqrt): Use new function name.
15927 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
15928 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
15929 text explaining this option.
15930 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
15932 2016-02-26 Jakub Jelinek <jakub@redhat.com>
15935 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
15936 complain about -mallow-movmisalign without -mvsx if
15937 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
15939 2016-02-26 Joel Sherrill <joel@rtems.org>
15941 * config.gcc: Add x86_64-*-rtems*.
15942 * config/i386/rtems-64.h: New file.
15944 2016-02-26 Joel Sherrill <joel@rtems.org>
15946 * config.gcc: Add aarch64-*-rtems*.
15947 * config/aarch64/rtems.h: New file.
15949 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
15952 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
15953 shift amount using %h. Add comment.
15955 2016-02-26 Richard Biener <rguenther@suse.de>
15956 Jeff Law <law@redhat.com>
15958 PR tree-optimization/69740
15959 * cfghooks.c (remove_edge): Request loop fixups if we delete
15960 an edge that might turn an irreducible loop into a natural
15963 2016-02-26 Martin Jambor <mjambor@suse.cz>
15965 PR middle-end/69920
15966 * tree-sra.c (sra_modify_assign): Do not remove loads of
15967 uninitialized aggregates to SSA_NAMEs.
15969 2016-02-26 Richard Henderson <rth@redhat.com>
15972 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
15973 pseudo in case the target rtx matches the source of the left
15976 2016-02-26 Martin Jambor <mjambor@suse.cz>
15979 * hsa.h (hsa_type_packed_p): Declare.
15980 * hsa.c (hsa_type_packed_p): New function.
15981 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
15983 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
15984 * hsa-brig.c (emit_basic_insn): Likewise.
15986 2016-02-26 Martin Jambor <mjambor@suse.cz>
15989 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
15991 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
15993 2016-02-26 Martin Jambor <mjambor@suse.cz>
15995 * hsa.h (is_a_helper): New overload for hsa_op_immed for
15996 hsa_op_with_type operands.
15997 (hsa_unsigned_type_for_type): Declare.
15998 * hsa.c (hsa_unsigned_type_for_type): New function.
15999 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
16000 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
16001 the finalizer. Do not emit extra move.
16003 2016-02-26 Martin Jambor <mjambor@suse.cz>
16005 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
16006 atomic operations in private segment.
16008 2016-02-26 Martin Jambor <mjambor@suse.cz>
16010 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
16011 statements to wi->info. Also disallow omp simd constructs.
16012 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
16013 for not gridifying. Dump special string for omp_for.
16015 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16018 * config/aarch64/aarch64.c (aarch64_set_current_function):
16019 Save/restore target globals when switching to
16020 target_option_default_node.
16022 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16025 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
16026 Return 0 if !SHIFT_COUNT_TRUNCATED.
16028 2016-02-26 Jakub Jelinek <jakub@redhat.com>
16029 Eric Botcazou <ebotcazou@adacore.com>
16031 PR rtl-optimization/69891
16032 * dse.c (scan_insn): If we can't figure out memset arguments
16033 or they are non-constant, call clear_rhs_from_active_local_stores.
16035 2016-02-26 Martin Liska <mliska@suse.cz>
16037 * doc/extend.texi: Mention clog10, clog10f an clog10l
16038 in Builtins section.
16040 2016-02-26 Martin Liska <mliska@suse.cz>
16042 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
16044 (resolve_args_picking_1): Likewise.
16045 * dwarf2out.h (struct GTY): Likewise.
16047 2016-02-26 Martin Liska <mliska@suse.cz>
16049 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
16050 with flag_checking.
16051 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
16053 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
16054 Martin Liska <mliska@suse.cz>
16056 * doc/install.texi: Mention --enable-valgrind-annotations.
16058 2016-02-26 Richard Biener <rguenther@suse.de>
16060 PR tree-optimization/69551
16061 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
16062 looking through aliases adjust DECL_PT_UID to refer to the
16063 ultimate alias target.
16065 2016-02-25 Martin Liska <mliska@suse.cz>
16067 PR middle-end/69919
16068 * alloc-pool.c (after_memory_report): New variable.
16069 * alloc-pool.h (base_pool_allocator ::release): Do not use
16070 the infrastructure if after_memory_report.
16071 * toplev.c (toplev::main): Mark after memory report.
16073 2016-02-25 Richard Biener <rguenther@suse.de>
16075 PR tree-optimization/48795
16076 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
16078 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
16081 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
16082 offloading is enabled and -fopenacc or -fopenmp is specified.
16083 (CRTOFFLOADEND): Likewise.
16084 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
16085 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
16086 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
16087 (offload_objects_file_name): New static var.
16088 (tool_cleanup): Remove offload_objects_file_name file.
16089 (find_offloadbeginend): Replace with ...
16090 (find_crtoffloadtable): ... this.
16091 (run_gcc): Remove offload_argc and offload_argv.
16092 Get offload_objects_file_name from -foffload-objects=... option.
16093 Read names of object files with offload from this file, pass them to
16094 compile_images_for_offload_targets. Don't call find_offloadbeginend and
16095 don't pass offloadbegin and offloadend to the linker. Don't pass
16096 offload non-LTO files to the linker, because now they're not claimed.
16098 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
16101 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
16102 on builtin_unreachable.
16104 2016-02-25 Jakub Jelinek <jakub@redhat.com>
16106 PR rtl-optimization/69896
16107 * regcprop.c: Include cfgrtl.h.
16108 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
16109 than remembered mode, either delete it (if noop_move_p), or
16110 treat like copy_p but not noop_p instruction.
16112 2016-02-24 Jakub Jelinek <jakub@redhat.com>
16115 * dwarf2out.c (gen_variable_die): Work around buggy LTO
16116 - allow NULL decl for Fortran DW_TAG_common_block variables.
16118 2016-02-24 Jason Merrill <jason@redhat.com>
16120 * common.opt (flifetime-dse): Add -flifetime-dse=1.
16122 2016-02-24 Richard Biener <rguenther@suse.de>
16123 Jakub Jelinek <jakub@redhat.com>
16125 PR middle-end/69760
16126 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
16127 conditionally executed ops to well-defined overflow behavior.
16129 2016-02-24 Jakub Jelinek <jakub@redhat.com>
16131 PR middle-end/69915
16132 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
16135 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16137 PR rtl-optimization/69886
16138 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
16139 argument. Use it when checking validity of set instructions.
16140 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
16141 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
16143 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
16144 * store-motion.c (find_moveable_store): Update
16145 can_assign_to_reg_without_clobbers_p callsite.
16147 2016-02-24 Richard Biener <rguenther@suse.de>
16149 PR middle-end/68963
16150 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
16152 (record_nonwrapping_iv): Do not fall back to the low/high bound
16153 for non-constant IV bases if the stmt is not always executed.
16155 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16157 * config/arm/arm-cores.def (cortex-a32): New entry.
16158 * config/arm/arm-tables.opt: Regenerate.
16159 * config/arm/arm-tune.md: Regenerate.
16160 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
16161 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
16162 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
16163 for -mcpu and -mtune.
16165 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16168 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
16169 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
16170 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
16171 (atomic_loaddi_1): Delete.
16172 (atomic_loaddi): Rewrite expander using the above changes.
16174 2016-02-24 Jakub Jelinek <jakub@redhat.com>
16177 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
16180 2016-02-24 Jakub Jelinek <jakub@redhat.com>
16181 Richard Biener <rguenth@suse.de>
16183 PR middle-end/69909
16184 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
16185 set_mem_attributes if tem is SSA_NAME which got expanded
16188 2016-02-24 Richard Biener <rguenther@suse.de>
16190 PR tree-optimization/69907
16191 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
16192 end of permutations for BB vectorization.
16194 2016-02-24 Christian Bruel <christian.bruel@st.com>
16196 * config/arm/arm-c.c (arm_option_override): Initialize
16197 target_option_current_node.
16198 * config/arm/arm.c (arm_pragma_target_parse): Replace
16199 build_target_option_node call by target_option_current_node.
16200 Set target_option_current_node.
16203 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
16206 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
16207 define_insn_and_split to define_insn.
16208 (zero_extendqi<mode>2_dot2): Same.
16209 (extendqi<mode>2_dot): Same.
16210 (extendqi<mode>2_dot2): Same.
16212 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
16214 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
16215 and add bypass for AES{D,E} and AESMC pairs.
16216 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
16219 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
16221 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
16222 series for reciprocal square root in Exynos M1.
16224 2016-02-23 Martin Sebor <msebor@redhat.com>
16227 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
16228 __builtin_alloca_with_align.
16230 2016-02-23 Richard Henderson <rth@redhat.com>
16232 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
16233 (ix86_register_pragmas): Remove __seg_tls.
16234 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
16235 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
16236 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
16237 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
16238 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
16239 * doc/extend.texi (__seg_tls): Remove item.
16241 2016-02-23 Richard Biener <rguenther@suse.de>
16243 * alloc-pool.h (struct allocation_object): Make id member
16244 conditional on CHECKING_P again.
16245 (get_instance): Adjust.
16246 (base_pool_allocator): Likewise.
16248 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
16250 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
16251 (parallelize_loops): In OpenACC kernels mode, set n_threads to
16253 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
16255 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
16257 2016-02-23 Richard Biener <rguenther@suse.de>
16259 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
16260 * bitmap.h (struct bitmap_usage): Likewise.
16261 (bitmap_move): Declare.
16262 * bitmap.c (register_overhead): Take size_t argument.
16263 (bitmap_move): New function.
16264 * df-problems.c (df_rd_transfer_function): Use bitmap_move
16265 to properly account overhead.
16266 * tree.c (free_node): Use tree_size.
16268 2016-02-23 Jakub Jelinek <jakub@redhat.com>
16271 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
16272 when inverting comparison.
16275 * common.opt (Wunreachable-code): Add Warning flag.
16277 2016-02-23 Mark Wielaard <mjw@redhat.com>
16278 Jakub Jelinek <jakub@redhat.com>
16281 * cgraphunit.c (check_global_declaration): Check main_input_filename
16282 and DECL_SOURCE_FILE are not NULL.
16284 2016-02-23 Martin Jambor <mjambor@suse.cz>
16286 PR tree-optimization/69666
16287 * tree-sra.c (sra_modify_assign): Do not attempt to create
16288 default_def replacements for unscalarizable regions.
16290 2016-02-20 Mark Wielaard <mjw@redhat.com>
16293 * cgraphunit.c (check_global_declaration): Check level of
16294 warn_unused_const_variable and main_input_filename.
16295 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
16296 (-Wunused-variable): For C implies -Wunused-const-variable=1.
16297 (-Wunused-const-variable): Explain levels 1 and 2.
16299 2016-02-22 Jakub Jelinek <jakub@redhat.com>
16302 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
16303 identical arguments. Formatting and spelling fixes.
16306 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
16311 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
16312 and m68k-devices.def.
16313 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
16314 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
16316 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
16318 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
16319 and HImode registers.
16321 2016-02-22 Richard Biener <rguenther@suse.de>
16323 PR tree-optimization/69882
16324 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
16325 preserve permutations present because of gaps.
16326 (vect_supported_load_permutation_p): Always continue checking
16327 permutations after vect_attempt_slp_rearrange_stmts.
16329 2016-02-22 Bin Cheng <bin.cheng@arm.com>
16331 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
16332 min_profitable_estimate, rather than min_profitable_iters.
16334 2016-02-22 Jakub Jelinek <jakub@redhat.com>
16337 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
16338 SImode for last match_operand.
16340 2016-02-22 Martin Liska <mliska@suse.cz>
16342 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
16343 return bitsize - 1 as the return value.
16345 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
16349 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
16350 Handle negative shift counts.
16351 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
16352 force_reg on the shift constant.
16353 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
16354 (lshrsi3_d): Handle negative shift counts.
16356 2016-02-22 Richard Biener <rguenther@suse.de>
16357 Tom de Vries <tom@codesourcery.com>
16359 * graph.c: Include dumpfile.h.
16360 (print_graph_cfg): Split into three overloads.
16361 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
16363 2016-02-22 Tom de Vries <tom@codesourcery.com>
16365 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
16368 2016-02-22 Richard Biener <rguenther@suse.de>
16371 * ipa-inline-transform.c (inline_call): When not updating
16372 overall summaries adjust self size by the growth estimate.
16373 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
16374 hash-set, do not update overall summaries here. Renamed from ...
16375 (inline_to_all_callers): ... this which is now wrapping the
16376 above and performing delayed overall summary update.
16377 (early_inline_small_functions): Delay updating of the overall
16380 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
16382 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
16385 2016-02-19 Jakub Jelinek <jakub@redhat.com>
16388 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
16389 :%* in %:gt() argument.
16390 (greater_than_spec_func): Adjust for expecting only numbers,
16391 if there are more than two numbers, compare the last two.
16393 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
16395 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
16396 -Wnarrowing with -std.
16398 2016-02-19 Jakub Jelinek <jakub@redhat.com>
16401 * expr.c (store_field): Don't use bit-field path if exp is
16402 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
16403 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
16404 and the assignment can be performed by bitwise copy. Formatting
16407 PR middle-end/69838
16408 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
16409 call copy_reg_eh_region_note_forward on before and/or after sequences
16410 and remove note from insn if it no longer can throw.
16413 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
16414 if TARGET_AVX512BW.
16416 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16418 * config/s390/vector.md: Add missing commutative operand markers
16419 to the patterns which qualify for one.
16420 * config/s390/vx-builtins.md: Likewise.
16422 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16424 * config/s390/vector.md (VI, VI_QHS): Add single element vector
16425 types to mode iterators.
16426 (vec_double): ... and mode attribute.
16427 * config/s390/vx-builtins.md (non_vec_int): Likewise.
16429 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16431 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
16432 Change the predicate of op2 from nonimmediate to general and let
16433 reload fix it if necessary.
16435 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16437 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
16439 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16441 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
16444 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16446 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
16447 * config/s390/s390.c (s390_expand_vec_movstr): New function.
16448 * config/s390/s390.md ("movstr<P:mode>"): Call
16449 s390_expand_vec_movstr.
16451 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16453 * config/s390/s390.md: Add missing output modifier for operand 1
16454 to print it as address properly.
16456 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16458 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
16459 * config/s390/2964.md: New file.
16460 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
16461 of insn grouping attributes depending on the CPU level.
16462 (s390_get_unit_mask): New function.
16463 (s390_sched_score): Remove the OOO from the scheduling macros.
16464 Add loop to calculate a score for the instruction mix.
16465 (s390_sched_reorder): Likewise plus improve debug output.
16466 (s390_sched_variable_issue): Rename macros as above. Calculate
16467 the unit distances after actually scheduling an insn. Improve
16469 (s390_sched_init): Clear last_scheduled_unit_distance array.
16470 * config/s390/s390.md: Include 2964.md.
16472 2016-02-18 Jakub Jelinek <jakub@redhat.com>
16475 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
16476 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
16477 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
16478 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
16479 *avx512f_<code>v8div16qi2_mask_1): New insns.
16481 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
16484 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
16487 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
16488 earlyclobber from target. Use wF constraint for fused memory
16490 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
16492 2016-02-18 Jakub Jelinek <jakub@redhat.com>
16493 Martin Liska <mliska@suse.cz>
16496 * cfgexpand.c (asan_sanitize_stack_p): New function.
16497 (partition_stack_vars): Use the function.
16498 (expand_stack_vars): Likewise.
16499 (defer_stack_allocation): Likewise.
16500 (expand_used_vars): Likewise.
16502 2016-02-18 Richard Biener <rguenther@suse.de>
16504 PR middle-end/69553
16505 * fold-const.c (operand_equal_p): Properly compare offsets for
16506 IMAGPART_EXPR and ARRAY_REF.
16508 2016-02-18 Nick Clifton <nickc@redhat.com>
16512 * config/arm/arm.c (arm_option_override_internal): Disable
16513 interworking if the target does not support thumb instructions.
16514 (arm_reload_in_hi): Handle the case where a register to register
16515 move needs reloading because there is no simple pattern to handle
16517 (arm_reload_out_hi): Likewise.
16519 2016-02-18 Richard Biener <rguenther@suse.de>
16521 PR middle-end/69854
16522 * match.pd: Don't use fold_binary or fold_unary for folding
16525 2016-02-17 Jakub Jelinek <jakub@redhat.com>
16528 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
16529 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
16530 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
16531 warn on gimple_no_warning_p statements.
16533 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
16535 * doc/extend.texi (C++ Attributes): Correct description of
16536 warn_unused type attribute.
16538 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16540 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
16541 correct instruction.
16543 2016-02-17 Richard Biener <rguenther@suse.de>
16545 PR rtl-optimization/69609
16546 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
16547 (find_traces_1_round): When ending a trace update cached priority
16549 (bb_to_key): Use cached priority when available.
16550 (copy_bb): Initialize cached priority.
16551 (reorder_basic_blocks_software_trace_cache): Likewise.
16553 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16556 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
16558 (aarch64_comparison_operator): Break overly long line into two.
16559 (aarch64_comparison_operation): Likewise.
16560 * config/aarch64/aarch64.md (cstorecc4): Use
16561 aarch64_comparison_operator_mode instead of
16562 aarch64_comparison_operator.
16563 (cstore<mode>4): Likewise.
16564 (aarch64_cstore<mode>): Likewise.
16565 (*cstoresi_insn_uxtw): Likewise.
16566 (cstore<mode>_neg): Likewise.
16567 (*cstoresi_neg_uxtw): Likewise.
16569 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16572 * config/arm/predicates.md (arm_comparison_operator_mode):
16574 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
16575 instead of arm_comparison_operator.
16576 (*mov_negscc): Likewise.
16577 (*mov_notscc): Likewise.
16578 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
16579 (*thumb2_mov_negscc): Likewise.
16580 (*thumb2_mov_negscc_strict_it): Likewise.
16581 (*thumb2_mov_notscc): Likewise.
16582 (*thumb2_mov_notscc_strict_it): Likewise.
16584 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
16586 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
16587 Add missing return.
16589 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
16591 * config/visium/visium.c (machine_libfunc_index): New enum.
16592 (machine_libfuncs): New structure.
16593 (visium_libfuncs): New static variable.
16594 (TARGET_INIT_LIBFUNCS): Define to...
16595 (visium_init_libfuncs): ...this. New function.
16596 (expand_block_move_4): Use the appropriate libfunc.
16597 (expand_block_move_2): Likewise.
16598 (expand_block_move_1): Likewise.
16599 (expand_block_set_4): Likewise.
16600 (expand_block_set_2): Likewise.
16601 (expand_block_set_1): Likewise.
16602 (visium_trampoline_init): Likewise.
16604 2016-02-17 Nick Clifton <nickc@redhat.com>
16606 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
16607 TI's devices.csv file as of March 2016.
16609 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
16612 * opts-global.c (handle_common_deferred_options): Introduce and
16613 initialize two global variables to remember command-line options
16614 specifying a stack-limiting register.
16615 * opts.h: Add extern declarations of the two new global variables.
16616 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
16617 variable based on the values of the two new global variables.
16619 2016-02-16 Jakub Jelinek <jakub@redhat.com>
16622 * common.opt (Wnonnull-compare): New warning.
16623 * doc/invoke.texi (-Wnonnull): Remove text about comparison
16624 of arguments against NULL.
16625 (-Wnonnull-compare): Document.
16626 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
16627 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
16628 * passes.def (pass_warn_nonnull_compare): Add.
16629 * gimple-ssa-nonnull-compare.c: New file.
16631 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
16633 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
16634 AARCH64_EXTRA_TUNE_RECIP_SQRT.
16636 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
16638 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
16639 reciprocal sqrt for -mlow-precision-recip-sqrt.
16641 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
16642 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16644 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
16645 always use lane loads to construct non-constant vectors.
16647 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
16649 * config/aarch64/aarch64.md
16650 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
16651 constraints for operand 3.
16652 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
16654 2016-02-16 Jakub Jelinek <jakub@redhat.com>
16655 Richard Biener <rguenther@suse.de>
16657 PR tree-optimization/69820
16658 * tree-vect-patterns.c (type_conversion_p): Return false if
16659 *orig_type is unsigned single precision or boolean.
16660 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
16663 2016-02-16 Jakub Jelinek <jakub@redhat.com>
16665 PR rtl-optimization/69764
16666 PR rtl-optimization/69771
16667 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
16668 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
16670 2016-02-16 Richard Biener <rguenther@suse.de>
16672 PR tree-optimization/69776
16673 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
16675 (indirect_refs_may_alias_p): Likewise.
16676 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
16677 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
16678 according to tbaa_p.
16679 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
16680 (optimize_stmt): For redundant store discovery do not allow tbaa.
16682 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
16684 PR tree-optimization/69714
16685 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
16686 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
16688 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
16690 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
16691 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
16692 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
16693 * config/arc/arc.c (arc_init): Check FPU options.
16694 (get_arc_condition_code): Handle new CC_FPU* modes.
16695 (arc_select_cc_mode): Likewise.
16696 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
16697 register pair only. Allow access for ARCv2 accumulator.
16698 (gen_compare_reg): Whenever we have FPU support use FPU compare
16700 (arc_reorg): Don't generate brcc insns when FPU compare
16701 instructions are involved.
16702 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
16703 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
16704 floating point emulation.
16705 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
16706 (REVERSE_CONDITION): Add new CC_FPU* modes.
16707 (TARGET_FP_SP_BASE): Define.
16708 (TARGET_FP_DP_BASE): Likewise.
16709 (TARGET_FP_SP_FUSED): Likewise.
16710 (TARGET_FP_DP_FUSED): Likewise.
16711 (TARGET_FP_SP_CONV): Likewise.
16712 (TARGET_FP_DP_CONV): Likewise.
16713 (TARGET_FP_SP_SQRT): Likewise.
16714 (TARGET_FP_DP_SQRT): Likewise.
16715 (TARGET_FP_DP_AX): Likewise.
16716 * config/arc/arc.md (ARCV2_ACC): New constant.
16717 (type): New fpu type attribute.
16718 (SDF): Conditional iterator.
16719 (cstore<mode>, cbranch<mode>): Change expand condition.
16720 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
16721 handles FPU/FPX cases as well.
16722 * config/arc/arc.opt (mfpu): New option.
16723 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
16725 (adddf3, muldf3, subdf3): Removed.
16726 * config/arc/predicates.md (proper_comparison_operator): Recognize
16728 * config/arc/fpu.md: New file.
16729 * doc/invoke.texi (ARC Options): Document mfpu option.
16731 2016-02-16 Richard Biener <rguenther@suse.de>
16733 PR rtl-optimization/69291
16734 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
16735 noce_operand_ok check.
16737 2016-02-16 Tom de Vries <tom@codesourcery.com>
16740 * omp-low.c (simd_clone_create): Remove call to
16741 symtab->call_cgraph_insertion_hooks.
16743 2016-02-16 Jakub Jelinek <jakub@redhat.com>
16745 PR tree-optimization/69802
16746 * tree-ssa-reassoc.c (update_range_test): If op is
16747 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
16748 op == 1 test of precision 1 integral op, otherwise handle
16749 that case as op itself. Fix up formatting.
16750 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
16753 2016-02-16 Richard Biener <rguenther@suse.de>
16755 PR tree-optimization/69586
16756 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
16757 types for conversion sources.
16759 2016-02-16 Richard Biener <rguenther@suse.de>
16761 PR middle-end/69801
16762 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
16763 mask OEP_ADDRESS_OF.
16765 2016-02-16 Alan Modra <amodra@gmail.com>
16768 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
16769 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
16770 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
16772 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
16773 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
16774 (p8_fmrgow_<mode>): Likewise.
16775 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
16777 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
16778 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
16779 to use movdi_internal64. Remove op0_di.
16780 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
16782 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
16784 Add support for the FCCMP insn types
16786 * config/aarch64/aarch64.md (fccmp): Change insn type.
16787 (fccmpe): Likewise.
16788 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
16789 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
16790 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
16791 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
16792 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
16793 * config/arm/types.md (fccmps): Add new insn type.
16794 (fccmpd): Likewise.
16796 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
16798 * alias.c (get_alias_set): Fix a typo in comment.
16800 2016-02-15 Richard Biener <rguenther@suse.de>
16802 PR tree-optimization/69595
16803 * match.pd: Complete range test simplification to true.
16805 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
16807 PR rtl-optimization/69648
16808 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
16809 pic_offset_table_rtx.
16811 PR rtl-optimization/69752
16812 * ira.c (update_equiv_regs): When looking for more than a single SET,
16813 also take other side effects into account.
16815 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
16817 * config/s390/s390.c (s390_function_profiler): Add a new sequence
16818 for z900+ CPUs in 31-bit mode.
16820 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
16822 * common/config/s390/s390-common.c (s390_supports_split_stack):
16824 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
16825 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
16826 * config/s390/s390.c (struct machine_function): New field
16827 split_stack_varargs_pointer.
16828 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
16829 in s390_emit_prologue.
16830 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
16832 (morestack_ref): New global.
16833 (SPLIT_STACK_AVAILABLE): New macro.
16834 (s390_expand_split_stack_prologue): New function.
16835 (s390_live_on_entry): New function.
16836 (s390_va_start): Use split-stack vararg pointer if appropriate.
16837 (s390_asm_file_end): Emit the split-stack note sections.
16838 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
16839 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
16840 (UNSPECV_SPLIT_STACK_CALL): New unspec.
16841 (UNSPECV_SPLIT_STACK_DATA): New unspec.
16842 (split_stack_prologue): New expand.
16843 (split_stack_space_check): New expand.
16844 (split_stack_data): New insn.
16845 (split_stack_call): New expand.
16846 (split_stack_call_*): New insn.
16847 (split_stack_cond_call): New expand.
16848 (split_stack_cond_call_*): New insn.
16850 2016-02-15 Richard Biener <rguenther@suse.de>
16852 PR tree-optimization/69783
16853 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
16854 Add trivially correct cases.
16856 2016-02-15 Tom de Vries <tom@codesourcery.com>
16859 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
16861 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
16863 2016-02-15 Richard Biener <rguenther@suse.de>
16865 PR tree-optimization/69776
16866 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
16867 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
16868 indicate whether we can use TBAA to disambiguate against stores.
16869 Use alias-set zero if not.
16870 (visit_reference_op_store): Do not use TBAA when looking up
16872 * tree-ssa-pre.c (compute_avail): Use TBAA here.
16873 (eliminate_dom_walker::before_dom_children): But not when looking
16874 up redundant stores.
16876 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
16878 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
16880 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
16882 * config/i386/znver1.md
16883 (znver1_pop, znver1_pop_mem,
16884 znver1_load_imov_double_store,
16885 znver1_load_imov_direct_store,
16886 znver1_load_imov_direct_load,
16887 znver1_load_imov_double_load): Add new.
16888 (znver1_insn, znver1_insn_load): Add icmov type.
16889 (znver1_sseavx_fma,
16890 znver1_sseavx_fma_load,
16892 znver1_avx256_fma_load): Fix pipe usage.
16894 2016-02-14 Alan Modra <amodra@gmail.com>
16897 * reload.c (find_reloads_address_1): For pre/post-inc/dec
16898 with an invalid hard reg, reload just the reg not the entire
16899 pre/post-inc/dec address expression.
16901 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
16904 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
16905 fixed R1_REG scratch reg.
16906 (sibcall_value_pcrel_fdpic): Likewise.
16908 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
16912 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
16914 2016-02-12 Walter Lee <walt@tilera.com>
16916 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
16917 * config/tilegx/t-tilegx: Likewise.
16919 2016-02-12 David Malcolm <dmalcolm@redhat.com>
16922 * diagnostic-show-locus.c (struct line_span): New struct.
16923 (layout::get_first_line): Delete.
16924 (layout::get_last_line): Delete.
16925 (layout::get_num_line_spans): New member function.
16926 (layout::get_line_span): Likewise.
16927 (layout::print_heading_for_line_span_index_p): Likewise.
16928 (layout::get_expanded_location): Likewise.
16929 (layout::calculate_line_spans): Likewise.
16930 (layout::m_first_line): Delete.
16931 (layout::m_last_line): Delete.
16932 (layout::m_line_spans): New field.
16933 (layout::layout): Update comment. Replace m_first_line and
16934 m_last_line with m_line_spans, replacing their initialization
16935 with a call to calculate_line_spans.
16936 (diagnostic_show_locus): When printing source lines and
16937 annotations, rather than looping over a single span
16938 of lines, instead loop over each line_span within
16939 the layout, with an inner loop over the lines within them.
16940 Call the context's start_span callback when changing line spans.
16941 * diagnostic.c (diagnostic_initialize): Initialize start_span.
16942 (diagnostic_build_prefix): Break out the building of the location
16943 part of the string into...
16944 (diagnostic_get_location_text): ...this new function, rewriting
16945 it from nested ternary expressions to a sequence of "if"
16947 (default_diagnostic_start_span_fn): New function.
16948 * diagnostic.h (diagnostic_start_span_fn): New typedef.
16949 (diagnostic_context::start_span): New field.
16950 (default_diagnostic_start_span_fn): New prototype.
16952 2016-02-12 David Malcolm <dmalcolm@redhat.com>
16955 * gcc.c (driver::finalize): Fix cleanup of "specs".
16957 2016-02-12 David Malcolm <dmalcolm@redhat.com>
16961 * gcc.c (driver::driver): Initialize m_option_suggestions.
16962 (driver::~driver): Clean up m_option_suggestions.
16963 (suggest_option): Convert to...
16964 (driver::suggest_option): ...this, and split out into
16965 driver::build_option_suggestions and find_closest_string.
16966 (driver::build_option_suggestions): New function, from
16967 first half of suggest_option. Special-case
16968 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
16969 the sanitizer_opts array. For options of enum types, add the
16970 various enum values to the candidate strings.
16971 (driver::handle_unrecognized_options): Remove "const".
16972 * gcc.h (driver::handle_unrecognized_options): Likewise.
16973 (driver::build_option_suggestions): New decl.
16974 (driver::suggest_option): New decl.
16975 (driver::m_option_suggestions): New field.
16976 * opts-common.c (add_misspelling_candidates): New function.
16977 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
16978 and make non-static.
16979 * opts.h (sanitizer_opts): New array decl.
16980 (add_misspelling_candidates): New function decl.
16981 * spellcheck.c (find_closest_string): New function.
16982 * spellcheck.h (find_closest_string): New function decl.
16984 2016-02-12 Jakub Jelinek <jakub@redhat.com>
16986 PR rtl-optimization/69764
16987 PR rtl-optimization/69771
16988 * optabs.c (expand_binop_directly): For shift_optab_p, force
16989 convert_modes with VOIDmode if xop1 has VOIDmode.
16991 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
16994 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
16995 to correctly determine instrumentation thunks.
16997 2016-02-12 Jakub Jelinek <jakub@redhat.com>
17000 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
17001 type by reference, force lhs on the call.
17004 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
17005 Compute retval and retbnd early in all cases if split_part_return_p
17006 and return_bb is not EXIT. Remove all clobber stmts and reset
17007 all debug stmts that refer to SSA_NAMEs defined in split part,
17008 except if it is retval, in that case replace the old retval with the
17009 lhs of the call to the split part.
17011 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
17014 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
17016 PR middle-end/66726
17017 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
17018 whose result is used in PHI.
17019 (maybe_optimize_range_tests): Likewise.
17020 (final_range_test_p): Likweise.
17022 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
17024 PR middle-end/66726
17025 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
17026 whose result is used in PHI.
17027 (maybe_optimize_range_tests): Likewise.
17028 (final_range_test_p): Likweise.
17030 2016-02-12 Jakub Jelinek <jakub@redhat.com>
17032 * cgraph.c: Spelling fixes - behaviour -> behavior and
17033 neighbour -> neighbor.
17034 * target.def: Likewise.
17035 * sel-sched.c: Likewise.
17036 * config/mips/mips.c: Likewise.
17037 * config/arc/arc.md: Likewise.
17038 * config/arm/cortex-a57.md: Likewise.
17039 * config/arm/arm.c: Likewise.
17040 * config/arm/neon.md: Likewise.
17041 * config/arm/arm-c.c: Likewise.
17042 * config/vms/vms-c.c: Likewise.
17043 * config/s390/s390.c: Likewise.
17044 * config/i386/znver1.md: Likewise.
17045 * config/i386/i386.c: Likewise.
17046 * config/ia64/hpux-unix2003.h: Likewise.
17047 * config/msp430/msp430.md: Likewise.
17048 * config/rx/rx.c: Likewise.
17049 * config/rx/rx.md: Likewise.
17050 * config/aarch64/aarch64-simd.md: Likewise.
17051 * config/aarch64/aarch64.c: Likewise.
17052 * config/nvptx/nvptx.c: Likewise.
17053 * config/bfin/bfin.c: Likewise.
17054 * config/cris/cris.opt: Likewise.
17055 * config/rs6000/rs6000.c: Likewise.
17056 * target.h: Likewise.
17057 * spellcheck.c: Likewise.
17058 * ira-build.c: Likewise.
17059 * tree-inline.c: Likewise.
17060 * builtins.c: Likewise.
17061 * lra-constraints.c: Likewise.
17062 * explow.c: Likewise.
17063 * hwint.h: Likewise.
17064 * targhooks.c: Likewise.
17065 * tree-vect-data-refs.c: Likewise.
17066 * expr.c: Likewise.
17067 * doc/tm.texi: Likewise.
17068 * doc/extend.texi: Likewise.
17069 * doc/install.texi: Likewise.
17070 * doc/md.texi: Likewise.
17071 * tree-ssa-tail-merge.c: Likewise.
17072 * sched-int.h: Likewise.
17073 * match.pd: Likewise.
17074 * sched-ebb.c: Likewise.
17075 * target.def (omit_struct_return_reg): Likewise.
17076 * gimple-ssa-isolate-paths.c: Likewise.
17077 (find_implicit_erroneous_behaviour): Renamed to...
17078 (find_implicit_erroneous_behavior): ... this.
17079 (find_explicit_erroneous_behaviour): Renamed to...
17080 (find_explicit_erroneous_behavior): ... this.
17081 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
17083 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
17085 PR rtl-optimization/64682
17086 PR rtl-optimization/69567
17087 PR rtl-optimization/69737
17088 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
17089 in I2 as well, just lose it.
17091 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17093 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
17095 (aarch64_last_printed_tune_string): Likewise.
17096 (aarch64_declare_function_name): Only output .arch assembler
17097 directive if it will be different from the previously output
17098 directive. Same for .tune comment but only if -dA is set.
17099 (aarch64_start_file): New function.
17100 (TARGET_ASM_FILE_START): Define.
17102 2016-02-11 David Malcolm <dmalcolm@redhat.com>
17105 * Makefile.in (PLUGIN_HEADERS): Add params.list.
17107 2016-02-11 Jakub Jelinek <jakub@redhat.com>
17110 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
17111 -Wmaybe-uninitialized warning.
17113 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
17116 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
17118 2016-02-11 Richard Biener <rguenther@suse.de>
17120 PR rtl-optimization/69291
17121 * ifcvt.c (noce_try_store_flag_constants): Do not allow
17122 subexpressions affected by changing the result.
17124 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
17127 * lra-constraints.c (curr_insn_transform): Find in/out operands
17128 for secondary memory moves. Update dups.
17130 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
17132 PR tree-optimization/69652
17133 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
17134 to nested loop, did source re-formatting, skip debug statements,
17135 add check on statement with volatile operand, remove dead scalar
17138 2016-02-10 Jakub Jelinek <jakub@redhat.com>
17139 Patrick Palka <ppalka@gcc.gnu.org>
17143 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
17144 calls if the return type is TREE_ADDRESSABLE.
17145 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
17146 * ipa-split.c (split_function): Fix doubled "we" in comment.
17147 Use void return type for the split part even if
17148 !split_point->split_part_set_retval.
17150 2016-02-10 Bin Cheng <bin.cheng@arm.com>
17152 PR tree-optimization/68021
17153 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
17154 when computing the value of biv cand by itself.
17156 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
17158 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
17159 (cortexa57_tunings): Likewise.
17160 (cortexa72_tunings): Likewise.
17161 (arch_macro_fusion_pair_p): Add support for AES fusion.
17162 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
17163 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
17164 Allow virtual registers before reload so early scheduling works.
17165 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
17166 correct latency and pipeline.
17167 (cortex_a57_crypto_complex): Likewise.
17168 (cortex_a57_crypto_xor): Likewise.
17169 (define_bypass): Add AES bypass.
17171 2016-02-10 Richard Biener <rguenther@suse.de>
17173 PR tree-optimization/69726
17174 * passes.def: Add DCE pass before late uninit.
17175 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
17176 really fixup if-conversions job.
17178 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
17180 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
17181 (arm_cortex_a57_tune): Likewise.
17182 (aarch_macro_fusion_pair_p): Add support for AES fusion.
17183 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
17185 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
17187 * timevar.def (TV_PHASE_DBGINFO): Delete.
17188 (TV_PHASE_CHECK_DBGINFO): Likewise.
17189 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
17191 2016-02-10 Richard Biener <rguenther@suse.de>
17193 PR tree-optimization/69719
17194 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
17195 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
17197 2016-02-09 Andrew Pinski <apinski@cavium.com>
17200 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
17201 get_vcond_mask_icode returns false.
17203 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
17206 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
17207 an ADDIS that adds a pointer to a large constant that sets the
17208 upper16 bits with a load operation.
17210 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
17213 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
17215 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
17217 (vzipq_s16): Likewise.
17218 (vzipq_s32): Likewise.
17219 (vzipq_f32): Likewise.
17220 (vzipq_u8): Likewise.
17221 (vzipq_u16): Likewise.
17222 (vzipq_u32): Likewise.
17223 (vzipq_p8): Likewise.
17224 (vzipq_p16): Likewise.
17226 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
17229 * config/arm/arm.c (neon_endian_lane_map): New function.
17230 (neon_vector_pair_endian_lane_map): New function.
17231 (arm_evpc_neon_vuzp): Allow for big endian lane order.
17232 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
17234 (vuzpq_s16): Likewise.
17235 (vuzpq_s32): Likewise.
17236 (vuzpq_f32): Likewise.
17237 (vuzpq_u8): Likewise.
17238 (vuzpq_u16): Likewise.
17239 (vuzpq_u32): Likewise.
17240 (vuzpq_p8): Likewise.
17241 (vuzpq_p16): Likewise.
17243 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
17246 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
17249 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
17251 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
17252 truncate const_int operand 1 to QImode.
17254 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
17256 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
17257 corresponding to an abnormal edge.
17259 2016-02-09 Tom de Vries <tom@codesourcery.com>
17261 PR tree-optimization/69599
17262 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
17264 (find_func_aliases_for_builtin_call, find_func_clobbers)
17265 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
17268 2016-02-09 Richard Biener <rguenther@suse.de>
17270 PR tree-optimization/69715
17271 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
17272 LHS on calls as non-rewritable.
17274 2016-02-09 Tom de Vries <tom@codesourcery.com>
17277 * lto-wrapper.c (append_diag_options): New function.
17278 (compile_offload_image): Call append_diag_options.
17280 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
17283 * doc/extend.texi (Flag Output Operands): Correct sectioning.
17284 Minor copy-edit to fix verb tenses.
17286 2016-02-08 Jakub Jelinek <jakub@redhat.com>
17288 PR tree-optimization/69209
17289 * ipa-split.c (split_function): If split part is not
17290 returning retval, retval has gimple type but is not
17291 gimple value, force it into a SSA_NAME first.
17293 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
17295 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
17298 2016-02-08 Jason Merrill <jason@redhat.com>
17301 * convert.c (convert_to_integer_1): Check dofold on truncation
17303 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
17304 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
17305 Rename from *_nofold.
17306 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
17307 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
17309 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
17312 * tree.c (build_common_tree_nodes): Remove short_double argument.
17313 All callers changed.
17314 * tree.h (build_common_tree_nodes): Adjust declaration.
17315 * doc/invoke.texi (-fshort-double): Remove documentation.
17316 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
17317 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
17318 * lto-wrapper.c (merge_and_complain, append_compiler_options)
17319 (append_linker_options): Don't handle OPT_fshort_double.
17321 PR rtl-optimization/68730
17322 * lra-remat.c (insn_to_cand_activation): New static variable.
17323 (lra_remat): Allocate and free it.
17324 (create_cand): New arg activation. Initialize a field in
17325 insn_to_cand_activation if it is nonnull.
17326 (create_cands): Pass the activation insn to create_cand when making
17327 a candidate involving an output reload. Reorganize code a little.
17328 (do_remat): Keep track of active status of candidates in a separate
17331 2016-02-08 Richard Biener <rguenther@suse.de>
17333 PR tree-optimization/69719
17334 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
17335 Properly use absolute of the difference of the two offsets to
17336 compare or adjust the segment length.
17338 2016-02-08 Richard Biener <rguenther@suse.de>
17339 Jeff Law <law@redhat.com>
17342 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
17343 types for anonymous SSA names.
17345 2016-02-08 Richard Biener <rguenther@suse.de>
17347 PR rtl-optimization/69274
17348 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
17350 2016-02-08 Jeff Law <law@redhat.com>
17352 PR tree-optimization/65917
17353 * tree-ssa-dom.c (record_temporary_equivalences): Record both
17354 equivalences from if (x == y) style conditionals.
17355 (loop_depth_of_name): Remove.
17356 (record_equality): Remove loop depth check.
17357 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
17358 (const_and_copies::record_const_or_copy_raw): New member function.
17359 * tree-ssa-scopedtables.c
17360 (const_and_copies::record_const_or_copy_raw): New, factored out of
17361 (const_and_copies::record_const_or_copy): Call new member function.
17363 2016-02-05 Jeff Law <law@redhat.com>
17365 PR tree-optimization/68541
17366 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
17367 (count_stmts_in_block): New function.
17368 (poor_ifcvt_candidate_code): Likewise.
17369 (is_feasible_trace): Add some heuristics to determine when path
17370 splitting is profitable.
17371 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
17372 is a diamond with a single exit.
17374 2016-02-05 Martin Sebor <msebor@redhat.com>
17377 * doc/invoke.texi: Update -Wplacement-new to take an optional
17380 2016-02-06 Richard Henderson <rth@redhat.com>
17383 * tree.c (tree_nop_conversion_p): Do not strip casts into or
17384 out of non-standard address spaces.
17386 2016-02-05 Jakub Jelinek <jakub@redhat.com>
17388 PR rtl-optimization/69691
17389 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
17391 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
17393 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
17394 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
17395 (*ieee128_mfvsrd_64bit): Likewise.
17396 (*ieee128_mfvsrd_32bit): Likewise.
17398 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
17402 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17404 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
17405 instrumented_version.
17407 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
17409 * doc/invoke.texi (Optimize Options): In table of --param options
17410 rename second occurrence of tracer-min-branch-ratio to
17411 tracer-min-branch-probability, rename
17412 tracer-min-branch-ratio-feedback to
17413 tracer-min-branch-probability-feedback and clarify description,
17414 rename sched-spec-state-edge-prob-cutoff to
17415 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
17416 to selsched-insns-to-rename, rename lto-minpartition to
17417 lto-min-partition, delete reorder-blocks-duplicate and
17418 reorder-blocks-duplicate-feedback.
17420 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17422 * config/s390/s390.c (s390_register_info_set_ranges): Remove
17425 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
17427 * doc/extend.texi: S/390: Correct some typos.
17429 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17431 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
17433 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17436 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
17437 (s390_register_info_gprtofpr): Use new macros above.
17438 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
17440 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
17441 its name. Adjust restore and save gpr ranges.
17442 (s390_register_info_set_ranges): New function.
17443 (s390_register_info): Use new macros above. Call
17444 s390_register_info_set_ranges.
17445 (s390_optimize_register_info): Likewise.
17446 (s390_hard_regno_rename_ok): Use new macros.
17447 (s390_hard_regno_scratch_ok): Likewise.
17448 (s390_emit_epilogue): Likewise.
17449 (s390_can_use_return_insn): Likewise.
17450 (s390_optimize_prologue): Likewise.
17451 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
17453 2016-02-05 Jakub Jelinek <jakub@redhat.com>
17456 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
17458 (ix86_option_override_internal): Disable TARGET_STV even for
17459 -m{incoming,preferred}-stack-boundary=3.
17461 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17463 * config.gcc: Mark deprecated rtems targets as obsolete.
17465 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
17467 PR rtl-optimization/64682
17468 PR rtl-optimization/69567
17469 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
17470 before I2 only if the register is both used and set in I2.
17472 2016-02-04 DJ Delorie <dj@redhat.com>
17474 * config/msp430/msp430.c (msp430_start_function): Add function type.
17476 2016-02-04 Jakub Jelinek <jakub@redhat.com>
17479 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
17481 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
17483 PR rtl-optimization/69577
17485 2015-10-29 Richard Henderson <rth@redhat.com>
17489 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
17490 sse check to the exact conditions of PR 67609.
17492 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
17495 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
17496 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
17497 not allowed into the traditional Altivec registers.
17498 (movtd_64bit_nodm): Likewise.
17499 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
17501 2016-02-04 David Malcolm <dmalcolm@redhat.com>
17503 * config/aarch64/cortex-a57-fma-steering.c
17504 (aarch64_register_fma_steering): Remove "static" from arguments
17507 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
17510 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
17511 twice when complex.
17513 2016-02-04 Mike Frysinger <vapier@gentoo.org>
17515 * doc/invoke.texi: Delete -mno-fma4.
17517 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
17519 PR rtl-optimization/69577
17520 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
17521 (find_subregs_of_mode): Update accordingly. Iterate over partial
17524 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
17526 * config/arm/arm-protos.h (neon_reinterpret): Remove.
17527 * config/arm/arm.c (neon_reinterpret): Remove.
17528 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
17529 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
17530 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
17531 vreinterpretti): Remove.
17532 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
17533 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
17534 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
17535 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
17536 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
17537 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
17538 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
17539 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
17540 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
17541 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
17542 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
17543 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
17544 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
17545 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
17546 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
17547 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
17548 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
17549 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
17550 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
17551 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
17552 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
17553 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
17554 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
17555 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
17556 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
17557 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
17558 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
17559 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
17560 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
17561 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
17562 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
17563 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
17564 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
17565 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
17566 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
17567 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
17568 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
17569 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
17570 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
17571 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
17572 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
17573 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
17574 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
17575 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
17576 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
17577 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
17578 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
17579 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
17580 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
17581 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
17582 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
17583 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
17584 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
17585 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
17586 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
17587 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
17588 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
17589 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
17590 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
17591 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
17592 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
17593 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
17594 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
17595 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
17596 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
17597 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
17598 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
17599 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
17600 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
17601 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
17602 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
17603 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
17604 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
17605 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
17606 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
17607 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
17608 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
17609 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
17610 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
17611 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
17612 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
17613 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
17614 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
17615 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
17616 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
17617 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
17618 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
17619 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
17620 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
17621 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
17622 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
17623 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
17624 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
17625 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
17626 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
17627 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
17628 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
17629 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
17630 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
17631 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
17632 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
17633 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
17634 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
17636 2016-02-04 Martin Liska <mliska@suse.cz>
17639 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
17640 that are gimple_store_p.
17641 (maybe_instrument_call): Likewise.
17643 2016-02-04 Bin Cheng <bin.cheng@arm.com>
17645 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
17646 register scaling out of memory reference and comment why.
17648 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17652 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
17653 folding the source of a SET.
17655 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17659 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
17660 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
17662 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
17666 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
17669 2016-02-04 Christian Bruel <christian.bruel@st.com>
17671 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
17672 * config/arm/arm.c (arm_set_current_function): Likewise.
17674 2016-02-04 Jakub Jelinek <jakub@redhat.com>
17675 Ilya Enkovich <enkovich.gnu@gmail.com>
17676 H.J. Lu <hongjiu.lu@intel.com>
17679 * config/i386/i386.c (convert_scalars_to_vector): Remove
17680 stack alignment fixes.
17681 (ix86_option_override_internal): Disable TARGET_STV if stack
17682 might not be aligned enough.
17683 (ix86_minimum_alignment): Assert that TARGET_STV is false.
17685 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
17687 * config/i386/x86-tune.def: Disable default prefetching
17690 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
17691 Vladimir Makarov <vmakarov@redhat.com>
17694 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
17695 in validating fused toc addresses.
17697 2016-02-03 Jakub Jelinek <jakub@redhat.com>
17700 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
17701 range->m_caret fields if range->m_show_caret_p is false.
17704 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
17705 Force oldval into register if it does not satisfy reg_or_short_operand
17706 predicate. Fix up formatting.
17708 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
17709 Alexandre Oliva <aoliva@redhat.com>
17712 * lra-constraints.c (simplify_operand_subreg): Check additionally
17713 address validity after potential reloading.
17714 (process_address_1): Check insns validity. In case of failure do
17717 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
17720 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
17723 2016-02-02 Jakub Jelinek <jakub@redhat.com>
17725 * wide-int.cc (canonize_uhwi): New function.
17726 (wi::divmod_internal): Use it.
17728 2016-02-02 James Norris <jnorris@codesourcery.com
17730 * gimplify.c (omp_notice_variable): Add usage check.
17732 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
17734 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
17735 like LE, GE, LT, GT when emitting relational operator.
17737 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
17739 * ira-costs.c (find_costs_and_classes): Add extra argument.
17740 * target.def (ira_change_pseudo_allocno_class): Add parameter.
17741 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
17742 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
17743 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
17744 Add best_class parameter, and return it if not ALL_REGS.
17745 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
17747 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
17748 Update target hook.
17750 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
17752 * config/aarch64/aarch64.c
17753 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
17754 (aarch64_ira_change_pseudo_allocno_class): New function.
17756 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
17759 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
17761 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17763 * config/avr/avr.c (avr_option_override): Set
17764 PARAM_ALLOW_STORE_DATA_RACES to 1.
17766 2016-02-02 Richard Biener <rguenther@suse.de>
17768 PR tree-optimization/69595
17769 * match.pd: Add range test simplifications to true/false.
17771 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
17773 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
17774 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
17777 2016-02-02 Richard Biener <rguenther@suse.de>
17779 PR tree-optimization/69606
17780 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
17781 info on the result before moving a stmt.
17783 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
17785 PR middle-end/68542
17786 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
17787 branch with vector comparison.
17788 * config/i386/sse.md (VI48_AVX): New mode iterator.
17789 (define_expand "cbranch<mode>4): Add support for conditional branch
17790 with vector comparison.
17791 * tree-vect-loop.c (optimize_mask_stores): New function.
17792 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
17793 has_mask_store field of vect_info.
17794 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
17795 vectorized loops having masked stores after vec_info destroy.
17796 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
17797 correspondent macros.
17798 (optimize_mask_stores): Add prototype.
17800 2016-02-02 Alan Modra <amodra@gmail.com>
17803 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
17806 2016-02-02 Alan Modra <amodra@gmail.com>
17809 * config/rs6000/rs6000.c (need_toc_init): New var, set it
17810 whenever toc_label_name used.
17811 (rs6000_file_start): Don't set up toc section here,
17812 (rs6000_output_function_epilogue): do so here instead,
17813 (rs6000_xcoff_file_start): and here.
17814 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
17815 (load_toc_aix_di): Likewise.
17817 2016-02-01 Jakub Jelinek <jakub@redhat.com>
17819 PR rtl-optimization/69592
17820 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
17821 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
17822 (num_sign_bit_copies_binary_arith_p): New inline function.
17823 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
17825 2016-02-01 Jeff Law <law@redhat.com>
17827 PR tree-optimization/69580
17828 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
17829 * tree-ssa-threadbackward.c
17830 (fsm_find_control_statement_thread_paths): Do not try to walk
17831 through large PHI nodes.
17833 2016-02-01 Jakub Jelinek <jakub@redhat.com>
17835 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
17836 when count is incremented above limit, don't analyze further
17839 * omp-low.c (oacc_parse_default_dims): Avoid
17840 -Wsign-compare warning, make sure value fits into int
17841 rather than just unsigned int.
17843 2016-02-01 Bin Cheng <bin.cheng@arm.com>
17845 PR tree-optimization/67921
17846 * fold-const.c (split_tree): New parameters. Convert pointer
17847 type variable part to proper type before negating.
17848 (fold_binary_loc): Pass new arguments to split_tree.
17850 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
17852 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
17853 (nvptx_goacc_validate_dims): Extend to handle global defaults.
17854 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
17855 * doc/tm.texti: Rebuilt.
17856 * doc/invoke.texi (fopenacc-dim): Document.
17857 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
17858 (append_compiler_options): Likewise.
17859 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
17860 (oacc_parse_default_dims): New.
17861 (oacc_validate_dims): Add USED arg. Select non-unity default when
17863 (oacc_loop_fixed_partitions): Return mask of used partitions.
17864 (oacc_loop_auto_partitions): Emit dump info.
17865 (oacc_loop_partition): Return mask of used partitions.
17866 (execute_oacc_device_lower): Parse default dimension arg. Adjust
17867 loop partitioning and validation calls.
17869 2016-02-01 Richard Biener <rguenther@suse.de>
17871 PR middle-end/69556
17872 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
17874 2016-02-01 Richard Biener <rguenther@suse.de>
17876 PR tree-optimization/69574
17877 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
17878 of asserting return chrec_dont_know.
17880 2016-02-01 Martin Liska <mliska@suse.cz>
17882 * mem-stats-traits.h: Add copyright header.
17883 * mem-stats.h: Likewise.
17885 2016-02-01 Richard Biener <rguenther@suse.de>
17887 PR tree-optimization/69579
17888 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
17889 Do not propagate through abnormal PHI results.
17891 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
17893 * postreload.c (reload_cse_simplify): Remove dead code.
17895 2016-02-01 Jakub Jelinek <jakub@redhat.com>
17897 PR rtl-optimization/69570
17898 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
17899 if there is more than one set, not if there is a single set.
17901 2016-02-01 Richard Henderson <rth@redhat.com>
17904 * combine.c (make_compound_operation): When looking through a
17905 subreg, make sure to re-extend to the width of the outer mode.
17907 2016-01-30 Jakub Jelinek <jakub@redhat.com>
17909 PR tree-optimization/69546
17910 * wide-int.cc (wi::divmod_internal): For unsigned division
17911 where both operands fit into uhwi, if o1 is 1 and o0 has
17912 msb set, if divident_prec is larger than bits per hwi,
17913 clear another quotient word and return 2 instead of 1.
17914 Similarly for remainder with msb in HWI set, if dividend_prec
17915 is larger than bits per hwi.
17917 2016-01-29 Martin Jambor <mjambor@suse.cz>
17919 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
17920 Use short lowercase names.
17921 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
17922 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
17923 acq_rel one. Protect warning agains segfaults if
17924 get_memory_order_name returns NULL.
17925 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
17926 with release semantics. Do not warn if get_memory_order already did.
17927 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
17928 semantics. Fix check for relaxed or acquire semantics. Do not warn
17929 if get_memory_order already did.
17931 2016-01-29 Sebastian Pop <s.pop@samsung.com>
17933 * doc/install.texi: Document that isl-0.16 is supported.
17935 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
17938 * config/i386/constraints.md (Bm): Describe as special memory
17940 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
17941 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
17942 * genpreds.c (struct constraint_data): Add is_special_memory.
17943 (have_special_memory_constraints, special_memory_start): New
17945 (special_memory_end): Ditto.
17946 (add_constraint): Add new arg is_special_memory. Add code to
17947 process its true value. Update have_special_memory_constraints.
17948 (process_define_constraint): Pass the new arg.
17949 (process_define_register_constraint): Ditto.
17950 (choose_enum_order): Process special memory.
17951 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
17952 function insn_extra_special_memory_constraint.
17953 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
17954 * gensupport.c (process_rtx): Process
17955 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
17956 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
17957 * ira-lives.c (single_reg_class): Use
17958 insn_extra_special_memory_constraint.
17959 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
17960 * lra-constraints.c (process_alt_operands): Ditto.
17961 (curr_insn_transform): Use insn_extra_special_memory_constraint.
17962 * recog.c (asm_operand_ok, preprocess_constraints): Process
17964 * reload.c (find_reloads): Ditto.
17965 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
17966 * stmt.c (parse_input_constraint): Use
17967 insn_extra_special_memory_constraint.
17969 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
17972 * lra-splill.c (lra_final_code_change): Revert r229087 by
17973 removing all sub-registers.
17975 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
17978 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
17980 2016-01-29 Jakub Jelinek <jakub@redhat.com>
17983 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
17984 SSE1, copy target into the temporary reg first before recursing
17987 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
17989 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
17992 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
17994 * ginclude/stdarg.h: Test __cplusplus instead of
17995 __GXX_EXPERIMENTAL_CXX0X__.
17997 2016-01-29 Richard Biener <rguenther@suse.de>
17999 PR tree-optimization/69547
18000 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
18001 Do not mark clobbers necessary.
18002 (mark_all_reaching_defs_necessary_1): Likewise.
18004 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
18006 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
18007 declaration name with %qs and print it in both error messages.
18008 Also fix indentation.
18010 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
18013 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
18014 trailing blank line from error message.
18016 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
18019 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
18022 2016-01-29 Richard Biener <rguenther@suse.de>
18024 PR middle-end/69537
18025 * match.pd: Allow all integral types when simplifying a
18026 widening or sign-changing conversion.
18028 2016-01-28 Sebastian Pop <s.pop@samsung.com>
18030 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
18031 back to setting codegen_error to fail codegen.
18033 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
18036 * config/i386/constraints.md (C): Only accept constant zero operand.
18037 (BC): New constraint.
18038 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
18039 instead of C constraint.
18040 * doc/md.texi (Machine Constraints): Update description
18043 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
18046 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
18048 2016-01-28 Jakub Jelinek <jakub@redhat.com>
18050 PR middle-end/69542
18051 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
18054 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
18056 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
18057 branches if using guessed profile.
18059 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
18061 * graphite-optimize-isl.c (optimize_isl): Fix dump.
18063 2016-01-28 Richard Henderson <rth@redhat.com>
18066 * config/aarch64/aarch64-modes.def (CC_Cmode): New
18067 * config/aarch64/aarch64-protos.h: Update.
18068 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
18069 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
18070 (aarch64_get_condition_code_1): Handle CC_Cmode.
18071 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
18072 (*add<mode>3_compareC_cconly_imm): New.
18073 (*add<mode>3_compareC_cconly): New.
18074 (*add<mode>3_compareC_imm): New.
18075 (add<mode>3_compareC): New.
18076 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
18077 to be first. Use aarch64_carry_operation.
18078 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
18079 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
18080 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
18081 (subti3): Use subdi3_compare1.
18082 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
18083 (sub<mode>3_compare1): New.
18084 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
18085 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
18086 (*subsi3_carryin_uxtw): Likewise.
18087 (*ngc<mode>, *ngcsi_uxtw): Likewise.
18088 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
18089 * config/aarch64/iterators.md (DWI): New.
18090 * config/aarch64/predicates.md (aarch64_carry_operation): New.
18091 (aarch64_borrow_operation): New.
18093 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
18095 * graphite-optimize-isl.c (optimize_isl): Print a different debug
18096 message when isl does not return a valid schedule.
18098 2016-01-28 Sebastian Pop <s.pop@samsung.com>
18100 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
18101 Remove comments from class declarations: they are already in the code
18104 2016-01-28 Sebastian Pop <s.pop@samsung.com>
18106 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
18108 (ternary_op_to_tree): Same.
18109 (unary_op_to_tree): Same.
18110 (nary_op_to_tree): Same.
18111 (gcc_expression_from_isl_expr_op): Same.
18112 (gcc_expression_from_isl_expression): Same.
18113 (graphite_create_new_loop): Same.
18114 (graphite_create_new_loop_guard): Same.
18115 (build_iv_mapping): Same.
18116 (graphite_create_new_guard): Same.
18117 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
18118 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
18120 2016-01-28 Sebastian Pop <s.pop@samsung.com>
18122 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
18123 instead of setting codegen_error to fail codegen.
18125 2016-01-28 Jason Merrill <jason@redhat.com>
18127 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
18129 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
18131 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
18132 Remove CONST_INT_P check in CCMP cost calculation.
18134 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
18136 * config/aarch64/aarch64.c (generic_vector_cost):
18137 Set vec_permute_cost.
18138 (cortexa57_vector_cost): Likewise.
18139 (exynosm1_vector_cost): Likewise.
18140 (xgene1_vector_cost): Likewise.
18141 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
18142 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
18143 Add vec_permute_cost entry.
18145 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
18147 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
18149 (add<mode>3_compare0): Likewise.
18150 (addsi3_compare0_uxtw): Likewise.
18151 (add<mode>3nr_compare0): Likewise.
18152 (compare_neg<mode>): Likewise.
18153 (<optab><mode>3): Likewise.
18155 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
18157 * tree-vect-stmts.c (vectorizable_comparison): Add
18158 NULL check for vectype.
18160 2016-01-28 Richard Biener <rguenther@suse.de>
18162 PR tree-optimization/69466
18163 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
18164 Account for PHIs we couldn't duplicate.
18166 2016-01-28 Martin Liska <mliska@suse.cz>
18169 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
18170 instead of ENABLE_VALGRIND_CHECKING.
18172 2016-01-27 Richard Henderson <rth@redhat.com>
18175 * lra-remat.c (subreg_regs): New.
18176 (dump_candidates_and_remat_bb_data): Dump it.
18177 (operand_to_remat): Reject if operand in subreg_regs.
18178 (set_bb_regs): Collect subreg_regs.
18179 (lra_remat): Init and free subreg_regs. Compute
18180 calculate_local_reg_remat_bb_data before create_cands.
18182 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
18185 * config/i386/i386.c (ix86_update_stack_boundary): Don't
18186 change stack_alignment_needed for __tls_get_addr call.
18188 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
18190 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
18192 2016-01-27 Jeff Law <law@redhat.com>
18194 PR tree-optimization/68398
18195 PR tree-optimization/69196
18196 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
18197 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
18198 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
18199 Only count PHIs in the last block in the path. The others will
18200 const/copy propagate away. Add heuristic to allow more irreducible
18201 subloops to be created when it is likely profitable to do so.
18203 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
18204 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
18205 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
18207 2016-01-27 Jakub Jelinek <jakub@redhat.com>
18210 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
18211 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
18212 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
18213 * tree-streamer-in.c: Include asan.h.
18214 (streamer_get_builtin_tree): For builtins in sanitizer
18215 range call initialize_sanitizer_builtins and retry.
18217 2016-01-27 Ian Lance Taylor <iant@google.com>
18219 * common.opt (fkeep-gc-roots-live): New undocumented option.
18220 * tree-ssa-loop-ivopts.c (add_candidate_1): If
18221 -fkeep-gc-roots-live, skip pointers.
18222 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
18225 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
18228 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
18229 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
18231 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
18234 * configure.ac: NetBSD provides SSP in its C library.
18235 * configure: Updated.
18237 2016-01-27 Richard Biener <rguenther@suse.de>
18239 PR tree-optimization/69166
18240 * tree-vect-loop.c (vect_is_simple_reduction): Always check
18241 reduction code for commutativity / associativity.
18243 2016-01-27 Martin Jambor <mjambor@suse.cz>
18245 PR tree-optimization/69355
18246 * tree-sra.c (analyze_access_subtree): Correct hole detection when
18247 total_scalarization fails.
18249 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
18251 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
18254 2016-01-27 Christian Bruel <christian.bruel@st.com>
18257 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
18258 Move arm_reset_previous_fndecl and set_target_option_current_node in
18259 the conditional part. Call save_restore_target_globals.
18260 * config/arm/arm.c (arm_set_current_function):
18261 Refactor to better support #pragma target and attribute mix.
18262 Call save_restore_target_globals.
18263 * config/arm/arm-protos.h (save_restore_target_globals): New function.
18265 2016-01-27 Martin Liska <mliska@suse.cz>
18267 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
18268 reference for an HSA kernel and its host function.
18270 2016-01-27 Jakub Jelinek <jakub@redhat.com>
18272 PR tree-optimization/69399
18273 * wide-int.h (wi::lrshift): For larger precisions, only
18274 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
18276 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
18278 * config/arc/predicates.md (proper_comparison_operator): Reject
18279 constant-constant comparison.
18281 2016-01-26 Tom de Vries <tom@codesourcery.com>
18283 PR tree-optimization/69110
18284 * tree-data-ref.c (initialize_data_dependence_relation): Handle
18285 DR_NUM_DIMENSIONS == 0.
18287 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
18288 Sebastian Pop <s.pop@samsung.com>
18290 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
18291 isl_ast_op_cond and isl_ast_op_select.
18292 (gcc_expression_from_isl_expr_op): Same.
18294 2016-01-26 Jason Merrill <jason@redhat.com>
18297 * tree.c (recompute_constructor_flags): Split out from
18299 (verify_constructor_flags): New.
18300 * tree.h: Declare them.
18302 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
18304 PR rtl-optimization/69217
18305 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
18306 are no TYPE_FIELDS set for the record type.
18308 2016-01-26 Jakub Jelinek <jakub@redhat.com>
18311 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
18312 toc_label_name unconditionally.
18313 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
18314 SYMBOL_REF string. Use toc_label_name instead of constructing
18316 (rs6000_elf_declare_function_name): Use toc_label_name instead of
18317 constructing LCTOC1.
18319 2016-01-26 Martin Sebor <msebor@redhat.com>
18322 * doc/extend.texi (Common Type Attributes): Move text that talks about
18323 attribute packed from attribute aligned to the section discussing
18324 the former attribute for clarity.
18326 2016-01-26 Richard Henderson <rth@redhat.com>
18328 PR middle-end/60908
18329 * trans-mem.c (tm_region_init): Mark entry block as visited.
18331 2016-01-26 David Malcolm <dmalcolm@redhat.com>
18334 * diagnostic-show-locus.c (layout::print_source_line): Replace
18335 call to pp_newline with call to layout::print_newline.
18336 (layout::print_annotation_line): Likewise.
18337 (layout::move_to_column): Likewise.
18338 (layout::print_any_fixits): After printing any fixits, print a
18339 trailing newline, if necessary.
18340 (layout::print_newline): New method, resetting any colorization
18342 (diagnostic_show_locus): Move the pp_newline to before the
18343 early bailout. Remove dummy block enclosing the layout instance.
18344 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
18345 of pp_newline_and_flush with pp_flush.
18346 (diagnostic_append_note): Delete use of pp_newline.
18347 (diagnostic_append_note_at_rich_loc): Delete.
18348 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
18349 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
18350 when newline characters are added to the buffer.
18352 2016-01-26 Michael Matz <matz@suse.de>
18354 * configure.ac (ac_cv_std_swap_in_utility): New test.
18355 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
18356 * configure: Regenerate.
18357 * config.in: Regenerate.
18359 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
18361 * config/arc/arc.md (cstoresi4): Force operand into register.
18362 (arcset<code>): Fix predicate.
18363 (arcsetltu): Likewise.
18364 (arcsetgeu): Likewise.
18365 (arcsethi): Likewise.
18366 (arcsetls): Likewise.
18368 2016-01-26 Jakub Jelinek <jakub@redhat.com>
18370 PR tree-optimization/69483
18371 * gimple-fold.c (canonicalize_constructor_val): Return NULL
18372 if base has error_mark_node type.
18374 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
18377 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
18378 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
18380 (vget_lane_f16): Handle big-endian.
18381 (vgetq_lane_f16): Likewise.
18382 (vset_lane_f16): Likewise.
18383 (vsetq_lane_f16): Likewise.
18384 * config/arm/iterators.md (VQXMOV): Add V8HF.
18385 (VDQ): Add V4HF and V8HF.
18386 (V_reg): Handle V4HF and V8HF.
18387 (Is_float_mode): Likewise.
18388 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
18389 neon_vdup_nv8hf): New patterns.
18390 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
18391 Use VD_LANE iterator.
18392 (neon_vld1_dup<mode>): Use VQ2 iterator.
18394 2016-01-26 Nathan Sidwell <nathan@acm.org>
18396 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
18397 (set_oacc_fn_attrib): Add IS_KERNEL arg.
18398 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
18399 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
18400 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
18401 (oacc_validate_dims): Add LEVEL arg, don't return level.
18402 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
18403 oacc_validate_dims.
18404 (execute_oacc_device_lower): Adjust, add more dump output.
18405 * tree-ssa-loop.c (gate_oacc_kernels): Use
18406 oacc_fn_attrib_kernels_p.
18407 * tree-parloops.c (create_parallel_loop): Adjust
18408 set_oacc_fn_attrib call.
18410 2016-01-26 Jakub Jelinek <jakub@redhat.com>
18413 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
18414 (append_compiler_options): Handle -fcilkplus.
18415 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
18417 2016-01-26 Nick Clifton <nickc@redhat.com>
18420 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
18421 been marked as DECL_ONE_ONLY but we do not the means to make it
18422 so, then do not allow it to bind locally.
18424 2016-01-26 Jakub Jelinek <jakub@redhat.com>
18427 * opts.h (parse_sanitizer_options): New prototype.
18428 * opts.c (sanitizer_opts): New array.
18429 (parse_sanitizer_options): New function.
18430 (common_handle_option): Use parse_sanitizer_options.
18432 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
18435 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
18436 alignment adjustment to ...
18437 (ix86_update_stack_boundary): Here. Don't over-align stack for
18439 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
18440 if __tls_get_addr is called.
18442 2016-01-26 Christian Bruel <christian.bruel@st.com>
18444 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
18446 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
18448 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
18450 2016-01-26 Richard Biener <rguenther@suse.de>
18452 PR middle-end/69467
18453 * match.pd: Guard X * CST CMP 0 pattern with single_use.
18455 2016-01-26 Richard Biener <rguenther@suse.de>
18457 PR tree-optimization/69452
18458 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
18459 (move_computations_dom_walker::before_dom_children): Rename
18461 (move_computations_worker): This.
18462 (move_computations): Perform an RPO rather than a DOM walk.
18464 2016-01-26 Jakub Jelinek <jakub@redhat.com>
18467 * combine.c (combine_instructions): For REG_EQUAL note with
18468 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
18469 to the underlying register.
18470 * doc/rtl.texi (REG_EQUAL): Document the behavior of
18471 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
18473 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
18476 * config/aarch64/aarch64-builtins.c
18477 (aarch64_init_simd_builtin_types): Do not set structural
18478 equality to __Poly{8,16,64,128}_t types.
18480 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
18482 PR tree-optimization/69400
18483 * wide-int.cc (wi_pack): Take the precision as argument and
18484 perform canonicalization here rather than in the callers.
18485 Use the main loop to handle all full-width HWIs. Add a
18486 zero HWI if in_len isn't a full result.
18487 (wi::divmod_internal): Update accordingly.
18488 (wi::mul_internal): Likewise. Simplify.
18490 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
18491 Sebastian Pop <s.pop@samsung.com>
18493 * graphite-poly.c (apply_poly_transforms): Simplify.
18494 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
18495 (print_isl_map): Same.
18496 (print_isl_union_map): Same.
18497 (print_isl_schedule): New.
18498 (debug_isl_schedule): New.
18499 * graphite-dependences.c (scop_get_reads): Do not call
18500 isl_union_map_add_map that is undocumented isl functionality.
18501 (scop_get_must_writes): Same.
18502 (scop_get_may_writes): Same.
18503 (scop_get_original_schedule): Remove.
18504 (scop_get_dependences): Do not call isl_union_map_compute_flow that
18505 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
18506 (compute_deps): Remove.
18507 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
18508 (debug_schedule_ast): New.
18509 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
18510 set_separate_option.
18511 (graphite_regenerate_ast_isl): Add dump.
18512 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
18513 from scop->transformed_schedule.
18514 (graphite_regenerate_ast_isl): Add more dump.
18515 * graphite-optimize-isl.c (optimize_isl): Set
18516 scop->transformed_schedule. Check whether schedules are equal.
18517 (apply_poly_transforms): Move here.
18518 * graphite-poly.c (apply_poly_transforms): ... from here.
18519 (free_poly_bb): Static.
18520 (free_scop): Static.
18521 (pbb_number_of_iterations_at_time): Remove.
18522 (print_isl_ast): New.
18523 (debug_isl_ast): New.
18524 (debug_scop_pbb): New.
18525 * graphite-scop-detection.c (print_edge): Move.
18526 (print_sese): Move.
18527 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
18528 (build_scop_scattering): Remove.
18529 (create_pw_aff_from_tree): Assert instead of bailing out.
18530 (add_condition_to_pbb): Remove unused code, do not fail.
18531 (add_conditions_to_domain): Same.
18532 (add_conditions_to_constraints): Remove.
18533 (build_scop_context): New.
18534 (add_iter_domain_dimension): New.
18535 (build_iteration_domains): Initialize pbb->iterators.
18536 Call add_conditions_to_domain.
18539 (index_outermost_in_loop): New.
18540 (index_pbb_in_loop): New.
18541 (outermost_pbb_in): New.
18542 (add_in_sequence): New.
18543 (add_outer_projection): New.
18544 (outer_projection_mupa): New.
18545 (add_loop_schedule): New.
18546 (build_schedule_pbb): New.
18547 (build_schedule_loop): New.
18548 (embed_in_surrounding_loops): New.
18549 (build_schedule_loop_nest): New.
18550 (build_original_schedule): New.
18551 (build_poly_scop): Call build_original_schedule.
18552 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
18553 (free_poly_dr): Remove.
18554 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
18555 (free_poly_bb): Remove.
18556 (debug_loop_vec): Remove.
18557 (print_isl_ast): Declare.
18558 (debug_isl_ast): Declare.
18559 (scop_do_interchange): Remove.
18560 (scop_do_strip_mine): Remove.
18561 (scop_do_block): Remove.
18562 (flatten_all_loops): Remove.
18563 (optimize_isl): Remove.
18564 (pbb_number_of_iterations_at_time): Remove.
18565 (debug_scop_pbb): Declare.
18566 (print_schedule_ast): Declare.
18567 (debug_schedule_ast): Declare.
18568 (struct scop): Remove schedule. Add original_schedule,
18569 transformed_schedule.
18570 (free_gimple_poly_bb): Remove.
18571 (print_generated_program): Remove.
18572 (debug_generated_program): Remove.
18573 (unify_scattering_dimensions): Remove.
18574 * sese.c (print_edge): ... here.
18575 (print_sese): ... here.
18576 (debug_edge): ... here.
18577 (debug_sese): ... here.
18578 * sese.h (print_edge): Declare.
18579 (print_sese): Declare.
18580 (dump_edge): Declare.
18581 (dump_sese): Declare.
18583 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
18584 Sebastian Pop <s.pop@samsung.com>
18586 * Makefile.in: Set ISLVER in site.exp.
18588 2016-01-25 Jakub Jelinek <jakub@redhat.com>
18590 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
18591 DECL_VALUE_EXPR of new_var even for the non-array case. Look
18592 through DECL_VALUE_EXPR for expansion.
18594 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
18596 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
18597 the frame info after reload completed.
18599 2016-01-25 Jeff Law <law@redhat.com>
18601 PR tree-optimization/69196
18602 PR tree-optimization/68398
18603 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
18604 tree-ssa-threadupdate.c.
18605 (determine_bb_domination_status): Prototype
18606 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
18607 (determine_bb_domination_status): No longer static.
18608 (valid_jump_thread_path): Remove code to detect characteristics
18609 of the jump thread path not associated with correctness.
18610 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
18611 Correct test for thread path length. Count PHIs for real operands as
18612 statements that need to be copied. Do not count ASSERT_EXPRs.
18613 Look at all the blocks in the thread path. Compute and selectively
18614 filter thread paths based on threading through the latch, threading
18615 a multiway branch or crossing a multiway branch.
18617 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18619 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
18620 decl with __attribute__ ((unused)) annotation.
18622 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
18625 * tree-vect-stmts.c (vectorizable_condition): Check vectype
18626 of operands is compatible with a statement vectype.
18628 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
18630 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
18631 improve wording for mixed storage order support.
18633 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
18635 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
18636 (vcvt_u64_f64): Likewise.
18637 (vcvta_s64_f64): Likewise.
18638 (vcvta_u64_f64): Likewise.
18639 (vcvtm_s64_f64): Likewise.
18640 (vcvtm_u64_f64): Likewise.
18641 (vcvtn_s64_f64): Likewise.
18642 (vcvtn_u64_f64): Likewise.
18643 (vcvtp_s64_f64): Likewise.
18644 (vcvtp_u64_f64): Likewise.
18646 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
18648 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
18649 (arc_init): Check validity mll64 option.
18650 (arc_save_restore): Use double load/store instruction.
18651 (arc_expand_movmem): Likewise.
18652 (arc_split_move): Don't split if we have double load/store
18653 instructions. Returns a boolean.
18654 (arc_process_double_reg_moves): Change function to return boolean
18655 instead of a sequence of instructions.
18656 (arc_dwarf_register_span): New function.
18657 * config/arc/arc-protos.h (arc_split_move): Change prototype.
18658 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
18659 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
18660 (*movdf_insn): Likewise.
18661 * config/arc/arc.opt (mll64): New option.
18662 * config/arc/predicates.md (even_register_operand): New predicate.
18663 * doc/invoke.texi (ARC Options): Add mll64 documentation.
18665 2016-01-25 Richard Biener <rguenther@suse.de>
18668 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
18669 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
18671 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
18673 2016-01-25 Richard Biener <rguenther@suse.de>
18675 PR tree-optimization/69376
18676 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
18678 (VN_INFO_ANTI_RANGE_P): New inline.
18679 (VN_INFO_RANGE_TYPE): Likewise.
18680 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
18681 SSA_NAME_ANTI_RANGE_P.
18682 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
18683 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18684 Properly query VN_INFO_RANGE_TYPE.
18686 2016-01-25 Nick Clifton <nickc@redhat.com>
18689 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
18691 2016-01-23 Tom de Vries <tom@codesourcery.com>
18693 PR tree-optimization/69426
18694 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
18697 2016-01-23 Jakub Jelinek <jakub@redhat.com>
18699 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
18700 "the the" with "the" in the comments.
18701 * ipa-devirt.c (build_type_inheritance_graph,
18702 update_type_inheritance_graph): Likewise.
18703 * tree.c (build_function_type_list_1): Likewise.
18704 * cfgloopmanip.c (scale_loop_profile): Likewise.
18705 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
18706 * gimple-ssa-split-paths.c
18707 (find_block_to_duplicate_for_splitting_paths): Likewise.
18708 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
18709 * expr.c (convert_move): Likewise.
18710 * var-tracking.c (vt_stack_adjustments): Likewise.
18711 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
18712 * tree-vrp.c (test_for_singularity): Likewise.
18714 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
18715 directly instead of building a temporary tree.
18718 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
18719 remove <algorithm> include.
18721 2016-01-22 Jakub Jelinek <jakub@redhat.com>
18724 * config/i386/i386.c: Include dojump.h.
18725 (expand_small_movmem_or_setmem,
18726 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
18728 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
18729 if dynamic_check != -1.
18731 2016-01-21 Jeff Law <law@redhat.com>
18733 PR middle-end/69347
18734 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
18735 record_temporary_equivalences. Rewritten to avoid unnecessary calls
18736 into dominated_by_p.
18737 (cprop_into_successor_phis): Avoid unnecessary tests.
18739 2016-01-22 Richard Henderson <rth@redhat.com>
18742 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
18743 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
18745 2016-01-22 Michael Matz <matz@suse.de>
18747 * system.h (string, algorithm): Include only conditionally.
18748 (new): Include always under C++.
18749 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
18750 * final.c (toplevel): Ditto.
18751 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
18752 * genconditions.c (write_header): Make gencondmd.c define
18754 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
18756 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
18757 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
18759 2016-01-22 Christian Bruel <christian.bruel@st.com>
18762 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
18764 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18767 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
18768 define_insn_and_split. Ensure operands[1] and operands[0] do not
18769 get assigned the same register.
18771 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
18773 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
18775 2016-01-22 Christian Bruel <christian.bruel@st.com>
18777 * config/arm/arm-c.c (arm_pragma_target_parse):
18778 Remove warn_builtin_macro_redefined overwrite.
18780 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
18782 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
18783 flag_non_call_exceptions compatibility.
18785 2016-01-22 Jakub Jelinek <jakub@redhat.com>
18788 * dwarf2out.c (add_child_die_after): New function.
18789 (dwarf_qual_info_t): New type.
18790 (dwarf_qual_info): New variable.
18791 (qualified_die_p): New function.
18792 (modified_type_die): For -fdebug-types-section, ensure
18793 canonical order of qualifiers. Put qualified DIEs adjacent
18794 to the corresponding non-qualified type DIE and search there
18795 for existing qualified DIEs.
18797 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
18799 * doc/extend.texi (scalar_storage_order type attribute): Document
18800 restriction on type punning and aliasing, and remove future tense.
18802 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
18805 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
18808 2016-01-21 Jeff Law <law@redhat.com>
18810 PR middle-end/69347
18811 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
18812 useless call to record_temporary_equivalences.
18813 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
18814 allocate 10 slots in the bb_path vector and let it grow as needed.
18815 (fsm_find_control_statement_thread_paths): Similarly for the next_path
18818 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
18820 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
18822 * configure: Regenerate.
18824 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
18826 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
18827 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
18829 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
18831 PR middle-end/66178
18832 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
18833 drop EXPAND_INITIALIZER.
18834 * rtl.h (contains_symbolic_reference_p): Declare.
18835 * rtlanal.c (contains_symbolic_reference_p): New function.
18836 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
18837 a subtraction into a NOT if symbolic constants are involved.
18839 2016-01-21 Anton Blanchard <anton@samba.org>
18840 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18843 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
18845 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
18848 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
18850 * config/microblaze/microblaze.c
18851 (get_branch_target): New.
18852 (insert_wic_for_ilb_runout): New.
18854 (microblaze_machine_dependent_reorg): New.
18855 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
18856 * config/microblaze/microblaze.md
18857 (UNSPEC_IPREFETCH): Define.
18858 (iprefetch): New pattern
18859 * config/microblaze/microblaze.opt
18860 (mxl-prefetch): New flag.
18862 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
18864 * config/microblaze/microblaze.h
18865 (FIXED_REGISTERS): Update in macro.
18866 (CALL_USED_REGISTERS): Update in macro.
18868 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
18870 PR rtl-optimization/68920
18871 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
18874 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
18876 PR rtl-optimization/68990
18877 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
18878 pseudo instead of inheritance ones.
18880 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
18881 Nick Clifton <nickc@redhat.com>
18885 * config/mips/mips.c (mips_compute_frame_info): Initialise
18886 args_size and hard_frame_pointer_offset fields of the frame
18887 structure before calling mips_global_pointer.
18889 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
18891 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
18893 * configure: Regenerate.
18895 2016-01-21 Richard Biener <rguenther@suse.de>
18897 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
18899 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
18901 * config/s390/s390.c (s390_asm_declare_function_size): Add code
18902 to actually emit the .size directive.
18904 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
18905 Jakub Jelinek <jakub@redhat.com>
18909 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
18910 args array size by one to avoid buffer overflow.
18912 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
18914 * config/s390/s390.md (pool_section_start): Use switch_to_section
18915 to select proper read-only data section instead of hardcoding
18917 (pool_section_end): Use switch_to_section to match the above.
18919 2016-01-21 Richard Biener <rguenther@suse.de>
18921 PR tree-optimization/69378
18922 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
18923 (set_ssa_val_to): Use it for dominance checks taking into
18924 account not executable edges.
18926 2016-01-21 Jakub Jelinek <jakub@redhat.com>
18929 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
18930 for bitsize instead of GET_MODE_PRECISION (mode).
18932 2016-01-20 Martin Sebor <msebor@redhat.com>
18935 * extend.texi (__sync Builtins): Clarify the semantics of
18936 __sync_fetch_and_OP built-ins on pointers.
18937 (__atomic Builtins): Same.
18939 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
18940 Sebastian Pop <s.pop@samsung.com>
18942 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
18943 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
18944 (is_valid_rename): Same.
18945 (translate_isl_ast_to_gimple::get_rename): Same.
18946 (translate_isl_ast_to_gimple::rename_all_uses): Same.
18947 (translate_isl_ast_to_gimple::rename_uses): Same.
18948 (get_new_name): Check for close_phi nodes.
18949 (copy_loop_phi_args): Use phi_node_kind.
18950 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
18951 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
18953 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
18954 Sebastian Pop <s.pop@samsung.com>
18956 Revert commit r229783.
18957 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
18958 Remove use of parameter_rename_map.
18959 (copy_def): Remove.
18960 (copy_internal_parameters): Remove.
18961 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
18962 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
18963 (free_sese_info): Do not free parameter_rename_map.
18964 (set_rename): Do not use parameter_rename_map.
18965 (rename_uses): Update call to set_rename.
18966 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
18967 * sese.h (parameter_rename_map_t): Remove.
18968 (struct sese_info_t): Remove field parameter_rename_map.
18970 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
18971 Sebastian Pop <s.pop@samsung.com>
18973 * graphite-isl-ast-to-gimple.c: Fix comment.
18974 * graphite-scop-detection.c (defined_in_loop_p): New.
18975 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
18976 names defined in loop.
18978 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
18979 Sebastian Pop <s.pop@samsung.com>
18981 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
18982 Discard unstructured if-then-else regions.
18984 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
18985 Sebastian Pop <s.pop@samsung.com>
18987 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
18988 (cleanup_loop_iter_dom): Remove.
18989 (build_loop_iteration_domains): Remove.
18990 (build_scop_context): Remove.
18991 (build_scop_iteration_domain): Remove.
18992 (add_loop_constraints): New.
18993 (build_iteration_domains): New.
18994 (build_poly_scop): Call build_iteration_domains.
18996 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
18997 Sebastian Pop <s.pop@samsung.com>
18999 * graphite-scop-detection.c
19000 (scop_detection::harmful_loop_in_region): Free dom and loops.
19001 (scop_detection::loop_body_is_valid_scop): Free bbs.
19003 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
19004 Sebastian Pop <s.pop@samsung.com>
19006 * graphite-scop-detection.c (record_loop_in_sese): New.
19007 (gather_bbs::before_dom_children): Call record_loop_in_sese.
19008 (build_scops): Remove call to build_sese_loop_nests.
19009 * sese.c (sese_record_loop): Remove.
19010 (build_sese_loop_nests): Remove.
19011 (new_sese_info): Remove region->loops.
19012 (free_sese_info): Same.
19013 * sese.h (sese_contains_loop): Same.
19014 (build_sese_loop_nests): Remove.
19015 (sese_contains_loop): Remove.
19017 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
19018 Sebastian Pop <s.pop@samsung.com>
19020 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
19021 loop_is_valid_in_scop.
19022 (scop_detection::harmful_stmt_in_region): Renamed
19023 harmful_loop_in_region.
19024 Call loop_is_valid_in_scop.
19026 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
19027 Sebastian Pop <s.pop@samsung.com>
19029 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
19032 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
19033 Sebastian Pop <s.pop@samsung.com>
19035 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
19036 * graphite.h (struct poly_bb): Remove field is_reduction.
19037 (PBB_IS_REDUCTION): Remove.
19039 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
19040 Sebastian Pop <s.pop@samsung.com>
19042 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
19043 (add_pdr_constraints): Same.
19044 (scop_get_reads): Same.
19045 (scop_get_must_writes): Same.
19046 (scop_get_may_writes): Same.
19047 (scop_get_original_schedule): Same.
19048 (extend_schedule): Same.
19049 (apply_schedule_on_deps): Same.
19050 (carries_deps): Same.
19051 (compute_deps): Same.
19052 (scop_get_dependences): Same.
19053 * graphite-isl-ast-to-gimple.c
19054 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
19055 * graphite-optimize-isl.c (get_schedule_for_band): Same.
19056 (get_schedule_for_band_list): Same.
19057 (get_schedule_map): Same.
19058 (apply_schedule_map_to_scop): Same.
19059 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
19060 (build_loop_iteration_domains): Same.
19061 (add_condition_to_pbb): Same.
19062 (add_param_constraints): Same.
19063 (pdr_add_memory_accesses): Same.
19064 (pdr_add_data_dimensions): Same.
19066 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
19068 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
19071 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
19073 * common.opt (feliminate-dwarf2-dups): Replace references to
19074 "DWARF 2" with just "DWARF".
19075 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
19076 * doc/extend.texi: Likewise.
19077 * doc/cpp.texi: Likewise.
19078 * doc/invoke.texi: Likewise.
19079 (Option Summary): Add -gdwarf to list of Debugging Options.
19080 (Debugging Options): Document -gdwarf.
19081 * doc/contrib.texi: Spell "DWARF" like that.
19083 2016-01-21 Jakub Jelinek <jakub@redhat.com>
19085 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
19086 warning. Fix up formatting.
19088 PR middle-end/67653
19089 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
19090 attempt to mark memory input operand addressable and
19091 call prepare_gimple_addressable in that case. Don't adjust
19092 input_location for diagnostics, use error_at instead.
19094 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
19096 * config/rs6000/ppc-auxv.h: New file.
19097 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
19098 (cpu_is): Likewise.
19099 (cpu_supports): Likewise.
19100 * config/rs6000/rs6000.c: include "ppc-auxv.h".
19101 (cpu_is_info): New variable.
19102 (cpu_supports_info): Likewise.
19103 (tcb_verification_symbol): Likewise.
19104 (cpu_builtin_p): Likewise.
19105 (cpu_expand_builtin): New function.
19106 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
19107 (rs6000_init_builtins): Likewise.
19108 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
19109 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
19110 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
19111 * configure: Regenerate.
19112 * config.in: Likewise.
19113 * doc/extend.texi (PowerPC Built-in Functions): Document
19114 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
19116 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
19119 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
19121 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
19124 2016-01-20 Richard Henderson <rth@redhat.com>
19130 * tree.c (tm_define_builtin): New.
19131 (find_tm_vector_type): New.
19132 (build_tm_vector_builtins): New.
19133 (build_common_builtin_nodes): Call it.
19135 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
19137 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
19138 (arm_fp_ok): Likewise.
19139 (arm_fp): Likewise.
19140 (arm_crypto): Likewise.
19142 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
19143 Richard Biener <rguenther@suse.de>
19145 PR tree-optimization/69328
19146 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
19147 vectors have same number of elements.
19148 (vectorizable_condition): Fix masked version recognition.
19150 2016-01-20 Richard Biener <rguenther@suse.de>
19152 PR tree-optimization/69345
19153 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
19154 (VN_INFO_PTR_INFO): Likewise.
19155 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
19156 info when it is equal between non-dominating SSA names.
19157 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19158 Make sure to look at original SSA infos.
19160 2016-01-20 Jeff Law <law@redhat.com>
19163 * config/m68k/predicates.md (pow2_m1_operand): New predicate
19165 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
19166 (pc_or_label_operand): New predicate.
19167 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
19168 tests for small integers that are 2^n - 1.
19170 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
19172 * doc/invoke.texi (Options Summary): Add '.' after @xref.
19174 2016-01-19 Jeff Law <law@redhat.com>
19176 PR middle-end/69347
19177 * tree-ssa-threadbackwards.c
19178 (fsm_find_control_statement_thread_paths): Do not try to lookup
19179 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
19181 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
19183 * doc/lto.texi: Remove text that says only Gold has linker plugin
19186 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
19188 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
19189 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
19190 the DIE accordingly.
19191 (modified_type_die): Add REVERSE parameter and pass it recursively,
19192 as well as to base_type_die. Adjust presence check accordingly.
19193 (base_type_for_mode): Adjust call to modified_type_die.
19194 (add_type_attribute): Add REVERSE parameter and pass it to
19196 (generic_parameter_die): Adjust call to add_type_attribute.
19197 (add_scalar_info): Likewise.
19198 (add_subscript_info): Likewise.
19199 (gen_array_type_die): Likewise.
19200 (gen_descr_array_type_die): Likewise.
19201 (gen_entry_point_die): Likewise.
19202 (gen_enumeration_type_die): Likewise.
19203 (gen_formal_parameter_die): Likewise.
19204 (gen_subprogram_die): Likewise.
19205 (gen_variable_die ): Likewise.
19206 (gen_const_die): Likewise.
19207 (gen_field_die): Likewise.
19208 (gen_pointer_type_die): Likewise.
19209 (gen_reference_type_die): Likewise.
19210 (gen_ptr_to_mbr_type_die): Likewise.
19211 (gen_inheritance_die): Likewise.
19212 (gen_subroutine_type_die): Likewise.
19213 (gen_typedef_die): Likewise.
19214 (force_type_die): Adjust call to modified_type_die.
19216 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
19218 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
19219 flow throughout the file. Fix broken link to Objective-C 2.0
19221 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
19224 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
19226 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
19228 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
19231 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
19232 (maybe_record_node): Record cxa_pure_virtual as the only possible
19233 target if there are not ohter candidates.
19234 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
19236 2016-01-19 Richard Biener <rguenther@suse.de>
19238 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
19239 (get_memory_order): Likewise.
19241 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
19243 * tree-vect-stmts.c (vectorizable_store): Check
19246 2016-01-19 David Malcolm <dmalcolm@redhat.com>
19249 * gcc.c (driver::decode_argv): Add call to
19250 init_opts_obstack before init_options_struct.
19251 * opts.c (init_opts_obstack): Remove idempotency.
19252 (init_options_struct): Replace call to init_opts_obstack
19253 with a gcc_assert to verify that it has already been called.
19254 * toplev.c (toplev::main): Add call to init_opts_obstack before
19255 calls to init_options_struct.
19256 (toplev::finalize): Move cleanup of opts_obstack next to
19257 cleanup of save_decoded_options, clearing the latter, and
19258 save_decoded_options_count.
19260 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19263 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
19264 attribute to unconditional. Remove %? from output template.
19266 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
19267 Jiong Wang <jiong.wang@arm.com>
19269 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
19270 generated from different expand order.
19272 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
19274 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
19275 Add support for CCMP costing.
19277 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
19279 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
19280 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
19281 (fccmpe<mode>): Likewise.
19282 (fcmp): Rename to fcmp and globalize pattern.
19284 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
19285 (aarch64_gen_ccmp_next): Add FP support.
19287 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
19289 * target.def (gen_ccmp_first): Update documentation.
19290 (gen_ccmp_next): Likewise.
19291 * doc/tm.texi (gen_ccmp_first): Update documentation.
19292 (gen_ccmp_next): Likewise.
19293 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
19294 expand_ccmp_expr_1. Improve comments.
19295 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
19296 (ccmp_ior<mode>): Remove pattern.
19297 (cmp<mode>): Remove expand.
19298 (cmp): Globalize pattern.
19299 (cstorecc4): Use cc_register.
19300 (mov<mode>cc): Remove ccmp_cc_register check.
19301 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
19302 Simplify after removal of CC_DNE/* modes.
19303 (aarch64_ccmp_mode_to_code): Remove.
19304 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
19305 In 'k' case use integer as condition.
19306 (aarch64_nzcv_codes): Remove inverted cases.
19307 (aarch64_code_to_ccmode): Remove.
19308 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
19309 comparison with CC register to be used in folowing CCMP/branch/CSEL.
19310 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
19311 pattern. Return the comparison with CC register. Invert conditions
19312 when bitcode is OR.
19313 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
19314 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
19316 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
19318 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
19319 instrumented_version.
19321 2016-01-19 Richard Biener <rguenther@suse.de>
19323 PR tree-optimization/69336
19324 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
19325 handled components with get_ref_base_and_extent.
19326 (equal_mem_array_ref_p): Adjust.
19328 2016-01-19 Jakub Jelinek <jakub@redhat.com>
19331 * shrink-wrap.c: Include valtrack.h.
19332 (move_insn_for_shrink_wrap): Add DEBUG argument. If
19333 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
19334 in between insn and where it will be moved to. Call
19335 dead_debug_insert_temp.
19336 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
19337 first and dead_debug_local_finish at the end.
19338 For uses and defs bitmap, handle all regs in between REGNO and
19339 END_REGNO, not just the first one.
19341 2016-01-19 Richard Biener <rguenther@suse.de>
19343 PR tree-optimization/69352
19344 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
19345 (equal_mem_array_ref_p): Constrain size and max size properly.
19346 Compare the reverse flag.
19348 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
19350 * ira.c (ira): Update regstat data if we deleted insns.
19352 2016-01-19 Jakub Jelinek <jakub@redhat.com>
19354 PR rtl-optimization/68955
19355 PR rtl-optimization/64557
19356 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
19357 here. Fix up formatting.
19358 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
19360 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
19363 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
19364 assume that the node has body.
19365 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
19368 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
19370 * lto-streamer-out.c (lto_output): Do not stream instrumentation
19373 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
19375 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
19376 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
19378 2016-01-19 Martin Jambor <mjambor@suse.cz>
19379 Martin Liska <mliska@suse.cz>
19380 Michael Matz <matz@suse.de>
19382 * Makefile.in (OBJS): Add new source files.
19383 (GTFILES): Add hsa.c.
19384 * common.opt (disable_hsa): New variable.
19385 (-Whsa): New warning.
19386 * config.in (ENABLE_HSA): New.
19387 * configure.ac: Treat hsa differently from other accelerators.
19388 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
19389 $enable_offloading.
19390 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
19391 * doc/install.texi (Configuration): Document --with-hsa-runtime,
19392 --with-hsa-runtime-include, --with-hsa-runtime-lib and
19393 --with-hsa-kmt-lib.
19394 * doc/invoke.texi (-Whsa): Document.
19395 (hsa-gen-debug-stores): Likewise.
19396 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
19397 to invoke offload compiler for hsa acclerator.
19398 * opts.c (common_handle_option): Determine whether HSA offloading
19399 should be performed.
19400 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
19401 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
19402 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
19403 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
19404 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
19405 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
19406 GF_OMP_FOR_KIND_GRID_LOOP.
19407 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
19408 (pp_gimple_stmt_1): Likewise.
19409 * gimple-walk.c (walk_gimple_stmt): Likewise.
19410 * gimple.c (gimple_build_omp_grid_body): New function.
19411 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
19412 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
19413 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
19414 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
19415 GF_OMP_TEAMS_GRID_PHONY.
19416 (gimple_statement_omp_single_layout): Updated comments.
19417 (gimple_build_omp_grid_body): New function.
19418 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
19419 (gimple_omp_for_grid_phony): New function.
19420 (gimple_omp_for_set_grid_phony): Likewise.
19421 (gimple_omp_parallel_grid_phony): Likewise.
19422 (gimple_omp_parallel_set_grid_phony): Likewise.
19423 (gimple_omp_teams_grid_phony): Likewise.
19424 (gimple_omp_teams_set_grid_phony): Likewise.
19425 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
19426 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
19427 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
19428 (BUILT_IN_GOMP_TARGET): Updated type.
19429 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
19430 (adjust_for_condition): New function.
19431 (get_omp_for_step_from_incr): Likewise.
19432 (extract_omp_for_data): Moved parts to adjust_for_condition and
19433 get_omp_for_step_from_incr.
19434 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
19435 (fixup_child_record_type): Bail out if receiver_decl is NULL.
19436 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
19437 (scan_omp_parallel): Do not create child functions for phony
19439 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
19440 (scan_omp_1_op): Checking assert we are not remapping to
19441 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
19442 (parallel_needs_hsa_kernel_p): New function.
19443 (expand_parallel_call): Register apprpriate parallel child
19444 functions as HSA kernels.
19445 (grid_launch_attributes_trees): New type.
19446 (grid_attr_trees): New variable.
19447 (grid_create_kernel_launch_attr_types): New function.
19448 (grid_insert_store_range_dim): Likewise.
19449 (grid_get_kernel_launch_attributes): Likewise.
19450 (get_target_argument_identifier_1): Likewise.
19451 (get_target_argument_identifier): Likewise.
19452 (get_target_argument_value): Likewise.
19453 (push_target_argument_according_to_value): Likewise.
19454 (get_target_arguments): Likewise.
19455 (expand_omp_target): Call get_target_arguments instead of looking
19456 up for teams and thread limit.
19457 (grid_expand_omp_for_loop): New function.
19458 (grid_arg_decl_map): New type.
19459 (grid_remap_kernel_arg_accesses): New function.
19460 (grid_expand_target_kernel_body): New function.
19461 (expand_omp): Call it.
19462 (lower_omp_for): Do not emit phony constructs.
19463 (lower_omp_taskreg): Do not emit phony constructs but create for them
19464 a temporary variable receiver_decl.
19465 (lower_omp_taskreg): Do not emit phony constructs.
19466 (lower_omp_teams): Likewise.
19467 (lower_omp_grid_body): New function.
19468 (lower_omp_1): Call it.
19469 (grid_reg_assignment_to_local_var_p): New function.
19470 (grid_seq_only_contains_local_assignments): Likewise.
19471 (grid_find_single_omp_among_assignments_1): Likewise.
19472 (grid_find_single_omp_among_assignments): Likewise.
19473 (grid_find_ungridifiable_statement): Likewise.
19474 (grid_target_follows_gridifiable_pattern): Likewise.
19475 (grid_remap_prebody_decls): Likewise.
19476 (grid_copy_leading_local_assignments): Likewise.
19477 (grid_process_kernel_body_copy): Likewise.
19478 (grid_attempt_target_gridification): Likewise.
19479 (grid_gridify_all_targets_stmt): Likewise.
19480 (grid_gridify_all_targets): Likewise.
19481 (execute_lower_omp): Call grid_gridify_all_targets.
19482 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
19483 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
19484 (tree_omp_clause): Added union field dimension.
19485 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
19486 * tree.c (omp_clause_num_ops): Added number of arguments of
19487 OMP_CLAUSE__GRIDDIM_.
19488 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
19489 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
19490 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
19491 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
19492 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
19493 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
19494 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
19495 * tree-pass.h (make_pass_gen_hsail): Declare.
19496 (make_pass_ipa_hsa): Likewise.
19497 * ipa-hsa.c: New file.
19498 * lto-section-in.c (lto_section_name): Add hsa section name.
19499 * lto-streamer.h (lto_section_type): Add hsa section.
19500 * timevar.def (TV_IPA_HSA): New.
19501 * hsa-brig-format.h: New file.
19502 * hsa-brig.c: New file.
19503 * hsa-dump.c: Likewise.
19504 * hsa-gen.c: Likewise.
19507 * toplev.c (compile_file): Call hsa_output_brig.
19508 * hsa-regalloc.c: New file.
19510 2016-01-18 Jeff Law <law@redhat.com>
19512 PR tree-optimization/69320
19513 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
19514 ranged object, do nothing if the RHS constant is not [0..1].
19515 (optimize_stmt): Comparing a boolean ranged object against a
19516 constant outside [0..1] results in a compile-time constant.
19518 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
19521 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
19523 * doc/invoke.texi (Invoking GCC): Add new section to menu.
19524 (Option Summary): Update to reflect new section and moved options.
19525 (C++ Dialect Options): Move -fstats to new section.
19526 (Debugging Options): Move all dump, statistics, and other GCC
19527 developer options to new section. Rewrite section introduction
19528 and re-order remaining options to put the more basic ones first.
19529 (Optimization Options): Move -fira-verbose and -flto-report* to
19531 (Developer Options): New section incorporating moved options.
19532 * doc/cppopts.texi (-dM): Update cross-reference.
19534 2016-01-18 Richard Henderson <rth@redhat.com>
19537 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
19538 operands to pseudo only if CSE is expected. Split long immediate
19539 operands only after reload, and for the stack pointer.
19540 (*add<GPI>3_pluslong): Remove.
19541 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
19542 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
19543 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
19544 (*add<GPI>3 peepholes): New.
19545 (*add<GPI>3 splitters): New.
19546 * config/aarch64/constraints.md (Upl): New.
19547 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
19549 2016-01-18 Richard Biener <rguenther@suse.de>
19551 PR tree-optimization/69297
19552 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
19554 (vect_bb_vectorization_profitable_p): Clear visited flag again.
19556 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
19558 PR middle-end/68542
19559 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
19560 of mixind vector and scalar types.
19561 (fold_relational_const): Add handling of vector
19562 comparison with boolean result.
19563 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
19564 comparison of vector operands with boolean result for EQ/NE only.
19565 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
19566 (verify_gimple_cond): Likewise.
19567 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
19570 2016-01-18 Joseph Myers <joseph@codesourcery.com>
19572 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
19575 2016-01-18 Richard Biener <rguenther@suse.de>
19577 PR middle-end/69308
19578 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
19580 2016-01-18 Tom de Vries <tom@codesourcery.com>
19582 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
19584 2016-01-18 Tom de Vries <tom@codesourcery.com>
19586 * omp-low.c (set_oacc_fn_attrib): Make extern.
19587 * omp-low.h (set_oacc_fn_attrib): Declare.
19588 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
19589 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
19590 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
19591 Add and handle function parameter oacc_kernels_p.
19592 (find_reduc_addr, get_omp_data_i_param): New function.
19593 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
19594 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
19595 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
19596 Calculate dominance info. Skip loops that are not in a kernels region
19597 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
19598 (pass_parallelize_loops::execute): Call parallelize_loops with
19599 oacc_kernels_p argument.
19600 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
19601 New member function.
19602 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
19603 * passes.def: Add argument to pass_parallelize_loops instantation.
19605 2016-01-18 Tom de Vries <tom@codesourcery.com>
19607 * tree-parloops.c (pass_parallelize_loops::execute): Allow
19608 pass_parallelize_loops to be run outside the loop pipeline.
19610 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
19612 * tree-scalar-evolution.c (follow_copies_to_constant): New.
19613 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
19615 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
19618 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
19619 using get_ref_base_and_extent.
19620 (equal_mem_array_ref_p): New.
19621 (hashable_expr_equal_p): Add call to previous.
19623 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
19626 * tree-sra.c (disqualified_constants, constant_decl_p): New.
19627 (sra_initialize): Allocate disqualified_constants.
19628 (sra_deinitialize): Free disqualified_constants.
19629 (disqualify_candidate): Update disqualified_constants when appropriate.
19630 (create_access): Scan for constant-pool entries as we go along.
19631 (scalarizable_type_p): Add check against type_contains_placeholder_p.
19632 (maybe_add_sra_candidate): Allow constant-pool entries.
19633 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
19634 (initialize_constant_pool_replacements): New.
19635 (sra_modify_assign): Avoid mangling assignments created by previous,
19636 and don't generate writes into constant pool.
19637 (sra_modify_function_body): Call initialize_constant_pool_replacements.
19639 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
19641 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
19642 andnot instruction.
19643 (scalar_chain::convert_op): Likewise.
19644 * config/i386/i386.md (*andndi3_doubleword): New.
19646 2016-01-18 Richard Biener <rguenther@suse.de>
19648 PR tree-optimization/69170
19649 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
19650 building a vector from scalar results of a pattern stmt.
19652 2016-01-18 Jakub Jelinek <jakub@redhat.com>
19654 * haifa-sched.c (autopref_multipass_init): Work around
19655 -Wmaybe-uninitialized warning.
19657 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
19659 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
19660 against the constant 0.
19662 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19664 PR tree-optimization/68799
19665 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
19666 look up phi candidates in the statement-candidate map.
19667 (phi_add_costs): Likewise.
19668 (record_phi_increments): Likewise.
19669 (phi_incr_cost): Likewise.
19670 (ncd_with_phi): Likewise.
19671 (all_phi_incrs_profitable): Likewise.
19673 2016-01-17 Jakub Jelinek <jakub@redhat.com>
19675 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
19676 -Wmaybe-uninitialized warning.
19678 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
19680 * doc/invoke.texi (Invoking GCC): Add new section to menu.
19681 (Option Summary): Update to reflect new section and moved options.
19682 (C++ Dialect Options): Move -fvtable-verify and related options.
19683 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
19684 and profiling-related options.
19685 (Optimization Options): Move profile generation options and
19686 -fstack-protector and related options.
19687 (Instrumentation Options): New section incorporating moved options.
19688 (Code Generation Options): Move -finstrument-functions and
19689 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
19691 2016-01-16 Tom de Vries <tom@codesourcery.com>
19693 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
19695 2016-01-16 Tom de Vries <tom@codesourcery.com>
19697 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
19699 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
19701 * hash-table.h (hash_table::empty): Turn into an inline wrapper
19702 that checks whether the table is already empty. Rename the
19703 original implementation to...
19704 (hash_table::empty_slot): ...this new private function.
19706 2016-01-15 David Malcolm <dmalcolm@redhat.com>
19708 PR diagnostic/68899
19709 * diagnostic-show-locus.c (layout::print_source_line): Move x
19710 offset of line until after call to
19711 get_line_width_without_trailing_whitespace.
19713 2016-01-15 Jeff Law <law@redhat.com>
19715 PR tree-optimization/69270
19716 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
19717 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
19718 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
19719 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
19720 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
19721 ssa_name_has_boolean_range and constant_boolean_node.
19723 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
19725 PR rtl-optimization/69030
19726 * lra-spills.c (remove_pseudos): Check nrefs and make the function
19728 (spill_pseudos): Delete debug insn for dead pseudo.
19729 (lra_spill): Initiate spill_hard_reg and slots memory separately.
19731 2016-01-15 Jiong Wang <jiong.wang@arm.com>
19733 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
19735 (TYPES_UNOPUS): Likewise.
19736 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
19737 builtin type, from UNOP to UNOPUS.
19738 (lbtruncuv4sf): Likewise.
19739 (lbtruncuv2df): Likewise.
19740 (lrounduv2sf): Likewise.
19741 (lrounduv4sf): Likewise.
19742 (lrounduv2df): Likewise.
19743 (lroundusf): Likewise.
19744 (lroundusf): Likewise.
19745 (lceiluv2sf): Likewise.
19746 (lceiluv4sf): Likewise.
19747 (lceiluv2df): Likewise.
19748 (lceilusf): Likewise.
19749 (lceiludf): Likewise.
19750 (lflooruv2sf): Likewise.
19751 (lflooruv4sf): Likewise.
19752 (lflooruv2df): Likewise.
19753 (lfloorusf): Likewise.
19754 (lfloorudf): Likewise.
19755 (lfrintnuv2sf): Likewise.
19756 (lfrintnuv4sf): Likewise.
19757 (lfrintnuv2df): Likewise.
19758 (lfrintnusf): Likewise.
19759 (lfrintnudf): Likewise.
19760 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
19762 (vcvtq_u32_f32): Likewise.
19763 (vcvtq_u64_f64): Likewise.
19764 (vcvta_u32_f32): Likewise.
19765 (vcvtaq_u32_f32): Likewise.
19766 (vcvtaq_u64_f64): Likewise.
19767 (vcvtm_u32_f32): Likewise.
19768 (vcvtmq_u32_f32): Likewise.
19769 (vcvtmq_u64_f64): Likewise.
19770 (vcvtn_u32_f32): Likwise.
19771 (vcvtnq_u32_f32): Likewise.
19772 (vcvtnq_u64_f64): Likewise.
19773 (vcvtp_u32_f32): Likewise.
19774 (vcvtpq_u32_f32): Likewise.
19775 (vcvtpq_u64_f64): Likewise.
19776 (vcvtmd_u64_f64): Likewise.
19777 (vcvtms_u32_f32): Likewise.
19778 (vcvtad_u64_f64): Likewise.
19779 (vcvtas_u32_f32): Likewise.
19780 (vcvtnd_u64_f64): Likewise.
19781 (vcvtns_u32_f32): Likewise.
19782 (vcvtpd_u64_f64): Likewise.
19783 (vcvtps_u32_f32): Likewise.
19785 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19787 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
19788 CSEL of zero_extended registers.
19790 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19792 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
19793 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
19795 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19797 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
19798 false when argument string is not found in the attributes table
19801 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
19804 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
19805 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
19806 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
19807 precision estimate.
19809 2016-01-15 Richard Biener <rguenther@suse.de>
19811 PR tree-optimization/66856
19812 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
19813 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
19814 (vect_create_new_slp_node): Increment stmt reference count.
19815 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
19816 an SLP tree before swapping operands.
19817 (vect_build_slp_tree): Likewise.
19818 (destroy_bb_vec_info): Free stmt info after SLP instances.
19819 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
19820 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
19821 (STMT_VINFO_NUM_SLP_USES): New macro.
19823 2016-01-15 Richard Biener <rguenther@suse.de>
19826 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
19827 (add_linkage_name): ... here.
19828 (gen_typedef_die): Use add_linkage_name_raw instead of
19829 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
19832 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
19834 * gimplify.c (oacc_default_clause): Decode reference and pointer
19835 types for both kernels and parallel regions.
19837 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
19839 PR middle-end/69246
19840 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
19842 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
19844 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
19845 (convert_scalars_to_vector): Likewise.
19847 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
19849 * doc/extend.texi (Type Traits): Fix grammar.
19851 2016-01-15 Martin Jambor <mjambor@suse.cz>
19853 * tree-inline.c (remap_decl): Use existing dclarations if
19854 remapping a type and prevent_decl_creation_for_types.
19855 (replace_locals_stmt): Do an initial remapping of non-VLA typed
19856 decls first. Do real remapping with
19857 prevent_decl_creation_for_types set.
19858 * tree-inline.h (copy_body_data): New field
19859 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
19862 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
19864 * config/s390/s390.opt (mmvcle): More verbose help text.
19866 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
19868 * config/s390/s390.opt: Add period to -mzvector option text.
19870 2016-01-15 Richard Biener <rguenther@suse.de>
19872 PR tree-optimization/68961
19873 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
19874 of invariants in stores again.
19876 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
19878 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
19880 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
19882 * config/i386/i386.c (ix86_expand_branch): Don't split
19883 DI mode xor instruction to SI mode.
19885 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
19888 * ipa-icf.c (sem_function::merge): Virtual functions may become
19889 reachable even if they address is not taken and there are no
19892 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
19894 * lto-streamer-out.c (subtract_estimated_size): New function.
19895 (get_symbol_initial_value): Use it.
19897 2016-01-15 Christian Bruel <christian.bruel@st.com>
19900 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
19901 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
19902 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
19903 use add_builtin_function_ext_scope instead of add_builtin_function.
19904 (neon_set_p, neon_crypto_set_p): Remove.
19905 (arm_init_builtins): Always call arm_init_neon_builtins and
19906 arm_init_crypto_builtins.
19907 (arm_expand_builtin): Check that builtins are allowed for the arch.
19908 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
19909 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
19910 arm_init_neon_builtins call.
19912 2016-01-15 Richard Biener <rguenther@suse.de>
19914 PR tree-optimization/69117
19915 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
19916 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
19917 of the leader conservatively.
19918 (free_scc_vn): Restore original SSA name infos.
19920 2016-01-14 Jeff Law <law@redhat.com>
19922 PR tree-optimization/69270
19923 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
19924 single bit of precision, verify it's also unsigned.
19925 (record_edge_info): Use constant_boolean_node rather than fold_convert
19926 to convert boolean_true/boolean_false to the right type.
19928 2016-01-14 Richard Henderson <rth@redhat.com>
19931 * loop-doloop.c (record_reg_sets): New.
19932 (doloop_optimize): Reject the transform if the sequence
19933 clobbers registers live at the end of the loop block.
19934 (doloop_optimize_loops): Enable df_live if needed.
19936 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19938 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
19939 * config/rs6000/rs6000.c: Likewise.
19940 * config/rs6000/rs6000.h: Likewise.
19941 * config/rs6000/rs6000.md: Likewise.
19942 * doc/extend.texi: Likewsie.
19944 2016-01-14 Jeff Law <law@redhat.com>
19946 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
19949 2016-01-14 Richard Henderson <rth@redhat.com>
19953 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
19954 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
19955 instead of builtin_decl_declared_p to test for declaration.
19957 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
19959 * doc/loop.texi (Loop Analysis and Representation): Document
19960 loop_depth function.
19962 2016-01-14 Tom de Vries <tom@codesourcery.com>
19964 PR tree-optimization/68773
19965 * omp-low.c (expand_omp_target): Don't set force_output.
19966 * varpool.c (varpool_node::get_create): Same.
19967 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
19968 offload_funcs with force_output.
19970 2016-01-14 Jakub Jelinek <jakub@redhat.com>
19973 * lra-eliminations.c (move_plus_up): Don't change anything if either
19974 the outer or inner subreg mode is not MODE_INT.
19975 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
19976 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
19978 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
19980 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
19981 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
19982 reduc_uplus_@var{m}): Remove.
19983 * expr.c (expand_expr_real_2): Remove expansion path for
19984 reduc_[us](min|max|plus) optabs.
19985 * optabs-tree.c (scalar_reduc_to_vector): Remove.
19986 * optabs-tree.h (scalar_reduc_to_vector): Remove.
19987 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
19988 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
19989 * tree-vect-loop.c (vectorizable_reduction): Remove test for
19990 reduc_[us](min|max|plus) optabs.
19992 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
19994 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
19995 (reduc_plus_scal_v2sf): New.
19996 (reduc_smax_v2sf): Rename to...
19997 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
19998 (reduc_smin_v2sf): Rename to...
19999 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
20001 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
20003 * alias.c (compare_base_symbol_refs): New function.
20004 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
20007 2016-01-14 Jakub Jelinek <jakub@redhat.com>
20009 PR middle-end/68146
20010 PR tree-optimization/69155
20011 * tree-complex.c: Include cfganal.h.
20012 (phis_to_revisit): New variable.
20013 (extract_component): Add phiarg_p argument. Assert that returned
20014 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
20015 (update_phi_components): Partly rewrite to use loop over real/imag
20016 components instead of code duplication. If extract_component returns
20017 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
20018 create_tmp_reg into the PHI node instead, and mention the phi triplet
20019 in phis_to_revisit.
20020 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
20021 in phis_to_revisit at the end.
20023 2016-01-14 Richard Biener <rguenther@suse.de>
20025 PR tree-optimization/68060
20026 * tree-vect-loop.c (vect_is_simple_reduction): Check the
20027 outer loop reduction is only used in the inner loop before
20028 detecting a double reduction.
20030 2016-01-14 Jakub Jelinek <jakub@redhat.com>
20033 * combine.c (expand_field_assignment): Punt if compute_mode is
20034 unsupported scalar mode.
20036 2016-01-14 Richard Biener <rguenther@suse.de>
20038 PR tree-optimization/66856
20039 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
20040 SLP node only if it built successfully.
20041 (vect_analyze_slp_instance): Adjust.
20043 2016-01-14 Jeff Law <law@redhat.com>
20045 PR tree-optimization/69270
20046 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
20047 (record_edge_info): Use it. Convert boolean_{true,false}_node
20048 to the type of op0.
20050 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
20053 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
20054 use block_ultimate_origin
20055 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
20057 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
20059 * doc/invoke.texi (Submodel Options): Rename section to
20060 "Machine-Dependent Options" to better reflect its content.
20061 Rewrite introductory text to remove archaic CPU names.
20064 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
20066 * doc/invoke.texi (Code Gen Options): Move section up in file,
20067 before target-specific options. Update menu and option summary
20068 to reflect the new section ordering.
20070 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
20072 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
20073 (C++ Dialect Options): Add cross-reference to -std option.
20074 * doc/standards.texi (C++ Language): Document C++14 support.
20076 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
20078 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
20079 for pack/unpack functions for __ibm128.
20080 (PACK_IF): Likewise.
20081 (UNPACK_IF): Likewise.
20083 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
20084 support for __ibm128 pack/unpack functions.
20085 (rs6000_invalid_builtin): Likewise.
20086 (rs6000_init_builtins): Likewise.
20087 (rs6000_opt_masks): Likewise.
20089 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
20090 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
20092 (RS6000_BTM_COMMON): Likewise.
20094 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
20095 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
20096 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
20097 128-bit floating point. Add support for the double values to be
20098 in Altivec registers for TF/IF packing and unpacking, but restrict
20099 TD packing sub-fields to be FPR registers. Don't allow overlapped
20100 register support for packing. Allow pack inputs to be memory
20101 locations. Don't build generator functions for unpack<mode>_dm
20102 and unpack<mode>_nodm.
20103 (unpack<mode>_dm): Likewise.
20104 (unpack<mode>_nodm): Likewise.
20105 (pack<mode>): Likewise.
20107 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
20108 built-in functions to pack/unpack explicit __ibm128 values.
20109 (__builtin_unpack_ibm128): Likewise.
20111 * doc/extend.texi (PowerPC Built-in Functions): Document
20112 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
20114 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
20117 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
20118 Add new arg loc and pass it down as context.
20119 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
20120 to the location to use for the warning.
20121 (check_function_arguments): New arg loc. All callers changed. Pass
20122 it to check_function_nonnull.
20123 * c-common.h (check_function_arguments): Adjust declaration.
20125 2016-01-13 Jakub Jelinek <jakub@redhat.com>
20127 PR tree-optimization/69156
20128 * gimple.c (validate_type): Removed.
20129 (gimple_builtin_call_types_compatible_p): Use
20130 useless_type_conversion_p instead of validate_type.
20131 * value-prof.c (gimple_stringop_fixed_value): Fold
20132 icall_size to correct type.
20134 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
20136 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
20139 2016-01-13 Richard Henderson <rth@redhat.com>
20142 * target.def (builtin_tm_load, builtin_tm_store): Remove.
20143 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
20144 (ix86_builtin_tm_store): Remove.
20145 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
20146 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
20147 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
20148 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
20149 * doc/tm.texi: Rebuild.
20151 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
20152 (BUILT_IN_TM_MEMCPY_RTWN): New.
20153 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
20154 fallback from vector to integer helpers.
20155 (build_tm_load): Handle vector types directly, instead of
20157 (build_tm_store): Likewise.
20158 (expand_assign_tm): Prepare for register types not handled by
20159 the above. Copy them to memory and use memcpy.
20160 * tree.c (tm_define_builtin): New.
20161 (find_tm_vector_type): New.
20162 (build_tm_vector_builtins): New.
20163 (build_common_builtin_nodes): Call it.
20165 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
20167 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
20168 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
20170 2016-01-13 Tom de Vries <tom@codesourcery.com>
20172 PR tree-optimization/69169
20173 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
20174 handled_struct_type param.
20175 (create_variable_info_for, intra_create_variable_infos): Call
20176 create_variable_info_for_1 with extra arg.
20178 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
20180 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
20181 and "armv8.1-a+crc" entries.
20183 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
20186 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
20187 Change first operand predicate from register_or_constm1_operand
20188 to register_operand.
20189 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
20190 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
20191 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
20192 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
20193 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
20194 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
20195 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
20196 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
20197 comparison with constm1_rtx from vec_prefetch_gen part.
20199 2016-01-13 Richard Biener <rguenther@suse.de>
20201 PR tree-optimization/69013
20202 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
20203 Exchange assert for a test.
20205 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20208 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
20210 2016-01-13 Richard Biener <rguenther@suse.de>
20212 PR tree-optimization/69242
20213 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
20214 assert with a check.
20216 2016-01-13 Richard Biener <rguenther@suse.de>
20218 PR tree-optimization/69186
20219 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20220 Properly guard vect_update_misalignment_for_peel call.
20222 2016-01-12 Jeff Law <law@redhat.com>
20224 PR tree-optimization/pr67755
20225 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
20226 "need_profile_correction".
20227 (thread_block_1): Initialize new field to false by default. If we
20228 have multiple thread paths through a common joiner to different
20229 final targets, then set new field to true.
20230 (compute_path_counts): Only do count adjustment when it's really
20233 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
20235 * doc/invoke.texi (Spec Files): Move section down in file, past
20236 all command-line option descriptions.
20238 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20240 PR middle-end/54809
20241 * doc/gty.texi: Remove documentation of mark_hook.
20242 * gengtype.c (struct write_types_data): Remove code to support
20243 mark_hook attribute.
20244 (walk_type): Likewise.
20245 (write_func_for_structure): Likewise.
20247 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
20249 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
20250 Directory Options, and -specs= to Overall Options.
20251 (Overall Options): Adjust similarly. Reorder to group related
20252 options together. Make -specs= cross-reference the spec file details.
20253 (Directory Options): Adjust similarly.
20255 2016-01-12 Jeff Law <law@redhat.com>
20257 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
20259 2016-01-12 Olivier Hainque <hainque@adacore.com>
20261 * gcc.c (spec_undefvar_allowed): New global.
20262 (process_command): Set to true when running for --version or --help,
20264 (getenv_spec_function): When the variable is not defined, use the
20265 variable name as the variable value if we're allowed not to issue
20268 2016-01-12 Bin Cheng <bin.cheng@arm.com>
20270 PR tree-optimization/68911
20271 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
20272 information computed for expression "init + nit * step".
20274 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
20276 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
20277 about name of GCC executable. Remove deleted node from menu.
20278 (Directory Options) <-B>: Remove cross-reference to deleted node.
20279 (Target Options): Delete section.
20281 2016-01-12 Christian Bruel <christian.bruel@st.com>
20284 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
20285 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
20287 2016-01-12 Jakub Jelinek <jakub@redhat.com>
20290 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
20291 aligned_mem is properly set for AVX512-VL floating point masked
20295 * ifcvt.c (cond_exec_process_if_block): When removing the last
20296 insn from then_bb, remove also any possible barriers that follow it.
20298 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
20302 * config/i386/iamcu.h (SIZE_TYPE): New macro.
20303 (PTRDIFF_TYPE): Likewise.
20304 (WCHAR_TYPE): Likewise.
20305 (WCHAR_TYPE_SIZE): Likewise.
20306 (STDINT_LONG32): Likewise.
20308 2016-01-12 Richard Biener <rguenther@suse.de>
20310 PR tree-optimization/69053
20311 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
20312 convert initial value for cond reductions.
20314 2016-01-12 Richard Biener <rguenther@suse.de>
20316 PR tree-optimization/69007
20317 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
20318 widen_sum after dot_prod and sad.
20320 2016-01-12 Richard Biener <rguenther@suse.de>
20322 PR tree-optimization/69168
20323 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
20324 pattern stmt SLP type.
20325 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
20326 end up unused so cope with that case.
20328 2016-01-12 Richard Biener <rguenther@suse.de>
20330 PR tree-optimization/69157
20331 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
20332 stmts def type only during analyze phase.
20333 (vectorizable_call): Likewise.
20334 (vectorizable_simd_clone_call): Likewise.
20335 (vectorizable_conversion): Likewise.
20336 (vectorizable_assignment): Likewise.
20337 (vectorizable_shift): Likewise.
20338 (vectorizable_operation): Likewise.
20339 (vectorizable_store): Likewise.
20340 (vectorizable_load): Likewise.
20342 2016-01-12 Richard Biener <rguenther@suse.de>
20344 PR tree-optimization/69174
20345 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
20347 (vectorizable_load): Properly compute the number of loads needed
20348 for permuted strided SLP loads and do not spuriously assign
20349 to SLP_TREE_VEC_STMTS.
20351 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
20353 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
20354 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
20355 (MD_EXEC_PREFIX): Remove.
20356 (MD_STARTFILE_PREFIX) Removee.
20357 (FILE_NAME_ABSOLUTE_P): Remove.
20358 (CPP_SPEC): Do not read macros from sys/version.h.
20359 (LINK_COMMAND_SPEC): Remove.
20360 (LOCAL_INCLUDE_DIR): Remove.
20361 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
20362 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
20363 (POST_LINK_SPEC): Define to invoke stubify after linker
20364 (LIBSTDCXX): Remove define
20365 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
20366 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
20367 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
20368 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
20369 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
20370 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
20371 (i386_djgpp_asm_named_section): Add propotype of new procedure
20373 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
20374 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
20375 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
20376 in config/i386/djgpp.h).
20377 (STANDARD_STARTFILE_PREFIX_2): Define identical to
20378 STANDARD_STARTFILE_PREFIX_1.
20379 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
20380 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
20381 installation errors.
20382 (MAX_OFILE_ALIGNMENT): Define to 128.
20383 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
20385 * config/i386/djgpp.c: New file. Add implementation of
20386 i386_djgpp_asm_named_section.
20388 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
20390 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
20391 Add rule for building djgpp.o.
20393 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20395 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
20396 (rtx_is_swappable_p): Reductions are swappable.
20397 (insn_is_swappable_p): V2DF reductions are swappable.
20399 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
20401 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
20402 reloads for other unsupported memory operands.
20404 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
20405 Jim Wilson <jim.wilson@linaro.org>
20408 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
20409 copy_to_mode_reg instead of force_reg.
20411 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
20414 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
20415 TARGET_80387 is true.
20417 2016-01-11 Jakub Jelinek <jakub@redhat.com>
20420 * lra-eliminations.c (move_plus_up): Only move plus up
20421 if subreg of the constant can be simplified into constant
20422 and use the simplified subreg of the constant instead of
20423 the original constant.
20425 * fold-const.c (fold_convertible_p): Don't return true
20426 for conversion of VECTOR_TYPE to same sized integral type.
20427 (fold_convert_loc): Fix up formatting. Fold conversion of
20428 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
20429 instead of NOP_EXPR.
20431 PR tree-optimization/69214
20432 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
20433 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
20436 PR tree-optimization/69207
20437 * tree-vect-slp.c (vect_get_constant_vectors): For
20438 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
20439 fold_convertible_p to vector_type's element type, and always
20440 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
20442 2016-01-11 Richard Biener <rguenther@suse.de>
20444 PR tree-optimization/69173
20445 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
20446 fixup the cycle if all stmts are in a pattern.
20448 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
20450 PR middle-end/68999
20451 * alias.c (base_alias_check): Move check for addresses with
20452 alignment ANDs before the call for compare_base_decls.
20453 (memrefs_conflict_p): Return -1 for different decls
20454 that went through alignment adjustments.
20456 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20458 PR rtl-optimization/68796
20459 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
20460 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
20461 and QImode comparisons against zero with CC_NZmode.
20462 * config/aarch64/iterators.md (short_mask): New mode_attr.
20464 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
20466 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
20467 (<avx512>_store<mode>_mask): Likewise.
20469 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
20470 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20472 PR rtl-optimization/68841
20473 * ifcvt.c (struct noce_if_info): Add orig_x field.
20474 (bbs_ok_for_cmove_arith): Add to_rename parameter.
20475 Don't record conflicts on to_rename if it's present.
20476 Allow memory destinations in sets.
20477 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
20478 blocks, passing orig_x to the checks.
20479 (noce_process_if_block): Set if_info->orig_x appropriately.
20481 2016-01-11 Tom de Vries <tom@codesourcery.com>
20483 PR tree-optimization/69069
20484 * tree-parloops.c (create_parallel_loop): Add missing phi args.
20486 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
20488 PR rtl-optimization/68920
20489 * config/i386/i386.c (ix86_option_override_internal): Restrict number
20490 of conditional moves for RTL if-conversion to 1 for
20491 TARGET_ONE_IF_CONV_INSN.
20492 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
20493 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
20494 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
20495 parameter to restirct number of conditional moves for
20497 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
20498 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
20501 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
20504 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
20505 onepart vars. Fix typo in comment. Fix reversed condition in
20507 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
20510 * var-tracking.c (dump_onepart_variable_differences): New.
20511 (dataflow_set_different): If a detailed dump is requested,
20512 delay early returns and dump differences between onepart
20513 variables present before and after, and added variables.
20515 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
20518 * expr.c (expand_expr_real_1): For boolean vector constants
20519 with a scalar mode use const_scalar_mask_from_tree.
20520 (const_scalar_mask_from_tree): New.
20521 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
20522 assigned to a mask type to handle constants.
20524 2016-01-11 Martin Jambor <mjambor@suse.cz>
20527 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
20528 useless parameters if we cannot change function signature.
20530 2016-01-11 Martin Jambor <mjambor@suse.cz>
20533 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
20536 2016-01-11 Tom de Vries <tom@codesourcery.com>
20538 PR tree-optimization/69109
20539 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
20542 2016-01-11 Tom de Vries <tom@codesourcery.com>
20544 PR tree-optimization/69108
20545 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
20546 res is not used in a phi.
20548 2016-01-11 Yury Gribov <y.gribov@samsung.com>
20551 * common.opt (frandom-seed): Fix parameter name.
20552 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
20554 2016-01-11 Tom de Vries <tom@codesourcery.com>
20556 PR tree-optimization/69058
20557 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
20560 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
20562 * config/arc/arc.opt (mdiv-rem): Add period to the end.
20563 (mcode-density): Likewise.
20565 2016-01-10 Tom de Vries <tom@codesourcery.com>
20567 PR tree-optimization/69062
20568 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
20569 (parallelize_loops): Don't paralelize loop that has phi with address
20572 2016-01-10 Tom de Vries <tom@codesourcery.com>
20574 PR tree-optimization/69039
20575 * tree-parloops.c (try_create_reduction_list): Only allow single exit
20578 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
20580 PR middle-end/68743
20581 * match.pd: Require target has function_c99_misc before doing
20582 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
20584 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
20586 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
20588 * configure: Regenerate.
20590 2016-01-09 Jakub Jelinek <jakub@redhat.com>
20592 PR middle-end/50865
20593 PR tree-optimization/69097
20594 * fold-const.h (expr_not_equal_to): New prototype.
20595 * fold-const.c: Include stringpool.h and tree-ssanames.h.
20596 (expr_not_equal_to): New function.
20597 * match.pd (X % -Y is the same as X % Y): Don't optimize
20598 unless X is known not to be equal to minimum or Y is known
20599 not to be equal to -1.
20600 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
20601 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
20602 (simplify_stmt_using_ranges): Adjust caller.
20603 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
20604 substitute_and_fold.
20606 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
20608 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
20611 2016-01-08 Jakub Jelinek <jakub@redhat.com>
20613 PR tree-optimization/69167
20614 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
20615 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
20617 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
20619 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
20620 Richard Biener <rguenther@suse.de>
20622 PR tree-optimization/68707
20623 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
20624 instances that can be handled via vect_load_lanes.
20626 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
20628 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
20629 if we can't determine address equivalence.
20630 * alias.c (compare_base_decl): Update for changed return value of
20631 symtab_node::equal_address_to.
20633 2016-01-08 Jason Merrill <jason@redhat.com>
20637 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
20638 * expr.c (store_field): Not here.
20639 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
20640 call with TREE_ADDRESSABLE type.
20641 * tree-cfg.c (verify_gimple_call): Adjust.
20643 2016-01-08 Olivier Hainque <hainque@adacore.com>
20645 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
20648 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
20650 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
20651 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
20652 (reduc_smin_v2sf): Rename to...
20653 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
20654 (reduc_splus_v2sf): Rename to...
20655 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
20657 2016-01-08 Jakub Jelinek <jakub@redhat.com>
20659 PR tree-optimization/69162
20660 * gimplify.c (gimplify_va_arg_expr): Encode original type of
20661 valist argument in another argument.
20662 (gimplify_modify_expr): Adjust for the above change. Cleanup.
20663 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
20664 to determine the va_list type, build a MEM_REF instead of
20665 build_fold_indirect_ref.
20667 PR tree-optimization/69172
20668 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
20671 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
20673 PR tree-optimization/67781
20674 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
20675 and cmpnop in two steps: first the ones not accessed in original
20676 gimple expression in a endian independent way and then the ones not
20677 accessed in the final result in an endian-specific way.
20679 2016-01-08 Jakub Jelinek <jakub@redhat.com>
20681 PR tree-optimization/69083
20682 * tree-vect-slp.c (vect_get_constant_vectors): For
20683 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
20684 element type. If op is fold_convertible_p to vector_type's element
20685 type, use NOP_EXPR instead of VCE.
20687 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
20689 PR rtl-optimization/67778
20690 PR rtl-optimization/68634
20691 PR rtl-optimization/68909
20692 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
20693 block from the stack until done with it. Remove a superfluous
20694 bitmap set. Remove a superfluous bitmap test.
20696 2016-01-07 Martin Sebor <msebor@redhat.com>
20699 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
20700 constraint on the type of arguments.
20702 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
20704 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
20705 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
20706 unaligned_access on the gcc_options set.
20707 * config/arm/arm.c (arm_option_override_internal): Use
20708 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
20710 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
20713 * config/i386/i386.c (ix86_frame_pointer_required): Enable
20714 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
20716 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
20719 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
20722 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
20723 depending on frame_pointer_needed before remaining integer and SSE
20724 registers are saved.
20726 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
20729 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
20731 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
20734 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
20735 Use the "xBm" constraint.
20736 (float<sseintvecmodelower><mode>2<mask_name><round_name):
20738 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
20739 (sse_cvtsi2ssq<round_name>): Likewise.
20740 (sse_cvtss2si<round_name>): Likewise.
20741 (sse_cvtss2siq<round_name>): Likewise.
20742 (sse2_cvtsi2sdq<round_name>): Likewise.
20743 (sse2_cvtsd2si<round_name>): Likewise.
20744 (sse2_cvtsd2siq<round_name>): Likewise.
20745 * config/i386/subst.md (round_nimm_scalar_predicate): New
20748 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
20750 PR middle-end/67639
20751 * varasm.c (make_decl_rtl): Mark invalid register vars as
20754 PR rtl-optimization/66206
20755 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
20756 All callers changed.
20758 2016-01-07 Jakub Jelinek <jakub@redhat.com>
20760 PR tree-optimization/69141
20761 * tree-ssa-pre.c: Include langhooks.h.
20762 (eliminate_dom_walker::before_dom_children): Use
20763 lang_hooks.decl_printable_name instead of
20764 cgraph_node::get ()->name ().
20766 PR middle-end/68960
20767 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
20768 it and DECL_ALIGN too.
20770 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
20772 * config/mips/mips-ftypes.def: Sort to lexicographical order.
20774 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
20777 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
20778 depending on frame_pointer_needed before remaining integer and SSE
20779 registers are saved.
20781 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20783 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
20784 mode iterator with VSX_M2.
20785 (*p9_vecstore_<mode>): Likewise.
20786 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
20787 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
20788 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
20789 (define_split for VSX_LE128 stores): Likewise.
20790 (define_peephole2 for TImode LE swaps): Likewise.
20791 (define_split for VSX_LE128 post-reload stores): Likewise.
20793 2016-01-06 Marek Polacek <polacek@redhat.com>
20796 * convert.c (convert_to_integer_1): Adjust call to
20797 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
20798 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
20799 EXPR instead of ARG.
20800 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
20802 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
20805 * doc/extend.texi (RL78 Variable Attributes): New section.
20807 2016-01-05 Marek Polacek <polacek@redhat.com>
20810 * builtins.c (get_memmodel): Use expansion point location rather than
20811 the input location. Call warning_at rather than warning.
20812 (expand_builtin_atomic_compare_exchange): Likewise.
20813 (expand_builtin_atomic_load): Likewise.
20814 (expand_builtin_atomic_store): Likewise.
20815 (expand_builtin_atomic_clear): Likewise.
20817 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
20820 * config/i386/i386.c (ix86_expand_vector_logical_operator):
20821 Replace nonimmediate_operand with vector_operand.
20822 * config/i386/predicates.md (vector_operand): New predicate.
20823 (general_vector_operand): Replace nonimmediate_operand with
20825 * config/i386/sse.md: Replace nonimmediate_operand with
20826 vector_operand and m constraint with Bm constraint on SSE
20827 patterns with 16-byte memory operand.
20828 * config/i386/subst.md (round_nimm_predicate): Replace
20829 nonimmediate_operand with vector_operand.
20830 (round_saeonly_nimm_predicate): Likewise.
20831 (round_saeonly_nimm_scalar_predicate): New.
20833 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
20836 * config/i386/constraints.md (Bm): New constraint.
20837 * config/i386/predicates.md (vector_memory_operand): New
20839 * config/i386/sse.md: Replace xm with xBm in plusminus and
20840 any_logic patterns.
20842 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
20845 * doc/extend.texi (V850 Function Attributes): New section.
20846 (V850 Variable Attributes): New section.
20848 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
20851 * doc/extend.texi (MicroBlaze Function Attributes): Document
20852 interrupt_handler and fast_interrupt attributes.
20854 2016-01-05 Sergei Trofimovich <siarheit@google.com>
20857 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
20858 for local symbolic operands.
20859 * config/ia64/predicates.md (local_symbolic_operand64): New
20862 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20864 PR rtl-optimization/68651
20865 * combine.c (combine_simplify_rtx): Canonicalize x + x into
20868 2016-01-05 Nathan Sidwell <nathan@acm.org>
20870 * alias.c (compare_base_decls): Use symtab_node::get.
20872 2016-01-05 Nick Clifton <nickc@redhat.com>
20875 * ira-costs.c (copy_cost): Initialise the t_icode field of the
20876 secondary_reload_info structure.
20879 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
20880 decls if weak support is available.
20882 2016-01-04 Martin Sebor <msebor@redhat.com>
20884 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
20886 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
20888 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
20889 OPTION_MASK_P9_DFORM.
20891 * config/rs6000/constraints.md (wo constraint): New constraint for
20894 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
20896 (rs6000_init_hard_regno_mode_ok): Likewise.
20898 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
20901 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
20902 expanders not to have constraints. Add support for ISA 3.0 xxperm
20903 instruction. Add support for fusing xxlor with xxperm.
20904 (altivec_vperm_<mode>_internal): Likewise.
20905 (altivec_vperm_v8hiv16qi): Likewise.
20906 (altivec_vperm_<mode>v16q): Likewise.
20907 (altivec_vperm_<mode>_uns): Likewise.
20908 (vperm_v8hiv4si): Likewise.
20909 (vperm_v16qiv8hi): Likewise.
20911 * doc/md.texi (RS/6000 constraints): Document wo constraint.
20913 2016-01-04 Jakub Jelinek <jakub@redhat.com>
20915 Update copyright years.
20917 * gcc.c (process_command): Update copyright notice dates.
20918 * gcov-dump.c (print_version): Ditto.
20919 * gcov.c (print_version): Ditto.
20920 * gcov-tool.c (print_version): Ditto.
20921 * gengtype.c (create_file): Ditto.
20922 * doc/cpp.texi: Bump @copying's copyright year.
20923 * doc/cppinternals.texi: Ditto.
20924 * doc/gcc.texi: Ditto.
20925 * doc/gccint.texi: Ditto.
20926 * doc/gcov.texi: Ditto.
20927 * doc/install.texi: Ditto.
20928 * doc/invoke.texi: Ditto.
20930 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
20932 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
20933 modes larger than TImode as TImode if NEON is not enabled.
20935 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
20938 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
20939 mode for %f0-%f31 only if TARGET_FPU.
20941 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
20944 * config/sparc/sparc.c (scan_record_type): Take into account subfields
20945 to compute the PACKED_P predicate.
20946 (function_arg_record_value): Minor tweaks.
20948 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
20950 * doc/install.texi (--with-multilib-list): Describe the meaning of the
20951 option for arm*-*-* targets.
20953 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
20955 * doc/extend.texi (Common Function Attributes): Move docs for
20956 MSP430-specific attributes to....
20957 (MSP430 Function Attributes): ...here. Delete the redundant
20958 entries and copy-edit the remaining text.
20959 (MSP430 Variable Attributes): Use uniform format for index
20960 entries and add a cross-reference to the corresponding function
20963 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
20965 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
20967 (x86 Options): Likewise.
20969 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
20973 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
20974 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
20975 to corresponding attribute.
20977 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
20979 * doc/extend.texi (Common Function Attributes) <noplt>: Move
20980 to correct alphabetization of table. Copy-edit and correct
20982 <stack_protect>: Likewise.
20983 <target_clones>: Likewise.
20985 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
20986 Correct punctuation.
20987 (Code Gen Options) <-fno-plt>: Copy-edit.
20989 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
20992 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
20993 SI values. Explicitly convert SI to DI and vice-versa.
20995 2016-01-01 Jakub Jelinek <jakub@redhat.com>
20997 PR tree-optimization/69070
20998 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
20999 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
21002 * ubsan.c (ubsan_instrument_float_cast): Call
21003 initialize_sanitizer_builtins.
21006 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
21008 Copyright (C) 2016 Free Software Foundation, Inc.
21010 Copying and distribution of this file, with or without modification,
21011 are permitted in any medium without royalty provided the copyright
21012 notice and this notice are preserved.