1 2016-04-27 David Malcolm <dmalcolm@redhat.com>
3 * rtl.def: Update comment for "things in the instruction chain" to
4 reflect the removal of the leading "i" field for INSN_UID in
5 r210360. Fix bogus apostrophe.
7 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
10 (lea arith with mem operand + setcc peephole2): Set operator mode.
12 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
15 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed
17 (dimode_scalar_to_vector_candidate_p): This.
18 (timode_scalar_to_vector_candidate_p): New function.
19 (scalar_to_vector_candidate_p): Likewise.
20 (timode_check_non_convertible_regs): Likewise.
21 (timode_remove_non_convertible_regs): Likewise.
22 (remove_non_convertible_regs): Likewise.
23 (remove_non_convertible_regs): Renamed to ...
24 (dimode_remove_non_convertible_regs): This.
25 (scalar_chain::~scalar_chain): Make it virtual.
26 (scalar_chain::compute_convert_gain): Make it pure virtual.
27 (scalar_chain::mark_dual_mode_def): Likewise.
28 (scalar_chain::convert_insn): Likewise.
29 (scalar_chain::convert_registers): Likewise.
30 (scalar_chain::add_to_queue): Make it protected.
31 (scalar_chain::emit_conversion_insns): Likewise.
32 (scalar_chain::replace_with_subreg): Likewise.
33 (scalar_chain::replace_with_subreg_in_insn): Likewise.
34 (scalar_chain::convert_op): Likewise.
35 (scalar_chain::convert_reg): Likewise.
36 (scalar_chain::make_vector_copies): Likewise.
37 (scalar_chain::convert_registers): New pure virtual function.
38 (class dimode_scalar_chain): New class.
39 (class timode_scalar_chain): Likewise.
40 (scalar_chain::mark_dual_mode_def): Renamed to ...
41 (dimode_scalar_chain::mark_dual_mode_def): This.
42 (timode_scalar_chain::mark_dual_mode_def): New function.
43 (timode_scalar_chain::convert_insn): Likewise.
44 (dimode_scalar_chain::convert_registers): Likewise.
45 (scalar_chain::compute_convert_gain): Renamed to ...
46 (dimode_scalar_chain::compute_convert_gain): This.
47 (scalar_chain::replace_with_subreg): Renamed to ...
48 (dimode_scalar_chain::replace_with_subreg): This.
49 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
50 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
51 (scalar_chain::make_vector_copies): Renamed to ...
52 (dimode_scalar_chain::make_vector_copies): This.
53 (scalar_chain::convert_reg): Renamed to ...
54 (dimode_scalar_chain::convert_reg ): This.
55 (scalar_chain::convert_op): Renamed to ...
56 (dimode_scalar_chain::convert_op): This.
57 (scalar_chain::convert_insn): Renamed to ...
58 (dimode_scalar_chain::convert_insn): This.
59 (scalar_chain::convert): Call convert_registers.
60 (convert_scalars_to_vector): Change to scalar_chain pointer to
61 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
62 in 32-bit mode. Delete scalar_chain pointer. Call
63 free_dominance_info in 64-bit mode.
64 (pass_stv::gate): Remove TARGET_64BIT check.
65 (ix86_option_override): Put the 64-bit STV pass before the CSE
68 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
70 * dwarf2out.h (struct dw_loc_descr_node): Remove the
71 dw_loc_frame_offset field.
72 * dwarf2out.c (new_loc_descr): Likewise.
73 (resolve_args_picking_1): Turn the VISITED hash set into a
74 FRAME_OFFSET hash map. Use it to associate a frame offset to
75 visited nodes. Remove uses of the CHECKING_P macro.
76 (resolve_args_picking): Update call to resolve_args_picking_1.
78 2016-04-27 Martin Liska <mliska@suse.cz>
80 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
81 (free_loop_data): Release vuses of groups.
83 2016-04-27 Bin Cheng <bin.cheng@arm.com>
85 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
86 instead of redundant use_id and boolean have_use_for.
87 (struct iv_use): Change sub_id into group_id. Remove field next.
88 Move fields: related_cands, n_map_members, cost_map and selected
90 (struct iv_group): ... here. New structure.
91 (struct iv_common_cand): Use structure declaration directly.
92 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
93 (MAX_CONSIDERED_USES): Rename macro to ...
94 (MAX_CONSIDERED_GROUPS): ... here.
95 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
96 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
97 (dump_uses): Rename to ...
98 (dump_groups): ... here. Update all uses.
99 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
100 (find_induction_variables): Refactor format of dump information.
101 (record_sub_use): Delete.
102 (record_use): Update all uses.
103 (record_group): New function.
104 (record_group_use, find_interesting_uses_op): Call above functions.
106 (find_interesting_uses_cond): Ditto.
107 (group_compare_offset): New function.
108 (split_all_small_groups): Rename to ...
109 (split_small_address_groups_p): ... here. Update all uses.
110 (split_address_groups): Update all uses.
111 (find_interesting_uses): Refactor format of dump information.
112 (add_candidate_1): Update all uses. Remove redundant check on iv,
114 (add_candidate, record_common_cand): Remove redundant assert.
115 (add_iv_candidate_for_biv): Update use.
116 (add_iv_candidate_derived_from_uses): Update all uses.
117 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
118 (alloc_use_cost_map): Ditto.
119 (set_use_iv_cost, get_use_iv_cost): Rename to ...
120 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
121 (determine_use_iv_cost_generic): Ditto.
122 (determine_group_iv_cost_generic): Ditto.
123 (determine_use_iv_cost_address): Ditto.
124 (determine_group_iv_cost_address): Ditto.
125 (determine_use_iv_cost_condition): Ditto.
126 (determine_group_iv_cost_cond): Ditto.
127 (determine_use_iv_cost): Ditto.
128 (determine_group_iv_cost): Ditto.
129 (set_autoinc_for_original_candidates): Update all uses.
130 (find_iv_candidates): Update all uses. Refactor dump information.
131 (determine_use_iv_costs): Ditto.
132 (determine_iv_costs): Ditto.
133 (iv_ca_cand_for_use): Rename to ...
134 (iv_ca_cand_for_group): ... here. Update all uses.
135 (iv_ca_add_use, iv_ca_add_group): Ditto.
136 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
137 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
138 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
139 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
140 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
141 (create_new_iv, adjust_iv_update_pos): Ditto.
142 (rewrite_use_address): Delete.
143 (rewrite_use_address_1): Rename to ...
144 (rewrite_use_address): ... here.
145 (rewrite_use_compare): Update all uses.
146 (rewrite_use): Delete.
147 (rewrite_uses): Rename to ...
148 (rewrite_groups): ... here. Update all uses.
149 (remove_unused_ivs, free_loop_data): Update all uses.
150 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
152 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
154 * rtlanal.c (nonzero_bits1): Convert preprocessor check
155 for WORD_REGISTER_OPERATIONS to runtime check.
157 2016-04-27 Richard Biener <rguenther@suse.de>
160 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
161 aggregate_value_p to determine if a function result is
162 returned by reference.
163 (ipa_pta_execute): Functions having their address taken are
164 not automatically nonlocal.
166 2016-04-27 Jakub Jelinek <jakub@redhat.com>
169 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
170 * fold-const.c (operand_equal_p): If flag_checking and
171 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
172 and if it returns non-zero, assert iterative_hash_expr on both
175 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
177 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
179 2016-04-27 Nick Clifton <nickc@redhat.com>
182 * varasm.c (merge_weak): Generate an error if an attempt is made
183 to convert a non-weak static function into a weak, public function.
185 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
187 * params.def (MAX_PARTITION_SIZE): New param.
188 * doc/invoke.texi: Document lto-max-partition.
190 2016-04-27 Richard Biener <rguenther@suse.de>
193 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
194 function cummulating used_from_other_partition, externally_visible
195 and force_output from aliases.
196 (refered_from_nonlocal_var): Likewise.
197 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
200 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
202 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
203 (-Wmemset-elt-size): New item.
205 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
208 * stor-layout.h (internal_reference_types): Delete.
209 * stor-layout.c (reference_types_internal): Likewise.
210 (internal_reference_types): Likewise.
211 (layout_type) <REFERENCE_TYPE>: Adjust.
213 2016-04-27 Jakub Jelinek <jakub@redhat.com>
216 * tree.h (inchash::add_expr): Add FLAGS argument.
217 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
218 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
219 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
220 Formatting fix. Adjust recursive calls. For tcc_comparison,
221 if swap_tree_comparison (code) is smaller than code, hash that
222 and arguments in the other order. Hash CONVERT_EXPR the same
223 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
224 of ADDR_EXPR of decl as the decl itself. Add or remove
225 OEP_ADDRESS_OF from recursive flags as needed. For
226 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
227 operands commutatively and only the third one normally.
228 For internal CALL_EXPR hash in CALL_EXPR_IFN.
230 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
232 * config/rtems.h (LIB_SPEC): Add -latomic.
234 2016-04-27 Joel Sherrill <joel@rtems.org>
236 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
237 xilink.ld and flags not relevant to RTEMS.
239 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
241 * toplev.c (backend_init_target): Avoid calling init_reload when using
244 2016-04-26 Jakub Jelinek <jakub@redhat.com>
246 * reorg.c (try_merge_delay_insns): Declare i and j inside the
247 for loops rather than one for the whole function.
249 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
251 * match.pd (X + CST CMP X): New transformation.
253 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
255 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
256 * fold-const.c (fold_binary_loc): Remove 2 transformations
257 superseded by match.pd.
258 * match.pd (x+x -> x*2): Generalize to integers.
260 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
262 * config/i386/i386.md (operation on memory peephole): Duplicate an
263 existing peephole and adapt it to match lea rather than an operation
266 PR rtl-optimization/57193
267 * opts.c (default_options_table): Add OPT_frename_registers at -O2
269 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
271 2016-04-26 Bin Cheng <bin.cheng@arm.com>
273 * tree-if-conv.c (any_pred_load_store): New static variable.
274 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
275 any_pred_load_store instead of and_mask_load_store.
276 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
277 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
278 (combine_blocks, tree_if_conversion): Ditto.
280 2016-04-26 Bin Cheng <bin.cheng@arm.com>
282 PR tree-optimization/70771
283 PR tree-optimization/70775
284 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
285 virtual PHI nodes. Delete parameter.
286 (if_convertible_loop_p_1): Delete argument to above function.
287 (predicate_all_scalar_phis): Delete code handling single-argument
289 (tree_if_conversion): Mark and update virtual SSA.
291 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
294 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
295 (x86_elf_aligned_common): Rename to ...
296 (x86_elf_aligned_decl_common): ... this.
297 Add decl arg. Switch to .lbss for largecomm object. Use
298 LARGECOMM_SECTION_ASM_OP.
299 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
301 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
302 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
304 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
305 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
307 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
310 * config/i386/i386.c (SECTION_LARGE): Define.
311 (x86_64_elf_select_section): Set it for large data/bss sections.
312 Only clear SECTION_WRITE for .lrodata.
313 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
315 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
316 * varasm.c (default_elf_asm_named_section): Grow flagchars.
317 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
319 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
320 * doc/tm.texi: Regenerate.
322 2016-04-26 Jakub Jelinek <jakub@redhat.com>
325 * configure.ac (--enable-checking): Document extra flag, for
326 non-release builds default to --enable-checking=yes,extra.
327 If misc checking and extra checking, define CHECKING_P to 2 instead
329 * common.opt (fchecking=): Add.
330 * doc/invoke.texi (-fchecking=): Document.
331 * doc/install.texi: Document --enable-checking changes.
332 * configure: Regenerated.
333 * config.in: Regenerated.
335 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
337 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
338 attribute instead of which_alternative.
339 * config/i386/sse.md (*mov<mode>_internal): Ditto.
340 Use EXT_REX_SSE_REG_P where appropriate.
342 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
344 * config/i386/predicates.md (const0_operand): Do not match
346 (const1_operand): Ditto.
348 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
350 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
351 for SSE constm1 operands and TARGET_AVX512VL.
352 (*movti_internal): Ditto.
353 (*mov<mode>_or): Use constm1_operand predicate.
354 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
355 for SSE vector_all_ones operands and TARGET_AVX512VL.
356 * config/i386/predicates.md (constm1_operand): New predicate.
357 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
358 emission of constant -1 load.
360 2016-04-25 Jason Merrill <jason@redhat.com>
362 * gdbinit.in: Skip is-a.h.
364 * attribs.c (register_scoped_attributes): Fix logic.
365 * attribs.h: Declare register_scoped_attributes.
367 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
369 * config/rs6000/rs6000-builtin.def: Correct pasto error for
370 stxvd2x and stxvw4x built-in functions.
372 2016-04-25 DJ Delorie <dj@redhat.com>
374 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
378 2016-04-25 Richard Biener <rguenther@suse.de>
380 PR tree-optimization/70780
381 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
383 (compute_antic): Mark blocks with abnormal preds as visited as
384 they have a final empty antic-in solution already.
386 2016-04-25 Michael Collison <michael.collison@linaro.org>
388 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
390 2016-04-25 Michael Collison <michael.collison@linaro.org>
392 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
393 mode is VQI to improve mixed mode vectorization.
394 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
395 define_insn to match low half of signed vaddw.
396 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
397 define_insn to match high half of signed vaddw.
398 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
399 define_insn to match low half of unsigned vaddw.
400 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
401 define_insn to match high half of unsigned vaddw.
402 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
403 (arm_simd_check_vect_par_cnst_half_p): Likewise.
404 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
406 (arm_simd_check_vect_par_cnst_half_p): Likewise.
407 * config/arm/predicates.md (vect_par_constant_high): Support
408 big endian and simplify by calling
409 arm_simd_check_vect_par_cnst_half
410 (vect_par_constant_low): Likewise.
412 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
414 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
415 predicate for operand 2.
417 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
418 H.J. Lu <hongjiu.lu@intel.com>
420 * config/i386/i386-protos.h (standard_sse_constant_p): Add
421 machine_mode argument.
422 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
423 constm1_rtx operands. For VOIDmode constants, get mode from
424 pred_mode. Check mode size if the mode is supported by ABI.
425 (standard_sse_constant_opcode): Do not use standard_constant_p.
426 Strictly check ABI support for all-ones operands.
427 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
428 immediates. Update calls to standard_sse_constant_p.
429 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
430 (ix86_rtx_costs): Ditto.
431 * config/i386/i386.md (*movxi_internal_avx512f): Use
432 nonimmediate_or_sse_const_operand instead of vector_move_operand.
433 Use (v,BC) alternative instead of (v,C). Use register_operand
434 checks instead of MEM_P.
435 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
436 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
437 isa attribute. Use register_operand checks instead of MEM_P.
438 (*movti_internal): Use nonimmediate_or_sse_const_operand for
439 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
440 alternative and corresponding sse2 isa attribute.
441 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
442 to standard_sse_constant_p.
443 (FP constant splitters): Ditto.
444 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
446 * config/i386/predicates.md (constm1_operand): Remove.
447 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
448 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
449 vector_all_ones_operand instead of constm1_operand.
451 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
453 * print-rtl.c (print_rtx_insn_vec): New function.
454 * print-rtl.h: New prototype.
455 * store-motion.c (struct st_expr): Make avail_stores a vector.
456 (st_expr_entry): Adjust.
457 (free_st_expr_entry): Likewise.
458 (print_store_motion_mems): Likewise.
459 (find_moveable_store): Likewise.
460 (compute_store_table): Likewise.
461 (delete_store): Likewise.
462 (build_store_vectors): Likewise.
464 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
466 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
468 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
470 * vec.h (vec_safe_contains): New function.
471 (vec::contains): Likewise.
472 (vec::begin): Likewise.
473 (vec::end): Likewise.
475 2016-04-23 Jakub Jelinek <jakub@redhat.com>
478 * cfgexpand.c (expand_stack_vars): Fix typo.
480 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
482 * system.h (list, map, set, vector): Include conditionally.
483 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
484 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
485 * ipa-icf.c (INCLUDE_LIST): Define.
486 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
487 * config/sh/sh.c (INCLUDE_VECTOR): Define.
488 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
489 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
490 * cp/logic.cc (INCLUDE_LIST): Define.
491 * fortran/trans-common.c (INCLUDE_MAP): Define.
493 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
495 * auto-profile.c: Remove <string.h> include.
496 * ipa-icf-gimple.c: Remove <list> include.
497 * diagnostic.c: Remove <new> include.
498 * genmatch.c: Likewise.
499 * pretty-print.c: Likewise.
501 * c/c-objc-common.c: Likewise.
502 * cp/error.c: Likewise.
503 * fortran/error.c: Likewise.
505 2016-04-22 Richard Biener <rguenther@suse.de>
507 * lto-streamer-in.c (input_ssa_names): Do not allocate
508 GIMPLE_NOP for all SSA names.
509 * lto-streamer-out.c (output_ssa_names): Do not output
510 SSA names that should have been released.
512 2016-04-22 Richard Biener <rguenther@suse.de>
514 PR tree-optimization/70740
515 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
518 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
521 * config/i386/predicates.md (call_insn_operand): Replace
522 sibcall_memory_operand with memory_operand.
524 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
526 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
527 has_single_use() tests.
528 (register_edge_assert_for_1): Likewise.
529 (find_assert_locations_1): Check the liveness bitmap instead of
530 checking has_single_use().
532 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
535 * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
536 Extract AVX-512BW constraint from AVX.
538 2016-04-21 Richard Biener <rguenther@suse.de>
540 PR tree-optimization/70725
541 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
542 for phi_convertible_by_degenerating_args.
543 (predicate_all_scalar_phis): Handle single-argument PHIs.
545 2016-04-21 Richard Biener <rguenther@suse.de>
548 * fold-const.c (fold_comparison): Return properly typed
551 2016-04-21 Bin Cheng <bin.cheng@arm.com>
553 PR tree-optimization/70715
554 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
555 after expanding BASE using expand_simple_operations.
557 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
559 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
562 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
564 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
566 2016-04-20 Jan Hubicka <jh@suse.cz>
568 * ipa-inline.c (can_inline_edge_p): Pass caller info to
569 ultiimate_alias_target.
570 (update_callee_keys): Likewise.
571 (lookup_recursive_calls): Likewise.
572 (speculation_useful_p): Likewise.
574 2016-04-20 Jan Hubicka <jh@suse.cz>
577 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
578 (set_nothrow_flag_1): ... this; handle interposition correctly;
579 recurse on aliases and thunks.
580 (cgraph_node::set_nothrow_flag): New.
581 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
582 functions compiled with non-call exceptions that binds to current
584 (propagate_nothrow): Be safe WRT interposition.
585 * cgraph.h (set_nothrow_flag): Update prototype.
587 2016-04-18 Jan Hubicka <jh@suse.cz>
589 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
590 max_loop_iterations_int.
591 (tree_unswitch_outer_loop): Likewise.
593 2016-04-20 Bin Cheng <bin.cheng@arm.com>
595 PR tree-optimization/69489
596 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
597 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
599 (if_convertible_bb_p): Remove check on edge count of basic block's
602 2016-04-20 Bin Cheng <bin.cheng@arm.com>
604 PR tree-optimization/56625
605 PR tree-optimization/69489
606 * tree-data-ref.h (DR_INNERMOST): New macro.
607 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
608 hashing struct innermost_loop_behavior.
609 (ref_DR_map): Remove.
610 (innermost_DR_map): New map.
611 (baseref_DR_map): Revise comment.
612 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
613 to innermost_DR_map accroding to its innermost loop behavior.
614 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
615 to its innermost loop behavior.
616 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
617 Add initialization for innermost_DR_map. Record memory reference
618 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
619 have innermost loop behavior.
620 (if_convertible_loop_p): Remove release for ref_DR_map. Release
623 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
625 * config/i386/i386.md (*lea<mode>_general_1): Rename from
626 *lea_general_1. Use explicit SWI12 mode interator.
627 (*lea<mode>_general_2): Rename from *lea_general_2.
628 Use explicit SWI12 mode interator.
629 (*lea<mode>_general_3): Rename from *lea_general_3.
630 Use explicit SWI12 mode interator.
631 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
632 Use explicit SWI12 mode interator.
633 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
634 Use explicit SWI48 mode interator.
636 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
638 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
639 Short-cut unaligned load and store cases. Handle all integer
641 (ix86_expand_vector_move_misalign): Short-cut unaligned load
642 and store cases. Call ix86_avx256_split_vector_move_misalign
643 directly without checking mode class.
645 2016-04-20 Andrew Pinski <apinski@cavium.com>
646 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
649 * config/aarch64/aarch64.md (sibcall): Force call
650 address to be DImode for ILP32.
651 (sibcall_value): Likewise.
653 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
655 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
657 2016-04-20 Richard Biener <rguenther@suse.de>
659 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
660 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
661 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
662 (maybe_push_res_to_seq): Adjust.
663 * gimple-fold.c (maybe_build_generic_op): Likewise.
665 2016-04-20 Marek Polacek <polacek@redhat.com>
667 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
670 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
672 * config/i386/sse.md (vec_unpacks_lo_hi): Always
673 use kmovw to support AVX512F target.
675 2016-04-20 Bin Cheng <bin.cheng@arm.com>
677 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
679 2016-04-20 Marek Polacek <polacek@redhat.com>
681 PR tree-optimization/70725
682 * tree-if-conv.c (is_false_predicate): New function.
683 (predicate_mem_writes): Use it.
685 2016-04-20 Richard Biener <rguenther@suse.de>
687 PR tree-optimization/70726
688 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
689 shift amounts from a pattern stmt operand.
691 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
694 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
695 stack_restore_from_fpr pattern when restoring r15.
696 (s390_optimize_prologue): Strip away the memory barrier in the
697 parallel when trying to get rid of restore insns.
698 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
699 definition for loading the stack pointer from an FPR. Compared to
700 the normal move insn this pattern includes a full memory barrier.
702 2016-04-19 Jakub Jelinek <jakub@redhat.com>
705 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
706 implicitly linear or lastprivate iterator on the outer context.
708 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
710 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
712 * config/i386/i386.md (ssememalign): Removed.
713 * config/i386/sse.md: Remove ssememalign attribute from patterns.
715 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
718 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
719 const short * to __builtin_ia32_loaddquhi512_mask.
720 (_mm512_maskz_loadu_epi16): Likewise.
721 (_mm512_mask_storeu_epi16): Pass short * to
722 __builtin_ia32_storedquhi512_mask.
723 (_mm512_mask_loadu_epi8): Pass const char * to
724 __builtin_ia32_loaddquqi512_mask.
725 (_mm512_maskz_loadu_epi8): Likewise.
726 (_mm512_mask_storeu_epi8): Pass char * to
727 __builtin_ia32_storedquqi512_mask.
728 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
729 const double * to __builtin_ia32_loadupd512_mask.
730 (_mm512_mask_loadu_pd): Likewise.
731 (_mm512_maskz_loadu_pd): Likewise.
732 (_mm512_storeu_pd): Pass double * to
733 __builtin_ia32_storeupd512_mask.
734 (_mm512_mask_storeu_pd): Likewise.
735 (_mm512_loadu_ps): Pass const float * to
736 __builtin_ia32_loadups512_mask.
737 (_mm512_mask_loadu_ps): Likewise.
738 (_mm512_maskz_loadu_ps): Likewise.
739 (_mm512_storeu_ps): Pass float * to
740 __builtin_ia32_storeups512_mask.
741 (_mm512_mask_storeu_ps): Likewise.
742 (_mm512_mask_loadu_epi64): Pass const long long * to
743 __builtin_ia32_loaddqudi512_mask.
744 (_mm512_maskz_loadu_epi64): Likewise.
745 (_mm512_mask_storeu_epi64): Pass long long *
746 to __builtin_ia32_storedqudi512_mask.
747 (_mm512_loadu_si512): Pass const int * to
748 __builtin_ia32_loaddqusi512_mask.
749 (_mm512_mask_loadu_epi32): Likewise.
750 (_mm512_maskz_loadu_epi32): Likewise.
751 (_mm512_storeu_si512): Pass int * to
752 __builtin_ia32_storedqusi512_mask.
753 (_mm512_mask_storeu_epi32): Likewise.
754 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
755 char * to __builtin_ia32_storedquqi256_mask.
756 (_mm_mask_storeu_epi8): Likewise.
757 (_mm256_mask_loadu_epi16): Pass const short * to
758 __builtin_ia32_loaddquhi256_mask.
759 (_mm256_maskz_loadu_epi16): Likewise.
760 (_mm_mask_loadu_epi16): Pass const short * to
761 __builtin_ia32_loaddquhi128_mask.
762 (_mm_maskz_loadu_epi16): Likewise.
763 (_mm256_mask_loadu_epi8): Pass const char * to
764 __builtin_ia32_loaddquqi256_mask.
765 (_mm256_maskz_loadu_epi8): Likewise.
766 (_mm_mask_loadu_epi8): Pass const char * to
767 __builtin_ia32_loaddquqi128_mask.
768 (_mm_maskz_loadu_epi8): Likewise.
769 (_mm256_mask_storeu_epi16): Pass short * to.
770 __builtin_ia32_storedquhi256_mask.
771 (_mm_mask_storeu_epi16): Pass short * to.
772 __builtin_ia32_storedquhi128_mask.
773 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
774 const double * to __builtin_ia32_loadupd256_mask.
775 (_mm256_maskz_loadu_pd): Likewise.
776 (_mm_mask_loadu_pd): Pass onst double * to
777 __builtin_ia32_loadupd128_mask.
778 (_mm_maskz_loadu_pd): Likewise.
779 (_mm256_mask_storeu_pd): Pass double * to
780 __builtin_ia32_storeupd256_mask.
781 (_mm_mask_storeu_pd): Pass double * to
782 __builtin_ia32_storeupd128_mask.
783 (_mm256_mask_loadu_ps): Pass const float * to
784 __builtin_ia32_loadups256_mask.
785 (_mm256_maskz_loadu_ps): Likewise.
786 (_mm_mask_loadu_ps): Pass const float * to
787 __builtin_ia32_loadups128_mask.
788 (_mm_maskz_loadu_ps): Likewise.
789 (_mm256_mask_storeu_ps): Pass float * to
790 __builtin_ia32_storeups256_mask.
791 (_mm_mask_storeu_ps): ass float * to
792 __builtin_ia32_storeups128_mask.
793 (_mm256_mask_loadu_epi64): Pass const long long * to
794 __builtin_ia32_loaddqudi256_mask.
795 (_mm256_maskz_loadu_epi64): Likewise.
796 (_mm_mask_loadu_epi64): Pass const long long * to
797 __builtin_ia32_loaddqudi128_mask.
798 (_mm_maskz_loadu_epi64): Likewise.
799 (_mm256_mask_storeu_epi64): Pass long long * to
800 __builtin_ia32_storedqudi256_mask.
801 (_mm_mask_storeu_epi64): Pass long long * to
802 __builtin_ia32_storedqudi128_mask.
803 (_mm256_mask_loadu_epi32): Pass const int * to
804 __builtin_ia32_loaddqusi256_mask.
805 (_mm256_maskz_loadu_epi32): Likewise.
806 (_mm_mask_loadu_epi32): Pass const int * to
807 __builtin_ia32_loaddqusi128_mask.
808 (_mm_maskz_loadu_epi32): Likewise.
809 (_mm256_mask_storeu_epi32): Pass int * to
810 __builtin_ia32_storedqusi256_mask.
811 (_mm_mask_storeu_epi32): Pass int * to
812 __builtin_ia32_storedqusi128_mask.
813 * config/i386/i386-builtin-types.def (PCSHORT): New.
815 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
816 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
817 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
818 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
819 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
820 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
821 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
822 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
823 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
824 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
825 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
826 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
827 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
828 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
829 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
830 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
831 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
832 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
833 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
834 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
835 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
836 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
837 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
838 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
839 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
840 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
841 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
842 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
843 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
844 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
845 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
846 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
847 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
848 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
849 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
850 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
851 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
852 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
853 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
854 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
855 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
856 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
857 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
858 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
859 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
860 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
861 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
862 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
863 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
865 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
866 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
868 (ix86_expand_vector_move_misalign): Likewise.
869 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
870 to scalar function prototype for unaligned load/store builtins.
871 (ix86_expand_special_args_builtin): Updated.
872 * config/i386/sse.md (UNSPEC_LOADU): Removed.
873 (UNSPEC_STOREU): Likewise.
874 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
875 (VI_ULOADSTORE_F_AVX512VL): Likewise.
876 (ssescalarsize): Handle V4TI, V2TI and V1TI.
877 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
878 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
879 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
880 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
881 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
882 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
883 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
884 (<avx512>_storedqu<mode>_mask): Likewise.
885 (*sse4_2_pcmpestr_unaligned): Likewise.
886 (*sse4_2_pcmpistr_unaligned): Likewise.
887 (*mov<mode>_internal): Renamed to ...
888 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
889 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
890 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
891 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
893 2016-04-19 Richard Biener <rguenther@suse.de>
895 PR tree-optimization/70171
896 * tree-ssa-phiprop.c: Include stor-layout.h.
897 (phiprop_insert_phi): Handle the aggregate copy case.
898 (propagate_with_phi): Likewise.
900 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
902 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
903 instead of simplify_gen_subreg (... , 0).
904 (ix86_delegitimize_address): Ditto.
905 (ix86_split_divmod): Ditto.
906 (ix86_split_copysign_const): Ditto.
907 (ix86_split_copysign_var): Ditto.
908 (ix86_expand_args_builtin): Ditto.
909 (ix86_expand_round_builtin): Ditto.
910 (ix86_expand_special_args_builtin): Ditto.
911 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
912 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
914 (absneg splitters): Ditto.
915 (*jcc_bt<mode>_1): Ditto.
917 2016-04-19 Richard Biener <rguenther@suse.de>
919 PR tree-optimization/70724
920 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
921 restoring out from ...
922 (free_scc_vn): ... here.
923 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
924 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
926 (pass_fre::execute): Restore SSA info.
928 2016-04-19 Richard Biener <rguenther@suse.de>
930 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
931 * gimple-walk.c (walk_gimple_op): Initialize it.
932 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
933 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
934 remapping SSA names of defs.
935 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
938 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
941 * lra-constraints.c (equiv_substition_p): New.
942 (process_alt_operands): Use it.
943 (swap_operands): Swap it.
944 (curr_insn_transform): Update it.
946 2016-04-18 Michael Matz <matz@suse.de>
948 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
949 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
950 * tree-core.h (tree_type_common.align): Use bit-field.
951 (tree_type_common.spare): New.
952 (tree_decl_common.off_align): Make smaller.
953 (tree_decl_common.align): Use bit-field.
955 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
956 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
957 (scan_sharing_clauses): Ditto.
958 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
959 (omp_finish_file): Ditto.
960 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
961 (layout_decl): Ditto.
962 (relayout_decl): Ditto.
963 (finalize_record_size): Use SET_TYPE_ALIGN.
964 (finalize_type_size): Ditto.
965 (finish_builtin_struct): Ditto.
966 (layout_type): Ditto.
967 (initialize_sizetypes): Ditto.
968 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
969 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
970 (lookup_field_for_decl): Use SET_DECL_ALIGN.
971 (get_chain_field): Ditto.
972 (get_trampoline_type): Ditto.
973 (get_nl_goto_field): Ditto.
974 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
976 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
977 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
978 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
979 (build_qualified_type): Use SET_TYPE_ALIGN.
980 (build_aligned_type, build_range_type_1): Ditto.
981 (build_atomic_base): Ditto.
982 (build_common_tree_nodes): Ditto.
983 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
984 (expand_one_stack_var_at): Ditto.
985 * coverage.c (build_var): Use SET_DECL_ALIGN.
986 * except.c (init_eh): Ditto.
987 * function.c (assign_parm_setup_block): Ditto.
988 * symtab.c (increase_alignment_1): Ditto.
989 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
990 * tree-vect-stmts.c (ensure_base_align): Ditto.
991 * varasm.c (align_variable): Ditto.
992 (assemble_variable): Ditto.
993 (build_constant_desc): Ditto.
994 (output_constant_def_contents): Ditto.
996 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
997 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
998 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
999 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
1000 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
1002 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
1005 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
1006 replace %vmovsd with "%vmovq".
1007 (vec_concatv2df): Likewise.
1009 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
1011 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
1012 (*vec_extractv2si_0): Ditto.
1013 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
1014 (zero_extended_scalar_load_operand splitters): Ditto.
1015 (vec_extract splitters): Ditto.
1016 (*vec_extractv4si_0_zext): Ditto.
1017 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
1019 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
1020 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
1021 (*sse4_1_extractps): Use lowpart_subreg.
1023 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1025 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
1027 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
1028 Mention Solaris 11 packaging changes.
1029 Update gas and gld requirements.
1030 Remove reference to pre-Solaris 10 bug.
1031 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
1033 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
1036 2016-04-17 Jan Hubicka <jh@suse.cz>
1038 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
1039 max_loop_iterations_int.
1041 2016-04-18 Richard Biener <rguenther@suse.de>
1043 PR tree-optimization/43434
1044 * tree-ssa-structalias.c (struct vls_data): New.
1045 (visit_loadstore): Handle all pointer-based accesses.
1046 (compute_dependence_clique): Compute a bitmap of restrict tags
1047 assigned bases and pass it to visit_loadstore.
1049 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
1052 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
1053 armv8.1-a and armv8.1-a+crc.
1055 2016-04-18 Richard Biener <rguenther@suse.de>
1057 PR tree-optimization/70701
1058 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
1059 references after translating through a memcpy.
1061 2016-04-18 Richard Biener <rguenther@suse.de>
1063 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
1064 (compute_antic): ... here. For partial antic use regular
1065 postorder and scrap iteration.
1066 (compute_partial_antic_aux): Remove unused return value.
1067 (init_pre): Do not allocate postorder.
1068 (fini_pre): Do not free postorder.
1070 2016-04-18 Richard Biener <rguenther@suse.de>
1073 * expmed.c (extract_bit_field_1): Remove broken case
1074 using a wider MODE_INT mode.
1076 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
1078 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
1079 unless compiling with at least GCC-4.8.
1081 2016-04-17 Jan Hubicka <jh@suse.cz>
1084 * graphite.c (graphite_finalize): Update call to
1085 tree_estimate_probability.
1086 * predict.h (tree_estimate_probability): Update prototype.
1088 2016-04-17 Jan Hubicka <jh@suse.cz>
1090 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
1091 (tree_estimate_probability): Likewise.
1092 (pass_profile::execute): Update.
1093 (report_predictor_hitrates): New function.
1094 * profile.c (compute_branch_probabilities): Use it.
1095 * predict.h (report_predictor_hitrates): Declare.
1097 2016-04-17 Jan Hubicka <jh@suse.cz>
1100 * cgraph.h (cgraph_node::set_const_flag,
1101 cgraph_node::set_pure_flag): Update prototype to return bool;
1103 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
1104 of interposable symbol are interposable, too.
1105 (cgraph_set_const_flag_1): Rename to ...
1106 (set_const_flag_1): ... this one; change to self recursive function
1107 instead of call_for_symbol_thunks_and_aliases. Handle correctly
1108 clearnig the flag in all variants and also virtual thunks of const
1109 functions are pure; track if any change was done.
1110 (cgraph_node::set_const_flag): Update.
1111 (struct set_pure_flag_info): New struct.
1112 (cgraph_set_pure_flag_1): Rename to ...
1113 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
1114 rather than pointer encoded flags; track if any changes was done;
1115 handle correctly clearning flag and setting flag of aliases already
1117 (cgraph_node::set_pure_flag): Update.
1118 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
1120 2016-04-17 Tom de Vries <tom@codesourcery.com>
1123 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
1126 2016-04-17 Tom de Vries <tom@codesourcery.com>
1128 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
1129 '{}<> ' as escape-for-record.
1131 2016-04-17 Tom de Vries <tom@codesourcery.com>
1133 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
1136 2016-04-17 Tom de Vries <tom@codesourcery.com>
1139 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
1140 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
1141 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
1142 * passes.c (finish_optimization_passes): Only call
1143 finish_graph_dump_file if dfi->graph_dump_initialized.
1144 (execute_function_dump, pass_init_dump_file): Use
1145 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
1147 2016-04-17 Tom de Vries <tom@codesourcery.com>
1149 PR tree-optimization/70256
1150 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
1151 (debug_varmap): New function.
1153 2016-04-17 Tom de Vries <tom@codesourcery.com>
1156 * passes.c (pass_manager::register_pass): Propagate pflags.
1158 2016-04-17 Tom de Vries <tom@codesourcery.com>
1161 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
1162 * passes.c (pass_manager::pass_manager): Declare and init p_start in
1163 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
1164 check if it's equal to p_start.
1165 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
1167 2016-04-15 Jan Hubicka <jh@suse.cz>
1170 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
1171 function does not bind to current def.
1172 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
1173 handle conservatively calls to functions that does not need to bind
1175 (check_call): Update call of worse_state.
1176 (ignore_edge_for_nothrow): Update.
1177 (ignore_edge_for_pure_const): Likewise.
1178 (propagate_pure_const): Update calls to worse_state.
1179 (skip_function_for_local_pure_const): Reformat comments.
1181 2016-04-15 Jan Hubicka <jh@suse.cz>
1184 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
1185 (cgraph_node::function_symbol): Likewise.
1186 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
1187 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
1188 (symtab_node::ultimate_alias_target): Add REF parameter.
1189 (symtab_node::binds_to_current_def_p): Declare.
1190 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
1191 (cgraph_node::function_symbol): Likewise.
1192 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
1193 (cgraph_node::get_availability): Likewise.
1194 (cgraph_edge::binds_to_current_def_p): New inline function.
1195 (varpool_node::get_availability): Add REF parameter.
1196 (varpool_node::ultimate_alias_target): Likewise.
1197 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
1198 (symtab_node::binds_to_current_def_p): Likewise.
1199 * varpool.c (varpool_node::get_availability): Likewise.
1201 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
1204 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
1205 Fix mode size check.
1207 2016-04-15 Jakub Jelinek <jakub@redhat.com>
1209 * BASE-VER: Set to 7.0.0.
1211 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
1213 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
1215 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1217 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
1218 architecture revisions.
1220 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
1222 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
1223 * config/i386/i386.c (ix86_using_red_zone): No longer static.
1224 * config/i386/i386.md (stack decrement to push peepholes): Guard
1225 with !x86_using_red_zone ().
1227 2016-04-15 Jakub Jelinek <jakub@redhat.com>
1230 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
1231 to dump_generic_node.
1232 (NIY): Pass also flags to do_niy.
1234 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
1236 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
1237 (simd_clone_vector_of_formal_parm_types)
1238 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
1239 (simd_clone_mangle, simd_clone_create)
1240 (simd_clone_adjust_return_type, create_tmp_simd_array)
1241 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
1242 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
1243 (ipa_simd_modify_function_body, simd_clone_linear_addend)
1244 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
1245 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
1246 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
1247 * omp-simd-clone.c: ... this new file.
1248 (simd_clone_vector_of_formal_parm_types): Make it static.
1249 * Makefile.in (OBJS): Add omp-simd-clone.o.
1251 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
1254 * config/i386/sse.md: Use proper memory operand modifiers.
1257 2016-04-15 Richard Biener <rguenther@suse.de>
1258 Alan Modra <amodra@gmail.com>
1260 PR tree-optimization/70130
1261 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
1262 when alignment stays not the same and no not use the realign
1265 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1268 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
1269 direct move handlers for KFmode. Change TFmode handlers test from
1270 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
1272 2016-04-14 Jakub Jelinek <jakub@redhat.com>
1275 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
1276 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
1277 (inlined_polymorphic_ctor_dtor_block_p): Use it.
1278 * tree-ssa-live.c (remove_unused_scope_block_p): When
1279 in_ctor_dtor_block, avoid discarding not just BLOCKs with
1280 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
1281 block_ultimate_origin is FUNCTION_DECL.
1282 (remove_unused_locals): If current_function_decl is
1283 polymorphic_ctor_dtor_p, pass initial true to
1284 remove_unused_scope_block_p' is_ctor_dtor_block.
1286 2016-04-14 Martin Sebor <msebor@redhat.com>
1291 * doc/extend.texi (Variable Length): Revert.
1293 2016-04-14 Marek Polacek <polacek@redhat.com>
1294 Jan Hubicka <hubicka@ucw.cz>
1297 * tree.c (verify_type): Disable the canonical type of main variant
1300 2016-04-14 Jason Merrill <jason@redhat.com>
1302 * cfgexpand.c, expr.c: Revert previous change.
1304 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
1307 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
1308 when building a mem ref for the incoming reduction variable.
1310 2016-04-14 Richard Biener <rguenther@suse.de>
1312 PR tree-optimization/70614
1313 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
1314 loop if the evolution dropped to chrec_dont_know.
1315 (interpret_condition_phi): Likewise.
1317 2016-04-14 Richard Biener <rguenther@suse.de>
1319 PR tree-optimization/70623
1320 * tree-ssa-pre.c (changed_blocks): Make global ...
1321 (compute_antic): ... local here. Move and fix worklist
1322 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
1323 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
1324 worklist handling, dump when ANTIC_IN changed.
1325 (compute_partial_antic_aux): Remove worklist handling.
1326 (init_pre): Do not compute post dominators. Add a comment about
1327 the CFG order chosen.
1328 (fini_pre): Do not free post dominators.
1330 2016-04-13 Martin Sebor <msebor@redhat.com>
1335 * doc/extend.texi (Variable Length): Document C++ specifics.
1337 2016-04-13 Jakub Jelinek <jakub@redhat.com>
1340 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
1341 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
1342 eh edges have been purged.
1345 * tree-sra.c (create_access_replacement,
1346 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
1348 * tree-pretty-print.c (dump_fancy_name): New function.
1349 (dump_decl_name, dump_generic_node): Use it.
1351 2016-04-13 Jason Merrill <jason@redhat.com>
1353 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
1354 * expr.c (expand_expr_real_1): Likewise.
1356 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
1358 * config/i386/i386.md (kunpckhi): Swap operands.
1359 (kunpcksi): Likewise.
1360 (kunpckdi): Likewise.
1361 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
1362 (vec_pack_trunc_<mode>): Likewise.
1364 2016-04-13 Jakub Jelinek <jakub@redhat.com>
1367 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
1370 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
1371 gimplification turns some element into non-constant.
1374 * rtl.h (convert_memory_address_addr_space_1): New prototype.
1375 * explow.c (convert_memory_address_addr_space_1): No longer static,
1376 add NO_EMIT argument and don't call convert_modes if true, pass
1377 it down recursively, remove break after return.
1378 (convert_memory_address_addr_space): Adjust caller.
1379 * simplify-rtx.c (simplify_unary_operation_1): Call
1380 convert_memory_address_addr_space_1 instead of convert_memory_address,
1381 if it returns NULL, don't simplify.
1383 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
1386 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
1388 2016-04-12 Jakub Jelinek <jakub@redhat.com>
1390 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1391 Bump the upper SIMDLEN limits, so that if the return type or
1392 characteristic type if the return type is void can be passed in
1393 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
1396 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1399 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
1400 Do not use "=" constraint on an input constraint.
1401 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
1402 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
1403 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
1404 generates (neg (abs ...)) instead of (abs ...).
1406 2016-04-12 Jakub Jelinek <jakub@redhat.com>
1408 PR rtl-optimization/70596
1409 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
1410 just invalidate LRA data and reset them. Adjust dump wording.
1412 2016-04-12 Martin Liska <mliska@suse.cz>
1415 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
1417 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
1419 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
1420 max_loop_iterations_int.
1421 (tree_unswitch_outer_loop): Likewise.
1422 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
1423 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
1425 2016-04-12 Tom de Vries <tom@codesourcery.com>
1427 PR tree-optimization/68756
1428 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
1429 instead of new_name.
1431 2016-04-12 Jakub Jelinek <jakub@redhat.com>
1433 PR tree-optimization/70602
1434 * tree-sra.c (generate_subtree_copies): Don't write anything into
1435 constant pool decls.
1437 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
1438 regardless whether there are depend clauses or not.
1440 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1443 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
1444 target attribute and pragma from changing the -mfloat128
1445 and -mfloat128-hardware options.
1447 * doc/extend.texi (Additional Floating Types): Document PowerPC
1448 __float128 restrictions.
1450 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
1453 * config/aarch64/driver-aarch64.c
1454 (aarch64_get_extension_string_for_isa_flags): New.
1455 (arch_extension): Rename to...
1456 (aarch64_arch_extension): ...This.
1457 (ext_to_feat_string): Rename to...
1458 (aarch64_extensions): ...This.
1459 (aarch64_core_data): Keep track of architecture extension flags.
1460 (cpu_data): Rename to...
1461 (aarch64_cpu_data): ...This.
1462 (aarch64_arch_driver_info): Keep track of architecture extension
1464 (get_arch_name_from_id): Rename to...
1465 (get_arch_from_id): ...This, change return type.
1466 (host_detect_local_cpu): Update and reformat for renames, handle
1467 extensions through common infrastructure.
1469 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
1472 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
1473 track of a canonical flag name.
1474 (all_extensions): Likewise.
1475 (arch_to_arch_name): Also track extension flags enabled by the arch.
1476 (all_architectures): Likewise.
1477 (aarch64_parse_extension): Move to here.
1478 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
1480 (aarch64_rewrite_selected_cpu): Update for above change.
1481 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
1482 are handled, such that the single explicit value enabled by an
1483 extension is kept seperate from the implicit values it also enables.
1484 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
1486 (aarch64_parse_extension): New.
1487 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
1488 here to config/aarch64/aarch64-protos.h.
1489 (aarch64_parse_extension): Move from here to
1490 common/config/aarch64/aarch64-common.c.
1491 (aarch64_option_print): Update.
1492 (aarch64_declare_function_name): Likewise.
1493 (aarch64_start_file): Likewise.
1494 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
1495 the canonical flag for extensions.
1496 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
1499 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
1501 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
1504 2016-04-09 Tom de Vries <tom@codesourcery.com>
1506 PR tree-optimization/68953
1507 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
1508 first to last subscript.
1510 2016-04-09 Jakub Jelinek <jakub@redhat.com>
1512 PR tree-optimization/70586
1513 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
1516 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
1520 PR tree-optimization/70373
1524 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
1525 clauses for acc parallel reductions as necessary. Error on those
1527 * omp-low.c (scan_sharing_clauses): Don't install variables which
1528 are used in acc parallel reductions.
1529 (lower_rec_input_clauses): Remove dead code.
1530 (lower_oacc_reductions): Add support for reference reductions.
1531 (lower_reduction_clauses): Remove dead code.
1532 (lower_omp_target): Don't remap variables appearing in acc parallel
1534 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
1536 2016-04-08 Jakub Jelinek <jakub@redhat.com>
1539 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
1540 with multiple SSA_NAME defs, force the outputs other than first
1541 to be live before calling live_track_process_def on each output.
1543 PR rtl-optimization/70574
1544 * fwprop.c (forward_propagate_and_simplify): Don't add
1545 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
1546 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
1547 paradoxical subregs within *loc.
1549 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
1551 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
1552 -ftree-parallelize-loops={0,1}.
1553 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
1554 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
1555 * config/ia64/hpux.h (LIB_SPEC): Likewise.
1556 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
1557 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
1559 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
1562 * asan.c (instrument_derefs): If we get unknown location, extract it
1564 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
1566 2016-04-08 Tom de Vries <tom@codesourcery.com>
1568 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
1569 implicit firstprivate clause.
1571 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1574 * config/arm/thumb2.md (tst + branch-> lsls + branch
1575 peephole below *orsi_not_shiftsi_si): Require that condition
1576 register is dead after the peephole.
1577 (second peephole after the above): Likewise.
1579 2016-04-08 Alan Modra <amodra@gmail.com>
1582 * builtins.c (fold_builtin_classify): For IBM extended precision,
1583 look at just the high-order double to test for NaN.
1584 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
1585 test just the high double for Inf but both doubles for subnormal
1588 2016-04-07 Jakub Jelinek <jakub@redhat.com>
1590 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
1591 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
1592 node->simdclone->mask_mode != VOIDmode masks.
1593 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
1594 earlier, use it instead of node->simdclone.
1595 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1596 Set clonei->mask_mode.
1598 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
1601 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
1602 Pass it through to cp_parser_already_scoped_statement.
1603 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
1604 it through to cp_parser_statement.
1605 (cp_parser_statement): Pass IF_P through to
1606 cp_parser_iteration_statement.
1607 (cp_parser_pragma): Adjust call to
1608 cp_parser_iteration_statement.
1610 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
1613 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
1614 resolve a future -Wparentheses warning.
1615 * omp-low.c (scan_sharing_clauses): Likewise.
1616 * tree-parloops.c (eliminate_local_variables): Likewise.
1618 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
1620 PR rtl-optimization/70398
1621 * lra-constraints.c (process_address_1): Check zero scale and code
1622 for reloading with zero scale.
1624 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
1626 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
1627 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
1629 2016-04-06 Jakub Jelinek <jakub@redhat.com>
1631 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1632 Add support for AVX512F clones, include them by default for
1633 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
1634 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
1638 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
1639 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
1640 firstprivate clauses.
1641 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
1642 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
1643 (lower_omp_target): Set TREE_NO_WARNING for
1644 non-addressable possibly uninitialized vars which are copied into
1645 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
1647 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
1649 * config/pa/predicates.md (integer_store_memory_operand): Accept
1650 REG+D operands with a large offset when reload_in_progress is true.
1651 (floating_point_store_memory_operand): Likewise.
1653 2016-04-05 Jakub Jelinek <jakub@redhat.com>
1656 * match.pd (nested int casts): Limit to GIMPLE.
1658 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
1661 * ipa-devirt.c (maybe_record_node): Fix comment; use
1662 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
1664 2016-04-05 Jakub Jelinek <jakub@redhat.com>
1666 PR rtl-optimization/70542
1667 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
1668 if there are any uses other than insn or debug insns.
1670 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
1671 Jakub Jelinek <jakub@redhat.com>
1673 PR tree-optimization/70509
1674 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
1675 Shift HOST_WIDE_INT_1U instead of 1.
1677 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
1679 PR tree-optimization/70509
1680 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
1681 of the vector base type for index.
1683 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
1686 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
1688 2016-04-05 Richard Biener <rguenther@suse.de>
1690 PR tree-optimization/70526
1691 * tree-sra.c (build_ref_for_offset): Use prev_base to
1692 extract the alias pointer type.
1694 2016-04-05 Richard Biener <rguenther@suse.de>
1696 * dse.c (struct store_info): Remove alias_set member.
1697 (struct read_info_type): Likewise.
1698 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
1699 spill_deleted, clear_alias_set_lookup): Remove.
1700 (get_group_info): Remove dead base == NULL_RTX case.
1701 (dse_step0): Remove initialization of removed variables.
1702 (delete_dead_store_insn): Reomve alias set dumping.
1703 (free_read_records): Remove alias_set handling.
1704 (canon_address): Remove alias_set_out parameter.
1705 (record_store): Remove spill_alias_set, it's always zero.
1706 (check_mem_read_rtx): Likewise.
1707 (dse_step2): Rename from ...
1708 (dse_step2_nospill): ... this. Adjust.
1709 (scan_stores): Rename from ...
1710 (scan_stores_nospill): ... this.
1711 (scan_reads): Rename from ...
1712 (scan_reads_nospill): ... this.
1713 (scan_stores_spill, scan_reads_spill): Remove.
1714 (dse_step3_scan): Remove for_spills argument which is always false.
1715 (dse_step3): Likewise.
1716 (dse_step5): Rename from ...
1717 (dse_step5_nospill): ... this. Remove alias_set handling.
1718 (rest_of_handle_dse): Adjust.
1720 2016-04-05 Jakub Jelinek <jakub@redhat.com>
1723 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
1724 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
1725 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
1726 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
1728 2016-04-05 Richard Biener <rguenther@suse.de>
1731 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
1732 non-register type temporaries into SSA.
1734 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
1737 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
1738 calls when sanitizing.
1739 (possible_polymorphic_call_target_p): Fix formatting.
1741 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1742 Jakub Jelinek <jakub@redhat.com>
1745 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
1746 to ensure a call statement is compatible with a built-in's
1748 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
1751 2016-04-04 Richard Biener <rguenther@suse.de>
1753 PR rtl-optimization/70484
1754 * rtl.h (canon_output_dependence): Declare.
1755 * alias.c (canon_output_dependence): New function.
1756 * dse.c (record_store): Use canon_output_dependence rather
1757 than canon_true_dependence.
1759 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
1762 * cgraph.h (symtab_node::copy_visibility_from): New function.
1763 * symtab.c (symtab_node::copy_visibility_from): New function.
1764 * ipa-visibility.c (optimize_weakref): New function.
1765 (function_and_variable_visibility): Use it.
1767 2016-04-04 Martin Liska <mliska@suse.cz>
1770 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
1771 value that is really in range handled by SBR instruction.
1772 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
1773 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
1774 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
1776 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
1780 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
1781 set, but not for SP_REG operands.
1783 2016-04-02 Martin Sebor <msebor@redhat.com>
1786 * fold-const.c (maybe_nonzero_address): New function.
1787 (fold_comparison): Call it. Fold equality and relational
1788 expressions involving null pointers.
1789 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
1791 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
1793 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
1794 the "Y" constraint (scalar FP 0.0 immediate).
1796 * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
1797 Add the "const_double" to the list of operand constraints.
1799 2016-04-01 Jakub Jelinek <jakub@redhat.com>
1801 PR rtl-optimization/70467
1802 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
1803 If low word of the last operand is 0, just emit addition/subtraction
1806 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1809 * config/s390/s390.c (s390_expand_insv): Check for everything
1810 constant instead of just VOIDmode stuff.
1812 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1815 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
1817 2016-04-01 Nathan Sidwell <nathan@acm.org>
1819 * tree.def (TRY_CATCH_EXPR): Correct documentation.
1821 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
1823 PR rtl-optimization/70461
1824 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
1827 2016-03-31 Martin Liska <mliska@suse.cz>
1830 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
1831 a tree value or an immediate integer value to a buffer
1832 that is eventually copied to a BRIG section.
1833 (emit_immediate_operand): Call the function here.
1834 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
1835 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
1836 of class' fields that are removed.
1837 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
1838 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
1839 m_brig_repr_size fields.
1841 2016-03-31 Martin Liska <mliska@suse.cz>
1844 * hsa-gen.c (hsa_function_representation::update_dominance): New
1846 (convert_addr_to_flat_segment): Likewise.
1847 (gen_hsa_memory_set): New alignment argument.
1848 (gen_hsa_ctor_assignment): Likewise.
1849 (gen_hsa_insns_for_single_assignment): Provide alignment
1850 to gen_hsa_ctor_assignment.
1851 (gen_hsa_insns_for_direct_call): Add new argument.
1852 (expand_lhs_of_string_op): New function.
1853 (expand_string_operation_builtin): Likewise.
1854 (expand_memory_copy): New function.
1855 (expand_memory_set): New function.
1856 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
1857 (convert_switch_statements): Change signature.
1858 (generate_hsa): Use a return value of the function.
1859 (pass_gen_hsail::execute): Do not call
1860 convert_switch_statements here.
1861 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
1862 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
1863 (hsa_function_representation::update_dominance): New function.
1865 2016-03-31 Martin Liska <mliska@suse.cz>
1868 * hsa-brig.c (emit_directive_variable): Emit alignment
1869 according to hsa_symbol::m_align.
1870 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
1871 (dump_hsa_symbol): Dump alignment of HSA symbols.
1872 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
1873 (gen_hsa_addr_with_align): New function.
1874 (hsa_bitmemref_alignment): Use newly added function.
1875 (gen_hsa_insns_for_load): Likewise.
1876 (gen_hsa_insns_for_store): Likewise.
1877 (gen_hsa_memory_copy): New argument added.
1878 (gen_hsa_insns_for_single_assignment): Respect
1879 alignment for assignments processed via gen_hsa_memory_copy.
1880 (gen_hsa_insns_for_direct_call): Likewise.
1881 (gen_hsa_insns_for_return): Likewise.
1882 (gen_function_def_parameters): Set default alignment.
1883 * hsa.c (hsa_object_alignment): New function.
1884 (hsa_byte_alignment): Pasted function.
1885 * hsa.h (hsa_symbol::m_align): New field.
1887 2016-03-31 Bin Cheng <bin.cheng@arm.com>
1889 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
1890 scratch field for goto case.
1892 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
1894 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
1896 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
1899 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
1900 (scalar_chain::convert_insn): Call convert_op for reg
1901 moves to handle undefined registers.
1903 2016-03-31 Nathan Sidwell <nathan@acm.org>
1906 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
1907 Assert we don't want to move backwards.
1909 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
1912 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
1914 2016-03-31 Jakub Jelinek <jakub@redhat.com>
1916 PR rtl-optimization/70460
1917 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
1918 with operand from REG_LABEL_OPERAND, instead substitute
1919 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
1920 Don't do anything for REG_NON_LOCAL_GOTO jumps.
1922 2016-03-31 Martin Liska <mliska@suse.cz>
1924 * passes.c (execute_one_pass): Do not call
1925 todo_after for a discarded function.
1927 2016-03-31 Bin Cheng <bin.cheng@arm.com>
1929 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
1930 (no_cost, infinite_cost): Initialize the new field.
1931 (get_computation_cost_at): Record setup cost.
1932 (determine_use_iv_cost_address): Skip cost computation for sub
1933 uses if we can estimate it without losing accuracy.
1935 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
1937 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
1939 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
1940 max_loop_iterations_int.
1941 (tree_unswitch_outer_loop): Likewise.
1942 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
1943 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
1945 2016-03-30 Richard Biener <rguenther@suse.de>
1948 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
1950 2016-03-30 Jakub Jelinek <jakub@redhat.com>
1953 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
1954 in gen_blendm expander.
1956 2016-03-30 Nick Clifton <nickc@redhat.com>
1959 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
1960 case where we are already provided with an SImode SUBREG.
1962 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
1965 * config/i386/i386.c (ix86_expand_epilogue): Properly check
1966 conflict between DRAP register and __builtin_eh_return.
1968 2016-03-30 Michael Matz <matz@suse.de>
1969 Richard Biener <rguenther@suse.de>
1972 * ipa-polymorphic-call.c (struct type_change_info): Change
1973 speculative to an unsigned allowing to limit the work we do.
1974 (csftc_abort_walking_p): New inline function..
1975 (check_stmt_for_type_change): Limit the number of may-defs
1976 skipped for speculative devirtualization to
1977 max-speculative-devirt-maydefs.
1978 * params.def (max-speculative-devirt-maydefs): New param.
1979 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
1981 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
1984 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
1987 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
1989 PR tree-optimization/59124
1990 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
1991 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
1993 2016-03-29 Jeff Law <law@redhat.com>
1995 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
1997 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
1999 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
2002 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
2004 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
2005 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
2006 gcrt0.o if linking dynamically.
2008 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
2011 * ipa-devirt.c (methods_equal_p): New function.
2012 (compare_virtual_tables): Use it.
2013 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
2014 * cgraphclones.c (clone_function_name_1): Use
2015 symbol_table::symbol_suffix_separator.
2016 * coverage.c (build_var): Likewise.
2017 * symtab.c (symbol_table::symbol_suffix_separator): New.
2019 2016-03-29 Jakub Jelinek <jakub@redhat.com>
2021 PR rtl-optimization/70429
2022 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
2023 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
2024 mode != result_mode.
2027 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
2029 PR tree-optimization/70405
2030 * ssa-iterators.h (num_imm_uses): Add missing braces.
2032 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
2034 PR rtl-optimization/68695
2035 * ira-color.c (allocno_copy_cost_saving): New.
2036 (improve_allocation): Use it.
2038 2016-03-29 Richard Henderson <rth@redhat.com>
2041 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
2043 2016-03-29 Richard Biener <rguenther@suse.de>
2046 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
2047 use alignment returned by get_pointer_alignment_1 if it is
2048 bigger than BITS_PER_UNIT.
2049 * builtins.c (get_pointer_alignment_1): Do not return true
2050 for alignment extracted from SSA info.
2052 2016-03-28 James Bowman <james.bowman@ftdichip.com>
2054 * config/ft32/ft32.opt (mnodiv): New.
2055 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
2056 * doc/invoke.texi (FT32 Options -mnodiv): New.
2058 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
2061 * config/i386/i386.md (define_split, andn): Fix modes.
2063 2016-03-26 Richard Biener <rguenther@suse.de>
2064 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2067 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
2069 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
2070 as 2nd argument to cl_optimization_restore().
2072 2016-03-25 Richard Henderson <rth@redhat.com>
2075 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
2076 * config/aarch64/aarch64-protos.h: Declare it.
2077 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
2079 2016-03-25 Alan Modra <amodra@gmail.com>
2082 * config/rs6000/constraints.md (j): Simplify.
2083 * config/rs6000/predicates.md (easy_fp_constant): Exclude
2085 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
2086 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
2087 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
2088 in all constraint alternatives.
2089 (movtd_64bit_nodm): Delete "j" constraint alternative.
2091 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
2093 * tree-ssa-propagate.c: Enhance docs for
2094 SSA_PROP_NOT_INTERESTING.
2096 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
2098 * doc/extend.texi: Fix typo in documentation to pure attribute.
2100 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
2103 * config/pa/pa.md (bswapdi2): Use a scratch register.
2105 2016-03-24 Richard Henderson <rth@redhat.com>
2108 * fold-const.c (extract_muldiv_1): Correct test for multiplication
2111 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
2113 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
2114 using ix86_expand_binary_operator instead of gen_andsi3.
2116 2016-03-24 Richard Biener <rguenther@suse.de>
2118 PR tree-optimization/70396
2119 * tree-vect-stmts.c (vectorizable_comparison): Use
2120 get_vectype_for_scalar_type.
2122 2016-03-24 Richard Biener <rguenther@suse.de>
2125 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
2126 with register bases.
2128 2016-03-24 Richard Biener <rguenther@suse.de>
2130 PR tree-optimization/70372
2131 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
2132 build_all_ones_cst to also handle vector types correctly.
2134 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
2137 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
2140 2016-03-23 Marek Polacek <polacek@redhat.com>
2143 * doc/invoke.texi: Document -Wignored-attributes.
2145 2016-03-23 Bin Cheng <bin.cheng@arm.com>
2147 PR tree-optimization/69042
2148 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
2149 parameter from 30 to 40.
2151 2016-03-23 Bin Cheng <bin.cheng@arm.com>
2153 PR tree-optimization/69042
2154 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
2155 for use with constant offset stripped in base.
2157 2016-03-23 Richard Biener <rguenther@suse.de>
2160 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
2161 mode compatibility check.
2162 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
2164 2016-03-23 Jeff Law <law@redhat.com>
2166 PR tree-optimization/64058
2167 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
2169 (struct ssa_conflicts): Move up earlier in the file.
2170 (conflicts_, var_map_): New static variables.
2171 (initialize_conflict_count): New function to initialize the
2172 CONFLICT_COUNT field for each conflict pair.
2173 (compare_pairs): Lazily initialize the conflict count and use it
2174 as the first tie-breaker.
2175 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
2176 and wipe conflicts_ and map_ around the call to qsort. Remove
2177 special case for 2 coalesce pairs.
2178 * bitmap.c (bitmap_count_unique_bits): New function.
2179 (bitmap_count_bits_in_word): New function, extracted from
2181 (bitmap_count_bits): Use bitmap_count_bits_in_word.
2182 * bitmap.h (bitmap_count_unique_bits): Declare it.
2184 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2187 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
2188 transparent alias chain for decl assembler name.
2189 * config/sol2.c (solaris_assemble_visibility): Likewise.
2191 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2193 * config/arm/arm1020e.md (1020call_op): Reduce reservation
2195 (v10_fdivs): Likewise.
2196 (v10_fdivd): Likewise.
2198 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2201 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
2202 to not call fclose twice on file.
2204 2016-03-23 Jakub Jelinek <jakub@redhat.com>
2206 PR tree-optimization/70354
2207 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
2208 oprnd0 is wider than oprnd1 and there is a cast from the wider
2209 type to oprnd1, mask it with the mask of the narrower type.
2212 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
2213 Optimize TARGET_STV splitters, if high or low word of last argument
2216 2016-03-22 Jeff Law <law@redhat.com>
2219 tree-ssa-threadbackward.c
2220 (fsm_find_control_statement_thread_paths): Correctly distinguish
2221 between old style jump threads vs FSM jump threads.
2223 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
2226 * config/i386/i386.c (scalar_chain::convert_op): Support
2227 uninitialized register usage case.
2229 2016-03-22 Richard Biener <rguenther@suse.de>
2232 * genmatch.c (gen_transform): Adjust last parameter to a three-state
2234 (capture::gen_transform): ... to change behavior when substituting
2235 a condition into cond or not-cond expr context.
2236 (dt_simplify::gen_1): Adjust.
2237 * gimple-match-head.c: Include gimplify.h for unshare_expr.
2238 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
2239 last change and instead change to
2240 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
2241 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
2243 2016-03-22 Anthony Green <green@moxielogic.com>
2245 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
2246 issue for moxiebox targets.
2247 (CC1PLUS_SPEC): Ditto.
2249 2016-03-22 Richard Biener <rguenther@suse.de>
2252 * fold-const.c (extract_muldiv_1): Properly perform multiplication
2255 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
2257 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
2259 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
2262 * config/i386/i386.c (def_builtin): Handle
2263 OPTION_MASK_ISA_AVX512VL to be and-ed with other
2265 (const struct builtin_description bdesc_special_args[]):
2266 Remove duplicate ISA bits.
2268 2016-03-22 Jakub Jelinek <jakub@redhat.com>
2271 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
2272 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
2273 in a way that works also for AVX512BW.
2276 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
2277 instead of source if operands[1] is xmm16 and above and
2278 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
2279 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
2282 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
2283 on assign if (*from_p) is a comparison, set it to
2284 TREE_NO_WARNING (*from_p).
2286 2016-03-21 Jakub Jelinek <jakub@redhat.com>
2289 * lra.c (restore_scratches): Ignore deleted insns.
2291 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
2292 Jakub Jelinek <jakub@redhat.com>
2294 PR tree-optimization/70317
2295 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
2298 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
2301 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
2302 of ix86_expand_move.
2304 (movti): Use general_operand for operand 1 predicate.
2306 2016-03-21 Martin Liska <mliska@suse.cz>
2308 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
2310 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
2312 2016-03-21 Martin Liska <mliska@suse.cz>
2315 * ipa-icf.c (sem_function::parse): Skip static
2316 constructors and destructors.
2318 2016-03-21 Jakub Jelinek <jakub@redhat.com>
2321 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
2322 function-like macro, peek following token(s) if it is followed
2323 by CPP_OPEN_PAREN token with optional padding in between, and
2324 if not, don't treat it like a macro.
2326 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
2327 Alexander Monakov <amonakov@ispras.ru>
2329 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
2330 for the stabs debug format.
2332 2016-03-21 Richard Biener <rguenther@suse.de>
2334 PR tree-optimization/70310
2335 * tree-vect-generic.c (expand_vector_condition): Fold the built
2338 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
2341 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
2342 Block third alternative for AVX-512VL target,
2344 2016-03-21 Martin Liska <mliska@suse.cz>
2347 * hsa-brig.c (emit_function_directives): Mark unemitted
2348 global variables for emission.
2349 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
2350 (get_symbol_for_decl): Likewise.
2351 * hsa.h (struct hsa_symbol): New flag.
2353 2016-03-21 Richard Biener <rguenther@suse.de>
2355 PR tree-optimization/70288
2356 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
2357 we do not estimate unsimplified all-constant conditionals or
2358 switches as optimized away.
2360 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
2362 PR rtl-optimization/69102
2363 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
2364 when we have a readonly dependency context.
2366 2016-03-18 Jeff Law <law@redhat.com>
2368 PR rtl-optimization/70263
2369 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
2370 (update_equiv_regs): When trying to move a store to after the insn
2371 that sets the source of the store, make sure the store occurs after
2372 the insn that sets the source of the store. When successful note
2373 the REG_EQUIV note created in the dump file.
2375 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
2376 Bernd Schmidt <bschmidt@redhat.com>
2378 * doc/extend.texi: Document more potential problems with basic asms.
2380 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
2382 PR rtl-optimization/70278
2383 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
2386 2016-03-18 Jason Merrill <jason@redhat.com>
2388 * calls.c (load_register_parameters): Fix zero size sibcall logic.
2390 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
2392 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
2393 values to 128b regs.
2395 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
2397 PR tree-optimization/70252
2398 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
2399 boolean vector has a proper number of elements.
2400 (supportable_narrowing_operation): Likewise.
2402 2016-03-18 Tom de Vries <tom@codesourcery.com>
2405 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
2407 2016-03-18 Jakub Jelinek <jakub@redhat.com>
2409 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
2410 instead of replace_rtx for DEBUG_INSNs.
2412 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2414 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
2415 load type reservations.
2417 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
2420 * config/pa/constraints.md: Revert 2015-02-13 change. Use
2421 define_constraint for "Q" and "T" constraints.
2423 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
2425 Tweak the pipeline model for Exynos M1
2427 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
2430 2016-03-17 David Malcolm <dmalcolm@redhat.com>
2433 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
2434 where one or both locations aren't within a line_map.
2436 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
2439 * opts.c (finish_options): Don't set flag_pie to the default if
2440 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
2443 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
2445 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
2446 true as ALL_REGS argument to replace_rtx.
2448 2016-03-17 Richard Biener <rguenther@suse.de>
2451 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
2454 2016-03-17 Jakub Jelinek <jakub@redhat.com>
2457 * rtl.h (replace_rtx): Add ALL_REGS argument.
2458 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
2459 equality and assert mode is the same, instead of just rtx pointer
2461 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
2462 true as ALL_REGS argument to replace_rtx.
2464 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
2466 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
2467 for boolean vector with vector mode only.
2468 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
2470 2016-03-17 Nick Clifton <nickc@redhat.com>
2473 * config/rx/rx.c (rx_print_integer): Print negative constants in
2476 2016-03-17 Jakub Jelinek <jakub@redhat.com>
2479 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
2481 2016-03-16 Richard Henderson <rth@redhat.com>
2482 Richard Biener <rguenth@suse.de>
2487 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
2488 first operand as is_gimple_condexpr.
2493 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
2494 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
2495 Do not gimplify the result.
2496 (do_unop): Adjust call to tree_vec_extract.
2497 (do_binop): Likewise.
2498 (do_compare): Likewise.
2499 (do_plus_minus): Likewise.
2500 (do_negate): Likewise.
2501 (expand_vector_condition): Likewise.
2502 (do_cond): Likewise.
2504 2016-03-16 Richard Henderson <rth@redhat.com>
2507 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
2508 (aarch64_classify_address): Use it.
2509 (aarch64_legitimize_address): Force all subexpressions of PLUS
2510 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
2512 2016-03-16 Jakub Jelinek <jakub@redhat.com>
2513 Richard Biener <rguenth@suse.de>
2516 * rtlanal.c (replace_rtx): For REG, if from is a REG,
2517 return to even if only REGNO is equal, and assert
2520 2016-03-11 Jeff Law <law@redhat.com>
2522 PR rtl-optimization/70224
2523 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
2525 2016-03-16 Richard Henderson <rth@redhat.com>
2528 * function.h (struct function): Add has_forced_label_in_static.
2529 * gimplify.c (force_labels_r): Set it.
2530 * lto-streamer-in.c (input_struct_function_base): Read it.
2531 * lto-streamer-out.c (output_struct_function_base): Write it.
2532 * tree-inline.c (has_label_address_in_static_1): Remove.
2533 (copy_forbidden): Remove fndecl parameter; test
2534 has_forced_label_in_static.
2535 (inline_forbidden_p): Update call to copy_forbidden.
2536 (tree_versionable_function_p): Likewise.
2537 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
2538 (chkp_versioning): Likewise.
2539 * tree-inline.h (copy_forbidden): Update decl.
2541 2016-03-16 Marek Polacek <polacek@redhat.com>
2544 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
2545 function being thunked if the result type doesn't have fixed size.
2546 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
2547 doesn't have fixed size.
2549 2016-03-16 Bin Cheng <bin.cheng@arm.com>
2551 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
2552 reporting malformed loop nest.
2554 2016-03-16 Tom de Vries <tom@codesourcery.com>
2557 * ipa-devirt.c (possible_polymorphic_call_targets): Move
2558 nodes.length () == 1 test to before first nodes[0] access.
2560 2016-03-16 Tom de Vries <tom@codesourcery.com>
2562 PR tree-optimization/68715
2563 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
2566 2016-03-16 Tom de Vries <tom@codesourcery.com>
2568 PR tree-optimization/68809
2569 * graphite-scop-detection.c (same_close_phi_node): Test if result types
2572 2016-03-16 Carlos O'Donell <carlos@redhat.com>
2573 Sandra Loosemore <sandra@codesourcery.com>
2575 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
2576 on leaf attribute. Mention ELF interposition problems.
2578 2016-03-16 Alan Modra <amodra@gmail.com>
2580 PR rtl-optimization/69195
2581 PR rtl-optimization/47992
2582 * ira.c (indirect_jump_optimize): Ignore artificial defs.
2585 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
2588 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
2590 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2592 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
2594 2016-03-15 Jakub Jelinek <jakub@redhat.com>
2596 PR rtl-optimization/70222
2597 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
2598 optimization if mode is different from result_mode, queue up masking
2599 of the result in outer_op. Formatting fix.
2602 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
2605 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
2607 PR rtl-optimization/69032
2608 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
2609 looping backwards over basic block insns.
2611 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
2614 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
2615 to non-speculative when propagating trap bits.
2617 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
2619 PR rtl-optimization/63384
2620 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
2623 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
2626 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
2627 factored out from ...
2628 (sched_analyze_insn): ... here.
2629 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
2630 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
2631 get_implicit_reg_pending_clobbers in it.
2632 (setup_id_reg_sets): Use setup_id_implicit_regs.
2633 (deps_init_id): Ditto.
2635 2016-03-15 Tom de Vries <tom@codesourcery.com>
2638 * cgraph.c (cgraph_node::get_body): Save, reset and restore
2640 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
2641 execute_function_dump.
2642 (execute_one_pass): Don't dump function if it will be dumped after ipa
2645 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
2647 * genrecog.c (match_pattern_2): If pred is NULL don't call
2648 safe_predicate_mode on it.
2650 2016-03-14 Jakub Jelinek <jakub@redhat.com>
2653 * lra-constraints.c (delete_move_and_clobber): Change assertion
2654 to also allow dregno == 0.
2656 2016-03-14 Richard Henderson <rth@redhat.com>
2659 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
2660 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
2661 (reassociate_bb): Use optimize_vec_cond_expr; avoid
2662 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
2665 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
2668 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
2670 (lra_create_live_ranges_1): initialize hard register biggest_mode to
2672 * lra-constraints.c (split_reg): For hard regs, try to find the
2673 biggest single-register mode used in the function.
2675 2016-03-14 Richard Biener <rguenther@suse.de>
2677 PR tree-optimization/56365
2678 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
2679 constants to compare against.
2681 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
2684 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
2685 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
2686 (define_split for the GPR case): Use int_reg_operand instead of
2687 gpc_reg_operand for the output.
2689 2016-03-14 Tom de Vries <tom@codesourcery.com>
2691 PR tree-optimization/70045
2692 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
2693 create_empty_if_region_on_edge argument.
2695 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
2697 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
2698 (STACK_CHECK_PROTECT): Likewise.
2699 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
2700 (STACK_CHECK_PROTECT): Likewise.
2701 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
2702 (STACK_CHECK_PROTECT): Likewise.
2703 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
2704 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2705 (STACK_CHECK_PROTECT): Likewise.
2707 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
2709 PR rtl-optimization/69307
2710 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
2711 registers in modes that span more than one register.
2713 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
2716 * lra-constraints.c (delete_move_and_clobber): New.
2717 (remove_inheritance_pseudos): Use it.
2719 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
2722 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
2723 the libcall is LCT_THROW.
2724 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
2725 for the checking routine.
2727 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2730 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
2731 optimization if we have direct move.
2732 (roundu32<mode>2_fprs): Likewise.
2734 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
2737 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
2739 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
2740 Arguments swapped. All callers changed. Take reg_renumber into
2741 account, and Calculate and compare register ranges for hard regs.
2743 2016-03-11 Jeff Law <law@redhat.com>
2745 PR tree-optimization/70190
2746 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2747 Handle cases where we can not extract the taken edge, even though we
2748 found a constant value.
2750 PR tree-optimization/64058
2751 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
2752 (num_coalesce_pairs): Move up earlier in file.
2753 (find_coalesce_pair): Initialize the INDEX field for each pair
2755 (compare_pairs): No longer sort on the elements in each pair.
2756 Instead break ties with the index of the coalesce pair.
2758 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2761 * config/aarch64/aarch64-protos.h
2762 (aarch64_save_restore_target_globals): New prototype.
2763 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
2764 Call the above when popping pragma.
2765 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
2767 (aarch64_set_current_function): Rewrite using the above.
2769 2016-03-11 Jakub Jelinek <jakub@redhat.com>
2771 PR tree-optimization/70177
2772 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
2773 (extract_ops_from_tree): ... this. In the 2 argument
2774 overload remove _1 suffix.
2775 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
2776 (extract_ops_from_tree): ... this.
2777 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
2779 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
2780 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
2781 extract_ops_from_tree instead of 2 operand one.
2783 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
2785 PR tree-optimization/70013
2786 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
2787 for constant-pool entries.
2789 2016-03-11 Jakub Jelinek <jakub@redhat.com>
2791 PR rtl-optimization/70174
2792 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
2793 followed by gen_lowpart on force_reg instead of just gen_lowpart.
2795 PR tree-optimization/70169
2796 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
2797 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
2800 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
2801 Jakub Jelinek <jakub@redhat.com>
2804 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
2805 of uninitialized values.
2807 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2809 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
2811 ("*trunctddd2"): New pattern definition.
2812 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
2815 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2817 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
2818 definitions for BFP and DFP rounding modes.
2819 ("fixuns_truncdddi2", "fixuns_trunctddi2")
2820 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
2821 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
2822 ("fix_trunctf<mode>2"): Use the new constants instead of magic
2825 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2827 * config/s390/constraints.md: Adjust comment.
2828 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
2829 s390_decompose_addrstyle_without_index.
2830 * config/s390/predicates.md (shift_count_or_setmem_operand):
2831 Rename to setmem_operand.
2832 * config/s390/s390-protos.h
2833 (s390_decompose_shift_count): Rename to
2834 s390_decompose_addrstyle_without_index.
2835 * config/s390/s390.c (s390_decompose_shift_count)
2836 (s390_mem_constraint, print_shift_count_operand)
2837 (print_operand_address, print_operand): Rename
2838 s390_decompose_shift_count to
2839 s390_decompose_addrstyle_without_index and rename
2840 print_shift_count_operand to print_addrstyle_operand troughout the
2842 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
2843 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
2844 Rename shift_count_or_setmem_operand to setmem_operand.
2845 * config/s390/vx-builtins.md ("vec_insert<mode>")
2846 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
2849 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2852 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
2853 Handle overlapping retval and newval.
2855 2016-03-10 Nick Clifton <nickc@redhat.com>
2858 * config/aarch64/aarch64.c
2859 (aarch64_override_options_after_change_1): When forcing
2860 flag_omit_frame_pointer to be true, use a special value that can
2861 be detected if this function is called again, thus preventing
2862 flag_omit_leaf_frame_pointer from being forced to be false.
2864 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2866 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
2867 Set x_flag_omit_leaf_frame_pointer when handling
2868 -momit-leaf-frame-pointer.
2870 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
2873 * cgraph.c (cgraph_node::dump): Dump split_part and
2874 indirect_call_target.
2875 * cgraph.h (cgraph_node): Add indirect_call_target flag.
2876 * ipa.c (has_addr_references_p): Cleanup.
2877 (is_indirect_call_target_p): New.
2878 (walk_polymorphic_call_targets): Do not mark virtuals that may be
2879 called indirectly as local.
2880 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
2882 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
2885 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
2886 on cxa_pure_virtual.
2888 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
2891 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
2893 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
2896 * tree.c (need_assembler_name_p): Only record main variant type names.
2898 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
2901 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
2902 Always define to 0 or 1.
2903 (TARGET_FIX_ERR_A53_843419): New macro.
2904 * config/aarch64/aarch64-elf-raw.h
2905 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
2906 * config/aarch64/aarch64-linux.h: Likewise.
2907 * config/aarch64/aarch64.c
2908 (aarch64_override_options_after_change_1): Do not default
2909 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
2911 (aarch64_attributes): Handle fix-cortex-a53-843419.
2912 (aarch64_can_inline_p): Likewise.
2913 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
2915 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
2916 Jakub Jelinek <jakub@redhat.com>
2918 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
2919 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
2920 DECL_COMMONS if flag_unconstrained_commons is set.
2921 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2922 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
2923 (funconstrained-commons): Document.
2925 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
2927 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
2928 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
2930 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
2932 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
2933 has a proper number of elements.
2935 2016-03-10 Alan Modra <amodra@gmail.com>
2937 PR rtl-optimization/69195
2938 PR rtl-optimization/47992
2939 * ira.c (recorded_label_ref): Delete.
2940 (update_equiv_regs): Return void.
2941 (indirect_jump_optimize): New function.
2942 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
2943 before regstat_compute_ri. Don't rebuild_jump_labels here.
2944 Delete update_regstat.
2946 2016-03-10 Richard Biener <rguenther@suse.de>
2948 PR tree-optimization/70128
2949 * tree-ssa-structalias.c (set_uids_in_ptset): Set
2950 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
2952 2016-03-09 Jakub Jelinek <jakub@redhat.com>
2954 PR tree-optimization/70152
2955 * tree-sra.c (replace_removed_params_ssa_names): Copy over
2956 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
2959 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
2960 instead of gen_sse2_loadlpd.
2961 * config/i386/sse.md (*vec_concatv2df): Rename to...
2962 (vec_concatv2df): ... this.
2964 PR tree-optimization/70127
2965 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
2967 2016-03-09 David Malcolm <dmalcolm@redhat.com>
2971 * diagnostic-show-locus.c (compatible_locations_p): New function.
2972 (layout::layout): Sanitize ranges using compatible_locations_p.
2974 2016-03-09 David Malcolm <dmalcolm@redhat.com>
2978 * diagnostic-show-locus.c (layout_range::layout_range): Replace
2979 location_range param with three const expanded_locations * and a
2981 (layout::layout): Replace call to
2982 rich_location::lazily_expand_location with get_expanded_location.
2983 Extract the range and perform location expansion here, passing
2984 the results to the layout_range ctor.
2985 * diagnostic.c (source_range::debug): Delete.
2986 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
2987 of rich_location::get_expanded_location.
2988 * gcc-rich-location.c (get_range_for_expr): Delete.
2989 (gcc_rich_location::add_expr): Reimplement to avoid the
2990 rich_location::add_range overload that took a location_range,
2991 passing a location_t instead.
2993 2016-03-09 Richard Biener <rguenther@suse.de>
2994 Jakub Jelinek <jakub@redhat.com>
2996 PR tree-optimization/70138
2997 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
2998 Also skip vect_double_reduction_def.
3000 2016-03-09 Jakub Jelinek <jakub@redhat.com>
3003 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
3004 if the operand is "m".
3006 2016-03-09 Nathan Sidwell <nathan@acm.org>
3008 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
3010 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3012 * config/i386/i386.c (processor_target_table): Fix cost table
3013 intialization order for znver1.
3015 2016-03-08 Jakub Jelinek <jakub@redhat.com>
3017 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
3018 - becuase -> because.
3019 * ipa-reference.c (ignore_module_statics): Likewise.
3020 * cgraph.c (cgraph_node::get_body): Likewise.
3021 * ipa-inline.c (early_inliner): Likewise.
3022 * ipa-devirt.c (types_same_for_odr): Likewise.
3023 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
3024 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
3026 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3028 * tree-ssa-math-opts.c: Fix typo in comment.
3030 2016-03-08 Jakub Jelinek <jakub@redhat.com>
3033 * config/i386/i386.c (scalar_chain::make_vector_copies,
3034 scalar_chain::convert_reg): Call end_sequence in between
3035 get_insns and emit_conversion_insns rather than after both
3038 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
3041 * config/i386/i386.h (machine_function): Add
3042 pc_thunk_call_expanded flag.
3043 (ix86_pc_thunk_call_expanded): New define.
3044 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
3045 (*set_got): Rename insn pattern from set_got.
3046 (*set_got_labelled): Rename inst pattern from set_got_labelled.
3047 * config/i386/i386.c (ix86_compute_frame_layout): Use
3048 ix86_pc_thunk_call_expanded to prevent red-zone.
3050 2016-03-07 Martin Jambor <mjambor@suse.cz>
3052 * hsa.h (hsa_get_ctor_statements): Declare.
3053 (hsa_get_dtor_statements): Likewise.
3054 (hsa_get_kernel_dispatch_type): Likewise.
3055 * hsa.c (hsa_get_ctor_statements): New function.
3056 (hsa_get_dtor_statements): Likewise.
3057 (hsa_get_kernel_dispatch_type): Likewise.
3058 * hsa-brig.c (hsa_cdtor_statements): Removed.
3059 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
3060 hsa_get_dtor_statements.
3061 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
3062 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
3064 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
3066 * config/arm/arm-cores.def (cortex-r8): New.
3067 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
3068 * config/arm/arm-tune.md: Likewise.
3069 * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
3071 2016-03-07 Martin Sebor <msebor@redhat.com>
3073 PR rtl-optimization/19705
3074 * doc/invoke.texi (Options That Control Optimization): Clarify
3075 -fno-branch-count-reg.
3077 2016-02-26 Richard Biener <rguenther@suse.de>
3078 Jeff Law <law@redhat.com>
3080 PR tree-optimization/69740
3081 * cfghooks.c (remove_edge): Request loop fixups if we delete
3082 an edge that might turn an irreducible loop into a natural
3084 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
3085 Move after definition of loops_state_clear.
3087 2016-03-07 Bin Cheng <bin.cheng@arm.com>
3089 PR rtl-optimization/69052
3090 * rtlanal.c (commutative_operand_precedence): Set higher precedence
3093 2016-03-07 Tom de Vries <tom@codesourcery.com>
3095 PR tree-optimization/70116
3096 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
3097 is_tm_ending stmts and ubsan/asan internal functions.
3098 (find_duplicate): Use it. Don't test is_tm_ending here.
3100 2016-03-07 Richard Biener <rguenther@suse.de>
3102 PR tree-optimization/70115
3103 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
3104 (propagate_constants_for_unrolling): Use replace_uses_by.
3106 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
3109 * omp-low.c (struct oacc_loop): Add ifns.
3110 (new_oacc_loop_raw): Initialize it.
3111 (finish_oacc_loop): Clear mask & flags if no ifns.
3112 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
3113 (oacc_loop_xform_loop): Add ifns arg & adjust.
3114 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
3116 2016-03-07 Richard Henderson <rth@redhat.com>
3119 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
3120 (insert_value_copy_on_edge): Likewise.
3122 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3124 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
3126 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3129 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
3131 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3133 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
3135 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3137 Fix sseimul type attribute.
3138 * config/i386/znver1.md
3139 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
3140 znver1_sseimul_avx256_load) : Fix the type attribute.
3141 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
3142 pipe usage and latency.
3144 2016-03-05 Jakub Jelinek <jakub@redhat.com>
3147 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
3148 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
3151 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
3154 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
3156 PR rtl-optimization/69941
3157 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
3158 the reg share its mode.
3160 2016-03-04 Jeff Law <law@redhat.com>
3162 PR tree-optimization/69196
3163 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3164 If the both SSA_NAMEs are anonymous, then consider them unassociated
3165 and include the PHI in the statement count.
3167 2016-03-05 Tom de Vries <tom@codesourcery.com>
3169 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
3170 construct in oacc routine. Check for oacc region in oacc routine.
3172 2016-03-04 Jakub Jelinek <jakub@redhat.com>
3175 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
3176 2016-02-22 changes, instead don't recurse if RECUR is already true.
3177 Don't change *dynamic_check if RECUR. Adjust recursive caller
3178 to pass true to the new argument.
3179 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
3182 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
3183 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
3185 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
3187 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
3189 PR rtl-optimization/57676
3190 * lra-assigns.c (lra_assign): Guard test for maximum iterations
3193 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
3195 * tree-vect-patterns.c (search_type_for_mask): Handle
3196 comparison of booleans.
3198 2016-03-04 Jakub Jelinek <jakub@redhat.com>
3200 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
3204 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
3205 all other ops that have dw_val_class_die_ref operands,
3206 and DW_OP_GNU_entry_value.
3208 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3210 PR rtl-optimization/69904
3211 * config/arm/arm.c (arm_cannot_copy_insn_p):
3212 Return true for load-exclusive instructions.
3214 2016-03-03 Jakub Jelinek <jakub@redhat.com>
3217 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
3218 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
3219 the pattern no matter if it is used just by non-pattern, pattern
3221 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
3222 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
3223 oprnd1 def_stmt is in pattern, don't look through it.
3225 2016-03-03 Marek Polacek <polacek@redhat.com>
3228 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
3230 2016-03-03 Martin Liska <mliska@suse.cz>
3232 PR tree-optimization/70043
3233 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
3234 previous statement if we see a debug statement.
3236 2016-03-03 Richard Biener <rguenther@suse.de>
3238 PR tree-optimization/55936
3239 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
3240 parameter and guard unsafe equivalence use.
3241 (vrp_evaluate_conditional_warnv_with_ops): Always use
3242 safe equivalences but not via the quadratic compare_names
3245 2016-03-03 Michael Collison <michael.collison@linaro.org>
3248 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
3249 for operand 1 to s_register_operand. Change predicate for operand
3250 2 to arm_not_immediate_operand.
3252 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
3254 * doc/tm.texi: Regenerated.
3256 2016-03-02 Richard Henderson <rth@redhat.com>
3259 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
3260 simplification when all args are positive non-fixed registers.
3262 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3264 * target.def (lra_p): Specify that new ports should use LRA.
3266 2016-03-02 Jakub Jelinek <jakub@redhat.com>
3269 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
3270 gimplify_type_sizes the type they refer to.
3271 (omp_notice_variable): Handle reference vars to VLAs.
3272 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
3273 reference to VLA decls in the second pass instead of first pass.
3275 2016-03-02 Tom de Vries <tom@codesourcery.com>
3277 PR tree-optimization/68659
3278 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
3279 new_expr == NULL_TREE.
3280 (get_new_name): Handle ADDR_EXPR.
3282 2016-03-02 Bin Cheng <bin.cheng@arm.com>
3284 PR rtl-optimization/69052
3285 * loop-invariant.c (canonicalize_address): New function.
3286 (inv_can_prop_to_addr_use): Check validity of address expression
3287 which is canonicalized by above function.
3289 2016-03-02 Alan Modra <amodra@gmail.com>
3292 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
3295 2016-03-02 Jakub Jelinek <jakub@redhat.com>
3298 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
3299 (*movhi_internal): Put mask moves from and to memory separately
3300 from moves from/to GPRs.
3302 2016-03-02 Richard Biener <rguenther@suse.de>
3304 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
3305 GENERIC expressions in GIMPLE.
3307 2016-03-02 Richard Biener <rguenther@suse.de>
3309 * config/i386/i386.c (type_natural_mode): Fix typo.
3311 2016-03-02 Nick Clifton <nickc@redhat.com>
3313 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
3315 2016-03-02 Richard Biener <rguenther@suse.de>
3316 Uros Bizjak <ubizjak@gmail.com>
3319 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
3321 2016-03-02 Richard Biener <rguenther@suse.de>
3324 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
3326 2016-03-02 Marek Polacek <polacek@redhat.com>
3329 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
3330 "is promoted to" warning.
3332 2016-03-01 DJ Delorie <dj@redhat.com>
3334 * config.gcc: Deprecate mep-*.
3336 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
3339 * lra-constraints.c (regno_val_use_in): New.
3340 (match_reload): Use it instead of regno_use_in.
3342 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
3344 PR rtl-optimization/70007
3345 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
3346 references present in REG_EQUAL notes attached to non-SET patterns.
3348 2016-03-01 Jeff Law <law@redhat.com>
3350 PR tree-optimization/69196
3351 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3352 Appropriately clamp the number of statements to copy when the
3353 thread path does not traverse a loop backedge.
3355 PR tree-optimization/69196
3356 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3357 Do count some PHIs in the thread path against the insn count. Decrease
3358 final statement count by one as the control statement in the last
3359 block will get removed. Remove special cased code for handling PHIs
3362 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
3365 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
3366 asm dialect alternatives to explicit GOTPCREL calls.
3368 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
3371 * ira.c (do_reload): Issue warning for generic stack checking here...
3372 * reload1.c (reload): ...instead of here and streamline it.
3374 2016-03-01 Nick Clifton <nickc@redhat.com>
3376 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
3378 2016-03-01 Richard Biener <rguenther@suse.de>
3380 PR tree-optimization/69983
3381 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
3382 types and fall back to operand_equal_p.
3384 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3387 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3389 * config/s390/constraints.md ("jm8"): New constraint.
3390 * config/s390/predicates.md ("const_int_8bitset_operand"): New
3392 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
3394 ("*setmem_long<setmem_and>"): New pattern.
3395 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
3397 ("*setmem_long_31z<setmem_and>"): New pattern.
3398 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
3399 New substitution rules with the required attributes.
3402 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3405 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3407 * gensupport.c (process_substs_on_one_elem): Split loop to
3408 complete mark_operands_used_in_match_dup on all expressions in the
3410 (adjust_operands_numbers): Inline into process_substs_on_one_elem
3411 and remove function.
3413 2016-03-01 Richard Biener <rguenther@suse.de>
3416 * fold-const.c (fold_indirect_ref_1): Fix range checking for
3417 vector BIT_FIELD_REF extract.
3419 2016-03-01 Richard Biener <rguenther@suse.de>
3421 PR tree-optimization/69994
3422 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
3424 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
3426 PR tree-optimization/69956
3427 * tree-vect-stmts.c (supportable_widening_operation): Support
3428 multi-step conversion of boolean vectors.
3429 (supportable_narrowing_operation): Likewise.
3431 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3433 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
3436 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3438 * config/s390/subst.md (DSI_VI): New mode iterator.
3439 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
3440 * config/s390/vector.md ("vec_set<mode>"): Move expander before
3441 the insn definition.
3442 ("*vec_set<mode>"): Change predicate and add alternative to
3443 support only either register or const_int operands as element
3445 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
3447 ("vec_extract<mode>"): New expander.
3448 ("*vec_extract<mode>"): New insn definition supporting reg and
3449 const_int element selectors.
3450 ("*vec_extract<mode>_plus"): New insn definition supporting
3451 reg+const_int element selectors.
3452 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
3453 following expander+insn definition.
3454 ("<vec_shifts_name><mode>3"): New expander.
3455 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
3457 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3459 * config/s390/s390.md ("*tabort_1"): Change predicate to
3460 nonmemory_operand. Add a second alternative to cover
3461 register as well as const int operands.
3462 ("*tabort_1_plus"): New pattern definition.
3464 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3466 * config/s390/s390.md ("*ashrdi3_cc_31")
3467 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
3468 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
3469 Merge insn definitions into ...
3470 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
3471 New pattern definition.
3472 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
3473 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
3474 ("*ashr<mode>3_and"): Merge insn definitions into ...
3475 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
3476 New pattern definition.
3477 * config/s390/subst.md ("addr_style_op_cc_subst")
3478 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
3479 substitutions patterns plus attributes.
3480 Add ashiftrt to SUBST iterator.
3482 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3484 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
3485 op2 to nonmemory_operand.
3486 ("*<shift>di3_31", "*<shift>di3_31_and"):
3487 Merge into single pattern definition ...
3488 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
3489 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
3490 pattern definition ...
3491 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
3492 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
3495 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3497 * config/s390/predicates.md (const_int_6bitset_operand): New
3499 * config/s390/s390.md: Include subst.md.
3500 ("rotl<mode>3"): New expander.
3501 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
3503 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
3504 * config/s390/subst.md: New file.
3506 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3508 * config/s390/s390.md ("op_type", "atype", "length" attributes):
3509 Remove RRR type. It doesn't really exist.
3510 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
3512 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
3513 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
3514 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
3515 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
3516 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
3517 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
3518 `enabled' attribute.
3520 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3522 * gensupport.c (process_substs_on_one_elem): Split loop to
3523 complete mark_operands_used_in_match_dup on all expressions in the
3525 (adjust_operands_numbers): Inline into process_substs_on_one_elem
3526 and remove function.
3528 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
3531 * config/sparc/sparc.c (NWORDS_UP): Rename to...
3532 (CEIL_NWORDS): ...this. Use CEIL macro.
3533 (compute_fp_layout): Adjust to above renaming.
3534 (function_arg_union_value): Likewise.
3535 (sparc_arg_partial_bytes): Likewise.
3536 (sparc_function_arg_advance): Likewise.
3538 2016-02-29 Jeff Law <law@redhat.com>
3540 PR tree-optimization/70005
3541 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
3542 where an object with a boolean range is compared against a value
3545 PR tree-optimization/69999
3546 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
3547 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
3550 2016-02-29 Richard Biener <rguenther@suse.de>
3552 PR tree-optimization/69994
3553 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
3554 (get_unary_op): Look through nop conversions.
3555 (ops_equal_values_p): New function, look for equality diregarding
3557 (eliminate_plus_minus_pair): Use ops_equal_values_p
3558 (repropagate_negates): Do not use get_unary_op here.
3560 2016-02-29 Martin Liska <mliska@suse.cz>
3562 * system.h: Poison ENABLE_CHECKING macro.
3564 2016-02-29 Martin Liska <mliska@suse.cz>
3566 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
3567 is presented in dump flags.
3568 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
3569 (hsa_regalloc): Likewise.
3571 2016-02-19 Richard Biener <rguenther@suse.de>
3573 PR tree-optimization/69980
3574 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
3575 permutation of those we need to keep.
3577 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
3580 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
3581 (NWORDS_UP): ...this
3582 (init_cumulative_args): Minor tweaks.
3583 (sparc_promote_function_mode): Likewise.
3584 (scan_record_type): Delete.
3585 (traverse_record_type): New function template.
3586 (classify_data_t): New structure type.
3587 (classify_registers): New inline function.
3588 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
3589 exhausted. Instantiate traverse_record_type on classify_registers and
3590 deal with the case of a structure passed in slot #15 with no FP field
3592 (assign_data_t): New structure type.
3593 (compute_int_layout): New static function.
3594 (compute_fp_layout): Likewise.
3595 (count_registers): New inline function.
3596 (assign_int_registers): New static function.
3597 (assign_fp_registers): Likewise.
3598 (assign_registers): New inline function.
3599 (function_arg_record_value_1): Delete.
3600 (function_arg_record_value_2): Likewise.
3601 (function_arg_record_value_3): Likewise.
3602 (function_arg_record_value): Adjust to above changes. Instantiate
3603 traverse_record_type on count_registers to first count the number of
3604 registers to be used and then on assign_registers to assign them.
3605 (function_arg_union_value): Adjust to above renaming.
3606 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
3607 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
3608 case of a structure passed in slot #15
3609 (sparc_function_arg_advance): Likewise.
3610 (function_arg_padding): Minor tweak.
3612 2016-02-29 Richard Biener <rguenther@suse.de>
3614 PR tree-optimization/69720
3615 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
3616 the adjustment_def path for possibly vectorized defs.
3617 (vect_create_epilog_for_reduction): Handle vectorized initial
3620 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
3622 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
3624 2016-02-27 Jeff Law <law@redhat.com>
3627 2016-02-26 Richard Biener <rguenther@suse.de>
3628 Jeff Law <law@redhat.com>
3630 PR tree-optimization/69740
3631 * cfghooks.c (remove_edge): Request loop fixups if we delete
3632 an edge that might turn an irreducible loop into a natural
3635 2016-02-27 Jakub Jelinek <jakub@redhat.com>
3637 PR rtl-optimization/69896
3638 * tree-vect-generic.c (get_compute_type): Avoid single element
3641 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
3643 Rename the AArch64 tuning option and related functions to enable the
3644 Newton series for the reciprocal square root to reflect its
3645 approximative characteristic.
3647 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
3648 function to "aarch64_emit_approx_rsqrt".
3649 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
3650 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
3651 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
3652 (xgene1_tunings): Likewise.
3653 (use_rsqrt_p): Likewise.
3654 (aarch64_emit_swrsqrt): Use new function name.
3655 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
3656 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
3657 text explaining this option.
3658 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
3660 2016-02-26 Jakub Jelinek <jakub@redhat.com>
3663 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
3664 complain about -mallow-movmisalign without -mvsx if
3665 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
3667 2016-02-26 Joel Sherrill <joel@rtems.org>
3669 * config.gcc: Add x86_64-*-rtems*.
3670 * gcc/config/i386/rtems-64.h: New file.
3672 2016-02-26 Joel Sherrill <joel@rtems.org>
3674 * config.gcc: Add aarch64-*-rtems*.
3675 * gcc/config/aarch64/rtems.h: New file.
3677 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
3680 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
3681 shift amount using %h. Add comment.
3683 2016-02-26 Richard Biener <rguenther@suse.de>
3684 Jeff Law <law@redhat.com>
3686 PR tree-optimization/69740
3687 * cfghooks.c (remove_edge): Request loop fixups if we delete
3688 an edge that might turn an irreducible loop into a natural
3691 2016-02-26 Martin Jambor <mjambor@suse.cz>
3694 * tree-sra.c (sra_modify_assign): Do not remove loads of
3695 uninitialized aggregates to SSA_NAMEs.
3697 2016-02-26 Richard Henderson <rth@redhat.com>
3700 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
3701 pseudo in case the target rtx matches the source of the left
3704 2016-02-26 Martin Jambor <mjambor@suse.cz>
3707 * hsa.h (hsa_type_packed_p): Declare.
3708 * hsa.c (hsa_type_packed_p): New function.
3709 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
3711 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
3712 * hsa-brig.c (emit_basic_insn): Likewise.
3714 2016-02-26 Martin Jambor <mjambor@suse.cz>
3717 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
3719 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
3721 2016-02-26 Martin Jambor <mjambor@suse.cz>
3723 * hsa.h (is_a_helper): New overload for hsa_op_immed for
3724 hsa_op_with_type operands.
3725 (hsa_unsigned_type_for_type): Declare.
3726 * hsa.c (hsa_unsigned_type_for_type): New function.
3727 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
3728 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
3729 the finalizer. Do not emit extra move.
3731 2016-02-26 Martin Jambor <mjambor@suse.cz>
3733 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
3734 atomic operations in private segment.
3736 2016-02-26 Martin Jambor <mjambor@suse.cz>
3738 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
3739 statements to wi->info. Also disallow omp simd constructs.
3740 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
3741 for not gridifying. Dump special string for omp_for.
3743 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3746 * config/aarch64/aarch64.c (aarch64_set_current_function):
3747 Save/restore target globals when switching to
3748 target_option_default_node.
3750 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3753 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
3754 Return 0 if !SHIFT_COUNT_TRUNCATED.
3756 2016-02-26 Jakub Jelinek <jakub@redhat.com>
3757 Eric Botcazou <ebotcazou@adacore.com>
3759 PR rtl-optimization/69891
3760 * dse.c (scan_insn): If we can't figure out memset arguments
3761 or they are non-constant, call clear_rhs_from_active_local_stores.
3763 2016-02-26 Martin Liska <mliska@suse.cz>
3765 * doc/extend.texi: Mention clog10, clog10f an clog10l
3766 in Builtins section.
3768 2016-02-26 Martin Liska <mliska@suse.cz>
3770 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
3772 (resolve_args_picking_1): Likewise.
3773 * dwarf2out.h (struct GTY): Likewise.
3775 2016-02-26 Martin Liska <mliska@suse.cz>
3777 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
3779 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
3781 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
3782 Martin Liska <mliska@suse.cz>
3784 * doc/install.texi: Mention --enable-valgrind-annotations.
3786 2016-02-26 Richard Biener <rguenther@suse.de>
3788 PR tree-optimization/69551
3789 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
3790 looking through aliases adjust DECL_PT_UID to refer to the
3791 ultimate alias target.
3793 2016-02-25 Martin Liska <mliska@suse.cz>
3796 * alloc-pool.c (after_memory_report): New variable.
3797 * alloc-pool.h (base_pool_allocator ::release): Do not use
3798 the infrastructure if after_memory_report.
3799 * toplev.c (toplev::main): Mark after memory report.
3801 2016-02-25 Richard Biener <rguenther@suse.de>
3803 PR tree-optimization/48795
3804 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
3806 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
3809 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
3810 offloading is enabled and -fopenacc or -fopenmp is specified.
3811 (CRTOFFLOADEND): Likewise.
3812 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
3813 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
3814 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
3815 (offload_objects_file_name): New static var.
3816 (tool_cleanup): Remove offload_objects_file_name file.
3817 (find_offloadbeginend): Replace with ...
3818 (find_crtoffloadtable): ... this.
3819 (run_gcc): Remove offload_argc and offload_argv.
3820 Get offload_objects_file_name from -foffload-objects=... option.
3821 Read names of object files with offload from this file, pass them to
3822 compile_images_for_offload_targets. Don't call find_offloadbeginend and
3823 don't pass offloadbegin and offloadend to the linker. Don't pass
3824 offload non-LTO files to the linker, because now they're not claimed.
3826 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
3829 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
3830 on builtin_unreachable.
3832 2016-02-25 Jakub Jelinek <jakub@redhat.com>
3834 PR rtl-optimization/69896
3835 * regcprop.c: Include cfgrtl.h.
3836 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
3837 than remembered mode, either delete it (if noop_move_p), or
3838 treat like copy_p but not noop_p instruction.
3840 2016-02-24 Jakub Jelinek <jakub@redhat.com>
3843 * dwarf2out.c (gen_variable_die): Work around buggy LTO
3844 - allow NULL decl for Fortran DW_TAG_common_block variables.
3846 2016-02-24 Jason Merrill <jason@redhat.com>
3848 * common.opt (flifetime-dse): Add -flifetime-dse=1.
3850 2016-02-24 Richard Biener <rguenther@suse.de>
3851 Jakub Jelinek <jakub@redhat.com>
3854 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
3855 conditionally executed ops to well-defined overflow behavior.
3857 2016-02-24 Jakub Jelinek <jakub@redhat.com>
3860 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
3863 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3865 PR rtl-optimization/69886
3866 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
3867 argument. Use it when checking validity of set instructions.
3868 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
3869 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
3871 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
3872 * store-motion.c (find_moveable_store): Update
3873 can_assign_to_reg_without_clobbers_p callsite.
3875 2016-02-24 Richard Biener <rguenther@suse.de>
3878 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
3880 (record_nonwrapping_iv): Do not fall back to the low/high bound
3881 for non-constant IV bases if the stmt is not always executed.
3883 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3885 * config/arm/arm-cores.def (cortex-a32): New entry.
3886 * config/arm/arm-tables.opt: Regenerate.
3887 * config/arm/arm-tune.md: Regenerate.
3888 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
3889 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
3890 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
3891 for -mcpu and -mtune.
3893 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3896 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
3897 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
3898 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
3899 (atomic_loaddi_1): Delete.
3900 (atomic_loaddi): Rewrite expander using the above changes.
3902 2016-02-24 Jakub Jelinek <jakub@redhat.com>
3905 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
3908 2016-02-24 Jakub Jelinek <jakub@redhat.com>
3909 Richard Biener <rguenth@suse.de>
3912 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
3913 set_mem_attributes if tem is SSA_NAME which got expanded
3916 2016-02-24 Richard Biener <rguenther@suse.de>
3918 PR tree-optimization/69907
3919 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
3920 end of permutations for BB vectorization.
3922 2016-02-24 Christian Bruel <christian.bruel@st.com>
3924 * config/arm/arm-c.c (arm_option_override): Initialize
3925 target_option_current_node.
3926 * config/arm/arm.c (arm_pragma_target_parse): Replace
3927 build_target_option_node call by target_option_current_node.
3928 Set target_option_current_node.
3931 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
3934 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
3935 define_insn_and_split to define_insn.
3936 (zero_extendqi<mode>2_dot2): Same.
3937 (extendqi<mode>2_dot): Same.
3938 (extendqi<mode>2_dot2): Same.
3940 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
3942 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
3943 and add bypass for AES{D,E} and AESMC pairs.
3944 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
3947 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
3949 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
3950 series for reciprocal square root in Exynos M1.
3952 2016-02-23 Martin Sebor <msebor@redhat.com>
3955 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
3956 __builtin_alloca_with_align.
3958 2016-02-23 Richard Henderson <rth@redhat.com>
3960 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
3961 (ix86_register_pragmas): Remove __seg_tls.
3962 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
3963 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
3964 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
3965 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
3966 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
3967 * doc/extend.texi (__seg_tls): Remove item.
3969 2016-02-23 Richard Biener <rguenther@suse.de>
3971 * alloc-pool.h (struct allocation_object): Make id member
3972 conditional on CHECKING_P again.
3973 (get_instance): Adjust.
3974 (base_pool_allocator): Likewise.
3976 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
3978 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
3979 (parallelize_loops): In OpenACC kernels mode, set n_threads to
3981 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
3983 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
3985 2016-02-23 Richard Biener <rguenther@suse.de>
3987 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
3988 * bitmap.h (struct bitmap_usage): Likewise.
3989 (bitmap_move): Declare.
3990 * bitmap.c (register_overhead): Take size_t argument.
3991 (bitmap_move): New function.
3992 * df-problems.c (df_rd_transfer_function): Use bitmap_move
3993 to properly account overhead.
3994 * tree.c (free_node): Use tree_size.
3996 2016-02-23 Jakub Jelinek <jakub@redhat.com>
3999 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
4000 when inverting comparison.
4003 * common.opt (Wunreachable-code): Add Warning flag.
4005 2016-02-23 Mark Wielaard <mjw@redhat.com>
4006 Jakub Jelinek <jakub@redhat.com>
4009 * cgraphunit.c (check_global_declaration): Check main_input_filename
4010 and DECL_SOURCE_FILE are not NULL.
4012 2016-02-23 Martin Jambor <mjambor@suse.cz>
4014 PR tree-optimization/69666
4015 * tree-sra.c (sra_modify_assign): Do not attempt to create
4016 default_def replacements for unscalarizable regions.
4018 2016-02-20 Mark Wielaard <mjw@redhat.com>
4021 * cgraphunit.c (check_global_declaration): Check level of
4022 warn_unused_const_variable and main_input_filename.
4023 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
4024 (-Wunused-variable): For C implies -Wunused-const-variable=1.
4025 (-Wunused-const-variable): Explain levels 1 and 2.
4027 2016-02-22 Jakub Jelinek <jakub@redhat.com>
4030 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
4031 identical arguments. Formatting and spelling fixes.
4034 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
4039 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
4040 and m68k-devices.def.
4041 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
4042 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
4044 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
4046 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
4047 and HImode registers.
4049 2016-02-22 Richard Biener <rguenther@suse.de>
4051 PR tree-optimization/69882
4052 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
4053 preserve permutations present because of gaps.
4054 (vect_supported_load_permutation_p): Always continue checking
4055 permutations after vect_attempt_slp_rearrange_stmts.
4057 2016-02-22 Bin Cheng <bin.cheng@arm.com>
4059 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
4060 min_profitable_estimate, rather than min_profitable_iters.
4062 2016-02-22 Jakub Jelinek <jakub@redhat.com>
4065 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
4066 SImode for last match_operand.
4068 2016-02-22 Martin Liska <mliska@suse.cz>
4070 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
4071 return bitsize - 1 as the return value.
4073 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
4077 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
4078 Handle negative shift counts.
4079 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
4080 force_reg on the shift constant.
4081 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
4082 (lshrsi3_d): Handle negative shift counts.
4084 2016-02-22 Richard Biener <rguenther@suse.de>
4085 Tom de Vries <tom@codesourcery.com>
4087 * graph.c: Include dumpfile.h.
4088 (print_graph_cfg): Split into three overloads.
4089 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
4091 2016-02-22 Tom de Vries <tom@codesourcery.com>
4093 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
4096 2016-02-22 Richard Biener <rguenther@suse.de>
4099 * ipa-inline-transform.c (inline_call): When not updating
4100 overall summaries adjust self size by the growth estimate.
4101 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
4102 hash-set, do not update overall summaries here. Renamed from ...
4103 (inline_to_all_callers): ... this which is now wrapping the
4104 above and performing delayed overall summary update.
4105 (early_inline_small_functions): Delay updating of the overall
4108 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
4110 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
4113 2016-02-19 Jakub Jelinek <jakub@redhat.com>
4116 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
4117 :%* in %:gt() argument.
4118 (greater_than_spec_func): Adjust for expecting only numbers,
4119 if there are more than two numbers, compare the last two.
4121 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
4123 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
4124 -Wnarrowing with -std.
4126 2016-02-19 Jakub Jelinek <jakub@redhat.com>
4129 * expr.c (store_field): Don't use bit-field path if exp is
4130 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
4131 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
4132 and the assignment can be performed by bitwise copy. Formatting
4136 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
4137 call copy_reg_eh_region_note_forward on before and/or after sequences
4138 and remove note from insn if it no longer can throw.
4141 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
4144 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4146 * config/s390/vector.md: Add missing commutative operand markers
4147 to the patterns which qualify for one.
4148 * config/s390/vx-builtins.md: Likewise.
4150 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4152 * config/s390/vector.md (VI, VI_QHS): Add single element vector
4153 types to mode iterators.
4154 (vec_double): ... and mode attribute.
4155 * config/s390/vx-builtins.md (non_vec_int): Likewise.
4157 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4159 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
4160 Change the predicate of op2 from nonimmediate to general and let
4161 reload fix it if necessary.
4163 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4165 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
4167 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4169 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
4172 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4174 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
4175 * config/s390/s390.c (s390_expand_vec_movstr): New function.
4176 * config/s390/s390.md ("movstr<P:mode>"): Call
4177 s390_expand_vec_movstr.
4179 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4181 * config/s390/s390.md: Add missing output modifier for operand 1
4182 to print it as address properly.
4184 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4186 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
4187 * config/s390/2964.md: New file.
4188 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
4189 of insn grouping attributes depending on the CPU level.
4190 (s390_get_unit_mask): New function.
4191 (s390_sched_score): Remove the OOO from the scheduling macros.
4192 Add loop to calculate a score for the instruction mix.
4193 (s390_sched_reorder): Likewise plus improve debug output.
4194 (s390_sched_variable_issue): Rename macros as above. Calculate
4195 the unit distances after actually scheduling an insn. Improve
4197 (s390_sched_init): Clear last_scheduled_unit_distance array.
4198 * config/s390/s390.md: Include 2964.md.
4200 2016-02-18 Jakub Jelinek <jakub@redhat.com>
4203 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
4204 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
4205 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
4206 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
4207 *avx512f_<code>v8div16qi2_mask_1): New insns.
4209 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4212 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
4215 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
4216 earlyclobber from target. Use wF constraint for fused memory
4218 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
4220 2016-02-18 Jakub Jelinek <jakub@redhat.com>
4221 Martin Liska <mliska@suse.cz>
4224 * cfgexpand.c (asan_sanitize_stack_p): New function.
4225 (partition_stack_vars): Use the function.
4226 (expand_stack_vars): Likewise.
4227 (defer_stack_allocation): Likewise.
4228 (expand_used_vars): Likewise.
4230 2016-02-18 Richard Biener <rguenther@suse.de>
4233 * fold-const.c (operand_equal_p): Properly compare offsets for
4234 IMAGPART_EXPR and ARRAY_REF.
4236 2016-02-18 Nick Clifton <nickc@redhat.com>
4240 * config/arm/arm.c (arm_option_override_internal): Disable
4241 interworking if the target does not support thumb instructions.
4242 (arm_reload_in_hi): Handle the case where a register to register
4243 move needs reloading because there is no simple pattern to handle
4245 (arm_reload_out_hi): Likewise.
4247 2016-02-18 Richard Biener <rguenther@suse.de>
4250 * match.pd: Don't use fold_binary or fold_unary for folding
4253 2016-02-17 Jakub Jelinek <jakub@redhat.com>
4256 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
4257 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
4258 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
4259 warn on gimple_no_warning_p statements.
4261 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
4263 * doc/extend.texi (C++ Attributes): Correct description of
4264 warn_unused type attribute.
4266 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4268 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
4269 correct instruction.
4271 2016-02-17 Richard Biener <rguenther@suse.de>
4273 PR rtl-optimization/69609
4274 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
4275 (find_traces_1_round): When ending a trace update cached priority
4277 (bb_to_key): Use cached priority when available.
4278 (copy_bb): Initialize cached priority.
4279 (reorder_basic_blocks_software_trace_cache): Likewise.
4281 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4284 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
4286 (aarch64_comparison_operator): Break overly long line into two.
4287 (aarch64_comparison_operation): Likewise.
4288 * config/aarch64/aarch64.md (cstorecc4): Use
4289 aarch64_comparison_operator_mode instead of
4290 aarch64_comparison_operator.
4291 (cstore<mode>4): Likewise.
4292 (aarch64_cstore<mode>): Likewise.
4293 (*cstoresi_insn_uxtw): Likewise.
4294 (cstore<mode>_neg): Likewise.
4295 (*cstoresi_neg_uxtw): Likewise.
4297 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4300 * config/arm/predicates.md (arm_comparison_operator_mode):
4302 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
4303 instead of arm_comparison_operator.
4304 (*mov_negscc): Likewise.
4305 (*mov_notscc): Likewise.
4306 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
4307 (*thumb2_mov_negscc): Likewise.
4308 (*thumb2_mov_negscc_strict_it): Likewise.
4309 (*thumb2_mov_notscc): Likewise.
4310 (*thumb2_mov_notscc_strict_it): Likewise.
4312 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
4314 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
4317 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
4319 * config/visium/visium.c (machine_libfunc_index): New enum.
4320 (machine_libfuncs): New structure.
4321 (visium_libfuncs): New static variable.
4322 (TARGET_INIT_LIBFUNCS): Define to...
4323 (visium_init_libfuncs): ...this. New function.
4324 (expand_block_move_4): Use the appropriate libfunc.
4325 (expand_block_move_2): Likewise.
4326 (expand_block_move_1): Likewise.
4327 (expand_block_set_4): Likewise.
4328 (expand_block_set_2): Likewise.
4329 (expand_block_set_1): Likewise.
4330 (visium_trampoline_init): Likewise.
4332 2016-02-17 Nick Clifton <nickc@redhat.com>
4334 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
4335 TI's devices.csv file as of March 2016.
4337 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
4340 * opts-global.c (handle_common_deferred_options): Introduce and
4341 initialize two global variables to remember command-line options
4342 specifying a stack-limiting register.
4343 * opts.h: Add extern declarations of the two new global variables.
4344 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
4345 variable based on the values of the two new global variables.
4347 2016-02-16 Jakub Jelinek <jakub@redhat.com>
4350 * common.opt (Wnonnull-compare): New warning.
4351 * doc/invoke.texi (-Wnonnull): Remove text about comparison
4352 of arguments against NULL.
4353 (-Wnonnull-compare): Document.
4354 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
4355 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
4356 * passes.def (pass_warn_nonnull_compare): Add.
4357 * gimple-ssa-nonnull-compare.c: New file.
4359 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
4361 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
4362 AARCH64_EXTRA_TUNE_RECIP_SQRT.
4364 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
4366 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
4367 reciprocal sqrt for -mlow-precision-recip-sqrt.
4369 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
4370 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4372 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
4373 always use lane loads to construct non-constant vectors.
4375 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
4377 * config/aarch64/aarch64.md
4378 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
4379 constraints for operand 3.
4380 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
4382 2016-02-16 Jakub Jelinek <jakub@redhat.com>
4383 Richard Biener <rguenther@suse.de>
4385 PR tree-optimization/69820
4386 * tree-vect-patterns.c (type_conversion_p): Return false if
4387 *orig_type is unsigned single precision or boolean.
4388 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
4391 2016-02-16 Jakub Jelinek <jakub@redhat.com>
4393 PR rtl-optimization/69764
4394 PR rtl-optimization/69771
4395 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
4396 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
4398 2016-02-16 Richard Biener <rguenther@suse.de>
4400 PR tree-optimization/69776
4401 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
4403 (indirect_refs_may_alias_p): Likewise.
4404 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
4405 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
4406 according to tbaa_p.
4407 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
4408 (optimize_stmt): For redundant store discovery do not allow tbaa.
4410 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
4412 PR tree-optimization/69714
4413 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
4414 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
4416 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
4418 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
4419 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
4420 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
4421 * config/arc/arc.c (arc_init): Check FPU options.
4422 (get_arc_condition_code): Handle new CC_FPU* modes.
4423 (arc_select_cc_mode): Likewise.
4424 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
4425 register pair only. Allow access for ARCv2 accumulator.
4426 (gen_compare_reg): Whenever we have FPU support use FPU compare
4428 (arc_reorg): Don't generate brcc insns when FPU compare
4429 instructions are involved.
4430 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
4431 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
4432 floating point emulation.
4433 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
4434 (REVERSE_CONDITION): Add new CC_FPU* modes.
4435 (TARGET_FP_SP_BASE): Define.
4436 (TARGET_FP_DP_BASE): Likewise.
4437 (TARGET_FP_SP_FUSED): Likewise.
4438 (TARGET_FP_DP_FUSED): Likewise.
4439 (TARGET_FP_SP_CONV): Likewise.
4440 (TARGET_FP_DP_CONV): Likewise.
4441 (TARGET_FP_SP_SQRT): Likewise.
4442 (TARGET_FP_DP_SQRT): Likewise.
4443 (TARGET_FP_DP_AX): Likewise.
4444 * config/arc/arc.md (ARCV2_ACC): New constant.
4445 (type): New fpu type attribute.
4446 (SDF): Conditional iterator.
4447 (cstore<mode>, cbranch<mode>): Change expand condition.
4448 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
4449 handles FPU/FPX cases as well.
4450 * config/arc/arc.opt (mfpu): New option.
4451 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
4453 (adddf3, muldf3, subdf3): Removed.
4454 * config/arc/predicates.md (proper_comparison_operator): Recognize
4456 * config/arc/fpu.md: New file.
4457 * doc/invoke.texi (ARC Options): Document mfpu option.
4459 2016-02-16 Richard Biener <rguenther@suse.de>
4461 PR rtl-optimization/69291
4462 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
4463 noce_operand_ok check.
4465 2016-02-16 Tom de Vries <tom@codesourcery.com>
4468 * omp-low.c (simd_clone_create): Remove call to
4469 symtab->call_cgraph_insertion_hooks.
4471 2016-02-16 Jakub Jelinek <jakub@redhat.com>
4473 PR tree-optimization/69802
4474 * tree-ssa-reassoc.c (update_range_test): If op is
4475 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
4476 op == 1 test of precision 1 integral op, otherwise handle
4477 that case as op itself. Fix up formatting.
4478 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
4481 2016-02-16 Richard Biener <rguenther@suse.de>
4483 PR tree-optimization/69586
4484 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
4485 types for conversion sources.
4487 2016-02-16 Richard Biener <rguenther@suse.de>
4490 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
4491 mask OEP_ADDRESS_OF.
4493 2016-02-16 Alan Modra <amodra@gmail.com>
4496 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
4497 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
4498 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
4500 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
4501 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
4502 (p8_fmrgow_<mode>): Likewise.
4503 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
4505 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
4506 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
4507 to use movdi_internal64. Remove op0_di.
4508 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
4510 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
4512 Add support for the FCCMP insn types
4514 * config/aarch64/aarch64.md (fccmp): Change insn type.
4516 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
4517 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
4518 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
4519 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
4520 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
4521 * config/arm/types.md (fccmps): Add new insn type.
4524 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
4526 * alias.c (get_alias_set): Fix a typo in comment.
4528 2016-02-15 Richard Biener <rguenther@suse.de>
4530 PR tree-optimization/69595
4531 * match.pd: Complete range test simplification to true.
4533 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
4535 PR rtl-optimization/69648
4536 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
4537 pic_offset_table_rtx.
4539 PR rtl-optimization/69752
4540 * ira.c (update_equiv_regs): When looking for more than a single SET,
4541 also take other side effects into account.
4543 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
4545 * config/s390/s390.c (s390_function_profiler): Add a new sequence
4546 for z900+ CPUs in 31-bit mode.
4548 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
4550 * common/config/s390/s390-common.c (s390_supports_split_stack):
4552 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
4553 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
4554 * config/s390/s390.c (struct machine_function): New field
4555 split_stack_varargs_pointer.
4556 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
4557 in s390_emit_prologue.
4558 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
4560 (morestack_ref): New global.
4561 (SPLIT_STACK_AVAILABLE): New macro.
4562 (s390_expand_split_stack_prologue): New function.
4563 (s390_live_on_entry): New function.
4564 (s390_va_start): Use split-stack vararg pointer if appropriate.
4565 (s390_asm_file_end): Emit the split-stack note sections.
4566 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
4567 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
4568 (UNSPECV_SPLIT_STACK_CALL): New unspec.
4569 (UNSPECV_SPLIT_STACK_DATA): New unspec.
4570 (split_stack_prologue): New expand.
4571 (split_stack_space_check): New expand.
4572 (split_stack_data): New insn.
4573 (split_stack_call): New expand.
4574 (split_stack_call_*): New insn.
4575 (split_stack_cond_call): New expand.
4576 (split_stack_cond_call_*): New insn.
4578 2016-02-15 Richard Biener <rguenther@suse.de>
4580 PR tree-optimization/69783
4581 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
4582 Add trivially correct cases.
4584 2016-02-15 Tom de Vries <tom@codesourcery.com>
4587 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
4589 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
4591 2016-02-15 Richard Biener <rguenther@suse.de>
4593 PR tree-optimization/69776
4594 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
4595 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
4596 indicate whether we can use TBAA to disambiguate against stores.
4597 Use alias-set zero if not.
4598 (visit_reference_op_store): Do not use TBAA when looking up
4600 * tree-ssa-pre.c (compute_avail): Use TBAA here.
4601 (eliminate_dom_walker::before_dom_children): But not when looking
4602 up redundant stores.
4604 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
4606 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
4608 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4610 * config/i386/znver1.md
4611 (znver1_pop, znver1_pop_mem,
4612 znver1_load_imov_double_store,
4613 znver1_load_imov_direct_store,
4614 znver1_load_imov_direct_load,
4615 znver1_load_imov_double_load): Add new.
4616 (znver1_insn, znver1_insn_load): Add icmov type.
4618 znver1_sseavx_fma_load,
4620 znver1_avx256_fma_load): Fix pipe usage.
4622 2016-02-14 Alan Modra <amodra@gmail.com>
4625 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
4626 with an invalid hard reg, reload just the reg not the entire
4627 pre/post-inc/dec address expression.
4629 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
4632 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
4633 fixed R1_REG scratch reg.
4634 (sibcall_value_pcrel_fdpic): Likewise.
4636 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
4640 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
4642 2016-02-12 Walter Lee <walt@tilera.com>
4644 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
4645 * config/tilegx/t-tilegx: Likewise.
4647 2016-02-12 David Malcolm <dmalcolm@redhat.com>
4650 * diagnostic-show-locus.c (struct line_span): New struct.
4651 (layout::get_first_line): Delete.
4652 (layout::get_last_line): Delete.
4653 (layout::get_num_line_spans): New member function.
4654 (layout::get_line_span): Likewise.
4655 (layout::print_heading_for_line_span_index_p): Likewise.
4656 (layout::get_expanded_location): Likewise.
4657 (layout::calculate_line_spans): Likewise.
4658 (layout::m_first_line): Delete.
4659 (layout::m_last_line): Delete.
4660 (layout::m_line_spans): New field.
4661 (layout::layout): Update comment. Replace m_first_line and
4662 m_last_line with m_line_spans, replacing their initialization
4663 with a call to calculate_line_spans.
4664 (diagnostic_show_locus): When printing source lines and
4665 annotations, rather than looping over a single span
4666 of lines, instead loop over each line_span within
4667 the layout, with an inner loop over the lines within them.
4668 Call the context's start_span callback when changing line spans.
4669 * diagnostic.c (diagnostic_initialize): Initialize start_span.
4670 (diagnostic_build_prefix): Break out the building of the location
4671 part of the string into...
4672 (diagnostic_get_location_text): ...this new function, rewriting
4673 it from nested ternary expressions to a sequence of "if"
4675 (default_diagnostic_start_span_fn): New function.
4676 * diagnostic.h (diagnostic_start_span_fn): New typedef.
4677 (diagnostic_context::start_span): New field.
4678 (default_diagnostic_start_span_fn): New prototype.
4680 2016-02-12 David Malcolm <dmalcolm@redhat.com>
4683 * gcc.c (driver::finalize): Fix cleanup of "specs".
4685 2016-02-12 David Malcolm <dmalcolm@redhat.com>
4689 * gcc.c (driver::driver): Initialize m_option_suggestions.
4690 (driver::~driver): Clean up m_option_suggestions.
4691 (suggest_option): Convert to...
4692 (driver::suggest_option): ...this, and split out into
4693 driver::build_option_suggestions and find_closest_string.
4694 (driver::build_option_suggestions): New function, from
4695 first half of suggest_option. Special-case
4696 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
4697 the sanitizer_opts array. For options of enum types, add the
4698 various enum values to the candidate strings.
4699 (driver::handle_unrecognized_options): Remove "const".
4700 * gcc.h (driver::handle_unrecognized_options): Likewise.
4701 (driver::build_option_suggestions): New decl.
4702 (driver::suggest_option): New decl.
4703 (driver::m_option_suggestions): New field.
4704 * opts-common.c (add_misspelling_candidates): New function.
4705 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
4706 and make non-static.
4707 * opts.h (sanitizer_opts): New array decl.
4708 (add_misspelling_candidates): New function decl.
4709 * spellcheck.c (find_closest_string): New function.
4710 * spellcheck.h (find_closest_string): New function decl.
4712 2016-02-12 Jakub Jelinek <jakub@redhat.com>
4714 PR rtl-optimization/69764
4715 PR rtl-optimization/69771
4716 * optabs.c (expand_binop_directly): For shift_optab_p, force
4717 convert_modes with VOIDmode if xop1 has VOIDmode.
4719 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
4722 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
4723 to correctly determine instrumentation thunks.
4725 2016-02-12 Jakub Jelinek <jakub@redhat.com>
4728 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
4729 type by reference, force lhs on the call.
4732 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
4733 Compute retval and retbnd early in all cases if split_part_return_p
4734 and return_bb is not EXIT. Remove all clobber stmts and reset
4735 all debug stmts that refer to SSA_NAMEs defined in split part,
4736 except if it is retval, in that case replace the old retval with the
4737 lhs of the call to the split part.
4739 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4742 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4745 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
4746 whose result is used in PHI.
4747 (maybe_optimize_range_tests): Likewise.
4748 (final_range_test_p): Likweise.
4750 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4753 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
4754 whose result is used in PHI.
4755 (maybe_optimize_range_tests): Likewise.
4756 (final_range_test_p): Likweise.
4758 2016-02-12 Jakub Jelinek <jakub@redhat.com>
4760 * cgraph.c: Spelling fixes - behaviour -> behavior and
4761 neighbour -> neighbor.
4762 * target.def: Likewise.
4763 * sel-sched.c: Likewise.
4764 * config/mips/mips.c: Likewise.
4765 * config/arc/arc.md: Likewise.
4766 * config/arm/cortex-a57.md: Likewise.
4767 * config/arm/arm.c: Likewise.
4768 * config/arm/neon.md: Likewise.
4769 * config/arm/arm-c.c: Likewise.
4770 * config/vms/vms-c.c: Likewise.
4771 * config/s390/s390.c: Likewise.
4772 * config/i386/znver1.md: Likewise.
4773 * config/i386/i386.c: Likewise.
4774 * config/ia64/hpux-unix2003.h: Likewise.
4775 * config/msp430/msp430.md: Likewise.
4776 * config/rx/rx.c: Likewise.
4777 * config/rx/rx.md: Likewise.
4778 * config/aarch64/aarch64-simd.md: Likewise.
4779 * config/aarch64/aarch64.c: Likewise.
4780 * config/nvptx/nvptx.c: Likewise.
4781 * config/bfin/bfin.c: Likewise.
4782 * config/cris/cris.opt: Likewise.
4783 * config/rs6000/rs6000.c: Likewise.
4784 * target.h: Likewise.
4785 * spellcheck.c: Likewise.
4786 * ira-build.c: Likewise.
4787 * tree-inline.c: Likewise.
4788 * builtins.c: Likewise.
4789 * lra-constraints.c: Likewise.
4790 * explow.c: Likewise.
4791 * hwint.h: Likewise.
4792 * targhooks.c: Likewise.
4793 * tree-vect-data-refs.c: Likewise.
4795 * doc/tm.texi: Likewise.
4796 * doc/extend.texi: Likewise.
4797 * doc/install.texi: Likewise.
4798 * doc/md.texi: Likewise.
4799 * tree-ssa-tail-merge.c: Likewise.
4800 * sched-int.h: Likewise.
4801 * match.pd: Likewise.
4802 * sched-ebb.c: Likewise.
4803 * target.def (omit_struct_return_reg): Likewise.
4804 * gimple-ssa-isolate-paths.c: Likewise.
4805 (find_implicit_erroneous_behaviour): Renamed to...
4806 (find_implicit_erroneous_behavior): ... this.
4807 (find_explicit_erroneous_behaviour): Renamed to...
4808 (find_explicit_erroneous_behavior): ... this.
4809 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
4811 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
4813 PR rtl-optimization/64682
4814 PR rtl-optimization/69567
4815 PR rtl-optimization/69737
4816 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
4817 in I2 as well, just lose it.
4819 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4821 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
4823 (aarch64_last_printed_tune_string): Likewise.
4824 (aarch64_declare_function_name): Only output .arch assembler
4825 directive if it will be different from the previously output
4826 directive. Same for .tune comment but only if -dA is set.
4827 (aarch64_start_file): New function.
4828 (TARGET_ASM_FILE_START): Define.
4830 2016-02-11 David Malcolm <dmalcolm@redhat.com>
4833 * Makefile.in (PLUGIN_HEADERS): Add params.list.
4835 2016-02-11 Jakub Jelinek <jakub@redhat.com>
4838 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
4839 -Wmaybe-uninitialized warning.
4841 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
4844 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
4846 2016-02-11 Richard Biener <rguenther@suse.de>
4848 PR rtl-optimization/69291
4849 * ifcvt.c (noce_try_store_flag_constants): Do not allow
4850 subexpressions affected by changing the result.
4852 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
4855 * lra-constraints.c (curr_insn_transform): Find in/out operands
4856 for secondary memory moves. Update dups.
4858 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
4860 PR tree-optimization/69652
4861 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
4862 to nested loop, did source re-formatting, skip debug statements,
4863 add check on statement with volatile operand, remove dead scalar
4866 2016-02-10 Jakub Jelinek <jakub@redhat.com>
4867 Patrick Palka <ppalka@gcc.gnu.org>
4871 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
4872 calls if the return type is TREE_ADDRESSABLE.
4873 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
4874 * ipa-split.c (split_function): Fix doubled "we" in comment.
4875 Use void return type for the split part even if
4876 !split_point->split_part_set_retval.
4878 2016-02-10 Bin Cheng <bin.cheng@arm.com>
4880 PR tree-optimization/68021
4881 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
4882 when computing the value of biv cand by itself.
4884 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
4886 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
4887 (cortexa57_tunings): Likewise.
4888 (cortexa72_tunings): Likewise.
4889 (arch_macro_fusion_pair_p): Add support for AES fusion.
4890 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
4891 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
4892 Allow virtual registers before reload so early scheduling works.
4893 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
4894 correct latency and pipeline.
4895 (cortex_a57_crypto_complex): Likewise.
4896 (cortex_a57_crypto_xor): Likewise.
4897 (define_bypass): Add AES bypass.
4899 2016-02-10 Richard Biener <rguenther@suse.de>
4901 PR tree-optimization/69726
4902 * passes.def: Add DCE pass before late uninit.
4903 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
4904 really fixup if-conversions job.
4906 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
4908 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
4909 (arm_cortex_a57_tune): Likewise.
4910 (aarch_macro_fusion_pair_p): Add support for AES fusion.
4911 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
4913 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
4915 * timevar.def (TV_PHASE_DBGINFO): Delete.
4916 (TV_PHASE_CHECK_DBGINFO): Likewise.
4917 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
4919 2016-02-10 Richard Biener <rguenther@suse.de>
4921 PR tree-optimization/69719
4922 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
4923 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
4925 2016-02-09 Andrew Pinski <apinski@cavium.com>
4928 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
4929 get_vcond_mask_icode returns false.
4931 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4934 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
4935 an ADDIS that adds a pointer to a large constant that sets the
4936 upper16 bits with a load operation.
4938 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
4941 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
4943 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
4945 (vzipq_s16): Likewise.
4946 (vzipq_s32): Likewise.
4947 (vzipq_f32): Likewise.
4948 (vzipq_u8): Likewise.
4949 (vzipq_u16): Likewise.
4950 (vzipq_u32): Likewise.
4951 (vzipq_p8): Likewise.
4952 (vzipq_p16): Likewise.
4954 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
4957 * config/arm/arm.c (neon_endian_lane_map): New function.
4958 (neon_vector_pair_endian_lane_map): New function.
4959 (arm_evpc_neon_vuzp): Allow for big endian lane order.
4960 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
4962 (vuzpq_s16): Likewise.
4963 (vuzpq_s32): Likewise.
4964 (vuzpq_f32): Likewise.
4965 (vuzpq_u8): Likewise.
4966 (vuzpq_u16): Likewise.
4967 (vuzpq_u32): Likewise.
4968 (vuzpq_p8): Likewise.
4969 (vuzpq_p16): Likewise.
4971 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
4974 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
4977 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
4979 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
4980 truncate const_int operand 1 to QImode.
4982 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
4984 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
4985 corresponding to an abnormal edge.
4987 2016-02-09 Tom de Vries <tom@codesourcery.com>
4989 PR tree-optimization/69599
4990 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
4992 (find_func_aliases_for_builtin_call, find_func_clobbers)
4993 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
4996 2016-02-09 Richard Biener <rguenther@suse.de>
4998 PR tree-optimization/69715
4999 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
5000 LHS on calls as non-rewritable.
5002 2016-02-09 Tom de Vries <tom@codesourcery.com>
5005 * lto-wrapper.c (append_diag_options): New function.
5006 (compile_offload_image): Call append_diag_options.
5008 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
5011 * doc/extend.texi (Flag Output Operands): Correct sectioning.
5012 Minor copy-edit to fix verb tenses.
5014 2016-02-08 Jakub Jelinek <jakub@redhat.com>
5016 PR tree-optimization/69209
5017 * ipa-split.c (split_function): If split part is not
5018 returning retval, retval has gimple type but is not
5019 gimple value, force it into a SSA_NAME first.
5021 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
5023 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
5026 2016-02-08 Jason Merrill <jason@redhat.com>
5029 * convert.c (convert_to_integer_1): Check dofold on truncation
5031 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
5032 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
5033 Rename from *_nofold.
5034 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
5035 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
5037 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
5040 * tree.c (build_common_tree_nodes): Remove short_double argument.
5041 All callers changed.
5042 * tree.h (build_common_tree_nodes): Adjust declaration.
5043 * doc/invoke.texi (-fshort-double): Remove documentation.
5044 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5045 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
5046 * lto-wrapper.c (merge_and_complain, append_compiler_options)
5047 (append_linker_options): Don't handle OPT_fshort_double.
5049 PR rtl-optimization/68730
5050 * lra-remat.c (insn_to_cand_activation): New static variable.
5051 (lra_remat): Allocate and free it.
5052 (create_cand): New arg activation. Initialize a field in
5053 insn_to_cand_activation if it is nonnull.
5054 (create_cands): Pass the activation insn to create_cand when making
5055 a candidate involving an output reload. Reorganize code a little.
5056 (do_remat): Keep track of active status of candidates in a separate
5059 2016-02-08 Richard Biener <rguenther@suse.de>
5061 PR tree-optimization/69719
5062 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5063 Properly use absolute of the difference of the two offsets to
5064 compare or adjust the segment length.
5066 2016-02-08 Richard Biener <rguenther@suse.de>
5067 Jeff Law <law@redhat.com>
5070 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
5071 types for anonymous SSA names.
5073 2016-02-08 Richard Biener <rguenther@suse.de>
5075 PR rtl-optimization/69274
5076 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
5078 2016-02-08 Jeff Law <law@redhat.com>
5080 PR tree-optimization/65917
5081 * tree-ssa-dom.c (record_temporary_equivalences): Record both
5082 equivalences from if (x == y) style conditionals.
5083 (loop_depth_of_name): Remove.
5084 (record_equality): Remove loop depth check.
5085 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
5086 (const_and_copies::record_const_or_copy_raw): New member function.
5087 * tree-ssa-scopedtables.c
5088 (const_and_copies::record_const_or_copy_raw): New, factored out of
5089 (const_and_copies::record_const_or_copy): Call new member function.
5091 2016-02-05 Jeff Law <law@redhat.com>
5093 PR tree-optimization/68541
5094 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
5095 (count_stmts_in_block): New function.
5096 (poor_ifcvt_candidate_code): Likewise.
5097 (is_feasible_trace): Add some heuristics to determine when path
5098 splitting is profitable.
5099 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
5100 is a diamond with a single exit.
5102 2016-02-05 Martin Sebor <msebor@redhat.com>
5105 * doc/invoke.texi: Update -Wplacement-new to take an optional
5108 2016-02-06 Richard Henderson <rth@redhat.com>
5111 * tree.c (tree_nop_conversion_p): Do not strip casts into or
5112 out of non-standard address spaces.
5114 2016-02-05 Jakub Jelinek <jakub@redhat.com>
5116 PR rtl-optimization/69691
5117 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
5119 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
5121 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
5122 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
5123 (*ieee128_mfvsrd_64bit): Likewise.
5124 (*ieee128_mfvsrd_32bit): Likewise.
5126 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
5130 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
5132 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
5133 instrumented_version.
5135 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
5137 * doc/invoke.texi (Optimize Options): In table of --param options
5138 rename second occurrence of tracer-min-branch-ratio to
5139 tracer-min-branch-probability, rename
5140 tracer-min-branch-ratio-feedback to
5141 tracer-min-branch-probability-feedback and clarify description,
5142 rename sched-spec-state-edge-prob-cutoff to
5143 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
5144 to selsched-insns-to-rename, rename lto-minpartition to
5145 lto-min-partition, delete reorder-blocks-duplicate and
5146 reorder-blocks-duplicate-feedback.
5148 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5150 * config/s390/s390.c (s390_register_info_set_ranges): Remove
5153 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
5155 * doc/extend.texi: S/390: Correct some typos.
5157 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5159 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
5161 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5164 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
5165 (s390_register_info_gprtofpr): Use new macros above.
5166 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
5168 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
5169 its name. Adjust restore and save gpr ranges.
5170 (s390_register_info_set_ranges): New function.
5171 (s390_register_info): Use new macros above. Call
5172 s390_register_info_set_ranges.
5173 (s390_optimize_register_info): Likewise.
5174 (s390_hard_regno_rename_ok): Use new macros.
5175 (s390_hard_regno_scratch_ok): Likewise.
5176 (s390_emit_epilogue): Likewise.
5177 (s390_can_use_return_insn): Likewise.
5178 (s390_optimize_prologue): Likewise.
5179 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
5181 2016-02-05 Jakub Jelinek <jakub@redhat.com>
5184 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
5186 (ix86_option_override_internal): Disable TARGET_STV even for
5187 -m{incoming,preferred}-stack-boundary=3.
5189 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5191 * config.gcc: Mark deprecated rtems targets as obsolete.
5193 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
5195 PR rtl-optimization/64682
5196 PR rtl-optimization/69567
5197 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
5198 before I2 only if the register is both used and set in I2.
5200 2016-02-04 DJ Delorie <dj@redhat.com>
5202 * config/msp430/msp430.c (msp430_start_function): Add function type.
5204 2016-02-04 Jakub Jelinek <jakub@redhat.com>
5207 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
5209 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
5211 PR rtl-optimization/69577
5213 2015-10-29 Richard Henderson <rth@redhat.com>
5217 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
5218 sse check to the exact conditions of PR 67609.
5220 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
5223 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
5224 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
5225 not allowed into the traditional Altivec registers.
5226 (movtd_64bit_nodm): Likewise.
5227 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
5229 2016-02-04 David Malcolm <dmalcolm@redhat.com>
5231 * config/aarch64/cortex-a57-fma-steering.c
5232 (aarch64_register_fma_steering): Remove "static" from arguments
5235 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
5238 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
5241 2016-02-04 Mike Frysinger <vapier@gentoo.org>
5243 * doc/invoke.texi: Delete -mno-fma4.
5245 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
5247 PR rtl-optimization/69577
5248 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
5249 (find_subregs_of_mode): Update accordingly. Iterate over partial
5252 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
5254 * config/arm/arm-protos.h (neon_reinterpret): Remove.
5255 * config/arm/arm.c (neon_reinterpret): Remove.
5256 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
5257 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
5258 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
5259 vreinterpretti): Remove.
5260 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
5261 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
5262 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
5263 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
5264 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
5265 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
5266 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
5267 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
5268 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
5269 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
5270 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
5271 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
5272 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
5273 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
5274 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
5275 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
5276 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
5277 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
5278 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
5279 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
5280 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
5281 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
5282 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
5283 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
5284 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
5285 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
5286 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
5287 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
5288 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
5289 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
5290 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
5291 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
5292 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
5293 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
5294 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
5295 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
5296 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
5297 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
5298 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
5299 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
5300 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
5301 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
5302 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
5303 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
5304 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
5305 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
5306 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
5307 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
5308 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
5309 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
5310 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
5311 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
5312 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
5313 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
5314 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
5315 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
5316 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
5317 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
5318 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
5319 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
5320 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
5321 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
5322 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
5323 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
5324 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
5325 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
5326 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
5327 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
5328 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
5329 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
5330 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
5331 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
5332 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
5333 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
5334 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
5335 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
5336 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
5337 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
5338 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
5339 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
5340 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
5341 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
5342 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
5343 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
5344 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
5345 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
5346 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
5347 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
5348 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
5349 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
5350 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
5351 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
5352 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
5353 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
5354 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
5355 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
5356 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
5357 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
5358 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
5359 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
5360 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
5361 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
5362 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
5364 2016-02-04 Martin Liska <mliska@suse.cz>
5367 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
5368 that are gimple_store_p.
5369 (maybe_instrument_call): Likewise.
5371 2016-02-04 Bin Cheng <bin.cheng@arm.com>
5373 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
5374 register scaling out of memory reference and comment why.
5376 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5380 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
5381 folding the source of a SET.
5383 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5387 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
5388 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
5390 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
5394 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
5397 2016-02-04 Christian Bruel <christian.bruel@st.com>
5399 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
5400 * config/arm/arm.c (arm_set_current_function): Likewise.
5402 2016-02-04 Jakub Jelinek <jakub@redhat.com>
5403 Ilya Enkovich <enkovich.gnu@gmail.com>
5404 H.J. Lu <hongjiu.lu@intel.com>
5407 * config/i386/i386.c (convert_scalars_to_vector): Remove
5408 stack alignment fixes.
5409 (ix86_option_override_internal): Disable TARGET_STV if stack
5410 might not be aligned enough.
5411 (ix86_minimum_alignment): Assert that TARGET_STV is false.
5413 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
5415 * gcc/config/i386/x86-tune.def: Disable default prefetching
5418 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5419 Vladimir Makarov <vmakarov@redhat.com>
5422 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
5423 in validating fused toc addresses.
5425 2016-02-03 Jakub Jelinek <jakub@redhat.com>
5428 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
5429 range->m_caret fields if range->m_show_caret_p is false.
5432 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
5433 Force oldval into register if it does not satisfy reg_or_short_operand
5434 predicate. Fix up formatting.
5436 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
5437 Alexandre Oliva <aoliva@redhat.com>
5440 * lra-constraints.c (simplify_operand_subreg): Check additionally
5441 address validity after potential reloading.
5442 (process_address_1): Check insns validity. In case of failure do
5445 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
5448 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
5451 2016-02-02 Jakub Jelinek <jakub@redhat.com>
5453 * wide-int.cc (canonize_uhwi): New function.
5454 (wi::divmod_internal): Use it.
5456 2016-02-02 James Norris <jnorris@codesourcery.com
5458 * gimplify.c (omp_notice_variable): Add usage check.
5460 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5462 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
5463 like LE, GE, LT, GT when emitting relational operator.
5465 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
5467 * ira-costs.c (find_costs_and_classes): Add extra argument.
5468 * target.def (ira_change_pseudo_allocno_class): Add parameter.
5469 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
5470 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
5471 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
5472 Add best_class parameter, and return it if not ALL_REGS.
5473 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
5475 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
5478 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
5480 * config/aarch64/aarch64.c
5481 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
5482 (aarch64_ira_change_pseudo_allocno_class): New function.
5484 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
5487 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
5489 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5491 * config/avr/avr.c (avr_option_override): Set
5492 PARAM_ALLOW_STORE_DATA_RACES to 1.
5494 2016-02-02 Richard Biener <rguenther@suse.de>
5496 PR tree-optimization/69595
5497 * match.pd: Add range test simplifications to true/false.
5499 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
5501 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
5502 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
5505 2016-02-02 Richard Biener <rguenther@suse.de>
5507 PR tree-optimization/69606
5508 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
5509 info on the result before moving a stmt.
5511 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
5514 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
5515 branch with vector comparison.
5516 * config/i386/sse.md (VI48_AVX): New mode iterator.
5517 (define_expand "cbranch<mode>4): Add support for conditional branch
5518 with vector comparison.
5519 * tree-vect-loop.c (optimize_mask_stores): New function.
5520 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
5521 has_mask_store field of vect_info.
5522 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
5523 vectorized loops having masked stores after vec_info destroy.
5524 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
5525 correspondent macros.
5526 (optimize_mask_stores): Add prototype.
5528 2016-02-02 Alan Modra <amodra@gmail.com>
5531 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
5534 2016-02-02 Alan Modra <amodra@gmail.com>
5537 * config/rs6000/rs6000.c (need_toc_init): New var, set it
5538 whenever toc_label_name used.
5539 (rs6000_file_start): Don't set up toc section here,
5540 (rs6000_output_function_epilogue): do so here instead,
5541 (rs6000_xcoff_file_start): and here.
5542 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
5543 (load_toc_aix_di): Likewise.
5545 2016-02-01 Jakub Jelinek <jakub@redhat.com>
5547 PR rtl-optimization/69592
5548 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
5549 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
5550 (num_sign_bit_copies_binary_arith_p): New inline function.
5551 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
5553 2016-02-01 Jeff Law <law@redhat.com>
5555 PR tree-optimization/69580
5556 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
5557 * tree-ssa-threadbackward.c
5558 (fsm_find_control_statement_thread_paths): Do not try to walk
5559 through large PHI nodes.
5561 2016-02-01 Jakub Jelinek <jakub@redhat.com>
5563 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
5564 when count is incremented above limit, don't analyze further
5567 * omp-low.c (oacc_parse_default_dims): Avoid
5568 -Wsign-compare warning, make sure value fits into int
5569 rather than just unsigned int.
5571 2016-02-01 Bin Cheng <bin.cheng@arm.com>
5573 PR tree-optimization/67921
5574 * fold-const.c (split_tree): New parameters. Convert pointer
5575 type variable part to proper type before negating.
5576 (fold_binary_loc): Pass new arguments to split_tree.
5578 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
5580 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
5581 (nvptx_goacc_validate_dims): Extend to handle global defaults.
5582 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
5583 * doc/tm.texti: Rebuilt.
5584 * doc/invoke.texi (fopenacc-dim): Document.
5585 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
5586 (append_compiler_options): Likewise.
5587 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
5588 (oacc_parse_default_dims): New.
5589 (oacc_validate_dims): Add USED arg. Select non-unity default when
5591 (oacc_loop_fixed_partitions): Return mask of used partitions.
5592 (oacc_loop_auto_partitions): Emit dump info.
5593 (oacc_loop_partition): Return mask of used partitions.
5594 (execute_oacc_device_lower): Parse default dimension arg. Adjust
5595 loop partitioning and validation calls.
5597 2016-02-01 Richard Biener <rguenther@suse.de>
5600 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
5602 2016-02-01 Richard Biener <rguenther@suse.de>
5604 PR tree-optimization/69574
5605 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
5606 of asserting return chrec_dont_know.
5608 2016-02-01 Martin Liska <mliska@suse.cz>
5610 * mem-stats-traits.h: Add copyright header.
5611 * mem-stats.h: Likewise.
5613 2016-02-01 Richard Biener <rguenther@suse.de>
5615 PR tree-optimization/69579
5616 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
5617 Do not propagate through abnormal PHI results.
5619 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
5621 * postreload.c (reload_cse_simplify): Remove dead code.
5623 2016-02-01 Jakub Jelinek <jakub@redhat.com>
5625 PR rtl-optimization/69570
5626 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
5627 if there is more than one set, not if there is a single set.
5629 2016-02-01 Richard Henderson <rth@redhat.com>
5632 * combine.c (make_compound_operation): When looking through a
5633 subreg, make sure to re-extend to the width of the outer mode.
5635 2016-01-30 Jakub Jelinek <jakub@redhat.com>
5637 PR tree-optimization/69546
5638 * wide-int.cc (wi::divmod_internal): For unsigned division
5639 where both operands fit into uhwi, if o1 is 1 and o0 has
5640 msb set, if divident_prec is larger than bits per hwi,
5641 clear another quotient word and return 2 instead of 1.
5642 Similarly for remainder with msb in HWI set, if dividend_prec
5643 is larger than bits per hwi.
5645 2016-01-29 Martin Jambor <mjambor@suse.cz>
5647 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
5648 Use short lowercase names.
5649 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
5650 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
5651 acq_rel one. Protect warning agains segfaults if
5652 get_memory_order_name returns NULL.
5653 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
5654 with release semantics. Do not warn if get_memory_order already did.
5655 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
5656 semantics. Fix check for relaxed or acquire semantics. Do not warn
5657 if get_memory_order already did.
5659 2016-01-29 Sebastian Pop <s.pop@samsung.com>
5661 * doc/install.texi: Document that isl-0.16 is supported.
5663 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
5666 * config/i386/constraints.md (Bm): Describe as special memory
5668 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
5669 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
5670 * genpreds.c (struct constraint_data): Add is_special_memory.
5671 (have_special_memory_constraints, special_memory_start): New
5673 (special_memory_end): Ditto.
5674 (add_constraint): Add new arg is_special_memory. Add code to
5675 process its true value. Update have_special_memory_constraints.
5676 (process_define_constraint): Pass the new arg.
5677 (process_define_register_constraint): Ditto.
5678 (choose_enum_order): Process special memory.
5679 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
5680 function insn_extra_special_memory_constraint.
5681 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
5682 * gensupport.c (process_rtx): Process
5683 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
5684 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
5685 * ira-lives.c (single_reg_class): Use
5686 insn_extra_special_memory_constraint.
5687 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
5688 * lra-constraints.c (process_alt_operands): Ditto.
5689 (curr_insn_transform): Use insn_extra_special_memory_constraint.
5690 * recog.c (asm_operand_ok, preprocess_constraints): Process
5692 * reload.c (find_reloads): Ditto.
5693 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
5694 * stmt.c (parse_input_constraint): Use
5695 insn_extra_special_memory_constraint.
5697 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
5700 * lra-splill.c (lra_final_code_change): Revert r229087 by
5701 removing all sub-registers.
5703 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
5706 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
5708 2016-01-29 Jakub Jelinek <jakub@redhat.com>
5711 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
5712 SSE1, copy target into the temporary reg first before recursing
5715 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
5717 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
5720 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
5722 * ginclude/stdarg.h: Test __cplusplus instead of
5723 __GXX_EXPERIMENTAL_CXX0X__.
5725 2016-01-29 Richard Biener <rguenther@suse.de>
5727 PR tree-optimization/69547
5728 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
5729 Do not mark clobbers necessary.
5730 (mark_all_reaching_defs_necessary_1): Likewise.
5732 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
5734 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
5735 declaration name with %qs and print it in both error messages.
5736 Also fix indentation.
5738 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
5741 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
5742 trailing blank line from error message.
5744 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
5747 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
5750 2016-01-29 Richard Biener <rguenther@suse.de>
5753 * match.pd: Allow all integral types when simplifying a
5754 widening or sign-changing conversion.
5756 2016-01-28 Sebastian Pop <s.pop@samsung.com>
5758 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
5759 back to setting codegen_error to fail codegen.
5761 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
5764 * config/i386/constraints.md (C): Only accept constant zero operand.
5765 (BC): New constraint.
5766 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
5767 instead of C constraint.
5768 * doc/md.texi (Machine Constraints): Update description
5771 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
5774 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
5776 2016-01-28 Jakub Jelinek <jakub@redhat.com>
5779 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
5782 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
5784 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
5785 branches if using guessed profile.
5787 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
5789 * graphite-optimize-isl.c (optimize_isl): Fix dump.
5791 2016-01-28 Richard Henderson <rth@redhat.com>
5794 * config/aarch64/aarch64-modes.def (CC_Cmode): New
5795 * config/aarch64/aarch64-protos.h: Update.
5796 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
5797 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
5798 (aarch64_get_condition_code_1): Handle CC_Cmode.
5799 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
5800 (*add<mode>3_compareC_cconly_imm): New.
5801 (*add<mode>3_compareC_cconly): New.
5802 (*add<mode>3_compareC_imm): New.
5803 (add<mode>3_compareC): New.
5804 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
5805 to be first. Use aarch64_carry_operation.
5806 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
5807 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
5808 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
5809 (subti3): Use subdi3_compare1.
5810 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
5811 (sub<mode>3_compare1): New.
5812 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
5813 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
5814 (*subsi3_carryin_uxtw): Likewise.
5815 (*ngc<mode>, *ngcsi_uxtw): Likewise.
5816 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
5817 * config/aarch64/iterators.md (DWI): New.
5818 * config/aarch64/predicates.md (aarch64_carry_operation): New.
5819 (aarch64_borrow_operation): New.
5821 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5823 * graphite-optimize-isl.c (optimize_isl): Print a different debug
5824 message when isl does not return a valid schedule.
5826 2016-01-28 Sebastian Pop <s.pop@samsung.com>
5828 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
5829 Remove comments from class declarations: they are already in the code
5832 2016-01-28 Sebastian Pop <s.pop@samsung.com>
5834 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
5836 (ternary_op_to_tree): Same.
5837 (unary_op_to_tree): Same.
5838 (nary_op_to_tree): Same.
5839 (gcc_expression_from_isl_expr_op): Same.
5840 (gcc_expression_from_isl_expression): Same.
5841 (graphite_create_new_loop): Same.
5842 (graphite_create_new_loop_guard): Same.
5843 (build_iv_mapping): Same.
5844 (graphite_create_new_guard): Same.
5845 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
5846 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
5848 2016-01-28 Sebastian Pop <s.pop@samsung.com>
5850 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
5851 instead of setting codegen_error to fail codegen.
5853 2016-01-28 Jason Merrill <jason@redhat.com>
5855 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
5857 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
5859 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
5860 Remove CONST_INT_P check in CCMP cost calculation.
5862 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
5864 * config/aarch64/aarch64.c (generic_vector_cost):
5865 Set vec_permute_cost.
5866 (cortexa57_vector_cost): Likewise.
5867 (exynosm1_vector_cost): Likewise.
5868 (xgene1_vector_cost): Likewise.
5869 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
5870 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
5871 Add vec_permute_cost entry.
5873 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
5875 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
5877 (add<mode>3_compare0): Likewise.
5878 (addsi3_compare0_uxtw): Likewise.
5879 (add<mode>3nr_compare0): Likewise.
5880 (compare_neg<mode>): Likewise.
5881 (<optab><mode>3): Likewise.
5883 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
5885 * tree-vect-stmts.c (vectorizable_comparison): Add
5886 NULL check for vectype.
5888 2016-01-28 Richard Biener <rguenther@suse.de>
5890 PR tree-optimization/69466
5891 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
5892 Account for PHIs we couldn't duplicate.
5894 2016-01-28 Martin Liska <mliska@suse.cz>
5897 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
5898 instead of ENABLE_VALGRIND_CHECKING.
5900 2016-01-27 Richard Henderson <rth@redhat.com>
5903 * lra-remat.c (subreg_regs): New.
5904 (dump_candidates_and_remat_bb_data): Dump it.
5905 (operand_to_remat): Reject if operand in subreg_regs.
5906 (set_bb_regs): Collect subreg_regs.
5907 (lra_remat): Init and free subreg_regs. Compute
5908 calculate_local_reg_remat_bb_data before create_cands.
5910 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
5913 * config/i386/i386.c (ix86_update_stack_boundary): Don't
5914 change stack_alignment_needed for __tls_get_addr call.
5916 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
5918 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
5920 2016-01-27 Jeff Law <law@redhat.com>
5922 PR tree-optimization/68398
5923 PR tree-optimization/69196
5924 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
5925 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
5926 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5927 Only count PHIs in the last block in the path. The others will
5928 const/copy propagate away. Add heuristic to allow more irreducible
5929 subloops to be created when it is likely profitable to do so.
5931 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5932 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
5933 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
5935 2016-01-27 Jakub Jelinek <jakub@redhat.com>
5938 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
5939 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
5940 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
5941 * tree-streamer-in.c: Include asan.h.
5942 (streamer_get_builtin_tree): For builtins in sanitizer
5943 range call initialize_sanitizer_builtins and retry.
5945 2016-01-27 Ian Lance Taylor <iant@google.com>
5947 * common.opt (fkeep-gc-roots-live): New undocumented option.
5948 * tree-ssa-loop-ivopts.c (add_candidate_1): If
5949 -fkeep-gc-roots-live, skip pointers.
5950 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
5953 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
5956 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
5957 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
5959 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
5962 * configure.ac: NetBSD provides SSP in its C library.
5963 * configure: Updated.
5965 2016-01-27 Richard Biener <rguenther@suse.de>
5967 PR tree-optimization/69166
5968 * tree-vect-loop.c (vect_is_simple_reduction): Always check
5969 reduction code for commutativity / associativity.
5971 2016-01-27 Martin Jambor <mjambor@suse.cz>
5973 PR tree-optimization/69355
5974 * tree-sra.c (analyze_access_subtree): Correct hole detection when
5975 total_scalarization fails.
5977 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
5979 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
5982 2016-01-27 Christian Bruel <christian.bruel@st.com>
5985 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
5986 Move arm_reset_previous_fndecl and set_target_option_current_node in
5987 the conditional part. Call save_restore_target_globals.
5988 * config/arm/arm.c (arm_set_current_function):
5989 Refactor to better support #pragma target and attribute mix.
5990 Call save_restore_target_globals.
5991 * config/arm/arm-protos.h (save_restore_target_globals): New function.
5993 2016-01-27 Martin Liska <mliska@suse.cz>
5995 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
5996 reference for an HSA kernel and its host function.
5998 2016-01-27 Jakub Jelinek <jakub@redhat.com>
6000 PR tree-optimization/69399
6001 * wide-int.h (wi::lrshift): For larger precisions, only
6002 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
6004 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
6006 * config/arc/predicates.md (proper_comparison_operator): Reject
6007 constant-constant comparison.
6009 2016-01-26 Tom de Vries <tom@codesourcery.com>
6011 PR tree-optimization/69110
6012 * tree-data-ref.c (initialize_data_dependence_relation): Handle
6013 DR_NUM_DIMENSIONS == 0.
6015 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6016 Sebastian Pop <s.pop@samsung.com>
6018 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
6019 isl_ast_op_cond and isl_ast_op_select.
6020 (gcc_expression_from_isl_expr_op): Same.
6022 2016-01-26 Jason Merrill <jason@redhat.com>
6025 * tree.c (recompute_constructor_flags): Split out from
6027 (verify_constructor_flags): New.
6028 * tree.h: Declare them.
6030 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
6032 PR rtl-optimization/69217
6033 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
6034 are no TYPE_FIELDS set for the record type.
6036 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6039 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
6040 toc_label_name unconditionally.
6041 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
6042 SYMBOL_REF string. Use toc_label_name instead of constructing
6044 (rs6000_elf_declare_function_name): Use toc_label_name instead of
6045 constructing LCTOC1.
6047 2016-01-26 Martin Sebor <msebor@redhat.com>
6050 * doc/extend.texi (Common Type Attributes): Move text that talks about
6051 attribute packed from attribute aligned to the section discussing
6052 the former attribute for clarity.
6054 2016-01-26 Richard Henderson <rth@redhat.com>
6057 * trans-mem.c (tm_region_init): Mark entry block as visited.
6059 2016-01-26 David Malcolm <dmalcolm@redhat.com>
6062 * diagnostic-show-locus.c (layout::print_source_line): Replace
6063 call to pp_newline with call to layout::print_newline.
6064 (layout::print_annotation_line): Likewise.
6065 (layout::move_to_column): Likewise.
6066 (layout::print_any_fixits): After printing any fixits, print a
6067 trailing newline, if necessary.
6068 (layout::print_newline): New method, resetting any colorization
6070 (diagnostic_show_locus): Move the pp_newline to before the
6071 early bailout. Remove dummy block enclosing the layout instance.
6072 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
6073 of pp_newline_and_flush with pp_flush.
6074 (diagnostic_append_note): Delete use of pp_newline.
6075 (diagnostic_append_note_at_rich_loc): Delete.
6076 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
6077 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
6078 when newline characters are added to the buffer.
6080 2016-01-26 Michael Matz <matz@suse.de>
6082 * configure.ac (ac_cv_std_swap_in_utility): New test.
6083 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
6084 * configure: Regenerate.
6085 * config.in: Regenerate.
6087 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
6089 * config/arc/arc.md (cstoresi4): Force operand into register.
6090 (arcset<code>): Fix predicate.
6091 (arcsetltu): Likewise.
6092 (arcsetgeu): Likewise.
6093 (arcsethi): Likewise.
6094 (arcsetls): Likewise.
6096 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6098 PR tree-optimization/69483
6099 * gimple-fold.c (canonicalize_constructor_val): Return NULL
6100 if base has error_mark_node type.
6102 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
6105 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
6106 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
6108 (vget_lane_f16): Handle big-endian.
6109 (vgetq_lane_f16): Likewise.
6110 (vset_lane_f16): Likewise.
6111 (vsetq_lane_f16): Likewise.
6112 * config/arm/iterators.md (VQXMOV): Add V8HF.
6113 (VDQ): Add V4HF and V8HF.
6114 (V_reg): Handle V4HF and V8HF.
6115 (Is_float_mode): Likewise.
6116 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
6117 neon_vdup_nv8hf): New patterns.
6118 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
6119 Use VD_LANE iterator.
6120 (neon_vld1_dup<mode>): Use VQ2 iterator.
6122 2016-01-26 Nathan Sidwell <nathan@acm.org>
6124 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
6125 (set_oacc_fn_attrib): Add IS_KERNEL arg.
6126 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
6127 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
6128 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
6129 (oacc_validate_dims): Add LEVEL arg, don't return level.
6130 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
6132 (execute_oacc_device_lower): Adjust, add more dump output.
6133 * tree-ssa-loop.c (gate_oacc_kernels): Use
6134 oacc_fn_attrib_kernels_p.
6135 * tree-parloops.c (create_parallel_loop): Adjust
6136 set_oacc_fn_attrib call.
6138 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6141 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
6142 (append_compiler_options): Handle -fcilkplus.
6143 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
6145 2016-01-26 Nick Clifton <nickc@redhat.com>
6148 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
6149 been marked as DECL_ONE_ONLY but we do not the means to make it
6150 so, then do not allow it to bind locally.
6152 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6155 * opts.h (parse_sanitizer_options): New prototype.
6156 * opts.c (sanitizer_opts): New array.
6157 (parse_sanitizer_options): New function.
6158 (common_handle_option): Use parse_sanitizer_options.
6160 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
6163 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
6164 alignment adjustment to ...
6165 (ix86_update_stack_boundary): Here. Don't over-align stack for
6167 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
6168 if __tls_get_addr is called.
6170 2016-01-26 Christian Bruel <christian.bruel@st.com>
6172 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
6174 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
6176 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
6178 2016-01-26 Richard Biener <rguenther@suse.de>
6181 * match.pd: Guard X * CST CMP 0 pattern with single_use.
6183 2016-01-26 Richard Biener <rguenther@suse.de>
6185 PR tree-optimization/69452
6186 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
6187 (move_computations_dom_walker::before_dom_children): Rename
6189 (move_computations_worker): This.
6190 (move_computations): Perform an RPO rather than a DOM walk.
6192 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6195 * combine.c (combine_instructions): For REG_EQUAL note with
6196 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
6197 to the underlying register.
6198 * doc/rtl.texi (REG_EQUAL): Document the behavior of
6199 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
6201 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
6204 * config/aarch64/aarch64-builtins.c
6205 (aarch64_init_simd_builtin_types): Do not set structural
6206 equality to __Poly{8,16,64,128}_t types.
6208 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
6210 PR tree-optimization/69400
6211 * wide-int.cc (wi_pack): Take the precision as argument and
6212 perform canonicalization here rather than in the callers.
6213 Use the main loop to handle all full-width HWIs. Add a
6214 zero HWI if in_len isn't a full result.
6215 (wi::divmod_internal): Update accordingly.
6216 (wi::mul_internal): Likewise. Simplify.
6218 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
6219 Sebastian Pop <s.pop@samsung.com>
6221 * graphite-poly.c (apply_poly_transforms): Simplify.
6222 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
6223 (print_isl_map): Same.
6224 (print_isl_union_map): Same.
6225 (print_isl_schedule): New.
6226 (debug_isl_schedule): New.
6227 * graphite-dependences.c (scop_get_reads): Do not call
6228 isl_union_map_add_map that is undocumented isl functionality.
6229 (scop_get_must_writes): Same.
6230 (scop_get_may_writes): Same.
6231 (scop_get_original_schedule): Remove.
6232 (scop_get_dependences): Do not call isl_union_map_compute_flow that
6233 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
6234 (compute_deps): Remove.
6235 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
6236 (debug_schedule_ast): New.
6237 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
6238 set_separate_option.
6239 (graphite_regenerate_ast_isl): Add dump.
6240 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
6241 from scop->transformed_schedule.
6242 (graphite_regenerate_ast_isl): Add more dump.
6243 * graphite-optimize-isl.c (optimize_isl): Set
6244 scop->transformed_schedule. Check whether schedules are equal.
6245 (apply_poly_transforms): Move here.
6246 * graphite-poly.c (apply_poly_transforms): ... from here.
6247 (free_poly_bb): Static.
6248 (free_scop): Static.
6249 (pbb_number_of_iterations_at_time): Remove.
6250 (print_isl_ast): New.
6251 (debug_isl_ast): New.
6252 (debug_scop_pbb): New.
6253 * graphite-scop-detection.c (print_edge): Move.
6255 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
6256 (build_scop_scattering): Remove.
6257 (create_pw_aff_from_tree): Assert instead of bailing out.
6258 (add_condition_to_pbb): Remove unused code, do not fail.
6259 (add_conditions_to_domain): Same.
6260 (add_conditions_to_constraints): Remove.
6261 (build_scop_context): New.
6262 (add_iter_domain_dimension): New.
6263 (build_iteration_domains): Initialize pbb->iterators.
6264 Call add_conditions_to_domain.
6267 (index_outermost_in_loop): New.
6268 (index_pbb_in_loop): New.
6269 (outermost_pbb_in): New.
6270 (add_in_sequence): New.
6271 (add_outer_projection): New.
6272 (outer_projection_mupa): New.
6273 (add_loop_schedule): New.
6274 (build_schedule_pbb): New.
6275 (build_schedule_loop): New.
6276 (embed_in_surrounding_loops): New.
6277 (build_schedule_loop_nest): New.
6278 (build_original_schedule): New.
6279 (build_poly_scop): Call build_original_schedule.
6280 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
6281 (free_poly_dr): Remove.
6282 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
6283 (free_poly_bb): Remove.
6284 (debug_loop_vec): Remove.
6285 (print_isl_ast): Declare.
6286 (debug_isl_ast): Declare.
6287 (scop_do_interchange): Remove.
6288 (scop_do_strip_mine): Remove.
6289 (scop_do_block): Remove.
6290 (flatten_all_loops): Remove.
6291 (optimize_isl): Remove.
6292 (pbb_number_of_iterations_at_time): Remove.
6293 (debug_scop_pbb): Declare.
6294 (print_schedule_ast): Declare.
6295 (debug_schedule_ast): Declare.
6296 (struct scop): Remove schedule. Add original_schedule,
6297 transformed_schedule.
6298 (free_gimple_poly_bb): Remove.
6299 (print_generated_program): Remove.
6300 (debug_generated_program): Remove.
6301 (unify_scattering_dimensions): Remove.
6302 * sese.c (print_edge): ... here.
6303 (print_sese): ... here.
6304 (debug_edge): ... here.
6305 (debug_sese): ... here.
6306 * sese.h (print_edge): Declare.
6307 (print_sese): Declare.
6308 (dump_edge): Declare.
6309 (dump_sese): Declare.
6311 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
6312 Sebastian Pop <s.pop@samsung.com>
6314 * Makefile.in: Set ISLVER in site.exp.
6316 2016-01-25 Jakub Jelinek <jakub@redhat.com>
6318 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
6319 DECL_VALUE_EXPR of new_var even for the non-array case. Look
6320 through DECL_VALUE_EXPR for expansion.
6322 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6324 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
6325 the frame info after reload completed.
6327 2016-01-25 Jeff Law <law@redhat.com>
6329 PR tree-optimization/69196
6330 PR tree-optimization/68398
6331 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
6332 tree-ssa-threadupdate.c.
6333 (determine_bb_domination_status): Prototype
6334 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
6335 (determine_bb_domination_status): No longer static.
6336 (valid_jump_thread_path): Remove code to detect characteristics
6337 of the jump thread path not associated with correctness.
6338 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
6339 Correct test for thread path length. Count PHIs for real operands as
6340 statements that need to be copied. Do not count ASSERT_EXPRs.
6341 Look at all the blocks in the thread path. Compute and selectively
6342 filter thread paths based on threading through the latch, threading
6343 a multiway branch or crossing a multiway branch.
6345 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6347 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
6348 decl with __attribute__ ((unused)) annotation.
6350 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
6353 * tree-vect-stmts.c (vectorizable_condition): Check vectype
6354 of operands is compatible with a statement vectype.
6356 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
6358 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
6359 improve wording for mixed storage order support.
6361 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
6363 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
6364 (vcvt_u64_f64): Likewise.
6365 (vcvta_s64_f64): Likewise.
6366 (vcvta_u64_f64): Likewise.
6367 (vcvtm_s64_f64): Likewise.
6368 (vcvtm_u64_f64): Likewise.
6369 (vcvtn_s64_f64): Likewise.
6370 (vcvtn_u64_f64): Likewise.
6371 (vcvtp_s64_f64): Likewise.
6372 (vcvtp_u64_f64): Likewise.
6374 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
6376 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
6377 (arc_init): Check validity mll64 option.
6378 (arc_save_restore): Use double load/store instruction.
6379 (arc_expand_movmem): Likewise.
6380 (arc_split_move): Don't split if we have double load/store
6381 instructions. Returns a boolean.
6382 (arc_process_double_reg_moves): Change function to return boolean
6383 instead of a sequence of instructions.
6384 (arc_dwarf_register_span): New function.
6385 * config/arc/arc-protos.h (arc_split_move): Change prototype.
6386 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
6387 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
6388 (*movdf_insn): Likewise.
6389 * config/arc/arc.opt (mll64): New option.
6390 * config/arc/predicates.md (even_register_operand): New predicate.
6391 * doc/invoke.texi (ARC Options): Add mll64 documentation.
6393 2016-01-25 Richard Biener <rguenther@suse.de>
6396 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
6397 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
6399 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
6401 2016-01-25 Richard Biener <rguenther@suse.de>
6403 PR tree-optimization/69376
6404 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
6406 (VN_INFO_ANTI_RANGE_P): New inline.
6407 (VN_INFO_RANGE_TYPE): Likewise.
6408 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
6409 SSA_NAME_ANTI_RANGE_P.
6410 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
6411 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6412 Properly query VN_INFO_RANGE_TYPE.
6414 2016-01-25 Nick Clifton <nickc@redhat.com>
6417 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
6419 2016-01-23 Tom de Vries <tom@codesourcery.com>
6421 PR tree-optimization/69426
6422 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
6425 2016-01-23 Jakub Jelinek <jakub@redhat.com>
6427 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
6428 "the the" with "the" in the comments.
6429 * ipa-devirt.c (build_type_inheritance_graph,
6430 update_type_inheritance_graph): Likewise.
6431 * tree.c (build_function_type_list_1): Likewise.
6432 * cfgloopmanip.c (scale_loop_profile): Likewise.
6433 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
6434 * gimple-ssa-split-paths.c
6435 (find_block_to_duplicate_for_splitting_paths): Likewise.
6436 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
6437 * expr.c (convert_move): Likewise.
6438 * var-tracking.c (vt_stack_adjustments): Likewise.
6439 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
6440 * tree-vrp.c (test_for_singularity): Likewise.
6442 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
6443 directly instead of building a temporary tree.
6446 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
6447 remove <algorithm> include.
6449 2016-01-22 Jakub Jelinek <jakub@redhat.com>
6452 * config/i386/i386.c: Include dojump.h.
6453 (expand_small_movmem_or_setmem,
6454 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
6456 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
6457 if dynamic_check != -1.
6459 2016-01-21 Jeff Law <law@redhat.com>
6462 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
6463 record_temporary_equivalences. Rewritten to avoid unnecessary calls
6464 into dominated_by_p.
6465 (cprop_into_successor_phis): Avoid unnecessary tests.
6467 2016-01-22 Richard Henderson <rth@redhat.com>
6470 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
6471 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
6473 2016-01-22 Michael Matz <matz@suse.de>
6475 * system.h (string, algorithm): Include only conditionally.
6476 (new): Include always under C++.
6477 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
6478 * final.c (toplevel): Ditto.
6479 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
6480 * genconditions.c (write_header): Make gencondmd.c define
6482 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
6484 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
6485 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
6487 2016-01-22 Christian Bruel <christian.bruel@st.com>
6490 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
6492 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6495 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
6496 define_insn_and_split. Ensure operands[1] and operands[0] do not
6497 get assigned the same register.
6499 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
6501 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
6503 2016-01-22 Christian Bruel <christian.bruel@st.com>
6505 * config/arm/arm-c.c (arm_pragma_target_parse):
6506 Remove warn_builtin_macro_redefined overwrite.
6508 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
6510 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
6511 flag_non_call_exceptions compatibility.
6513 2016-01-22 Jakub Jelinek <jakub@redhat.com>
6516 * dwarf2out.c (add_child_die_after): New function.
6517 (dwarf_qual_info_t): New type.
6518 (dwarf_qual_info): New variable.
6519 (qualified_die_p): New function.
6520 (modified_type_die): For -fdebug-types-section, ensure
6521 canonical order of qualifiers. Put qualified DIEs adjacent
6522 to the corresponding non-qualified type DIE and search there
6523 for existing qualified DIEs.
6525 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
6527 * doc/extend.texi (scalar_storage_order type attribute): Document
6528 restriction on type punning and aliasing, and remove future tense.
6530 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
6533 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
6536 2016-01-21 Jeff Law <law@redhat.com>
6539 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
6540 useless call to record_temporary_equivalences.
6541 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
6542 allocate 10 slots in the bb_path vector and let it grow as needed.
6543 (fsm_find_control_statement_thread_paths): Similarly for the next_path
6546 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
6548 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
6550 * configure: Regenerate.
6552 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
6554 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
6555 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
6557 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
6560 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
6561 drop EXPAND_INITIALIZER.
6562 * rtl.h (contains_symbolic_reference_p): Declare.
6563 * rtlanal.c (contains_symbolic_reference_p): New function.
6564 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
6565 a subtraction into a NOT if symbolic constants are involved.
6567 2016-01-21 Anton Blanchard <anton@samba.org>
6568 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6571 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
6573 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
6576 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
6578 * config/microblaze/microblaze.c
6579 (get_branch_target): New.
6580 (insert_wic_for_ilb_runout): New.
6582 (microblaze_machine_dependent_reorg): New.
6583 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
6584 * config/microblaze/microblaze.md
6585 (UNSPEC_IPREFETCH): Define.
6586 (iprefetch): New pattern
6587 * config/microblaze/microblaze.opt
6588 (mxl-prefetch): New flag.
6590 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
6592 * config/microblaze/microblaze.h
6593 (FIXED_REGISTERS): Update in macro.
6594 (CALL_USED_REGISTERS): Update in macro.
6596 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
6598 PR rtl-optimization/68920
6599 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
6602 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
6604 PR rtl-optimization/68990
6605 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
6606 pseudo instead of inheritance ones.
6608 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
6609 Nick Clifton <nickc@redhat.com>
6613 * config/mips/mips.c (mips_compute_frame_info): Initialise
6614 args_size and hard_frame_pointer_offset fields of the frame
6615 structure before calling mips_global_pointer.
6617 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
6619 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
6621 * configure: Regenerate.
6623 2016-01-21 Richard Biener <rguenther@suse.de>
6625 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
6627 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
6629 * config/s390/s390.c (s390_asm_declare_function_size): Add code
6630 to actually emit the .size directive.
6632 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
6633 Jakub Jelinek <jakub@redhat.com>
6637 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
6638 args array size by one to avoid buffer overflow.
6640 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
6642 * config/s390/s390.md (pool_section_start): Use switch_to_section
6643 to select proper read-only data section instead of hardcoding
6645 (pool_section_end): Use switch_to_section to match the above.
6647 2016-01-21 Richard Biener <rguenther@suse.de>
6649 PR tree-optimization/69378
6650 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
6651 (set_ssa_val_to): Use it for dominance checks taking into
6652 account not executable edges.
6654 2016-01-21 Jakub Jelinek <jakub@redhat.com>
6657 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
6658 for bitsize instead of GET_MODE_PRECISION (mode).
6660 2016-01-20 Martin Sebor <msebor@redhat.com>
6663 * extend.texi (__sync Builtins): Clarify the semantics of
6664 __sync_fetch_and_OP built-ins on pointers.
6665 (__atomic Builtins): Same.
6667 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6668 Sebastian Pop <s.pop@samsung.com>
6670 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
6671 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
6672 (is_valid_rename): Same.
6673 (translate_isl_ast_to_gimple::get_rename): Same.
6674 (translate_isl_ast_to_gimple::rename_all_uses): Same.
6675 (translate_isl_ast_to_gimple::rename_uses): Same.
6676 (get_new_name): Check for close_phi nodes.
6677 (copy_loop_phi_args): Use phi_node_kind.
6678 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
6679 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
6681 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6682 Sebastian Pop <s.pop@samsung.com>
6684 Revert commit r229783.
6685 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6686 Remove use of parameter_rename_map.
6688 (copy_internal_parameters): Remove.
6689 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
6690 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
6691 (free_sese_info): Do not free parameter_rename_map.
6692 (set_rename): Do not use parameter_rename_map.
6693 (rename_uses): Update call to set_rename.
6694 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
6695 * sese.h (parameter_rename_map_t): Remove.
6696 (struct sese_info_t): Remove field parameter_rename_map.
6698 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6699 Sebastian Pop <s.pop@samsung.com>
6701 * graphite-isl-ast-to-gimple.c: Fix comment.
6702 * graphite-scop-detection.c (defined_in_loop_p): New.
6703 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
6704 names defined in loop.
6706 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6707 Sebastian Pop <s.pop@samsung.com>
6709 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
6710 Discard unstructured if-then-else regions.
6712 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6713 Sebastian Pop <s.pop@samsung.com>
6715 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
6716 (cleanup_loop_iter_dom): Remove.
6717 (build_loop_iteration_domains): Remove.
6718 (build_scop_context): Remove.
6719 (build_scop_iteration_domain): Remove.
6720 (add_loop_constraints): New.
6721 (build_iteration_domains): New.
6722 (build_poly_scop): Call build_iteration_domains.
6724 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6725 Sebastian Pop <s.pop@samsung.com>
6727 * graphite-scop-detection.c
6728 (scop_detection::harmful_loop_in_region): Free dom and loops.
6729 (scop_detection::loop_body_is_valid_scop): Free bbs.
6731 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6732 Sebastian Pop <s.pop@samsung.com>
6734 * graphite-scop-detection.c (record_loop_in_sese): New.
6735 (gather_bbs::before_dom_children): Call record_loop_in_sese.
6736 (build_scops): Remove call to build_sese_loop_nests.
6737 * sese.c (sese_record_loop): Remove.
6738 (build_sese_loop_nests): Remove.
6739 (new_sese_info): Remove region->loops.
6740 (free_sese_info): Same.
6741 * sese.h (sese_contains_loop): Same.
6742 (build_sese_loop_nests): Remove.
6743 (sese_contains_loop): Remove.
6745 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6746 Sebastian Pop <s.pop@samsung.com>
6748 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
6749 loop_is_valid_in_scop.
6750 (scop_detection::harmful_stmt_in_region): Renamed
6751 harmful_loop_in_region.
6752 Call loop_is_valid_in_scop.
6754 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6755 Sebastian Pop <s.pop@samsung.com>
6757 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
6760 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6761 Sebastian Pop <s.pop@samsung.com>
6763 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
6764 * graphite.h (struct poly_bb): Remove field is_reduction.
6765 (PBB_IS_REDUCTION): Remove.
6767 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
6768 Sebastian Pop <s.pop@samsung.com>
6770 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
6771 (add_pdr_constraints): Same.
6772 (scop_get_reads): Same.
6773 (scop_get_must_writes): Same.
6774 (scop_get_may_writes): Same.
6775 (scop_get_original_schedule): Same.
6776 (extend_schedule): Same.
6777 (apply_schedule_on_deps): Same.
6778 (carries_deps): Same.
6779 (compute_deps): Same.
6780 (scop_get_dependences): Same.
6781 * graphite-isl-ast-to-gimple.c
6782 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
6783 * graphite-optimize-isl.c (get_schedule_for_band): Same.
6784 (get_schedule_for_band_list): Same.
6785 (get_schedule_map): Same.
6786 (apply_schedule_map_to_scop): Same.
6787 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
6788 (build_loop_iteration_domains): Same.
6789 (add_condition_to_pbb): Same.
6790 (add_param_constraints): Same.
6791 (pdr_add_memory_accesses): Same.
6792 (pdr_add_data_dimensions): Same.
6794 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
6796 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
6799 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
6801 * common.opt (feliminate-dwarf2-dups): Replace references to
6802 "DWARF 2" with just "DWARF".
6803 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
6804 * doc/extend.texi: Likewise.
6805 * doc/cpp.texi: Likewise.
6806 * doc/invoke.texi: Likewise.
6807 (Option Summary): Add -gdwarf to list of Debugging Options.
6808 (Debugging Options): Document -gdwarf.
6809 * doc/contrib.texi: Spell "DWARF" like that.
6811 2016-01-21 Jakub Jelinek <jakub@redhat.com>
6813 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
6814 warning. Fix up formatting.
6817 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
6818 attempt to mark memory input operand addressable and
6819 call prepare_gimple_addressable in that case. Don't adjust
6820 input_location for diagnostics, use error_at instead.
6822 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
6824 * config/rs6000/ppc-auxv.h: New file.
6825 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
6827 (cpu_supports): Likewise.
6828 * config/rs6000/rs6000.c: include "ppc-auxv.h".
6829 (cpu_is_info): New variable.
6830 (cpu_supports_info): Likewise.
6831 (tcb_verification_symbol): Likewise.
6832 (cpu_builtin_p): Likewise.
6833 (cpu_expand_builtin): New function.
6834 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
6835 (rs6000_init_builtins): Likewise.
6836 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
6837 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
6838 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
6839 * configure: Regenerate.
6840 * config.in: Likewise.
6841 * doc/extend.texi (PowerPC Built-in Functions): Document
6842 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
6844 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
6847 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
6849 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
6852 2016-01-20 Richard Henderson <rth@redhat.com>
6858 * tree.c (tm_define_builtin): New.
6859 (find_tm_vector_type): New.
6860 (build_tm_vector_builtins): New.
6861 (build_common_builtin_nodes): Call it.
6863 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
6865 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
6866 (arm_fp_ok): Likewise.
6868 (arm_crypto): Likewise.
6870 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
6871 Richard Biener <rguenther@suse.de>
6873 PR tree-optimization/69328
6874 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
6875 vectors have same number of elements.
6876 (vectorizable_condition): Fix masked version recognition.
6878 2016-01-20 Richard Biener <rguenther@suse.de>
6880 PR tree-optimization/69345
6881 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
6882 (VN_INFO_PTR_INFO): Likewise.
6883 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
6884 info when it is equal between non-dominating SSA names.
6885 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6886 Make sure to look at original SSA infos.
6888 2016-01-20 Jeff Law <law@redhat.com>
6891 * config/m68k/predicates.md (pow2_m1_operand): New predicate
6893 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
6894 (pc_or_label_operand): New predicate.
6895 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
6896 tests for small integers that are 2^n - 1.
6898 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
6900 * doc/invoke.texi (Options Summary): Add '.' after @xref.
6902 2016-01-19 Jeff Law <law@redhat.com>
6905 * tree-ssa-threadbackwards.c
6906 (fsm_find_control_statement_thread_paths): Do not try to lookup
6907 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
6909 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
6911 * doc/lto.texi: Remove text that says only Gold has linker plugin
6914 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
6916 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
6917 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
6918 the DIE accordingly.
6919 (modified_type_die): Add REVERSE parameter and pass it recursively,
6920 as well as to base_type_die. Adjust presence check accordingly.
6921 (base_type_for_mode): Adjust call to modified_type_die.
6922 (add_type_attribute): Add REVERSE parameter and pass it to
6924 (generic_parameter_die): Adjust call to add_type_attribute.
6925 (add_scalar_info): Likewise.
6926 (add_subscript_info): Likewise.
6927 (gen_array_type_die): Likewise.
6928 (gen_descr_array_type_die): Likewise.
6929 (gen_entry_point_die): Likewise.
6930 (gen_enumeration_type_die): Likewise.
6931 (gen_formal_parameter_die): Likewise.
6932 (gen_subprogram_die): Likewise.
6933 (gen_variable_die ): Likewise.
6934 (gen_const_die): Likewise.
6935 (gen_field_die): Likewise.
6936 (gen_pointer_type_die): Likewise.
6937 (gen_reference_type_die): Likewise.
6938 (gen_ptr_to_mbr_type_die): Likewise.
6939 (gen_inheritance_die): Likewise.
6940 (gen_subroutine_type_die): Likewise.
6941 (gen_typedef_die): Likewise.
6942 (force_type_die): Adjust call to modified_type_die.
6944 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
6946 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
6947 flow throughout the file. Fix broken link to Objective-C 2.0
6949 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
6952 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
6954 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
6956 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
6959 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
6960 (maybe_record_node): Record cxa_pure_virtual as the only possible
6961 target if there are not ohter candidates.
6962 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
6964 2016-01-19 Richard Biener <rguenther@suse.de>
6966 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
6967 (get_memory_order): Likewise.
6969 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
6971 * tree-vect-stmts.c (vectorizable_store): Check
6974 2016-01-19 David Malcolm <dmalcolm@redhat.com>
6977 * gcc.c (driver::decode_argv): Add call to
6978 init_opts_obstack before init_options_struct.
6979 * opts.c (init_opts_obstack): Remove idempotency.
6980 (init_options_struct): Replace call to init_opts_obstack
6981 with a gcc_assert to verify that it has already been called.
6982 * toplev.c (toplev::main): Add call to init_opts_obstack before
6983 calls to init_options_struct.
6984 (toplev::finalize): Move cleanup of opts_obstack next to
6985 cleanup of save_decoded_options, clearing the latter, and
6986 save_decoded_options_count.
6988 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6991 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
6992 attribute to unconditional. Remove %? from output template.
6994 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
6995 Jiong Wang <jiong.wang@arm.com>
6997 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
6998 generated from different expand order.
7000 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7002 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
7003 Add support for CCMP costing.
7005 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7007 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
7008 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
7009 (fccmpe<mode>): Likewise.
7010 (fcmp): Rename to fcmp and globalize pattern.
7012 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
7013 (aarch64_gen_ccmp_next): Add FP support.
7015 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7017 * target.def (gen_ccmp_first): Update documentation.
7018 (gen_ccmp_next): Likewise.
7019 * doc/tm.texi (gen_ccmp_first): Update documentation.
7020 (gen_ccmp_next): Likewise.
7021 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
7022 expand_ccmp_expr_1. Improve comments.
7023 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
7024 (ccmp_ior<mode>): Remove pattern.
7025 (cmp<mode>): Remove expand.
7026 (cmp): Globalize pattern.
7027 (cstorecc4): Use cc_register.
7028 (mov<mode>cc): Remove ccmp_cc_register check.
7029 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
7030 Simplify after removal of CC_DNE/* modes.
7031 (aarch64_ccmp_mode_to_code): Remove.
7032 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
7033 In 'k' case use integer as condition.
7034 (aarch64_nzcv_codes): Remove inverted cases.
7035 (aarch64_code_to_ccmode): Remove.
7036 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
7037 comparison with CC register to be used in folowing CCMP/branch/CSEL.
7038 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
7039 pattern. Return the comparison with CC register. Invert conditions
7041 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
7042 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
7044 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7046 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
7047 instrumented_version.
7049 2016-01-19 Richard Biener <rguenther@suse.de>
7051 PR tree-optimization/69336
7052 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
7053 handled components with get_ref_base_and_extent.
7054 (equal_mem_array_ref_p): Adjust.
7056 2016-01-19 Jakub Jelinek <jakub@redhat.com>
7059 * shrink-wrap.c: Include valtrack.h.
7060 (move_insn_for_shrink_wrap): Add DEBUG argument. If
7061 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
7062 in between insn and where it will be moved to. Call
7063 dead_debug_insert_temp.
7064 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
7065 first and dead_debug_local_finish at the end.
7066 For uses and defs bitmap, handle all regs in between REGNO and
7067 END_REGNO, not just the first one.
7069 2016-01-19 Richard Biener <rguenther@suse.de>
7071 PR tree-optimization/69352
7072 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
7073 (equal_mem_array_ref_p): Constrain size and max size properly.
7074 Compare the reverse flag.
7076 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
7078 * ira.c (ira): Update regstat data if we deleted insns.
7080 2016-01-19 Jakub Jelinek <jakub@redhat.com>
7082 PR rtl-optimization/68955
7083 PR rtl-optimization/64557
7084 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
7085 here. Fix up formatting.
7086 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
7088 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7091 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
7092 assume that the node has body.
7093 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
7096 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7098 * lto-streamer-out.c (lto_output): Do not stream instrumentation
7101 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7103 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
7104 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
7106 2016-01-19 Martin Jambor <mjambor@suse.cz>
7107 Martin Liska <mliska@suse.cz>
7108 Michael Matz <matz@suse.de>
7110 * Makefile.in (OBJS): Add new source files.
7111 (GTFILES): Add hsa.c.
7112 * common.opt (disable_hsa): New variable.
7113 (-Whsa): New warning.
7114 * config.in (ENABLE_HSA): New.
7115 * configure.ac: Treat hsa differently from other accelerators.
7116 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
7118 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
7119 * doc/install.texi (Configuration): Document --with-hsa-runtime,
7120 --with-hsa-runtime-include, --with-hsa-runtime-lib and
7122 * doc/invoke.texi (-Whsa): Document.
7123 (hsa-gen-debug-stores): Likewise.
7124 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
7125 to invoke offload compiler for hsa acclerator.
7126 * opts.c (common_handle_option): Determine whether HSA offloading
7127 should be performed.
7128 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
7129 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
7130 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
7131 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
7132 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
7133 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
7134 GF_OMP_FOR_KIND_GRID_LOOP.
7135 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
7136 (pp_gimple_stmt_1): Likewise.
7137 * gimple-walk.c (walk_gimple_stmt): Likewise.
7138 * gimple.c (gimple_build_omp_grid_body): New function.
7139 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
7140 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
7141 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
7142 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
7143 GF_OMP_TEAMS_GRID_PHONY.
7144 (gimple_statement_omp_single_layout): Updated comments.
7145 (gimple_build_omp_grid_body): New function.
7146 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
7147 (gimple_omp_for_grid_phony): New function.
7148 (gimple_omp_for_set_grid_phony): Likewise.
7149 (gimple_omp_parallel_grid_phony): Likewise.
7150 (gimple_omp_parallel_set_grid_phony): Likewise.
7151 (gimple_omp_teams_grid_phony): Likewise.
7152 (gimple_omp_teams_set_grid_phony): Likewise.
7153 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
7154 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
7155 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
7156 (BUILT_IN_GOMP_TARGET): Updated type.
7157 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
7158 (adjust_for_condition): New function.
7159 (get_omp_for_step_from_incr): Likewise.
7160 (extract_omp_for_data): Moved parts to adjust_for_condition and
7161 get_omp_for_step_from_incr.
7162 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
7163 (fixup_child_record_type): Bail out if receiver_decl is NULL.
7164 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
7165 (scan_omp_parallel): Do not create child functions for phony
7167 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
7168 (scan_omp_1_op): Checking assert we are not remapping to
7169 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
7170 (parallel_needs_hsa_kernel_p): New function.
7171 (expand_parallel_call): Register apprpriate parallel child
7172 functions as HSA kernels.
7173 (grid_launch_attributes_trees): New type.
7174 (grid_attr_trees): New variable.
7175 (grid_create_kernel_launch_attr_types): New function.
7176 (grid_insert_store_range_dim): Likewise.
7177 (grid_get_kernel_launch_attributes): Likewise.
7178 (get_target_argument_identifier_1): Likewise.
7179 (get_target_argument_identifier): Likewise.
7180 (get_target_argument_value): Likewise.
7181 (push_target_argument_according_to_value): Likewise.
7182 (get_target_arguments): Likewise.
7183 (expand_omp_target): Call get_target_arguments instead of looking
7184 up for teams and thread limit.
7185 (grid_expand_omp_for_loop): New function.
7186 (grid_arg_decl_map): New type.
7187 (grid_remap_kernel_arg_accesses): New function.
7188 (grid_expand_target_kernel_body): New function.
7189 (expand_omp): Call it.
7190 (lower_omp_for): Do not emit phony constructs.
7191 (lower_omp_taskreg): Do not emit phony constructs but create for them
7192 a temporary variable receiver_decl.
7193 (lower_omp_taskreg): Do not emit phony constructs.
7194 (lower_omp_teams): Likewise.
7195 (lower_omp_grid_body): New function.
7196 (lower_omp_1): Call it.
7197 (grid_reg_assignment_to_local_var_p): New function.
7198 (grid_seq_only_contains_local_assignments): Likewise.
7199 (grid_find_single_omp_among_assignments_1): Likewise.
7200 (grid_find_single_omp_among_assignments): Likewise.
7201 (grid_find_ungridifiable_statement): Likewise.
7202 (grid_target_follows_gridifiable_pattern): Likewise.
7203 (grid_remap_prebody_decls): Likewise.
7204 (grid_copy_leading_local_assignments): Likewise.
7205 (grid_process_kernel_body_copy): Likewise.
7206 (grid_attempt_target_gridification): Likewise.
7207 (grid_gridify_all_targets_stmt): Likewise.
7208 (grid_gridify_all_targets): Likewise.
7209 (execute_lower_omp): Call grid_gridify_all_targets.
7210 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
7211 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
7212 (tree_omp_clause): Added union field dimension.
7213 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
7214 * tree.c (omp_clause_num_ops): Added number of arguments of
7215 OMP_CLAUSE__GRIDDIM_.
7216 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
7217 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
7218 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
7219 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
7220 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
7221 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
7222 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
7223 * tree-pass.h (make_pass_gen_hsail): Declare.
7224 (make_pass_ipa_hsa): Likewise.
7225 * ipa-hsa.c: New file.
7226 * lto-section-in.c (lto_section_name): Add hsa section name.
7227 * lto-streamer.h (lto_section_type): Add hsa section.
7228 * timevar.def (TV_IPA_HSA): New.
7229 * hsa-brig-format.h: New file.
7230 * hsa-brig.c: New file.
7231 * hsa-dump.c: Likewise.
7232 * hsa-gen.c: Likewise.
7235 * toplev.c (compile_file): Call hsa_output_brig.
7236 * hsa-regalloc.c: New file.
7238 2016-01-18 Jeff Law <law@redhat.com>
7240 PR tree-optimization/69320
7241 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
7242 ranged object, do nothing if the RHS constant is not [0..1].
7243 (optimize_stmt): Comparing a boolean ranged object against a
7244 constant outside [0..1] results in a compile-time constant.
7246 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
7249 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
7251 * doc/invoke.texi (Invoking GCC): Add new section to menu.
7252 (Option Summary): Update to reflect new section and moved options.
7253 (C++ Dialect Options): Move -fstats to new section.
7254 (Debugging Options): Move all dump, statistics, and other GCC
7255 developer options to new section. Rewrite section introduction
7256 and re-order remaining options to put the more basic ones first.
7257 (Optimization Options): Move -fira-verbose and -flto-report* to
7259 (Developer Options): New section incorporating moved options.
7260 * doc/cppopts.texi (-dM): Update cross-reference.
7262 2016-01-18 Richard Henderson <rth@redhat.com>
7265 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
7266 operands to pseudo only if CSE is expected. Split long immediate
7267 operands only after reload, and for the stack pointer.
7268 (*add<GPI>3_pluslong): Remove.
7269 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
7270 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
7271 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
7272 (*add<GPI>3 peepholes): New.
7273 (*add<GPI>3 splitters): New.
7274 * config/aarch64/constraints.md (Upl): New.
7275 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
7277 2016-01-18 Richard Biener <rguenther@suse.de>
7279 PR tree-optimization/69297
7280 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
7282 (vect_bb_vectorization_profitable_p): Clear visited flag again.
7284 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
7287 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
7288 of mixind vector and scalar types.
7289 (fold_relational_const): Add handling of vector
7290 comparison with boolean result.
7291 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
7292 comparison of vector operands with boolean result for EQ/NE only.
7293 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
7294 (verify_gimple_cond): Likewise.
7295 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
7298 2016-01-18 Joseph Myers <joseph@codesourcery.com>
7300 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
7303 2016-01-18 Richard Biener <rguenther@suse.de>
7306 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
7308 2016-01-18 Tom de Vries <tom@codesourcery.com>
7310 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
7312 2016-01-18 Tom de Vries <tom@codesourcery.com>
7314 * omp-low.c (set_oacc_fn_attrib): Make extern.
7315 * omp-low.h (set_oacc_fn_attrib): Declare.
7316 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
7317 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
7318 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
7319 Add and handle function parameter oacc_kernels_p.
7320 (find_reduc_addr, get_omp_data_i_param): New function.
7321 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
7322 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
7323 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
7324 Calculate dominance info. Skip loops that are not in a kernels region
7325 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
7326 (pass_parallelize_loops::execute): Call parallelize_loops with
7327 oacc_kernels_p argument.
7328 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
7329 New member function.
7330 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
7331 * passes.def: Add argument to pass_parallelize_loops instantation.
7333 2016-01-18 Tom de Vries <tom@codesourcery.com>
7335 * tree-parloops.c (pass_parallelize_loops::execute): Allow
7336 pass_parallelize_loops to be run outside the loop pipeline.
7338 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
7340 * tree-scalar-evolution.c (follow_copies_to_constant): New.
7341 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
7343 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
7346 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
7347 using get_ref_base_and_extent.
7348 (equal_mem_array_ref_p): New.
7349 (hashable_expr_equal_p): Add call to previous.
7351 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
7354 * tree-sra.c (disqualified_constants, constant_decl_p): New.
7355 (sra_initialize): Allocate disqualified_constants.
7356 (sra_deinitialize): Free disqualified_constants.
7357 (disqualify_candidate): Update disqualified_constants when appropriate.
7358 (create_access): Scan for constant-pool entries as we go along.
7359 (scalarizable_type_p): Add check against type_contains_placeholder_p.
7360 (maybe_add_sra_candidate): Allow constant-pool entries.
7361 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
7362 (initialize_constant_pool_replacements): New.
7363 (sra_modify_assign): Avoid mangling assignments created by previous,
7364 and don't generate writes into constant pool.
7365 (sra_modify_function_body): Call initialize_constant_pool_replacements.
7367 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7369 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
7371 (scalar_chain::convert_op): Likewise.
7372 * config/i386/i386.md (*andndi3_doubleword): New.
7374 2016-01-18 Richard Biener <rguenther@suse.de>
7376 PR tree-optimization/69170
7377 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
7378 building a vector from scalar results of a pattern stmt.
7380 2016-01-18 Jakub Jelinek <jakub@redhat.com>
7382 * haifa-sched.c (autopref_multipass_init): Work around
7383 -Wmaybe-uninitialized warning.
7385 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
7387 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
7388 against the constant 0.
7390 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7392 PR tree-optimization/68799
7393 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
7394 look up phi candidates in the statement-candidate map.
7395 (phi_add_costs): Likewise.
7396 (record_phi_increments): Likewise.
7397 (phi_incr_cost): Likewise.
7398 (ncd_with_phi): Likewise.
7399 (all_phi_incrs_profitable): Likewise.
7401 2016-01-17 Jakub Jelinek <jakub@redhat.com>
7403 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
7404 -Wmaybe-uninitialized warning.
7406 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
7408 * doc/invoke.texi (Invoking GCC): Add new section to menu.
7409 (Option Summary): Update to reflect new section and moved options.
7410 (C++ Dialect Options): Move -fvtable-verify and related options.
7411 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
7412 and profiling-related options.
7413 (Optimization Options): Move profile generation options and
7414 -fstack-protector and related options.
7415 (Instrumentation Options): New section incorporating moved options.
7416 (Code Generation Options): Move -finstrument-functions and
7417 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
7419 2016-01-16 Tom de Vries <tom@codesourcery.com>
7421 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
7423 2016-01-16 Tom de Vries <tom@codesourcery.com>
7425 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
7427 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
7429 * hash-table.h (hash_table::empty): Turn into an inline wrapper
7430 that checks whether the table is already empty. Rename the
7431 original implementation to...
7432 (hash_table::empty_slot): ...this new private function.
7434 2016-01-15 David Malcolm <dmalcolm@redhat.com>
7437 * diagnostic-show-locus.c (layout::print_source_line): Move x
7438 offset of line until after call to
7439 get_line_width_without_trailing_whitespace.
7441 2016-01-15 Jeff Law <law@redhat.com>
7443 PR tree-optimization/69270
7444 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
7445 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
7446 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
7447 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
7448 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
7449 ssa_name_has_boolean_range and constant_boolean_node.
7451 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
7453 PR rtl-optimization/69030
7454 * lra-spills.c (remove_pseudos): Check nrefs and make the function
7456 (spill_pseudos): Delete debug insn for dead pseudo.
7457 (lra_spill): Initiate spill_hard_reg and slots memory separately.
7459 2016-01-15 Jiong Wang <jiong.wang@arm.com>
7461 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
7463 (TYPES_UNOPUS): Likewise.
7464 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
7465 builtin type, from UNOP to UNOPUS.
7466 (lbtruncuv4sf): Likewise.
7467 (lbtruncuv2df): Likewise.
7468 (lrounduv2sf): Likewise.
7469 (lrounduv4sf): Likewise.
7470 (lrounduv2df): Likewise.
7471 (lroundusf): Likewise.
7472 (lroundusf): Likewise.
7473 (lceiluv2sf): Likewise.
7474 (lceiluv4sf): Likewise.
7475 (lceiluv2df): Likewise.
7476 (lceilusf): Likewise.
7477 (lceiludf): Likewise.
7478 (lflooruv2sf): Likewise.
7479 (lflooruv4sf): Likewise.
7480 (lflooruv2df): Likewise.
7481 (lfloorusf): Likewise.
7482 (lfloorudf): Likewise.
7483 (lfrintnuv2sf): Likewise.
7484 (lfrintnuv4sf): Likewise.
7485 (lfrintnuv2df): Likewise.
7486 (lfrintnusf): Likewise.
7487 (lfrintnudf): Likewise.
7488 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
7490 (vcvtq_u32_f32): Likewise.
7491 (vcvtq_u64_f64): Likewise.
7492 (vcvta_u32_f32): Likewise.
7493 (vcvtaq_u32_f32): Likewise.
7494 (vcvtaq_u64_f64): Likewise.
7495 (vcvtm_u32_f32): Likewise.
7496 (vcvtmq_u32_f32): Likewise.
7497 (vcvtmq_u64_f64): Likewise.
7498 (vcvtn_u32_f32): Likwise.
7499 (vcvtnq_u32_f32): Likewise.
7500 (vcvtnq_u64_f64): Likewise.
7501 (vcvtp_u32_f32): Likewise.
7502 (vcvtpq_u32_f32): Likewise.
7503 (vcvtpq_u64_f64): Likewise.
7504 (vcvtmd_u64_f64): Likewise.
7505 (vcvtms_u32_f32): Likewise.
7506 (vcvtad_u64_f64): Likewise.
7507 (vcvtas_u32_f32): Likewise.
7508 (vcvtnd_u64_f64): Likewise.
7509 (vcvtns_u32_f32): Likewise.
7510 (vcvtpd_u64_f64): Likewise.
7511 (vcvtps_u32_f32): Likewise.
7513 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7515 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
7516 CSEL of zero_extended registers.
7518 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7520 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
7521 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
7523 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7525 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
7526 false when argument string is not found in the attributes table
7529 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
7532 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
7533 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
7534 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
7537 2016-01-15 Richard Biener <rguenther@suse.de>
7539 PR tree-optimization/66856
7540 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
7541 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
7542 (vect_create_new_slp_node): Increment stmt reference count.
7543 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
7544 an SLP tree before swapping operands.
7545 (vect_build_slp_tree): Likewise.
7546 (destroy_bb_vec_info): Free stmt info after SLP instances.
7547 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
7548 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
7549 (STMT_VINFO_NUM_SLP_USES): New macro.
7551 2016-01-15 Richard Biener <rguenther@suse.de>
7554 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
7555 (add_linkage_name): ... here.
7556 (gen_typedef_die): Use add_linkage_name_raw instead of
7557 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
7560 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
7562 * gimplify.c (oacc_default_clause): Decode reference and pointer
7563 types for both kernels and parallel regions.
7565 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
7568 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
7570 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
7572 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
7573 (convert_scalars_to_vector): Likewise.
7575 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
7577 * doc/extend.texi (Type Traits): Fix grammar.
7579 2016-01-15 Martin Jambor <mjambor@suse.cz>
7581 * tree-inline.c (remap_decl): Use existing dclarations if
7582 remapping a type and prevent_decl_creation_for_types.
7583 (replace_locals_stmt): Do an initial remapping of non-VLA typed
7584 decls first. Do real remapping with
7585 prevent_decl_creation_for_types set.
7586 * tree-inline.h (copy_body_data): New field
7587 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
7590 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
7592 * config/s390/s390.opt (mmvcle): More verbose help text.
7594 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
7596 * config/s390/s390.opt: Add period to -mzvector option text.
7598 2016-01-15 Richard Biener <rguenther@suse.de>
7600 PR tree-optimization/68961
7601 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
7602 of invariants in stores again.
7604 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
7606 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
7608 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
7610 * config/i386/i386.c (ix86_expand_branch): Don't split
7611 DI mode xor instruction to SI mode.
7613 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
7616 * ipa-icf.c (sem_function::merge): Virtual functions may become
7617 reachable even if they address is not taken and there are no
7620 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
7622 * lto-streamer-out.c (subtract_estimated_size): New function.
7623 (get_symbol_initial_value): Use it.
7625 2016-01-15 Christian Bruel <christian.bruel@st.com>
7628 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
7629 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
7630 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
7631 use add_builtin_function_ext_scope instead of add_builtin_function.
7632 (neon_set_p, neon_crypto_set_p): Remove.
7633 (arm_init_builtins): Always call arm_init_neon_builtins and
7634 arm_init_crypto_builtins.
7635 (arm_expand_builtin): Check that builtins are allowed for the arch.
7636 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
7637 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
7638 arm_init_neon_builtins call.
7640 2016-01-15 Richard Biener <rguenther@suse.de>
7642 PR tree-optimization/69117
7643 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
7644 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
7645 of the leader conservatively.
7646 (free_scc_vn): Restore original SSA name infos.
7648 2016-01-14 Jeff Law <law@redhat.com>
7650 PR tree-optimization/69270
7651 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
7652 single bit of precision, verify it's also unsigned.
7653 (record_edge_info): Use constant_boolean_node rather than fold_convert
7654 to convert boolean_true/boolean_false to the right type.
7656 2016-01-14 Richard Henderson <rth@redhat.com>
7659 * loop-doloop.c (record_reg_sets): New.
7660 (doloop_optimize): Reject the transform if the sequence
7661 clobbers registers live at the end of the loop block.
7662 (doloop_optimize_loops): Enable df_live if needed.
7664 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7666 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
7667 * gcc/config/rs6000/rs6000.c: Likewise.
7668 * gcc/config/rs6000/rs6000.h: Likewise.
7669 * gcc/config/rs6000/rs6000.md: Likewise.
7670 * gcc/doc/extend.texi: Likewsie.
7672 2016-01-14 Jeff Law <law@redhat.com>
7674 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
7677 2016-01-14 Richard Henderson <rth@redhat.com>
7681 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
7682 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
7683 instead of builtin_decl_declared_p to test for declaration.
7685 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
7687 * doc/loop.texi (Loop Analysis and Representation): Document
7688 loop_depth function.
7690 2016-01-14 Tom de Vries <tom@codesourcery.com>
7692 PR tree-optimization/68773
7693 * omp-low.c (expand_omp_target): Don't set force_output.
7694 * varpool.c (varpool_node::get_create): Same.
7695 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
7696 offload_funcs with force_output.
7698 2016-01-14 Jakub Jelinek <jakub@redhat.com>
7701 * lra-eliminations.c (move_plus_up): Don't change anything if either
7702 the outer or inner subreg mode is not MODE_INT.
7703 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
7704 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
7706 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
7708 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
7709 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
7710 reduc_uplus_@var{m}): Remove.
7711 * expr.c (expand_expr_real_2): Remove expansion path for
7712 reduc_[us](min|max|plus) optabs.
7713 * optabs-tree.c (scalar_reduc_to_vector): Remove.
7714 * optabs-tree.h (scalar_reduc_to_vector): Remove.
7715 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
7716 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
7717 * tree-vect-loop.c (vectorizable_reduction): Remove test for
7718 reduc_[us](min|max|plus) optabs.
7720 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
7722 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
7723 (reduc_plus_scal_v2sf): New.
7724 (reduc_smax_v2sf): Rename to...
7725 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
7726 (reduc_smin_v2sf): Rename to...
7727 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
7729 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
7731 * alias.c (compare_base_symbol_refs): New function.
7732 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
7735 2016-01-14 Jakub Jelinek <jakub@redhat.com>
7738 PR tree-optimization/69155
7739 * tree-complex.c: Include cfganal.h.
7740 (phis_to_revisit): New variable.
7741 (extract_component): Add phiarg_p argument. Assert that returned
7742 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
7743 (update_phi_components): Partly rewrite to use loop over real/imag
7744 components instead of code duplication. If extract_component returns
7745 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
7746 create_tmp_reg into the PHI node instead, and mention the phi triplet
7748 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
7749 in phis_to_revisit at the end.
7751 2016-01-14 Richard Biener <rguenther@suse.de>
7753 PR tree-optimization/68060
7754 * tree-vect-loop.c (vect_is_simple_reduction): Check the
7755 outer loop reduction is only used in the inner loop before
7756 detecting a double reduction.
7758 2016-01-14 Jakub Jelinek <jakub@redhat.com>
7761 * combine.c (expand_field_assignment): Punt if compute_mode is
7762 unsupported scalar mode.
7764 2016-01-14 Richard Biener <rguenther@suse.de>
7766 PR tree-optimization/66856
7767 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
7768 SLP node only if it built successfully.
7769 (vect_analyze_slp_instance): Adjust.
7771 2016-01-14 Jeff Law <law@redhat.com>
7773 PR tree-optimization/69270
7774 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
7775 (record_edge_info): Use it. Convert boolean_{true,false}_node
7778 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
7781 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
7782 use block_ultimate_origin
7783 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
7785 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
7787 * doc/invoke.texi (Submodel Options): Rename section to
7788 "Machine-Dependent Options" to better reflect its content.
7789 Rewrite introductory text to remove archaic CPU names.
7792 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
7794 * doc/invoke.texi (Code Gen Options): Move section up in file,
7795 before target-specific options. Update menu and option summary
7796 to reflect the new section ordering.
7798 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
7800 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
7801 (C++ Dialect Options): Add cross-reference to -std option.
7802 * doc/standards.texi (C++ Language): Document C++14 support.
7804 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
7806 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
7807 for pack/unpack functions for __ibm128.
7808 (PACK_IF): Likewise.
7809 (UNPACK_IF): Likewise.
7811 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
7812 support for __ibm128 pack/unpack functions.
7813 (rs6000_invalid_builtin): Likewise.
7814 (rs6000_init_builtins): Likewise.
7815 (rs6000_opt_masks): Likewise.
7817 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
7818 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
7820 (RS6000_BTM_COMMON): Likewise.
7822 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
7823 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
7824 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
7825 128-bit floating point. Add support for the double values to be
7826 in Altivec registers for TF/IF packing and unpacking, but restrict
7827 TD packing sub-fields to be FPR registers. Don't allow overlapped
7828 register support for packing. Allow pack inputs to be memory
7829 locations. Don't build generator functions for unpack<mode>_dm
7830 and unpack<mode>_nodm.
7831 (unpack<mode>_dm): Likewise.
7832 (unpack<mode>_nodm): Likewise.
7833 (pack<mode>): Likewise.
7835 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
7836 built-in functions to pack/unpack explicit __ibm128 values.
7837 (__builtin_unpack_ibm128): Likewise.
7839 * doc/extend.texi (PowerPC Built-in Functions): Document
7840 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
7842 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
7845 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
7846 Add new arg loc and pass it down as context.
7847 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
7848 to the location to use for the warning.
7849 (check_function_arguments): New arg loc. All callers changed. Pass
7850 it to check_function_nonnull.
7851 * c-common.h (check_function_arguments): Adjust declaration.
7853 2016-01-13 Jakub Jelinek <jakub@redhat.com>
7855 PR tree-optimization/69156
7856 * gimple.c (validate_type): Removed.
7857 (gimple_builtin_call_types_compatible_p): Use
7858 useless_type_conversion_p instead of validate_type.
7859 * value-prof.c (gimple_stringop_fixed_value): Fold
7860 icall_size to correct type.
7862 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
7864 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
7867 2016-01-13 Richard Henderson <rth@redhat.com>
7870 * target.def (builtin_tm_load, builtin_tm_store): Remove.
7871 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
7872 (ix86_builtin_tm_store): Remove.
7873 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
7874 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
7875 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
7876 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
7877 * doc/tm.texi: Rebuild.
7879 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
7880 (BUILT_IN_TM_MEMCPY_RTWN): New.
7881 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
7882 fallback from vector to integer helpers.
7883 (build_tm_load): Handle vector types directly, instead of
7885 (build_tm_store): Likewise.
7886 (expand_assign_tm): Prepare for register types not handled by
7887 the above. Copy them to memory and use memcpy.
7888 * tree.c (tm_define_builtin): New.
7889 (find_tm_vector_type): New.
7890 (build_tm_vector_builtins): New.
7891 (build_common_builtin_nodes): Call it.
7893 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
7895 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
7896 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
7898 2016-01-13 Tom de Vries <tom@codesourcery.com>
7900 PR tree-optimization/69169
7901 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
7902 handled_struct_type param.
7903 (create_variable_info_for, intra_create_variable_infos): Call
7904 create_variable_info_for_1 with extra arg.
7906 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
7908 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
7909 and "armv8.1-a+crc" entries.
7911 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
7914 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
7915 Change first operand predicate from register_or_constm1_operand
7916 to register_operand.
7917 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
7918 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
7919 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
7920 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
7921 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
7922 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
7923 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
7924 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
7925 comparison with constm1_rtx from vec_prefetch_gen part.
7927 2016-01-13 Richard Biener <rguenther@suse.de>
7929 PR tree-optimization/69013
7930 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
7931 Exchange assert for a test.
7933 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7936 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
7938 2016-01-13 Richard Biener <rguenther@suse.de>
7940 PR tree-optimization/69242
7941 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
7942 assert with a check.
7944 2016-01-13 Richard Biener <rguenther@suse.de>
7946 PR tree-optimization/69186
7947 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7948 Properly guard vect_update_misalignment_for_peel call.
7950 2016-01-12 Jeff Law <law@redhat.com>
7952 PR tree-optimization/pr67755
7953 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
7954 "need_profile_correction".
7955 (thread_block_1): Initialize new field to false by default. If we
7956 have multiple thread paths through a common joiner to different
7957 final targets, then set new field to true.
7958 (compute_path_counts): Only do count adjustment when it's really
7961 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
7963 * doc/invoke.texi (Spec Files): Move section down in file, past
7964 all command-line option descriptions.
7966 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7969 * doc/gty.texi: Remove documentation of mark_hook.
7970 * gengtype.c (struct write_types_data): Remove code to support
7971 mark_hook attribute.
7972 (walk_type): Likewise.
7973 (write_func_for_structure): Likewise.
7975 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
7977 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
7978 Directory Options, and -specs= to Overall Options.
7979 (Overall Options): Adjust similarly. Reorder to group related
7980 options together. Make -specs= cross-reference the spec file details.
7981 (Directory Options): Adjust similarly.
7983 2016-01-12 Jeff Law <law@redhat.com>
7985 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
7987 2016-01-12 Olivier Hainque <hainque@adacore.com>
7989 * gcc.c (spec_undefvar_allowed): New global.
7990 (process_command): Set to true when running for --version or --help,
7992 (getenv_spec_function): When the variable is not defined, use the
7993 variable name as the variable value if we're allowed not to issue
7996 2016-01-12 Bin Cheng <bin.cheng@arm.com>
7998 PR tree-optimization/68911
7999 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
8000 information computed for expression "init + nit * step".
8002 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
8004 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
8005 about name of GCC executable. Remove deleted node from menu.
8006 (Directory Options) <-B>: Remove cross-reference to deleted node.
8007 (Target Options): Delete section.
8009 2016-01-12 Christian Bruel <christian.bruel@st.com>
8012 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
8013 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
8015 2016-01-12 Jakub Jelinek <jakub@redhat.com>
8018 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
8019 aligned_mem is properly set for AVX512-VL floating point masked
8023 * ifcvt.c (cond_exec_process_if_block): When removing the last
8024 insn from then_bb, remove also any possible barriers that follow it.
8026 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
8030 * config/i386/iamcu.h (SIZE_TYPE): New macro.
8031 (PTRDIFF_TYPE): Likewise.
8032 (WCHAR_TYPE): Likewise.
8033 (WCHAR_TYPE_SIZE): Likewise.
8034 (STDINT_LONG32): Likewise.
8036 2016-01-12 Richard Biener <rguenther@suse.de>
8038 PR tree-optimization/69053
8039 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
8040 convert initial value for cond reductions.
8042 2016-01-12 Richard Biener <rguenther@suse.de>
8044 PR tree-optimization/69007
8045 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
8046 widen_sum after dot_prod and sad.
8048 2016-01-12 Richard Biener <rguenther@suse.de>
8050 PR tree-optimization/69168
8051 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
8052 pattern stmt SLP type.
8053 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
8054 end up unused so cope with that case.
8056 2016-01-12 Richard Biener <rguenther@suse.de>
8058 PR tree-optimization/69157
8059 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
8060 stmts def type only during analyze phase.
8061 (vectorizable_call): Likewise.
8062 (vectorizable_simd_clone_call): Likewise.
8063 (vectorizable_conversion): Likewise.
8064 (vectorizable_assignment): Likewise.
8065 (vectorizable_shift): Likewise.
8066 (vectorizable_operation): Likewise.
8067 (vectorizable_store): Likewise.
8068 (vectorizable_load): Likewise.
8070 2016-01-12 Richard Biener <rguenther@suse.de>
8072 PR tree-optimization/69174
8073 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
8075 (vectorizable_load): Properly compute the number of loads needed
8076 for permuted strided SLP loads and do not spuriously assign
8077 to SLP_TREE_VEC_STMTS.
8079 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
8081 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
8082 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
8083 (MD_EXEC_PREFIX): Remove.
8084 (MD_STARTFILE_PREFIX) Removee.
8085 (FILE_NAME_ABSOLUTE_P): Remove.
8086 (CPP_SPEC): Do not read macros from sys/version.h.
8087 (LINK_COMMAND_SPEC): Remove.
8088 (LOCAL_INCLUDE_DIR): Remove.
8089 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
8090 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
8091 (POST_LINK_SPEC): Define to invoke stubify after linker
8092 (LIBSTDCXX): Remove define
8093 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
8094 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
8095 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
8096 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
8097 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
8098 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
8099 (i386_djgpp_asm_named_section): Add propotype of new procedure
8101 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
8102 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
8103 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
8104 in config/i386/djgpp.h).
8105 (STANDARD_STARTFILE_PREFIX_2): Define identical to
8106 STANDARD_STARTFILE_PREFIX_1.
8107 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
8108 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
8109 installation errors.
8110 (MAX_OFILE_ALIGNMENT): Define to 128.
8111 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
8113 * config/i386/djgpp.c: New file. Add implementation of
8114 i386_djgpp_asm_named_section.
8116 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
8118 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
8119 Add rule for building djgpp.o.
8121 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8123 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
8124 (rtx_is_swappable_p): Reductions are swappable.
8125 (insn_is_swappable_p): V2DF reductions are swappable.
8127 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
8129 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
8130 reloads for other unsupported memory operands.
8132 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
8133 Jim Wilson <jim.wilson@linaro.org>
8136 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
8137 copy_to_mode_reg instead of force_reg.
8139 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
8142 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
8143 TARGET_80387 is true.
8145 2016-01-11 Jakub Jelinek <jakub@redhat.com>
8148 * lra-eliminations.c (move_plus_up): Only move plus up
8149 if subreg of the constant can be simplified into constant
8150 and use the simplified subreg of the constant instead of
8151 the original constant.
8153 * fold-const.c (fold_convertible_p): Don't return true
8154 for conversion of VECTOR_TYPE to same sized integral type.
8155 (fold_convert_loc): Fix up formatting. Fold conversion of
8156 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
8157 instead of NOP_EXPR.
8159 PR tree-optimization/69214
8160 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
8161 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
8164 PR tree-optimization/69207
8165 * tree-vect-slp.c (vect_get_constant_vectors): For
8166 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
8167 fold_convertible_p to vector_type's element type, and always
8168 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
8170 2016-01-11 Richard Biener <rguenther@suse.de>
8172 PR tree-optimization/69173
8173 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
8174 fixup the cycle if all stmts are in a pattern.
8176 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
8179 * alias.c (base_alias_check): Move check for addresses with
8180 alignment ANDs before the call for compare_base_decls.
8181 (memrefs_conflict_p): Return -1 for different decls
8182 that went through alignment adjustments.
8184 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8186 PR rtl-optimization/68796
8187 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
8188 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
8189 and QImode comparisons against zero with CC_NZmode.
8190 * config/aarch64/iterators.md (short_mask): New mode_attr.
8192 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
8194 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
8195 (<avx512>_store<mode>_mask): Likewise.
8197 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
8198 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8200 PR rtl-optimization/68841
8201 * ifcvt.c (struct noce_if_info): Add orig_x field.
8202 (bbs_ok_for_cmove_arith): Add to_rename parameter.
8203 Don't record conflicts on to_rename if it's present.
8204 Allow memory destinations in sets.
8205 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
8206 blocks, passing orig_x to the checks.
8207 (noce_process_if_block): Set if_info->orig_x appropriately.
8209 2016-01-11 Tom de Vries <tom@codesourcery.com>
8211 PR tree-optimization/69069
8212 * tree-parloops.c (create_parallel_loop): Add missing phi args.
8214 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
8216 PR rtl-optimization/68920
8217 * config/i386/i386.c (ix86_option_override_internal): Restrict number
8218 of conditional moves for RTL if-conversion to 1 for
8219 TARGET_ONE_IF_CONV_INSN.
8220 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
8221 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
8222 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
8223 parameter to restirct number of conditional moves for
8225 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
8226 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
8229 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
8232 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
8233 onepart vars. Fix typo in comment. Fix reversed condition in
8235 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
8238 * var-tracking.c (dump_onepart_variable_differences): New.
8239 (dataflow_set_different): If a detailed dump is requested,
8240 delay early returns and dump differences between onepart
8241 variables present before and after, and added variables.
8243 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
8246 * expr.c (expand_expr_real_1): For boolean vector constants
8247 with a scalar mode use const_scalar_mask_from_tree.
8248 (const_scalar_mask_from_tree): New.
8249 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
8250 assigned to a mask type to handle constants.
8252 2016-01-11 Martin Jambor <mjambor@suse.cz>
8255 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
8256 useless parameters if we cannot change function signature.
8258 2016-01-11 Martin Jambor <mjambor@suse.cz>
8261 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
8264 2016-01-11 Tom de Vries <tom@codesourcery.com>
8266 PR tree-optimization/69109
8267 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
8270 2016-01-11 Tom de Vries <tom@codesourcery.com>
8272 PR tree-optimization/69108
8273 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
8274 res is not used in a phi.
8276 2016-01-11 Yury Gribov <y.gribov@samsung.com>
8279 * common.opt (frandom-seed): Fix parameter name.
8280 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
8282 2016-01-11 Tom de Vries <tom@codesourcery.com>
8284 PR tree-optimization/69058
8285 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
8288 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
8290 * config/arc/arc.opt (mdiv-rem): Add period to the end.
8291 (mcode-density): Likewise.
8293 2016-01-10 Tom de Vries <tom@codesourcery.com>
8295 PR tree-optimization/69062
8296 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
8297 (parallelize_loops): Don't paralelize loop that has phi with address
8300 2016-01-10 Tom de Vries <tom@codesourcery.com>
8302 PR tree-optimization/69039
8303 * tree-parloops.c (try_create_reduction_list): Only allow single exit
8306 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
8309 * match.pd: Require target has function_c99_misc before doing
8310 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
8312 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
8314 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
8316 * configure: Regenerate.
8318 2016-01-09 Jakub Jelinek <jakub@redhat.com>
8321 PR tree-optimization/69097
8322 * fold-const.h (expr_not_equal_to): New prototype.
8323 * fold-const.c: Include stringpool.h and tree-ssanames.h.
8324 (expr_not_equal_to): New function.
8325 * match.pd (X % -Y is the same as X % Y): Don't optimize
8326 unless X is known not to be equal to minimum or Y is known
8327 not to be equal to -1.
8328 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
8329 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
8330 (simplify_stmt_using_ranges): Adjust caller.
8331 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
8332 substitute_and_fold.
8334 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
8336 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
8339 2016-01-08 Jakub Jelinek <jakub@redhat.com>
8341 PR tree-optimization/69167
8342 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
8343 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
8345 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
8347 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
8348 Richard Biener <rguenther@suse.de>
8350 PR tree-optimization/68707
8351 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
8352 instances that can be handled via vect_load_lanes.
8354 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
8356 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
8357 if we can't determine address equivalence.
8358 * alias.c (compare_base_decl): Update for changed return value of
8359 symtab_node::equal_address_to.
8361 2016-01-08 Jason Merrill <jason@redhat.com>
8365 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
8366 * expr.c (store_field): Not here.
8367 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
8368 call with TREE_ADDRESSABLE type.
8369 * tree-cfg.c (verify_gimple_call): Adjust.
8371 2016-01-08 Olivier Hainque <hainque@adacore.com>
8373 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
8376 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
8378 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
8379 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
8380 (reduc_smin_v2sf): Rename to...
8381 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
8382 (reduc_splus_v2sf): Rename to...
8383 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
8385 2016-01-08 Jakub Jelinek <jakub@redhat.com>
8387 PR tree-optimization/69162
8388 * gimplify.c (gimplify_va_arg_expr): Encode original type of
8389 valist argument in another argument.
8390 (gimplify_modify_expr): Adjust for the above change. Cleanup.
8391 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
8392 to determine the va_list type, build a MEM_REF instead of
8393 build_fold_indirect_ref.
8395 PR tree-optimization/69172
8396 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
8399 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
8401 PR tree-optimization/67781
8402 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
8403 and cmpnop in two steps: first the ones not accessed in original
8404 gimple expression in a endian independent way and then the ones not
8405 accessed in the final result in an endian-specific way.
8407 2016-01-08 Jakub Jelinek <jakub@redhat.com>
8409 PR tree-optimization/69083
8410 * tree-vect-slp.c (vect_get_constant_vectors): For
8411 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
8412 element type. If op is fold_convertible_p to vector_type's element
8413 type, use NOP_EXPR instead of VCE.
8415 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
8417 PR rtl-optimization/67778
8418 PR rtl-optimization/68634
8419 PR rtl-optimization/68909
8420 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
8421 block from the stack until done with it. Remove a superfluous
8422 bitmap set. Remove a superfluous bitmap test.
8424 2016-01-07 Martin Sebor <msebor@redhat.com>
8427 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
8428 constraint on the type of arguments.
8430 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
8432 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
8433 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
8434 unaligned_access on the gcc_options set.
8435 * config/arm/arm.c (arm_option_override_internal): Use
8436 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
8438 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
8441 * config/i386/i386.c (ix86_frame_pointer_required): Enable
8442 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
8444 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
8447 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
8450 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
8451 depending on frame_pointer_needed before remaining integer and SSE
8452 registers are saved.
8454 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
8457 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
8459 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
8462 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
8463 Use the "xBm" constraint.
8464 (float<sseintvecmodelower><mode>2<mask_name><round_name):
8466 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
8467 (sse_cvtsi2ssq<round_name>): Likewise.
8468 (sse_cvtss2si<round_name>): Likewise.
8469 (sse_cvtss2siq<round_name>): Likewise.
8470 (sse2_cvtsi2sdq<round_name>): Likewise.
8471 (sse2_cvtsd2si<round_name>): Likewise.
8472 (sse2_cvtsd2siq<round_name>): Likewise.
8473 * config/i386/subst.md (round_nimm_scalar_predicate): New
8476 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
8479 * varasm.c (make_decl_rtl): Mark invalid register vars as
8482 PR rtl-optimization/66206
8483 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
8484 All callers changed.
8486 2016-01-07 Jakub Jelinek <jakub@redhat.com>
8488 PR tree-optimization/69141
8489 * tree-ssa-pre.c: Include langhooks.h.
8490 (eliminate_dom_walker::before_dom_children): Use
8491 lang_hooks.decl_printable_name instead of
8492 cgraph_node::get ()->name ().
8495 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
8496 it and DECL_ALIGN too.
8498 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
8500 * config/mips/mips-ftypes.def: Sort to lexicographical order.
8502 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
8505 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
8506 depending on frame_pointer_needed before remaining integer and SSE
8507 registers are saved.
8509 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8511 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
8512 mode iterator with VSX_M2.
8513 (*p9_vecstore_<mode>): Likewise.
8514 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
8515 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
8516 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
8517 (define_split for VSX_LE128 stores): Likewise.
8518 (define_peephole2 for TImode LE swaps): Likewise.
8519 (define_split for VSX_LE128 post-reload stores): Likewise.
8521 2016-01-06 Marek Polacek <polacek@redhat.com>
8524 * convert.c (convert_to_integer_1): Adjust call to
8525 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
8526 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
8527 EXPR instead of ARG.
8528 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
8530 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
8533 * doc/extend.texi (RL78 Variable Attributes): New section.
8535 2016-01-05 Marek Polacek <polacek@redhat.com>
8538 * builtins.c (get_memmodel): Use expansion point location rather than
8539 the input location. Call warning_at rather than warning.
8540 (expand_builtin_atomic_compare_exchange): Likewise.
8541 (expand_builtin_atomic_load): Likewise.
8542 (expand_builtin_atomic_store): Likewise.
8543 (expand_builtin_atomic_clear): Likewise.
8545 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
8548 * config/i386/i386.c (ix86_expand_vector_logical_operator):
8549 Replace nonimmediate_operand with vector_operand.
8550 * config/i386/predicates.md (vector_operand): New predicate.
8551 (general_vector_operand): Replace nonimmediate_operand with
8553 * config/i386/sse.md: Replace nonimmediate_operand with
8554 vector_operand and m constraint with Bm constraint on SSE
8555 patterns with 16-byte memory operand.
8556 * config/i386/subst.md (round_nimm_predicate): Replace
8557 nonimmediate_operand with vector_operand.
8558 (round_saeonly_nimm_predicate): Likewise.
8559 (round_saeonly_nimm_scalar_predicate): New.
8561 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
8564 * config/i386/constraints.md (Bm): New constraint.
8565 * config/i386/predicates.md (vector_memory_operand): New
8567 * config/i386/sse.md: Replace xm with xBm in plusminus and
8570 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
8573 * doc/extend.texi (V850 Function Attributes): New section.
8574 (V850 Variable Attributes): New section.
8576 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
8579 * doc/extend.texi (MicroBlaze Function Attributes): Document
8580 interrupt_handler and fast_interrupt attributes.
8582 2016-01-05 Sergei Trofimovich <siarheit@google.com>
8585 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
8586 for local symbolic operands.
8587 * config/ia64/predicates.md (local_symbolic_operand64): New
8590 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8592 PR rtl-optimization/68651
8593 * combine.c (combine_simplify_rtx): Canonicalize x + x into
8596 2016-01-05 Nathan Sidwell <nathan@acm.org>
8598 * alias.c (compare_base_decls): Use symtab_node::get.
8600 2016-01-05 Nick Clifton <nickc@redhat.com>
8603 * ira-costs.c (copy_cost): Initialise the t_icode field of the
8604 secondary_reload_info structure.
8607 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
8608 decls if weak support is available.
8610 2016-01-04 Martin Sebor <msebor@redhat.com>
8612 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
8614 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
8616 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
8617 OPTION_MASK_P9_DFORM.
8619 * config/rs6000/constraints.md (wo constraint): New constraint for
8622 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
8624 (rs6000_init_hard_regno_mode_ok): Likewise.
8626 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
8629 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
8630 expanders not to have constraints. Add support for ISA 3.0 xxperm
8631 instruction. Add support for fusing xxlor with xxperm.
8632 (altivec_vperm_<mode>_internal): Likewise.
8633 (altivec_vperm_v8hiv16qi): Likewise.
8634 (altivec_vperm_<mode>v16q): Likewise.
8635 (altivec_vperm_<mode>_uns): Likewise.
8636 (vperm_v8hiv4si): Likewise.
8637 (vperm_v16qiv8hi): Likewise.
8639 * doc/md.texi (RS/6000 constraints): Document wo constraint.
8641 2016-01-04 Jakub Jelinek <jakub@redhat.com>
8643 Update copyright years.
8645 * gcc.c (process_command): Update copyright notice dates.
8646 * gcov-dump.c (print_version): Ditto.
8647 * gcov.c (print_version): Ditto.
8648 * gcov-tool.c (print_version): Ditto.
8649 * gengtype.c (create_file): Ditto.
8650 * doc/cpp.texi: Bump @copying's copyright year.
8651 * doc/cppinternals.texi: Ditto.
8652 * doc/gcc.texi: Ditto.
8653 * doc/gccint.texi: Ditto.
8654 * doc/gcov.texi: Ditto.
8655 * doc/install.texi: Ditto.
8656 * doc/invoke.texi: Ditto.
8658 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
8660 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
8661 modes larger than TImode as TImode if NEON is not enabled.
8663 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
8666 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
8667 mode for %f0-%f31 only if TARGET_FPU.
8669 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
8672 * config/sparc/sparc.c (scan_record_type): Take into account subfields
8673 to compute the PACKED_P predicate.
8674 (function_arg_record_value): Minor tweaks.
8676 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
8678 * doc/install.texi (--with-multilib-list): Describe the meaning of the
8679 option for arm*-*-* targets.
8681 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
8683 * doc/extend.texi (Common Function Attributes): Move docs for
8684 MSP430-specific attributes to....
8685 (MSP430 Function Attributes): ...here. Delete the redundant
8686 entries and copy-edit the remaining text.
8687 (MSP430 Variable Attributes): Use uniform format for index
8688 entries and add a cross-reference to the corresponding function
8691 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
8693 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
8695 (x86 Options): Likewise.
8697 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
8701 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
8702 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
8703 to corresponding attribute.
8705 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
8707 * doc/extend.texi (Common Function Attributes) <noplt>: Move
8708 to correct alphabetization of table. Copy-edit and correct
8710 <stack_protect>: Likewise.
8711 <target_clones>: Likewise.
8713 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
8714 Correct punctuation.
8715 (Code Gen Options) <-fno-plt>: Copy-edit.
8717 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8720 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
8721 SI values. Explicitly convert SI to DI and vice-versa.
8723 2016-01-01 Jakub Jelinek <jakub@redhat.com>
8725 PR tree-optimization/69070
8726 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
8727 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
8730 * ubsan.c (ubsan_instrument_float_cast): Call
8731 initialize_sanitizer_builtins.
8734 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
8736 Copyright (C) 2016 Free Software Foundation, Inc.
8738 Copying and distribution of this file, with or without modification,
8739 are permitted in any medium without royalty provided the copyright
8740 notice and this notice are preserved.