1 2016-04-27 Martin Liska <mliska@suse.cz>
3 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
4 (free_loop_data): Release vuses of groups.
6 2016-04-27 Bin Cheng <bin.cheng@arm.com>
8 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
9 instead of redundant use_id and boolean have_use_for.
10 (struct iv_use): Change sub_id into group_id. Remove field next.
11 Move fields: related_cands, n_map_members, cost_map and selected
13 (struct iv_group): ... here. New structure.
14 (struct iv_common_cand): Use structure declaration directly.
15 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
16 (MAX_CONSIDERED_USES): Rename macro to ...
17 (MAX_CONSIDERED_GROUPS): ... here.
18 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
19 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
20 (dump_uses): Rename to ...
21 (dump_groups): ... here. Update all uses.
22 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
23 (find_induction_variables): Refactor format of dump information.
24 (record_sub_use): Delete.
25 (record_use): Update all uses.
26 (record_group): New function.
27 (record_group_use, find_interesting_uses_op): Call above functions.
29 (find_interesting_uses_cond): Ditto.
30 (group_compare_offset): New function.
31 (split_all_small_groups): Rename to ...
32 (split_small_address_groups_p): ... here. Update all uses.
33 (split_address_groups): Update all uses.
34 (find_interesting_uses): Refactor format of dump information.
35 (add_candidate_1): Update all uses. Remove redundant check on iv,
37 (add_candidate, record_common_cand): Remove redundant assert.
38 (add_iv_candidate_for_biv): Update use.
39 (add_iv_candidate_derived_from_uses): Update all uses.
40 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
41 (alloc_use_cost_map): Ditto.
42 (set_use_iv_cost, get_use_iv_cost): Rename to ...
43 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
44 (determine_use_iv_cost_generic): Ditto.
45 (determine_group_iv_cost_generic): Ditto.
46 (determine_use_iv_cost_address): Ditto.
47 (determine_group_iv_cost_address): Ditto.
48 (determine_use_iv_cost_condition): Ditto.
49 (determine_group_iv_cost_cond): Ditto.
50 (determine_use_iv_cost): Ditto.
51 (determine_group_iv_cost): Ditto.
52 (set_autoinc_for_original_candidates): Update all uses.
53 (find_iv_candidates): Update all uses. Refactor dump information.
54 (determine_use_iv_costs): Ditto.
55 (determine_iv_costs): Ditto.
56 (iv_ca_cand_for_use): Rename to ...
57 (iv_ca_cand_for_group): ... here. Update all uses.
58 (iv_ca_add_use, iv_ca_add_group): Ditto.
59 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
60 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
61 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
62 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
63 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
64 (create_new_iv, adjust_iv_update_pos): Ditto.
65 (rewrite_use_address): Delete.
66 (rewrite_use_address_1): Rename to ...
67 (rewrite_use_address): ... here.
68 (rewrite_use_compare): Update all uses.
69 (rewrite_use): Delete.
70 (rewrite_uses): Rename to ...
71 (rewrite_groups): ... here. Update all uses.
72 (remove_unused_ivs, free_loop_data): Update all uses.
73 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
75 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
77 * rtlanal.c (nonzero_bits1): Convert preprocessor check
78 for WORD_REGISTER_OPERATIONS to runtime check.
80 2016-04-27 Richard Biener <rguenther@suse.de>
83 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
84 aggregate_value_p to determine if a function result is
85 returned by reference.
86 (ipa_pta_execute): Functions having their address taken are
87 not automatically nonlocal.
89 2016-04-27 Jakub Jelinek <jakub@redhat.com>
92 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
93 * fold-const.c (operand_equal_p): If flag_checking and
94 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
95 and if it returns non-zero, assert iterative_hash_expr on both
98 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
100 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
102 2016-04-27 Nick Clifton <nickc@redhat.com>
105 * varasm.c (merge_weak): Generate an error if an attempt is made
106 to convert a non-weak static function into a weak, public function.
108 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
110 * params.def (MAX_PARTITION_SIZE): New param.
111 * doc/invoke.texi: Document lto-max-partition.
113 2016-04-27 Richard Biener <rguenther@suse.de>
116 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
117 function cummulating used_from_other_partition, externally_visible
118 and force_output from aliases.
119 (refered_from_nonlocal_var): Likewise.
120 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
123 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
125 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
126 (-Wmemset-elt-size): New item.
128 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
131 * stor-layout.h (internal_reference_types): Delete.
132 * stor-layout.c (reference_types_internal): Likewise.
133 (internal_reference_types): Likewise.
134 (layout_type) <REFERENCE_TYPE>: Adjust.
136 2016-04-27 Jakub Jelinek <jakub@redhat.com>
139 * tree.h (inchash::add_expr): Add FLAGS argument.
140 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
141 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
142 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
143 Formatting fix. Adjust recursive calls. For tcc_comparison,
144 if swap_tree_comparison (code) is smaller than code, hash that
145 and arguments in the other order. Hash CONVERT_EXPR the same
146 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
147 of ADDR_EXPR of decl as the decl itself. Add or remove
148 OEP_ADDRESS_OF from recursive flags as needed. For
149 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
150 operands commutatively and only the third one normally.
151 For internal CALL_EXPR hash in CALL_EXPR_IFN.
153 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
155 * config/rtems.h (LIB_SPEC): Add -latomic.
157 2016-04-27 Joel Sherrill <joel@rtems.org>
159 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
160 xilink.ld and flags not relevant to RTEMS.
162 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
164 * toplev.c (backend_init_target): Avoid calling init_reload when using
167 2016-04-26 Jakub Jelinek <jakub@redhat.com>
169 * reorg.c (try_merge_delay_insns): Declare i and j inside the
170 for loops rather than one for the whole function.
172 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
174 * match.pd (X + CST CMP X): New transformation.
176 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
178 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
179 * fold-const.c (fold_binary_loc): Remove 2 transformations
180 superseded by match.pd.
181 * match.pd (x+x -> x*2): Generalize to integers.
183 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
185 * config/i386/i386.md (operation on memory peephole): Duplicate an
186 existing peephole and adapt it to match lea rather than an operation
189 PR rtl-optimization/57193
190 * opts.c (default_options_table): Add OPT_frename_registers at -O2
192 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
194 2016-04-26 Bin Cheng <bin.cheng@arm.com>
196 * tree-if-conv.c (any_pred_load_store): New static variable.
197 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
198 any_pred_load_store instead of and_mask_load_store.
199 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
200 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
201 (combine_blocks, tree_if_conversion): Ditto.
203 2016-04-26 Bin Cheng <bin.cheng@arm.com>
205 PR tree-optimization/70771
206 PR tree-optimization/70775
207 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
208 virtual PHI nodes. Delete parameter.
209 (if_convertible_loop_p_1): Delete argument to above function.
210 (predicate_all_scalar_phis): Delete code handling single-argument
212 (tree_if_conversion): Mark and update virtual SSA.
214 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
217 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
218 (x86_elf_aligned_common): Rename to ...
219 (x86_elf_aligned_decl_common): ... this.
220 Add decl arg. Switch to .lbss for largecomm object. Use
221 LARGECOMM_SECTION_ASM_OP.
222 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
224 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
225 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
227 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
228 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
230 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
233 * config/i386/i386.c (SECTION_LARGE): Define.
234 (x86_64_elf_select_section): Set it for large data/bss sections.
235 Only clear SECTION_WRITE for .lrodata.
236 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
238 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
239 * varasm.c (default_elf_asm_named_section): Grow flagchars.
240 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
242 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
243 * doc/tm.texi: Regenerate.
245 2016-04-26 Jakub Jelinek <jakub@redhat.com>
248 * configure.ac (--enable-checking): Document extra flag, for
249 non-release builds default to --enable-checking=yes,extra.
250 If misc checking and extra checking, define CHECKING_P to 2 instead
252 * common.opt (fchecking=): Add.
253 * doc/invoke.texi (-fchecking=): Document.
254 * doc/install.texi: Document --enable-checking changes.
255 * configure: Regenerated.
256 * config.in: Regenerated.
258 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
260 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
261 attribute instead of which_alternative.
262 * config/i386/sse.md (*mov<mode>_internal): Ditto.
263 Use EXT_REX_SSE_REG_P where appropriate.
265 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
267 * config/i386/predicates.md (const0_operand): Do not match
269 (const1_operand): Ditto.
271 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
273 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
274 for SSE constm1 operands and TARGET_AVX512VL.
275 (*movti_internal): Ditto.
276 (*mov<mode>_or): Use constm1_operand predicate.
277 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
278 for SSE vector_all_ones operands and TARGET_AVX512VL.
279 * config/i386/predicates.md (constm1_operand): New predicate.
280 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
281 emission of constant -1 load.
283 2016-04-25 Jason Merrill <jason@redhat.com>
285 * gdbinit.in: Skip is-a.h.
287 * attribs.c (register_scoped_attributes): Fix logic.
288 * attribs.h: Declare register_scoped_attributes.
290 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
292 * config/rs6000/rs6000-builtin.def: Correct pasto error for
293 stxvd2x and stxvw4x built-in functions.
295 2016-04-25 DJ Delorie <dj@redhat.com>
297 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
301 2016-04-25 Richard Biener <rguenther@suse.de>
303 PR tree-optimization/70780
304 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
306 (compute_antic): Mark blocks with abnormal preds as visited as
307 they have a final empty antic-in solution already.
309 2016-04-25 Michael Collison <michael.collison@linaro.org>
311 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
313 2016-04-25 Michael Collison <michael.collison@linaro.org>
315 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
316 mode is VQI to improve mixed mode vectorization.
317 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
318 define_insn to match low half of signed vaddw.
319 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
320 define_insn to match high half of signed vaddw.
321 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
322 define_insn to match low half of unsigned vaddw.
323 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
324 define_insn to match high half of unsigned vaddw.
325 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
326 (arm_simd_check_vect_par_cnst_half_p): Likewise.
327 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
329 (arm_simd_check_vect_par_cnst_half_p): Likewise.
330 * config/arm/predicates.md (vect_par_constant_high): Support
331 big endian and simplify by calling
332 arm_simd_check_vect_par_cnst_half
333 (vect_par_constant_low): Likewise.
335 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
337 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
338 predicate for operand 2.
340 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
341 H.J. Lu <hongjiu.lu@intel.com>
343 * config/i386/i386-protos.h (standard_sse_constant_p): Add
344 machine_mode argument.
345 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
346 constm1_rtx operands. For VOIDmode constants, get mode from
347 pred_mode. Check mode size if the mode is supported by ABI.
348 (standard_sse_constant_opcode): Do not use standard_constant_p.
349 Strictly check ABI support for all-ones operands.
350 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
351 immediates. Update calls to standard_sse_constant_p.
352 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
353 (ix86_rtx_costs): Ditto.
354 * config/i386/i386.md (*movxi_internal_avx512f): Use
355 nonimmediate_or_sse_const_operand instead of vector_move_operand.
356 Use (v,BC) alternative instead of (v,C). Use register_operand
357 checks instead of MEM_P.
358 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
359 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
360 isa attribute. Use register_operand checks instead of MEM_P.
361 (*movti_internal): Use nonimmediate_or_sse_const_operand for
362 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
363 alternative and corresponding sse2 isa attribute.
364 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
365 to standard_sse_constant_p.
366 (FP constant splitters): Ditto.
367 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
369 * config/i386/predicates.md (constm1_operand): Remove.
370 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
371 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
372 vector_all_ones_operand instead of constm1_operand.
374 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
376 * print-rtl.c (print_rtx_insn_vec): New function.
377 * print-rtl.h: New prototype.
378 * store-motion.c (struct st_expr): Make avail_stores a vector.
379 (st_expr_entry): Adjust.
380 (free_st_expr_entry): Likewise.
381 (print_store_motion_mems): Likewise.
382 (find_moveable_store): Likewise.
383 (compute_store_table): Likewise.
384 (delete_store): Likewise.
385 (build_store_vectors): Likewise.
387 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
389 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
391 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
393 * vec.h (vec_safe_contains): New function.
394 (vec::contains): Likewise.
395 (vec::begin): Likewise.
396 (vec::end): Likewise.
398 2016-04-23 Jakub Jelinek <jakub@redhat.com>
401 * cfgexpand.c (expand_stack_vars): Fix typo.
403 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
405 * system.h (list, map, set, vector): Include conditionally.
406 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
407 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
408 * ipa-icf.c (INCLUDE_LIST): Define.
409 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
410 * config/sh/sh.c (INCLUDE_VECTOR): Define.
411 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
412 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
413 * cp/logic.cc (INCLUDE_LIST): Define.
414 * fortran/trans-common.c (INCLUDE_MAP): Define.
416 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
418 * auto-profile.c: Remove <string.h> include.
419 * ipa-icf-gimple.c: Remove <list> include.
420 * diagnostic.c: Remove <new> include.
421 * genmatch.c: Likewise.
422 * pretty-print.c: Likewise.
424 * c/c-objc-common.c: Likewise.
425 * cp/error.c: Likewise.
426 * fortran/error.c: Likewise.
428 2016-04-22 Richard Biener <rguenther@suse.de>
430 * lto-streamer-in.c (input_ssa_names): Do not allocate
431 GIMPLE_NOP for all SSA names.
432 * lto-streamer-out.c (output_ssa_names): Do not output
433 SSA names that should have been released.
435 2016-04-22 Richard Biener <rguenther@suse.de>
437 PR tree-optimization/70740
438 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
441 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
444 * config/i386/predicates.md (call_insn_operand): Replace
445 sibcall_memory_operand with memory_operand.
447 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
449 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
450 has_single_use() tests.
451 (register_edge_assert_for_1): Likewise.
452 (find_assert_locations_1): Check the liveness bitmap instead of
453 checking has_single_use().
455 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
458 * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
459 Extract AVX-512BW constraint from AVX.
461 2016-04-21 Richard Biener <rguenther@suse.de>
463 PR tree-optimization/70725
464 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
465 for phi_convertible_by_degenerating_args.
466 (predicate_all_scalar_phis): Handle single-argument PHIs.
468 2016-04-21 Richard Biener <rguenther@suse.de>
471 * fold-const.c (fold_comparison): Return properly typed
474 2016-04-21 Bin Cheng <bin.cheng@arm.com>
476 PR tree-optimization/70715
477 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
478 after expanding BASE using expand_simple_operations.
480 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
482 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
485 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
487 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
489 2016-04-20 Jan Hubicka <jh@suse.cz>
491 * ipa-inline.c (can_inline_edge_p): Pass caller info to
492 ultiimate_alias_target.
493 (update_callee_keys): Likewise.
494 (lookup_recursive_calls): Likewise.
495 (speculation_useful_p): Likewise.
497 2016-04-20 Jan Hubicka <jh@suse.cz>
500 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
501 (set_nothrow_flag_1): ... this; handle interposition correctly;
502 recurse on aliases and thunks.
503 (cgraph_node::set_nothrow_flag): New.
504 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
505 functions compiled with non-call exceptions that binds to current
507 (propagate_nothrow): Be safe WRT interposition.
508 * cgraph.h (set_nothrow_flag): Update prototype.
510 2016-04-18 Jan Hubicka <jh@suse.cz>
512 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
513 max_loop_iterations_int.
514 (tree_unswitch_outer_loop): Likewise.
516 2016-04-20 Bin Cheng <bin.cheng@arm.com>
518 PR tree-optimization/69489
519 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
520 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
522 (if_convertible_bb_p): Remove check on edge count of basic block's
525 2016-04-20 Bin Cheng <bin.cheng@arm.com>
527 PR tree-optimization/56625
528 PR tree-optimization/69489
529 * tree-data-ref.h (DR_INNERMOST): New macro.
530 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
531 hashing struct innermost_loop_behavior.
532 (ref_DR_map): Remove.
533 (innermost_DR_map): New map.
534 (baseref_DR_map): Revise comment.
535 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
536 to innermost_DR_map accroding to its innermost loop behavior.
537 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
538 to its innermost loop behavior.
539 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
540 Add initialization for innermost_DR_map. Record memory reference
541 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
542 have innermost loop behavior.
543 (if_convertible_loop_p): Remove release for ref_DR_map. Release
546 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
548 * config/i386/i386.md (*lea<mode>_general_1): Rename from
549 *lea_general_1. Use explicit SWI12 mode interator.
550 (*lea<mode>_general_2): Rename from *lea_general_2.
551 Use explicit SWI12 mode interator.
552 (*lea<mode>_general_3): Rename from *lea_general_3.
553 Use explicit SWI12 mode interator.
554 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
555 Use explicit SWI12 mode interator.
556 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
557 Use explicit SWI48 mode interator.
559 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
561 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
562 Short-cut unaligned load and store cases. Handle all integer
564 (ix86_expand_vector_move_misalign): Short-cut unaligned load
565 and store cases. Call ix86_avx256_split_vector_move_misalign
566 directly without checking mode class.
568 2016-04-20 Andrew Pinski <apinski@cavium.com>
569 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
572 * config/aarch64/aarch64.md (sibcall): Force call
573 address to be DImode for ILP32.
574 (sibcall_value): Likewise.
576 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
578 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
580 2016-04-20 Richard Biener <rguenther@suse.de>
582 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
583 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
584 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
585 (maybe_push_res_to_seq): Adjust.
586 * gimple-fold.c (maybe_build_generic_op): Likewise.
588 2016-04-20 Marek Polacek <polacek@redhat.com>
590 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
593 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
595 * config/i386/sse.md (vec_unpacks_lo_hi): Always
596 use kmovw to support AVX512F target.
598 2016-04-20 Bin Cheng <bin.cheng@arm.com>
600 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
602 2016-04-20 Marek Polacek <polacek@redhat.com>
604 PR tree-optimization/70725
605 * tree-if-conv.c (is_false_predicate): New function.
606 (predicate_mem_writes): Use it.
608 2016-04-20 Richard Biener <rguenther@suse.de>
610 PR tree-optimization/70726
611 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
612 shift amounts from a pattern stmt operand.
614 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
617 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
618 stack_restore_from_fpr pattern when restoring r15.
619 (s390_optimize_prologue): Strip away the memory barrier in the
620 parallel when trying to get rid of restore insns.
621 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
622 definition for loading the stack pointer from an FPR. Compared to
623 the normal move insn this pattern includes a full memory barrier.
625 2016-04-19 Jakub Jelinek <jakub@redhat.com>
628 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
629 implicitly linear or lastprivate iterator on the outer context.
631 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
633 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
635 * config/i386/i386.md (ssememalign): Removed.
636 * config/i386/sse.md: Remove ssememalign attribute from patterns.
638 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
641 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
642 const short * to __builtin_ia32_loaddquhi512_mask.
643 (_mm512_maskz_loadu_epi16): Likewise.
644 (_mm512_mask_storeu_epi16): Pass short * to
645 __builtin_ia32_storedquhi512_mask.
646 (_mm512_mask_loadu_epi8): Pass const char * to
647 __builtin_ia32_loaddquqi512_mask.
648 (_mm512_maskz_loadu_epi8): Likewise.
649 (_mm512_mask_storeu_epi8): Pass char * to
650 __builtin_ia32_storedquqi512_mask.
651 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
652 const double * to __builtin_ia32_loadupd512_mask.
653 (_mm512_mask_loadu_pd): Likewise.
654 (_mm512_maskz_loadu_pd): Likewise.
655 (_mm512_storeu_pd): Pass double * to
656 __builtin_ia32_storeupd512_mask.
657 (_mm512_mask_storeu_pd): Likewise.
658 (_mm512_loadu_ps): Pass const float * to
659 __builtin_ia32_loadups512_mask.
660 (_mm512_mask_loadu_ps): Likewise.
661 (_mm512_maskz_loadu_ps): Likewise.
662 (_mm512_storeu_ps): Pass float * to
663 __builtin_ia32_storeups512_mask.
664 (_mm512_mask_storeu_ps): Likewise.
665 (_mm512_mask_loadu_epi64): Pass const long long * to
666 __builtin_ia32_loaddqudi512_mask.
667 (_mm512_maskz_loadu_epi64): Likewise.
668 (_mm512_mask_storeu_epi64): Pass long long *
669 to __builtin_ia32_storedqudi512_mask.
670 (_mm512_loadu_si512): Pass const int * to
671 __builtin_ia32_loaddqusi512_mask.
672 (_mm512_mask_loadu_epi32): Likewise.
673 (_mm512_maskz_loadu_epi32): Likewise.
674 (_mm512_storeu_si512): Pass int * to
675 __builtin_ia32_storedqusi512_mask.
676 (_mm512_mask_storeu_epi32): Likewise.
677 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
678 char * to __builtin_ia32_storedquqi256_mask.
679 (_mm_mask_storeu_epi8): Likewise.
680 (_mm256_mask_loadu_epi16): Pass const short * to
681 __builtin_ia32_loaddquhi256_mask.
682 (_mm256_maskz_loadu_epi16): Likewise.
683 (_mm_mask_loadu_epi16): Pass const short * to
684 __builtin_ia32_loaddquhi128_mask.
685 (_mm_maskz_loadu_epi16): Likewise.
686 (_mm256_mask_loadu_epi8): Pass const char * to
687 __builtin_ia32_loaddquqi256_mask.
688 (_mm256_maskz_loadu_epi8): Likewise.
689 (_mm_mask_loadu_epi8): Pass const char * to
690 __builtin_ia32_loaddquqi128_mask.
691 (_mm_maskz_loadu_epi8): Likewise.
692 (_mm256_mask_storeu_epi16): Pass short * to.
693 __builtin_ia32_storedquhi256_mask.
694 (_mm_mask_storeu_epi16): Pass short * to.
695 __builtin_ia32_storedquhi128_mask.
696 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
697 const double * to __builtin_ia32_loadupd256_mask.
698 (_mm256_maskz_loadu_pd): Likewise.
699 (_mm_mask_loadu_pd): Pass onst double * to
700 __builtin_ia32_loadupd128_mask.
701 (_mm_maskz_loadu_pd): Likewise.
702 (_mm256_mask_storeu_pd): Pass double * to
703 __builtin_ia32_storeupd256_mask.
704 (_mm_mask_storeu_pd): Pass double * to
705 __builtin_ia32_storeupd128_mask.
706 (_mm256_mask_loadu_ps): Pass const float * to
707 __builtin_ia32_loadups256_mask.
708 (_mm256_maskz_loadu_ps): Likewise.
709 (_mm_mask_loadu_ps): Pass const float * to
710 __builtin_ia32_loadups128_mask.
711 (_mm_maskz_loadu_ps): Likewise.
712 (_mm256_mask_storeu_ps): Pass float * to
713 __builtin_ia32_storeups256_mask.
714 (_mm_mask_storeu_ps): ass float * to
715 __builtin_ia32_storeups128_mask.
716 (_mm256_mask_loadu_epi64): Pass const long long * to
717 __builtin_ia32_loaddqudi256_mask.
718 (_mm256_maskz_loadu_epi64): Likewise.
719 (_mm_mask_loadu_epi64): Pass const long long * to
720 __builtin_ia32_loaddqudi128_mask.
721 (_mm_maskz_loadu_epi64): Likewise.
722 (_mm256_mask_storeu_epi64): Pass long long * to
723 __builtin_ia32_storedqudi256_mask.
724 (_mm_mask_storeu_epi64): Pass long long * to
725 __builtin_ia32_storedqudi128_mask.
726 (_mm256_mask_loadu_epi32): Pass const int * to
727 __builtin_ia32_loaddqusi256_mask.
728 (_mm256_maskz_loadu_epi32): Likewise.
729 (_mm_mask_loadu_epi32): Pass const int * to
730 __builtin_ia32_loaddqusi128_mask.
731 (_mm_maskz_loadu_epi32): Likewise.
732 (_mm256_mask_storeu_epi32): Pass int * to
733 __builtin_ia32_storedqusi256_mask.
734 (_mm_mask_storeu_epi32): Pass int * to
735 __builtin_ia32_storedqusi128_mask.
736 * config/i386/i386-builtin-types.def (PCSHORT): New.
738 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
739 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
740 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
741 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
742 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
743 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
744 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
745 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
746 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
747 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
748 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
749 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
750 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
751 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
752 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
753 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
754 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
755 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
756 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
757 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
758 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
759 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
760 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
761 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
762 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
763 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
764 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
765 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
766 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
767 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
768 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
769 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
770 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
771 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
772 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
773 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
774 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
775 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
776 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
777 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
778 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
779 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
780 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
781 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
782 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
783 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
784 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
785 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
786 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
788 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
789 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
791 (ix86_expand_vector_move_misalign): Likewise.
792 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
793 to scalar function prototype for unaligned load/store builtins.
794 (ix86_expand_special_args_builtin): Updated.
795 * config/i386/sse.md (UNSPEC_LOADU): Removed.
796 (UNSPEC_STOREU): Likewise.
797 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
798 (VI_ULOADSTORE_F_AVX512VL): Likewise.
799 (ssescalarsize): Handle V4TI, V2TI and V1TI.
800 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
801 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
802 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
803 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
804 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
805 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
806 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
807 (<avx512>_storedqu<mode>_mask): Likewise.
808 (*sse4_2_pcmpestr_unaligned): Likewise.
809 (*sse4_2_pcmpistr_unaligned): Likewise.
810 (*mov<mode>_internal): Renamed to ...
811 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
812 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
813 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
814 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
816 2016-04-19 Richard Biener <rguenther@suse.de>
818 PR tree-optimization/70171
819 * tree-ssa-phiprop.c: Include stor-layout.h.
820 (phiprop_insert_phi): Handle the aggregate copy case.
821 (propagate_with_phi): Likewise.
823 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
825 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
826 instead of simplify_gen_subreg (... , 0).
827 (ix86_delegitimize_address): Ditto.
828 (ix86_split_divmod): Ditto.
829 (ix86_split_copysign_const): Ditto.
830 (ix86_split_copysign_var): Ditto.
831 (ix86_expand_args_builtin): Ditto.
832 (ix86_expand_round_builtin): Ditto.
833 (ix86_expand_special_args_builtin): Ditto.
834 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
835 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
837 (absneg splitters): Ditto.
838 (*jcc_bt<mode>_1): Ditto.
840 2016-04-19 Richard Biener <rguenther@suse.de>
842 PR tree-optimization/70724
843 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
844 restoring out from ...
845 (free_scc_vn): ... here.
846 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
847 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
849 (pass_fre::execute): Restore SSA info.
851 2016-04-19 Richard Biener <rguenther@suse.de>
853 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
854 * gimple-walk.c (walk_gimple_op): Initialize it.
855 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
856 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
857 remapping SSA names of defs.
858 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
861 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
864 * lra-constraints.c (equiv_substition_p): New.
865 (process_alt_operands): Use it.
866 (swap_operands): Swap it.
867 (curr_insn_transform): Update it.
869 2016-04-18 Michael Matz <matz@suse.de>
871 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
872 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
873 * tree-core.h (tree_type_common.align): Use bit-field.
874 (tree_type_common.spare): New.
875 (tree_decl_common.off_align): Make smaller.
876 (tree_decl_common.align): Use bit-field.
878 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
879 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
880 (scan_sharing_clauses): Ditto.
881 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
882 (omp_finish_file): Ditto.
883 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
884 (layout_decl): Ditto.
885 (relayout_decl): Ditto.
886 (finalize_record_size): Use SET_TYPE_ALIGN.
887 (finalize_type_size): Ditto.
888 (finish_builtin_struct): Ditto.
889 (layout_type): Ditto.
890 (initialize_sizetypes): Ditto.
891 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
892 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
893 (lookup_field_for_decl): Use SET_DECL_ALIGN.
894 (get_chain_field): Ditto.
895 (get_trampoline_type): Ditto.
896 (get_nl_goto_field): Ditto.
897 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
899 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
900 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
901 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
902 (build_qualified_type): Use SET_TYPE_ALIGN.
903 (build_aligned_type, build_range_type_1): Ditto.
904 (build_atomic_base): Ditto.
905 (build_common_tree_nodes): Ditto.
906 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
907 (expand_one_stack_var_at): Ditto.
908 * coverage.c (build_var): Use SET_DECL_ALIGN.
909 * except.c (init_eh): Ditto.
910 * function.c (assign_parm_setup_block): Ditto.
911 * symtab.c (increase_alignment_1): Ditto.
912 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
913 * tree-vect-stmts.c (ensure_base_align): Ditto.
914 * varasm.c (align_variable): Ditto.
915 (assemble_variable): Ditto.
916 (build_constant_desc): Ditto.
917 (output_constant_def_contents): Ditto.
919 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
920 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
921 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
922 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
923 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
925 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
928 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
929 replace %vmovsd with "%vmovq".
930 (vec_concatv2df): Likewise.
932 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
934 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
935 (*vec_extractv2si_0): Ditto.
936 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
937 (zero_extended_scalar_load_operand splitters): Ditto.
938 (vec_extract splitters): Ditto.
939 (*vec_extractv4si_0_zext): Ditto.
940 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
942 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
943 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
944 (*sse4_1_extractps): Use lowpart_subreg.
946 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
948 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
950 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
951 Mention Solaris 11 packaging changes.
952 Update gas and gld requirements.
953 Remove reference to pre-Solaris 10 bug.
954 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
956 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
959 2016-04-17 Jan Hubicka <jh@suse.cz>
961 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
962 max_loop_iterations_int.
964 2016-04-18 Richard Biener <rguenther@suse.de>
966 PR tree-optimization/43434
967 * tree-ssa-structalias.c (struct vls_data): New.
968 (visit_loadstore): Handle all pointer-based accesses.
969 (compute_dependence_clique): Compute a bitmap of restrict tags
970 assigned bases and pass it to visit_loadstore.
972 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
975 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
976 armv8.1-a and armv8.1-a+crc.
978 2016-04-18 Richard Biener <rguenther@suse.de>
980 PR tree-optimization/70701
981 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
982 references after translating through a memcpy.
984 2016-04-18 Richard Biener <rguenther@suse.de>
986 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
987 (compute_antic): ... here. For partial antic use regular
988 postorder and scrap iteration.
989 (compute_partial_antic_aux): Remove unused return value.
990 (init_pre): Do not allocate postorder.
991 (fini_pre): Do not free postorder.
993 2016-04-18 Richard Biener <rguenther@suse.de>
996 * expmed.c (extract_bit_field_1): Remove broken case
997 using a wider MODE_INT mode.
999 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
1001 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
1002 unless compiling with at least GCC-4.8.
1004 2016-04-17 Jan Hubicka <jh@suse.cz>
1007 * graphite.c (graphite_finalize): Update call to
1008 tree_estimate_probability.
1009 * predict.h (tree_estimate_probability): Update prototype.
1011 2016-04-17 Jan Hubicka <jh@suse.cz>
1013 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
1014 (tree_estimate_probability): Likewise.
1015 (pass_profile::execute): Update.
1016 (report_predictor_hitrates): New function.
1017 * profile.c (compute_branch_probabilities): Use it.
1018 * predict.h (report_predictor_hitrates): Declare.
1020 2016-04-17 Jan Hubicka <jh@suse.cz>
1023 * cgraph.h (cgraph_node::set_const_flag,
1024 cgraph_node::set_pure_flag): Update prototype to return bool;
1026 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
1027 of interposable symbol are interposable, too.
1028 (cgraph_set_const_flag_1): Rename to ...
1029 (set_const_flag_1): ... this one; change to self recursive function
1030 instead of call_for_symbol_thunks_and_aliases. Handle correctly
1031 clearnig the flag in all variants and also virtual thunks of const
1032 functions are pure; track if any change was done.
1033 (cgraph_node::set_const_flag): Update.
1034 (struct set_pure_flag_info): New struct.
1035 (cgraph_set_pure_flag_1): Rename to ...
1036 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
1037 rather than pointer encoded flags; track if any changes was done;
1038 handle correctly clearning flag and setting flag of aliases already
1040 (cgraph_node::set_pure_flag): Update.
1041 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
1043 2016-04-17 Tom de Vries <tom@codesourcery.com>
1046 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
1049 2016-04-17 Tom de Vries <tom@codesourcery.com>
1051 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
1052 '{}<> ' as escape-for-record.
1054 2016-04-17 Tom de Vries <tom@codesourcery.com>
1056 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
1059 2016-04-17 Tom de Vries <tom@codesourcery.com>
1062 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
1063 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
1064 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
1065 * passes.c (finish_optimization_passes): Only call
1066 finish_graph_dump_file if dfi->graph_dump_initialized.
1067 (execute_function_dump, pass_init_dump_file): Use
1068 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
1070 2016-04-17 Tom de Vries <tom@codesourcery.com>
1072 PR tree-optimization/70256
1073 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
1074 (debug_varmap): New function.
1076 2016-04-17 Tom de Vries <tom@codesourcery.com>
1079 * passes.c (pass_manager::register_pass): Propagate pflags.
1081 2016-04-17 Tom de Vries <tom@codesourcery.com>
1084 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
1085 * passes.c (pass_manager::pass_manager): Declare and init p_start in
1086 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
1087 check if it's equal to p_start.
1088 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
1090 2016-04-15 Jan Hubicka <jh@suse.cz>
1093 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
1094 function does not bind to current def.
1095 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
1096 handle conservatively calls to functions that does not need to bind
1098 (check_call): Update call of worse_state.
1099 (ignore_edge_for_nothrow): Update.
1100 (ignore_edge_for_pure_const): Likewise.
1101 (propagate_pure_const): Update calls to worse_state.
1102 (skip_function_for_local_pure_const): Reformat comments.
1104 2016-04-15 Jan Hubicka <jh@suse.cz>
1107 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
1108 (cgraph_node::function_symbol): Likewise.
1109 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
1110 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
1111 (symtab_node::ultimate_alias_target): Add REF parameter.
1112 (symtab_node::binds_to_current_def_p): Declare.
1113 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
1114 (cgraph_node::function_symbol): Likewise.
1115 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
1116 (cgraph_node::get_availability): Likewise.
1117 (cgraph_edge::binds_to_current_def_p): New inline function.
1118 (varpool_node::get_availability): Add REF parameter.
1119 (varpool_node::ultimate_alias_target): Likewise.
1120 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
1121 (symtab_node::binds_to_current_def_p): Likewise.
1122 * varpool.c (varpool_node::get_availability): Likewise.
1124 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
1127 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
1128 Fix mode size check.
1130 2016-04-15 Jakub Jelinek <jakub@redhat.com>
1132 * BASE-VER: Set to 7.0.0.
1134 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
1136 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
1138 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1140 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
1141 architecture revisions.
1143 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
1145 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
1146 * config/i386/i386.c (ix86_using_red_zone): No longer static.
1147 * config/i386/i386.md (stack decrement to push peepholes): Guard
1148 with !x86_using_red_zone ().
1150 2016-04-15 Jakub Jelinek <jakub@redhat.com>
1153 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
1154 to dump_generic_node.
1155 (NIY): Pass also flags to do_niy.
1157 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
1159 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
1160 (simd_clone_vector_of_formal_parm_types)
1161 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
1162 (simd_clone_mangle, simd_clone_create)
1163 (simd_clone_adjust_return_type, create_tmp_simd_array)
1164 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
1165 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
1166 (ipa_simd_modify_function_body, simd_clone_linear_addend)
1167 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
1168 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
1169 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
1170 * omp-simd-clone.c: ... this new file.
1171 (simd_clone_vector_of_formal_parm_types): Make it static.
1172 * Makefile.in (OBJS): Add omp-simd-clone.o.
1174 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
1177 * config/i386/sse.md: Use proper memory operand modifiers.
1180 2016-04-15 Richard Biener <rguenther@suse.de>
1181 Alan Modra <amodra@gmail.com>
1183 PR tree-optimization/70130
1184 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
1185 when alignment stays not the same and no not use the realign
1188 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1191 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
1192 direct move handlers for KFmode. Change TFmode handlers test from
1193 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
1195 2016-04-14 Jakub Jelinek <jakub@redhat.com>
1198 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
1199 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
1200 (inlined_polymorphic_ctor_dtor_block_p): Use it.
1201 * tree-ssa-live.c (remove_unused_scope_block_p): When
1202 in_ctor_dtor_block, avoid discarding not just BLOCKs with
1203 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
1204 block_ultimate_origin is FUNCTION_DECL.
1205 (remove_unused_locals): If current_function_decl is
1206 polymorphic_ctor_dtor_p, pass initial true to
1207 remove_unused_scope_block_p' is_ctor_dtor_block.
1209 2016-04-14 Martin Sebor <msebor@redhat.com>
1214 * doc/extend.texi (Variable Length): Revert.
1216 2016-04-14 Marek Polacek <polacek@redhat.com>
1217 Jan Hubicka <hubicka@ucw.cz>
1220 * tree.c (verify_type): Disable the canonical type of main variant
1223 2016-04-14 Jason Merrill <jason@redhat.com>
1225 * cfgexpand.c, expr.c: Revert previous change.
1227 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
1230 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
1231 when building a mem ref for the incoming reduction variable.
1233 2016-04-14 Richard Biener <rguenther@suse.de>
1235 PR tree-optimization/70614
1236 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
1237 loop if the evolution dropped to chrec_dont_know.
1238 (interpret_condition_phi): Likewise.
1240 2016-04-14 Richard Biener <rguenther@suse.de>
1242 PR tree-optimization/70623
1243 * tree-ssa-pre.c (changed_blocks): Make global ...
1244 (compute_antic): ... local here. Move and fix worklist
1245 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
1246 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
1247 worklist handling, dump when ANTIC_IN changed.
1248 (compute_partial_antic_aux): Remove worklist handling.
1249 (init_pre): Do not compute post dominators. Add a comment about
1250 the CFG order chosen.
1251 (fini_pre): Do not free post dominators.
1253 2016-04-13 Martin Sebor <msebor@redhat.com>
1258 * doc/extend.texi (Variable Length): Document C++ specifics.
1260 2016-04-13 Jakub Jelinek <jakub@redhat.com>
1263 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
1264 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
1265 eh edges have been purged.
1268 * tree-sra.c (create_access_replacement,
1269 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
1271 * tree-pretty-print.c (dump_fancy_name): New function.
1272 (dump_decl_name, dump_generic_node): Use it.
1274 2016-04-13 Jason Merrill <jason@redhat.com>
1276 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
1277 * expr.c (expand_expr_real_1): Likewise.
1279 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
1281 * config/i386/i386.md (kunpckhi): Swap operands.
1282 (kunpcksi): Likewise.
1283 (kunpckdi): Likewise.
1284 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
1285 (vec_pack_trunc_<mode>): Likewise.
1287 2016-04-13 Jakub Jelinek <jakub@redhat.com>
1290 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
1293 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
1294 gimplification turns some element into non-constant.
1297 * rtl.h (convert_memory_address_addr_space_1): New prototype.
1298 * explow.c (convert_memory_address_addr_space_1): No longer static,
1299 add NO_EMIT argument and don't call convert_modes if true, pass
1300 it down recursively, remove break after return.
1301 (convert_memory_address_addr_space): Adjust caller.
1302 * simplify-rtx.c (simplify_unary_operation_1): Call
1303 convert_memory_address_addr_space_1 instead of convert_memory_address,
1304 if it returns NULL, don't simplify.
1306 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
1309 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
1311 2016-04-12 Jakub Jelinek <jakub@redhat.com>
1313 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1314 Bump the upper SIMDLEN limits, so that if the return type or
1315 characteristic type if the return type is void can be passed in
1316 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
1319 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1322 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
1323 Do not use "=" constraint on an input constraint.
1324 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
1325 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
1326 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
1327 generates (neg (abs ...)) instead of (abs ...).
1329 2016-04-12 Jakub Jelinek <jakub@redhat.com>
1331 PR rtl-optimization/70596
1332 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
1333 just invalidate LRA data and reset them. Adjust dump wording.
1335 2016-04-12 Martin Liska <mliska@suse.cz>
1338 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
1340 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
1342 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
1343 max_loop_iterations_int.
1344 (tree_unswitch_outer_loop): Likewise.
1345 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
1346 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
1348 2016-04-12 Tom de Vries <tom@codesourcery.com>
1350 PR tree-optimization/68756
1351 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
1352 instead of new_name.
1354 2016-04-12 Jakub Jelinek <jakub@redhat.com>
1356 PR tree-optimization/70602
1357 * tree-sra.c (generate_subtree_copies): Don't write anything into
1358 constant pool decls.
1360 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
1361 regardless whether there are depend clauses or not.
1363 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1366 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
1367 target attribute and pragma from changing the -mfloat128
1368 and -mfloat128-hardware options.
1370 * doc/extend.texi (Additional Floating Types): Document PowerPC
1371 __float128 restrictions.
1373 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
1376 * config/aarch64/driver-aarch64.c
1377 (aarch64_get_extension_string_for_isa_flags): New.
1378 (arch_extension): Rename to...
1379 (aarch64_arch_extension): ...This.
1380 (ext_to_feat_string): Rename to...
1381 (aarch64_extensions): ...This.
1382 (aarch64_core_data): Keep track of architecture extension flags.
1383 (cpu_data): Rename to...
1384 (aarch64_cpu_data): ...This.
1385 (aarch64_arch_driver_info): Keep track of architecture extension
1387 (get_arch_name_from_id): Rename to...
1388 (get_arch_from_id): ...This, change return type.
1389 (host_detect_local_cpu): Update and reformat for renames, handle
1390 extensions through common infrastructure.
1392 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
1395 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
1396 track of a canonical flag name.
1397 (all_extensions): Likewise.
1398 (arch_to_arch_name): Also track extension flags enabled by the arch.
1399 (all_architectures): Likewise.
1400 (aarch64_parse_extension): Move to here.
1401 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
1403 (aarch64_rewrite_selected_cpu): Update for above change.
1404 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
1405 are handled, such that the single explicit value enabled by an
1406 extension is kept seperate from the implicit values it also enables.
1407 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
1409 (aarch64_parse_extension): New.
1410 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
1411 here to config/aarch64/aarch64-protos.h.
1412 (aarch64_parse_extension): Move from here to
1413 common/config/aarch64/aarch64-common.c.
1414 (aarch64_option_print): Update.
1415 (aarch64_declare_function_name): Likewise.
1416 (aarch64_start_file): Likewise.
1417 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
1418 the canonical flag for extensions.
1419 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
1422 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
1424 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
1427 2016-04-09 Tom de Vries <tom@codesourcery.com>
1429 PR tree-optimization/68953
1430 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
1431 first to last subscript.
1433 2016-04-09 Jakub Jelinek <jakub@redhat.com>
1435 PR tree-optimization/70586
1436 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
1439 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
1443 PR tree-optimization/70373
1447 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
1448 clauses for acc parallel reductions as necessary. Error on those
1450 * omp-low.c (scan_sharing_clauses): Don't install variables which
1451 are used in acc parallel reductions.
1452 (lower_rec_input_clauses): Remove dead code.
1453 (lower_oacc_reductions): Add support for reference reductions.
1454 (lower_reduction_clauses): Remove dead code.
1455 (lower_omp_target): Don't remap variables appearing in acc parallel
1457 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
1459 2016-04-08 Jakub Jelinek <jakub@redhat.com>
1462 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
1463 with multiple SSA_NAME defs, force the outputs other than first
1464 to be live before calling live_track_process_def on each output.
1466 PR rtl-optimization/70574
1467 * fwprop.c (forward_propagate_and_simplify): Don't add
1468 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
1469 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
1470 paradoxical subregs within *loc.
1472 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
1474 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
1475 -ftree-parallelize-loops={0,1}.
1476 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
1477 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
1478 * config/ia64/hpux.h (LIB_SPEC): Likewise.
1479 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
1480 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
1482 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
1485 * asan.c (instrument_derefs): If we get unknown location, extract it
1487 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
1489 2016-04-08 Tom de Vries <tom@codesourcery.com>
1491 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
1492 implicit firstprivate clause.
1494 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1497 * config/arm/thumb2.md (tst + branch-> lsls + branch
1498 peephole below *orsi_not_shiftsi_si): Require that condition
1499 register is dead after the peephole.
1500 (second peephole after the above): Likewise.
1502 2016-04-08 Alan Modra <amodra@gmail.com>
1505 * builtins.c (fold_builtin_classify): For IBM extended precision,
1506 look at just the high-order double to test for NaN.
1507 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
1508 test just the high double for Inf but both doubles for subnormal
1511 2016-04-07 Jakub Jelinek <jakub@redhat.com>
1513 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
1514 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
1515 node->simdclone->mask_mode != VOIDmode masks.
1516 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
1517 earlier, use it instead of node->simdclone.
1518 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1519 Set clonei->mask_mode.
1521 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
1524 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
1525 Pass it through to cp_parser_already_scoped_statement.
1526 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
1527 it through to cp_parser_statement.
1528 (cp_parser_statement): Pass IF_P through to
1529 cp_parser_iteration_statement.
1530 (cp_parser_pragma): Adjust call to
1531 cp_parser_iteration_statement.
1533 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
1536 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
1537 resolve a future -Wparentheses warning.
1538 * omp-low.c (scan_sharing_clauses): Likewise.
1539 * tree-parloops.c (eliminate_local_variables): Likewise.
1541 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
1543 PR rtl-optimization/70398
1544 * lra-constraints.c (process_address_1): Check zero scale and code
1545 for reloading with zero scale.
1547 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
1549 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
1550 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
1552 2016-04-06 Jakub Jelinek <jakub@redhat.com>
1554 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1555 Add support for AVX512F clones, include them by default for
1556 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
1557 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
1561 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
1562 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
1563 firstprivate clauses.
1564 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
1565 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
1566 (lower_omp_target): Set TREE_NO_WARNING for
1567 non-addressable possibly uninitialized vars which are copied into
1568 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
1570 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
1572 * config/pa/predicates.md (integer_store_memory_operand): Accept
1573 REG+D operands with a large offset when reload_in_progress is true.
1574 (floating_point_store_memory_operand): Likewise.
1576 2016-04-05 Jakub Jelinek <jakub@redhat.com>
1579 * match.pd (nested int casts): Limit to GIMPLE.
1581 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
1584 * ipa-devirt.c (maybe_record_node): Fix comment; use
1585 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
1587 2016-04-05 Jakub Jelinek <jakub@redhat.com>
1589 PR rtl-optimization/70542
1590 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
1591 if there are any uses other than insn or debug insns.
1593 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
1594 Jakub Jelinek <jakub@redhat.com>
1596 PR tree-optimization/70509
1597 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
1598 Shift HOST_WIDE_INT_1U instead of 1.
1600 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
1602 PR tree-optimization/70509
1603 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
1604 of the vector base type for index.
1606 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
1609 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
1611 2016-04-05 Richard Biener <rguenther@suse.de>
1613 PR tree-optimization/70526
1614 * tree-sra.c (build_ref_for_offset): Use prev_base to
1615 extract the alias pointer type.
1617 2016-04-05 Richard Biener <rguenther@suse.de>
1619 * dse.c (struct store_info): Remove alias_set member.
1620 (struct read_info_type): Likewise.
1621 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
1622 spill_deleted, clear_alias_set_lookup): Remove.
1623 (get_group_info): Remove dead base == NULL_RTX case.
1624 (dse_step0): Remove initialization of removed variables.
1625 (delete_dead_store_insn): Reomve alias set dumping.
1626 (free_read_records): Remove alias_set handling.
1627 (canon_address): Remove alias_set_out parameter.
1628 (record_store): Remove spill_alias_set, it's always zero.
1629 (check_mem_read_rtx): Likewise.
1630 (dse_step2): Rename from ...
1631 (dse_step2_nospill): ... this. Adjust.
1632 (scan_stores): Rename from ...
1633 (scan_stores_nospill): ... this.
1634 (scan_reads): Rename from ...
1635 (scan_reads_nospill): ... this.
1636 (scan_stores_spill, scan_reads_spill): Remove.
1637 (dse_step3_scan): Remove for_spills argument which is always false.
1638 (dse_step3): Likewise.
1639 (dse_step5): Rename from ...
1640 (dse_step5_nospill): ... this. Remove alias_set handling.
1641 (rest_of_handle_dse): Adjust.
1643 2016-04-05 Jakub Jelinek <jakub@redhat.com>
1646 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
1647 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
1648 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
1649 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
1651 2016-04-05 Richard Biener <rguenther@suse.de>
1654 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
1655 non-register type temporaries into SSA.
1657 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
1660 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
1661 calls when sanitizing.
1662 (possible_polymorphic_call_target_p): Fix formatting.
1664 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1665 Jakub Jelinek <jakub@redhat.com>
1668 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
1669 to ensure a call statement is compatible with a built-in's
1671 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
1674 2016-04-04 Richard Biener <rguenther@suse.de>
1676 PR rtl-optimization/70484
1677 * rtl.h (canon_output_dependence): Declare.
1678 * alias.c (canon_output_dependence): New function.
1679 * dse.c (record_store): Use canon_output_dependence rather
1680 than canon_true_dependence.
1682 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
1685 * cgraph.h (symtab_node::copy_visibility_from): New function.
1686 * symtab.c (symtab_node::copy_visibility_from): New function.
1687 * ipa-visibility.c (optimize_weakref): New function.
1688 (function_and_variable_visibility): Use it.
1690 2016-04-04 Martin Liska <mliska@suse.cz>
1693 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
1694 value that is really in range handled by SBR instruction.
1695 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
1696 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
1697 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
1699 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
1703 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
1704 set, but not for SP_REG operands.
1706 2016-04-02 Martin Sebor <msebor@redhat.com>
1709 * fold-const.c (maybe_nonzero_address): New function.
1710 (fold_comparison): Call it. Fold equality and relational
1711 expressions involving null pointers.
1712 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
1714 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
1716 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
1717 the "Y" constraint (scalar FP 0.0 immediate).
1719 * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
1720 Add the "const_double" to the list of operand constraints.
1722 2016-04-01 Jakub Jelinek <jakub@redhat.com>
1724 PR rtl-optimization/70467
1725 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
1726 If low word of the last operand is 0, just emit addition/subtraction
1729 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1732 * config/s390/s390.c (s390_expand_insv): Check for everything
1733 constant instead of just VOIDmode stuff.
1735 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1738 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
1740 2016-04-01 Nathan Sidwell <nathan@acm.org>
1742 * tree.def (TRY_CATCH_EXPR): Correct documentation.
1744 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
1746 PR rtl-optimization/70461
1747 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
1750 2016-03-31 Martin Liska <mliska@suse.cz>
1753 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
1754 a tree value or an immediate integer value to a buffer
1755 that is eventually copied to a BRIG section.
1756 (emit_immediate_operand): Call the function here.
1757 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
1758 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
1759 of class' fields that are removed.
1760 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
1761 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
1762 m_brig_repr_size fields.
1764 2016-03-31 Martin Liska <mliska@suse.cz>
1767 * hsa-gen.c (hsa_function_representation::update_dominance): New
1769 (convert_addr_to_flat_segment): Likewise.
1770 (gen_hsa_memory_set): New alignment argument.
1771 (gen_hsa_ctor_assignment): Likewise.
1772 (gen_hsa_insns_for_single_assignment): Provide alignment
1773 to gen_hsa_ctor_assignment.
1774 (gen_hsa_insns_for_direct_call): Add new argument.
1775 (expand_lhs_of_string_op): New function.
1776 (expand_string_operation_builtin): Likewise.
1777 (expand_memory_copy): New function.
1778 (expand_memory_set): New function.
1779 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
1780 (convert_switch_statements): Change signature.
1781 (generate_hsa): Use a return value of the function.
1782 (pass_gen_hsail::execute): Do not call
1783 convert_switch_statements here.
1784 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
1785 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
1786 (hsa_function_representation::update_dominance): New function.
1788 2016-03-31 Martin Liska <mliska@suse.cz>
1791 * hsa-brig.c (emit_directive_variable): Emit alignment
1792 according to hsa_symbol::m_align.
1793 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
1794 (dump_hsa_symbol): Dump alignment of HSA symbols.
1795 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
1796 (gen_hsa_addr_with_align): New function.
1797 (hsa_bitmemref_alignment): Use newly added function.
1798 (gen_hsa_insns_for_load): Likewise.
1799 (gen_hsa_insns_for_store): Likewise.
1800 (gen_hsa_memory_copy): New argument added.
1801 (gen_hsa_insns_for_single_assignment): Respect
1802 alignment for assignments processed via gen_hsa_memory_copy.
1803 (gen_hsa_insns_for_direct_call): Likewise.
1804 (gen_hsa_insns_for_return): Likewise.
1805 (gen_function_def_parameters): Set default alignment.
1806 * hsa.c (hsa_object_alignment): New function.
1807 (hsa_byte_alignment): Pasted function.
1808 * hsa.h (hsa_symbol::m_align): New field.
1810 2016-03-31 Bin Cheng <bin.cheng@arm.com>
1812 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
1813 scratch field for goto case.
1815 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
1817 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
1819 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
1822 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
1823 (scalar_chain::convert_insn): Call convert_op for reg
1824 moves to handle undefined registers.
1826 2016-03-31 Nathan Sidwell <nathan@acm.org>
1829 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
1830 Assert we don't want to move backwards.
1832 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
1835 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
1837 2016-03-31 Jakub Jelinek <jakub@redhat.com>
1839 PR rtl-optimization/70460
1840 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
1841 with operand from REG_LABEL_OPERAND, instead substitute
1842 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
1843 Don't do anything for REG_NON_LOCAL_GOTO jumps.
1845 2016-03-31 Martin Liska <mliska@suse.cz>
1847 * passes.c (execute_one_pass): Do not call
1848 todo_after for a discarded function.
1850 2016-03-31 Bin Cheng <bin.cheng@arm.com>
1852 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
1853 (no_cost, infinite_cost): Initialize the new field.
1854 (get_computation_cost_at): Record setup cost.
1855 (determine_use_iv_cost_address): Skip cost computation for sub
1856 uses if we can estimate it without losing accuracy.
1858 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
1860 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
1862 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
1863 max_loop_iterations_int.
1864 (tree_unswitch_outer_loop): Likewise.
1865 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
1866 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
1868 2016-03-30 Richard Biener <rguenther@suse.de>
1871 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
1873 2016-03-30 Jakub Jelinek <jakub@redhat.com>
1876 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
1877 in gen_blendm expander.
1879 2016-03-30 Nick Clifton <nickc@redhat.com>
1882 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
1883 case where we are already provided with an SImode SUBREG.
1885 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
1888 * config/i386/i386.c (ix86_expand_epilogue): Properly check
1889 conflict between DRAP register and __builtin_eh_return.
1891 2016-03-30 Michael Matz <matz@suse.de>
1892 Richard Biener <rguenther@suse.de>
1895 * ipa-polymorphic-call.c (struct type_change_info): Change
1896 speculative to an unsigned allowing to limit the work we do.
1897 (csftc_abort_walking_p): New inline function..
1898 (check_stmt_for_type_change): Limit the number of may-defs
1899 skipped for speculative devirtualization to
1900 max-speculative-devirt-maydefs.
1901 * params.def (max-speculative-devirt-maydefs): New param.
1902 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
1904 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
1907 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
1910 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
1912 PR tree-optimization/59124
1913 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
1914 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
1916 2016-03-29 Jeff Law <law@redhat.com>
1918 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
1920 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
1922 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
1925 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
1927 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
1928 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
1929 gcrt0.o if linking dynamically.
1931 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
1934 * ipa-devirt.c (methods_equal_p): New function.
1935 (compare_virtual_tables): Use it.
1936 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
1937 * cgraphclones.c (clone_function_name_1): Use
1938 symbol_table::symbol_suffix_separator.
1939 * coverage.c (build_var): Likewise.
1940 * symtab.c (symbol_table::symbol_suffix_separator): New.
1942 2016-03-29 Jakub Jelinek <jakub@redhat.com>
1944 PR rtl-optimization/70429
1945 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
1946 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
1947 mode != result_mode.
1950 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
1952 PR tree-optimization/70405
1953 * ssa-iterators.h (num_imm_uses): Add missing braces.
1955 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
1957 PR rtl-optimization/68695
1958 * ira-color.c (allocno_copy_cost_saving): New.
1959 (improve_allocation): Use it.
1961 2016-03-29 Richard Henderson <rth@redhat.com>
1964 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
1966 2016-03-29 Richard Biener <rguenther@suse.de>
1969 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
1970 use alignment returned by get_pointer_alignment_1 if it is
1971 bigger than BITS_PER_UNIT.
1972 * builtins.c (get_pointer_alignment_1): Do not return true
1973 for alignment extracted from SSA info.
1975 2016-03-28 James Bowman <james.bowman@ftdichip.com>
1977 * config/ft32/ft32.opt (mnodiv): New.
1978 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
1979 * doc/invoke.texi (FT32 Options -mnodiv): New.
1981 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
1984 * config/i386/i386.md (define_split, andn): Fix modes.
1986 2016-03-26 Richard Biener <rguenther@suse.de>
1987 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1990 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
1992 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
1993 as 2nd argument to cl_optimization_restore().
1995 2016-03-25 Richard Henderson <rth@redhat.com>
1998 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
1999 * config/aarch64/aarch64-protos.h: Declare it.
2000 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
2002 2016-03-25 Alan Modra <amodra@gmail.com>
2005 * config/rs6000/constraints.md (j): Simplify.
2006 * config/rs6000/predicates.md (easy_fp_constant): Exclude
2008 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
2009 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
2010 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
2011 in all constraint alternatives.
2012 (movtd_64bit_nodm): Delete "j" constraint alternative.
2014 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
2016 * tree-ssa-propagate.c: Enhance docs for
2017 SSA_PROP_NOT_INTERESTING.
2019 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
2021 * doc/extend.texi: Fix typo in documentation to pure attribute.
2023 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
2026 * config/pa/pa.md (bswapdi2): Use a scratch register.
2028 2016-03-24 Richard Henderson <rth@redhat.com>
2031 * fold-const.c (extract_muldiv_1): Correct test for multiplication
2034 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
2036 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
2037 using ix86_expand_binary_operator instead of gen_andsi3.
2039 2016-03-24 Richard Biener <rguenther@suse.de>
2041 PR tree-optimization/70396
2042 * tree-vect-stmts.c (vectorizable_comparison): Use
2043 get_vectype_for_scalar_type.
2045 2016-03-24 Richard Biener <rguenther@suse.de>
2048 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
2049 with register bases.
2051 2016-03-24 Richard Biener <rguenther@suse.de>
2053 PR tree-optimization/70372
2054 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
2055 build_all_ones_cst to also handle vector types correctly.
2057 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
2060 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
2063 2016-03-23 Marek Polacek <polacek@redhat.com>
2066 * doc/invoke.texi: Document -Wignored-attributes.
2068 2016-03-23 Bin Cheng <bin.cheng@arm.com>
2070 PR tree-optimization/69042
2071 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
2072 parameter from 30 to 40.
2074 2016-03-23 Bin Cheng <bin.cheng@arm.com>
2076 PR tree-optimization/69042
2077 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
2078 for use with constant offset stripped in base.
2080 2016-03-23 Richard Biener <rguenther@suse.de>
2083 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
2084 mode compatibility check.
2085 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
2087 2016-03-23 Jeff Law <law@redhat.com>
2089 PR tree-optimization/64058
2090 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
2092 (struct ssa_conflicts): Move up earlier in the file.
2093 (conflicts_, var_map_): New static variables.
2094 (initialize_conflict_count): New function to initialize the
2095 CONFLICT_COUNT field for each conflict pair.
2096 (compare_pairs): Lazily initialize the conflict count and use it
2097 as the first tie-breaker.
2098 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
2099 and wipe conflicts_ and map_ around the call to qsort. Remove
2100 special case for 2 coalesce pairs.
2101 * bitmap.c (bitmap_count_unique_bits): New function.
2102 (bitmap_count_bits_in_word): New function, extracted from
2104 (bitmap_count_bits): Use bitmap_count_bits_in_word.
2105 * bitmap.h (bitmap_count_unique_bits): Declare it.
2107 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2110 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
2111 transparent alias chain for decl assembler name.
2112 * config/sol2.c (solaris_assemble_visibility): Likewise.
2114 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2116 * config/arm/arm1020e.md (1020call_op): Reduce reservation
2118 (v10_fdivs): Likewise.
2119 (v10_fdivd): Likewise.
2121 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2124 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
2125 to not call fclose twice on file.
2127 2016-03-23 Jakub Jelinek <jakub@redhat.com>
2129 PR tree-optimization/70354
2130 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
2131 oprnd0 is wider than oprnd1 and there is a cast from the wider
2132 type to oprnd1, mask it with the mask of the narrower type.
2135 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
2136 Optimize TARGET_STV splitters, if high or low word of last argument
2139 2016-03-22 Jeff Law <law@redhat.com>
2142 tree-ssa-threadbackward.c
2143 (fsm_find_control_statement_thread_paths): Correctly distinguish
2144 between old style jump threads vs FSM jump threads.
2146 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
2149 * config/i386/i386.c (scalar_chain::convert_op): Support
2150 uninitialized register usage case.
2152 2016-03-22 Richard Biener <rguenther@suse.de>
2155 * genmatch.c (gen_transform): Adjust last parameter to a three-state
2157 (capture::gen_transform): ... to change behavior when substituting
2158 a condition into cond or not-cond expr context.
2159 (dt_simplify::gen_1): Adjust.
2160 * gimple-match-head.c: Include gimplify.h for unshare_expr.
2161 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
2162 last change and instead change to
2163 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
2164 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
2166 2016-03-22 Anthony Green <green@moxielogic.com>
2168 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
2169 issue for moxiebox targets.
2170 (CC1PLUS_SPEC): Ditto.
2172 2016-03-22 Richard Biener <rguenther@suse.de>
2175 * fold-const.c (extract_muldiv_1): Properly perform multiplication
2178 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
2180 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
2182 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
2185 * config/i386/i386.c (def_builtin): Handle
2186 OPTION_MASK_ISA_AVX512VL to be and-ed with other
2188 (const struct builtin_description bdesc_special_args[]):
2189 Remove duplicate ISA bits.
2191 2016-03-22 Jakub Jelinek <jakub@redhat.com>
2194 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
2195 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
2196 in a way that works also for AVX512BW.
2199 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
2200 instead of source if operands[1] is xmm16 and above and
2201 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
2202 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
2205 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
2206 on assign if (*from_p) is a comparison, set it to
2207 TREE_NO_WARNING (*from_p).
2209 2016-03-21 Jakub Jelinek <jakub@redhat.com>
2212 * lra.c (restore_scratches): Ignore deleted insns.
2214 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
2215 Jakub Jelinek <jakub@redhat.com>
2217 PR tree-optimization/70317
2218 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
2221 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
2224 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
2225 of ix86_expand_move.
2227 (movti): Use general_operand for operand 1 predicate.
2229 2016-03-21 Martin Liska <mliska@suse.cz>
2231 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
2233 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
2235 2016-03-21 Martin Liska <mliska@suse.cz>
2238 * ipa-icf.c (sem_function::parse): Skip static
2239 constructors and destructors.
2241 2016-03-21 Jakub Jelinek <jakub@redhat.com>
2244 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
2245 function-like macro, peek following token(s) if it is followed
2246 by CPP_OPEN_PAREN token with optional padding in between, and
2247 if not, don't treat it like a macro.
2249 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
2250 Alexander Monakov <amonakov@ispras.ru>
2252 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
2253 for the stabs debug format.
2255 2016-03-21 Richard Biener <rguenther@suse.de>
2257 PR tree-optimization/70310
2258 * tree-vect-generic.c (expand_vector_condition): Fold the built
2261 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
2264 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
2265 Block third alternative for AVX-512VL target,
2267 2016-03-21 Martin Liska <mliska@suse.cz>
2270 * hsa-brig.c (emit_function_directives): Mark unemitted
2271 global variables for emission.
2272 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
2273 (get_symbol_for_decl): Likewise.
2274 * hsa.h (struct hsa_symbol): New flag.
2276 2016-03-21 Richard Biener <rguenther@suse.de>
2278 PR tree-optimization/70288
2279 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
2280 we do not estimate unsimplified all-constant conditionals or
2281 switches as optimized away.
2283 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
2285 PR rtl-optimization/69102
2286 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
2287 when we have a readonly dependency context.
2289 2016-03-18 Jeff Law <law@redhat.com>
2291 PR rtl-optimization/70263
2292 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
2293 (update_equiv_regs): When trying to move a store to after the insn
2294 that sets the source of the store, make sure the store occurs after
2295 the insn that sets the source of the store. When successful note
2296 the REG_EQUIV note created in the dump file.
2298 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
2299 Bernd Schmidt <bschmidt@redhat.com>
2301 * doc/extend.texi: Document more potential problems with basic asms.
2303 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
2305 PR rtl-optimization/70278
2306 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
2309 2016-03-18 Jason Merrill <jason@redhat.com>
2311 * calls.c (load_register_parameters): Fix zero size sibcall logic.
2313 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
2315 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
2316 values to 128b regs.
2318 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
2320 PR tree-optimization/70252
2321 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
2322 boolean vector has a proper number of elements.
2323 (supportable_narrowing_operation): Likewise.
2325 2016-03-18 Tom de Vries <tom@codesourcery.com>
2328 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
2330 2016-03-18 Jakub Jelinek <jakub@redhat.com>
2332 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
2333 instead of replace_rtx for DEBUG_INSNs.
2335 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2337 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
2338 load type reservations.
2340 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
2343 * config/pa/constraints.md: Revert 2015-02-13 change. Use
2344 define_constraint for "Q" and "T" constraints.
2346 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
2348 Tweak the pipeline model for Exynos M1
2350 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
2353 2016-03-17 David Malcolm <dmalcolm@redhat.com>
2356 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
2357 where one or both locations aren't within a line_map.
2359 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
2362 * opts.c (finish_options): Don't set flag_pie to the default if
2363 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
2366 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
2368 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
2369 true as ALL_REGS argument to replace_rtx.
2371 2016-03-17 Richard Biener <rguenther@suse.de>
2374 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
2377 2016-03-17 Jakub Jelinek <jakub@redhat.com>
2380 * rtl.h (replace_rtx): Add ALL_REGS argument.
2381 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
2382 equality and assert mode is the same, instead of just rtx pointer
2384 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
2385 true as ALL_REGS argument to replace_rtx.
2387 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
2389 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
2390 for boolean vector with vector mode only.
2391 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
2393 2016-03-17 Nick Clifton <nickc@redhat.com>
2396 * config/rx/rx.c (rx_print_integer): Print negative constants in
2399 2016-03-17 Jakub Jelinek <jakub@redhat.com>
2402 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
2404 2016-03-16 Richard Henderson <rth@redhat.com>
2405 Richard Biener <rguenth@suse.de>
2410 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
2411 first operand as is_gimple_condexpr.
2416 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
2417 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
2418 Do not gimplify the result.
2419 (do_unop): Adjust call to tree_vec_extract.
2420 (do_binop): Likewise.
2421 (do_compare): Likewise.
2422 (do_plus_minus): Likewise.
2423 (do_negate): Likewise.
2424 (expand_vector_condition): Likewise.
2425 (do_cond): Likewise.
2427 2016-03-16 Richard Henderson <rth@redhat.com>
2430 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
2431 (aarch64_classify_address): Use it.
2432 (aarch64_legitimize_address): Force all subexpressions of PLUS
2433 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
2435 2016-03-16 Jakub Jelinek <jakub@redhat.com>
2436 Richard Biener <rguenth@suse.de>
2439 * rtlanal.c (replace_rtx): For REG, if from is a REG,
2440 return to even if only REGNO is equal, and assert
2443 2016-03-11 Jeff Law <law@redhat.com>
2445 PR rtl-optimization/70224
2446 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
2448 2016-03-16 Richard Henderson <rth@redhat.com>
2451 * function.h (struct function): Add has_forced_label_in_static.
2452 * gimplify.c (force_labels_r): Set it.
2453 * lto-streamer-in.c (input_struct_function_base): Read it.
2454 * lto-streamer-out.c (output_struct_function_base): Write it.
2455 * tree-inline.c (has_label_address_in_static_1): Remove.
2456 (copy_forbidden): Remove fndecl parameter; test
2457 has_forced_label_in_static.
2458 (inline_forbidden_p): Update call to copy_forbidden.
2459 (tree_versionable_function_p): Likewise.
2460 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
2461 (chkp_versioning): Likewise.
2462 * tree-inline.h (copy_forbidden): Update decl.
2464 2016-03-16 Marek Polacek <polacek@redhat.com>
2467 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
2468 function being thunked if the result type doesn't have fixed size.
2469 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
2470 doesn't have fixed size.
2472 2016-03-16 Bin Cheng <bin.cheng@arm.com>
2474 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
2475 reporting malformed loop nest.
2477 2016-03-16 Tom de Vries <tom@codesourcery.com>
2480 * ipa-devirt.c (possible_polymorphic_call_targets): Move
2481 nodes.length () == 1 test to before first nodes[0] access.
2483 2016-03-16 Tom de Vries <tom@codesourcery.com>
2485 PR tree-optimization/68715
2486 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
2489 2016-03-16 Tom de Vries <tom@codesourcery.com>
2491 PR tree-optimization/68809
2492 * graphite-scop-detection.c (same_close_phi_node): Test if result types
2495 2016-03-16 Carlos O'Donell <carlos@redhat.com>
2496 Sandra Loosemore <sandra@codesourcery.com>
2498 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
2499 on leaf attribute. Mention ELF interposition problems.
2501 2016-03-16 Alan Modra <amodra@gmail.com>
2503 PR rtl-optimization/69195
2504 PR rtl-optimization/47992
2505 * ira.c (indirect_jump_optimize): Ignore artificial defs.
2508 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
2511 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
2513 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2515 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
2517 2016-03-15 Jakub Jelinek <jakub@redhat.com>
2519 PR rtl-optimization/70222
2520 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
2521 optimization if mode is different from result_mode, queue up masking
2522 of the result in outer_op. Formatting fix.
2525 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
2528 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
2530 PR rtl-optimization/69032
2531 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
2532 looping backwards over basic block insns.
2534 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
2537 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
2538 to non-speculative when propagating trap bits.
2540 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
2542 PR rtl-optimization/63384
2543 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
2546 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
2549 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
2550 factored out from ...
2551 (sched_analyze_insn): ... here.
2552 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
2553 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
2554 get_implicit_reg_pending_clobbers in it.
2555 (setup_id_reg_sets): Use setup_id_implicit_regs.
2556 (deps_init_id): Ditto.
2558 2016-03-15 Tom de Vries <tom@codesourcery.com>
2561 * cgraph.c (cgraph_node::get_body): Save, reset and restore
2563 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
2564 execute_function_dump.
2565 (execute_one_pass): Don't dump function if it will be dumped after ipa
2568 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
2570 * genrecog.c (match_pattern_2): If pred is NULL don't call
2571 safe_predicate_mode on it.
2573 2016-03-14 Jakub Jelinek <jakub@redhat.com>
2576 * lra-constraints.c (delete_move_and_clobber): Change assertion
2577 to also allow dregno == 0.
2579 2016-03-14 Richard Henderson <rth@redhat.com>
2582 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
2583 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
2584 (reassociate_bb): Use optimize_vec_cond_expr; avoid
2585 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
2588 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
2591 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
2593 (lra_create_live_ranges_1): initialize hard register biggest_mode to
2595 * lra-constraints.c (split_reg): For hard regs, try to find the
2596 biggest single-register mode used in the function.
2598 2016-03-14 Richard Biener <rguenther@suse.de>
2600 PR tree-optimization/56365
2601 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
2602 constants to compare against.
2604 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
2607 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
2608 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
2609 (define_split for the GPR case): Use int_reg_operand instead of
2610 gpc_reg_operand for the output.
2612 2016-03-14 Tom de Vries <tom@codesourcery.com>
2614 PR tree-optimization/70045
2615 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
2616 create_empty_if_region_on_edge argument.
2618 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
2620 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
2621 (STACK_CHECK_PROTECT): Likewise.
2622 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
2623 (STACK_CHECK_PROTECT): Likewise.
2624 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
2625 (STACK_CHECK_PROTECT): Likewise.
2626 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
2627 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2628 (STACK_CHECK_PROTECT): Likewise.
2630 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
2632 PR rtl-optimization/69307
2633 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
2634 registers in modes that span more than one register.
2636 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
2639 * lra-constraints.c (delete_move_and_clobber): New.
2640 (remove_inheritance_pseudos): Use it.
2642 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
2645 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
2646 the libcall is LCT_THROW.
2647 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
2648 for the checking routine.
2650 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2653 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
2654 optimization if we have direct move.
2655 (roundu32<mode>2_fprs): Likewise.
2657 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
2660 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
2662 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
2663 Arguments swapped. All callers changed. Take reg_renumber into
2664 account, and Calculate and compare register ranges for hard regs.
2666 2016-03-11 Jeff Law <law@redhat.com>
2668 PR tree-optimization/70190
2669 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2670 Handle cases where we can not extract the taken edge, even though we
2671 found a constant value.
2673 PR tree-optimization/64058
2674 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
2675 (num_coalesce_pairs): Move up earlier in file.
2676 (find_coalesce_pair): Initialize the INDEX field for each pair
2678 (compare_pairs): No longer sort on the elements in each pair.
2679 Instead break ties with the index of the coalesce pair.
2681 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2684 * config/aarch64/aarch64-protos.h
2685 (aarch64_save_restore_target_globals): New prototype.
2686 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
2687 Call the above when popping pragma.
2688 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
2690 (aarch64_set_current_function): Rewrite using the above.
2692 2016-03-11 Jakub Jelinek <jakub@redhat.com>
2694 PR tree-optimization/70177
2695 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
2696 (extract_ops_from_tree): ... this. In the 2 argument
2697 overload remove _1 suffix.
2698 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
2699 (extract_ops_from_tree): ... this.
2700 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
2702 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
2703 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
2704 extract_ops_from_tree instead of 2 operand one.
2706 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
2708 PR tree-optimization/70013
2709 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
2710 for constant-pool entries.
2712 2016-03-11 Jakub Jelinek <jakub@redhat.com>
2714 PR rtl-optimization/70174
2715 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
2716 followed by gen_lowpart on force_reg instead of just gen_lowpart.
2718 PR tree-optimization/70169
2719 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
2720 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
2723 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
2724 Jakub Jelinek <jakub@redhat.com>
2727 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
2728 of uninitialized values.
2730 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2732 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
2734 ("*trunctddd2"): New pattern definition.
2735 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
2738 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2740 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
2741 definitions for BFP and DFP rounding modes.
2742 ("fixuns_truncdddi2", "fixuns_trunctddi2")
2743 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
2744 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
2745 ("fix_trunctf<mode>2"): Use the new constants instead of magic
2748 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2750 * config/s390/constraints.md: Adjust comment.
2751 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
2752 s390_decompose_addrstyle_without_index.
2753 * config/s390/predicates.md (shift_count_or_setmem_operand):
2754 Rename to setmem_operand.
2755 * config/s390/s390-protos.h
2756 (s390_decompose_shift_count): Rename to
2757 s390_decompose_addrstyle_without_index.
2758 * config/s390/s390.c (s390_decompose_shift_count)
2759 (s390_mem_constraint, print_shift_count_operand)
2760 (print_operand_address, print_operand): Rename
2761 s390_decompose_shift_count to
2762 s390_decompose_addrstyle_without_index and rename
2763 print_shift_count_operand to print_addrstyle_operand troughout the
2765 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
2766 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
2767 Rename shift_count_or_setmem_operand to setmem_operand.
2768 * config/s390/vx-builtins.md ("vec_insert<mode>")
2769 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
2772 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2775 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
2776 Handle overlapping retval and newval.
2778 2016-03-10 Nick Clifton <nickc@redhat.com>
2781 * config/aarch64/aarch64.c
2782 (aarch64_override_options_after_change_1): When forcing
2783 flag_omit_frame_pointer to be true, use a special value that can
2784 be detected if this function is called again, thus preventing
2785 flag_omit_leaf_frame_pointer from being forced to be false.
2787 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2789 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
2790 Set x_flag_omit_leaf_frame_pointer when handling
2791 -momit-leaf-frame-pointer.
2793 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
2796 * cgraph.c (cgraph_node::dump): Dump split_part and
2797 indirect_call_target.
2798 * cgraph.h (cgraph_node): Add indirect_call_target flag.
2799 * ipa.c (has_addr_references_p): Cleanup.
2800 (is_indirect_call_target_p): New.
2801 (walk_polymorphic_call_targets): Do not mark virtuals that may be
2802 called indirectly as local.
2803 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
2805 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
2808 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
2809 on cxa_pure_virtual.
2811 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
2814 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
2816 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
2819 * tree.c (need_assembler_name_p): Only record main variant type names.
2821 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
2824 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
2825 Always define to 0 or 1.
2826 (TARGET_FIX_ERR_A53_843419): New macro.
2827 * config/aarch64/aarch64-elf-raw.h
2828 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
2829 * config/aarch64/aarch64-linux.h: Likewise.
2830 * config/aarch64/aarch64.c
2831 (aarch64_override_options_after_change_1): Do not default
2832 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
2834 (aarch64_attributes): Handle fix-cortex-a53-843419.
2835 (aarch64_can_inline_p): Likewise.
2836 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
2838 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
2839 Jakub Jelinek <jakub@redhat.com>
2841 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
2842 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
2843 DECL_COMMONS if flag_unconstrained_commons is set.
2844 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2845 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
2846 (funconstrained-commons): Document.
2848 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
2850 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
2851 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
2853 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2855 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
2856 has a proper number of elements.
2858 2016-03-10 Alan Modra <amodra@gmail.com>
2860 PR rtl-optimization/69195
2861 PR rtl-optimization/47992
2862 * ira.c (recorded_label_ref): Delete.
2863 (update_equiv_regs): Return void.
2864 (indirect_jump_optimize): New function.
2865 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
2866 before regstat_compute_ri. Don't rebuild_jump_labels here.
2867 Delete update_regstat.
2869 2016-03-10 Richard Biener <rguenther@suse.de>
2871 PR tree-optimization/70128
2872 * tree-ssa-structalias.c (set_uids_in_ptset): Set
2873 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
2875 2016-03-09 Jakub Jelinek <jakub@redhat.com>
2877 PR tree-optimization/70152
2878 * tree-sra.c (replace_removed_params_ssa_names): Copy over
2879 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
2882 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
2883 instead of gen_sse2_loadlpd.
2884 * config/i386/sse.md (*vec_concatv2df): Rename to...
2885 (vec_concatv2df): ... this.
2887 PR tree-optimization/70127
2888 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
2890 2016-03-09 David Malcolm <dmalcolm@redhat.com>
2894 * diagnostic-show-locus.c (compatible_locations_p): New function.
2895 (layout::layout): Sanitize ranges using compatible_locations_p.
2897 2016-03-09 David Malcolm <dmalcolm@redhat.com>
2901 * diagnostic-show-locus.c (layout_range::layout_range): Replace
2902 location_range param with three const expanded_locations * and a
2904 (layout::layout): Replace call to
2905 rich_location::lazily_expand_location with get_expanded_location.
2906 Extract the range and perform location expansion here, passing
2907 the results to the layout_range ctor.
2908 * diagnostic.c (source_range::debug): Delete.
2909 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
2910 of rich_location::get_expanded_location.
2911 * gcc-rich-location.c (get_range_for_expr): Delete.
2912 (gcc_rich_location::add_expr): Reimplement to avoid the
2913 rich_location::add_range overload that took a location_range,
2914 passing a location_t instead.
2916 2016-03-09 Richard Biener <rguenther@suse.de>
2917 Jakub Jelinek <jakub@redhat.com>
2919 PR tree-optimization/70138
2920 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
2921 Also skip vect_double_reduction_def.
2923 2016-03-09 Jakub Jelinek <jakub@redhat.com>
2926 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
2927 if the operand is "m".
2929 2016-03-09 Nathan Sidwell <nathan@acm.org>
2931 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
2933 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2935 * config/i386/i386.c (processor_target_table): Fix cost table
2936 intialization order for znver1.
2938 2016-03-08 Jakub Jelinek <jakub@redhat.com>
2940 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
2941 - becuase -> because.
2942 * ipa-reference.c (ignore_module_statics): Likewise.
2943 * cgraph.c (cgraph_node::get_body): Likewise.
2944 * ipa-inline.c (early_inliner): Likewise.
2945 * ipa-devirt.c (types_same_for_odr): Likewise.
2946 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
2947 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
2949 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2951 * tree-ssa-math-opts.c: Fix typo in comment.
2953 2016-03-08 Jakub Jelinek <jakub@redhat.com>
2956 * config/i386/i386.c (scalar_chain::make_vector_copies,
2957 scalar_chain::convert_reg): Call end_sequence in between
2958 get_insns and emit_conversion_insns rather than after both
2961 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
2964 * config/i386/i386.h (machine_function): Add
2965 pc_thunk_call_expanded flag.
2966 (ix86_pc_thunk_call_expanded): New define.
2967 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
2968 (*set_got): Rename insn pattern from set_got.
2969 (*set_got_labelled): Rename inst pattern from set_got_labelled.
2970 * config/i386/i386.c (ix86_compute_frame_layout): Use
2971 ix86_pc_thunk_call_expanded to prevent red-zone.
2973 2016-03-07 Martin Jambor <mjambor@suse.cz>
2975 * hsa.h (hsa_get_ctor_statements): Declare.
2976 (hsa_get_dtor_statements): Likewise.
2977 (hsa_get_kernel_dispatch_type): Likewise.
2978 * hsa.c (hsa_get_ctor_statements): New function.
2979 (hsa_get_dtor_statements): Likewise.
2980 (hsa_get_kernel_dispatch_type): Likewise.
2981 * hsa-brig.c (hsa_cdtor_statements): Removed.
2982 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
2983 hsa_get_dtor_statements.
2984 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
2985 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
2987 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
2989 * config/arm/arm-cores.def (cortex-r8): New.
2990 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
2991 * config/arm/arm-tune.md: Likewise.
2992 * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
2994 2016-03-07 Martin Sebor <msebor@redhat.com>
2996 PR rtl-optimization/19705
2997 * doc/invoke.texi (Options That Control Optimization): Clarify
2998 -fno-branch-count-reg.
3000 2016-02-26 Richard Biener <rguenther@suse.de>
3001 Jeff Law <law@redhat.com>
3003 PR tree-optimization/69740
3004 * cfghooks.c (remove_edge): Request loop fixups if we delete
3005 an edge that might turn an irreducible loop into a natural
3007 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
3008 Move after definition of loops_state_clear.
3010 2016-03-07 Bin Cheng <bin.cheng@arm.com>
3012 PR rtl-optimization/69052
3013 * rtlanal.c (commutative_operand_precedence): Set higher precedence
3016 2016-03-07 Tom de Vries <tom@codesourcery.com>
3018 PR tree-optimization/70116
3019 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
3020 is_tm_ending stmts and ubsan/asan internal functions.
3021 (find_duplicate): Use it. Don't test is_tm_ending here.
3023 2016-03-07 Richard Biener <rguenther@suse.de>
3025 PR tree-optimization/70115
3026 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
3027 (propagate_constants_for_unrolling): Use replace_uses_by.
3029 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
3032 * omp-low.c (struct oacc_loop): Add ifns.
3033 (new_oacc_loop_raw): Initialize it.
3034 (finish_oacc_loop): Clear mask & flags if no ifns.
3035 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
3036 (oacc_loop_xform_loop): Add ifns arg & adjust.
3037 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
3039 2016-03-07 Richard Henderson <rth@redhat.com>
3042 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
3043 (insert_value_copy_on_edge): Likewise.
3045 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3047 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
3049 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3052 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
3054 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3056 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
3058 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3060 Fix sseimul type attribute.
3061 * config/i386/znver1.md
3062 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
3063 znver1_sseimul_avx256_load) : Fix the type attribute.
3064 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
3065 pipe usage and latency.
3067 2016-03-05 Jakub Jelinek <jakub@redhat.com>
3070 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
3071 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
3074 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
3077 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
3079 PR rtl-optimization/69941
3080 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
3081 the reg share its mode.
3083 2016-03-04 Jeff Law <law@redhat.com>
3085 PR tree-optimization/69196
3086 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3087 If the both SSA_NAMEs are anonymous, then consider them unassociated
3088 and include the PHI in the statement count.
3090 2016-03-05 Tom de Vries <tom@codesourcery.com>
3092 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
3093 construct in oacc routine. Check for oacc region in oacc routine.
3095 2016-03-04 Jakub Jelinek <jakub@redhat.com>
3098 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
3099 2016-02-22 changes, instead don't recurse if RECUR is already true.
3100 Don't change *dynamic_check if RECUR. Adjust recursive caller
3101 to pass true to the new argument.
3102 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
3105 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
3106 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
3108 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
3110 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
3112 PR rtl-optimization/57676
3113 * lra-assigns.c (lra_assign): Guard test for maximum iterations
3116 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
3118 * tree-vect-patterns.c (search_type_for_mask): Handle
3119 comparison of booleans.
3121 2016-03-04 Jakub Jelinek <jakub@redhat.com>
3123 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
3127 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
3128 all other ops that have dw_val_class_die_ref operands,
3129 and DW_OP_GNU_entry_value.
3131 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3133 PR rtl-optimization/69904
3134 * config/arm/arm.c (arm_cannot_copy_insn_p):
3135 Return true for load-exclusive instructions.
3137 2016-03-03 Jakub Jelinek <jakub@redhat.com>
3140 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
3141 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
3142 the pattern no matter if it is used just by non-pattern, pattern
3144 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
3145 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
3146 oprnd1 def_stmt is in pattern, don't look through it.
3148 2016-03-03 Marek Polacek <polacek@redhat.com>
3151 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
3153 2016-03-03 Martin Liska <mliska@suse.cz>
3155 PR tree-optimization/70043
3156 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
3157 previous statement if we see a debug statement.
3159 2016-03-03 Richard Biener <rguenther@suse.de>
3161 PR tree-optimization/55936
3162 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
3163 parameter and guard unsafe equivalence use.
3164 (vrp_evaluate_conditional_warnv_with_ops): Always use
3165 safe equivalences but not via the quadratic compare_names
3168 2016-03-03 Michael Collison <michael.collison@linaro.org>
3171 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
3172 for operand 1 to s_register_operand. Change predicate for operand
3173 2 to arm_not_immediate_operand.
3175 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
3177 * doc/tm.texi: Regenerated.
3179 2016-03-02 Richard Henderson <rth@redhat.com>
3182 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
3183 simplification when all args are positive non-fixed registers.
3185 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3187 * target.def (lra_p): Specify that new ports should use LRA.
3189 2016-03-02 Jakub Jelinek <jakub@redhat.com>
3192 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
3193 gimplify_type_sizes the type they refer to.
3194 (omp_notice_variable): Handle reference vars to VLAs.
3195 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
3196 reference to VLA decls in the second pass instead of first pass.
3198 2016-03-02 Tom de Vries <tom@codesourcery.com>
3200 PR tree-optimization/68659
3201 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
3202 new_expr == NULL_TREE.
3203 (get_new_name): Handle ADDR_EXPR.
3205 2016-03-02 Bin Cheng <bin.cheng@arm.com>
3207 PR rtl-optimization/69052
3208 * loop-invariant.c (canonicalize_address): New function.
3209 (inv_can_prop_to_addr_use): Check validity of address expression
3210 which is canonicalized by above function.
3212 2016-03-02 Alan Modra <amodra@gmail.com>
3215 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
3218 2016-03-02 Jakub Jelinek <jakub@redhat.com>
3221 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
3222 (*movhi_internal): Put mask moves from and to memory separately
3223 from moves from/to GPRs.
3225 2016-03-02 Richard Biener <rguenther@suse.de>
3227 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
3228 GENERIC expressions in GIMPLE.
3230 2016-03-02 Richard Biener <rguenther@suse.de>
3232 * config/i386/i386.c (type_natural_mode): Fix typo.
3234 2016-03-02 Nick Clifton <nickc@redhat.com>
3236 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
3238 2016-03-02 Richard Biener <rguenther@suse.de>
3239 Uros Bizjak <ubizjak@gmail.com>
3242 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
3244 2016-03-02 Richard Biener <rguenther@suse.de>
3247 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
3249 2016-03-02 Marek Polacek <polacek@redhat.com>
3252 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
3253 "is promoted to" warning.
3255 2016-03-01 DJ Delorie <dj@redhat.com>
3257 * config.gcc: Deprecate mep-*.
3259 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
3262 * lra-constraints.c (regno_val_use_in): New.
3263 (match_reload): Use it instead of regno_use_in.
3265 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
3267 PR rtl-optimization/70007
3268 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
3269 references present in REG_EQUAL notes attached to non-SET patterns.
3271 2016-03-01 Jeff Law <law@redhat.com>
3273 PR tree-optimization/69196
3274 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3275 Appropriately clamp the number of statements to copy when the
3276 thread path does not traverse a loop backedge.
3278 PR tree-optimization/69196
3279 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3280 Do count some PHIs in the thread path against the insn count. Decrease
3281 final statement count by one as the control statement in the last
3282 block will get removed. Remove special cased code for handling PHIs
3285 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
3288 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
3289 asm dialect alternatives to explicit GOTPCREL calls.
3291 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
3294 * ira.c (do_reload): Issue warning for generic stack checking here...
3295 * reload1.c (reload): ...instead of here and streamline it.
3297 2016-03-01 Nick Clifton <nickc@redhat.com>
3299 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
3301 2016-03-01 Richard Biener <rguenther@suse.de>
3303 PR tree-optimization/69983
3304 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
3305 types and fall back to operand_equal_p.
3307 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3310 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3312 * config/s390/constraints.md ("jm8"): New constraint.
3313 * config/s390/predicates.md ("const_int_8bitset_operand"): New
3315 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
3317 ("*setmem_long<setmem_and>"): New pattern.
3318 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
3320 ("*setmem_long_31z<setmem_and>"): New pattern.
3321 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
3322 New substitution rules with the required attributes.
3325 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3328 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3330 * gensupport.c (process_substs_on_one_elem): Split loop to
3331 complete mark_operands_used_in_match_dup on all expressions in the
3333 (adjust_operands_numbers): Inline into process_substs_on_one_elem
3334 and remove function.
3336 2016-03-01 Richard Biener <rguenther@suse.de>
3339 * fold-const.c (fold_indirect_ref_1): Fix range checking for
3340 vector BIT_FIELD_REF extract.
3342 2016-03-01 Richard Biener <rguenther@suse.de>
3344 PR tree-optimization/69994
3345 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
3347 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
3349 PR tree-optimization/69956
3350 * tree-vect-stmts.c (supportable_widening_operation): Support
3351 multi-step conversion of boolean vectors.
3352 (supportable_narrowing_operation): Likewise.
3354 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3356 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
3359 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3361 * config/s390/subst.md (DSI_VI): New mode iterator.
3362 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
3363 * config/s390/vector.md ("vec_set<mode>"): Move expander before
3364 the insn definition.
3365 ("*vec_set<mode>"): Change predicate and add alternative to
3366 support only either register or const_int operands as element
3368 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
3370 ("vec_extract<mode>"): New expander.
3371 ("*vec_extract<mode>"): New insn definition supporting reg and
3372 const_int element selectors.
3373 ("*vec_extract<mode>_plus"): New insn definition supporting
3374 reg+const_int element selectors.
3375 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
3376 following expander+insn definition.
3377 ("<vec_shifts_name><mode>3"): New expander.
3378 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
3380 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3382 * config/s390/s390.md ("*tabort_1"): Change predicate to
3383 nonmemory_operand. Add a second alternative to cover
3384 register as well as const int operands.
3385 ("*tabort_1_plus"): New pattern definition.
3387 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3389 * config/s390/s390.md ("*ashrdi3_cc_31")
3390 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
3391 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
3392 Merge insn definitions into ...
3393 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
3394 New pattern definition.
3395 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
3396 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
3397 ("*ashr<mode>3_and"): Merge insn definitions into ...
3398 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
3399 New pattern definition.
3400 * config/s390/subst.md ("addr_style_op_cc_subst")
3401 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
3402 substitutions patterns plus attributes.
3403 Add ashiftrt to SUBST iterator.
3405 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3407 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
3408 op2 to nonmemory_operand.
3409 ("*<shift>di3_31", "*<shift>di3_31_and"):
3410 Merge into single pattern definition ...
3411 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
3412 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
3413 pattern definition ...
3414 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
3415 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
3418 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3420 * config/s390/predicates.md (const_int_6bitset_operand): New
3422 * config/s390/s390.md: Include subst.md.
3423 ("rotl<mode>3"): New expander.
3424 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
3426 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
3427 * config/s390/subst.md: New file.
3429 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3431 * config/s390/s390.md ("op_type", "atype", "length" attributes):
3432 Remove RRR type. It doesn't really exist.
3433 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
3435 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
3436 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
3437 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
3438 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
3439 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
3440 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
3441 `enabled' attribute.
3443 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3445 * gensupport.c (process_substs_on_one_elem): Split loop to
3446 complete mark_operands_used_in_match_dup on all expressions in the
3448 (adjust_operands_numbers): Inline into process_substs_on_one_elem
3449 and remove function.
3451 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
3454 * config/sparc/sparc.c (NWORDS_UP): Rename to...
3455 (CEIL_NWORDS): ...this. Use CEIL macro.
3456 (compute_fp_layout): Adjust to above renaming.
3457 (function_arg_union_value): Likewise.
3458 (sparc_arg_partial_bytes): Likewise.
3459 (sparc_function_arg_advance): Likewise.
3461 2016-02-29 Jeff Law <law@redhat.com>
3463 PR tree-optimization/70005
3464 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
3465 where an object with a boolean range is compared against a value
3468 PR tree-optimization/69999
3469 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
3470 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
3473 2016-02-29 Richard Biener <rguenther@suse.de>
3475 PR tree-optimization/69994
3476 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
3477 (get_unary_op): Look through nop conversions.
3478 (ops_equal_values_p): New function, look for equality diregarding
3480 (eliminate_plus_minus_pair): Use ops_equal_values_p
3481 (repropagate_negates): Do not use get_unary_op here.
3483 2016-02-29 Martin Liska <mliska@suse.cz>
3485 * system.h: Poison ENABLE_CHECKING macro.
3487 2016-02-29 Martin Liska <mliska@suse.cz>
3489 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
3490 is presented in dump flags.
3491 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
3492 (hsa_regalloc): Likewise.
3494 2016-02-19 Richard Biener <rguenther@suse.de>
3496 PR tree-optimization/69980
3497 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
3498 permutation of those we need to keep.
3500 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
3503 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
3504 (NWORDS_UP): ...this
3505 (init_cumulative_args): Minor tweaks.
3506 (sparc_promote_function_mode): Likewise.
3507 (scan_record_type): Delete.
3508 (traverse_record_type): New function template.
3509 (classify_data_t): New structure type.
3510 (classify_registers): New inline function.
3511 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
3512 exhausted. Instantiate traverse_record_type on classify_registers and
3513 deal with the case of a structure passed in slot #15 with no FP field
3515 (assign_data_t): New structure type.
3516 (compute_int_layout): New static function.
3517 (compute_fp_layout): Likewise.
3518 (count_registers): New inline function.
3519 (assign_int_registers): New static function.
3520 (assign_fp_registers): Likewise.
3521 (assign_registers): New inline function.
3522 (function_arg_record_value_1): Delete.
3523 (function_arg_record_value_2): Likewise.
3524 (function_arg_record_value_3): Likewise.
3525 (function_arg_record_value): Adjust to above changes. Instantiate
3526 traverse_record_type on count_registers to first count the number of
3527 registers to be used and then on assign_registers to assign them.
3528 (function_arg_union_value): Adjust to above renaming.
3529 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
3530 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
3531 case of a structure passed in slot #15
3532 (sparc_function_arg_advance): Likewise.
3533 (function_arg_padding): Minor tweak.
3535 2016-02-29 Richard Biener <rguenther@suse.de>
3537 PR tree-optimization/69720
3538 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
3539 the adjustment_def path for possibly vectorized defs.
3540 (vect_create_epilog_for_reduction): Handle vectorized initial
3543 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
3545 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
3547 2016-02-27 Jeff Law <law@redhat.com>
3550 2016-02-26 Richard Biener <rguenther@suse.de>
3551 Jeff Law <law@redhat.com>
3553 PR tree-optimization/69740
3554 * cfghooks.c (remove_edge): Request loop fixups if we delete
3555 an edge that might turn an irreducible loop into a natural
3558 2016-02-27 Jakub Jelinek <jakub@redhat.com>
3560 PR rtl-optimization/69896
3561 * tree-vect-generic.c (get_compute_type): Avoid single element
3564 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
3566 Rename the AArch64 tuning option and related functions to enable the
3567 Newton series for the reciprocal square root to reflect its
3568 approximative characteristic.
3570 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
3571 function to "aarch64_emit_approx_rsqrt".
3572 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
3573 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
3574 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
3575 (xgene1_tunings): Likewise.
3576 (use_rsqrt_p): Likewise.
3577 (aarch64_emit_swrsqrt): Use new function name.
3578 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
3579 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
3580 text explaining this option.
3581 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
3583 2016-02-26 Jakub Jelinek <jakub@redhat.com>
3586 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
3587 complain about -mallow-movmisalign without -mvsx if
3588 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
3590 2016-02-26 Joel Sherrill <joel@rtems.org>
3592 * config.gcc: Add x86_64-*-rtems*.
3593 * gcc/config/i386/rtems-64.h: New file.
3595 2016-02-26 Joel Sherrill <joel@rtems.org>
3597 * config.gcc: Add aarch64-*-rtems*.
3598 * gcc/config/aarch64/rtems.h: New file.
3600 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
3603 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
3604 shift amount using %h. Add comment.
3606 2016-02-26 Richard Biener <rguenther@suse.de>
3607 Jeff Law <law@redhat.com>
3609 PR tree-optimization/69740
3610 * cfghooks.c (remove_edge): Request loop fixups if we delete
3611 an edge that might turn an irreducible loop into a natural
3614 2016-02-26 Martin Jambor <mjambor@suse.cz>
3617 * tree-sra.c (sra_modify_assign): Do not remove loads of
3618 uninitialized aggregates to SSA_NAMEs.
3620 2016-02-26 Richard Henderson <rth@redhat.com>
3623 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
3624 pseudo in case the target rtx matches the source of the left
3627 2016-02-26 Martin Jambor <mjambor@suse.cz>
3630 * hsa.h (hsa_type_packed_p): Declare.
3631 * hsa.c (hsa_type_packed_p): New function.
3632 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
3634 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
3635 * hsa-brig.c (emit_basic_insn): Likewise.
3637 2016-02-26 Martin Jambor <mjambor@suse.cz>
3640 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
3642 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
3644 2016-02-26 Martin Jambor <mjambor@suse.cz>
3646 * hsa.h (is_a_helper): New overload for hsa_op_immed for
3647 hsa_op_with_type operands.
3648 (hsa_unsigned_type_for_type): Declare.
3649 * hsa.c (hsa_unsigned_type_for_type): New function.
3650 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
3651 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
3652 the finalizer. Do not emit extra move.
3654 2016-02-26 Martin Jambor <mjambor@suse.cz>
3656 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
3657 atomic operations in private segment.
3659 2016-02-26 Martin Jambor <mjambor@suse.cz>
3661 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
3662 statements to wi->info. Also disallow omp simd constructs.
3663 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
3664 for not gridifying. Dump special string for omp_for.
3666 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3669 * config/aarch64/aarch64.c (aarch64_set_current_function):
3670 Save/restore target globals when switching to
3671 target_option_default_node.
3673 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3676 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
3677 Return 0 if !SHIFT_COUNT_TRUNCATED.
3679 2016-02-26 Jakub Jelinek <jakub@redhat.com>
3680 Eric Botcazou <ebotcazou@adacore.com>
3682 PR rtl-optimization/69891
3683 * dse.c (scan_insn): If we can't figure out memset arguments
3684 or they are non-constant, call clear_rhs_from_active_local_stores.
3686 2016-02-26 Martin Liska <mliska@suse.cz>
3688 * doc/extend.texi: Mention clog10, clog10f an clog10l
3689 in Builtins section.
3691 2016-02-26 Martin Liska <mliska@suse.cz>
3693 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
3695 (resolve_args_picking_1): Likewise.
3696 * dwarf2out.h (struct GTY): Likewise.
3698 2016-02-26 Martin Liska <mliska@suse.cz>
3700 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
3702 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
3704 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
3705 Martin Liska <mliska@suse.cz>
3707 * doc/install.texi: Mention --enable-valgrind-annotations.
3709 2016-02-26 Richard Biener <rguenther@suse.de>
3711 PR tree-optimization/69551
3712 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
3713 looking through aliases adjust DECL_PT_UID to refer to the
3714 ultimate alias target.
3716 2016-02-25 Martin Liska <mliska@suse.cz>
3719 * alloc-pool.c (after_memory_report): New variable.
3720 * alloc-pool.h (base_pool_allocator ::release): Do not use
3721 the infrastructure if after_memory_report.
3722 * toplev.c (toplev::main): Mark after memory report.
3724 2016-02-25 Richard Biener <rguenther@suse.de>
3726 PR tree-optimization/48795
3727 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
3729 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
3732 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
3733 offloading is enabled and -fopenacc or -fopenmp is specified.
3734 (CRTOFFLOADEND): Likewise.
3735 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
3736 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
3737 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
3738 (offload_objects_file_name): New static var.
3739 (tool_cleanup): Remove offload_objects_file_name file.
3740 (find_offloadbeginend): Replace with ...
3741 (find_crtoffloadtable): ... this.
3742 (run_gcc): Remove offload_argc and offload_argv.
3743 Get offload_objects_file_name from -foffload-objects=... option.
3744 Read names of object files with offload from this file, pass them to
3745 compile_images_for_offload_targets. Don't call find_offloadbeginend and
3746 don't pass offloadbegin and offloadend to the linker. Don't pass
3747 offload non-LTO files to the linker, because now they're not claimed.
3749 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
3752 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
3753 on builtin_unreachable.
3755 2016-02-25 Jakub Jelinek <jakub@redhat.com>
3757 PR rtl-optimization/69896
3758 * regcprop.c: Include cfgrtl.h.
3759 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
3760 than remembered mode, either delete it (if noop_move_p), or
3761 treat like copy_p but not noop_p instruction.
3763 2016-02-24 Jakub Jelinek <jakub@redhat.com>
3766 * dwarf2out.c (gen_variable_die): Work around buggy LTO
3767 - allow NULL decl for Fortran DW_TAG_common_block variables.
3769 2016-02-24 Jason Merrill <jason@redhat.com>
3771 * common.opt (flifetime-dse): Add -flifetime-dse=1.
3773 2016-02-24 Richard Biener <rguenther@suse.de>
3774 Jakub Jelinek <jakub@redhat.com>
3777 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
3778 conditionally executed ops to well-defined overflow behavior.
3780 2016-02-24 Jakub Jelinek <jakub@redhat.com>
3783 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
3786 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3788 PR rtl-optimization/69886
3789 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
3790 argument. Use it when checking validity of set instructions.
3791 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
3792 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
3794 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
3795 * store-motion.c (find_moveable_store): Update
3796 can_assign_to_reg_without_clobbers_p callsite.
3798 2016-02-24 Richard Biener <rguenther@suse.de>
3801 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
3803 (record_nonwrapping_iv): Do not fall back to the low/high bound
3804 for non-constant IV bases if the stmt is not always executed.
3806 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3808 * config/arm/arm-cores.def (cortex-a32): New entry.
3809 * config/arm/arm-tables.opt: Regenerate.
3810 * config/arm/arm-tune.md: Regenerate.
3811 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
3812 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
3813 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
3814 for -mcpu and -mtune.
3816 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3819 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
3820 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
3821 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
3822 (atomic_loaddi_1): Delete.
3823 (atomic_loaddi): Rewrite expander using the above changes.
3825 2016-02-24 Jakub Jelinek <jakub@redhat.com>
3828 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
3831 2016-02-24 Jakub Jelinek <jakub@redhat.com>
3832 Richard Biener <rguenth@suse.de>
3835 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
3836 set_mem_attributes if tem is SSA_NAME which got expanded
3839 2016-02-24 Richard Biener <rguenther@suse.de>
3841 PR tree-optimization/69907
3842 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
3843 end of permutations for BB vectorization.
3845 2016-02-24 Christian Bruel <christian.bruel@st.com>
3847 * config/arm/arm-c.c (arm_option_override): Initialize
3848 target_option_current_node.
3849 * config/arm/arm.c (arm_pragma_target_parse): Replace
3850 build_target_option_node call by target_option_current_node.
3851 Set target_option_current_node.
3854 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
3857 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
3858 define_insn_and_split to define_insn.
3859 (zero_extendqi<mode>2_dot2): Same.
3860 (extendqi<mode>2_dot): Same.
3861 (extendqi<mode>2_dot2): Same.
3863 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
3865 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
3866 and add bypass for AES{D,E} and AESMC pairs.
3867 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
3870 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
3872 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
3873 series for reciprocal square root in Exynos M1.
3875 2016-02-23 Martin Sebor <msebor@redhat.com>
3878 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
3879 __builtin_alloca_with_align.
3881 2016-02-23 Richard Henderson <rth@redhat.com>
3883 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
3884 (ix86_register_pragmas): Remove __seg_tls.
3885 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
3886 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
3887 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
3888 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
3889 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
3890 * doc/extend.texi (__seg_tls): Remove item.
3892 2016-02-23 Richard Biener <rguenther@suse.de>
3894 * alloc-pool.h (struct allocation_object): Make id member
3895 conditional on CHECKING_P again.
3896 (get_instance): Adjust.
3897 (base_pool_allocator): Likewise.
3899 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
3901 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
3902 (parallelize_loops): In OpenACC kernels mode, set n_threads to
3904 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
3906 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
3908 2016-02-23 Richard Biener <rguenther@suse.de>
3910 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
3911 * bitmap.h (struct bitmap_usage): Likewise.
3912 (bitmap_move): Declare.
3913 * bitmap.c (register_overhead): Take size_t argument.
3914 (bitmap_move): New function.
3915 * df-problems.c (df_rd_transfer_function): Use bitmap_move
3916 to properly account overhead.
3917 * tree.c (free_node): Use tree_size.
3919 2016-02-23 Jakub Jelinek <jakub@redhat.com>
3922 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
3923 when inverting comparison.
3926 * common.opt (Wunreachable-code): Add Warning flag.
3928 2016-02-23 Mark Wielaard <mjw@redhat.com>
3929 Jakub Jelinek <jakub@redhat.com>
3932 * cgraphunit.c (check_global_declaration): Check main_input_filename
3933 and DECL_SOURCE_FILE are not NULL.
3935 2016-02-23 Martin Jambor <mjambor@suse.cz>
3937 PR tree-optimization/69666
3938 * tree-sra.c (sra_modify_assign): Do not attempt to create
3939 default_def replacements for unscalarizable regions.
3941 2016-02-20 Mark Wielaard <mjw@redhat.com>
3944 * cgraphunit.c (check_global_declaration): Check level of
3945 warn_unused_const_variable and main_input_filename.
3946 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
3947 (-Wunused-variable): For C implies -Wunused-const-variable=1.
3948 (-Wunused-const-variable): Explain levels 1 and 2.
3950 2016-02-22 Jakub Jelinek <jakub@redhat.com>
3953 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
3954 identical arguments. Formatting and spelling fixes.
3957 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
3962 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
3963 and m68k-devices.def.
3964 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
3965 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
3967 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
3969 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
3970 and HImode registers.
3972 2016-02-22 Richard Biener <rguenther@suse.de>
3974 PR tree-optimization/69882
3975 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
3976 preserve permutations present because of gaps.
3977 (vect_supported_load_permutation_p): Always continue checking
3978 permutations after vect_attempt_slp_rearrange_stmts.
3980 2016-02-22 Bin Cheng <bin.cheng@arm.com>
3982 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
3983 min_profitable_estimate, rather than min_profitable_iters.
3985 2016-02-22 Jakub Jelinek <jakub@redhat.com>
3988 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
3989 SImode for last match_operand.
3991 2016-02-22 Martin Liska <mliska@suse.cz>
3993 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
3994 return bitsize - 1 as the return value.
3996 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
4000 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
4001 Handle negative shift counts.
4002 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
4003 force_reg on the shift constant.
4004 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
4005 (lshrsi3_d): Handle negative shift counts.
4007 2016-02-22 Richard Biener <rguenther@suse.de>
4008 Tom de Vries <tom@codesourcery.com>
4010 * graph.c: Include dumpfile.h.
4011 (print_graph_cfg): Split into three overloads.
4012 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
4014 2016-02-22 Tom de Vries <tom@codesourcery.com>
4016 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
4019 2016-02-22 Richard Biener <rguenther@suse.de>
4022 * ipa-inline-transform.c (inline_call): When not updating
4023 overall summaries adjust self size by the growth estimate.
4024 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
4025 hash-set, do not update overall summaries here. Renamed from ...
4026 (inline_to_all_callers): ... this which is now wrapping the
4027 above and performing delayed overall summary update.
4028 (early_inline_small_functions): Delay updating of the overall
4031 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
4033 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
4036 2016-02-19 Jakub Jelinek <jakub@redhat.com>
4039 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
4040 :%* in %:gt() argument.
4041 (greater_than_spec_func): Adjust for expecting only numbers,
4042 if there are more than two numbers, compare the last two.
4044 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
4046 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
4047 -Wnarrowing with -std.
4049 2016-02-19 Jakub Jelinek <jakub@redhat.com>
4052 * expr.c (store_field): Don't use bit-field path if exp is
4053 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
4054 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
4055 and the assignment can be performed by bitwise copy. Formatting
4059 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
4060 call copy_reg_eh_region_note_forward on before and/or after sequences
4061 and remove note from insn if it no longer can throw.
4064 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
4067 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4069 * config/s390/vector.md: Add missing commutative operand markers
4070 to the patterns which qualify for one.
4071 * config/s390/vx-builtins.md: Likewise.
4073 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4075 * config/s390/vector.md (VI, VI_QHS): Add single element vector
4076 types to mode iterators.
4077 (vec_double): ... and mode attribute.
4078 * config/s390/vx-builtins.md (non_vec_int): Likewise.
4080 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4082 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
4083 Change the predicate of op2 from nonimmediate to general and let
4084 reload fix it if necessary.
4086 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4088 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
4090 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4092 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
4095 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4097 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
4098 * config/s390/s390.c (s390_expand_vec_movstr): New function.
4099 * config/s390/s390.md ("movstr<P:mode>"): Call
4100 s390_expand_vec_movstr.
4102 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4104 * config/s390/s390.md: Add missing output modifier for operand 1
4105 to print it as address properly.
4107 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4109 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
4110 * config/s390/2964.md: New file.
4111 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
4112 of insn grouping attributes depending on the CPU level.
4113 (s390_get_unit_mask): New function.
4114 (s390_sched_score): Remove the OOO from the scheduling macros.
4115 Add loop to calculate a score for the instruction mix.
4116 (s390_sched_reorder): Likewise plus improve debug output.
4117 (s390_sched_variable_issue): Rename macros as above. Calculate
4118 the unit distances after actually scheduling an insn. Improve
4120 (s390_sched_init): Clear last_scheduled_unit_distance array.
4121 * config/s390/s390.md: Include 2964.md.
4123 2016-02-18 Jakub Jelinek <jakub@redhat.com>
4126 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
4127 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
4128 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
4129 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
4130 *avx512f_<code>v8div16qi2_mask_1): New insns.
4132 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4135 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
4138 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
4139 earlyclobber from target. Use wF constraint for fused memory
4141 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
4143 2016-02-18 Jakub Jelinek <jakub@redhat.com>
4144 Martin Liska <mliska@suse.cz>
4147 * cfgexpand.c (asan_sanitize_stack_p): New function.
4148 (partition_stack_vars): Use the function.
4149 (expand_stack_vars): Likewise.
4150 (defer_stack_allocation): Likewise.
4151 (expand_used_vars): Likewise.
4153 2016-02-18 Richard Biener <rguenther@suse.de>
4156 * fold-const.c (operand_equal_p): Properly compare offsets for
4157 IMAGPART_EXPR and ARRAY_REF.
4159 2016-02-18 Nick Clifton <nickc@redhat.com>
4163 * config/arm/arm.c (arm_option_override_internal): Disable
4164 interworking if the target does not support thumb instructions.
4165 (arm_reload_in_hi): Handle the case where a register to register
4166 move needs reloading because there is no simple pattern to handle
4168 (arm_reload_out_hi): Likewise.
4170 2016-02-18 Richard Biener <rguenther@suse.de>
4173 * match.pd: Don't use fold_binary or fold_unary for folding
4176 2016-02-17 Jakub Jelinek <jakub@redhat.com>
4179 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
4180 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
4181 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
4182 warn on gimple_no_warning_p statements.
4184 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
4186 * doc/extend.texi (C++ Attributes): Correct description of
4187 warn_unused type attribute.
4189 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4191 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
4192 correct instruction.
4194 2016-02-17 Richard Biener <rguenther@suse.de>
4196 PR rtl-optimization/69609
4197 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
4198 (find_traces_1_round): When ending a trace update cached priority
4200 (bb_to_key): Use cached priority when available.
4201 (copy_bb): Initialize cached priority.
4202 (reorder_basic_blocks_software_trace_cache): Likewise.
4204 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4207 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
4209 (aarch64_comparison_operator): Break overly long line into two.
4210 (aarch64_comparison_operation): Likewise.
4211 * config/aarch64/aarch64.md (cstorecc4): Use
4212 aarch64_comparison_operator_mode instead of
4213 aarch64_comparison_operator.
4214 (cstore<mode>4): Likewise.
4215 (aarch64_cstore<mode>): Likewise.
4216 (*cstoresi_insn_uxtw): Likewise.
4217 (cstore<mode>_neg): Likewise.
4218 (*cstoresi_neg_uxtw): Likewise.
4220 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4223 * config/arm/predicates.md (arm_comparison_operator_mode):
4225 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
4226 instead of arm_comparison_operator.
4227 (*mov_negscc): Likewise.
4228 (*mov_notscc): Likewise.
4229 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
4230 (*thumb2_mov_negscc): Likewise.
4231 (*thumb2_mov_negscc_strict_it): Likewise.
4232 (*thumb2_mov_notscc): Likewise.
4233 (*thumb2_mov_notscc_strict_it): Likewise.
4235 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
4237 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
4240 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
4242 * config/visium/visium.c (machine_libfunc_index): New enum.
4243 (machine_libfuncs): New structure.
4244 (visium_libfuncs): New static variable.
4245 (TARGET_INIT_LIBFUNCS): Define to...
4246 (visium_init_libfuncs): ...this. New function.
4247 (expand_block_move_4): Use the appropriate libfunc.
4248 (expand_block_move_2): Likewise.
4249 (expand_block_move_1): Likewise.
4250 (expand_block_set_4): Likewise.
4251 (expand_block_set_2): Likewise.
4252 (expand_block_set_1): Likewise.
4253 (visium_trampoline_init): Likewise.
4255 2016-02-17 Nick Clifton <nickc@redhat.com>
4257 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
4258 TI's devices.csv file as of March 2016.
4260 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
4263 * opts-global.c (handle_common_deferred_options): Introduce and
4264 initialize two global variables to remember command-line options
4265 specifying a stack-limiting register.
4266 * opts.h: Add extern declarations of the two new global variables.
4267 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
4268 variable based on the values of the two new global variables.
4270 2016-02-16 Jakub Jelinek <jakub@redhat.com>
4273 * common.opt (Wnonnull-compare): New warning.
4274 * doc/invoke.texi (-Wnonnull): Remove text about comparison
4275 of arguments against NULL.
4276 (-Wnonnull-compare): Document.
4277 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
4278 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
4279 * passes.def (pass_warn_nonnull_compare): Add.
4280 * gimple-ssa-nonnull-compare.c: New file.
4282 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
4284 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
4285 AARCH64_EXTRA_TUNE_RECIP_SQRT.
4287 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
4289 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
4290 reciprocal sqrt for -mlow-precision-recip-sqrt.
4292 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
4293 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4295 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
4296 always use lane loads to construct non-constant vectors.
4298 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
4300 * config/aarch64/aarch64.md
4301 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
4302 constraints for operand 3.
4303 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
4305 2016-02-16 Jakub Jelinek <jakub@redhat.com>
4306 Richard Biener <rguenther@suse.de>
4308 PR tree-optimization/69820
4309 * tree-vect-patterns.c (type_conversion_p): Return false if
4310 *orig_type is unsigned single precision or boolean.
4311 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
4314 2016-02-16 Jakub Jelinek <jakub@redhat.com>
4316 PR rtl-optimization/69764
4317 PR rtl-optimization/69771
4318 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
4319 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
4321 2016-02-16 Richard Biener <rguenther@suse.de>
4323 PR tree-optimization/69776
4324 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
4326 (indirect_refs_may_alias_p): Likewise.
4327 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
4328 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
4329 according to tbaa_p.
4330 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
4331 (optimize_stmt): For redundant store discovery do not allow tbaa.
4333 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
4335 PR tree-optimization/69714
4336 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
4337 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
4339 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
4341 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
4342 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
4343 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
4344 * config/arc/arc.c (arc_init): Check FPU options.
4345 (get_arc_condition_code): Handle new CC_FPU* modes.
4346 (arc_select_cc_mode): Likewise.
4347 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
4348 register pair only. Allow access for ARCv2 accumulator.
4349 (gen_compare_reg): Whenever we have FPU support use FPU compare
4351 (arc_reorg): Don't generate brcc insns when FPU compare
4352 instructions are involved.
4353 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
4354 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
4355 floating point emulation.
4356 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
4357 (REVERSE_CONDITION): Add new CC_FPU* modes.
4358 (TARGET_FP_SP_BASE): Define.
4359 (TARGET_FP_DP_BASE): Likewise.
4360 (TARGET_FP_SP_FUSED): Likewise.
4361 (TARGET_FP_DP_FUSED): Likewise.
4362 (TARGET_FP_SP_CONV): Likewise.
4363 (TARGET_FP_DP_CONV): Likewise.
4364 (TARGET_FP_SP_SQRT): Likewise.
4365 (TARGET_FP_DP_SQRT): Likewise.
4366 (TARGET_FP_DP_AX): Likewise.
4367 * config/arc/arc.md (ARCV2_ACC): New constant.
4368 (type): New fpu type attribute.
4369 (SDF): Conditional iterator.
4370 (cstore<mode>, cbranch<mode>): Change expand condition.
4371 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
4372 handles FPU/FPX cases as well.
4373 * config/arc/arc.opt (mfpu): New option.
4374 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
4376 (adddf3, muldf3, subdf3): Removed.
4377 * config/arc/predicates.md (proper_comparison_operator): Recognize
4379 * config/arc/fpu.md: New file.
4380 * doc/invoke.texi (ARC Options): Document mfpu option.
4382 2016-02-16 Richard Biener <rguenther@suse.de>
4384 PR rtl-optimization/69291
4385 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
4386 noce_operand_ok check.
4388 2016-02-16 Tom de Vries <tom@codesourcery.com>
4391 * omp-low.c (simd_clone_create): Remove call to
4392 symtab->call_cgraph_insertion_hooks.
4394 2016-02-16 Jakub Jelinek <jakub@redhat.com>
4396 PR tree-optimization/69802
4397 * tree-ssa-reassoc.c (update_range_test): If op is
4398 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
4399 op == 1 test of precision 1 integral op, otherwise handle
4400 that case as op itself. Fix up formatting.
4401 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
4404 2016-02-16 Richard Biener <rguenther@suse.de>
4406 PR tree-optimization/69586
4407 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
4408 types for conversion sources.
4410 2016-02-16 Richard Biener <rguenther@suse.de>
4413 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
4414 mask OEP_ADDRESS_OF.
4416 2016-02-16 Alan Modra <amodra@gmail.com>
4419 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
4420 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
4421 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
4423 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
4424 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
4425 (p8_fmrgow_<mode>): Likewise.
4426 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
4428 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
4429 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
4430 to use movdi_internal64. Remove op0_di.
4431 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
4433 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
4435 Add support for the FCCMP insn types
4437 * config/aarch64/aarch64.md (fccmp): Change insn type.
4439 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
4440 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
4441 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
4442 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
4443 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
4444 * config/arm/types.md (fccmps): Add new insn type.
4447 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
4449 * alias.c (get_alias_set): Fix a typo in comment.
4451 2016-02-15 Richard Biener <rguenther@suse.de>
4453 PR tree-optimization/69595
4454 * match.pd: Complete range test simplification to true.
4456 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
4458 PR rtl-optimization/69648
4459 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
4460 pic_offset_table_rtx.
4462 PR rtl-optimization/69752
4463 * ira.c (update_equiv_regs): When looking for more than a single SET,
4464 also take other side effects into account.
4466 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
4468 * config/s390/s390.c (s390_function_profiler): Add a new sequence
4469 for z900+ CPUs in 31-bit mode.
4471 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
4473 * common/config/s390/s390-common.c (s390_supports_split_stack):
4475 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
4476 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
4477 * config/s390/s390.c (struct machine_function): New field
4478 split_stack_varargs_pointer.
4479 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
4480 in s390_emit_prologue.
4481 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
4483 (morestack_ref): New global.
4484 (SPLIT_STACK_AVAILABLE): New macro.
4485 (s390_expand_split_stack_prologue): New function.
4486 (s390_live_on_entry): New function.
4487 (s390_va_start): Use split-stack vararg pointer if appropriate.
4488 (s390_asm_file_end): Emit the split-stack note sections.
4489 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
4490 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
4491 (UNSPECV_SPLIT_STACK_CALL): New unspec.
4492 (UNSPECV_SPLIT_STACK_DATA): New unspec.
4493 (split_stack_prologue): New expand.
4494 (split_stack_space_check): New expand.
4495 (split_stack_data): New insn.
4496 (split_stack_call): New expand.
4497 (split_stack_call_*): New insn.
4498 (split_stack_cond_call): New expand.
4499 (split_stack_cond_call_*): New insn.
4501 2016-02-15 Richard Biener <rguenther@suse.de>
4503 PR tree-optimization/69783
4504 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
4505 Add trivially correct cases.
4507 2016-02-15 Tom de Vries <tom@codesourcery.com>
4510 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
4512 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
4514 2016-02-15 Richard Biener <rguenther@suse.de>
4516 PR tree-optimization/69776
4517 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
4518 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
4519 indicate whether we can use TBAA to disambiguate against stores.
4520 Use alias-set zero if not.
4521 (visit_reference_op_store): Do not use TBAA when looking up
4523 * tree-ssa-pre.c (compute_avail): Use TBAA here.
4524 (eliminate_dom_walker::before_dom_children): But not when looking
4525 up redundant stores.
4527 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
4529 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
4531 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4533 * config/i386/znver1.md
4534 (znver1_pop, znver1_pop_mem,
4535 znver1_load_imov_double_store,
4536 znver1_load_imov_direct_store,
4537 znver1_load_imov_direct_load,
4538 znver1_load_imov_double_load): Add new.
4539 (znver1_insn, znver1_insn_load): Add icmov type.
4541 znver1_sseavx_fma_load,
4543 znver1_avx256_fma_load): Fix pipe usage.
4545 2016-02-14 Alan Modra <amodra@gmail.com>
4548 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
4549 with an invalid hard reg, reload just the reg not the entire
4550 pre/post-inc/dec address expression.
4552 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
4555 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
4556 fixed R1_REG scratch reg.
4557 (sibcall_value_pcrel_fdpic): Likewise.
4559 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
4563 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
4565 2016-02-12 Walter Lee <walt@tilera.com>
4567 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
4568 * config/tilegx/t-tilegx: Likewise.
4570 2016-02-12 David Malcolm <dmalcolm@redhat.com>
4573 * diagnostic-show-locus.c (struct line_span): New struct.
4574 (layout::get_first_line): Delete.
4575 (layout::get_last_line): Delete.
4576 (layout::get_num_line_spans): New member function.
4577 (layout::get_line_span): Likewise.
4578 (layout::print_heading_for_line_span_index_p): Likewise.
4579 (layout::get_expanded_location): Likewise.
4580 (layout::calculate_line_spans): Likewise.
4581 (layout::m_first_line): Delete.
4582 (layout::m_last_line): Delete.
4583 (layout::m_line_spans): New field.
4584 (layout::layout): Update comment. Replace m_first_line and
4585 m_last_line with m_line_spans, replacing their initialization
4586 with a call to calculate_line_spans.
4587 (diagnostic_show_locus): When printing source lines and
4588 annotations, rather than looping over a single span
4589 of lines, instead loop over each line_span within
4590 the layout, with an inner loop over the lines within them.
4591 Call the context's start_span callback when changing line spans.
4592 * diagnostic.c (diagnostic_initialize): Initialize start_span.
4593 (diagnostic_build_prefix): Break out the building of the location
4594 part of the string into...
4595 (diagnostic_get_location_text): ...this new function, rewriting
4596 it from nested ternary expressions to a sequence of "if"
4598 (default_diagnostic_start_span_fn): New function.
4599 * diagnostic.h (diagnostic_start_span_fn): New typedef.
4600 (diagnostic_context::start_span): New field.
4601 (default_diagnostic_start_span_fn): New prototype.
4603 2016-02-12 David Malcolm <dmalcolm@redhat.com>
4606 * gcc.c (driver::finalize): Fix cleanup of "specs".
4608 2016-02-12 David Malcolm <dmalcolm@redhat.com>
4612 * gcc.c (driver::driver): Initialize m_option_suggestions.
4613 (driver::~driver): Clean up m_option_suggestions.
4614 (suggest_option): Convert to...
4615 (driver::suggest_option): ...this, and split out into
4616 driver::build_option_suggestions and find_closest_string.
4617 (driver::build_option_suggestions): New function, from
4618 first half of suggest_option. Special-case
4619 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
4620 the sanitizer_opts array. For options of enum types, add the
4621 various enum values to the candidate strings.
4622 (driver::handle_unrecognized_options): Remove "const".
4623 * gcc.h (driver::handle_unrecognized_options): Likewise.
4624 (driver::build_option_suggestions): New decl.
4625 (driver::suggest_option): New decl.
4626 (driver::m_option_suggestions): New field.
4627 * opts-common.c (add_misspelling_candidates): New function.
4628 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
4629 and make non-static.
4630 * opts.h (sanitizer_opts): New array decl.
4631 (add_misspelling_candidates): New function decl.
4632 * spellcheck.c (find_closest_string): New function.
4633 * spellcheck.h (find_closest_string): New function decl.
4635 2016-02-12 Jakub Jelinek <jakub@redhat.com>
4637 PR rtl-optimization/69764
4638 PR rtl-optimization/69771
4639 * optabs.c (expand_binop_directly): For shift_optab_p, force
4640 convert_modes with VOIDmode if xop1 has VOIDmode.
4642 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
4645 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
4646 to correctly determine instrumentation thunks.
4648 2016-02-12 Jakub Jelinek <jakub@redhat.com>
4651 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
4652 type by reference, force lhs on the call.
4655 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
4656 Compute retval and retbnd early in all cases if split_part_return_p
4657 and return_bb is not EXIT. Remove all clobber stmts and reset
4658 all debug stmts that refer to SSA_NAMEs defined in split part,
4659 except if it is retval, in that case replace the old retval with the
4660 lhs of the call to the split part.
4662 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4665 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4668 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
4669 whose result is used in PHI.
4670 (maybe_optimize_range_tests): Likewise.
4671 (final_range_test_p): Likweise.
4673 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4676 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
4677 whose result is used in PHI.
4678 (maybe_optimize_range_tests): Likewise.
4679 (final_range_test_p): Likweise.
4681 2016-02-12 Jakub Jelinek <jakub@redhat.com>
4683 * cgraph.c: Spelling fixes - behaviour -> behavior and
4684 neighbour -> neighbor.
4685 * target.def: Likewise.
4686 * sel-sched.c: Likewise.
4687 * config/mips/mips.c: Likewise.
4688 * config/arc/arc.md: Likewise.
4689 * config/arm/cortex-a57.md: Likewise.
4690 * config/arm/arm.c: Likewise.
4691 * config/arm/neon.md: Likewise.
4692 * config/arm/arm-c.c: Likewise.
4693 * config/vms/vms-c.c: Likewise.
4694 * config/s390/s390.c: Likewise.
4695 * config/i386/znver1.md: Likewise.
4696 * config/i386/i386.c: Likewise.
4697 * config/ia64/hpux-unix2003.h: Likewise.
4698 * config/msp430/msp430.md: Likewise.
4699 * config/rx/rx.c: Likewise.
4700 * config/rx/rx.md: Likewise.
4701 * config/aarch64/aarch64-simd.md: Likewise.
4702 * config/aarch64/aarch64.c: Likewise.
4703 * config/nvptx/nvptx.c: Likewise.
4704 * config/bfin/bfin.c: Likewise.
4705 * config/cris/cris.opt: Likewise.
4706 * config/rs6000/rs6000.c: Likewise.
4707 * target.h: Likewise.
4708 * spellcheck.c: Likewise.
4709 * ira-build.c: Likewise.
4710 * tree-inline.c: Likewise.
4711 * builtins.c: Likewise.
4712 * lra-constraints.c: Likewise.
4713 * explow.c: Likewise.
4714 * hwint.h: Likewise.
4715 * targhooks.c: Likewise.
4716 * tree-vect-data-refs.c: Likewise.
4718 * doc/tm.texi: Likewise.
4719 * doc/extend.texi: Likewise.
4720 * doc/install.texi: Likewise.
4721 * doc/md.texi: Likewise.
4722 * tree-ssa-tail-merge.c: Likewise.
4723 * sched-int.h: Likewise.
4724 * match.pd: Likewise.
4725 * sched-ebb.c: Likewise.
4726 * target.def (omit_struct_return_reg): Likewise.
4727 * gimple-ssa-isolate-paths.c: Likewise.
4728 (find_implicit_erroneous_behaviour): Renamed to...
4729 (find_implicit_erroneous_behavior): ... this.
4730 (find_explicit_erroneous_behaviour): Renamed to...
4731 (find_explicit_erroneous_behavior): ... this.
4732 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
4734 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
4736 PR rtl-optimization/64682
4737 PR rtl-optimization/69567
4738 PR rtl-optimization/69737
4739 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
4740 in I2 as well, just lose it.
4742 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4744 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
4746 (aarch64_last_printed_tune_string): Likewise.
4747 (aarch64_declare_function_name): Only output .arch assembler
4748 directive if it will be different from the previously output
4749 directive. Same for .tune comment but only if -dA is set.
4750 (aarch64_start_file): New function.
4751 (TARGET_ASM_FILE_START): Define.
4753 2016-02-11 David Malcolm <dmalcolm@redhat.com>
4756 * Makefile.in (PLUGIN_HEADERS): Add params.list.
4758 2016-02-11 Jakub Jelinek <jakub@redhat.com>
4761 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
4762 -Wmaybe-uninitialized warning.
4764 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
4767 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
4769 2016-02-11 Richard Biener <rguenther@suse.de>
4771 PR rtl-optimization/69291
4772 * ifcvt.c (noce_try_store_flag_constants): Do not allow
4773 subexpressions affected by changing the result.
4775 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
4778 * lra-constraints.c (curr_insn_transform): Find in/out operands
4779 for secondary memory moves. Update dups.
4781 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
4783 PR tree-optimization/69652
4784 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
4785 to nested loop, did source re-formatting, skip debug statements,
4786 add check on statement with volatile operand, remove dead scalar
4789 2016-02-10 Jakub Jelinek <jakub@redhat.com>
4790 Patrick Palka <ppalka@gcc.gnu.org>
4794 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
4795 calls if the return type is TREE_ADDRESSABLE.
4796 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
4797 * ipa-split.c (split_function): Fix doubled "we" in comment.
4798 Use void return type for the split part even if
4799 !split_point->split_part_set_retval.
4801 2016-02-10 Bin Cheng <bin.cheng@arm.com>
4803 PR tree-optimization/68021
4804 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
4805 when computing the value of biv cand by itself.
4807 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
4809 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
4810 (cortexa57_tunings): Likewise.
4811 (cortexa72_tunings): Likewise.
4812 (arch_macro_fusion_pair_p): Add support for AES fusion.
4813 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
4814 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
4815 Allow virtual registers before reload so early scheduling works.
4816 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
4817 correct latency and pipeline.
4818 (cortex_a57_crypto_complex): Likewise.
4819 (cortex_a57_crypto_xor): Likewise.
4820 (define_bypass): Add AES bypass.
4822 2016-02-10 Richard Biener <rguenther@suse.de>
4824 PR tree-optimization/69726
4825 * passes.def: Add DCE pass before late uninit.
4826 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
4827 really fixup if-conversions job.
4829 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
4831 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
4832 (arm_cortex_a57_tune): Likewise.
4833 (aarch_macro_fusion_pair_p): Add support for AES fusion.
4834 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
4836 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
4838 * timevar.def (TV_PHASE_DBGINFO): Delete.
4839 (TV_PHASE_CHECK_DBGINFO): Likewise.
4840 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
4842 2016-02-10 Richard Biener <rguenther@suse.de>
4844 PR tree-optimization/69719
4845 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
4846 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
4848 2016-02-09 Andrew Pinski <apinski@cavium.com>
4851 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
4852 get_vcond_mask_icode returns false.
4854 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4857 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
4858 an ADDIS that adds a pointer to a large constant that sets the
4859 upper16 bits with a load operation.
4861 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
4864 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
4866 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
4868 (vzipq_s16): Likewise.
4869 (vzipq_s32): Likewise.
4870 (vzipq_f32): Likewise.
4871 (vzipq_u8): Likewise.
4872 (vzipq_u16): Likewise.
4873 (vzipq_u32): Likewise.
4874 (vzipq_p8): Likewise.
4875 (vzipq_p16): Likewise.
4877 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
4880 * config/arm/arm.c (neon_endian_lane_map): New function.
4881 (neon_vector_pair_endian_lane_map): New function.
4882 (arm_evpc_neon_vuzp): Allow for big endian lane order.
4883 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
4885 (vuzpq_s16): Likewise.
4886 (vuzpq_s32): Likewise.
4887 (vuzpq_f32): Likewise.
4888 (vuzpq_u8): Likewise.
4889 (vuzpq_u16): Likewise.
4890 (vuzpq_u32): Likewise.
4891 (vuzpq_p8): Likewise.
4892 (vuzpq_p16): Likewise.
4894 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
4897 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
4900 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
4902 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
4903 truncate const_int operand 1 to QImode.
4905 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
4907 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
4908 corresponding to an abnormal edge.
4910 2016-02-09 Tom de Vries <tom@codesourcery.com>
4912 PR tree-optimization/69599
4913 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
4915 (find_func_aliases_for_builtin_call, find_func_clobbers)
4916 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
4919 2016-02-09 Richard Biener <rguenther@suse.de>
4921 PR tree-optimization/69715
4922 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
4923 LHS on calls as non-rewritable.
4925 2016-02-09 Tom de Vries <tom@codesourcery.com>
4928 * lto-wrapper.c (append_diag_options): New function.
4929 (compile_offload_image): Call append_diag_options.
4931 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
4934 * doc/extend.texi (Flag Output Operands): Correct sectioning.
4935 Minor copy-edit to fix verb tenses.
4937 2016-02-08 Jakub Jelinek <jakub@redhat.com>
4939 PR tree-optimization/69209
4940 * ipa-split.c (split_function): If split part is not
4941 returning retval, retval has gimple type but is not
4942 gimple value, force it into a SSA_NAME first.
4944 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
4946 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
4949 2016-02-08 Jason Merrill <jason@redhat.com>
4952 * convert.c (convert_to_integer_1): Check dofold on truncation
4954 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
4955 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
4956 Rename from *_nofold.
4957 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
4958 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
4960 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
4963 * tree.c (build_common_tree_nodes): Remove short_double argument.
4964 All callers changed.
4965 * tree.h (build_common_tree_nodes): Adjust declaration.
4966 * doc/invoke.texi (-fshort-double): Remove documentation.
4967 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
4968 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
4969 * lto-wrapper.c (merge_and_complain, append_compiler_options)
4970 (append_linker_options): Don't handle OPT_fshort_double.
4972 PR rtl-optimization/68730
4973 * lra-remat.c (insn_to_cand_activation): New static variable.
4974 (lra_remat): Allocate and free it.
4975 (create_cand): New arg activation. Initialize a field in
4976 insn_to_cand_activation if it is nonnull.
4977 (create_cands): Pass the activation insn to create_cand when making
4978 a candidate involving an output reload. Reorganize code a little.
4979 (do_remat): Keep track of active status of candidates in a separate
4982 2016-02-08 Richard Biener <rguenther@suse.de>
4984 PR tree-optimization/69719
4985 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
4986 Properly use absolute of the difference of the two offsets to
4987 compare or adjust the segment length.
4989 2016-02-08 Richard Biener <rguenther@suse.de>
4990 Jeff Law <law@redhat.com>
4993 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
4994 types for anonymous SSA names.
4996 2016-02-08 Richard Biener <rguenther@suse.de>
4998 PR rtl-optimization/69274
4999 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
5001 2016-02-08 Jeff Law <law@redhat.com>
5003 PR tree-optimization/65917
5004 * tree-ssa-dom.c (record_temporary_equivalences): Record both
5005 equivalences from if (x == y) style conditionals.
5006 (loop_depth_of_name): Remove.
5007 (record_equality): Remove loop depth check.
5008 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
5009 (const_and_copies::record_const_or_copy_raw): New member function.
5010 * tree-ssa-scopedtables.c
5011 (const_and_copies::record_const_or_copy_raw): New, factored out of
5012 (const_and_copies::record_const_or_copy): Call new member function.
5014 2016-02-05 Jeff Law <law@redhat.com>
5016 PR tree-optimization/68541
5017 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
5018 (count_stmts_in_block): New function.
5019 (poor_ifcvt_candidate_code): Likewise.
5020 (is_feasible_trace): Add some heuristics to determine when path
5021 splitting is profitable.
5022 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
5023 is a diamond with a single exit.
5025 2016-02-05 Martin Sebor <msebor@redhat.com>
5028 * doc/invoke.texi: Update -Wplacement-new to take an optional
5031 2016-02-06 Richard Henderson <rth@redhat.com>
5034 * tree.c (tree_nop_conversion_p): Do not strip casts into or
5035 out of non-standard address spaces.
5037 2016-02-05 Jakub Jelinek <jakub@redhat.com>
5039 PR rtl-optimization/69691
5040 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
5042 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
5044 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
5045 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
5046 (*ieee128_mfvsrd_64bit): Likewise.
5047 (*ieee128_mfvsrd_32bit): Likewise.
5049 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
5053 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
5055 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
5056 instrumented_version.
5058 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
5060 * doc/invoke.texi (Optimize Options): In table of --param options
5061 rename second occurrence of tracer-min-branch-ratio to
5062 tracer-min-branch-probability, rename
5063 tracer-min-branch-ratio-feedback to
5064 tracer-min-branch-probability-feedback and clarify description,
5065 rename sched-spec-state-edge-prob-cutoff to
5066 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
5067 to selsched-insns-to-rename, rename lto-minpartition to
5068 lto-min-partition, delete reorder-blocks-duplicate and
5069 reorder-blocks-duplicate-feedback.
5071 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5073 * config/s390/s390.c (s390_register_info_set_ranges): Remove
5076 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
5078 * doc/extend.texi: S/390: Correct some typos.
5080 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5082 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
5084 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5087 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
5088 (s390_register_info_gprtofpr): Use new macros above.
5089 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
5091 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
5092 its name. Adjust restore and save gpr ranges.
5093 (s390_register_info_set_ranges): New function.
5094 (s390_register_info): Use new macros above. Call
5095 s390_register_info_set_ranges.
5096 (s390_optimize_register_info): Likewise.
5097 (s390_hard_regno_rename_ok): Use new macros.
5098 (s390_hard_regno_scratch_ok): Likewise.
5099 (s390_emit_epilogue): Likewise.
5100 (s390_can_use_return_insn): Likewise.
5101 (s390_optimize_prologue): Likewise.
5102 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
5104 2016-02-05 Jakub Jelinek <jakub@redhat.com>
5107 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
5109 (ix86_option_override_internal): Disable TARGET_STV even for
5110 -m{incoming,preferred}-stack-boundary=3.
5112 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5114 * config.gcc: Mark deprecated rtems targets as obsolete.
5116 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
5118 PR rtl-optimization/64682
5119 PR rtl-optimization/69567
5120 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
5121 before I2 only if the register is both used and set in I2.
5123 2016-02-04 DJ Delorie <dj@redhat.com>
5125 * config/msp430/msp430.c (msp430_start_function): Add function type.
5127 2016-02-04 Jakub Jelinek <jakub@redhat.com>
5130 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
5132 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
5134 PR rtl-optimization/69577
5136 2015-10-29 Richard Henderson <rth@redhat.com>
5140 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
5141 sse check to the exact conditions of PR 67609.
5143 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
5146 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
5147 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
5148 not allowed into the traditional Altivec registers.
5149 (movtd_64bit_nodm): Likewise.
5150 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
5152 2016-02-04 David Malcolm <dmalcolm@redhat.com>
5154 * config/aarch64/cortex-a57-fma-steering.c
5155 (aarch64_register_fma_steering): Remove "static" from arguments
5158 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
5161 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
5164 2016-02-04 Mike Frysinger <vapier@gentoo.org>
5166 * doc/invoke.texi: Delete -mno-fma4.
5168 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
5170 PR rtl-optimization/69577
5171 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
5172 (find_subregs_of_mode): Update accordingly. Iterate over partial
5175 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
5177 * config/arm/arm-protos.h (neon_reinterpret): Remove.
5178 * config/arm/arm.c (neon_reinterpret): Remove.
5179 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
5180 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
5181 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
5182 vreinterpretti): Remove.
5183 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
5184 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
5185 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
5186 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
5187 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
5188 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
5189 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
5190 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
5191 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
5192 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
5193 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
5194 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
5195 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
5196 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
5197 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
5198 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
5199 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
5200 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
5201 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
5202 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
5203 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
5204 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
5205 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
5206 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
5207 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
5208 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
5209 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
5210 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
5211 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
5212 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
5213 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
5214 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
5215 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
5216 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
5217 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
5218 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
5219 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
5220 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
5221 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
5222 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
5223 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
5224 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
5225 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
5226 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
5227 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
5228 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
5229 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
5230 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
5231 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
5232 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
5233 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
5234 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
5235 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
5236 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
5237 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
5238 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
5239 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
5240 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
5241 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
5242 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
5243 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
5244 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
5245 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
5246 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
5247 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
5248 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
5249 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
5250 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
5251 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
5252 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
5253 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
5254 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
5255 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
5256 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
5257 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
5258 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
5259 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
5260 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
5261 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
5262 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
5263 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
5264 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
5265 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
5266 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
5267 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
5268 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
5269 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
5270 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
5271 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
5272 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
5273 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
5274 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
5275 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
5276 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
5277 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
5278 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
5279 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
5280 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
5281 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
5282 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
5283 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
5284 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
5285 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
5287 2016-02-04 Martin Liska <mliska@suse.cz>
5290 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
5291 that are gimple_store_p.
5292 (maybe_instrument_call): Likewise.
5294 2016-02-04 Bin Cheng <bin.cheng@arm.com>
5296 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
5297 register scaling out of memory reference and comment why.
5299 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5303 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
5304 folding the source of a SET.
5306 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5310 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
5311 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
5313 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
5317 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
5320 2016-02-04 Christian Bruel <christian.bruel@st.com>
5322 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
5323 * config/arm/arm.c (arm_set_current_function): Likewise.
5325 2016-02-04 Jakub Jelinek <jakub@redhat.com>
5326 Ilya Enkovich <enkovich.gnu@gmail.com>
5327 H.J. Lu <hongjiu.lu@intel.com>
5330 * config/i386/i386.c (convert_scalars_to_vector): Remove
5331 stack alignment fixes.
5332 (ix86_option_override_internal): Disable TARGET_STV if stack
5333 might not be aligned enough.
5334 (ix86_minimum_alignment): Assert that TARGET_STV is false.
5336 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
5338 * gcc/config/i386/x86-tune.def: Disable default prefetching
5341 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5342 Vladimir Makarov <vmakarov@redhat.com>
5345 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
5346 in validating fused toc addresses.
5348 2016-02-03 Jakub Jelinek <jakub@redhat.com>
5351 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
5352 range->m_caret fields if range->m_show_caret_p is false.
5355 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
5356 Force oldval into register if it does not satisfy reg_or_short_operand
5357 predicate. Fix up formatting.
5359 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
5360 Alexandre Oliva <aoliva@redhat.com>
5363 * lra-constraints.c (simplify_operand_subreg): Check additionally
5364 address validity after potential reloading.
5365 (process_address_1): Check insns validity. In case of failure do
5368 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
5371 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
5374 2016-02-02 Jakub Jelinek <jakub@redhat.com>
5376 * wide-int.cc (canonize_uhwi): New function.
5377 (wi::divmod_internal): Use it.
5379 2016-02-02 James Norris <jnorris@codesourcery.com
5381 * gimplify.c (omp_notice_variable): Add usage check.
5383 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5385 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
5386 like LE, GE, LT, GT when emitting relational operator.
5388 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
5390 * ira-costs.c (find_costs_and_classes): Add extra argument.
5391 * target.def (ira_change_pseudo_allocno_class): Add parameter.
5392 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
5393 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
5394 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
5395 Add best_class parameter, and return it if not ALL_REGS.
5396 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
5398 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
5401 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
5403 * config/aarch64/aarch64.c
5404 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
5405 (aarch64_ira_change_pseudo_allocno_class): New function.
5407 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
5410 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
5412 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5414 * config/avr/avr.c (avr_option_override): Set
5415 PARAM_ALLOW_STORE_DATA_RACES to 1.
5417 2016-02-02 Richard Biener <rguenther@suse.de>
5419 PR tree-optimization/69595
5420 * match.pd: Add range test simplifications to true/false.
5422 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
5424 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
5425 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
5428 2016-02-02 Richard Biener <rguenther@suse.de>
5430 PR tree-optimization/69606
5431 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
5432 info on the result before moving a stmt.
5434 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
5437 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
5438 branch with vector comparison.
5439 * config/i386/sse.md (VI48_AVX): New mode iterator.
5440 (define_expand "cbranch<mode>4): Add support for conditional branch
5441 with vector comparison.
5442 * tree-vect-loop.c (optimize_mask_stores): New function.
5443 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
5444 has_mask_store field of vect_info.
5445 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
5446 vectorized loops having masked stores after vec_info destroy.
5447 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
5448 correspondent macros.
5449 (optimize_mask_stores): Add prototype.
5451 2016-02-02 Alan Modra <amodra@gmail.com>
5454 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
5457 2016-02-02 Alan Modra <amodra@gmail.com>
5460 * config/rs6000/rs6000.c (need_toc_init): New var, set it
5461 whenever toc_label_name used.
5462 (rs6000_file_start): Don't set up toc section here,
5463 (rs6000_output_function_epilogue): do so here instead,
5464 (rs6000_xcoff_file_start): and here.
5465 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
5466 (load_toc_aix_di): Likewise.
5468 2016-02-01 Jakub Jelinek <jakub@redhat.com>
5470 PR rtl-optimization/69592
5471 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
5472 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
5473 (num_sign_bit_copies_binary_arith_p): New inline function.
5474 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
5476 2016-02-01 Jeff Law <law@redhat.com>
5478 PR tree-optimization/69580
5479 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
5480 * tree-ssa-threadbackward.c
5481 (fsm_find_control_statement_thread_paths): Do not try to walk
5482 through large PHI nodes.
5484 2016-02-01 Jakub Jelinek <jakub@redhat.com>
5486 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
5487 when count is incremented above limit, don't analyze further
5490 * omp-low.c (oacc_parse_default_dims): Avoid
5491 -Wsign-compare warning, make sure value fits into int
5492 rather than just unsigned int.
5494 2016-02-01 Bin Cheng <bin.cheng@arm.com>
5496 PR tree-optimization/67921
5497 * fold-const.c (split_tree): New parameters. Convert pointer
5498 type variable part to proper type before negating.
5499 (fold_binary_loc): Pass new arguments to split_tree.
5501 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
5503 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
5504 (nvptx_goacc_validate_dims): Extend to handle global defaults.
5505 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
5506 * doc/tm.texti: Rebuilt.
5507 * doc/invoke.texi (fopenacc-dim): Document.
5508 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
5509 (append_compiler_options): Likewise.
5510 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
5511 (oacc_parse_default_dims): New.
5512 (oacc_validate_dims): Add USED arg. Select non-unity default when
5514 (oacc_loop_fixed_partitions): Return mask of used partitions.
5515 (oacc_loop_auto_partitions): Emit dump info.
5516 (oacc_loop_partition): Return mask of used partitions.
5517 (execute_oacc_device_lower): Parse default dimension arg. Adjust
5518 loop partitioning and validation calls.
5520 2016-02-01 Richard Biener <rguenther@suse.de>
5523 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
5525 2016-02-01 Richard Biener <rguenther@suse.de>
5527 PR tree-optimization/69574
5528 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
5529 of asserting return chrec_dont_know.
5531 2016-02-01 Martin Liska <mliska@suse.cz>
5533 * mem-stats-traits.h: Add copyright header.
5534 * mem-stats.h: Likewise.
5536 2016-02-01 Richard Biener <rguenther@suse.de>
5538 PR tree-optimization/69579
5539 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
5540 Do not propagate through abnormal PHI results.
5542 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
5544 * postreload.c (reload_cse_simplify): Remove dead code.
5546 2016-02-01 Jakub Jelinek <jakub@redhat.com>
5548 PR rtl-optimization/69570
5549 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
5550 if there is more than one set, not if there is a single set.
5552 2016-02-01 Richard Henderson <rth@redhat.com>
5555 * combine.c (make_compound_operation): When looking through a
5556 subreg, make sure to re-extend to the width of the outer mode.
5558 2016-01-30 Jakub Jelinek <jakub@redhat.com>
5560 PR tree-optimization/69546
5561 * wide-int.cc (wi::divmod_internal): For unsigned division
5562 where both operands fit into uhwi, if o1 is 1 and o0 has
5563 msb set, if divident_prec is larger than bits per hwi,
5564 clear another quotient word and return 2 instead of 1.
5565 Similarly for remainder with msb in HWI set, if dividend_prec
5566 is larger than bits per hwi.
5568 2016-01-29 Martin Jambor <mjambor@suse.cz>
5570 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
5571 Use short lowercase names.
5572 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
5573 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
5574 acq_rel one. Protect warning agains segfaults if
5575 get_memory_order_name returns NULL.
5576 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
5577 with release semantics. Do not warn if get_memory_order already did.
5578 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
5579 semantics. Fix check for relaxed or acquire semantics. Do not warn
5580 if get_memory_order already did.
5582 2016-01-29 Sebastian Pop <s.pop@samsung.com>
5584 * doc/install.texi: Document that isl-0.16 is supported.
5586 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
5589 * config/i386/constraints.md (Bm): Describe as special memory
5591 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
5592 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
5593 * genpreds.c (struct constraint_data): Add is_special_memory.
5594 (have_special_memory_constraints, special_memory_start): New
5596 (special_memory_end): Ditto.
5597 (add_constraint): Add new arg is_special_memory. Add code to
5598 process its true value. Update have_special_memory_constraints.
5599 (process_define_constraint): Pass the new arg.
5600 (process_define_register_constraint): Ditto.
5601 (choose_enum_order): Process special memory.
5602 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
5603 function insn_extra_special_memory_constraint.
5604 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
5605 * gensupport.c (process_rtx): Process
5606 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
5607 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
5608 * ira-lives.c (single_reg_class): Use
5609 insn_extra_special_memory_constraint.
5610 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
5611 * lra-constraints.c (process_alt_operands): Ditto.
5612 (curr_insn_transform): Use insn_extra_special_memory_constraint.
5613 * recog.c (asm_operand_ok, preprocess_constraints): Process
5615 * reload.c (find_reloads): Ditto.
5616 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
5617 * stmt.c (parse_input_constraint): Use
5618 insn_extra_special_memory_constraint.
5620 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
5623 * lra-splill.c (lra_final_code_change): Revert r229087 by
5624 removing all sub-registers.
5626 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
5629 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
5631 2016-01-29 Jakub Jelinek <jakub@redhat.com>
5634 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
5635 SSE1, copy target into the temporary reg first before recursing
5638 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
5640 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
5643 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
5645 * ginclude/stdarg.h: Test __cplusplus instead of
5646 __GXX_EXPERIMENTAL_CXX0X__.
5648 2016-01-29 Richard Biener <rguenther@suse.de>
5650 PR tree-optimization/69547
5651 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
5652 Do not mark clobbers necessary.
5653 (mark_all_reaching_defs_necessary_1): Likewise.
5655 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
5657 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
5658 declaration name with %qs and print it in both error messages.
5659 Also fix indentation.
5661 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
5664 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
5665 trailing blank line from error message.
5667 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
5670 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
5673 2016-01-29 Richard Biener <rguenther@suse.de>
5676 * match.pd: Allow all integral types when simplifying a
5677 widening or sign-changing conversion.
5679 2016-01-28 Sebastian Pop <s.pop@samsung.com>
5681 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
5682 back to setting codegen_error to fail codegen.
5684 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
5687 * config/i386/constraints.md (C): Only accept constant zero operand.
5688 (BC): New constraint.
5689 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
5690 instead of C constraint.
5691 * doc/md.texi (Machine Constraints): Update description
5694 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
5697 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
5699 2016-01-28 Jakub Jelinek <jakub@redhat.com>
5702 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
5705 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
5707 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
5708 branches if using guessed profile.
5710 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
5712 * graphite-optimize-isl.c (optimize_isl): Fix dump.
5714 2016-01-28 Richard Henderson <rth@redhat.com>
5717 * config/aarch64/aarch64-modes.def (CC_Cmode): New
5718 * config/aarch64/aarch64-protos.h: Update.
5719 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
5720 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
5721 (aarch64_get_condition_code_1): Handle CC_Cmode.
5722 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
5723 (*add<mode>3_compareC_cconly_imm): New.
5724 (*add<mode>3_compareC_cconly): New.
5725 (*add<mode>3_compareC_imm): New.
5726 (add<mode>3_compareC): New.
5727 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
5728 to be first. Use aarch64_carry_operation.
5729 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
5730 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
5731 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
5732 (subti3): Use subdi3_compare1.
5733 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
5734 (sub<mode>3_compare1): New.
5735 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
5736 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
5737 (*subsi3_carryin_uxtw): Likewise.
5738 (*ngc<mode>, *ngcsi_uxtw): Likewise.
5739 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
5740 * config/aarch64/iterators.md (DWI): New.
5741 * config/aarch64/predicates.md (aarch64_carry_operation): New.
5742 (aarch64_borrow_operation): New.
5744 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5746 * graphite-optimize-isl.c (optimize_isl): Print a different debug
5747 message when isl does not return a valid schedule.
5749 2016-01-28 Sebastian Pop <s.pop@samsung.com>
5751 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
5752 Remove comments from class declarations: they are already in the code
5755 2016-01-28 Sebastian Pop <s.pop@samsung.com>
5757 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
5759 (ternary_op_to_tree): Same.
5760 (unary_op_to_tree): Same.
5761 (nary_op_to_tree): Same.
5762 (gcc_expression_from_isl_expr_op): Same.
5763 (gcc_expression_from_isl_expression): Same.
5764 (graphite_create_new_loop): Same.
5765 (graphite_create_new_loop_guard): Same.
5766 (build_iv_mapping): Same.
5767 (graphite_create_new_guard): Same.
5768 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
5769 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
5771 2016-01-28 Sebastian Pop <s.pop@samsung.com>
5773 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
5774 instead of setting codegen_error to fail codegen.
5776 2016-01-28 Jason Merrill <jason@redhat.com>
5778 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
5780 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
5782 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
5783 Remove CONST_INT_P check in CCMP cost calculation.
5785 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
5787 * config/aarch64/aarch64.c (generic_vector_cost):
5788 Set vec_permute_cost.
5789 (cortexa57_vector_cost): Likewise.
5790 (exynosm1_vector_cost): Likewise.
5791 (xgene1_vector_cost): Likewise.
5792 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
5793 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
5794 Add vec_permute_cost entry.
5796 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
5798 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
5800 (add<mode>3_compare0): Likewise.
5801 (addsi3_compare0_uxtw): Likewise.
5802 (add<mode>3nr_compare0): Likewise.
5803 (compare_neg<mode>): Likewise.
5804 (<optab><mode>3): Likewise.
5806 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
5808 * tree-vect-stmts.c (vectorizable_comparison): Add
5809 NULL check for vectype.
5811 2016-01-28 Richard Biener <rguenther@suse.de>
5813 PR tree-optimization/69466
5814 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
5815 Account for PHIs we couldn't duplicate.
5817 2016-01-28 Martin Liska <mliska@suse.cz>
5820 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
5821 instead of ENABLE_VALGRIND_CHECKING.
5823 2016-01-27 Richard Henderson <rth@redhat.com>
5826 * lra-remat.c (subreg_regs): New.
5827 (dump_candidates_and_remat_bb_data): Dump it.
5828 (operand_to_remat): Reject if operand in subreg_regs.
5829 (set_bb_regs): Collect subreg_regs.
5830 (lra_remat): Init and free subreg_regs. Compute
5831 calculate_local_reg_remat_bb_data before create_cands.
5833 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
5836 * config/i386/i386.c (ix86_update_stack_boundary): Don't
5837 change stack_alignment_needed for __tls_get_addr call.
5839 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
5841 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
5843 2016-01-27 Jeff Law <law@redhat.com>
5845 PR tree-optimization/68398
5846 PR tree-optimization/69196
5847 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
5848 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
5849 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5850 Only count PHIs in the last block in the path. The others will
5851 const/copy propagate away. Add heuristic to allow more irreducible
5852 subloops to be created when it is likely profitable to do so.
5854 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5855 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
5856 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
5858 2016-01-27 Jakub Jelinek <jakub@redhat.com>
5861 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
5862 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
5863 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
5864 * tree-streamer-in.c: Include asan.h.
5865 (streamer_get_builtin_tree): For builtins in sanitizer
5866 range call initialize_sanitizer_builtins and retry.
5868 2016-01-27 Ian Lance Taylor <iant@google.com>
5870 * common.opt (fkeep-gc-roots-live): New undocumented option.
5871 * tree-ssa-loop-ivopts.c (add_candidate_1): If
5872 -fkeep-gc-roots-live, skip pointers.
5873 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
5876 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
5879 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
5880 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
5882 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
5885 * configure.ac: NetBSD provides SSP in its C library.
5886 * configure: Updated.
5888 2016-01-27 Richard Biener <rguenther@suse.de>
5890 PR tree-optimization/69166
5891 * tree-vect-loop.c (vect_is_simple_reduction): Always check
5892 reduction code for commutativity / associativity.
5894 2016-01-27 Martin Jambor <mjambor@suse.cz>
5896 PR tree-optimization/69355
5897 * tree-sra.c (analyze_access_subtree): Correct hole detection when
5898 total_scalarization fails.
5900 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
5902 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
5905 2016-01-27 Christian Bruel <christian.bruel@st.com>
5908 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
5909 Move arm_reset_previous_fndecl and set_target_option_current_node in
5910 the conditional part. Call save_restore_target_globals.
5911 * config/arm/arm.c (arm_set_current_function):
5912 Refactor to better support #pragma target and attribute mix.
5913 Call save_restore_target_globals.
5914 * config/arm/arm-protos.h (save_restore_target_globals): New function.
5916 2016-01-27 Martin Liska <mliska@suse.cz>
5918 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
5919 reference for an HSA kernel and its host function.
5921 2016-01-27 Jakub Jelinek <jakub@redhat.com>
5923 PR tree-optimization/69399
5924 * wide-int.h (wi::lrshift): For larger precisions, only
5925 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
5927 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
5929 * config/arc/predicates.md (proper_comparison_operator): Reject
5930 constant-constant comparison.
5932 2016-01-26 Tom de Vries <tom@codesourcery.com>
5934 PR tree-optimization/69110
5935 * tree-data-ref.c (initialize_data_dependence_relation): Handle
5936 DR_NUM_DIMENSIONS == 0.
5938 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5939 Sebastian Pop <s.pop@samsung.com>
5941 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
5942 isl_ast_op_cond and isl_ast_op_select.
5943 (gcc_expression_from_isl_expr_op): Same.
5945 2016-01-26 Jason Merrill <jason@redhat.com>
5948 * tree.c (recompute_constructor_flags): Split out from
5950 (verify_constructor_flags): New.
5951 * tree.h: Declare them.
5953 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
5955 PR rtl-optimization/69217
5956 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
5957 are no TYPE_FIELDS set for the record type.
5959 2016-01-26 Jakub Jelinek <jakub@redhat.com>
5962 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
5963 toc_label_name unconditionally.
5964 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
5965 SYMBOL_REF string. Use toc_label_name instead of constructing
5967 (rs6000_elf_declare_function_name): Use toc_label_name instead of
5968 constructing LCTOC1.
5970 2016-01-26 Martin Sebor <msebor@redhat.com>
5973 * doc/extend.texi (Common Type Attributes): Move text that talks about
5974 attribute packed from attribute aligned to the section discussing
5975 the former attribute for clarity.
5977 2016-01-26 Richard Henderson <rth@redhat.com>
5980 * trans-mem.c (tm_region_init): Mark entry block as visited.
5982 2016-01-26 David Malcolm <dmalcolm@redhat.com>
5985 * diagnostic-show-locus.c (layout::print_source_line): Replace
5986 call to pp_newline with call to layout::print_newline.
5987 (layout::print_annotation_line): Likewise.
5988 (layout::move_to_column): Likewise.
5989 (layout::print_any_fixits): After printing any fixits, print a
5990 trailing newline, if necessary.
5991 (layout::print_newline): New method, resetting any colorization
5993 (diagnostic_show_locus): Move the pp_newline to before the
5994 early bailout. Remove dummy block enclosing the layout instance.
5995 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
5996 of pp_newline_and_flush with pp_flush.
5997 (diagnostic_append_note): Delete use of pp_newline.
5998 (diagnostic_append_note_at_rich_loc): Delete.
5999 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
6000 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
6001 when newline characters are added to the buffer.
6003 2016-01-26 Michael Matz <matz@suse.de>
6005 * configure.ac (ac_cv_std_swap_in_utility): New test.
6006 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
6007 * configure: Regenerate.
6008 * config.in: Regenerate.
6010 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
6012 * config/arc/arc.md (cstoresi4): Force operand into register.
6013 (arcset<code>): Fix predicate.
6014 (arcsetltu): Likewise.
6015 (arcsetgeu): Likewise.
6016 (arcsethi): Likewise.
6017 (arcsetls): Likewise.
6019 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6021 PR tree-optimization/69483
6022 * gimple-fold.c (canonicalize_constructor_val): Return NULL
6023 if base has error_mark_node type.
6025 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
6028 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
6029 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
6031 (vget_lane_f16): Handle big-endian.
6032 (vgetq_lane_f16): Likewise.
6033 (vset_lane_f16): Likewise.
6034 (vsetq_lane_f16): Likewise.
6035 * config/arm/iterators.md (VQXMOV): Add V8HF.
6036 (VDQ): Add V4HF and V8HF.
6037 (V_reg): Handle V4HF and V8HF.
6038 (Is_float_mode): Likewise.
6039 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
6040 neon_vdup_nv8hf): New patterns.
6041 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
6042 Use VD_LANE iterator.
6043 (neon_vld1_dup<mode>): Use VQ2 iterator.
6045 2016-01-26 Nathan Sidwell <nathan@acm.org>
6047 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
6048 (set_oacc_fn_attrib): Add IS_KERNEL arg.
6049 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
6050 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
6051 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
6052 (oacc_validate_dims): Add LEVEL arg, don't return level.
6053 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
6055 (execute_oacc_device_lower): Adjust, add more dump output.
6056 * tree-ssa-loop.c (gate_oacc_kernels): Use
6057 oacc_fn_attrib_kernels_p.
6058 * tree-parloops.c (create_parallel_loop): Adjust
6059 set_oacc_fn_attrib call.
6061 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6064 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
6065 (append_compiler_options): Handle -fcilkplus.
6066 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
6068 2016-01-26 Nick Clifton <nickc@redhat.com>
6071 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
6072 been marked as DECL_ONE_ONLY but we do not the means to make it
6073 so, then do not allow it to bind locally.
6075 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6078 * opts.h (parse_sanitizer_options): New prototype.
6079 * opts.c (sanitizer_opts): New array.
6080 (parse_sanitizer_options): New function.
6081 (common_handle_option): Use parse_sanitizer_options.
6083 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
6086 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
6087 alignment adjustment to ...
6088 (ix86_update_stack_boundary): Here. Don't over-align stack for
6090 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
6091 if __tls_get_addr is called.
6093 2016-01-26 Christian Bruel <christian.bruel@st.com>
6095 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
6097 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
6099 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
6101 2016-01-26 Richard Biener <rguenther@suse.de>
6104 * match.pd: Guard X * CST CMP 0 pattern with single_use.
6106 2016-01-26 Richard Biener <rguenther@suse.de>
6108 PR tree-optimization/69452
6109 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
6110 (move_computations_dom_walker::before_dom_children): Rename
6112 (move_computations_worker): This.
6113 (move_computations): Perform an RPO rather than a DOM walk.
6115 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6118 * combine.c (combine_instructions): For REG_EQUAL note with
6119 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
6120 to the underlying register.
6121 * doc/rtl.texi (REG_EQUAL): Document the behavior of
6122 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
6124 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
6127 * config/aarch64/aarch64-builtins.c
6128 (aarch64_init_simd_builtin_types): Do not set structural
6129 equality to __Poly{8,16,64,128}_t types.
6131 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
6133 PR tree-optimization/69400
6134 * wide-int.cc (wi_pack): Take the precision as argument and
6135 perform canonicalization here rather than in the callers.
6136 Use the main loop to handle all full-width HWIs. Add a
6137 zero HWI if in_len isn't a full result.
6138 (wi::divmod_internal): Update accordingly.
6139 (wi::mul_internal): Likewise. Simplify.
6141 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
6142 Sebastian Pop <s.pop@samsung.com>
6144 * graphite-poly.c (apply_poly_transforms): Simplify.
6145 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
6146 (print_isl_map): Same.
6147 (print_isl_union_map): Same.
6148 (print_isl_schedule): New.
6149 (debug_isl_schedule): New.
6150 * graphite-dependences.c (scop_get_reads): Do not call
6151 isl_union_map_add_map that is undocumented isl functionality.
6152 (scop_get_must_writes): Same.
6153 (scop_get_may_writes): Same.
6154 (scop_get_original_schedule): Remove.
6155 (scop_get_dependences): Do not call isl_union_map_compute_flow that
6156 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
6157 (compute_deps): Remove.
6158 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
6159 (debug_schedule_ast): New.
6160 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
6161 set_separate_option.
6162 (graphite_regenerate_ast_isl): Add dump.
6163 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
6164 from scop->transformed_schedule.
6165 (graphite_regenerate_ast_isl): Add more dump.
6166 * graphite-optimize-isl.c (optimize_isl): Set
6167 scop->transformed_schedule. Check whether schedules are equal.
6168 (apply_poly_transforms): Move here.
6169 * graphite-poly.c (apply_poly_transforms): ... from here.
6170 (free_poly_bb): Static.
6171 (free_scop): Static.
6172 (pbb_number_of_iterations_at_time): Remove.
6173 (print_isl_ast): New.
6174 (debug_isl_ast): New.
6175 (debug_scop_pbb): New.
6176 * graphite-scop-detection.c (print_edge): Move.
6178 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
6179 (build_scop_scattering): Remove.
6180 (create_pw_aff_from_tree): Assert instead of bailing out.
6181 (add_condition_to_pbb): Remove unused code, do not fail.
6182 (add_conditions_to_domain): Same.
6183 (add_conditions_to_constraints): Remove.
6184 (build_scop_context): New.
6185 (add_iter_domain_dimension): New.
6186 (build_iteration_domains): Initialize pbb->iterators.
6187 Call add_conditions_to_domain.
6190 (index_outermost_in_loop): New.
6191 (index_pbb_in_loop): New.
6192 (outermost_pbb_in): New.
6193 (add_in_sequence): New.
6194 (add_outer_projection): New.
6195 (outer_projection_mupa): New.
6196 (add_loop_schedule): New.
6197 (build_schedule_pbb): New.
6198 (build_schedule_loop): New.
6199 (embed_in_surrounding_loops): New.
6200 (build_schedule_loop_nest): New.
6201 (build_original_schedule): New.
6202 (build_poly_scop): Call build_original_schedule.
6203 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
6204 (free_poly_dr): Remove.
6205 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
6206 (free_poly_bb): Remove.
6207 (debug_loop_vec): Remove.
6208 (print_isl_ast): Declare.
6209 (debug_isl_ast): Declare.
6210 (scop_do_interchange): Remove.
6211 (scop_do_strip_mine): Remove.
6212 (scop_do_block): Remove.
6213 (flatten_all_loops): Remove.
6214 (optimize_isl): Remove.
6215 (pbb_number_of_iterations_at_time): Remove.
6216 (debug_scop_pbb): Declare.
6217 (print_schedule_ast): Declare.
6218 (debug_schedule_ast): Declare.
6219 (struct scop): Remove schedule. Add original_schedule,
6220 transformed_schedule.
6221 (free_gimple_poly_bb): Remove.
6222 (print_generated_program): Remove.
6223 (debug_generated_program): Remove.
6224 (unify_scattering_dimensions): Remove.
6225 * sese.c (print_edge): ... here.
6226 (print_sese): ... here.
6227 (debug_edge): ... here.
6228 (debug_sese): ... here.
6229 * sese.h (print_edge): Declare.
6230 (print_sese): Declare.
6231 (dump_edge): Declare.
6232 (dump_sese): Declare.
6234 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
6235 Sebastian Pop <s.pop@samsung.com>
6237 * Makefile.in: Set ISLVER in site.exp.
6239 2016-01-25 Jakub Jelinek <jakub@redhat.com>
6241 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
6242 DECL_VALUE_EXPR of new_var even for the non-array case. Look
6243 through DECL_VALUE_EXPR for expansion.
6245 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6247 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
6248 the frame info after reload completed.
6250 2016-01-25 Jeff Law <law@redhat.com>
6252 PR tree-optimization/69196
6253 PR tree-optimization/68398
6254 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
6255 tree-ssa-threadupdate.c.
6256 (determine_bb_domination_status): Prototype
6257 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
6258 (determine_bb_domination_status): No longer static.
6259 (valid_jump_thread_path): Remove code to detect characteristics
6260 of the jump thread path not associated with correctness.
6261 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
6262 Correct test for thread path length. Count PHIs for real operands as
6263 statements that need to be copied. Do not count ASSERT_EXPRs.
6264 Look at all the blocks in the thread path. Compute and selectively
6265 filter thread paths based on threading through the latch, threading
6266 a multiway branch or crossing a multiway branch.
6268 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6270 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
6271 decl with __attribute__ ((unused)) annotation.
6273 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
6276 * tree-vect-stmts.c (vectorizable_condition): Check vectype
6277 of operands is compatible with a statement vectype.
6279 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
6281 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
6282 improve wording for mixed storage order support.
6284 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
6286 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
6287 (vcvt_u64_f64): Likewise.
6288 (vcvta_s64_f64): Likewise.
6289 (vcvta_u64_f64): Likewise.
6290 (vcvtm_s64_f64): Likewise.
6291 (vcvtm_u64_f64): Likewise.
6292 (vcvtn_s64_f64): Likewise.
6293 (vcvtn_u64_f64): Likewise.
6294 (vcvtp_s64_f64): Likewise.
6295 (vcvtp_u64_f64): Likewise.
6297 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
6299 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
6300 (arc_init): Check validity mll64 option.
6301 (arc_save_restore): Use double load/store instruction.
6302 (arc_expand_movmem): Likewise.
6303 (arc_split_move): Don't split if we have double load/store
6304 instructions. Returns a boolean.
6305 (arc_process_double_reg_moves): Change function to return boolean
6306 instead of a sequence of instructions.
6307 (arc_dwarf_register_span): New function.
6308 * config/arc/arc-protos.h (arc_split_move): Change prototype.
6309 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
6310 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
6311 (*movdf_insn): Likewise.
6312 * config/arc/arc.opt (mll64): New option.
6313 * config/arc/predicates.md (even_register_operand): New predicate.
6314 * doc/invoke.texi (ARC Options): Add mll64 documentation.
6316 2016-01-25 Richard Biener <rguenther@suse.de>
6319 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
6320 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
6322 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
6324 2016-01-25 Richard Biener <rguenther@suse.de>
6326 PR tree-optimization/69376
6327 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
6329 (VN_INFO_ANTI_RANGE_P): New inline.
6330 (VN_INFO_RANGE_TYPE): Likewise.
6331 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
6332 SSA_NAME_ANTI_RANGE_P.
6333 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
6334 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6335 Properly query VN_INFO_RANGE_TYPE.
6337 2016-01-25 Nick Clifton <nickc@redhat.com>
6340 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
6342 2016-01-23 Tom de Vries <tom@codesourcery.com>
6344 PR tree-optimization/69426
6345 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
6348 2016-01-23 Jakub Jelinek <jakub@redhat.com>
6350 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
6351 "the the" with "the" in the comments.
6352 * ipa-devirt.c (build_type_inheritance_graph,
6353 update_type_inheritance_graph): Likewise.
6354 * tree.c (build_function_type_list_1): Likewise.
6355 * cfgloopmanip.c (scale_loop_profile): Likewise.
6356 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
6357 * gimple-ssa-split-paths.c
6358 (find_block_to_duplicate_for_splitting_paths): Likewise.
6359 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
6360 * expr.c (convert_move): Likewise.
6361 * var-tracking.c (vt_stack_adjustments): Likewise.
6362 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
6363 * tree-vrp.c (test_for_singularity): Likewise.
6365 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
6366 directly instead of building a temporary tree.
6369 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
6370 remove <algorithm> include.
6372 2016-01-22 Jakub Jelinek <jakub@redhat.com>
6375 * config/i386/i386.c: Include dojump.h.
6376 (expand_small_movmem_or_setmem,
6377 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
6379 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
6380 if dynamic_check != -1.
6382 2016-01-21 Jeff Law <law@redhat.com>
6385 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
6386 record_temporary_equivalences. Rewritten to avoid unnecessary calls
6387 into dominated_by_p.
6388 (cprop_into_successor_phis): Avoid unnecessary tests.
6390 2016-01-22 Richard Henderson <rth@redhat.com>
6393 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
6394 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
6396 2016-01-22 Michael Matz <matz@suse.de>
6398 * system.h (string, algorithm): Include only conditionally.
6399 (new): Include always under C++.
6400 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
6401 * final.c (toplevel): Ditto.
6402 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
6403 * genconditions.c (write_header): Make gencondmd.c define
6405 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
6407 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
6408 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
6410 2016-01-22 Christian Bruel <christian.bruel@st.com>
6413 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
6415 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6418 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
6419 define_insn_and_split. Ensure operands[1] and operands[0] do not
6420 get assigned the same register.
6422 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
6424 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
6426 2016-01-22 Christian Bruel <christian.bruel@st.com>
6428 * config/arm/arm-c.c (arm_pragma_target_parse):
6429 Remove warn_builtin_macro_redefined overwrite.
6431 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
6433 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
6434 flag_non_call_exceptions compatibility.
6436 2016-01-22 Jakub Jelinek <jakub@redhat.com>
6439 * dwarf2out.c (add_child_die_after): New function.
6440 (dwarf_qual_info_t): New type.
6441 (dwarf_qual_info): New variable.
6442 (qualified_die_p): New function.
6443 (modified_type_die): For -fdebug-types-section, ensure
6444 canonical order of qualifiers. Put qualified DIEs adjacent
6445 to the corresponding non-qualified type DIE and search there
6446 for existing qualified DIEs.
6448 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
6450 * doc/extend.texi (scalar_storage_order type attribute): Document
6451 restriction on type punning and aliasing, and remove future tense.
6453 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
6456 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
6459 2016-01-21 Jeff Law <law@redhat.com>
6462 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
6463 useless call to record_temporary_equivalences.
6464 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
6465 allocate 10 slots in the bb_path vector and let it grow as needed.
6466 (fsm_find_control_statement_thread_paths): Similarly for the next_path
6469 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
6471 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
6473 * configure: Regenerate.
6475 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
6477 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
6478 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
6480 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
6483 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
6484 drop EXPAND_INITIALIZER.
6485 * rtl.h (contains_symbolic_reference_p): Declare.
6486 * rtlanal.c (contains_symbolic_reference_p): New function.
6487 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
6488 a subtraction into a NOT if symbolic constants are involved.
6490 2016-01-21 Anton Blanchard <anton@samba.org>
6491 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6494 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
6496 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
6499 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
6501 * config/microblaze/microblaze.c
6502 (get_branch_target): New.
6503 (insert_wic_for_ilb_runout): New.
6505 (microblaze_machine_dependent_reorg): New.
6506 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
6507 * config/microblaze/microblaze.md
6508 (UNSPEC_IPREFETCH): Define.
6509 (iprefetch): New pattern
6510 * config/microblaze/microblaze.opt
6511 (mxl-prefetch): New flag.
6513 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
6515 * config/microblaze/microblaze.h
6516 (FIXED_REGISTERS): Update in macro.
6517 (CALL_USED_REGISTERS): Update in macro.
6519 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
6521 PR rtl-optimization/68920
6522 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
6525 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
6527 PR rtl-optimization/68990
6528 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
6529 pseudo instead of inheritance ones.
6531 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
6532 Nick Clifton <nickc@redhat.com>
6536 * config/mips/mips.c (mips_compute_frame_info): Initialise
6537 args_size and hard_frame_pointer_offset fields of the frame
6538 structure before calling mips_global_pointer.
6540 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
6542 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
6544 * configure: Regenerate.
6546 2016-01-21 Richard Biener <rguenther@suse.de>
6548 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
6550 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
6552 * config/s390/s390.c (s390_asm_declare_function_size): Add code
6553 to actually emit the .size directive.
6555 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
6556 Jakub Jelinek <jakub@redhat.com>
6560 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
6561 args array size by one to avoid buffer overflow.
6563 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
6565 * config/s390/s390.md (pool_section_start): Use switch_to_section
6566 to select proper read-only data section instead of hardcoding
6568 (pool_section_end): Use switch_to_section to match the above.
6570 2016-01-21 Richard Biener <rguenther@suse.de>
6572 PR tree-optimization/69378
6573 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
6574 (set_ssa_val_to): Use it for dominance checks taking into
6575 account not executable edges.
6577 2016-01-21 Jakub Jelinek <jakub@redhat.com>
6580 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
6581 for bitsize instead of GET_MODE_PRECISION (mode).
6583 2016-01-20 Martin Sebor <msebor@redhat.com>
6586 * extend.texi (__sync Builtins): Clarify the semantics of
6587 __sync_fetch_and_OP built-ins on pointers.
6588 (__atomic Builtins): Same.
6590 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6591 Sebastian Pop <s.pop@samsung.com>
6593 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
6594 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
6595 (is_valid_rename): Same.
6596 (translate_isl_ast_to_gimple::get_rename): Same.
6597 (translate_isl_ast_to_gimple::rename_all_uses): Same.
6598 (translate_isl_ast_to_gimple::rename_uses): Same.
6599 (get_new_name): Check for close_phi nodes.
6600 (copy_loop_phi_args): Use phi_node_kind.
6601 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
6602 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
6604 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6605 Sebastian Pop <s.pop@samsung.com>
6607 Revert commit r229783.
6608 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6609 Remove use of parameter_rename_map.
6611 (copy_internal_parameters): Remove.
6612 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
6613 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
6614 (free_sese_info): Do not free parameter_rename_map.
6615 (set_rename): Do not use parameter_rename_map.
6616 (rename_uses): Update call to set_rename.
6617 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
6618 * sese.h (parameter_rename_map_t): Remove.
6619 (struct sese_info_t): Remove field parameter_rename_map.
6621 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6622 Sebastian Pop <s.pop@samsung.com>
6624 * graphite-isl-ast-to-gimple.c: Fix comment.
6625 * graphite-scop-detection.c (defined_in_loop_p): New.
6626 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
6627 names defined in loop.
6629 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6630 Sebastian Pop <s.pop@samsung.com>
6632 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
6633 Discard unstructured if-then-else regions.
6635 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6636 Sebastian Pop <s.pop@samsung.com>
6638 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
6639 (cleanup_loop_iter_dom): Remove.
6640 (build_loop_iteration_domains): Remove.
6641 (build_scop_context): Remove.
6642 (build_scop_iteration_domain): Remove.
6643 (add_loop_constraints): New.
6644 (build_iteration_domains): New.
6645 (build_poly_scop): Call build_iteration_domains.
6647 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6648 Sebastian Pop <s.pop@samsung.com>
6650 * graphite-scop-detection.c
6651 (scop_detection::harmful_loop_in_region): Free dom and loops.
6652 (scop_detection::loop_body_is_valid_scop): Free bbs.
6654 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6655 Sebastian Pop <s.pop@samsung.com>
6657 * graphite-scop-detection.c (record_loop_in_sese): New.
6658 (gather_bbs::before_dom_children): Call record_loop_in_sese.
6659 (build_scops): Remove call to build_sese_loop_nests.
6660 * sese.c (sese_record_loop): Remove.
6661 (build_sese_loop_nests): Remove.
6662 (new_sese_info): Remove region->loops.
6663 (free_sese_info): Same.
6664 * sese.h (sese_contains_loop): Same.
6665 (build_sese_loop_nests): Remove.
6666 (sese_contains_loop): Remove.
6668 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6669 Sebastian Pop <s.pop@samsung.com>
6671 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
6672 loop_is_valid_in_scop.
6673 (scop_detection::harmful_stmt_in_region): Renamed
6674 harmful_loop_in_region.
6675 Call loop_is_valid_in_scop.
6677 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6678 Sebastian Pop <s.pop@samsung.com>
6680 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
6683 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6684 Sebastian Pop <s.pop@samsung.com>
6686 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
6687 * graphite.h (struct poly_bb): Remove field is_reduction.
6688 (PBB_IS_REDUCTION): Remove.
6690 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6691 Sebastian Pop <s.pop@samsung.com>
6693 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
6694 (add_pdr_constraints): Same.
6695 (scop_get_reads): Same.
6696 (scop_get_must_writes): Same.
6697 (scop_get_may_writes): Same.
6698 (scop_get_original_schedule): Same.
6699 (extend_schedule): Same.
6700 (apply_schedule_on_deps): Same.
6701 (carries_deps): Same.
6702 (compute_deps): Same.
6703 (scop_get_dependences): Same.
6704 * graphite-isl-ast-to-gimple.c
6705 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
6706 * graphite-optimize-isl.c (get_schedule_for_band): Same.
6707 (get_schedule_for_band_list): Same.
6708 (get_schedule_map): Same.
6709 (apply_schedule_map_to_scop): Same.
6710 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
6711 (build_loop_iteration_domains): Same.
6712 (add_condition_to_pbb): Same.
6713 (add_param_constraints): Same.
6714 (pdr_add_memory_accesses): Same.
6715 (pdr_add_data_dimensions): Same.
6717 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
6719 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
6722 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
6724 * common.opt (feliminate-dwarf2-dups): Replace references to
6725 "DWARF 2" with just "DWARF".
6726 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
6727 * doc/extend.texi: Likewise.
6728 * doc/cpp.texi: Likewise.
6729 * doc/invoke.texi: Likewise.
6730 (Option Summary): Add -gdwarf to list of Debugging Options.
6731 (Debugging Options): Document -gdwarf.
6732 * doc/contrib.texi: Spell "DWARF" like that.
6734 2016-01-21 Jakub Jelinek <jakub@redhat.com>
6736 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
6737 warning. Fix up formatting.
6740 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
6741 attempt to mark memory input operand addressable and
6742 call prepare_gimple_addressable in that case. Don't adjust
6743 input_location for diagnostics, use error_at instead.
6745 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
6747 * config/rs6000/ppc-auxv.h: New file.
6748 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
6750 (cpu_supports): Likewise.
6751 * config/rs6000/rs6000.c: include "ppc-auxv.h".
6752 (cpu_is_info): New variable.
6753 (cpu_supports_info): Likewise.
6754 (tcb_verification_symbol): Likewise.
6755 (cpu_builtin_p): Likewise.
6756 (cpu_expand_builtin): New function.
6757 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
6758 (rs6000_init_builtins): Likewise.
6759 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
6760 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
6761 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
6762 * configure: Regenerate.
6763 * config.in: Likewise.
6764 * doc/extend.texi (PowerPC Built-in Functions): Document
6765 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
6767 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
6770 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
6772 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
6775 2016-01-20 Richard Henderson <rth@redhat.com>
6781 * tree.c (tm_define_builtin): New.
6782 (find_tm_vector_type): New.
6783 (build_tm_vector_builtins): New.
6784 (build_common_builtin_nodes): Call it.
6786 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
6788 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
6789 (arm_fp_ok): Likewise.
6791 (arm_crypto): Likewise.
6793 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
6794 Richard Biener <rguenther@suse.de>
6796 PR tree-optimization/69328
6797 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
6798 vectors have same number of elements.
6799 (vectorizable_condition): Fix masked version recognition.
6801 2016-01-20 Richard Biener <rguenther@suse.de>
6803 PR tree-optimization/69345
6804 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
6805 (VN_INFO_PTR_INFO): Likewise.
6806 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
6807 info when it is equal between non-dominating SSA names.
6808 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6809 Make sure to look at original SSA infos.
6811 2016-01-20 Jeff Law <law@redhat.com>
6814 * config/m68k/predicates.md (pow2_m1_operand): New predicate
6816 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
6817 (pc_or_label_operand): New predicate.
6818 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
6819 tests for small integers that are 2^n - 1.
6821 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
6823 * doc/invoke.texi (Options Summary): Add '.' after @xref.
6825 2016-01-19 Jeff Law <law@redhat.com>
6828 * tree-ssa-threadbackwards.c
6829 (fsm_find_control_statement_thread_paths): Do not try to lookup
6830 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
6832 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
6834 * doc/lto.texi: Remove text that says only Gold has linker plugin
6837 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
6839 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
6840 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
6841 the DIE accordingly.
6842 (modified_type_die): Add REVERSE parameter and pass it recursively,
6843 as well as to base_type_die. Adjust presence check accordingly.
6844 (base_type_for_mode): Adjust call to modified_type_die.
6845 (add_type_attribute): Add REVERSE parameter and pass it to
6847 (generic_parameter_die): Adjust call to add_type_attribute.
6848 (add_scalar_info): Likewise.
6849 (add_subscript_info): Likewise.
6850 (gen_array_type_die): Likewise.
6851 (gen_descr_array_type_die): Likewise.
6852 (gen_entry_point_die): Likewise.
6853 (gen_enumeration_type_die): Likewise.
6854 (gen_formal_parameter_die): Likewise.
6855 (gen_subprogram_die): Likewise.
6856 (gen_variable_die ): Likewise.
6857 (gen_const_die): Likewise.
6858 (gen_field_die): Likewise.
6859 (gen_pointer_type_die): Likewise.
6860 (gen_reference_type_die): Likewise.
6861 (gen_ptr_to_mbr_type_die): Likewise.
6862 (gen_inheritance_die): Likewise.
6863 (gen_subroutine_type_die): Likewise.
6864 (gen_typedef_die): Likewise.
6865 (force_type_die): Adjust call to modified_type_die.
6867 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
6869 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
6870 flow throughout the file. Fix broken link to Objective-C 2.0
6872 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
6875 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
6877 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
6879 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
6882 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
6883 (maybe_record_node): Record cxa_pure_virtual as the only possible
6884 target if there are not ohter candidates.
6885 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
6887 2016-01-19 Richard Biener <rguenther@suse.de>
6889 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
6890 (get_memory_order): Likewise.
6892 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
6894 * tree-vect-stmts.c (vectorizable_store): Check
6897 2016-01-19 David Malcolm <dmalcolm@redhat.com>
6900 * gcc.c (driver::decode_argv): Add call to
6901 init_opts_obstack before init_options_struct.
6902 * opts.c (init_opts_obstack): Remove idempotency.
6903 (init_options_struct): Replace call to init_opts_obstack
6904 with a gcc_assert to verify that it has already been called.
6905 * toplev.c (toplev::main): Add call to init_opts_obstack before
6906 calls to init_options_struct.
6907 (toplev::finalize): Move cleanup of opts_obstack next to
6908 cleanup of save_decoded_options, clearing the latter, and
6909 save_decoded_options_count.
6911 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6914 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
6915 attribute to unconditional. Remove %? from output template.
6917 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
6918 Jiong Wang <jiong.wang@arm.com>
6920 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
6921 generated from different expand order.
6923 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
6925 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
6926 Add support for CCMP costing.
6928 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
6930 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
6931 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
6932 (fccmpe<mode>): Likewise.
6933 (fcmp): Rename to fcmp and globalize pattern.
6935 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
6936 (aarch64_gen_ccmp_next): Add FP support.
6938 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
6940 * target.def (gen_ccmp_first): Update documentation.
6941 (gen_ccmp_next): Likewise.
6942 * doc/tm.texi (gen_ccmp_first): Update documentation.
6943 (gen_ccmp_next): Likewise.
6944 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
6945 expand_ccmp_expr_1. Improve comments.
6946 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
6947 (ccmp_ior<mode>): Remove pattern.
6948 (cmp<mode>): Remove expand.
6949 (cmp): Globalize pattern.
6950 (cstorecc4): Use cc_register.
6951 (mov<mode>cc): Remove ccmp_cc_register check.
6952 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
6953 Simplify after removal of CC_DNE/* modes.
6954 (aarch64_ccmp_mode_to_code): Remove.
6955 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
6956 In 'k' case use integer as condition.
6957 (aarch64_nzcv_codes): Remove inverted cases.
6958 (aarch64_code_to_ccmode): Remove.
6959 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
6960 comparison with CC register to be used in folowing CCMP/branch/CSEL.
6961 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
6962 pattern. Return the comparison with CC register. Invert conditions
6964 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
6965 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
6967 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
6969 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
6970 instrumented_version.
6972 2016-01-19 Richard Biener <rguenther@suse.de>
6974 PR tree-optimization/69336
6975 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
6976 handled components with get_ref_base_and_extent.
6977 (equal_mem_array_ref_p): Adjust.
6979 2016-01-19 Jakub Jelinek <jakub@redhat.com>
6982 * shrink-wrap.c: Include valtrack.h.
6983 (move_insn_for_shrink_wrap): Add DEBUG argument. If
6984 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
6985 in between insn and where it will be moved to. Call
6986 dead_debug_insert_temp.
6987 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
6988 first and dead_debug_local_finish at the end.
6989 For uses and defs bitmap, handle all regs in between REGNO and
6990 END_REGNO, not just the first one.
6992 2016-01-19 Richard Biener <rguenther@suse.de>
6994 PR tree-optimization/69352
6995 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
6996 (equal_mem_array_ref_p): Constrain size and max size properly.
6997 Compare the reverse flag.
6999 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
7001 * ira.c (ira): Update regstat data if we deleted insns.
7003 2016-01-19 Jakub Jelinek <jakub@redhat.com>
7005 PR rtl-optimization/68955
7006 PR rtl-optimization/64557
7007 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
7008 here. Fix up formatting.
7009 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
7011 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7014 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
7015 assume that the node has body.
7016 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
7019 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7021 * lto-streamer-out.c (lto_output): Do not stream instrumentation
7024 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7026 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
7027 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
7029 2016-01-19 Martin Jambor <mjambor@suse.cz>
7030 Martin Liska <mliska@suse.cz>
7031 Michael Matz <matz@suse.de>
7033 * Makefile.in (OBJS): Add new source files.
7034 (GTFILES): Add hsa.c.
7035 * common.opt (disable_hsa): New variable.
7036 (-Whsa): New warning.
7037 * config.in (ENABLE_HSA): New.
7038 * configure.ac: Treat hsa differently from other accelerators.
7039 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
7041 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
7042 * doc/install.texi (Configuration): Document --with-hsa-runtime,
7043 --with-hsa-runtime-include, --with-hsa-runtime-lib and
7045 * doc/invoke.texi (-Whsa): Document.
7046 (hsa-gen-debug-stores): Likewise.
7047 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
7048 to invoke offload compiler for hsa acclerator.
7049 * opts.c (common_handle_option): Determine whether HSA offloading
7050 should be performed.
7051 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
7052 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
7053 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
7054 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
7055 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
7056 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
7057 GF_OMP_FOR_KIND_GRID_LOOP.
7058 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
7059 (pp_gimple_stmt_1): Likewise.
7060 * gimple-walk.c (walk_gimple_stmt): Likewise.
7061 * gimple.c (gimple_build_omp_grid_body): New function.
7062 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
7063 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
7064 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
7065 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
7066 GF_OMP_TEAMS_GRID_PHONY.
7067 (gimple_statement_omp_single_layout): Updated comments.
7068 (gimple_build_omp_grid_body): New function.
7069 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
7070 (gimple_omp_for_grid_phony): New function.
7071 (gimple_omp_for_set_grid_phony): Likewise.
7072 (gimple_omp_parallel_grid_phony): Likewise.
7073 (gimple_omp_parallel_set_grid_phony): Likewise.
7074 (gimple_omp_teams_grid_phony): Likewise.
7075 (gimple_omp_teams_set_grid_phony): Likewise.
7076 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
7077 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
7078 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
7079 (BUILT_IN_GOMP_TARGET): Updated type.
7080 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
7081 (adjust_for_condition): New function.
7082 (get_omp_for_step_from_incr): Likewise.
7083 (extract_omp_for_data): Moved parts to adjust_for_condition and
7084 get_omp_for_step_from_incr.
7085 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
7086 (fixup_child_record_type): Bail out if receiver_decl is NULL.
7087 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
7088 (scan_omp_parallel): Do not create child functions for phony
7090 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
7091 (scan_omp_1_op): Checking assert we are not remapping to
7092 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
7093 (parallel_needs_hsa_kernel_p): New function.
7094 (expand_parallel_call): Register apprpriate parallel child
7095 functions as HSA kernels.
7096 (grid_launch_attributes_trees): New type.
7097 (grid_attr_trees): New variable.
7098 (grid_create_kernel_launch_attr_types): New function.
7099 (grid_insert_store_range_dim): Likewise.
7100 (grid_get_kernel_launch_attributes): Likewise.
7101 (get_target_argument_identifier_1): Likewise.
7102 (get_target_argument_identifier): Likewise.
7103 (get_target_argument_value): Likewise.
7104 (push_target_argument_according_to_value): Likewise.
7105 (get_target_arguments): Likewise.
7106 (expand_omp_target): Call get_target_arguments instead of looking
7107 up for teams and thread limit.
7108 (grid_expand_omp_for_loop): New function.
7109 (grid_arg_decl_map): New type.
7110 (grid_remap_kernel_arg_accesses): New function.
7111 (grid_expand_target_kernel_body): New function.
7112 (expand_omp): Call it.
7113 (lower_omp_for): Do not emit phony constructs.
7114 (lower_omp_taskreg): Do not emit phony constructs but create for them
7115 a temporary variable receiver_decl.
7116 (lower_omp_taskreg): Do not emit phony constructs.
7117 (lower_omp_teams): Likewise.
7118 (lower_omp_grid_body): New function.
7119 (lower_omp_1): Call it.
7120 (grid_reg_assignment_to_local_var_p): New function.
7121 (grid_seq_only_contains_local_assignments): Likewise.
7122 (grid_find_single_omp_among_assignments_1): Likewise.
7123 (grid_find_single_omp_among_assignments): Likewise.
7124 (grid_find_ungridifiable_statement): Likewise.
7125 (grid_target_follows_gridifiable_pattern): Likewise.
7126 (grid_remap_prebody_decls): Likewise.
7127 (grid_copy_leading_local_assignments): Likewise.
7128 (grid_process_kernel_body_copy): Likewise.
7129 (grid_attempt_target_gridification): Likewise.
7130 (grid_gridify_all_targets_stmt): Likewise.
7131 (grid_gridify_all_targets): Likewise.
7132 (execute_lower_omp): Call grid_gridify_all_targets.
7133 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
7134 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
7135 (tree_omp_clause): Added union field dimension.
7136 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
7137 * tree.c (omp_clause_num_ops): Added number of arguments of
7138 OMP_CLAUSE__GRIDDIM_.
7139 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
7140 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
7141 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
7142 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
7143 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
7144 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
7145 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
7146 * tree-pass.h (make_pass_gen_hsail): Declare.
7147 (make_pass_ipa_hsa): Likewise.
7148 * ipa-hsa.c: New file.
7149 * lto-section-in.c (lto_section_name): Add hsa section name.
7150 * lto-streamer.h (lto_section_type): Add hsa section.
7151 * timevar.def (TV_IPA_HSA): New.
7152 * hsa-brig-format.h: New file.
7153 * hsa-brig.c: New file.
7154 * hsa-dump.c: Likewise.
7155 * hsa-gen.c: Likewise.
7158 * toplev.c (compile_file): Call hsa_output_brig.
7159 * hsa-regalloc.c: New file.
7161 2016-01-18 Jeff Law <law@redhat.com>
7163 PR tree-optimization/69320
7164 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
7165 ranged object, do nothing if the RHS constant is not [0..1].
7166 (optimize_stmt): Comparing a boolean ranged object against a
7167 constant outside [0..1] results in a compile-time constant.
7169 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
7172 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
7174 * doc/invoke.texi (Invoking GCC): Add new section to menu.
7175 (Option Summary): Update to reflect new section and moved options.
7176 (C++ Dialect Options): Move -fstats to new section.
7177 (Debugging Options): Move all dump, statistics, and other GCC
7178 developer options to new section. Rewrite section introduction
7179 and re-order remaining options to put the more basic ones first.
7180 (Optimization Options): Move -fira-verbose and -flto-report* to
7182 (Developer Options): New section incorporating moved options.
7183 * doc/cppopts.texi (-dM): Update cross-reference.
7185 2016-01-18 Richard Henderson <rth@redhat.com>
7188 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
7189 operands to pseudo only if CSE is expected. Split long immediate
7190 operands only after reload, and for the stack pointer.
7191 (*add<GPI>3_pluslong): Remove.
7192 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
7193 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
7194 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
7195 (*add<GPI>3 peepholes): New.
7196 (*add<GPI>3 splitters): New.
7197 * config/aarch64/constraints.md (Upl): New.
7198 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
7200 2016-01-18 Richard Biener <rguenther@suse.de>
7202 PR tree-optimization/69297
7203 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
7205 (vect_bb_vectorization_profitable_p): Clear visited flag again.
7207 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
7210 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
7211 of mixind vector and scalar types.
7212 (fold_relational_const): Add handling of vector
7213 comparison with boolean result.
7214 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
7215 comparison of vector operands with boolean result for EQ/NE only.
7216 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
7217 (verify_gimple_cond): Likewise.
7218 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
7221 2016-01-18 Joseph Myers <joseph@codesourcery.com>
7223 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
7226 2016-01-18 Richard Biener <rguenther@suse.de>
7229 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
7231 2016-01-18 Tom de Vries <tom@codesourcery.com>
7233 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
7235 2016-01-18 Tom de Vries <tom@codesourcery.com>
7237 * omp-low.c (set_oacc_fn_attrib): Make extern.
7238 * omp-low.h (set_oacc_fn_attrib): Declare.
7239 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
7240 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
7241 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
7242 Add and handle function parameter oacc_kernels_p.
7243 (find_reduc_addr, get_omp_data_i_param): New function.
7244 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
7245 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
7246 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
7247 Calculate dominance info. Skip loops that are not in a kernels region
7248 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
7249 (pass_parallelize_loops::execute): Call parallelize_loops with
7250 oacc_kernels_p argument.
7251 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
7252 New member function.
7253 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
7254 * passes.def: Add argument to pass_parallelize_loops instantation.
7256 2016-01-18 Tom de Vries <tom@codesourcery.com>
7258 * tree-parloops.c (pass_parallelize_loops::execute): Allow
7259 pass_parallelize_loops to be run outside the loop pipeline.
7261 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
7263 * tree-scalar-evolution.c (follow_copies_to_constant): New.
7264 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
7266 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
7269 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
7270 using get_ref_base_and_extent.
7271 (equal_mem_array_ref_p): New.
7272 (hashable_expr_equal_p): Add call to previous.
7274 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
7277 * tree-sra.c (disqualified_constants, constant_decl_p): New.
7278 (sra_initialize): Allocate disqualified_constants.
7279 (sra_deinitialize): Free disqualified_constants.
7280 (disqualify_candidate): Update disqualified_constants when appropriate.
7281 (create_access): Scan for constant-pool entries as we go along.
7282 (scalarizable_type_p): Add check against type_contains_placeholder_p.
7283 (maybe_add_sra_candidate): Allow constant-pool entries.
7284 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
7285 (initialize_constant_pool_replacements): New.
7286 (sra_modify_assign): Avoid mangling assignments created by previous,
7287 and don't generate writes into constant pool.
7288 (sra_modify_function_body): Call initialize_constant_pool_replacements.
7290 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7292 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
7294 (scalar_chain::convert_op): Likewise.
7295 * config/i386/i386.md (*andndi3_doubleword): New.
7297 2016-01-18 Richard Biener <rguenther@suse.de>
7299 PR tree-optimization/69170
7300 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
7301 building a vector from scalar results of a pattern stmt.
7303 2016-01-18 Jakub Jelinek <jakub@redhat.com>
7305 * haifa-sched.c (autopref_multipass_init): Work around
7306 -Wmaybe-uninitialized warning.
7308 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
7310 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
7311 against the constant 0.
7313 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7315 PR tree-optimization/68799
7316 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
7317 look up phi candidates in the statement-candidate map.
7318 (phi_add_costs): Likewise.
7319 (record_phi_increments): Likewise.
7320 (phi_incr_cost): Likewise.
7321 (ncd_with_phi): Likewise.
7322 (all_phi_incrs_profitable): Likewise.
7324 2016-01-17 Jakub Jelinek <jakub@redhat.com>
7326 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
7327 -Wmaybe-uninitialized warning.
7329 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
7331 * doc/invoke.texi (Invoking GCC): Add new section to menu.
7332 (Option Summary): Update to reflect new section and moved options.
7333 (C++ Dialect Options): Move -fvtable-verify and related options.
7334 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
7335 and profiling-related options.
7336 (Optimization Options): Move profile generation options and
7337 -fstack-protector and related options.
7338 (Instrumentation Options): New section incorporating moved options.
7339 (Code Generation Options): Move -finstrument-functions and
7340 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
7342 2016-01-16 Tom de Vries <tom@codesourcery.com>
7344 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
7346 2016-01-16 Tom de Vries <tom@codesourcery.com>
7348 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
7350 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
7352 * hash-table.h (hash_table::empty): Turn into an inline wrapper
7353 that checks whether the table is already empty. Rename the
7354 original implementation to...
7355 (hash_table::empty_slot): ...this new private function.
7357 2016-01-15 David Malcolm <dmalcolm@redhat.com>
7360 * diagnostic-show-locus.c (layout::print_source_line): Move x
7361 offset of line until after call to
7362 get_line_width_without_trailing_whitespace.
7364 2016-01-15 Jeff Law <law@redhat.com>
7366 PR tree-optimization/69270
7367 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
7368 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
7369 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
7370 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
7371 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
7372 ssa_name_has_boolean_range and constant_boolean_node.
7374 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
7376 PR rtl-optimization/69030
7377 * lra-spills.c (remove_pseudos): Check nrefs and make the function
7379 (spill_pseudos): Delete debug insn for dead pseudo.
7380 (lra_spill): Initiate spill_hard_reg and slots memory separately.
7382 2016-01-15 Jiong Wang <jiong.wang@arm.com>
7384 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
7386 (TYPES_UNOPUS): Likewise.
7387 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
7388 builtin type, from UNOP to UNOPUS.
7389 (lbtruncuv4sf): Likewise.
7390 (lbtruncuv2df): Likewise.
7391 (lrounduv2sf): Likewise.
7392 (lrounduv4sf): Likewise.
7393 (lrounduv2df): Likewise.
7394 (lroundusf): Likewise.
7395 (lroundusf): Likewise.
7396 (lceiluv2sf): Likewise.
7397 (lceiluv4sf): Likewise.
7398 (lceiluv2df): Likewise.
7399 (lceilusf): Likewise.
7400 (lceiludf): Likewise.
7401 (lflooruv2sf): Likewise.
7402 (lflooruv4sf): Likewise.
7403 (lflooruv2df): Likewise.
7404 (lfloorusf): Likewise.
7405 (lfloorudf): Likewise.
7406 (lfrintnuv2sf): Likewise.
7407 (lfrintnuv4sf): Likewise.
7408 (lfrintnuv2df): Likewise.
7409 (lfrintnusf): Likewise.
7410 (lfrintnudf): Likewise.
7411 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
7413 (vcvtq_u32_f32): Likewise.
7414 (vcvtq_u64_f64): Likewise.
7415 (vcvta_u32_f32): Likewise.
7416 (vcvtaq_u32_f32): Likewise.
7417 (vcvtaq_u64_f64): Likewise.
7418 (vcvtm_u32_f32): Likewise.
7419 (vcvtmq_u32_f32): Likewise.
7420 (vcvtmq_u64_f64): Likewise.
7421 (vcvtn_u32_f32): Likwise.
7422 (vcvtnq_u32_f32): Likewise.
7423 (vcvtnq_u64_f64): Likewise.
7424 (vcvtp_u32_f32): Likewise.
7425 (vcvtpq_u32_f32): Likewise.
7426 (vcvtpq_u64_f64): Likewise.
7427 (vcvtmd_u64_f64): Likewise.
7428 (vcvtms_u32_f32): Likewise.
7429 (vcvtad_u64_f64): Likewise.
7430 (vcvtas_u32_f32): Likewise.
7431 (vcvtnd_u64_f64): Likewise.
7432 (vcvtns_u32_f32): Likewise.
7433 (vcvtpd_u64_f64): Likewise.
7434 (vcvtps_u32_f32): Likewise.
7436 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7438 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
7439 CSEL of zero_extended registers.
7441 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7443 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
7444 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
7446 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7448 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
7449 false when argument string is not found in the attributes table
7452 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
7455 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
7456 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
7457 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
7460 2016-01-15 Richard Biener <rguenther@suse.de>
7462 PR tree-optimization/66856
7463 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
7464 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
7465 (vect_create_new_slp_node): Increment stmt reference count.
7466 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
7467 an SLP tree before swapping operands.
7468 (vect_build_slp_tree): Likewise.
7469 (destroy_bb_vec_info): Free stmt info after SLP instances.
7470 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
7471 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
7472 (STMT_VINFO_NUM_SLP_USES): New macro.
7474 2016-01-15 Richard Biener <rguenther@suse.de>
7477 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
7478 (add_linkage_name): ... here.
7479 (gen_typedef_die): Use add_linkage_name_raw instead of
7480 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
7483 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
7485 * gimplify.c (oacc_default_clause): Decode reference and pointer
7486 types for both kernels and parallel regions.
7488 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
7491 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
7493 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
7495 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
7496 (convert_scalars_to_vector): Likewise.
7498 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
7500 * doc/extend.texi (Type Traits): Fix grammar.
7502 2016-01-15 Martin Jambor <mjambor@suse.cz>
7504 * tree-inline.c (remap_decl): Use existing dclarations if
7505 remapping a type and prevent_decl_creation_for_types.
7506 (replace_locals_stmt): Do an initial remapping of non-VLA typed
7507 decls first. Do real remapping with
7508 prevent_decl_creation_for_types set.
7509 * tree-inline.h (copy_body_data): New field
7510 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
7513 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
7515 * config/s390/s390.opt (mmvcle): More verbose help text.
7517 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
7519 * config/s390/s390.opt: Add period to -mzvector option text.
7521 2016-01-15 Richard Biener <rguenther@suse.de>
7523 PR tree-optimization/68961
7524 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
7525 of invariants in stores again.
7527 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
7529 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
7531 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
7533 * config/i386/i386.c (ix86_expand_branch): Don't split
7534 DI mode xor instruction to SI mode.
7536 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
7539 * ipa-icf.c (sem_function::merge): Virtual functions may become
7540 reachable even if they address is not taken and there are no
7543 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
7545 * lto-streamer-out.c (subtract_estimated_size): New function.
7546 (get_symbol_initial_value): Use it.
7548 2016-01-15 Christian Bruel <christian.bruel@st.com>
7551 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
7552 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
7553 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
7554 use add_builtin_function_ext_scope instead of add_builtin_function.
7555 (neon_set_p, neon_crypto_set_p): Remove.
7556 (arm_init_builtins): Always call arm_init_neon_builtins and
7557 arm_init_crypto_builtins.
7558 (arm_expand_builtin): Check that builtins are allowed for the arch.
7559 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
7560 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
7561 arm_init_neon_builtins call.
7563 2016-01-15 Richard Biener <rguenther@suse.de>
7565 PR tree-optimization/69117
7566 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
7567 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
7568 of the leader conservatively.
7569 (free_scc_vn): Restore original SSA name infos.
7571 2016-01-14 Jeff Law <law@redhat.com>
7573 PR tree-optimization/69270
7574 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
7575 single bit of precision, verify it's also unsigned.
7576 (record_edge_info): Use constant_boolean_node rather than fold_convert
7577 to convert boolean_true/boolean_false to the right type.
7579 2016-01-14 Richard Henderson <rth@redhat.com>
7582 * loop-doloop.c (record_reg_sets): New.
7583 (doloop_optimize): Reject the transform if the sequence
7584 clobbers registers live at the end of the loop block.
7585 (doloop_optimize_loops): Enable df_live if needed.
7587 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7589 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
7590 * gcc/config/rs6000/rs6000.c: Likewise.
7591 * gcc/config/rs6000/rs6000.h: Likewise.
7592 * gcc/config/rs6000/rs6000.md: Likewise.
7593 * gcc/doc/extend.texi: Likewsie.
7595 2016-01-14 Jeff Law <law@redhat.com>
7597 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
7600 2016-01-14 Richard Henderson <rth@redhat.com>
7604 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
7605 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
7606 instead of builtin_decl_declared_p to test for declaration.
7608 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
7610 * doc/loop.texi (Loop Analysis and Representation): Document
7611 loop_depth function.
7613 2016-01-14 Tom de Vries <tom@codesourcery.com>
7615 PR tree-optimization/68773
7616 * omp-low.c (expand_omp_target): Don't set force_output.
7617 * varpool.c (varpool_node::get_create): Same.
7618 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
7619 offload_funcs with force_output.
7621 2016-01-14 Jakub Jelinek <jakub@redhat.com>
7624 * lra-eliminations.c (move_plus_up): Don't change anything if either
7625 the outer or inner subreg mode is not MODE_INT.
7626 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
7627 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
7629 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
7631 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
7632 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
7633 reduc_uplus_@var{m}): Remove.
7634 * expr.c (expand_expr_real_2): Remove expansion path for
7635 reduc_[us](min|max|plus) optabs.
7636 * optabs-tree.c (scalar_reduc_to_vector): Remove.
7637 * optabs-tree.h (scalar_reduc_to_vector): Remove.
7638 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
7639 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
7640 * tree-vect-loop.c (vectorizable_reduction): Remove test for
7641 reduc_[us](min|max|plus) optabs.
7643 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
7645 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
7646 (reduc_plus_scal_v2sf): New.
7647 (reduc_smax_v2sf): Rename to...
7648 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
7649 (reduc_smin_v2sf): Rename to...
7650 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
7652 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
7654 * alias.c (compare_base_symbol_refs): New function.
7655 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
7658 2016-01-14 Jakub Jelinek <jakub@redhat.com>
7661 PR tree-optimization/69155
7662 * tree-complex.c: Include cfganal.h.
7663 (phis_to_revisit): New variable.
7664 (extract_component): Add phiarg_p argument. Assert that returned
7665 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
7666 (update_phi_components): Partly rewrite to use loop over real/imag
7667 components instead of code duplication. If extract_component returns
7668 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
7669 create_tmp_reg into the PHI node instead, and mention the phi triplet
7671 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
7672 in phis_to_revisit at the end.
7674 2016-01-14 Richard Biener <rguenther@suse.de>
7676 PR tree-optimization/68060
7677 * tree-vect-loop.c (vect_is_simple_reduction): Check the
7678 outer loop reduction is only used in the inner loop before
7679 detecting a double reduction.
7681 2016-01-14 Jakub Jelinek <jakub@redhat.com>
7684 * combine.c (expand_field_assignment): Punt if compute_mode is
7685 unsupported scalar mode.
7687 2016-01-14 Richard Biener <rguenther@suse.de>
7689 PR tree-optimization/66856
7690 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
7691 SLP node only if it built successfully.
7692 (vect_analyze_slp_instance): Adjust.
7694 2016-01-14 Jeff Law <law@redhat.com>
7696 PR tree-optimization/69270
7697 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
7698 (record_edge_info): Use it. Convert boolean_{true,false}_node
7701 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
7704 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
7705 use block_ultimate_origin
7706 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
7708 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
7710 * doc/invoke.texi (Submodel Options): Rename section to
7711 "Machine-Dependent Options" to better reflect its content.
7712 Rewrite introductory text to remove archaic CPU names.
7715 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
7717 * doc/invoke.texi (Code Gen Options): Move section up in file,
7718 before target-specific options. Update menu and option summary
7719 to reflect the new section ordering.
7721 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
7723 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
7724 (C++ Dialect Options): Add cross-reference to -std option.
7725 * doc/standards.texi (C++ Language): Document C++14 support.
7727 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
7729 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
7730 for pack/unpack functions for __ibm128.
7731 (PACK_IF): Likewise.
7732 (UNPACK_IF): Likewise.
7734 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
7735 support for __ibm128 pack/unpack functions.
7736 (rs6000_invalid_builtin): Likewise.
7737 (rs6000_init_builtins): Likewise.
7738 (rs6000_opt_masks): Likewise.
7740 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
7741 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
7743 (RS6000_BTM_COMMON): Likewise.
7745 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
7746 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
7747 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
7748 128-bit floating point. Add support for the double values to be
7749 in Altivec registers for TF/IF packing and unpacking, but restrict
7750 TD packing sub-fields to be FPR registers. Don't allow overlapped
7751 register support for packing. Allow pack inputs to be memory
7752 locations. Don't build generator functions for unpack<mode>_dm
7753 and unpack<mode>_nodm.
7754 (unpack<mode>_dm): Likewise.
7755 (unpack<mode>_nodm): Likewise.
7756 (pack<mode>): Likewise.
7758 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
7759 built-in functions to pack/unpack explicit __ibm128 values.
7760 (__builtin_unpack_ibm128): Likewise.
7762 * doc/extend.texi (PowerPC Built-in Functions): Document
7763 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
7765 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
7768 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
7769 Add new arg loc and pass it down as context.
7770 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
7771 to the location to use for the warning.
7772 (check_function_arguments): New arg loc. All callers changed. Pass
7773 it to check_function_nonnull.
7774 * c-common.h (check_function_arguments): Adjust declaration.
7776 2016-01-13 Jakub Jelinek <jakub@redhat.com>
7778 PR tree-optimization/69156
7779 * gimple.c (validate_type): Removed.
7780 (gimple_builtin_call_types_compatible_p): Use
7781 useless_type_conversion_p instead of validate_type.
7782 * value-prof.c (gimple_stringop_fixed_value): Fold
7783 icall_size to correct type.
7785 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
7787 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
7790 2016-01-13 Richard Henderson <rth@redhat.com>
7793 * target.def (builtin_tm_load, builtin_tm_store): Remove.
7794 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
7795 (ix86_builtin_tm_store): Remove.
7796 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
7797 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
7798 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
7799 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
7800 * doc/tm.texi: Rebuild.
7802 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
7803 (BUILT_IN_TM_MEMCPY_RTWN): New.
7804 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
7805 fallback from vector to integer helpers.
7806 (build_tm_load): Handle vector types directly, instead of
7808 (build_tm_store): Likewise.
7809 (expand_assign_tm): Prepare for register types not handled by
7810 the above. Copy them to memory and use memcpy.
7811 * tree.c (tm_define_builtin): New.
7812 (find_tm_vector_type): New.
7813 (build_tm_vector_builtins): New.
7814 (build_common_builtin_nodes): Call it.
7816 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
7818 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
7819 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
7821 2016-01-13 Tom de Vries <tom@codesourcery.com>
7823 PR tree-optimization/69169
7824 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
7825 handled_struct_type param.
7826 (create_variable_info_for, intra_create_variable_infos): Call
7827 create_variable_info_for_1 with extra arg.
7829 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
7831 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
7832 and "armv8.1-a+crc" entries.
7834 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
7837 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
7838 Change first operand predicate from register_or_constm1_operand
7839 to register_operand.
7840 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
7841 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
7842 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
7843 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
7844 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
7845 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
7846 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
7847 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
7848 comparison with constm1_rtx from vec_prefetch_gen part.
7850 2016-01-13 Richard Biener <rguenther@suse.de>
7852 PR tree-optimization/69013
7853 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
7854 Exchange assert for a test.
7856 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7859 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
7861 2016-01-13 Richard Biener <rguenther@suse.de>
7863 PR tree-optimization/69242
7864 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
7865 assert with a check.
7867 2016-01-13 Richard Biener <rguenther@suse.de>
7869 PR tree-optimization/69186
7870 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7871 Properly guard vect_update_misalignment_for_peel call.
7873 2016-01-12 Jeff Law <law@redhat.com>
7875 PR tree-optimization/pr67755
7876 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
7877 "need_profile_correction".
7878 (thread_block_1): Initialize new field to false by default. If we
7879 have multiple thread paths through a common joiner to different
7880 final targets, then set new field to true.
7881 (compute_path_counts): Only do count adjustment when it's really
7884 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
7886 * doc/invoke.texi (Spec Files): Move section down in file, past
7887 all command-line option descriptions.
7889 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7892 * doc/gty.texi: Remove documentation of mark_hook.
7893 * gengtype.c (struct write_types_data): Remove code to support
7894 mark_hook attribute.
7895 (walk_type): Likewise.
7896 (write_func_for_structure): Likewise.
7898 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
7900 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
7901 Directory Options, and -specs= to Overall Options.
7902 (Overall Options): Adjust similarly. Reorder to group related
7903 options together. Make -specs= cross-reference the spec file details.
7904 (Directory Options): Adjust similarly.
7906 2016-01-12 Jeff Law <law@redhat.com>
7908 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
7910 2016-01-12 Olivier Hainque <hainque@adacore.com>
7912 * gcc.c (spec_undefvar_allowed): New global.
7913 (process_command): Set to true when running for --version or --help,
7915 (getenv_spec_function): When the variable is not defined, use the
7916 variable name as the variable value if we're allowed not to issue
7919 2016-01-12 Bin Cheng <bin.cheng@arm.com>
7921 PR tree-optimization/68911
7922 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
7923 information computed for expression "init + nit * step".
7925 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
7927 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
7928 about name of GCC executable. Remove deleted node from menu.
7929 (Directory Options) <-B>: Remove cross-reference to deleted node.
7930 (Target Options): Delete section.
7932 2016-01-12 Christian Bruel <christian.bruel@st.com>
7935 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
7936 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
7938 2016-01-12 Jakub Jelinek <jakub@redhat.com>
7941 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
7942 aligned_mem is properly set for AVX512-VL floating point masked
7946 * ifcvt.c (cond_exec_process_if_block): When removing the last
7947 insn from then_bb, remove also any possible barriers that follow it.
7949 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
7953 * config/i386/iamcu.h (SIZE_TYPE): New macro.
7954 (PTRDIFF_TYPE): Likewise.
7955 (WCHAR_TYPE): Likewise.
7956 (WCHAR_TYPE_SIZE): Likewise.
7957 (STDINT_LONG32): Likewise.
7959 2016-01-12 Richard Biener <rguenther@suse.de>
7961 PR tree-optimization/69053
7962 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
7963 convert initial value for cond reductions.
7965 2016-01-12 Richard Biener <rguenther@suse.de>
7967 PR tree-optimization/69007
7968 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
7969 widen_sum after dot_prod and sad.
7971 2016-01-12 Richard Biener <rguenther@suse.de>
7973 PR tree-optimization/69168
7974 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
7975 pattern stmt SLP type.
7976 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
7977 end up unused so cope with that case.
7979 2016-01-12 Richard Biener <rguenther@suse.de>
7981 PR tree-optimization/69157
7982 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
7983 stmts def type only during analyze phase.
7984 (vectorizable_call): Likewise.
7985 (vectorizable_simd_clone_call): Likewise.
7986 (vectorizable_conversion): Likewise.
7987 (vectorizable_assignment): Likewise.
7988 (vectorizable_shift): Likewise.
7989 (vectorizable_operation): Likewise.
7990 (vectorizable_store): Likewise.
7991 (vectorizable_load): Likewise.
7993 2016-01-12 Richard Biener <rguenther@suse.de>
7995 PR tree-optimization/69174
7996 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
7998 (vectorizable_load): Properly compute the number of loads needed
7999 for permuted strided SLP loads and do not spuriously assign
8000 to SLP_TREE_VEC_STMTS.
8002 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
8004 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
8005 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
8006 (MD_EXEC_PREFIX): Remove.
8007 (MD_STARTFILE_PREFIX) Removee.
8008 (FILE_NAME_ABSOLUTE_P): Remove.
8009 (CPP_SPEC): Do not read macros from sys/version.h.
8010 (LINK_COMMAND_SPEC): Remove.
8011 (LOCAL_INCLUDE_DIR): Remove.
8012 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
8013 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
8014 (POST_LINK_SPEC): Define to invoke stubify after linker
8015 (LIBSTDCXX): Remove define
8016 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
8017 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
8018 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
8019 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
8020 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
8021 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
8022 (i386_djgpp_asm_named_section): Add propotype of new procedure
8024 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
8025 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
8026 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
8027 in config/i386/djgpp.h).
8028 (STANDARD_STARTFILE_PREFIX_2): Define identical to
8029 STANDARD_STARTFILE_PREFIX_1.
8030 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
8031 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
8032 installation errors.
8033 (MAX_OFILE_ALIGNMENT): Define to 128.
8034 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
8036 * config/i386/djgpp.c: New file. Add implementation of
8037 i386_djgpp_asm_named_section.
8039 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
8041 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
8042 Add rule for building djgpp.o.
8044 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8046 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
8047 (rtx_is_swappable_p): Reductions are swappable.
8048 (insn_is_swappable_p): V2DF reductions are swappable.
8050 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
8052 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
8053 reloads for other unsupported memory operands.
8055 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
8056 Jim Wilson <jim.wilson@linaro.org>
8059 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
8060 copy_to_mode_reg instead of force_reg.
8062 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
8065 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
8066 TARGET_80387 is true.
8068 2016-01-11 Jakub Jelinek <jakub@redhat.com>
8071 * lra-eliminations.c (move_plus_up): Only move plus up
8072 if subreg of the constant can be simplified into constant
8073 and use the simplified subreg of the constant instead of
8074 the original constant.
8076 * fold-const.c (fold_convertible_p): Don't return true
8077 for conversion of VECTOR_TYPE to same sized integral type.
8078 (fold_convert_loc): Fix up formatting. Fold conversion of
8079 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
8080 instead of NOP_EXPR.
8082 PR tree-optimization/69214
8083 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
8084 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
8087 PR tree-optimization/69207
8088 * tree-vect-slp.c (vect_get_constant_vectors): For
8089 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
8090 fold_convertible_p to vector_type's element type, and always
8091 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
8093 2016-01-11 Richard Biener <rguenther@suse.de>
8095 PR tree-optimization/69173
8096 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
8097 fixup the cycle if all stmts are in a pattern.
8099 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
8102 * alias.c (base_alias_check): Move check for addresses with
8103 alignment ANDs before the call for compare_base_decls.
8104 (memrefs_conflict_p): Return -1 for different decls
8105 that went through alignment adjustments.
8107 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8109 PR rtl-optimization/68796
8110 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
8111 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
8112 and QImode comparisons against zero with CC_NZmode.
8113 * config/aarch64/iterators.md (short_mask): New mode_attr.
8115 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
8117 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
8118 (<avx512>_store<mode>_mask): Likewise.
8120 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
8121 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8123 PR rtl-optimization/68841
8124 * ifcvt.c (struct noce_if_info): Add orig_x field.
8125 (bbs_ok_for_cmove_arith): Add to_rename parameter.
8126 Don't record conflicts on to_rename if it's present.
8127 Allow memory destinations in sets.
8128 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
8129 blocks, passing orig_x to the checks.
8130 (noce_process_if_block): Set if_info->orig_x appropriately.
8132 2016-01-11 Tom de Vries <tom@codesourcery.com>
8134 PR tree-optimization/69069
8135 * tree-parloops.c (create_parallel_loop): Add missing phi args.
8137 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
8139 PR rtl-optimization/68920
8140 * config/i386/i386.c (ix86_option_override_internal): Restrict number
8141 of conditional moves for RTL if-conversion to 1 for
8142 TARGET_ONE_IF_CONV_INSN.
8143 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
8144 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
8145 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
8146 parameter to restirct number of conditional moves for
8148 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
8149 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
8152 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
8155 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
8156 onepart vars. Fix typo in comment. Fix reversed condition in
8158 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
8161 * var-tracking.c (dump_onepart_variable_differences): New.
8162 (dataflow_set_different): If a detailed dump is requested,
8163 delay early returns and dump differences between onepart
8164 variables present before and after, and added variables.
8166 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
8169 * expr.c (expand_expr_real_1): For boolean vector constants
8170 with a scalar mode use const_scalar_mask_from_tree.
8171 (const_scalar_mask_from_tree): New.
8172 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
8173 assigned to a mask type to handle constants.
8175 2016-01-11 Martin Jambor <mjambor@suse.cz>
8178 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
8179 useless parameters if we cannot change function signature.
8181 2016-01-11 Martin Jambor <mjambor@suse.cz>
8184 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
8187 2016-01-11 Tom de Vries <tom@codesourcery.com>
8189 PR tree-optimization/69109
8190 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
8193 2016-01-11 Tom de Vries <tom@codesourcery.com>
8195 PR tree-optimization/69108
8196 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
8197 res is not used in a phi.
8199 2016-01-11 Yury Gribov <y.gribov@samsung.com>
8202 * common.opt (frandom-seed): Fix parameter name.
8203 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
8205 2016-01-11 Tom de Vries <tom@codesourcery.com>
8207 PR tree-optimization/69058
8208 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
8211 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
8213 * config/arc/arc.opt (mdiv-rem): Add period to the end.
8214 (mcode-density): Likewise.
8216 2016-01-10 Tom de Vries <tom@codesourcery.com>
8218 PR tree-optimization/69062
8219 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
8220 (parallelize_loops): Don't paralelize loop that has phi with address
8223 2016-01-10 Tom de Vries <tom@codesourcery.com>
8225 PR tree-optimization/69039
8226 * tree-parloops.c (try_create_reduction_list): Only allow single exit
8229 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
8232 * match.pd: Require target has function_c99_misc before doing
8233 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
8235 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
8237 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
8239 * configure: Regenerate.
8241 2016-01-09 Jakub Jelinek <jakub@redhat.com>
8244 PR tree-optimization/69097
8245 * fold-const.h (expr_not_equal_to): New prototype.
8246 * fold-const.c: Include stringpool.h and tree-ssanames.h.
8247 (expr_not_equal_to): New function.
8248 * match.pd (X % -Y is the same as X % Y): Don't optimize
8249 unless X is known not to be equal to minimum or Y is known
8250 not to be equal to -1.
8251 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
8252 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
8253 (simplify_stmt_using_ranges): Adjust caller.
8254 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
8255 substitute_and_fold.
8257 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
8259 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
8262 2016-01-08 Jakub Jelinek <jakub@redhat.com>
8264 PR tree-optimization/69167
8265 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
8266 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
8268 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
8270 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
8271 Richard Biener <rguenther@suse.de>
8273 PR tree-optimization/68707
8274 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
8275 instances that can be handled via vect_load_lanes.
8277 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
8279 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
8280 if we can't determine address equivalence.
8281 * alias.c (compare_base_decl): Update for changed return value of
8282 symtab_node::equal_address_to.
8284 2016-01-08 Jason Merrill <jason@redhat.com>
8288 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
8289 * expr.c (store_field): Not here.
8290 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
8291 call with TREE_ADDRESSABLE type.
8292 * tree-cfg.c (verify_gimple_call): Adjust.
8294 2016-01-08 Olivier Hainque <hainque@adacore.com>
8296 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
8299 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
8301 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
8302 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
8303 (reduc_smin_v2sf): Rename to...
8304 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
8305 (reduc_splus_v2sf): Rename to...
8306 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
8308 2016-01-08 Jakub Jelinek <jakub@redhat.com>
8310 PR tree-optimization/69162
8311 * gimplify.c (gimplify_va_arg_expr): Encode original type of
8312 valist argument in another argument.
8313 (gimplify_modify_expr): Adjust for the above change. Cleanup.
8314 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
8315 to determine the va_list type, build a MEM_REF instead of
8316 build_fold_indirect_ref.
8318 PR tree-optimization/69172
8319 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
8322 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
8324 PR tree-optimization/67781
8325 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
8326 and cmpnop in two steps: first the ones not accessed in original
8327 gimple expression in a endian independent way and then the ones not
8328 accessed in the final result in an endian-specific way.
8330 2016-01-08 Jakub Jelinek <jakub@redhat.com>
8332 PR tree-optimization/69083
8333 * tree-vect-slp.c (vect_get_constant_vectors): For
8334 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
8335 element type. If op is fold_convertible_p to vector_type's element
8336 type, use NOP_EXPR instead of VCE.
8338 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
8340 PR rtl-optimization/67778
8341 PR rtl-optimization/68634
8342 PR rtl-optimization/68909
8343 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
8344 block from the stack until done with it. Remove a superfluous
8345 bitmap set. Remove a superfluous bitmap test.
8347 2016-01-07 Martin Sebor <msebor@redhat.com>
8350 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
8351 constraint on the type of arguments.
8353 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
8355 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
8356 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
8357 unaligned_access on the gcc_options set.
8358 * config/arm/arm.c (arm_option_override_internal): Use
8359 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
8361 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
8364 * config/i386/i386.c (ix86_frame_pointer_required): Enable
8365 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
8367 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
8370 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
8373 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
8374 depending on frame_pointer_needed before remaining integer and SSE
8375 registers are saved.
8377 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
8380 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
8382 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
8385 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
8386 Use the "xBm" constraint.
8387 (float<sseintvecmodelower><mode>2<mask_name><round_name):
8389 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
8390 (sse_cvtsi2ssq<round_name>): Likewise.
8391 (sse_cvtss2si<round_name>): Likewise.
8392 (sse_cvtss2siq<round_name>): Likewise.
8393 (sse2_cvtsi2sdq<round_name>): Likewise.
8394 (sse2_cvtsd2si<round_name>): Likewise.
8395 (sse2_cvtsd2siq<round_name>): Likewise.
8396 * config/i386/subst.md (round_nimm_scalar_predicate): New
8399 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
8402 * varasm.c (make_decl_rtl): Mark invalid register vars as
8405 PR rtl-optimization/66206
8406 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
8407 All callers changed.
8409 2016-01-07 Jakub Jelinek <jakub@redhat.com>
8411 PR tree-optimization/69141
8412 * tree-ssa-pre.c: Include langhooks.h.
8413 (eliminate_dom_walker::before_dom_children): Use
8414 lang_hooks.decl_printable_name instead of
8415 cgraph_node::get ()->name ().
8418 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
8419 it and DECL_ALIGN too.
8421 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
8423 * config/mips/mips-ftypes.def: Sort to lexicographical order.
8425 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
8428 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
8429 depending on frame_pointer_needed before remaining integer and SSE
8430 registers are saved.
8432 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8434 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
8435 mode iterator with VSX_M2.
8436 (*p9_vecstore_<mode>): Likewise.
8437 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
8438 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
8439 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
8440 (define_split for VSX_LE128 stores): Likewise.
8441 (define_peephole2 for TImode LE swaps): Likewise.
8442 (define_split for VSX_LE128 post-reload stores): Likewise.
8444 2016-01-06 Marek Polacek <polacek@redhat.com>
8447 * convert.c (convert_to_integer_1): Adjust call to
8448 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
8449 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
8450 EXPR instead of ARG.
8451 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
8453 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
8456 * doc/extend.texi (RL78 Variable Attributes): New section.
8458 2016-01-05 Marek Polacek <polacek@redhat.com>
8461 * builtins.c (get_memmodel): Use expansion point location rather than
8462 the input location. Call warning_at rather than warning.
8463 (expand_builtin_atomic_compare_exchange): Likewise.
8464 (expand_builtin_atomic_load): Likewise.
8465 (expand_builtin_atomic_store): Likewise.
8466 (expand_builtin_atomic_clear): Likewise.
8468 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
8471 * config/i386/i386.c (ix86_expand_vector_logical_operator):
8472 Replace nonimmediate_operand with vector_operand.
8473 * config/i386/predicates.md (vector_operand): New predicate.
8474 (general_vector_operand): Replace nonimmediate_operand with
8476 * config/i386/sse.md: Replace nonimmediate_operand with
8477 vector_operand and m constraint with Bm constraint on SSE
8478 patterns with 16-byte memory operand.
8479 * config/i386/subst.md (round_nimm_predicate): Replace
8480 nonimmediate_operand with vector_operand.
8481 (round_saeonly_nimm_predicate): Likewise.
8482 (round_saeonly_nimm_scalar_predicate): New.
8484 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
8487 * config/i386/constraints.md (Bm): New constraint.
8488 * config/i386/predicates.md (vector_memory_operand): New
8490 * config/i386/sse.md: Replace xm with xBm in plusminus and
8493 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
8496 * doc/extend.texi (V850 Function Attributes): New section.
8497 (V850 Variable Attributes): New section.
8499 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
8502 * doc/extend.texi (MicroBlaze Function Attributes): Document
8503 interrupt_handler and fast_interrupt attributes.
8505 2016-01-05 Sergei Trofimovich <siarheit@google.com>
8508 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
8509 for local symbolic operands.
8510 * config/ia64/predicates.md (local_symbolic_operand64): New
8513 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8515 PR rtl-optimization/68651
8516 * combine.c (combine_simplify_rtx): Canonicalize x + x into
8519 2016-01-05 Nathan Sidwell <nathan@acm.org>
8521 * alias.c (compare_base_decls): Use symtab_node::get.
8523 2016-01-05 Nick Clifton <nickc@redhat.com>
8526 * ira-costs.c (copy_cost): Initialise the t_icode field of the
8527 secondary_reload_info structure.
8530 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
8531 decls if weak support is available.
8533 2016-01-04 Martin Sebor <msebor@redhat.com>
8535 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
8537 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
8539 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
8540 OPTION_MASK_P9_DFORM.
8542 * config/rs6000/constraints.md (wo constraint): New constraint for
8545 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
8547 (rs6000_init_hard_regno_mode_ok): Likewise.
8549 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
8552 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
8553 expanders not to have constraints. Add support for ISA 3.0 xxperm
8554 instruction. Add support for fusing xxlor with xxperm.
8555 (altivec_vperm_<mode>_internal): Likewise.
8556 (altivec_vperm_v8hiv16qi): Likewise.
8557 (altivec_vperm_<mode>v16q): Likewise.
8558 (altivec_vperm_<mode>_uns): Likewise.
8559 (vperm_v8hiv4si): Likewise.
8560 (vperm_v16qiv8hi): Likewise.
8562 * doc/md.texi (RS/6000 constraints): Document wo constraint.
8564 2016-01-04 Jakub Jelinek <jakub@redhat.com>
8566 Update copyright years.
8568 * gcc.c (process_command): Update copyright notice dates.
8569 * gcov-dump.c (print_version): Ditto.
8570 * gcov.c (print_version): Ditto.
8571 * gcov-tool.c (print_version): Ditto.
8572 * gengtype.c (create_file): Ditto.
8573 * doc/cpp.texi: Bump @copying's copyright year.
8574 * doc/cppinternals.texi: Ditto.
8575 * doc/gcc.texi: Ditto.
8576 * doc/gccint.texi: Ditto.
8577 * doc/gcov.texi: Ditto.
8578 * doc/install.texi: Ditto.
8579 * doc/invoke.texi: Ditto.
8581 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
8583 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
8584 modes larger than TImode as TImode if NEON is not enabled.
8586 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
8589 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
8590 mode for %f0-%f31 only if TARGET_FPU.
8592 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
8595 * config/sparc/sparc.c (scan_record_type): Take into account subfields
8596 to compute the PACKED_P predicate.
8597 (function_arg_record_value): Minor tweaks.
8599 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
8601 * doc/install.texi (--with-multilib-list): Describe the meaning of the
8602 option for arm*-*-* targets.
8604 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
8606 * doc/extend.texi (Common Function Attributes): Move docs for
8607 MSP430-specific attributes to....
8608 (MSP430 Function Attributes): ...here. Delete the redundant
8609 entries and copy-edit the remaining text.
8610 (MSP430 Variable Attributes): Use uniform format for index
8611 entries and add a cross-reference to the corresponding function
8614 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
8616 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
8618 (x86 Options): Likewise.
8620 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
8624 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
8625 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
8626 to corresponding attribute.
8628 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
8630 * doc/extend.texi (Common Function Attributes) <noplt>: Move
8631 to correct alphabetization of table. Copy-edit and correct
8633 <stack_protect>: Likewise.
8634 <target_clones>: Likewise.
8636 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
8637 Correct punctuation.
8638 (Code Gen Options) <-fno-plt>: Copy-edit.
8640 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8643 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
8644 SI values. Explicitly convert SI to DI and vice-versa.
8646 2016-01-01 Jakub Jelinek <jakub@redhat.com>
8648 PR tree-optimization/69070
8649 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
8650 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
8653 * ubsan.c (ubsan_instrument_float_cast): Call
8654 initialize_sanitizer_builtins.
8657 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
8659 Copyright (C) 2016 Free Software Foundation, Inc.
8661 Copying and distribution of this file, with or without modification,
8662 are permitted in any medium without royalty provided the copyright
8663 notice and this notice are preserved.